diff --git a/.changeset/better-bats-eat.md b/.changeset/better-bats-eat.md deleted file mode 100644 index a845151cc8..0000000000 --- a/.changeset/better-bats-eat.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/brave-berries-kneel.md b/.changeset/brave-berries-kneel.md deleted file mode 100644 index 048f42d0b2..0000000000 --- a/.changeset/brave-berries-kneel.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@digdir/designsystemet-react": patch ---- - -**Breadcrumbs**: Now uses `` internally. diff --git a/.changeset/brave-ties-suffer.md b/.changeset/brave-ties-suffer.md deleted file mode 100644 index 601f9797c0..0000000000 --- a/.changeset/brave-ties-suffer.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@digdir/designsystemet-css": patch ---- - -**suggestion**: various changes to chip styling. You no longer need to pass a class to `` diff --git a/.changeset/breezy-badgers-remain.md b/.changeset/breezy-badgers-remain.md deleted file mode 100644 index f1c0bd9851..0000000000 --- a/.changeset/breezy-badgers-remain.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@digdir/designsystemet-css": patch ---- - -**input**: add support for `[aria-readonly='true']` diff --git a/.changeset/calm-weeks-rescue.md b/.changeset/calm-weeks-rescue.md deleted file mode 100644 index 34bb9dd12a..0000000000 --- a/.changeset/calm-weeks-rescue.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@digdir/designsystemet-react": patch ---- - -**Card**: Fix deeply nested anchors in headings causing navigation diff --git a/.changeset/clever-cows-pump.md b/.changeset/clever-cows-pump.md deleted file mode 100644 index 107d634e9e..0000000000 --- a/.changeset/clever-cows-pump.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@digdir/designsystemet-react": patch ---- - -**Input** Support for new attribute `data-indeterminate` to toggle indeterminate state when `type="checkbox"` inside `Field`/`ds-field`. diff --git a/.changeset/clever-knives-sip.md b/.changeset/clever-knives-sip.md deleted file mode 100644 index d285941266..0000000000 --- a/.changeset/clever-knives-sip.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@digdir/designsystemet-css": patch ---- - -**link**: don't set `:visited` color and set default `border-radius` to 0 diff --git a/.changeset/famous-books-hunt.md b/.changeset/famous-books-hunt.md deleted file mode 100644 index d2b340e422..0000000000 --- a/.changeset/famous-books-hunt.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@digdir/designsystemet-css": patch ---- - -**field**: add new css variables: - `--dsc-field-counter-over: '%d tegn for mye';` - `--dsc-field-counter-under: '%d tegn igjen';` diff --git a/.changeset/flat-bees-sniff.md b/.changeset/flat-bees-sniff.md deleted file mode 100644 index 0344769fb6..0000000000 --- a/.changeset/flat-bees-sniff.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@digdir/designsystemet-css": patch -"@digdir/designsystemet-react": patch ---- - -Support for new package with custom elements and observers for Designsystemet. \ No newline at end of file diff --git a/.changeset/gentle-eagles-cry.md b/.changeset/gentle-eagles-cry.md deleted file mode 100644 index a4ffc39cd4..0000000000 --- a/.changeset/gentle-eagles-cry.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@digdir/designsystemet-react": patch ---- - -**ToggleGroup**: Updated DOM structure and now uses new web observer `data-toggle-group`. diff --git a/.changeset/icy-taxes-see.md b/.changeset/icy-taxes-see.md deleted file mode 100644 index d86d0e0f7b..0000000000 --- a/.changeset/icy-taxes-see.md +++ /dev/null @@ -1,32 +0,0 @@ ---- -"@digdir/designsystemet-web": patch ---- - -New package with custom elements and observers for Designsystemet. - -| Custom elements | -| --- | -| `ds-breadcrumbs` | -| `ds-error-summary` | -| `ds-field` | -| `ds-pagination` | -| `ds-suggestion` | -| `ds-tabs` | -| `ds-tablist` | -| `ds-tab` | -| `ds-tabpanel` | - -| Observer | | -| --- | --- | -| `data-clickdelegatefor` | Used for delegating click event | -| `data-toggle-group` | Used for adding arrow navigation plus Enter-key support | -| `data-tooltip`| Used for adding tooltip text on element | -| `readonly` | Used for fixing `readonly` support on `select` and `input` elements | -| `popover`| Event listnener on `popovertarget` for placement of `ds-floating` elements. | - -| Polyfill | | -| --- | --- | -| `details` & `summary` | Bugfix for Firefox. | -| `dialog` | Support for [closedby="any"](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/closedBy#any). | -| `command` & `commandfor` | Support for [invokers](https://www.npmjs.com/package/invokers-polyfill/v/0.5.2). | - diff --git a/.changeset/late-ants-juggle.md b/.changeset/late-ants-juggle.md deleted file mode 100644 index 97a7277917..0000000000 --- a/.changeset/late-ants-juggle.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@digdir/designsystemet-css": patch ---- - -**dialog**: style `.ds-dialog button[command='close']:empty::before` with X-icon diff --git a/.changeset/long-moose-join.md b/.changeset/long-moose-join.md deleted file mode 100644 index 2af791d48c..0000000000 --- a/.changeset/long-moose-join.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@digdir/designsystemet-css": "patch" ---- - -**toggle-group**: remove `--dsc-togglegroup-text-color`, as this was not used diff --git a/.changeset/loud-ligers-battle.md b/.changeset/loud-ligers-battle.md deleted file mode 100644 index f787ef8b7d..0000000000 --- a/.changeset/loud-ligers-battle.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@digdir/designsystemet-css": patch -"@digdir/designsystemet-react": patch ---- - -**Card**: fix issues with deeply nested heading links. Now uses web observer `data-clickdelegatefor` internally. diff --git a/.changeset/moody-colts-change.md b/.changeset/moody-colts-change.md deleted file mode 100644 index a845151cc8..0000000000 --- a/.changeset/moody-colts-change.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/moody-horses-laugh.md b/.changeset/moody-horses-laugh.md deleted file mode 100644 index 413f0013c2..0000000000 --- a/.changeset/moody-horses-laugh.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@digdir/designsystemet-css": patch ---- - -**toggle-group**: add styling for new DOM structure introduced in `@digdir/designsystemet-web` diff --git a/.changeset/neat-boats-learn.md b/.changeset/neat-boats-learn.md deleted file mode 100644 index 8999b110ad..0000000000 --- a/.changeset/neat-boats-learn.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@digdir/designsystemet-react": patch ---- - -**Pagination**: Now uses `` internally. diff --git a/.changeset/nice-kings-sneeze.md b/.changeset/nice-kings-sneeze.md deleted file mode 100644 index 8e2781eaa0..0000000000 --- a/.changeset/nice-kings-sneeze.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@digdir/designsystemet-css": patch ---- - -**popover**: add `--dsc-popover-placement` with default value `top` diff --git a/.changeset/odd-days-complain.md b/.changeset/odd-days-complain.md deleted file mode 100644 index 42bb1aa7cb..0000000000 --- a/.changeset/odd-days-complain.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@digdir/designsystemet-css": patch ---- - -**field**: add styling for `` counter. diff --git a/.changeset/old-eyes-listen.md b/.changeset/old-eyes-listen.md deleted file mode 100644 index 7bdb26a352..0000000000 --- a/.changeset/old-eyes-listen.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@digdir/designsystemet-react": patch ---- - -Add `suppressHydrationWarning` to various components. This is to support `@digdir/designsystemet-web` being used internally. diff --git a/.changeset/public-carpets-crash.md b/.changeset/public-carpets-crash.md deleted file mode 100644 index c2fe1ad14b..0000000000 --- a/.changeset/public-carpets-crash.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@digdir/designsystemet-react": patch -"@digdir/designsystemet": patch ---- - -update npm non-major dependencies diff --git a/.changeset/quiet-crabs-call.md b/.changeset/quiet-crabs-call.md deleted file mode 100644 index be0e402456..0000000000 --- a/.changeset/quiet-crabs-call.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@digdir/designsystemet-css": patch ---- - -**fieldset**: add `--dsc-fieldset-gap` with default value `var(--ds-size-4)` diff --git a/.changeset/rare-actors-hunt.md b/.changeset/rare-actors-hunt.md deleted file mode 100644 index 258bb10e4d..0000000000 --- a/.changeset/rare-actors-hunt.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@digdir/designsystemet-react": patch ---- - -**Field.Counter**: Deprecate `hint` diff --git a/.changeset/real-worms-act.md b/.changeset/real-worms-act.md deleted file mode 100644 index fa2e6585be..0000000000 --- a/.changeset/real-worms-act.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@digdir/designsystemet-react": patch ---- - -**Field**: Deprecated `asChild` as this component now uses `` internally. diff --git a/.changeset/rich-ravens-remain.md b/.changeset/rich-ravens-remain.md deleted file mode 100644 index ffc3daae3f..0000000000 --- a/.changeset/rich-ravens-remain.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@digdir/designsystemet-css": patch ---- - -**tooltip**: add `--dsc-tooltip-placement` with default value `top` diff --git a/.changeset/rude-yaks-refuse.md b/.changeset/rude-yaks-refuse.md deleted file mode 100644 index 123a474cfc..0000000000 --- a/.changeset/rude-yaks-refuse.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@digdir/designsystemet-css": patch ---- - -**tabs**: add support for `` diff --git a/.changeset/silent-coins-begin.md b/.changeset/silent-coins-begin.md deleted file mode 100644 index 8fdc9085bb..0000000000 --- a/.changeset/silent-coins-begin.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@digdir/designsystemet-react": patch ---- - -**Tabs**: Now uses `` and related web components internally diff --git a/.changeset/silent-needles-smash.md b/.changeset/silent-needles-smash.md deleted file mode 100644 index 663d2854da..0000000000 --- a/.changeset/silent-needles-smash.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@digdir/designsystemet-react": patch ---- - -**ErrorSummary**: Deprecate `asChild` as this component now uses `` internally. diff --git a/.changeset/silver-monkeys-hammer.md b/.changeset/silver-monkeys-hammer.md deleted file mode 100644 index 0620ccffbc..0000000000 --- a/.changeset/silver-monkeys-hammer.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@digdir/designsystemet-css": patch ---- - -**breadcrumbs**: don't remove underline on `a[aria-current='page']`, but on `li:last-child a` diff --git a/.changeset/slimy-berries-run.md b/.changeset/slimy-berries-run.md deleted file mode 100644 index 192e556a95..0000000000 --- a/.changeset/slimy-berries-run.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@digdir/designsystemet-react": patch ---- - -**Select**: Deprecate `readOnly`. Use `aria-readonly` instead. diff --git a/.changeset/small-baboons-grin.md b/.changeset/small-baboons-grin.md deleted file mode 100644 index 7880e841b3..0000000000 --- a/.changeset/small-baboons-grin.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@digdir/designsystemet-react": patch ---- - -**RovingFocus**: Deprecate component. This will be removed in the next major version diff --git a/.changeset/spicy-bats-punch.md b/.changeset/spicy-bats-punch.md deleted file mode 100644 index 714feeed29..0000000000 --- a/.changeset/spicy-bats-punch.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@digdir/designsystemet-react": patch ---- - -**Tooltip**: Deprecate `open`. This should not be used on Tooltip. Use a `Popover` instead. diff --git a/.changeset/stupid-tigers-judge.md b/.changeset/stupid-tigers-judge.md deleted file mode 100644 index 738ed89be0..0000000000 --- a/.changeset/stupid-tigers-judge.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@digdir/designsystemet-react": patch ---- - -**Tooltip**: Now uses `data-tooltip` from `@digdir/designsystemet-web` internally diff --git a/.changeset/swift-planes-admire.md b/.changeset/swift-planes-admire.md deleted file mode 100644 index bad273f0bf..0000000000 --- a/.changeset/swift-planes-admire.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@digdir/designsystemet-react": patch ---- - -**Details**: Use `
` and `` internally. diff --git a/.changeset/ten-crabs-wave.md b/.changeset/ten-crabs-wave.md deleted file mode 100644 index 45000cb4b6..0000000000 --- a/.changeset/ten-crabs-wave.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@digdir/designsystemet-react": patch ---- - -**Dialog**: Deprecate `data-command="close"`. Use `command="close"` and `commandfor="DIALOG-ID"` instead. diff --git a/.changeset/twenty-wasps-do.md b/.changeset/twenty-wasps-do.md deleted file mode 100644 index 9667fd25a3..0000000000 --- a/.changeset/twenty-wasps-do.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@digdir/designsystemet-css": patch ---- - -**dropdown**: add `--dsc-dropdown-placement` with default value `bottom` diff --git a/.changeset/unlucky-ties-laugh.md b/.changeset/unlucky-ties-laugh.md deleted file mode 100644 index 1bf4c687c6..0000000000 --- a/.changeset/unlucky-ties-laugh.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@digdir/designsystemet-css": patch ---- - -added class `ds-floating`, which is used on floating elements internally diff --git a/.changeset/wet-crabs-kneel.md b/.changeset/wet-crabs-kneel.md deleted file mode 100644 index 90fbb8f875..0000000000 --- a/.changeset/wet-crabs-kneel.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@digdir/designsystemet-css": patch ---- - -**pagination**: -- add `--dsc-pagination-ellipsis` with default value `'\2026'` -- set `--dsc-pagination-label: 'Bla i sider';` if language is `'nn'`, `'nb'` or `'no'` diff --git a/apps/www/app/content/components-docs/changelog.mdx b/apps/www/app/content/components-docs/changelog.mdx index 0217da4ddd..661e548e0d 100644 --- a/apps/www/app/content/components-docs/changelog.mdx +++ b/apps/www/app/content/components-docs/changelog.mdx @@ -1,6 +1,6 @@ --- title: "Changelog" -latestVersion: 1.11.1 +latestVersion: 1.11.2 ---
+## 1.11.2 + + + +### @digdir/designsystemet + +#### Patch Changes + +- update npm non-major dependencies ([#4497](https://github.com/digdir/designsystemet/pull/4497)) + +- Updated dependencies []: + - @digdir/designsystemet-types@1.11.2 + + + +### @digdir/designsystemet-css + +#### Patch Changes + +- **suggestion**: various changes to chip styling. You no longer need to pass a class to `` ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- **input**: add support for `[aria-readonly='true']` ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- **link**: don't set `:visited` color and set default `border-radius` to 0 ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- **field**: add new css variables: ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + `--dsc-field-counter-over: '%d tegn for mye';` + `--dsc-field-counter-under: '%d tegn igjen';` + +- Support for new package with custom elements and observers for Designsystemet. ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- **dialog**: style `.ds-dialog button[command='close']:empty::before` with X-icon ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- **toggle-group**: remove `--dsc-togglegroup-text-color`, as this was not used ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- **Card**: fix issues with deeply nested heading links. Now uses web observer `data-clickdelegatefor` internally. ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- **toggle-group**: add styling for new DOM structure introduced in `@digdir/designsystemet-web` ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- **popover**: add `--dsc-popover-placement` with default value `top` ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- **field**: add styling for `` counter. ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- **fieldset**: add `--dsc-fieldset-gap` with default value `var(--ds-size-4)` ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- **tooltip**: add `--dsc-tooltip-placement` with default value `top` ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- **tabs**: add support for `` ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- **breadcrumbs**: don't remove underline on `a[aria-current='page']`, but on `li:last-child a` ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- **dropdown**: add `--dsc-dropdown-placement` with default value `bottom` ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- added class `ds-floating`, which is used on floating elements internally ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- **pagination**: ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + - add `--dsc-pagination-ellipsis` with default value `'\2026'` + - set `--dsc-pagination-label: 'Bla i sider';` if language is `'nn'`, `'nb'` or `'no'` +- Updated dependencies []: + - @digdir/designsystemet-types@1.11.2 + + + +### @digdir/designsystemet-react + +#### Patch Changes + +- **Breadcrumbs**: Now uses `` internally. ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- **Card**: Fix deeply nested anchors in headings causing navigation ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- **Input** Support for new attribute `data-indeterminate` to toggle indeterminate state when `type="checkbox"` inside `Field`/`ds-field`. ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- Support for new package with custom elements and observers for Designsystemet. ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- **ToggleGroup**: Updated DOM structure and now uses new web observer `data-toggle-group`. ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- **Card**: fix issues with deeply nested heading links. Now uses web observer `data-clickdelegatefor` internally. ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- **Pagination**: Now uses `` internally. ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- Add `suppressHydrationWarning` to various components. This is to support `@digdir/designsystemet-web` being used internally. ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- update npm non-major dependencies ([#4497](https://github.com/digdir/designsystemet/pull/4497)) + +- **Field.Counter**: Deprecate `hint` ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- **Field**: Deprecated `asChild` as this component now uses `` internally. ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- **Tabs**: Now uses `` and related web components internally ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- **ErrorSummary**: Deprecate `asChild` as this component now uses `` internally. ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- **Select**: Deprecate `readOnly`. Use `aria-readonly` instead. ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- **RovingFocus**: Deprecate component. This will be removed in the next major version ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- **Tooltip**: Deprecate `open`. This should not be used on Tooltip. Use a `Popover` instead. ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- **Tooltip**: Now uses `data-tooltip` from `@digdir/designsystemet-web` internally ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- **Details**: Use `
` and `` internally. ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- **Dialog**: Deprecate `data-command="close"`. Use `command="close"` and `commandfor="DIALOG-ID"` instead. ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- Updated dependencies [[`6bde739`](https://github.com/digdir/designsystemet/commit/6bde739dee0adc79ac7a275ec00e0287bb4c2891)]: + - @digdir/designsystemet-web@1.11.2 + - @digdir/designsystemet-types@1.11.2 + + + +### @digdir/designsystemet-web + +#### Patch Changes + +- New package with custom elements and observers for Designsystemet. ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + + | Custom elements | + | ------------------ | + | `ds-breadcrumbs` | + | `ds-error-summary` | + | `ds-field` | + | `ds-pagination` | + | `ds-suggestion` | + | `ds-tabs` | + | `ds-tablist` | + | `ds-tab` | + | `ds-tabpanel` | + + | Observer | | + | ----------------------- | --------------------------------------------------------------------------- | + | `data-clickdelegatefor` | Used for delegating click event | + | `data-toggle-group` | Used for adding arrow navigation plus Enter-key support | + | `data-tooltip` | Used for adding tooltip text on element | + | `readonly` | Used for fixing `readonly` support on `select` and `input` elements | + | `popover` | Event listnener on `popovertarget` for placement of `ds-floating` elements. | + + | Polyfill | | + | ------------------------ | -------------------------------------------------------------------------------------------------------------- | + | `details` & `summary` | Bugfix for Firefox. | + | `dialog` | Support for [closedby="any"](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/closedBy#any). | + | `command` & `commandfor` | Support for [invokers](https://www.npmjs.com/package/invokers-polyfill/v/0.5.2). | + +
+ +
+ ## 1.11.1 diff --git a/apps/www/app/content/schemas/cli/1.11.2.json b/apps/www/app/content/schemas/cli/1.11.2.json new file mode 100644 index 0000000000..6c95187fb6 --- /dev/null +++ b/apps/www/app/content/schemas/cli/1.11.2.json @@ -0,0 +1,209 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "object", + "properties": { + "$schema": { + "type": "string" + }, + "outDir": { + "type": "string", + "description": "Path to the output directory for the created design tokens" + }, + "themes": { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": { + "type": "object", + "properties": { + "colors": { + "type": "object", + "properties": { + "main": { + "type": "object", + "propertyNames": { + "type": "string", + "pattern": "^(?!(?:neutral|success|warning|danger|info)$)" + }, + "additionalProperties": { + "description": "A hex color, which is used for creating a color scale. Invalid color names: neutral, success, warning, danger, info" + }, + "description": "An object with one or more color definitions. The property name is used as the color name." + }, + "support": { + "default": {}, + "type": "object", + "propertyNames": { + "type": "string", + "pattern": "^(?!(?:neutral|success|warning|danger|info)$)" + }, + "additionalProperties": { + "description": "A hex color, which is used for creating a color scale. Invalid color names: neutral, success, warning, danger, info" + }, + "description": "An object with one or more color definitions. The property name is used as the color name." + }, + "neutral": { + "description": "A hex color, which is used for creating a color scale." + } + }, + "required": [ + "main", + "support", + "neutral" + ], + "additionalProperties": false, + "description": "Defines the colors for this theme" + }, + "typography": { + "type": "object", + "properties": { + "fontFamily": { + "type": "string", + "description": "Sets the font-family for this theme" + } + }, + "required": [ + "fontFamily" + ], + "additionalProperties": false, + "description": "Defines the typography for a given theme" + }, + "borderRadius": { + "type": "number", + "description": "Defines the border-radius for this theme" + }, + "overrides": { + "type": "object", + "properties": { + "colors": { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": { + "type": "object", + "propertyNames": { + "type": "string", + "enum": [ + "background-default", + "background-tinted", + "surface-default", + "surface-tinted", + "surface-hover", + "surface-active", + "border-subtle", + "border-default", + "border-strong", + "text-subtle", + "text-default", + "base-default", + "base-hover", + "base-active", + "base-contrast-subtle", + "base-contrast-default" + ] + }, + "additionalProperties": { + "type": "object", + "properties": { + "light": { + "description": "A hex color that overrides light mode" + }, + "dark": { + "description": "A hex color that overrides dark mode" + } + }, + "additionalProperties": false, + "description": "Override values for semantic color tokens like \"background-subtle\", \"border-default\", etc." + }, + "description": "The name of the color to add overrides for, e.g. \"accent\"" + }, + "description": "An object with color names as keys" + }, + "severity": { + "description": "An object with severity color names as keys", + "type": "object", + "propertyNames": { + "type": "string", + "enum": [ + "info", + "success", + "warning", + "danger" + ] + }, + "additionalProperties": { + "description": "A hex color, which is used for creating a color scale" + } + }, + "linkVisited": { + "type": "object", + "properties": { + "light": { + "description": "A hex color that overrides light mode" + }, + "dark": { + "description": "A hex color that overrides dark mode" + } + }, + "additionalProperties": false, + "description": "Overrides for the \"link-visited\" color" + }, + "focus": { + "type": "object", + "properties": { + "inner": { + "description": "Overrides for the \"focus-inner\" color", + "type": "object", + "properties": { + "light": { + "description": "A hex color that overrides light mode" + }, + "dark": { + "description": "A hex color that overrides dark mode" + } + }, + "additionalProperties": false + }, + "outer": { + "description": "Overrides for the \"focus-outer\" color", + "type": "object", + "properties": { + "light": { + "description": "A hex color that overrides light mode" + }, + "dark": { + "description": "A hex color that overrides dark mode" + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false, + "description": "Overrides for the focus colors" + } + }, + "additionalProperties": false, + "description": "Overrides for generated design tokens. Currently only supports colors defined in your theme" + } + }, + "required": [ + "colors" + ], + "additionalProperties": false, + "description": "An object defining a theme. The property name holding the object becomes the theme name." + }, + "description": "An object with one or more themes. Each property defines a theme, and the property name is used as the theme name." + }, + "clean": { + "type": "boolean", + "description": "Delete the output directory before building or creating tokens" + } + }, + "required": [ + "outDir", + "themes" + ], + "additionalProperties": false +} \ No newline at end of file diff --git a/design-tokens/$designsystemet.jsonc b/design-tokens/$designsystemet.jsonc index f32b2a1576..33f4d90add 100644 --- a/design-tokens/$designsystemet.jsonc +++ b/design-tokens/$designsystemet.jsonc @@ -1,4 +1,4 @@ { "name": "@digdir/designsystemet", - "version": "1.11.1" + "version": "1.11.2" } \ No newline at end of file diff --git a/internal/digdir/themes/colors.d.ts b/internal/digdir/themes/colors.d.ts index 9e0011d778..50af05206b 100644 --- a/internal/digdir/themes/colors.d.ts +++ b/internal/digdir/themes/colors.d.ts @@ -1,5 +1,5 @@ /* This file is deprecated and will be removed in a future release. Use types.d.ts instead */ -/* build: v1.11.1 */ +/* build: v1.11.2 */ import type {} from '@digdir/designsystemet-types'; // Augment types based on theme diff --git a/internal/digdir/themes/digdir.css b/internal/digdir/themes/digdir.css index a6a27b8d60..b392b2c59d 100644 --- a/internal/digdir/themes/digdir.css +++ b/internal/digdir/themes/digdir.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /* -build: v1.11.1 -design-tokens: v1.11.1 +build: v1.11.2 +design-tokens: v1.11.2 */ @layer ds.theme.size-mode { diff --git a/internal/digdir/themes/types.d.ts b/internal/digdir/themes/types.d.ts index ceb080f3b3..94803d56fc 100644 --- a/internal/digdir/themes/types.d.ts +++ b/internal/digdir/themes/types.d.ts @@ -1,4 +1,4 @@ -/* build: v1.11.1 */ +/* build: v1.11.2 */ import type {} from '@digdir/designsystemet-types'; // Augment types based on theme diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.md index 6f0d8baa77..c547c368fc 100644 --- a/packages/cli/CHANGELOG.md +++ b/packages/cli/CHANGELOG.md @@ -1,5 +1,14 @@ # Change Log +## 1.11.2 + +### Patch Changes + +- update npm non-major dependencies ([#4497](https://github.com/digdir/designsystemet/pull/4497)) + +- Updated dependencies []: + - @digdir/designsystemet-types@1.11.2 + ## 1.11.1 ### Patch Changes diff --git a/packages/cli/package.json b/packages/cli/package.json index b324998576..56d2588c13 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@digdir/designsystemet", - "version": "1.11.1", + "version": "1.11.2", "description": "CLI for Designsystemet", "author": "Designsystemet team", "engines": { diff --git a/packages/css/CHANGELOG.md b/packages/css/CHANGELOG.md index c113417203..675f4d4ebd 100644 --- a/packages/css/CHANGELOG.md +++ b/packages/css/CHANGELOG.md @@ -1,5 +1,51 @@ # Change Log +## 1.11.2 + +### Patch Changes + +- **suggestion**: various changes to chip styling. You no longer need to pass a class to `` ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- **input**: add support for `[aria-readonly='true']` ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- **link**: don't set `:visited` color and set default `border-radius` to 0 ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- **field**: add new css variables: ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + `--dsc-field-counter-over: '%d tegn for mye';` + `--dsc-field-counter-under: '%d tegn igjen';` + +- Support for new package with custom elements and observers for Designsystemet. ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- **dialog**: style `.ds-dialog button[command='close']:empty::before` with X-icon ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- **toggle-group**: remove `--dsc-togglegroup-text-color`, as this was not used ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- **Card**: fix issues with deeply nested heading links. Now uses web observer `data-clickdelegatefor` internally. ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- **toggle-group**: add styling for new DOM structure introduced in `@digdir/designsystemet-web` ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- **popover**: add `--dsc-popover-placement` with default value `top` ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- **field**: add styling for `` counter. ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- **fieldset**: add `--dsc-fieldset-gap` with default value `var(--ds-size-4)` ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- **tooltip**: add `--dsc-tooltip-placement` with default value `top` ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- **tabs**: add support for `` ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- **breadcrumbs**: don't remove underline on `a[aria-current='page']`, but on `li:last-child a` ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- **dropdown**: add `--dsc-dropdown-placement` with default value `bottom` ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- added class `ds-floating`, which is used on floating elements internally ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- **pagination**: ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + - add `--dsc-pagination-ellipsis` with default value `'\2026'` + - set `--dsc-pagination-label: 'Bla i sider';` if language is `'nn'`, `'nb'` or `'no'` +- Updated dependencies []: + - @digdir/designsystemet-types@1.11.2 + ## 1.11.1 ### Patch Changes diff --git a/packages/css/package.json b/packages/css/package.json index 19fb5d23b8..4363017018 100644 --- a/packages/css/package.json +++ b/packages/css/package.json @@ -1,6 +1,6 @@ { "name": "@digdir/designsystemet-css", - "version": "1.11.1", + "version": "1.11.2", "description": "CSS for Designsystemet", "author": "Designsystemet team", "repository": { diff --git a/packages/css/theme/colors.d.ts b/packages/css/theme/colors.d.ts index 8d49208aec..144910755f 100644 --- a/packages/css/theme/colors.d.ts +++ b/packages/css/theme/colors.d.ts @@ -1,5 +1,5 @@ /* This file is deprecated and will be removed in a future release. Use types.d.ts instead */ -/* build: v1.11.1 */ +/* build: v1.11.2 */ import type {} from '@digdir/designsystemet-types'; // Augment types based on theme diff --git a/packages/css/theme/designsystemet.css b/packages/css/theme/designsystemet.css index 2e7308ba69..f8f3bee449 100644 --- a/packages/css/theme/designsystemet.css +++ b/packages/css/theme/designsystemet.css @@ -1,7 +1,7 @@ @charset "UTF-8"; /* -build: v1.11.1 -design-tokens: v1.11.1 +build: v1.11.2 +design-tokens: v1.11.2 */ @layer ds.theme.size-mode { diff --git a/packages/css/theme/types.d.ts b/packages/css/theme/types.d.ts index 82b601cd42..0949caf14f 100644 --- a/packages/css/theme/types.d.ts +++ b/packages/css/theme/types.d.ts @@ -1,4 +1,4 @@ -/* build: v1.11.1 */ +/* build: v1.11.2 */ import type {} from '@digdir/designsystemet-types'; // Augment types based on theme diff --git a/packages/react/CHANGELOG.md b/packages/react/CHANGELOG.md index cb8d3f9e2e..117f14bbcd 100644 --- a/packages/react/CHANGELOG.md +++ b/packages/react/CHANGELOG.md @@ -1,5 +1,51 @@ # Change Log +## 1.11.2 + +### Patch Changes + +- **Breadcrumbs**: Now uses `` internally. ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- **Card**: Fix deeply nested anchors in headings causing navigation ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- **Input** Support for new attribute `data-indeterminate` to toggle indeterminate state when `type="checkbox"` inside `Field`/`ds-field`. ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- Support for new package with custom elements and observers for Designsystemet. ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- **ToggleGroup**: Updated DOM structure and now uses new web observer `data-toggle-group`. ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- **Card**: fix issues with deeply nested heading links. Now uses web observer `data-clickdelegatefor` internally. ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- **Pagination**: Now uses `` internally. ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- Add `suppressHydrationWarning` to various components. This is to support `@digdir/designsystemet-web` being used internally. ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- update npm non-major dependencies ([#4497](https://github.com/digdir/designsystemet/pull/4497)) + +- **Field.Counter**: Deprecate `hint` ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- **Field**: Deprecated `asChild` as this component now uses `` internally. ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- **Tabs**: Now uses `` and related web components internally ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- **ErrorSummary**: Deprecate `asChild` as this component now uses `` internally. ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- **Select**: Deprecate `readOnly`. Use `aria-readonly` instead. ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- **RovingFocus**: Deprecate component. This will be removed in the next major version ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- **Tooltip**: Deprecate `open`. This should not be used on Tooltip. Use a `Popover` instead. ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- **Tooltip**: Now uses `data-tooltip` from `@digdir/designsystemet-web` internally ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- **Details**: Use `
` and `` internally. ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- **Dialog**: Deprecate `data-command="close"`. Use `command="close"` and `commandfor="DIALOG-ID"` instead. ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + +- Updated dependencies [[`6bde739`](https://github.com/digdir/designsystemet/commit/6bde739dee0adc79ac7a275ec00e0287bb4c2891)]: + - @digdir/designsystemet-web@1.11.2 + - @digdir/designsystemet-types@1.11.2 + ## 1.11.1 ### Patch Changes diff --git a/packages/react/package.json b/packages/react/package.json index d46dc3e5a5..db28278e42 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,7 +1,7 @@ { "name": "@digdir/designsystemet-react", "type": "module", - "version": "1.11.1", + "version": "1.11.2", "description": "React components for Designsystemet", "author": "Designsystemet team", "repository": { diff --git a/packages/types/CHANGELOG.md b/packages/types/CHANGELOG.md index 98cee9173d..621bdcccab 100644 --- a/packages/types/CHANGELOG.md +++ b/packages/types/CHANGELOG.md @@ -1,5 +1,7 @@ # @digdir/designsystemet-types +## 1.11.2 + ## 1.11.1 ## 1.11.0 diff --git a/packages/types/package.json b/packages/types/package.json index 9655f73536..b233abdd21 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@digdir/designsystemet-types", - "version": "1.11.1", + "version": "1.11.2", "description": "Types used by Designsystemet themes", "author": "Designsystemet team", "repository": { diff --git a/packages/web/CHANGELOG.md b/packages/web/CHANGELOG.md new file mode 100644 index 0000000000..f6249ef10b --- /dev/null +++ b/packages/web/CHANGELOG.md @@ -0,0 +1,65 @@ +# @digdir/designsystemet-web + +## 1.11.2 + +### Patch Changes + +- New package with custom elements and observers for Designsystemet. ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + + | Custom elements | + | ------------------ | + | `ds-breadcrumbs` | + | `ds-error-summary` | + | `ds-field` | + | `ds-pagination` | + | `ds-suggestion` | + | `ds-tabs` | + | `ds-tablist` | + | `ds-tab` | + | `ds-tabpanel` | + + | Observer | | + | ----------------------- | --------------------------------------------------------------------------- | + | `data-clickdelegatefor` | Used for delegating click event | + | `data-toggle-group` | Used for adding arrow navigation plus Enter-key support | + | `data-tooltip` | Used for adding tooltip text on element | + | `readonly` | Used for fixing `readonly` support on `select` and `input` elements | + | `popover` | Event listnener on `popovertarget` for placement of `ds-floating` elements. | + + | Polyfill | | + | ------------------------ | -------------------------------------------------------------------------------------------------------------- | + | `details` & `summary` | Bugfix for Firefox. | + | `dialog` | Support for [closedby="any"](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/closedBy#any). | + | `command` & `commandfor` | Support for [invokers](https://www.npmjs.com/package/invokers-polyfill/v/0.5.2). | + +## 1.11.2 + +### Patch Changes + +- New package with custom elements and observers for Designsystemet. ([#4409](https://github.com/digdir/designsystemet/pull/4409)) + + | Custom elements | + | ------------------ | + | `ds-breadcrumbs` | + | `ds-error-summary` | + | `ds-field` | + | `ds-pagination` | + | `ds-suggestion` | + | `ds-tabs` | + | `ds-tablist` | + | `ds-tab` | + | `ds-tabpanel` | + + | Observer | | + | ----------------------- | --------------------------------------------------------------------------- | + | `data-clickdelegatefor` | Used for delegating click event | + | `data-toggle-group` | Used for adding arrow navigation plus Enter-key support | + | `data-tooltip` | Used for adding tooltip text on element | + | `readonly` | Used for fixing `readonly` support on `select` and `input` elements | + | `popover` | Event listnener on `popovertarget` for placement of `ds-floating` elements. | + + | Polyfill | | + | ------------------------ | -------------------------------------------------------------------------------------------------------------- | + | `details` & `summary` | Bugfix for Firefox. | + | `dialog` | Support for [closedby="any"](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/closedBy#any). | + | `command` & `commandfor` | Support for [invokers](https://www.npmjs.com/package/invokers-polyfill/v/0.5.2). | diff --git a/packages/web/package.json b/packages/web/package.json index e3f4166653..61aa9f545b 100644 --- a/packages/web/package.json +++ b/packages/web/package.json @@ -1,7 +1,7 @@ { "name": "@digdir/designsystemet-web", "type": "module", - "version": "0.0.1", + "version": "1.11.2", "description": "Javascript for Designsystemet", "author": "Designsystemet team", "repository": {