@dnb/eufemia 10.0.0-beta.6 → 10.0.0-beta.8
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 +63 -0
- package/cjs/components/accordion/Accordion.d.ts +2 -1
- package/cjs/components/anchor/Anchor.d.ts +5 -1
- package/cjs/components/anchor/Anchor.js +53 -4
- package/cjs/components/anchor/style/anchor-mixins.scss +8 -4
- package/cjs/components/anchor/style/dnb-anchor.css +8 -9
- package/cjs/components/anchor/style/dnb-anchor.min.css +1 -1
- package/cjs/components/anchor/style/dnb-anchor.scss +2 -1
- package/cjs/components/anchor/style/themes/dnb-anchor-theme-sbanken.css +63 -1
- package/cjs/components/anchor/style/themes/dnb-anchor-theme-sbanken.min.css +1 -1
- package/cjs/components/anchor/style/themes/dnb-anchor-theme-sbanken.scss +88 -26
- package/cjs/components/anchor/style/themes/dnb-anchor-theme-ui.css +4 -4
- package/cjs/components/anchor/style/themes/dnb-anchor-theme-ui.min.css +1 -1
- package/cjs/components/anchor/style/themes/dnb-anchor-theme-ui.scss +4 -4
- package/cjs/components/autocomplete/Autocomplete.d.ts +3 -2
- package/cjs/components/autocomplete/Autocomplete.js +8 -5
- package/cjs/components/button/Button.d.ts +5 -3
- package/cjs/components/button/Button.js +8 -5
- package/cjs/components/button/style/dnb-button--tertiary.css +16 -7
- package/cjs/components/button/style/dnb-button--tertiary.min.css +1 -1
- package/cjs/components/button/style/dnb-button--tertiary.scss +28 -18
- package/cjs/components/button/style/dnb-button.css +1 -3
- package/cjs/components/button/style/dnb-button.min.css +1 -1
- package/cjs/components/button/style/dnb-button.scss +0 -1
- package/cjs/components/button/style/themes/button-mixins.scss +4 -4
- package/cjs/components/button/style/themes/dnb-button-theme-eiendom.css +16 -7
- package/cjs/components/button/style/themes/dnb-button-theme-eiendom.min.css +1 -1
- package/cjs/components/button/style/themes/dnb-button-theme-sbanken.css +38 -7
- package/cjs/components/button/style/themes/dnb-button-theme-sbanken.min.css +1 -1
- package/cjs/components/button/style/themes/dnb-button-theme-sbanken.scss +6 -0
- package/cjs/components/button/style/themes/dnb-button-theme-ui.css +16 -7
- package/cjs/components/button/style/themes/dnb-button-theme-ui.min.css +1 -1
- package/cjs/components/checkbox/Checkbox.d.ts +3 -2
- package/cjs/components/checkbox/Checkbox.js +8 -5
- package/cjs/components/date-picker/DatePicker.d.ts +3 -2
- package/cjs/components/date-picker/DatePicker.js +9 -5
- package/cjs/components/dialog/style/dnb-dialog.css +3 -3
- package/cjs/components/dialog/style/dnb-dialog.min.css +1 -1
- package/cjs/components/dialog/style/dnb-dialog.scss +2 -4
- package/cjs/components/dropdown/Dropdown.d.ts +3 -2
- package/cjs/components/dropdown/Dropdown.js +8 -5
- package/cjs/components/form-row/FormRow.d.ts +2 -1
- package/cjs/components/form-row/FormRow.js +8 -5
- package/cjs/components/form-set/FormSet.d.ts +2 -1
- package/cjs/components/form-status/FormStatus.d.ts +6 -6
- package/cjs/components/form-status/FormStatus.js +13 -7
- package/cjs/components/global-status/GlobalStatus.d.ts +8 -0
- package/cjs/components/help-button/HelpButton.d.ts +1 -3
- package/cjs/components/help-button/HelpButton.js +9 -17
- package/cjs/components/icon/style/dnb-icon.css +7 -3
- package/cjs/components/icon/style/dnb-icon.min.css +1 -1
- package/cjs/components/icon/style/dnb-icon.scss +16 -10
- package/cjs/components/input/Input.d.ts +11 -5
- package/cjs/components/input/Input.js +8 -5
- package/cjs/components/input-masked/InputMasked.d.ts +3 -2
- package/cjs/components/input-masked/InputMaskedUtils.js +7 -3
- package/cjs/components/lib.d.ts +1 -1
- package/cjs/components/modal/Modal.js +21 -7
- package/cjs/components/modal/ModalContent.js +2 -2
- package/cjs/components/number-format/NumberUtils.js +5 -4
- package/cjs/components/progress-indicator/ProgressIndicator.d.ts +1 -1
- package/cjs/components/progress-indicator/ProgressIndicatorCircular.d.ts +1 -1
- package/cjs/components/progress-indicator/ProgressIndicatorLinear.d.ts +1 -1
- package/cjs/components/radio/Radio.d.ts +4 -3
- package/cjs/components/radio/Radio.js +8 -5
- package/cjs/components/radio/RadioGroup.d.ts +4 -3
- package/cjs/components/radio/RadioGroup.js +8 -5
- package/cjs/components/slider/SliderInstance.js +2 -3
- package/cjs/components/slider/SliderProvider.js +2 -2
- package/cjs/components/slider/types.d.ts +2 -1
- package/cjs/components/switch/Switch.d.ts +3 -2
- package/cjs/components/switch/Switch.js +8 -5
- package/cjs/components/textarea/Textarea.d.ts +3 -2
- package/cjs/components/textarea/Textarea.js +8 -5
- package/cjs/components/timeline/TimelineItem.d.ts +2 -2
- package/cjs/components/toggle-button/ToggleButton.d.ts +4 -3
- package/cjs/components/toggle-button/ToggleButton.js +8 -5
- package/cjs/components/toggle-button/ToggleButtonGroup.d.ts +3 -2
- package/cjs/components/toggle-button/ToggleButtonGroup.js +8 -5
- package/cjs/components/tooltip/TooltipWithEvents.d.ts +2 -2
- package/cjs/components/tooltip/TooltipWithEvents.js +6 -1
- package/cjs/components/visually-hidden/style/dnb-visually-hidden.css +14 -14
- package/cjs/components/visually-hidden/style/dnb-visually-hidden.min.css +1 -1
- package/cjs/elements/Link.d.ts +1 -1
- package/cjs/elements/lib.d.ts +1 -1
- package/cjs/elements/typography/style/themes/dnb-typography-theme-sbanken.scss +16 -0
- package/cjs/elements/typography/style/themes/dnb-typography-theme-ui.scss +4 -23
- package/cjs/elements/typography/style/typography-mixins.scss +33 -0
- package/cjs/shared/Eufemia.d.ts +1 -0
- package/cjs/shared/Eufemia.js +4 -1
- package/cjs/shared/Theme.d.ts +6 -2
- package/cjs/shared/Theme.js +11 -5
- package/cjs/shared/VisibilityByTheme.js +10 -1
- package/cjs/style/core/scopes.scss +1 -1
- package/cjs/style/core/utilities.scss +17 -13
- package/cjs/style/dnb-ui-basis.css +16 -16
- package/cjs/style/dnb-ui-basis.min.css +1 -1
- package/cjs/style/dnb-ui-body.css +2 -2
- package/cjs/style/dnb-ui-body.min.css +1 -1
- package/cjs/style/dnb-ui-components.css +33 -32
- package/cjs/style/dnb-ui-components.min.css +1 -1
- package/cjs/style/dnb-ui-core.css +16 -16
- package/cjs/style/dnb-ui-core.min.css +1 -1
- package/cjs/style/themes/theme-eiendom/eiendom-theme-basis.css +5 -0
- package/cjs/style/themes/theme-eiendom/eiendom-theme-components.css +69 -50
- package/cjs/style/themes/theme-eiendom/eiendom-theme-components.min.css +1 -1
- package/cjs/style/themes/theme-eiendom/eiendom-theme-elements.css +5 -0
- package/cjs/style/themes/theme-sbanken/sbanken-theme-basis.css +39 -30
- package/cjs/style/themes/theme-sbanken/sbanken-theme-basis.min.css +1 -1
- package/cjs/style/themes/theme-sbanken/sbanken-theme-basis.scss +4 -0
- package/cjs/style/themes/theme-sbanken/sbanken-theme-components.css +133 -40
- package/cjs/style/themes/theme-sbanken/sbanken-theme-components.min.css +1 -1
- package/cjs/style/themes/theme-sbanken/sbanken-theme-elements.css +36 -31
- package/cjs/style/themes/theme-sbanken/sbanken-theme-elements.min.css +1 -1
- package/cjs/style/themes/theme-sbanken/sbanken-theme-elements.scss +1 -1
- package/cjs/style/themes/theme-ui/ui-theme-basis.css +5 -0
- package/cjs/style/themes/theme-ui/ui-theme-components.css +53 -43
- package/cjs/style/themes/theme-ui/ui-theme-components.min.css +1 -1
- package/cjs/style/themes/theme-ui/ui-theme-elements.css +5 -0
- package/cjs/style/themes/theme-ui/ui-theme-tags.css +3 -3
- package/cjs/style/themes/theme-ui/ui-theme-tags.min.css +1 -1
- package/components/accordion/Accordion.d.ts +2 -1
- package/components/anchor/Anchor.d.ts +5 -1
- package/components/anchor/Anchor.js +49 -4
- package/components/anchor/style/anchor-mixins.scss +8 -4
- package/components/anchor/style/dnb-anchor.css +8 -9
- package/components/anchor/style/dnb-anchor.min.css +1 -1
- package/components/anchor/style/dnb-anchor.scss +2 -1
- package/components/anchor/style/themes/dnb-anchor-theme-sbanken.css +63 -1
- package/components/anchor/style/themes/dnb-anchor-theme-sbanken.min.css +1 -1
- package/components/anchor/style/themes/dnb-anchor-theme-sbanken.scss +88 -26
- package/components/anchor/style/themes/dnb-anchor-theme-ui.css +4 -4
- package/components/anchor/style/themes/dnb-anchor-theme-ui.min.css +1 -1
- package/components/anchor/style/themes/dnb-anchor-theme-ui.scss +4 -4
- package/components/autocomplete/Autocomplete.d.ts +3 -2
- package/components/autocomplete/Autocomplete.js +8 -5
- package/components/button/Button.d.ts +5 -3
- package/components/button/Button.js +8 -5
- package/components/button/style/dnb-button--tertiary.css +16 -7
- package/components/button/style/dnb-button--tertiary.min.css +1 -1
- package/components/button/style/dnb-button--tertiary.scss +28 -18
- package/components/button/style/dnb-button.css +1 -3
- package/components/button/style/dnb-button.min.css +1 -1
- package/components/button/style/dnb-button.scss +0 -1
- package/components/button/style/themes/button-mixins.scss +4 -4
- package/components/button/style/themes/dnb-button-theme-eiendom.css +16 -7
- package/components/button/style/themes/dnb-button-theme-eiendom.min.css +1 -1
- package/components/button/style/themes/dnb-button-theme-sbanken.css +38 -7
- package/components/button/style/themes/dnb-button-theme-sbanken.min.css +1 -1
- package/components/button/style/themes/dnb-button-theme-sbanken.scss +6 -0
- package/components/button/style/themes/dnb-button-theme-ui.css +16 -7
- package/components/button/style/themes/dnb-button-theme-ui.min.css +1 -1
- package/components/checkbox/Checkbox.d.ts +3 -2
- package/components/checkbox/Checkbox.js +8 -5
- package/components/date-picker/DatePicker.d.ts +3 -2
- package/components/date-picker/DatePicker.js +9 -5
- package/components/dialog/style/dnb-dialog.css +3 -3
- package/components/dialog/style/dnb-dialog.min.css +1 -1
- package/components/dialog/style/dnb-dialog.scss +2 -4
- package/components/dropdown/Dropdown.d.ts +3 -2
- package/components/dropdown/Dropdown.js +8 -5
- package/components/form-row/FormRow.d.ts +2 -1
- package/components/form-row/FormRow.js +8 -5
- package/components/form-set/FormSet.d.ts +2 -1
- package/components/form-status/FormStatus.d.ts +6 -6
- package/components/form-status/FormStatus.js +13 -7
- package/components/global-status/GlobalStatus.d.ts +8 -0
- package/components/help-button/HelpButton.d.ts +1 -3
- package/components/help-button/HelpButton.js +9 -16
- package/components/icon/style/dnb-icon.css +7 -3
- package/components/icon/style/dnb-icon.min.css +1 -1
- package/components/icon/style/dnb-icon.scss +16 -10
- package/components/input/Input.d.ts +11 -5
- package/components/input/Input.js +8 -5
- package/components/input-masked/InputMasked.d.ts +3 -2
- package/components/input-masked/InputMaskedUtils.js +7 -3
- package/components/lib.d.ts +1 -1
- package/components/modal/Modal.js +21 -7
- package/components/modal/ModalContent.js +2 -2
- package/components/number-format/NumberUtils.js +5 -4
- package/components/progress-indicator/ProgressIndicator.d.ts +1 -1
- package/components/progress-indicator/ProgressIndicatorCircular.d.ts +1 -1
- package/components/progress-indicator/ProgressIndicatorLinear.d.ts +1 -1
- package/components/radio/Radio.d.ts +4 -3
- package/components/radio/Radio.js +8 -5
- package/components/radio/RadioGroup.d.ts +4 -3
- package/components/radio/RadioGroup.js +8 -5
- package/components/slider/SliderInstance.js +2 -3
- package/components/slider/SliderProvider.js +2 -2
- package/components/slider/types.d.ts +2 -1
- package/components/switch/Switch.d.ts +3 -2
- package/components/switch/Switch.js +8 -5
- package/components/textarea/Textarea.d.ts +3 -2
- package/components/textarea/Textarea.js +8 -5
- package/components/timeline/TimelineItem.d.ts +2 -2
- package/components/toggle-button/ToggleButton.d.ts +4 -3
- package/components/toggle-button/ToggleButton.js +8 -5
- package/components/toggle-button/ToggleButtonGroup.d.ts +3 -2
- package/components/toggle-button/ToggleButtonGroup.js +8 -5
- package/components/tooltip/TooltipWithEvents.d.ts +2 -2
- package/components/tooltip/TooltipWithEvents.js +6 -1
- package/components/visually-hidden/style/dnb-visually-hidden.css +14 -14
- package/components/visually-hidden/style/dnb-visually-hidden.min.css +1 -1
- package/elements/Link.d.ts +1 -1
- package/elements/lib.d.ts +1 -1
- package/elements/typography/style/themes/dnb-typography-theme-sbanken.scss +16 -0
- package/elements/typography/style/themes/dnb-typography-theme-ui.scss +4 -23
- package/elements/typography/style/typography-mixins.scss +33 -0
- package/es/components/accordion/Accordion.d.ts +2 -1
- package/es/components/anchor/Anchor.d.ts +5 -1
- package/es/components/anchor/Anchor.js +49 -4
- package/es/components/anchor/style/anchor-mixins.scss +8 -4
- package/es/components/anchor/style/dnb-anchor.css +8 -9
- package/es/components/anchor/style/dnb-anchor.min.css +1 -1
- package/es/components/anchor/style/dnb-anchor.scss +2 -1
- package/es/components/anchor/style/themes/dnb-anchor-theme-sbanken.css +63 -1
- package/es/components/anchor/style/themes/dnb-anchor-theme-sbanken.min.css +1 -1
- package/es/components/anchor/style/themes/dnb-anchor-theme-sbanken.scss +88 -26
- package/es/components/anchor/style/themes/dnb-anchor-theme-ui.css +4 -4
- package/es/components/anchor/style/themes/dnb-anchor-theme-ui.min.css +1 -1
- package/es/components/anchor/style/themes/dnb-anchor-theme-ui.scss +4 -4
- package/es/components/autocomplete/Autocomplete.d.ts +3 -2
- package/es/components/autocomplete/Autocomplete.js +8 -5
- package/es/components/button/Button.d.ts +5 -3
- package/es/components/button/Button.js +8 -5
- package/es/components/button/style/dnb-button--tertiary.css +16 -7
- package/es/components/button/style/dnb-button--tertiary.min.css +1 -1
- package/es/components/button/style/dnb-button--tertiary.scss +28 -18
- package/es/components/button/style/dnb-button.css +1 -3
- package/es/components/button/style/dnb-button.min.css +1 -1
- package/es/components/button/style/dnb-button.scss +0 -1
- package/es/components/button/style/themes/button-mixins.scss +4 -4
- package/es/components/button/style/themes/dnb-button-theme-eiendom.css +16 -7
- package/es/components/button/style/themes/dnb-button-theme-eiendom.min.css +1 -1
- package/es/components/button/style/themes/dnb-button-theme-sbanken.css +38 -7
- package/es/components/button/style/themes/dnb-button-theme-sbanken.min.css +1 -1
- package/es/components/button/style/themes/dnb-button-theme-sbanken.scss +6 -0
- package/es/components/button/style/themes/dnb-button-theme-ui.css +16 -7
- package/es/components/button/style/themes/dnb-button-theme-ui.min.css +1 -1
- package/es/components/checkbox/Checkbox.d.ts +3 -2
- package/es/components/checkbox/Checkbox.js +8 -5
- package/es/components/date-picker/DatePicker.d.ts +3 -2
- package/es/components/date-picker/DatePicker.js +9 -5
- package/es/components/dialog/style/dnb-dialog.css +3 -3
- package/es/components/dialog/style/dnb-dialog.min.css +1 -1
- package/es/components/dialog/style/dnb-dialog.scss +2 -4
- package/es/components/dropdown/Dropdown.d.ts +3 -2
- package/es/components/dropdown/Dropdown.js +8 -5
- package/es/components/form-row/FormRow.d.ts +2 -1
- package/es/components/form-row/FormRow.js +8 -5
- package/es/components/form-set/FormSet.d.ts +2 -1
- package/es/components/form-status/FormStatus.d.ts +6 -6
- package/es/components/form-status/FormStatus.js +13 -7
- package/es/components/global-status/GlobalStatus.d.ts +8 -0
- package/es/components/help-button/HelpButton.d.ts +1 -3
- package/es/components/help-button/HelpButton.js +9 -16
- package/es/components/icon/style/dnb-icon.css +7 -3
- package/es/components/icon/style/dnb-icon.min.css +1 -1
- package/es/components/icon/style/dnb-icon.scss +16 -10
- package/es/components/input/Input.d.ts +11 -5
- package/es/components/input/Input.js +8 -5
- package/es/components/input-masked/InputMasked.d.ts +3 -2
- package/es/components/input-masked/InputMaskedUtils.js +7 -3
- package/es/components/lib.d.ts +1 -1
- package/es/components/modal/Modal.js +21 -7
- package/es/components/modal/ModalContent.js +2 -2
- package/es/components/number-format/NumberUtils.js +5 -4
- package/es/components/progress-indicator/ProgressIndicator.d.ts +1 -1
- package/es/components/progress-indicator/ProgressIndicatorCircular.d.ts +1 -1
- package/es/components/progress-indicator/ProgressIndicatorLinear.d.ts +1 -1
- package/es/components/radio/Radio.d.ts +4 -3
- package/es/components/radio/Radio.js +8 -5
- package/es/components/radio/RadioGroup.d.ts +4 -3
- package/es/components/radio/RadioGroup.js +8 -5
- package/es/components/slider/SliderInstance.js +2 -3
- package/es/components/slider/SliderProvider.js +2 -2
- package/es/components/slider/types.d.ts +2 -1
- package/es/components/switch/Switch.d.ts +3 -2
- package/es/components/switch/Switch.js +8 -5
- package/es/components/textarea/Textarea.d.ts +3 -2
- package/es/components/textarea/Textarea.js +8 -5
- package/es/components/timeline/TimelineItem.d.ts +2 -2
- package/es/components/toggle-button/ToggleButton.d.ts +4 -3
- package/es/components/toggle-button/ToggleButton.js +8 -5
- package/es/components/toggle-button/ToggleButtonGroup.d.ts +3 -2
- package/es/components/toggle-button/ToggleButtonGroup.js +8 -5
- package/es/components/tooltip/TooltipWithEvents.d.ts +2 -2
- package/es/components/tooltip/TooltipWithEvents.js +6 -1
- package/es/components/visually-hidden/style/dnb-visually-hidden.css +14 -14
- package/es/components/visually-hidden/style/dnb-visually-hidden.min.css +1 -1
- package/es/elements/Link.d.ts +1 -1
- package/es/elements/lib.d.ts +1 -1
- package/es/elements/typography/style/themes/dnb-typography-theme-sbanken.scss +16 -0
- package/es/elements/typography/style/themes/dnb-typography-theme-ui.scss +4 -23
- package/es/elements/typography/style/typography-mixins.scss +33 -0
- package/es/shared/Eufemia.d.ts +1 -0
- package/es/shared/Eufemia.js +2 -1
- package/es/shared/Theme.d.ts +6 -2
- package/es/shared/Theme.js +11 -5
- package/es/shared/VisibilityByTheme.js +6 -1
- package/es/style/core/scopes.scss +1 -1
- package/es/style/core/utilities.scss +17 -13
- package/es/style/dnb-ui-basis.css +16 -16
- package/es/style/dnb-ui-basis.min.css +1 -1
- package/es/style/dnb-ui-body.css +2 -2
- package/es/style/dnb-ui-body.min.css +1 -1
- package/es/style/dnb-ui-components.css +33 -32
- package/es/style/dnb-ui-components.min.css +1 -1
- package/es/style/dnb-ui-core.css +16 -16
- package/es/style/dnb-ui-core.min.css +1 -1
- package/es/style/themes/theme-eiendom/eiendom-theme-basis.css +5 -0
- package/es/style/themes/theme-eiendom/eiendom-theme-components.css +69 -50
- package/es/style/themes/theme-eiendom/eiendom-theme-components.min.css +1 -1
- package/es/style/themes/theme-eiendom/eiendom-theme-elements.css +5 -0
- package/es/style/themes/theme-sbanken/sbanken-theme-basis.css +39 -30
- package/es/style/themes/theme-sbanken/sbanken-theme-basis.min.css +1 -1
- package/es/style/themes/theme-sbanken/sbanken-theme-basis.scss +4 -0
- package/es/style/themes/theme-sbanken/sbanken-theme-components.css +133 -40
- package/es/style/themes/theme-sbanken/sbanken-theme-components.min.css +1 -1
- package/es/style/themes/theme-sbanken/sbanken-theme-elements.css +36 -31
- package/es/style/themes/theme-sbanken/sbanken-theme-elements.min.css +1 -1
- package/es/style/themes/theme-sbanken/sbanken-theme-elements.scss +1 -1
- package/es/style/themes/theme-ui/ui-theme-basis.css +5 -0
- package/es/style/themes/theme-ui/ui-theme-components.css +53 -43
- package/es/style/themes/theme-ui/ui-theme-components.min.css +1 -1
- package/es/style/themes/theme-ui/ui-theme-elements.css +5 -0
- package/es/style/themes/theme-ui/ui-theme-tags.css +3 -3
- package/es/style/themes/theme-ui/ui-theme-tags.min.css +1 -1
- package/esm/dnb-ui-basis.min.mjs +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 +1 -1
- package/package.json +1 -1
- package/shared/Eufemia.d.ts +1 -0
- package/shared/Eufemia.js +2 -1
- package/shared/Theme.d.ts +6 -2
- package/shared/Theme.js +11 -5
- package/shared/VisibilityByTheme.js +6 -1
- package/style/core/scopes.scss +1 -1
- package/style/core/utilities.scss +17 -13
- package/style/dnb-ui-basis.css +16 -16
- package/style/dnb-ui-basis.min.css +1 -1
- package/style/dnb-ui-body.css +2 -2
- package/style/dnb-ui-body.min.css +1 -1
- package/style/dnb-ui-components.css +33 -32
- package/style/dnb-ui-components.min.css +1 -1
- package/style/dnb-ui-core.css +16 -16
- package/style/dnb-ui-core.min.css +1 -1
- package/style/themes/theme-eiendom/eiendom-theme-basis.css +5 -0
- package/style/themes/theme-eiendom/eiendom-theme-components.css +69 -50
- package/style/themes/theme-eiendom/eiendom-theme-components.min.css +1 -1
- package/style/themes/theme-eiendom/eiendom-theme-elements.css +5 -0
- package/style/themes/theme-sbanken/sbanken-theme-basis.css +39 -30
- package/style/themes/theme-sbanken/sbanken-theme-basis.min.css +1 -1
- package/style/themes/theme-sbanken/sbanken-theme-basis.scss +4 -0
- package/style/themes/theme-sbanken/sbanken-theme-components.css +133 -40
- package/style/themes/theme-sbanken/sbanken-theme-components.min.css +1 -1
- package/style/themes/theme-sbanken/sbanken-theme-elements.css +36 -31
- package/style/themes/theme-sbanken/sbanken-theme-elements.min.css +1 -1
- package/style/themes/theme-sbanken/sbanken-theme-elements.scss +1 -1
- package/style/themes/theme-ui/ui-theme-basis.css +5 -0
- package/style/themes/theme-ui/ui-theme-components.css +53 -43
- package/style/themes/theme-ui/ui-theme-components.min.css +1 -1
- package/style/themes/theme-ui/ui-theme-elements.css +5 -0
- package/style/themes/theme-ui/ui-theme-tags.css +3 -3
- package/style/themes/theme-ui/ui-theme-tags.min.css +1 -1
- package/umd/dnb-ui-basis.min.js +1 -1
- package/umd/dnb-ui-components.min.js +1 -1
- 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 +1 -1
package/cjs/components/lib.d.ts
CHANGED
|
@@ -61,7 +61,7 @@ export declare const getComponents: () => {
|
|
|
61
61
|
Accordion: typeof Accordion;
|
|
62
62
|
Anchor: import("react").ForwardRefExoticComponent<Pick<import("./anchor/Anchor").AnchorProps & import("react").HTMLProps<HTMLAnchorElement> & import("./space/types").SpacingElementProps & {
|
|
63
63
|
space?: import("./space/types").SpaceType | import("./space/types").SpacingElementProps;
|
|
64
|
-
}, "aria-hidden" | "cite" | "data" | "dir" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "accessKey" | "key" | "value" | "space" | "top" | "right" | "bottom" | "left" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "className" | "contentEditable" | "contextMenu" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "innerRef" | "list" | "tooltip" | "step" | "shape" | "skeleton" | "as" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "nonce" | "noValidate" | "open" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "size" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "target" | "type" | "useMap" | "width" | "wmode" | "wrap" | "to" | "element" | "targetBlankTitle" | "omitClass" | "inner_ref"> & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
64
|
+
}, "aria-hidden" | "cite" | "data" | "dir" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "accessKey" | "key" | "value" | "space" | "top" | "right" | "bottom" | "left" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "className" | "contentEditable" | "contextMenu" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "innerRef" | "list" | "tooltip" | "step" | "shape" | "skeleton" | "as" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "nonce" | "noValidate" | "open" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "size" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "target" | "type" | "useMap" | "width" | "wmode" | "wrap" | "to" | "icon" | "element" | "targetBlankTitle" | "iconPosition" | "omitClass" | "inner_ref"> & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
65
65
|
Autocomplete: typeof Autocomplete;
|
|
66
66
|
Avatar: {
|
|
67
67
|
(localProps: import("./avatar/Avatar").AvatarProps & import("./space/types").SpacingElementProps & {
|
|
@@ -203,7 +203,9 @@ class Modal extends _react.default.PureComponent {
|
|
|
203
203
|
modalActive
|
|
204
204
|
} = this.state;
|
|
205
205
|
const {
|
|
206
|
-
close_modal
|
|
206
|
+
close_modal,
|
|
207
|
+
open_state,
|
|
208
|
+
animation_duration
|
|
207
209
|
} = this.props;
|
|
208
210
|
|
|
209
211
|
if (modalActive) {
|
|
@@ -219,18 +221,30 @@ class Modal extends _react.default.PureComponent {
|
|
|
219
221
|
|
|
220
222
|
this.setActiveState(this._id);
|
|
221
223
|
} else if (modalActive === false) {
|
|
222
|
-
|
|
223
|
-
|
|
224
|
+
var _this$_triggerRef;
|
|
225
|
+
|
|
226
|
+
const focus = elem => {
|
|
227
|
+
elem.setAttribute('data-autofocus', 'true');
|
|
228
|
+
elem.focus({
|
|
224
229
|
preventScroll: true
|
|
225
230
|
});
|
|
231
|
+
return new Promise(resolve => {
|
|
232
|
+
setTimeout(() => {
|
|
233
|
+
elem === null || elem === void 0 ? void 0 : elem.removeAttribute('data-autofocus');
|
|
234
|
+
resolve();
|
|
235
|
+
}, parseFloat(String(animation_duration)) / 3);
|
|
236
|
+
});
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
if ((_this$_triggerRef = this._triggerRef) !== null && _this$_triggerRef !== void 0 && _this$_triggerRef.current) {
|
|
240
|
+
focus(this._triggerRef.current);
|
|
226
241
|
}
|
|
227
242
|
|
|
228
|
-
if ((
|
|
243
|
+
if ((open_state === 'opened' || open_state === true) && this.activeElement instanceof HTMLElement) {
|
|
229
244
|
try {
|
|
230
|
-
this.activeElement.
|
|
231
|
-
|
|
245
|
+
focus(this.activeElement).then(() => {
|
|
246
|
+
this.activeElement = null;
|
|
232
247
|
});
|
|
233
|
-
this.activeElement = null;
|
|
234
248
|
} catch (e) {}
|
|
235
249
|
}
|
|
236
250
|
|
|
@@ -280,8 +280,8 @@ class ModalContent extends _react.default.PureComponent {
|
|
|
280
280
|
focusElement.focus();
|
|
281
281
|
const noH1Elem = elem.querySelector('h1, h2, h3');
|
|
282
282
|
|
|
283
|
-
if (
|
|
284
|
-
(0, _componentHelper.warn)('
|
|
283
|
+
if ((noH1Elem === null || noH1Elem === void 0 ? void 0 : noH1Elem.tagName) !== 'H1') {
|
|
284
|
+
(0, _componentHelper.warn)('A Dialog or Drawer needs a h1 as its first element!');
|
|
285
285
|
}
|
|
286
286
|
} catch (e) {
|
|
287
287
|
(0, _componentHelper.warn)(e);
|
|
@@ -660,12 +660,13 @@ function showSelectionNotice(_ref3) {
|
|
|
660
660
|
};
|
|
661
661
|
}
|
|
662
662
|
|
|
663
|
-
let elem, content;
|
|
663
|
+
let elem, content, root;
|
|
664
664
|
|
|
665
665
|
try {
|
|
666
|
+
root = document.querySelector('.dnb-tooltip__portal, body');
|
|
666
667
|
elem = document.createElement('span');
|
|
667
668
|
elem.setAttribute('id', id);
|
|
668
|
-
elem.setAttribute('class', 'dnb-tooltip
|
|
669
|
+
elem.setAttribute('class', 'dnb-tooltip');
|
|
669
670
|
elem.setAttribute('role', 'tooltip');
|
|
670
671
|
const arrow = document.createElement('span');
|
|
671
672
|
arrow.setAttribute('class', 'dnb-tooltip__arrow dnb-tooltip__arrow__position--top');
|
|
@@ -681,7 +682,7 @@ function showSelectionNotice(_ref3) {
|
|
|
681
682
|
return new class SelectionFx {
|
|
682
683
|
remove() {
|
|
683
684
|
try {
|
|
684
|
-
|
|
685
|
+
root.removeChild(elem);
|
|
685
686
|
elem = null;
|
|
686
687
|
content = null;
|
|
687
688
|
} catch (e) {}
|
|
@@ -697,7 +698,7 @@ function showSelectionNotice(_ref3) {
|
|
|
697
698
|
let pE = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (0, _helpers.getSelectedElement)();
|
|
698
699
|
|
|
699
700
|
try {
|
|
700
|
-
|
|
701
|
+
root.appendChild(elem);
|
|
701
702
|
const top = (0, _helpers.getOffsetTop)(pE);
|
|
702
703
|
const left = (0, _helpers.getOffsetLeft)(pE);
|
|
703
704
|
content.innerHTML = String(label) + (pE instanceof HTMLElement ? `<span class="dnb-sr-only">: ${(pE && pE.querySelector('.dnb-number-format__selection') || pE).innerHTML}</span>` : '');
|
|
@@ -31,7 +31,7 @@ export interface ProgressIndicatorProps
|
|
|
31
31
|
no_animation?: boolean;
|
|
32
32
|
|
|
33
33
|
/**
|
|
34
|
-
* Defines the size, like `
|
|
34
|
+
* Defines the size, like `small`, `default`, `medium` or `large`. Defaults to `default`.
|
|
35
35
|
*/
|
|
36
36
|
size?: ProgressIndicatorSize;
|
|
37
37
|
|
|
@@ -3,7 +3,7 @@ export type ProgressIndicatorCircularProgress = string | number;
|
|
|
3
3
|
export interface ProgressIndicatorCircularProps
|
|
4
4
|
extends React.HTMLProps<HTMLElement> {
|
|
5
5
|
/**
|
|
6
|
-
* Defines the size, like `
|
|
6
|
+
* Defines the size, like `small`, `default`, `medium` or `large`. Defaults to `default`.
|
|
7
7
|
*/
|
|
8
8
|
size?: string;
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@ export type ProgressIndicatorLinearProgress = string | number;
|
|
|
3
3
|
export interface ProgressIndicatorLinearProps
|
|
4
4
|
extends React.HTMLProps<HTMLElement> {
|
|
5
5
|
/**
|
|
6
|
-
* Defines the size, like `
|
|
6
|
+
* Defines the size, like `small`, `default`, `medium` or `large`. Defaults to `default`.
|
|
7
7
|
*/
|
|
8
8
|
size?: string;
|
|
9
9
|
|
|
@@ -4,6 +4,7 @@ import type {
|
|
|
4
4
|
FormStatusState,
|
|
5
5
|
FormStatusText
|
|
6
6
|
} from '../FormStatus';
|
|
7
|
+
import type { GlobalStatusConfigObject } from '../GlobalStatus';
|
|
7
8
|
import type { SkeletonShow } from '../Skeleton';
|
|
8
9
|
import type { SpacingProps } from '../space/types';
|
|
9
10
|
import RadioGroup from './RadioGroup';
|
|
@@ -72,9 +73,9 @@ export interface RadioProps
|
|
|
72
73
|
status_no_animation?: RadioStatusNoAnimation;
|
|
73
74
|
|
|
74
75
|
/**
|
|
75
|
-
* The
|
|
76
|
+
* The <a href="/uilib/components/global-status/properties/#configuration-object">configuration</a> used for the target <a href="/uilib/components/global-status">GlobalStatus</a>.
|
|
76
77
|
*/
|
|
77
|
-
|
|
78
|
+
globalStatus?: GlobalStatusConfigObject;
|
|
78
79
|
suffix?: RadioSuffix;
|
|
79
80
|
|
|
80
81
|
/**
|
|
@@ -89,7 +90,7 @@ export interface RadioProps
|
|
|
89
90
|
children?: RadioChildren;
|
|
90
91
|
|
|
91
92
|
/**
|
|
92
|
-
* Will be called on state changes made by the user. Returns
|
|
93
|
+
* Will be called on state changes made by the user. Returns an object `{ checked, value, event }`.
|
|
93
94
|
*/
|
|
94
95
|
on_change?: (...args: any[]) => any;
|
|
95
96
|
on_state_update?: (...args: any[]) => any;
|
|
@@ -37,7 +37,7 @@ var _FormRowHelpers = require("../form-row/FormRowHelpers");
|
|
|
37
37
|
|
|
38
38
|
var _AlignmentHelper, _span, _span2;
|
|
39
39
|
|
|
40
|
-
const _excluded = ["status", "status_state", "status_props", "status_no_animation", "
|
|
40
|
+
const _excluded = ["status", "status_state", "status_props", "status_no_animation", "globalStatus", "suffix", "element", "label", "label_sr_only", "label_position", "size", "readOnly", "skeleton", "className", "class", "id", "group", "value", "checked", "disabled", "children", "on_change", "on_state_update"];
|
|
41
41
|
|
|
42
42
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
43
43
|
|
|
@@ -232,7 +232,7 @@ class Radio extends _react.default.PureComponent {
|
|
|
232
232
|
status_state,
|
|
233
233
|
status_props,
|
|
234
234
|
status_no_animation,
|
|
235
|
-
|
|
235
|
+
globalStatus,
|
|
236
236
|
suffix,
|
|
237
237
|
element,
|
|
238
238
|
label,
|
|
@@ -322,7 +322,7 @@ class Radio extends _react.default.PureComponent {
|
|
|
322
322
|
}, _AlignmentHelper || (_AlignmentHelper = _react.default.createElement(_AlignmentHelper2.default, null)), _react.default.createElement(_FormStatus.default, _extends({
|
|
323
323
|
show: showStatus,
|
|
324
324
|
id: id + '-form-status',
|
|
325
|
-
|
|
325
|
+
globalStatus: globalStatus,
|
|
326
326
|
label: label,
|
|
327
327
|
text_id: id + '-status',
|
|
328
328
|
width_selector: id + ', ' + id + '-label',
|
|
@@ -385,7 +385,7 @@ _defineProperty(Radio, "defaultProps", {
|
|
|
385
385
|
status_state: 'error',
|
|
386
386
|
status_props: null,
|
|
387
387
|
status_no_animation: null,
|
|
388
|
-
|
|
388
|
+
globalStatus: null,
|
|
389
389
|
suffix: null,
|
|
390
390
|
value: '',
|
|
391
391
|
attributes: null,
|
|
@@ -416,7 +416,10 @@ process.env.NODE_ENV !== "production" ? Radio.propTypes = _objectSpread(_objectS
|
|
|
416
416
|
status_state: _propTypes.default.string,
|
|
417
417
|
status_props: _propTypes.default.object,
|
|
418
418
|
status_no_animation: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.bool]),
|
|
419
|
-
|
|
419
|
+
globalStatus: _propTypes.default.shape({
|
|
420
|
+
id: _propTypes.default.string,
|
|
421
|
+
message: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.node])
|
|
422
|
+
}),
|
|
420
423
|
suffix: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.func, _propTypes.default.node]),
|
|
421
424
|
value: _propTypes.default.string,
|
|
422
425
|
attributes: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.object]),
|
|
@@ -7,6 +7,7 @@ import type {
|
|
|
7
7
|
import type { FormLabelLabelDirection, FormLabelText } from '../FormLabel';
|
|
8
8
|
import type { SkeletonShow } from '../Skeleton';
|
|
9
9
|
import type { SpacingProps } from '../space/types';
|
|
10
|
+
import type { GlobalStatusConfigObject } from '../GlobalStatus';
|
|
10
11
|
export type RadioGroupLabelPosition = 'left' | 'right';
|
|
11
12
|
export type RadioGroupSize = 'default' | 'medium' | 'large';
|
|
12
13
|
export type RadioGroupSuffix =
|
|
@@ -66,9 +67,9 @@ export interface RadioGroupProps
|
|
|
66
67
|
status_no_animation?: boolean;
|
|
67
68
|
|
|
68
69
|
/**
|
|
69
|
-
* The
|
|
70
|
+
* The <a href="/uilib/components/global-status/properties/#configuration-object">configuration</a> used for the target <a href="/uilib/components/global-status">GlobalStatus</a>.
|
|
70
71
|
*/
|
|
71
|
-
|
|
72
|
+
globalStatus?: GlobalStatusConfigObject;
|
|
72
73
|
suffix?: RadioGroupSuffix;
|
|
73
74
|
layout_direction?: RadioGroupLayoutDirection;
|
|
74
75
|
vertical?: boolean;
|
|
@@ -83,7 +84,7 @@ export interface RadioGroupProps
|
|
|
83
84
|
children?: RadioGroupChildren;
|
|
84
85
|
|
|
85
86
|
/**
|
|
86
|
-
* Will be called on state changes made by the user. Returns
|
|
87
|
+
* Will be called on state changes made by the user. Returns an object `{ checked, value, event }`.
|
|
87
88
|
*/
|
|
88
89
|
on_change?: (...args: any[]) => any;
|
|
89
90
|
}
|
|
@@ -31,7 +31,7 @@ var _RadioGroupContext = _interopRequireDefault(require("./RadioGroupContext"));
|
|
|
31
31
|
|
|
32
32
|
var _AlignmentHelper;
|
|
33
33
|
|
|
34
|
-
const _excluded = ["status", "status_state", "status_props", "status_no_animation", "
|
|
34
|
+
const _excluded = ["status", "status_state", "status_props", "status_no_animation", "globalStatus", "suffix", "label", "label_direction", "label_sr_only", "label_position", "vertical", "layout_direction", "no_fieldset", "size", "disabled", "skeleton", "className", "class", "id", "name", "value", "children", "on_change"];
|
|
35
35
|
|
|
36
36
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
37
37
|
|
|
@@ -97,7 +97,7 @@ class RadioGroup extends _react.default.PureComponent {
|
|
|
97
97
|
status_state,
|
|
98
98
|
status_props,
|
|
99
99
|
status_no_animation,
|
|
100
|
-
|
|
100
|
+
globalStatus,
|
|
101
101
|
suffix,
|
|
102
102
|
label,
|
|
103
103
|
label_direction,
|
|
@@ -173,7 +173,7 @@ class RadioGroup extends _react.default.PureComponent {
|
|
|
173
173
|
}, suffix), _react.default.createElement(_FormStatus.default, _extends({
|
|
174
174
|
show: showStatus,
|
|
175
175
|
id: id + '-form-status',
|
|
176
|
-
|
|
176
|
+
globalStatus: globalStatus,
|
|
177
177
|
label: label,
|
|
178
178
|
text: status,
|
|
179
179
|
state: status_state,
|
|
@@ -206,7 +206,7 @@ _defineProperty(RadioGroup, "defaultProps", {
|
|
|
206
206
|
status_state: 'error',
|
|
207
207
|
status_props: null,
|
|
208
208
|
status_no_animation: null,
|
|
209
|
-
|
|
209
|
+
globalStatus: null,
|
|
210
210
|
suffix: null,
|
|
211
211
|
vertical: null,
|
|
212
212
|
layout_direction: 'row',
|
|
@@ -236,7 +236,10 @@ process.env.NODE_ENV !== "production" ? RadioGroup.propTypes = _objectSpread(_ob
|
|
|
236
236
|
status_state: _propTypes.default.string,
|
|
237
237
|
status_props: _propTypes.default.object,
|
|
238
238
|
status_no_animation: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.bool]),
|
|
239
|
-
|
|
239
|
+
globalStatus: _propTypes.default.shape({
|
|
240
|
+
id: _propTypes.default.string,
|
|
241
|
+
message: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.node])
|
|
242
|
+
}),
|
|
240
243
|
suffix: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.func, _propTypes.default.node]),
|
|
241
244
|
layout_direction: _propTypes.default.oneOf(['column', 'row']),
|
|
242
245
|
vertical: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.bool]),
|
|
@@ -61,7 +61,7 @@ function SliderInstance() {
|
|
|
61
61
|
statusProps,
|
|
62
62
|
statusState,
|
|
63
63
|
statusNoAnimation,
|
|
64
|
-
|
|
64
|
+
globalStatus,
|
|
65
65
|
stretch,
|
|
66
66
|
skeleton,
|
|
67
67
|
disabled,
|
|
@@ -85,8 +85,7 @@ function SliderInstance() {
|
|
|
85
85
|
}, _AlignmentHelper || (_AlignmentHelper = _react.default.createElement(_AlignmentHelper2.default, null)), _react.default.createElement(_FormStatus.default, _extends({
|
|
86
86
|
show: showStatus,
|
|
87
87
|
id: id + '-form-status',
|
|
88
|
-
|
|
89
|
-
label: label,
|
|
88
|
+
globalStatus: globalStatus,
|
|
90
89
|
text_id: id + '-status',
|
|
91
90
|
text: status,
|
|
92
91
|
state: statusState,
|
|
@@ -18,7 +18,7 @@ var _SliderHelpers = require("./SliderHelpers");
|
|
|
18
18
|
|
|
19
19
|
var _withSnakeCaseProps = require("../../shared/helpers/withSnakeCaseProps");
|
|
20
20
|
|
|
21
|
-
const _excluded = ["step", "label", "labelDirection", "labelSrOnly", "status", "statusState", "statusProps", "statusNoAnimation", "
|
|
21
|
+
const _excluded = ["step", "label", "labelDirection", "labelSrOnly", "status", "statusState", "statusProps", "statusNoAnimation", "globalStatus", "stretch", "suffix", "thumbTitle", "subtractTitle", "addTitle", "hideButtons", "multiThumbBehavior", "numberFormat", "tooltip", "alwaysShowTooltip", "skeleton", "max", "min", "disabled", "className", "id", "onChange", "onDragStart", "onDragEnd", "vertical", "reverse", "value", "children"];
|
|
22
22
|
|
|
23
23
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
24
24
|
|
|
@@ -64,7 +64,7 @@ function SliderProvider(localProps) {
|
|
|
64
64
|
statusState,
|
|
65
65
|
statusProps,
|
|
66
66
|
statusNoAnimation,
|
|
67
|
-
|
|
67
|
+
globalStatus,
|
|
68
68
|
stretch,
|
|
69
69
|
suffix,
|
|
70
70
|
thumbTitle: title,
|
|
@@ -5,6 +5,7 @@ import type { formatReturnType, formatOptionParams } from '../number-format/Numb
|
|
|
5
5
|
import { IncludeSnakeCase } from '../../shared/helpers/withSnakeCaseProps';
|
|
6
6
|
import type { SpacingProps } from '../../shared/types';
|
|
7
7
|
import type { SkeletonShow } from '../Skeleton';
|
|
8
|
+
import type { GlobalStatusConfigObject } from '../GlobalStatus';
|
|
8
9
|
export declare type ValueTypes = number | Array<number>;
|
|
9
10
|
export declare type NumberFormatTypes = formatOptionParams | ((value: number) => unknown);
|
|
10
11
|
export declare type onChangeEventProps = {
|
|
@@ -28,7 +29,7 @@ export declare type SliderProps = IncludeSnakeCase<{
|
|
|
28
29
|
statusProps?: Record<string, unknown>;
|
|
29
30
|
statusNoAnimation?: boolean;
|
|
30
31
|
/** the `status_id` used for the target [GlobalStatus](/uilib/components/global-status). */
|
|
31
|
-
|
|
32
|
+
globalStatus?: GlobalStatusConfigObject;
|
|
32
33
|
/** text describing the content of the Slider more than the label. You can also send in a React component, so it gets wrapped inside the Slider component. */
|
|
33
34
|
suffix?: SuffixChildren;
|
|
34
35
|
/** give the slider thumb button a title for accessibility reasons. Defaults to `null`. */
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { FormStatusState, FormStatusText } from '../FormStatus';
|
|
3
|
+
import type { GlobalStatusConfigObject } from '../GlobalStatus';
|
|
3
4
|
import type { SkeletonShow } from '../Skeleton';
|
|
4
5
|
import type { SpacingProps } from '../space/types';
|
|
5
6
|
export type SwitchLabel =
|
|
@@ -65,9 +66,9 @@ export interface SwitchProps
|
|
|
65
66
|
status_props?: Record<string, unknown>;
|
|
66
67
|
|
|
67
68
|
/**
|
|
68
|
-
* The
|
|
69
|
+
* The <a href="/uilib/components/global-status/properties/#configuration-object">configuration</a> used for the target <a href="/uilib/components/global-status">GlobalStatus</a>.
|
|
69
70
|
*/
|
|
70
|
-
|
|
71
|
+
globalStatus?: GlobalStatusConfigObject;
|
|
71
72
|
status_no_animation?: boolean;
|
|
72
73
|
|
|
73
74
|
/**
|
|
@@ -33,7 +33,7 @@ var _FormStatus = _interopRequireDefault(require("../form-status/FormStatus"));
|
|
|
33
33
|
|
|
34
34
|
var _AlignmentHelper, _span;
|
|
35
35
|
|
|
36
|
-
const _excluded = ["value", "size", "status", "status_state", "status_props", "
|
|
36
|
+
const _excluded = ["value", "size", "status", "status_state", "status_props", "globalStatus", "status_no_animation", "suffix", "label", "label_position", "label_sr_only", "title", "disabled", "readOnly", "skeleton", "className", "class", "id", "checked", "children", "on_change", "on_state_update"];
|
|
37
37
|
|
|
38
38
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
39
39
|
|
|
@@ -143,7 +143,7 @@ class Switch extends _react.default.PureComponent {
|
|
|
143
143
|
status,
|
|
144
144
|
status_state,
|
|
145
145
|
status_props,
|
|
146
|
-
|
|
146
|
+
globalStatus,
|
|
147
147
|
status_no_animation,
|
|
148
148
|
suffix,
|
|
149
149
|
label,
|
|
@@ -205,7 +205,7 @@ class Switch extends _react.default.PureComponent {
|
|
|
205
205
|
}, _AlignmentHelper || (_AlignmentHelper = _react.default.createElement(_AlignmentHelper2.default, null)), _react.default.createElement(_FormStatus.default, _extends({
|
|
206
206
|
show: showStatus,
|
|
207
207
|
id: id + '-form-status',
|
|
208
|
-
|
|
208
|
+
globalStatus: globalStatus,
|
|
209
209
|
label: label,
|
|
210
210
|
text_id: id + '-status',
|
|
211
211
|
width_selector: id + ', ' + id + '-label',
|
|
@@ -267,7 +267,7 @@ _defineProperty(Switch, "defaultProps", {
|
|
|
267
267
|
status: null,
|
|
268
268
|
status_state: 'error',
|
|
269
269
|
status_props: null,
|
|
270
|
-
|
|
270
|
+
globalStatus: null,
|
|
271
271
|
status_no_animation: null,
|
|
272
272
|
suffix: null,
|
|
273
273
|
value: null,
|
|
@@ -296,7 +296,10 @@ process.env.NODE_ENV !== "production" ? Switch.propTypes = _objectSpread(_object
|
|
|
296
296
|
status: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.bool, _propTypes.default.func, _propTypes.default.node]),
|
|
297
297
|
status_state: _propTypes.default.string,
|
|
298
298
|
status_props: _propTypes.default.object,
|
|
299
|
-
|
|
299
|
+
globalStatus: _propTypes.default.shape({
|
|
300
|
+
id: _propTypes.default.string,
|
|
301
|
+
message: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.node])
|
|
302
|
+
}),
|
|
300
303
|
status_no_animation: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.bool]),
|
|
301
304
|
suffix: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.func, _propTypes.default.node]),
|
|
302
305
|
value: _propTypes.default.string,
|
|
@@ -7,6 +7,7 @@ import type {
|
|
|
7
7
|
import type { SkeletonShow } from '../Skeleton';
|
|
8
8
|
import type { SpacingProps } from '../space/types';
|
|
9
9
|
import type { FormLabelLabelDirection, FormLabelText } from '../FormLabel';
|
|
10
|
+
import type { GlobalStatusConfigObject } from '../GlobalStatus';
|
|
10
11
|
export type TextareaSuffix =
|
|
11
12
|
| string
|
|
12
13
|
| ((...args: any[]) => any)
|
|
@@ -69,9 +70,9 @@ export interface TextareaProps
|
|
|
69
70
|
status_no_animation?: boolean;
|
|
70
71
|
|
|
71
72
|
/**
|
|
72
|
-
* The
|
|
73
|
+
* The <a href="/uilib/components/global-status/properties/#configuration-object">configuration</a> used for the target <a href="/uilib/components/global-status">GlobalStatus</a>.
|
|
73
74
|
*/
|
|
74
|
-
|
|
75
|
+
globalStatus?: GlobalStatusConfigObject;
|
|
75
76
|
|
|
76
77
|
/**
|
|
77
78
|
* Text describing the content of the Textarea more than the label. You can also send in a React component, so it gets wrapped inside the Textarea component.
|
|
@@ -31,7 +31,7 @@ var _Suffix = _interopRequireDefault(require("../../shared/helpers/Suffix"));
|
|
|
31
31
|
|
|
32
32
|
var _AlignmentHelper, _span;
|
|
33
33
|
|
|
34
|
-
const _excluded = ["label", "label_direction", "label_sr_only", "status", "status_state", "status_props", "status_no_animation", "
|
|
34
|
+
const _excluded = ["label", "label_direction", "label_sr_only", "status", "status_state", "status_props", "status_no_animation", "globalStatus", "suffix", "disabled", "skeleton", "stretch", "placeholder", "align", "textarea_class", "readOnly", "textarea_attributes", "class", "className", "autoresize", "autoresize_max_rows", "id", "children", "value", "textarea_element"];
|
|
35
35
|
|
|
36
36
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
37
37
|
|
|
@@ -284,7 +284,7 @@ class Textarea extends _react.default.PureComponent {
|
|
|
284
284
|
status_state,
|
|
285
285
|
status_props,
|
|
286
286
|
status_no_animation,
|
|
287
|
-
|
|
287
|
+
globalStatus,
|
|
288
288
|
suffix,
|
|
289
289
|
disabled,
|
|
290
290
|
skeleton,
|
|
@@ -379,7 +379,7 @@ class Textarea extends _react.default.PureComponent {
|
|
|
379
379
|
}), _react.default.createElement("span", innerParams, _AlignmentHelper || (_AlignmentHelper = _react.default.createElement(_AlignmentHelper2.default, null)), _react.default.createElement(_FormStatus.default, _extends({
|
|
380
380
|
show: showStatus,
|
|
381
381
|
id: id + '-form-status',
|
|
382
|
-
|
|
382
|
+
globalStatus: globalStatus,
|
|
383
383
|
label: label,
|
|
384
384
|
text_id: id + '-status',
|
|
385
385
|
text: status,
|
|
@@ -420,7 +420,7 @@ _defineProperty(Textarea, "defaultProps", {
|
|
|
420
420
|
status_state: 'error',
|
|
421
421
|
status_props: null,
|
|
422
422
|
status_no_animation: null,
|
|
423
|
-
|
|
423
|
+
globalStatus: null,
|
|
424
424
|
suffix: null,
|
|
425
425
|
placeholder: null,
|
|
426
426
|
align: null,
|
|
@@ -457,7 +457,10 @@ process.env.NODE_ENV !== "production" ? Textarea.propTypes = _objectSpread(_obje
|
|
|
457
457
|
status_state: _propTypes.default.string,
|
|
458
458
|
status_props: _propTypes.default.object,
|
|
459
459
|
status_no_animation: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.bool]),
|
|
460
|
-
|
|
460
|
+
globalStatus: _propTypes.default.shape({
|
|
461
|
+
id: _propTypes.default.string,
|
|
462
|
+
message: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.node])
|
|
463
|
+
}),
|
|
461
464
|
suffix: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.func, _propTypes.default.node]),
|
|
462
465
|
placeholder: _propTypes.default.string,
|
|
463
466
|
align: _propTypes.default.oneOf(['left', 'right']),
|
|
@@ -15,11 +15,11 @@ export declare type TimelineItemProps = {
|
|
|
15
15
|
/**
|
|
16
16
|
* Text displaying the title of the timeline item.
|
|
17
17
|
*/
|
|
18
|
-
title: React.ReactNode
|
|
18
|
+
title: React.ReactNode;
|
|
19
19
|
/**
|
|
20
20
|
* Text displaying the subtitle of the timeline item.
|
|
21
21
|
*/
|
|
22
|
-
subtitle?: React.ReactNode | React.ReactNode[]
|
|
22
|
+
subtitle?: React.ReactNode | React.ReactNode[];
|
|
23
23
|
/**
|
|
24
24
|
* Text displaying info message of the timeline item.
|
|
25
25
|
*/
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { ButtonIconPosition } from '../
|
|
2
|
+
import type { ButtonIconPosition } from '../Button';
|
|
3
3
|
import type { FormLabelLabelDirection, FormLabelText } from '../FormLabel';
|
|
4
4
|
import type {
|
|
5
5
|
FormStatusProps,
|
|
6
6
|
FormStatusState,
|
|
7
7
|
FormStatusText
|
|
8
8
|
} from '../FormStatus';
|
|
9
|
+
import type { GlobalStatusConfigObject } from '../GlobalStatus';
|
|
9
10
|
import type { IconIcon, IconSize } from '../Icon';
|
|
10
11
|
import type { SkeletonShow } from '../Skeleton';
|
|
11
12
|
import type { SpacingProps } from '../space/types';
|
|
@@ -73,9 +74,9 @@ export interface ToggleButtonProps
|
|
|
73
74
|
status_no_animation?: boolean;
|
|
74
75
|
|
|
75
76
|
/**
|
|
76
|
-
* The
|
|
77
|
+
* The <a href="/uilib/components/global-status/properties/#configuration-object">configuration</a> used for the target <a href="/uilib/components/global-status">GlobalStatus</a>.
|
|
77
78
|
*/
|
|
78
|
-
|
|
79
|
+
globalStatus?: GlobalStatusConfigObject;
|
|
79
80
|
|
|
80
81
|
/**
|
|
81
82
|
* Text describing the content of the ToggleButton more than the label. You can also send in a React component, so it gets wrapped inside the ToggleButton component.
|
|
@@ -41,7 +41,7 @@ var _Suffix = _interopRequireDefault(require("../../shared/helpers/Suffix"));
|
|
|
41
41
|
|
|
42
42
|
var _AlignmentHelper;
|
|
43
43
|
|
|
44
|
-
const _excluded = ["status", "status_state", "status_props", "status_no_animation", "
|
|
44
|
+
const _excluded = ["status", "status_state", "status_props", "status_no_animation", "globalStatus", "suffix", "label", "label_direction", "label_sr_only", "text", "title", "readOnly", "className", "class", "disabled", "skeleton", "variant", "left_component", "icon", "icon_size", "icon_position", "value", "id", "checked", "children", "on_change", "on_state_update"];
|
|
45
45
|
|
|
46
46
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
47
47
|
|
|
@@ -201,7 +201,7 @@ class ToggleButton extends _react.default.PureComponent {
|
|
|
201
201
|
status_state,
|
|
202
202
|
status_props,
|
|
203
203
|
status_no_animation,
|
|
204
|
-
|
|
204
|
+
globalStatus,
|
|
205
205
|
suffix,
|
|
206
206
|
label,
|
|
207
207
|
label_direction,
|
|
@@ -326,7 +326,7 @@ class ToggleButton extends _react.default.PureComponent {
|
|
|
326
326
|
}, _react.default.createElement(_FormStatus.default, _extends({
|
|
327
327
|
show: showStatus,
|
|
328
328
|
id: id + '-form-status',
|
|
329
|
-
|
|
329
|
+
globalStatus: globalStatus,
|
|
330
330
|
label: label,
|
|
331
331
|
text_id: id + '-status',
|
|
332
332
|
text: status,
|
|
@@ -378,7 +378,7 @@ _defineProperty(ToggleButton, "defaultProps", {
|
|
|
378
378
|
status_state: 'error',
|
|
379
379
|
status_props: null,
|
|
380
380
|
status_no_animation: null,
|
|
381
|
-
|
|
381
|
+
globalStatus: null,
|
|
382
382
|
suffix: null,
|
|
383
383
|
value: '',
|
|
384
384
|
icon: null,
|
|
@@ -411,7 +411,10 @@ process.env.NODE_ENV !== "production" ? ToggleButton.propTypes = _objectSpread(_
|
|
|
411
411
|
status_state: _propTypes.default.string,
|
|
412
412
|
status_props: _propTypes.default.object,
|
|
413
413
|
status_no_animation: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.bool]),
|
|
414
|
-
|
|
414
|
+
globalStatus: _propTypes.default.shape({
|
|
415
|
+
id: _propTypes.default.string,
|
|
416
|
+
message: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.node])
|
|
417
|
+
}),
|
|
415
418
|
suffix: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.func, _propTypes.default.node]),
|
|
416
419
|
value: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number, _propTypes.default.object, _propTypes.default.array]),
|
|
417
420
|
icon: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.node, _propTypes.default.func]),
|