@navikt/ds-react 8.1.0 → 8.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/accordion/Accordion.d.ts +9 -7
- package/cjs/accordion/Accordion.js +4 -1
- package/cjs/accordion/Accordion.js.map +1 -1
- package/cjs/accordion/index.d.ts +2 -4
- package/cjs/accordion/index.js +3 -6
- package/cjs/accordion/index.js.map +1 -1
- package/cjs/chat/Chat.d.ts +4 -2
- package/cjs/chat/Chat.js +2 -1
- package/cjs/chat/Chat.js.map +1 -1
- package/cjs/chat/index.d.ts +2 -2
- package/cjs/chat/index.js +1 -2
- package/cjs/chat/index.js.map +1 -1
- package/cjs/chips/Chips.d.ts +7 -6
- package/cjs/chips/Chips.js +3 -1
- package/cjs/chips/Chips.js.map +1 -1
- package/cjs/chips/index.d.ts +2 -3
- package/cjs/chips/index.js +2 -4
- package/cjs/chips/index.js.map +1 -1
- package/cjs/collapsible/Collapsible.d.ts +6 -4
- package/cjs/collapsible/Collapsible.js +4 -2
- package/cjs/collapsible/Collapsible.js.map +1 -1
- package/cjs/collapsible/index.d.ts +2 -3
- package/cjs/collapsible/index.js +2 -4
- package/cjs/collapsible/index.js.map +1 -1
- package/cjs/data/action-bar/root/DataActionBarRoot.d.ts +27 -0
- package/cjs/data/action-bar/root/DataActionBarRoot.js +49 -0
- package/cjs/data/action-bar/root/DataActionBarRoot.js.map +1 -0
- package/cjs/data/filter/index.d.ts +2 -0
- package/cjs/data/filter/index.js +8 -0
- package/cjs/data/filter/index.js.map +1 -0
- package/cjs/data/filter/item/DataFilterItem.d.ts +5 -0
- package/cjs/data/filter/item/DataFilterItem.js +24 -0
- package/cjs/data/filter/item/DataFilterItem.js.map +1 -0
- package/cjs/data/filter/root/DataFilterRoot.d.ts +23 -0
- package/cjs/data/filter/root/DataFilterRoot.js +28 -0
- package/cjs/data/filter/root/DataFilterRoot.js.map +1 -0
- package/cjs/data/stories/dummy-data.d.ts +17 -0
- package/cjs/data/stories/dummy-data.js +1526 -0
- package/cjs/data/stories/dummy-data.js.map +1 -0
- package/cjs/data/table/caption/DataTableCaption.d.ts +5 -0
- package/cjs/data/table/caption/DataTableCaption.js +55 -0
- package/cjs/data/table/caption/DataTableCaption.js.map +1 -0
- package/cjs/data/table/index.d.ts +2 -0
- package/cjs/data/table/index.js +16 -0
- package/cjs/data/table/index.js.map +1 -0
- package/cjs/data/table/root/DataTableRoot.d.ts +94 -0
- package/cjs/data/table/root/DataTableRoot.js +75 -0
- package/cjs/data/table/root/DataTableRoot.js.map +1 -0
- package/cjs/data/table/tbody/DataTableTbody.d.ts +5 -0
- package/cjs/data/table/tbody/DataTableTbody.js +55 -0
- package/cjs/data/table/tbody/DataTableTbody.js.map +1 -0
- package/cjs/data/table/td/DataTableTd.d.ts +5 -0
- package/cjs/data/table/td/DataTableTd.js +56 -0
- package/cjs/data/table/td/DataTableTd.js.map +1 -0
- package/cjs/data/table/th/DataTableTh.d.ts +15 -0
- package/cjs/data/table/th/DataTableTh.js +60 -0
- package/cjs/data/table/th/DataTableTh.js.map +1 -0
- package/cjs/data/table/thead/DataTableThead.d.ts +5 -0
- package/cjs/data/table/thead/DataTableThead.js +55 -0
- package/cjs/data/table/thead/DataTableThead.js.map +1 -0
- package/cjs/data/table/tr/DataTableTr.d.ts +5 -0
- package/cjs/data/table/tr/DataTableTr.js +55 -0
- package/cjs/data/table/tr/DataTableTr.js.map +1 -0
- package/cjs/data/toolbar/button/DataToolbarButton.d.ts +17 -0
- package/cjs/data/toolbar/button/DataToolbarButton.js +28 -0
- package/cjs/data/toolbar/button/DataToolbarButton.js.map +1 -0
- package/cjs/data/toolbar/index.d.ts +2 -0
- package/cjs/data/toolbar/index.js +9 -0
- package/cjs/data/toolbar/index.js.map +1 -0
- package/cjs/data/toolbar/root/DataToolbarRoot.d.ts +43 -0
- package/cjs/data/toolbar/root/DataToolbarRoot.js +35 -0
- package/cjs/data/toolbar/root/DataToolbarRoot.js.map +1 -0
- package/cjs/data/toolbar/search-field/DataToolbarSearchField.d.ts +8 -0
- package/cjs/data/toolbar/search-field/DataToolbarSearchField.js +29 -0
- package/cjs/data/toolbar/search-field/DataToolbarSearchField.js.map +1 -0
- package/cjs/data/toolbar/toggle-button/DataToolbarToggleButton.d.ts +37 -0
- package/cjs/data/toolbar/toggle-button/DataToolbarToggleButton.js +33 -0
- package/cjs/data/toolbar/toggle-button/DataToolbarToggleButton.js.map +1 -0
- package/cjs/date/datepicker/DatePicker.d.ts +6 -3
- package/cjs/date/datepicker/DatePicker.js +3 -1
- package/cjs/date/datepicker/DatePicker.js.map +1 -1
- package/cjs/date/datepicker/index.d.ts +2 -3
- package/cjs/date/datepicker/index.js +3 -5
- package/cjs/date/datepicker/index.js.map +1 -1
- package/cjs/date/monthpicker/MonthPicker.d.ts +5 -2
- package/cjs/date/monthpicker/MonthPicker.js +3 -1
- package/cjs/date/monthpicker/MonthPicker.js.map +1 -1
- package/cjs/date/monthpicker/index.d.ts +2 -4
- package/cjs/date/monthpicker/index.js +2 -4
- package/cjs/date/monthpicker/index.js.map +1 -1
- package/cjs/dialog/index.d.ts +2 -18
- package/cjs/dialog/index.js +8 -16
- package/cjs/dialog/index.js.map +1 -1
- package/cjs/dialog/root/DialogRoot.d.ts +10 -9
- package/cjs/dialog/root/DialogRoot.js +9 -1
- package/cjs/dialog/root/DialogRoot.js.map +1 -1
- package/cjs/form/file-upload/FileUpload.d.ts +2 -2
- package/cjs/form/file-upload/FileUpload.js +1 -1
- package/cjs/form/file-upload/FileUpload.js.map +1 -1
- package/cjs/form/search/Search.d.ts +2 -1
- package/cjs/form/search/Search.js.map +1 -1
- package/cjs/internal-header/InternalHeader.d.ts +16 -16
- package/cjs/internal-header/InternalHeader.js +10 -7
- package/cjs/internal-header/InternalHeader.js.map +1 -1
- package/cjs/internal-header/index.d.ts +2 -5
- package/cjs/internal-header/index.js +4 -8
- package/cjs/internal-header/index.js.map +1 -1
- package/cjs/layout/bleed/Bleed.d.ts +1 -1
- package/cjs/layout/bleed/Bleed.js +1 -1
- package/cjs/layout/responsive/Responsive.d.ts +4 -4
- package/cjs/layout/responsive/Responsive.js +4 -4
- package/cjs/layout/stack/HStack.d.ts +2 -2
- package/cjs/layout/stack/HStack.js +2 -2
- package/cjs/layout/stack/Spacer.d.ts +1 -1
- package/cjs/layout/stack/Spacer.js +1 -1
- package/cjs/layout/stack/VStack.d.ts +2 -2
- package/cjs/layout/stack/VStack.js +2 -2
- package/cjs/link-panel/LinkPanel.d.ts +1 -1
- package/cjs/link-panel/LinkPanel.js.map +1 -1
- package/cjs/list/List.d.ts +4 -2
- package/cjs/list/List.js +2 -1
- package/cjs/list/List.js.map +1 -1
- package/cjs/list/index.d.ts +2 -3
- package/cjs/list/index.js +1 -2
- package/cjs/list/index.js.map +1 -1
- package/cjs/overlays/action-menu/ActionMenu.d.ts +53 -43
- package/cjs/overlays/action-menu/ActionMenu.js +9 -10
- package/cjs/overlays/action-menu/ActionMenu.js.map +1 -1
- package/cjs/panel/Panel.d.ts +2 -2
- package/cjs/panel/Panel.js +2 -2
- package/cjs/stepper/Stepper.d.ts +4 -2
- package/cjs/stepper/Stepper.js +2 -1
- package/cjs/stepper/Stepper.js.map +1 -1
- package/cjs/stepper/index.d.ts +2 -2
- package/cjs/stepper/index.js +1 -2
- package/cjs/stepper/index.js.map +1 -1
- package/cjs/tabs/Tabs.d.ts +5 -3
- package/cjs/tabs/Tabs.js +4 -1
- package/cjs/tabs/Tabs.js.map +1 -1
- package/cjs/tabs/index.d.ts +2 -5
- package/cjs/tabs/index.js +3 -6
- package/cjs/tabs/index.js.map +1 -1
- package/cjs/toggle-group/ToggleGroup.d.ts +4 -2
- package/cjs/toggle-group/ToggleGroup.js +2 -1
- package/cjs/toggle-group/ToggleGroup.js.map +1 -1
- package/cjs/toggle-group/index.d.ts +2 -3
- package/cjs/toggle-group/index.js +1 -2
- package/cjs/toggle-group/index.js.map +1 -1
- package/esm/accordion/Accordion.d.ts +9 -7
- package/esm/accordion/Accordion.js +1 -0
- package/esm/accordion/Accordion.js.map +1 -1
- package/esm/accordion/index.d.ts +2 -4
- package/esm/accordion/index.js +1 -4
- package/esm/accordion/index.js.map +1 -1
- package/esm/chat/Chat.d.ts +4 -2
- package/esm/chat/Chat.js +1 -0
- package/esm/chat/Chat.js.map +1 -1
- package/esm/chat/index.d.ts +2 -2
- package/esm/chat/index.js +1 -2
- package/esm/chat/index.js.map +1 -1
- package/esm/chips/Chips.d.ts +7 -6
- package/esm/chips/Chips.js +1 -0
- package/esm/chips/Chips.js.map +1 -1
- package/esm/chips/index.d.ts +2 -3
- package/esm/chips/index.js +1 -3
- package/esm/chips/index.js.map +1 -1
- package/esm/collapsible/Collapsible.d.ts +6 -4
- package/esm/collapsible/Collapsible.js +2 -1
- package/esm/collapsible/Collapsible.js.map +1 -1
- package/esm/collapsible/index.d.ts +2 -3
- package/esm/collapsible/index.js +1 -3
- package/esm/collapsible/index.js.map +1 -1
- package/esm/data/action-bar/root/DataActionBarRoot.d.ts +27 -0
- package/esm/data/action-bar/root/DataActionBarRoot.js +43 -0
- package/esm/data/action-bar/root/DataActionBarRoot.js.map +1 -0
- package/esm/data/filter/index.d.ts +2 -0
- package/esm/data/filter/index.js +3 -0
- package/esm/data/filter/index.js.map +1 -0
- package/esm/data/filter/item/DataFilterItem.d.ts +5 -0
- package/esm/data/filter/item/DataFilterItem.js +18 -0
- package/esm/data/filter/item/DataFilterItem.js.map +1 -0
- package/esm/data/filter/root/DataFilterRoot.d.ts +23 -0
- package/esm/data/filter/root/DataFilterRoot.js +21 -0
- package/esm/data/filter/root/DataFilterRoot.js.map +1 -0
- package/esm/data/stories/dummy-data.d.ts +17 -0
- package/esm/data/stories/dummy-data.js +1520 -0
- package/esm/data/stories/dummy-data.js.map +1 -0
- package/esm/data/table/caption/DataTableCaption.d.ts +5 -0
- package/esm/data/table/caption/DataTableCaption.js +19 -0
- package/esm/data/table/caption/DataTableCaption.js.map +1 -0
- package/esm/data/table/index.d.ts +2 -0
- package/esm/data/table/index.js +3 -0
- package/esm/data/table/index.js.map +1 -0
- package/esm/data/table/root/DataTableRoot.d.ts +94 -0
- package/esm/data/table/root/DataTableRoot.js +33 -0
- package/esm/data/table/root/DataTableRoot.js.map +1 -0
- package/esm/data/table/tbody/DataTableTbody.d.ts +5 -0
- package/esm/data/table/tbody/DataTableTbody.js +19 -0
- package/esm/data/table/tbody/DataTableTbody.js.map +1 -0
- package/esm/data/table/td/DataTableTd.d.ts +5 -0
- package/esm/data/table/td/DataTableTd.js +20 -0
- package/esm/data/table/td/DataTableTd.js.map +1 -0
- package/esm/data/table/th/DataTableTh.d.ts +15 -0
- package/esm/data/table/th/DataTableTh.js +24 -0
- package/esm/data/table/th/DataTableTh.js.map +1 -0
- package/esm/data/table/thead/DataTableThead.d.ts +5 -0
- package/esm/data/table/thead/DataTableThead.js +19 -0
- package/esm/data/table/thead/DataTableThead.js.map +1 -0
- package/esm/data/table/tr/DataTableTr.d.ts +5 -0
- package/esm/data/table/tr/DataTableTr.js +19 -0
- package/esm/data/table/tr/DataTableTr.js.map +1 -0
- package/esm/data/toolbar/button/DataToolbarButton.d.ts +17 -0
- package/esm/data/toolbar/button/DataToolbarButton.js +22 -0
- package/esm/data/toolbar/button/DataToolbarButton.js.map +1 -0
- package/esm/data/toolbar/index.d.ts +2 -0
- package/esm/data/toolbar/index.js +3 -0
- package/esm/data/toolbar/index.js.map +1 -0
- package/esm/data/toolbar/root/DataToolbarRoot.d.ts +43 -0
- package/esm/data/toolbar/root/DataToolbarRoot.js +26 -0
- package/esm/data/toolbar/root/DataToolbarRoot.js.map +1 -0
- package/esm/data/toolbar/search-field/DataToolbarSearchField.d.ts +8 -0
- package/esm/data/toolbar/search-field/DataToolbarSearchField.js +23 -0
- package/esm/data/toolbar/search-field/DataToolbarSearchField.js.map +1 -0
- package/esm/data/toolbar/toggle-button/DataToolbarToggleButton.d.ts +37 -0
- package/esm/data/toolbar/toggle-button/DataToolbarToggleButton.js +27 -0
- package/esm/data/toolbar/toggle-button/DataToolbarToggleButton.js.map +1 -0
- package/esm/date/datepicker/DatePicker.d.ts +6 -3
- package/esm/date/datepicker/DatePicker.js +2 -1
- package/esm/date/datepicker/DatePicker.js.map +1 -1
- package/esm/date/datepicker/index.d.ts +2 -3
- package/esm/date/datepicker/index.js +1 -3
- package/esm/date/datepicker/index.js.map +1 -1
- package/esm/date/monthpicker/MonthPicker.d.ts +5 -2
- package/esm/date/monthpicker/MonthPicker.js +3 -2
- package/esm/date/monthpicker/MonthPicker.js.map +1 -1
- package/esm/date/monthpicker/index.d.ts +2 -4
- package/esm/date/monthpicker/index.js +1 -3
- package/esm/date/monthpicker/index.js.map +1 -1
- package/esm/dialog/index.d.ts +2 -18
- package/esm/dialog/index.js +1 -9
- package/esm/dialog/index.js.map +1 -1
- package/esm/dialog/root/DialogRoot.d.ts +10 -9
- package/esm/dialog/root/DialogRoot.js +3 -2
- package/esm/dialog/root/DialogRoot.js.map +1 -1
- package/esm/form/file-upload/FileUpload.d.ts +2 -2
- package/esm/form/file-upload/FileUpload.js +1 -1
- package/esm/form/file-upload/FileUpload.js.map +1 -1
- package/esm/form/search/Search.d.ts +2 -1
- package/esm/form/search/Search.js.map +1 -1
- package/esm/internal-header/InternalHeader.d.ts +16 -16
- package/esm/internal-header/InternalHeader.js +6 -6
- package/esm/internal-header/InternalHeader.js.map +1 -1
- package/esm/internal-header/index.d.ts +2 -5
- package/esm/internal-header/index.js +1 -5
- package/esm/internal-header/index.js.map +1 -1
- package/esm/layout/bleed/Bleed.d.ts +1 -1
- package/esm/layout/bleed/Bleed.js +1 -1
- package/esm/layout/responsive/Responsive.d.ts +4 -4
- package/esm/layout/responsive/Responsive.js +4 -4
- package/esm/layout/stack/HStack.d.ts +2 -2
- package/esm/layout/stack/HStack.js +2 -2
- package/esm/layout/stack/Spacer.d.ts +1 -1
- package/esm/layout/stack/Spacer.js +1 -1
- package/esm/layout/stack/VStack.d.ts +2 -2
- package/esm/layout/stack/VStack.js +2 -2
- package/esm/link-panel/LinkPanel.d.ts +1 -1
- package/esm/link-panel/LinkPanel.js.map +1 -1
- package/esm/list/List.d.ts +4 -2
- package/esm/list/List.js +1 -0
- package/esm/list/List.js.map +1 -1
- package/esm/list/index.d.ts +2 -3
- package/esm/list/index.js +1 -2
- package/esm/list/index.js.map +1 -1
- package/esm/overlays/action-menu/ActionMenu.d.ts +53 -43
- package/esm/overlays/action-menu/ActionMenu.js +9 -10
- package/esm/overlays/action-menu/ActionMenu.js.map +1 -1
- package/esm/panel/Panel.d.ts +2 -2
- package/esm/panel/Panel.js +2 -2
- package/esm/stepper/Stepper.d.ts +4 -2
- package/esm/stepper/Stepper.js +1 -0
- package/esm/stepper/Stepper.js.map +1 -1
- package/esm/stepper/index.d.ts +2 -2
- package/esm/stepper/index.js +1 -2
- package/esm/stepper/index.js.map +1 -1
- package/esm/tabs/Tabs.d.ts +5 -3
- package/esm/tabs/Tabs.js +1 -0
- package/esm/tabs/Tabs.js.map +1 -1
- package/esm/tabs/index.d.ts +2 -5
- package/esm/tabs/index.js +1 -4
- package/esm/tabs/index.js.map +1 -1
- package/esm/toggle-group/ToggleGroup.d.ts +4 -2
- package/esm/toggle-group/ToggleGroup.js +1 -0
- package/esm/toggle-group/ToggleGroup.js.map +1 -1
- package/esm/toggle-group/index.d.ts +2 -3
- package/esm/toggle-group/index.js +1 -2
- package/esm/toggle-group/index.js.map +1 -1
- package/package.json +8 -8
- package/src/accordion/Accordion.tsx +14 -14
- package/src/accordion/index.ts +11 -12
- package/src/chat/Chat.tsx +6 -5
- package/src/chat/index.ts +2 -2
- package/src/chips/Chips.tsx +8 -8
- package/src/chips/index.ts +6 -6
- package/src/collapsible/Collapsible.tsx +18 -10
- package/src/collapsible/index.ts +9 -8
- package/src/data/action-bar/root/DataActionBarRoot.tsx +59 -0
- package/src/data/filter/index.ts +6 -0
- package/src/data/filter/item/DataFilterItem.tsx +12 -0
- package/src/data/filter/root/DataFilterRoot.tsx +42 -0
- package/src/data/stories/dummy-data.tsx +1596 -0
- package/src/data/table/Readme.md +11 -0
- package/src/data/table/caption/DataTableCaption.tsx +20 -0
- package/src/data/table/index.tsx +19 -0
- package/src/data/table/root/DataTableRoot.tsx +145 -0
- package/src/data/table/tbody/DataTableTbody.tsx +19 -0
- package/src/data/table/td/DataTableTd.tsx +21 -0
- package/src/data/table/th/DataTableTh.tsx +70 -0
- package/src/data/table/thead/DataTableThead.tsx +19 -0
- package/src/data/table/tr/DataTableTr.tsx +19 -0
- package/src/data/toolbar/button/DataToolbarButton.tsx +34 -0
- package/src/data/toolbar/index.ts +11 -0
- package/src/data/toolbar/root/DataToolbarRoot.tsx +86 -0
- package/src/data/toolbar/search-field/DataToolbarSearchField.tsx +30 -0
- package/src/data/toolbar/toggle-button/DataToolbarToggleButton.tsx +67 -0
- package/src/date/datepicker/DatePicker.tsx +13 -5
- package/src/date/datepicker/index.ts +10 -6
- package/src/date/monthpicker/MonthPicker.tsx +13 -4
- package/src/date/monthpicker/index.ts +7 -5
- package/src/dialog/index.ts +22 -18
- package/src/dialog/root/DialogRoot.tsx +37 -9
- package/src/form/file-upload/FileUpload.tsx +5 -6
- package/src/form/search/Search.tsx +9 -6
- package/src/internal-header/InternalHeader.tsx +26 -21
- package/src/internal-header/index.ts +11 -17
- package/src/layout/bleed/Bleed.tsx +1 -1
- package/src/layout/responsive/Responsive.tsx +4 -4
- package/src/layout/stack/HStack.tsx +2 -2
- package/src/layout/stack/Spacer.tsx +1 -1
- package/src/layout/stack/VStack.tsx +2 -2
- package/src/link-panel/LinkPanel.tsx +6 -5
- package/src/list/List.tsx +5 -5
- package/src/list/index.ts +2 -3
- package/src/overlays/action-menu/ActionMenu.tsx +114 -86
- package/src/panel/Panel.tsx +2 -2
- package/src/stepper/Stepper.tsx +6 -5
- package/src/stepper/index.ts +2 -2
- package/src/tabs/Tabs.tsx +13 -7
- package/src/tabs/index.ts +7 -11
- package/src/toggle-group/ToggleGroup.tsx +7 -6
- package/src/toggle-group/index.ts +2 -6
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
export { useMonthpicker, type MonthValidationT } from "./hooks/useMonthPicker";
|
|
3
|
-
export { default as MonthPicker } from "./MonthPicker";
|
|
4
|
-
export type { MonthPickerProps } from "./MonthPicker.types";
|
|
5
3
|
export {
|
|
4
|
+
default as MonthPicker,
|
|
6
5
|
MonthPickerStandalone,
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
9
|
-
export {
|
|
6
|
+
MonthPickerInput,
|
|
7
|
+
} from "./MonthPicker";
|
|
8
|
+
export type {
|
|
9
|
+
MonthPickerProps,
|
|
10
|
+
MonthPickerStandaloneProps,
|
|
11
|
+
} from "./MonthPicker";
|
package/src/dialog/index.ts
CHANGED
|
@@ -1,19 +1,23 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
export type {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
2
|
+
export {
|
|
3
|
+
default as Dialog,
|
|
4
|
+
DialogTrigger,
|
|
5
|
+
DialogPopup,
|
|
6
|
+
DialogCloseTrigger,
|
|
7
|
+
DialogHeader,
|
|
8
|
+
DialogFooter,
|
|
9
|
+
DialogTitle,
|
|
10
|
+
DialogDescription,
|
|
11
|
+
DialogBody,
|
|
12
|
+
} from "./root/DialogRoot";
|
|
13
|
+
export type {
|
|
14
|
+
DialogProps,
|
|
15
|
+
DialogTriggerProps,
|
|
16
|
+
DialogPopupProps,
|
|
17
|
+
DialogCloseTriggerProps,
|
|
18
|
+
DialogHeaderProps,
|
|
19
|
+
DialogFooterProps,
|
|
20
|
+
DialogTitleProps,
|
|
21
|
+
DialogDescriptionProps,
|
|
22
|
+
DialogBodyProps,
|
|
23
|
+
} from "./root/DialogRoot";
|
|
@@ -5,14 +5,20 @@ import {
|
|
|
5
5
|
useEventCallback,
|
|
6
6
|
useTransitionStatus,
|
|
7
7
|
} from "../../utils/hooks";
|
|
8
|
-
import { DialogBody } from "../body/DialogBody";
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
|
|
8
|
+
import { DialogBody, DialogBodyProps } from "../body/DialogBody";
|
|
9
|
+
import {
|
|
10
|
+
DialogCloseTrigger,
|
|
11
|
+
DialogCloseTriggerProps,
|
|
12
|
+
} from "../close-trigger/DialogCloseTrigger";
|
|
13
|
+
import {
|
|
14
|
+
DialogDescription,
|
|
15
|
+
DialogDescriptionProps,
|
|
16
|
+
} from "../description/DialogDescription";
|
|
17
|
+
import { DialogFooter, DialogFooterProps } from "../footer/DialogFooter";
|
|
18
|
+
import { DialogHeader, DialogHeaderProps } from "../header/DialogHeader";
|
|
19
|
+
import { DialogPopup, DialogPopupProps } from "../popup/DialogPopup";
|
|
20
|
+
import { DialogTitle, DialogTitleProps } from "../title/DialogTitle";
|
|
21
|
+
import { DialogTrigger, DialogTriggerProps } from "../trigger/DialogTrigger";
|
|
16
22
|
import { DialogContextProvider, useDialogContext } from "./DialogRoot.context";
|
|
17
23
|
|
|
18
24
|
interface DialogProps {
|
|
@@ -56,6 +62,7 @@ interface DialogComponent extends React.FC<DialogProps> {
|
|
|
56
62
|
* ```
|
|
57
63
|
*/
|
|
58
64
|
Trigger: typeof DialogTrigger;
|
|
65
|
+
|
|
59
66
|
/**
|
|
60
67
|
* @see 🏷️ {@link DialogCloseTriggerProps}
|
|
61
68
|
* @example
|
|
@@ -70,6 +77,7 @@ interface DialogComponent extends React.FC<DialogProps> {
|
|
|
70
77
|
* ```
|
|
71
78
|
*/
|
|
72
79
|
CloseTrigger: typeof DialogCloseTrigger;
|
|
80
|
+
|
|
73
81
|
/**
|
|
74
82
|
* @see 🏷️ {@link DialogPopupProps}
|
|
75
83
|
* @example
|
|
@@ -295,4 +303,24 @@ Dialog.Footer = DialogFooter;
|
|
|
295
303
|
Dialog.Popup = DialogPopup;
|
|
296
304
|
|
|
297
305
|
export default Dialog;
|
|
298
|
-
export
|
|
306
|
+
export {
|
|
307
|
+
DialogTrigger,
|
|
308
|
+
DialogCloseTrigger,
|
|
309
|
+
DialogHeader,
|
|
310
|
+
DialogTitle,
|
|
311
|
+
DialogDescription,
|
|
312
|
+
DialogBody,
|
|
313
|
+
DialogFooter,
|
|
314
|
+
DialogPopup,
|
|
315
|
+
};
|
|
316
|
+
export type {
|
|
317
|
+
DialogProps,
|
|
318
|
+
DialogTriggerProps,
|
|
319
|
+
DialogCloseTriggerProps,
|
|
320
|
+
DialogHeaderProps,
|
|
321
|
+
DialogTitleProps,
|
|
322
|
+
DialogDescriptionProps,
|
|
323
|
+
DialogBodyProps,
|
|
324
|
+
DialogFooterProps,
|
|
325
|
+
DialogPopupProps,
|
|
326
|
+
};
|
|
@@ -14,10 +14,9 @@ interface FileUploadProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
14
14
|
translations?: ComponentTranslation<"FileUpload">;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
interface FileUploadComponent
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
> {
|
|
17
|
+
interface FileUploadComponent extends React.ForwardRefExoticComponent<
|
|
18
|
+
FileUploadProps & React.RefAttributes<HTMLDivElement>
|
|
19
|
+
> {
|
|
21
20
|
/**
|
|
22
21
|
* Framed area to drag-n-drop files, upload files with button-click or copy-paste.
|
|
23
22
|
* @example
|
|
@@ -64,7 +63,7 @@ interface FileUploadComponent
|
|
|
64
63
|
* Multiple items can be semantically grouped as a list.
|
|
65
64
|
* ```jsx
|
|
66
65
|
* <FileUpload>
|
|
67
|
-
* <VStack gap="
|
|
66
|
+
* <VStack gap="space-16" as="ul">
|
|
68
67
|
* <FileUpload.Item as="li" file={file} />
|
|
69
68
|
* <FileUpload.Item as="li" file={file2} />
|
|
70
69
|
* <FileUpload.Item as="li" file={file3} status="uploading" />
|
|
@@ -117,7 +116,7 @@ interface FileUploadComponent
|
|
|
117
116
|
* @example
|
|
118
117
|
* Items
|
|
119
118
|
* ```jsx
|
|
120
|
-
* <VStack gap="
|
|
119
|
+
* <VStack gap="space-16" as="ul">
|
|
121
120
|
* <FileUpload.Item as="li" file={myFile} />
|
|
122
121
|
* <FileUpload.Item as="li" file={mySecondFile} />
|
|
123
122
|
* </VStack>
|
|
@@ -18,6 +18,11 @@ import { FormFieldProps, useFormField } from "../useFormField";
|
|
|
18
18
|
import SearchButton, { SearchButtonType } from "./SearchButton";
|
|
19
19
|
import { SearchContext } from "./context";
|
|
20
20
|
|
|
21
|
+
export type SearchNativeProps = Omit<
|
|
22
|
+
InputHTMLAttributes<HTMLInputElement>,
|
|
23
|
+
"size" | "onChange" | "type"
|
|
24
|
+
>;
|
|
25
|
+
|
|
21
26
|
export type SearchClearEvent =
|
|
22
27
|
| {
|
|
23
28
|
trigger: "Click";
|
|
@@ -26,8 +31,7 @@ export type SearchClearEvent =
|
|
|
26
31
|
| { trigger: "Escape"; event: React.KeyboardEvent<HTMLDivElement> };
|
|
27
32
|
|
|
28
33
|
export interface SearchProps
|
|
29
|
-
extends Omit<FormFieldProps, "readOnly">,
|
|
30
|
-
Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "onChange" | "type"> {
|
|
34
|
+
extends Omit<FormFieldProps, "readOnly">, SearchNativeProps {
|
|
31
35
|
children?: React.ReactNode;
|
|
32
36
|
/**
|
|
33
37
|
* Search label.
|
|
@@ -82,10 +86,9 @@ export interface SearchProps
|
|
|
82
86
|
"data-color"?: Exclude<AkselColor, AkselStatusColorRole>;
|
|
83
87
|
}
|
|
84
88
|
|
|
85
|
-
interface SearchComponent
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
> {
|
|
89
|
+
interface SearchComponent extends React.ForwardRefExoticComponent<
|
|
90
|
+
SearchProps & React.RefAttributes<HTMLDivElement>
|
|
91
|
+
> {
|
|
89
92
|
Button: SearchButtonType;
|
|
90
93
|
}
|
|
91
94
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React, { HTMLAttributes, forwardRef } from "react";
|
|
2
2
|
import { Theme } from "../theme/Theme";
|
|
3
|
-
import type { OverridableComponent } from "../utils-external";
|
|
4
3
|
import { cl } from "../utils/helpers";
|
|
5
4
|
import InternalHeaderButton, {
|
|
6
5
|
InternalHeaderButtonProps,
|
|
@@ -15,38 +14,32 @@ import InternalHeaderUserButton, {
|
|
|
15
14
|
InternalHeaderUserButtonProps,
|
|
16
15
|
} from "./InternalHeaderUserButton";
|
|
17
16
|
|
|
18
|
-
|
|
17
|
+
interface InternalHeaderProps extends HTMLAttributes<HTMLElement> {
|
|
19
18
|
children: React.ReactNode;
|
|
20
19
|
}
|
|
21
20
|
|
|
22
|
-
interface InternalHeaderComponent
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
> {
|
|
21
|
+
interface InternalHeaderComponent extends React.ForwardRefExoticComponent<
|
|
22
|
+
InternalHeaderProps & React.RefAttributes<HTMLElement>
|
|
23
|
+
> {
|
|
26
24
|
/**
|
|
27
25
|
* @see 🏷️ {@link InternalHeaderTitleProps}
|
|
28
26
|
* @see [🤖 OverridableComponent](https://aksel.nav.no/grunnleggende/kode/overridablecomponent) support
|
|
29
27
|
*/
|
|
30
|
-
Title:
|
|
28
|
+
Title: typeof InternalHeaderTitle;
|
|
31
29
|
/**
|
|
32
30
|
* @see 🏷️ {@link InternalHeaderUserProps}
|
|
33
31
|
*/
|
|
34
|
-
User:
|
|
35
|
-
InternalHeaderUserProps & React.RefAttributes<HTMLDivElement>
|
|
36
|
-
>;
|
|
32
|
+
User: typeof InternalHeaderUser;
|
|
37
33
|
/**
|
|
38
34
|
* @see 🏷️ {@link InternalHeaderButtonProps}
|
|
39
35
|
* @see [🤖 OverridableComponent](https://aksel.nav.no/grunnleggende/kode/overridablecomponent) support
|
|
40
36
|
*/
|
|
41
|
-
Button:
|
|
37
|
+
Button: typeof InternalHeaderButton;
|
|
42
38
|
/**
|
|
43
39
|
* @see 🏷️ {@link InternalHeaderUserButtonProps}
|
|
44
40
|
* @see [🤖 OverridableComponent](https://aksel.nav.no/grunnleggende/kode/overridablecomponent) support
|
|
45
41
|
*/
|
|
46
|
-
UserButton:
|
|
47
|
-
InternalHeaderUserButtonProps,
|
|
48
|
-
HTMLButtonElement
|
|
49
|
-
>;
|
|
42
|
+
UserButton: typeof InternalHeaderUserButton;
|
|
50
43
|
}
|
|
51
44
|
|
|
52
45
|
/**
|
|
@@ -67,14 +60,13 @@ interface InternalHeaderComponent
|
|
|
67
60
|
* ```jsx
|
|
68
61
|
* <InternalHeader >
|
|
69
62
|
* <InternalHeader.Title href="/#home">Tittel med lenke</InternalHeader.Title>
|
|
70
|
-
* <
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
* >
|
|
63
|
+
* <ActionMenu>
|
|
64
|
+
* <ActionMenu.Trigger>
|
|
65
|
+
* <InternalHeader.Button>
|
|
74
66
|
* <MenuGridIcon title="MenuGridIconer og oppslagsverk" />
|
|
75
67
|
* </InternalHeader.Button>
|
|
76
|
-
*
|
|
77
|
-
* </
|
|
68
|
+
* </ActionMenu.Trigger>
|
|
69
|
+
* </ActionMenu>
|
|
78
70
|
* </InternalHeader>
|
|
79
71
|
* ```
|
|
80
72
|
*/
|
|
@@ -99,3 +91,16 @@ InternalHeader.Button = InternalHeaderButton;
|
|
|
99
91
|
InternalHeader.UserButton = InternalHeaderUserButton;
|
|
100
92
|
|
|
101
93
|
export default InternalHeader;
|
|
94
|
+
export {
|
|
95
|
+
InternalHeaderTitle,
|
|
96
|
+
InternalHeaderUser,
|
|
97
|
+
InternalHeaderButton,
|
|
98
|
+
InternalHeaderUserButton,
|
|
99
|
+
};
|
|
100
|
+
export type {
|
|
101
|
+
InternalHeaderProps,
|
|
102
|
+
InternalHeaderTitleProps,
|
|
103
|
+
InternalHeaderUserProps,
|
|
104
|
+
InternalHeaderButtonProps,
|
|
105
|
+
InternalHeaderUserButtonProps,
|
|
106
|
+
};
|
|
@@ -1,21 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
export {
|
|
3
3
|
default as InternalHeader,
|
|
4
|
-
|
|
4
|
+
InternalHeaderButton,
|
|
5
|
+
InternalHeaderTitle,
|
|
6
|
+
InternalHeaderUser,
|
|
7
|
+
InternalHeaderUserButton,
|
|
8
|
+
} from "./InternalHeader";
|
|
9
|
+
export type {
|
|
10
|
+
InternalHeaderProps,
|
|
11
|
+
InternalHeaderButtonProps,
|
|
12
|
+
InternalHeaderTitleProps,
|
|
13
|
+
InternalHeaderUserProps,
|
|
14
|
+
InternalHeaderUserButtonProps,
|
|
5
15
|
} from "./InternalHeader";
|
|
6
|
-
export {
|
|
7
|
-
default as InternalHeaderButton,
|
|
8
|
-
type InternalHeaderButtonProps,
|
|
9
|
-
} from "./InternalHeaderButton";
|
|
10
|
-
export {
|
|
11
|
-
default as InternalHeaderTitle,
|
|
12
|
-
type InternalHeaderTitleProps,
|
|
13
|
-
} from "./InternalHeaderTitle";
|
|
14
|
-
export {
|
|
15
|
-
default as InternalHeaderUser,
|
|
16
|
-
type InternalHeaderUserProps,
|
|
17
|
-
} from "./InternalHeaderUser";
|
|
18
|
-
export {
|
|
19
|
-
default as InternalHeaderUserButton,
|
|
20
|
-
type InternalHeaderUserButtonProps,
|
|
21
|
-
} from "./InternalHeaderUserButton";
|
|
@@ -61,7 +61,7 @@ export interface BleedProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
61
61
|
* @see [🤖 OverridableComponent](https://aksel.nav.no/grunnleggende/kode/overridablecomponent) support
|
|
62
62
|
*
|
|
63
63
|
* @example
|
|
64
|
-
* <Box padding="
|
|
64
|
+
* <Box padding="space-16">
|
|
65
65
|
* <Bleed marginInline="space-16" marginBlock="space-16">
|
|
66
66
|
* <BodyLong>Some content</BodyLong>
|
|
67
67
|
* </Bleed>
|
|
@@ -65,14 +65,14 @@ const Responsive = forwardRef<
|
|
|
65
65
|
* @see 🏷️ {@link ResponsiveProps}
|
|
66
66
|
*
|
|
67
67
|
* @example
|
|
68
|
-
* <HGrid columns={{ xs: 1, md: 2 }} gap="
|
|
68
|
+
* <HGrid columns={{ xs: 1, md: 2 }} gap="space-16">
|
|
69
69
|
* <div/>
|
|
70
70
|
* <Hide below="md" asChild>
|
|
71
71
|
* // Only visible above "md"
|
|
72
72
|
* </Hide>
|
|
73
73
|
* </HGrid>
|
|
74
74
|
* @example
|
|
75
|
-
* <HGrid columns={{ xs: 1, md: 2 }} gap="
|
|
75
|
+
* <HGrid columns={{ xs: 1, md: 2 }} gap="space-16">
|
|
76
76
|
* <div/>
|
|
77
77
|
* <Hide above="md" asChild>
|
|
78
78
|
* // Only visible below "md"
|
|
@@ -90,14 +90,14 @@ export const Hide = forwardRef<HTMLDivElement, ResponsiveProps>(
|
|
|
90
90
|
* @see 🏷️ {@link ResponsiveProps}
|
|
91
91
|
*
|
|
92
92
|
* @example
|
|
93
|
-
* <HGrid columns={{ xs: 1, md: 2 }} gap="
|
|
93
|
+
* <HGrid columns={{ xs: 1, md: 2 }} gap="space-16">
|
|
94
94
|
* <div/>
|
|
95
95
|
* <Show below="md" asChild>
|
|
96
96
|
* // Only visible below "md"
|
|
97
97
|
* </Show>
|
|
98
98
|
* </HGrid>
|
|
99
99
|
* @example
|
|
100
|
-
* <HGrid columns={{ xs: 1, md: 2 }} gap="
|
|
100
|
+
* <HGrid columns={{ xs: 1, md: 2 }} gap="space-16">
|
|
101
101
|
* <div/>
|
|
102
102
|
* <Show above="md" asChild>
|
|
103
103
|
* // Only visible above "md"
|
|
@@ -13,14 +13,14 @@ export type HStackProps = PrimitiveAsChildProps & Omit<StackProps, "direction">;
|
|
|
13
13
|
* @see [🤖 OverridableComponent](https://aksel.nav.no/grunnleggende/kode/overridablecomponent) support
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
16
|
-
* <HStack gap="
|
|
16
|
+
* <HStack gap="space-32">
|
|
17
17
|
* <MyComponent />
|
|
18
18
|
* <MyComponent />
|
|
19
19
|
* </HStack>
|
|
20
20
|
*
|
|
21
21
|
* @example
|
|
22
22
|
* // Responsive gap
|
|
23
|
-
* <HStack gap={{xs: "
|
|
23
|
+
* <HStack gap={{xs: "space-8", md: "space-24"}}>
|
|
24
24
|
* <MyComponent />
|
|
25
25
|
* <MyComponent />
|
|
26
26
|
* </HStack>
|
|
@@ -14,14 +14,14 @@ export type VStackProps = PrimitiveAsChildProps &
|
|
|
14
14
|
* @see [🤖 OverridableComponent](https://aksel.nav.no/grunnleggende/kode/overridablecomponent) support
|
|
15
15
|
*
|
|
16
16
|
* @example
|
|
17
|
-
* <VStack gap="
|
|
17
|
+
* <VStack gap="space-32">
|
|
18
18
|
* <MyComponent />
|
|
19
19
|
* <MyComponent />
|
|
20
20
|
* </VStack>
|
|
21
21
|
*
|
|
22
22
|
* @example
|
|
23
23
|
* // Responsive gap
|
|
24
|
-
* <VStack gap={{xs: "
|
|
24
|
+
* <VStack gap={{xs: "space-8", md: "space-24"}}>
|
|
25
25
|
* <MyComponent />
|
|
26
26
|
* <MyComponent />
|
|
27
27
|
* </VStack>
|
|
@@ -9,8 +9,7 @@ import {
|
|
|
9
9
|
} from "./LinkPanelDescription";
|
|
10
10
|
import { LinkPanelTitle, LinkPanelTitleProps } from "./LinkPanelTitle";
|
|
11
11
|
|
|
12
|
-
export interface LinkPanelProps
|
|
13
|
-
extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
12
|
+
export interface LinkPanelProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
14
13
|
/**
|
|
15
14
|
* Panel content
|
|
16
15
|
*/
|
|
@@ -22,10 +21,12 @@ export interface LinkPanelProps
|
|
|
22
21
|
border?: boolean;
|
|
23
22
|
}
|
|
24
23
|
|
|
25
|
-
interface LinkPanelComponentType
|
|
26
|
-
|
|
24
|
+
interface LinkPanelComponentType extends OverridableComponent<
|
|
25
|
+
LinkPanelProps,
|
|
26
|
+
HTMLAnchorElement
|
|
27
|
+
> {
|
|
27
28
|
/**
|
|
28
|
-
* @see 🏷️ {@link
|
|
29
|
+
* @see 🏷️ {@link LinkPanelTitleProps}
|
|
29
30
|
* @see [🤖 OverridableComponent](https://aksel.nav.no/grunnleggende/kode/overridablecomponent) support
|
|
30
31
|
*/
|
|
31
32
|
Title: OverridableComponent<LinkPanelTitleProps, HTMLDivElement>;
|
package/src/list/List.tsx
CHANGED
|
@@ -3,13 +3,11 @@ import { BodyLong } from "../typography";
|
|
|
3
3
|
import { cl } from "../utils/helpers";
|
|
4
4
|
import { ListItem } from "./List.Item";
|
|
5
5
|
import { ListContext } from "./List.context";
|
|
6
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
7
6
|
import type { ListItemProps, ListProps } from "./List.types";
|
|
8
7
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
> {
|
|
8
|
+
interface ListComponent extends React.ForwardRefExoticComponent<
|
|
9
|
+
ListProps & React.RefAttributes<HTMLDivElement>
|
|
10
|
+
> {
|
|
13
11
|
/**
|
|
14
12
|
* @see 🏷️ {@link ListItemProps}
|
|
15
13
|
*/
|
|
@@ -78,3 +76,5 @@ export const List = forwardRef<HTMLDivElement, ListProps>(
|
|
|
78
76
|
List.Item = ListItem;
|
|
79
77
|
|
|
80
78
|
export default List;
|
|
79
|
+
export { ListItem };
|
|
80
|
+
export type { ListProps, ListItemProps };
|
package/src/list/index.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export { default as List } from "./List";
|
|
3
|
-
export type { ListProps, ListItemProps } from "./List
|
|
4
|
-
export { default as ListItem } from "./List.Item";
|
|
2
|
+
export { default as List, ListItem } from "./List";
|
|
3
|
+
export type { ListProps, ListItemProps } from "./List";
|