Skip to content

Releases: digdir/designsystemet

v1.1.9

18 Jul 12:37
69658ee
Compare
Choose a tag to compare

@digdir/designsystemet@1.1.9

@digdir/designsystemet-css@1.1.9

@digdir/designsystemet-react@1.1.9

Patch Changes

  • Add documentation for augmented React data attribute types (data-color, data-size, data-color-scheme) (#3881)

@digdir/designsystemet-theme@1.1.9

v1.1.8

18 Jul 12:05
9da685d
Compare
Choose a tag to compare

@digdir/designsystemet@1.1.8

Patch Changes

  • Add typings for ColorScheme (used for data-color-scheme) (#3879)

@digdir/designsystemet-css@1.1.8

@digdir/designsystemet-react@1.1.8

Patch Changes

  • Add typings for data-color-scheme on JSX elements in React using react-types.d.ts (#3879)

@digdir/designsystemet-theme@1.1.8

v1.1.7

18 Jul 09:52
64c63ca
Compare
Choose a tag to compare

@digdir/designsystemet@1.1.7

@digdir/designsystemet-css@1.1.7

@digdir/designsystemet-react@1.1.7

Patch Changes

  • Deprecate unintended exported omit utility (#3873)

  • Deprecate useDebounceCallback, useIsomorphicLayoutEffect and useMediaQuery. Use utility libraries or create your own utility function. (#3873)

@digdir/designsystemet-theme@1.1.7

v1.1.6

17 Jul 12:18
8d6fa74
Compare
Choose a tag to compare

@digdir/designsystemet@1.1.6

Patch Changes

  • Added new type declaration files for theme types when building tokens; types.d.ts. Use this instead of colors.d.ts. (#3837)

  • Deprecate colors.d.ts from tokens build. Replaced by types.d.ts. (#3837)

  • Updated non-major dependencies (#3868)

  • Add new export for augmented theme types; @digdir/designsystemet/types. (#3837)
    Use this with generated theme declaration file for types for your theme.

@digdir/designsystemet-css@1.1.6

@digdir/designsystemet-react@1.1.6

Patch Changes

  • Fix missing jsdocs for compound components (Component with sub-components on the component, e.g. Details.Summary etc) (#3865)

  • Updated non-major dependencies (#3868)

  • Deprecate @digdir/designsystemet-react/color module. Replaced by @digdir/designsystemet/types. (#3837)

@digdir/designsystemet-theme@1.1.6

Patch Changes

  • Deprecate colors.d.ts from tokens build. Replaced by types.d.ts. (#3837)

v1.1.5

16 Jul 07:39
ab73bf4
Compare
Choose a tag to compare

@digdir/designsystemet@1.1.5

@digdir/designsystemet-css@1.1.5

Patch Changes

  • Table: (#3859)

    • sorting icon never shrinks, even when using Button component (which is display: flex) as parent
    • with data-border adjusts border-radius according to border-width
  • Tabs: adjusted to allow non-tab-button-elements inside tablist (#3859)

  • Details: content using overflow: hidden to prevent margin clipping (#3859)

@digdir/designsystemet-react@1.1.5

Patch Changes

  • Suggestion: Fix controlled value being cleared if edited in React 18 strict mode. (#3853)

  • Dialog: Fix onClose being called twice when React is in strict mode (#3854)

  • Field, Checkbox, Radio, Switch, Textfield: Fix duplicate ids in aria-describedby when React is in strict mode (#3854)

  • Suggestion: (#3857)

    • Deprecated value, use selected instead
    • Deprecated defaultValue, use defaultSelected instead
    • Deprecated onValueChange, use onSelectedChange instead
    • Deprecated Suggestion.Chips, use renderSelected on Suggestion instead
    • Add onBeforeMatch to Suggestion for custom matching
    • Revert input value to current selected when no match

@digdir/designsystemet-theme@1.1.5

v1.1.4

11 Jul 10:06
fd4c797
Compare
Choose a tag to compare

@digdir/designsystemet@1.1.4

Patch Changes

  • Updated non-major dependencies (#3803)

  • Fixed type declaration producing invalid syntax when a color name includes hyphens (#3802)

  • fix: letter-spacing now uses em unit instead of invalid percentage unit (#3759)

    • Note: Users should run npx @digdir/designsystemet@latest tokens build <options> to rebuild css-variables with now valid letter-spacing. This will result in a slight visual change in the typography.
  • Removed non-working --preview option (#3758)

  • Updated non-major dependencies (#3838)

@digdir/designsystemet-css@1.1.4

Patch Changes

  • Avatar: Text as children have same font-size as data-initials (#3835)

  • Select: Flip chevron when open, uses :open with limited availability. Does not work in Safari (#3846)

  • Updated non-major dependencies (#3803)

  • SkipLink: Class is now ds-skip-link. Filename is now skip-link.css. (#3829)
    The old class and file is still present, and can imported and used as before. This will be removed in the next major version.

  • ToggleGroup: Class is now ds-toggle-group. Filename is now toggle-group.css. (#3829)
    The old class and file is still present, and can imported and used as before. This will be removed in the next major version.

@digdir/designsystemet-react@1.1.4

Patch Changes

  • Internal change: Removed index files that only exported one component. (#3836)

  • Avatar: Text as children have same font-size as data-initials (#3835)

  • Suggestion: fix crash when changing the value if the initial value was an empty string (#3818)

  • Updated non-major dependencies (#3803)

  • Suggestion: now triggers change on enter or blur, or when clicking an option - not while typing (#3833)

  • Suggestion: Use popover API for datalist (#3845)

  • Updated non-major dependencies (#3838)

  • Internal change: Use kebab case instead of pascal case for files and folders (#3819)

@digdir/designsystemet-theme@1.1.4

Patch Changes

  • fix: letter-spacing now uses em unit instead of invalid percentage unit (#3759)
    • Note: Users should run npx @digdir/designsystemet@latest tokens build <options> to rebuild css-variables with now valid letter-spacing. This will result in a slight visual change in the typography.

v1.1.3

03 Jul 12:08
8429603
Compare
Choose a tag to compare

@digdir/designsystemet@1.1.3

@digdir/designsystemet-css@1.1.3

Patch Changes

  • Field: The gap between label and Radio/Checkbox/Switch is now clickable (#3785)

  • Details: Single outer padding when multiple children (#3796)

  • Round to nearest 1px a few places (#3786)

@digdir/designsystemet-react@1.1.3

Patch Changes

  • Field: Make sure there will be no duplicate IDs when having multiple of the same data-field type (#3794)

  • Textfield: Fix wrong type definition for type prop (#3797)

  • Suggestion: Visual value didn't correctly update in single mode when controlled value was updated externally (#3782)

  • Fix typo in Suggestion.Chips jsdoc (#3798)

  • usePagination: Don't send negative pages if showPages is greater than totalPages (#3793)

@digdir/designsystemet-theme@1.1.3

v1.1.2

27 Jun 11:34
71a131f
Compare
Choose a tag to compare

@digdir/designsystemet@1.1.2

@digdir/designsystemet-css@1.1.2

Patch Changes

  • Preserve visual appearance of components in print, excluding large surface backgrounds (#3765)

@digdir/designsystemet-react@1.1.2

Patch Changes

  • Suggestion: Ensure the hidden <select> element, which is only rendered when Suggestion has a name, gets a deterministic id instead of one that changes on every page load. (#3777)

@digdir/designsystemet-theme@1.1.2

v1.1.1

27 Jun 10:37
4401edf
Compare
Choose a tag to compare

@digdir/designsystemet@1.1.1

Patch Changes

  • Updated non-major dependencies (#3774)

  • Fix zod schema error when creating tokens from config file (#3774)

@digdir/designsystemet-css@1.1.1

Patch Changes

  • Updated non-major dependencies (#3774)

  • Suggestion: Reduced padding around chip remove-button (#3774)

@digdir/designsystemet-react@1.1.1

Patch Changes

  • Updated non-major dependencies (#3774)

  • Tooltip: Will now stay open when mouse is moved to the Tooltip (#3774)

@digdir/designsystemet-theme@1.1.1

v1.1.0

19 Jun 12:09
438563c
Compare
Choose a tag to compare

@digdir/designsystemet@1.1.0

Patch Changes

  • Update dependency @commander-js/extra-typings to v14 (#3734)

  • Add experimental option to generate Tailwind config. (#3710)
    Use --experimental-tailwind when running tokens build to generate.

  • Round --ds-size-* CSS variables by 1px instead of by 0.0625rem. With the (#3681)
    default root font size (16px) the result is the same, but if the user has
    changed the browser's font size we now avoid fractional pixels.

  • Remove unused dependencies (#3737)

  • Updated non-major dependencies (#3696)

  • Updated non-major dependencies (#3732)

@digdir/designsystemet-css@1.1.0

Patch Changes

  • Updated non-major dependencies (#3696)

  • Updated non-major dependencies (#3732)

@digdir/designsystemet-react@1.1.0

Minor Changes

Patch Changes

  • Field: Add asChild prop to change the default rendered element (#3704)

  • Updated non-major dependencies (#3696)

  • fix(Tab): static useId() in rendering (#3731)

  • Updated non-major dependencies (#3732)

@digdir/designsystemet-theme@1.1.0

Patch Changes

  • Round --ds-size-* CSS variables by 1px instead of by 0.0625rem. With the (#3681)
    default root font size (16px) the result is the same, but if the user has
    changed the browser's font size we now avoid fractional pixels.

  • Add export for tailwind config for default theme - @digdir/designsystemet-theme/tailwind. (#3710)