@dnb/eufemia 9.18.0 → 9.19.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 +34 -0
- package/cjs/components/Avatar.d.ts +14 -0
- package/cjs/components/Avatar.js +52 -0
- package/cjs/components/InfoCard.d.ts +14 -0
- package/cjs/components/InfoCard.js +52 -0
- package/cjs/components/Timeline.d.ts +14 -0
- package/cjs/components/Timeline.js +52 -0
- package/cjs/components/autocomplete/Autocomplete.d.ts +2 -2
- package/cjs/components/avatar/Avatar.js +149 -0
- package/cjs/components/avatar/AvatarGroup.js +131 -0
- package/cjs/components/avatar/index.d.ts +8 -0
- package/cjs/components/avatar/index.js +52 -0
- package/cjs/components/avatar/style/_avatar.scss +145 -0
- package/cjs/components/avatar/style/dnb-avatar.css +218 -0
- package/cjs/components/avatar/style/dnb-avatar.min.css +1 -0
- package/cjs/components/avatar/style/dnb-avatar.scss +12 -0
- package/cjs/components/avatar/style/index.d.ts +6 -0
- package/cjs/components/avatar/style/index.js +3 -0
- package/cjs/components/avatar/style/themes/dnb-avatar-theme-ui.css +36 -0
- package/cjs/components/avatar/style/themes/dnb-avatar-theme-ui.min.css +1 -0
- package/cjs/components/avatar/style/themes/dnb-avatar-theme-ui.scss +29 -0
- package/cjs/components/avatar/style/themes/ui.js +3 -0
- package/cjs/components/avatar/style.js +3 -0
- package/cjs/components/breadcrumb/BreadcrumbItem.js +3 -3
- package/cjs/components/button/Button.d.ts +1 -1
- package/cjs/components/button/Button.js +1 -1
- package/cjs/components/button/style/themes/dnb-button-theme-ui.scss +3 -0
- package/cjs/components/date-picker/DatePicker.js +4 -2
- package/cjs/components/date-picker/DatePickerFooter.d.ts +1 -0
- package/cjs/components/date-picker/DatePickerFooter.js +10 -6
- package/cjs/components/dropdown/Dropdown.d.ts +4 -3
- package/cjs/components/form-label/FormLabel.d.ts +1 -1
- package/cjs/components/heading/Heading.d.ts +2 -2
- package/cjs/components/heading/HeadingProvider.d.ts +2 -2
- package/cjs/components/help-button/HelpButton.d.ts +1 -1
- package/cjs/components/help-button/HelpButtonInstance.d.ts +3 -2
- package/cjs/components/icon/Icon.d.ts +1 -1
- package/cjs/components/icon-primary/IconPrimary.d.ts +1 -1
- package/cjs/components/index.d.ts +6 -0
- package/cjs/components/index.js +24 -0
- package/cjs/components/info-card/InfoCard.js +180 -0
- package/cjs/components/info-card/index.d.ts +8 -0
- package/cjs/components/info-card/index.js +52 -0
- package/cjs/components/info-card/style/_info-card.scss +52 -0
- package/cjs/components/info-card/style/dnb-info-card.css +135 -0
- package/cjs/components/info-card/style/dnb-info-card.min.css +1 -0
- package/cjs/components/info-card/style/dnb-info-card.scss +12 -0
- package/cjs/components/info-card/style/index.d.ts +6 -0
- package/cjs/components/info-card/style/index.js +3 -0
- package/cjs/components/info-card/style.js +3 -0
- package/cjs/components/input/Input.d.ts +2 -1
- package/cjs/components/lib.js +27 -0
- package/cjs/components/number-format/NumberFormat.d.ts +2 -2
- package/cjs/components/pagination/Pagination.js +11 -1
- package/cjs/components/radio/Radio.d.ts +1 -1
- package/cjs/components/radio/RadioGroup.d.ts +1 -1
- package/cjs/components/slider/Slider.d.ts +1 -1
- package/cjs/components/step-indicator/StepIndicator.d.ts +3 -3
- package/cjs/components/step-indicator/StepIndicatorContext.d.ts +1 -1
- package/cjs/components/step-indicator/StepIndicatorItem.d.ts +1 -1
- package/cjs/components/step-indicator/StepIndicatorSidebar.d.ts +3 -3
- package/cjs/components/step-indicator/StepIndicatorTriggerButton.d.ts +1 -1
- package/cjs/components/switch/Switch.d.ts +1 -1
- package/cjs/components/tabs/Tabs.d.ts +4 -4
- package/cjs/components/tabs/TabsContentWrapper.d.ts +1 -1
- package/cjs/components/tabs/TabsCustomContent.d.ts +1 -1
- package/cjs/components/tag/Tag.js +85 -25
- package/cjs/components/tag/TagContext.js +14 -0
- package/cjs/components/tag/TagGroup.js +123 -0
- package/cjs/components/tag/style/_tag.scss +80 -16
- package/cjs/components/tag/style/dnb-tag.css +849 -33
- package/cjs/components/tag/style/dnb-tag.min.css +1 -1
- package/cjs/components/tag/style/dnb-tag.scss +3 -0
- package/cjs/components/tag/style/themes/_tag-mixins.scss +18 -0
- package/cjs/components/timeline/Timeline.js +129 -0
- package/cjs/components/timeline/TimelineItem.js +149 -0
- package/cjs/components/timeline/index.d.ts +8 -0
- package/cjs/components/timeline/index.js +52 -0
- package/cjs/components/timeline/style/_timeline.scss +42 -0
- package/cjs/components/timeline/style/dnb-timeline.css +307 -0
- package/cjs/components/timeline/style/dnb-timeline.min.css +1 -0
- package/cjs/components/timeline/style/dnb-timeline.scss +12 -0
- package/cjs/components/timeline/style/index.d.ts +6 -0
- package/cjs/components/timeline/style/index.js +3 -0
- package/cjs/components/timeline/style/themes/dnb-timeline-theme-ui.css +185 -0
- package/cjs/components/timeline/style/themes/dnb-timeline-theme-ui.min.css +1 -0
- package/cjs/components/timeline/style/themes/dnb-timeline-theme-ui.scss +105 -0
- package/cjs/components/timeline/style/themes/ui.js +3 -0
- package/cjs/components/timeline/style.js +3 -0
- package/cjs/components/toggle-button/ToggleButton.d.ts +2 -2
- package/cjs/components/toggle-button/ToggleButtonGroup.d.ts +1 -1
- package/cjs/elements/Img.d.ts +2 -2
- package/cjs/extensions/payment-card/PaymentCard.d.ts +1 -1
- package/cjs/extensions/payment-card/style/_payment-card.scss +0 -1
- package/cjs/extensions/payment-card/style/dnb-payment-card.css +0 -1
- package/cjs/extensions/payment-card/style/dnb-payment-card.min.css +1 -1
- package/cjs/fragments/drawer-list/DrawerListProvider.js +1 -0
- package/cjs/index.d.ts +6 -0
- package/cjs/index.js +24 -0
- package/cjs/shared/Context.js +10 -4
- package/cjs/shared/locales/en-GB.js +5 -0
- package/cjs/shared/locales/nb-NO.js +5 -0
- package/cjs/style/dnb-ui-components.css +710 -34
- package/cjs/style/dnb-ui-components.min.css +3 -3
- package/cjs/style/dnb-ui-components.scss +3 -0
- package/cjs/style/dnb-ui-elements.css +3 -0
- package/cjs/style/dnb-ui-elements.min.css +1 -1
- package/cjs/style/dnb-ui-extensions.css +0 -1
- package/cjs/style/dnb-ui-extensions.min.css +1 -1
- package/cjs/style/dnb-ui-tags.css +6 -0
- package/cjs/style/dnb-ui-tags.min.css +2 -2
- package/cjs/style/elements/code.scss +3 -0
- package/cjs/style/themes/theme-open-banking/dnb-theme-open-banking.css +226 -0
- package/cjs/style/themes/theme-open-banking/dnb-theme-open-banking.min.css +3 -3
- package/cjs/style/themes/theme-ui/dnb-theme-ui.css +226 -0
- package/cjs/style/themes/theme-ui/dnb-theme-ui.min.css +3 -3
- package/cjs/style/themes/theme-ui/dnb-theme-ui.scss +2 -0
- package/components/Avatar.d.ts +14 -0
- package/components/Avatar.js +3 -0
- package/components/InfoCard.d.ts +14 -0
- package/components/InfoCard.js +3 -0
- package/components/Timeline.d.ts +14 -0
- package/components/Timeline.js +3 -0
- package/components/autocomplete/Autocomplete.d.ts +2 -2
- package/components/avatar/Avatar.js +89 -0
- package/components/avatar/Avatar.tsx +163 -0
- package/components/avatar/AvatarGroup.js +94 -0
- package/components/avatar/AvatarGroup.tsx +167 -0
- package/components/avatar/index.d.ts +8 -0
- package/components/avatar/index.js +3 -0
- package/components/avatar/style/_avatar.scss +145 -0
- package/components/avatar/style/dnb-avatar.css +218 -0
- package/components/avatar/style/dnb-avatar.min.css +1 -0
- package/components/avatar/style/dnb-avatar.scss +12 -0
- package/components/avatar/style/index.d.ts +6 -0
- package/components/avatar/style/index.js +1 -0
- package/components/avatar/style/themes/dnb-avatar-theme-ui.css +36 -0
- package/components/avatar/style/themes/dnb-avatar-theme-ui.min.css +1 -0
- package/components/avatar/style/themes/dnb-avatar-theme-ui.scss +29 -0
- package/components/avatar/style/themes/ui.js +1 -0
- package/components/avatar/style.js +1 -0
- package/components/breadcrumb/BreadcrumbItem.js +3 -3
- package/components/breadcrumb/BreadcrumbItem.tsx +2 -2
- package/components/button/Button.js +1 -1
- package/components/button/style/themes/dnb-button-theme-ui.scss +3 -0
- package/components/date-picker/DatePicker.js +4 -2
- package/components/date-picker/DatePickerFooter.d.ts +1 -0
- package/components/date-picker/DatePickerFooter.js +10 -6
- package/components/dropdown/Dropdown.d.ts +4 -3
- package/components/form-label/FormLabel.d.ts +1 -1
- package/components/heading/Heading.d.ts +2 -2
- package/components/heading/HeadingProvider.d.ts +2 -2
- package/components/help-button/HelpButton.d.ts +1 -1
- package/components/help-button/HelpButtonInstance.d.ts +3 -2
- package/components/icon/Icon.d.ts +1 -1
- package/components/index.d.ts +6 -0
- package/components/index.js +4 -1
- package/components/info-card/InfoCard.js +140 -0
- package/components/info-card/InfoCard.tsx +249 -0
- package/components/info-card/index.d.ts +8 -0
- package/components/info-card/index.js +3 -0
- package/components/info-card/style/_info-card.scss +52 -0
- package/components/info-card/style/dnb-info-card.css +135 -0
- package/components/info-card/style/dnb-info-card.min.css +1 -0
- package/components/info-card/style/dnb-info-card.scss +12 -0
- package/components/info-card/style/index.d.ts +6 -0
- package/components/info-card/style/index.js +1 -0
- package/components/info-card/style.js +1 -0
- package/components/input/Input.d.ts +2 -1
- package/components/lib.js +7 -1
- package/components/number-format/NumberFormat.d.ts +2 -2
- package/components/pagination/Pagination.js +7 -0
- package/components/radio/Radio.d.ts +1 -1
- package/components/radio/RadioGroup.d.ts +1 -1
- package/components/slider/Slider.d.ts +1 -1
- package/components/step-indicator/StepIndicator.d.ts +3 -3
- package/components/step-indicator/StepIndicatorContext.d.ts +1 -1
- package/components/step-indicator/StepIndicatorItem.d.ts +1 -1
- package/components/step-indicator/StepIndicatorSidebar.d.ts +3 -3
- package/components/step-indicator/StepIndicatorTriggerButton.d.ts +1 -1
- package/components/switch/Switch.d.ts +1 -1
- package/components/tabs/Tabs.d.ts +4 -4
- package/components/tabs/TabsContentWrapper.d.ts +1 -1
- package/components/tabs/TabsCustomContent.d.ts +1 -1
- package/components/tag/Tag.js +84 -25
- package/components/tag/Tag.tsx +133 -34
- package/components/tag/TagContext.js +2 -0
- package/components/tag/TagContext.tsx +3 -0
- package/components/tag/TagGroup.js +60 -0
- package/components/tag/TagGroup.tsx +80 -0
- package/components/tag/style/_tag.scss +80 -16
- package/components/tag/style/dnb-tag.css +849 -33
- package/components/tag/style/dnb-tag.min.css +1 -1
- package/components/tag/style/dnb-tag.scss +3 -0
- package/components/tag/style/themes/_tag-mixins.scss +18 -0
- package/components/timeline/Timeline.js +57 -0
- package/components/timeline/Timeline.tsx +91 -0
- package/components/timeline/TimelineItem.js +112 -0
- package/components/timeline/TimelineItem.tsx +193 -0
- package/components/timeline/index.d.ts +8 -0
- package/components/timeline/index.js +3 -0
- package/components/timeline/style/_timeline.scss +42 -0
- package/components/timeline/style/dnb-timeline.css +307 -0
- package/components/timeline/style/dnb-timeline.min.css +1 -0
- package/components/timeline/style/dnb-timeline.scss +12 -0
- package/components/timeline/style/index.d.ts +6 -0
- package/components/timeline/style/index.js +1 -0
- package/components/timeline/style/themes/dnb-timeline-theme-ui.css +185 -0
- package/components/timeline/style/themes/dnb-timeline-theme-ui.min.css +1 -0
- package/components/timeline/style/themes/dnb-timeline-theme-ui.scss +105 -0
- package/components/timeline/style/themes/ui.js +1 -0
- package/components/timeline/style.js +1 -0
- package/components/toggle-button/ToggleButton.d.ts +2 -2
- package/components/toggle-button/ToggleButtonGroup.d.ts +1 -1
- package/elements/Img.d.ts +1 -1
- package/es/components/Avatar.d.ts +14 -0
- package/es/components/Avatar.js +3 -0
- package/es/components/InfoCard.d.ts +14 -0
- package/es/components/InfoCard.js +3 -0
- package/es/components/Timeline.d.ts +14 -0
- package/es/components/Timeline.js +3 -0
- package/es/components/autocomplete/Autocomplete.d.ts +2 -2
- package/es/components/avatar/Avatar.js +83 -0
- package/es/components/avatar/Avatar.tsx +163 -0
- package/es/components/avatar/AvatarGroup.js +89 -0
- package/es/components/avatar/AvatarGroup.tsx +167 -0
- package/es/components/avatar/index.d.ts +8 -0
- package/es/components/avatar/index.js +3 -0
- package/es/components/avatar/style/_avatar.scss +145 -0
- package/es/components/avatar/style/dnb-avatar.css +218 -0
- package/es/components/avatar/style/dnb-avatar.min.css +1 -0
- package/es/components/avatar/style/dnb-avatar.scss +12 -0
- package/es/components/avatar/style/index.d.ts +6 -0
- package/es/components/avatar/style/index.js +1 -0
- package/es/components/avatar/style/themes/dnb-avatar-theme-ui.css +36 -0
- package/es/components/avatar/style/themes/dnb-avatar-theme-ui.min.css +1 -0
- package/es/components/avatar/style/themes/dnb-avatar-theme-ui.scss +29 -0
- package/es/components/avatar/style/themes/ui.js +1 -0
- package/es/components/avatar/style.js +1 -0
- package/es/components/breadcrumb/BreadcrumbItem.js +3 -3
- package/es/components/breadcrumb/BreadcrumbItem.tsx +2 -2
- package/es/components/button/Button.d.ts +1 -1
- package/es/components/button/Button.js +1 -1
- package/es/components/button/style/themes/dnb-button-theme-ui.scss +3 -0
- package/es/components/date-picker/DatePicker.js +4 -2
- package/es/components/date-picker/DatePickerFooter.d.ts +1 -0
- package/es/components/date-picker/DatePickerFooter.js +9 -6
- package/es/components/dropdown/Dropdown.d.ts +4 -3
- package/es/components/form-label/FormLabel.d.ts +1 -1
- package/es/components/heading/Heading.d.ts +2 -2
- package/es/components/heading/HeadingProvider.d.ts +2 -2
- package/es/components/help-button/HelpButton.d.ts +1 -1
- package/es/components/help-button/HelpButtonInstance.d.ts +3 -2
- package/es/components/icon/Icon.d.ts +1 -1
- package/es/components/icon-primary/IconPrimary.d.ts +1 -1
- package/es/components/index.d.ts +6 -0
- package/es/components/index.js +4 -1
- package/es/components/info-card/InfoCard.js +135 -0
- package/es/components/info-card/InfoCard.tsx +249 -0
- package/es/components/info-card/index.d.ts +8 -0
- package/es/components/info-card/index.js +3 -0
- package/es/components/info-card/style/_info-card.scss +52 -0
- package/es/components/info-card/style/dnb-info-card.css +135 -0
- package/es/components/info-card/style/dnb-info-card.min.css +1 -0
- package/es/components/info-card/style/dnb-info-card.scss +12 -0
- package/es/components/info-card/style/index.d.ts +6 -0
- package/es/components/info-card/style/index.js +1 -0
- package/es/components/info-card/style.js +1 -0
- package/es/components/input/Input.d.ts +2 -1
- package/es/components/lib.js +7 -1
- package/es/components/number-format/NumberFormat.d.ts +2 -2
- package/es/components/pagination/Pagination.js +3 -0
- package/es/components/radio/Radio.d.ts +1 -1
- package/es/components/radio/RadioGroup.d.ts +1 -1
- package/es/components/slider/Slider.d.ts +1 -1
- package/es/components/step-indicator/StepIndicator.d.ts +3 -3
- package/es/components/step-indicator/StepIndicatorContext.d.ts +1 -1
- package/es/components/step-indicator/StepIndicatorItem.d.ts +1 -1
- package/es/components/step-indicator/StepIndicatorSidebar.d.ts +3 -3
- package/es/components/step-indicator/StepIndicatorTriggerButton.d.ts +1 -1
- package/es/components/switch/Switch.d.ts +1 -1
- package/es/components/tabs/Tabs.d.ts +4 -4
- package/es/components/tabs/TabsContentWrapper.d.ts +1 -1
- package/es/components/tabs/TabsCustomContent.d.ts +1 -1
- package/es/components/tag/Tag.js +83 -26
- package/es/components/tag/Tag.tsx +133 -34
- package/es/components/tag/TagContext.js +2 -0
- package/es/components/tag/TagContext.tsx +3 -0
- package/es/components/tag/TagGroup.js +53 -0
- package/es/components/tag/TagGroup.tsx +80 -0
- package/es/components/tag/style/_tag.scss +80 -16
- package/es/components/tag/style/dnb-tag.css +849 -33
- package/es/components/tag/style/dnb-tag.min.css +1 -1
- package/es/components/tag/style/dnb-tag.scss +3 -0
- package/es/components/tag/style/themes/_tag-mixins.scss +18 -0
- package/es/components/timeline/Timeline.js +48 -0
- package/es/components/timeline/Timeline.tsx +91 -0
- package/es/components/timeline/TimelineItem.js +111 -0
- package/es/components/timeline/TimelineItem.tsx +193 -0
- package/es/components/timeline/index.d.ts +8 -0
- package/es/components/timeline/index.js +3 -0
- package/es/components/timeline/style/_timeline.scss +42 -0
- package/es/components/timeline/style/dnb-timeline.css +307 -0
- package/es/components/timeline/style/dnb-timeline.min.css +1 -0
- package/es/components/timeline/style/dnb-timeline.scss +12 -0
- package/es/components/timeline/style/index.d.ts +6 -0
- package/es/components/timeline/style/index.js +1 -0
- package/es/components/timeline/style/themes/dnb-timeline-theme-ui.css +185 -0
- package/es/components/timeline/style/themes/dnb-timeline-theme-ui.min.css +1 -0
- package/es/components/timeline/style/themes/dnb-timeline-theme-ui.scss +105 -0
- package/es/components/timeline/style/themes/ui.js +1 -0
- package/es/components/timeline/style.js +1 -0
- package/es/components/toggle-button/ToggleButton.d.ts +2 -2
- package/es/components/toggle-button/ToggleButtonGroup.d.ts +1 -1
- package/es/elements/Img.d.ts +2 -2
- package/es/extensions/payment-card/PaymentCard.d.ts +1 -1
- package/es/extensions/payment-card/style/_payment-card.scss +0 -1
- package/es/extensions/payment-card/style/dnb-payment-card.css +0 -1
- package/es/extensions/payment-card/style/dnb-payment-card.min.css +1 -1
- package/es/fragments/drawer-list/DrawerListProvider.js +1 -0
- package/es/index.d.ts +6 -0
- package/es/index.js +4 -1
- package/es/shared/Context.js +10 -4
- package/es/shared/locales/en-GB.js +5 -0
- package/es/shared/locales/nb-NO.js +5 -0
- package/es/style/dnb-ui-components.css +710 -34
- package/es/style/dnb-ui-components.min.css +3 -3
- package/es/style/dnb-ui-components.scss +3 -0
- package/es/style/dnb-ui-elements.css +3 -0
- package/es/style/dnb-ui-elements.min.css +1 -1
- package/es/style/dnb-ui-extensions.css +0 -1
- package/es/style/dnb-ui-extensions.min.css +1 -1
- package/es/style/dnb-ui-tags.css +6 -0
- package/es/style/dnb-ui-tags.min.css +2 -2
- package/es/style/elements/code.scss +3 -0
- package/es/style/themes/theme-open-banking/dnb-theme-open-banking.css +226 -0
- package/es/style/themes/theme-open-banking/dnb-theme-open-banking.min.css +3 -3
- package/es/style/themes/theme-ui/dnb-theme-ui.css +226 -0
- package/es/style/themes/theme-ui/dnb-theme-ui.min.css +3 -3
- package/es/style/themes/theme-ui/dnb-theme-ui.scss +2 -0
- package/esm/components/Avatar.d.ts +14 -0
- package/esm/components/Avatar.js +3 -0
- package/esm/components/InfoCard.d.ts +14 -0
- package/esm/components/InfoCard.js +3 -0
- package/esm/components/Timeline.d.ts +14 -0
- package/esm/components/Timeline.js +3 -0
- package/esm/components/autocomplete/Autocomplete.d.ts +2 -2
- package/esm/components/avatar/Avatar.js +89 -0
- package/esm/components/avatar/Avatar.tsx +163 -0
- package/esm/components/avatar/AvatarGroup.js +94 -0
- package/esm/components/avatar/AvatarGroup.tsx +167 -0
- package/esm/components/avatar/index.d.ts +8 -0
- package/esm/components/avatar/index.js +3 -0
- package/esm/components/avatar/style/_avatar.scss +145 -0
- package/esm/components/avatar/style/dnb-avatar.css +218 -0
- package/esm/components/avatar/style/dnb-avatar.min.css +1 -0
- package/esm/components/avatar/style/dnb-avatar.scss +12 -0
- package/esm/components/avatar/style/index.d.ts +6 -0
- package/esm/components/avatar/style/index.js +1 -0
- package/esm/components/avatar/style/themes/dnb-avatar-theme-ui.css +36 -0
- package/esm/components/avatar/style/themes/dnb-avatar-theme-ui.min.css +1 -0
- package/esm/components/avatar/style/themes/dnb-avatar-theme-ui.scss +29 -0
- package/esm/components/avatar/style/themes/ui.js +1 -0
- package/esm/components/avatar/style.js +1 -0
- package/esm/components/breadcrumb/BreadcrumbItem.js +3 -3
- package/esm/components/breadcrumb/BreadcrumbItem.tsx +2 -2
- package/esm/components/button/Button.js +1 -1
- package/esm/components/button/style/themes/dnb-button-theme-ui.scss +3 -0
- package/esm/components/date-picker/DatePicker.js +4 -2
- package/esm/components/date-picker/DatePickerFooter.d.ts +1 -0
- package/esm/components/date-picker/DatePickerFooter.js +10 -6
- package/esm/components/dropdown/Dropdown.d.ts +4 -3
- package/esm/components/form-label/FormLabel.d.ts +1 -1
- package/esm/components/heading/Heading.d.ts +2 -2
- package/esm/components/heading/HeadingProvider.d.ts +2 -2
- package/esm/components/help-button/HelpButton.d.ts +1 -1
- package/esm/components/help-button/HelpButtonInstance.d.ts +3 -2
- package/esm/components/icon/Icon.d.ts +1 -1
- package/esm/components/index.d.ts +6 -0
- package/esm/components/index.js +4 -1
- package/esm/components/info-card/InfoCard.js +140 -0
- package/esm/components/info-card/InfoCard.tsx +249 -0
- package/esm/components/info-card/index.d.ts +8 -0
- package/esm/components/info-card/index.js +3 -0
- package/esm/components/info-card/style/_info-card.scss +52 -0
- package/esm/components/info-card/style/dnb-info-card.css +135 -0
- package/esm/components/info-card/style/dnb-info-card.min.css +1 -0
- package/esm/components/info-card/style/dnb-info-card.scss +12 -0
- package/esm/components/info-card/style/index.d.ts +6 -0
- package/esm/components/info-card/style/index.js +1 -0
- package/esm/components/info-card/style.js +1 -0
- package/esm/components/input/Input.d.ts +2 -1
- package/esm/components/lib.js +7 -1
- package/esm/components/number-format/NumberFormat.d.ts +2 -2
- package/esm/components/pagination/Pagination.js +7 -0
- package/esm/components/radio/Radio.d.ts +1 -1
- package/esm/components/radio/RadioGroup.d.ts +1 -1
- package/esm/components/slider/Slider.d.ts +1 -1
- package/esm/components/step-indicator/StepIndicator.d.ts +3 -3
- package/esm/components/step-indicator/StepIndicatorContext.d.ts +1 -1
- package/esm/components/step-indicator/StepIndicatorItem.d.ts +1 -1
- package/esm/components/step-indicator/StepIndicatorSidebar.d.ts +3 -3
- package/esm/components/step-indicator/StepIndicatorTriggerButton.d.ts +1 -1
- package/esm/components/switch/Switch.d.ts +1 -1
- package/esm/components/tabs/Tabs.d.ts +4 -4
- package/esm/components/tabs/TabsContentWrapper.d.ts +1 -1
- package/esm/components/tabs/TabsCustomContent.d.ts +1 -1
- package/esm/components/tag/Tag.js +84 -25
- package/esm/components/tag/Tag.tsx +133 -34
- package/esm/components/tag/TagContext.js +2 -0
- package/esm/components/tag/TagContext.tsx +3 -0
- package/esm/components/tag/TagGroup.js +60 -0
- package/esm/components/tag/TagGroup.tsx +80 -0
- package/esm/components/tag/style/_tag.scss +80 -16
- package/esm/components/tag/style/dnb-tag.css +849 -33
- package/esm/components/tag/style/dnb-tag.min.css +1 -1
- package/esm/components/tag/style/dnb-tag.scss +3 -0
- package/esm/components/tag/style/themes/_tag-mixins.scss +18 -0
- package/esm/components/timeline/Timeline.js +57 -0
- package/esm/components/timeline/Timeline.tsx +91 -0
- package/esm/components/timeline/TimelineItem.js +112 -0
- package/esm/components/timeline/TimelineItem.tsx +193 -0
- package/esm/components/timeline/index.d.ts +8 -0
- package/esm/components/timeline/index.js +3 -0
- package/esm/components/timeline/style/_timeline.scss +42 -0
- package/esm/components/timeline/style/dnb-timeline.css +307 -0
- package/esm/components/timeline/style/dnb-timeline.min.css +1 -0
- package/esm/components/timeline/style/dnb-timeline.scss +12 -0
- package/esm/components/timeline/style/index.d.ts +6 -0
- package/esm/components/timeline/style/index.js +1 -0
- package/esm/components/timeline/style/themes/dnb-timeline-theme-ui.css +185 -0
- package/esm/components/timeline/style/themes/dnb-timeline-theme-ui.min.css +1 -0
- package/esm/components/timeline/style/themes/dnb-timeline-theme-ui.scss +105 -0
- package/esm/components/timeline/style/themes/ui.js +1 -0
- package/esm/components/timeline/style.js +1 -0
- package/esm/components/toggle-button/ToggleButton.d.ts +2 -2
- package/esm/components/toggle-button/ToggleButtonGroup.d.ts +1 -1
- package/esm/dnb-ui-components.min.mjs +4 -4
- package/esm/dnb-ui-elements.min.mjs +1 -1
- package/esm/dnb-ui-extensions.min.mjs +3 -3
- package/esm/dnb-ui-lib.min.mjs +4 -4
- package/esm/dnb-ui-web-components.min.mjs +4 -4
- package/esm/elements/Img.d.ts +1 -1
- package/esm/extensions/payment-card/PaymentCard.d.ts +1 -1
- package/esm/extensions/payment-card/style/_payment-card.scss +0 -1
- package/esm/extensions/payment-card/style/dnb-payment-card.css +0 -1
- package/esm/extensions/payment-card/style/dnb-payment-card.min.css +1 -1
- package/esm/fragments/drawer-list/DrawerListProvider.js +1 -0
- package/esm/index.d.ts +6 -0
- package/esm/index.js +4 -1
- package/esm/shared/Context.js +10 -4
- package/esm/shared/locales/en-GB.js +5 -0
- package/esm/shared/locales/nb-NO.js +5 -0
- package/esm/style/dnb-ui-components.css +710 -34
- package/esm/style/dnb-ui-components.min.css +3 -3
- package/esm/style/dnb-ui-components.scss +3 -0
- package/esm/style/dnb-ui-elements.css +3 -0
- package/esm/style/dnb-ui-elements.min.css +1 -1
- package/esm/style/dnb-ui-extensions.css +0 -1
- package/esm/style/dnb-ui-extensions.min.css +1 -1
- package/esm/style/dnb-ui-tags.css +6 -0
- package/esm/style/dnb-ui-tags.min.css +2 -2
- package/esm/style/elements/code.scss +3 -0
- package/esm/style/themes/theme-open-banking/dnb-theme-open-banking.css +226 -0
- package/esm/style/themes/theme-open-banking/dnb-theme-open-banking.min.css +3 -3
- package/esm/style/themes/theme-ui/dnb-theme-ui.css +226 -0
- package/esm/style/themes/theme-ui/dnb-theme-ui.min.css +3 -3
- package/esm/style/themes/theme-ui/dnb-theme-ui.scss +2 -0
- package/extensions/payment-card/PaymentCard.d.ts +1 -1
- package/extensions/payment-card/style/_payment-card.scss +0 -1
- package/extensions/payment-card/style/dnb-payment-card.css +0 -1
- package/extensions/payment-card/style/dnb-payment-card.min.css +1 -1
- package/fragments/drawer-list/DrawerListProvider.js +1 -0
- package/index.d.ts +6 -0
- package/index.js +4 -1
- package/package.json +2 -3
- package/shared/Context.js +10 -4
- package/shared/locales/en-GB.js +5 -0
- package/shared/locales/nb-NO.js +5 -0
- package/style/dnb-ui-components.css +710 -34
- package/style/dnb-ui-components.min.css +3 -3
- package/style/dnb-ui-components.scss +3 -0
- package/style/dnb-ui-elements.css +3 -0
- package/style/dnb-ui-elements.min.css +1 -1
- package/style/dnb-ui-extensions.css +0 -1
- package/style/dnb-ui-extensions.min.css +1 -1
- package/style/dnb-ui-tags.css +6 -0
- package/style/dnb-ui-tags.min.css +2 -2
- package/style/elements/code.scss +3 -0
- package/style/themes/theme-open-banking/dnb-theme-open-banking.css +226 -0
- package/style/themes/theme-open-banking/dnb-theme-open-banking.min.css +3 -3
- package/style/themes/theme-ui/dnb-theme-ui.css +226 -0
- package/style/themes/theme-ui/dnb-theme-ui.min.css +3 -3
- package/style/themes/theme-ui/dnb-theme-ui.scss +2 -0
- package/umd/dnb-ui-components.min.js +5 -5
- package/umd/dnb-ui-elements.min.js +3 -3
- package/umd/dnb-ui-extensions.min.js +3 -3
- package/umd/dnb-ui-lib.min.js +5 -5
- package/umd/dnb-ui-web-components.min.js +5 -5
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* DNB Timeline
|
|
3
|
+
*
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* This file is only used to make components independent
|
|
7
|
+
* so that they can get imported individually, without the core styles
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
/*
|
|
11
|
+
* Utilities
|
|
12
|
+
*/
|
|
13
|
+
/*
|
|
14
|
+
* Scopes
|
|
15
|
+
*
|
|
16
|
+
*/
|
|
17
|
+
/*
|
|
18
|
+
* Document Reset
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
.dnb-timeline {
|
|
22
|
+
font-family: 'DNB', sans-serif;
|
|
23
|
+
font-family: var(--font-family-default);
|
|
24
|
+
font-weight: normal;
|
|
25
|
+
font-weight: var(--font-weight-basis);
|
|
26
|
+
font-size: 1rem;
|
|
27
|
+
font-size: var(--font-size-small);
|
|
28
|
+
font-style: normal;
|
|
29
|
+
line-height: 1.5rem;
|
|
30
|
+
line-height: var(--line-height-basis);
|
|
31
|
+
color: #333;
|
|
32
|
+
color: var(--color-black-80, #333);
|
|
33
|
+
-moz-osx-font-smoothing: grayscale;
|
|
34
|
+
-webkit-font-smoothing: antialiased;
|
|
35
|
+
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
36
|
+
/**
|
|
37
|
+
* Ensure consistency and use the same as HTML reset -> html {...}
|
|
38
|
+
* between base and code package
|
|
39
|
+
*/
|
|
40
|
+
-moz-tab-size: 4;
|
|
41
|
+
-o-tab-size: 4;
|
|
42
|
+
tab-size: 4;
|
|
43
|
+
-ms-text-size-adjust: 100%;
|
|
44
|
+
-webkit-text-size-adjust: 100%;
|
|
45
|
+
word-break: break-word;
|
|
46
|
+
/**
|
|
47
|
+
* 1. Remove repeating backgrounds in all browsers (opinionated).
|
|
48
|
+
* 2. Add border box sizing in all browsers (opinionated).
|
|
49
|
+
*/
|
|
50
|
+
/**
|
|
51
|
+
* 1. Add text decoration inheritance in all browsers (opinionated).
|
|
52
|
+
* 2. Add vertical alignment inheritance in all browsers (opinionated).
|
|
53
|
+
*/
|
|
54
|
+
margin: 0;
|
|
55
|
+
padding: 0; }
|
|
56
|
+
.dnb-timeline *,
|
|
57
|
+
.dnb-timeline ::before,
|
|
58
|
+
.dnb-timeline ::after {
|
|
59
|
+
background-repeat: no-repeat;
|
|
60
|
+
/* 1 */
|
|
61
|
+
-webkit-box-sizing: border-box;
|
|
62
|
+
box-sizing: border-box;
|
|
63
|
+
/* 2 */ }
|
|
64
|
+
.dnb-timeline ::before,
|
|
65
|
+
.dnb-timeline ::after {
|
|
66
|
+
text-decoration: inherit;
|
|
67
|
+
/* 1 */
|
|
68
|
+
vertical-align: inherit;
|
|
69
|
+
/* 2 */ }
|
|
70
|
+
|
|
71
|
+
/*
|
|
72
|
+
* Timeline component
|
|
73
|
+
*
|
|
74
|
+
*/
|
|
75
|
+
/*
|
|
76
|
+
* Timeline theme
|
|
77
|
+
*
|
|
78
|
+
*/
|
|
79
|
+
/**
|
|
80
|
+
* This file is only used to make themes independent
|
|
81
|
+
* so that they can get imported individually, without the core styles
|
|
82
|
+
*
|
|
83
|
+
*/
|
|
84
|
+
/*
|
|
85
|
+
* Utilities
|
|
86
|
+
*/
|
|
87
|
+
/*
|
|
88
|
+
* Button mixins
|
|
89
|
+
*
|
|
90
|
+
*/
|
|
91
|
+
:root {
|
|
92
|
+
--timeline-icon-height--small: var(--button-height--small);
|
|
93
|
+
--timeline-icon-width--small: var(--button-width--small);
|
|
94
|
+
--timeline-icon-border-radius--small: calc(var(--timeline-icon-height--small)/2);
|
|
95
|
+
--timeline-icon-border-radius--small: calc(
|
|
96
|
+
var(--timeline-icon-height--small) / 2
|
|
97
|
+
);
|
|
98
|
+
--timeline-icon-height--medium: var(--button-height--medium);
|
|
99
|
+
--timeline-icon-width--medium: var(--button-width--medium);
|
|
100
|
+
--timeline-icon-border-radius--medium: calc(var(--timeline-icon-height--medium)/2);
|
|
101
|
+
--timeline-icon-border-radius--medium: calc(
|
|
102
|
+
var(--timeline-icon-height--medium) / 2
|
|
103
|
+
);
|
|
104
|
+
--timeline-icon-width-diff: calc(var(--timeline-icon-width--medium)/2 - var(--timeline-icon-width--small)/2);
|
|
105
|
+
--timeline-icon-width-diff: calc(
|
|
106
|
+
(
|
|
107
|
+
var(--timeline-icon-width--medium) -
|
|
108
|
+
var(--timeline-icon-width--small)
|
|
109
|
+
) / 2
|
|
110
|
+
);
|
|
111
|
+
--timeline-border-spacing: var(--spacing-small);
|
|
112
|
+
--timeline-border-spacing--icon-adjusted: calc(var(--timeline-icon-width-diff) + var(--timeline-border-spacing));
|
|
113
|
+
--timeline-border-spacing--icon-adjusted: calc(
|
|
114
|
+
var(--timeline-icon-width-diff) + var(--timeline-border-spacing)
|
|
115
|
+
); }
|
|
116
|
+
|
|
117
|
+
.dnb-timeline__item {
|
|
118
|
+
margin-left: 0.25rem;
|
|
119
|
+
margin-left: calc(
|
|
120
|
+
(
|
|
121
|
+
2rem -
|
|
122
|
+
1.5rem) / 2
|
|
123
|
+
);
|
|
124
|
+
margin-left: var(--timeline-icon-width-diff); }
|
|
125
|
+
.dnb-timeline__item__label__icon {
|
|
126
|
+
width: 1.5rem;
|
|
127
|
+
width: var(--timeline-icon-width--small);
|
|
128
|
+
line-height: 1.5rem;
|
|
129
|
+
line-height: var(--timeline-icon-height--small);
|
|
130
|
+
border-radius: 0.75rem;
|
|
131
|
+
border-radius: calc(
|
|
132
|
+
1.5rem / 2
|
|
133
|
+
);
|
|
134
|
+
border-radius: var(--timeline-icon-border-radius--small);
|
|
135
|
+
color: #333;
|
|
136
|
+
color: var(--color-black-80);
|
|
137
|
+
background-color: #fff;
|
|
138
|
+
background-color: var(--color-white);
|
|
139
|
+
--border-color: var(--color-black-80);
|
|
140
|
+
-webkit-box-shadow: inset 0 0 0 0.0625rem var(--border-color);
|
|
141
|
+
box-shadow: inset 0 0 0 0.0625rem var(--border-color);
|
|
142
|
+
/* iOS fix - because "inset" works not fine with border-radius */
|
|
143
|
+
/* Safari fix - because "inset" works not fine with border-radius if the user zooms the page */
|
|
144
|
+
border-color: transparent; }
|
|
145
|
+
@supports (-webkit-touch-callout: none) {
|
|
146
|
+
.dnb-timeline__item__label__icon {
|
|
147
|
+
-webkit-box-shadow: 0 0 0 0.0625rem var(--border-color);
|
|
148
|
+
box-shadow: 0 0 0 0.0625rem var(--border-color); } }
|
|
149
|
+
@media not all and (min-resolution: 0.001dpcm) {
|
|
150
|
+
@supports (-webkit-appearance: none) and (stroke-color: transparent) and (not (-webkit-overflow-scrolling: touch)) {
|
|
151
|
+
.dnb-timeline__item__label__icon {
|
|
152
|
+
-webkit-box-shadow: 0 0 0 0.0625rem var(--border-color);
|
|
153
|
+
box-shadow: 0 0 0 0.0625rem var(--border-color); } } }
|
|
154
|
+
@media screen and (-ms-high-contrast: none) {
|
|
155
|
+
.dnb-timeline__item__label__icon {
|
|
156
|
+
-webkit-box-shadow: inset 0 0 0 1px #333;
|
|
157
|
+
box-shadow: inset 0 0 0 1px #333;
|
|
158
|
+
-webkit-box-shadow: inset 0 0 0 1px var(--color-black-80);
|
|
159
|
+
box-shadow: inset 0 0 0 1px var(--color-black-80); } }
|
|
160
|
+
.dnb-timeline__item__label__name {
|
|
161
|
+
margin-left: 1.25rem;
|
|
162
|
+
margin-left: calc(
|
|
163
|
+
calc(
|
|
164
|
+
(
|
|
165
|
+
2rem -
|
|
166
|
+
1.5rem) / 2
|
|
167
|
+
) + 1rem);
|
|
168
|
+
margin-left: var(--timeline-border-spacing--icon-adjusted);
|
|
169
|
+
font-size: 1rem;
|
|
170
|
+
font-size: var(--font-size-small);
|
|
171
|
+
line-height: 1.25rem;
|
|
172
|
+
line-height: var(--line-height-small); }
|
|
173
|
+
.dnb-timeline__item__content {
|
|
174
|
+
margin-left: 0.75rem;
|
|
175
|
+
margin-left: calc(1.5rem / 2);
|
|
176
|
+
margin-left: calc(var(--timeline-icon-width--small)/2);
|
|
177
|
+
margin-left: calc(var(--timeline-icon-width--small) / 2);
|
|
178
|
+
padding-left: 2rem;
|
|
179
|
+
padding-left: calc(1.5rem / 2 + calc(
|
|
180
|
+
calc(
|
|
181
|
+
(
|
|
182
|
+
2rem -
|
|
183
|
+
1.5rem) / 2
|
|
184
|
+
) + 1rem));
|
|
185
|
+
padding-left: calc(var(--timeline-icon-width--small)/2 + var(--timeline-border-spacing--icon-adjusted));
|
|
186
|
+
padding-left: calc(var(--timeline-icon-width--small) / 2 + var(--timeline-border-spacing--icon-adjusted));
|
|
187
|
+
border-left: 1px dashed #737373;
|
|
188
|
+
border-left: 1px dashed var(--color-black-55); }
|
|
189
|
+
.dnb-timeline__item--completed .dnb-timeline__item__content {
|
|
190
|
+
border-left: 1px solid #333;
|
|
191
|
+
border-left: 1px solid var(--color-black-80); }
|
|
192
|
+
.dnb-timeline__item--completed .dnb-timeline__item__label__name {
|
|
193
|
+
color: #333;
|
|
194
|
+
color: var(--color-black-80); }
|
|
195
|
+
.dnb-timeline__item--current .dnb-timeline__item__content {
|
|
196
|
+
margin-left: 1rem;
|
|
197
|
+
margin-left: calc(2rem / 2);
|
|
198
|
+
margin-left: calc(var(--timeline-icon-width--medium)/2);
|
|
199
|
+
margin-left: calc(var(--timeline-icon-width--medium) / 2);
|
|
200
|
+
padding-left: 2rem;
|
|
201
|
+
padding-left: calc(2rem / 2 + 1rem);
|
|
202
|
+
padding-left: calc(var(--timeline-icon-width--medium)/2 + var(--timeline-border-spacing));
|
|
203
|
+
padding-left: calc(var(--timeline-icon-width--medium) / 2 + var(--timeline-border-spacing)); }
|
|
204
|
+
.dnb-timeline__item--current .dnb-timeline__item__label__name {
|
|
205
|
+
margin-left: 1rem;
|
|
206
|
+
margin-left: var(--timeline-border-spacing);
|
|
207
|
+
font-weight: 500;
|
|
208
|
+
font-weight: var(--font-weight-medium);
|
|
209
|
+
font-size: 1.125rem;
|
|
210
|
+
font-size: var(--font-size-basis);
|
|
211
|
+
line-height: 1.5rem;
|
|
212
|
+
line-height: var(--line-height-basis); }
|
|
213
|
+
.dnb-timeline__item--current .dnb-timeline__item__label__icon {
|
|
214
|
+
width: 2rem;
|
|
215
|
+
width: var(--timeline-icon-width--medium);
|
|
216
|
+
line-height: 2rem;
|
|
217
|
+
line-height: var(--timeline-icon-height--medium);
|
|
218
|
+
border-radius: 1rem;
|
|
219
|
+
border-radius: calc(
|
|
220
|
+
2rem / 2
|
|
221
|
+
);
|
|
222
|
+
border-radius: var(--timeline-icon-border-radius--medium); }
|
|
223
|
+
.dnb-timeline__item--current {
|
|
224
|
+
margin-left: 0; }
|
|
225
|
+
.dnb-timeline__item--upcoming .dnb-timeline__item__label__name {
|
|
226
|
+
font-weight: normal;
|
|
227
|
+
font-weight: var(--font-weight-basis);
|
|
228
|
+
color: #737373;
|
|
229
|
+
color: var(--color-black-55); }
|
|
230
|
+
.dnb-timeline__item--upcoming:not(.dnb-skeleton) .dnb-timeline__item__label__icon {
|
|
231
|
+
color: #737373;
|
|
232
|
+
color: var(--color-black-55);
|
|
233
|
+
background-color: #f8f8f8;
|
|
234
|
+
background-color: var(--color-black-3);
|
|
235
|
+
--border-color: var(--color-black-3);
|
|
236
|
+
-webkit-box-shadow: inset 0 0 0 0.0625rem var(--border-color);
|
|
237
|
+
box-shadow: inset 0 0 0 0.0625rem var(--border-color);
|
|
238
|
+
/* iOS fix - because "inset" works not fine with border-radius */
|
|
239
|
+
/* Safari fix - because "inset" works not fine with border-radius if the user zooms the page */
|
|
240
|
+
border-color: transparent; }
|
|
241
|
+
@supports (-webkit-touch-callout: none) {
|
|
242
|
+
.dnb-timeline__item--upcoming:not(.dnb-skeleton) .dnb-timeline__item__label__icon {
|
|
243
|
+
-webkit-box-shadow: 0 0 0 0.0625rem var(--border-color);
|
|
244
|
+
box-shadow: 0 0 0 0.0625rem var(--border-color); } }
|
|
245
|
+
@media not all and (min-resolution: 0.001dpcm) {
|
|
246
|
+
@supports (-webkit-appearance: none) and (stroke-color: transparent) and (not (-webkit-overflow-scrolling: touch)) {
|
|
247
|
+
.dnb-timeline__item--upcoming:not(.dnb-skeleton) .dnb-timeline__item__label__icon {
|
|
248
|
+
-webkit-box-shadow: 0 0 0 0.0625rem var(--border-color);
|
|
249
|
+
box-shadow: 0 0 0 0.0625rem var(--border-color); } } }
|
|
250
|
+
@media screen and (-ms-high-contrast: none) {
|
|
251
|
+
.dnb-timeline__item--upcoming:not(.dnb-skeleton) .dnb-timeline__item__label__icon {
|
|
252
|
+
-webkit-box-shadow: inset 0 0 0 1px #f8f8f8;
|
|
253
|
+
box-shadow: inset 0 0 0 1px #f8f8f8;
|
|
254
|
+
-webkit-box-shadow: inset 0 0 0 1px var(--color-black-3);
|
|
255
|
+
box-shadow: inset 0 0 0 1px var(--color-black-3); } }
|
|
256
|
+
.dnb-timeline__item:only-child {
|
|
257
|
+
margin-left: 0; }
|
|
258
|
+
.dnb-timeline__item:last-child .dnb-timeline__item__content {
|
|
259
|
+
border-left: none; }
|
|
260
|
+
|
|
261
|
+
.dnb-timeline {
|
|
262
|
+
display: -webkit-box;
|
|
263
|
+
display: -ms-flexbox;
|
|
264
|
+
display: flex;
|
|
265
|
+
-webkit-box-orient: vertical;
|
|
266
|
+
-webkit-box-direction: normal;
|
|
267
|
+
-ms-flex-direction: column;
|
|
268
|
+
flex-direction: column; }
|
|
269
|
+
.dnb-timeline__item__label {
|
|
270
|
+
display: -webkit-box;
|
|
271
|
+
display: -ms-flexbox;
|
|
272
|
+
display: flex;
|
|
273
|
+
-webkit-box-align: center;
|
|
274
|
+
-ms-flex-align: center;
|
|
275
|
+
align-items: center;
|
|
276
|
+
text-align: left;
|
|
277
|
+
padding: 0; }
|
|
278
|
+
.dnb-timeline__item__label__icon {
|
|
279
|
+
display: -webkit-box;
|
|
280
|
+
display: -ms-flexbox;
|
|
281
|
+
display: flex;
|
|
282
|
+
-ms-flex-negative: 0;
|
|
283
|
+
flex-shrink: 0;
|
|
284
|
+
-webkit-box-align: center;
|
|
285
|
+
-ms-flex-align: center;
|
|
286
|
+
align-items: center;
|
|
287
|
+
height: auto;
|
|
288
|
+
-webkit-box-pack: center;
|
|
289
|
+
-ms-flex-pack: center;
|
|
290
|
+
justify-content: center;
|
|
291
|
+
padding: 0; }
|
|
292
|
+
.dnb-timeline__item__label__name {
|
|
293
|
+
cursor: text; }
|
|
294
|
+
.dnb-timeline__item__content {
|
|
295
|
+
padding-bottom: 1rem;
|
|
296
|
+
padding-bottom: var(--spacing-small); }
|
|
297
|
+
.dnb-timeline__item__content__date {
|
|
298
|
+
cursor: text;
|
|
299
|
+
font-size: 0.875rem;
|
|
300
|
+
font-size: var(--font-size-x-small);
|
|
301
|
+
font-weight: normal;
|
|
302
|
+
font-weight: var(--font-weight-basis);
|
|
303
|
+
color: #737373;
|
|
304
|
+
color: var(--color-black-55); }
|
|
305
|
+
.dnb-timeline__item__content__info {
|
|
306
|
+
padding-top: 0.5rem;
|
|
307
|
+
padding-top: var(--spacing-x-small); }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.dnb-timeline{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:rgba(0,0,0,0);-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;color:#333;color:var(--color-black-80,#333);font-family:DNB,sans-serif;font-family:var(--font-family-default);font-size:1rem;font-size:var(--font-size-small);font-style:normal;font-weight:400;font-weight:var(--font-weight-basis);line-height:1.5rem;line-height:var(--line-height-basis);margin:0;padding:0;-moz-tab-size:4;-o-tab-size:4;tab-size:4;word-break:break-word}.dnb-timeline *,.dnb-timeline :after,.dnb-timeline :before{background-repeat:no-repeat;-webkit-box-sizing:border-box;box-sizing:border-box}.dnb-timeline :after,.dnb-timeline :before{text-decoration:inherit;vertical-align:inherit}:root{--timeline-icon-height--small:var(--button-height--small);--timeline-icon-width--small:var(--button-width--small);--timeline-icon-border-radius--small:calc(var(--timeline-icon-height--small)/2);--timeline-icon-height--medium:var(--button-height--medium);--timeline-icon-width--medium:var(--button-width--medium);--timeline-icon-border-radius--medium:calc(var(--timeline-icon-height--medium)/2);--timeline-icon-width-diff:calc(var(--timeline-icon-width--medium)/2 - var(--timeline-icon-width--small)/2);--timeline-border-spacing:var(--spacing-small);--timeline-border-spacing--icon-adjusted:calc(var(--timeline-icon-width-diff) + var(--timeline-border-spacing))}.dnb-timeline__item{margin-left:.25rem;margin-left:var(--timeline-icon-width-diff)}.dnb-timeline__item__label__icon{--border-color:var(--color-black-80);background-color:#fff;background-color:var(--color-white);border-color:transparent;border-radius:.75rem;border-radius:var(--timeline-icon-border-radius--small);-webkit-box-shadow:inset 0 0 0 .0625rem var(--border-color);box-shadow:inset 0 0 0 .0625rem var(--border-color);color:#333;color:var(--color-black-80);line-height:1.5rem;line-height:var(--timeline-icon-height--small);width:1.5rem;width:var(--timeline-icon-width--small)}@supports (-webkit-touch-callout:none){.dnb-timeline__item__label__icon{-webkit-box-shadow:0 0 0 .0625rem var(--border-color);box-shadow:0 0 0 .0625rem var(--border-color)}}@media not all and (min-resolution:0.001dpcm){@supports (-webkit-appearance:none) and (stroke-color:transparent) and (not (-webkit-overflow-scrolling:touch)){.dnb-timeline__item__label__icon{-webkit-box-shadow:0 0 0 .0625rem var(--border-color);box-shadow:0 0 0 .0625rem var(--border-color)}}}@media screen and (-ms-high-contrast:none){.dnb-timeline__item__label__icon{-webkit-box-shadow:inset 0 0 0 1px #333;box-shadow:inset 0 0 0 1px #333;-webkit-box-shadow:inset 0 0 0 1px var(--color-black-80);box-shadow:inset 0 0 0 1px var(--color-black-80)}}.dnb-timeline__item__label__name{font-size:1rem;font-size:var(--font-size-small);line-height:1.25rem;line-height:var(--line-height-small);margin-left:1.25rem;margin-left:var(--timeline-border-spacing--icon-adjusted)}.dnb-timeline__item__content{border-left:1px dashed #737373;border-left:1px dashed var(--color-black-55);margin-left:.75rem;margin-left:calc(var(--timeline-icon-width--small)/2);padding-left:2rem;padding-left:calc(var(--timeline-icon-width--small)/2 + var(--timeline-border-spacing--icon-adjusted))}.dnb-timeline__item--completed .dnb-timeline__item__content{border-left:1px solid #333;border-left:1px solid var(--color-black-80)}.dnb-timeline__item--completed .dnb-timeline__item__label__name{color:#333;color:var(--color-black-80)}.dnb-timeline__item--current .dnb-timeline__item__content{margin-left:1rem;margin-left:calc(var(--timeline-icon-width--medium)/2);padding-left:2rem;padding-left:calc(var(--timeline-icon-width--medium)/2 + var(--timeline-border-spacing))}.dnb-timeline__item--current .dnb-timeline__item__label__name{font-size:1.125rem;font-size:var(--font-size-basis);font-weight:500;font-weight:var(--font-weight-medium);line-height:1.5rem;line-height:var(--line-height-basis);margin-left:1rem;margin-left:var(--timeline-border-spacing)}.dnb-timeline__item--current .dnb-timeline__item__label__icon{border-radius:1rem;border-radius:var(--timeline-icon-border-radius--medium);line-height:2rem;line-height:var(--timeline-icon-height--medium);width:2rem;width:var(--timeline-icon-width--medium)}.dnb-timeline__item--current{margin-left:0}.dnb-timeline__item--upcoming .dnb-timeline__item__label__name{color:#737373;color:var(--color-black-55);font-weight:400;font-weight:var(--font-weight-basis)}.dnb-timeline__item--upcoming:not(.dnb-skeleton) .dnb-timeline__item__label__icon{--border-color:var(--color-black-3);background-color:#f8f8f8;background-color:var(--color-black-3);border-color:transparent;-webkit-box-shadow:inset 0 0 0 .0625rem var(--border-color);box-shadow:inset 0 0 0 .0625rem var(--border-color);color:#737373;color:var(--color-black-55)}@supports (-webkit-touch-callout:none){.dnb-timeline__item--upcoming:not(.dnb-skeleton) .dnb-timeline__item__label__icon{-webkit-box-shadow:0 0 0 .0625rem var(--border-color);box-shadow:0 0 0 .0625rem var(--border-color)}}@media not all and (min-resolution:0.001dpcm){@supports (-webkit-appearance:none) and (stroke-color:transparent) and (not (-webkit-overflow-scrolling:touch)){.dnb-timeline__item--upcoming:not(.dnb-skeleton) .dnb-timeline__item__label__icon{-webkit-box-shadow:0 0 0 .0625rem var(--border-color);box-shadow:0 0 0 .0625rem var(--border-color)}}}@media screen and (-ms-high-contrast:none){.dnb-timeline__item--upcoming:not(.dnb-skeleton) .dnb-timeline__item__label__icon{-webkit-box-shadow:inset 0 0 0 1px #f8f8f8;box-shadow:inset 0 0 0 1px #f8f8f8;-webkit-box-shadow:inset 0 0 0 1px var(--color-black-3);box-shadow:inset 0 0 0 1px var(--color-black-3)}}.dnb-timeline__item:only-child{margin-left:0}.dnb-timeline__item:last-child .dnb-timeline__item__content{border-left:none}.dnb-timeline{-webkit-box-orient:vertical;-webkit-box-direction:normal;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.dnb-timeline__item__label{text-align:left}.dnb-timeline__item__label,.dnb-timeline__item__label__icon{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;padding:0}.dnb-timeline__item__label__icon{-ms-flex-negative:0;-webkit-box-pack:center;-ms-flex-pack:center;flex-shrink:0;height:auto;justify-content:center}.dnb-timeline__item__label__name{cursor:text}.dnb-timeline__item__content{padding-bottom:1rem;padding-bottom:var(--spacing-small)}.dnb-timeline__item__content__date{color:#737373;color:var(--color-black-55);cursor:text;font-size:.875rem;font-size:var(--font-size-x-small);font-weight:400;font-weight:var(--font-weight-basis)}.dnb-timeline__item__content__info{padding-top:.5rem;padding-top:var(--spacing-x-small)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./dnb-timeline.min.css";
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Timeline theme
|
|
3
|
+
*
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* This file is only used to make themes independent
|
|
7
|
+
* so that they can get imported individually, without the core styles
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
/*
|
|
11
|
+
* Utilities
|
|
12
|
+
*/
|
|
13
|
+
/*
|
|
14
|
+
* Button mixins
|
|
15
|
+
*
|
|
16
|
+
*/
|
|
17
|
+
:root {
|
|
18
|
+
--timeline-icon-height--small: var(--button-height--small);
|
|
19
|
+
--timeline-icon-width--small: var(--button-width--small);
|
|
20
|
+
--timeline-icon-border-radius--small: calc(var(--timeline-icon-height--small)/2);
|
|
21
|
+
--timeline-icon-border-radius--small: calc(
|
|
22
|
+
var(--timeline-icon-height--small) / 2
|
|
23
|
+
);
|
|
24
|
+
--timeline-icon-height--medium: var(--button-height--medium);
|
|
25
|
+
--timeline-icon-width--medium: var(--button-width--medium);
|
|
26
|
+
--timeline-icon-border-radius--medium: calc(var(--timeline-icon-height--medium)/2);
|
|
27
|
+
--timeline-icon-border-radius--medium: calc(
|
|
28
|
+
var(--timeline-icon-height--medium) / 2
|
|
29
|
+
);
|
|
30
|
+
--timeline-icon-width-diff: calc(var(--timeline-icon-width--medium)/2 - var(--timeline-icon-width--small)/2);
|
|
31
|
+
--timeline-icon-width-diff: calc(
|
|
32
|
+
(
|
|
33
|
+
var(--timeline-icon-width--medium) -
|
|
34
|
+
var(--timeline-icon-width--small)
|
|
35
|
+
) / 2
|
|
36
|
+
);
|
|
37
|
+
--timeline-border-spacing: var(--spacing-small);
|
|
38
|
+
--timeline-border-spacing--icon-adjusted: calc(var(--timeline-icon-width-diff) + var(--timeline-border-spacing));
|
|
39
|
+
--timeline-border-spacing--icon-adjusted: calc(
|
|
40
|
+
var(--timeline-icon-width-diff) + var(--timeline-border-spacing)
|
|
41
|
+
); }
|
|
42
|
+
|
|
43
|
+
.dnb-timeline__item {
|
|
44
|
+
margin-left: 0.25rem;
|
|
45
|
+
margin-left: calc(
|
|
46
|
+
(
|
|
47
|
+
2rem -
|
|
48
|
+
1.5rem) / 2
|
|
49
|
+
);
|
|
50
|
+
margin-left: var(--timeline-icon-width-diff); }
|
|
51
|
+
.dnb-timeline__item__label__icon {
|
|
52
|
+
width: 1.5rem;
|
|
53
|
+
width: var(--timeline-icon-width--small);
|
|
54
|
+
line-height: 1.5rem;
|
|
55
|
+
line-height: var(--timeline-icon-height--small);
|
|
56
|
+
border-radius: 0.75rem;
|
|
57
|
+
border-radius: calc(
|
|
58
|
+
1.5rem / 2
|
|
59
|
+
);
|
|
60
|
+
border-radius: var(--timeline-icon-border-radius--small);
|
|
61
|
+
color: #333;
|
|
62
|
+
color: var(--color-black-80);
|
|
63
|
+
background-color: #fff;
|
|
64
|
+
background-color: var(--color-white);
|
|
65
|
+
--border-color: var(--color-black-80);
|
|
66
|
+
-webkit-box-shadow: inset 0 0 0 0.0625rem var(--border-color);
|
|
67
|
+
box-shadow: inset 0 0 0 0.0625rem var(--border-color);
|
|
68
|
+
/* iOS fix - because "inset" works not fine with border-radius */
|
|
69
|
+
/* Safari fix - because "inset" works not fine with border-radius if the user zooms the page */
|
|
70
|
+
border-color: transparent; }
|
|
71
|
+
@supports (-webkit-touch-callout: none) {
|
|
72
|
+
.dnb-timeline__item__label__icon {
|
|
73
|
+
-webkit-box-shadow: 0 0 0 0.0625rem var(--border-color);
|
|
74
|
+
box-shadow: 0 0 0 0.0625rem var(--border-color); } }
|
|
75
|
+
@media not all and (min-resolution: 0.001dpcm) {
|
|
76
|
+
@supports (-webkit-appearance: none) and (stroke-color: transparent) and (not (-webkit-overflow-scrolling: touch)) {
|
|
77
|
+
.dnb-timeline__item__label__icon {
|
|
78
|
+
-webkit-box-shadow: 0 0 0 0.0625rem var(--border-color);
|
|
79
|
+
box-shadow: 0 0 0 0.0625rem var(--border-color); } } }
|
|
80
|
+
@media screen and (-ms-high-contrast: none) {
|
|
81
|
+
.dnb-timeline__item__label__icon {
|
|
82
|
+
-webkit-box-shadow: inset 0 0 0 1px #333;
|
|
83
|
+
box-shadow: inset 0 0 0 1px #333;
|
|
84
|
+
-webkit-box-shadow: inset 0 0 0 1px var(--color-black-80);
|
|
85
|
+
box-shadow: inset 0 0 0 1px var(--color-black-80); } }
|
|
86
|
+
.dnb-timeline__item__label__name {
|
|
87
|
+
margin-left: 1.25rem;
|
|
88
|
+
margin-left: calc(
|
|
89
|
+
calc(
|
|
90
|
+
(
|
|
91
|
+
2rem -
|
|
92
|
+
1.5rem) / 2
|
|
93
|
+
) + 1rem);
|
|
94
|
+
margin-left: var(--timeline-border-spacing--icon-adjusted);
|
|
95
|
+
font-size: 1rem;
|
|
96
|
+
font-size: var(--font-size-small);
|
|
97
|
+
line-height: 1.25rem;
|
|
98
|
+
line-height: var(--line-height-small); }
|
|
99
|
+
.dnb-timeline__item__content {
|
|
100
|
+
margin-left: 0.75rem;
|
|
101
|
+
margin-left: calc(1.5rem / 2);
|
|
102
|
+
margin-left: calc(var(--timeline-icon-width--small)/2);
|
|
103
|
+
margin-left: calc(var(--timeline-icon-width--small) / 2);
|
|
104
|
+
padding-left: 2rem;
|
|
105
|
+
padding-left: calc(1.5rem / 2 + calc(
|
|
106
|
+
calc(
|
|
107
|
+
(
|
|
108
|
+
2rem -
|
|
109
|
+
1.5rem) / 2
|
|
110
|
+
) + 1rem));
|
|
111
|
+
padding-left: calc(var(--timeline-icon-width--small)/2 + var(--timeline-border-spacing--icon-adjusted));
|
|
112
|
+
padding-left: calc(var(--timeline-icon-width--small) / 2 + var(--timeline-border-spacing--icon-adjusted));
|
|
113
|
+
border-left: 1px dashed #737373;
|
|
114
|
+
border-left: 1px dashed var(--color-black-55); }
|
|
115
|
+
.dnb-timeline__item--completed .dnb-timeline__item__content {
|
|
116
|
+
border-left: 1px solid #333;
|
|
117
|
+
border-left: 1px solid var(--color-black-80); }
|
|
118
|
+
.dnb-timeline__item--completed .dnb-timeline__item__label__name {
|
|
119
|
+
color: #333;
|
|
120
|
+
color: var(--color-black-80); }
|
|
121
|
+
.dnb-timeline__item--current .dnb-timeline__item__content {
|
|
122
|
+
margin-left: 1rem;
|
|
123
|
+
margin-left: calc(2rem / 2);
|
|
124
|
+
margin-left: calc(var(--timeline-icon-width--medium)/2);
|
|
125
|
+
margin-left: calc(var(--timeline-icon-width--medium) / 2);
|
|
126
|
+
padding-left: 2rem;
|
|
127
|
+
padding-left: calc(2rem / 2 + 1rem);
|
|
128
|
+
padding-left: calc(var(--timeline-icon-width--medium)/2 + var(--timeline-border-spacing));
|
|
129
|
+
padding-left: calc(var(--timeline-icon-width--medium) / 2 + var(--timeline-border-spacing)); }
|
|
130
|
+
.dnb-timeline__item--current .dnb-timeline__item__label__name {
|
|
131
|
+
margin-left: 1rem;
|
|
132
|
+
margin-left: var(--timeline-border-spacing);
|
|
133
|
+
font-weight: 500;
|
|
134
|
+
font-weight: var(--font-weight-medium);
|
|
135
|
+
font-size: 1.125rem;
|
|
136
|
+
font-size: var(--font-size-basis);
|
|
137
|
+
line-height: 1.5rem;
|
|
138
|
+
line-height: var(--line-height-basis); }
|
|
139
|
+
.dnb-timeline__item--current .dnb-timeline__item__label__icon {
|
|
140
|
+
width: 2rem;
|
|
141
|
+
width: var(--timeline-icon-width--medium);
|
|
142
|
+
line-height: 2rem;
|
|
143
|
+
line-height: var(--timeline-icon-height--medium);
|
|
144
|
+
border-radius: 1rem;
|
|
145
|
+
border-radius: calc(
|
|
146
|
+
2rem / 2
|
|
147
|
+
);
|
|
148
|
+
border-radius: var(--timeline-icon-border-radius--medium); }
|
|
149
|
+
.dnb-timeline__item--current {
|
|
150
|
+
margin-left: 0; }
|
|
151
|
+
.dnb-timeline__item--upcoming .dnb-timeline__item__label__name {
|
|
152
|
+
font-weight: normal;
|
|
153
|
+
font-weight: var(--font-weight-basis);
|
|
154
|
+
color: #737373;
|
|
155
|
+
color: var(--color-black-55); }
|
|
156
|
+
.dnb-timeline__item--upcoming:not(.dnb-skeleton) .dnb-timeline__item__label__icon {
|
|
157
|
+
color: #737373;
|
|
158
|
+
color: var(--color-black-55);
|
|
159
|
+
background-color: #f8f8f8;
|
|
160
|
+
background-color: var(--color-black-3);
|
|
161
|
+
--border-color: var(--color-black-3);
|
|
162
|
+
-webkit-box-shadow: inset 0 0 0 0.0625rem var(--border-color);
|
|
163
|
+
box-shadow: inset 0 0 0 0.0625rem var(--border-color);
|
|
164
|
+
/* iOS fix - because "inset" works not fine with border-radius */
|
|
165
|
+
/* Safari fix - because "inset" works not fine with border-radius if the user zooms the page */
|
|
166
|
+
border-color: transparent; }
|
|
167
|
+
@supports (-webkit-touch-callout: none) {
|
|
168
|
+
.dnb-timeline__item--upcoming:not(.dnb-skeleton) .dnb-timeline__item__label__icon {
|
|
169
|
+
-webkit-box-shadow: 0 0 0 0.0625rem var(--border-color);
|
|
170
|
+
box-shadow: 0 0 0 0.0625rem var(--border-color); } }
|
|
171
|
+
@media not all and (min-resolution: 0.001dpcm) {
|
|
172
|
+
@supports (-webkit-appearance: none) and (stroke-color: transparent) and (not (-webkit-overflow-scrolling: touch)) {
|
|
173
|
+
.dnb-timeline__item--upcoming:not(.dnb-skeleton) .dnb-timeline__item__label__icon {
|
|
174
|
+
-webkit-box-shadow: 0 0 0 0.0625rem var(--border-color);
|
|
175
|
+
box-shadow: 0 0 0 0.0625rem var(--border-color); } } }
|
|
176
|
+
@media screen and (-ms-high-contrast: none) {
|
|
177
|
+
.dnb-timeline__item--upcoming:not(.dnb-skeleton) .dnb-timeline__item__label__icon {
|
|
178
|
+
-webkit-box-shadow: inset 0 0 0 1px #f8f8f8;
|
|
179
|
+
box-shadow: inset 0 0 0 1px #f8f8f8;
|
|
180
|
+
-webkit-box-shadow: inset 0 0 0 1px var(--color-black-3);
|
|
181
|
+
box-shadow: inset 0 0 0 1px var(--color-black-3); } }
|
|
182
|
+
.dnb-timeline__item:only-child {
|
|
183
|
+
margin-left: 0; }
|
|
184
|
+
.dnb-timeline__item:last-child .dnb-timeline__item__content {
|
|
185
|
+
border-left: none; }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root{--timeline-icon-height--small:var(--button-height--small);--timeline-icon-width--small:var(--button-width--small);--timeline-icon-border-radius--small:calc(var(--timeline-icon-height--small)/2);--timeline-icon-height--medium:var(--button-height--medium);--timeline-icon-width--medium:var(--button-width--medium);--timeline-icon-border-radius--medium:calc(var(--timeline-icon-height--medium)/2);--timeline-icon-width-diff:calc(var(--timeline-icon-width--medium)/2 - var(--timeline-icon-width--small)/2);--timeline-border-spacing:var(--spacing-small);--timeline-border-spacing--icon-adjusted:calc(var(--timeline-icon-width-diff) + var(--timeline-border-spacing))}.dnb-timeline__item{margin-left:.25rem;margin-left:var(--timeline-icon-width-diff)}.dnb-timeline__item__label__icon{--border-color:var(--color-black-80);background-color:#fff;background-color:var(--color-white);border-color:transparent;border-radius:.75rem;border-radius:var(--timeline-icon-border-radius--small);-webkit-box-shadow:inset 0 0 0 .0625rem var(--border-color);box-shadow:inset 0 0 0 .0625rem var(--border-color);color:#333;color:var(--color-black-80);line-height:1.5rem;line-height:var(--timeline-icon-height--small);width:1.5rem;width:var(--timeline-icon-width--small)}@supports (-webkit-touch-callout:none){.dnb-timeline__item__label__icon{-webkit-box-shadow:0 0 0 .0625rem var(--border-color);box-shadow:0 0 0 .0625rem var(--border-color)}}@media not all and (min-resolution:0.001dpcm){@supports (-webkit-appearance:none) and (stroke-color:transparent) and (not (-webkit-overflow-scrolling:touch)){.dnb-timeline__item__label__icon{-webkit-box-shadow:0 0 0 .0625rem var(--border-color);box-shadow:0 0 0 .0625rem var(--border-color)}}}@media screen and (-ms-high-contrast:none){.dnb-timeline__item__label__icon{-webkit-box-shadow:inset 0 0 0 1px #333;box-shadow:inset 0 0 0 1px #333;-webkit-box-shadow:inset 0 0 0 1px var(--color-black-80);box-shadow:inset 0 0 0 1px var(--color-black-80)}}.dnb-timeline__item__label__name{font-size:1rem;font-size:var(--font-size-small);line-height:1.25rem;line-height:var(--line-height-small);margin-left:1.25rem;margin-left:var(--timeline-border-spacing--icon-adjusted)}.dnb-timeline__item__content{border-left:1px dashed #737373;border-left:1px dashed var(--color-black-55);margin-left:.75rem;margin-left:calc(var(--timeline-icon-width--small)/2);padding-left:2rem;padding-left:calc(var(--timeline-icon-width--small)/2 + var(--timeline-border-spacing--icon-adjusted))}.dnb-timeline__item--completed .dnb-timeline__item__content{border-left:1px solid #333;border-left:1px solid var(--color-black-80)}.dnb-timeline__item--completed .dnb-timeline__item__label__name{color:#333;color:var(--color-black-80)}.dnb-timeline__item--current .dnb-timeline__item__content{margin-left:1rem;margin-left:calc(var(--timeline-icon-width--medium)/2);padding-left:2rem;padding-left:calc(var(--timeline-icon-width--medium)/2 + var(--timeline-border-spacing))}.dnb-timeline__item--current .dnb-timeline__item__label__name{font-size:1.125rem;font-size:var(--font-size-basis);font-weight:500;font-weight:var(--font-weight-medium);line-height:1.5rem;line-height:var(--line-height-basis);margin-left:1rem;margin-left:var(--timeline-border-spacing)}.dnb-timeline__item--current .dnb-timeline__item__label__icon{border-radius:1rem;border-radius:var(--timeline-icon-border-radius--medium);line-height:2rem;line-height:var(--timeline-icon-height--medium);width:2rem;width:var(--timeline-icon-width--medium)}.dnb-timeline__item--current{margin-left:0}.dnb-timeline__item--upcoming .dnb-timeline__item__label__name{color:#737373;color:var(--color-black-55);font-weight:400;font-weight:var(--font-weight-basis)}.dnb-timeline__item--upcoming:not(.dnb-skeleton) .dnb-timeline__item__label__icon{--border-color:var(--color-black-3);background-color:#f8f8f8;background-color:var(--color-black-3);border-color:transparent;-webkit-box-shadow:inset 0 0 0 .0625rem var(--border-color);box-shadow:inset 0 0 0 .0625rem var(--border-color);color:#737373;color:var(--color-black-55)}@supports (-webkit-touch-callout:none){.dnb-timeline__item--upcoming:not(.dnb-skeleton) .dnb-timeline__item__label__icon{-webkit-box-shadow:0 0 0 .0625rem var(--border-color);box-shadow:0 0 0 .0625rem var(--border-color)}}@media not all and (min-resolution:0.001dpcm){@supports (-webkit-appearance:none) and (stroke-color:transparent) and (not (-webkit-overflow-scrolling:touch)){.dnb-timeline__item--upcoming:not(.dnb-skeleton) .dnb-timeline__item__label__icon{-webkit-box-shadow:0 0 0 .0625rem var(--border-color);box-shadow:0 0 0 .0625rem var(--border-color)}}}@media screen and (-ms-high-contrast:none){.dnb-timeline__item--upcoming:not(.dnb-skeleton) .dnb-timeline__item__label__icon{-webkit-box-shadow:inset 0 0 0 1px #f8f8f8;box-shadow:inset 0 0 0 1px #f8f8f8;-webkit-box-shadow:inset 0 0 0 1px var(--color-black-3);box-shadow:inset 0 0 0 1px var(--color-black-3)}}.dnb-timeline__item:only-child{margin-left:0}.dnb-timeline__item:last-child .dnb-timeline__item__content{border-left:none}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Timeline theme
|
|
3
|
+
*
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
@import '../../../../style/themes/imports.scss';
|
|
7
|
+
@import '../../../button/style/themes/_button-mixins.scss';
|
|
8
|
+
|
|
9
|
+
:root {
|
|
10
|
+
--timeline-icon-height--small: var(--button-height--small);
|
|
11
|
+
--timeline-icon-width--small: var(--button-width--small);
|
|
12
|
+
--timeline-icon-border-radius--small: calc(
|
|
13
|
+
var(--timeline-icon-height--small) / 2
|
|
14
|
+
);
|
|
15
|
+
--timeline-icon-height--medium: var(--button-height--medium);
|
|
16
|
+
--timeline-icon-width--medium: var(--button-width--medium);
|
|
17
|
+
--timeline-icon-border-radius--medium: calc(
|
|
18
|
+
var(--timeline-icon-height--medium) / 2
|
|
19
|
+
);
|
|
20
|
+
--timeline-icon-width-diff: calc(
|
|
21
|
+
(
|
|
22
|
+
var(--timeline-icon-width--medium) -
|
|
23
|
+
var(--timeline-icon-width--small)
|
|
24
|
+
) / 2
|
|
25
|
+
);
|
|
26
|
+
--timeline-border-spacing: var(--spacing-small);
|
|
27
|
+
--timeline-border-spacing--icon-adjusted: calc(
|
|
28
|
+
var(--timeline-icon-width-diff) + var(--timeline-border-spacing)
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@mixin centerBorder(
|
|
33
|
+
$width: var(--timeline-icon-width--medium),
|
|
34
|
+
$spacing: var(--timeline-border-spacing--icon-adjusted)
|
|
35
|
+
) {
|
|
36
|
+
margin-left: calc(#{$width} / 2);
|
|
37
|
+
padding-left: calc(#{$width} / 2 + #{$spacing});
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.dnb-timeline {
|
|
41
|
+
&__item {
|
|
42
|
+
margin-left: var(--timeline-icon-width-diff);
|
|
43
|
+
&__label {
|
|
44
|
+
&__icon {
|
|
45
|
+
width: var(--timeline-icon-width--small);
|
|
46
|
+
line-height: var(--timeline-icon-height--small);
|
|
47
|
+
border-radius: var(--timeline-icon-border-radius--small);
|
|
48
|
+
color: var(--color-black-80);
|
|
49
|
+
background-color: var(--color-white);
|
|
50
|
+
@include fakeBorder(var(--color-black-80), 0.0625rem, inset, true);
|
|
51
|
+
}
|
|
52
|
+
&__name {
|
|
53
|
+
margin-left: var(--timeline-border-spacing--icon-adjusted);
|
|
54
|
+
font-size: var(--font-size-small);
|
|
55
|
+
line-height: var(--line-height-small);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
&__content {
|
|
59
|
+
@include centerBorder(var(--timeline-icon-width--small));
|
|
60
|
+
border-left: 1px dashed var(--color-black-55);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&--completed &__content {
|
|
64
|
+
border-left: 1px solid var(--color-black-80);
|
|
65
|
+
}
|
|
66
|
+
&--completed &__label__name {
|
|
67
|
+
color: var(--color-black-80);
|
|
68
|
+
}
|
|
69
|
+
&--current &__content {
|
|
70
|
+
@include centerBorder(
|
|
71
|
+
var(--timeline-icon-width--medium),
|
|
72
|
+
var(--timeline-border-spacing)
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
&--current &__label__name {
|
|
76
|
+
margin-left: var(--timeline-border-spacing);
|
|
77
|
+
font-weight: var(--font-weight-medium);
|
|
78
|
+
font-size: var(--font-size-basis);
|
|
79
|
+
line-height: var(--line-height-basis);
|
|
80
|
+
}
|
|
81
|
+
&--current &__label__icon {
|
|
82
|
+
width: var(--timeline-icon-width--medium);
|
|
83
|
+
line-height: var(--timeline-icon-height--medium);
|
|
84
|
+
border-radius: var(--timeline-icon-border-radius--medium);
|
|
85
|
+
}
|
|
86
|
+
&--current {
|
|
87
|
+
margin-left: 0;
|
|
88
|
+
}
|
|
89
|
+
&--upcoming &__label__name {
|
|
90
|
+
font-weight: var(--font-weight-basis);
|
|
91
|
+
color: var(--color-black-55);
|
|
92
|
+
}
|
|
93
|
+
&--upcoming:not(.dnb-skeleton) &__label__icon {
|
|
94
|
+
color: var(--color-black-55);
|
|
95
|
+
background-color: var(--color-black-3);
|
|
96
|
+
@include fakeBorder(var(--color-black-3), 0.0625rem, inset, true);
|
|
97
|
+
}
|
|
98
|
+
&:only-child {
|
|
99
|
+
margin-left: 0;
|
|
100
|
+
}
|
|
101
|
+
&:last-child &__content {
|
|
102
|
+
border-left: none;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./dnb-timeline-theme-ui.min.css";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./style/dnb-timeline.min.css";
|
|
@@ -64,7 +64,7 @@ export type ToggleButtonChildren = string | ((...args: any[]) => any);
|
|
|
64
64
|
*/
|
|
65
65
|
export interface ToggleButtonProps extends React.HTMLProps<HTMLElement> {
|
|
66
66
|
/**
|
|
67
|
-
*
|
|
67
|
+
* <em>(required)</em> the text shown in the ToggleButton.
|
|
68
68
|
*/
|
|
69
69
|
text?: string;
|
|
70
70
|
|
|
@@ -121,7 +121,7 @@ export interface ToggleButtonProps extends React.HTMLProps<HTMLElement> {
|
|
|
121
121
|
suffix?: ToggleButtonSuffix;
|
|
122
122
|
|
|
123
123
|
/**
|
|
124
|
-
*
|
|
124
|
+
* <em>(required)</em> defines the `value` as a string. Use it to get the value during the `on_change` event listener callback in the "ToggleButtonGroup".
|
|
125
125
|
*/
|
|
126
126
|
value?: ToggleButtonValue;
|
|
127
127
|
|
|
@@ -117,7 +117,7 @@ export interface ToggleButtonGroupProps
|
|
|
117
117
|
layout_direction?: ToggleButtonGroupLayoutDirection;
|
|
118
118
|
|
|
119
119
|
/**
|
|
120
|
-
*
|
|
120
|
+
* <em>(required)</em> defines the `value` as a string. Use it to get the value during the `on_change` event listener callback in the "ToggleButtonGroup".
|
|
121
121
|
*/
|
|
122
122
|
value?: ToggleButtonGroupValue;
|
|
123
123
|
|