@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,300 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { boolean, text } from "@storybook/addon-knobs";
|
|
3
|
+
import { action } from "@storybook/addon-actions";
|
|
4
|
+
import { Box, DropdownButton, DropdownMenu, Button, Text, Flex } from "../..";
|
|
5
|
+
import { getMockRows, mockColumns } from "../Table.mock-utils";
|
|
6
|
+
import { Table } from "..";
|
|
7
|
+
const dateToString = ({ cellData }) => {
|
|
8
|
+
return new Date(cellData).toUTCString().split(" ").splice(0, 4).join(" ");
|
|
9
|
+
};
|
|
10
|
+
const sectionRow = ({ cellData }) => (React.createElement(Box, { bg: "lightBlue", py: "x1", px: "x2" },
|
|
11
|
+
React.createElement(Text, { fontWeight: "bold", color: "blackBlue" }, cellData)));
|
|
12
|
+
const dropdownCellRenderer = ({ cellData }) => (React.createElement(Box, { textAlign: "right", pr: "x3" },
|
|
13
|
+
React.createElement(DropdownMenu, null,
|
|
14
|
+
React.createElement(DropdownButton, { onClick: action(cellData) }, "Edit"),
|
|
15
|
+
React.createElement(DropdownButton, { onClick: action(cellData) }, "Delete"))));
|
|
16
|
+
const columns = [
|
|
17
|
+
{ label: "Date", dataKey: "date" },
|
|
18
|
+
{ label: "Expected Quantity", dataKey: "expectedQuantity" },
|
|
19
|
+
{ label: "Actual Quantity", dataKey: "actualQuantity", align: "right" },
|
|
20
|
+
];
|
|
21
|
+
const columnsWithWidths = [
|
|
22
|
+
{ label: "Date", dataKey: "date" },
|
|
23
|
+
{ label: "Expected Quantity", dataKey: "expectedQuantity" },
|
|
24
|
+
{ label: "Actual Quantity", dataKey: "actualQuantity" },
|
|
25
|
+
{ label: "Note", dataKey: "note", width: "50%" },
|
|
26
|
+
];
|
|
27
|
+
const rowData = [
|
|
28
|
+
{
|
|
29
|
+
date: "2019-10-01",
|
|
30
|
+
expectedQuantity: "2,025 eaches",
|
|
31
|
+
actualQuantity: "1,800 eaches",
|
|
32
|
+
id: "r1",
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
date: "2019-10-02",
|
|
36
|
+
expectedQuantity: "2,475 eaches",
|
|
37
|
+
actualQuantity: "2,250 eaches",
|
|
38
|
+
id: "r2",
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
date: "2019-10-03",
|
|
42
|
+
expectedQuantity: "2,475 eaches",
|
|
43
|
+
actualQuantity: "1,425 eaches",
|
|
44
|
+
id: "r3",
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
date: "2019-10-04",
|
|
48
|
+
expectedQuantity: "2,475 eaches",
|
|
49
|
+
actualQuantity: "675 eaches",
|
|
50
|
+
id: "r4",
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
date: "2019-10-07",
|
|
54
|
+
expectedQuantity: "2,475 eaches",
|
|
55
|
+
actualQuantity: "1,575 eaches",
|
|
56
|
+
id: "r5",
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
date: "2019-10-22",
|
|
60
|
+
expectedQuantity: "1,725 eaches",
|
|
61
|
+
actualQuantity: "-",
|
|
62
|
+
id: "r7",
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
date: "2019-10-23",
|
|
66
|
+
expectedQuantity: "2,475 eaches",
|
|
67
|
+
actualQuantity: "-",
|
|
68
|
+
id: "r8",
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
date: "2019-10-24",
|
|
72
|
+
expectedQuantity: "2,475 eaches",
|
|
73
|
+
actualQuantity: "-",
|
|
74
|
+
id: "r9",
|
|
75
|
+
},
|
|
76
|
+
];
|
|
77
|
+
const compactRowData = [
|
|
78
|
+
{
|
|
79
|
+
date: "2019-10-01",
|
|
80
|
+
expectedQuantity: "2,025 eaches",
|
|
81
|
+
actualQuantity: "1,800 eaches",
|
|
82
|
+
id: "r1",
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
date: "2019-10-02",
|
|
86
|
+
expectedQuantity: "2,475 eaches",
|
|
87
|
+
actualQuantity: "2,250 eaches",
|
|
88
|
+
id: "r2",
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
date: "2019-10-03",
|
|
92
|
+
expectedQuantity: "2,475 eaches",
|
|
93
|
+
actualQuantity: "1,425 eaches",
|
|
94
|
+
id: "r3",
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
date: "2019-10-04",
|
|
98
|
+
expectedQuantity: "2,475 eaches",
|
|
99
|
+
actualQuantity: "675 eaches",
|
|
100
|
+
id: "r4",
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
date: "2019-10-07",
|
|
104
|
+
expectedQuantity: "2,475 eaches",
|
|
105
|
+
actualQuantity: "1,575 eaches",
|
|
106
|
+
id: "r5",
|
|
107
|
+
},
|
|
108
|
+
];
|
|
109
|
+
const rowDataWithWidths = [
|
|
110
|
+
{
|
|
111
|
+
date: "2019-10-01",
|
|
112
|
+
expectedQuantity: "2,025 eaches",
|
|
113
|
+
actualQuantity: "1,800 eaches",
|
|
114
|
+
id: "r1",
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
date: "2019-10-02",
|
|
118
|
+
expectedQuantity: "2,475 eaches",
|
|
119
|
+
actualQuantity: "2,250 eaches",
|
|
120
|
+
id: "r2",
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
date: "2019-10-03",
|
|
124
|
+
expectedQuantity: "2,475 eaches",
|
|
125
|
+
actualQuantity: "1,425 eaches",
|
|
126
|
+
id: "r3",
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
date: "2019-10-04",
|
|
130
|
+
expectedQuantity: "2,475 eaches",
|
|
131
|
+
actualQuantity: "675 eaches",
|
|
132
|
+
note: "1c Other Plant-related issue, equipment issues",
|
|
133
|
+
id: "r4",
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
date: "2019-10-07",
|
|
137
|
+
expectedQuantity: "2,475 eaches",
|
|
138
|
+
actualQuantity: "1,575 eaches",
|
|
139
|
+
id: "r5",
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
date: "2019-10-22",
|
|
143
|
+
expectedQuantity: "1,725 eaches",
|
|
144
|
+
actualQuantity: "-",
|
|
145
|
+
id: "r6",
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
date: "2019-10-23",
|
|
149
|
+
expectedQuantity: "2,475 eaches",
|
|
150
|
+
actualQuantity: "-",
|
|
151
|
+
id: "r7",
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
date: "2019-10-24",
|
|
155
|
+
expectedQuantity: "2,475 eaches",
|
|
156
|
+
actualQuantity: "-",
|
|
157
|
+
id: "r8",
|
|
158
|
+
},
|
|
159
|
+
];
|
|
160
|
+
const columnsWithFormatter = [
|
|
161
|
+
{ label: "Date", dataKey: "date", cellFormatter: dateToString },
|
|
162
|
+
{ label: "Expected Quantity", dataKey: "expectedQuantity" },
|
|
163
|
+
{ label: "Actual Quantity", dataKey: "actualQuantity" },
|
|
164
|
+
];
|
|
165
|
+
const columnsWithAlignment = [
|
|
166
|
+
{ label: "Date", dataKey: "date" },
|
|
167
|
+
{ label: "Expected Eaches", dataKey: "expectedQuantity" },
|
|
168
|
+
{ label: "Actual Eaches", dataKey: "actualQuantity", align: "right" },
|
|
169
|
+
];
|
|
170
|
+
const getColumnsWithCellRenderer = (cellRenderer) => [
|
|
171
|
+
{ label: "Date", dataKey: "date" },
|
|
172
|
+
{ label: "Expected Quantity", dataKey: "expectedQuantity" },
|
|
173
|
+
{ label: "", dataKey: "actualQuantity", cellRenderer },
|
|
174
|
+
];
|
|
175
|
+
const footerRowData = [
|
|
176
|
+
{
|
|
177
|
+
date: "Total",
|
|
178
|
+
expectedQuantity: "18,000 eaches",
|
|
179
|
+
actualQuantity: "7,725 eaches",
|
|
180
|
+
id: "f1",
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
date: "Attainment",
|
|
184
|
+
expectedQuantity: "",
|
|
185
|
+
actualQuantity: "41.5%",
|
|
186
|
+
id: "f2",
|
|
187
|
+
},
|
|
188
|
+
];
|
|
189
|
+
const rowDataWithSections = [
|
|
190
|
+
{
|
|
191
|
+
date: "2019-10-01",
|
|
192
|
+
expectedQuantity: "2,025 eaches",
|
|
193
|
+
actualQuantity: "1,800 eaches",
|
|
194
|
+
id: "r1",
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
date: "2019-10-02",
|
|
198
|
+
expectedQuantity: "2,475 eaches",
|
|
199
|
+
actualQuantity: "2,250 eaches",
|
|
200
|
+
id: "r2",
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
date: "2019-10-03",
|
|
204
|
+
expectedQuantity: "2,475 eaches",
|
|
205
|
+
actualQuantity: "1,425 eaches",
|
|
206
|
+
id: "r3",
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
date: "2019-10-04",
|
|
210
|
+
expectedQuantity: "2,475 eaches",
|
|
211
|
+
actualQuantity: "675 eaches",
|
|
212
|
+
id: "r4",
|
|
213
|
+
},
|
|
214
|
+
{ heading: "ABC & XYZ Company", cellRenderer: sectionRow, id: "r5" },
|
|
215
|
+
{
|
|
216
|
+
date: "2019-10-22",
|
|
217
|
+
expectedQuantity: "1,725 eaches",
|
|
218
|
+
actualQuantity: "-",
|
|
219
|
+
id: "r6",
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
date: "2019-10-23",
|
|
223
|
+
expectedQuantity: "2,475 eaches",
|
|
224
|
+
actualQuantity: "-",
|
|
225
|
+
id: "r7",
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
date: "2019-10-24",
|
|
229
|
+
expectedQuantity: "2,475 eaches",
|
|
230
|
+
actualQuantity: "-",
|
|
231
|
+
id: "r8",
|
|
232
|
+
},
|
|
233
|
+
];
|
|
234
|
+
export default {
|
|
235
|
+
title: "Components/Table/Base",
|
|
236
|
+
};
|
|
237
|
+
export const WithData = () => (React.createElement(Table, { columns: columns, rows: rowData, rowHovers: boolean("Show row hovers", true), compact: boolean("Show with compact styling", false), loading: boolean("Show loading state", false), className: "Table" }));
|
|
238
|
+
export const WithNoData = () => (React.createElement(Table, { columns: columns, rows: [], noRowsContent: text("Custom text", undefined), loading: boolean("Show loading state", false) }));
|
|
239
|
+
export const WithStickyHeader = () => (React.createElement(Box, { mt: "x4" },
|
|
240
|
+
React.createElement(Table, { columns: columns, rows: rowData, rowHovers: boolean("Show row hovers", true), compact: boolean("Show with compact styling", false), loading: boolean("Show loading state", false), className: "Table", stickyHeader: true })));
|
|
241
|
+
export const WithLotsOfRowsAndColumns = () => (React.createElement(Table, { columns: mockColumns, rows: getMockRows(50), hasSelectableRows: true, onRowSelectionChange: action("row selection changed"), loading: boolean("Show loading state", false) }));
|
|
242
|
+
export const WithCustomColumnWidths = () => React.createElement(Table, { columns: columnsWithWidths, rows: rowDataWithWidths });
|
|
243
|
+
export const WithACustomCellComponent = () => (React.createElement(Table, { columns: getColumnsWithCellRenderer(dropdownCellRenderer), rows: rowData }));
|
|
244
|
+
export const WithCellAlignment = () => React.createElement(Table, { columns: columnsWithAlignment, rows: rowData });
|
|
245
|
+
export const WithACellFormatter = () => React.createElement(Table, { columns: columnsWithFormatter, rows: rowData });
|
|
246
|
+
export const WithACustomColumnLabelComponent = () => (React.createElement(Table, { columns: [
|
|
247
|
+
{ label: "Date", dataKey: "date" },
|
|
248
|
+
{ label: "Expected Quantity", dataKey: "expectedQuantity" },
|
|
249
|
+
{ label: "Actual Quantity", dataKey: "actualQuantity" },
|
|
250
|
+
{
|
|
251
|
+
label: "Add record",
|
|
252
|
+
dataKey: "c4",
|
|
253
|
+
headerFormatter: ({ label }) => React.createElement(Button, { onClick: action("button clicked") }, label),
|
|
254
|
+
},
|
|
255
|
+
], rows: rowData }));
|
|
256
|
+
export const WithMetadata = () => (React.createElement(Table, { columns: [
|
|
257
|
+
{ label: "Date", dataKey: "date" },
|
|
258
|
+
{ label: "Expected Quantity", dataKey: "expectedQuantity" },
|
|
259
|
+
{ label: "Actual Quantity", dataKey: "actualQuantity" },
|
|
260
|
+
{
|
|
261
|
+
label: "Add record",
|
|
262
|
+
dataKey: "c4",
|
|
263
|
+
metadata: { helpText: "Allows adding a new record" },
|
|
264
|
+
headerFormatter: ({ label, metadata }) => (React.createElement(Flex, { flexDirection: "column" },
|
|
265
|
+
React.createElement(Text, null, label),
|
|
266
|
+
React.createElement(Text, { fontSize: "small", fontWeight: "base", color: "midGrey" }, metadata.helpText))),
|
|
267
|
+
},
|
|
268
|
+
], rows: rowData }));
|
|
269
|
+
export const WithFullWidthSection = () => React.createElement(Table, { columns: columns, rows: rowDataWithSections });
|
|
270
|
+
export const WithAFooter = () => (React.createElement(React.Fragment, null,
|
|
271
|
+
React.createElement(Table, { columns: columns, keyField: "date", rows: rowData, footerRows: footerRowData, loading: boolean("Show loading state", false) }),
|
|
272
|
+
React.createElement(Table, { compact: true, columns: columns, keyField: "date", rows: compactRowData, footerRows: footerRowData, loading: boolean("Show loading state", false) })));
|
|
273
|
+
export const WithRowBorder = () => (React.createElement(Table, { rowBorder: boolean("Show row border", true), columns: columns, rows: rowData, rowHovers: boolean("Show row hovers", true), compact: boolean("Show with compact styling", false), loading: boolean("Show loading state", false), className: "Table" }));
|
|
274
|
+
export const WithVerticalAlignment = () => (React.createElement(Table, { rowBorder: boolean("Show row border", true), columns: [
|
|
275
|
+
{ label: "Description", dataKey: "description", width: "50%" },
|
|
276
|
+
{ label: "Expected Quantity", dataKey: "expectedQuantity" },
|
|
277
|
+
{ label: "Actual Quantity", dataKey: "actualQuantity" },
|
|
278
|
+
], rows: [
|
|
279
|
+
{
|
|
280
|
+
description: "This whole row is top aligned. lorem ipsum dolor sit amet consectetur adipiscing elit lorem ipsum dolor sit amet consectetur adipiscing elit lorem ipsum dolor sit amet consectetur adipiscing",
|
|
281
|
+
expectedQuantity: "2,025 eaches",
|
|
282
|
+
verticalAlign: "top",
|
|
283
|
+
actualQuantity: "1,800 eaches",
|
|
284
|
+
id: "r1",
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
description: "This whole row is middle aligned. lorem ipsum dolor sit amet consectetur adipiscing elit lorem ipsum dolor sit amet consectetur adipiscing elit lorem ipsum dolor sit amet consectetur adipiscing",
|
|
288
|
+
expectedQuantity: "2,475 eaches",
|
|
289
|
+
verticalAlign: "middle",
|
|
290
|
+
actualQuantity: "2,250 eaches",
|
|
291
|
+
id: "r2",
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
description: "This whole row is bottom aligned. lorem ipsum dolor sit amet consectetur adipiscing elit lorem ipsum dolor sit amet consectetur adipiscing elit lorem ipsum dolor sit amet consectetur adipiscing",
|
|
295
|
+
expectedQuantity: "2,475 eaches",
|
|
296
|
+
verticalAlign: "bottom",
|
|
297
|
+
actualQuantity: "1,425 eaches",
|
|
298
|
+
id: "r3",
|
|
299
|
+
},
|
|
300
|
+
], rowHovers: boolean("Show row hovers", true), compact: boolean("Show with compact styling", false), loading: boolean("Show loading state", false) }));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
declare const _default: {
|
|
3
|
-
title: string;
|
|
4
|
-
};
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const Inputs: () => React.JSX.Element;
|
|
7
|
-
export declare const TextVariants: () => React.JSX.Element;
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const Inputs: () => React.JSX.Element;
|
|
7
|
+
export declare const TextVariants: () => React.JSX.Element;
|
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { action } from "@storybook/addon-actions";
|
|
3
|
+
import { Input } from "../../Input";
|
|
4
|
+
import { Table } from "..";
|
|
5
|
+
import { Box } from "../../Box";
|
|
6
|
+
import { Text } from "../../Type";
|
|
7
|
+
import { Flex } from "../../Flex";
|
|
8
|
+
import { Link } from "../../Link";
|
|
9
|
+
import { Select } from "../../Select";
|
|
10
|
+
import { Checkbox } from "../../Checkbox";
|
|
11
|
+
import { Toggle } from "../../Toggle";
|
|
12
|
+
import { IconicButton } from "../../Button";
|
|
13
|
+
import { TruncatedText } from "../../TruncatedText";
|
|
14
|
+
export default {
|
|
15
|
+
title: "Components/Table/Custom Content",
|
|
16
|
+
};
|
|
17
|
+
const columns = [
|
|
18
|
+
{
|
|
19
|
+
dataKey: "label",
|
|
20
|
+
label: "Label",
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
dataKey: "colInput",
|
|
24
|
+
label: "Input",
|
|
25
|
+
cellRenderer: ({ row }) => (React.createElement(Box, { py: "x1", pr: "x2", minWidth: "8em", width: "100%" },
|
|
26
|
+
React.createElement(Input, { placeholder: row.colInput }))),
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
dataKey: "colSelect",
|
|
30
|
+
label: "Select",
|
|
31
|
+
width: "100px",
|
|
32
|
+
cellRenderer: ({ row }) => (React.createElement(Box, { py: "x1", pr: "x2", minWidth: "8em", width: "100%", maxWidth: "16em" },
|
|
33
|
+
React.createElement(Select, { options: [
|
|
34
|
+
{ value: "kg", label: "kg" },
|
|
35
|
+
{ value: "lb", label: "lb" },
|
|
36
|
+
{ value: "oz", label: "oz" },
|
|
37
|
+
], value: row.colSelect }))),
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
dataKey: "colCheckbox",
|
|
41
|
+
label: "Checkbox",
|
|
42
|
+
cellRenderer: ({ row }) => (React.createElement(Box, { py: "x1", pr: "x2", minWidth: "8em" },
|
|
43
|
+
React.createElement(Checkbox, { id: "checkbox", labelText: row.colCheckbox }))),
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
dataKey: "colToggleWithLabel",
|
|
47
|
+
label: "Toggle with label",
|
|
48
|
+
cellRenderer: () => React.createElement(Toggle, { onChange: action("on change"), onText: "Active", offText: "Inactive", pr: "x2", py: "x1" }),
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
dataKey: "colToggle",
|
|
52
|
+
label: "Toggle",
|
|
53
|
+
width: "48px",
|
|
54
|
+
cellRenderer: () => React.createElement(Toggle, { onChange: action("on change"), pr: "x2", py: "x1" }),
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
dataKey: "colActions",
|
|
58
|
+
label: "",
|
|
59
|
+
width: "40px",
|
|
60
|
+
cellRenderer: () => React.createElement(IconicButton, { icon: "delete", pr: "x2", py: "x1" }),
|
|
61
|
+
},
|
|
62
|
+
];
|
|
63
|
+
const rows = [
|
|
64
|
+
{
|
|
65
|
+
label: "Example Row 1",
|
|
66
|
+
colInput: "456",
|
|
67
|
+
colSelect: "kg",
|
|
68
|
+
colCheckbox: "I agree",
|
|
69
|
+
colToggleWithLabel: true,
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
label: "Example Row 2",
|
|
73
|
+
colInput: "789",
|
|
74
|
+
colSelect: "kg",
|
|
75
|
+
colCheckbox: "I acknowledge",
|
|
76
|
+
colToggleWithLabel: true,
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
label: "Example Row 3",
|
|
80
|
+
colInput: "101",
|
|
81
|
+
colSelect: "oz",
|
|
82
|
+
colCheckbox: "Ok",
|
|
83
|
+
colToggleWithLabel: false,
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
label: "Example Row 4",
|
|
87
|
+
colInput: "112",
|
|
88
|
+
colSelect: "kg",
|
|
89
|
+
colCheckbox: "I read",
|
|
90
|
+
colToggleWithLabel: true,
|
|
91
|
+
},
|
|
92
|
+
];
|
|
93
|
+
export const Inputs = () => {
|
|
94
|
+
return (React.createElement(React.Fragment, null,
|
|
95
|
+
React.createElement(Text, { fontSize: "smaller", color: "midGrey" },
|
|
96
|
+
"This story demonstrates how to use CellRenderer with various input elements. For more details on selectable rows, check out the",
|
|
97
|
+
" ",
|
|
98
|
+
React.createElement(Link, { href: "/?path=/story/components-table-with-selectable-rows--with-selectable-rows" }, "Selectable rows"),
|
|
99
|
+
" ",
|
|
100
|
+
"story. For the Action column with IconicButtons and Toggles without labels, it is recommended to specify the column width."),
|
|
101
|
+
React.createElement(Table, { rowHovers: false, columns: columns, rows: rows })));
|
|
102
|
+
};
|
|
103
|
+
const textColumns = [
|
|
104
|
+
{
|
|
105
|
+
dataKey: "colA",
|
|
106
|
+
label: "Auto width",
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
dataKey: "colB",
|
|
110
|
+
label: "Absolute width",
|
|
111
|
+
width: "200px",
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
dataKey: "colC",
|
|
115
|
+
label: "Relative width",
|
|
116
|
+
width: "20%",
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
dataKey: "colD",
|
|
120
|
+
label: "Multi-line",
|
|
121
|
+
metadata: { helpText: "2 rows" },
|
|
122
|
+
headerFormatter: ({ label, metadata }) => (React.createElement(Flex, { flexDirection: "column" },
|
|
123
|
+
React.createElement(Text, null, label),
|
|
124
|
+
React.createElement(Text, { fontSize: "small", fontWeight: "base", color: "midGrey" }, metadata.helpText))),
|
|
125
|
+
cellRenderer: ({ row }) => (React.createElement(Flex, { flexDirection: "column", py: "x2", pr: "x2", gap: "x0_25" },
|
|
126
|
+
React.createElement(Text, null, row.colD),
|
|
127
|
+
React.createElement(Text, { fontSize: "small", color: "midGrey" }, row.colD))),
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
dataKey: "colE",
|
|
131
|
+
label: "Truncated text",
|
|
132
|
+
width: "200px",
|
|
133
|
+
cellRenderer: ({ row }) => (React.createElement(TruncatedText, { fullWidth: true, pr: "x2", py: "x2", maxWidth: "200px" }, row.colE)),
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
dataKey: "colF",
|
|
137
|
+
label: "Numerical",
|
|
138
|
+
align: "right",
|
|
139
|
+
},
|
|
140
|
+
];
|
|
141
|
+
const textRows = [
|
|
142
|
+
{
|
|
143
|
+
colA: "This is ...",
|
|
144
|
+
colB: "This is a column...",
|
|
145
|
+
colC: "In this case...",
|
|
146
|
+
colD: "This is a row",
|
|
147
|
+
colE: "This is a column that will truncate the text if it is too long to fit in the column.",
|
|
148
|
+
colF: "860,934.24",
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
colA: "the default width.",
|
|
152
|
+
colB: "that has width specified as an absolute value (200px).",
|
|
153
|
+
colC: "the column width is set as a relative value (20%).",
|
|
154
|
+
colD: "This is a row",
|
|
155
|
+
colE: "What is needed here is that the width on the cell and maxWidth on text ...",
|
|
156
|
+
colF: "12.90",
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
colA: "that will respond to the width of the table.",
|
|
160
|
+
colB: "The column will maintain the width...",
|
|
161
|
+
colC: "The column...",
|
|
162
|
+
colD: "This is a row",
|
|
163
|
+
colE: "is set",
|
|
164
|
+
colF: "10 000.00",
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
colA: "It wraps...",
|
|
168
|
+
colB: "unless the table is squeezed until all the other columns in the table...",
|
|
169
|
+
colC: "will maintain the relative width...",
|
|
170
|
+
colD: "This is a row",
|
|
171
|
+
colE: "!",
|
|
172
|
+
colF: "936.221,00",
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
colA: "and does not truncate",
|
|
176
|
+
colB: "are not able to grow any further",
|
|
177
|
+
colC: "with the width...",
|
|
178
|
+
colD: "This is a row",
|
|
179
|
+
colE: "Make sure that you use absolute values, as relative may not...",
|
|
180
|
+
colF: "18",
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
colA: "!",
|
|
184
|
+
colB: "!",
|
|
185
|
+
colC: "of the table.",
|
|
186
|
+
colD: "This is a row",
|
|
187
|
+
colE: "behaves as expected",
|
|
188
|
+
colF: "--",
|
|
189
|
+
},
|
|
190
|
+
];
|
|
191
|
+
export const TextVariants = () => (React.createElement(React.Fragment, null,
|
|
192
|
+
React.createElement(Text, { fontSize: "smaller", color: "midGrey" }, "This story demonstrates some of the most useful text variants and column width configurations. To truncate text inside a cell, make sure to match the cell's width with the maxWidth of the truncated text."),
|
|
193
|
+
React.createElement(Table, { columns: textColumns, rows: textRows })));
|
|
194
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
195
|
+
const States = () => (React.createElement(React.Fragment, null,
|
|
196
|
+
React.createElement(Text, { fontSize: "smaller", color: "midGrey" }, "This story demonstrates how to style cells for particular row states."),
|
|
197
|
+
React.createElement(Table, { columns: [
|
|
198
|
+
{
|
|
199
|
+
dataKey: "label",
|
|
200
|
+
label: "Label",
|
|
201
|
+
cellRenderer: ({ row }) => row.state === "disabled" ? (React.createElement(Box, { p: "x2", color: "midGrey" }, row.label)) : row.state === "error" ? (React.createElement(Box, { p: "x2", color: "red" }, row.label)) : (React.createElement(Box, { p: "x2" }, row.label)),
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
dataKey: "colInput",
|
|
205
|
+
label: "Input",
|
|
206
|
+
cellRenderer: ({ row }) => row.state === "disabled" ? (React.createElement(Box, { py: "x1", pr: "x2", minWidth: "8em", width: "100%" },
|
|
207
|
+
React.createElement(Input, { disabled: true, placeholder: row.colInput }))) : row.state === "error" ? (React.createElement(Box, { py: "x1", pr: "x2", minWidth: "8em", width: "100%" },
|
|
208
|
+
React.createElement(Input, { errorMessage: "Invalid value, try again.", placeholder: row.colInput }))) : (React.createElement(Box, { py: "x1", pr: "x2", minWidth: "8em", width: "100%" },
|
|
209
|
+
React.createElement(Input, { placeholder: row.colInput }))),
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
dataKey: "colSelect",
|
|
213
|
+
label: "Select",
|
|
214
|
+
width: "100px",
|
|
215
|
+
cellRenderer: ({ row }) => row.state === "disabled" ? (React.createElement(Box, { py: "x1", pr: "x2", minWidth: "8em", width: "100%", maxWidth: "16em" },
|
|
216
|
+
React.createElement(Select, { disabled: true, options: [
|
|
217
|
+
{ value: "kg", label: "kg" },
|
|
218
|
+
{ value: "lb", label: "lb" },
|
|
219
|
+
{ value: "oz", label: "oz" },
|
|
220
|
+
], value: row.colSelect }))) : row.state === "error" ? (React.createElement(Box, { py: "x1", pr: "x2", minWidth: "8em", width: "100%", maxWidth: "16em" },
|
|
221
|
+
React.createElement(Select, { errorMessage: "Invalid value", options: [
|
|
222
|
+
{ value: "kg", label: "kg" },
|
|
223
|
+
{ value: "lb", label: "lb" },
|
|
224
|
+
{ value: "oz", label: "oz" },
|
|
225
|
+
], value: row.colSelect }))) : (React.createElement(Box, { py: "x1", pr: "x2", minWidth: "8em", width: "100%", maxWidth: "16em" },
|
|
226
|
+
React.createElement(Select, { options: [
|
|
227
|
+
{ value: "kg", label: "kg" },
|
|
228
|
+
{ value: "lb", label: "lb" },
|
|
229
|
+
{ value: "oz", label: "oz" },
|
|
230
|
+
], value: row.colSelect }))),
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
dataKey: "colCheckbox",
|
|
234
|
+
label: "Checkbox",
|
|
235
|
+
cellRenderer: ({ row }) => row.state === "disabled" ? (React.createElement(Box, { py: "x1", pr: "x2", minWidth: "8em" },
|
|
236
|
+
React.createElement(Checkbox, { disabled: true, id: "checkbox", labelText: row.colCheckbox }))) : row.state === "error" ? (React.createElement(Box, { py: "x1", pr: "x2", minWidth: "8em" },
|
|
237
|
+
React.createElement(Checkbox, { error: true, id: "checkbox", labelText: row.colCheckbox }))) : (React.createElement(Box, { py: "x1", pr: "x2", minWidth: "8em" },
|
|
238
|
+
React.createElement(Checkbox, { id: "checkbox", labelText: row.colCheckbox }))),
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
dataKey: "colToggleWithLabel",
|
|
242
|
+
label: "Toggle with label",
|
|
243
|
+
cellRenderer: ({ row }) => row.state === "disabled" ? (React.createElement(Toggle, { disabled: true, onChange: action("on change"), onText: "Active", offText: "Inactive", pr: "x2", py: "x1" })) : (React.createElement(Toggle, { onChange: action("on change"), onText: "Active", offText: "Inactive", pr: "x2", py: "x1" })),
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
dataKey: "colToggle",
|
|
247
|
+
label: "Toggle",
|
|
248
|
+
width: "48px",
|
|
249
|
+
cellRenderer: ({ row }) => row.state === "disabled" ? (React.createElement(Toggle, { disabled: true, onChange: action("on change"), pr: "x2", py: "x1" })) : (React.createElement(Toggle, { onChange: action("on change"), pr: "x2", py: "x1" })),
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
dataKey: "colActions",
|
|
253
|
+
label: "",
|
|
254
|
+
width: "40px",
|
|
255
|
+
cellRenderer: ({ row }) => row.state === "disabled" ? (React.createElement(IconicButton, { disabled: true, icon: "delete", pr: "x2", py: "x1" })) : (React.createElement(IconicButton, { icon: "delete", pr: "x2", py: "x1" })),
|
|
256
|
+
},
|
|
257
|
+
], rows: [
|
|
258
|
+
{
|
|
259
|
+
label: "Active (default) state",
|
|
260
|
+
colInput: "456",
|
|
261
|
+
colSelect: "kg",
|
|
262
|
+
colCheckbox: "I agree",
|
|
263
|
+
colToggleWithLabel: true,
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
label: "Inactive (disabled) state",
|
|
267
|
+
state: "disabled",
|
|
268
|
+
colInput: "789",
|
|
269
|
+
colSelect: "kg",
|
|
270
|
+
colCheckbox: "I acknowledge",
|
|
271
|
+
colToggleWithLabel: true,
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
label: "Error state",
|
|
275
|
+
state: "error",
|
|
276
|
+
colInput: "101",
|
|
277
|
+
colSelect: "oz",
|
|
278
|
+
colCheckbox: "Ok",
|
|
279
|
+
colToggleWithLabel: false,
|
|
280
|
+
},
|
|
281
|
+
] })));
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
declare const _default: {
|
|
3
|
-
title: string;
|
|
4
|
-
};
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const Default: {
|
|
7
|
-
(): React.JSX.Element;
|
|
8
|
-
story: {
|
|
9
|
-
name: string;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
export declare const Compact: {
|
|
13
|
-
(): React.JSX.Element;
|
|
14
|
-
story: {
|
|
15
|
-
name: string;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const Default: {
|
|
7
|
+
(): React.JSX.Element;
|
|
8
|
+
story: {
|
|
9
|
+
name: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export declare const Compact: {
|
|
13
|
+
(): React.JSX.Element;
|
|
14
|
+
story: {
|
|
15
|
+
name: string;
|
|
16
|
+
};
|
|
17
|
+
};
|