@canonical/react-components 1.6.0 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Accordion/Accordion.stories.d.ts +18 -0
- package/dist/components/Accordion/Accordion.stories.js +117 -0
- package/dist/components/Accordion/Accordion.test.d.ts +1 -0
- package/dist/components/Accordion/AccordionSection/AccordionSection.test.d.ts +1 -0
- package/dist/components/ActionButton/ActionButton.stories.d.ts +7 -0
- package/dist/components/ActionButton/ActionButton.stories.js +36 -0
- package/dist/components/ActionButton/ActionButton.test.d.ts +1 -0
- package/dist/components/ApplicationLayout/AppAside/AppAside.stories.d.ts +13 -0
- package/dist/components/ApplicationLayout/AppAside/AppAside.stories.js +116 -0
- package/dist/components/ApplicationLayout/AppAside/AppAside.test.d.ts +1 -0
- package/dist/components/ApplicationLayout/AppMain/AppMain.stories.d.ts +14 -0
- package/dist/components/ApplicationLayout/AppMain/AppMain.stories.js +45 -0
- package/dist/components/ApplicationLayout/AppMain/AppMain.test.d.ts +1 -0
- package/dist/components/ApplicationLayout/AppNavigation/AppNavigation.stories.d.ts +12 -0
- package/dist/components/ApplicationLayout/AppNavigation/AppNavigation.stories.js +104 -0
- package/dist/components/ApplicationLayout/AppNavigation/AppNavigation.test.d.ts +1 -0
- package/dist/components/ApplicationLayout/AppNavigationBar/AppNavigationBar.stories.d.ts +15 -0
- package/dist/components/ApplicationLayout/AppNavigationBar/AppNavigationBar.stories.js +52 -0
- package/dist/components/ApplicationLayout/AppNavigationBar/AppNavigationBar.test.d.ts +1 -0
- package/dist/components/ApplicationLayout/AppStatus/AppStatus.stories.d.ts +13 -0
- package/dist/components/ApplicationLayout/AppStatus/AppStatus.stories.js +41 -0
- package/dist/components/ApplicationLayout/AppStatus/AppStatus.test.d.ts +1 -0
- package/dist/components/ApplicationLayout/Application/Application.stories.d.ts +6 -0
- package/dist/components/ApplicationLayout/Application/Application.stories.js +16 -0
- package/dist/components/ApplicationLayout/Application/Application.test.d.ts +1 -0
- package/dist/components/ApplicationLayout/ApplicationLayout.stories.d.ts +24 -0
- package/dist/components/ApplicationLayout/ApplicationLayout.stories.js +232 -0
- package/dist/components/ApplicationLayout/ApplicationLayout.test.d.ts +1 -0
- package/dist/components/ArticlePagination/ArticlePagination.stories.d.ts +6 -0
- package/dist/components/ArticlePagination/ArticlePagination.stories.js +22 -0
- package/dist/components/ArticlePagination/ArticlePagination.test.d.ts +1 -0
- package/dist/components/Badge/Badge.stories.d.ts +15 -0
- package/dist/components/Badge/Badge.stories.js +62 -0
- package/dist/components/Badge/Badge.test.d.ts +1 -0
- package/dist/components/Button/Button.stories.d.ts +32 -0
- package/dist/components/Button/Button.stories.js +180 -0
- package/dist/components/Button/Button.test.d.ts +1 -0
- package/dist/components/Card/Card.stories.d.ts +33 -0
- package/dist/components/Card/Card.stories.js +51 -0
- package/dist/components/Card/Card.test.d.ts +1 -0
- package/dist/components/CheckboxInput/CheckableInput/CheckableInput.test.d.ts +1 -0
- package/dist/components/CheckboxInput/CheckboxInput.stories.d.ts +11 -0
- package/dist/components/CheckboxInput/CheckboxInput.stories.js +84 -0
- package/dist/components/CheckboxInput/CheckboxInput.test.d.ts +1 -0
- package/dist/components/Chip/Chip.stories.d.ts +9 -0
- package/dist/components/Chip/Chip.stories.js +45 -0
- package/dist/components/Chip/Chip.test.d.ts +1 -0
- package/dist/components/CodeSnippet/CodeSnippet.stories.d.ts +45 -0
- package/dist/components/CodeSnippet/CodeSnippet.stories.js +281 -0
- package/dist/components/CodeSnippet/CodeSnippet.test.d.ts +1 -0
- package/dist/components/Col/Col.stories.d.ts +11 -0
- package/dist/components/Col/Col.stories.js +154 -0
- package/dist/components/Col/Col.test.d.ts +1 -0
- package/dist/components/ConfirmationButton/ConfirmationButton.stories.d.ts +9 -0
- package/dist/components/ConfirmationButton/ConfirmationButton.stories.js +108 -0
- package/dist/components/ConfirmationButton/ConfirmationButton.test.d.ts +1 -0
- package/dist/components/ConfirmationModal/ConfirmationModal.stories.d.ts +18 -0
- package/dist/components/ConfirmationModal/ConfirmationModal.stories.js +135 -0
- package/dist/components/ConfirmationModal/ConfirmationModal.test.d.ts +1 -0
- package/dist/components/ContextualMenu/ContextualMenu.stories.d.ts +13 -0
- package/dist/components/ContextualMenu/ContextualMenu.stories.js +107 -0
- package/dist/components/ContextualMenu/ContextualMenu.test.d.ts +1 -0
- package/dist/components/ContextualMenu/ContextualMenuDropdown/ContextualMenuDropdown.test.d.ts +1 -0
- package/dist/components/DoughnutChart/DoughnutChart.stories.d.ts +9 -0
- package/dist/components/DoughnutChart/DoughnutChart.stories.js +42 -0
- package/dist/components/DoughnutChart/DoughnutChart.test.d.ts +1 -0
- package/dist/components/EmptyState/EmptyState.stories.d.ts +7 -0
- package/dist/components/EmptyState/EmptyState.stories.js +49 -0
- package/dist/components/EmptyState/EmptyState.test.d.ts +1 -0
- package/dist/components/Field/Field.test.d.ts +1 -0
- package/dist/components/Form/Form.stories.d.ts +12 -0
- package/dist/components/Form/Form.stories.js +179 -0
- package/dist/components/Form/Form.test.d.ts +1 -0
- package/dist/components/FormikField/FormikField.stories.d.ts +8 -0
- package/dist/components/FormikField/FormikField.stories.js +85 -0
- package/dist/components/FormikField/FormikField.test.d.ts +1 -0
- package/dist/components/Icon/Icon.stories.d.ts +16 -0
- package/dist/components/Icon/Icon.stories.js +49 -0
- package/dist/components/Icon/Icon.test.d.ts +1 -0
- package/dist/components/Input/Input.stories.d.ts +14 -0
- package/dist/components/Input/Input.stories.js +148 -0
- package/dist/components/Input/Input.test.d.ts +1 -0
- package/dist/components/Label/Label.test.d.ts +1 -0
- package/dist/components/Link/Link.stories.d.ts +9 -0
- package/dist/components/Link/Link.stories.js +48 -0
- package/dist/components/Link/Link.test.d.ts +1 -0
- package/dist/components/List/List.stories.d.ts +15 -0
- package/dist/components/List/List.stories.js +122 -0
- package/dist/components/List/List.test.d.ts +1 -0
- package/dist/components/LoginPageLayout/LoginPageLayout.stories.d.ts +9 -0
- package/dist/components/LoginPageLayout/LoginPageLayout.stories.js +58 -0
- package/dist/components/LoginPageLayout/LoginPageLayout.test.d.ts +1 -0
- package/dist/components/MainTable/MainTable.stories.d.ts +15 -0
- package/dist/components/MainTable/MainTable.stories.js +553 -0
- package/dist/components/MainTable/MainTable.test.d.ts +1 -0
- package/dist/components/Modal/Modal.stories.d.ts +6 -0
- package/dist/components/Modal/Modal.stories.js +57 -0
- package/dist/components/Modal/Modal.test.d.ts +1 -0
- package/dist/components/ModularTable/ModularTable.stories.d.ts +27 -0
- package/dist/components/ModularTable/ModularTable.stories.js +343 -0
- package/dist/components/ModularTable/ModularTable.test.d.ts +1 -0
- package/dist/components/MultiSelect/FadeInDown/FadeInDown.test.d.ts +1 -0
- package/dist/components/MultiSelect/MultiSelect.stories.d.ts +8 -0
- package/dist/components/MultiSelect/MultiSelect.stories.js +70 -0
- package/dist/components/MultiSelect/MultiSelect.test.d.ts +1 -0
- package/dist/components/Navigation/Navigation.stories.d.ts +43 -0
- package/dist/components/Navigation/Navigation.stories.js +232 -0
- package/dist/components/Navigation/Navigation.test.d.ts +1 -0
- package/dist/components/Navigation/NavigationLink/NavigationLink.test.d.ts +1 -0
- package/dist/components/Navigation/NavigationMenu/NavigationMenu.test.d.ts +1 -0
- package/dist/components/Notification/Notification.stories.d.ts +45 -0
- package/dist/components/Notification/Notification.stories.js +201 -0
- package/dist/components/Notification/Notification.test.d.ts +1 -0
- package/dist/components/NotificationProvider/NotificationProvider.test.d.ts +1 -0
- package/dist/components/Pagination/Pagination.stories.d.ts +14 -0
- package/dist/components/Pagination/Pagination.stories.js +94 -0
- package/dist/components/Pagination/Pagination.test.d.ts +1 -0
- package/dist/components/Pagination/PaginationButton/PaginationButton.test.d.ts +4 -0
- package/dist/components/Pagination/PaginationItem/PaginationItem.test.d.ts +1 -0
- package/dist/components/Panel/Panel.stories.d.ts +17 -0
- package/dist/components/Panel/Panel.stories.js +60 -0
- package/dist/components/Panel/Panel.test.d.ts +1 -0
- package/dist/components/PasswordToggle/PasswordToggle.stories.d.ts +12 -0
- package/dist/components/PasswordToggle/PasswordToggle.stories.js +74 -0
- package/dist/components/PasswordToggle/PasswordToggle.test.d.ts +1 -0
- package/dist/components/RadioInput/RadioInput.stories.d.ts +10 -0
- package/dist/components/RadioInput/RadioInput.stories.js +83 -0
- package/dist/components/RadioInput/RadioInput.test.d.ts +1 -0
- package/dist/components/Row/Row.stories.d.ts +9 -0
- package/dist/components/Row/Row.stories.js +29 -0
- package/dist/components/Row/Row.test.d.ts +1 -0
- package/dist/components/SearchAndFilter/FilterPanelSection/FilterPanelSection.test.d.ts +1 -0
- package/dist/components/SearchAndFilter/SearchAndFilter.stories.d.ts +8 -0
- package/dist/components/SearchAndFilter/SearchAndFilter.stories.js +218 -0
- package/dist/components/SearchAndFilter/SearchAndFilter.test.d.ts +1 -0
- package/dist/components/SearchBox/SearchBox.stories.d.ts +14 -0
- package/dist/components/SearchBox/SearchBox.stories.js +106 -0
- package/dist/components/SearchBox/SearchBox.test.d.ts +1 -0
- package/dist/components/Select/Select.stories.d.ts +7 -0
- package/dist/components/Select/Select.stories.js +97 -0
- package/dist/components/Select/Select.test.d.ts +1 -0
- package/dist/components/SideNavigation/SideNavigation.stories.d.ts +14 -0
- package/dist/components/SideNavigation/SideNavigation.stories.js +62 -0
- package/dist/components/SideNavigation/SideNavigation.test.d.ts +1 -0
- package/dist/components/SideNavigation/SideNavigationBase/SideNavigationBase.test.d.ts +1 -0
- package/dist/components/SideNavigation/SideNavigationItem/SideNavigationItem.stories.d.ts +22 -0
- package/dist/components/SideNavigation/SideNavigationItem/SideNavigationItem.stories.js +70 -0
- package/dist/components/SideNavigation/SideNavigationItem/SideNavigationItem.test.d.ts +1 -0
- package/dist/components/SideNavigation/SideNavigationLink/SideNavigationLink.stories.d.ts +7 -0
- package/dist/components/SideNavigation/SideNavigationLink/SideNavigationLink.stories.js +32 -0
- package/dist/components/SideNavigation/SideNavigationLink/SideNavigationLink.test.d.ts +1 -0
- package/dist/components/SideNavigation/SideNavigationText/SideNavigationText.stories.d.ts +6 -0
- package/dist/components/SideNavigation/SideNavigationText/SideNavigationText.stories.js +25 -0
- package/dist/components/SideNavigation/SideNavigationText/SideNavigationText.test.d.ts +1 -0
- package/dist/components/SkipLink/SkipLink.stories.d.ts +6 -0
- package/dist/components/SkipLink/SkipLink.stories.js +18 -0
- package/dist/components/SkipLink/SkipLink.test.d.ts +1 -0
- package/dist/components/Slider/Slider.stories.d.ts +10 -0
- package/dist/components/Slider/Slider.stories.js +74 -0
- package/dist/components/Slider/Slider.test.d.ts +1 -0
- package/dist/components/Spinner/Spinner.stories.d.ts +8 -0
- package/dist/components/Spinner/Spinner.stories.js +28 -0
- package/dist/components/Spinner/Spinner.test.d.ts +1 -0
- package/dist/components/StatusLabel/StatusLabel.stories.d.ts +10 -0
- package/dist/components/StatusLabel/StatusLabel.stories.js +61 -0
- package/dist/components/StatusLabel/StatusLabel.test.d.ts +1 -0
- package/dist/components/Stepper/Step/Step.stories.d.ts +6 -0
- package/dist/components/Stepper/Step/Step.stories.js +33 -0
- package/dist/components/Stepper/Step/Step.test.d.ts +1 -0
- package/dist/components/Stepper/Stepper.stories.d.ts +11 -0
- package/dist/components/Stepper/Stepper.stories.js +289 -0
- package/dist/components/Stepper/Stepper.test.d.ts +1 -0
- package/dist/components/Strip/Strip.stories.d.ts +12 -0
- package/dist/components/Strip/Strip.stories.js +130 -0
- package/dist/components/Strip/Strip.test.d.ts +1 -0
- package/dist/components/SummaryButton/SummaryButton.stories.d.ts +18 -0
- package/dist/components/SummaryButton/SummaryButton.stories.js +59 -0
- package/dist/components/SummaryButton/SummaryButton.test.d.ts +1 -0
- package/dist/components/Switch/Switch.stories.d.ts +7 -0
- package/dist/components/Switch/Switch.stories.js +26 -0
- package/dist/components/Switch/Switch.test.d.ts +1 -0
- package/dist/components/Table/Table.test.d.ts +1 -0
- package/dist/components/TableCell/TableCell.test.d.ts +1 -0
- package/dist/components/TableHeader/TableHeader.test.d.ts +1 -0
- package/dist/components/TablePagination/TablePagination.stories.d.ts +14 -0
- package/dist/components/TablePagination/TablePagination.stories.js +330 -0
- package/dist/components/TablePagination/TablePagination.test.d.ts +1 -0
- package/dist/components/TablePagination/TablePaginationControls/TablePaginationControls.test.d.ts +1 -0
- package/dist/components/TableRow/TableRow.test.d.ts +1 -0
- package/dist/components/Tabs/Tabs.stories.d.ts +11 -0
- package/dist/components/Tabs/Tabs.stories.js +56 -0
- package/dist/components/Tabs/Tabs.test.d.ts +1 -0
- package/dist/components/Textarea/Textarea.stories.d.ts +7 -0
- package/dist/components/Textarea/Textarea.stories.js +62 -0
- package/dist/components/Textarea/Textarea.test.d.ts +1 -0
- package/dist/components/Tooltip/Tooltip.stories.d.ts +12 -0
- package/dist/components/Tooltip/Tooltip.stories.js +71 -0
- package/dist/components/Tooltip/Tooltip.test.d.ts +1 -0
- package/dist/esm/components/Accordion/Accordion.d.ts +46 -0
- package/dist/esm/components/Accordion/Accordion.js +52 -0
- package/dist/esm/components/Accordion/Accordion.stories.d.ts +18 -0
- package/dist/esm/components/Accordion/Accordion.stories.js +109 -0
- package/dist/esm/components/Accordion/Accordion.test.d.ts +1 -0
- package/dist/esm/components/Accordion/AccordionSection/AccordionSection.d.ts +34 -0
- package/dist/esm/components/Accordion/AccordionSection/AccordionSection.js +47 -0
- package/dist/esm/components/Accordion/AccordionSection/AccordionSection.test.d.ts +1 -0
- package/dist/esm/components/Accordion/AccordionSection/index.d.ts +2 -0
- package/dist/esm/components/Accordion/AccordionSection/index.js +1 -0
- package/dist/esm/components/Accordion/index.d.ts +2 -0
- package/dist/esm/components/Accordion/index.js +1 -0
- package/dist/esm/components/ActionButton/ActionButton.d.ts +48 -0
- package/dist/esm/components/ActionButton/ActionButton.js +106 -0
- package/dist/esm/components/ActionButton/ActionButton.stories.d.ts +7 -0
- package/dist/esm/components/ActionButton/ActionButton.stories.js +29 -0
- package/dist/esm/components/ActionButton/ActionButton.test.d.ts +1 -0
- package/dist/esm/components/ActionButton/index.d.ts +2 -0
- package/dist/esm/components/ActionButton/index.js +1 -0
- package/dist/esm/components/ApplicationLayout/AppAside/AppAside.d.ts +33 -0
- package/dist/esm/components/ApplicationLayout/AppAside/AppAside.js +29 -0
- package/dist/esm/components/ApplicationLayout/AppAside/AppAside.stories.d.ts +13 -0
- package/dist/esm/components/ApplicationLayout/AppAside/AppAside.stories.js +108 -0
- package/dist/esm/components/ApplicationLayout/AppAside/AppAside.test.d.ts +1 -0
- package/dist/esm/components/ApplicationLayout/AppAside/index.d.ts +2 -0
- package/dist/esm/components/ApplicationLayout/AppAside/index.js +1 -0
- package/dist/esm/components/ApplicationLayout/AppMain/AppMain.d.ts +14 -0
- package/dist/esm/components/ApplicationLayout/AppMain/AppMain.js +21 -0
- package/dist/esm/components/ApplicationLayout/AppMain/AppMain.stories.d.ts +14 -0
- package/dist/esm/components/ApplicationLayout/AppMain/AppMain.stories.js +38 -0
- package/dist/esm/components/ApplicationLayout/AppMain/AppMain.test.d.ts +1 -0
- package/dist/esm/components/ApplicationLayout/AppMain/index.d.ts +2 -0
- package/dist/esm/components/ApplicationLayout/AppMain/index.js +1 -0
- package/dist/esm/components/ApplicationLayout/AppNavigation/AppNavigation.d.ts +26 -0
- package/dist/esm/components/ApplicationLayout/AppNavigation/AppNavigation.js +31 -0
- package/dist/esm/components/ApplicationLayout/AppNavigation/AppNavigation.stories.d.ts +12 -0
- package/dist/esm/components/ApplicationLayout/AppNavigation/AppNavigation.stories.js +97 -0
- package/dist/esm/components/ApplicationLayout/AppNavigation/AppNavigation.test.d.ts +1 -0
- package/dist/esm/components/ApplicationLayout/AppNavigation/index.d.ts +2 -0
- package/dist/esm/components/ApplicationLayout/AppNavigation/index.js +1 -0
- package/dist/esm/components/ApplicationLayout/AppNavigationBar/AppNavigationBar.d.ts +18 -0
- package/dist/esm/components/ApplicationLayout/AppNavigationBar/AppNavigationBar.js +24 -0
- package/dist/esm/components/ApplicationLayout/AppNavigationBar/AppNavigationBar.stories.d.ts +15 -0
- package/dist/esm/components/ApplicationLayout/AppNavigationBar/AppNavigationBar.stories.js +44 -0
- package/dist/esm/components/ApplicationLayout/AppNavigationBar/AppNavigationBar.test.d.ts +1 -0
- package/dist/esm/components/ApplicationLayout/AppNavigationBar/index.d.ts +2 -0
- package/dist/esm/components/ApplicationLayout/AppNavigationBar/index.js +1 -0
- package/dist/esm/components/ApplicationLayout/AppStatus/AppStatus.d.ts +14 -0
- package/dist/esm/components/ApplicationLayout/AppStatus/AppStatus.js +21 -0
- package/dist/esm/components/ApplicationLayout/AppStatus/AppStatus.stories.d.ts +13 -0
- package/dist/esm/components/ApplicationLayout/AppStatus/AppStatus.stories.js +34 -0
- package/dist/esm/components/ApplicationLayout/AppStatus/AppStatus.test.d.ts +1 -0
- package/dist/esm/components/ApplicationLayout/AppStatus/index.d.ts +2 -0
- package/dist/esm/components/ApplicationLayout/AppStatus/index.js +1 -0
- package/dist/esm/components/ApplicationLayout/Application/Application.d.ts +15 -0
- package/dist/esm/components/ApplicationLayout/Application/Application.js +22 -0
- package/dist/esm/components/ApplicationLayout/Application/Application.stories.d.ts +6 -0
- package/dist/esm/components/ApplicationLayout/Application/Application.stories.js +9 -0
- package/dist/esm/components/ApplicationLayout/Application/Application.test.d.ts +1 -0
- package/dist/esm/components/ApplicationLayout/Application/index.d.ts +2 -0
- package/dist/esm/components/ApplicationLayout/Application/index.js +1 -0
- package/dist/esm/components/ApplicationLayout/ApplicationLayout.d.ts +93 -0
- package/dist/esm/components/ApplicationLayout/ApplicationLayout.js +118 -0
- package/dist/esm/components/ApplicationLayout/ApplicationLayout.stories.d.ts +24 -0
- package/dist/esm/components/ApplicationLayout/ApplicationLayout.stories.js +222 -0
- package/dist/esm/components/ApplicationLayout/ApplicationLayout.test.d.ts +1 -0
- package/dist/esm/components/ApplicationLayout/index.d.ts +7 -0
- package/dist/esm/components/ApplicationLayout/index.js +7 -0
- package/dist/esm/components/ArticlePagination/ArticlePagination.d.ts +31 -0
- package/dist/esm/components/ArticlePagination/ArticlePagination.js +39 -0
- package/dist/esm/components/ArticlePagination/ArticlePagination.stories.d.ts +6 -0
- package/dist/esm/components/ArticlePagination/ArticlePagination.stories.js +15 -0
- package/dist/esm/components/ArticlePagination/ArticlePagination.test.d.ts +1 -0
- package/dist/esm/components/ArticlePagination/index.d.ts +2 -0
- package/dist/esm/components/ArticlePagination/index.js +1 -0
- package/dist/esm/components/Badge/Badge.d.ts +34 -0
- package/dist/esm/components/Badge/Badge.js +64 -0
- package/dist/esm/components/Badge/Badge.stories.d.ts +15 -0
- package/dist/esm/components/Badge/Badge.stories.js +53 -0
- package/dist/esm/components/Badge/Badge.test.d.ts +1 -0
- package/dist/esm/components/Badge/index.d.ts +2 -0
- package/dist/esm/components/Badge/index.js +1 -0
- package/dist/esm/components/Button/Button.d.ts +64 -0
- package/dist/esm/components/Button/Button.js +55 -0
- package/dist/esm/components/Button/Button.stories.d.ts +32 -0
- package/dist/esm/components/Button/Button.stories.js +171 -0
- package/dist/esm/components/Button/Button.test.d.ts +1 -0
- package/dist/esm/components/Button/index.d.ts +2 -0
- package/dist/esm/components/Button/index.js +1 -0
- package/dist/esm/components/Card/Card.d.ts +35 -0
- package/dist/esm/components/Card/Card.js +45 -0
- package/dist/esm/components/Card/Card.stories.d.ts +33 -0
- package/dist/esm/components/Card/Card.stories.js +48 -0
- package/dist/esm/components/Card/Card.test.d.ts +1 -0
- package/dist/esm/components/Card/index.d.ts +2 -0
- package/dist/esm/components/Card/index.js +1 -0
- package/dist/esm/components/CheckboxInput/CheckableInput/CheckableInput.d.ts +27 -0
- package/dist/esm/components/CheckboxInput/CheckableInput/CheckableInput.js +35 -0
- package/dist/esm/components/CheckboxInput/CheckableInput/CheckableInput.test.d.ts +1 -0
- package/dist/esm/components/CheckboxInput/CheckableInput/index.d.ts +2 -0
- package/dist/esm/components/CheckboxInput/CheckableInput/index.js +1 -0
- package/dist/esm/components/CheckboxInput/CheckboxInput.d.ts +9 -0
- package/dist/esm/components/CheckboxInput/CheckboxInput.js +24 -0
- package/dist/esm/components/CheckboxInput/CheckboxInput.stories.d.ts +11 -0
- package/dist/esm/components/CheckboxInput/CheckboxInput.stories.js +77 -0
- package/dist/esm/components/CheckboxInput/CheckboxInput.test.d.ts +1 -0
- package/dist/esm/components/CheckboxInput/index.d.ts +2 -0
- package/dist/esm/components/CheckboxInput/index.js +1 -0
- package/dist/esm/components/Chip/Chip.d.ts +56 -0
- package/dist/esm/components/Chip/Chip.js +81 -0
- package/dist/esm/components/Chip/Chip.stories.d.ts +9 -0
- package/dist/esm/components/Chip/Chip.stories.js +38 -0
- package/dist/esm/components/Chip/Chip.test.d.ts +1 -0
- package/dist/esm/components/Chip/index.d.ts +2 -0
- package/dist/esm/components/Chip/index.js +1 -0
- package/dist/esm/components/Code/Code.d.ts +13 -0
- package/dist/esm/components/Code/Code.js +49 -0
- package/dist/esm/components/Code/index.d.ts +2 -0
- package/dist/esm/components/Code/index.js +1 -0
- package/dist/esm/components/CodeSnippet/CodeSnippet.d.ts +21 -0
- package/dist/esm/components/CodeSnippet/CodeSnippet.js +28 -0
- package/dist/esm/components/CodeSnippet/CodeSnippet.stories.d.ts +45 -0
- package/dist/esm/components/CodeSnippet/CodeSnippet.stories.js +273 -0
- package/dist/esm/components/CodeSnippet/CodeSnippet.test.d.ts +1 -0
- package/dist/esm/components/CodeSnippet/CodeSnippetBlock.d.ts +40 -0
- package/dist/esm/components/CodeSnippet/CodeSnippetBlock.js +64 -0
- package/dist/esm/components/CodeSnippet/CodeSnippetDropdown.d.ts +18 -0
- package/dist/esm/components/CodeSnippet/CodeSnippetDropdown.js +27 -0
- package/dist/esm/components/CodeSnippet/index.d.ts +5 -0
- package/dist/esm/components/CodeSnippet/index.js +2 -0
- package/dist/esm/components/Col/Col.d.ts +53 -0
- package/dist/esm/components/Col/Col.js +38 -0
- package/dist/esm/components/Col/Col.stories.d.ts +11 -0
- package/dist/esm/components/Col/Col.stories.js +147 -0
- package/dist/esm/components/Col/Col.test.d.ts +1 -0
- package/dist/esm/components/Col/index.d.ts +2 -0
- package/dist/esm/components/Col/index.js +1 -0
- package/dist/esm/components/ConfirmationButton/ConfirmationButton.d.ts +28 -0
- package/dist/esm/components/ConfirmationButton/ConfirmationButton.js +63 -0
- package/dist/esm/components/ConfirmationButton/ConfirmationButton.stories.d.ts +9 -0
- package/dist/esm/components/ConfirmationButton/ConfirmationButton.stories.js +100 -0
- package/dist/esm/components/ConfirmationButton/ConfirmationButton.test.d.ts +1 -0
- package/dist/esm/components/ConfirmationButton/index.d.ts +2 -0
- package/dist/esm/components/ConfirmationButton/index.js +1 -0
- package/dist/esm/components/ConfirmationModal/ConfirmationModal.d.ts +53 -0
- package/dist/esm/components/ConfirmationModal/ConfirmationModal.js +47 -0
- package/dist/esm/components/ConfirmationModal/ConfirmationModal.stories.d.ts +18 -0
- package/dist/esm/components/ConfirmationModal/ConfirmationModal.stories.js +127 -0
- package/dist/esm/components/ConfirmationModal/ConfirmationModal.test.d.ts +1 -0
- package/dist/esm/components/ConfirmationModal/index.d.ts +2 -0
- package/dist/esm/components/ConfirmationModal/index.js +1 -0
- package/dist/esm/components/ContextualMenu/ContextualMenu.d.ts +110 -0
- package/dist/esm/components/ContextualMenu/ContextualMenu.js +215 -0
- package/dist/esm/components/ContextualMenu/ContextualMenu.stories.d.ts +13 -0
- package/dist/esm/components/ContextualMenu/ContextualMenu.stories.js +100 -0
- package/dist/esm/components/ContextualMenu/ContextualMenu.test.d.ts +1 -0
- package/dist/esm/components/ContextualMenu/ContextualMenuDropdown/ContextualMenuDropdown.d.ts +43 -0
- package/dist/esm/components/ContextualMenu/ContextualMenuDropdown/ContextualMenuDropdown.js +249 -0
- package/dist/esm/components/ContextualMenu/ContextualMenuDropdown/ContextualMenuDropdown.test.d.ts +1 -0
- package/dist/esm/components/ContextualMenu/ContextualMenuDropdown/index.d.ts +2 -0
- package/dist/esm/components/ContextualMenu/ContextualMenuDropdown/index.js +1 -0
- package/dist/esm/components/ContextualMenu/index.d.ts +3 -0
- package/dist/esm/components/ContextualMenu/index.js +1 -0
- package/dist/esm/components/DoughnutChart/DoughnutChart.d.ts +58 -0
- package/dist/esm/components/DoughnutChart/DoughnutChart.js +154 -0
- package/dist/esm/components/DoughnutChart/DoughnutChart.scss +30 -0
- package/dist/esm/components/DoughnutChart/DoughnutChart.stories.d.ts +9 -0
- package/dist/esm/components/DoughnutChart/DoughnutChart.stories.js +35 -0
- package/dist/esm/components/DoughnutChart/DoughnutChart.test.d.ts +1 -0
- package/dist/esm/components/DoughnutChart/index.d.ts +3 -0
- package/dist/esm/components/DoughnutChart/index.js +1 -0
- package/dist/esm/components/EmptyState/EmptyState.d.ts +25 -0
- package/dist/esm/components/EmptyState/EmptyState.js +28 -0
- package/dist/esm/components/EmptyState/EmptyState.stories.d.ts +7 -0
- package/dist/esm/components/EmptyState/EmptyState.stories.js +40 -0
- package/dist/esm/components/EmptyState/EmptyState.test.d.ts +1 -0
- package/dist/esm/components/EmptyState/index.d.ts +2 -0
- package/dist/esm/components/EmptyState/index.js +1 -0
- package/dist/esm/components/Field/Field.d.ts +77 -0
- package/dist/esm/components/Field/Field.js +126 -0
- package/dist/esm/components/Field/Field.test.d.ts +1 -0
- package/dist/esm/components/Field/index.d.ts +2 -0
- package/dist/esm/components/Field/index.js +1 -0
- package/dist/esm/components/Form/Form.d.ts +21 -0
- package/dist/esm/components/Form/Form.js +28 -0
- package/dist/esm/components/Form/Form.stories.d.ts +12 -0
- package/dist/esm/components/Form/Form.stories.js +172 -0
- package/dist/esm/components/Form/Form.test.d.ts +1 -0
- package/dist/esm/components/Form/index.d.ts +2 -0
- package/dist/esm/components/Form/index.js +1 -0
- package/dist/esm/components/FormikField/FormikField.d.ts +25 -0
- package/dist/esm/components/FormikField/FormikField.js +33 -0
- package/dist/esm/components/FormikField/FormikField.stories.d.ts +8 -0
- package/dist/esm/components/FormikField/FormikField.stories.js +78 -0
- package/dist/esm/components/FormikField/FormikField.test.d.ts +1 -0
- package/dist/esm/components/FormikField/index.d.ts +1 -0
- package/dist/esm/components/FormikField/index.js +1 -0
- package/dist/esm/components/Icon/Icon.d.ts +59 -0
- package/dist/esm/components/Icon/Icon.js +61 -0
- package/dist/esm/components/Icon/Icon.stories.d.ts +16 -0
- package/dist/esm/components/Icon/Icon.stories.js +40 -0
- package/dist/esm/components/Icon/Icon.stories.scss +11 -0
- package/dist/esm/components/Icon/Icon.test.d.ts +1 -0
- package/dist/esm/components/Icon/index.d.ts +2 -0
- package/dist/esm/components/Icon/index.js +1 -0
- package/dist/esm/components/Input/Input.d.ts +70 -0
- package/dist/esm/components/Input/Input.js +103 -0
- package/dist/esm/components/Input/Input.stories.d.ts +14 -0
- package/dist/esm/components/Input/Input.stories.js +141 -0
- package/dist/esm/components/Input/Input.test.d.ts +1 -0
- package/dist/esm/components/Input/index.d.ts +2 -0
- package/dist/esm/components/Input/index.js +1 -0
- package/dist/esm/components/Label/Label.d.ts +25 -0
- package/dist/esm/components/Label/Label.js +27 -0
- package/dist/esm/components/Label/Label.test.d.ts +1 -0
- package/dist/esm/components/Label/index.d.ts +2 -0
- package/dist/esm/components/Label/index.js +1 -0
- package/dist/esm/components/Link/Link.d.ts +31 -0
- package/dist/esm/components/Link/Link.js +37 -0
- package/dist/esm/components/Link/Link.stories.d.ts +9 -0
- package/dist/esm/components/Link/Link.stories.js +41 -0
- package/dist/esm/components/Link/Link.test.d.ts +1 -0
- package/dist/esm/components/Link/index.d.ts +2 -0
- package/dist/esm/components/Link/index.js +1 -0
- package/dist/esm/components/List/List.d.ts +36 -0
- package/dist/esm/components/List/List.js +110 -0
- package/dist/esm/components/List/List.stories.d.ts +15 -0
- package/dist/esm/components/List/List.stories.js +115 -0
- package/dist/esm/components/List/List.test.d.ts +1 -0
- package/dist/esm/components/List/index.d.ts +2 -0
- package/dist/esm/components/List/index.js +1 -0
- package/dist/esm/components/Loader/Loader.d.ts +6 -0
- package/dist/esm/components/Loader/Loader.js +14 -0
- package/dist/esm/components/Loader/index.d.ts +1 -0
- package/dist/esm/components/Loader/index.js +1 -0
- package/dist/esm/components/LoginPageLayout/LoginPageLayout.d.ts +17 -0
- package/dist/esm/components/LoginPageLayout/LoginPageLayout.js +63 -0
- package/dist/esm/components/LoginPageLayout/LoginPageLayout.scss +19 -0
- package/dist/esm/components/LoginPageLayout/LoginPageLayout.stories.d.ts +9 -0
- package/dist/esm/components/LoginPageLayout/LoginPageLayout.stories.js +51 -0
- package/dist/esm/components/LoginPageLayout/LoginPageLayout.test.d.ts +1 -0
- package/dist/esm/components/LoginPageLayout/index.d.ts +2 -0
- package/dist/esm/components/LoginPageLayout/index.js +1 -0
- package/dist/esm/components/MainTable/MainTable.d.ts +102 -0
- package/dist/esm/components/MainTable/MainTable.js +211 -0
- package/dist/esm/components/MainTable/MainTable.stories.d.ts +15 -0
- package/dist/esm/components/MainTable/MainTable.stories.js +545 -0
- package/dist/esm/components/MainTable/MainTable.test.d.ts +1 -0
- package/dist/esm/components/MainTable/index.d.ts +2 -0
- package/dist/esm/components/MainTable/index.js +1 -0
- package/dist/esm/components/Modal/Modal.d.ts +36 -0
- package/dist/esm/components/Modal/Modal.js +135 -0
- package/dist/esm/components/Modal/Modal.stories.d.ts +6 -0
- package/dist/esm/components/Modal/Modal.stories.js +49 -0
- package/dist/esm/components/Modal/Modal.test.d.ts +1 -0
- package/dist/esm/components/Modal/index.d.ts +2 -0
- package/dist/esm/components/Modal/index.js +1 -0
- package/dist/esm/components/ModularTable/ModularTable.d.ts +105 -0
- package/dist/esm/components/ModularTable/ModularTable.js +166 -0
- package/dist/esm/components/ModularTable/ModularTable.stories.d.ts +27 -0
- package/dist/esm/components/ModularTable/ModularTable.stories.js +335 -0
- package/dist/esm/components/ModularTable/ModularTable.test.d.ts +1 -0
- package/dist/esm/components/ModularTable/index.d.ts +2 -0
- package/dist/esm/components/ModularTable/index.js +1 -0
- package/dist/esm/components/MultiSelect/FadeInDown/FadeInDown.d.ts +10 -0
- package/dist/esm/components/MultiSelect/FadeInDown/FadeInDown.js +25 -0
- package/dist/esm/components/MultiSelect/FadeInDown/FadeInDown.scss +22 -0
- package/dist/esm/components/MultiSelect/FadeInDown/FadeInDown.test.d.ts +1 -0
- package/dist/esm/components/MultiSelect/FadeInDown/index.d.ts +1 -0
- package/dist/esm/components/MultiSelect/FadeInDown/index.js +1 -0
- package/dist/esm/components/MultiSelect/MultiSelect.d.ts +57 -0
- package/dist/esm/components/MultiSelect/MultiSelect.js +308 -0
- package/dist/esm/components/MultiSelect/MultiSelect.scss +151 -0
- package/dist/esm/components/MultiSelect/MultiSelect.stories.d.ts +8 -0
- package/dist/esm/components/MultiSelect/MultiSelect.stories.js +65 -0
- package/dist/esm/components/MultiSelect/MultiSelect.test.d.ts +1 -0
- package/dist/esm/components/MultiSelect/index.d.ts +1 -0
- package/dist/esm/components/MultiSelect/index.js +1 -0
- package/dist/esm/components/Navigation/Navigation.d.ts +66 -0
- package/dist/esm/components/Navigation/Navigation.js +215 -0
- package/dist/esm/components/Navigation/Navigation.stories.d.ts +43 -0
- package/dist/esm/components/Navigation/Navigation.stories.js +225 -0
- package/dist/esm/components/Navigation/Navigation.test.d.ts +1 -0
- package/dist/esm/components/Navigation/NavigationLink/NavigationLink.d.ts +10 -0
- package/dist/esm/components/Navigation/NavigationLink/NavigationLink.js +58 -0
- package/dist/esm/components/Navigation/NavigationLink/NavigationLink.test.d.ts +1 -0
- package/dist/esm/components/Navigation/NavigationLink/index.d.ts +1 -0
- package/dist/esm/components/Navigation/NavigationLink/index.js +1 -0
- package/dist/esm/components/Navigation/NavigationMenu/NavigationMenu.d.ts +11 -0
- package/dist/esm/components/Navigation/NavigationMenu/NavigationMenu.js +57 -0
- package/dist/esm/components/Navigation/NavigationMenu/NavigationMenu.test.d.ts +1 -0
- package/dist/esm/components/Navigation/NavigationMenu/index.d.ts +1 -0
- package/dist/esm/components/Navigation/NavigationMenu/index.js +1 -0
- package/dist/esm/components/Navigation/index.d.ts +3 -0
- package/dist/esm/components/Navigation/index.js +1 -0
- package/dist/esm/components/Navigation/types.d.ts +64 -0
- package/dist/esm/components/Navigation/types.js +1 -0
- package/dist/esm/components/Notification/Notification.d.ts +110 -0
- package/dist/esm/components/Notification/Notification.js +119 -0
- package/dist/esm/components/Notification/Notification.stories.d.ts +45 -0
- package/dist/esm/components/Notification/Notification.stories.js +194 -0
- package/dist/esm/components/Notification/Notification.test.d.ts +1 -0
- package/dist/esm/components/Notification/index.d.ts +2 -0
- package/dist/esm/components/Notification/index.js +1 -0
- package/dist/esm/components/NotificationProvider/NotificationProvider.d.ts +5 -0
- package/dist/esm/components/NotificationProvider/NotificationProvider.js +83 -0
- package/dist/esm/components/NotificationProvider/NotificationProvider.test.d.ts +1 -0
- package/dist/esm/components/NotificationProvider/index.d.ts +3 -0
- package/dist/esm/components/NotificationProvider/index.js +2 -0
- package/dist/esm/components/NotificationProvider/messageBuilder.d.ts +6 -0
- package/dist/esm/components/NotificationProvider/messageBuilder.js +31 -0
- package/dist/esm/components/NotificationProvider/types.d.ts +35 -0
- package/dist/esm/components/NotificationProvider/types.js +1 -0
- package/dist/esm/components/Pagination/Pagination.d.ts +102 -0
- package/dist/esm/components/Pagination/Pagination.js +173 -0
- package/dist/esm/components/Pagination/Pagination.stories.d.ts +14 -0
- package/dist/esm/components/Pagination/Pagination.stories.js +87 -0
- package/dist/esm/components/Pagination/Pagination.test.d.ts +1 -0
- package/dist/esm/components/Pagination/PaginationButton/PaginationButton.d.ts +30 -0
- package/dist/esm/components/Pagination/PaginationButton/PaginationButton.js +31 -0
- package/dist/esm/components/Pagination/PaginationButton/PaginationButton.test.d.ts +4 -0
- package/dist/esm/components/Pagination/PaginationButton/index.d.ts +2 -0
- package/dist/esm/components/Pagination/PaginationButton/index.js +1 -0
- package/dist/esm/components/Pagination/PaginationItem/PaginationItem.d.ts +17 -0
- package/dist/esm/components/Pagination/PaginationItem/PaginationItem.js +20 -0
- package/dist/esm/components/Pagination/PaginationItem/PaginationItem.test.d.ts +1 -0
- package/dist/esm/components/Pagination/PaginationItem/index.d.ts +2 -0
- package/dist/esm/components/Pagination/PaginationItem/index.js +1 -0
- package/dist/esm/components/Pagination/index.d.ts +2 -0
- package/dist/esm/components/Pagination/index.js +1 -0
- package/dist/esm/components/Panel/Panel.d.ts +123 -0
- package/dist/esm/components/Panel/Panel.js +89 -0
- package/dist/esm/components/Panel/Panel.stories.d.ts +17 -0
- package/dist/esm/components/Panel/Panel.stories.js +53 -0
- package/dist/esm/components/Panel/Panel.test.d.ts +1 -0
- package/dist/esm/components/Panel/index.d.ts +1 -0
- package/dist/esm/components/Panel/index.js +1 -0
- package/dist/esm/components/PasswordToggle/PasswordToggle.d.ts +108 -0
- package/dist/esm/components/PasswordToggle/PasswordToggle.js +90 -0
- package/dist/esm/components/PasswordToggle/PasswordToggle.stories.d.ts +12 -0
- package/dist/esm/components/PasswordToggle/PasswordToggle.stories.js +67 -0
- package/dist/esm/components/PasswordToggle/PasswordToggle.test.d.ts +1 -0
- package/dist/esm/components/PasswordToggle/index.d.ts +2 -0
- package/dist/esm/components/PasswordToggle/index.js +1 -0
- package/dist/esm/components/RadioInput/RadioInput.d.ts +9 -0
- package/dist/esm/components/RadioInput/RadioInput.js +22 -0
- package/dist/esm/components/RadioInput/RadioInput.stories.d.ts +10 -0
- package/dist/esm/components/RadioInput/RadioInput.stories.js +76 -0
- package/dist/esm/components/RadioInput/RadioInput.test.d.ts +1 -0
- package/dist/esm/components/RadioInput/index.d.ts +2 -0
- package/dist/esm/components/RadioInput/index.js +1 -0
- package/dist/esm/components/Row/Row.d.ts +19 -0
- package/dist/esm/components/Row/Row.js +22 -0
- package/dist/esm/components/Row/Row.stories.d.ts +9 -0
- package/dist/esm/components/Row/Row.stories.js +22 -0
- package/dist/esm/components/Row/Row.test.d.ts +1 -0
- package/dist/esm/components/Row/index.d.ts +2 -0
- package/dist/esm/components/Row/index.js +1 -0
- package/dist/esm/components/SearchAndFilter/FilterPanelSection/FilterPanelSection.d.ts +25 -0
- package/dist/esm/components/SearchAndFilter/FilterPanelSection/FilterPanelSection.js +107 -0
- package/dist/esm/components/SearchAndFilter/FilterPanelSection/FilterPanelSection.test.d.ts +1 -0
- package/dist/esm/components/SearchAndFilter/FilterPanelSection/index.d.ts +1 -0
- package/dist/esm/components/SearchAndFilter/FilterPanelSection/index.js +1 -0
- package/dist/esm/components/SearchAndFilter/SearchAndFilter.d.ts +33 -0
- package/dist/esm/components/SearchAndFilter/SearchAndFilter.js +286 -0
- package/dist/esm/components/SearchAndFilter/SearchAndFilter.stories.d.ts +8 -0
- package/dist/esm/components/SearchAndFilter/SearchAndFilter.stories.js +211 -0
- package/dist/esm/components/SearchAndFilter/SearchAndFilter.test.d.ts +1 -0
- package/dist/esm/components/SearchAndFilter/index.d.ts +2 -0
- package/dist/esm/components/SearchAndFilter/index.js +1 -0
- package/dist/esm/components/SearchAndFilter/types.d.ts +11 -0
- package/dist/esm/components/SearchAndFilter/types.js +1 -0
- package/dist/esm/components/SearchAndFilter/utils.d.ts +13 -0
- package/dist/esm/components/SearchAndFilter/utils.js +22 -0
- package/dist/esm/components/SearchBox/SearchBox.d.ts +63 -0
- package/dist/esm/components/SearchBox/SearchBox.js +95 -0
- package/dist/esm/components/SearchBox/SearchBox.stories.d.ts +14 -0
- package/dist/esm/components/SearchBox/SearchBox.stories.js +99 -0
- package/dist/esm/components/SearchBox/SearchBox.test.d.ts +1 -0
- package/dist/esm/components/SearchBox/index.d.ts +2 -0
- package/dist/esm/components/SearchBox/index.js +1 -0
- package/dist/esm/components/Select/Select.d.ts +71 -0
- package/dist/esm/components/Select/Select.js +84 -0
- package/dist/esm/components/Select/Select.stories.d.ts +7 -0
- package/dist/esm/components/Select/Select.stories.js +90 -0
- package/dist/esm/components/Select/Select.test.d.ts +1 -0
- package/dist/esm/components/Select/index.d.ts +2 -0
- package/dist/esm/components/Select/index.js +1 -0
- package/dist/esm/components/SideNavigation/SideNavigation.d.ts +50 -0
- package/dist/esm/components/SideNavigation/SideNavigation.js +89 -0
- package/dist/esm/components/SideNavigation/SideNavigation.stories.d.ts +14 -0
- package/dist/esm/components/SideNavigation/SideNavigation.stories.js +55 -0
- package/dist/esm/components/SideNavigation/SideNavigation.test.d.ts +1 -0
- package/dist/esm/components/SideNavigation/SideNavigationBase/SideNavigationBase.d.ts +31 -0
- package/dist/esm/components/SideNavigation/SideNavigationBase/SideNavigationBase.js +31 -0
- package/dist/esm/components/SideNavigation/SideNavigationBase/SideNavigationBase.test.d.ts +1 -0
- package/dist/esm/components/SideNavigation/SideNavigationBase/index.d.ts +1 -0
- package/dist/esm/components/SideNavigation/SideNavigationBase/index.js +1 -0
- package/dist/esm/components/SideNavigation/SideNavigationItem/SideNavigationItem.d.ts +20 -0
- package/dist/esm/components/SideNavigation/SideNavigationItem/SideNavigationItem.js +32 -0
- package/dist/esm/components/SideNavigation/SideNavigationItem/SideNavigationItem.stories.d.ts +22 -0
- package/dist/esm/components/SideNavigation/SideNavigationItem/SideNavigationItem.stories.js +63 -0
- package/dist/esm/components/SideNavigation/SideNavigationItem/SideNavigationItem.test.d.ts +1 -0
- package/dist/esm/components/SideNavigation/SideNavigationItem/index.d.ts +1 -0
- package/dist/esm/components/SideNavigation/SideNavigationItem/index.js +1 -0
- package/dist/esm/components/SideNavigation/SideNavigationLink/SideNavigationLink.d.ts +18 -0
- package/dist/esm/components/SideNavigation/SideNavigationLink/SideNavigationLink.js +25 -0
- package/dist/esm/components/SideNavigation/SideNavigationLink/SideNavigationLink.stories.d.ts +7 -0
- package/dist/esm/components/SideNavigation/SideNavigationLink/SideNavigationLink.stories.js +25 -0
- package/dist/esm/components/SideNavigation/SideNavigationLink/SideNavigationLink.test.d.ts +1 -0
- package/dist/esm/components/SideNavigation/SideNavigationLink/index.d.ts +1 -0
- package/dist/esm/components/SideNavigation/SideNavigationLink/index.js +1 -0
- package/dist/esm/components/SideNavigation/SideNavigationText/SideNavigationText.d.ts +7 -0
- package/dist/esm/components/SideNavigation/SideNavigationText/SideNavigationText.js +20 -0
- package/dist/esm/components/SideNavigation/SideNavigationText/SideNavigationText.stories.d.ts +6 -0
- package/dist/esm/components/SideNavigation/SideNavigationText/SideNavigationText.stories.js +18 -0
- package/dist/esm/components/SideNavigation/SideNavigationText/SideNavigationText.test.d.ts +1 -0
- package/dist/esm/components/SideNavigation/SideNavigationText/index.d.ts +1 -0
- package/dist/esm/components/SideNavigation/SideNavigationText/index.js +1 -0
- package/dist/esm/components/SideNavigation/index.d.ts +5 -0
- package/dist/esm/components/SideNavigation/index.js +4 -0
- package/dist/esm/components/SkipLink/SkipLink.d.ts +12 -0
- package/dist/esm/components/SkipLink/SkipLink.js +18 -0
- package/dist/esm/components/SkipLink/SkipLink.stories.d.ts +6 -0
- package/dist/esm/components/SkipLink/SkipLink.stories.js +11 -0
- package/dist/esm/components/SkipLink/SkipLink.test.d.ts +1 -0
- package/dist/esm/components/SkipLink/index.d.ts +2 -0
- package/dist/esm/components/SkipLink/index.js +1 -0
- package/dist/esm/components/Slider/Slider.d.ts +62 -0
- package/dist/esm/components/Slider/Slider.js +83 -0
- package/dist/esm/components/Slider/Slider.stories.d.ts +10 -0
- package/dist/esm/components/Slider/Slider.stories.js +66 -0
- package/dist/esm/components/Slider/Slider.test.d.ts +1 -0
- package/dist/esm/components/Slider/index.d.ts +2 -0
- package/dist/esm/components/Slider/index.js +1 -0
- package/dist/esm/components/Spinner/Spinner.d.ts +29 -0
- package/dist/esm/components/Spinner/Spinner.js +36 -0
- package/dist/esm/components/Spinner/Spinner.stories.d.ts +8 -0
- package/dist/esm/components/Spinner/Spinner.stories.js +21 -0
- package/dist/esm/components/Spinner/Spinner.test.d.ts +1 -0
- package/dist/esm/components/Spinner/index.d.ts +2 -0
- package/dist/esm/components/Spinner/index.js +1 -0
- package/dist/esm/components/StatusLabel/StatusLabel.d.ts +33 -0
- package/dist/esm/components/StatusLabel/StatusLabel.js +36 -0
- package/dist/esm/components/StatusLabel/StatusLabel.stories.d.ts +10 -0
- package/dist/esm/components/StatusLabel/StatusLabel.stories.js +52 -0
- package/dist/esm/components/StatusLabel/StatusLabel.test.d.ts +1 -0
- package/dist/esm/components/StatusLabel/index.d.ts +2 -0
- package/dist/esm/components/StatusLabel/index.js +1 -0
- package/dist/esm/components/Stepper/Step/Step.d.ts +47 -0
- package/dist/esm/components/Stepper/Step/Step.js +61 -0
- package/dist/esm/components/Stepper/Step/Step.scss +113 -0
- package/dist/esm/components/Stepper/Step/Step.stories.d.ts +6 -0
- package/dist/esm/components/Stepper/Step/Step.stories.js +26 -0
- package/dist/esm/components/Stepper/Step/Step.test.d.ts +1 -0
- package/dist/esm/components/Stepper/Step/index.d.ts +2 -0
- package/dist/esm/components/Stepper/Step/index.js +1 -0
- package/dist/esm/components/Stepper/Stepper.d.ts +17 -0
- package/dist/esm/components/Stepper/Stepper.js +27 -0
- package/dist/esm/components/Stepper/Stepper.stories.d.ts +11 -0
- package/dist/esm/components/Stepper/Stepper.stories.js +282 -0
- package/dist/esm/components/Stepper/Stepper.test.d.ts +1 -0
- package/dist/esm/components/Stepper/index.d.ts +2 -0
- package/dist/esm/components/Stepper/index.js +2 -0
- package/dist/esm/components/Strip/Strip.d.ts +64 -0
- package/dist/esm/components/Strip/Strip.js +50 -0
- package/dist/esm/components/Strip/Strip.stories.d.ts +12 -0
- package/dist/esm/components/Strip/Strip.stories.js +123 -0
- package/dist/esm/components/Strip/Strip.test.d.ts +1 -0
- package/dist/esm/components/Strip/index.d.ts +2 -0
- package/dist/esm/components/Strip/index.js +1 -0
- package/dist/esm/components/SummaryButton/SummaryButton.d.ts +29 -0
- package/dist/esm/components/SummaryButton/SummaryButton.js +28 -0
- package/dist/esm/components/SummaryButton/SummaryButton.stories.d.ts +18 -0
- package/dist/esm/components/SummaryButton/SummaryButton.stories.js +52 -0
- package/dist/esm/components/SummaryButton/SummaryButton.test.d.ts +1 -0
- package/dist/esm/components/SummaryButton/index.d.ts +2 -0
- package/dist/esm/components/SummaryButton/index.js +1 -0
- package/dist/esm/components/Switch/Switch.d.ts +17 -0
- package/dist/esm/components/Switch/Switch.js +28 -0
- package/dist/esm/components/Switch/Switch.stories.d.ts +7 -0
- package/dist/esm/components/Switch/Switch.stories.js +19 -0
- package/dist/esm/components/Switch/Switch.test.d.ts +1 -0
- package/dist/esm/components/Switch/index.d.ts +2 -0
- package/dist/esm/components/Switch/index.js +1 -0
- package/dist/esm/components/Table/Table.d.ts +22 -0
- package/dist/esm/components/Table/Table.js +23 -0
- package/dist/esm/components/Table/Table.test.d.ts +1 -0
- package/dist/esm/components/Table/index.d.ts +2 -0
- package/dist/esm/components/Table/index.js +1 -0
- package/dist/esm/components/TableCell/TableCell.d.ts +26 -0
- package/dist/esm/components/TableCell/TableCell.js +26 -0
- package/dist/esm/components/TableCell/TableCell.test.d.ts +1 -0
- package/dist/esm/components/TableCell/index.d.ts +2 -0
- package/dist/esm/components/TableCell/index.js +1 -0
- package/dist/esm/components/TableHeader/TableHeader.d.ts +14 -0
- package/dist/esm/components/TableHeader/TableHeader.js +17 -0
- package/dist/esm/components/TableHeader/TableHeader.test.d.ts +1 -0
- package/dist/esm/components/TableHeader/index.d.ts +2 -0
- package/dist/esm/components/TableHeader/index.js +1 -0
- package/dist/esm/components/TablePagination/TablePagination.d.ts +98 -0
- package/dist/esm/components/TablePagination/TablePagination.js +104 -0
- package/dist/esm/components/TablePagination/TablePagination.scss +48 -0
- package/dist/esm/components/TablePagination/TablePagination.stories.d.ts +14 -0
- package/dist/esm/components/TablePagination/TablePagination.stories.js +323 -0
- package/dist/esm/components/TablePagination/TablePagination.test.d.ts +1 -0
- package/dist/esm/components/TablePagination/TablePaginationControls/TablePaginationControls.d.ts +24 -0
- package/dist/esm/components/TablePagination/TablePaginationControls/TablePaginationControls.js +120 -0
- package/dist/esm/components/TablePagination/TablePaginationControls/TablePaginationControls.test.d.ts +1 -0
- package/dist/esm/components/TablePagination/TablePaginationControls/index.d.ts +2 -0
- package/dist/esm/components/TablePagination/TablePaginationControls/index.js +1 -0
- package/dist/esm/components/TablePagination/index.d.ts +2 -0
- package/dist/esm/components/TablePagination/index.js +1 -0
- package/dist/esm/components/TablePagination/utils.d.ts +27 -0
- package/dist/esm/components/TablePagination/utils.js +67 -0
- package/dist/esm/components/TableRow/TableRow.d.ts +10 -0
- package/dist/esm/components/TableRow/TableRow.js +15 -0
- package/dist/esm/components/TableRow/TableRow.test.d.ts +1 -0
- package/dist/esm/components/TableRow/index.d.ts +2 -0
- package/dist/esm/components/TableRow/index.js +1 -0
- package/dist/esm/components/Tabs/Tabs.d.ts +45 -0
- package/dist/esm/components/Tabs/Tabs.js +42 -0
- package/dist/esm/components/Tabs/Tabs.stories.d.ts +11 -0
- package/dist/esm/components/Tabs/Tabs.stories.js +49 -0
- package/dist/esm/components/Tabs/Tabs.test.d.ts +1 -0
- package/dist/esm/components/Tabs/index.d.ts +2 -0
- package/dist/esm/components/Tabs/index.js +1 -0
- package/dist/esm/components/Textarea/Textarea.d.ts +70 -0
- package/dist/esm/components/Textarea/Textarea.js +115 -0
- package/dist/esm/components/Textarea/Textarea.stories.d.ts +7 -0
- package/dist/esm/components/Textarea/Textarea.stories.js +55 -0
- package/dist/esm/components/Textarea/Textarea.test.d.ts +1 -0
- package/dist/esm/components/Textarea/index.d.ts +2 -0
- package/dist/esm/components/Textarea/index.js +1 -0
- package/dist/esm/components/Tooltip/Tooltip.d.ts +75 -0
- package/dist/esm/components/Tooltip/Tooltip.js +245 -0
- package/dist/esm/components/Tooltip/Tooltip.stories.d.ts +12 -0
- package/dist/esm/components/Tooltip/Tooltip.stories.js +62 -0
- package/dist/esm/components/Tooltip/Tooltip.test.d.ts +1 -0
- package/dist/esm/components/Tooltip/index.d.ts +2 -0
- package/dist/esm/components/Tooltip/index.js +1 -0
- package/dist/esm/enums.d.ts +13 -0
- package/dist/esm/enums.js +8 -0
- package/dist/esm/hooks/index.d.ts +9 -0
- package/dist/esm/hooks/index.js +8 -0
- package/dist/esm/hooks/useId.d.ts +4 -0
- package/dist/esm/hooks/useId.js +13 -0
- package/dist/esm/hooks/useListener.d.ts +11 -0
- package/dist/esm/hooks/useListener.js +51 -0
- package/dist/esm/hooks/useListener.test.d.ts +1 -0
- package/dist/esm/hooks/useOnClickOutside.d.ts +12 -0
- package/dist/esm/hooks/useOnClickOutside.js +38 -0
- package/dist/esm/hooks/useOnClickOutside.test.d.ts +1 -0
- package/dist/esm/hooks/useOnEscapePressed.d.ts +6 -0
- package/dist/esm/hooks/useOnEscapePressed.js +25 -0
- package/dist/esm/hooks/useOnEscapePressed.test.d.ts +1 -0
- package/dist/esm/hooks/usePagination.d.ts +19 -0
- package/dist/esm/hooks/usePagination.js +45 -0
- package/dist/esm/hooks/usePagination.test.d.ts +1 -0
- package/dist/esm/hooks/usePrevious.d.ts +7 -0
- package/dist/esm/hooks/usePrevious.js +16 -0
- package/dist/esm/hooks/usePrevious.test.d.ts +1 -0
- package/dist/esm/hooks/useThrottle.d.ts +9 -0
- package/dist/esm/hooks/useThrottle.js +49 -0
- package/dist/esm/hooks/useThrottle.test.d.ts +1 -0
- package/dist/esm/hooks/useWindowFitment.d.ts +54 -0
- package/dist/esm/hooks/useWindowFitment.js +109 -0
- package/dist/esm/hooks/useWindowFitment.test.d.ts +1 -0
- package/dist/esm/index.d.ts +138 -0
- package/dist/esm/index.js +72 -0
- package/dist/esm/index.test.d.ts +1 -0
- package/dist/esm/setupTests.js +1 -0
- package/dist/esm/testing/mock-scss.js +2 -0
- package/dist/esm/types/index.d.ts +38 -0
- package/dist/esm/types/index.js +1 -0
- package/dist/esm/types/react-table-config.d.js +1 -0
- package/dist/esm/utils.d.ts +27 -0
- package/dist/esm/utils.js +41 -0
- package/dist/esm/utils.test.d.ts +1 -0
- package/dist/hooks/useListener.test.d.ts +1 -0
- package/dist/hooks/useOnClickOutside.test.d.ts +1 -0
- package/dist/hooks/useOnEscapePressed.test.d.ts +1 -0
- package/dist/hooks/usePagination.test.d.ts +1 -0
- package/dist/hooks/usePrevious.test.d.ts +1 -0
- package/dist/hooks/useThrottle.test.d.ts +1 -0
- package/dist/hooks/useWindowFitment.test.d.ts +1 -0
- package/dist/index.test.d.ts +1 -0
- package/dist/utils.test.d.ts +1 -0
- package/package.json +7 -7
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { useCallback, useEffect, useRef } from "react";
|
|
2
|
+
export var THROTTLE_DELAY = 1000 / 60;
|
|
3
|
+
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* A hook to handle throttling calls to a function.
|
|
7
|
+
* @param callback The function to throttle.
|
|
8
|
+
* @param delay The throttle delay in ms.
|
|
9
|
+
* @return The callback function wrapped in the throttle.
|
|
10
|
+
*/
|
|
11
|
+
export var useThrottle = function useThrottle(callback) {
|
|
12
|
+
var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : THROTTLE_DELAY;
|
|
13
|
+
var timeout = useRef();
|
|
14
|
+
var lastCall = useRef();
|
|
15
|
+
var lastArgs = useRef(null);
|
|
16
|
+
var throttle = useCallback(function () {
|
|
17
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
18
|
+
args[_key] = arguments[_key];
|
|
19
|
+
}
|
|
20
|
+
lastArgs.current = args;
|
|
21
|
+
var callCallback = () => {
|
|
22
|
+
callback(...lastArgs.current);
|
|
23
|
+
lastCall.current = Date.now();
|
|
24
|
+
timeout.current = null;
|
|
25
|
+
};
|
|
26
|
+
var createTimeout = () => {
|
|
27
|
+
timeout.current = window.setTimeout(() => {
|
|
28
|
+
callCallback();
|
|
29
|
+
timeout.current = null;
|
|
30
|
+
}, delay);
|
|
31
|
+
};
|
|
32
|
+
if (!lastCall.current) {
|
|
33
|
+
// Initially call the callback and start a timeout for the next call.
|
|
34
|
+
callCallback();
|
|
35
|
+
createTimeout();
|
|
36
|
+
} else if (!timeout.current && Date.now() - lastCall.current > delay) {
|
|
37
|
+
// If a timeout isn't active then create a new one if the delay time
|
|
38
|
+
// has elapsed.
|
|
39
|
+
createTimeout();
|
|
40
|
+
}
|
|
41
|
+
}, [callback, delay]);
|
|
42
|
+
useEffect(() => () => {
|
|
43
|
+
// Clear the timeout when unmounting.
|
|
44
|
+
if (timeout.current) {
|
|
45
|
+
clearTimeout(timeout.current);
|
|
46
|
+
}
|
|
47
|
+
}, []);
|
|
48
|
+
return throttle;
|
|
49
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export type WindowFitment = {
|
|
2
|
+
fromTop: {
|
|
3
|
+
fitsAbove: boolean;
|
|
4
|
+
fitsBelow: boolean;
|
|
5
|
+
spaceAbove: number;
|
|
6
|
+
spaceBelow: number;
|
|
7
|
+
};
|
|
8
|
+
fromBottom: {
|
|
9
|
+
fitsAbove: boolean;
|
|
10
|
+
fitsBelow: boolean;
|
|
11
|
+
spaceAbove: number;
|
|
12
|
+
spaceBelow: number;
|
|
13
|
+
};
|
|
14
|
+
fromLeft: {
|
|
15
|
+
fitsLeft: boolean;
|
|
16
|
+
fitsRight: boolean;
|
|
17
|
+
spaceLeft: number;
|
|
18
|
+
spaceRight: number;
|
|
19
|
+
};
|
|
20
|
+
fromRight: {
|
|
21
|
+
fitsLeft: boolean;
|
|
22
|
+
fitsRight: boolean;
|
|
23
|
+
spaceLeft: number;
|
|
24
|
+
spaceRight: number;
|
|
25
|
+
};
|
|
26
|
+
fromCenter: {
|
|
27
|
+
fitsLeft: boolean;
|
|
28
|
+
fitsRight: boolean;
|
|
29
|
+
fitsAbove: boolean;
|
|
30
|
+
fitsBelow: boolean;
|
|
31
|
+
spaceLeft: number;
|
|
32
|
+
spaceRight: number;
|
|
33
|
+
spaceAbove: number;
|
|
34
|
+
spaceBelow: number;
|
|
35
|
+
fitsCentered: {
|
|
36
|
+
fitsAbove: boolean;
|
|
37
|
+
fitsBelow: boolean;
|
|
38
|
+
fitsLeft: boolean;
|
|
39
|
+
fitsRight: boolean;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* A hook to determine if an element fits on the window.
|
|
45
|
+
* @param targetNode The element to try and fit on the window.
|
|
46
|
+
* @param referenceNode The element to use to position the target.
|
|
47
|
+
* @param callback The function to call when updating fitment info.
|
|
48
|
+
* @param spacer An additional space to leave between the target and reference.
|
|
49
|
+
* @param shouldCheck Whether the fitment info should be being checked.
|
|
50
|
+
* @param fromMouse Whether the target should be being positioned in relation
|
|
51
|
+
* to the mouse. In this case refernceNode will be used to
|
|
52
|
+
* listen for mouseover events.
|
|
53
|
+
*/
|
|
54
|
+
export declare const useWindowFitment: (targetNode: HTMLElement, referenceNode: HTMLElement, callback: (fitsWindow: WindowFitment) => void, spacer?: number, shouldCheck?: boolean, fromMouse?: boolean) => void;
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { useCallback, useEffect, useRef } from "react";
|
|
2
|
+
import { useListener } from "./useListener";
|
|
3
|
+
/**
|
|
4
|
+
* A hook to determine if an element fits on the window.
|
|
5
|
+
* @param targetNode The element to try and fit on the window.
|
|
6
|
+
* @param referenceNode The element to use to position the target.
|
|
7
|
+
* @param callback The function to call when updating fitment info.
|
|
8
|
+
* @param spacer An additional space to leave between the target and reference.
|
|
9
|
+
* @param shouldCheck Whether the fitment info should be being checked.
|
|
10
|
+
* @param fromMouse Whether the target should be being positioned in relation
|
|
11
|
+
* to the mouse. In this case refernceNode will be used to
|
|
12
|
+
* listen for mouseover events.
|
|
13
|
+
*/
|
|
14
|
+
export var useWindowFitment = function useWindowFitment(targetNode, referenceNode, callback) {
|
|
15
|
+
var spacer = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
|
|
16
|
+
var shouldCheck = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true;
|
|
17
|
+
var fromMouse = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : false;
|
|
18
|
+
var htmlRef = useRef(document.querySelector("html"));
|
|
19
|
+
var update = useCallback(evt => {
|
|
20
|
+
var referenceCoordinates;
|
|
21
|
+
if (fromMouse) {
|
|
22
|
+
if (evt) {
|
|
23
|
+
referenceCoordinates = {
|
|
24
|
+
// The mouse is a single point so use 0 for the height and width.
|
|
25
|
+
height: 0,
|
|
26
|
+
left: evt.x || 0,
|
|
27
|
+
top: evt.y || 0,
|
|
28
|
+
width: 0
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
} else if (referenceNode) {
|
|
32
|
+
referenceCoordinates = referenceNode.getBoundingClientRect();
|
|
33
|
+
}
|
|
34
|
+
if (shouldCheck && targetNode && referenceCoordinates) {
|
|
35
|
+
var {
|
|
36
|
+
height: targetHeight,
|
|
37
|
+
width: targetWidth
|
|
38
|
+
} = targetNode.getBoundingClientRect();
|
|
39
|
+
var {
|
|
40
|
+
height: referenceHeight,
|
|
41
|
+
left: referenceLeft,
|
|
42
|
+
top: referenceTop,
|
|
43
|
+
width: referenceWidth
|
|
44
|
+
} = referenceCoordinates;
|
|
45
|
+
var referenceBottom = referenceTop + referenceHeight;
|
|
46
|
+
var referenceRight = referenceLeft + referenceWidth;
|
|
47
|
+
var referenceCenterX = referenceLeft + referenceWidth / 2;
|
|
48
|
+
var referenceCenterY = referenceTop + referenceHeight / 2;
|
|
49
|
+
var windowLeft = htmlRef.current.scrollLeft;
|
|
50
|
+
var windowRight = window.innerWidth - htmlRef.current.scrollLeft;
|
|
51
|
+
var windowTop = 0;
|
|
52
|
+
var windowBottom = window.innerHeight;
|
|
53
|
+
var heightIncludingSpace = targetHeight + spacer;
|
|
54
|
+
var widthIncludingSpace = targetWidth + spacer;
|
|
55
|
+
var widthFromCenter = targetWidth / 2;
|
|
56
|
+
var heightFromCenter = targetHeight / 2;
|
|
57
|
+
callback({
|
|
58
|
+
fromTop: {
|
|
59
|
+
fitsAbove: referenceTop - heightIncludingSpace > windowTop,
|
|
60
|
+
fitsBelow: referenceTop + heightIncludingSpace < windowBottom,
|
|
61
|
+
spaceAbove: Math.abs(windowTop - referenceTop),
|
|
62
|
+
spaceBelow: windowBottom - referenceTop
|
|
63
|
+
},
|
|
64
|
+
fromBottom: {
|
|
65
|
+
fitsAbove: referenceBottom - heightIncludingSpace > windowTop,
|
|
66
|
+
fitsBelow: referenceBottom + heightIncludingSpace < windowBottom,
|
|
67
|
+
spaceAbove: Math.abs(windowTop - referenceBottom),
|
|
68
|
+
spaceBelow: windowBottom - referenceBottom
|
|
69
|
+
},
|
|
70
|
+
fromLeft: {
|
|
71
|
+
fitsLeft: referenceLeft - widthIncludingSpace > windowLeft,
|
|
72
|
+
fitsRight: referenceLeft + widthIncludingSpace < windowRight,
|
|
73
|
+
spaceLeft: Math.abs(windowLeft - referenceLeft),
|
|
74
|
+
spaceRight: windowRight - referenceLeft
|
|
75
|
+
},
|
|
76
|
+
fromRight: {
|
|
77
|
+
fitsLeft: referenceRight - widthIncludingSpace > windowLeft,
|
|
78
|
+
fitsRight: referenceRight + widthIncludingSpace < windowRight,
|
|
79
|
+
spaceLeft: Math.abs(windowLeft - referenceRight),
|
|
80
|
+
spaceRight: windowRight - referenceRight
|
|
81
|
+
},
|
|
82
|
+
fromCenter: {
|
|
83
|
+
fitsLeft: referenceCenterX - widthIncludingSpace > windowLeft,
|
|
84
|
+
fitsRight: referenceCenterX + widthIncludingSpace < windowRight,
|
|
85
|
+
fitsAbove: referenceCenterY - heightIncludingSpace > windowTop,
|
|
86
|
+
fitsBelow: referenceCenterY + heightIncludingSpace < windowBottom,
|
|
87
|
+
spaceAbove: Math.abs(windowTop - referenceCenterY),
|
|
88
|
+
spaceBelow: windowBottom - referenceCenterY,
|
|
89
|
+
spaceLeft: Math.abs(windowLeft - referenceCenterX),
|
|
90
|
+
spaceRight: windowRight - referenceCenterX,
|
|
91
|
+
fitsCentered: {
|
|
92
|
+
fitsLeft: referenceCenterX - widthFromCenter > windowLeft,
|
|
93
|
+
fitsRight: referenceCenterX + widthFromCenter < windowRight,
|
|
94
|
+
fitsAbove: referenceCenterY - heightFromCenter > windowTop,
|
|
95
|
+
fitsBelow: referenceCenterY + heightFromCenter < windowBottom
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
}, [shouldCheck, targetNode, callback, spacer, fromMouse, referenceNode]);
|
|
101
|
+
useListener(window, update, "resize", true, shouldCheck && !fromMouse);
|
|
102
|
+
useListener(window, update, "scroll", true, shouldCheck && !fromMouse);
|
|
103
|
+
useListener(referenceNode, update, "mousemove", true, fromMouse && shouldCheck);
|
|
104
|
+
useEffect(() => {
|
|
105
|
+
if (!fromMouse) {
|
|
106
|
+
update();
|
|
107
|
+
}
|
|
108
|
+
}, [fromMouse, update]);
|
|
109
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
export { default as Accordion } from "./components/Accordion";
|
|
2
|
+
export { default as ActionButton } from "./components/ActionButton";
|
|
3
|
+
export { default as ArticlePagination } from "./components/ArticlePagination";
|
|
4
|
+
export { default as ApplicationLayout } from "./components/ApplicationLayout";
|
|
5
|
+
export { default as AppAside } from "./components/ApplicationLayout/AppAside";
|
|
6
|
+
export { default as Application } from "./components/ApplicationLayout/Application";
|
|
7
|
+
export { default as AppMain } from "./components/ApplicationLayout/AppMain";
|
|
8
|
+
export { default as AppNavigation } from "./components/ApplicationLayout/AppNavigation";
|
|
9
|
+
export { default as AppNavigationBar } from "./components/ApplicationLayout/AppNavigationBar";
|
|
10
|
+
export { default as AppStatus } from "./components/ApplicationLayout/AppStatus";
|
|
11
|
+
export { default as Badge } from "./components/Badge";
|
|
12
|
+
export { default as Button, ButtonAppearance } from "./components/Button";
|
|
13
|
+
export { default as Card } from "./components/Card";
|
|
14
|
+
export { default as CheckboxInput } from "./components/CheckboxInput";
|
|
15
|
+
export { default as Chip } from "./components/Chip";
|
|
16
|
+
export { default as Code } from "./components/Code";
|
|
17
|
+
export { default as CodeSnippet, CodeSnippetBlockAppearance, } from "./components/CodeSnippet";
|
|
18
|
+
export { default as Col } from "./components/Col";
|
|
19
|
+
export { default as ConfirmationButton } from "./components/ConfirmationButton";
|
|
20
|
+
export { default as ConfirmationModal } from "./components/ConfirmationModal";
|
|
21
|
+
export { default as ContextualMenu } from "./components/ContextualMenu";
|
|
22
|
+
export { default as DoughnutChart } from "./components/DoughnutChart";
|
|
23
|
+
export { default as EmptyState } from "./components/EmptyState";
|
|
24
|
+
export { default as Field } from "./components/Field";
|
|
25
|
+
export { default as Form } from "./components/Form";
|
|
26
|
+
export { default as FormikField } from "./components/FormikField";
|
|
27
|
+
export { default as Icon, ICONS } from "./components/Icon";
|
|
28
|
+
export { default as Input } from "./components/Input";
|
|
29
|
+
export { default as Label } from "./components/Label";
|
|
30
|
+
export { default as Link } from "./components/Link";
|
|
31
|
+
export { default as List } from "./components/List";
|
|
32
|
+
export { default as Loader } from "./components/Loader";
|
|
33
|
+
export { default as MainTable } from "./components/MainTable";
|
|
34
|
+
export { default as ModularTable } from "./components/ModularTable";
|
|
35
|
+
export { default as Navigation } from "./components/Navigation";
|
|
36
|
+
export { default as Modal } from "./components/Modal";
|
|
37
|
+
export * from "./components/MultiSelect";
|
|
38
|
+
export { default as Notification, NotificationSeverity, } from "./components/Notification";
|
|
39
|
+
export { NotificationConsumer, NotificationProvider, useNotify, info, success, failure, queue, } from "./components/NotificationProvider";
|
|
40
|
+
export { default as LoginPageLayout } from "./components/LoginPageLayout";
|
|
41
|
+
export { default as Pagination } from "./components/Pagination";
|
|
42
|
+
export { default as Panel } from "./components/Panel";
|
|
43
|
+
export { default as PasswordToggle } from "./components/PasswordToggle";
|
|
44
|
+
export { default as RadioInput } from "./components/RadioInput";
|
|
45
|
+
export { default as Row } from "./components/Row";
|
|
46
|
+
export { default as SearchAndFilter } from "./components/SearchAndFilter";
|
|
47
|
+
export { default as SearchBox } from "./components/SearchBox";
|
|
48
|
+
export { default as Select } from "./components/Select";
|
|
49
|
+
export { default as SideNavigation } from "./components/SideNavigation";
|
|
50
|
+
export { default as SideNavigationItem } from "./components/SideNavigation/SideNavigationItem";
|
|
51
|
+
export { default as SideNavigationLink } from "./components/SideNavigation/SideNavigationLink";
|
|
52
|
+
export { default as SideNavigationText } from "./components/SideNavigation/SideNavigationText";
|
|
53
|
+
export { default as SkipLink } from "./components/SkipLink";
|
|
54
|
+
export { default as Slider } from "./components/Slider";
|
|
55
|
+
export { default as Switch } from "./components/Switch";
|
|
56
|
+
export { default as Spinner } from "./components/Spinner";
|
|
57
|
+
export { default as StatusLabel, StatusLabelAppearance, } from "./components/StatusLabel";
|
|
58
|
+
export { default as Stepper, Step } from "./components/Stepper";
|
|
59
|
+
export { default as Strip } from "./components/Strip";
|
|
60
|
+
export { default as SummaryButton } from "./components/SummaryButton";
|
|
61
|
+
export { default as Table } from "./components/Table";
|
|
62
|
+
export { default as TableCell } from "./components/TableCell";
|
|
63
|
+
export { default as TableHeader } from "./components/TableHeader";
|
|
64
|
+
export { default as TableRow } from "./components/TableRow";
|
|
65
|
+
export { default as Tabs } from "./components/Tabs";
|
|
66
|
+
export { default as Textarea } from "./components/Textarea";
|
|
67
|
+
export { default as Tooltip } from "./components/Tooltip";
|
|
68
|
+
export { default as TablePagination } from "./components/TablePagination";
|
|
69
|
+
export { default as TablePaginationControls } from "./components/TablePagination/TablePaginationControls";
|
|
70
|
+
export type { AccordionProps } from "./components/Accordion";
|
|
71
|
+
export type { ActionButtonProps } from "./components/ActionButton";
|
|
72
|
+
export type { ArticlePaginationProps } from "./components/ArticlePagination";
|
|
73
|
+
export type { ApplicationLayoutProps } from "./components/ApplicationLayout";
|
|
74
|
+
export type { AppAsideProps } from "./components/ApplicationLayout/AppAside";
|
|
75
|
+
export type { ApplicationProps } from "./components/ApplicationLayout/Application";
|
|
76
|
+
export type { AppMainProps } from "./components/ApplicationLayout/AppMain";
|
|
77
|
+
export type { AppNavigationProps } from "./components/ApplicationLayout/AppNavigation";
|
|
78
|
+
export type { AppNavigationBarProps } from "./components/ApplicationLayout/AppNavigationBar";
|
|
79
|
+
export type { AppStatusProps } from "./components/ApplicationLayout/AppStatus";
|
|
80
|
+
export type { BadgeProps } from "./components/Badge";
|
|
81
|
+
export type { ButtonProps } from "./components/Button";
|
|
82
|
+
export type { CardProps } from "./components/Card";
|
|
83
|
+
export type { CheckboxInputProps } from "./components/CheckboxInput";
|
|
84
|
+
export type { ChipProps } from "./components/Chip";
|
|
85
|
+
export type { CodeProps } from "./components/Code";
|
|
86
|
+
export type { CodeSnippetProps, CodeSnippetBlockProps, CodeSnippetDropdownProps, } from "./components/CodeSnippet";
|
|
87
|
+
export type { ColProps, ColSize } from "./components/Col";
|
|
88
|
+
export type { ConfirmationButtonProps } from "./components/ConfirmationButton";
|
|
89
|
+
export type { ConfirmationModalProps } from "./components/ConfirmationModal";
|
|
90
|
+
export type { ContextualMenuProps, ContextualMenuDropdownProps, MenuLink, Position, } from "./components/ContextualMenu";
|
|
91
|
+
export type { DoughnutChartProps, Segment } from "./components/DoughnutChart";
|
|
92
|
+
export type { EmptyStateProps } from "./components/EmptyState";
|
|
93
|
+
export type { FieldProps } from "./components/Field";
|
|
94
|
+
export type { FormProps } from "./components/Form";
|
|
95
|
+
export type { FormikFieldProps } from "./components/FormikField";
|
|
96
|
+
export type { IconProps } from "./components/Icon";
|
|
97
|
+
export type { InputProps } from "./components/Input";
|
|
98
|
+
export type { LabelProps } from "./components/Label";
|
|
99
|
+
export type { LinkProps } from "./components/Link";
|
|
100
|
+
export type { ListProps } from "./components/List";
|
|
101
|
+
export type { MainTableProps } from "./components/MainTable";
|
|
102
|
+
export type { ModularTableProps } from "./components/ModularTable";
|
|
103
|
+
export type { ModalProps } from "./components/Modal";
|
|
104
|
+
export type { GenerateLink, LogoProps, NavigationProps, NavItem, NavLink, NavLinkAnchor, NavLinkBase, NavLinkButton, } from "./components/Navigation";
|
|
105
|
+
export type { NotificationProps } from "./components/Notification";
|
|
106
|
+
export type { NotificationAction, NotificationType, QueuedNotification, NotificationHelper, } from "./components/NotificationProvider";
|
|
107
|
+
export type { LoginPageLayoutProps } from "./components/LoginPageLayout";
|
|
108
|
+
export type { PaginationProps } from "./components/Pagination";
|
|
109
|
+
export type { PanelProps } from "./components/Panel";
|
|
110
|
+
export type { RadioInputProps } from "./components/RadioInput";
|
|
111
|
+
export type { RowProps } from "./components/Row";
|
|
112
|
+
export type { SearchAndFilterProps } from "./components/SearchAndFilter";
|
|
113
|
+
export type { SearchBoxProps } from "./components/SearchBox";
|
|
114
|
+
export type { SelectProps } from "./components/Select";
|
|
115
|
+
export type { SideNavigationProps } from "./components/SideNavigation";
|
|
116
|
+
export type { SideNavigationItemProps } from "./components/SideNavigation/SideNavigationItem";
|
|
117
|
+
export type { SideNavigationLinkProps } from "./components/SideNavigation/SideNavigationLink";
|
|
118
|
+
export type { SideNavigationTextProps } from "./components/SideNavigation/SideNavigationText";
|
|
119
|
+
export type { SkipLinkProps } from "./components/SkipLink";
|
|
120
|
+
export type { SliderProps } from "./components/Slider";
|
|
121
|
+
export type { SpinnerProps } from "./components/Spinner";
|
|
122
|
+
export type { StatusLabelProps } from "./components/StatusLabel";
|
|
123
|
+
export type { StepperProps, StepProps } from "./components/Stepper";
|
|
124
|
+
export type { StripProps } from "./components/Strip";
|
|
125
|
+
export type { SummaryButtonProps } from "./components/SummaryButton";
|
|
126
|
+
export type { TableProps } from "./components/Table";
|
|
127
|
+
export type { TableCellProps } from "./components/TableCell";
|
|
128
|
+
export type { TableHeaderProps } from "./components/TableHeader";
|
|
129
|
+
export type { TableRowProps } from "./components/TableRow";
|
|
130
|
+
export type { TabsProps } from "./components/Tabs";
|
|
131
|
+
export type { TextareaProps } from "./components/Textarea";
|
|
132
|
+
export type { TooltipProps } from "./components/Tooltip";
|
|
133
|
+
export type { TablePaginationProps } from "./components/TablePagination";
|
|
134
|
+
export { useOnClickOutside, useClickOutside, useId, useListener, useOnEscapePressed, usePagination, usePrevious, useThrottle, useWindowFitment, } from "./hooks";
|
|
135
|
+
export type { WindowFitment } from "./hooks";
|
|
136
|
+
export { isNavigationAnchor, isNavigationButton } from "./utils";
|
|
137
|
+
export type { ClassName, Headings, PropsWithSpread, SortDirection, SubComponentProps, TSFixMe, ValueOf, } from "./types";
|
|
138
|
+
export { Theme } from "./enums";
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
export { default as Accordion } from "./components/Accordion";
|
|
2
|
+
export { default as ActionButton } from "./components/ActionButton";
|
|
3
|
+
export { default as ArticlePagination } from "./components/ArticlePagination";
|
|
4
|
+
export { default as ApplicationLayout } from "./components/ApplicationLayout";
|
|
5
|
+
export { default as AppAside } from "./components/ApplicationLayout/AppAside";
|
|
6
|
+
export { default as Application } from "./components/ApplicationLayout/Application";
|
|
7
|
+
export { default as AppMain } from "./components/ApplicationLayout/AppMain";
|
|
8
|
+
export { default as AppNavigation } from "./components/ApplicationLayout/AppNavigation";
|
|
9
|
+
export { default as AppNavigationBar } from "./components/ApplicationLayout/AppNavigationBar";
|
|
10
|
+
export { default as AppStatus } from "./components/ApplicationLayout/AppStatus";
|
|
11
|
+
export { default as Badge } from "./components/Badge";
|
|
12
|
+
export { default as Button, ButtonAppearance } from "./components/Button";
|
|
13
|
+
export { default as Card } from "./components/Card";
|
|
14
|
+
export { default as CheckboxInput } from "./components/CheckboxInput";
|
|
15
|
+
export { default as Chip } from "./components/Chip";
|
|
16
|
+
export { default as Code } from "./components/Code";
|
|
17
|
+
export { default as CodeSnippet, CodeSnippetBlockAppearance } from "./components/CodeSnippet";
|
|
18
|
+
export { default as Col } from "./components/Col";
|
|
19
|
+
export { default as ConfirmationButton } from "./components/ConfirmationButton";
|
|
20
|
+
export { default as ConfirmationModal } from "./components/ConfirmationModal";
|
|
21
|
+
export { default as ContextualMenu } from "./components/ContextualMenu";
|
|
22
|
+
export { default as DoughnutChart } from "./components/DoughnutChart";
|
|
23
|
+
export { default as EmptyState } from "./components/EmptyState";
|
|
24
|
+
export { default as Field } from "./components/Field";
|
|
25
|
+
export { default as Form } from "./components/Form";
|
|
26
|
+
export { default as FormikField } from "./components/FormikField";
|
|
27
|
+
export { default as Icon, ICONS } from "./components/Icon";
|
|
28
|
+
export { default as Input } from "./components/Input";
|
|
29
|
+
export { default as Label } from "./components/Label";
|
|
30
|
+
export { default as Link } from "./components/Link";
|
|
31
|
+
export { default as List } from "./components/List";
|
|
32
|
+
export { default as Loader } from "./components/Loader";
|
|
33
|
+
export { default as MainTable } from "./components/MainTable";
|
|
34
|
+
export { default as ModularTable } from "./components/ModularTable";
|
|
35
|
+
export { default as Navigation } from "./components/Navigation";
|
|
36
|
+
export { default as Modal } from "./components/Modal";
|
|
37
|
+
export * from "./components/MultiSelect";
|
|
38
|
+
export { default as Notification, NotificationSeverity } from "./components/Notification";
|
|
39
|
+
export { NotificationConsumer, NotificationProvider, useNotify, info, success, failure, queue } from "./components/NotificationProvider";
|
|
40
|
+
export { default as LoginPageLayout } from "./components/LoginPageLayout";
|
|
41
|
+
export { default as Pagination } from "./components/Pagination";
|
|
42
|
+
export { default as Panel } from "./components/Panel";
|
|
43
|
+
export { default as PasswordToggle } from "./components/PasswordToggle";
|
|
44
|
+
export { default as RadioInput } from "./components/RadioInput";
|
|
45
|
+
export { default as Row } from "./components/Row";
|
|
46
|
+
export { default as SearchAndFilter } from "./components/SearchAndFilter";
|
|
47
|
+
export { default as SearchBox } from "./components/SearchBox";
|
|
48
|
+
export { default as Select } from "./components/Select";
|
|
49
|
+
export { default as SideNavigation } from "./components/SideNavigation";
|
|
50
|
+
export { default as SideNavigationItem } from "./components/SideNavigation/SideNavigationItem";
|
|
51
|
+
export { default as SideNavigationLink } from "./components/SideNavigation/SideNavigationLink";
|
|
52
|
+
export { default as SideNavigationText } from "./components/SideNavigation/SideNavigationText";
|
|
53
|
+
export { default as SkipLink } from "./components/SkipLink";
|
|
54
|
+
export { default as Slider } from "./components/Slider";
|
|
55
|
+
export { default as Switch } from "./components/Switch";
|
|
56
|
+
export { default as Spinner } from "./components/Spinner";
|
|
57
|
+
export { default as StatusLabel, StatusLabelAppearance } from "./components/StatusLabel";
|
|
58
|
+
export { default as Stepper, Step } from "./components/Stepper";
|
|
59
|
+
export { default as Strip } from "./components/Strip";
|
|
60
|
+
export { default as SummaryButton } from "./components/SummaryButton";
|
|
61
|
+
export { default as Table } from "./components/Table";
|
|
62
|
+
export { default as TableCell } from "./components/TableCell";
|
|
63
|
+
export { default as TableHeader } from "./components/TableHeader";
|
|
64
|
+
export { default as TableRow } from "./components/TableRow";
|
|
65
|
+
export { default as Tabs } from "./components/Tabs";
|
|
66
|
+
export { default as Textarea } from "./components/Textarea";
|
|
67
|
+
export { default as Tooltip } from "./components/Tooltip";
|
|
68
|
+
export { default as TablePagination } from "./components/TablePagination";
|
|
69
|
+
export { default as TablePaginationControls } from "./components/TablePagination/TablePaginationControls";
|
|
70
|
+
export { useOnClickOutside, useClickOutside, useId, useListener, useOnEscapePressed, usePagination, usePrevious, useThrottle, useWindowFitment } from "./hooks";
|
|
71
|
+
export { isNavigationAnchor, isNavigationButton } from "./utils";
|
|
72
|
+
export { Theme } from "./enums";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "@testing-library/jest-dom";
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This type should be used for all className props in order to ensure
|
|
3
|
+
* consistency across components.
|
|
4
|
+
*/
|
|
5
|
+
export type ClassName = string | null;
|
|
6
|
+
/**
|
|
7
|
+
* The allowable heading levels.
|
|
8
|
+
*/
|
|
9
|
+
export type Headings = "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
10
|
+
/**
|
|
11
|
+
* This type can be used when defining props that also spread the props of
|
|
12
|
+
* something else. It ensures that the defined component props are never
|
|
13
|
+
* overwritten by the spread props.
|
|
14
|
+
*/
|
|
15
|
+
export type PropsWithSpread<P, H> = P & Omit<H, keyof P>;
|
|
16
|
+
/**
|
|
17
|
+
* The allowable sort directions e.g. for a sortable table.
|
|
18
|
+
*/
|
|
19
|
+
export type SortDirection = "none" | "ascending" | "descending";
|
|
20
|
+
/**
|
|
21
|
+
* This type can be used when passing props to a sub component. It makes all
|
|
22
|
+
* component props optional.
|
|
23
|
+
*/
|
|
24
|
+
export type SubComponentProps<P> = Partial<P> & {
|
|
25
|
+
[prop: string]: unknown;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* This type is simply an alias for the 'any' type and should be used sparingly,
|
|
29
|
+
* if at all.
|
|
30
|
+
*/
|
|
31
|
+
export type TSFixMe = any;
|
|
32
|
+
/**
|
|
33
|
+
* This type allows for converting an object const into an enum-like construct,
|
|
34
|
+
* e.g. value: ValueOf<typeof EnumLike> will only allow value to be a value
|
|
35
|
+
* defined in EnumLike.
|
|
36
|
+
*/
|
|
37
|
+
export type ValueOf<T> = T[keyof T];
|
|
38
|
+
export type ExclusiveProps<A, B> = (A & Partial<Record<keyof B, never>>) | (B & Partial<Record<keyof A, never>>);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { NavLink, NavLinkAnchor, NavLinkButton } from "./components/Navigation";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
export declare const IS_DEV: boolean;
|
|
4
|
+
/**
|
|
5
|
+
* Find substring and wrap in <strong /> tag
|
|
6
|
+
* @param {string} str - The string to search
|
|
7
|
+
* @param {string} subString - The substring to find
|
|
8
|
+
* @return {Obj} newStr - Object with text and match bool
|
|
9
|
+
*/
|
|
10
|
+
export declare const highlightSubString: (str?: string, subString?: string) => {
|
|
11
|
+
text: string;
|
|
12
|
+
match: boolean;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Whether a navigation item is an anchor.
|
|
16
|
+
* @param link - The navigation item.
|
|
17
|
+
*/
|
|
18
|
+
export declare const isNavigationAnchor: (link: NavLink) => link is NavLinkAnchor;
|
|
19
|
+
/**
|
|
20
|
+
* Whether a navigation item is a button.
|
|
21
|
+
* @param link - The navigation item.
|
|
22
|
+
*/
|
|
23
|
+
export declare const isNavigationButton: (link: NavLink) => link is NavLinkButton;
|
|
24
|
+
/**
|
|
25
|
+
* A typeguard for whether an element is a ReactNode.
|
|
26
|
+
*/
|
|
27
|
+
export declare const isReactNode: (element: unknown) => element is ReactNode;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { isValidElement } from "react";
|
|
2
|
+
export var IS_DEV = process.env.NODE_ENV === "development";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Find substring and wrap in <strong /> tag
|
|
6
|
+
* @param {string} str - The string to search
|
|
7
|
+
* @param {string} subString - The substring to find
|
|
8
|
+
* @return {Obj} newStr - Object with text and match bool
|
|
9
|
+
*/
|
|
10
|
+
export var highlightSubString = (str, subString) => {
|
|
11
|
+
if (typeof str !== "string" || typeof subString !== "string") {
|
|
12
|
+
return {
|
|
13
|
+
text: str || "",
|
|
14
|
+
match: false
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
var escapedSubstring = subString.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
18
|
+
var caseInsensitiveRegex = new RegExp(escapedSubstring, "gi");
|
|
19
|
+
var newStr = str.replace(caseInsensitiveRegex, match => "<strong>".concat(match, "</strong>"));
|
|
20
|
+
return {
|
|
21
|
+
text: subString === "" ? str : newStr,
|
|
22
|
+
match: newStr !== str
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Whether a navigation item is an anchor.
|
|
28
|
+
* @param link - The navigation item.
|
|
29
|
+
*/
|
|
30
|
+
export var isNavigationAnchor = link => !!link.url;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Whether a navigation item is a button.
|
|
34
|
+
* @param link - The navigation item.
|
|
35
|
+
*/
|
|
36
|
+
export var isNavigationButton = link => !link.url;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* A typeguard for whether an element is a ReactNode.
|
|
40
|
+
*/
|
|
41
|
+
export var isReactNode = element => /*#__PURE__*/isValidElement(element);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@canonical/react-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/index.js",
|
|
6
6
|
"author": {
|
|
@@ -12,8 +12,6 @@
|
|
|
12
12
|
"dist/**/*.js",
|
|
13
13
|
"dist/**/*.d.*",
|
|
14
14
|
"dist/**/*.scss",
|
|
15
|
-
"dist-types/**/*.d.ts",
|
|
16
|
-
"dist-esm/**/*.js",
|
|
17
15
|
"!dist/**/*.test.js",
|
|
18
16
|
"!dist/testing",
|
|
19
17
|
"!dist/setupTests.js"
|
|
@@ -128,10 +126,12 @@
|
|
|
128
126
|
"vanilla-framework": "^3.15.1 || ^4.0.0"
|
|
129
127
|
},
|
|
130
128
|
"scripts": {
|
|
131
|
-
"build": "rm -rf dist && yarn build-
|
|
132
|
-
"build-
|
|
133
|
-
"build-declaration": "tsc --project tsconfig.
|
|
134
|
-
"build-
|
|
129
|
+
"build": "rm -rf dist && yarn build-cjs && yarn build-declaration && yarn build-esm && yarn build-declaration-esm",
|
|
130
|
+
"build-cjs": "NODE_ENV=production BABEL_ENV=cjs babel src --out-dir dist --copy-files --extensions '.js,.jsx,.ts,.tsx'",
|
|
131
|
+
"build-declaration": "tsc --project tsconfig.json && tsc-alias -p tsconfig.json",
|
|
132
|
+
"build-esm": "NODE_ENV=production BABEL_ENV=esm babel src --out-dir dist/esm --copy-files --extensions '.js,.jsx,.ts,.tsx'",
|
|
133
|
+
"build-declaration-esm": "tsc --project tsconfig.json --outDir dist/esm && tsc-alias -p tsconfig.json --outDir dist/esm",
|
|
134
|
+
"build-watch": "yarn run build-cjs --watch",
|
|
135
135
|
"build-docs": "storybook build -c .storybook -o docs",
|
|
136
136
|
"clean": "rm -rf node_modules dist .out",
|
|
137
137
|
"docs": "storybook dev -p ${PORT:-9009} --no-open",
|