@dnb/eufemia 9.17.2 → 9.18.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/CHANGELOG.md +14 -0
- package/cjs/components/Tag.d.ts +14 -0
- package/cjs/components/Tag.js +52 -0
- package/cjs/components/accordion/Accordion.d.ts +7 -7
- package/cjs/components/autocomplete/Autocomplete.d.ts +13 -13
- package/cjs/components/button/Button.d.ts +7 -7
- package/cjs/components/button/Button.js +6 -4
- package/cjs/components/checkbox/Checkbox.d.ts +3 -3
- package/cjs/components/date-picker/DatePicker.d.ts +14 -14
- package/cjs/components/date-picker/DatePickerAddon.d.ts +1 -1
- package/cjs/components/date-picker/DatePickerCalendar.d.ts +1 -1
- package/cjs/components/date-picker/DatePickerInput.d.ts +1 -1
- package/cjs/components/dropdown/Dropdown.d.ts +9 -9
- package/cjs/components/form-row/FormRow.d.ts +4 -4
- package/cjs/components/form-set/FormSet.d.ts +5 -5
- package/cjs/components/global-error/GlobalError.d.ts +1 -1
- package/cjs/components/global-status/GlobalStatus.d.ts +5 -5
- package/cjs/components/heading/Heading.d.ts +2 -2
- package/cjs/components/heading/HeadingProvider.d.ts +2 -2
- package/cjs/components/icon/Icon.d.ts +1 -1
- package/cjs/components/icon-primary/IconPrimary.d.ts +1 -1
- package/cjs/components/index.d.ts +2 -0
- package/cjs/components/index.js +8 -0
- package/cjs/components/input/Input.d.ts +9 -9
- package/cjs/components/input-masked/InputMasked.d.ts +11 -11
- package/cjs/components/input-masked/InputMasked.js +6 -3
- package/cjs/components/input-masked/InputMaskedHooks.js +26 -34
- package/cjs/components/input-masked/InputMaskedUtils.js +9 -20
- package/cjs/components/lib.js +9 -0
- package/cjs/components/modal/Modal.js +123 -271
- package/cjs/components/modal/ModalContent.js +145 -243
- package/cjs/components/modal/ModalRoot.js +194 -0
- package/cjs/components/modal/components/CloseButton.js +125 -0
- package/cjs/components/modal/components/ModalHeader.js +124 -0
- package/cjs/components/modal/{ModalHeader.js → components/ModalHeaderBar.js} +50 -162
- package/cjs/components/modal/{ModalInner.js → components/ModalInner.js} +11 -19
- package/cjs/components/modal/helpers.js +80 -0
- package/cjs/components/modal/types.js +1 -0
- package/cjs/components/number-format/NumberFormat.d.ts +8 -8
- package/cjs/components/pagination/Pagination.d.ts +30 -30
- package/cjs/components/pagination/PaginationProvider.d.ts +2 -2
- package/cjs/components/radio/Radio.d.ts +4 -4
- package/cjs/components/radio/RadioGroup.d.ts +3 -3
- package/cjs/components/section/Section.d.ts +3 -2
- package/cjs/components/skeleton/Skeleton.d.ts +2 -2
- package/cjs/components/slider/Slider.d.ts +4 -4
- package/cjs/components/step-indicator/StepIndicator.d.ts +5 -5
- package/cjs/components/step-indicator/StepIndicatorContext.d.ts +1 -1
- package/cjs/components/step-indicator/StepIndicatorItem.d.ts +2 -2
- package/cjs/components/step-indicator/StepIndicatorItem.js +1 -0
- package/cjs/components/step-indicator/StepIndicatorSidebar.d.ts +3 -3
- package/cjs/components/step-indicator/StepIndicatorTriggerButton.d.ts +1 -1
- package/cjs/components/switch/Switch.d.ts +5 -5
- package/cjs/components/tabs/Tabs.d.ts +4 -4
- package/cjs/components/tabs/TabsContentWrapper.d.ts +1 -1
- package/cjs/components/tag/Tag.js +97 -0
- package/cjs/components/tag/index.d.ts +8 -0
- package/cjs/components/tag/index.js +52 -0
- package/cjs/components/tag/style/_tag.scss +26 -0
- package/cjs/components/tag/style/dnb-tag.css +109 -0
- package/cjs/components/tag/style/dnb-tag.min.css +1 -0
- package/cjs/components/tag/style/dnb-tag.scss +12 -0
- package/cjs/components/tag/style/index.d.ts +6 -0
- package/cjs/components/tag/style/index.js +3 -0
- package/cjs/components/tag/style.js +3 -0
- package/cjs/components/textarea/Textarea.d.ts +4 -4
- package/cjs/components/toggle-button/ToggleButton.d.ts +6 -6
- package/cjs/components/toggle-button/ToggleButtonGroup.d.ts +3 -3
- package/cjs/components/tooltip/Tooltip.d.ts +5 -5
- package/cjs/components/tooltip/TooltipContainer.d.ts +3 -3
- package/cjs/components/tooltip/TooltipPortal.d.ts +1 -1
- package/cjs/components/tooltip/TooltipWithEvents.d.ts +1 -1
- package/cjs/fragments/scroll-view/ScrollView.js +7 -16
- package/cjs/index.d.ts +2 -0
- package/cjs/index.js +8 -0
- package/cjs/shared/Context.js +2 -1
- package/cjs/style/core/helper-classes/skip-link.scss +1 -1
- package/cjs/style/dnb-ui-components.css +40 -0
- package/cjs/style/dnb-ui-components.min.css +1 -1
- package/cjs/style/dnb-ui-components.scss +1 -0
- package/components/Tag.d.ts +14 -0
- package/components/Tag.js +3 -0
- package/components/accordion/Accordion.d.ts +7 -7
- package/components/autocomplete/Autocomplete.d.ts +13 -13
- package/components/button/Button.d.ts +7 -7
- package/components/button/Button.js +6 -4
- package/components/checkbox/Checkbox.d.ts +3 -3
- package/components/date-picker/DatePicker.d.ts +14 -14
- package/components/date-picker/DatePickerAddon.d.ts +1 -1
- package/components/date-picker/DatePickerCalendar.d.ts +1 -1
- package/components/date-picker/DatePickerInput.d.ts +1 -1
- package/components/dropdown/Dropdown.d.ts +9 -9
- package/components/form-row/FormRow.d.ts +4 -4
- package/components/form-set/FormSet.d.ts +5 -5
- package/components/global-error/GlobalError.d.ts +1 -1
- package/components/global-status/GlobalStatus.d.ts +5 -5
- package/components/heading/Heading.d.ts +2 -2
- package/components/heading/HeadingProvider.d.ts +2 -2
- package/components/icon/Icon.d.ts +1 -1
- package/components/index.d.ts +2 -0
- package/components/index.js +2 -1
- package/components/input/Input.d.ts +9 -9
- package/components/input-masked/InputMasked.d.ts +11 -11
- package/components/input-masked/InputMasked.js +6 -4
- package/components/input-masked/InputMaskedHooks.js +24 -28
- package/components/input-masked/InputMaskedUtils.js +9 -20
- package/components/lib.js +3 -1
- package/components/modal/Modal.js +112 -250
- package/components/modal/Modal.tsx +524 -0
- package/components/modal/ModalContent.js +137 -224
- package/components/modal/ModalContent.tsx +515 -0
- package/components/modal/ModalContext.tsx +10 -0
- package/components/modal/ModalRoot.js +145 -0
- package/components/modal/ModalRoot.tsx +131 -0
- package/components/modal/components/CloseButton.js +72 -0
- package/components/modal/components/CloseButton.tsx +56 -0
- package/components/modal/components/ModalHeader.js +70 -0
- package/components/modal/components/ModalHeader.tsx +79 -0
- package/components/modal/components/ModalHeaderBar.js +122 -0
- package/components/modal/components/ModalHeaderBar.tsx +118 -0
- package/components/modal/{ModalInner.js → components/ModalInner.js} +11 -17
- package/components/modal/components/ModalInner.tsx +45 -0
- package/components/modal/helpers.js +64 -0
- package/components/modal/helpers.ts +63 -0
- package/components/modal/types.js +1 -0
- package/{cjs/components/modal/Modal.d.ts → components/modal/types.ts} +124 -182
- package/components/number-format/NumberFormat.d.ts +8 -8
- package/components/pagination/Pagination.d.ts +30 -30
- package/components/pagination/PaginationProvider.d.ts +2 -2
- package/components/radio/Radio.d.ts +4 -4
- package/components/radio/RadioGroup.d.ts +3 -3
- package/components/section/Section.d.ts +3 -1
- package/components/skeleton/Skeleton.d.ts +2 -2
- package/components/slider/Slider.d.ts +4 -4
- package/components/step-indicator/StepIndicator.d.ts +5 -5
- package/components/step-indicator/StepIndicatorContext.d.ts +1 -1
- package/components/step-indicator/StepIndicatorItem.d.ts +2 -2
- package/components/step-indicator/StepIndicatorItem.js +1 -0
- package/components/step-indicator/StepIndicatorSidebar.d.ts +3 -3
- package/components/step-indicator/StepIndicatorTriggerButton.d.ts +1 -1
- package/components/switch/Switch.d.ts +5 -5
- package/components/tabs/Tabs.d.ts +4 -4
- package/components/tabs/TabsContentWrapper.d.ts +1 -1
- package/components/tag/Tag.js +63 -0
- package/components/tag/Tag.tsx +95 -0
- package/components/tag/index.d.ts +8 -0
- package/components/tag/index.js +3 -0
- package/components/tag/style/_tag.scss +26 -0
- package/components/tag/style/dnb-tag.css +109 -0
- package/components/tag/style/dnb-tag.min.css +1 -0
- package/components/tag/style/dnb-tag.scss +12 -0
- package/components/tag/style/index.d.ts +6 -0
- package/components/tag/style/index.js +1 -0
- package/components/tag/style.js +1 -0
- package/components/textarea/Textarea.d.ts +4 -4
- package/components/toggle-button/ToggleButton.d.ts +6 -6
- package/components/toggle-button/ToggleButtonGroup.d.ts +3 -3
- package/components/tooltip/Tooltip.d.ts +5 -5
- package/components/tooltip/TooltipContainer.d.ts +3 -3
- package/components/tooltip/TooltipPortal.d.ts +1 -1
- package/components/tooltip/TooltipWithEvents.d.ts +1 -1
- package/es/components/Tag.d.ts +14 -0
- package/es/components/Tag.js +3 -0
- package/es/components/accordion/Accordion.d.ts +7 -7
- package/es/components/autocomplete/Autocomplete.d.ts +13 -13
- package/es/components/button/Button.d.ts +7 -7
- package/es/components/button/Button.js +6 -4
- package/es/components/checkbox/Checkbox.d.ts +3 -3
- package/es/components/date-picker/DatePicker.d.ts +14 -14
- package/es/components/date-picker/DatePickerAddon.d.ts +1 -1
- package/es/components/date-picker/DatePickerCalendar.d.ts +1 -1
- package/es/components/date-picker/DatePickerInput.d.ts +1 -1
- package/es/components/dropdown/Dropdown.d.ts +9 -9
- package/es/components/form-row/FormRow.d.ts +4 -4
- package/es/components/form-set/FormSet.d.ts +5 -5
- package/es/components/global-error/GlobalError.d.ts +1 -1
- package/es/components/global-status/GlobalStatus.d.ts +5 -5
- package/es/components/heading/Heading.d.ts +2 -2
- package/es/components/heading/HeadingProvider.d.ts +2 -2
- package/es/components/icon/Icon.d.ts +1 -1
- package/es/components/icon-primary/IconPrimary.d.ts +1 -1
- package/es/components/index.d.ts +2 -0
- package/es/components/index.js +2 -1
- package/es/components/input/Input.d.ts +9 -9
- package/es/components/input-masked/InputMasked.d.ts +11 -11
- package/es/components/input-masked/InputMasked.js +6 -4
- package/es/components/input-masked/InputMaskedHooks.js +14 -18
- package/es/components/input-masked/InputMaskedUtils.js +7 -18
- package/es/components/lib.js +3 -1
- package/es/components/modal/Modal.js +97 -227
- package/es/components/modal/Modal.tsx +524 -0
- package/es/components/modal/ModalContent.js +95 -186
- package/es/components/modal/ModalContent.tsx +515 -0
- package/es/components/modal/ModalContext.tsx +10 -0
- package/es/components/modal/ModalRoot.js +108 -0
- package/es/components/modal/ModalRoot.tsx +131 -0
- package/es/components/modal/components/CloseButton.js +41 -0
- package/es/components/modal/components/CloseButton.tsx +56 -0
- package/es/components/modal/components/ModalHeader.js +40 -0
- package/es/components/modal/components/ModalHeader.tsx +79 -0
- package/es/components/modal/components/ModalHeaderBar.js +88 -0
- package/es/components/modal/components/ModalHeaderBar.tsx +118 -0
- package/es/components/modal/{ModalInner.js → components/ModalInner.js} +8 -18
- package/es/components/modal/components/ModalInner.tsx +45 -0
- package/es/components/modal/helpers.js +60 -0
- package/es/components/modal/helpers.ts +63 -0
- package/es/components/modal/types.js +1 -0
- package/es/components/modal/{Modal.d.ts → types.ts} +124 -182
- package/es/components/number-format/NumberFormat.d.ts +8 -8
- package/es/components/pagination/Pagination.d.ts +30 -30
- package/es/components/pagination/PaginationProvider.d.ts +2 -2
- package/es/components/radio/Radio.d.ts +4 -4
- package/es/components/radio/RadioGroup.d.ts +3 -3
- package/es/components/section/Section.d.ts +3 -2
- package/es/components/skeleton/Skeleton.d.ts +2 -2
- package/es/components/slider/Slider.d.ts +4 -4
- package/es/components/step-indicator/StepIndicator.d.ts +5 -5
- package/es/components/step-indicator/StepIndicatorContext.d.ts +1 -1
- package/es/components/step-indicator/StepIndicatorItem.d.ts +2 -2
- package/es/components/step-indicator/StepIndicatorItem.js +1 -0
- package/es/components/step-indicator/StepIndicatorSidebar.d.ts +3 -3
- package/es/components/step-indicator/StepIndicatorTriggerButton.d.ts +1 -1
- package/es/components/switch/Switch.d.ts +5 -5
- package/es/components/tabs/Tabs.d.ts +4 -4
- package/es/components/tabs/TabsContentWrapper.d.ts +1 -1
- package/es/components/tag/Tag.js +58 -0
- package/es/components/tag/Tag.tsx +95 -0
- package/es/components/tag/index.d.ts +8 -0
- package/es/components/tag/index.js +3 -0
- package/es/components/tag/style/_tag.scss +26 -0
- package/es/components/tag/style/dnb-tag.css +109 -0
- package/es/components/tag/style/dnb-tag.min.css +1 -0
- package/es/components/tag/style/dnb-tag.scss +12 -0
- package/es/components/tag/style/index.d.ts +6 -0
- package/es/components/tag/style/index.js +1 -0
- package/es/components/tag/style.js +1 -0
- package/es/components/textarea/Textarea.d.ts +4 -4
- package/es/components/toggle-button/ToggleButton.d.ts +6 -6
- package/es/components/toggle-button/ToggleButtonGroup.d.ts +3 -3
- package/es/components/tooltip/Tooltip.d.ts +5 -5
- package/es/components/tooltip/TooltipContainer.d.ts +3 -3
- package/es/components/tooltip/TooltipPortal.d.ts +1 -1
- package/es/components/tooltip/TooltipWithEvents.d.ts +1 -1
- package/es/fragments/scroll-view/ScrollView.js +7 -15
- package/es/fragments/scroll-view/ScrollView.tsx +92 -0
- package/es/index.d.ts +2 -0
- package/es/index.js +2 -1
- package/es/shared/Context.js +2 -1
- package/es/style/core/helper-classes/skip-link.scss +1 -1
- package/es/style/dnb-ui-components.css +40 -0
- package/es/style/dnb-ui-components.min.css +1 -1
- package/es/style/dnb-ui-components.scss +1 -0
- package/esm/components/Tag.d.ts +14 -0
- package/esm/components/Tag.js +3 -0
- package/esm/components/accordion/Accordion.d.ts +7 -7
- package/esm/components/autocomplete/Autocomplete.d.ts +13 -13
- package/esm/components/button/Button.d.ts +7 -7
- package/esm/components/button/Button.js +6 -4
- package/esm/components/checkbox/Checkbox.d.ts +3 -3
- package/esm/components/date-picker/DatePicker.d.ts +14 -14
- package/esm/components/date-picker/DatePickerAddon.d.ts +1 -1
- package/esm/components/date-picker/DatePickerCalendar.d.ts +1 -1
- package/esm/components/date-picker/DatePickerInput.d.ts +1 -1
- package/esm/components/dropdown/Dropdown.d.ts +9 -9
- package/esm/components/form-row/FormRow.d.ts +4 -4
- package/esm/components/form-set/FormSet.d.ts +5 -5
- package/esm/components/global-error/GlobalError.d.ts +1 -1
- package/esm/components/global-status/GlobalStatus.d.ts +5 -5
- package/esm/components/heading/Heading.d.ts +2 -2
- package/esm/components/heading/HeadingProvider.d.ts +2 -2
- package/esm/components/icon/Icon.d.ts +1 -1
- package/esm/components/index.d.ts +2 -0
- package/esm/components/index.js +2 -1
- package/esm/components/input/Input.d.ts +9 -9
- package/esm/components/input-masked/InputMasked.d.ts +11 -11
- package/esm/components/input-masked/InputMasked.js +6 -4
- package/esm/components/input-masked/InputMaskedHooks.js +24 -28
- package/esm/components/input-masked/InputMaskedUtils.js +9 -20
- package/esm/components/lib.js +3 -1
- package/esm/components/modal/Modal.js +112 -250
- package/esm/components/modal/Modal.tsx +524 -0
- package/esm/components/modal/ModalContent.js +137 -224
- package/esm/components/modal/ModalContent.tsx +515 -0
- package/esm/components/modal/ModalContext.tsx +10 -0
- package/esm/components/modal/ModalRoot.js +145 -0
- package/esm/components/modal/ModalRoot.tsx +131 -0
- package/esm/components/modal/components/CloseButton.js +72 -0
- package/esm/components/modal/components/CloseButton.tsx +56 -0
- package/esm/components/modal/components/ModalHeader.js +70 -0
- package/esm/components/modal/components/ModalHeader.tsx +79 -0
- package/esm/components/modal/components/ModalHeaderBar.js +122 -0
- package/esm/components/modal/components/ModalHeaderBar.tsx +118 -0
- package/esm/components/modal/{ModalInner.js → components/ModalInner.js} +11 -17
- package/esm/components/modal/components/ModalInner.tsx +45 -0
- package/esm/components/modal/helpers.js +64 -0
- package/esm/components/modal/helpers.ts +63 -0
- package/esm/components/modal/types.js +1 -0
- package/esm/components/modal/{Modal.d.ts → types.ts} +124 -182
- package/esm/components/number-format/NumberFormat.d.ts +8 -8
- package/esm/components/pagination/Pagination.d.ts +30 -30
- package/esm/components/pagination/PaginationProvider.d.ts +2 -2
- package/esm/components/radio/Radio.d.ts +4 -4
- package/esm/components/radio/RadioGroup.d.ts +3 -3
- package/esm/components/section/Section.d.ts +3 -1
- package/esm/components/skeleton/Skeleton.d.ts +2 -2
- package/esm/components/slider/Slider.d.ts +4 -4
- package/esm/components/step-indicator/StepIndicator.d.ts +5 -5
- package/esm/components/step-indicator/StepIndicatorContext.d.ts +1 -1
- package/esm/components/step-indicator/StepIndicatorItem.d.ts +2 -2
- package/esm/components/step-indicator/StepIndicatorItem.js +1 -0
- package/esm/components/step-indicator/StepIndicatorSidebar.d.ts +3 -3
- package/esm/components/step-indicator/StepIndicatorTriggerButton.d.ts +1 -1
- package/esm/components/switch/Switch.d.ts +5 -5
- package/esm/components/tabs/Tabs.d.ts +4 -4
- package/esm/components/tabs/TabsContentWrapper.d.ts +1 -1
- package/esm/components/tag/Tag.js +63 -0
- package/esm/components/tag/Tag.tsx +95 -0
- package/esm/components/tag/index.d.ts +8 -0
- package/esm/components/tag/index.js +3 -0
- package/esm/components/tag/style/_tag.scss +26 -0
- package/esm/components/tag/style/dnb-tag.css +109 -0
- package/esm/components/tag/style/dnb-tag.min.css +1 -0
- package/esm/components/tag/style/dnb-tag.scss +12 -0
- package/esm/components/tag/style/index.d.ts +6 -0
- package/esm/components/tag/style/index.js +1 -0
- package/esm/components/tag/style.js +1 -0
- package/esm/components/textarea/Textarea.d.ts +4 -4
- package/esm/components/toggle-button/ToggleButton.d.ts +6 -6
- package/esm/components/toggle-button/ToggleButtonGroup.d.ts +3 -3
- package/esm/components/tooltip/Tooltip.d.ts +5 -5
- package/esm/components/tooltip/TooltipContainer.d.ts +3 -3
- package/esm/components/tooltip/TooltipPortal.d.ts +1 -1
- package/esm/components/tooltip/TooltipWithEvents.d.ts +1 -1
- package/esm/dnb-ui-components.min.mjs +1 -1
- package/esm/dnb-ui-elements.min.mjs +1 -1
- package/esm/dnb-ui-extensions.min.mjs +1 -1
- package/esm/dnb-ui-lib.min.mjs +2 -2
- package/esm/dnb-ui-web-components.min.mjs +2 -2
- package/esm/fragments/scroll-view/ScrollView.js +10 -16
- package/esm/fragments/scroll-view/ScrollView.tsx +92 -0
- package/esm/index.d.ts +2 -0
- package/esm/index.js +2 -1
- package/esm/shared/Context.js +2 -1
- package/esm/style/core/helper-classes/skip-link.scss +1 -1
- package/esm/style/dnb-ui-components.css +40 -0
- package/esm/style/dnb-ui-components.min.css +1 -1
- package/esm/style/dnb-ui-components.scss +1 -0
- package/fragments/scroll-view/ScrollView.js +10 -16
- package/fragments/scroll-view/ScrollView.tsx +92 -0
- package/index.d.ts +2 -0
- package/index.js +2 -1
- package/package.json +1 -1
- package/shared/Context.js +2 -1
- package/style/core/helper-classes/skip-link.scss +1 -1
- package/style/dnb-ui-components.css +40 -0
- package/style/dnb-ui-components.min.css +1 -1
- package/style/dnb-ui-components.scss +1 -0
- package/umd/dnb-ui-components.min.js +5 -5
- package/umd/dnb-ui-elements.min.js +1 -1
- package/umd/dnb-ui-extensions.min.js +1 -1
- package/umd/dnb-ui-lib.min.js +4 -4
- package/umd/dnb-ui-web-components.min.js +2 -2
- package/cjs/components/modal/ModalContent.d.ts +0 -168
- package/cjs/components/modal/ModalHeader.d.ts +0 -73
- package/cjs/components/modal/ModalInner.d.ts +0 -20
- package/cjs/fragments/scroll-view/ScrollView.d.ts +0 -1
- package/components/modal/Modal.d.ts +0 -329
- package/components/modal/ModalContent.d.ts +0 -168
- package/components/modal/ModalHeader.d.ts +0 -73
- package/components/modal/ModalHeader.js +0 -224
- package/components/modal/ModalInner.d.ts +0 -20
- package/es/components/modal/ModalContent.d.ts +0 -168
- package/es/components/modal/ModalHeader.d.ts +0 -73
- package/es/components/modal/ModalHeader.js +0 -166
- package/es/components/modal/ModalInner.d.ts +0 -20
- package/es/fragments/scroll-view/ScrollView.d.ts +0 -1
- package/esm/components/modal/ModalContent.d.ts +0 -168
- package/esm/components/modal/ModalHeader.d.ts +0 -73
- package/esm/components/modal/ModalHeader.js +0 -224
- package/esm/components/modal/ModalInner.d.ts +0 -20
- package/esm/fragments/scroll-view/ScrollView.d.ts +0 -1
- package/fragments/scroll-view/ScrollView.d.ts +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,20 @@
|
|
|
3
3
|
All notable changes to @dnb/eufemia will be documented in this file. See
|
|
4
4
|
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [9.18.0](https://github.com/dnbexperience/eufemia/compare/v9.17.2...v9.18.0) (2021-12-16)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **InputMasked:** inherit of provider/context props ([89db309](https://github.com/dnbexperience/eufemia/commit/89db309fd0d09f125c3d66ff9e745a12fbfb6ed2))
|
|
12
|
+
* **Modal:** Convert to TypeScript ([#1177](https://github.com/dnbexperience/eufemia/issues/1177)) ([b832b29](https://github.com/dnbexperience/eufemia/commit/b832b29c401d6c1d8f1e9bb36eadbcac984bd330))
|
|
13
|
+
* **StepIndicator:** enhance NVDA support by omitting click event ([74ae87c](https://github.com/dnbexperience/eufemia/commit/74ae87ca601ac3f004518d6c5b6fd34ca8d5a439))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
|
|
18
|
+
* **Tag:** add new tag component ([dec57cb](https://github.com/dnbexperience/eufemia/commit/dec57cb8ded032b70b15a1b479d5cdc9782e0528))
|
|
19
|
+
|
|
6
20
|
## [9.17.2](https://github.com/dnbexperience/eufemia/compare/v9.17.1...v9.17.2) (2021-12-15)
|
|
7
21
|
|
|
8
22
|
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ATTENTION: This file is auto generated by using "prepareTemplates".
|
|
3
|
+
* Do not change the content!
|
|
4
|
+
*
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Library Index tag to autogenerate all the components and extensions
|
|
9
|
+
* Used by "prepareTags"
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
import Tag from './tag/Tag'
|
|
13
|
+
export * from './tag/Tag'
|
|
14
|
+
export default Tag
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
require("core-js/modules/es.array.iterator.js");
|
|
6
|
+
|
|
7
|
+
require("core-js/modules/es.object.to-string.js");
|
|
8
|
+
|
|
9
|
+
require("core-js/modules/es.string.iterator.js");
|
|
10
|
+
|
|
11
|
+
require("core-js/modules/es.weak-map.js");
|
|
12
|
+
|
|
13
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
14
|
+
|
|
15
|
+
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
16
|
+
|
|
17
|
+
require("core-js/modules/web.dom-collections.for-each.js");
|
|
18
|
+
|
|
19
|
+
require("core-js/modules/es.object.keys.js");
|
|
20
|
+
|
|
21
|
+
require("core-js/modules/es.symbol.js");
|
|
22
|
+
|
|
23
|
+
require("core-js/modules/es.symbol.description.js");
|
|
24
|
+
|
|
25
|
+
require("core-js/modules/es.symbol.iterator.js");
|
|
26
|
+
|
|
27
|
+
Object.defineProperty(exports, "__esModule", {
|
|
28
|
+
value: true
|
|
29
|
+
});
|
|
30
|
+
var _exportNames = {};
|
|
31
|
+
exports.default = void 0;
|
|
32
|
+
|
|
33
|
+
var _Tag = _interopRequireWildcard(require("./tag/Tag"));
|
|
34
|
+
|
|
35
|
+
Object.keys(_Tag).forEach(function (key) {
|
|
36
|
+
if (key === "default" || key === "__esModule") return;
|
|
37
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
38
|
+
if (key in exports && exports[key] === _Tag[key]) return;
|
|
39
|
+
Object.defineProperty(exports, key, {
|
|
40
|
+
enumerable: true,
|
|
41
|
+
get: function get() {
|
|
42
|
+
return _Tag[key];
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
48
|
+
|
|
49
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
50
|
+
|
|
51
|
+
var _default = _Tag.default;
|
|
52
|
+
exports.default = _default;
|
|
@@ -59,7 +59,7 @@ export interface AccordionProps extends React.HTMLProps<HTMLElement> {
|
|
|
59
59
|
title?: React.ReactNode;
|
|
60
60
|
|
|
61
61
|
/**
|
|
62
|
-
* If set to `true` the accordion will be expanded as
|
|
62
|
+
* If set to `true` the accordion will be expanded as its initial state.
|
|
63
63
|
*/
|
|
64
64
|
expanded?: AccordionExpanded;
|
|
65
65
|
|
|
@@ -69,7 +69,7 @@ export interface AccordionProps extends React.HTMLProps<HTMLElement> {
|
|
|
69
69
|
no_animation?: AccordionNoAnimation;
|
|
70
70
|
|
|
71
71
|
/**
|
|
72
|
-
* If set to `true` the accordion will be expanded during SSR. Can be potentially useful for SEO, although it will disturb client hydration, where React expects the same state. But
|
|
72
|
+
* If set to `true` the accordion will be expanded during SSR. Can be potentially useful for SEO, although it will disturb client hydration, where React expects the same state. But that's mainly a technical aspect to consider.
|
|
73
73
|
*/
|
|
74
74
|
expanded_ssr?: AccordionExpandedSsr;
|
|
75
75
|
|
|
@@ -79,7 +79,7 @@ export interface AccordionProps extends React.HTMLProps<HTMLElement> {
|
|
|
79
79
|
prerender?: AccordionPrerender;
|
|
80
80
|
|
|
81
81
|
/**
|
|
82
|
-
* If set to `true` the accordion component will not re-render
|
|
82
|
+
* If set to `true` the accordion component will not re-render its content – can be useful for widgets you don't have control of storing the temporary state during an interaction.
|
|
83
83
|
*/
|
|
84
84
|
prevent_rerender?: AccordionPreventRerender;
|
|
85
85
|
|
|
@@ -89,7 +89,7 @@ export interface AccordionProps extends React.HTMLProps<HTMLElement> {
|
|
|
89
89
|
prevent_rerender_conditional?: AccordionPreventRerenderConditional;
|
|
90
90
|
|
|
91
91
|
/**
|
|
92
|
-
* If set to `true`, it will remember a changed state initiated by the user. It requires
|
|
92
|
+
* If set to `true`, it will remember a changed state initiated by the user. It requires a unique `id`. It will store the sate in the local storage.
|
|
93
93
|
*/
|
|
94
94
|
remember_state?: AccordionRememberState;
|
|
95
95
|
|
|
@@ -125,7 +125,7 @@ export interface AccordionProps extends React.HTMLProps<HTMLElement> {
|
|
|
125
125
|
skeleton?: AccordionSkeleton;
|
|
126
126
|
|
|
127
127
|
/**
|
|
128
|
-
*
|
|
128
|
+
* A unique `id` that will be used on the button element. If you use `remember_state`, an id is required.
|
|
129
129
|
*/
|
|
130
130
|
id?: string;
|
|
131
131
|
group?: string;
|
|
@@ -214,13 +214,13 @@ export type GroupRememberState = string | boolean;
|
|
|
214
214
|
*/
|
|
215
215
|
export interface GroupProps {
|
|
216
216
|
/**
|
|
217
|
-
*
|
|
217
|
+
* A unique `id` that will be used on the button element. If you use `remember_state`, an id is required.
|
|
218
218
|
*/
|
|
219
219
|
id?: string;
|
|
220
220
|
group?: string;
|
|
221
221
|
|
|
222
222
|
/**
|
|
223
|
-
* If set to `true`, it will remember a changed state initiated by the user. It requires
|
|
223
|
+
* If set to `true`, it will remember a changed state initiated by the user. It requires a unique `id`. It will store the sate in the local storage.
|
|
224
224
|
*/
|
|
225
225
|
remember_state?: GroupRememberState;
|
|
226
226
|
}
|
|
@@ -224,12 +224,12 @@ export interface AutocompleteProps extends React.HTMLProps<HTMLElement> {
|
|
|
224
224
|
mode?: AutocompleteMode;
|
|
225
225
|
|
|
226
226
|
/**
|
|
227
|
-
* Give a title to let the user know what
|
|
227
|
+
* Give a title to let the user know what theyhaves to do. Defaults to `Skriv og få alternativer'` .
|
|
228
228
|
*/
|
|
229
229
|
title?: AutocompleteTitle;
|
|
230
230
|
|
|
231
231
|
/**
|
|
232
|
-
* Use this to define the pre
|
|
232
|
+
* Use this to define the pre-filled placeholder text in the input. Defaults to `title="Skriv og velg"`.
|
|
233
233
|
*/
|
|
234
234
|
placeholder?: AutocompletePlaceholder;
|
|
235
235
|
|
|
@@ -254,7 +254,7 @@ export interface AutocompleteProps extends React.HTMLProps<HTMLElement> {
|
|
|
254
254
|
indicator_label?: AutocompleteIndicatorLabel;
|
|
255
255
|
|
|
256
256
|
/**
|
|
257
|
-
* Only for screen readers. Title of the button
|
|
257
|
+
* Only for screen readers. Title of the button to show the suggestions / options. It is always present and when activating, it opens the DrawerList and sets the focus on it. Defaults to `Bla gjennom alternativer`.
|
|
258
258
|
*/
|
|
259
259
|
show_options_sr?: string;
|
|
260
260
|
|
|
@@ -284,7 +284,7 @@ export interface AutocompleteProps extends React.HTMLProps<HTMLElement> {
|
|
|
284
284
|
icon_size?: string;
|
|
285
285
|
|
|
286
286
|
/**
|
|
287
|
-
* Position of icon inside the autocomplete. Set to `left` or `right`. Defaults to `left`.
|
|
287
|
+
* Position of the icon inside the autocomplete. Set to `left` or `right`. Defaults to `left`.
|
|
288
288
|
*/
|
|
289
289
|
icon_position?: AutocompleteIconPosition;
|
|
290
290
|
|
|
@@ -314,7 +314,7 @@ export interface AutocompleteProps extends React.HTMLProps<HTMLElement> {
|
|
|
314
314
|
label_sr_only?: AutocompleteLabelSrOnly;
|
|
315
315
|
|
|
316
316
|
/**
|
|
317
|
-
* Use `true` to not remove the typed value on input blur, if it is invalid. By default the typed value will disappear / replaced by a selected value from the data list during the input field blur.
|
|
317
|
+
* Use `true` to not remove the typed value on input blur, if it is invalid. By default, the typed value will disappear / replaced by a selected value from the data list during the input field blur.
|
|
318
318
|
*/
|
|
319
319
|
keep_value?: AutocompleteKeepValue;
|
|
320
320
|
|
|
@@ -324,7 +324,7 @@ export interface AutocompleteProps extends React.HTMLProps<HTMLElement> {
|
|
|
324
324
|
keep_value_and_selection?: AutocompleteKeepValueAndSelection;
|
|
325
325
|
|
|
326
326
|
/**
|
|
327
|
-
* If set to `true`, a clear button is
|
|
327
|
+
* If set to `true`, a clear button is shown inside the input field. Defaults to `false`.
|
|
328
328
|
*/
|
|
329
329
|
show_clear_button?: AutocompleteShowClearButton;
|
|
330
330
|
|
|
@@ -334,7 +334,7 @@ export interface AutocompleteProps extends React.HTMLProps<HTMLElement> {
|
|
|
334
334
|
status?: AutocompleteStatus;
|
|
335
335
|
|
|
336
336
|
/**
|
|
337
|
-
* Defines the state of the status. Currently there are two statuses `[error, info]`. Defaults to `error`.
|
|
337
|
+
* Defines the state of the status. Currently, there are two statuses `[error, info]`. Defaults to `error`.
|
|
338
338
|
*/
|
|
339
339
|
status_state?: string;
|
|
340
340
|
|
|
@@ -375,7 +375,7 @@ export interface AutocompleteProps extends React.HTMLProps<HTMLElement> {
|
|
|
375
375
|
focusable?: AutocompleteFocusable;
|
|
376
376
|
|
|
377
377
|
/**
|
|
378
|
-
* If set to `true`, word highlighting will disabled, but the options will still get filtered. Defaults to `false`.
|
|
378
|
+
* If set to `true`, word highlighting will be disabled, but the options will still get filtered. Defaults to `false`.
|
|
379
379
|
*/
|
|
380
380
|
disable_highlighting?: AutocompleteDisableHighlighting;
|
|
381
381
|
|
|
@@ -410,7 +410,7 @@ export interface AutocompleteProps extends React.HTMLProps<HTMLElement> {
|
|
|
410
410
|
show_submit_button?: AutocompleteShowSubmitButton;
|
|
411
411
|
|
|
412
412
|
/**
|
|
413
|
-
* Replace the
|
|
413
|
+
* Replace the dropdown / submit button with a custom React element. Defaults to the input SubmitButton `import { SubmitButton } from '@dnb/eufemia/components/input/Input'`.
|
|
414
414
|
*/
|
|
415
415
|
submit_element?: React.ReactNode;
|
|
416
416
|
|
|
@@ -440,7 +440,7 @@ export interface AutocompleteProps extends React.HTMLProps<HTMLElement> {
|
|
|
440
440
|
input_element?: AutocompleteInputElement;
|
|
441
441
|
|
|
442
442
|
/**
|
|
443
|
-
* The data we want to fill the list with. Provide the data as a `JSON string`, `array` or `object` in these <a href="/uilib/components/fragments/drawer-list/info#data-structure">data structure</a>. <br /> If
|
|
443
|
+
* The data we want to fill the list with. Provide the data as a `JSON string`, `array` or `object` in these <a href="/uilib/components/fragments/drawer-list/info#data-structure">data structure</a>. <br /> If you don't have to define a `value`, you can also send in a `function` which will be called once the user opens the DrawerList.
|
|
444
444
|
*/
|
|
445
445
|
data?: AutocompleteData;
|
|
446
446
|
|
|
@@ -455,7 +455,7 @@ export interface AutocompleteProps extends React.HTMLProps<HTMLElement> {
|
|
|
455
455
|
search_numbers?: AutocompleteSearchNumbers;
|
|
456
456
|
|
|
457
457
|
/**
|
|
458
|
-
* If you want to define only a startup value (integer) or have to handle a re-render without handling the state during the re-render by yourself, then using `default_value` is a good choice
|
|
458
|
+
* If you want to define only a startup value (integer) or have to handle a re-render without handling the state during the re-render by yourself, then using `default_value` is a good choice. Defaults to `null`.
|
|
459
459
|
*/
|
|
460
460
|
default_value?: AutocompleteDefaultValue;
|
|
461
461
|
|
|
@@ -470,7 +470,7 @@ export interface AutocompleteProps extends React.HTMLProps<HTMLElement> {
|
|
|
470
470
|
input_value?: string;
|
|
471
471
|
|
|
472
472
|
/**
|
|
473
|
-
* Use `true` to auto open the list once the
|
|
473
|
+
* Use `true` to auto open the list once the user is entering the input field with the keyboard.
|
|
474
474
|
*/
|
|
475
475
|
open_on_focus?: AutocompleteOpenOnFocus;
|
|
476
476
|
|
|
@@ -513,7 +513,7 @@ export interface AutocompleteProps extends React.HTMLProps<HTMLElement> {
|
|
|
513
513
|
className?: string;
|
|
514
514
|
|
|
515
515
|
/**
|
|
516
|
-
* The data we want to fill the list with. Provide the data as a `JSON string`, `array` or `object` in these <a href="/uilib/components/fragments/drawer-list/info#data-structure">data structure</a>. <br /> If
|
|
516
|
+
* The data we want to fill the list with. Provide the data as a `JSON string`, `array` or `object` in these <a href="/uilib/components/fragments/drawer-list/info#data-structure">data structure</a>. <br /> If you don't have to define a `value`, you can also send in a `function` which will be called once the user opens the DrawerList.
|
|
517
517
|
*/
|
|
518
518
|
children?: AutocompleteChildren;
|
|
519
519
|
custom_element?: Object;
|
|
@@ -22,7 +22,7 @@ export type ButtonStatus =
|
|
|
22
22
|
| ((...args: any[]) => any)
|
|
23
23
|
| React.ReactNode;
|
|
24
24
|
export type ButtonStatusNoAnimation = string | boolean;
|
|
25
|
-
export type ButtonTo = string |
|
|
25
|
+
export type ButtonTo = string | any | ((...args: any[]) => any);
|
|
26
26
|
export type ButtonWrap = string | boolean;
|
|
27
27
|
export type ButtonBounding = string | boolean;
|
|
28
28
|
export type ButtonStretch = string | boolean;
|
|
@@ -34,7 +34,7 @@ export type ButtonChildren =
|
|
|
34
34
|
| React.ReactNode;
|
|
35
35
|
export type ButtonElement =
|
|
36
36
|
| ((...args: any[]) => any)
|
|
37
|
-
|
|
|
37
|
+
| any
|
|
38
38
|
| React.ReactNode;
|
|
39
39
|
export type ButtonSpace =
|
|
40
40
|
| string
|
|
@@ -66,10 +66,10 @@ export type ButtonRight = string | number | boolean;
|
|
|
66
66
|
export type ButtonBottom = string | number | boolean;
|
|
67
67
|
export type ButtonLeft = string | number | boolean;
|
|
68
68
|
export type ButtonOnClick = string | ((...args: any[]) => any);
|
|
69
|
-
|
|
70
69
|
/**
|
|
71
70
|
* NB: Do not change the docs (comments) in here. The docs are updated during build time by "generateTypes.js" and "fetchPropertiesFromDocs.js".
|
|
72
71
|
*/
|
|
72
|
+
|
|
73
73
|
export interface ButtonProps extends React.HTMLProps<HTMLElement> {
|
|
74
74
|
/**
|
|
75
75
|
* The content of the button can be a string or a React Element.
|
|
@@ -129,7 +129,7 @@ export interface ButtonProps extends React.HTMLProps<HTMLElement> {
|
|
|
129
129
|
/**
|
|
130
130
|
* Use an object to define additional FormStatus properties.
|
|
131
131
|
*/
|
|
132
|
-
status_props?:
|
|
132
|
+
status_props?: any;
|
|
133
133
|
status_no_animation?: ButtonStatusNoAnimation;
|
|
134
134
|
|
|
135
135
|
/**
|
|
@@ -178,9 +178,9 @@ export interface ButtonProps extends React.HTMLProps<HTMLElement> {
|
|
|
178
178
|
*/
|
|
179
179
|
skeleton?: ButtonSkeleton;
|
|
180
180
|
disabled?: ButtonDisabled;
|
|
181
|
-
inner_ref?:
|
|
181
|
+
inner_ref?: any;
|
|
182
182
|
className?: string;
|
|
183
|
-
innerRef?:
|
|
183
|
+
innerRef?: any;
|
|
184
184
|
|
|
185
185
|
/**
|
|
186
186
|
* The content of the button can be a string or a React Element.
|
|
@@ -216,7 +216,7 @@ export interface ButtonProps extends React.HTMLProps<HTMLElement> {
|
|
|
216
216
|
* Use spacing values like: `small`, `1rem`, `1` or , `16px`. will use `margin-left`.
|
|
217
217
|
*/
|
|
218
218
|
left?: ButtonLeft;
|
|
219
|
-
custom_element?:
|
|
219
|
+
custom_element?: any;
|
|
220
220
|
custom_method?: (...args: any[]) => any;
|
|
221
221
|
|
|
222
222
|
/**
|
|
@@ -241,14 +241,16 @@ var Button = function (_React$PureComponent) {
|
|
|
241
241
|
|
|
242
242
|
var classes = (0, _classnames.default)("dnb-button dnb-button--".concat(usedVariant || 'primary'), (text || content || custom_content) && 'dnb-button--has-text', (0, _SkeletonHelper.createSkeletonClass)(variant === 'tertiary' ? 'font' : 'shape', skeleton, this.context), (0, _SpacingHelper.createSpacingClasses)(props), class_name, className, (props.href || props.to) && '', icon && "dnb-button--icon-position-".concat(icon_position, " dnb-button--has-icon") + (iconSize ? " dnb-button--icon-size-".concat(iconSize) : ""), usedSize && usedSize !== 'default' && "dnb-button--size-".concat(usedSize), (0, _componentHelper.isTrue)(stretch) && 'dnb-button--stretch', wrap && 'dnb-button--wrap', status && "dnb-button__status--".concat(status_state));
|
|
243
243
|
|
|
244
|
-
var params = _objectSpread(
|
|
244
|
+
var params = _objectSpread({
|
|
245
245
|
className: classes,
|
|
246
246
|
title: title,
|
|
247
247
|
id: this._id,
|
|
248
248
|
disabled: (0, _componentHelper.isTrue)(disabled)
|
|
249
|
-
}, attributes)
|
|
250
|
-
|
|
251
|
-
|
|
249
|
+
}, attributes);
|
|
250
|
+
|
|
251
|
+
if (this.props.on_click || this.props.onClick) {
|
|
252
|
+
params.onClick = this.onClickHandler;
|
|
253
|
+
}
|
|
252
254
|
|
|
253
255
|
if (Element !== _Anchor.default && !params.type) {
|
|
254
256
|
params.type = params.type === '' ? undefined : 'button';
|
|
@@ -57,7 +57,7 @@ export type CheckboxChildren = string | ((...args: any[]) => any);
|
|
|
57
57
|
*/
|
|
58
58
|
export interface CheckboxProps extends React.HTMLProps<HTMLElement> {
|
|
59
59
|
/**
|
|
60
|
-
* Use either the `label` property or provide custom one.
|
|
60
|
+
* Use either the `label` property or provide a custom one.
|
|
61
61
|
*/
|
|
62
62
|
label?: CheckboxLabel;
|
|
63
63
|
|
|
@@ -74,7 +74,7 @@ export interface CheckboxProps extends React.HTMLProps<HTMLElement> {
|
|
|
74
74
|
default_state?: CheckboxDefaultState;
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
|
-
* Determine whether the checkbox is checked or not.
|
|
77
|
+
* Determine whether the checkbox is checked or not. The default is `false`.
|
|
78
78
|
*/
|
|
79
79
|
checked?: CheckboxChecked;
|
|
80
80
|
disabled?: CheckboxDisabled;
|
|
@@ -91,7 +91,7 @@ export interface CheckboxProps extends React.HTMLProps<HTMLElement> {
|
|
|
91
91
|
status?: CheckboxStatus;
|
|
92
92
|
|
|
93
93
|
/**
|
|
94
|
-
* Defines the state of the status. Currently there are two statuses `[error, info]`. Defaults to `error`.
|
|
94
|
+
* Defines the state of the status. Currently, there are two statuses `[error, info]`. Defaults to `error`.
|
|
95
95
|
*/
|
|
96
96
|
status_state?: string;
|
|
97
97
|
|
|
@@ -91,32 +91,32 @@ export interface DatePickerProps extends React.HTMLProps<HTMLElement> {
|
|
|
91
91
|
title?: string;
|
|
92
92
|
|
|
93
93
|
/**
|
|
94
|
-
* Defines the pre
|
|
94
|
+
* Defines the pre-filled date by either a JavaScript DateInstance or (ISO 8601) like `date="2019-05-05"`.
|
|
95
95
|
*/
|
|
96
96
|
date?: DatePickerDate;
|
|
97
97
|
|
|
98
98
|
/**
|
|
99
|
-
* To set the pre
|
|
99
|
+
* To set the pre-filled starting date. Is used if `range={true}` is set to true. Defaults to null, showing the `mask_placeholder`.
|
|
100
100
|
*/
|
|
101
101
|
start_date?: DatePickerStartDate;
|
|
102
102
|
|
|
103
103
|
/**
|
|
104
|
-
* To set the pre
|
|
104
|
+
* To set the pre-filled ending date. Is used if `range={true}` is set to true. Defaults to null, showing the `mask_placeholder`.
|
|
105
105
|
*/
|
|
106
106
|
end_date?: DatePickerEndDate;
|
|
107
107
|
|
|
108
108
|
/**
|
|
109
|
-
* To display what month should be
|
|
109
|
+
* To display what month should be shown in the first calendar by default. Defaults to the `date` respective `start_date`.
|
|
110
110
|
*/
|
|
111
111
|
month?: DatePickerMonth;
|
|
112
112
|
|
|
113
113
|
/**
|
|
114
|
-
* To display what month should be
|
|
114
|
+
* To display what month should be shown in the first calendar by default. Defaults to the `date` respective `start_date`.
|
|
115
115
|
*/
|
|
116
116
|
start_month?: DatePickerStartMonth;
|
|
117
117
|
|
|
118
118
|
/**
|
|
119
|
-
* To display what month should be
|
|
119
|
+
* To display what month should be shown in the second calendar by default. Defaults to the `date` respective `start_date`.
|
|
120
120
|
*/
|
|
121
121
|
end_month?: DatePickerEndMonth;
|
|
122
122
|
|
|
@@ -168,7 +168,7 @@ export interface DatePickerProps extends React.HTMLProps<HTMLElement> {
|
|
|
168
168
|
only_month?: DatePickerOnlyMonth;
|
|
169
169
|
|
|
170
170
|
/**
|
|
171
|
-
* Use `true` to only show the last week in the current month
|
|
171
|
+
* Use `true` to only show the last week in the current month if it needs to be shown. The result is that there will mainly be shows five (5) weeks (rows) instead of six (6). Defaults to `false`.
|
|
172
172
|
*/
|
|
173
173
|
hide_last_week?: DatePickerHideLastWeek;
|
|
174
174
|
|
|
@@ -184,12 +184,12 @@ export interface DatePickerProps extends React.HTMLProps<HTMLElement> {
|
|
|
184
184
|
show_input?: DatePickerShowInput;
|
|
185
185
|
|
|
186
186
|
/**
|
|
187
|
-
* If set to `true`, a submit button will be shown. You can change the default text by using `submit_button_text="Ok"`. Defaults to `false`. If the `range` prop is `true`, then the submit button is
|
|
187
|
+
* If set to `true`, a submit button will be shown. You can change the default text by using `submit_button_text="Ok"`. Defaults to `false`. If the `range` prop is `true`, then the submit button is shown.
|
|
188
188
|
*/
|
|
189
189
|
show_submit_button?: DatePickerShowSubmitButton;
|
|
190
190
|
|
|
191
191
|
/**
|
|
192
|
-
* If set to `true`, a cancel button will be shown. You can change the default text by using `cancel_button_text="Avbryt"` Defaults to `false`. If the `range` prop is `true`, then the cancel button is
|
|
192
|
+
* If set to `true`, a cancel button will be shown. You can change the default text by using `cancel_button_text="Avbryt"` Defaults to `false`. If the `range` prop is `true`, then the cancel button is shown.
|
|
193
193
|
*/
|
|
194
194
|
show_cancel_button?: DatePickerShowCancelButton;
|
|
195
195
|
|
|
@@ -218,12 +218,12 @@ export interface DatePickerProps extends React.HTMLProps<HTMLElement> {
|
|
|
218
218
|
range?: DatePickerRange;
|
|
219
219
|
|
|
220
220
|
/**
|
|
221
|
-
* Link both calendars, once to user is navigating between months. Only meant to use if range is set to true. Defaults to `false`.
|
|
221
|
+
* Link both calendars, once to the user is navigating between months. Only meant to use if the range is set to true. Defaults to `false`.
|
|
222
222
|
*/
|
|
223
223
|
link?: DatePickerLink;
|
|
224
224
|
|
|
225
225
|
/**
|
|
226
|
-
* Sync input values with the calendars views. Once the input values
|
|
226
|
+
* Sync input values with the calendars views. Once the input values get changed, the calendar changes its views in sync. Defaults to `true`.
|
|
227
227
|
*/
|
|
228
228
|
sync?: DatePickerSync;
|
|
229
229
|
|
|
@@ -253,7 +253,7 @@ export interface DatePickerProps extends React.HTMLProps<HTMLElement> {
|
|
|
253
253
|
addon_element?: DatePickerAddonElement;
|
|
254
254
|
|
|
255
255
|
/**
|
|
256
|
-
* Gives you the possibility to set predefined dates and date ranges so the user can select these by one click. Define either a JSON or an object with the defined shortcuts. More info below.
|
|
256
|
+
* Gives you the possibility to set predefined dates and date ranges so the user can select these by one click. Define either a JSON or an object with the defined shortcuts. More info is below.
|
|
257
257
|
*/
|
|
258
258
|
shortcuts?: DatePickerShortcuts;
|
|
259
259
|
disabled?: DatePickerDisabled;
|
|
@@ -274,7 +274,7 @@ export interface DatePickerProps extends React.HTMLProps<HTMLElement> {
|
|
|
274
274
|
status?: DatePickerStatus;
|
|
275
275
|
|
|
276
276
|
/**
|
|
277
|
-
* Defines the state of the status. Currently there are two statuses `[error, info]`. Defaults to `error`.
|
|
277
|
+
* Defines the state of the status. Currently, there are two statuses `[error, info]`. Defaults to `error`.
|
|
278
278
|
*/
|
|
279
279
|
status_state?: string;
|
|
280
280
|
|
|
@@ -337,7 +337,7 @@ export interface DatePickerProps extends React.HTMLProps<HTMLElement> {
|
|
|
337
337
|
custom_method?: (...args: any[]) => any;
|
|
338
338
|
|
|
339
339
|
/**
|
|
340
|
-
* Will be called right before every new calendar view gets rendered.
|
|
340
|
+
* Will be called right before every new calendar view gets rendered. See the example above.
|
|
341
341
|
*/
|
|
342
342
|
on_days_render?: (...args: any[]) => any;
|
|
343
343
|
|
|
@@ -10,7 +10,7 @@ export type DatePickerAddonRenderElement =
|
|
|
10
10
|
export interface DatePickerAddonProps
|
|
11
11
|
extends React.HTMLProps<HTMLElement> {
|
|
12
12
|
/**
|
|
13
|
-
* Gives you the possibility to set predefined dates and date ranges so the user can select these by one click. Define either a JSON or an object with the defined shortcuts. More info below.
|
|
13
|
+
* Gives you the possibility to set predefined dates and date ranges so the user can select these by one click. Define either a JSON or an object with the defined shortcuts. More info is below.
|
|
14
14
|
*/
|
|
15
15
|
shortcuts?: DatePickerAddonShortcuts;
|
|
16
16
|
renderElement?: DatePickerAddonRenderElement;
|
|
@@ -9,7 +9,7 @@ export interface DatePickerCalendarProps
|
|
|
9
9
|
nr?: number;
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
* To display what month should be
|
|
12
|
+
* To display what month should be shown in the first calendar by default. Defaults to the `date` respective `start_date`.
|
|
13
13
|
*/
|
|
14
14
|
month?: Date;
|
|
15
15
|
prevBtn?: boolean;
|
|
@@ -29,7 +29,7 @@ export interface DatePickerInputProps
|
|
|
29
29
|
status?: DatePickerInputStatus;
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
|
-
* Defines the state of the status. Currently there are two statuses `[error, info]`. Defaults to `error`.
|
|
32
|
+
* Defines the state of the status. Currently, there are two statuses `[error, info]`. Defaults to `error`.
|
|
33
33
|
*/
|
|
34
34
|
status_state?: string;
|
|
35
35
|
|
|
@@ -200,12 +200,12 @@ export interface DropdownProps extends React.HTMLProps<HTMLElement> {
|
|
|
200
200
|
id?: string;
|
|
201
201
|
|
|
202
202
|
/**
|
|
203
|
-
* Give a title to let the
|
|
203
|
+
* Give a title to let the users know what they have to do. Defaults to `Valgmeny`.
|
|
204
204
|
*/
|
|
205
205
|
title?: DropdownTitle;
|
|
206
206
|
|
|
207
207
|
/**
|
|
208
|
-
* Defines the kind of dropdown. Possible values are `primary`, `secondary`, `tertiary` and `signal`. Defaults to `secondary
|
|
208
|
+
* Defines the kind of dropdown. Possible values are `primary`, `secondary`, `tertiary` and `signal`. Defaults to `secondary`.
|
|
209
209
|
*/
|
|
210
210
|
variant?: DropdownVariant;
|
|
211
211
|
|
|
@@ -220,7 +220,7 @@ export interface DropdownProps extends React.HTMLProps<HTMLElement> {
|
|
|
220
220
|
icon_size?: string;
|
|
221
221
|
|
|
222
222
|
/**
|
|
223
|
-
* Position of icon inside the dropdown. Set to `left` or `right`. Defaults to `right`.
|
|
223
|
+
* Position of the icon inside the dropdown. Set to `left` or `right`. Defaults to `right`.
|
|
224
224
|
*/
|
|
225
225
|
icon_position?: DropdownIconPosition;
|
|
226
226
|
|
|
@@ -250,7 +250,7 @@ export interface DropdownProps extends React.HTMLProps<HTMLElement> {
|
|
|
250
250
|
status?: DropdownStatus;
|
|
251
251
|
|
|
252
252
|
/**
|
|
253
|
-
* Defines the state of the status. Currently there are two statuses `[error, info]`. Defaults to `error`.
|
|
253
|
+
* Defines the state of the status. Currently, there are two statuses `[error, info]`. Defaults to `error`.
|
|
254
254
|
*/
|
|
255
255
|
status_state?: string;
|
|
256
256
|
|
|
@@ -346,12 +346,12 @@ export interface DropdownProps extends React.HTMLProps<HTMLElement> {
|
|
|
346
346
|
trigger_element?: DropdownTriggerElement;
|
|
347
347
|
|
|
348
348
|
/**
|
|
349
|
-
* The data we want to fill the list with. Provide the data as a `JSON string`, `array` or `object` in these <a href="/uilib/components/fragments/drawer-list/info#data-structure">data structure</a>. <br /> If
|
|
349
|
+
* The data we want to fill the list with. Provide the data as a `JSON string`, `array` or `object` in these <a href="/uilib/components/fragments/drawer-list/info#data-structure">data structure</a>. <br /> If you don't have to define a `value`, you can also send in a `function` which will be called once the user opens the DrawerList.
|
|
350
350
|
*/
|
|
351
351
|
data?: DropdownData;
|
|
352
352
|
|
|
353
353
|
/**
|
|
354
|
-
* If you want to define only a startup value (integer) or have to handle a re-render without handling the state during the re-render by yourself, then using `default_value` is a good choice
|
|
354
|
+
* If you want to define only a startup value (integer) or have to handle a re-render without handling the state during the re-render by yourself, then using `default_value` is a good choice. Defaults to `null`.
|
|
355
355
|
*/
|
|
356
356
|
default_value?: DropdownDefaultValue;
|
|
357
357
|
|
|
@@ -361,7 +361,7 @@ export interface DropdownProps extends React.HTMLProps<HTMLElement> {
|
|
|
361
361
|
value?: DropdownValue;
|
|
362
362
|
|
|
363
363
|
/**
|
|
364
|
-
* If set to `true`, the Dropdown will be opened when the users
|
|
364
|
+
* If set to `true`, the Dropdown will be opened when the users enter the trigger button with a focus action.
|
|
365
365
|
*/
|
|
366
366
|
open_on_focus?: DropdownOpenOnFocus;
|
|
367
367
|
|
|
@@ -394,7 +394,7 @@ export interface DropdownProps extends React.HTMLProps<HTMLElement> {
|
|
|
394
394
|
className?: string;
|
|
395
395
|
|
|
396
396
|
/**
|
|
397
|
-
* The data we want to fill the list with. Provide the data as a `JSON string`, `array` or `object` in these <a href="/uilib/components/fragments/drawer-list/info#data-structure">data structure</a>. <br /> If
|
|
397
|
+
* The data we want to fill the list with. Provide the data as a `JSON string`, `array` or `object` in these <a href="/uilib/components/fragments/drawer-list/info#data-structure">data structure</a>. <br /> If you don't have to define a `value`, you can also send in a `function` which will be called once the user opens the DrawerList.
|
|
398
398
|
*/
|
|
399
399
|
children?: DropdownChildren;
|
|
400
400
|
custom_element?: Object;
|
|
@@ -416,7 +416,7 @@ export interface DropdownProps extends React.HTMLProps<HTMLElement> {
|
|
|
416
416
|
on_change?: (...args: any[]) => any;
|
|
417
417
|
|
|
418
418
|
/**
|
|
419
|
-
* Will be called once the
|
|
419
|
+
* Will be called once the user selects an item by a click or keyboard navigation. Returns an object with the new selected `data` item `{ data, event, attributes, selected_key, value, active_item }`. The "active_item" property is the currently selected item by keyboard navigation
|
|
420
420
|
*/
|
|
421
421
|
on_select?: (...args: any[]) => any;
|
|
422
422
|
on_state_update?: (...args: any[]) => any;
|
|
@@ -57,7 +57,7 @@ export interface FormRowProps extends React.HTMLProps<HTMLElement> {
|
|
|
57
57
|
id?: string;
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
|
-
* Use either the `label` property or provide custom one.
|
|
60
|
+
* Use either the `label` property or provide a custom one.
|
|
61
61
|
*/
|
|
62
62
|
label?: FormRowLabel;
|
|
63
63
|
|
|
@@ -73,7 +73,7 @@ export interface FormRowProps extends React.HTMLProps<HTMLElement> {
|
|
|
73
73
|
label_id?: string;
|
|
74
74
|
|
|
75
75
|
/**
|
|
76
|
-
* If
|
|
76
|
+
* If you need to style the "legend", then you can either send in a custom Component, like `label={ <H2> }`, or define Your styling class with the `label_class` property.
|
|
77
77
|
*/
|
|
78
78
|
label_class?: string;
|
|
79
79
|
no_label?: FormRowNoLabel;
|
|
@@ -94,7 +94,7 @@ export interface FormRowProps extends React.HTMLProps<HTMLElement> {
|
|
|
94
94
|
indent?: FormRowIndent;
|
|
95
95
|
|
|
96
96
|
/**
|
|
97
|
-
* Forces the content of a FormRow to wrap. Make sure
|
|
97
|
+
* Forces the content of a FormRow to wrap. Make sure you always define spacing as `right="..."` and not `left`, this way components will align left once they wrap. Defaults to `false`.
|
|
98
98
|
*/
|
|
99
99
|
wrap?: FormRowWrap;
|
|
100
100
|
|
|
@@ -109,7 +109,7 @@ export interface FormRowProps extends React.HTMLProps<HTMLElement> {
|
|
|
109
109
|
vertical?: FormRowVertical;
|
|
110
110
|
|
|
111
111
|
/**
|
|
112
|
-
* Will center all children vertically as long as the screen not
|
|
112
|
+
* Will center all children vertically as long as the screen does not hit a mobile width.
|
|
113
113
|
*/
|
|
114
114
|
centered?: FormRowCentered;
|
|
115
115
|
|