@dnb/eufemia 10.69.1 → 10.70.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -0
- package/cjs/components/aria-live/AriaLiveDocs.d.ts +2 -0
- package/cjs/components/aria-live/AriaLiveDocs.js +54 -0
- package/cjs/components/aria-live/AriaLiveDocs.js.map +1 -0
- package/cjs/components/avatar/Avatar.d.ts +10 -0
- package/cjs/components/avatar/Avatar.js +17 -3
- package/cjs/components/avatar/Avatar.js.map +1 -1
- package/cjs/components/avatar/AvatarDocs.d.ts +3 -0
- package/cjs/components/avatar/AvatarDocs.js +101 -0
- package/cjs/components/avatar/AvatarDocs.js.map +1 -0
- package/cjs/components/avatar/AvatarGroup.d.ts +10 -0
- package/cjs/components/avatar/AvatarGroup.js +17 -5
- package/cjs/components/avatar/AvatarGroup.js.map +1 -1
- package/cjs/components/avatar/style/dnb-avatar.css +8 -0
- package/cjs/components/avatar/style/dnb-avatar.min.css +1 -1
- package/cjs/components/avatar/style/dnb-avatar.scss +9 -0
- package/cjs/components/avatar/style/themes/dnb-avatar-theme-sbanken.css +5 -5
- package/cjs/components/avatar/style/themes/dnb-avatar-theme-sbanken.min.css +1 -1
- package/cjs/components/avatar/style/themes/dnb-avatar-theme-sbanken.scss +5 -6
- package/cjs/components/avatar/style/themes/dnb-avatar-theme-ui.css +5 -5
- package/cjs/components/avatar/style/themes/dnb-avatar-theme-ui.min.css +1 -1
- package/cjs/components/avatar/style/themes/dnb-avatar-theme-ui.scss +5 -5
- package/cjs/components/badge/BadgeDocs.d.ts +2 -0
- package/cjs/components/badge/BadgeDocs.js +54 -0
- package/cjs/components/badge/BadgeDocs.js.map +1 -0
- package/cjs/components/breadcrumb/BreadcrumbDocs.d.ts +5 -0
- package/cjs/components/breadcrumb/BreadcrumbDocs.js +125 -0
- package/cjs/components/breadcrumb/BreadcrumbDocs.js.map +1 -0
- package/cjs/components/button/Button.d.ts +0 -3
- package/cjs/components/button/ButtonDocs.d.ts +1 -0
- package/cjs/components/button/ButtonDocs.js +8 -1
- package/cjs/components/button/ButtonDocs.js.map +1 -1
- package/cjs/components/date-picker/DatePickerAddon.js +1 -3
- package/cjs/components/date-picker/DatePickerAddon.js.map +1 -1
- package/cjs/components/date-picker/DatePickerCalc.d.ts +13 -0
- package/cjs/components/date-picker/DatePickerCalc.js +44 -0
- package/cjs/components/date-picker/DatePickerCalc.js.map +1 -1
- package/cjs/components/date-picker/DatePickerCalendar.js +13 -11
- package/cjs/components/date-picker/DatePickerCalendar.js.map +1 -1
- package/cjs/components/date-picker/DatePickerContext.d.ts +1 -1
- package/cjs/components/date-picker/DatePickerContext.js.map +1 -1
- package/cjs/components/date-picker/DatePickerProvider.js +2 -2
- package/cjs/components/date-picker/DatePickerProvider.js.map +1 -1
- package/cjs/components/date-picker/hooks/useViews.d.ts +2 -4
- package/cjs/components/date-picker/hooks/useViews.js +37 -23
- package/cjs/components/date-picker/hooks/useViews.js.map +1 -1
- package/cjs/components/dialog/DialogDocs.d.ts +1 -0
- package/cjs/components/dialog/DialogDocs.js +13 -1
- package/cjs/components/dialog/DialogDocs.js.map +1 -1
- package/cjs/components/drawer/DrawerDocs.d.ts +2 -0
- package/cjs/components/drawer/DrawerDocs.js +69 -0
- package/cjs/components/drawer/DrawerDocs.js.map +1 -0
- package/cjs/components/dropdown/DropdownDocs.d.ts +2 -0
- package/cjs/components/dropdown/DropdownDocs.js +29 -0
- package/cjs/components/dropdown/DropdownDocs.js.map +1 -0
- package/cjs/components/form-label/FormLabelDocs.d.ts +2 -0
- package/cjs/components/form-label/FormLabelDocs.js +59 -0
- package/cjs/components/form-label/FormLabelDocs.js.map +1 -0
- package/cjs/components/form-row/FormRow.d.ts +45 -0
- package/cjs/components/form-row/FormRowDocs.d.ts +2 -0
- package/cjs/components/form-row/FormRowDocs.js +89 -0
- package/cjs/components/form-row/FormRowDocs.js.map +1 -0
- package/cjs/components/form-set/FormSet.d.ts +18 -0
- package/cjs/components/form-set/FormSetDocs.d.ts +3 -0
- package/cjs/components/form-set/FormSetDocs.js +56 -0
- package/cjs/components/form-set/FormSetDocs.js.map +1 -0
- package/cjs/components/form-status/FormStatus.d.ts +18 -18
- package/cjs/components/form-status/FormStatusDocs.d.ts +2 -0
- package/cjs/components/form-status/FormStatusDocs.js +89 -0
- package/cjs/components/form-status/FormStatusDocs.js.map +1 -0
- package/cjs/components/global-error/GlobalError.d.ts +12 -0
- package/cjs/components/global-error/GlobalError.js +15 -6
- package/cjs/components/global-error/GlobalError.js.map +1 -1
- package/cjs/components/global-error/GlobalErrorDocs.js +14 -4
- package/cjs/components/global-error/GlobalErrorDocs.js.map +1 -1
- package/cjs/components/global-status/GlobalStatus.d.ts +37 -58
- package/cjs/components/global-status/GlobalStatusController.d.ts +0 -9
- package/cjs/components/global-status/GlobalStatusDocs.d.ts +6 -0
- package/cjs/components/global-status/GlobalStatusDocs.js +192 -0
- package/cjs/components/global-status/GlobalStatusDocs.js.map +1 -0
- package/cjs/components/heading/HeadingDocs.d.ts +2 -0
- package/cjs/components/heading/HeadingDocs.js +79 -0
- package/cjs/components/heading/HeadingDocs.js.map +1 -0
- package/cjs/components/help-button/HelpButtonDocs.d.ts +3 -0
- package/cjs/components/help-button/HelpButtonDocs.js +46 -0
- package/cjs/components/help-button/HelpButtonDocs.js.map +1 -0
- package/cjs/components/icon/IconDocs.d.ts +2 -0
- package/cjs/components/icon/IconDocs.js +59 -0
- package/cjs/components/icon/IconDocs.js.map +1 -0
- package/cjs/components/icon/IconPrimaryDocs.d.ts +2 -0
- package/cjs/components/icon/IconPrimaryDocs.js +24 -0
- package/cjs/components/icon/IconPrimaryDocs.js.map +1 -0
- package/cjs/components/info-card/InfoCard.d.ts +6 -1
- package/cjs/components/info-card/InfoCard.js +4 -3
- package/cjs/components/info-card/InfoCard.js.map +1 -1
- package/cjs/components/info-card/InfoCardDocs.js +8 -3
- package/cjs/components/info-card/InfoCardDocs.js.map +1 -1
- package/cjs/components/input/Input.d.ts +0 -21
- package/cjs/components/input/InputDocs.d.ts +1 -0
- package/cjs/components/input/InputDocs.js +33 -1
- package/cjs/components/input/InputDocs.js.map +1 -1
- package/cjs/components/input-masked/InputMasked.d.ts +0 -12
- package/cjs/components/input-masked/InputMaskedDocs.d.ts +1 -0
- package/cjs/components/input-masked/InputMaskedDocs.js +13 -1
- package/cjs/components/input-masked/InputMaskedDocs.js.map +1 -1
- package/cjs/components/input-masked/MultiInputMaskedDocs.d.ts +2 -0
- package/cjs/components/input-masked/MultiInputMaskedDocs.js +24 -0
- package/cjs/components/input-masked/MultiInputMaskedDocs.js.map +1 -0
- package/cjs/components/pagination/Pagination.d.ts +35 -33
- package/cjs/components/pagination/Pagination.js +2 -0
- package/cjs/components/pagination/Pagination.js.map +1 -1
- package/cjs/components/pagination/PaginationDocs.d.ts +3 -0
- package/cjs/components/pagination/PaginationDocs.js +191 -0
- package/cjs/components/pagination/PaginationDocs.js.map +1 -0
- package/cjs/components/pagination/PaginationHelpers.d.ts +0 -3
- package/cjs/components/pagination/PaginationInfinity.d.ts +0 -3
- package/cjs/components/pagination/PaginationProvider.js +1 -1
- package/cjs/components/pagination/PaginationProvider.js.map +1 -1
- package/cjs/components/radio/Radio.d.ts +12 -15
- package/cjs/components/radio/RadioDocs.d.ts +5 -0
- package/cjs/components/radio/RadioDocs.js +145 -0
- package/cjs/components/radio/RadioDocs.js.map +1 -0
- package/cjs/components/radio/RadioGroup.d.ts +0 -30
- package/cjs/components/skeleton/SkeletonDocs.d.ts +2 -0
- package/cjs/components/skeleton/SkeletonDocs.js +44 -0
- package/cjs/components/skeleton/SkeletonDocs.js.map +1 -0
- package/cjs/components/skeleton/SkeletonHelper.d.ts +0 -6
- package/cjs/components/skip-content/SkipContentDocs.d.ts +2 -0
- package/cjs/components/skip-content/SkipContentDocs.js +29 -0
- package/cjs/components/skip-content/SkipContentDocs.js.map +1 -0
- package/cjs/components/tag/TagDocs.d.ts +4 -0
- package/cjs/components/tag/TagDocs.js +93 -0
- package/cjs/components/tag/TagDocs.js.map +1 -0
- package/cjs/components/textarea/Textarea.d.ts +0 -12
- package/cjs/components/textarea/TextareaDocs.d.ts +1 -0
- package/cjs/components/textarea/TextareaDocs.js +23 -1
- package/cjs/components/textarea/TextareaDocs.js.map +1 -1
- package/cjs/components/timeline/TimelineDocs.d.ts +3 -0
- package/cjs/components/timeline/TimelineDocs.js +66 -0
- package/cjs/components/timeline/TimelineDocs.js.map +1 -0
- package/cjs/components/toggle-button/ToggleButton.d.ts +0 -3
- package/cjs/components/toggle-button/ToggleButtonDocs.d.ts +1 -0
- package/cjs/components/toggle-button/ToggleButtonDocs.js +8 -1
- package/cjs/components/toggle-button/ToggleButtonDocs.js.map +1 -1
- package/cjs/components/toggle-button/ToggleButtonGroup.d.ts +0 -3
- package/cjs/components/toggle-button/ToggleButtonGroupDocs.d.ts +1 -0
- package/cjs/components/toggle-button/ToggleButtonGroupDocs.js +8 -1
- package/cjs/components/toggle-button/ToggleButtonGroupDocs.js.map +1 -1
- package/cjs/components/tooltip/TooltipDocs.d.ts +2 -0
- package/cjs/components/tooltip/TooltipDocs.js +79 -0
- package/cjs/components/tooltip/TooltipDocs.js.map +1 -0
- package/cjs/components/upload/Upload.js +6 -4
- package/cjs/components/upload/Upload.js.map +1 -1
- package/cjs/components/upload/UploadDocs.js +5 -0
- package/cjs/components/upload/UploadDocs.js.map +1 -1
- package/cjs/components/upload/UploadFileList.js +3 -1
- package/cjs/components/upload/UploadFileList.js.map +1 -1
- package/cjs/components/upload/UploadFileListCell.d.ts +6 -1
- package/cjs/components/upload/UploadFileListCell.js +8 -5
- package/cjs/components/upload/UploadFileListCell.js.map +1 -1
- package/cjs/components/upload/types.d.ts +5 -0
- package/cjs/components/upload/types.js.map +1 -1
- package/cjs/components/upload/useUpload.d.ts +1 -0
- package/cjs/components/upload/useUpload.js +9 -2
- package/cjs/components/upload/useUpload.js.map +1 -1
- package/cjs/components/visually-hidden/VisuallyHiddenDocs.d.ts +2 -0
- package/cjs/components/visually-hidden/VisuallyHiddenDocs.js +19 -0
- package/cjs/components/visually-hidden/VisuallyHiddenDocs.js.map +1 -0
- package/cjs/extensions/forms/DataContext/Context.d.ts +6 -5
- package/cjs/extensions/forms/DataContext/Context.js.map +1 -1
- package/cjs/extensions/forms/DataContext/Provider/Provider.js +29 -35
- package/cjs/extensions/forms/DataContext/Provider/Provider.js.map +1 -1
- package/cjs/extensions/forms/Field/Date/Date.d.ts +1 -0
- package/cjs/extensions/forms/Field/Date/Date.js +8 -8
- package/cjs/extensions/forms/Field/Date/Date.js.map +1 -1
- package/cjs/extensions/forms/Field/Password/Password.js +2 -1
- package/cjs/extensions/forms/Field/Password/Password.js.map +1 -1
- package/cjs/extensions/forms/Field/Provider/useFieldProvider.d.ts +9 -3
- package/cjs/extensions/forms/Field/Upload/Upload.d.ts +1 -1
- package/cjs/extensions/forms/Field/Upload/Upload.js +10 -2
- package/cjs/extensions/forms/Field/Upload/Upload.js.map +1 -1
- package/cjs/extensions/forms/Form/SubmitConfirmation/SubmitConfirmation.js +4 -4
- package/cjs/extensions/forms/Form/SubmitConfirmation/SubmitConfirmation.js.map +1 -1
- package/cjs/extensions/forms/Form/Visibility/VisibilityDocs.js +1 -1
- package/cjs/extensions/forms/Form/Visibility/VisibilityDocs.js.map +1 -1
- package/cjs/extensions/forms/Form/Visibility/useVisibility.js +10 -14
- package/cjs/extensions/forms/Form/Visibility/useVisibility.js.map +1 -1
- package/cjs/extensions/forms/Value/Date/Date.d.ts +0 -6
- package/cjs/extensions/forms/Value/Date/Date.js +14 -38
- package/cjs/extensions/forms/Value/Date/Date.js.map +1 -1
- package/cjs/extensions/forms/Wizard/Container/WizardContainer.js +2 -2
- package/cjs/extensions/forms/Wizard/Container/WizardContainer.js.map +1 -1
- package/cjs/extensions/forms/hooks/useFieldProps.js +3 -4
- package/cjs/extensions/forms/hooks/useFieldProps.js.map +1 -1
- package/cjs/extensions/payment-card/PaymentCard.d.ts +7 -7
- package/cjs/extensions/payment-card/PaymentCardDocs.d.ts +5 -0
- package/cjs/extensions/payment-card/PaymentCardDocs.js +205 -0
- package/cjs/extensions/payment-card/PaymentCardDocs.js.map +1 -0
- package/cjs/fragments/scroll-view/ScrollViewDocs.d.ts +2 -0
- package/cjs/fragments/scroll-view/ScrollViewDocs.js +19 -0
- package/cjs/fragments/scroll-view/ScrollViewDocs.js.map +1 -0
- package/cjs/fragments/text-counter/TextCounterDocs.d.ts +2 -0
- package/cjs/fragments/text-counter/TextCounterDocs.js +29 -0
- package/cjs/fragments/text-counter/TextCounterDocs.js.map +1 -0
- package/cjs/shared/Eufemia.d.ts +1 -1
- package/cjs/shared/Eufemia.js +2 -2
- package/cjs/shared/Eufemia.js.map +1 -1
- package/cjs/shared/MediaQueryDocs.d.ts +2 -0
- package/cjs/shared/MediaQueryDocs.js +34 -0
- package/cjs/shared/MediaQueryDocs.js.map +1 -0
- package/cjs/shared/ThemeDocs.d.ts +2 -0
- package/cjs/shared/ThemeDocs.js +39 -0
- package/cjs/shared/ThemeDocs.js.map +1 -0
- package/cjs/shared/locales/en-GB.d.ts +1 -0
- package/cjs/shared/locales/en-GB.js +1 -0
- package/cjs/shared/locales/en-GB.js.map +1 -1
- package/cjs/shared/locales/en-US.d.ts +1 -0
- package/cjs/shared/locales/index.d.ts +2 -0
- package/cjs/shared/locales/nb-NO.d.ts +1 -0
- package/cjs/shared/locales/nb-NO.js +1 -0
- package/cjs/shared/locales/nb-NO.js.map +1 -1
- package/cjs/shared/locales/sv-SE.d.ts +1 -0
- package/cjs/shared/locales/sv-SE.js +1 -0
- package/cjs/shared/locales/sv-SE.js.map +1 -1
- package/cjs/style/core/scopes.scss +1 -1
- package/cjs/style/dnb-ui-basis.css +1 -1
- package/cjs/style/dnb-ui-basis.min.css +1 -1
- package/cjs/style/dnb-ui-body.css +1 -1
- package/cjs/style/dnb-ui-body.min.css +1 -1
- package/cjs/style/dnb-ui-components.css +8 -0
- package/cjs/style/dnb-ui-components.min.css +1 -1
- package/cjs/style/dnb-ui-core.css +1 -1
- package/cjs/style/dnb-ui-core.min.css +1 -1
- package/cjs/style/themes/theme-eiendom/eiendom-theme-components.css +13 -5
- package/cjs/style/themes/theme-eiendom/eiendom-theme-components.min.css +2 -2
- package/cjs/style/themes/theme-sbanken/sbanken-theme-components.css +13 -5
- package/cjs/style/themes/theme-sbanken/sbanken-theme-components.min.css +2 -2
- package/cjs/style/themes/theme-ui/ui-theme-components.css +13 -5
- package/cjs/style/themes/theme-ui/ui-theme-components.min.css +2 -2
- package/components/aria-live/AriaLiveDocs.d.ts +2 -0
- package/components/aria-live/AriaLiveDocs.js +48 -0
- package/components/aria-live/AriaLiveDocs.js.map +1 -0
- package/components/avatar/Avatar.d.ts +10 -0
- package/components/avatar/Avatar.js +17 -3
- package/components/avatar/Avatar.js.map +1 -1
- package/components/avatar/AvatarDocs.d.ts +3 -0
- package/components/avatar/AvatarDocs.js +95 -0
- package/components/avatar/AvatarDocs.js.map +1 -0
- package/components/avatar/AvatarGroup.d.ts +10 -0
- package/components/avatar/AvatarGroup.js +17 -5
- package/components/avatar/AvatarGroup.js.map +1 -1
- package/components/avatar/style/dnb-avatar.css +8 -0
- package/components/avatar/style/dnb-avatar.min.css +1 -1
- package/components/avatar/style/dnb-avatar.scss +9 -0
- package/components/avatar/style/themes/dnb-avatar-theme-sbanken.css +5 -5
- package/components/avatar/style/themes/dnb-avatar-theme-sbanken.min.css +1 -1
- package/components/avatar/style/themes/dnb-avatar-theme-sbanken.scss +5 -6
- package/components/avatar/style/themes/dnb-avatar-theme-ui.css +5 -5
- package/components/avatar/style/themes/dnb-avatar-theme-ui.min.css +1 -1
- package/components/avatar/style/themes/dnb-avatar-theme-ui.scss +5 -5
- package/components/badge/BadgeDocs.d.ts +2 -0
- package/components/badge/BadgeDocs.js +48 -0
- package/components/badge/BadgeDocs.js.map +1 -0
- package/components/breadcrumb/BreadcrumbDocs.d.ts +5 -0
- package/components/breadcrumb/BreadcrumbDocs.js +119 -0
- package/components/breadcrumb/BreadcrumbDocs.js.map +1 -0
- package/components/button/Button.d.ts +0 -3
- package/components/button/ButtonDocs.d.ts +1 -0
- package/components/button/ButtonDocs.js +7 -0
- package/components/button/ButtonDocs.js.map +1 -1
- package/components/date-picker/DatePickerAddon.js +1 -3
- package/components/date-picker/DatePickerAddon.js.map +1 -1
- package/components/date-picker/DatePickerCalc.d.ts +13 -0
- package/components/date-picker/DatePickerCalc.js +41 -0
- package/components/date-picker/DatePickerCalc.js.map +1 -1
- package/components/date-picker/DatePickerCalendar.js +13 -11
- package/components/date-picker/DatePickerCalendar.js.map +1 -1
- package/components/date-picker/DatePickerContext.d.ts +1 -1
- package/components/date-picker/DatePickerContext.js.map +1 -1
- package/components/date-picker/DatePickerProvider.js +2 -2
- package/components/date-picker/DatePickerProvider.js.map +1 -1
- package/components/date-picker/hooks/useViews.d.ts +2 -4
- package/components/date-picker/hooks/useViews.js +38 -24
- package/components/date-picker/hooks/useViews.js.map +1 -1
- package/components/dialog/DialogDocs.d.ts +1 -0
- package/components/dialog/DialogDocs.js +12 -0
- package/components/dialog/DialogDocs.js.map +1 -1
- package/components/drawer/DrawerDocs.d.ts +2 -0
- package/components/drawer/DrawerDocs.js +63 -0
- package/components/drawer/DrawerDocs.js.map +1 -0
- package/components/dropdown/DropdownDocs.d.ts +2 -0
- package/components/dropdown/DropdownDocs.js +23 -0
- package/components/dropdown/DropdownDocs.js.map +1 -0
- package/components/form-label/FormLabelDocs.d.ts +2 -0
- package/components/form-label/FormLabelDocs.js +53 -0
- package/components/form-label/FormLabelDocs.js.map +1 -0
- package/components/form-row/FormRow.d.ts +45 -0
- package/components/form-row/FormRowDocs.d.ts +2 -0
- package/components/form-row/FormRowDocs.js +83 -0
- package/components/form-row/FormRowDocs.js.map +1 -0
- package/components/form-set/FormSet.d.ts +18 -0
- package/components/form-set/FormSetDocs.d.ts +3 -0
- package/components/form-set/FormSetDocs.js +50 -0
- package/components/form-set/FormSetDocs.js.map +1 -0
- package/components/form-status/FormStatus.d.ts +18 -18
- package/components/form-status/FormStatusDocs.d.ts +2 -0
- package/components/form-status/FormStatusDocs.js +83 -0
- package/components/form-status/FormStatusDocs.js.map +1 -0
- package/components/global-error/GlobalError.d.ts +12 -0
- package/components/global-error/GlobalError.js +15 -6
- package/components/global-error/GlobalError.js.map +1 -1
- package/components/global-error/GlobalErrorDocs.js +14 -4
- package/components/global-error/GlobalErrorDocs.js.map +1 -1
- package/components/global-status/GlobalStatus.d.ts +37 -58
- package/components/global-status/GlobalStatusController.d.ts +0 -9
- package/components/global-status/GlobalStatusDocs.d.ts +6 -0
- package/components/global-status/GlobalStatusDocs.js +186 -0
- package/components/global-status/GlobalStatusDocs.js.map +1 -0
- package/components/heading/HeadingDocs.d.ts +2 -0
- package/components/heading/HeadingDocs.js +73 -0
- package/components/heading/HeadingDocs.js.map +1 -0
- package/components/help-button/HelpButtonDocs.d.ts +3 -0
- package/components/help-button/HelpButtonDocs.js +40 -0
- package/components/help-button/HelpButtonDocs.js.map +1 -0
- package/components/icon/IconDocs.d.ts +2 -0
- package/components/icon/IconDocs.js +53 -0
- package/components/icon/IconDocs.js.map +1 -0
- package/components/icon/IconPrimaryDocs.d.ts +2 -0
- package/components/icon/IconPrimaryDocs.js +18 -0
- package/components/icon/IconPrimaryDocs.js.map +1 -0
- package/components/info-card/InfoCard.d.ts +6 -1
- package/components/info-card/InfoCard.js +4 -3
- package/components/info-card/InfoCard.js.map +1 -1
- package/components/info-card/InfoCardDocs.js +8 -3
- package/components/info-card/InfoCardDocs.js.map +1 -1
- package/components/input/Input.d.ts +0 -21
- package/components/input/InputDocs.d.ts +1 -0
- package/components/input/InputDocs.js +32 -0
- package/components/input/InputDocs.js.map +1 -1
- package/components/input-masked/InputMasked.d.ts +0 -12
- package/components/input-masked/InputMaskedDocs.d.ts +1 -0
- package/components/input-masked/InputMaskedDocs.js +12 -0
- package/components/input-masked/InputMaskedDocs.js.map +1 -1
- package/components/input-masked/MultiInputMaskedDocs.d.ts +2 -0
- package/components/input-masked/MultiInputMaskedDocs.js +18 -0
- package/components/input-masked/MultiInputMaskedDocs.js.map +1 -0
- package/components/pagination/Pagination.d.ts +35 -33
- package/components/pagination/Pagination.js +2 -0
- package/components/pagination/Pagination.js.map +1 -1
- package/components/pagination/PaginationDocs.d.ts +3 -0
- package/components/pagination/PaginationDocs.js +185 -0
- package/components/pagination/PaginationDocs.js.map +1 -0
- package/components/pagination/PaginationHelpers.d.ts +0 -3
- package/components/pagination/PaginationInfinity.d.ts +0 -3
- package/components/pagination/PaginationProvider.js +1 -1
- package/components/pagination/PaginationProvider.js.map +1 -1
- package/components/radio/Radio.d.ts +12 -15
- package/components/radio/RadioDocs.d.ts +5 -0
- package/components/radio/RadioDocs.js +139 -0
- package/components/radio/RadioDocs.js.map +1 -0
- package/components/radio/RadioGroup.d.ts +0 -30
- package/components/skeleton/SkeletonDocs.d.ts +2 -0
- package/components/skeleton/SkeletonDocs.js +38 -0
- package/components/skeleton/SkeletonDocs.js.map +1 -0
- package/components/skeleton/SkeletonHelper.d.ts +0 -6
- package/components/skip-content/SkipContentDocs.d.ts +2 -0
- package/components/skip-content/SkipContentDocs.js +23 -0
- package/components/skip-content/SkipContentDocs.js.map +1 -0
- package/components/tag/TagDocs.d.ts +4 -0
- package/components/tag/TagDocs.js +87 -0
- package/components/tag/TagDocs.js.map +1 -0
- package/components/textarea/Textarea.d.ts +0 -12
- package/components/textarea/TextareaDocs.d.ts +1 -0
- package/components/textarea/TextareaDocs.js +22 -0
- package/components/textarea/TextareaDocs.js.map +1 -1
- package/components/timeline/TimelineDocs.d.ts +3 -0
- package/components/timeline/TimelineDocs.js +60 -0
- package/components/timeline/TimelineDocs.js.map +1 -0
- package/components/toggle-button/ToggleButton.d.ts +0 -3
- package/components/toggle-button/ToggleButtonDocs.d.ts +1 -0
- package/components/toggle-button/ToggleButtonDocs.js +7 -0
- package/components/toggle-button/ToggleButtonDocs.js.map +1 -1
- package/components/toggle-button/ToggleButtonGroup.d.ts +0 -3
- package/components/toggle-button/ToggleButtonGroupDocs.d.ts +1 -0
- package/components/toggle-button/ToggleButtonGroupDocs.js +7 -0
- package/components/toggle-button/ToggleButtonGroupDocs.js.map +1 -1
- package/components/tooltip/TooltipDocs.d.ts +2 -0
- package/components/tooltip/TooltipDocs.js +73 -0
- package/components/tooltip/TooltipDocs.js.map +1 -0
- package/components/upload/Upload.js +6 -4
- package/components/upload/Upload.js.map +1 -1
- package/components/upload/UploadDocs.js +5 -0
- package/components/upload/UploadDocs.js.map +1 -1
- package/components/upload/UploadFileList.js +3 -1
- package/components/upload/UploadFileList.js.map +1 -1
- package/components/upload/UploadFileListCell.d.ts +6 -1
- package/components/upload/UploadFileListCell.js +8 -5
- package/components/upload/UploadFileListCell.js.map +1 -1
- package/components/upload/types.d.ts +5 -0
- package/components/upload/types.js.map +1 -1
- package/components/upload/useUpload.d.ts +1 -0
- package/components/upload/useUpload.js +7 -1
- package/components/upload/useUpload.js.map +1 -1
- package/components/visually-hidden/VisuallyHiddenDocs.d.ts +2 -0
- package/components/visually-hidden/VisuallyHiddenDocs.js +13 -0
- package/components/visually-hidden/VisuallyHiddenDocs.js.map +1 -0
- package/es/components/aria-live/AriaLiveDocs.d.ts +2 -0
- package/es/components/aria-live/AriaLiveDocs.js +48 -0
- package/es/components/aria-live/AriaLiveDocs.js.map +1 -0
- package/es/components/avatar/Avatar.d.ts +10 -0
- package/es/components/avatar/Avatar.js +17 -3
- package/es/components/avatar/Avatar.js.map +1 -1
- package/es/components/avatar/AvatarDocs.d.ts +3 -0
- package/es/components/avatar/AvatarDocs.js +95 -0
- package/es/components/avatar/AvatarDocs.js.map +1 -0
- package/es/components/avatar/AvatarGroup.d.ts +10 -0
- package/es/components/avatar/AvatarGroup.js +17 -5
- package/es/components/avatar/AvatarGroup.js.map +1 -1
- package/es/components/avatar/style/dnb-avatar.css +8 -0
- package/es/components/avatar/style/dnb-avatar.min.css +1 -1
- package/es/components/avatar/style/dnb-avatar.scss +9 -0
- package/es/components/avatar/style/themes/dnb-avatar-theme-sbanken.css +5 -5
- package/es/components/avatar/style/themes/dnb-avatar-theme-sbanken.min.css +1 -1
- package/es/components/avatar/style/themes/dnb-avatar-theme-sbanken.scss +5 -6
- package/es/components/avatar/style/themes/dnb-avatar-theme-ui.css +5 -5
- package/es/components/avatar/style/themes/dnb-avatar-theme-ui.min.css +1 -1
- package/es/components/avatar/style/themes/dnb-avatar-theme-ui.scss +5 -5
- package/es/components/badge/BadgeDocs.d.ts +2 -0
- package/es/components/badge/BadgeDocs.js +48 -0
- package/es/components/badge/BadgeDocs.js.map +1 -0
- package/es/components/breadcrumb/BreadcrumbDocs.d.ts +5 -0
- package/es/components/breadcrumb/BreadcrumbDocs.js +119 -0
- package/es/components/breadcrumb/BreadcrumbDocs.js.map +1 -0
- package/es/components/button/Button.d.ts +0 -3
- package/es/components/button/ButtonDocs.d.ts +1 -0
- package/es/components/button/ButtonDocs.js +7 -0
- package/es/components/button/ButtonDocs.js.map +1 -1
- package/es/components/date-picker/DatePickerAddon.js +1 -3
- package/es/components/date-picker/DatePickerAddon.js.map +1 -1
- package/es/components/date-picker/DatePickerCalc.d.ts +13 -0
- package/es/components/date-picker/DatePickerCalc.js +39 -0
- package/es/components/date-picker/DatePickerCalc.js.map +1 -1
- package/es/components/date-picker/DatePickerCalendar.js +13 -11
- package/es/components/date-picker/DatePickerCalendar.js.map +1 -1
- package/es/components/date-picker/DatePickerContext.d.ts +1 -1
- package/es/components/date-picker/DatePickerContext.js.map +1 -1
- package/es/components/date-picker/DatePickerProvider.js +2 -2
- package/es/components/date-picker/DatePickerProvider.js.map +1 -1
- package/es/components/date-picker/hooks/useViews.d.ts +2 -4
- package/es/components/date-picker/hooks/useViews.js +39 -25
- package/es/components/date-picker/hooks/useViews.js.map +1 -1
- package/es/components/dialog/DialogDocs.d.ts +1 -0
- package/es/components/dialog/DialogDocs.js +12 -0
- package/es/components/dialog/DialogDocs.js.map +1 -1
- package/es/components/drawer/DrawerDocs.d.ts +2 -0
- package/es/components/drawer/DrawerDocs.js +63 -0
- package/es/components/drawer/DrawerDocs.js.map +1 -0
- package/es/components/dropdown/DropdownDocs.d.ts +2 -0
- package/es/components/dropdown/DropdownDocs.js +23 -0
- package/es/components/dropdown/DropdownDocs.js.map +1 -0
- package/es/components/form-label/FormLabelDocs.d.ts +2 -0
- package/es/components/form-label/FormLabelDocs.js +53 -0
- package/es/components/form-label/FormLabelDocs.js.map +1 -0
- package/es/components/form-row/FormRow.d.ts +45 -0
- package/es/components/form-row/FormRowDocs.d.ts +2 -0
- package/es/components/form-row/FormRowDocs.js +83 -0
- package/es/components/form-row/FormRowDocs.js.map +1 -0
- package/es/components/form-set/FormSet.d.ts +18 -0
- package/es/components/form-set/FormSetDocs.d.ts +3 -0
- package/es/components/form-set/FormSetDocs.js +50 -0
- package/es/components/form-set/FormSetDocs.js.map +1 -0
- package/es/components/form-status/FormStatus.d.ts +18 -18
- package/es/components/form-status/FormStatusDocs.d.ts +2 -0
- package/es/components/form-status/FormStatusDocs.js +83 -0
- package/es/components/form-status/FormStatusDocs.js.map +1 -0
- package/es/components/global-error/GlobalError.d.ts +12 -0
- package/es/components/global-error/GlobalError.js +14 -6
- package/es/components/global-error/GlobalError.js.map +1 -1
- package/es/components/global-error/GlobalErrorDocs.js +14 -4
- package/es/components/global-error/GlobalErrorDocs.js.map +1 -1
- package/es/components/global-status/GlobalStatus.d.ts +37 -58
- package/es/components/global-status/GlobalStatusController.d.ts +0 -9
- package/es/components/global-status/GlobalStatusDocs.d.ts +6 -0
- package/es/components/global-status/GlobalStatusDocs.js +186 -0
- package/es/components/global-status/GlobalStatusDocs.js.map +1 -0
- package/es/components/heading/HeadingDocs.d.ts +2 -0
- package/es/components/heading/HeadingDocs.js +73 -0
- package/es/components/heading/HeadingDocs.js.map +1 -0
- package/es/components/help-button/HelpButtonDocs.d.ts +3 -0
- package/es/components/help-button/HelpButtonDocs.js +40 -0
- package/es/components/help-button/HelpButtonDocs.js.map +1 -0
- package/es/components/icon/IconDocs.d.ts +2 -0
- package/es/components/icon/IconDocs.js +53 -0
- package/es/components/icon/IconDocs.js.map +1 -0
- package/es/components/icon/IconPrimaryDocs.d.ts +2 -0
- package/es/components/icon/IconPrimaryDocs.js +18 -0
- package/es/components/icon/IconPrimaryDocs.js.map +1 -0
- package/es/components/info-card/InfoCard.d.ts +6 -1
- package/es/components/info-card/InfoCard.js +4 -3
- package/es/components/info-card/InfoCard.js.map +1 -1
- package/es/components/info-card/InfoCardDocs.js +8 -3
- package/es/components/info-card/InfoCardDocs.js.map +1 -1
- package/es/components/input/Input.d.ts +0 -21
- package/es/components/input/InputDocs.d.ts +1 -0
- package/es/components/input/InputDocs.js +32 -0
- package/es/components/input/InputDocs.js.map +1 -1
- package/es/components/input-masked/InputMasked.d.ts +0 -12
- package/es/components/input-masked/InputMaskedDocs.d.ts +1 -0
- package/es/components/input-masked/InputMaskedDocs.js +12 -0
- package/es/components/input-masked/InputMaskedDocs.js.map +1 -1
- package/es/components/input-masked/MultiInputMaskedDocs.d.ts +2 -0
- package/es/components/input-masked/MultiInputMaskedDocs.js +18 -0
- package/es/components/input-masked/MultiInputMaskedDocs.js.map +1 -0
- package/es/components/pagination/Pagination.d.ts +35 -33
- package/es/components/pagination/Pagination.js +2 -0
- package/es/components/pagination/Pagination.js.map +1 -1
- package/es/components/pagination/PaginationDocs.d.ts +3 -0
- package/es/components/pagination/PaginationDocs.js +185 -0
- package/es/components/pagination/PaginationDocs.js.map +1 -0
- package/es/components/pagination/PaginationHelpers.d.ts +0 -3
- package/es/components/pagination/PaginationInfinity.d.ts +0 -3
- package/es/components/pagination/PaginationProvider.js +1 -1
- package/es/components/pagination/PaginationProvider.js.map +1 -1
- package/es/components/radio/Radio.d.ts +12 -15
- package/es/components/radio/RadioDocs.d.ts +5 -0
- package/es/components/radio/RadioDocs.js +139 -0
- package/es/components/radio/RadioDocs.js.map +1 -0
- package/es/components/radio/RadioGroup.d.ts +0 -30
- package/es/components/skeleton/SkeletonDocs.d.ts +2 -0
- package/es/components/skeleton/SkeletonDocs.js +38 -0
- package/es/components/skeleton/SkeletonDocs.js.map +1 -0
- package/es/components/skeleton/SkeletonHelper.d.ts +0 -6
- package/es/components/skip-content/SkipContentDocs.d.ts +2 -0
- package/es/components/skip-content/SkipContentDocs.js +23 -0
- package/es/components/skip-content/SkipContentDocs.js.map +1 -0
- package/es/components/tag/TagDocs.d.ts +4 -0
- package/es/components/tag/TagDocs.js +87 -0
- package/es/components/tag/TagDocs.js.map +1 -0
- package/es/components/textarea/Textarea.d.ts +0 -12
- package/es/components/textarea/TextareaDocs.d.ts +1 -0
- package/es/components/textarea/TextareaDocs.js +22 -0
- package/es/components/textarea/TextareaDocs.js.map +1 -1
- package/es/components/timeline/TimelineDocs.d.ts +3 -0
- package/es/components/timeline/TimelineDocs.js +60 -0
- package/es/components/timeline/TimelineDocs.js.map +1 -0
- package/es/components/toggle-button/ToggleButton.d.ts +0 -3
- package/es/components/toggle-button/ToggleButtonDocs.d.ts +1 -0
- package/es/components/toggle-button/ToggleButtonDocs.js +7 -0
- package/es/components/toggle-button/ToggleButtonDocs.js.map +1 -1
- package/es/components/toggle-button/ToggleButtonGroup.d.ts +0 -3
- package/es/components/toggle-button/ToggleButtonGroupDocs.d.ts +1 -0
- package/es/components/toggle-button/ToggleButtonGroupDocs.js +7 -0
- package/es/components/toggle-button/ToggleButtonGroupDocs.js.map +1 -1
- package/es/components/tooltip/TooltipDocs.d.ts +2 -0
- package/es/components/tooltip/TooltipDocs.js +73 -0
- package/es/components/tooltip/TooltipDocs.js.map +1 -0
- package/es/components/upload/Upload.js +6 -4
- package/es/components/upload/Upload.js.map +1 -1
- package/es/components/upload/UploadDocs.js +5 -0
- package/es/components/upload/UploadDocs.js.map +1 -1
- package/es/components/upload/UploadFileList.js +3 -1
- package/es/components/upload/UploadFileList.js.map +1 -1
- package/es/components/upload/UploadFileListCell.d.ts +6 -1
- package/es/components/upload/UploadFileListCell.js +8 -5
- package/es/components/upload/UploadFileListCell.js.map +1 -1
- package/es/components/upload/types.d.ts +5 -0
- package/es/components/upload/types.js.map +1 -1
- package/es/components/upload/useUpload.d.ts +1 -0
- package/es/components/upload/useUpload.js +7 -1
- package/es/components/upload/useUpload.js.map +1 -1
- package/es/components/visually-hidden/VisuallyHiddenDocs.d.ts +2 -0
- package/es/components/visually-hidden/VisuallyHiddenDocs.js +13 -0
- package/es/components/visually-hidden/VisuallyHiddenDocs.js.map +1 -0
- package/es/extensions/forms/DataContext/Context.d.ts +6 -5
- package/es/extensions/forms/DataContext/Context.js.map +1 -1
- package/es/extensions/forms/DataContext/Provider/Provider.js +28 -34
- package/es/extensions/forms/DataContext/Provider/Provider.js.map +1 -1
- package/es/extensions/forms/Field/Date/Date.d.ts +1 -0
- package/es/extensions/forms/Field/Date/Date.js +2 -3
- package/es/extensions/forms/Field/Date/Date.js.map +1 -1
- package/es/extensions/forms/Field/Password/Password.js +2 -1
- package/es/extensions/forms/Field/Password/Password.js.map +1 -1
- package/es/extensions/forms/Field/Provider/useFieldProvider.d.ts +9 -3
- package/es/extensions/forms/Field/Upload/Upload.d.ts +1 -1
- package/es/extensions/forms/Field/Upload/Upload.js +10 -2
- package/es/extensions/forms/Field/Upload/Upload.js.map +1 -1
- package/es/extensions/forms/Form/SubmitConfirmation/SubmitConfirmation.js +4 -4
- package/es/extensions/forms/Form/SubmitConfirmation/SubmitConfirmation.js.map +1 -1
- package/es/extensions/forms/Form/Visibility/VisibilityDocs.js +1 -1
- package/es/extensions/forms/Form/Visibility/VisibilityDocs.js.map +1 -1
- package/es/extensions/forms/Form/Visibility/useVisibility.js +10 -14
- package/es/extensions/forms/Form/Visibility/useVisibility.js.map +1 -1
- package/es/extensions/forms/Value/Date/Date.d.ts +0 -6
- package/es/extensions/forms/Value/Date/Date.js +13 -34
- package/es/extensions/forms/Value/Date/Date.js.map +1 -1
- package/es/extensions/forms/Wizard/Container/WizardContainer.js +2 -2
- package/es/extensions/forms/Wizard/Container/WizardContainer.js.map +1 -1
- package/es/extensions/forms/hooks/useFieldProps.js +3 -4
- package/es/extensions/forms/hooks/useFieldProps.js.map +1 -1
- package/es/extensions/payment-card/PaymentCard.d.ts +7 -7
- package/es/extensions/payment-card/PaymentCardDocs.d.ts +5 -0
- package/es/extensions/payment-card/PaymentCardDocs.js +199 -0
- package/es/extensions/payment-card/PaymentCardDocs.js.map +1 -0
- package/es/fragments/scroll-view/ScrollViewDocs.d.ts +2 -0
- package/es/fragments/scroll-view/ScrollViewDocs.js +13 -0
- package/es/fragments/scroll-view/ScrollViewDocs.js.map +1 -0
- package/es/fragments/text-counter/TextCounterDocs.d.ts +2 -0
- package/es/fragments/text-counter/TextCounterDocs.js +23 -0
- package/es/fragments/text-counter/TextCounterDocs.js.map +1 -0
- package/es/shared/Eufemia.d.ts +1 -1
- package/es/shared/Eufemia.js +2 -2
- package/es/shared/Eufemia.js.map +1 -1
- package/es/shared/MediaQueryDocs.d.ts +2 -0
- package/es/shared/MediaQueryDocs.js +28 -0
- package/es/shared/MediaQueryDocs.js.map +1 -0
- package/es/shared/ThemeDocs.d.ts +2 -0
- package/es/shared/ThemeDocs.js +33 -0
- package/es/shared/ThemeDocs.js.map +1 -0
- package/es/shared/locales/en-GB.d.ts +1 -0
- package/es/shared/locales/en-GB.js +1 -0
- package/es/shared/locales/en-GB.js.map +1 -1
- package/es/shared/locales/en-US.d.ts +1 -0
- package/es/shared/locales/index.d.ts +2 -0
- package/es/shared/locales/nb-NO.d.ts +1 -0
- package/es/shared/locales/nb-NO.js +1 -0
- package/es/shared/locales/nb-NO.js.map +1 -1
- package/es/shared/locales/sv-SE.d.ts +1 -0
- package/es/shared/locales/sv-SE.js +1 -0
- package/es/shared/locales/sv-SE.js.map +1 -1
- package/es/style/core/scopes.scss +1 -1
- package/es/style/dnb-ui-basis.css +1 -1
- package/es/style/dnb-ui-basis.min.css +1 -1
- package/es/style/dnb-ui-body.css +1 -1
- package/es/style/dnb-ui-body.min.css +1 -1
- package/es/style/dnb-ui-components.css +8 -0
- package/es/style/dnb-ui-components.min.css +1 -1
- package/es/style/dnb-ui-core.css +1 -1
- package/es/style/dnb-ui-core.min.css +1 -1
- package/es/style/themes/theme-eiendom/eiendom-theme-components.css +13 -5
- package/es/style/themes/theme-eiendom/eiendom-theme-components.min.css +2 -2
- package/es/style/themes/theme-sbanken/sbanken-theme-components.css +13 -5
- package/es/style/themes/theme-sbanken/sbanken-theme-components.min.css +2 -2
- package/es/style/themes/theme-ui/ui-theme-components.css +13 -5
- package/es/style/themes/theme-ui/ui-theme-components.min.css +2 -2
- 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/extensions/forms/DataContext/Context.d.ts +6 -5
- package/extensions/forms/DataContext/Context.js.map +1 -1
- package/extensions/forms/DataContext/Provider/Provider.js +29 -35
- package/extensions/forms/DataContext/Provider/Provider.js.map +1 -1
- package/extensions/forms/Field/Date/Date.d.ts +1 -0
- package/extensions/forms/Field/Date/Date.js +2 -3
- package/extensions/forms/Field/Date/Date.js.map +1 -1
- package/extensions/forms/Field/Password/Password.js +2 -1
- package/extensions/forms/Field/Password/Password.js.map +1 -1
- package/extensions/forms/Field/Provider/useFieldProvider.d.ts +9 -3
- package/extensions/forms/Field/Upload/Upload.d.ts +1 -1
- package/extensions/forms/Field/Upload/Upload.js +10 -2
- package/extensions/forms/Field/Upload/Upload.js.map +1 -1
- package/extensions/forms/Form/SubmitConfirmation/SubmitConfirmation.js +4 -4
- package/extensions/forms/Form/SubmitConfirmation/SubmitConfirmation.js.map +1 -1
- package/extensions/forms/Form/Visibility/VisibilityDocs.js +1 -1
- package/extensions/forms/Form/Visibility/VisibilityDocs.js.map +1 -1
- package/extensions/forms/Form/Visibility/useVisibility.js +10 -14
- package/extensions/forms/Form/Visibility/useVisibility.js.map +1 -1
- package/extensions/forms/Value/Date/Date.d.ts +0 -6
- package/extensions/forms/Value/Date/Date.js +14 -36
- package/extensions/forms/Value/Date/Date.js.map +1 -1
- package/extensions/forms/Wizard/Container/WizardContainer.js +2 -2
- package/extensions/forms/Wizard/Container/WizardContainer.js.map +1 -1
- package/extensions/forms/hooks/useFieldProps.js +3 -4
- package/extensions/forms/hooks/useFieldProps.js.map +1 -1
- package/extensions/payment-card/PaymentCard.d.ts +7 -7
- package/extensions/payment-card/PaymentCardDocs.d.ts +5 -0
- package/extensions/payment-card/PaymentCardDocs.js +199 -0
- package/extensions/payment-card/PaymentCardDocs.js.map +1 -0
- package/fragments/scroll-view/ScrollViewDocs.d.ts +2 -0
- package/fragments/scroll-view/ScrollViewDocs.js +13 -0
- package/fragments/scroll-view/ScrollViewDocs.js.map +1 -0
- package/fragments/text-counter/TextCounterDocs.d.ts +2 -0
- package/fragments/text-counter/TextCounterDocs.js +23 -0
- package/fragments/text-counter/TextCounterDocs.js.map +1 -0
- package/package.json +1 -1
- package/shared/Eufemia.d.ts +1 -1
- package/shared/Eufemia.js +2 -2
- package/shared/Eufemia.js.map +1 -1
- package/shared/MediaQueryDocs.d.ts +2 -0
- package/shared/MediaQueryDocs.js +28 -0
- package/shared/MediaQueryDocs.js.map +1 -0
- package/shared/ThemeDocs.d.ts +2 -0
- package/shared/ThemeDocs.js +33 -0
- package/shared/ThemeDocs.js.map +1 -0
- package/shared/locales/en-GB.d.ts +1 -0
- package/shared/locales/en-GB.js +1 -0
- package/shared/locales/en-GB.js.map +1 -1
- package/shared/locales/en-US.d.ts +1 -0
- package/shared/locales/index.d.ts +2 -0
- package/shared/locales/nb-NO.d.ts +1 -0
- package/shared/locales/nb-NO.js +1 -0
- package/shared/locales/nb-NO.js.map +1 -1
- package/shared/locales/sv-SE.d.ts +1 -0
- package/shared/locales/sv-SE.js +1 -0
- package/shared/locales/sv-SE.js.map +1 -1
- package/style/core/scopes.scss +1 -1
- package/style/dnb-ui-basis.css +1 -1
- package/style/dnb-ui-basis.min.css +1 -1
- package/style/dnb-ui-body.css +1 -1
- package/style/dnb-ui-body.min.css +1 -1
- package/style/dnb-ui-components.css +8 -0
- package/style/dnb-ui-components.min.css +1 -1
- package/style/dnb-ui-core.css +1 -1
- package/style/dnb-ui-core.min.css +1 -1
- package/style/themes/theme-eiendom/eiendom-theme-components.css +13 -5
- package/style/themes/theme-eiendom/eiendom-theme-components.min.css +2 -2
- package/style/themes/theme-sbanken/sbanken-theme-components.css +13 -5
- package/style/themes/theme-sbanken/sbanken-theme-components.min.css +2 -2
- package/style/themes/theme-ui/ui-theme-components.css +13 -5
- package/style/themes/theme-ui/ui-theme-components.min.css +2 -2
- 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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GlobalStatusDocs.js","names":["GlobalStatusProperties","id","doc","type","status","title","text","children","items","icon","state","icon_size","show","autoclose","autoscroll","no_animation","delay","hide_close_button","close_text","status_anchor_text","omit_set_focus","omit_set_focus_on_update","skeleton","GlobalStatusAdvancedItemProperties","status_id","status_anchor_url","status_anchor_label","GlobalStatusControllerProperties","remove_on_unmount","GlobalStatusConfigurationObjectProperties","message","GlobalStatusEvents","on_open","on_show","on_close","on_hide","on_adjust"],"sources":["../../../../src/components/global-status/GlobalStatusDocs.ts"],"sourcesContent":["import { PropertiesTableProps } from '../../shared/types'\n\nexport const GlobalStatusProperties: PropertiesTableProps = {\n id: {\n doc: 'the main ID. Defaults to `main`.',\n type: 'string',\n status: 'optional',\n },\n title: {\n doc: 'the title appears as a part of the status content. Defaults to `En feil har skjedd`.',\n type: 'React.ReactNode',\n status: 'optional',\n },\n text: {\n doc: 'the text appears as the status content. Besides plain text, you can send in a React component as well. Defaults to `null`.',\n type: 'React.ReactNode',\n status: 'optional',\n },\n children: {\n doc: 'the text appears as the status content. Besides plain text, you can send in a React component as well. Defaults to `null`.',\n type: 'React.ReactNode',\n status: 'optional',\n },\n items: {\n doc: 'the items (list items) appear as a part of the status content. you can both use an JSON array, or a vanilla array with a string or an object content. See **Item Object** example below.',\n type: 'Array<GlobalStatusItem>',\n status: 'optional',\n },\n icon: {\n doc: 'the icon shown before the status title. Defaults to `exclamation`.',\n type: 'React.ReactNode',\n status: 'optional',\n },\n state: {\n doc: 'defines the visual appearance of the status. There are four main statuses `error`, `warning`, `info` and `success`. The default status is `error`.',\n type: ['error', 'info', 'warning', 'success'],\n status: 'optional',\n },\n icon_size: {\n doc: 'the icon size of the title icon shows. Defaults to `medium`.',\n type: 'string',\n status: 'optional',\n },\n show: {\n doc: 'set to `true` or `false` to manually make the global status visible. Defaults to `true`.',\n type: 'boolean',\n status: 'optional',\n },\n autoclose: {\n doc: 'set to `true` to automatically close the global status if there are no more left items in the provider stack. Defaults to `true`.',\n type: 'boolean',\n status: 'optional',\n },\n autoscroll: {\n doc: 'set to `true` to automatically scroll the page to the appeared global status. Defaults to `true`.',\n type: 'boolean',\n status: 'optional',\n },\n no_animation: {\n doc: 'set to `true` to disable the show/hide/slide/fade/grow/shrink animation. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n delay: {\n doc: 'defines the delay on how long the automated visibility should wait before it appears to the user. Defaults to `200ms`.',\n type: ['number', 'string'],\n status: 'optional',\n },\n hide_close_button: {\n doc: 'set to `true` if the close button should be hidden for the user. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n close_text: {\n doc: 'text of the close button. Defaults to `Lukk`.',\n type: 'React.ReactNode',\n status: 'optional',\n },\n status_anchor_text: {\n doc: 'defines the anchor text showing up after every item, in case there is a `status_id` defined. Defaults to `Gå til %s`. The `%s` represents the optional and internal handled label addition.',\n type: 'React.ReactNode',\n status: 'optional',\n },\n omit_set_focus: {\n doc: 'set to `true` to omit setting the focus during visibility. Defaults to `false`. Additionally, there is `omit_set_focus_on_update` which is set to `true` by default.',\n type: 'boolean',\n status: 'optional',\n },\n omit_set_focus_on_update: {\n doc: 'set to `true` to omit setting the focus during update. Defaults to `true`.',\n type: 'boolean',\n status: 'optional',\n },\n skeleton: {\n doc: 'If set to `true`, an overlaying skeleton with animation will be shown.',\n type: 'boolean',\n status: 'optional',\n },\n '[Space](/uilib/layout/space/properties)': {\n doc: 'Spacing properties like `top` or `bottom` are supported.',\n type: ['string', 'object'],\n status: 'optional',\n },\n}\n\nexport const GlobalStatusAdvancedItemProperties: PropertiesTableProps = {\n text: {\n doc: 'the text appears as the status content. Beside plain text, you can send in a React component as well.',\n type: 'string',\n status: 'required',\n },\n status_id: {\n doc: 'defines an unique ID so the message can be either updated or removed individual.',\n type: 'string',\n status: 'required',\n },\n status_anchor_url: {\n doc: 'Use `status_anchor_url={true}` to enable the go-to link, defined as a url hash using the `status_id`. Or provide it with an actual url: `status_anchor_url=\"https://\"`.',\n type: 'string',\n status: 'optional',\n },\n status_anchor_text: {\n doc: 'defines the anchor text showing up after every item. Defaults to `Gå til %s`. The `%s` represents the optional and internal handled label addition.',\n type: 'string',\n status: 'optional',\n },\n status_anchor_label: {\n doc: 'adds an additional text to the anchor (replaces `%s`), showing up after every item. Is used by default by other form components, if they have an `label`.',\n type: 'string',\n status: 'optional',\n },\n}\n\nexport const GlobalStatusControllerProperties: PropertiesTableProps = {\n id: {\n doc: 'the main ID. Defaults to `main`.',\n type: 'string',\n status: 'optional',\n },\n status_id: {\n doc: 'define a new stack ID so you can remove it with the same ID later on. Defaults to `null`.',\n type: 'string',\n status: 'optional',\n },\n remove_on_unmount: {\n doc: 'set to `true` if you want that the component `<GlobalStatus.Add remove_on_unmount={true} ... />` should automatically remove the stacked status from the target **GlobalStatus** on component unmount. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n}\n\nexport const GlobalStatusConfigurationObjectProperties: PropertiesTableProps =\n {\n id: {\n doc: 'the main ID. Defaults to `main`.',\n type: 'string',\n status: 'optional',\n },\n message: {\n doc: 'the text appears as the status content. Besides plain text, you can send in a React component as well. Defaults to `null`.',\n type: 'React.ReactNode',\n status: 'optional',\n },\n }\n\nexport const GlobalStatusEvents: PropertiesTableProps = {\n on_open: {\n doc: 'gets triggered the first time the GlobalStatus appears on the screen. In other words, it has to have been hidden before. Returns `{ id, status_id, ...properties }`.',\n type: 'function',\n status: 'optional',\n },\n on_show: {\n doc: 'gets triggered for the first time and for every new content update the GlobalStatus gets. Returns `{ id, status_id, ...properties }`.',\n type: 'function',\n status: 'optional',\n },\n on_close: {\n doc: 'gets triggered once the GlobalStatus disappears from the screen. Works only if `no_animation` is not `true`. Returns `{ id, status_id, ...properties }`.',\n type: 'function',\n status: 'optional',\n },\n on_hide: {\n doc: 'gets triggered once the GlobalStatus is getting closed/hidden by the user. Returns `{ id, status_id, ...properties }`.',\n type: 'function',\n status: 'optional',\n },\n on_adjust: {\n doc: 'gets triggered once the GlobalStatus is getting new content by the user. Returns `{ id, status_id, ...properties }`.',\n type: 'function',\n status: 'optional',\n },\n}\n"],"mappings":"AAEA,OAAO,MAAMA,sBAA4C,GAAG;EAC1DC,EAAE,EAAE;IACFC,GAAG,EAAE,kCAAkC;IACvCC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDC,KAAK,EAAE;IACLH,GAAG,EAAE,sFAAsF;IAC3FC,IAAI,EAAE,iBAAiB;IACvBC,MAAM,EAAE;EACV,CAAC;EACDE,IAAI,EAAE;IACJJ,GAAG,EAAE,4HAA4H;IACjIC,IAAI,EAAE,iBAAiB;IACvBC,MAAM,EAAE;EACV,CAAC;EACDG,QAAQ,EAAE;IACRL,GAAG,EAAE,4HAA4H;IACjIC,IAAI,EAAE,iBAAiB;IACvBC,MAAM,EAAE;EACV,CAAC;EACDI,KAAK,EAAE;IACLN,GAAG,EAAE,0LAA0L;IAC/LC,IAAI,EAAE,yBAAyB;IAC/BC,MAAM,EAAE;EACV,CAAC;EACDK,IAAI,EAAE;IACJP,GAAG,EA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ClOC,IAAI,EAAE,SAAS;IACfC,MAAM,EAAE;EACV;AACF,CAAC;AAED,OAAO,MAAMyB,yCAA+D,GAC1E;EACE5B,EAAE,EAAE;IACFC,GAAG,EAAE,kCAAkC;IACvCC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACD0B,OAAO,EAAE;IACP5B,GAAG,EAAE,4HAA4H;IACjIC,IAAI,EAAE,iBAAiB;IACvBC,MAAM,EAAE;EACV;AACF,CAAC;AAEH,OAAO,MAAM2B,kBAAwC,GAAG;EACtDC,OAAO,EAAE;IACP9B,GAAG,EAAE,sKAAsK;IAC3KC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV,CAAC;EACD6B,OAAO,EAAE;IACP/B,GAAG,EAAE,uIAAuI;IAC5IC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV,CAAC;EACD8B,QAAQ,EAAE;IACRhC,GAAG,EAAE,0JAA0J;IAC/JC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV,CAAC;EACD+B,OAAO,EAAE;IACPjC,GAAG,EAAE,wHAAwH;IAC7HC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV,CAAC;EACDgC,SAAS,EAAE;IACTlC,GAAG,EAAE,sHAAsH;IAC3HC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV;AACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
export const HeadingProperties = {
|
|
2
|
+
text: {
|
|
3
|
+
doc: 'A heading, can be text or React.Node.',
|
|
4
|
+
type: 'React.Node',
|
|
5
|
+
status: 'optional'
|
|
6
|
+
},
|
|
7
|
+
children: {
|
|
8
|
+
doc: 'A heading, can be text or React.Node.',
|
|
9
|
+
type: 'React.Node',
|
|
10
|
+
status: 'optional'
|
|
11
|
+
},
|
|
12
|
+
size: {
|
|
13
|
+
doc: 'Define the typography [font-size](/uilib/typography/font-size) by a size _type_, e.g. `x-large`. Defaults to the predefined heading sizes.',
|
|
14
|
+
type: ['xx-large', 'x-large', 'large', 'medium', 'basis', 'small', 'x-small'],
|
|
15
|
+
status: 'optional'
|
|
16
|
+
},
|
|
17
|
+
level: {
|
|
18
|
+
doc: 'Overwrite the automated level handling to use a specific value to ensure correct level hierarchy.',
|
|
19
|
+
type: ['1', '2', '3', '4', '5', '6'],
|
|
20
|
+
status: 'optional'
|
|
21
|
+
},
|
|
22
|
+
increase: {
|
|
23
|
+
doc: 'If set to `true`, the heading level will be incremented by 1.',
|
|
24
|
+
type: 'boolean',
|
|
25
|
+
status: 'optional'
|
|
26
|
+
},
|
|
27
|
+
decrease: {
|
|
28
|
+
doc: 'If set to `true`, the heading level will be decremented by 1.',
|
|
29
|
+
type: 'boolean',
|
|
30
|
+
status: 'optional'
|
|
31
|
+
},
|
|
32
|
+
inherit: {
|
|
33
|
+
doc: 'If set to `true`, the heading last used level will be inherited. Also from inside a level context.',
|
|
34
|
+
type: 'boolean',
|
|
35
|
+
status: 'optional'
|
|
36
|
+
},
|
|
37
|
+
reset: {
|
|
38
|
+
doc: 'If set to `true`, the heading level will be reset to 2. You can give it a custom level if you need to, e.g. `reset(1)`.',
|
|
39
|
+
type: ['boolean', 'number'],
|
|
40
|
+
status: 'optional'
|
|
41
|
+
},
|
|
42
|
+
skip_correction: {
|
|
43
|
+
doc: 'If set to `true`, the heading will not be corrected and warnings will not be shown. Warnings do not show up in **production builds** else either',
|
|
44
|
+
type: 'boolean',
|
|
45
|
+
status: 'optional'
|
|
46
|
+
},
|
|
47
|
+
debug: {
|
|
48
|
+
doc: 'If set to `true`, the content will have a prefix, showing the heading level.',
|
|
49
|
+
type: ['boolean', 'function'],
|
|
50
|
+
status: 'optional'
|
|
51
|
+
},
|
|
52
|
+
debug_counter: {
|
|
53
|
+
doc: 'If set to `true`, the content will have both a prefix and a JSON log attached to both headings and level contexts.',
|
|
54
|
+
type: ['boolean', 'function'],
|
|
55
|
+
status: 'optional'
|
|
56
|
+
},
|
|
57
|
+
element: {
|
|
58
|
+
doc: 'define what HTML element should be used. If you use, e.g. a `span`, then `role="heading"` and `aria-level` gets set. Defaults to semantic heading element.',
|
|
59
|
+
type: ['string', 'React.Element'],
|
|
60
|
+
status: 'optional'
|
|
61
|
+
},
|
|
62
|
+
skeleton: {
|
|
63
|
+
doc: 'If set to `true`, an overlaying skeleton with animation will be shown.',
|
|
64
|
+
type: 'boolean',
|
|
65
|
+
status: 'optional'
|
|
66
|
+
},
|
|
67
|
+
'[Space](/uilib/layout/space/properties)': {
|
|
68
|
+
doc: 'Spacing properties like `top` or `bottom` are supported.',
|
|
69
|
+
type: ['string', 'object'],
|
|
70
|
+
status: 'optional'
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
//# sourceMappingURL=HeadingDocs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HeadingDocs.js","names":["HeadingProperties","text","doc","type","status","children","size","level","increase","decrease","inherit","reset","skip_correction","debug","debug_counter","element","skeleton"],"sources":["../../../../src/components/heading/HeadingDocs.ts"],"sourcesContent":["import { PropertiesTableProps } from '../../shared/types'\n\nexport const HeadingProperties: PropertiesTableProps = {\n text: {\n doc: 'A heading, can be text or React.Node.',\n type: 'React.Node',\n status: 'optional',\n },\n children: {\n doc: 'A heading, can be text or React.Node.',\n type: 'React.Node',\n status: 'optional',\n },\n size: {\n doc: 'Define the typography [font-size](/uilib/typography/font-size) by a size _type_, e.g. `x-large`. Defaults to the predefined heading sizes.',\n type: [\n 'xx-large',\n 'x-large',\n 'large',\n 'medium',\n 'basis',\n 'small',\n 'x-small',\n ],\n status: 'optional',\n },\n level: {\n doc: 'Overwrite the automated level handling to use a specific value to ensure correct level hierarchy.',\n type: ['1', '2', '3', '4', '5', '6'],\n status: 'optional',\n },\n increase: {\n doc: 'If set to `true`, the heading level will be incremented by 1.',\n type: 'boolean',\n status: 'optional',\n },\n decrease: {\n doc: 'If set to `true`, the heading level will be decremented by 1.',\n type: 'boolean',\n status: 'optional',\n },\n inherit: {\n doc: 'If set to `true`, the heading last used level will be inherited. Also from inside a level context.',\n type: 'boolean',\n status: 'optional',\n },\n reset: {\n doc: 'If set to `true`, the heading level will be reset to 2. You can give it a custom level if you need to, e.g. `reset(1)`.',\n type: ['boolean', 'number'],\n status: 'optional',\n },\n skip_correction: {\n doc: 'If set to `true`, the heading will not be corrected and warnings will not be shown. Warnings do not show up in **production builds** else either',\n type: 'boolean',\n status: 'optional',\n },\n debug: {\n doc: 'If set to `true`, the content will have a prefix, showing the heading level.',\n type: ['boolean', 'function'],\n status: 'optional',\n },\n debug_counter: {\n doc: 'If set to `true`, the content will have both a prefix and a JSON log attached to both headings and level contexts.',\n type: ['boolean', 'function'],\n status: 'optional',\n },\n element: {\n doc: 'define what HTML element should be used. If you use, e.g. a `span`, then `role=\"heading\"` and `aria-level` gets set. Defaults to semantic heading element.',\n type: ['string', 'React.Element'],\n status: 'optional',\n },\n skeleton: {\n doc: 'If set to `true`, an overlaying skeleton with animation will be shown.',\n type: 'boolean',\n status: 'optional',\n },\n '[Space](/uilib/layout/space/properties)': {\n doc: 'Spacing properties like `top` or `bottom` are supported.',\n type: ['string', 'object'],\n status: 'optional',\n },\n}\n"],"mappings":"AAEA,OAAO,MAAMA,iBAAuC,GAAG;EACrDC,IAAI,EAAE;IACJC,GAAG,EAAE,uCAAuC;IAC5CC,IAAI,EAAE,YAAY;IAClBC,MAAM,EAAE;EACV,CAAC;EACDC,QAAQ,EAAE;IACRH,GAAG,EAAE,uCAAuC;IAC5CC,IAAI,EAAE,YAAY;IAClBC,MAAM,EAAE;EACV,CAAC;EACDE,IAAI,EAAE;IACJJ,GAAG,EAAE,4IAA4I;IACjJC,IAAI,EAAE,CACJ,UAAU,EACV,SAAS,EACT,OAAO,EACP,QAAQ,EACR,OAAO,EACP,OAAO,EACP,SAAS,CACV;IACDC,MAAM,EAAE;EACV,CAAC;EACDG,KAAK,EAAE;IACLL,GAAG,EAAE,mGAAmG;IACxGC,I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MAAM,EAAE;EACV;AACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export const HelpButtonProperties = {
|
|
2
|
+
children: {
|
|
3
|
+
doc: 'the content to show.',
|
|
4
|
+
type: 'React.Node',
|
|
5
|
+
status: 'optional'
|
|
6
|
+
},
|
|
7
|
+
title: {
|
|
8
|
+
doc: 'the content title. Defaults to `Hjelpetekst` (HelpButton.title).',
|
|
9
|
+
type: 'string',
|
|
10
|
+
status: 'optional'
|
|
11
|
+
},
|
|
12
|
+
icon: {
|
|
13
|
+
doc: 'To be included in the button. [Primary Icons](/icons/primary) can be set as a string (e.g. `icon="information"`), other icons should be set as React elements.',
|
|
14
|
+
type: ['string', 'React.ReactNode'],
|
|
15
|
+
status: 'optional'
|
|
16
|
+
},
|
|
17
|
+
render: {
|
|
18
|
+
doc: 'accepts a function that returns a valid React Element. See example below.',
|
|
19
|
+
type: 'function',
|
|
20
|
+
status: 'optional'
|
|
21
|
+
},
|
|
22
|
+
'[Button](/uilib/components/button/properties)': {
|
|
23
|
+
doc: 'All button properties.',
|
|
24
|
+
type: 'Various',
|
|
25
|
+
status: 'optional'
|
|
26
|
+
},
|
|
27
|
+
'[Space](/uilib/layout/space/properties)': {
|
|
28
|
+
doc: 'Spacing properties like `top` or `bottom` are supported.',
|
|
29
|
+
type: ['string', 'object'],
|
|
30
|
+
status: 'optional'
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
export const HelpButtonEvents = {
|
|
34
|
+
'[Button](/uilib/components/button/events)': {
|
|
35
|
+
doc: 'accepts all Button events.',
|
|
36
|
+
type: 'Various',
|
|
37
|
+
status: 'optional'
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=HelpButtonDocs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HelpButtonDocs.js","names":["HelpButtonProperties","children","doc","type","status","title","icon","render","HelpButtonEvents"],"sources":["../../../../src/components/help-button/HelpButtonDocs.ts"],"sourcesContent":["import { PropertiesTableProps } from '../../shared/types'\n\nexport const HelpButtonProperties: PropertiesTableProps = {\n children: {\n doc: 'the content to show.',\n type: 'React.Node',\n status: 'optional',\n },\n title: {\n doc: 'the content title. Defaults to `Hjelpetekst` (HelpButton.title).',\n type: 'string',\n status: 'optional',\n },\n icon: {\n doc: 'To be included in the button. [Primary Icons](/icons/primary) can be set as a string (e.g. `icon=\"information\"`), other icons should be set as React elements.',\n type: ['string', 'React.ReactNode'],\n status: 'optional',\n },\n render: {\n doc: 'accepts a function that returns a valid React Element. See example below.',\n type: 'function',\n status: 'optional',\n },\n '[Button](/uilib/components/button/properties)': {\n doc: 'All button properties.',\n type: 'Various',\n status: 'optional',\n },\n '[Space](/uilib/layout/space/properties)': {\n doc: 'Spacing properties like `top` or `bottom` are supported.',\n type: ['string', 'object'],\n status: 'optional',\n },\n}\n\nexport const HelpButtonEvents: PropertiesTableProps = {\n '[Button](/uilib/components/button/events)': {\n doc: 'accepts all Button events.',\n type: 'Various',\n status: 'optional',\n },\n}\n"],"mappings":"AAEA,OAAO,MAAMA,oBAA0C,GAAG;EACxDC,QAAQ,EAAE;IACRC,GAAG,EAAE,sBAAsB;IAC3BC,IAAI,EAAE,YAAY;IAClBC,MAAM,EAAE;EACV,CAAC;EACDC,KAAK,EAAE;IACLH,GAAG,EAAE,kEAAkE;IACvEC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDE,IAAI,EAAE;IACJJ,GAAG,EAAE,gKAAgK;IACrKC,IAAI,EAAE,CAAC,QAAQ,EAAE,iBAAiB,CAAC;IACnCC,MAAM,EAAE;EACV,CAAC;EACDG,MAAM,EAAE;IACNL,GAAG,EAAE,2EAA2E;IAChFC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV,CAAC;EACD,+CAA+C,EAAE;IAC/CF,GAAG,EAAE,wBAAwB;IAC7BC,IAAI,EAAE,SAAS;IACfC,MAAM,EAAE;EACV,CAAC;EACD,yCAAyC,EAAE;IACzCF,GAAG,EAAE,0DAA0D;IAC/DC,IAAI,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAC1BC,MAAM,EAAE;EACV;AACF,CAAC;AAED,OAAO,MAAMI,gBAAsC,GAAG;EACpD,2CAA2C,EAAE;IAC3CN,GAAG,EAAE,4BAA4B;IACjCC,IAAI,EAAE,SAAS;IACfC,MAAM,EAAE;EACV;AACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export const IconProperties = {
|
|
2
|
+
icon: {
|
|
3
|
+
doc: 'a React SVG Component.',
|
|
4
|
+
type: 'React.ReactNode',
|
|
5
|
+
status: 'required'
|
|
6
|
+
},
|
|
7
|
+
title: {
|
|
8
|
+
doc: 'Use a title to provide extra information about the icon used.',
|
|
9
|
+
type: 'string',
|
|
10
|
+
status: 'optional'
|
|
11
|
+
},
|
|
12
|
+
border: {
|
|
13
|
+
doc: 'use `true` to display a rounded border with an inherited color. Keep in mind that the icon will have a larger total width and height of `+0.5em`.',
|
|
14
|
+
type: 'boolean',
|
|
15
|
+
status: 'optional'
|
|
16
|
+
},
|
|
17
|
+
alt: {
|
|
18
|
+
doc: 'the alternative label (text version) of the icon. Defaults to the imported icon name.',
|
|
19
|
+
type: 'string',
|
|
20
|
+
status: 'optional'
|
|
21
|
+
},
|
|
22
|
+
size: {
|
|
23
|
+
doc: 'the dimension of the icon. This will be the `viewBox` and represent `width` and `height`. Defaults to `16`. You can use `small`,`medium`, `large` or `auto`. Auto will enable that the icon size gets inherited by the parent HTML element if it provides a `font-size`.',
|
|
24
|
+
type: ['small', 'medium', 'large', 'default', 'x-large', 'xx-large', 'auto', 'basis', 'number'],
|
|
25
|
+
status: 'optional'
|
|
26
|
+
},
|
|
27
|
+
color: {
|
|
28
|
+
doc: 'the color can be any valid color property, such as Hex, RGB or preferable – any CSS variable from the [colors table](/uilib/usage/customisation/colors), e.g. `var(--color-ocean-green)`. Default is no color, which means `--color-black-80`.',
|
|
29
|
+
type: 'Various',
|
|
30
|
+
status: 'optional'
|
|
31
|
+
},
|
|
32
|
+
inheritColor: {
|
|
33
|
+
doc: 'Defaults to `true`. Set to `false` if you do not want to inherit the color by `currentColor`.',
|
|
34
|
+
type: 'boolean',
|
|
35
|
+
status: 'optional'
|
|
36
|
+
},
|
|
37
|
+
modifier: {
|
|
38
|
+
doc: 'modifier class to define. Will result in: `dnb-icon--${modifier}`.',
|
|
39
|
+
type: 'string',
|
|
40
|
+
status: 'optional'
|
|
41
|
+
},
|
|
42
|
+
skeleton: {
|
|
43
|
+
doc: 'If set to `true`, an overlaying skeleton with animation will be shown.',
|
|
44
|
+
type: 'boolean',
|
|
45
|
+
status: 'optional'
|
|
46
|
+
},
|
|
47
|
+
'[Space](/uilib/layout/space/properties)': {
|
|
48
|
+
doc: 'Spacing properties like `top` or `bottom` are supported.',
|
|
49
|
+
type: ['string', 'object'],
|
|
50
|
+
status: 'optional'
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
//# sourceMappingURL=IconDocs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconDocs.js","names":["IconProperties","icon","doc","type","status","title","border","alt","size","color","inheritColor","modifier","skeleton"],"sources":["../../../../src/components/icon/IconDocs.ts"],"sourcesContent":["import { PropertiesTableProps } from '../../shared/types'\n\nexport const IconProperties: PropertiesTableProps = {\n icon: {\n doc: 'a React SVG Component.',\n type: 'React.ReactNode',\n status: 'required',\n },\n title: {\n doc: 'Use a title to provide extra information about the icon used.',\n type: 'string',\n status: 'optional',\n },\n border: {\n doc: 'use `true` to display a rounded border with an inherited color. Keep in mind that the icon will have a larger total width and height of `+0.5em`.',\n type: 'boolean',\n status: 'optional',\n },\n alt: {\n doc: 'the alternative label (text version) of the icon. Defaults to the imported icon name.',\n type: 'string',\n status: 'optional',\n },\n size: {\n doc: 'the dimension of the icon. This will be the `viewBox` and represent `width` and `height`. Defaults to `16`. You can use `small`,`medium`, `large` or `auto`. Auto will enable that the icon size gets inherited by the parent HTML element if it provides a `font-size`.',\n type: [\n 'small',\n 'medium',\n 'large',\n 'default',\n 'x-large',\n 'xx-large',\n 'auto',\n 'basis',\n 'number',\n ],\n status: 'optional',\n },\n color: {\n doc: 'the color can be any valid color property, such as Hex, RGB or preferable – any CSS variable from the [colors table](/uilib/usage/customisation/colors), e.g. `var(--color-ocean-green)`. Default is no color, which means `--color-black-80`.',\n type: 'Various',\n status: 'optional',\n },\n inheritColor: {\n doc: 'Defaults to `true`. Set to `false` if you do not want to inherit the color by `currentColor`.',\n type: 'boolean',\n status: 'optional',\n },\n modifier: {\n doc: 'modifier class to define. Will result in: `dnb-icon--${modifier}`.',\n type: 'string',\n status: 'optional',\n },\n skeleton: {\n doc: 'If set to `true`, an overlaying skeleton with animation will be shown.',\n type: 'boolean',\n status: 'optional',\n },\n '[Space](/uilib/layout/space/properties)': {\n doc: 'Spacing properties like `top` or `bottom` are supported.',\n type: ['string', 'object'],\n status: 'optional',\n },\n}\n"],"mappings":"AAEA,OAAO,MAAMA,cAAoC,GAAG;EAClDC,IAAI,EAAE;IACJC,GAAG,EAAE,wBAAwB;IAC7BC,IAAI,EAAE,iBAAiB;IACvBC,MAAM,EAAE;EACV,CAAC;EACDC,KAAK,EAAE;IACLH,GAAG,EAAE,+DAA+D;IACpEC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDE,MAAM,EAAE;IACNJ,GAAG,EAAE,mJAAmJ;IACxJC,IAAI,EAAE,SAAS;IACfC,MAAM,EAAE;EACV,CAAC;EACDG,GAAG,EAAE;IACHL,GAAG,EAAE,uFAAuF;IAC5FC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDI,IAAI,EAAE;IACJN,GAAG,EAAE,0QAA0Q;IAC/QC,IAAI,EAAE,CACJ,OAAO,EACP,QAAQ,EACR,OAAO,EACP,SAAS,EACT,SAAS,EACT,UAAU,EACV,MAAM,EACN,OAAO,EACP,QAAQ,CACT;IACDC,MAAM,EAAE;EACV,CAAC;EACDK,KAAK,EAAE;IACLP,GAAG,EAAE,gPAAgP;IACrPC,IAAI,EAAE,SAAS;IACfC,MAAM,EAAE;EACV,CAAC;EACDM,YAAY,EAAE;IACZR,GAAG,EAAE,+FAA+F;IACpGC,IAAI,EAAE,SAAS;IACfC,MAAM,EAAE;EACV,CAAC;EACDO,QAAQ,EAAE;IACRT,GAAG,EAAE,oEAAoE;IACzEC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDQ,QAAQ,EAAE;IACRV,GAAG,EAAE,wEAAwE;IAC7EC,IAAI,EAAE,SAAS;IACfC,MAAM,EAAE;EACV,CAAC;EACD,yCAAyC,EAAE;IACzCF,GAAG,EAAE,0DAA0D;IAC/DC,IAAI,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAC1BC,MAAM,EAAE;EACV;AACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export const IconPrimaryProperties = {
|
|
2
|
+
icon: {
|
|
3
|
+
doc: 'Defines the [primary icon](/icons/primary) to be used, as a string.',
|
|
4
|
+
type: 'string',
|
|
5
|
+
status: 'required'
|
|
6
|
+
},
|
|
7
|
+
'[Icon](/uilib/components/icon/properties)': {
|
|
8
|
+
doc: 'accepts all default icon properties.',
|
|
9
|
+
type: 'Various',
|
|
10
|
+
status: 'optional'
|
|
11
|
+
},
|
|
12
|
+
'[Space](/uilib/layout/space/properties)': {
|
|
13
|
+
doc: 'Spacing properties like `top` or `bottom` are supported.',
|
|
14
|
+
type: ['string', 'object'],
|
|
15
|
+
status: 'optional'
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=IconPrimaryDocs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconPrimaryDocs.js","names":["IconPrimaryProperties","icon","doc","type","status"],"sources":["../../../../src/components/icon/IconPrimaryDocs.ts"],"sourcesContent":["import { PropertiesTableProps } from '../../shared/types'\n\nexport const IconPrimaryProperties: PropertiesTableProps = {\n icon: {\n doc: 'Defines the [primary icon](/icons/primary) to be used, as a string.',\n type: 'string',\n status: 'required',\n },\n '[Icon](/uilib/components/icon/properties)': {\n doc: 'accepts all default icon properties.',\n type: 'Various',\n status: 'optional',\n },\n '[Space](/uilib/layout/space/properties)': {\n doc: 'Spacing properties like `top` or `bottom` are supported.',\n type: ['string', 'object'],\n status: 'optional',\n },\n}\n"],"mappings":"AAEA,OAAO,MAAMA,qBAA2C,GAAG;EACzDC,IAAI,EAAE;IACJC,GAAG,EAAE,qEAAqE;IAC1EC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACD,2CAA2C,EAAE;IAC3CF,GAAG,EAAE,sCAAsC;IAC3CC,IAAI,EAAE,SAAS;IACfC,MAAM,EAAE;EACV,CAAC;EACD,yCAAyC,EAAE;IACzCF,GAAG,EAAE,0DAA0D;IAC/DC,IAAI,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAC1BC,MAAM,EAAE;EACV;AACF,CAAC","ignoreList":[]}
|
|
@@ -48,7 +48,12 @@ export interface InfoCardProps {
|
|
|
48
48
|
* Image src, will replace the 'icon' with the image
|
|
49
49
|
* Default: null
|
|
50
50
|
*/
|
|
51
|
-
text
|
|
51
|
+
text?: React.ReactNode;
|
|
52
|
+
/**
|
|
53
|
+
* Can be used to add custom content, which is displayed/rendered between the `text` property and buttons.
|
|
54
|
+
* Default: null
|
|
55
|
+
*/
|
|
56
|
+
children?: React.ReactNode;
|
|
52
57
|
/**
|
|
53
58
|
* Component title
|
|
54
59
|
* Default: null
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
4
4
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
5
5
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
6
|
-
const _excluded = ["alt", "centered", "dropShadow", "title", "skeleton", "stretch", "className", "icon", "src", "imgProps", "text", "onClose", "onAccept", "closeButtonText", "acceptButtonText", "closeButtonAttributes", "acceptButtonAttributes"];
|
|
6
|
+
const _excluded = ["alt", "centered", "dropShadow", "title", "skeleton", "stretch", "className", "icon", "src", "imgProps", "text", "children", "onClose", "onAccept", "closeButtonText", "acceptButtonText", "closeButtonAttributes", "acceptButtonAttributes"];
|
|
7
7
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8
8
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
9
9
|
import React, { useCallback } from 'react';
|
|
@@ -42,6 +42,7 @@ const InfoCard = localProps => {
|
|
|
42
42
|
src,
|
|
43
43
|
imgProps,
|
|
44
44
|
text,
|
|
45
|
+
children,
|
|
45
46
|
onClose,
|
|
46
47
|
onAccept,
|
|
47
48
|
closeButtonText,
|
|
@@ -107,11 +108,11 @@ const InfoCard = localProps => {
|
|
|
107
108
|
size: "small",
|
|
108
109
|
modifier: "medium",
|
|
109
110
|
bottom: "x-small"
|
|
110
|
-
}, title), React.createElement(P, {
|
|
111
|
+
}, title), text && React.createElement(P, {
|
|
111
112
|
size: "small",
|
|
112
113
|
className: "dnb-info-card__text",
|
|
113
114
|
bottom: "0"
|
|
114
|
-
}, text), getButtons())));
|
|
115
|
+
}, text), children, getButtons())));
|
|
115
116
|
};
|
|
116
117
|
InfoCard._supportsSpacingProps = true;
|
|
117
118
|
export default InfoCard;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InfoCard.js","names":["React","useCallback","classnames","Button","IconPrimary","Img","Space","P","lightbulb_medium","LightbulbIcon","createSpacingClasses","Context","Provider","extendPropsWithContext","validateDOMAttributes","defaultProps","centered","dropShadow","skeleton","icon","InfoCard","localProps","_IconPrimary","context","useContext","allProps","alt","title","stretch","className","src","imgProps","text","onClose","onAccept","closeButtonText","acceptButtonText","closeButtonAttributes","acceptButtonAttributes","props","_objectWithoutProperties","_excluded","spacingClasses","closeButtonIsHidden","acceptButtonIsHidden","getButtons","createElement","_extends","top","type","variant","right","on_click","icon_position","getIllustration","imageProps","_objectSpread","size","bottom","modifier","_supportsSpacingProps"],"sources":["../../../../src/components/info-card/InfoCard.tsx"],"sourcesContent":["import React, { useCallback } from 'react'\nimport classnames from 'classnames'\n\n// Components\nimport Button, { ButtonProps } from '../button/Button'\nimport IconPrimary from '../icon-primary/IconPrimary'\nimport type { IconIcon } from '../icon/Icon'\nimport Img, { ImgProps } from '../../elements/img/Img'\nimport Space from '../space/Space'\nimport P from '../../elements/P'\n\n// Icons\nimport { lightbulb_medium as LightbulbIcon } from '../../icons'\n\n// Shared\nimport { createSpacingClasses } from '../space/SpacingHelper'\nimport type { SkeletonShow } from '../skeleton/Skeleton'\nimport Context from '../../shared/Context'\nimport Provider from '../../shared/Provider'\nimport type { SpacingProps } from '../../shared/types'\nimport {\n extendPropsWithContext,\n validateDOMAttributes,\n} from '../../shared/component-helper'\n\nexport interface InfoCardProps {\n /**\n * Used in combination with `src` to provide an alt attribute for the `img` element.\n * Default: null\n */\n alt?: React.ReactNode\n /**\n * Aligns the content to center, rather than left\n * Default: false\n */\n centered?: boolean\n /**\n * Determines whether to display a drop shadow around the card.\n * Default: true\n */\n dropShadow?: boolean\n /**\n * Replace the default icon with custom icon.\n * Default: Lightbulb (icon)\n */\n icon?: IconIcon\n /**\n * Props applied to the `img` element if the component is used to display an image. Replace the 'icon'\n * Default: null\n */\n imgProps?: ImgProps\n /**\n * Skeleton should be applied when loading content\n * Default: null\n */\n skeleton?: SkeletonShow\n /**\n * Stretch the card to fill the container\n */\n stretch?: boolean\n /**\n * Specifies the path to the image\n * Default: null\n */\n src?: string\n /**\n * Image src, will replace the 'icon' with the image\n * Default: null\n */\n text: React.ReactNode\n /**\n * Component title\n * Default: null\n */\n title?: React.ReactNode\n /**\n * Is called when the close button is clicked\n * Default: null\n */\n onClose?: React.MouseEventHandler<HTMLButtonElement>\n /**\n * The text of the close button.\n * Default: null\n */\n closeButtonText?: React.ReactNode\n /**\n * Is called when the accept button is clicked\n * Default: null\n */\n onAccept?: React.MouseEventHandler<HTMLButtonElement>\n /**\n * The text of the accept button.\n * Default: null\n */\n acceptButtonText?: React.ReactNode\n /**\n * Additional attributes for the close button.\n * Default: null\n */\n closeButtonAttributes?: ButtonProps\n /**\n * Additional attributes for the accept button\n * Default: null\n */\n acceptButtonAttributes?: ButtonProps\n}\n\nexport type InfoCardAllProps = InfoCardProps &\n Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> &\n SpacingProps\n\nexport const defaultProps = {\n centered: false,\n dropShadow: true,\n skeleton: false,\n icon: LightbulbIcon,\n}\n\nconst InfoCard = (localProps: InfoCardAllProps) => {\n // Every component should have a context\n const context = React.useContext(Context)\n\n const allProps = extendPropsWithContext(localProps, defaultProps, {\n skeleton: context?.skeleton,\n })\n\n // Extract additional props from global context\n const {\n alt,\n centered,\n dropShadow,\n title,\n skeleton,\n stretch,\n className,\n icon,\n src,\n imgProps,\n text,\n onClose,\n onAccept,\n closeButtonText,\n acceptButtonText,\n closeButtonAttributes,\n acceptButtonAttributes,\n ...props\n } = allProps\n\n const spacingClasses = createSpacingClasses(props)\n\n const closeButtonIsHidden = !onClose && !closeButtonText\n const acceptButtonIsHidden = !onAccept && !acceptButtonText\n\n validateDOMAttributes(allProps, props)\n\n const getButtons = useCallback(() => {\n if (closeButtonIsHidden && acceptButtonIsHidden) return null\n\n return (\n <div className=\"dnb-info-card__buttons\">\n {!acceptButtonIsHidden && (\n <Button\n top={centered ? 'medium' : 'small'}\n type=\"button\"\n className=\"dnb-info-card__buttons__accept-button\"\n variant=\"secondary\"\n right={centered ? 'zero' : 'small'}\n on_click={onAccept}\n text={acceptButtonText}\n {...acceptButtonAttributes}\n />\n )}\n {!closeButtonIsHidden && (\n <Button\n type=\"button\"\n className=\"dnb-info-card__buttons__close-button\"\n variant=\"tertiary\"\n top=\"small\"\n on_click={onClose}\n icon=\"close\"\n icon_position=\"left\"\n text={closeButtonText}\n {...closeButtonAttributes}\n />\n )}\n </div>\n )\n }, [\n acceptButtonAttributes,\n acceptButtonIsHidden,\n acceptButtonText,\n centered,\n closeButtonAttributes,\n closeButtonIsHidden,\n closeButtonText,\n onAccept,\n onClose,\n ])\n\n const getIllustration = useCallback(() => {\n if (src || imgProps) {\n const imageProps = { src, alt, ...imgProps }\n return <Img className=\"dnb-info-card__image\" {...imageProps} />\n }\n return (\n <IconPrimary\n size=\"medium\"\n className=\"dnb-info-card__icon\"\n icon={icon}\n />\n )\n }, [alt, icon, imgProps, src])\n\n return (\n <div\n className={classnames(\n 'dnb-info-card',\n centered && 'dnb-info-card--centered',\n stretch && 'dnb-info-card--stretch',\n dropShadow && 'dnb-info-card--shadow',\n spacingClasses,\n className\n )}\n {...props}\n >\n <Provider skeleton={skeleton}>\n <Space\n right={!centered ? 'small' : false}\n bottom={centered ? 'small' : false}\n >\n {getIllustration()}\n </Space>\n\n <div className=\"dnb-info-card__content\">\n {title && (\n <P\n className=\"dnb-info-card__title\"\n size=\"small\"\n modifier=\"medium\"\n bottom=\"x-small\"\n >\n {title}\n </P>\n )}\n\n <P size=\"small\" className=\"dnb-info-card__text\" bottom=\"0\">\n {text}\n </P>\n\n {getButtons()}\n </div>\n </Provider>\n </div>\n )\n}\n\nInfoCard._supportsSpacingProps = true\n\nexport default InfoCard\n"],"mappings":";;;;;;;;AAAA,O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AC;IAACkD,IAAI,EAAC,OAAO;IAAC5B,SAAS,EAAC,qBAAqB;IAAC6B,MAAM,EAAC;EAAG,GACvD1B,IACA,CAAC,EAEHa,UAAU,CAAC,CACT,CACG,CACP,CAAC;AAEV,CAAC;AAEDzB,QAAQ,CAACwC,qBAAqB,GAAG,IAAI;AAErC,eAAexC,QAAQ","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"InfoCard.js","names":["React","useCallback","classnames","Button","IconPrimary","Img","Space","P","lightbulb_medium","LightbulbIcon","createSpacingClasses","Context","Provider","extendPropsWithContext","validateDOMAttributes","defaultProps","centered","dropShadow","skeleton","icon","InfoCard","localProps","_IconPrimary","context","useContext","allProps","alt","title","stretch","className","src","imgProps","text","children","onClose","onAccept","closeButtonText","acceptButtonText","closeButtonAttributes","acceptButtonAttributes","props","_objectWithoutProperties","_excluded","spacingClasses","closeButtonIsHidden","acceptButtonIsHidden","getButtons","createElement","_extends","top","type","variant","right","on_click","icon_position","getIllustration","imageProps","_objectSpread","size","bottom","modifier","_supportsSpacingProps"],"sources":["../../../../src/components/info-card/InfoCard.tsx"],"sourcesContent":["import React, { useCallback } from 'react'\nimport classnames from 'classnames'\n\n// Components\nimport Button, { ButtonProps } from '../button/Button'\nimport IconPrimary from '../icon-primary/IconPrimary'\nimport type { IconIcon } from '../icon/Icon'\nimport Img, { ImgProps } from '../../elements/img/Img'\nimport Space from '../space/Space'\nimport P from '../../elements/P'\n\n// Icons\nimport { lightbulb_medium as LightbulbIcon } from '../../icons'\n\n// Shared\nimport { createSpacingClasses } from '../space/SpacingHelper'\nimport type { SkeletonShow } from '../skeleton/Skeleton'\nimport Context from '../../shared/Context'\nimport Provider from '../../shared/Provider'\nimport type { SpacingProps } from '../../shared/types'\nimport {\n extendPropsWithContext,\n validateDOMAttributes,\n} from '../../shared/component-helper'\n\nexport interface InfoCardProps {\n /**\n * Used in combination with `src` to provide an alt attribute for the `img` element.\n * Default: null\n */\n alt?: React.ReactNode\n /**\n * Aligns the content to center, rather than left\n * Default: false\n */\n centered?: boolean\n /**\n * Determines whether to display a drop shadow around the card.\n * Default: true\n */\n dropShadow?: boolean\n /**\n * Replace the default icon with custom icon.\n * Default: Lightbulb (icon)\n */\n icon?: IconIcon\n /**\n * Props applied to the `img` element if the component is used to display an image. Replace the 'icon'\n * Default: null\n */\n imgProps?: ImgProps\n /**\n * Skeleton should be applied when loading content\n * Default: null\n */\n skeleton?: SkeletonShow\n /**\n * Stretch the card to fill the container\n */\n stretch?: boolean\n /**\n * Specifies the path to the image\n * Default: null\n */\n src?: string\n /**\n * Image src, will replace the 'icon' with the image\n * Default: null\n */\n text?: React.ReactNode\n /**\n * Can be used to add custom content, which is displayed/rendered between the `text` property and buttons.\n * Default: null\n */\n children?: React.ReactNode\n /**\n * Component title\n * Default: null\n */\n title?: React.ReactNode\n /**\n * Is called when the close button is clicked\n * Default: null\n */\n onClose?: React.MouseEventHandler<HTMLButtonElement>\n /**\n * The text of the close button.\n * Default: null\n */\n closeButtonText?: React.ReactNode\n /**\n * Is called when the accept button is clicked\n * Default: null\n */\n onAccept?: React.MouseEventHandler<HTMLButtonElement>\n /**\n * The text of the accept button.\n * Default: null\n */\n acceptButtonText?: React.ReactNode\n /**\n * Additional attributes for the close button.\n * Default: null\n */\n closeButtonAttributes?: ButtonProps\n /**\n * Additional attributes for the accept button\n * Default: null\n */\n acceptButtonAttributes?: ButtonProps\n}\n\nexport type InfoCardAllProps = InfoCardProps &\n Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> &\n SpacingProps\n\nexport const defaultProps = {\n centered: false,\n dropShadow: true,\n skeleton: false,\n icon: LightbulbIcon,\n}\n\nconst InfoCard = (localProps: InfoCardAllProps) => {\n // Every component should have a context\n const context = React.useContext(Context)\n\n const allProps = extendPropsWithContext(localProps, defaultProps, {\n skeleton: context?.skeleton,\n })\n\n // Extract additional props from global context\n const {\n alt,\n centered,\n dropShadow,\n title,\n skeleton,\n stretch,\n className,\n icon,\n src,\n imgProps,\n text,\n children,\n onClose,\n onAccept,\n closeButtonText,\n acceptButtonText,\n closeButtonAttributes,\n acceptButtonAttributes,\n ...props\n } = allProps\n\n const spacingClasses = createSpacingClasses(props)\n\n const closeButtonIsHidden = !onClose && !closeButtonText\n const acceptButtonIsHidden = !onAccept && !acceptButtonText\n\n validateDOMAttributes(allProps, props)\n\n const getButtons = useCallback(() => {\n if (closeButtonIsHidden && acceptButtonIsHidden) return null\n\n return (\n <div className=\"dnb-info-card__buttons\">\n {!acceptButtonIsHidden && (\n <Button\n top={centered ? 'medium' : 'small'}\n type=\"button\"\n className=\"dnb-info-card__buttons__accept-button\"\n variant=\"secondary\"\n right={centered ? 'zero' : 'small'}\n on_click={onAccept}\n text={acceptButtonText}\n {...acceptButtonAttributes}\n />\n )}\n {!closeButtonIsHidden && (\n <Button\n type=\"button\"\n className=\"dnb-info-card__buttons__close-button\"\n variant=\"tertiary\"\n top=\"small\"\n on_click={onClose}\n icon=\"close\"\n icon_position=\"left\"\n text={closeButtonText}\n {...closeButtonAttributes}\n />\n )}\n </div>\n )\n }, [\n acceptButtonAttributes,\n acceptButtonIsHidden,\n acceptButtonText,\n centered,\n closeButtonAttributes,\n closeButtonIsHidden,\n closeButtonText,\n onAccept,\n onClose,\n ])\n\n const getIllustration = useCallback(() => {\n if (src || imgProps) {\n const imageProps = { src, alt, ...imgProps }\n return <Img className=\"dnb-info-card__image\" {...imageProps} />\n }\n return (\n <IconPrimary\n size=\"medium\"\n className=\"dnb-info-card__icon\"\n icon={icon}\n />\n )\n }, [alt, icon, imgProps, src])\n\n return (\n <div\n className={classnames(\n 'dnb-info-card',\n centered && 'dnb-info-card--centered',\n stretch && 'dnb-info-card--stretch',\n dropShadow && 'dnb-info-card--shadow',\n spacingClasses,\n className\n )}\n {...props}\n >\n <Provider skeleton={skeleton}>\n <Space\n right={!centered ? 'small' : false}\n bottom={centered ? 'small' : false}\n >\n {getIllustration()}\n </Space>\n\n <div className=\"dnb-info-card__content\">\n {title && (\n <P\n className=\"dnb-info-card__title\"\n size=\"small\"\n modifier=\"medium\"\n bottom=\"x-small\"\n >\n {title}\n </P>\n )}\n {text && (\n <P size=\"small\" className=\"dnb-info-card__text\" bottom=\"0\">\n {text}\n </P>\n )}\n {children}\n {getButtons()}\n </div>\n </Provider>\n </div>\n )\n}\n\nInfoCard._supportsSpacingProps = true\n\nexport default InfoCard\n"],"mappings":";;;;;;;;AAAA,OAAOA,KAAK,IAAIC,WAAW,QAAQ,OAAO;AAC1C,OAAOC,UAAU,MAAM,YAAY;AAGnC,OAAOC,MAAM,MAAuB,kBAAkB;AACtD,OAAOC,WAAW,MAAM,6BAA6B;AAErD,OAAOC,GAAG,MAAoB,wBAAwB;AACtD,OAAOC,KAAK,MAAM,gBAAgB;AAClC,OAAOC,CAAC,MAAM,kBAAkB;AAGhC,SAASC,gBAAgB,IAAIC,aAAa,QAAQ,aAAa;AAG/D,SAASC,oBAAoB,QAAQ,wBAAwB;AAE7D,OAAOC,OAAO,MAAM,sBAAsB;AAC1C,OAAOC,QAAQ,MAAM,uBAAuB;AAE5C,SACEC,sBAAsB,EACtBC,qBAAqB,QAChB,+BAA+B;AA6FtC,OAAO,MAAMC,YAAY,GAAG;EAC1BC,QAAQ,EAAE,KAAK;EACfC,UAAU,EAAE,IAAI;EAChBC,QAAQ,EAAE,KAAK;EACfC,IAAI,EAAEV;AACR,CAAC;AAED,MAAMW,QAAQ,GAAIC,UAA4B,IAAK;EAAA,IAAAC,YAAA;EAEjD,MAAMC,OAAO,GAAGvB,KAAK,CAACwB,UAAU,CAACb,OAAO,CAAC;EAEzC,MAAMc,QAAQ,GAAGZ,sBAAsB,CAACQ,UAAU,EAAEN,YAAY,EAAE;IAChEG,QAAQ,EAAEK,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAEL;EACrB,CAAC,CAAC;EAGF,MAAM;MACJQ,GAAG;MACHV,QAAQ;MACRC,UAAU;MACVU,KAAK;MACLT,QAAQ;MACRU,OAAO;MACPC,SAAS;MACTV,IAA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ERvD,KAAA,CAAA+C,aAAA;IAAKlB,SAAS,EAAC;EAAwB,GACpCF,KAAK,IACJ3B,KAAA,CAAA+C,aAAA,CAACxC,CAAC;IACAsB,SAAS,EAAC,sBAAsB;IAChC6B,IAAI,EAAC,OAAO;IACZE,QAAQ,EAAC,QAAQ;IACjBD,MAAM,EAAC;EAAS,GAEfhC,KACA,CACJ,EACAK,IAAI,IACHhC,KAAA,CAAA+C,aAAA,CAACxC,CAAC;IAACmD,IAAI,EAAC,OAAO;IAAC7B,SAAS,EAAC,qBAAqB;IAAC8B,MAAM,EAAC;EAAG,GACvD3B,IACA,CACJ,EACAC,QAAQ,EACRa,UAAU,CAAC,CACT,CACG,CACP,CAAC;AAEV,CAAC;AAED1B,QAAQ,CAACyC,qBAAqB,GAAG,IAAI;AAErC,eAAezC,QAAQ","ignoreList":[]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export const InfoCardProperties = {
|
|
2
2
|
text: {
|
|
3
|
-
doc: 'The content of the InfoCard
|
|
3
|
+
doc: 'The text content of the InfoCard, displayed/rendered in a paragraph. To fully customize the content, see `children` property.',
|
|
4
4
|
type: ['React.ReactNode'],
|
|
5
|
-
status: '
|
|
5
|
+
status: 'optional'
|
|
6
6
|
},
|
|
7
7
|
title: {
|
|
8
8
|
doc: 'The title of the InfoCard.',
|
|
@@ -26,7 +26,7 @@ export const InfoCardProperties = {
|
|
|
26
26
|
},
|
|
27
27
|
className: {
|
|
28
28
|
doc: 'Custom className for the component root.',
|
|
29
|
-
type: ['
|
|
29
|
+
type: ['string'],
|
|
30
30
|
status: 'optional'
|
|
31
31
|
},
|
|
32
32
|
icon: {
|
|
@@ -74,6 +74,11 @@ export const InfoCardProperties = {
|
|
|
74
74
|
type: ['ButtonProps'],
|
|
75
75
|
status: 'optional'
|
|
76
76
|
},
|
|
77
|
+
children: {
|
|
78
|
+
doc: 'Can be used to add custom content, which is displayed/rendered between the `text` property and buttons.',
|
|
79
|
+
type: 'React.ReactNode',
|
|
80
|
+
status: 'optional'
|
|
81
|
+
},
|
|
77
82
|
'[Space](/uilib/layout/space/properties)': {
|
|
78
83
|
doc: 'Spacing properties like `top` or `bottom` are supported.',
|
|
79
84
|
type: ['string', 'object'],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InfoCardDocs.js","names":["InfoCardProperties","text","doc","type","status","title","centered","dropShadow","stretch","className","icon","imgProps","alt","src","skeleton","closeButtonText","closeButtonAttributes","acceptButtonText","acceptButtonAttributes","InfoCardEvents","onAccept","onClose"],"sources":["../../../../src/components/info-card/InfoCardDocs.ts"],"sourcesContent":["import { PropertiesTableProps } from '../../shared/types'\n\nexport const InfoCardProperties: PropertiesTableProps = {\n text: {\n doc: 'The content of the InfoCard
|
|
1
|
+
{"version":3,"file":"InfoCardDocs.js","names":["InfoCardProperties","text","doc","type","status","title","centered","dropShadow","stretch","className","icon","imgProps","alt","src","skeleton","closeButtonText","closeButtonAttributes","acceptButtonText","acceptButtonAttributes","children","InfoCardEvents","onAccept","onClose"],"sources":["../../../../src/components/info-card/InfoCardDocs.ts"],"sourcesContent":["import { PropertiesTableProps } from '../../shared/types'\n\nexport const InfoCardProperties: PropertiesTableProps = {\n text: {\n doc: 'The text content of the InfoCard, displayed/rendered in a paragraph. To fully customize the content, see `children` property.',\n type: ['React.ReactNode'],\n status: 'optional',\n },\n title: {\n doc: 'The title of the InfoCard.',\n type: ['React.ReactNode'],\n status: 'optional',\n },\n centered: {\n doc: 'Centers the content. Defaults to `false`.',\n type: ['boolean'],\n status: 'optional',\n },\n dropShadow: {\n doc: 'Sets the drop shadow of the info card. Defaults to `true`.',\n type: ['boolean'],\n status: 'optional',\n },\n stretch: {\n doc: 'Stretch the card to fill the container.',\n type: ['boolean'],\n status: 'optional',\n },\n className: {\n doc: 'Custom className for the component root.',\n type: ['string'],\n status: 'optional',\n },\n icon: {\n doc: 'Custom icon. Defaults to the `lightbulb` icon.',\n type: 'React.ReactNode',\n status: 'optional',\n },\n imgProps: {\n doc: '[Image properties](/uilib/elements/image) applied to the `img` element if the component is used to display an image.',\n type: ['ImgProps'],\n status: 'optional',\n },\n alt: {\n doc: 'Used in combination with `src` to provide an alt attribute for the image element.',\n type: ['React.ReactNode'],\n status: 'optional',\n },\n src: {\n doc: 'Specifies the path to the image.',\n type: ['string'],\n status: 'optional',\n },\n skeleton: {\n doc: 'If set to `true`, an overlaying skeleton with animation will be shown. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n closeButtonText: {\n doc: 'The close button text.',\n type: ['React.ReactNode'],\n status: 'optional',\n },\n closeButtonAttributes: {\n doc: 'define any valid Eufemia [Button properties](/uilib/components/button/properties) or HTML attribute inside an object.',\n type: ['ButtonProps'],\n status: 'optional',\n },\n acceptButtonText: {\n doc: 'The accept button text.',\n type: ['React.ReactNode'],\n status: 'optional',\n },\n acceptButtonAttributes: {\n doc: 'define any valid Eufemia [Button properties](/uilib/components/button/properties) or HTML attribute inside an object.',\n type: ['ButtonProps'],\n status: 'optional',\n },\n children: {\n doc: 'Can be used to add custom content, which is displayed/rendered between the `text` property and buttons.',\n type: 'React.ReactNode',\n status: 'optional',\n },\n '[Space](/uilib/layout/space/properties)': {\n doc: 'Spacing properties like `top` or `bottom` are supported.',\n type: ['string', 'object'],\n status: 'optional',\n },\n}\n\nexport const InfoCardEvents: PropertiesTableProps = {\n onAccept: {\n doc: 'will be called when user clicks the accept button.',\n type: 'function',\n status: 'optional',\n },\n onClose: {\n doc: 'will be called when user clicks the close button.',\n type: 'function',\n status: 'optional',\n },\n}\n"],"mappings":"AAEA,OAAO,MAAMA,kBAAwC,GAAG;EACtDC,IAAI,EAAE;IACJC,GAAG,EAAE,+HAA+H;IACpIC,IAAI,EAAE,CAAC,iBAAiB,CAAC;IACzBC,MAAM,EAAE;EACV,CAAC;EACDC,KAAK,EAAE;IACLH,GAAG,EAAE,4BAA4B;IACjCC,IAAI,EAAE,CAAC,iBAAiB,CAAC;IACzBC,MAAM,EAAE;EACV,CAAC;E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ACDa,gBAAgB,EAAE;IAChBf,GAAG,EAAE,yBAAyB;IAC9BC,IAAI,EAAE,CAAC,iBAAiB,CAAC;IACzBC,MAAM,EAAE;EACV,CAAC;EACDc,sBAAsB,EAAE;IACtBhB,GAAG,EAAE,uHAAuH;IAC5HC,IAAI,EAAE,CAAC,aAAa,CAAC;IACrBC,MAAM,EAAE;EACV,CAAC;EACDe,QAAQ,EAAE;IACRjB,GAAG,EAAE,yGAAyG;IAC9GC,IAAI,EAAE,iBAAiB;IACvBC,MAAM,EAAE;EACV,CAAC;EACD,yCAAyC,EAAE;IACzCF,GAAG,EAAE,0DAA0D;IAC/DC,IAAI,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAC1BC,MAAM,EAAE;EACV;AACF,CAAC;AAED,OAAO,MAAMgB,cAAoC,GAAG;EAClDC,QAAQ,EAAE;IACRnB,GAAG,EAAE,oDAAoD;IACzDC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV,CAAC;EACDkB,OAAO,EAAE;IACPpB,GAAG,EAAE,mDAAmD;IACxDC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV;AACF,CAAC","ignoreList":[]}
|
|
@@ -162,32 +162,14 @@ export interface InputProps
|
|
|
162
162
|
submit_button_status?: string;
|
|
163
163
|
className?: string;
|
|
164
164
|
children?: InputChildren;
|
|
165
|
-
/**
|
|
166
|
-
* Will be called on value changes made by the user. Returns an object with the value as a string and the native event: `{ value, event }`.
|
|
167
|
-
*/
|
|
168
165
|
on_change?: (...args: any[]) => any;
|
|
169
|
-
/**
|
|
170
|
-
* Will be called on key down by the user. Returns `{ value, event }`.
|
|
171
|
-
*/
|
|
172
166
|
on_key_down?: (...args: any[]) => any;
|
|
173
|
-
/**
|
|
174
|
-
* Will be called on submit button click. Returns `{ value, event }`.
|
|
175
|
-
*/
|
|
176
167
|
on_submit?: (...args: any[]) => any;
|
|
177
|
-
/**
|
|
178
|
-
* Will be called on focus set by the user. Returns `{ value, event }`.
|
|
179
|
-
*/
|
|
180
168
|
on_focus?: (...args: any[]) => any;
|
|
181
|
-
/**
|
|
182
|
-
* Will be called on blur set by the user. Returns `{ value, event }`.
|
|
183
|
-
*/
|
|
184
169
|
on_blur?: (...args: any[]) => any;
|
|
185
170
|
on_submit_focus?: (...args: any[]) => any;
|
|
186
171
|
on_submit_blur?: (...args: any[]) => any;
|
|
187
172
|
on_state_update?: (...args: any[]) => any;
|
|
188
|
-
/**
|
|
189
|
-
* Will be called on a clear button click. Returns `{ value, previousValue, event }`.
|
|
190
|
-
*/
|
|
191
173
|
on_clear?: (...args: any[]) => any;
|
|
192
174
|
}
|
|
193
175
|
export default class Input extends React.Component<InputProps, any> {
|
|
@@ -233,9 +215,6 @@ export interface SubmitButtonProps
|
|
|
233
215
|
*/
|
|
234
216
|
status_props?: FormStatusProps;
|
|
235
217
|
className?: string;
|
|
236
|
-
/**
|
|
237
|
-
* Will be called on submit button click. Returns `{ value, event }`.
|
|
238
|
-
*/
|
|
239
218
|
on_submit?: (...args: any[]) => any;
|
|
240
219
|
on_submit_focus?: (...args: any[]) => any;
|
|
241
220
|
on_submit_blur?: (...args: any[]) => any;
|
|
@@ -155,4 +155,36 @@ export const inputProperties = {
|
|
|
155
155
|
status: 'optional'
|
|
156
156
|
}
|
|
157
157
|
};
|
|
158
|
+
export const inputEvents = {
|
|
159
|
+
on_change: {
|
|
160
|
+
doc: 'will be called on value changes made by the user. Returns an object with the value as a string and the native event: `{ value, event }`.',
|
|
161
|
+
type: 'function',
|
|
162
|
+
status: 'optional'
|
|
163
|
+
},
|
|
164
|
+
on_focus: {
|
|
165
|
+
doc: 'will be called on focus set by the user. Returns `{ value, event }`.',
|
|
166
|
+
type: 'function',
|
|
167
|
+
status: 'optional'
|
|
168
|
+
},
|
|
169
|
+
on_key_down: {
|
|
170
|
+
doc: 'will be called on key down by the user. Returns `{ value, event }`.',
|
|
171
|
+
type: 'function',
|
|
172
|
+
status: 'optional'
|
|
173
|
+
},
|
|
174
|
+
on_blur: {
|
|
175
|
+
doc: 'will be called on blur set by the user. Returns `{ value, event }`.',
|
|
176
|
+
type: 'function',
|
|
177
|
+
status: 'optional'
|
|
178
|
+
},
|
|
179
|
+
on_submit: {
|
|
180
|
+
doc: 'will be called on submit button click. Returns `{ value, event }`.',
|
|
181
|
+
type: 'function',
|
|
182
|
+
status: 'optional'
|
|
183
|
+
},
|
|
184
|
+
on_clear: {
|
|
185
|
+
doc: 'will be called on a clear button click. Returns `{ value, previousValue, event }`.',
|
|
186
|
+
type: 'function',
|
|
187
|
+
status: 'optional'
|
|
188
|
+
}
|
|
189
|
+
};
|
|
158
190
|
//# sourceMappingURL=InputDocs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputDocs.js","names":["inputProperties","value","doc","type","status","align","label","label_sr_only","label_direction","status_state","status_props","globalStatus","placeholder","icon","icon_position","icon_size","keep_placeholder","input_class","autocomplete","submit_button_title","suffix","size","selectall","clear","stretch","skeleton","input_attributes","input_state","submit_element","inner_ref","input_element","inner_element"],"sources":["../../../../src/components/input/InputDocs.ts"],"sourcesContent":["import { PropertiesTableProps } from '../../shared/types'\n\nexport const inputProperties: PropertiesTableProps = {\n value: {\n doc: 'The content value of the input.',\n type: 'string',\n status: 'optional',\n },\n align: {\n doc: 'Defines the text alignment of the input. Can be `left`, `right` or `center`. Defaults to `left`.',\n type: 'string',\n status: 'optional',\n },\n label: {\n doc: 'Prepends the Form Label component. If no ID is provided, a random ID is created.',\n type: 'React.Node',\n status: 'optional',\n },\n label_sr_only: {\n doc: 'Use `true` to make the label only readable by screen readers.',\n type: 'boolean',\n status: 'optional',\n },\n label_direction: {\n doc: 'Use `label_direction=\"vertical\"` to change the label layout direction. Defaults to `horizontal`.',\n type: 'string',\n status: 'optional',\n },\n status: {\n doc: 'Text with a status message. The style defaults to an error message. You can use `true` to only get the status color, without a message.',\n type: 'string',\n status: 'optional',\n },\n status_state: {\n doc: 'Defines the state of the status. Currently, there are two statuses `[error, info]`. Defaults to `error`.',\n type: 'string',\n status: 'optional',\n },\n status_props: {\n doc: 'Use an object to define additional FormStatus properties.',\n type: 'object',\n status: 'optional',\n },\n globalStatus: {\n doc: 'The [configuration](/uilib/components/global-status/properties/#configuration-object) used for the target [GlobalStatus](/uilib/components/global-status).',\n type: 'object',\n status: 'optional',\n },\n placeholder: {\n doc: 'The placeholder which shows up once the input value is empty.',\n type: 'string',\n status: 'optional',\n },\n icon: {\n doc: 'Icon to show before or after the input / placeholder. Can be either a string defining a primary icon or a Component using an SVG icon of either 16px or 24px.',\n type: ['string', 'React.Node'],\n status: 'optional',\n },\n icon_position: {\n doc: 'Defines the position of icon inside the input. Set to `left` or `right`. Defaults to `left` if not set.',\n type: 'string',\n status: 'optional',\n },\n icon_size: {\n doc: 'The icon size of the icon shows. Defaults to `medium`.',\n type: 'string',\n status: 'optional',\n },\n keep_placeholder: {\n doc: 'Set to `true` in case the `placeholder` has to be kept during focus. By default, the placeholder disappears on focus.',\n type: 'boolean',\n status: 'optional',\n },\n input_class: {\n doc: 'In case we have to set a custom input class.',\n type: 'string',\n status: 'optional',\n },\n type: {\n doc: 'Choose between `text`, `number`, `email`, `password`, `url`, `tel` and `search`.',\n type: 'string',\n status: 'optional',\n },\n autocomplete: {\n doc: 'Defaults to `off`. Set to `on` or any of [allowed `attributes`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-autocomplete). 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.',\n type: 'string',\n status: 'optional',\n },\n submit_button_title: {\n doc: 'Title attribute for the search icon. Only relevant if search input.',\n type: 'string',\n status: 'optional',\n },\n suffix: {\n doc: 'Text describing the content of the input more than the label. you can also send in a React component, so it gets wrapped inside the Input component.',\n type: ['string', 'React.Node'],\n status: 'optional',\n },\n size: {\n doc: 'The sizes you can choose is `default` (2rem), `medium` (2.5rem) and `large` (3rem) are supported component sizes. Defaults to `default` / `null`. Also, if you define a number like `size={2}` then it will be forwarded as the input element attribute.',\n type: ['string', 'number'],\n status: 'optional',\n },\n selectall: {\n doc: 'If set to `true`, then the whole input value gets selected on the entry focus. A second click will place the cursor on the wanted position.',\n type: 'boolean',\n status: 'optional',\n },\n clear: {\n doc: 'If set to `true`, then a clear button will be shown which lets the user clear any given input value.',\n type: 'boolean',\n status: 'optional',\n },\n stretch: {\n doc: 'If set to `true`, then the input field will be 100% in `width`.',\n type: 'boolean',\n status: 'optional',\n },\n skeleton: {\n doc: 'If set to `true`, an overlaying skeleton with animation will be shown.',\n type: 'boolean',\n status: 'optional',\n },\n input_attributes: {\n doc: 'Provide the Input element with any attributes by using an Object `input_attributes={{size:\\'2\\'}}` or a JSON Object `input_attributes=\\'{\"size\":\"2\"}\\'`. **NB:** Keep in mind, that also every not listed component property will be sent along and set as an Input element attribute.',\n type: 'object',\n status: 'optional',\n },\n input_state: {\n doc: 'Defines a custom visual state of the input. Use it only if you have to simulate a custom state. Currently are three statuses `virgin` , `focus` and `dirty`. Defaults to `null`.',\n type: 'string',\n status: 'optional',\n },\n submit_element: {\n doc: 'Accepts a React element which will show up like the \"submit button\" would do on `type=\"search\"`.',\n type: ['string', 'React.Element'],\n status: 'optional',\n },\n inner_ref: {\n doc: 'By providing a React.ref we can get the internally used input element (DOM). E.g. `inner_ref={myRef}` by using `React.createRef()` or `React.useRef()`.',\n type: 'React.Ref',\n status: 'optional',\n },\n input_element: {\n doc: 'By providing a new component we can change the internally used element. Also supports a string only, like `input_element=\"input\"`.',\n type: ['string', 'React.Element'],\n status: 'internal',\n },\n inner_element: {\n doc: 'By providing a new component to be rendered inside the \"shell\" – we can add a freely customizable internal element. Used by the Autocomplete component.',\n type: ['string', 'React.Element'],\n status: 'internal',\n },\n '[Space](/uilib/layout/space/properties)': {\n doc: 'Spacing properties like `top` or `bottom` are supported.',\n type: ['string', 'object'],\n status: 'optional',\n },\n}\n"],"mappings":"AAEA,OAAO,MAAMA,eAAqC,GAAG;EACnDC,KAAK,EAAE;IAC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ACfC,MAAM,EAAE;EACV,CAAC;EACDsB,gBAAgB,EAAE;IAChBxB,GAAG,EAAE,wRAAwR;IAC7RC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDuB,WAAW,EAAE;IACXzB,GAAG,EAAE,kLAAkL;IACvLC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDwB,cAAc,EAAE;IACd1B,GAAG,EAAE,kGAAkG;IACvGC,IAAI,EAAE,CAAC,QAAQ,EAAE,eAAe,CAAC;IACjCC,MAAM,EAAE;EACV,CAAC;EACDyB,SAAS,EAAE;IACT3B,GAAG,EAAE,yJAAyJ;IAC9JC,IAAI,EAAE,WAAW;IACjBC,MAAM,EAAE;EACV,CAAC;EACD0B,aAAa,EAAE;IACb5B,GAAG,EAAE,oIAAoI;IACzIC,IAAI,EAAE,CAAC,QAAQ,EAAE,eAAe,CAAC;IACjCC,MAAM,EAAE;EACV,CAAC;EACD2B,aAAa,EAAE;IACb7B,GAAG,EAAE,yJAAyJ;IAC9JC,IAAI,EAAE,CAAC,QAAQ,EAAE,eAAe,CAAC;IACjCC,MAAM,EAAE;EACV,CAAC;EACD,yCAAyC,EAAE;IACzCF,GAAG,EAAE,0DAA0D;IAC/DC,IAAI,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAC1BC,MAAM,EAAE;EACV;AACF,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"InputDocs.js","names":["inputProperties","value","doc","type","status","align","label","label_sr_only","label_direction","status_state","status_props","globalStatus","placeholder","icon","icon_position","icon_size","keep_placeholder","input_class","autocomplete","submit_button_title","suffix","size","selectall","clear","stretch","skeleton","input_attributes","input_state","submit_element","inner_ref","input_element","inner_element","inputEvents","on_change","on_focus","on_key_down","on_blur","on_submit","on_clear"],"sources":["../../../../src/components/input/InputDocs.ts"],"sourcesContent":["import { PropertiesTableProps } from '../../shared/types'\n\nexport const inputProperties: PropertiesTableProps = {\n value: {\n doc: 'The content value of the input.',\n type: 'string',\n status: 'optional',\n },\n align: {\n doc: 'Defines the text alignment of the input. Can be `left`, `right` or `center`. Defaults to `left`.',\n type: 'string',\n status: 'optional',\n },\n label: {\n doc: 'Prepends the Form Label component. If no ID is provided, a random ID is created.',\n type: 'React.Node',\n status: 'optional',\n },\n label_sr_only: {\n doc: 'Use `true` to make the label only readable by screen readers.',\n type: 'boolean',\n status: 'optional',\n },\n label_direction: {\n doc: 'Use `label_direction=\"vertical\"` to change the label layout direction. Defaults to `horizontal`.',\n type: 'string',\n status: 'optional',\n },\n status: {\n doc: 'Text with a status message. The style defaults to an error message. You can use `true` to only get the status color, without a message.',\n type: 'string',\n status: 'optional',\n },\n status_state: {\n doc: 'Defines the state of the status. Currently, there are two statuses `[error, info]`. Defaults to `error`.',\n type: 'string',\n status: 'optional',\n },\n status_props: {\n doc: 'Use an object to define additional FormStatus properties.',\n type: 'object',\n status: 'optional',\n },\n globalStatus: {\n doc: 'The [configuration](/uilib/components/global-status/properties/#configuration-object) used for the target [GlobalStatus](/uilib/components/global-status).',\n type: 'object',\n status: 'optional',\n },\n placeholder: {\n doc: 'The placeholder which shows up once the input value is empty.',\n type: 'string',\n status: 'optional',\n },\n icon: {\n doc: 'Icon to show before or after the input / placeholder. Can be either a string defining a primary icon or a Component using an SVG icon of either 16px or 24px.',\n type: ['string', 'React.Node'],\n status: 'optional',\n },\n icon_position: {\n doc: 'Defines the position of icon inside the input. Set to `left` or `right`. Defaults to `left` if not set.',\n type: 'string',\n status: 'optional',\n },\n icon_size: {\n doc: 'The icon size of the icon shows. Defaults to `medium`.',\n type: 'string',\n status: 'optional',\n },\n keep_placeholder: {\n doc: 'Set to `true` in case the `placeholder` has to be kept during focus. By default, the placeholder disappears on focus.',\n type: 'boolean',\n status: 'optional',\n },\n input_class: {\n doc: 'In case we have to set a custom input class.',\n type: 'string',\n status: 'optional',\n },\n type: {\n doc: 'Choose between `text`, `number`, `email`, `password`, `url`, `tel` and `search`.',\n type: 'string',\n status: 'optional',\n },\n autocomplete: {\n doc: 'Defaults to `off`. Set to `on` or any of [allowed `attributes`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-autocomplete). 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.',\n type: 'string',\n status: 'optional',\n },\n submit_button_title: {\n doc: 'Title attribute for the search icon. Only relevant if search input.',\n type: 'string',\n status: 'optional',\n },\n suffix: {\n doc: 'Text describing the content of the input more than the label. you can also send in a React component, so it gets wrapped inside the Input component.',\n type: ['string', 'React.Node'],\n status: 'optional',\n },\n size: {\n doc: 'The sizes you can choose is `default` (2rem), `medium` (2.5rem) and `large` (3rem) are supported component sizes. Defaults to `default` / `null`. Also, if you define a number like `size={2}` then it will be forwarded as the input element attribute.',\n type: ['string', 'number'],\n status: 'optional',\n },\n selectall: {\n doc: 'If set to `true`, then the whole input value gets selected on the entry focus. A second click will place the cursor on the wanted position.',\n type: 'boolean',\n status: 'optional',\n },\n clear: {\n doc: 'If set to `true`, then a clear button will be shown which lets the user clear any given input value.',\n type: 'boolean',\n status: 'optional',\n },\n stretch: {\n doc: 'If set to `true`, then the input field will be 100% in `width`.',\n type: 'boolean',\n status: 'optional',\n },\n skeleton: {\n doc: 'If set to `true`, an overlaying skeleton with animation will be shown.',\n type: 'boolean',\n status: 'optional',\n },\n input_attributes: {\n doc: 'Provide the Input element with any attributes by using an Object `input_attributes={{size:\\'2\\'}}` or a JSON Object `input_attributes=\\'{\"size\":\"2\"}\\'`. **NB:** Keep in mind, that also every not listed component property will be sent along and set as an Input element attribute.',\n type: 'object',\n status: 'optional',\n },\n input_state: {\n doc: 'Defines a custom visual state of the input. Use it only if you have to simulate a custom state. Currently are three statuses `virgin` , `focus` and `dirty`. Defaults to `null`.',\n type: 'string',\n status: 'optional',\n },\n submit_element: {\n doc: 'Accepts a React element which will show up like the \"submit button\" would do on `type=\"search\"`.',\n type: ['string', 'React.Element'],\n status: 'optional',\n },\n inner_ref: {\n doc: 'By providing a React.ref we can get the internally used input element (DOM). E.g. `inner_ref={myRef}` by using `React.createRef()` or `React.useRef()`.',\n type: 'React.Ref',\n status: 'optional',\n },\n input_element: {\n doc: 'By providing a new component we can change the internally used element. Also supports a string only, like `input_element=\"input\"`.',\n type: ['string', 'React.Element'],\n status: 'internal',\n },\n inner_element: {\n doc: 'By providing a new component to be rendered inside the \"shell\" – we can add a freely customizable internal element. Used by the Autocomplete component.',\n type: ['string', 'React.Element'],\n status: 'internal',\n },\n '[Space](/uilib/layout/space/properties)': {\n doc: 'Spacing properties like `top` or `bottom` are supported.',\n type: ['string', 'object'],\n status: 'optional',\n },\n}\n\nexport const inputEvents: PropertiesTableProps = {\n on_change: {\n doc: 'will be called on value changes made by the user. Returns an object with the value as a string and the native event: `{ value, event }`.',\n type: 'function',\n status: 'optional',\n },\n on_focus: {\n doc: 'will be called on focus set by the user. Returns `{ value, event }`.',\n type: 'function',\n status: 'optional',\n },\n on_key_down: {\n doc: 'will be called on key down by the user. Returns `{ value, event }`.',\n type: 'function',\n status: 'optional',\n },\n on_blur: {\n doc: 'will be called on blur set by the user. Returns `{ value, event }`.',\n type: 'function',\n status: 'optional',\n },\n on_submit: {\n doc: 'will be called on submit button click. Returns `{ value, event }`.',\n type: 'function',\n status: 'optional',\n },\n on_clear: {\n doc: 'will be called on a clear button click. Returns `{ value, previousValue, event }`.',\n type: 'function',\n status: 'optional',\n },\n}\n"],"mappings":"AAEA,OAAO,MAAMA,eAAqC,GAAG;EACnDC,KAAK,EAAE;IACLC,GAAG,EAAE,iCAAiC;IACtCC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDC,KAAK,EAAE;IACLH,GAAG,EAAE,kGAAkG;IACvGC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDE,KAAK,EAAE;IACLJ,GAAG,EAAE,kFAAkF;IACvFC,IAAI,EAAE,YAAY;IAClBC,MAAM,EAAE;EACV,CAAC;E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F,CAAC","ignoreList":[]}
|
|
@@ -104,21 +104,9 @@ export interface InputMaskedProps
|
|
|
104
104
|
*/
|
|
105
105
|
placeholder_char?: string;
|
|
106
106
|
inner_ref?: React.Ref;
|
|
107
|
-
/**
|
|
108
|
-
* Will be called on value changes made by the user. Returns an object with the value as a string and the native event: `{ value, event }`.
|
|
109
|
-
*/
|
|
110
107
|
on_change?: (...args: any[]) => any;
|
|
111
|
-
/**
|
|
112
|
-
* Will be called on submit button click. Returns `{ value, event }`.
|
|
113
|
-
*/
|
|
114
108
|
on_submit?: (...args: any[]) => any;
|
|
115
|
-
/**
|
|
116
|
-
* Will be called on focus set by the user. Returns `{ value, event }`.
|
|
117
|
-
*/
|
|
118
109
|
on_focus?: (...args: any[]) => any;
|
|
119
|
-
/**
|
|
120
|
-
* Will be called on blur set by the user. Returns `{ value, event }`.
|
|
121
|
-
*/
|
|
122
110
|
on_blur?: (...args: any[]) => any;
|
|
123
111
|
on_submit_focus?: (...args: any[]) => any;
|
|
124
112
|
on_submit_blur?: (...args: any[]) => any;
|