Releases: digdir/designsystemet
v1.1.9
v1.1.8
@digdir/designsystemet@1.1.8
Patch Changes
- Add typings for
ColorScheme
(used fordata-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 usingreact-types.d.ts
(#3879)
@digdir/designsystemet-theme@1.1.8
v1.1.7
@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
anduseMediaQuery
. Use utility libraries or create your own utility function. (#3873)
@digdir/designsystemet-theme@1.1.7
v1.1.6
@digdir/designsystemet@1.1.6
Patch Changes
-
Added new type declaration files for theme types when building tokens;
types.d.ts
. Use this instead ofcolors.d.ts
. (#3837) -
Deprecate
colors.d.ts
fromtokens build
. Replaced bytypes.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
fromtokens build
. Replaced bytypes.d.ts
. (#3837)
v1.1.5
@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 isdisplay: flex
) as parent - with
data-border
adjustsborder-radius
according toborder-width
- sorting icon never shrinks, even when using
-
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
, useselected
instead - Deprecated
defaultValue
, usedefaultSelected
instead - Deprecated
onValueChange
, useonSelectedChange
instead - Deprecated
Suggestion.Chips
, userenderSelected
onSuggestion
instead - Add
onBeforeMatch
toSuggestion
for custom matching - Revert input
value
to currentselected
when no match
- Deprecated
@digdir/designsystemet-theme@1.1.5
v1.1.4
@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.
- Note: Users should run
-
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 nowskip-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 nowtoggle-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.
- Note: Users should run
v1.1.3
@digdir/designsystemet@1.1.3
@digdir/designsystemet-css@1.1.3
Patch Changes
-
Field: The gap between
label
andRadio
/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 thantotalPages
(#3793)
@digdir/designsystemet-theme@1.1.3
v1.1.2
@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 whenSuggestion
has aname
, gets a deterministic id instead of one that changes on every page load. (#3777)
@digdir/designsystemet-theme@1.1.2
v1.1.1
@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
@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 runningtokens 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
@digdir/designsystemet-react@1.1.0
Minor Changes
-
Suggestion: API has changed to support multiple values. See Storybook for documentation (#3675)
-
MultiSuggestion: Remove component. Use
<Suggestion>
withmultiple
. See Storybook for documentation (#3675)
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)