@nulogy/components 14.8.2 → 15.0.1
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/dist/locales/de_DE.json +63 -0
- package/dist/locales/en_US.json +63 -0
- package/dist/locales/es_ES.json +63 -0
- package/dist/locales/es_MX.json +63 -0
- package/dist/locales/fr_FR.json +63 -0
- package/dist/locales/nl_NL.json +63 -0
- package/dist/locales/pl_PL.json +63 -0
- package/dist/locales/pt_BR.json +63 -0
- package/dist/locales/ro_RO.json +63 -0
- package/dist/locales/zh_CN.json +63 -0
- package/dist/main.js +6615 -6668
- package/dist/main.module.js +6611 -6664
- package/dist/src/Alert/Alert.d.ts +26 -26
- package/dist/src/Alert/Alert.js +70 -0
- package/dist/src/Alert/Alert.story.d.ts +24 -24
- package/dist/src/Alert/Alert.story.js +27 -0
- package/dist/src/Alert/CloseButton.d.ts +7 -7
- package/dist/src/Alert/CloseButton.js +10 -0
- package/dist/src/Alert/index.d.ts +2 -2
- package/dist/src/Alert/index.js +1 -0
- package/dist/src/AppTag/AppTag.d.ts +9 -9
- package/dist/src/AppTag/AppTag.js +39 -0
- package/dist/src/AppTag/components/LogoWrapper.d.ts +5 -5
- package/dist/src/AppTag/components/LogoWrapper.js +12 -0
- package/dist/src/AppTag/components/NulogyLogo.d.ts +2 -2
- package/dist/src/AppTag/components/NulogyLogo.js +17 -0
- package/dist/src/AppTag/constants.d.ts +5 -5
- package/dist/src/AppTag/constants.js +14 -0
- package/dist/src/AppTag/index.d.ts +2 -2
- package/dist/src/AppTag/index.js +1 -0
- package/dist/src/AppTag/stories/AppTag.story.d.ts +12 -12
- package/dist/src/AppTag/stories/AppTag.story.js +34 -0
- package/dist/src/AppTag/stories/AppTag.usecases.story.d.ts +27 -27
- package/dist/src/AppTag/stories/AppTag.usecases.story.js +118 -0
- package/dist/src/AppTag/types.d.ts +3 -3
- package/dist/src/AppTag/types.js +1 -0
- package/dist/src/AsyncSelect/AsyncSelect.d.ts +24 -24
- package/dist/src/AsyncSelect/AsyncSelect.graphql.story.d.ts +6 -6
- package/dist/src/AsyncSelect/AsyncSelect.graphql.story.js +61 -0
- package/dist/src/AsyncSelect/AsyncSelect.js +46 -0
- package/dist/src/AsyncSelect/AsyncSelect.story.d.ts +29 -29
- package/dist/src/AsyncSelect/AsyncSelect.story.js +54 -0
- package/dist/src/AsyncSelect/AsyncSelectComponents.d.ts +22 -22
- package/dist/src/AsyncSelect/AsyncSelectComponents.js +54 -0
- package/dist/src/AsyncSelect/fixtures.d.ts +5 -5
- package/dist/src/AsyncSelect/fixtures.js +68 -0
- package/dist/src/AsyncSelect/index.d.ts +1 -1
- package/dist/src/AsyncSelect/index.js +1 -0
- package/dist/src/Banner/Banner.d.ts +4 -4
- package/dist/src/Banner/Banner.js +18 -0
- package/dist/src/Banner/Banner.story.d.ts +14 -14
- package/dist/src/Banner/Banner.story.js +38 -0
- package/dist/src/Banner/index.d.ts +1 -1
- package/dist/src/Banner/index.js +1 -0
- package/dist/src/BottomSheet/BottomSheet.d.ts +22 -22
- package/dist/src/BottomSheet/BottomSheet.js +49 -0
- package/dist/src/BottomSheet/BottomSheet.parts.d.ts +50 -50
- package/dist/src/BottomSheet/BottomSheet.parts.js +64 -0
- package/dist/src/BottomSheet/BottomSheet.styled.d.ts +50 -50
- package/dist/src/BottomSheet/BottomSheet.styled.js +86 -0
- package/dist/src/BottomSheet/BottomSheetProvider.d.ts +12 -12
- package/dist/src/BottomSheet/BottomSheetProvider.js +15 -0
- package/dist/src/BottomSheet/index.d.ts +3 -3
- package/dist/src/BottomSheet/index.js +2 -0
- package/dist/src/BottomSheet/stories/BottomSheet.actions.story.d.ts +13 -13
- package/dist/src/BottomSheet/stories/BottomSheet.actions.story.js +25 -0
- package/dist/src/BottomSheet/stories/BottomSheet.content.story.d.ts +13 -13
- package/dist/src/BottomSheet/stories/BottomSheet.content.story.js +29 -0
- package/dist/src/BottomSheet/stories/BottomSheet.features.story.d.ts +20 -20
- package/dist/src/BottomSheet/stories/BottomSheet.features.story.js +77 -0
- package/dist/src/BottomSheet/stories/BottomSheet.parts.story.d.ts +12 -12
- package/dist/src/BottomSheet/stories/BottomSheet.parts.story.js +45 -0
- package/dist/src/BottomSheet/stories/BottomSheet.story.d.ts +12 -12
- package/dist/src/BottomSheet/stories/BottomSheet.story.js +18 -0
- package/dist/src/Box/Box.d.ts +268 -268
- package/dist/src/Box/Box.js +6 -0
- package/dist/src/Box/Box.story.d.ts +72 -72
- package/dist/src/Box/Box.story.js +85 -0
- package/dist/src/Box/index.d.ts +2 -2
- package/dist/src/Box/index.js +1 -0
- package/dist/src/BrandedNavBar/BrandLogoContainer.d.ts +12 -12
- package/dist/src/BrandedNavBar/BrandLogoContainer.js +14 -0
- package/dist/src/BrandedNavBar/DesktopMenu.d.ts +11 -11
- package/dist/src/BrandedNavBar/DesktopMenu.js +98 -0
- package/dist/src/BrandedNavBar/MenuTrigger.d.ts +19 -19
- package/dist/src/BrandedNavBar/MenuTrigger.js +59 -0
- package/dist/src/BrandedNavBar/MenuTriggerButton.d.ts +10 -10
- package/dist/src/BrandedNavBar/MenuTriggerButton.js +56 -0
- package/dist/src/BrandedNavBar/MobileMenu.d.ts +20 -20
- package/dist/src/BrandedNavBar/MobileMenu.js +153 -0
- package/dist/src/BrandedNavBar/NavBar.d.ts +15 -15
- package/dist/src/BrandedNavBar/NavBar.js +69 -0
- package/dist/src/BrandedNavBar/NavBar.story.d.ts +84 -84
- package/dist/src/BrandedNavBar/NavBar.story.js +416 -0
- package/dist/src/BrandedNavBar/NavBarBackground.d.ts +10 -10
- package/dist/src/BrandedNavBar/NavBarBackground.js +12 -0
- package/dist/src/BrandedNavBar/NavBarDropdownMenu.d.ts +4 -4
- package/dist/src/BrandedNavBar/NavBarDropdownMenu.js +94 -0
- package/dist/src/BrandedNavBar/NulogyLogo.d.ts +3 -3
- package/dist/src/BrandedNavBar/NulogyLogo.js +15 -0
- package/dist/src/BrandedNavBar/NulogyLogoContainer.d.ts +8 -8
- package/dist/src/BrandedNavBar/NulogyLogoContainer.js +11 -0
- package/dist/src/BrandedNavBar/SmallNavBar.d.ts +39 -39
- package/dist/src/BrandedNavBar/SmallNavBar.js +92 -0
- package/dist/src/BrandedNavBar/SmallNavBar.story.d.ts +21 -21
- package/dist/src/BrandedNavBar/SmallNavBar.story.js +89 -0
- package/dist/src/BrandedNavBar/SubMenuTrigger.d.ts +15 -15
- package/dist/src/BrandedNavBar/SubMenuTrigger.js +61 -0
- package/dist/src/BrandedNavBar/SubMenuTriggerButton.d.ts +8 -8
- package/dist/src/BrandedNavBar/SubMenuTriggerButton.js +31 -0
- package/dist/src/BrandedNavBar/TriggerFunctionProps.d.ts +10 -10
- package/dist/src/BrandedNavBar/TriggerFunctionProps.js +1 -0
- package/dist/src/BrandedNavBar/index.d.ts +11 -11
- package/dist/src/BrandedNavBar/index.js +6 -0
- package/dist/src/BrandedNavBar/isValidMenuItem.d.ts +2 -2
- package/dist/src/BrandedNavBar/isValidMenuItem.js +19 -0
- package/dist/src/BrandedNavBar/renderSubMenuItems.d.ts +3 -3
- package/dist/src/BrandedNavBar/renderSubMenuItems.js +52 -0
- package/dist/src/Branding/Branding.d.ts +12 -12
- package/dist/src/Branding/Branding.js +81 -0
- package/dist/src/Branding/Branding.story.d.ts +6 -6
- package/dist/src/Branding/Branding.story.js +81 -0
- package/dist/src/Branding/BrandingText.d.ts +7 -7
- package/dist/src/Branding/BrandingText.js +23 -0
- package/dist/src/Branding/LettermarkLogo.d.ts +7 -7
- package/dist/src/Branding/LettermarkLogo.js +32 -0
- package/dist/src/Branding/WordmarkLogo.d.ts +9 -9
- package/dist/src/Branding/WordmarkLogo.js +39 -0
- package/dist/src/Branding/index.d.ts +2 -2
- package/dist/src/Branding/index.js +2 -0
- package/dist/src/Breadcrumbs/Breadcrumbs.d.ts +8 -8
- package/dist/src/Breadcrumbs/Breadcrumbs.js +35 -0
- package/dist/src/Breadcrumbs/Breadcrumbs.story.d.ts +18 -18
- package/dist/src/Breadcrumbs/Breadcrumbs.story.js +29 -0
- package/dist/src/Breadcrumbs/BreadcrumbsList.d.ts +3 -3
- package/dist/src/Breadcrumbs/BreadcrumbsList.js +7 -0
- package/dist/src/Breadcrumbs/BreadcrumbsListItem.d.ts +6 -6
- package/dist/src/Breadcrumbs/BreadcrumbsListItem.js +34 -0
- package/dist/src/Breadcrumbs/index.d.ts +1 -1
- package/dist/src/Breadcrumbs/index.js +1 -0
- package/dist/src/Button/Button.d.ts +19 -19
- package/dist/src/Button/Button.js +87 -0
- package/dist/src/Button/Button.story.d.ts +49 -49
- package/dist/src/Button/Button.story.js +53 -0
- package/dist/src/Button/CloseButton.d.ts +5 -5
- package/dist/src/Button/CloseButton.js +51 -0
- package/dist/src/Button/ControlIcon.d.ts +14 -14
- package/dist/src/Button/ControlIcon.js +46 -0
- package/dist/src/Button/ControlIcon.story.d.ts +8 -8
- package/dist/src/Button/ControlIcon.story.js +9 -0
- package/dist/src/Button/DangerButton.d.ts +4 -4
- package/dist/src/Button/DangerButton.js +22 -0
- package/dist/src/Button/IconicButton.d.ts +19 -19
- package/dist/src/Button/IconicButton.js +129 -0
- package/dist/src/Button/IconicButton.story.d.ts +82 -82
- package/dist/src/Button/IconicButton.story.js +74 -0
- package/dist/src/Button/PrimaryButton.d.ts +4 -4
- package/dist/src/Button/PrimaryButton.js +22 -0
- package/dist/src/Button/QuietButton.d.ts +4 -4
- package/dist/src/Button/QuietButton.js +8 -0
- package/dist/src/Button/index.d.ts +7 -7
- package/dist/src/Button/index.js +7 -0
- package/dist/src/ButtonGroup/ButtonGroup.d.ts +9 -9
- package/dist/src/ButtonGroup/ButtonGroup.js +30 -0
- package/dist/src/ButtonGroup/ButtonGroup.story.d.ts +40 -40
- package/dist/src/ButtonGroup/ButtonGroup.story.js +63 -0
- package/dist/src/ButtonGroup/index.d.ts +1 -1
- package/dist/src/ButtonGroup/index.js +1 -0
- package/dist/src/Card/Card.d.ts +3 -3
- package/dist/src/Card/Card.js +17 -0
- package/dist/src/Card/Card.story.d.ts +19 -19
- package/dist/src/Card/Card.story.js +56 -0
- package/dist/src/Card/CardSet.d.ts +3 -3
- package/dist/src/Card/CardSet.js +8 -0
- package/dist/src/Card/index.d.ts +2 -2
- package/dist/src/Card/index.js +2 -0
- package/dist/src/Checkbox/Checkbox.d.ts +18 -18
- package/dist/src/Checkbox/Checkbox.js +97 -0
- package/dist/src/Checkbox/Checkbox.story.d.ts +58 -58
- package/dist/src/Checkbox/Checkbox.story.js +73 -0
- package/dist/src/Checkbox/CheckboxGroup.d.ts +20 -20
- package/dist/src/Checkbox/CheckboxGroup.js +44 -0
- package/dist/src/Checkbox/CheckboxGroup.story.d.ts +36 -36
- package/dist/src/Checkbox/CheckboxGroup.story.js +45 -0
- package/dist/src/Checkbox/index.d.ts +2 -2
- package/dist/src/Checkbox/index.js +2 -0
- package/dist/src/DatePickers/DatePicker.d.ts +4 -4
- package/dist/src/DatePickers/DatePicker.js +51 -0
- package/dist/src/DatePickers/MonthPicker.d.ts +6 -6
- package/dist/src/DatePickers/MonthPicker.js +41 -0
- package/dist/src/DatePickers/WeekPicker.d.ts +27 -27
- package/dist/src/DatePickers/WeekPicker.js +131 -0
- package/dist/src/DatePickers/custom/MonthPickerHeader.d.ts +5 -5
- package/dist/src/DatePickers/custom/MonthPickerHeader.js +13 -0
- package/dist/src/DatePickers/custom/weekPickerStyles.d.ts +5 -5
- package/dist/src/DatePickers/custom/weekPickerStyles.js +107 -0
- package/dist/src/DatePickers/index.d.ts +3 -3
- package/dist/src/DatePickers/index.js +3 -0
- package/dist/src/DatePickers/shared/components/BasePicker.d.ts +16 -16
- package/dist/src/DatePickers/shared/components/BasePicker.js +64 -0
- package/dist/src/DatePickers/shared/components/DatePickerHeader.d.ts +15 -15
- package/dist/src/DatePickers/shared/components/DatePickerHeader.js +19 -0
- package/dist/src/DatePickers/shared/components/DatePickerInput.d.ts +18 -18
- package/dist/src/DatePickers/shared/components/DatePickerInput.js +45 -0
- package/dist/src/DatePickers/shared/helpers.d.ts +4 -4
- package/dist/src/DatePickers/shared/helpers.js +6 -0
- package/dist/src/DatePickers/shared/styles.d.ts +2 -2
- package/dist/src/DatePickers/shared/styles.js +165 -0
- package/dist/src/DatePickers/shared/types.d.ts +23 -23
- package/dist/src/DatePickers/shared/types.js +1 -0
- package/dist/src/DatePickers/stories/DatePicker.story.d.ts +12 -12
- package/dist/src/DatePickers/stories/DatePicker.story.js +46 -0
- package/dist/src/DatePickers/stories/MonthPicker.story.d.ts +11 -11
- package/dist/src/DatePickers/stories/MonthPicker.story.js +50 -0
- package/dist/src/DatePickers/stories/WeekPicker.story.d.ts +13 -13
- package/dist/src/DatePickers/stories/WeekPicker.story.js +44 -0
- package/dist/src/DateRange/DateRange.d.ts +36 -36
- package/dist/src/DateRange/DateRange.js +105 -0
- package/dist/src/DateRange/DateRange.story.d.ts +17 -17
- package/dist/src/DateRange/DateRange.story.js +67 -0
- package/dist/src/DateRange/DateRangeStyles.d.ts +23 -23
- package/dist/src/DateRange/DateRangeStyles.js +61 -0
- package/dist/src/DateRange/EndTime.d.ts +49 -49
- package/dist/src/DateRange/EndTime.js +6 -0
- package/dist/src/DateRange/StartTime.d.ts +49 -49
- package/dist/src/DateRange/StartTime.js +6 -0
- package/dist/src/DateRange/index.d.ts +1 -1
- package/dist/src/DateRange/index.js +1 -0
- package/dist/src/Decorations/index.d.ts +3 -3
- package/dist/src/Decorations/index.js +17 -0
- package/dist/src/DescriptionList/DescriptionList.d.ts +3 -3
- package/dist/src/DescriptionList/DescriptionList.js +22 -0
- package/dist/src/DescriptionList/DescriptionList.parts.d.ts +14 -14
- package/dist/src/DescriptionList/DescriptionList.parts.js +109 -0
- package/dist/src/DescriptionList/DescriptionListContext.d.ts +19 -19
- package/dist/src/DescriptionList/DescriptionListContext.js +24 -0
- package/dist/src/DescriptionList/index.d.ts +5 -5
- package/dist/src/DescriptionList/index.js +4 -0
- package/dist/src/DescriptionList/lib/types.d.ts +26 -26
- package/dist/src/DescriptionList/lib/types.js +1 -0
- package/dist/src/DescriptionList/lib/utils.d.ts +5 -5
- package/dist/src/DescriptionList/lib/utils.js +8 -0
- package/dist/src/DescriptionList/stories/DescriptionList.column.story.d.ts +17 -17
- package/dist/src/DescriptionList/stories/DescriptionList.column.story.js +53 -0
- package/dist/src/DescriptionList/stories/DescriptionList.group-min-width.story.d.ts +9 -9
- package/dist/src/DescriptionList/stories/DescriptionList.group-min-width.story.js +26 -0
- package/dist/src/DescriptionList/stories/DescriptionList.layout.story.d.ts +17 -17
- package/dist/src/DescriptionList/stories/DescriptionList.layout.story.js +58 -0
- package/dist/src/DescriptionList/stories/DescriptionList.playground.story.d.ts +9 -9
- package/dist/src/DescriptionList/stories/DescriptionList.playground.story.js +217 -0
- package/dist/src/DescriptionList/stories/DescriptionList.sizing.story.d.ts +10 -10
- package/dist/src/DescriptionList/stories/DescriptionList.sizing.story.js +52 -0
- package/dist/src/DescriptionList/stories/DescriptionList.spanning.story.d.ts +10 -10
- package/dist/src/DescriptionList/stories/DescriptionList.spanning.story.js +79 -0
- package/dist/src/DescriptionList/stories/DescriptionList.story.d.ts +8 -8
- package/dist/src/DescriptionList/stories/DescriptionList.story.js +7 -0
- package/dist/src/DescriptionList/stories/fixtures.d.ts +17 -17
- package/dist/src/DescriptionList/stories/fixtures.js +57 -0
- package/dist/src/Divider/Divider.d.ts +7 -7
- package/dist/src/Divider/Divider.js +12 -0
- package/dist/src/Divider/Divider.story.d.ts +10 -10
- package/dist/src/Divider/Divider.story.js +23 -0
- package/dist/src/Divider/index.d.ts +1 -1
- package/dist/src/Divider/index.js +1 -0
- package/dist/src/DropdownMenu/DropdownButton.d.ts +13 -13
- package/dist/src/DropdownMenu/DropdownButton.js +42 -0
- package/dist/src/DropdownMenu/DropdownItem.d.ts +8 -8
- package/dist/src/DropdownMenu/DropdownItem.js +40 -0
- package/dist/src/DropdownMenu/DropdownLink.d.ts +12 -12
- package/dist/src/DropdownMenu/DropdownLink.js +47 -0
- package/dist/src/DropdownMenu/DropdownMenu.d.ts +27 -27
- package/dist/src/DropdownMenu/DropdownMenu.js +40 -0
- package/dist/src/DropdownMenu/DropdownMenu.story.d.ts +60 -60
- package/dist/src/DropdownMenu/DropdownMenu.story.js +81 -0
- package/dist/src/DropdownMenu/DropdownMenuContainer.d.ts +12 -12
- package/dist/src/DropdownMenu/DropdownMenuContainer.js +29 -0
- package/dist/src/DropdownMenu/DropdownText.d.ts +13 -13
- package/dist/src/DropdownMenu/DropdownText.js +15 -0
- package/dist/src/DropdownMenu/index.d.ts +5 -5
- package/dist/src/DropdownMenu/index.js +5 -0
- package/dist/src/FieldLabel/FieldLabel.d.ts +3 -3
- package/dist/src/FieldLabel/FieldLabel.js +31 -0
- package/dist/src/FieldLabel/FieldLabel.story.d.ts +17 -17
- package/dist/src/FieldLabel/FieldLabel.story.js +40 -0
- package/dist/src/FieldLabel/FieldLabel.type.d.ts +14 -14
- package/dist/src/FieldLabel/FieldLabel.type.js +6 -0
- package/dist/src/FieldLabel/HelpText.d.ts +12 -12
- package/dist/src/FieldLabel/HelpText.js +11 -0
- package/dist/src/FieldLabel/Label.d.ts +7 -7
- package/dist/src/FieldLabel/Label.js +7 -0
- package/dist/src/FieldLabel/LabelText.d.ts +4 -4
- package/dist/src/FieldLabel/LabelText.js +13 -0
- package/dist/src/FieldLabel/MaybeFieldLabel.d.ts +7 -7
- package/dist/src/FieldLabel/MaybeFieldLabel.js +18 -0
- package/dist/src/FieldLabel/RequirementText.d.ts +4 -4
- package/dist/src/FieldLabel/RequirementText.js +4 -0
- package/dist/src/FieldLabel/index.d.ts +4 -4
- package/dist/src/FieldLabel/index.js +4 -0
- package/dist/src/Flex/Flex.d.ts +9 -9
- package/dist/src/Flex/Flex.js +11 -0
- package/dist/src/Flex/Flex.story.d.ts +108 -108
- package/dist/src/Flex/Flex.story.js +200 -0
- package/dist/src/Flex/index.d.ts +2 -2
- package/dist/src/Flex/index.js +2 -0
- package/dist/src/Form/Field.d.ts +5 -5
- package/dist/src/Form/Field.js +7 -0
- package/dist/src/Form/Fieldset.d.ts +3 -3
- package/dist/src/Form/Fieldset.js +12 -0
- package/dist/src/Form/Form.d.ts +8 -8
- package/dist/src/Form/Form.js +47 -0
- package/dist/src/Form/Form.story.d.ts +31 -31
- package/dist/src/Form/Form.story.js +85 -0
- package/dist/src/Form/FormSection.d.ts +6 -6
- package/dist/src/Form/FormSection.js +42 -0
- package/dist/src/Form/index.d.ts +4 -4
- package/dist/src/Form/index.js +4 -0
- package/dist/src/Icon/Icon.d.ts +16 -16
- package/dist/src/Icon/Icon.js +57 -0
- package/dist/src/Icon/Icon.story.d.ts +41 -41
- package/dist/src/Icon/Icon.story.js +66 -0
- package/dist/src/Icon/LoadingIcon.d.ts +6 -6
- package/dist/src/Icon/LoadingIcon.js +30 -0
- package/dist/src/Icon/index.d.ts +2 -2
- package/dist/src/Icon/index.js +2 -0
- package/dist/src/Input/Input.d.ts +10 -10
- package/dist/src/Input/Input.js +27 -0
- package/dist/src/Input/Input.story.d.ts +56 -56
- package/dist/src/Input/Input.story.js +91 -0
- package/dist/src/Input/InputField.d.ts +31 -31
- package/dist/src/Input/InputField.js +107 -0
- package/dist/src/Input/Prefix.d.ts +8 -8
- package/dist/src/Input/Prefix.js +20 -0
- package/dist/src/Input/Suffix.d.ts +8 -8
- package/dist/src/Input/Suffix.js +19 -0
- package/dist/src/Input/index.d.ts +1 -1
- package/dist/src/Input/index.js +1 -0
- package/dist/src/Layout/ApplicationFrame.d.ts +9 -9
- package/dist/src/Layout/ApplicationFrame.js +24 -0
- package/dist/src/Layout/ApplicationFrame.story.d.ts +9 -9
- package/dist/src/Layout/ApplicationFrame.story.js +9 -0
- package/dist/src/Layout/Header.d.ts +17 -17
- package/dist/src/Layout/Header.js +41 -0
- package/dist/src/Layout/Header.story.d.ts +19 -19
- package/dist/src/Layout/Header.story.js +65 -0
- package/dist/src/Layout/Page.applicationFrame.story.d.ts +11 -11
- package/dist/src/Layout/Page.applicationFrame.story.js +24 -0
- package/dist/src/Layout/Page.d.ts +12 -12
- package/dist/src/Layout/Page.js +24 -0
- package/dist/src/Layout/Page.story.d.ts +13 -13
- package/dist/src/Layout/Page.story.js +31 -0
- package/dist/src/Layout/Sidebar.d.ts +25 -25
- package/dist/src/Layout/Sidebar.js +121 -0
- package/dist/src/Layout/Sidebar.story.d.ts +22 -22
- package/dist/src/Layout/Sidebar.story.js +205 -0
- package/dist/src/Layout/index.d.ts +4 -4
- package/dist/src/Layout/index.js +4 -0
- package/dist/src/Link/Link.d.ts +14 -14
- package/dist/src/Link/Link.js +54 -0
- package/dist/src/Link/Link.story.d.ts +55 -55
- package/dist/src/Link/Link.story.js +42 -0
- package/dist/src/Link/index.d.ts +1 -1
- package/dist/src/Link/index.js +1 -0
- package/dist/src/List/List.d.ts +10 -10
- package/dist/src/List/List.js +13 -0
- package/dist/src/List/List.story.d.ts +30 -30
- package/dist/src/List/List.story.js +37 -0
- package/dist/src/List/ListItem.d.ts +5 -5
- package/dist/src/List/ListItem.js +10 -0
- package/dist/src/List/index.d.ts +2 -2
- package/dist/src/List/index.js +2 -0
- package/dist/src/LoadingAnimation/LoadingAnimation.d.ts +6 -6
- package/dist/src/LoadingAnimation/LoadingAnimation.js +29 -0
- package/dist/src/LoadingAnimation/LoadingAnimation.story.d.ts +19 -19
- package/dist/src/LoadingAnimation/LoadingAnimation.story.js +33 -0
- package/dist/src/LoadingAnimation/index.d.ts +1 -1
- package/dist/src/LoadingAnimation/index.js +1 -0
- package/dist/src/{Tooltip2 → MiniTooltip}/index.d.ts +10 -10
- package/dist/src/MiniTooltip/index.js +83 -0
- package/dist/src/Modal/Modal.d.ts +25 -25
- package/dist/src/Modal/Modal.js +80 -0
- package/dist/src/Modal/Modal.story.d.ts +66 -66
- package/dist/src/Modal/Modal.story.js +120 -0
- package/dist/src/Modal/ModalCloseButton.d.ts +7 -7
- package/dist/src/Modal/ModalCloseButton.js +8 -0
- package/dist/src/Modal/ModalContent.d.ts +8 -8
- package/dist/src/Modal/ModalContent.js +11 -0
- package/dist/src/Modal/ModalFooter.d.ts +3 -3
- package/dist/src/Modal/ModalFooter.js +20 -0
- package/dist/src/Modal/ModalHeader.d.ts +5 -5
- package/dist/src/Modal/ModalHeader.js +21 -0
- package/dist/src/Modal/index.d.ts +1 -1
- package/dist/src/Modal/index.js +1 -0
- package/dist/src/NDSProvider/ComponentVariantContext.d.ts +10 -10
- package/dist/src/NDSProvider/ComponentVariantContext.js +12 -0
- package/dist/src/NDSProvider/FeatureFlagsContext.d.ts +12 -12
- package/dist/src/NDSProvider/FeatureFlagsContext.js +12 -0
- package/dist/src/NDSProvider/GlobalStyles.d.ts +5 -5
- package/dist/src/NDSProvider/GlobalStyles.js +29 -0
- package/dist/src/NDSProvider/GlobalStylesComposer.d.ts +10 -10
- package/dist/src/NDSProvider/GlobalStylesComposer.js +13 -0
- package/dist/src/NDSProvider/LocaleContext.d.ts +11 -11
- package/dist/src/NDSProvider/LocaleContext.js +12 -0
- package/dist/src/NDSProvider/ModalStyleOverride.d.ts +5 -5
- package/dist/src/NDSProvider/ModalStyleOverride.js +32 -0
- package/dist/src/NDSProvider/NDSProvider.d.ts +14 -14
- package/dist/src/NDSProvider/NDSProvider.js +22 -0
- package/dist/src/NDSProvider/Reset.d.ts +3 -3
- package/dist/src/NDSProvider/Reset.js +9 -0
- package/dist/src/NDSProvider/index.d.ts +1 -1
- package/dist/src/NDSProvider/index.js +1 -0
- package/dist/src/NDSProvider/mountWithNDSProvider.spec-utils.d.ts +1 -1
- package/dist/src/NDSProvider/mountWithNDSProvider.spec-utils.js +4 -0
- package/dist/src/NDSProvider/renderWithNDSProvider.spec-utils.d.ts +1 -1
- package/dist/src/NDSProvider/renderWithNDSProvider.spec-utils.js +4 -0
- package/dist/src/NavBarSearch/NavBarSearch.d.ts +11 -0
- package/dist/src/NavBarSearch/NavBarSearch.js +78 -0
- package/dist/src/NavBarSearch/index.d.ts +1 -0
- package/dist/src/NavBarSearch/index.js +1 -0
- package/dist/src/Navigation/Navigation.d.ts +16 -16
- package/dist/src/Navigation/Navigation.js +26 -0
- package/dist/src/Navigation/components/AppSwitcher/NulogyAppSwitcher.d.ts +14 -14
- package/dist/src/Navigation/components/AppSwitcher/NulogyAppSwitcher.js +74 -0
- package/dist/src/Navigation/components/AppSwitcher/parts/Item.d.ts +4 -4
- package/dist/src/Navigation/components/AppSwitcher/parts/Item.js +23 -0
- package/dist/src/Navigation/components/AppSwitcher/parts/Link.d.ts +8 -8
- package/dist/src/Navigation/components/AppSwitcher/parts/Link.js +39 -0
- package/dist/src/Navigation/components/AppSwitcher/parts/index.d.ts +56 -56
- package/dist/src/Navigation/components/AppSwitcher/parts/index.js +35 -0
- package/dist/src/Navigation/components/DesktopNav/DesktopNav.d.ts +5 -5
- package/dist/src/Navigation/components/DesktopNav/DesktopNav.js +48 -0
- package/dist/src/Navigation/components/DesktopNav/parts/MoreMenuItem.d.ts +8 -8
- package/dist/src/Navigation/components/DesktopNav/parts/MoreMenuItem.js +20 -0
- package/dist/src/Navigation/components/EnvironmentBanner/EnvironmentBanner.d.ts +6 -6
- package/dist/src/Navigation/components/EnvironmentBanner/EnvironmentBanner.js +6 -0
- package/dist/src/Navigation/components/EnvironmentBanner/index.d.ts +2 -2
- package/dist/src/Navigation/components/EnvironmentBanner/index.js +1 -0
- package/dist/src/Navigation/components/MenuSubItem/MenuSubItem.d.ts +8 -8
- package/dist/src/Navigation/components/MenuSubItem/MenuSubItem.js +41 -0
- package/dist/src/Navigation/components/MenuSubItem/parts/styled.d.ts +8 -8
- package/dist/src/Navigation/components/MenuSubItem/parts/styled.js +40 -0
- package/dist/src/Navigation/components/MobileNav/MobileNav.d.ts +5 -5
- package/dist/src/Navigation/components/MobileNav/MobileNav.js +46 -0
- package/dist/src/Navigation/components/MobileNav/parts/MobileMenuItem.d.ts +9 -9
- package/dist/src/Navigation/components/MobileNav/parts/MobileMenuItem.js +84 -0
- package/dist/src/Navigation/components/MobileNav/parts/styled.d.ts +18 -18
- package/dist/src/Navigation/components/MobileNav/parts/styled.js +23 -0
- package/dist/src/Navigation/components/NulogyLogo/NulogyLogo.d.ts +6 -6
- package/dist/src/Navigation/components/NulogyLogo/NulogyLogo.js +20 -0
- package/dist/src/Navigation/components/NulogyLogo/SvgNulogyLogo.d.ts +2 -2
- package/dist/src/Navigation/components/NulogyLogo/SvgNulogyLogo.js +11 -0
- package/dist/src/Navigation/components/UserMenu/UserMenu.d.ts +14 -14
- package/dist/src/Navigation/components/UserMenu/UserMenu.js +16 -0
- package/dist/src/Navigation/components/UserMenu/parts/Header.d.ts +7 -7
- package/dist/src/Navigation/components/UserMenu/parts/Header.js +39 -0
- package/dist/src/Navigation/components/UserMenu/parts/Item.d.ts +10 -10
- package/dist/src/Navigation/components/UserMenu/parts/Item.js +23 -0
- package/dist/src/Navigation/components/UserMenu/parts/MobileItem.d.ts +6 -6
- package/dist/src/Navigation/components/UserMenu/parts/MobileItem.js +27 -0
- package/dist/src/Navigation/components/UserMenu/parts/styled.d.ts +8 -8
- package/dist/src/Navigation/components/UserMenu/parts/styled.js +21 -0
- package/dist/src/Navigation/components/shared/NavigationLogo.d.ts +8 -8
- package/dist/src/Navigation/components/shared/NavigationLogo.js +27 -0
- package/dist/src/Navigation/components/shared/NavigationLogoLink.d.ts +7 -7
- package/dist/src/Navigation/components/shared/NavigationLogoLink.js +23 -0
- package/dist/src/Navigation/components/shared/NavigationMenuContent.d.ts +7 -7
- package/dist/src/Navigation/components/shared/NavigationMenuContent.js +23 -0
- package/dist/src/Navigation/components/shared/NavigationMenuItem.d.ts +12 -12
- package/dist/src/Navigation/components/shared/NavigationMenuItem.js +76 -0
- package/dist/src/Navigation/components/shared/components.d.ts +17 -17
- package/dist/src/Navigation/components/shared/components.js +87 -0
- package/dist/src/Navigation/components/shared/constants.d.ts +6 -6
- package/dist/src/Navigation/components/shared/constants.js +5 -0
- package/dist/src/Navigation/components/shared/disableHoverEvents.d.ts +6 -6
- package/dist/src/Navigation/components/shared/disableHoverEvents.js +5 -0
- package/dist/src/Navigation/components/utils/getNavigationBarItems.d.ts +2 -2
- package/dist/src/Navigation/components/utils/getNavigationBarItems.js +15 -0
- package/dist/src/Navigation/hooks/useResponsiveMenu.d.ts +12 -12
- package/dist/src/Navigation/hooks/useResponsiveMenu.js +66 -0
- package/dist/src/Navigation/index.d.ts +9 -9
- package/dist/src/Navigation/index.js +5 -0
- package/dist/src/Navigation/stories/Navigation.appSwitcher.story.d.ts +12 -12
- package/dist/src/Navigation/stories/Navigation.appSwitcher.story.js +147 -0
- package/dist/src/Navigation/stories/Navigation.logos.story.d.ts +22 -22
- package/dist/src/Navigation/stories/Navigation.logos.story.js +116 -0
- package/dist/src/Navigation/stories/Navigation.mobileVisibility.story.d.ts +13 -13
- package/dist/src/Navigation/stories/Navigation.mobileVisibility.story.js +172 -0
- package/dist/src/Navigation/stories/Navigation.navigationMenus.story.d.ts +13 -13
- package/dist/src/Navigation/stories/Navigation.navigationMenus.story.js +305 -0
- package/dist/src/Navigation/stories/Navigation.navigationMenus.subMenus.story.d.ts +11 -11
- package/dist/src/Navigation/stories/Navigation.navigationMenus.subMenus.story.js +203 -0
- package/dist/src/Navigation/stories/Navigation.story.d.ts +11 -11
- package/dist/src/Navigation/stories/Navigation.story.js +208 -0
- package/dist/src/Navigation/stories/Navigation.userMenu.story.d.ts +13 -13
- package/dist/src/Navigation/stories/Navigation.userMenu.story.js +215 -0
- package/dist/src/Navigation/stories/fixtures/logos/CustomLogo2.d.ts +2 -2
- package/dist/src/Navigation/stories/fixtures/logos/CustomLogo2.js +15 -0
- package/dist/src/Navigation/stories/fixtures/logos/CustomLogo3.d.ts +2 -2
- package/dist/src/Navigation/stories/fixtures/logos/CustomLogo3.js +31 -0
- package/dist/src/Navigation/stories/fixtures/logos/Customlogo1.d.ts +2 -2
- package/dist/src/Navigation/stories/fixtures/logos/Customlogo1.js +5 -0
- package/dist/src/Navigation/types.d.ts +86 -86
- package/dist/src/Navigation/types.js +1 -0
- package/dist/src/Overlay/Overlay.d.ts +7 -7
- package/dist/src/Overlay/Overlay.js +15 -0
- package/dist/src/Overlay/Overlay.story.d.ts +12 -12
- package/dist/src/Overlay/Overlay.story.js +17 -0
- package/dist/src/Overlay/index.d.ts +1 -1
- package/dist/src/Overlay/index.js +1 -0
- package/dist/src/Pagination/NextButton.d.ts +10 -10
- package/dist/src/Pagination/NextButton.js +13 -0
- package/dist/src/Pagination/PageNumber.d.ts +12 -12
- package/dist/src/Pagination/PageNumber.js +7 -0
- package/dist/src/Pagination/Pagination.d.ts +19 -19
- package/dist/src/Pagination/Pagination.js +66 -0
- package/dist/src/Pagination/Pagination.story.d.ts +26 -26
- package/dist/src/Pagination/Pagination.story.js +93 -0
- package/dist/src/Pagination/PaginationButton.d.ts +7 -7
- package/dist/src/Pagination/PaginationButton.js +27 -0
- package/dist/src/Pagination/PaginationCount.d.ts +7 -7
- package/dist/src/Pagination/PaginationCount.js +8 -0
- package/dist/src/Pagination/PreviousButton.d.ts +10 -10
- package/dist/src/Pagination/PreviousButton.js +13 -0
- package/dist/src/Pagination/index.d.ts +1 -1
- package/dist/src/Pagination/index.js +1 -0
- package/dist/src/Pagination/lib.d.ts +9 -9
- package/dist/src/Pagination/lib.js +39 -0
- package/dist/src/Popper/Popper.d.ts +20 -20
- package/dist/src/Popper/Popper.js +107 -0
- package/dist/src/Popper/index.d.ts +1 -1
- package/dist/src/Popper/index.js +1 -0
- package/dist/src/Primitives/index.d.ts +5 -5
- package/dist/src/Primitives/index.js +5 -0
- package/dist/src/Radio/Radio.d.ts +14 -14
- package/dist/src/Radio/Radio.js +118 -0
- package/dist/src/Radio/Radio.story.d.ts +37 -37
- package/dist/src/Radio/Radio.story.js +44 -0
- package/dist/src/Radio/RadioGroup.d.ts +20 -20
- package/dist/src/Radio/RadioGroup.js +41 -0
- package/dist/src/Radio/RadioGroup.story.d.ts +46 -46
- package/dist/src/Radio/RadioGroup.story.js +54 -0
- package/dist/src/Radio/index.d.ts +2 -2
- package/dist/src/Radio/index.js +2 -0
- package/dist/src/RangeContainer/RangeContainer.d.ts +12 -12
- package/dist/src/RangeContainer/RangeContainer.js +35 -0
- package/dist/src/RangeContainer/RangeContainer.story.d.ts +11 -11
- package/dist/src/RangeContainer/RangeContainer.story.js +9 -0
- package/dist/src/RangeContainer/index.d.ts +1 -1
- package/dist/src/RangeContainer/index.js +1 -0
- package/dist/src/Select/MenuList.d.ts +3 -3
- package/dist/src/Select/MenuList.js +126 -0
- package/dist/src/Select/Select.d.ts +32 -32
- package/dist/src/Select/Select.js +60 -0
- package/dist/src/Select/Select.spec-utils.d.ts +5 -5
- package/dist/src/Select/Select.spec-utils.js +14 -0
- package/dist/src/Select/Select.story.d.ts +110 -110
- package/dist/src/Select/Select.story.fixture.d.ts +24 -24
- package/dist/src/Select/Select.story.fixture.js +89 -0
- package/dist/src/Select/Select.story.js +196 -0
- package/dist/src/Select/SelectComponents.d.ts +10 -10
- package/dist/src/Select/SelectComponents.js +31 -0
- package/dist/src/Select/SelectOption.d.ts +12 -12
- package/dist/src/Select/SelectOption.js +42 -0
- package/dist/src/Select/customReactSelectStyles.d.ts +40 -40
- package/dist/src/Select/customReactSelectStyles.js +162 -0
- package/dist/src/Select/index.d.ts +3 -3
- package/dist/src/Select/index.js +3 -0
- package/dist/src/Select/lib.d.ts +21 -21
- package/dist/src/Select/lib.js +85 -0
- package/dist/src/SortingTable/SortingTable.d.ts +7 -7
- package/dist/src/SortingTable/SortingTable.js +49 -0
- package/dist/src/SortingTable/SortingTable.story.d.ts +8 -8
- package/dist/src/SortingTable/SortingTable.story.js +24 -0
- package/dist/src/SortingTable/index.d.ts +1 -1
- package/dist/src/SortingTable/index.js +1 -0
- package/dist/src/StatusIndicator/StatusIndicator.d.ts +17 -17
- package/dist/src/StatusIndicator/StatusIndicator.js +51 -0
- package/dist/src/StatusIndicator/StatusIndicator.story.d.ts +25 -25
- package/dist/src/StatusIndicator/StatusIndicator.story.js +64 -0
- package/dist/src/StatusIndicator/index.d.ts +2 -2
- package/dist/src/StatusIndicator/index.js +1 -0
- package/dist/src/StyledProps/index.d.ts +39 -39
- package/dist/src/StyledProps/index.js +36 -0
- package/dist/src/Summary/Summary.d.ts +7 -7
- package/dist/src/Summary/Summary.js +43 -0
- package/dist/src/Summary/Summary.story.d.ts +7 -7
- package/dist/src/Summary/Summary.story.js +20 -0
- package/dist/src/Summary/SummaryContext.d.ts +7 -7
- package/dist/src/Summary/SummaryContext.js +14 -0
- package/dist/src/Summary/SummaryDivider.d.ts +3 -3
- package/dist/src/Summary/SummaryDivider.js +21 -0
- package/dist/src/Summary/SummaryItem.d.ts +8 -8
- package/dist/src/Summary/SummaryItem.js +34 -0
- package/dist/src/Summary/index.d.ts +3 -3
- package/dist/src/Summary/index.js +3 -0
- package/dist/src/Switcher/Switch.d.ts +9 -9
- package/dist/src/Switcher/Switch.js +35 -0
- package/dist/src/Switcher/Switcher.d.ts +11 -11
- package/dist/src/Switcher/Switcher.js +53 -0
- package/dist/src/Switcher/Switcher.story.d.ts +8 -8
- package/dist/src/Switcher/Switcher.story.js +32 -0
- package/dist/src/Switcher/index.d.ts +2 -2
- package/dist/src/Switcher/index.js +2 -0
- package/dist/src/Table/BaseTable.d.ts +22 -22
- package/dist/src/Table/BaseTable.js +31 -0
- package/dist/src/Table/SortingColumnHeader.d.ts +10 -10
- package/dist/src/Table/SortingColumnHeader.js +13 -0
- package/dist/src/Table/StatefulTable.d.ts +107 -107
- package/dist/src/Table/StatefulTable.js +214 -0
- package/dist/src/Table/StyledTh.d.ts +8 -8
- package/dist/src/Table/StyledTh.js +15 -0
- package/dist/src/Table/Table.d.ts +13 -13
- package/dist/src/Table/Table.js +21 -0
- package/dist/src/Table/Table.mock-utils.d.ts +32 -0
- package/dist/src/Table/Table.mock-utils.js +58 -0
- package/dist/src/Table/Table.types.d.ts +28 -28
- package/dist/src/Table/Table.types.js +1 -0
- package/dist/src/Table/TableBody.d.ts +16 -16
- package/dist/src/Table/TableBody.js +37 -0
- package/dist/src/Table/TableCell.d.ts +10 -10
- package/dist/src/Table/TableCell.js +26 -0
- package/dist/src/Table/TableFoot.d.ts +10 -10
- package/dist/src/Table/TableFoot.js +26 -0
- package/dist/src/Table/TableHead.d.ts +9 -9
- package/dist/src/Table/TableHead.js +21 -0
- package/dist/src/Table/addExpandableControl.d.ts +4 -4
- package/dist/src/Table/addExpandableControl.js +38 -0
- package/dist/src/Table/addSelectableControl.d.ts +15 -15
- package/dist/src/Table/addSelectableControl.js +38 -0
- package/dist/src/Table/index.d.ts +3 -3
- package/dist/src/Table/index.js +2 -0
- package/dist/src/Table/stories/BaseTable.story.d.ts +19 -19
- package/dist/src/Table/stories/BaseTable.story.js +300 -0
- package/dist/src/Table/stories/CustomContent.story.d.ts +7 -7
- package/dist/src/Table/stories/CustomContent.story.js +281 -0
- package/dist/src/Table/stories/Density.story.d.ts +17 -17
- package/dist/src/Table/stories/Density.story.js +68 -0
- package/dist/src/Table/stories/SortingColumnHeader.story.d.ts +6 -6
- package/dist/src/Table/stories/SortingColumnHeader.story.js +8 -0
- package/dist/src/Table/stories/Table.story.d.ts +18 -18
- package/dist/src/Table/stories/Table.story.js +302 -0
- package/dist/src/Table/stories/TableWithCustomSorting.story.d.ts +11 -11
- package/dist/src/Table/stories/TableWithCustomSorting.story.js +60 -0
- package/dist/src/Table/stories/TableWithExpandableRows.story.d.ts +17 -17
- package/dist/src/Table/stories/TableWithExpandableRows.story.js +75 -0
- package/dist/src/Table/stories/TableWithFiltering.story.d.ts +17 -17
- package/dist/src/Table/stories/TableWithFiltering.story.js +54 -0
- package/dist/src/Table/stories/TableWithSelectableRows.story.d.ts +17 -17
- package/dist/src/Table/stories/TableWithSelectableRows.story.js +69 -0
- package/dist/src/Table/stories/TableWithServerSidePagination.story.d.ts +11 -11
- package/dist/src/Table/stories/TableWithServerSidePagination.story.js +73 -0
- package/dist/src/Tabs/Tab.d.ts +12 -12
- package/dist/src/Tabs/Tab.js +87 -0
- package/dist/src/Tabs/TabContainer.d.ts +3 -3
- package/dist/src/Tabs/TabContainer.js +24 -0
- package/dist/src/Tabs/TabScrollIndicator.d.ts +11 -11
- package/dist/src/Tabs/TabScrollIndicator.js +61 -0
- package/dist/src/Tabs/TabScrollIndicators.d.ts +30 -30
- package/dist/src/Tabs/TabScrollIndicators.js +132 -0
- package/dist/src/Tabs/Tabs.d.ts +27 -27
- package/dist/src/Tabs/Tabs.js +110 -0
- package/dist/src/Tabs/Tabs.story.d.ts +55 -55
- package/dist/src/Tabs/Tabs.story.js +109 -0
- package/dist/src/Tabs/index.d.ts +4 -4
- package/dist/src/Tabs/index.js +4 -0
- package/dist/src/Textarea/StyledTextarea.d.ts +15 -15
- package/dist/src/Textarea/StyledTextarea.js +59 -0
- package/dist/src/Textarea/Textarea.d.ts +18 -18
- package/dist/src/Textarea/Textarea.js +30 -0
- package/dist/src/Textarea/Textarea.story.d.ts +14 -14
- package/dist/src/Textarea/Textarea.story.js +24 -0
- package/dist/src/Textarea/index.d.ts +1 -1
- package/dist/src/Textarea/index.js +1 -0
- package/dist/src/TimePicker/TimePicker.d.ts +42 -42
- package/dist/src/TimePicker/TimePicker.js +231 -0
- package/dist/src/TimePicker/TimePicker.story.d.ts +65 -65
- package/dist/src/TimePicker/TimePicker.story.js +58 -0
- package/dist/src/TimePicker/TimePickerDropdown.d.ts +3 -3
- package/dist/src/TimePicker/TimePickerDropdown.js +23 -0
- package/dist/src/TimePicker/TimePickerInput.d.ts +7 -7
- package/dist/src/TimePicker/TimePickerInput.js +7 -0
- package/dist/src/TimePicker/TimePickerOption.d.ts +10 -10
- package/dist/src/TimePicker/TimePickerOption.js +26 -0
- package/dist/src/TimePicker/index.d.ts +1 -1
- package/dist/src/TimePicker/index.js +1 -0
- package/dist/src/TimeRange/TimeRange.d.ts +24 -24
- package/dist/src/TimeRange/TimeRange.js +81 -0
- package/dist/src/TimeRange/TimeRange.story.d.ts +35 -35
- package/dist/src/TimeRange/TimeRange.story.js +39 -0
- package/dist/src/TimeRange/TimeRange.utils.d.ts +1 -1
- package/dist/src/TimeRange/TimeRange.utils.js +12 -0
- package/dist/src/TimeRange/index.d.ts +1 -1
- package/dist/src/TimeRange/index.js +1 -0
- package/dist/src/Toast/Toast.d.ts +36 -36
- package/dist/src/Toast/Toast.js +93 -0
- package/dist/src/Toast/Toast.story.d.ts +42 -42
- package/dist/src/Toast/Toast.story.js +192 -0
- package/dist/src/Toast/index.d.ts +1 -1
- package/dist/src/Toast/index.js +1 -0
- package/dist/src/ToastContainer/ToastContainer.d.ts +10 -10
- package/dist/src/ToastContainer/ToastContainer.js +31 -0
- package/dist/src/ToastContainer/ToastContainer.story.d.ts +6 -6
- package/dist/src/ToastContainer/ToastContainer.story.js +83 -0
- package/dist/src/ToastContainer/ToastFunction.d.ts +14 -14
- package/dist/src/ToastContainer/ToastFunction.js +32 -0
- package/dist/src/ToastContainer/index.d.ts +2 -2
- package/dist/src/ToastContainer/index.js +2 -0
- package/dist/src/Toggle/Toggle.d.ts +27 -27
- package/dist/src/Toggle/Toggle.js +68 -0
- package/dist/src/Toggle/Toggle.story.d.ts +50 -50
- package/dist/src/Toggle/Toggle.story.js +51 -0
- package/dist/src/Toggle/ToggleButton.d.ts +11 -11
- package/dist/src/Toggle/ToggleButton.js +67 -0
- package/dist/src/Toggle/index.d.ts +1 -1
- package/dist/src/Toggle/index.js +1 -0
- package/dist/src/Tokens/Tokens.story.d.ts +14 -14
- package/dist/src/Tokens/Tokens.story.js +80 -0
- package/dist/src/Tooltip/Tooltip.d.ts +19 -13
- package/dist/src/Tooltip/Tooltip.js +13 -0
- package/dist/src/Tooltip/Tooltip.story.d.ts +61 -68
- package/dist/src/Tooltip/Tooltip.story.js +121 -0
- package/dist/src/Tooltip/TooltipContainer.d.ts +11 -11
- package/dist/src/Tooltip/TooltipContainer.js +31 -0
- package/dist/src/{TruncatedText → Tooltip}/components/TooltipComponents.d.ts +17 -17
- package/dist/src/Tooltip/components/TooltipComponents.js +143 -0
- package/dist/src/Tooltip/helpers.d.ts +8 -0
- package/dist/src/Tooltip/helpers.js +4 -0
- package/dist/src/Tooltip/index.d.ts +1 -1
- package/dist/src/Tooltip/index.js +1 -0
- package/dist/src/TopBar/TopBar.d.ts +18 -18
- package/dist/src/TopBar/TopBar.js +20 -0
- package/dist/src/TopBar/TopBar.styled.d.ts +282 -282
- package/dist/src/TopBar/TopBar.styled.js +140 -0
- package/dist/src/TopBar/components/BackLink.d.ts +7 -7
- package/dist/src/TopBar/components/BackLink.js +31 -0
- package/dist/src/TopBar/components/Menu.d.ts +6 -6
- package/dist/src/TopBar/components/Menu.js +67 -0
- package/dist/src/TopBar/components/MenuItem.d.ts +2 -2
- package/dist/src/TopBar/components/MenuItem.js +27 -0
- package/dist/src/TopBar/components/MenuItemLink.d.ts +9 -9
- package/dist/src/TopBar/components/MenuItemLink.js +26 -0
- package/dist/src/TopBar/components/PageTitle.d.ts +3 -3
- package/dist/src/TopBar/components/PageTitle.js +17 -0
- package/dist/src/TopBar/constants.d.ts +3 -3
- package/dist/src/TopBar/constants.js +3 -0
- package/dist/src/TopBar/index.d.ts +2 -2
- package/dist/src/TopBar/index.js +1 -0
- package/dist/src/TopBar/stories/TopBar.backButton.story.d.ts +19 -19
- package/dist/src/TopBar/stories/TopBar.backButton.story.js +40 -0
- package/dist/src/TopBar/stories/TopBar.menu.story.d.ts +22 -22
- package/dist/src/TopBar/stories/TopBar.menu.story.js +64 -0
- package/dist/src/TopBar/stories/TopBar.story.d.ts +19 -19
- package/dist/src/TopBar/stories/TopBar.story.js +59 -0
- package/dist/src/TopBar/stories/fixtures.d.ts +44 -44
- package/dist/src/TopBar/stories/fixtures.js +54 -0
- package/dist/src/TruncatedText/TruncatedText.d.ts +4 -4
- package/dist/src/TruncatedText/TruncatedText.js +24 -0
- package/dist/src/TruncatedText/TruncatedText.story.d.ts +57 -57
- package/dist/src/TruncatedText/TruncatedText.story.js +51 -0
- package/dist/src/TruncatedText/components/MaybeTooltip.d.ts +24 -14
- package/dist/src/TruncatedText/components/MaybeTooltip.js +10 -0
- package/dist/src/TruncatedText/components/TruncatedTextFillWidth.d.ts +4 -4
- package/dist/src/TruncatedText/components/TruncatedTextFillWidth.js +28 -0
- package/dist/src/TruncatedText/components/TruncatedTextMaxCharacters.d.ts +4 -4
- package/dist/src/TruncatedText/components/TruncatedTextMaxCharacters.js +24 -0
- package/dist/src/TruncatedText/index.d.ts +1 -1
- package/dist/src/TruncatedText/index.js +1 -0
- package/dist/src/TruncatedText/types.d.ts +13 -13
- package/dist/src/TruncatedText/types.js +1 -0
- package/dist/src/Type/Headings.d.ts +50 -50
- package/dist/src/Type/Headings.js +67 -0
- package/dist/src/Type/Headings.story.d.ts +8 -8
- package/dist/src/Type/Headings.story.js +17 -0
- package/dist/src/Type/Text.d.ts +13 -13
- package/dist/src/Type/Text.js +17 -0
- package/dist/src/Type/Text.story.d.ts +36 -36
- package/dist/src/Type/Text.story.js +44 -0
- package/dist/src/Type/Typography.story.d.ts +7 -7
- package/dist/src/Type/Typography.story.js +214 -0
- package/dist/src/Type/index.d.ts +3 -3
- package/dist/src/Type/index.js +2 -0
- package/dist/src/Validation/InlineValidation.d.ts +10 -10
- package/dist/src/Validation/InlineValidation.js +34 -0
- package/dist/src/Validation/InlineValidation.story.d.ts +24 -24
- package/dist/src/Validation/InlineValidation.story.js +24 -0
- package/dist/src/Validation/index.d.ts +2 -2
- package/dist/src/Validation/index.js +2 -0
- package/dist/src/Validation/mapErrorsToList.d.ts +3 -3
- package/dist/src/Validation/mapErrorsToList.js +9 -0
- package/dist/src/VerticalDivider/VerticalDivider.d.ts +7 -7
- package/dist/src/VerticalDivider/VerticalDivider.js +16 -0
- package/dist/src/VerticalDivider/VerticalDivider.story.d.ts +8 -8
- package/dist/src/VerticalDivider/VerticalDivider.story.js +15 -0
- package/dist/src/VerticalDivider/index.d.ts +1 -1
- package/dist/src/VerticalDivider/index.js +1 -0
- package/dist/src/VisualTests/Select.story.d.ts +41 -41
- package/dist/src/VisualTests/Select.story.js +73 -0
- package/dist/src/VisualTests/WithSpace.story.d.ts +23 -23
- package/dist/src/VisualTests/WithSpace.story.js +115 -0
- package/dist/src/constants/index.d.ts +1 -1
- package/dist/src/constants/index.js +1 -0
- package/dist/src/constants/keyCodes.d.ts +15 -15
- package/dist/src/constants/keyCodes.js +15 -0
- package/dist/src/hooks/useMediaQuery/index.d.ts +2 -2
- package/dist/src/hooks/useMediaQuery/index.js +2 -0
- package/dist/src/hooks/useMediaQuery/useMediaQuery.d.ts +5 -5
- package/dist/src/hooks/useMediaQuery/useMediaQuery.js +30 -0
- package/dist/src/i18n.d.ts +2 -2
- package/dist/src/i18n.js +56 -0
- package/dist/src/index.d.ts +71 -71
- package/dist/src/index.js +59 -0
- package/dist/src/locale.story.d.ts +9 -9
- package/dist/src/locale.story.js +93 -0
- package/dist/src/locales.const.d.ts +53 -53
- package/dist/src/locales.const.js +66 -0
- package/dist/src/pages/ErrorPage.story.d.ts +21 -21
- package/dist/src/pages/ErrorPage.story.js +50 -0
- package/dist/src/pages/LoginPage.story.d.ts +30 -30
- package/dist/src/pages/LoginPage.story.js +71 -0
- package/dist/src/testing/matchers/toMatchDate.d.ts +0 -0
- package/dist/src/testing/matchers/toMatchDate.js +20 -0
- package/dist/src/testing/mockUtils/mockDates.d.ts +2 -0
- package/dist/src/testing/mockUtils/mockDates.js +17 -0
- package/dist/src/theme/NDSThemeProvider.d.ts +5 -5
- package/dist/src/theme/NDSThemeProvider.js +17 -0
- package/dist/src/theme/index.d.ts +2 -2
- package/dist/src/theme/index.js +1 -0
- package/dist/src/theme/mergeThemes.util.d.ts +2 -2
- package/dist/src/theme/mergeThemes.util.js +6 -0
- package/dist/src/theme/theme.d.ts +5 -5
- package/dist/src/theme/theme.js +652 -0
- package/dist/src/theme/theme.type.d.ts +153 -153
- package/dist/src/theme/theme.type.js +1 -0
- package/dist/src/theme/useNDSTheme.d.ts +21 -21
- package/dist/src/theme/useNDSTheme.js +32 -0
- package/dist/src/types/NulogyApp.d.ts +3 -3
- package/dist/src/types/NulogyApp.js +18 -0
- package/dist/src/utils/ClickInputLabel.d.ts +7 -7
- package/dist/src/utils/ClickInputLabel.js +13 -0
- package/dist/src/utils/DetectOutsideClick.d.ts +8 -0
- package/dist/src/utils/DetectOutsideClick.js +36 -0
- package/dist/src/utils/PopperArrow.d.ts +9 -9
- package/dist/src/utils/PopperArrow.js +132 -0
- package/dist/src/utils/ScrollIndicators.d.ts +16 -0
- package/dist/src/utils/ScrollIndicators.js +62 -0
- package/dist/src/utils/convertPxToNumber.d.ts +2 -0
- package/dist/src/utils/convertPxToNumber.js +4 -0
- package/dist/src/utils/datePickerLocales.d.ts +1 -0
- package/dist/src/utils/datePickerLocales.js +3 -0
- package/dist/src/utils/generateId.d.ts +2 -0
- package/dist/src/utils/generateId.js +7 -0
- package/dist/src/utils/index.d.ts +11 -11
- package/dist/src/utils/index.js +10 -0
- package/dist/src/utils/localized-date-fns.d.ts +1 -1
- package/dist/src/utils/localized-date-fns.js +5 -0
- package/dist/src/utils/noop.d.ts +5 -5
- package/dist/src/utils/noop.js +7 -0
- package/dist/src/utils/numberFromDimension/index.d.ts +5 -5
- package/dist/src/utils/numberFromDimension/index.js +7 -0
- package/dist/src/utils/numberFromDimension/numberFromDimension.spec.d.ts +1 -1
- package/dist/src/utils/numberFromDimension/numberFromDimension.spec.js +13 -0
- package/dist/src/utils/omit.d.ts +2 -0
- package/dist/src/utils/omit.js +6 -0
- package/dist/src/utils/story/code.d.ts +8 -8
- package/dist/src/utils/story/code.js +14 -0
- package/dist/src/utils/story/dashed.d.ts +9 -9
- package/dist/src/utils/story/dashed.js +12 -0
- package/dist/src/utils/story/placeholder.d.ts +7 -7
- package/dist/src/utils/story/placeholder.js +33 -0
- package/dist/src/utils/story/resizable.d.ts +25 -25
- package/dist/src/utils/story/resizable.js +38 -0
- package/dist/src/utils/story/simulatedAPIRequests.d.ts +4 -4
- package/dist/src/utils/story/simulatedAPIRequests.js +22 -0
- package/dist/src/utils/subPx.d.ts +9 -9
- package/dist/src/utils/subPx.js +10 -0
- package/dist/src/utils/subset.d.ts +3 -0
- package/dist/src/utils/subset.js +21 -0
- package/dist/src/utils/testing/createMatchMedia.d.ts +7 -7
- package/dist/src/utils/testing/createMatchMedia.js +17 -0
- package/dist/src/utils/testing/useConditionalAutoClick.d.ts +60 -60
- package/dist/src/utils/testing/useConditionalAutoClick.js +52 -0
- package/dist/src/utils/testing/useUrlProps.d.ts +6 -6
- package/dist/src/utils/testing/useUrlProps.js +23 -0
- package/dist/src/utils/ts/FocusManager.d.ts +17 -17
- package/dist/src/utils/ts/FocusManager.js +40 -0
- package/dist/src/utils/ts/recursivePartial.d.ts +3 -3
- package/dist/src/utils/ts/recursivePartial.js +1 -0
- package/dist/src/utils/useScrollLock.d.ts +55 -55
- package/dist/src/utils/useScrollLock.js +81 -0
- package/dist/src/utils/useWindowDimension.story.d.ts +6 -0
- package/dist/src/utils/useWindowDimension.story.js +25 -0
- package/dist/src/utils/useWindowDimensions.d.ts +39 -0
- package/dist/src/utils/useWindowDimensions.js +48 -0
- package/dist/src/utils/withMenuState.d.ts +12 -12
- package/dist/src/utils/withMenuState.js +76 -0
- package/dist/src/utils/withWindowDimensions.d.ts +3 -0
- package/dist/src/utils/withWindowDimensions.js +28 -0
- package/package.json +10 -14
- package/dist/src/TruncatedText/MaybeTooltip.d.ts +0 -8
- package/dist/src/TruncatedText/TooltipContent.d.ts +0 -7
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import React from "react";
|
|
13
|
+
import styled, { useTheme } from "styled-components";
|
|
14
|
+
import { Flex } from "../Flex";
|
|
15
|
+
import BrandingText from "./BrandingText";
|
|
16
|
+
import LettermarkLogo from "./LettermarkLogo";
|
|
17
|
+
import WordmarkLogo from "./WordmarkLogo";
|
|
18
|
+
function getLogoColor(color = "blue", theme) {
|
|
19
|
+
const config = {
|
|
20
|
+
white: {
|
|
21
|
+
letter: "#F0B41C",
|
|
22
|
+
logo: "#FFFFFF",
|
|
23
|
+
text: theme.colors.white,
|
|
24
|
+
line: theme.colors.lightGrey,
|
|
25
|
+
},
|
|
26
|
+
blue: {
|
|
27
|
+
letter: "#F0B41C",
|
|
28
|
+
logo: "#1C68A5",
|
|
29
|
+
text: "#0E77D2",
|
|
30
|
+
line: theme.colors.lightBlue,
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
return config[color];
|
|
34
|
+
}
|
|
35
|
+
const alignments = {
|
|
36
|
+
left: "flex-start",
|
|
37
|
+
center: "center",
|
|
38
|
+
right: "flex-end",
|
|
39
|
+
};
|
|
40
|
+
const getAlignment = (alignment) => alignments[alignment] || alignments.left;
|
|
41
|
+
const BrandingWrap = styled.div(({ alignment, size }) => ({
|
|
42
|
+
width: "100%",
|
|
43
|
+
display: "inline-flex",
|
|
44
|
+
userSelect: "none",
|
|
45
|
+
flexDirection: "column",
|
|
46
|
+
alignItems: getAlignment(alignment),
|
|
47
|
+
padding: size === "medium" ? "2px 0" : undefined,
|
|
48
|
+
}));
|
|
49
|
+
const Line = styled.div(({ logoColor, theme }) => ({
|
|
50
|
+
position: "relative",
|
|
51
|
+
width: "100%",
|
|
52
|
+
"&:before": {
|
|
53
|
+
content: "''",
|
|
54
|
+
position: "absolute",
|
|
55
|
+
top: "50%",
|
|
56
|
+
left: 0,
|
|
57
|
+
borderTop: `1px solid ${getLogoColor(logoColor, theme).line}`,
|
|
58
|
+
background: getLogoColor(logoColor, theme).line,
|
|
59
|
+
width: "100%",
|
|
60
|
+
transform: "translateY(-50%)",
|
|
61
|
+
},
|
|
62
|
+
}));
|
|
63
|
+
const BrandingBoxPaddings = {
|
|
64
|
+
small: 0,
|
|
65
|
+
medium: "2px",
|
|
66
|
+
large: "6px",
|
|
67
|
+
};
|
|
68
|
+
const Branding = (_a) => {
|
|
69
|
+
var { logoType = "wordmark", subtext, size = "medium", alignment = "left", withLine, logoColor = "blue", className } = _a, props = __rest(_a, ["logoType", "subtext", "size", "alignment", "withLine", "logoColor", "className"]);
|
|
70
|
+
const theme = useTheme();
|
|
71
|
+
return (React.createElement(BrandingWrap, Object.assign({ size: size, alignment: alignment, className: className }, props),
|
|
72
|
+
logoType === "lettermark" ? (React.createElement(LettermarkLogo, { size: size, letterFill: getLogoColor(logoColor, theme).letter })) : (React.createElement(WordmarkLogo, { size: size, letterFill: getLogoColor(logoColor, theme).letter, logoFill: getLogoColor(logoColor, theme).logo })),
|
|
73
|
+
subtext && (React.createElement(Flex, { justifyContent: getAlignment(alignment), width: "100%", py: BrandingBoxPaddings[size] },
|
|
74
|
+
alignment !== "left" && withLine && React.createElement(Line, { logoColor: logoColor }),
|
|
75
|
+
React.createElement(BrandingText, { logoColor: logoColor, style: {
|
|
76
|
+
marginLeft: alignment !== "left" && "4px",
|
|
77
|
+
marginRight: alignment !== "right" && "4px",
|
|
78
|
+
}, size: size }, subtext),
|
|
79
|
+
alignment !== "right" && withLine && React.createElement(Line, { logoColor: logoColor })))));
|
|
80
|
+
};
|
|
81
|
+
export default Branding;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
declare const _default: {
|
|
3
|
-
title: string;
|
|
4
|
-
};
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const _Branding: () => React.JSX.Element;
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const _Branding: () => React.JSX.Element;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Box, Flex, Branding } from "../index";
|
|
3
|
+
export default {
|
|
4
|
+
title: "Components/Branding",
|
|
5
|
+
};
|
|
6
|
+
export const _Branding = () => (React.createElement(React.Fragment, null,
|
|
7
|
+
React.createElement(Flex, null,
|
|
8
|
+
React.createElement(Box, { width: 1 / 2, p: "x2" },
|
|
9
|
+
React.createElement(Branding, { size: "small" }),
|
|
10
|
+
React.createElement("br", null),
|
|
11
|
+
React.createElement("br", null),
|
|
12
|
+
React.createElement(Branding, { logoType: "lettermark", size: "small" }),
|
|
13
|
+
React.createElement("br", null),
|
|
14
|
+
React.createElement("br", null),
|
|
15
|
+
React.createElement(Branding, null),
|
|
16
|
+
React.createElement("br", null),
|
|
17
|
+
React.createElement("br", null),
|
|
18
|
+
React.createElement(Branding, { logoType: "lettermark" }),
|
|
19
|
+
React.createElement("br", null),
|
|
20
|
+
React.createElement("br", null),
|
|
21
|
+
React.createElement(Branding, { subtext: "Logo Subtext" }),
|
|
22
|
+
React.createElement("br", null),
|
|
23
|
+
React.createElement("br", null),
|
|
24
|
+
React.createElement(Branding, { withLine: true, subtext: "Logo Subtext" }),
|
|
25
|
+
React.createElement("br", null),
|
|
26
|
+
React.createElement("br", null),
|
|
27
|
+
React.createElement(Branding, { size: "large" }),
|
|
28
|
+
React.createElement("br", null),
|
|
29
|
+
React.createElement("br", null),
|
|
30
|
+
React.createElement(Branding, { size: "large", logoType: "lettermark" }),
|
|
31
|
+
React.createElement("br", null),
|
|
32
|
+
React.createElement("br", null),
|
|
33
|
+
React.createElement(Branding, { size: "large", subtext: "Logo Subtext" }),
|
|
34
|
+
React.createElement("br", null),
|
|
35
|
+
React.createElement("br", null),
|
|
36
|
+
React.createElement(Branding, { withLine: true, size: "large", subtext: "Logo Subtext" })),
|
|
37
|
+
React.createElement(Box, { bg: "black", width: 1 / 2, p: "x2" },
|
|
38
|
+
React.createElement(Branding, { logoColor: "white", size: "small" }),
|
|
39
|
+
React.createElement("br", null),
|
|
40
|
+
React.createElement("br", null),
|
|
41
|
+
React.createElement(Branding, { logoColor: "white", logoType: "lettermark", size: "small" }),
|
|
42
|
+
React.createElement("br", null),
|
|
43
|
+
React.createElement("br", null),
|
|
44
|
+
React.createElement(Branding, { logoColor: "white" }),
|
|
45
|
+
React.createElement("br", null),
|
|
46
|
+
React.createElement("br", null),
|
|
47
|
+
React.createElement(Branding, { logoColor: "white", logoType: "lettermark" }),
|
|
48
|
+
React.createElement("br", null),
|
|
49
|
+
React.createElement("br", null),
|
|
50
|
+
React.createElement(Branding, { logoColor: "white", subtext: "Logo Subtext" }),
|
|
51
|
+
React.createElement("br", null),
|
|
52
|
+
React.createElement("br", null),
|
|
53
|
+
React.createElement(Branding, { logoColor: "white", withLine: true, subtext: "Logo Subtext" }),
|
|
54
|
+
React.createElement("br", null),
|
|
55
|
+
React.createElement("br", null),
|
|
56
|
+
React.createElement(Branding, { logoColor: "white", size: "large" }),
|
|
57
|
+
React.createElement("br", null),
|
|
58
|
+
React.createElement("br", null),
|
|
59
|
+
React.createElement(Branding, { logoColor: "white", size: "large", logoType: "lettermark" }),
|
|
60
|
+
React.createElement("br", null),
|
|
61
|
+
React.createElement("br", null),
|
|
62
|
+
React.createElement(Branding, { logoColor: "white", size: "large", subtext: "Logo Subtext" }),
|
|
63
|
+
React.createElement("br", null),
|
|
64
|
+
React.createElement("br", null),
|
|
65
|
+
React.createElement(Branding, { withLine: true, logoColor: "white", size: "large", subtext: "Logo Subtext" }))),
|
|
66
|
+
React.createElement(Flex, { my: "x2", justifyContent: "space-between" },
|
|
67
|
+
React.createElement(Branding, { subtext: "Left Align", alignment: "left" }),
|
|
68
|
+
React.createElement(Branding, { subtext: "Center Align", alignment: "center" }),
|
|
69
|
+
React.createElement(Branding, { subtext: "Right Align", alignment: "right" })),
|
|
70
|
+
React.createElement(Flex, { my: "x2", justifyContent: "space-between" },
|
|
71
|
+
React.createElement(Branding, { withLine: true, subtext: "Left Align", alignment: "left" }),
|
|
72
|
+
React.createElement(Branding, { withLine: true, subtext: "Center Align", alignment: "center" }),
|
|
73
|
+
React.createElement(Branding, { withLine: true, subtext: "Right Align", alignment: "right" })),
|
|
74
|
+
React.createElement(Flex, { my: "x2", justifyContent: "space-between" },
|
|
75
|
+
React.createElement(Branding, { size: "large", subtext: "Left Align", alignment: "left" }),
|
|
76
|
+
React.createElement(Branding, { size: "large", subtext: "Center Align", alignment: "center" }),
|
|
77
|
+
React.createElement(Branding, { size: "large", subtext: "Right Align", alignment: "right" })),
|
|
78
|
+
React.createElement(Flex, { my: "x2", justifyContent: "space-between" },
|
|
79
|
+
React.createElement(Branding, { size: "large", withLine: true, subtext: "Left Align", alignment: "left" }),
|
|
80
|
+
React.createElement(Branding, { size: "large", withLine: true, subtext: "Center Align", alignment: "center" }),
|
|
81
|
+
React.createElement(Branding, { size: "large", withLine: true, subtext: "Right Align", alignment: "right" }))));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
type BrandingTextProps = {
|
|
3
|
-
logoColor?: "blue" | "white";
|
|
4
|
-
size?: "small" | "medium" | "large";
|
|
5
|
-
};
|
|
6
|
-
declare const BrandingText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, BrandingTextProps>> & string;
|
|
7
|
-
export default BrandingText;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
type BrandingTextProps = {
|
|
3
|
+
logoColor?: "blue" | "white";
|
|
4
|
+
size?: "small" | "medium" | "large";
|
|
5
|
+
};
|
|
6
|
+
declare const BrandingText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, BrandingTextProps>> & string;
|
|
7
|
+
export default BrandingText;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import styled from "styled-components";
|
|
2
|
+
const logoColors = {
|
|
3
|
+
white: "#FFFFFF",
|
|
4
|
+
blue: "#0E77D2",
|
|
5
|
+
};
|
|
6
|
+
const getLogoColor = (logoColor) => logoColors[logoColor] || logoColors.blue;
|
|
7
|
+
const BrandingText = styled.span(({ logoColor = "blue", size, theme }) => ({
|
|
8
|
+
color: getLogoColor(logoColor),
|
|
9
|
+
textDecoration: "none",
|
|
10
|
+
fontWeight: theme.fontWeights.medium,
|
|
11
|
+
letterSpacing: "0.0333em",
|
|
12
|
+
textTransform: "uppercase",
|
|
13
|
+
fontSize: size === "small" ? "10px" : "11px",
|
|
14
|
+
lineHeight: "12px",
|
|
15
|
+
whiteSpace: "nowrap",
|
|
16
|
+
active: {
|
|
17
|
+
color: getLogoColor(logoColor),
|
|
18
|
+
},
|
|
19
|
+
visited: {
|
|
20
|
+
color: getLogoColor(logoColor),
|
|
21
|
+
},
|
|
22
|
+
}));
|
|
23
|
+
export default BrandingText;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
type LettermarkLogoProps = {
|
|
3
|
-
letterFill?: string;
|
|
4
|
-
size?: string;
|
|
5
|
-
};
|
|
6
|
-
export default function LettermarkLogo({ size, letterFill, ...props }: LettermarkLogoProps): React.JSX.Element;
|
|
7
|
-
export {};
|
|
1
|
+
import React from "react";
|
|
2
|
+
type LettermarkLogoProps = {
|
|
3
|
+
letterFill?: string;
|
|
4
|
+
size?: string;
|
|
5
|
+
};
|
|
6
|
+
export default function LettermarkLogo({ size, letterFill, ...props }: LettermarkLogoProps): React.JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import React from "react";
|
|
13
|
+
const sizes = {
|
|
14
|
+
small: {
|
|
15
|
+
height: "24px",
|
|
16
|
+
width: "28px",
|
|
17
|
+
},
|
|
18
|
+
medium: {
|
|
19
|
+
height: "32px",
|
|
20
|
+
width: "37px",
|
|
21
|
+
},
|
|
22
|
+
large: {
|
|
23
|
+
height: "48px",
|
|
24
|
+
width: "56px",
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
const getSize = (size) => sizes[size] || sizes.medium;
|
|
28
|
+
export default function LettermarkLogo(_a) {
|
|
29
|
+
var { size, letterFill } = _a, props = __rest(_a, ["size", "letterFill"]);
|
|
30
|
+
return (React.createElement("svg", Object.assign({}, getSize(size), props, { viewBox: "0 0 37 32", style: { display: "block", margin: size === "large" ? null : "2px 0" } }),
|
|
31
|
+
React.createElement("path", { fill: letterFill, d: "M30.6967273,1.13648485 L36.3810909,3.40945455 L36.3810909,23.8758788 C36.3810909,28.2705455 30.9507879,29.0424242 27.2853333,29.5602424 C29.3818182,29.0424242 30.7083636,28.4606061 30.6967273,23.8758788 L30.6967273,5.68436364 L25.0123636,3.40945455 L30.6967273,1.13648485 Z M6.82084848,28.4237576 L6.82084848,15.9204848 C6.82084848,14.6618182 7.76533333,13.238303 8.91151515,12.7476364 L14.7801212,10.2264242 L14.7801212,18.1779394 L20.4644848,21.6048485 C21.6106667,22.1866667 23.8758788,22.2002424 23.8758788,20.4664242 L23.8758788,17.0550303 L21.5990303,15.9166061 L21.5990303,1.56319402e-13 L4.26666667,6.38642424 C1.91030303,7.25333333 3.55271368e-15,9.98593939 3.55271368e-15,12.5071515 L3.55271368e-15,31.2669091 L6.82084848,28.4237576 Z" })));
|
|
32
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
type WordmarkLogoProps = {
|
|
3
|
-
logoFill?: string;
|
|
4
|
-
letterFill?: string;
|
|
5
|
-
size?: string;
|
|
6
|
-
children?: React.ReactNode;
|
|
7
|
-
};
|
|
8
|
-
export default function WordmarkLogo({ size, logoFill, letterFill, ...props }: WordmarkLogoProps): React.JSX.Element;
|
|
9
|
-
export {};
|
|
1
|
+
import React from "react";
|
|
2
|
+
type WordmarkLogoProps = {
|
|
3
|
+
logoFill?: string;
|
|
4
|
+
letterFill?: string;
|
|
5
|
+
size?: string;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
};
|
|
8
|
+
export default function WordmarkLogo({ size, logoFill, letterFill, ...props }: WordmarkLogoProps): React.JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import React from "react";
|
|
13
|
+
const sizes = {
|
|
14
|
+
small: {
|
|
15
|
+
height: "24px",
|
|
16
|
+
width: "100px",
|
|
17
|
+
},
|
|
18
|
+
medium: {
|
|
19
|
+
height: "32px",
|
|
20
|
+
width: "133px",
|
|
21
|
+
},
|
|
22
|
+
large: {
|
|
23
|
+
height: "48px",
|
|
24
|
+
width: "200px",
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
const getSize = (size) => sizes[size] || sizes.medium;
|
|
28
|
+
export default function WordmarkLogo(_a) {
|
|
29
|
+
var { size, logoFill, letterFill } = _a, props = __rest(_a, ["size", "logoFill", "letterFill"]);
|
|
30
|
+
return (React.createElement("svg", Object.assign({}, getSize(size), props, { viewBox: "0 0 133 32", style: { display: "block", margin: size === "medium" ? "2px 0" : null } }),
|
|
31
|
+
React.createElement("path", { fill: letterFill, d: "M30.6967273,1.13648485 L36.3810909,3.40945455 L36.3810909,23.8758788 C36.3810909,28.2705455 30.9507879,29.0424242 27.2853333,29.5602424 C29.3818182,29.0424242 30.7083636,28.4606061 30.6967273,23.8758788 L30.6967273,5.68436364 L25.0123636,3.40945455 L30.6967273,1.13648485 Z M6.82084848,28.4237576 L6.82084848,15.9204848 C6.82084848,14.6618182 7.76533333,13.238303 8.91151515,12.7476364 L14.7801212,10.2264242 L14.7801212,18.1779394 L20.4644848,21.6048485 C21.6106667,22.1866667 23.8758788,22.2002424 23.8758788,20.4664242 L23.8758788,17.0550303 L21.5990303,15.9166061 L21.5990303,1.56319402e-13 L4.26666667,6.38642424 C1.91030303,7.25333333 3.55271368e-15,9.98593939 3.55271368e-15,12.5071515 L3.55271368e-15,31.2669091 L6.82084848,28.4237576 Z" }),
|
|
32
|
+
React.createElement("g", { transform: "translate(43.000000, 0.000000)", fill: logoFill },
|
|
33
|
+
React.createElement("path", { d: "M5.14521212,24.2224981 L1.33226763e-14,24.2224981 L1.33226763e-14,9.41134654 L4.75151515,9.41134654 L4.75151515,11.8937708 C5.43733518,11.0060378 6.29475204,10.2653615 7.27272727,9.71583139 C8.16188898,9.23817548 9.15699751,8.9920662 10.166303,9.00019502 C11.7333333,9.00019502 12.9221818,9.44948795 13.7328485,10.3480738 C14.5435152,11.2466597 14.9488485,12.5615688 14.9488485,14.2928011 L14.9488485,24.2224981 L9.83078788,24.2224981 L9.83078788,15.7376496 C9.83078788,14.961892 9.67175758,14.3755486 9.35369697,13.9786193 C9.03563636,13.58169 8.56436364,13.3877506 7.93987879,13.3968011 C7.04258586,13.3968011 6.35216162,13.6980536 5.86860606,14.3005587 C5.38505051,14.9030637 5.14391919,15.7803162 5.14521212,16.9323162 L5.14521212,24.2224981 Z" }),
|
|
34
|
+
React.createElement("path", { d: "M27.8366061,9 L32.9507879,9 L32.9507879,22.6203636 L28.1992727,24.5190303 L28.1992727,21.6254545 C27.5124636,22.5143219 26.6553593,23.2573653 25.6780606,23.8111515 C24.7938668,24.2845189 23.8048332,24.5279425 22.8019394,24.5190303 C21.2323232,24.5190303 20.0402424,24.0665051 19.225697,23.1614545 C18.4111515,22.256404 18.0025859,20.9408485 18,19.2147879 L18,9 L23.1452121,9 L23.1452121,17.7796364 C23.1452121,18.5553939 23.3042424,19.1443232 23.622303,19.5464242 C23.9403636,19.9485253 24.4116364,20.1482828 25.0361212,20.145697 C25.9411717,20.145697 26.631596,19.8418586 27.1073939,19.2341818 C27.5831919,18.6265051 27.8243232,17.7524848 27.8307879,16.6121212 L27.8366061,9 Z" }),
|
|
35
|
+
React.createElement("polygon", { id: "Path", points: "38.7151515 24.5546667 36 24.5546667 36 1.088 38.7151515 1.15463195e-13" }),
|
|
36
|
+
React.createElement("path", { d: "M41,17.0717576 C41,14.7263838 41.7453737,12.7947475 43.2361212,11.2768485 C44.7268687,9.75894949 46.6171313,9 48.9069091,9 C51.1966869,9 53.0869495,9.75894949 54.577697,11.2768485 C56.0684444,12.7947475 56.8138182,14.7263838 56.8138182,17.0717576 C56.8138182,19.4274747 56.0684444,21.3668687 54.577697,22.8899394 C53.0869495,24.4130101 51.1966869,25.1719596 48.9069091,25.1667879 C46.6261818,25.1667879 44.7385051,24.4078384 43.2438788,22.8899394 C41.7492525,21.3720404 41.0012929,19.4326465 41,17.0717576 Z M43.6957576,17.0717576 C43.6957576,18.9141818 44.172202,20.3965253 45.1250909,21.5187879 C46.0779798,22.6410505 47.327596,23.2028283 48.8739394,23.2041212 C50.4254545,23.2041212 51.6802424,22.6423434 52.638303,21.5187879 C53.5963636,20.3952323 54.0786263,18.9128889 54.0850909,17.0717576 C54.0850909,15.2422626 53.6028283,13.7657374 52.638303,12.6421818 C51.6737778,11.5186263 50.4189899,10.9574949 48.8739394,10.9587879 C47.3224242,10.9587879 46.0728081,11.5205657 45.1250909,12.6441212 C44.1773737,13.7676768 43.7009293,15.2435556 43.6957576,17.0717576 Z" }),
|
|
37
|
+
React.createElement("path", { d: "M70.0824261,23.582303 C69.3285884,24.0285568 68.5220417,24.3790594 67.6814564,24.625697 C66.9065592,24.8487063 66.1042899,24.9622904 65.2979413,24.9631515 C63.1180625,24.9631515 61.3564463,24.2397576 60.0130928,22.7929697 C58.6697392,21.3461818 57.9987089,19.4449293 58.0000019,17.0892121 C58.0000019,14.6882424 58.7175776,12.739798 60.1527291,11.2438788 C61.5878807,9.7479596 63.4626281,9 65.7769716,9 C66.5067857,9.0106757 67.2345208,9.08072506 67.9529716,9.20945455 C68.7804463,9.34650505 69.737214,9.55725253 70.8232746,9.84169697 L72.745214,9.06593939 L72.745214,22.4283636 C72.745214,24.213899 72.6605271,25.520404 72.4911534,26.3478788 C72.3424597,27.1215145 72.0497022,27.860316 71.6281231,28.5258182 C70.9908577,29.4891385 70.0844202,30.2438287 69.0215776,30.696 C67.7834618,31.2231176 66.4474127,31.48094 65.1020625,31.4523636 C64.1335045,31.4523045 63.1689244,31.3284732 62.2317594,31.0838788 C61.252533,30.8239772 60.3068642,30.4510466 59.41382,29.9726061 L58.9696988,26.7512727 L60.9575776,28.0506667 C61.5573127,28.4240193 62.2116549,28.7014604 62.8969716,28.8729697 C63.6457641,29.0836796 64.4192481,29.1938978 65.1970928,29.2007273 C66.7486079,29.2007273 67.9516786,28.8128485 68.8063049,28.0370909 C69.6609312,27.2613333 70.0863049,26.1571717 70.0824261,24.7246061 L70.0824261,23.582303 Z M70.0824261,21.5595152 L70.0824261,12.0739394 C69.4432737,11.7542576 68.7741844,11.4983147 68.0848503,11.3098182 C67.4816476,11.1457578 66.859767,11.0603633 66.2346685,11.0557576 C64.581012,11.0557576 63.2499413,11.6117172 62.2414564,12.7236364 C61.2329716,13.8355556 60.7280827,15.3146667 60.7267897,17.1609697 C60.7267897,18.9348687 61.179315,20.3428687 62.0843655,21.3849697 C62.989416,22.4270707 64.2086483,22.9474747 65.7420625,22.9461818 C66.3845516,22.9385817 67.0221469,22.8332967 67.6329716,22.6339394 C68.4792669,22.3480186 69.2988853,21.9885027 70.0824261,21.5595152 L70.0824261,21.5595152 Z" }),
|
|
38
|
+
React.createElement("path", { d: "M75,9 L77.8276364,9 L82.2649697,20.6363636 L87.1483636,9 L89.4504242,9 L82.3813333,25.3238788 L82.2649697,25.5546667 C81.1478788,28.0965657 80.2874343,29.9066667 79.6836364,30.9849697 L76.7415758,30.9849697 C77.3683498,30.3346009 77.9302011,29.6246546 78.4191515,28.8652121 C79.0313917,27.8817808 79.5750659,26.8572886 80.046303,25.7990303 L81.0004848,23.7452121 L75,9 Z" }))));
|
|
39
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as Branding } from "./Branding";
|
|
2
|
-
export { default as BrandingText } from "./BrandingText";
|
|
1
|
+
export { default as Branding } from "./Branding";
|
|
2
|
+
export { default as BrandingText } from "./BrandingText";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { FlexProps } from "../Flex/Flex";
|
|
3
|
-
import { ComponentVariant } from "../NDSProvider/ComponentVariantContext";
|
|
4
|
-
type BreadcrumbsProps = FlexProps & {
|
|
5
|
-
variant?: ComponentVariant;
|
|
6
|
-
};
|
|
7
|
-
declare const Breadcrumbs: ({ variant, as, children, ...props }: BreadcrumbsProps) => React.JSX.Element;
|
|
8
|
-
export default Breadcrumbs;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { FlexProps } from "../Flex/Flex";
|
|
3
|
+
import { ComponentVariant } from "../NDSProvider/ComponentVariantContext";
|
|
4
|
+
type BreadcrumbsProps = FlexProps & {
|
|
5
|
+
variant?: ComponentVariant;
|
|
6
|
+
};
|
|
7
|
+
declare const Breadcrumbs: ({ variant, as, children, ...props }: BreadcrumbsProps) => React.JSX.Element;
|
|
8
|
+
export default Breadcrumbs;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import React, { isValidElement } from "react";
|
|
13
|
+
import { Flex } from "../Flex";
|
|
14
|
+
import { Icon } from "../Icon";
|
|
15
|
+
import { useComponentVariant } from "../NDSProvider/ComponentVariantContext";
|
|
16
|
+
import BreadcrumbsList from "./BreadcrumbsList";
|
|
17
|
+
import { BreadcrumbsListItem, BreadcrumbsListSeparator } from "./BreadcrumbsListItem";
|
|
18
|
+
const insertSeparators = (items) => {
|
|
19
|
+
return items.reduce((acc, current, index) => {
|
|
20
|
+
return acc.concat(current, React.createElement(BreadcrumbsListSeparator, { "aria-hidden": true, key: `separator-${index}`, className: "separator" },
|
|
21
|
+
React.createElement(Icon, { icon: "rightArrow" })));
|
|
22
|
+
}, []);
|
|
23
|
+
};
|
|
24
|
+
const Breadcrumbs = (_a) => {
|
|
25
|
+
var { variant, as = "nav", children } = _a, props = __rest(_a, ["variant", "as", "children"]);
|
|
26
|
+
const componentVariant = useComponentVariant(variant);
|
|
27
|
+
const allItems = React.Children.map(children, (child, index) => {
|
|
28
|
+
if (!isValidElement(child))
|
|
29
|
+
return null;
|
|
30
|
+
return (React.createElement(BreadcrumbsListItem, { variant: componentVariant, key: `child-${index}` }, child));
|
|
31
|
+
}).filter(Boolean);
|
|
32
|
+
return (React.createElement(Flex, Object.assign({ as: as }, props),
|
|
33
|
+
React.createElement(BreadcrumbsList, null, insertSeparators(allItems))));
|
|
34
|
+
};
|
|
35
|
+
export default Breadcrumbs;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
declare const _default: {
|
|
3
|
-
title: string;
|
|
4
|
-
};
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const _Breadcrumbs: () => React.JSX.Element;
|
|
7
|
-
export declare const WithoutLink: {
|
|
8
|
-
(): React.JSX.Element;
|
|
9
|
-
story: {
|
|
10
|
-
name: string;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
export declare const WithReactRouter: {
|
|
14
|
-
(): React.JSX.Element;
|
|
15
|
-
story: {
|
|
16
|
-
name: string;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const _Breadcrumbs: () => React.JSX.Element;
|
|
7
|
+
export declare const WithoutLink: {
|
|
8
|
+
(): React.JSX.Element;
|
|
9
|
+
story: {
|
|
10
|
+
name: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export declare const WithReactRouter: {
|
|
14
|
+
(): React.JSX.Element;
|
|
15
|
+
story: {
|
|
16
|
+
name: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { BrowserRouter, Link as ReactRouterLink } from "react-router-dom";
|
|
3
|
+
import { Link } from "../Link";
|
|
4
|
+
import { Text } from "../Type";
|
|
5
|
+
import { Breadcrumbs } from "./index";
|
|
6
|
+
export default {
|
|
7
|
+
title: "Components/Breadcrumbs",
|
|
8
|
+
};
|
|
9
|
+
export const _Breadcrumbs = () => (React.createElement(React.Fragment, null,
|
|
10
|
+
React.createElement(Breadcrumbs, null,
|
|
11
|
+
React.createElement(Link, { href: "/" }, "Home")),
|
|
12
|
+
React.createElement(Breadcrumbs, null,
|
|
13
|
+
React.createElement(Link, { href: "/" }, "Home"),
|
|
14
|
+
React.createElement(Link, { href: "/" }, "Tenants"))));
|
|
15
|
+
export const WithoutLink = () => (React.createElement(Breadcrumbs, null,
|
|
16
|
+
React.createElement(Link, { href: "/" }, "Home"),
|
|
17
|
+
React.createElement(Link, { href: "/" }, "Tenants"),
|
|
18
|
+
React.createElement(Text, null, "Current Tenant")));
|
|
19
|
+
WithoutLink.story = {
|
|
20
|
+
name: "without link",
|
|
21
|
+
};
|
|
22
|
+
export const WithReactRouter = () => (React.createElement(BrowserRouter, null,
|
|
23
|
+
React.createElement(Breadcrumbs, null,
|
|
24
|
+
React.createElement(Link, { as: ReactRouterLink, to: "/" }, "Home"),
|
|
25
|
+
React.createElement(Link, { as: ReactRouterLink, to: "/" }, "Tenants"),
|
|
26
|
+
React.createElement(Text, null, "Current Tenant"))));
|
|
27
|
+
WithReactRouter.story = {
|
|
28
|
+
name: "with react router",
|
|
29
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
declare const BreadcrumbsList: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, never>> & string;
|
|
3
|
-
export default BreadcrumbsList;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const BreadcrumbsList: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, never>> & string;
|
|
3
|
+
export default BreadcrumbsList;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ComponentVariant } from "../NDSProvider/ComponentVariantContext";
|
|
3
|
-
export declare const BreadcrumbsListSeparator: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, never>> & string;
|
|
4
|
-
export declare const BreadcrumbsListItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, {
|
|
5
|
-
variant: ComponentVariant;
|
|
6
|
-
}>> & string;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ComponentVariant } from "../NDSProvider/ComponentVariantContext";
|
|
3
|
+
export declare const BreadcrumbsListSeparator: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, never>> & string;
|
|
4
|
+
export declare const BreadcrumbsListItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, {
|
|
5
|
+
variant: ComponentVariant;
|
|
6
|
+
}>> & string;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import styled from "styled-components";
|
|
2
|
+
import { space, color, flexbox, layout } from "styled-system";
|
|
3
|
+
export const BreadcrumbsListSeparator = styled.li(({ theme }) => ({
|
|
4
|
+
margin: 0,
|
|
5
|
+
listStyle: "none",
|
|
6
|
+
display: "inline-flex",
|
|
7
|
+
alignSelf: "center",
|
|
8
|
+
color: theme.colors.midGrey,
|
|
9
|
+
"a, p": {
|
|
10
|
+
fontSize: theme.fontSizes.base,
|
|
11
|
+
},
|
|
12
|
+
"a:visited": {
|
|
13
|
+
color: theme.colors.darkBlue,
|
|
14
|
+
},
|
|
15
|
+
}), space, layout, color, flexbox);
|
|
16
|
+
export const BreadcrumbsListItem = styled.li(({ theme }) => ({
|
|
17
|
+
margin: 0,
|
|
18
|
+
listStyle: "none",
|
|
19
|
+
display: "inline-flex",
|
|
20
|
+
alignSelf: "center",
|
|
21
|
+
color: theme.colors.midGrey,
|
|
22
|
+
a: {
|
|
23
|
+
color: theme.colors.darkBlue,
|
|
24
|
+
textDecorationLine: "none",
|
|
25
|
+
},
|
|
26
|
+
"a:visited": {
|
|
27
|
+
color: theme.colors.darkBlue,
|
|
28
|
+
},
|
|
29
|
+
"a, p": {
|
|
30
|
+
padding: theme.space.none,
|
|
31
|
+
fontSize: theme.fontSizes.small,
|
|
32
|
+
lineHeight: theme.lineHeights.smallTextBase,
|
|
33
|
+
},
|
|
34
|
+
}), space, layout, color, flexbox);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as Breadcrumbs } from "./Breadcrumbs";
|
|
1
|
+
export { default as Breadcrumbs } from "./Breadcrumbs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Breadcrumbs } from "./Breadcrumbs";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { IconName } from "@nulogy/icons";
|
|
3
|
-
import { SpaceProps } from "styled-system";
|
|
4
|
-
import { DefaultNDSThemeType } from "../theme";
|
|
5
|
-
import { ComponentVariant } from "../NDSProvider/ComponentVariantContext";
|
|
6
|
-
export type ButtonProps = SpaceProps & React.ComponentPropsWithRef<"button"> & {
|
|
7
|
-
className?: string;
|
|
8
|
-
icon?: IconName | "loading";
|
|
9
|
-
iconSide?: "left" | "right";
|
|
10
|
-
size?: "small" | "medium";
|
|
11
|
-
variant?: ComponentVariant;
|
|
12
|
-
fullWidth?: boolean;
|
|
13
|
-
asLink?: boolean;
|
|
14
|
-
children?: React.ReactNode;
|
|
15
|
-
theme?: DefaultNDSThemeType;
|
|
16
|
-
href?: string;
|
|
17
|
-
};
|
|
18
|
-
declare const Button: React.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
19
|
-
export default Button;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { IconName } from "@nulogy/icons";
|
|
3
|
+
import { SpaceProps } from "styled-system";
|
|
4
|
+
import { DefaultNDSThemeType } from "../theme";
|
|
5
|
+
import { ComponentVariant } from "../NDSProvider/ComponentVariantContext";
|
|
6
|
+
export type ButtonProps = SpaceProps & React.ComponentPropsWithRef<"button"> & {
|
|
7
|
+
className?: string;
|
|
8
|
+
icon?: IconName | "loading";
|
|
9
|
+
iconSide?: "left" | "right";
|
|
10
|
+
size?: "small" | "medium";
|
|
11
|
+
variant?: ComponentVariant;
|
|
12
|
+
fullWidth?: boolean;
|
|
13
|
+
asLink?: boolean;
|
|
14
|
+
children?: React.ReactNode;
|
|
15
|
+
theme?: DefaultNDSThemeType;
|
|
16
|
+
href?: string;
|
|
17
|
+
};
|
|
18
|
+
declare const Button: React.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
19
|
+
export default Button;
|