@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
|
@@ -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
|
*/
|
|
@@ -4,7 +4,7 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
|
4
4
|
|
|
5
5
|
var _AlignmentHelper;
|
|
6
6
|
|
|
7
|
-
const _excluded = ["type", "size", "label", "label_direction", "label_sr_only", "status", "
|
|
7
|
+
const _excluded = ["type", "size", "label", "label_direction", "label_sr_only", "status", "globalStatus", "status_state", "status_props", "status_no_animation", "disabled", "skeleton", "placeholder", "clear", "keep_placeholder", "suffix", "align", "input_class", "submit_button_title", "clear_button_title", "submit_button_variant", "submit_button_icon", "submit_button_status", "submit_element", "inner_element", "autocomplete", "readOnly", "stretch", "input_attributes", "icon", "icon_position", "icon_size", "class", "className", "id", "children", "value", "selectall", "on_submit", "input_element"],
|
|
8
8
|
_excluded2 = ["id", "title", "disabled", "skeleton", "variant", "icon", "icon_size", "status", "status_state", "status_props", "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; }
|
|
@@ -34,11 +34,14 @@ export const inputPropTypes = _objectSpread(_objectSpread({
|
|
|
34
34
|
label_direction: PropTypes.oneOf(['horizontal', 'vertical']),
|
|
35
35
|
label_sr_only: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
|
|
36
36
|
status: PropTypes.oneOfType([PropTypes.string, PropTypes.bool, PropTypes.func, PropTypes.node]),
|
|
37
|
+
globalStatus: PropTypes.shape({
|
|
38
|
+
id: PropTypes.string,
|
|
39
|
+
message: PropTypes.oneOfType([PropTypes.string, PropTypes.node])
|
|
40
|
+
}),
|
|
37
41
|
status_state: PropTypes.string,
|
|
38
42
|
status_props: PropTypes.object,
|
|
39
43
|
status_no_animation: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
|
|
40
44
|
input_state: PropTypes.string,
|
|
41
|
-
global_status_id: PropTypes.string,
|
|
42
45
|
autocomplete: PropTypes.string,
|
|
43
46
|
submit_button_title: PropTypes.string,
|
|
44
47
|
clear_button_title: PropTypes.string,
|
|
@@ -248,10 +251,10 @@ export default class Input extends React.PureComponent {
|
|
|
248
251
|
label_direction,
|
|
249
252
|
label_sr_only,
|
|
250
253
|
status,
|
|
254
|
+
globalStatus,
|
|
251
255
|
status_state,
|
|
252
256
|
status_props,
|
|
253
257
|
status_no_animation,
|
|
254
|
-
global_status_id,
|
|
255
258
|
disabled,
|
|
256
259
|
skeleton,
|
|
257
260
|
placeholder,
|
|
@@ -366,7 +369,7 @@ export default class Input extends React.PureComponent {
|
|
|
366
369
|
}), React.createElement("span", innerParams, _AlignmentHelper || (_AlignmentHelper = React.createElement(AlignmentHelper, null)), React.createElement(FormStatus, _extends({
|
|
367
370
|
show: showStatus,
|
|
368
371
|
id: id + '-form-status',
|
|
369
|
-
|
|
372
|
+
globalStatus: globalStatus,
|
|
370
373
|
label: label,
|
|
371
374
|
text: status,
|
|
372
375
|
state: status_state,
|
|
@@ -441,11 +444,11 @@ _defineProperty(Input, "defaultProps", {
|
|
|
441
444
|
label_direction: null,
|
|
442
445
|
label_sr_only: null,
|
|
443
446
|
status: null,
|
|
447
|
+
globalStatus: null,
|
|
444
448
|
status_state: 'error',
|
|
445
449
|
status_props: null,
|
|
446
450
|
status_no_animation: null,
|
|
447
451
|
input_state: null,
|
|
448
|
-
global_status_id: null,
|
|
449
452
|
autocomplete: 'off',
|
|
450
453
|
placeholder: null,
|
|
451
454
|
clear: null,
|
|
@@ -7,6 +7,7 @@ import type {
|
|
|
7
7
|
FormStatusState,
|
|
8
8
|
FormStatusText
|
|
9
9
|
} from '../FormStatus';
|
|
10
|
+
import type { GlobalStatusConfigObject } from '../GlobalStatus';
|
|
10
11
|
import type { IconIcon, IconSize } from '../Icon';
|
|
11
12
|
import type {
|
|
12
13
|
InputInputAttributes,
|
|
@@ -195,9 +196,9 @@ export interface InputMaskedProps
|
|
|
195
196
|
input_state?: string;
|
|
196
197
|
|
|
197
198
|
/**
|
|
198
|
-
* The
|
|
199
|
+
* The <a href="/uilib/components/global-status/properties/#configuration-object">configuration</a> used for the target <a href="/uilib/components/global-status">GlobalStatus</a>.
|
|
199
200
|
*/
|
|
200
|
-
|
|
201
|
+
globalStatus?: GlobalStatusConfigObject;
|
|
201
202
|
|
|
202
203
|
/**
|
|
203
204
|
* 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.
|
|
@@ -33,9 +33,13 @@ export const correctNumberValue = ({
|
|
|
33
33
|
|
|
34
34
|
if (maskParams.integerLimit && typeof maskParams.integerLimit === 'number') {
|
|
35
35
|
const limit = maskParams.integerLimit;
|
|
36
|
-
const integers = value.
|
|
37
|
-
const
|
|
38
|
-
|
|
36
|
+
const integers = value.split('.')[0];
|
|
37
|
+
const isNegative = parseFloat(integers) < 0;
|
|
38
|
+
|
|
39
|
+
if (integers.length - (isNegative ? 1 : 0) > limit) {
|
|
40
|
+
const decimals = decimalPos > 0 ? value.slice(decimalPos) : '';
|
|
41
|
+
value = integers.slice(0, limit + (isNegative ? 1 : 0)) + decimals;
|
|
42
|
+
}
|
|
39
43
|
}
|
|
40
44
|
|
|
41
45
|
const shouldHaveDecimals = maskParams.allowDecimal || maskParams.decimalLimit > 0 && maskParams.allowDecimal !== false;
|
package/es/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 & {
|
|
@@ -159,7 +159,9 @@ class Modal extends React.PureComponent {
|
|
|
159
159
|
modalActive
|
|
160
160
|
} = this.state;
|
|
161
161
|
const {
|
|
162
|
-
close_modal
|
|
162
|
+
close_modal,
|
|
163
|
+
open_state,
|
|
164
|
+
animation_duration
|
|
163
165
|
} = this.props;
|
|
164
166
|
|
|
165
167
|
if (modalActive) {
|
|
@@ -175,18 +177,30 @@ class Modal extends React.PureComponent {
|
|
|
175
177
|
|
|
176
178
|
this.setActiveState(this._id);
|
|
177
179
|
} else if (modalActive === false) {
|
|
178
|
-
|
|
179
|
-
|
|
180
|
+
var _this$_triggerRef;
|
|
181
|
+
|
|
182
|
+
const focus = elem => {
|
|
183
|
+
elem.setAttribute('data-autofocus', 'true');
|
|
184
|
+
elem.focus({
|
|
180
185
|
preventScroll: true
|
|
181
186
|
});
|
|
187
|
+
return new Promise(resolve => {
|
|
188
|
+
setTimeout(() => {
|
|
189
|
+
elem === null || elem === void 0 ? void 0 : elem.removeAttribute('data-autofocus');
|
|
190
|
+
resolve();
|
|
191
|
+
}, parseFloat(String(animation_duration)) / 3);
|
|
192
|
+
});
|
|
193
|
+
};
|
|
194
|
+
|
|
195
|
+
if ((_this$_triggerRef = this._triggerRef) !== null && _this$_triggerRef !== void 0 && _this$_triggerRef.current) {
|
|
196
|
+
focus(this._triggerRef.current);
|
|
182
197
|
}
|
|
183
198
|
|
|
184
|
-
if ((
|
|
199
|
+
if ((open_state === 'opened' || open_state === true) && this.activeElement instanceof HTMLElement) {
|
|
185
200
|
try {
|
|
186
|
-
this.activeElement.
|
|
187
|
-
|
|
201
|
+
focus(this.activeElement).then(() => {
|
|
202
|
+
this.activeElement = null;
|
|
188
203
|
});
|
|
189
|
-
this.activeElement = null;
|
|
190
204
|
} catch (e) {}
|
|
191
205
|
}
|
|
192
206
|
|
|
@@ -256,8 +256,8 @@ export default class ModalContent extends React.PureComponent {
|
|
|
256
256
|
focusElement.focus();
|
|
257
257
|
const noH1Elem = elem.querySelector('h1, h2, h3');
|
|
258
258
|
|
|
259
|
-
if (
|
|
260
|
-
warn('
|
|
259
|
+
if ((noH1Elem === null || noH1Elem === void 0 ? void 0 : noH1Elem.tagName) !== 'H1') {
|
|
260
|
+
warn('A Dialog or Drawer needs a h1 as its first element!');
|
|
261
261
|
}
|
|
262
262
|
} catch (e) {
|
|
263
263
|
warn(e);
|
|
@@ -587,12 +587,13 @@ export function showSelectionNotice({
|
|
|
587
587
|
};
|
|
588
588
|
}
|
|
589
589
|
|
|
590
|
-
let elem, content;
|
|
590
|
+
let elem, content, root;
|
|
591
591
|
|
|
592
592
|
try {
|
|
593
|
+
root = document.querySelector('.dnb-tooltip__portal, body');
|
|
593
594
|
elem = document.createElement('span');
|
|
594
595
|
elem.setAttribute('id', id);
|
|
595
|
-
elem.setAttribute('class', 'dnb-tooltip
|
|
596
|
+
elem.setAttribute('class', 'dnb-tooltip');
|
|
596
597
|
elem.setAttribute('role', 'tooltip');
|
|
597
598
|
const arrow = document.createElement('span');
|
|
598
599
|
arrow.setAttribute('class', 'dnb-tooltip__arrow dnb-tooltip__arrow__position--top');
|
|
@@ -608,7 +609,7 @@ export function showSelectionNotice({
|
|
|
608
609
|
return new class SelectionFx {
|
|
609
610
|
remove() {
|
|
610
611
|
try {
|
|
611
|
-
|
|
612
|
+
root.removeChild(elem);
|
|
612
613
|
elem = null;
|
|
613
614
|
content = null;
|
|
614
615
|
} catch (e) {}
|
|
@@ -622,7 +623,7 @@ export function showSelectionNotice({
|
|
|
622
623
|
|
|
623
624
|
run(pE = getSelectedElement()) {
|
|
624
625
|
try {
|
|
625
|
-
|
|
626
|
+
root.appendChild(elem);
|
|
626
627
|
const top = getOffsetTop(pE);
|
|
627
628
|
const left = getOffsetLeft(pE);
|
|
628
629
|
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;
|
|
@@ -4,7 +4,7 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
|
4
4
|
|
|
5
5
|
var _AlignmentHelper, _span, _span2;
|
|
6
6
|
|
|
7
|
-
const _excluded = ["status", "status_state", "status_props", "status_no_animation", "
|
|
7
|
+
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"];
|
|
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
|
|
|
@@ -203,7 +203,7 @@ export default class Radio extends React.PureComponent {
|
|
|
203
203
|
status_state,
|
|
204
204
|
status_props,
|
|
205
205
|
status_no_animation,
|
|
206
|
-
|
|
206
|
+
globalStatus,
|
|
207
207
|
suffix,
|
|
208
208
|
element,
|
|
209
209
|
label,
|
|
@@ -291,7 +291,7 @@ export default class Radio extends React.PureComponent {
|
|
|
291
291
|
}, _AlignmentHelper || (_AlignmentHelper = React.createElement(AlignmentHelper, null)), React.createElement(FormStatus, _extends({
|
|
292
292
|
show: showStatus,
|
|
293
293
|
id: id + '-form-status',
|
|
294
|
-
|
|
294
|
+
globalStatus: globalStatus,
|
|
295
295
|
label: label,
|
|
296
296
|
text_id: id + '-status',
|
|
297
297
|
width_selector: id + ', ' + id + '-label',
|
|
@@ -352,7 +352,7 @@ _defineProperty(Radio, "defaultProps", {
|
|
|
352
352
|
status_state: 'error',
|
|
353
353
|
status_props: null,
|
|
354
354
|
status_no_animation: null,
|
|
355
|
-
|
|
355
|
+
globalStatus: null,
|
|
356
356
|
suffix: null,
|
|
357
357
|
value: '',
|
|
358
358
|
attributes: null,
|
|
@@ -383,7 +383,10 @@ process.env.NODE_ENV !== "production" ? Radio.propTypes = _objectSpread(_objectS
|
|
|
383
383
|
status_state: PropTypes.string,
|
|
384
384
|
status_props: PropTypes.object,
|
|
385
385
|
status_no_animation: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
|
|
386
|
-
|
|
386
|
+
globalStatus: PropTypes.shape({
|
|
387
|
+
id: PropTypes.string,
|
|
388
|
+
message: PropTypes.oneOfType([PropTypes.string, PropTypes.node])
|
|
389
|
+
}),
|
|
387
390
|
suffix: PropTypes.oneOfType([PropTypes.string, PropTypes.func, PropTypes.node]),
|
|
388
391
|
value: PropTypes.string,
|
|
389
392
|
attributes: PropTypes.oneOfType([PropTypes.string, PropTypes.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
|
}
|
|
@@ -4,7 +4,7 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
|
4
4
|
|
|
5
5
|
var _AlignmentHelper;
|
|
6
6
|
|
|
7
|
-
const _excluded = ["status", "status_state", "status_props", "status_no_animation", "
|
|
7
|
+
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"];
|
|
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
|
|
|
@@ -71,7 +71,7 @@ export default class RadioGroup extends React.PureComponent {
|
|
|
71
71
|
status_state,
|
|
72
72
|
status_props,
|
|
73
73
|
status_no_animation,
|
|
74
|
-
|
|
74
|
+
globalStatus,
|
|
75
75
|
suffix,
|
|
76
76
|
label,
|
|
77
77
|
label_direction,
|
|
@@ -147,7 +147,7 @@ export default class RadioGroup extends React.PureComponent {
|
|
|
147
147
|
}, suffix), React.createElement(FormStatus, _extends({
|
|
148
148
|
show: showStatus,
|
|
149
149
|
id: id + '-form-status',
|
|
150
|
-
|
|
150
|
+
globalStatus: globalStatus,
|
|
151
151
|
label: label,
|
|
152
152
|
text: status,
|
|
153
153
|
state: status_state,
|
|
@@ -178,7 +178,7 @@ _defineProperty(RadioGroup, "defaultProps", {
|
|
|
178
178
|
status_state: 'error',
|
|
179
179
|
status_props: null,
|
|
180
180
|
status_no_animation: null,
|
|
181
|
-
|
|
181
|
+
globalStatus: null,
|
|
182
182
|
suffix: null,
|
|
183
183
|
vertical: null,
|
|
184
184
|
layout_direction: 'row',
|
|
@@ -208,7 +208,10 @@ process.env.NODE_ENV !== "production" ? RadioGroup.propTypes = _objectSpread(_ob
|
|
|
208
208
|
status_state: PropTypes.string,
|
|
209
209
|
status_props: PropTypes.object,
|
|
210
210
|
status_no_animation: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
|
|
211
|
-
|
|
211
|
+
globalStatus: PropTypes.shape({
|
|
212
|
+
id: PropTypes.string,
|
|
213
|
+
message: PropTypes.oneOfType([PropTypes.string, PropTypes.node])
|
|
214
|
+
}),
|
|
212
215
|
suffix: PropTypes.oneOfType([PropTypes.string, PropTypes.func, PropTypes.node]),
|
|
213
216
|
layout_direction: PropTypes.oneOf(['column', 'row']),
|
|
214
217
|
vertical: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
|
|
@@ -36,7 +36,7 @@ export function SliderInstance() {
|
|
|
36
36
|
statusProps,
|
|
37
37
|
statusState,
|
|
38
38
|
statusNoAnimation,
|
|
39
|
-
|
|
39
|
+
globalStatus,
|
|
40
40
|
stretch,
|
|
41
41
|
skeleton,
|
|
42
42
|
disabled,
|
|
@@ -60,8 +60,7 @@ export function SliderInstance() {
|
|
|
60
60
|
}, _AlignmentHelper || (_AlignmentHelper = React.createElement(AlignmentHelper, null)), React.createElement(FormStatus, _extends({
|
|
61
61
|
show: showStatus,
|
|
62
62
|
id: id + '-form-status',
|
|
63
|
-
|
|
64
|
-
label: label,
|
|
63
|
+
globalStatus: globalStatus,
|
|
65
64
|
text_id: id + '-status',
|
|
66
65
|
text: status,
|
|
67
66
|
state: statusState,
|