@navikt/ds-react 6.0.0-alpha.2 → 6.0.0
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/chat/Bubble.d.ts +0 -5
- package/cjs/chat/Bubble.js +2 -2
- package/cjs/chat/Bubble.js.map +1 -1
- package/cjs/chat/Chat.d.ts +0 -10
- package/cjs/chat/Chat.js +3 -3
- package/cjs/chat/Chat.js.map +1 -1
- package/cjs/date/context/useSharedMonthContext.js +2 -6
- package/cjs/date/context/useSharedMonthContext.js.map +1 -1
- package/cjs/date/datepicker/DatePicker.js +3 -5
- package/cjs/date/datepicker/DatePicker.js.map +1 -1
- package/cjs/date/datepicker/DatePickerStandalone.js +3 -5
- package/cjs/date/datepicker/DatePickerStandalone.js.map +1 -1
- package/cjs/date/datepicker/parts/DayButton.js +2 -5
- package/cjs/date/datepicker/parts/DayButton.js.map +1 -1
- package/cjs/date/datepicker/parts/DropdownCaption.js +3 -6
- package/cjs/date/datepicker/parts/DropdownCaption.js.map +1 -1
- package/cjs/date/datepicker/parts/Row.js +2 -1
- package/cjs/date/datepicker/parts/Row.js.map +1 -1
- package/cjs/date/hooks/useDatepicker.d.ts +1 -6
- package/cjs/date/hooks/useDatepicker.js +7 -11
- package/cjs/date/hooks/useDatepicker.js.map +1 -1
- package/cjs/date/hooks/useMonthPicker.d.ts +1 -6
- package/cjs/date/hooks/useMonthPicker.js.map +1 -1
- package/cjs/date/hooks/useRangeDatepicker.js +20 -25
- package/cjs/date/hooks/useRangeDatepicker.js.map +1 -1
- package/cjs/date/monthpicker/MonthButton.js +11 -15
- package/cjs/date/monthpicker/MonthButton.js.map +1 -1
- package/cjs/date/monthpicker/MonthCaption.js +4 -7
- package/cjs/date/monthpicker/MonthCaption.js.map +1 -1
- package/cjs/date/monthpicker/MonthPicker.js +7 -1
- package/cjs/date/monthpicker/MonthPicker.js.map +1 -1
- package/cjs/date/monthpicker/MonthPickerStandalone.js +7 -1
- package/cjs/date/monthpicker/MonthPickerStandalone.js.map +1 -1
- package/cjs/date/monthpicker/MonthSelector.js +8 -11
- package/cjs/date/monthpicker/MonthSelector.js.map +1 -1
- package/cjs/date/parts/DateInput.d.ts +1 -1
- package/cjs/date/parts/DateWrapper.js +2 -2
- package/cjs/date/parts/DateWrapper.js.map +1 -1
- package/cjs/date/utils/check-dates.js +2 -6
- package/cjs/date/utils/check-dates.js.map +1 -1
- package/cjs/date/utils/dates-disabled.js +3 -6
- package/cjs/date/utils/dates-disabled.js.map +1 -1
- package/cjs/date/utils/format-date.d.ts +1 -0
- package/cjs/date/utils/format-date.js +2 -5
- package/cjs/date/utils/format-date.js.map +1 -1
- package/cjs/date/utils/get-dates.js +14 -21
- package/cjs/date/utils/get-dates.js.map +1 -1
- package/cjs/date/utils/get-initial-year.js +2 -5
- package/cjs/date/utils/get-initial-year.js.map +1 -1
- package/cjs/date/utils/is-match.js +14 -20
- package/cjs/date/utils/is-match.js.map +1 -1
- package/cjs/date/utils/labels.d.ts +1 -0
- package/cjs/date/utils/labels.js.map +1 -1
- package/cjs/date/utils/locale.d.ts +1 -1
- package/cjs/date/utils/locale.js +4 -9
- package/cjs/date/utils/locale.js.map +1 -1
- package/cjs/date/utils/navigation.js +21 -24
- package/cjs/date/utils/navigation.js.map +1 -1
- package/cjs/date/utils/parse-date.d.ts +1 -0
- package/cjs/date/utils/parse-date.js +8 -13
- package/cjs/date/utils/parse-date.js.map +1 -1
- package/cjs/form/Textarea.js +8 -8
- package/cjs/form/Textarea.js.map +1 -1
- package/cjs/form/combobox/Combobox.js +1 -1
- package/cjs/form/combobox/Combobox.js.map +1 -1
- package/cjs/form/combobox/ComboboxProvider.js +2 -1
- package/cjs/form/combobox/ComboboxProvider.js.map +1 -1
- package/cjs/form/combobox/ComboboxWrapper.js +1 -1
- package/cjs/form/combobox/ComboboxWrapper.js.map +1 -1
- package/cjs/form/combobox/FilteredOptions/FilteredOptions.js +59 -41
- package/cjs/form/combobox/FilteredOptions/FilteredOptions.js.map +1 -1
- package/cjs/form/combobox/FilteredOptions/filtered-options-util.d.ts +2 -1
- package/cjs/form/combobox/FilteredOptions/filtered-options-util.js +3 -1
- package/cjs/form/combobox/FilteredOptions/filtered-options-util.js.map +1 -1
- package/cjs/form/combobox/FilteredOptions/filteredOptionsContext.js +15 -3
- package/cjs/form/combobox/FilteredOptions/filteredOptionsContext.js.map +1 -1
- package/cjs/form/combobox/FilteredOptions/useVirtualFocus.d.ts +2 -4
- package/cjs/form/combobox/FilteredOptions/useVirtualFocus.js +52 -32
- package/cjs/form/combobox/FilteredOptions/useVirtualFocus.js.map +1 -1
- package/cjs/form/combobox/Input/Input.js +3 -1
- package/cjs/form/combobox/Input/Input.js.map +1 -1
- package/cjs/form/combobox/SelectedOptions/selectedOptionsContext.d.ts +5 -2
- package/cjs/form/combobox/SelectedOptions/selectedOptionsContext.js +3 -1
- package/cjs/form/combobox/SelectedOptions/selectedOptionsContext.js.map +1 -1
- package/cjs/form/combobox/types.d.ts +14 -0
- package/cjs/form/search/Search.d.ts +2 -1
- package/cjs/form/search/Search.js +2 -2
- package/cjs/form/search/Search.js.map +1 -1
- package/cjs/index.d.ts +1 -2
- package/cjs/index.js +2 -3
- package/cjs/index.js.map +1 -1
- package/cjs/layout/bleed/Bleed.d.ts +2 -2
- package/cjs/layout/utilities/css.js +4 -0
- package/cjs/layout/utilities/css.js.map +1 -1
- package/cjs/layout/utilities/types.d.ts +1 -1
- package/cjs/modal/Modal.context.d.ts +9 -0
- package/cjs/modal/Modal.context.js +10 -0
- package/cjs/modal/Modal.context.js.map +1 -0
- package/cjs/modal/Modal.js +3 -6
- package/cjs/modal/Modal.js.map +1 -1
- package/cjs/modal/ModalHeader.js +2 -6
- package/cjs/modal/ModalHeader.js.map +1 -1
- package/cjs/modal/types.d.ts +24 -3
- package/cjs/overlays/index.d.ts +2 -0
- package/cjs/overlays/index.js +6 -0
- package/cjs/overlays/index.js.map +1 -0
- package/cjs/overlays/portal/Portal.d.ts +11 -0
- package/cjs/{grid/Grid.js → overlays/portal/Portal.js} +15 -11
- package/cjs/overlays/portal/Portal.js.map +1 -0
- package/cjs/panel/Panel.d.ts +9 -16
- package/cjs/panel/Panel.js +6 -16
- package/cjs/panel/Panel.js.map +1 -1
- package/cjs/popover/Popover.js +2 -2
- package/cjs/popover/Popover.js.map +1 -1
- package/cjs/table/types.d.ts +1 -1
- package/cjs/tabs/TabList.js +2 -2
- package/cjs/tabs/TabList.js.map +1 -1
- package/cjs/tabs/TabPanel.js +2 -2
- package/cjs/tabs/TabPanel.js.map +1 -1
- package/cjs/timeline/AxisLabels.js +4 -4
- package/cjs/timeline/AxisLabels.js.map +1 -1
- package/cjs/tooltip/Tooltip.js +5 -9
- package/cjs/tooltip/Tooltip.js.map +1 -1
- package/cjs/util/Slot.js +5 -2
- package/cjs/util/Slot.js.map +1 -1
- package/cjs/util/TextareaAutoSize.js +14 -24
- package/cjs/util/TextareaAutoSize.js.map +1 -1
- package/cjs/util/create-context.d.ts +2 -5
- package/cjs/util/create-context.js +9 -5
- package/cjs/util/create-context.js.map +1 -1
- package/cjs/util/types/AsChildProps.d.ts +36 -0
- package/cjs/util/types/AsChildProps.js +3 -0
- package/cjs/util/types/AsChildProps.js.map +1 -0
- package/cjs/util/types/OverridableComponent.d.ts +1 -1
- package/cjs/util/types/index.d.ts +1 -0
- package/esm/accordion/Accordion.d.ts +3 -3
- package/esm/accordion/Accordion.js +4 -4
- package/esm/accordion/AccordionContent.js +2 -2
- package/esm/accordion/AccordionHeader.js +4 -4
- package/esm/accordion/AccordionItem.js +3 -3
- package/esm/accordion/index.d.ts +1 -1
- package/esm/accordion/index.js +1 -1
- package/esm/alert/Alert.js +2 -2
- package/esm/alert/index.d.ts +2 -2
- package/esm/alert/index.js +1 -1
- package/esm/button/Button.d.ts +1 -1
- package/esm/button/Button.js +6 -6
- package/esm/button/index.d.ts +2 -2
- package/esm/button/index.js +1 -1
- package/esm/chat/Bubble.d.ts +0 -5
- package/esm/chat/Bubble.js +3 -3
- package/esm/chat/Bubble.js.map +1 -1
- package/esm/chat/Chat.d.ts +1 -11
- package/esm/chat/Chat.js +5 -5
- package/esm/chat/Chat.js.map +1 -1
- package/esm/chat/index.d.ts +1 -1
- package/esm/chat/index.js +1 -1
- package/esm/chips/Chips.d.ts +3 -3
- package/esm/chips/Chips.js +2 -2
- package/esm/chips/Removable.js +1 -1
- package/esm/chips/Toggle.d.ts +1 -1
- package/esm/chips/index.d.ts +1 -1
- package/esm/chips/index.js +1 -1
- package/esm/copybutton/CopyButton.js +3 -3
- package/esm/copybutton/index.d.ts +1 -1
- package/esm/copybutton/index.js +1 -1
- package/esm/date/context/index.d.ts +2 -2
- package/esm/date/context/index.js +2 -2
- package/esm/date/context/useSharedMonthContext.d.ts +1 -1
- package/esm/date/context/useSharedMonthContext.js +2 -3
- package/esm/date/context/useSharedMonthContext.js.map +1 -1
- package/esm/date/datepicker/DatePicker.d.ts +3 -3
- package/esm/date/datepicker/DatePicker.js +15 -17
- package/esm/date/datepicker/DatePicker.js.map +1 -1
- package/esm/date/datepicker/DatePickerStandalone.d.ts +1 -1
- package/esm/date/datepicker/DatePickerStandalone.js +9 -11
- package/esm/date/datepicker/DatePickerStandalone.js.map +1 -1
- package/esm/date/datepicker/parts/Caption.js +3 -3
- package/esm/date/datepicker/parts/DayButton.js +1 -1
- package/esm/date/datepicker/parts/DayButton.js.map +1 -1
- package/esm/date/datepicker/parts/DropdownCaption.js +6 -9
- package/esm/date/datepicker/parts/DropdownCaption.js.map +1 -1
- package/esm/date/datepicker/parts/HeadRow.js +1 -1
- package/esm/date/datepicker/parts/Row.js +5 -4
- package/esm/date/datepicker/parts/Row.js.map +1 -1
- package/esm/date/datepicker/parts/WeekNumber.js +1 -1
- package/esm/date/datepicker/parts/WeekRow.js +6 -6
- package/esm/date/hooks/index.d.ts +6 -6
- package/esm/date/hooks/index.js +3 -3
- package/esm/date/hooks/useDatepicker.d.ts +3 -8
- package/esm/date/hooks/useDatepicker.js +2 -3
- package/esm/date/hooks/useDatepicker.js.map +1 -1
- package/esm/date/hooks/useMonthPicker.d.ts +3 -8
- package/esm/date/hooks/useMonthPicker.js +1 -1
- package/esm/date/hooks/useMonthPicker.js.map +1 -1
- package/esm/date/hooks/useRangeDatepicker.d.ts +3 -3
- package/esm/date/hooks/useRangeDatepicker.js +2 -4
- package/esm/date/hooks/useRangeDatepicker.js.map +1 -1
- package/esm/date/index.d.ts +7 -7
- package/esm/date/index.js +3 -3
- package/esm/date/monthpicker/MonthButton.js +3 -7
- package/esm/date/monthpicker/MonthButton.js.map +1 -1
- package/esm/date/monthpicker/MonthCaption.js +5 -8
- package/esm/date/monthpicker/MonthCaption.js.map +1 -1
- package/esm/date/monthpicker/MonthPicker.d.ts +3 -3
- package/esm/date/monthpicker/MonthPicker.js +17 -11
- package/esm/date/monthpicker/MonthPicker.js.map +1 -1
- package/esm/date/monthpicker/MonthPickerStandalone.d.ts +1 -1
- package/esm/date/monthpicker/MonthPickerStandalone.js +12 -6
- package/esm/date/monthpicker/MonthPickerStandalone.js.map +1 -1
- package/esm/date/monthpicker/MonthSelector.js +5 -8
- package/esm/date/monthpicker/MonthSelector.js.map +1 -1
- package/esm/date/monthpicker/types.d.ts +1 -1
- package/esm/date/parts/DateInput.d.ts +2 -2
- package/esm/date/parts/DateInput.js +5 -5
- package/esm/date/parts/DateWrapper.js +8 -8
- package/esm/date/parts/DateWrapper.js.map +1 -1
- package/esm/date/utils/check-dates.js +1 -2
- package/esm/date/utils/check-dates.js.map +1 -1
- package/esm/date/utils/dates-disabled.js +1 -1
- package/esm/date/utils/dates-disabled.js.map +1 -1
- package/esm/date/utils/format-date.d.ts +1 -0
- package/esm/date/utils/format-date.js +2 -2
- package/esm/date/utils/format-date.js.map +1 -1
- package/esm/date/utils/get-dates.js +1 -5
- package/esm/date/utils/get-dates.js.map +1 -1
- package/esm/date/utils/get-initial-year.js +1 -1
- package/esm/date/utils/get-initial-year.js.map +1 -1
- package/esm/date/utils/index.d.ts +10 -10
- package/esm/date/utils/index.js +10 -10
- package/esm/date/utils/is-match.js +1 -4
- package/esm/date/utils/is-match.js.map +1 -1
- package/esm/date/utils/labels.d.ts +1 -0
- package/esm/date/utils/labels.js.map +1 -1
- package/esm/date/utils/locale.d.ts +1 -1
- package/esm/date/utils/locale.js +1 -3
- package/esm/date/utils/locale.js.map +1 -1
- package/esm/date/utils/navigation.d.ts +1 -1
- package/esm/date/utils/navigation.js +2 -2
- package/esm/date/utils/navigation.js.map +1 -1
- package/esm/date/utils/parse-date.d.ts +1 -0
- package/esm/date/utils/parse-date.js +2 -4
- package/esm/date/utils/parse-date.js.map +1 -1
- package/esm/dropdown/Dropdown.d.ts +2 -2
- package/esm/dropdown/Dropdown.js +4 -4
- package/esm/dropdown/Menu/GroupedList/GroupedItem.d.ts +1 -1
- package/esm/dropdown/Menu/GroupedList/GroupedItem.js +2 -2
- package/esm/dropdown/Menu/GroupedList/index.d.ts +3 -3
- package/esm/dropdown/Menu/GroupedList/index.js +2 -2
- package/esm/dropdown/Menu/List/Item.d.ts +1 -1
- package/esm/dropdown/Menu/List/Item.js +2 -2
- package/esm/dropdown/Menu/List/index.d.ts +2 -2
- package/esm/dropdown/Menu/List/index.js +1 -1
- package/esm/dropdown/Menu/index.d.ts +2 -2
- package/esm/dropdown/Menu/index.js +5 -5
- package/esm/dropdown/Toggle.js +2 -2
- package/esm/dropdown/index.d.ts +1 -1
- package/esm/dropdown/index.js +1 -1
- package/esm/expansion-card/ExpansionCard.d.ts +5 -5
- package/esm/expansion-card/ExpansionCard.js +5 -5
- package/esm/expansion-card/ExpansionCardContent.js +2 -2
- package/esm/expansion-card/ExpansionCardDescription.js +2 -2
- package/esm/expansion-card/ExpansionCardHeader.js +1 -1
- package/esm/expansion-card/ExpansionCardTitle.d.ts +1 -1
- package/esm/expansion-card/index.d.ts +1 -1
- package/esm/expansion-card/index.js +1 -1
- package/esm/form/ConfirmationPanel.d.ts +1 -1
- package/esm/form/ConfirmationPanel.js +4 -4
- package/esm/form/Fieldset/Fieldset.d.ts +1 -1
- package/esm/form/Fieldset/Fieldset.js +5 -5
- package/esm/form/Fieldset/index.d.ts +2 -2
- package/esm/form/Fieldset/index.js +2 -2
- package/esm/form/Fieldset/useFieldset.js +1 -1
- package/esm/form/Select.d.ts +1 -1
- package/esm/form/Select.js +4 -4
- package/esm/form/Switch.d.ts +1 -1
- package/esm/form/Switch.js +5 -5
- package/esm/form/TextField.d.ts +1 -1
- package/esm/form/TextField.js +4 -4
- package/esm/form/Textarea.d.ts +1 -1
- package/esm/form/Textarea.js +15 -15
- package/esm/form/Textarea.js.map +1 -1
- package/esm/form/TextareaCounter.d.ts +1 -1
- package/esm/form/TextareaCounter.js +2 -2
- package/esm/form/checkbox/Checkbox.d.ts +1 -1
- package/esm/form/checkbox/Checkbox.js +5 -5
- package/esm/form/checkbox/CheckboxGroup.d.ts +1 -1
- package/esm/form/checkbox/CheckboxGroup.js +1 -1
- package/esm/form/checkbox/index.d.ts +3 -3
- package/esm/form/checkbox/index.js +2 -2
- package/esm/form/checkbox/types.d.ts +1 -1
- package/esm/form/checkbox/useCheckbox.d.ts +1 -1
- package/esm/form/checkbox/useCheckbox.js +3 -3
- package/esm/form/combobox/Combobox.d.ts +1 -1
- package/esm/form/combobox/Combobox.js +12 -12
- package/esm/form/combobox/Combobox.js.map +1 -1
- package/esm/form/combobox/ComboboxProvider.d.ts +1 -1
- package/esm/form/combobox/ComboboxProvider.js +7 -6
- package/esm/form/combobox/ComboboxProvider.js.map +1 -1
- package/esm/form/combobox/ComboboxWrapper.js +1 -1
- package/esm/form/combobox/ComboboxWrapper.js.map +1 -1
- package/esm/form/combobox/FilteredOptions/FilteredOptions.js +65 -47
- package/esm/form/combobox/FilteredOptions/FilteredOptions.js.map +1 -1
- package/esm/form/combobox/FilteredOptions/filtered-options-util.d.ts +2 -1
- package/esm/form/combobox/FilteredOptions/filtered-options-util.js +3 -1
- package/esm/form/combobox/FilteredOptions/filtered-options-util.js.map +1 -1
- package/esm/form/combobox/FilteredOptions/filteredOptionsContext.d.ts +2 -2
- package/esm/form/combobox/FilteredOptions/filteredOptionsContext.js +20 -8
- package/esm/form/combobox/FilteredOptions/filteredOptionsContext.js.map +1 -1
- package/esm/form/combobox/FilteredOptions/useVirtualFocus.d.ts +2 -4
- package/esm/form/combobox/FilteredOptions/useVirtualFocus.js +52 -32
- package/esm/form/combobox/FilteredOptions/useVirtualFocus.js.map +1 -1
- package/esm/form/combobox/Input/Input.js +8 -6
- package/esm/form/combobox/Input/Input.js.map +1 -1
- package/esm/form/combobox/Input/inputContext.d.ts +1 -1
- package/esm/form/combobox/Input/inputContext.js +2 -2
- package/esm/form/combobox/SelectedOptions/SelectedOptions.js +3 -3
- package/esm/form/combobox/SelectedOptions/selectedOptionsContext.d.ts +5 -2
- package/esm/form/combobox/SelectedOptions/selectedOptionsContext.js +6 -4
- package/esm/form/combobox/SelectedOptions/selectedOptionsContext.js.map +1 -1
- package/esm/form/combobox/ToggleListButton.js +1 -1
- package/esm/form/combobox/customOptionsContext.js +1 -1
- package/esm/form/combobox/index.d.ts +2 -2
- package/esm/form/combobox/index.js +1 -1
- package/esm/form/combobox/types.d.ts +15 -1
- package/esm/form/error-summary/ErrorSummary.d.ts +1 -1
- package/esm/form/error-summary/ErrorSummary.js +3 -3
- package/esm/form/error-summary/ErrorSummaryItem.d.ts +1 -1
- package/esm/form/error-summary/index.d.ts +2 -2
- package/esm/form/error-summary/index.js +1 -1
- package/esm/form/index.d.ts +11 -11
- package/esm/form/index.js +11 -11
- package/esm/form/radio/Radio.d.ts +1 -1
- package/esm/form/radio/Radio.js +4 -4
- package/esm/form/radio/RadioGroup.d.ts +1 -1
- package/esm/form/radio/RadioGroup.js +2 -2
- package/esm/form/radio/index.d.ts +3 -3
- package/esm/form/radio/index.js +2 -2
- package/esm/form/radio/types.d.ts +1 -1
- package/esm/form/radio/useRadio.d.ts +1 -1
- package/esm/form/radio/useRadio.js +3 -3
- package/esm/form/search/Search.d.ts +4 -3
- package/esm/form/search/Search.js +8 -8
- package/esm/form/search/Search.js.map +1 -1
- package/esm/form/search/SearchButton.d.ts +1 -1
- package/esm/form/search/SearchButton.js +3 -3
- package/esm/form/search/index.d.ts +1 -1
- package/esm/form/search/index.js +1 -1
- package/esm/form/useFormField.js +2 -2
- package/esm/guide-panel/GuidePanel.js +1 -1
- package/esm/guide-panel/Illustration.js +1 -1
- package/esm/guide-panel/index.d.ts +2 -2
- package/esm/guide-panel/index.js +2 -2
- package/esm/help-text/HelpText.d.ts +1 -1
- package/esm/help-text/HelpText.js +4 -4
- package/esm/help-text/HelpTextIcon.js +1 -1
- package/esm/help-text/index.d.ts +2 -2
- package/esm/help-text/index.js +1 -1
- package/esm/index.d.ts +40 -41
- package/esm/index.js +40 -41
- package/esm/index.js.map +1 -1
- package/esm/internal-header/InternalHeader.d.ts +5 -5
- package/esm/internal-header/InternalHeader.js +4 -4
- package/esm/internal-header/InternalHeaderButton.d.ts +1 -1
- package/esm/internal-header/InternalHeaderTitle.d.ts +1 -1
- package/esm/internal-header/InternalHeaderUser.js +1 -1
- package/esm/internal-header/InternalHeaderUserButton.d.ts +1 -1
- package/esm/internal-header/InternalHeaderUserButton.js +2 -2
- package/esm/internal-header/index.d.ts +5 -5
- package/esm/internal-header/index.js +1 -1
- package/esm/layout/bleed/Bleed.d.ts +3 -3
- package/esm/layout/bleed/Bleed.js +2 -2
- package/esm/layout/bleed/index.d.ts +1 -1
- package/esm/layout/bleed/index.js +1 -1
- package/esm/layout/box/Box.d.ts +2 -2
- package/esm/layout/box/Box.js +1 -1
- package/esm/layout/box/index.d.ts +1 -1
- package/esm/layout/box/index.js +1 -1
- package/esm/layout/grid/HGrid.d.ts +1 -1
- package/esm/layout/grid/HGrid.js +1 -1
- package/esm/layout/grid/index.d.ts +1 -1
- package/esm/layout/grid/index.js +1 -1
- package/esm/layout/page/Page.d.ts +2 -2
- package/esm/layout/page/Page.js +1 -1
- package/esm/layout/page/index.d.ts +2 -2
- package/esm/layout/page/index.js +1 -1
- package/esm/layout/page/parts/PageBlock.d.ts +1 -1
- package/esm/layout/responsive/Responsive.d.ts +1 -1
- package/esm/layout/responsive/Responsive.js +1 -1
- package/esm/layout/responsive/index.d.ts +1 -1
- package/esm/layout/responsive/index.js +1 -1
- package/esm/layout/sidemal-test/AvatarPanel.js +2 -2
- package/esm/layout/sidemal-test/Content.js +9 -9
- package/esm/layout/sidemal-test/Filter.js +4 -4
- package/esm/layout/sidemal-test/Header.js +5 -5
- package/esm/layout/sidemal-test/Intro.js +4 -4
- package/esm/layout/sidemal-test/Sidebar.js +4 -4
- package/esm/layout/sidemal-test/content-box/ContentBox.d.ts +1 -1
- package/esm/layout/sidemal-test/content-box/index.d.ts +1 -1
- package/esm/layout/sidemal-test/content-box/index.js +1 -1
- package/esm/layout/stack/HStack.d.ts +2 -2
- package/esm/layout/stack/HStack.js +1 -1
- package/esm/layout/stack/Stack.d.ts +2 -2
- package/esm/layout/stack/Stack.js +1 -1
- package/esm/layout/stack/VStack.d.ts +2 -2
- package/esm/layout/stack/VStack.js +1 -1
- package/esm/layout/stack/index.d.ts +4 -4
- package/esm/layout/stack/index.js +4 -4
- package/esm/layout/utilities/css.d.ts +1 -1
- package/esm/layout/utilities/css.js +4 -0
- package/esm/layout/utilities/css.js.map +1 -1
- package/esm/layout/utilities/types.d.ts +1 -1
- package/esm/link/Link.d.ts +1 -1
- package/esm/link/index.d.ts +2 -2
- package/esm/link/index.js +1 -1
- package/esm/link-panel/LinkPanel.d.ts +3 -3
- package/esm/link-panel/LinkPanel.js +3 -3
- package/esm/link-panel/LinkPanelDescription.js +1 -1
- package/esm/link-panel/LinkPanelTitle.d.ts +1 -1
- package/esm/link-panel/index.d.ts +2 -2
- package/esm/link-panel/index.js +1 -1
- package/esm/list/List.d.ts +2 -2
- package/esm/list/List.js +4 -4
- package/esm/list/ListItem.js +2 -2
- package/esm/list/context.d.ts +1 -1
- package/esm/list/index.d.ts +2 -2
- package/esm/list/index.js +1 -1
- package/esm/loader/Loader.js +2 -2
- package/esm/loader/index.d.ts +2 -2
- package/esm/loader/index.js +1 -1
- package/esm/modal/Modal.context.d.ts +9 -0
- package/esm/modal/Modal.context.js +6 -0
- package/esm/modal/Modal.context.js.map +1 -0
- package/esm/modal/Modal.d.ts +4 -4
- package/esm/modal/Modal.js +14 -17
- package/esm/modal/Modal.js.map +1 -1
- package/esm/modal/ModalHeader.js +4 -8
- package/esm/modal/ModalHeader.js.map +1 -1
- package/esm/modal/ModalUtils.d.ts +1 -1
- package/esm/modal/index.d.ts +5 -5
- package/esm/modal/index.js +1 -1
- package/esm/modal/types.d.ts +24 -3
- package/esm/overlays/index.d.ts +2 -0
- package/esm/overlays/index.js +2 -0
- package/esm/overlays/index.js.map +1 -0
- package/esm/overlays/portal/Portal.d.ts +11 -0
- package/esm/overlays/portal/Portal.js +27 -0
- package/esm/overlays/portal/Portal.js.map +1 -0
- package/esm/package.json +1 -1
- package/esm/pagination/Pagination.d.ts +1 -1
- package/esm/pagination/Pagination.js +2 -2
- package/esm/pagination/PaginationItem.d.ts +2 -2
- package/esm/pagination/PaginationItem.js +1 -1
- package/esm/pagination/index.d.ts +1 -1
- package/esm/pagination/index.js +1 -1
- package/esm/panel/Panel.d.ts +10 -17
- package/esm/panel/Panel.js +6 -16
- package/esm/panel/Panel.js.map +1 -1
- package/esm/panel/index.d.ts +2 -2
- package/esm/panel/index.js +1 -1
- package/esm/popover/Popover.d.ts +1 -1
- package/esm/popover/Popover.js +6 -6
- package/esm/popover/Popover.js.map +1 -1
- package/esm/popover/index.d.ts +2 -2
- package/esm/popover/index.js +1 -1
- package/esm/provider/index.d.ts +1 -1
- package/esm/provider/index.js +1 -1
- package/esm/read-more/ReadMore.js +3 -3
- package/esm/read-more/index.d.ts +2 -2
- package/esm/read-more/index.js +1 -1
- package/esm/skeleton/index.d.ts +2 -2
- package/esm/skeleton/index.js +1 -1
- package/esm/stepper/Step.d.ts +1 -1
- package/esm/stepper/Step.js +3 -3
- package/esm/stepper/Stepper.d.ts +1 -1
- package/esm/stepper/Stepper.js +2 -2
- package/esm/stepper/index.d.ts +1 -1
- package/esm/stepper/index.js +1 -1
- package/esm/table/ColumnHeader.d.ts +1 -1
- package/esm/table/ColumnHeader.js +2 -2
- package/esm/table/DataCell.js +1 -1
- package/esm/table/ExpandableRow.d.ts +1 -1
- package/esm/table/ExpandableRow.js +6 -6
- package/esm/table/Table.d.ts +8 -8
- package/esm/table/Table.js +8 -8
- package/esm/table/context.d.ts +1 -1
- package/esm/table/index.d.ts +9 -9
- package/esm/table/index.js +1 -1
- package/esm/table/types.d.ts +1 -1
- package/esm/tabs/Tab.d.ts +1 -1
- package/esm/tabs/Tab.js +2 -2
- package/esm/tabs/TabList.js +5 -5
- package/esm/tabs/TabList.js.map +1 -1
- package/esm/tabs/TabPanel.js +2 -2
- package/esm/tabs/TabPanel.js.map +1 -1
- package/esm/tabs/Tabs.d.ts +4 -4
- package/esm/tabs/Tabs.js +4 -4
- package/esm/tabs/index.d.ts +4 -4
- package/esm/tabs/index.js +1 -1
- package/esm/tag/Tag.js +1 -1
- package/esm/tag/index.d.ts +1 -1
- package/esm/tag/index.js +1 -1
- package/esm/timeline/AxisLabels.d.ts +1 -1
- package/esm/timeline/AxisLabels.js +5 -5
- package/esm/timeline/AxisLabels.js.map +1 -1
- package/esm/timeline/Pin.d.ts +1 -1
- package/esm/timeline/Pin.js +3 -3
- package/esm/timeline/Timeline.d.ts +5 -5
- package/esm/timeline/Timeline.js +9 -9
- package/esm/timeline/TimelineRow.d.ts +1 -1
- package/esm/timeline/TimelineRow.js +5 -5
- package/esm/timeline/hooks/useRowContext.d.ts +1 -1
- package/esm/timeline/hooks/useTimelineRows.d.ts +1 -1
- package/esm/timeline/hooks/useTimelineRows.js +3 -3
- package/esm/timeline/index.d.ts +6 -6
- package/esm/timeline/index.js +1 -1
- package/esm/timeline/period/ClickablePeriod.d.ts +1 -1
- package/esm/timeline/period/ClickablePeriod.js +5 -5
- package/esm/timeline/period/NonClickablePeriod.d.ts +1 -1
- package/esm/timeline/period/NonClickablePeriod.js +1 -1
- package/esm/timeline/period/index.d.ts +1 -1
- package/esm/timeline/period/index.js +4 -4
- package/esm/timeline/utils/filter.d.ts +1 -1
- package/esm/timeline/utils/index.d.ts +1 -1
- package/esm/timeline/utils/index.js +1 -1
- package/esm/timeline/utils/sort.d.ts +1 -1
- package/esm/timeline/utils/timeline.d.ts +1 -1
- package/esm/timeline/utils/timeline.js +1 -1
- package/esm/timeline/zoom/ZoomButton.js +2 -2
- package/esm/timeline/zoom/index.d.ts +1 -1
- package/esm/timeline/zoom/index.js +1 -1
- package/esm/toggle-group/ToggleGroup.d.ts +1 -1
- package/esm/toggle-group/ToggleGroup.js +4 -4
- package/esm/toggle-group/ToggleItem.js +2 -2
- package/esm/toggle-group/index.d.ts +2 -2
- package/esm/toggle-group/index.js +1 -1
- package/esm/tooltip/Tooltip.js +11 -15
- package/esm/tooltip/Tooltip.js.map +1 -1
- package/esm/tooltip/index.d.ts +1 -1
- package/esm/tooltip/index.js +1 -1
- package/esm/typography/BodyLong.d.ts +2 -2
- package/esm/typography/BodyLong.js +1 -1
- package/esm/typography/BodyShort.d.ts +2 -2
- package/esm/typography/BodyShort.js +1 -1
- package/esm/typography/Detail.d.ts +2 -2
- package/esm/typography/Detail.js +1 -1
- package/esm/typography/ErrorMessage.d.ts +2 -2
- package/esm/typography/ErrorMessage.js +1 -1
- package/esm/typography/Heading.d.ts +2 -2
- package/esm/typography/Heading.js +1 -1
- package/esm/typography/Ingress.d.ts +1 -1
- package/esm/typography/Label.d.ts +2 -2
- package/esm/typography/Label.js +1 -1
- package/esm/typography/index.d.ts +7 -7
- package/esm/typography/index.js +7 -7
- package/esm/typography/util.d.ts +1 -1
- package/esm/util/Slot.js +6 -3
- package/esm/util/Slot.js.map +1 -1
- package/esm/util/TextareaAutoSize.js +17 -27
- package/esm/util/TextareaAutoSize.js.map +1 -1
- package/esm/util/create-context.d.ts +2 -5
- package/esm/util/create-context.js +10 -6
- package/esm/util/create-context.js.map +1 -1
- package/esm/util/hooks/descendants/descendant.js +1 -1
- package/esm/util/hooks/descendants/useDescendant.d.ts +1 -1
- package/esm/util/hooks/descendants/useDescendant.js +5 -5
- package/esm/util/hooks/index.d.ts +8 -8
- package/esm/util/hooks/index.js +8 -8
- package/esm/util/hooks/useControllableState.js +1 -1
- package/esm/util/index.d.ts +6 -6
- package/esm/util/index.js +5 -5
- package/esm/util/types/AsChildProps.d.ts +36 -0
- package/esm/util/types/AsChildProps.js +2 -0
- package/esm/util/types/AsChildProps.js.map +1 -0
- package/esm/util/types/OverridableComponent.d.ts +1 -1
- package/esm/util/types/index.d.ts +2 -1
- package/package.json +11 -10
- package/src/accordion/accordion.stories.tsx +121 -135
- package/src/alert/alert.stories.tsx +202 -113
- package/src/button/button.stories.tsx +88 -185
- package/src/chat/Bubble.tsx +2 -23
- package/src/chat/Chat.tsx +1 -18
- package/src/chat/chat.stories.tsx +284 -216
- package/src/date/context/useSharedMonthContext.tsx +1 -2
- package/src/date/datepicker/DatePicker.tsx +1 -3
- package/src/date/datepicker/DatePickerStandalone.tsx +1 -3
- package/src/date/datepicker/datepicker.stories.tsx +11 -7
- package/src/date/datepicker/parts/DayButton.tsx +1 -1
- package/src/date/datepicker/parts/DropdownCaption.tsx +1 -4
- package/src/date/datepicker/parts/Row.tsx +3 -2
- package/src/date/hooks/useDatepicker.tsx +2 -8
- package/src/date/hooks/useMonthPicker.tsx +1 -6
- package/src/date/hooks/useRangeDatepicker.tsx +5 -3
- package/src/date/monthpicker/MonthButton.tsx +7 -5
- package/src/date/monthpicker/MonthCaption.tsx +7 -4
- package/src/date/monthpicker/MonthPicker.tsx +10 -8
- package/src/date/monthpicker/MonthPickerStandalone.tsx +10 -8
- package/src/date/monthpicker/MonthSelector.tsx +1 -4
- package/src/date/monthpicker/monthpicker.stories.tsx +5 -3
- package/src/date/parts/DateInput.tsx +1 -1
- package/src/date/parts/DateWrapper.tsx +3 -3
- package/src/date/utils/__tests__/format-dates.test.ts +1 -1
- package/src/date/utils/__tests__/get-initial-year.test.ts +1 -1
- package/src/date/utils/__tests__/parse-dates.test.ts +2 -2
- package/src/date/utils/check-dates.ts +1 -2
- package/src/date/utils/dates-disabled.ts +1 -1
- package/src/date/utils/format-date.ts +1 -1
- package/src/date/utils/get-dates.ts +7 -5
- package/src/date/utils/get-initial-year.ts +1 -1
- package/src/date/utils/is-match.ts +6 -4
- package/src/date/utils/labels.ts +1 -0
- package/src/date/utils/locale.ts +1 -3
- package/src/date/utils/navigation.ts +1 -1
- package/src/date/utils/parse-date.ts +1 -3
- package/src/dropdown/dropdown.stories.tsx +1 -1
- package/src/form/Textarea.tsx +34 -34
- package/src/form/combobox/Combobox.tsx +1 -1
- package/src/form/combobox/ComboboxProvider.tsx +2 -0
- package/src/form/combobox/ComboboxWrapper.tsx +0 -1
- package/src/form/combobox/FilteredOptions/FilteredOptions.tsx +131 -92
- package/src/form/combobox/FilteredOptions/filtered-options-util.ts +9 -2
- package/src/form/combobox/FilteredOptions/filteredOptionsContext.tsx +22 -3
- package/src/form/combobox/FilteredOptions/useVirtualFocus.ts +63 -45
- package/src/form/combobox/Input/Input.tsx +3 -1
- package/src/form/combobox/SelectedOptions/selectedOptionsContext.tsx +11 -1
- package/src/form/combobox/combobox.stories.tsx +36 -1
- package/src/form/combobox/combobox.test.tsx +1 -3
- package/src/form/combobox/types.ts +15 -0
- package/src/form/error-summary/error-summary.stories.tsx +1 -1
- package/src/form/search/Search.tsx +7 -2
- package/src/form/stories/confirmation-panel.stories.tsx +1 -1
- package/src/form/stories/textarea.stories.tsx +37 -0
- package/src/help-text/help-text.stories.tsx +2 -1
- package/src/index.ts +2 -2
- package/src/internal-header/header.stories.tsx +2 -1
- package/src/layout/bleed/Bleed.stories.tsx +15 -1
- package/src/layout/bleed/Bleed.tsx +2 -2
- package/src/layout/box/Box.stories.tsx +3 -2
- package/src/layout/sidemal-test/navno-sidemal.stories.tsx +5 -1
- package/src/layout/utilities/css.ts +3 -0
- package/src/layout/utilities/types.ts +1 -1
- package/src/link/stories/link.stories.tsx +20 -22
- package/src/link-panel/link-panel.stories.tsx +1 -1
- package/src/list/list.stories.tsx +2 -1
- package/src/loader/loader.stories.tsx +1 -1
- package/src/modal/Modal.context.ts +13 -0
- package/src/modal/Modal.test.tsx +2 -2
- package/src/modal/Modal.tsx +6 -8
- package/src/modal/ModalHeader.tsx +3 -7
- package/src/modal/modal.stories.tsx +33 -6
- package/src/modal/types.ts +21 -4
- package/src/overlays/index.ts +2 -0
- package/src/overlays/portal/Portal.stories.tsx +99 -0
- package/src/overlays/portal/Portal.tsx +32 -0
- package/src/panel/Panel.tsx +9 -16
- package/src/popover/Popover.tsx +2 -2
- package/src/stepper/stepper.stories.tsx +1 -1
- package/src/table/stories/{table.stories.tsx → table-1.stories.tsx} +118 -92
- package/src/table/stories/{table-expandable.stories.tsx → table-2-expandable.stories.tsx} +10 -34
- package/src/table/stories/{table-async.stories.tsx → table-3-async.stories.tsx} +5 -3
- package/src/table/stories/tests/table.stories.tsx +4 -1
- package/src/table/types.ts +1 -1
- package/src/tabs/TabList.tsx +2 -2
- package/src/tabs/TabPanel.tsx +2 -2
- package/src/tabs/Tabs.test.tsx +109 -0
- package/src/timeline/AxisLabels.tsx +1 -1
- package/src/toggle-group/ToggleGroup.test.tsx +54 -0
- package/src/tooltip/Tooltip.tsx +7 -17
- package/src/tooltip/tooltip.stories.tsx +4 -1
- package/src/typography/stories/bodylong.stories.tsx +49 -3
- package/src/typography/stories/bodyshort.stories.tsx +50 -4
- package/src/typography/stories/detail.stories.tsx +32 -3
- package/src/typography/stories/error-message.stories.tsx +34 -3
- package/src/typography/stories/heading.stories.tsx +32 -3
- package/src/typography/stories/label.stories.tsx +38 -3
- package/src/util/Slot.tsx +4 -2
- package/src/util/TextareaAutoSize.tsx +16 -31
- package/src/util/create-context.tsx +26 -15
- package/src/util/types/AsChildProps.ts +37 -0
- package/src/util/types/OverridableComponent.ts +1 -1
- package/src/util/types/index.ts +1 -0
- package/_docs.json +0 -19787
- package/cjs/grid/Cell.d.ts +0 -30
- package/cjs/grid/Cell.js +0 -52
- package/cjs/grid/Cell.js.map +0 -1
- package/cjs/grid/Grid.d.ts +0 -13
- package/cjs/grid/Grid.js.map +0 -1
- package/cjs/grid/index.d.ts +0 -2
- package/cjs/grid/index.js +0 -11
- package/cjs/grid/index.js.map +0 -1
- package/cjs/layout/content-container/ContentContainer.d.ts +0 -9
- package/cjs/layout/content-container/ContentContainer.js +0 -48
- package/cjs/layout/content-container/ContentContainer.js.map +0 -1
- package/cjs/layout/content-container/index.d.ts +0 -1
- package/cjs/layout/content-container/index.js +0 -9
- package/cjs/layout/content-container/index.js.map +0 -1
- package/cjs/modal/ModalContext.d.ts +0 -7
- package/cjs/modal/ModalContext.js +0 -9
- package/cjs/modal/ModalContext.js.map +0 -1
- package/esm/grid/Cell.d.ts +0 -30
- package/esm/grid/Cell.js +0 -23
- package/esm/grid/Cell.js.map +0 -1
- package/esm/grid/Grid.d.ts +0 -13
- package/esm/grid/Grid.js +0 -23
- package/esm/grid/Grid.js.map +0 -1
- package/esm/grid/index.d.ts +0 -2
- package/esm/grid/index.js +0 -3
- package/esm/grid/index.js.map +0 -1
- package/esm/layout/content-container/ContentContainer.d.ts +0 -9
- package/esm/layout/content-container/ContentContainer.js +0 -19
- package/esm/layout/content-container/ContentContainer.js.map +0 -1
- package/esm/layout/content-container/index.d.ts +0 -1
- package/esm/layout/content-container/index.js +0 -2
- package/esm/layout/content-container/index.js.map +0 -1
- package/esm/modal/ModalContext.d.ts +0 -7
- package/esm/modal/ModalContext.js +0 -3
- package/esm/modal/ModalContext.js.map +0 -1
- package/src/grid/Cell.tsx +0 -53
- package/src/grid/Grid.tsx +0 -23
- package/src/grid/grid.stories.tsx +0 -67
- package/src/grid/index.ts +0 -2
- package/src/layout/content-container/ContentContainer.tsx +0 -22
- package/src/layout/content-container/index.ts +0 -4
- package/src/layout/sidemal-test/navno-sidemal.stories.mdx +0 -29
- package/src/modal/ModalContext.ts +0 -7
- package/src/panel/panel.stories.tsx +0 -63
- package/src/typography/stories/ingress.stories.tsx +0 -50
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Box } from "../../layout/box";
|
|
3
|
+
import { Provider } from "../../provider";
|
|
4
|
+
import { Portal } from "./Portal";
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
title: "Utilities/Portal",
|
|
8
|
+
parameters: {
|
|
9
|
+
chromatic: { disable: true },
|
|
10
|
+
},
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const Default = () => {
|
|
14
|
+
return (
|
|
15
|
+
<Box background="surface-neutral-subtle" border>
|
|
16
|
+
<h1>In regular DOM tree</h1>
|
|
17
|
+
<p>
|
|
18
|
+
Lorem ipsum dolor sit amet consectetur adipisicing elit. Temporibus
|
|
19
|
+
necessitatibus quis esse nesciunt est velit voluptatibus. Distinctio eum
|
|
20
|
+
commodi tempora unde. Nulla vel tempora incidunt? Voluptatem molestias
|
|
21
|
+
impedit commodi. Tenetur!
|
|
22
|
+
</p>
|
|
23
|
+
<Portal>
|
|
24
|
+
<h1>Inside Portal to different DOM tree</h1>
|
|
25
|
+
<p>
|
|
26
|
+
Lorem ipsum dolor sit amet consectetur adipisicing elit. Temporibus
|
|
27
|
+
necessitatibus quis esse nesciunt est velit voluptatibus. Distinctio
|
|
28
|
+
eum commodi tempora unde. Nulla vel tempora incidunt? Voluptatem
|
|
29
|
+
molestias impedit commodi. Tenetur!
|
|
30
|
+
</p>
|
|
31
|
+
</Portal>
|
|
32
|
+
</Box>
|
|
33
|
+
);
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export const CustomPortalRoot = () => {
|
|
37
|
+
const [portalContainer, setPortalContainer] =
|
|
38
|
+
React.useState<HTMLDivElement | null>(null);
|
|
39
|
+
|
|
40
|
+
return (
|
|
41
|
+
<Box background="surface-neutral-subtle">
|
|
42
|
+
<Box background="surface-alt-1-subtle">
|
|
43
|
+
<h1>Tree A</h1>
|
|
44
|
+
<Portal rootElement={portalContainer}>
|
|
45
|
+
<p>This is mounted to Tree B, while created inside Tree A</p>
|
|
46
|
+
</Portal>
|
|
47
|
+
</Box>
|
|
48
|
+
<Box background="surface-alt-3-subtle" ref={setPortalContainer}>
|
|
49
|
+
<h1>Tree B</h1>
|
|
50
|
+
</Box>
|
|
51
|
+
</Box>
|
|
52
|
+
);
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
export const CustomPortalRootFromProvider = () => {
|
|
56
|
+
const [portalContainer, setPortalContainer] =
|
|
57
|
+
React.useState<HTMLDivElement>();
|
|
58
|
+
|
|
59
|
+
return (
|
|
60
|
+
<Provider rootElement={portalContainer}>
|
|
61
|
+
<Box background="surface-neutral-subtle">
|
|
62
|
+
<Box background="surface-alt-1-subtle">
|
|
63
|
+
<h1>Tree A</h1>
|
|
64
|
+
<Portal>
|
|
65
|
+
<p>This is mounted to Tree B, while created inside Tree A</p>
|
|
66
|
+
</Portal>
|
|
67
|
+
</Box>
|
|
68
|
+
<Box background="surface-alt-3-subtle" ref={setPortalContainer}>
|
|
69
|
+
<h1>Tree B</h1>
|
|
70
|
+
</Box>
|
|
71
|
+
</Box>
|
|
72
|
+
</Provider>
|
|
73
|
+
);
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
export const AsChild = () => {
|
|
77
|
+
return (
|
|
78
|
+
<Box background="surface-neutral-subtle" border>
|
|
79
|
+
<h1>In regular DOM tree</h1>
|
|
80
|
+
<p>
|
|
81
|
+
Lorem ipsum dolor sit amet consectetur adipisicing elit. Temporibus
|
|
82
|
+
necessitatibus quis esse nesciunt est velit voluptatibus. Distinctio eum
|
|
83
|
+
commodi tempora unde. Nulla vel tempora incidunt? Voluptatem molestias
|
|
84
|
+
impedit commodi. Tenetur!
|
|
85
|
+
</p>
|
|
86
|
+
<Portal asChild>
|
|
87
|
+
<div data-this-is-the-child>
|
|
88
|
+
<h1>Inside Portal to different DOM tree</h1>
|
|
89
|
+
<p>
|
|
90
|
+
Lorem ipsum dolor sit amet consectetur adipisicing elit. Temporibus
|
|
91
|
+
necessitatibus quis esse nesciunt est velit voluptatibus. Distinctio
|
|
92
|
+
eum commodi tempora unde. Nulla vel tempora incidunt? Voluptatem
|
|
93
|
+
molestias impedit commodi. Tenetur!
|
|
94
|
+
</p>
|
|
95
|
+
</div>
|
|
96
|
+
</Portal>
|
|
97
|
+
</Box>
|
|
98
|
+
);
|
|
99
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React, { HTMLAttributes, forwardRef } from "react";
|
|
2
|
+
import ReactDOM from "react-dom";
|
|
3
|
+
import { useProvider } from "../../provider";
|
|
4
|
+
import { Slot } from "../../util/Slot";
|
|
5
|
+
import { AsChildProps } from "../../util/types";
|
|
6
|
+
|
|
7
|
+
interface PortalBaseProps extends HTMLAttributes<HTMLDivElement> {
|
|
8
|
+
/**
|
|
9
|
+
* An optional container where the portaled content should be appended.
|
|
10
|
+
*/
|
|
11
|
+
rootElement?: HTMLElement | null;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type PortalProps = PortalBaseProps & AsChildProps;
|
|
15
|
+
|
|
16
|
+
export const Portal = forwardRef<HTMLDivElement, PortalProps>(
|
|
17
|
+
({ rootElement, asChild, ...rest }, ref) => {
|
|
18
|
+
const contextRoot = useProvider()?.rootElement;
|
|
19
|
+
const root = rootElement ?? contextRoot ?? globalThis?.document?.body;
|
|
20
|
+
|
|
21
|
+
const Component = asChild ? Slot : "div";
|
|
22
|
+
|
|
23
|
+
return root
|
|
24
|
+
? ReactDOM.createPortal(
|
|
25
|
+
<Component ref={ref} data-aksel-portal="" {...rest} />,
|
|
26
|
+
root,
|
|
27
|
+
)
|
|
28
|
+
: null;
|
|
29
|
+
},
|
|
30
|
+
);
|
|
31
|
+
|
|
32
|
+
export default Portal;
|
package/src/panel/Panel.tsx
CHANGED
|
@@ -2,6 +2,9 @@ import cl from "clsx";
|
|
|
2
2
|
import React, { forwardRef } from "react";
|
|
3
3
|
import { OverridableComponent } from "../util/types";
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated Use Box with padding and border instead
|
|
7
|
+
*/
|
|
5
8
|
export interface PanelProps extends React.HTMLAttributes<HTMLElement> {
|
|
6
9
|
/**
|
|
7
10
|
* Panel content
|
|
@@ -17,23 +20,13 @@ export interface PanelProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
17
20
|
export type PanelType = OverridableComponent<PanelProps, HTMLElement>;
|
|
18
21
|
|
|
19
22
|
/**
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
* @example
|
|
27
|
-
* ```jsx
|
|
28
|
-
* <Panel border>
|
|
29
|
-
* <Heading spacing level="2" size="large">
|
|
30
|
-
* Søk om økonomisk sosialhjelp
|
|
31
|
-
* </Heading>
|
|
32
|
-
* <BodyLong>
|
|
33
|
-
* Du kan søke om det du trenger økonomisk støtte til.
|
|
34
|
-
* </BodyLong>
|
|
35
|
-
* </Panel>
|
|
23
|
+
* @deprecated
|
|
24
|
+
* Use Box with padding and border instead
|
|
25
|
+
* ```
|
|
26
|
+
* <Box padding="4" borderRadius="small" />
|
|
27
|
+
* <Box padding="4" borderWidth="1" borderRadius="small" />
|
|
36
28
|
* ```
|
|
29
|
+
* Component will be removed in a future major release
|
|
37
30
|
*/
|
|
38
31
|
export const Panel: PanelType = forwardRef(
|
|
39
32
|
(
|
package/src/popover/Popover.tsx
CHANGED
|
@@ -18,7 +18,7 @@ import React, {
|
|
|
18
18
|
useRef,
|
|
19
19
|
} from "react";
|
|
20
20
|
import { DateContext } from "../date/context";
|
|
21
|
-
import {
|
|
21
|
+
import { useModalContext } from "../modal/Modal.context";
|
|
22
22
|
import { useClientLayoutEffect, useEventListener } from "../util/hooks";
|
|
23
23
|
import { useMergeRefs } from "../util/hooks/useMergeRefs";
|
|
24
24
|
import PopoverContent, { PopoverContentType } from "./PopoverContent";
|
|
@@ -126,7 +126,7 @@ export const Popover = forwardRef<HTMLDivElement, PopoverProps>(
|
|
|
126
126
|
ref,
|
|
127
127
|
) => {
|
|
128
128
|
const arrowRef = useRef<HTMLDivElement | null>(null);
|
|
129
|
-
const isInModal =
|
|
129
|
+
const isInModal = useModalContext(false) !== undefined;
|
|
130
130
|
const isInDatepicker = useContext(DateContext) !== null;
|
|
131
131
|
const chosenStrategy = userStrategy ?? (isInModal ? "fixed" : "absolute");
|
|
132
132
|
const chosenFlip = isInDatepicker ? false : _flip;
|
|
@@ -1,16 +1,27 @@
|
|
|
1
1
|
import React, { useState } from "react";
|
|
2
2
|
import { Table, TableProps } from "../";
|
|
3
|
-
import {
|
|
3
|
+
import { Button } from "../../button";
|
|
4
|
+
import { Checkbox } from "../../form";
|
|
5
|
+
import { VStack } from "../../layout/stack";
|
|
6
|
+
import {
|
|
7
|
+
Expandable,
|
|
8
|
+
ExpandableLarge,
|
|
9
|
+
ExpandableSmall,
|
|
10
|
+
} from "./table-2-expandable.stories";
|
|
4
11
|
|
|
5
12
|
export default {
|
|
6
13
|
title: "ds-react/Table",
|
|
7
14
|
component: Table,
|
|
15
|
+
parameters: {
|
|
16
|
+
chromatic: { disable: true },
|
|
17
|
+
},
|
|
8
18
|
};
|
|
9
19
|
|
|
10
20
|
interface Props extends TableProps {
|
|
11
21
|
button?: boolean;
|
|
12
22
|
shadeOnHover?: boolean;
|
|
13
23
|
}
|
|
24
|
+
|
|
14
25
|
const TableComponent = ({ button, shadeOnHover, ...rest }: Props) => (
|
|
15
26
|
<Table {...rest}>
|
|
16
27
|
<Table.Header>
|
|
@@ -89,75 +100,59 @@ export const Buttons = () => <TableComponent size="small" button />;
|
|
|
89
100
|
|
|
90
101
|
export const WithDivs = () => {
|
|
91
102
|
return (
|
|
92
|
-
|
|
93
|
-
<
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
103
|
+
<div className="navds-table" role="table">
|
|
104
|
+
<div className="navds-table__header" role="rowgroup">
|
|
105
|
+
<div className="navds-table__row" role="row">
|
|
106
|
+
<div className="navds-table__header-cell" role="columnheader">
|
|
107
|
+
Fornavn
|
|
108
|
+
</div>
|
|
109
|
+
<div className="navds-table__header-cell" role="columnheader">
|
|
110
|
+
Etternavn
|
|
111
|
+
</div>
|
|
112
|
+
<div className="navds-table__header-cell" role="columnheader">
|
|
113
|
+
Rolle
|
|
114
|
+
</div>
|
|
115
|
+
</div>
|
|
116
|
+
</div>
|
|
117
|
+
<div className="navds-table__body" role="rowgroup">
|
|
118
|
+
<div className="navds-table__row" role="row">
|
|
119
|
+
<div className="navds-table__data-cell" role="cell">
|
|
120
|
+
Jean-Luc
|
|
121
|
+
</div>
|
|
122
|
+
<div className="navds-table__data-cell" role="cell">
|
|
123
|
+
Picard
|
|
124
|
+
</div>
|
|
125
|
+
<div className="navds-table__data-cell" role="cell">
|
|
126
|
+
Kaptein
|
|
127
|
+
</div>
|
|
128
|
+
</div>
|
|
129
|
+
<div className="navds-table__row" role="row">
|
|
130
|
+
<div className="navds-table__data-cell" role="cell">
|
|
131
|
+
William
|
|
132
|
+
</div>
|
|
133
|
+
<div className="navds-table__data-cell" role="cell">
|
|
134
|
+
Riker
|
|
135
|
+
</div>
|
|
136
|
+
<div className="navds-table__data-cell" role="cell">
|
|
137
|
+
Kommandør
|
|
116
138
|
</div>
|
|
117
139
|
</div>
|
|
118
|
-
<div className="navds-
|
|
119
|
-
<div className="navds-
|
|
120
|
-
|
|
121
|
-
Jean-Luc
|
|
122
|
-
</div>
|
|
123
|
-
<div className="navds-table__data-cell" role="cell">
|
|
124
|
-
Picard
|
|
125
|
-
</div>
|
|
126
|
-
<div className="navds-table__data-cell" role="cell">
|
|
127
|
-
Kaptein
|
|
128
|
-
</div>
|
|
140
|
+
<div className="navds-table__row" role="row">
|
|
141
|
+
<div className="navds-table__data-cell" role="cell">
|
|
142
|
+
Geordi
|
|
129
143
|
</div>
|
|
130
|
-
<div className="navds-
|
|
131
|
-
|
|
132
|
-
William
|
|
133
|
-
</div>
|
|
134
|
-
<div className="navds-table__data-cell" role="cell">
|
|
135
|
-
Riker
|
|
136
|
-
</div>
|
|
137
|
-
<div className="navds-table__data-cell" role="cell">
|
|
138
|
-
Kommandør
|
|
139
|
-
</div>
|
|
144
|
+
<div className="navds-table__data-cell" role="cell">
|
|
145
|
+
La Forge
|
|
140
146
|
</div>
|
|
141
|
-
<div className="navds-
|
|
142
|
-
|
|
143
|
-
Geordi
|
|
144
|
-
</div>
|
|
145
|
-
<div className="navds-table__data-cell" role="cell">
|
|
146
|
-
La Forge
|
|
147
|
-
</div>
|
|
148
|
-
<div className="navds-table__data-cell" role="cell">
|
|
149
|
-
Sjefsingeniør
|
|
150
|
-
</div>
|
|
147
|
+
<div className="navds-table__data-cell" role="cell">
|
|
148
|
+
Sjefsingeniør
|
|
151
149
|
</div>
|
|
152
150
|
</div>
|
|
153
151
|
</div>
|
|
154
|
-
|
|
152
|
+
</div>
|
|
155
153
|
);
|
|
156
154
|
};
|
|
157
155
|
|
|
158
|
-
export const Selection = () => <SelectionTable />;
|
|
159
|
-
export const SelectionSmall = () => <SelectionTable size="small" />;
|
|
160
|
-
|
|
161
156
|
const SelectionTable = ({ size = "medium" }: { size?: "small" | "medium" }) => {
|
|
162
157
|
const useToggleList = (initialState) => {
|
|
163
158
|
const [list, setList] = useState(initialState);
|
|
@@ -182,7 +177,7 @@ const SelectionTable = ({ size = "medium" }: { size?: "small" | "medium" }) => {
|
|
|
182
177
|
<Table.DataCell>
|
|
183
178
|
<Checkbox
|
|
184
179
|
size={size}
|
|
185
|
-
|
|
180
|
+
indeterminate
|
|
186
181
|
onChange={() => toggleSelectedRow("all")}
|
|
187
182
|
>
|
|
188
183
|
Select all
|
|
@@ -212,12 +207,12 @@ const SelectionTable = ({ size = "medium" }: { size?: "small" | "medium" }) => {
|
|
|
212
207
|
<Table.DataCell>USA</Table.DataCell>
|
|
213
208
|
<Table.DataCell>38</Table.DataCell>
|
|
214
209
|
</Table.Row>
|
|
215
|
-
<Table.Row selected
|
|
210
|
+
<Table.Row selected>
|
|
216
211
|
<Table.DataCell>
|
|
217
212
|
<Checkbox
|
|
218
213
|
size={size}
|
|
219
214
|
hideLabel
|
|
220
|
-
checked
|
|
215
|
+
checked
|
|
221
216
|
onChange={() => toggleSelectedRow("2")}
|
|
222
217
|
aria-labelledby={`x_r2-${size}`}
|
|
223
218
|
>
|
|
@@ -231,36 +226,67 @@ const SelectionTable = ({ size = "medium" }: { size?: "small" | "medium" }) => {
|
|
|
231
226
|
<Table.DataCell>Denmark</Table.DataCell>
|
|
232
227
|
<Table.DataCell>11</Table.DataCell>
|
|
233
228
|
</Table.Row>
|
|
234
|
-
<Table.Row selected={selectedRows.includes("3")}>
|
|
235
|
-
<Table.DataCell>
|
|
236
|
-
<CheckboxGroup legend="velg flere felt" hideLegend>
|
|
237
|
-
<Checkbox
|
|
238
|
-
size={size}
|
|
239
|
-
hideLabel
|
|
240
|
-
checked={selectedRows.includes("3")}
|
|
241
|
-
onChange={() => toggleSelectedRow("3")}
|
|
242
|
-
aria-labelledby={`x_r3-${size}`}
|
|
243
|
-
>
|
|
244
|
-
{" "}
|
|
245
|
-
</Checkbox>
|
|
246
|
-
<Checkbox
|
|
247
|
-
size={size}
|
|
248
|
-
hideLabel
|
|
249
|
-
checked={selectedRows.includes("3")}
|
|
250
|
-
onChange={() => toggleSelectedRow("3")}
|
|
251
|
-
aria-labelledby={`x_r3-${size}`}
|
|
252
|
-
>
|
|
253
|
-
{" "}
|
|
254
|
-
</Checkbox>
|
|
255
|
-
</CheckboxGroup>
|
|
256
|
-
</Table.DataCell>
|
|
257
|
-
<Table.HeaderCell scope="row" colSpan={4}>
|
|
258
|
-
<span id={`x_r3-${size}`}>
|
|
259
|
-
Don't stack multiple checkboxes
|
|
260
|
-
</span>
|
|
261
|
-
</Table.HeaderCell>
|
|
262
|
-
</Table.Row>
|
|
263
229
|
</Table.Body>
|
|
264
230
|
</Table>
|
|
265
231
|
);
|
|
266
232
|
};
|
|
233
|
+
|
|
234
|
+
export const Selection = () => <SelectionTable />;
|
|
235
|
+
export const SelectionSmall = () => <SelectionTable size="small" />;
|
|
236
|
+
|
|
237
|
+
export const Chromatic = {
|
|
238
|
+
render: () => (
|
|
239
|
+
<VStack gap="8">
|
|
240
|
+
<div>
|
|
241
|
+
<h3>Default</h3>
|
|
242
|
+
<Default />
|
|
243
|
+
<h3>Zebra</h3>
|
|
244
|
+
<Zebra />
|
|
245
|
+
</div>
|
|
246
|
+
<div>
|
|
247
|
+
<h3>Large</h3>
|
|
248
|
+
<SizeLarge />
|
|
249
|
+
</div>
|
|
250
|
+
<div>
|
|
251
|
+
<h3>Medium</h3>
|
|
252
|
+
<SizeMedium />
|
|
253
|
+
</div>
|
|
254
|
+
<div>
|
|
255
|
+
<h3>Small</h3>
|
|
256
|
+
<SizeSmall />
|
|
257
|
+
</div>
|
|
258
|
+
<div>
|
|
259
|
+
<h3>With Buttons</h3>
|
|
260
|
+
<Buttons />
|
|
261
|
+
</div>
|
|
262
|
+
<div>
|
|
263
|
+
<h3>Custom with divs</h3>
|
|
264
|
+
<WithDivs />
|
|
265
|
+
</div>
|
|
266
|
+
<div>
|
|
267
|
+
<h3>Selection</h3>
|
|
268
|
+
<Selection />
|
|
269
|
+
</div>
|
|
270
|
+
<div>
|
|
271
|
+
<h3>Selection small</h3>
|
|
272
|
+
<SelectionSmall />
|
|
273
|
+
</div>
|
|
274
|
+
<h2>Expandable</h2>
|
|
275
|
+
<div>
|
|
276
|
+
<h3>Large</h3>
|
|
277
|
+
<ExpandableLarge />
|
|
278
|
+
</div>
|
|
279
|
+
<div>
|
|
280
|
+
<h3>Medium</h3>
|
|
281
|
+
<Expandable />
|
|
282
|
+
</div>
|
|
283
|
+
<div>
|
|
284
|
+
<h3>Small</h3>
|
|
285
|
+
<ExpandableSmall />
|
|
286
|
+
</div>
|
|
287
|
+
</VStack>
|
|
288
|
+
),
|
|
289
|
+
parameters: {
|
|
290
|
+
chromatic: { disable: false },
|
|
291
|
+
},
|
|
292
|
+
};
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import React, { useState } from "react";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { Button } from "../../button";
|
|
3
|
+
import { Checkbox } from "../../form";
|
|
4
|
+
import { Link } from "../../link";
|
|
5
|
+
import Table from "../Table";
|
|
4
6
|
|
|
5
7
|
export default {
|
|
6
8
|
title: "ds-react/Table",
|
|
7
9
|
component: Table,
|
|
10
|
+
parameters: {
|
|
11
|
+
chromatic: { disable: true },
|
|
12
|
+
},
|
|
8
13
|
};
|
|
9
14
|
|
|
10
15
|
export const Expandable = () => {
|
|
@@ -25,6 +30,7 @@ export const Expandable = () => {
|
|
|
25
30
|
content={row.content}
|
|
26
31
|
key={row.name}
|
|
27
32
|
togglePlacement="right"
|
|
33
|
+
defaultOpen
|
|
28
34
|
>
|
|
29
35
|
{columns.map(({ key }) => (
|
|
30
36
|
<Table.DataCell key={key}>{row[key]}</Table.DataCell>
|
|
@@ -50,7 +56,7 @@ export const ExpandableLarge = () => {
|
|
|
50
56
|
</Table.Header>
|
|
51
57
|
<Table.Body>
|
|
52
58
|
{data.slice(0, 1).map((row) => (
|
|
53
|
-
<Table.ExpandableRow content={row.content} key={row.name}>
|
|
59
|
+
<Table.ExpandableRow defaultOpen content={row.content} key={row.name}>
|
|
54
60
|
{columns.map(({ key }) => (
|
|
55
61
|
<Table.DataCell key={key}>{row[key]}</Table.DataCell>
|
|
56
62
|
))}
|
|
@@ -87,7 +93,7 @@ export const ExpandableSmall = () => {
|
|
|
87
93
|
</Table.Header>
|
|
88
94
|
<Table.Body>
|
|
89
95
|
{data.slice(0, 1).map((row) => (
|
|
90
|
-
<Table.ExpandableRow content={row.content} key={row.name}>
|
|
96
|
+
<Table.ExpandableRow defaultOpen content={row.content} key={row.name}>
|
|
91
97
|
{columns.map(({ key }) => (
|
|
92
98
|
<Table.DataCell key={key}>{row[key]}</Table.DataCell>
|
|
93
99
|
))}
|
|
@@ -235,36 +241,6 @@ const data = [
|
|
|
235
241
|
},
|
|
236
242
|
];
|
|
237
243
|
|
|
238
|
-
export const ExpandableOpen = () => {
|
|
239
|
-
return (
|
|
240
|
-
<Table zebraStripes>
|
|
241
|
-
<Table.Header>
|
|
242
|
-
<Table.Row>
|
|
243
|
-
{columns.map(({ key, name }) => (
|
|
244
|
-
<Table.HeaderCell key={key}>{name}</Table.HeaderCell>
|
|
245
|
-
))}
|
|
246
|
-
<Table.HeaderCell />
|
|
247
|
-
</Table.Row>
|
|
248
|
-
</Table.Header>
|
|
249
|
-
<Table.Body>
|
|
250
|
-
{data.map((row) => (
|
|
251
|
-
<Table.ExpandableRow
|
|
252
|
-
expansionDisabled={row.animal === "Sel"}
|
|
253
|
-
content={row.content}
|
|
254
|
-
key={row.name}
|
|
255
|
-
togglePlacement="right"
|
|
256
|
-
defaultOpen
|
|
257
|
-
>
|
|
258
|
-
{columns.map(({ key }) => (
|
|
259
|
-
<Table.DataCell key={key}>{row[key]}</Table.DataCell>
|
|
260
|
-
))}
|
|
261
|
-
</Table.ExpandableRow>
|
|
262
|
-
))}
|
|
263
|
-
</Table.Body>
|
|
264
|
-
</Table>
|
|
265
|
-
);
|
|
266
|
-
};
|
|
267
|
-
|
|
268
244
|
export const ClickableRow = () => {
|
|
269
245
|
const [isRowOpen1, setIsRowOpen1] = useState(false);
|
|
270
246
|
const [isRowOpen2, setIsRowOpen2] = useState(false);
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import React, { useState } from "react";
|
|
2
2
|
import useSWR from "swr";
|
|
3
|
-
import { Loader
|
|
4
|
-
import {
|
|
3
|
+
import { Loader } from "../../loader";
|
|
4
|
+
import { Pagination } from "../../pagination";
|
|
5
|
+
import Table from "../Table";
|
|
6
|
+
import { SortState } from "../types";
|
|
5
7
|
import peopleJson from "./people.json";
|
|
6
8
|
|
|
7
9
|
export default {
|
|
8
10
|
title: "ds-react/Table",
|
|
9
11
|
component: Table,
|
|
10
12
|
parameters: {
|
|
11
|
-
chromatic: {
|
|
13
|
+
chromatic: { disable: true },
|
|
12
14
|
},
|
|
13
15
|
};
|
|
14
16
|
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { expect, fn, userEvent, within } from "@storybook/test";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import
|
|
3
|
+
import Table from "../../Table";
|
|
4
4
|
|
|
5
5
|
export default {
|
|
6
6
|
title: "ds-react/Table/Tests",
|
|
7
7
|
component: Table,
|
|
8
|
+
parameters: {
|
|
9
|
+
chromatic: { disable: true },
|
|
10
|
+
},
|
|
8
11
|
};
|
|
9
12
|
|
|
10
13
|
export const ClickableRowTest = {
|
package/src/table/types.ts
CHANGED
package/src/tabs/TabList.tsx
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as RadixTabs from "@radix-ui/react-tabs";
|
|
2
2
|
import cl from "clsx";
|
|
3
3
|
import React, {
|
|
4
4
|
forwardRef,
|
|
@@ -112,7 +112,7 @@ export const TabList = forwardRef<HTMLDivElement, TabListProps>(
|
|
|
112
112
|
{showSteppers && (
|
|
113
113
|
<ScrollButton dir={-1} hidden={!displayScroll.start} />
|
|
114
114
|
)}
|
|
115
|
-
<TabsList
|
|
115
|
+
<RadixTabs.TabsList
|
|
116
116
|
{...rest}
|
|
117
117
|
ref={mergedRef}
|
|
118
118
|
onScroll={updateScrollButtonState}
|
package/src/tabs/TabPanel.tsx
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as RadixTabs from "@radix-ui/react-tabs";
|
|
2
2
|
import cl from "clsx";
|
|
3
3
|
import React, { forwardRef } from "react";
|
|
4
4
|
|
|
@@ -15,7 +15,7 @@ export interface TabPanelProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
15
15
|
|
|
16
16
|
const TabPanel = forwardRef<HTMLDivElement, TabPanelProps>(
|
|
17
17
|
({ className, ...rest }, ref) => (
|
|
18
|
-
<TabsContent
|
|
18
|
+
<RadixTabs.TabsContent
|
|
19
19
|
{...rest}
|
|
20
20
|
ref={ref}
|
|
21
21
|
className={cl("navds-tabs__tabpanel", className)}
|