@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
|
@@ -5,7 +5,7 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
|
5
5
|
var _AlignmentHelper;
|
|
6
6
|
|
|
7
7
|
const _excluded = ["hidePicker"],
|
|
8
|
-
_excluded2 = ["label", "title", "label_direction", "label_sr_only", "only_month", "hide_last_week", "disable_autofocus", "enable_keyboard_nav", "hide_navigation_buttons", "show_input", "range", "first_day", "reset_date", "locale", "link", "sync", "input_element", "addon_element", "shortcuts", "disabled", "stretch", "skeleton", "size", "status", "status_state", "status_props", "status_no_animation", "
|
|
8
|
+
_excluded2 = ["label", "title", "label_direction", "label_sr_only", "only_month", "hide_last_week", "disable_autofocus", "enable_keyboard_nav", "hide_navigation_buttons", "show_input", "range", "first_day", "reset_date", "locale", "link", "sync", "input_element", "addon_element", "shortcuts", "disabled", "stretch", "skeleton", "size", "status", "status_state", "status_props", "status_no_animation", "globalStatus", "suffix", "mask_order", "mask_placeholder", "align_picker", "submit_button_text", "cancel_button_text", "reset_button_text", "hide_navigation", "return_format", "date_format", "hide_days", "month", "date", "start_date", "end_date", "min_date", "max_date", "correct_invalid_date", "opened", "direction", "id", "className", "class", "show_submit_button", "show_cancel_button", "show_reset_button"];
|
|
9
9
|
|
|
10
10
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
11
11
|
|
|
@@ -93,6 +93,7 @@ export default class DatePicker extends React.PureComponent {
|
|
|
93
93
|
});
|
|
94
94
|
|
|
95
95
|
_defineProperty(this, "onResetHandler", args => {
|
|
96
|
+
this.hidePicker(args);
|
|
96
97
|
dispatchCustomElementEvent(this, 'on_reset', this.getReturnObject(args));
|
|
97
98
|
});
|
|
98
99
|
|
|
@@ -246,7 +247,7 @@ export default class DatePicker extends React.PureComponent {
|
|
|
246
247
|
status_state,
|
|
247
248
|
status_props,
|
|
248
249
|
status_no_animation,
|
|
249
|
-
|
|
250
|
+
globalStatus,
|
|
250
251
|
suffix,
|
|
251
252
|
mask_order,
|
|
252
253
|
mask_placeholder,
|
|
@@ -336,7 +337,7 @@ export default class DatePicker extends React.PureComponent {
|
|
|
336
337
|
}, pickerParams), _AlignmentHelper || (_AlignmentHelper = React.createElement(AlignmentHelper, null)), React.createElement(FormStatus, _extends({
|
|
337
338
|
show: showStatus,
|
|
338
339
|
id: id + '-form-status',
|
|
339
|
-
|
|
340
|
+
globalStatus: globalStatus,
|
|
340
341
|
label: label,
|
|
341
342
|
text_id: id + '-status',
|
|
342
343
|
width_selector: id + '-shell',
|
|
@@ -469,7 +470,7 @@ _defineProperty(DatePicker, "defaultProps", {
|
|
|
469
470
|
status_state: 'error',
|
|
470
471
|
status_props: null,
|
|
471
472
|
status_no_animation: null,
|
|
472
|
-
|
|
473
|
+
globalStatus: null,
|
|
473
474
|
suffix: null,
|
|
474
475
|
opened: false,
|
|
475
476
|
prevent_close: null,
|
|
@@ -540,7 +541,10 @@ process.env.NODE_ENV !== "production" ? DatePicker.propTypes = _objectSpread(_ob
|
|
|
540
541
|
status_state: PropTypes.string,
|
|
541
542
|
status_props: PropTypes.object,
|
|
542
543
|
status_no_animation: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
|
|
543
|
-
|
|
544
|
+
globalStatus: PropTypes.shape({
|
|
545
|
+
id: PropTypes.string,
|
|
546
|
+
message: PropTypes.oneOfType([PropTypes.string, PropTypes.node])
|
|
547
|
+
}),
|
|
544
548
|
suffix: PropTypes.oneOfType([PropTypes.string, PropTypes.func, PropTypes.node]),
|
|
545
549
|
opened: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
|
|
546
550
|
prevent_close: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
|
|
@@ -193,12 +193,12 @@
|
|
|
193
193
|
.dnb-dialog__actions {
|
|
194
194
|
padding-top: 1.5rem;
|
|
195
195
|
display: flex;
|
|
196
|
+
flex-flow: row wrap;
|
|
196
197
|
justify-content: center;
|
|
198
|
+
grid-gap: 1rem;
|
|
199
|
+
gap: 1rem;
|
|
197
200
|
width: 100%;
|
|
198
201
|
}
|
|
199
|
-
.dnb-dialog__actions > :not(:last-child) {
|
|
200
|
-
margin-right: 1rem;
|
|
201
|
-
}
|
|
202
202
|
.dnb-dialog--information .dnb-dialog__actions {
|
|
203
203
|
justify-content: left;
|
|
204
204
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@keyframes show-modal{0%{opacity:.1;transform:translate3d(0,-1rem,0)}to{opacity:1;transform:translateZ(0)}}@keyframes hide-modal{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(0,1rem,0)}}@keyframes show-drawer{to{opacity:1;transform:translateZ(0)}}@keyframes hide-drawer-left{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(-20rem,0,0)}}@keyframes hide-drawer-top{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(0,-20rem,0)}}@keyframes hide-drawer-bottom{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(0,20rem,0)}}@keyframes hide-drawer-right{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(20rem,0,0)}}@keyframes show-modal-overlay{0%{opacity:0}to{opacity:1}}@keyframes hide-modal-overlay{0%{opacity:1}to{opacity:0}}.dnb-dialog{--dialog-min-width:320px;--dialog-avg-width:60vw;--dialog-max-width:49rem;--dialog-confirm-max-width:40rem;--dialog-spacing:2rem;--dialog-spacing-minus:-2rem;-webkit-tap-highlight-color:rgba(0,0,0,0);border:none;border-radius:.5rem;box-shadow:var(--shadow-default);max-height:100vh;overflow:hidden;position:relative;-webkit-user-select:text;user-select:text}.dnb-dialog .dnb-scroll-view{max-height:90vh}.dnb-dialog__inner{display:flex;flex-direction:column;height:100%;position:relative;width:100%}.dnb-dialog--information{max-width:var(--dialog-max-width);min-width:var(--dialog-min-width);width:var(--dialog-avg-width)}.dnb-dialog--confirmation{margin-left:1rem;margin-right:1rem;max-width:var(--dialog-confirm-max-width)}@media screen and (max-width:40em){.dnb-dialog--auto-fullscreen{border-radius:0;box-shadow:none;height:100vh;margin:auto 0;max-height:100vh;max-width:100%;width:100%}}.dnb-dialog--fullscreen{border-radius:0;box-shadow:none;height:100vh;margin:auto 0;max-height:100vh;max-width:100%;width:100%}.dnb-dialog--spacing.dnb-dialog--information .dnb-dialog__content{padding-bottom:calc(var(--dialog-spacing)*2)}.dnb-dialog--spacing.dnb-dialog--information .dnb-dialog__inner{padding-left:calc(var(--dialog-spacing)*1.75);padding-right:calc(var(--dialog-spacing)*1.75)}@media screen and (max-width:72em){.dnb-dialog--spacing.dnb-dialog--information .dnb-dialog__inner{padding-left:calc(var(--dialog-spacing));padding-right:calc(var(--dialog-spacing))}}@media screen and (max-width:40em){.dnb-dialog--spacing.dnb-dialog--information .dnb-dialog__inner{padding-left:calc(var(--dialog-spacing)/2);padding-right:calc(var(--dialog-spacing)/2)}}.dnb-dialog--spacing.dnb-dialog--information .dnb-dialog__navigation.dnb-section{margin-bottom:calc(var(--dialog-spacing)/2);margin-top:calc(var(--dialog-spacing))}@media screen and (max-width:60em){.dnb-dialog--spacing.dnb-dialog--information .dnb-dialog__navigation.dnb-section{margin-top:calc(var(--dialog-spacing)/2)}}.dnb-dialog--spacing.dnb-dialog--confirmation .dnb-dialog__inner{padding:calc(var(--dialog-spacing))}.dnb-dialog__align--centered .dnb-dialog__inner{align-items:center;justify-content:center}.dnb-dialog__align--centered.dnb-dialog--confirmation .dnb-dialog__content,.dnb-dialog__align--centered .dnb-dialog__title{text-align:center}.dnb-dialog__content{position:relative;z-index:1}.dnb-dialog__actions{display:flex;justify-content:center;padding-top:1.5rem;width:100%}.dnb-
|
|
1
|
+
@keyframes show-modal{0%{opacity:.1;transform:translate3d(0,-1rem,0)}to{opacity:1;transform:translateZ(0)}}@keyframes hide-modal{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(0,1rem,0)}}@keyframes show-drawer{to{opacity:1;transform:translateZ(0)}}@keyframes hide-drawer-left{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(-20rem,0,0)}}@keyframes hide-drawer-top{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(0,-20rem,0)}}@keyframes hide-drawer-bottom{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(0,20rem,0)}}@keyframes hide-drawer-right{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(20rem,0,0)}}@keyframes show-modal-overlay{0%{opacity:0}to{opacity:1}}@keyframes hide-modal-overlay{0%{opacity:1}to{opacity:0}}.dnb-dialog{--dialog-min-width:320px;--dialog-avg-width:60vw;--dialog-max-width:49rem;--dialog-confirm-max-width:40rem;--dialog-spacing:2rem;--dialog-spacing-minus:-2rem;-webkit-tap-highlight-color:rgba(0,0,0,0);border:none;border-radius:.5rem;box-shadow:var(--shadow-default);max-height:100vh;overflow:hidden;position:relative;-webkit-user-select:text;user-select:text}.dnb-dialog .dnb-scroll-view{max-height:90vh}.dnb-dialog__inner{display:flex;flex-direction:column;height:100%;position:relative;width:100%}.dnb-dialog--information{max-width:var(--dialog-max-width);min-width:var(--dialog-min-width);width:var(--dialog-avg-width)}.dnb-dialog--confirmation{margin-left:1rem;margin-right:1rem;max-width:var(--dialog-confirm-max-width)}@media screen and (max-width:40em){.dnb-dialog--auto-fullscreen{border-radius:0;box-shadow:none;height:100vh;margin:auto 0;max-height:100vh;max-width:100%;width:100%}}.dnb-dialog--fullscreen{border-radius:0;box-shadow:none;height:100vh;margin:auto 0;max-height:100vh;max-width:100%;width:100%}.dnb-dialog--spacing.dnb-dialog--information .dnb-dialog__content{padding-bottom:calc(var(--dialog-spacing)*2)}.dnb-dialog--spacing.dnb-dialog--information .dnb-dialog__inner{padding-left:calc(var(--dialog-spacing)*1.75);padding-right:calc(var(--dialog-spacing)*1.75)}@media screen and (max-width:72em){.dnb-dialog--spacing.dnb-dialog--information .dnb-dialog__inner{padding-left:calc(var(--dialog-spacing));padding-right:calc(var(--dialog-spacing))}}@media screen and (max-width:40em){.dnb-dialog--spacing.dnb-dialog--information .dnb-dialog__inner{padding-left:calc(var(--dialog-spacing)/2);padding-right:calc(var(--dialog-spacing)/2)}}.dnb-dialog--spacing.dnb-dialog--information .dnb-dialog__navigation.dnb-section{margin-bottom:calc(var(--dialog-spacing)/2);margin-top:calc(var(--dialog-spacing))}@media screen and (max-width:60em){.dnb-dialog--spacing.dnb-dialog--information .dnb-dialog__navigation.dnb-section{margin-top:calc(var(--dialog-spacing)/2)}}.dnb-dialog--spacing.dnb-dialog--confirmation .dnb-dialog__inner{padding:calc(var(--dialog-spacing))}.dnb-dialog__align--centered .dnb-dialog__inner{align-items:center;justify-content:center}.dnb-dialog__align--centered.dnb-dialog--confirmation .dnb-dialog__content,.dnb-dialog__align--centered .dnb-dialog__title{text-align:center}.dnb-dialog__content{position:relative;z-index:1}.dnb-dialog__actions{grid-gap:1rem;display:flex;flex-flow:row wrap;gap:1rem;justify-content:center;padding-top:1.5rem;width:100%}.dnb-dialog--information .dnb-dialog__actions{justify-content:left}.dnb-dialog__align--center .dnb-dialog__content{align-items:center;text-align:center}.dnb-dialog__align--right .dnb-dialog__content{align-items:flex-end;text-align:right}.dnb-dialog__title~.dnb-dialog__content{padding-top:calc(var(--dialog-spacing)/2)}@media screen and (max-width:60em){.dnb-dialog__title{font-size:var(--font-size-large)!important;line-height:var(--line-height-medium)!important}}@media screen and (max-width:40em){.dnb-dialog__title{font-size:var(--font-size-medium)!important;line-height:var(--line-height-lead)!important}}.dnb-dialog--information .dnb-dialog__title{margin-bottom:var(--spacing-small)!important}.dnb-dialog--confirmation .dnb-dialog__title{margin-bottom:var(--spacing-x-small)!important}.dnb-dialog__navigation.dnb-section{display:flex;flex-direction:row;justify-content:space-between}html:not([data-visual-test]) .dnb-dialog{animation:show-modal var(--modal-animation-duration) ease-out}html:not([data-visual-test]) .dnb-dialog--hide{animation:hide-modal .22s ease-in-out forwards}.dnb-dialog--no-animation{animation-duration:0ms!important}@media screen and (max-width:40em){.dnb-dialog--no-animation-on-mobile{animation-delay:0ms!important;animation-duration:0ms!important}}.dnb-dialog__body{margin-bottom:calc(var(--dialog-spacing-minus)*2);padding-bottom:calc(var(--dialog-spacing)*2)}.dnb-dialog__header:after{height:600%;top:-500%}.dnb-dialog__header .dnb-modal__title,.dnb-dialog__header [class*=dnb-h--]{padding:0}.dnb-dialog__header .dnb-modal__title:not([class*=__top]),.dnb-dialog__header [class*=dnb-h--]:not([class*=__top]){margin-top:0}.dnb-dialog__header .dnb-modal__title:not([class*=__bottom]),.dnb-dialog__header [class*=dnb-h--]:not([class*=__bottom]){margin-bottom:0}.dnb-dialog--spacing .dnb-dialog__header .dnb-tabs{margin-top:3.5rem}.dnb-dialog__icon{display:flex}.dnb-dialog__icon~.dnb-dialog__header{margin-top:1.5rem}@supports (-webkit-touch-callout:none){@media (max-height:40em){.dnb-dialog .dnb-scroll-view{max-height:82vh}}}[data-visual-test].hide-page-content #___gatsby{opacity:0}
|
|
@@ -112,12 +112,10 @@
|
|
|
112
112
|
padding-top: 1.5rem;
|
|
113
113
|
|
|
114
114
|
display: flex;
|
|
115
|
+
flex-flow: row wrap;
|
|
115
116
|
justify-content: center;
|
|
117
|
+
gap: 1rem;
|
|
116
118
|
width: 100%;
|
|
117
|
-
|
|
118
|
-
> :not(:last-child) {
|
|
119
|
-
margin-right: 1rem;
|
|
120
|
-
}
|
|
121
119
|
}
|
|
122
120
|
|
|
123
121
|
&--information &__actions {
|
|
@@ -13,6 +13,7 @@ import type {
|
|
|
13
13
|
DrawerListProps,
|
|
14
14
|
DrawerListData
|
|
15
15
|
} from '../../fragments/DrawerList';
|
|
16
|
+
import type { GlobalStatusConfigObject } from '../GlobalStatus';
|
|
16
17
|
export type DropdownData = DrawerListData;
|
|
17
18
|
type DropdownTitle = string | React.ReactNode;
|
|
18
19
|
type DropdownAlignDropdown = 'left' | 'right';
|
|
@@ -78,9 +79,9 @@ export interface DropdownProps
|
|
|
78
79
|
status_no_animation?: boolean;
|
|
79
80
|
|
|
80
81
|
/**
|
|
81
|
-
* The
|
|
82
|
+
* The <a href="/uilib/components/global-status/properties/#configuration-object">configuration</a> used for the target <a href="/uilib/components/global-status">GlobalStatus</a>.
|
|
82
83
|
*/
|
|
83
|
-
|
|
84
|
+
globalStatus?: GlobalStatusConfigObject;
|
|
84
85
|
|
|
85
86
|
/**
|
|
86
87
|
* Same as `prevent_selection`, but the "selection area" (given title) will not be visible and the icon `more` (three dots) is used. Defaults to `false`.
|
|
@@ -4,7 +4,7 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
|
4
4
|
|
|
5
5
|
var _AlignmentHelper;
|
|
6
6
|
|
|
7
|
-
const _excluded = ["label", "label_direction", "label_sr_only", "icon_size", "size", "fixed_position", "enable_body_lock", "status", "status_state", "status_props", "status_no_animation", "
|
|
7
|
+
const _excluded = ["label", "label_direction", "label_sr_only", "icon_size", "size", "fixed_position", "enable_body_lock", "status", "status_state", "status_props", "status_no_animation", "globalStatus", "suffix", "scrollable", "focusable", "keep_open", "prevent_close", "no_animation", "no_scroll_animation", "triangle_position", "skip_portal", "portal_class", "trigger_element", "more_menu", "action_menu", "independent_width", "prevent_selection", "max_height", "default_value", "className", "class", "disabled", "stretch", "skeleton", "variant", "title", "icon", "align_dropdown", "icon_position", "data", "children", "direction", "id", "opened", "value"];
|
|
8
8
|
|
|
9
9
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
10
10
|
|
|
@@ -66,7 +66,7 @@ _defineProperty(Dropdown, "defaultProps", {
|
|
|
66
66
|
status_state: 'error',
|
|
67
67
|
status_props: null,
|
|
68
68
|
status_no_animation: null,
|
|
69
|
-
|
|
69
|
+
globalStatus: null,
|
|
70
70
|
suffix: null,
|
|
71
71
|
scrollable: true,
|
|
72
72
|
focusable: false,
|
|
@@ -118,7 +118,10 @@ process.env.NODE_ENV !== "production" ? Dropdown.propTypes = _objectSpread(_obje
|
|
|
118
118
|
status_state: PropTypes.string,
|
|
119
119
|
status_props: PropTypes.object,
|
|
120
120
|
status_no_animation: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
|
|
121
|
-
|
|
121
|
+
globalStatus: PropTypes.shape({
|
|
122
|
+
id: PropTypes.string,
|
|
123
|
+
message: PropTypes.oneOfType([PropTypes.string, PropTypes.node])
|
|
124
|
+
}),
|
|
122
125
|
suffix: PropTypes.oneOfType([PropTypes.string, PropTypes.func, PropTypes.node]),
|
|
123
126
|
scrollable: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
|
|
124
127
|
focusable: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
|
|
@@ -329,7 +332,7 @@ class DropdownInstance extends React.PureComponent {
|
|
|
329
332
|
status_state,
|
|
330
333
|
status_props,
|
|
331
334
|
status_no_animation,
|
|
332
|
-
|
|
335
|
+
globalStatus,
|
|
333
336
|
suffix,
|
|
334
337
|
scrollable,
|
|
335
338
|
focusable,
|
|
@@ -441,7 +444,7 @@ class DropdownInstance extends React.PureComponent {
|
|
|
441
444
|
}, _AlignmentHelper || (_AlignmentHelper = React.createElement(AlignmentHelper, null)), React.createElement(FormStatus, _extends({
|
|
442
445
|
show: showStatus,
|
|
443
446
|
id: id + '-form-status',
|
|
444
|
-
|
|
447
|
+
globalStatus: globalStatus,
|
|
445
448
|
label: label,
|
|
446
449
|
text_id: id + '-status',
|
|
447
450
|
text: status,
|
|
@@ -4,6 +4,7 @@ import type { FormLabelLabelDirection, FormLabelText } from '../FormLabel';
|
|
|
4
4
|
import type { SkeletonShow } from '../Skeleton';
|
|
5
5
|
import type { SpacingProps } from '../space/types';
|
|
6
6
|
import type { Locale } from '../../shared/Context';
|
|
7
|
+
import type { GlobalStatusConfigObject } from '../GlobalStatus';
|
|
7
8
|
export type FormRowDirection = 'vertical' | 'horizontal';
|
|
8
9
|
export type FormRowChildren =
|
|
9
10
|
| string
|
|
@@ -75,7 +76,7 @@ export interface FormRowProps
|
|
|
75
76
|
* To modify the `spacing`. Use a supported modifier from the <a href="/uilib/components/section/properties">Section component</a>. Defaults to `null`.
|
|
76
77
|
*/
|
|
77
78
|
section_spacing?: SectionSpacing;
|
|
78
|
-
|
|
79
|
+
globalStatus?: GlobalStatusConfigObject;
|
|
79
80
|
|
|
80
81
|
/**
|
|
81
82
|
* To force responsiveness on form components (like <a href="/uilib/components/input">Input</a> and their labels (<a href="/uilib/components/form-label">FormLabel</a>), set the prop to `true`. Defaults to `false`.
|
|
@@ -4,7 +4,7 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
|
4
4
|
|
|
5
5
|
var _AlignmentHelper, _span;
|
|
6
6
|
|
|
7
|
-
const _excluded = ["label_direction", "label_sr_only", "label_id", "label_class", "no_fieldset", "no_label", "locale", "direction", "vertical", "centered", "section_style", "section_spacing", "
|
|
7
|
+
const _excluded = ["label_direction", "label_sr_only", "label_id", "label_class", "no_fieldset", "no_label", "locale", "direction", "vertical", "centered", "section_style", "section_spacing", "globalStatus", "responsive", "disabled", "skeleton", "wrap", "className", "class", "skipContentWrapperIfNested", "id", "label"],
|
|
8
8
|
_excluded2 = ["useFieldset", "children", "className"];
|
|
9
9
|
|
|
10
10
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -36,7 +36,10 @@ export const formRowPropTypes = _objectSpread(_objectSpread({
|
|
|
36
36
|
centered: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
|
|
37
37
|
section_style: PropTypes.string,
|
|
38
38
|
section_spacing: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
|
|
39
|
-
|
|
39
|
+
globalStatus: PropTypes.shape({
|
|
40
|
+
id: PropTypes.string,
|
|
41
|
+
message: PropTypes.oneOfType([PropTypes.string, PropTypes.node])
|
|
42
|
+
}),
|
|
40
43
|
responsive: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
|
|
41
44
|
disabled: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
|
|
42
45
|
skeleton: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
|
|
@@ -62,7 +65,7 @@ export const formRowDefaultProps = {
|
|
|
62
65
|
centered: null,
|
|
63
66
|
section_style: null,
|
|
64
67
|
section_spacing: null,
|
|
65
|
-
|
|
68
|
+
globalStatus: null,
|
|
66
69
|
responsive: null,
|
|
67
70
|
disabled: null,
|
|
68
71
|
skeleton: null,
|
|
@@ -115,7 +118,7 @@ export default class FormRow extends React.PureComponent {
|
|
|
115
118
|
centered,
|
|
116
119
|
section_style,
|
|
117
120
|
section_spacing,
|
|
118
|
-
|
|
121
|
+
globalStatus,
|
|
119
122
|
responsive,
|
|
120
123
|
disabled,
|
|
121
124
|
skeleton,
|
|
@@ -162,7 +165,7 @@ export default class FormRow extends React.PureComponent {
|
|
|
162
165
|
},
|
|
163
166
|
itsMeAgain: true,
|
|
164
167
|
hasLabel,
|
|
165
|
-
|
|
168
|
+
globalStatus,
|
|
166
169
|
direction,
|
|
167
170
|
vertical,
|
|
168
171
|
label_direction: isTrue(vertical) ? 'vertical' : label_direction,
|
|
@@ -4,6 +4,7 @@ import type { SkeletonShow } from '../Skeleton';
|
|
|
4
4
|
import type { SpacingProps } from '../space/types';
|
|
5
5
|
import type { FormLabelLabelDirection, FormLabelText } from '../FormLabel';
|
|
6
6
|
import type { Locale } from '../../shared/Context';
|
|
7
|
+
import type { GlobalStatusConfigObject } from '../GlobalStatus';
|
|
7
8
|
export type FormSetDirection = 'vertical' | 'horizontal';
|
|
8
9
|
export type FormSetChildren =
|
|
9
10
|
| string
|
|
@@ -99,7 +100,7 @@ export interface FormSetProps
|
|
|
99
100
|
* To modify the `spacing`. Use a supported modifier from the <a href="/uilib/components/section/properties">Section component</a>. Defaults to `null`.
|
|
100
101
|
*/
|
|
101
102
|
section_spacing?: SectionSpacing;
|
|
102
|
-
|
|
103
|
+
globalStatus?: GlobalStatusConfigObject;
|
|
103
104
|
|
|
104
105
|
/**
|
|
105
106
|
* To force responsiveness on form components (like <a href="/uilib/components/input">Input</a> and their labels (<a href="/uilib/components/form-label">FormLabel</a>), set the prop to `true`. Defaults to `false`.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import type { GlobalStatusConfigObject } from '../GlobalStatus';
|
|
2
3
|
import type { IconIcon, IconSize } from '../Icon';
|
|
3
4
|
import type { SkeletonShow } from '../Skeleton';
|
|
4
5
|
import type { SpacingProps } from '../space/types';
|
|
@@ -40,7 +41,11 @@ export interface FormStatusProps
|
|
|
40
41
|
* The `text` appears as the status message. Beside plain text, you can send in a React component as well.
|
|
41
42
|
*/
|
|
42
43
|
text?: FormStatusText;
|
|
43
|
-
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* The <a href="/uilib/components/global-status/properties/#configuration-object">configuration</a> used for the target <a href="/uilib/components/global-status">GlobalStatus</a>.
|
|
47
|
+
*/
|
|
48
|
+
globalStatus?: GlobalStatusConfigObject;
|
|
44
49
|
|
|
45
50
|
/**
|
|
46
51
|
* The `icon` show before the status text. Defaults to `exclamation`.
|
|
@@ -66,11 +71,6 @@ export interface FormStatusProps
|
|
|
66
71
|
* Defines the appearance size. There are these sizes `default`, `large`. The default status is `default`.
|
|
67
72
|
*/
|
|
68
73
|
size?: FormStatusSize;
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* The `status_id` used for the target <a href="/uilib/components/global-status">GlobalStatus</a>.
|
|
72
|
-
*/
|
|
73
|
-
global_status_id?: string;
|
|
74
74
|
attributes?: FormStatusAttributes;
|
|
75
75
|
text_id?: string;
|
|
76
76
|
width_selector?: string;
|
|
@@ -4,7 +4,7 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
|
4
4
|
|
|
5
5
|
var _path, _path2, _path3, _path4, _path5, _path6, _path7, _circle, _path8, _path9;
|
|
6
6
|
|
|
7
|
-
const _excluded = ["show", "title", "state", "size", "variant", "className", "no_animation", "stretch", "class", "text_id", "label", "status_id", "id", "text", "icon", "icon_size", "skeleton", "children", "role"];
|
|
7
|
+
const _excluded = ["show", "title", "state", "size", "variant", "className", "no_animation", "stretch", "class", "text_id", "label", "status_id", "globalStatus", "id", "text", "icon", "icon_size", "skeleton", "children", "role"];
|
|
8
8
|
|
|
9
9
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
10
10
|
|
|
@@ -98,7 +98,7 @@ export default class FormStatus extends React.PureComponent {
|
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
constructor(props, context) {
|
|
101
|
-
var _context$FormStatus, _context$FormRow;
|
|
101
|
+
var _props$globalStatus, _context$FormStatus, _context$FormStatus$g, _context$FormRow, _context$FormRow$glob;
|
|
102
102
|
|
|
103
103
|
super(props);
|
|
104
104
|
|
|
@@ -130,11 +130,12 @@ export default class FormStatus extends React.PureComponent {
|
|
|
130
130
|
});
|
|
131
131
|
|
|
132
132
|
this.state.id = props.id || makeUniqueId();
|
|
133
|
-
this._globalStatus = GlobalStatusProvider.init((props === null || props === void 0 ? void 0 : props.
|
|
133
|
+
this._globalStatus = GlobalStatusProvider.init((props === null || props === void 0 ? void 0 : (_props$globalStatus = props.globalStatus) === null || _props$globalStatus === void 0 ? void 0 : _props$globalStatus.id) || (context === null || context === void 0 ? void 0 : (_context$FormStatus = context.FormStatus) === null || _context$FormStatus === void 0 ? void 0 : (_context$FormStatus$g = _context$FormStatus.globalStatus) === null || _context$FormStatus$g === void 0 ? void 0 : _context$FormStatus$g.id) || (context === null || context === void 0 ? void 0 : (_context$FormRow = context.FormRow) === null || _context$FormRow === void 0 ? void 0 : (_context$FormRow$glob = _context$FormRow.globalStatus) === null || _context$FormRow$glob === void 0 ? void 0 : _context$FormRow$glob.id) || 'main', provider => {
|
|
134
134
|
if (this.props.state === 'error' && this.isReadyToGetVisible()) {
|
|
135
135
|
const {
|
|
136
136
|
state,
|
|
137
137
|
text,
|
|
138
|
+
globalStatus,
|
|
138
139
|
label
|
|
139
140
|
} = this.props;
|
|
140
141
|
provider.add({
|
|
@@ -142,7 +143,7 @@ export default class FormStatus extends React.PureComponent {
|
|
|
142
143
|
status_id: this.getStatusId(),
|
|
143
144
|
item: {
|
|
144
145
|
item_id: this.state.id,
|
|
145
|
-
text,
|
|
146
|
+
text: (globalStatus === null || globalStatus === void 0 ? void 0 : globalStatus.message) || text,
|
|
146
147
|
status_anchor_label: label,
|
|
147
148
|
status_anchor_url: true
|
|
148
149
|
}
|
|
@@ -202,6 +203,7 @@ export default class FormStatus extends React.PureComponent {
|
|
|
202
203
|
state,
|
|
203
204
|
show,
|
|
204
205
|
text,
|
|
206
|
+
globalStatus,
|
|
205
207
|
children,
|
|
206
208
|
label
|
|
207
209
|
} = this.props;
|
|
@@ -220,7 +222,7 @@ export default class FormStatus extends React.PureComponent {
|
|
|
220
222
|
status_id,
|
|
221
223
|
item: {
|
|
222
224
|
item_id: this.state.id,
|
|
223
|
-
text,
|
|
225
|
+
text: (globalStatus === null || globalStatus === void 0 ? void 0 : globalStatus.message) || text,
|
|
224
226
|
status_anchor_label: label,
|
|
225
227
|
status_anchor_url: true
|
|
226
228
|
}
|
|
@@ -279,6 +281,7 @@ export default class FormStatus extends React.PureComponent {
|
|
|
279
281
|
text_id,
|
|
280
282
|
label,
|
|
281
283
|
status_id,
|
|
284
|
+
globalStatus,
|
|
282
285
|
id,
|
|
283
286
|
text,
|
|
284
287
|
icon,
|
|
@@ -344,13 +347,13 @@ _defineProperty(FormStatus, "defaultProps", {
|
|
|
344
347
|
title: null,
|
|
345
348
|
show: true,
|
|
346
349
|
text: null,
|
|
350
|
+
globalStatus: null,
|
|
347
351
|
label: null,
|
|
348
352
|
icon: 'error',
|
|
349
353
|
icon_size: 'medium',
|
|
350
354
|
size: 'default',
|
|
351
355
|
variant: null,
|
|
352
356
|
state: 'error',
|
|
353
|
-
global_status_id: null,
|
|
354
357
|
attributes: null,
|
|
355
358
|
text_id: null,
|
|
356
359
|
width_selector: null,
|
|
@@ -375,7 +378,10 @@ process.env.NODE_ENV !== "production" ? FormStatus.propTypes = _objectSpread(_ob
|
|
|
375
378
|
state: PropTypes.oneOfType([PropTypes.bool, PropTypes.string, PropTypes.oneOf(['error', 'warn', 'info', 'marketing'])]),
|
|
376
379
|
variant: PropTypes.oneOf(['flat', 'outlined']),
|
|
377
380
|
size: PropTypes.oneOf(['default', 'large']),
|
|
378
|
-
|
|
381
|
+
globalStatus: PropTypes.shape({
|
|
382
|
+
id: PropTypes.string,
|
|
383
|
+
message: PropTypes.oneOfType([PropTypes.string, PropTypes.node])
|
|
384
|
+
}),
|
|
379
385
|
attributes: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
|
|
380
386
|
text_id: PropTypes.string,
|
|
381
387
|
width_selector: PropTypes.string,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import type { FormStatusText } from '../FormStatus';
|
|
2
3
|
import type { IconIcon, IconSize } from '../Icon';
|
|
3
4
|
import type { SkeletonShow } from '../Skeleton';
|
|
4
5
|
import type { SpacingProps } from '../space/types';
|
|
@@ -11,6 +12,13 @@ export type GlobalStatusItem = string | ((...args: any[]) => any) | any;
|
|
|
11
12
|
export type GlobalStatusState = 'error' | 'info';
|
|
12
13
|
export type GlobalStatusShow = 'auto' | any | any | 'true' | 'false';
|
|
13
14
|
export type GlobalStatusDelay = string | number;
|
|
15
|
+
export type GlobalStatusConfigObject = {
|
|
16
|
+
/**
|
|
17
|
+
* The main ID. Defaults to `main`.
|
|
18
|
+
*/
|
|
19
|
+
id?: string;
|
|
20
|
+
message?: FormStatusText;
|
|
21
|
+
};
|
|
14
22
|
export type GlobalStatusChildren =
|
|
15
23
|
| string
|
|
16
24
|
| ((...args: any[]) => any)
|
|
@@ -4,9 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import type { ButtonProps } from '../button/Button';
|
|
7
|
-
import { ModalProps } from '../modal/types';
|
|
8
7
|
export declare type HelpButtonProps = {
|
|
9
|
-
|
|
10
|
-
modal_props?: ModalProps;
|
|
8
|
+
render?: (children: React.ReactNode, props: ButtonProps) => React.ReactElement;
|
|
11
9
|
} & ButtonProps;
|
|
12
10
|
export default function HelpButton(localProps: HelpButtonProps): JSX.Element;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
1
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
-
const _excluded = ["
|
|
2
|
+
const _excluded = ["children", "render"];
|
|
4
3
|
import React from 'react';
|
|
5
4
|
import Context from '../../shared/Context';
|
|
6
5
|
import Dialog from '../dialog/Dialog';
|
|
@@ -11,22 +10,12 @@ const defaultProps = {
|
|
|
11
10
|
icon_position: 'left'
|
|
12
11
|
};
|
|
13
12
|
export default function HelpButton(localProps) {
|
|
14
|
-
const getContent = props => {
|
|
15
|
-
if (props.modal_content) {
|
|
16
|
-
return props.modal_content;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
return typeof props.children === 'function' ? props.children(props) : props.children;
|
|
20
|
-
};
|
|
21
|
-
|
|
22
13
|
const context = React.useContext(Context);
|
|
23
14
|
const props = extendPropsWithContext(localProps, defaultProps);
|
|
24
|
-
const content = getContent(props);
|
|
25
15
|
|
|
26
16
|
const {
|
|
27
|
-
modal_content,
|
|
28
17
|
children,
|
|
29
|
-
|
|
18
|
+
render
|
|
30
19
|
} = props,
|
|
31
20
|
params = _objectWithoutProperties(props, _excluded);
|
|
32
21
|
|
|
@@ -34,14 +23,18 @@ export default function HelpButton(localProps) {
|
|
|
34
23
|
params.icon = 'question';
|
|
35
24
|
}
|
|
36
25
|
|
|
37
|
-
if (
|
|
26
|
+
if (children) {
|
|
38
27
|
if (!params.title) {
|
|
39
28
|
params.title = context.getTranslation(props).HelpButton.title;
|
|
40
29
|
}
|
|
41
30
|
|
|
42
|
-
|
|
31
|
+
if (typeof render === 'function') {
|
|
32
|
+
return render(children, params);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
return React.createElement(Dialog, {
|
|
43
36
|
triggerAttributes: params
|
|
44
|
-
},
|
|
37
|
+
}, children);
|
|
45
38
|
}
|
|
46
39
|
|
|
47
40
|
return React.createElement(HelpButtonInstance, params);
|
|
@@ -14,8 +14,9 @@
|
|
|
14
14
|
width: 1em;
|
|
15
15
|
height: 1em;
|
|
16
16
|
}
|
|
17
|
-
.dnb-icon img,
|
|
18
|
-
.dnb-icon svg
|
|
17
|
+
.dnb-icon img, .dnb-core-style .dnb-icon img,
|
|
18
|
+
.dnb-icon svg,
|
|
19
|
+
.dnb-core-style .dnb-icon svg {
|
|
19
20
|
width: inherit;
|
|
20
21
|
height: inherit;
|
|
21
22
|
shape-rendering: geometricprecision;
|
|
@@ -63,9 +64,12 @@
|
|
|
63
64
|
align-items: center;
|
|
64
65
|
justify-content: center;
|
|
65
66
|
}
|
|
66
|
-
h1 .dnb-icon, h2 .dnb-icon, h3 .dnb-icon, h4 .dnb-icon, h5 .dnb-icon, h6 .dnb-icon {
|
|
67
|
+
h1 > .dnb-icon, h2 > .dnb-icon, h3 > .dnb-icon, h4 > .dnb-icon, h5 > .dnb-icon, h6 > .dnb-icon {
|
|
67
68
|
vertical-align: middle;
|
|
68
69
|
}
|
|
70
|
+
p > .dnb-icon {
|
|
71
|
+
vertical-align: inherit;
|
|
72
|
+
}
|
|
69
73
|
.dnb-icon.dnb-skeleton {
|
|
70
74
|
color: var(--skeleton-color) !important;
|
|
71
75
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.dnb-icon{color:inherit;display:inline-block;font-size:1rem;height:1em;line-height:1rem;vertical-align:middle;width:1em}.dnb-icon img,.dnb-icon svg{shape-rendering:geometricprecision;height:inherit;vertical-align:top;width:inherit}.dnb-icon svg[width="100%"]{width:inherit}.dnb-icon svg[height="100%"]{height:inherit}.dnb-icon--inherit-color svg:not([fill]),.dnb-icon--inherit-color svg [fill]{fill:currentcolor}.dnb-icon--inherit-color svg [stroke]{stroke:currentcolor}.dnb-icon--small{font-size:.75rem}.dnb-icon--default{font-size:1rem}.dnb-icon--medium{font-size:1.5rem}.dnb-icon--large{font-size:2rem}.dnb-icon--x-large{font-size:2.5rem}.dnb-icon--xx-large{font-size:3rem}.dnb-icon--custom-size{height:auto;width:auto}.dnb-icon--auto{font-size:1em}.dnb-icon--auto>.dnb-icon--wrapper{align-items:center;display:inline-flex;justify-content:center}h1
|
|
1
|
+
.dnb-icon{color:inherit;display:inline-block;font-size:1rem;height:1em;line-height:1rem;vertical-align:middle;width:1em}.dnb-core-style .dnb-icon img,.dnb-core-style .dnb-icon svg,.dnb-icon img,.dnb-icon svg{shape-rendering:geometricprecision;height:inherit;vertical-align:top;width:inherit}.dnb-icon svg[width="100%"]{width:inherit}.dnb-icon svg[height="100%"]{height:inherit}.dnb-icon--inherit-color svg:not([fill]),.dnb-icon--inherit-color svg [fill]{fill:currentcolor}.dnb-icon--inherit-color svg [stroke]{stroke:currentcolor}.dnb-icon--small{font-size:.75rem}.dnb-icon--default{font-size:1rem}.dnb-icon--medium{font-size:1.5rem}.dnb-icon--large{font-size:2rem}.dnb-icon--x-large{font-size:2.5rem}.dnb-icon--xx-large{font-size:3rem}.dnb-icon--custom-size{height:auto;width:auto}.dnb-icon--auto{font-size:1em}.dnb-icon--auto>.dnb-icon--wrapper{align-items:center;display:inline-flex;justify-content:center}h1>.dnb-icon,h2>.dnb-icon,h3>.dnb-icon,h4>.dnb-icon,h5>.dnb-icon,h6>.dnb-icon{vertical-align:middle}p>.dnb-icon{vertical-align:inherit}.dnb-icon.dnb-skeleton{color:var(--skeleton-color)!important}.dnb-icon.dnb-skeleton:after,.dnb-icon.dnb-skeleton:before{content:none!important}
|
|
@@ -23,10 +23,13 @@
|
|
|
23
23
|
// responsive
|
|
24
24
|
img,
|
|
25
25
|
svg {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
&,
|
|
27
|
+
.dnb-core-style & {
|
|
28
|
+
width: inherit;
|
|
29
|
+
height: inherit;
|
|
30
|
+
shape-rendering: geometricprecision;
|
|
31
|
+
vertical-align: top;
|
|
32
|
+
}
|
|
30
33
|
}
|
|
31
34
|
|
|
32
35
|
// auto size
|
|
@@ -88,14 +91,17 @@
|
|
|
88
91
|
justify-content: center;
|
|
89
92
|
}
|
|
90
93
|
|
|
91
|
-
h1 &,
|
|
92
|
-
h2 &,
|
|
93
|
-
h3 &,
|
|
94
|
-
h4 &,
|
|
95
|
-
h5 &,
|
|
96
|
-
h6 & {
|
|
94
|
+
h1 > &,
|
|
95
|
+
h2 > &,
|
|
96
|
+
h3 > &,
|
|
97
|
+
h4 > &,
|
|
98
|
+
h5 > &,
|
|
99
|
+
h6 > & {
|
|
97
100
|
vertical-align: middle;
|
|
98
101
|
}
|
|
102
|
+
p > & {
|
|
103
|
+
vertical-align: inherit;
|
|
104
|
+
}
|
|
99
105
|
|
|
100
106
|
&.dnb-skeleton {
|
|
101
107
|
&::before,
|
|
@@ -9,6 +9,7 @@ import type { FormLabelLabelDirection, FormLabelText } from '../FormLabel';
|
|
|
9
9
|
import type { IconIcon, IconSize } from '../Icon';
|
|
10
10
|
import type { SkeletonShow } from '../Skeleton';
|
|
11
11
|
import type { SpacingProps } from '../space/types';
|
|
12
|
+
import type { GlobalStatusConfigObject } from '../GlobalStatus';
|
|
12
13
|
export type InputSize = 'default' | 'small' | 'medium' | 'large' | number;
|
|
13
14
|
export type InputValue = string | number;
|
|
14
15
|
export type InputSuffix =
|
|
@@ -67,6 +68,11 @@ export interface InputProps
|
|
|
67
68
|
*/
|
|
68
69
|
status?: FormStatusText;
|
|
69
70
|
|
|
71
|
+
/**
|
|
72
|
+
* 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
|
+
globalStatus?: GlobalStatusConfigObject;
|
|
75
|
+
|
|
70
76
|
/**
|
|
71
77
|
* Defines the state of the status. Currently, there are two statuses `[error, info]`. Defaults to `error`.
|
|
72
78
|
*/
|
|
@@ -83,11 +89,6 @@ export interface InputProps
|
|
|
83
89
|
*/
|
|
84
90
|
input_state?: string;
|
|
85
91
|
|
|
86
|
-
/**
|
|
87
|
-
* The `status_id` used for the target <a href="/uilib/components/global-status">GlobalStatus</a>.
|
|
88
|
-
*/
|
|
89
|
-
global_status_id?: string;
|
|
90
|
-
|
|
91
92
|
/**
|
|
92
93
|
* Defaults to `off`. Set to `on` or any of <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-autocomplete">allowed `attributes`</a>. Keep in mind, 1. you may have to define a `name`, 2. have the input as a descendant of a `<form>` element, 3. and have a submit button inside the form.
|
|
93
94
|
*/
|
|
@@ -255,6 +256,11 @@ export interface SubmitButtonProps extends React.HTMLProps<HTMLElement> {
|
|
|
255
256
|
*/
|
|
256
257
|
status?: FormStatusText;
|
|
257
258
|
|
|
259
|
+
/**
|
|
260
|
+
* The <a href="/uilib/components/global-status/properties/#configuration-object">configuration</a> used for the target <a href="/uilib/components/global-status">GlobalStatus</a>.
|
|
261
|
+
*/
|
|
262
|
+
globalStatus?: GlobalStatusConfigObject;
|
|
263
|
+
|
|
258
264
|
/**
|
|
259
265
|
* Defines the state of the status. Currently, there are two statuses `[error, info]`. Defaults to `error`.
|
|
260
266
|
*/
|