diff --git a/.changeset/odd-hornets-sleep.md b/.changeset/odd-hornets-sleep.md new file mode 100644 index 0000000000..082f9b9408 --- /dev/null +++ b/.changeset/odd-hornets-sleep.md @@ -0,0 +1,6 @@ +--- +"@digdir/designsystemet-css": patch +"@digdir/designsystemet-react": patch +--- + +Select: Rename from `NativeSelect` diff --git a/apps/storefront/app/komponenter/component-list.ts b/apps/storefront/app/komponenter/component-list.ts index 798374a302..d2f614bdd9 100644 --- a/apps/storefront/app/komponenter/component-list.ts +++ b/apps/storefront/app/komponenter/component-list.ts @@ -95,9 +95,9 @@ export const data = [ url: 'https://storybook.designsystemet.no/?path=/docs/komponenter-modal--docs', }, { - title: 'Native Select', + title: 'Select', image: 'Select.svg', - url: 'https://storybook.designsystemet.no/?path=/docs/komponenter-nativeselect--docs', + url: 'https://storybook.designsystemet.no/?path=/docs/komponenter-select--docs', }, { title: 'Pagination', diff --git a/apps/theme/components/Previews/Components/Components.tsx b/apps/theme/components/Previews/Components/Components.tsx index b705fb5c44..c7cb0aa02e 100644 --- a/apps/theme/components/Previews/Components/Components.tsx +++ b/apps/theme/components/Previews/Components/Components.tsx @@ -11,11 +11,11 @@ import { Heading, HelpText, Link, - NativeSelect, Pagination, Paragraph, Radio, Search, + Select, Skeleton, Spinner, Switch, @@ -86,12 +86,12 @@ export const Components = () => {
- + diff --git a/apps/theme/components/ThemeToolbar/ThemeToolbar.tsx b/apps/theme/components/ThemeToolbar/ThemeToolbar.tsx index 35a304fd65..d6a4f595bb 100644 --- a/apps/theme/components/ThemeToolbar/ThemeToolbar.tsx +++ b/apps/theme/components/ThemeToolbar/ThemeToolbar.tsx @@ -1,5 +1,5 @@ import type { CssColor } from '@adobe/leonardo-contrast-colors'; -import { Button, NativeSelect, Tooltip } from '@digdir/designsystemet-react'; +import { Button, Select, Tooltip } from '@digdir/designsystemet-react'; import type { ColorError, ContrastMode, @@ -107,7 +107,7 @@ export const ThemeToolbar = ({ />
- - +
- ))} - +
diff --git a/packages/react/stories/testing.stories.tsx b/packages/react/stories/testing.stories.tsx index 5dc4306d4d..2815fbd22b 100644 --- a/packages/react/stories/testing.stories.tsx +++ b/packages/react/stories/testing.stories.tsx @@ -5,8 +5,8 @@ import { Checkbox, Chip, Combobox, - NativeSelect, Radio, + Select, Switch, Tag, Textfield, @@ -51,11 +51,11 @@ export const MediumRow: StoryFn<{ suffix='suffix' /> - + Sogndal