@canonical/react-components 1.2.5 → 1.3.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/README.md +2 -2
- package/dist-esm/components/Accordion/Accordion.js +52 -0
- package/dist-esm/components/Accordion/AccordionSection/AccordionSection.js +47 -0
- package/dist-esm/components/Accordion/AccordionSection/index.js +1 -0
- package/dist-esm/components/Accordion/index.js +1 -0
- package/dist-esm/components/ActionButton/ActionButton.js +106 -0
- package/dist-esm/components/ActionButton/index.js +1 -0
- package/dist-esm/components/ApplicationLayout/AppAside/AppAside.js +29 -0
- package/dist-esm/components/ApplicationLayout/AppAside/index.js +1 -0
- package/dist-esm/components/ApplicationLayout/AppMain/AppMain.js +21 -0
- package/dist-esm/components/ApplicationLayout/AppMain/index.js +1 -0
- package/dist-esm/components/ApplicationLayout/AppNavigation/AppNavigation.js +31 -0
- package/dist-esm/components/ApplicationLayout/AppNavigation/index.js +1 -0
- package/dist-esm/components/ApplicationLayout/AppNavigationBar/AppNavigationBar.js +24 -0
- package/dist-esm/components/ApplicationLayout/AppNavigationBar/index.js +1 -0
- package/dist-esm/components/ApplicationLayout/AppStatus/AppStatus.js +21 -0
- package/dist-esm/components/ApplicationLayout/AppStatus/index.js +1 -0
- package/dist-esm/components/ApplicationLayout/Application/Application.js +22 -0
- package/dist-esm/components/ApplicationLayout/Application/index.js +1 -0
- package/dist-esm/components/ApplicationLayout/ApplicationLayout.js +113 -0
- package/dist-esm/components/ApplicationLayout/index.js +7 -0
- package/dist-esm/components/ArticlePagination/ArticlePagination.js +39 -0
- package/dist-esm/components/ArticlePagination/index.js +1 -0
- package/dist-esm/components/Badge/Badge.js +64 -0
- package/dist-esm/components/Badge/index.js +1 -0
- package/dist-esm/components/Button/Button.js +55 -0
- package/dist-esm/components/Button/index.js +1 -0
- package/dist-esm/components/Card/Card.js +45 -0
- package/dist-esm/components/Card/index.js +1 -0
- package/dist-esm/components/CheckboxInput/CheckableInput/CheckableInput.js +35 -0
- package/dist-esm/components/CheckboxInput/CheckableInput/index.js +1 -0
- package/dist-esm/components/CheckboxInput/CheckboxInput.js +24 -0
- package/dist-esm/components/CheckboxInput/index.js +1 -0
- package/dist-esm/components/Chip/Chip.js +81 -0
- package/dist-esm/components/Chip/index.js +1 -0
- package/dist-esm/components/Code/Code.js +49 -0
- package/dist-esm/components/Code/index.js +1 -0
- package/dist-esm/components/CodeSnippet/CodeSnippet.js +28 -0
- package/dist-esm/components/CodeSnippet/CodeSnippetBlock.js +64 -0
- package/dist-esm/components/CodeSnippet/CodeSnippetDropdown.js +27 -0
- package/dist-esm/components/CodeSnippet/index.js +2 -0
- package/dist-esm/components/Col/Col.js +38 -0
- package/dist-esm/components/Col/index.js +1 -0
- package/dist-esm/components/ConfirmationButton/ConfirmationButton.js +63 -0
- package/dist-esm/components/ConfirmationButton/index.js +1 -0
- package/dist-esm/components/ConfirmationModal/ConfirmationModal.js +47 -0
- package/dist-esm/components/ConfirmationModal/index.js +1 -0
- package/dist-esm/components/ContextualMenu/ContextualMenu.js +215 -0
- package/dist-esm/components/ContextualMenu/ContextualMenuDropdown/ContextualMenuDropdown.js +249 -0
- package/dist-esm/components/ContextualMenu/ContextualMenuDropdown/index.js +1 -0
- package/dist-esm/components/ContextualMenu/index.js +1 -0
- package/dist-esm/components/EmptyState/EmptyState.js +28 -0
- package/dist-esm/components/EmptyState/index.js +1 -0
- package/dist-esm/components/Field/Field.js +126 -0
- package/dist-esm/components/Field/index.js +1 -0
- package/dist-esm/components/Form/Form.js +28 -0
- package/dist-esm/components/Form/index.js +1 -0
- package/dist-esm/components/FormikField/FormikField.js +33 -0
- package/dist-esm/components/FormikField/index.js +1 -0
- package/dist-esm/components/Icon/Icon.js +61 -0
- package/dist-esm/components/Icon/index.js +1 -0
- package/dist-esm/components/Input/Input.js +103 -0
- package/dist-esm/components/Input/index.js +1 -0
- package/dist-esm/components/Label/Label.js +27 -0
- package/dist-esm/components/Label/index.js +1 -0
- package/dist-esm/components/Link/Link.js +37 -0
- package/dist-esm/components/Link/index.js +1 -0
- package/dist-esm/components/List/List.js +110 -0
- package/dist-esm/components/List/index.js +1 -0
- package/dist-esm/components/Loader/Loader.js +14 -0
- package/dist-esm/components/Loader/index.js +1 -0
- package/dist-esm/components/LoginPageLayout/LoginPageLayout.js +63 -0
- package/dist-esm/components/LoginPageLayout/index.js +1 -0
- package/dist-esm/components/MainTable/MainTable.js +211 -0
- package/dist-esm/components/MainTable/index.js +1 -0
- package/dist-esm/components/Modal/Modal.js +135 -0
- package/dist-esm/components/Modal/index.js +1 -0
- package/dist-esm/components/ModularTable/ModularTable.js +166 -0
- package/dist-esm/components/ModularTable/index.js +1 -0
- package/dist-esm/components/MultiSelect/FadeInDown/FadeInDown.js +25 -0
- package/dist-esm/components/MultiSelect/FadeInDown/index.js +1 -0
- package/dist-esm/components/MultiSelect/MultiSelect.js +308 -0
- package/dist-esm/components/MultiSelect/index.js +1 -0
- package/dist-esm/components/Navigation/Navigation.js +215 -0
- package/dist-esm/components/Navigation/NavigationLink/NavigationLink.js +58 -0
- package/dist-esm/components/Navigation/NavigationLink/index.js +1 -0
- package/dist-esm/components/Navigation/NavigationMenu/NavigationMenu.js +57 -0
- package/dist-esm/components/Navigation/NavigationMenu/index.js +1 -0
- package/dist-esm/components/Navigation/index.js +1 -0
- package/dist-esm/components/Navigation/types.js +1 -0
- package/dist-esm/components/Notification/Notification.js +119 -0
- package/dist-esm/components/Notification/index.js +1 -0
- package/dist-esm/components/NotificationProvider/NotificationProvider.js +83 -0
- package/dist-esm/components/NotificationProvider/index.js +2 -0
- package/dist-esm/components/NotificationProvider/messageBuilder.js +31 -0
- package/dist-esm/components/NotificationProvider/types.js +1 -0
- package/dist-esm/components/Pagination/Pagination.js +173 -0
- package/dist-esm/components/Pagination/PaginationButton/PaginationButton.js +31 -0
- package/dist-esm/components/Pagination/PaginationButton/index.js +1 -0
- package/dist-esm/components/Pagination/PaginationItem/PaginationItem.js +20 -0
- package/dist-esm/components/Pagination/PaginationItem/index.js +1 -0
- package/dist-esm/components/Pagination/index.js +1 -0
- package/dist-esm/components/Panel/Panel.js +89 -0
- package/dist-esm/components/Panel/index.js +1 -0
- package/dist-esm/components/PasswordToggle/PasswordToggle.js +90 -0
- package/dist-esm/components/PasswordToggle/index.js +1 -0
- package/dist-esm/components/RadioInput/RadioInput.js +22 -0
- package/dist-esm/components/RadioInput/index.js +1 -0
- package/dist-esm/components/Row/Row.js +22 -0
- package/dist-esm/components/Row/index.js +1 -0
- package/dist-esm/components/SearchAndFilter/FilterPanelSection/FilterPanelSection.js +107 -0
- package/dist-esm/components/SearchAndFilter/FilterPanelSection/index.js +1 -0
- package/dist-esm/components/SearchAndFilter/SearchAndFilter.js +286 -0
- package/dist-esm/components/SearchAndFilter/index.js +1 -0
- package/dist-esm/components/SearchAndFilter/types.js +1 -0
- package/dist-esm/components/SearchAndFilter/utils.js +22 -0
- package/dist-esm/components/SearchBox/SearchBox.js +95 -0
- package/dist-esm/components/SearchBox/index.js +1 -0
- package/dist-esm/components/Select/Select.js +84 -0
- package/dist-esm/components/Select/index.js +1 -0
- package/dist-esm/components/SideNavigation/SideNavigation.js +89 -0
- package/dist-esm/components/SideNavigation/SideNavigationBase/SideNavigationBase.js +31 -0
- package/dist-esm/components/SideNavigation/SideNavigationBase/index.js +1 -0
- package/dist-esm/components/SideNavigation/SideNavigationItem/SideNavigationItem.js +32 -0
- package/dist-esm/components/SideNavigation/SideNavigationItem/index.js +1 -0
- package/dist-esm/components/SideNavigation/SideNavigationLink/SideNavigationLink.js +25 -0
- package/dist-esm/components/SideNavigation/SideNavigationLink/index.js +1 -0
- package/dist-esm/components/SideNavigation/SideNavigationText/SideNavigationText.js +20 -0
- package/dist-esm/components/SideNavigation/SideNavigationText/index.js +1 -0
- package/dist-esm/components/SideNavigation/index.js +4 -0
- package/dist-esm/components/Slider/Slider.js +83 -0
- package/dist-esm/components/Slider/index.js +1 -0
- package/dist-esm/components/Spinner/Spinner.js +36 -0
- package/dist-esm/components/Spinner/index.js +1 -0
- package/dist-esm/components/StatusLabel/StatusLabel.js +36 -0
- package/dist-esm/components/StatusLabel/index.js +1 -0
- package/dist-esm/components/Strip/Strip.js +50 -0
- package/dist-esm/components/Strip/index.js +1 -0
- package/dist-esm/components/SummaryButton/SummaryButton.js +28 -0
- package/dist-esm/components/SummaryButton/index.js +1 -0
- package/dist-esm/components/Switch/Switch.js +28 -0
- package/dist-esm/components/Switch/index.js +1 -0
- package/dist-esm/components/Table/Table.js +23 -0
- package/dist-esm/components/Table/index.js +1 -0
- package/dist-esm/components/TableCell/TableCell.js +26 -0
- package/dist-esm/components/TableCell/index.js +1 -0
- package/dist-esm/components/TableHeader/TableHeader.js +17 -0
- package/dist-esm/components/TableHeader/index.js +1 -0
- package/dist-esm/components/TablePagination/TablePagination.js +104 -0
- package/dist-esm/components/TablePagination/TablePaginationControls/TablePaginationControls.js +120 -0
- package/dist-esm/components/TablePagination/TablePaginationControls/index.js +1 -0
- package/dist-esm/components/TablePagination/index.js +1 -0
- package/dist-esm/components/TablePagination/utils.js +67 -0
- package/dist-esm/components/TableRow/TableRow.js +15 -0
- package/dist-esm/components/TableRow/index.js +1 -0
- package/dist-esm/components/Tabs/Tabs.js +42 -0
- package/dist-esm/components/Tabs/index.js +1 -0
- package/dist-esm/components/Textarea/Textarea.js +115 -0
- package/dist-esm/components/Textarea/index.js +1 -0
- package/dist-esm/components/Tooltip/Tooltip.js +245 -0
- package/dist-esm/components/Tooltip/index.js +1 -0
- package/dist-esm/enums.js +8 -0
- package/dist-esm/hooks/index.js +8 -0
- package/dist-esm/hooks/useId.js +13 -0
- package/dist-esm/hooks/useListener.js +51 -0
- package/dist-esm/hooks/useOnClickOutside.js +38 -0
- package/dist-esm/hooks/useOnEscapePressed.js +25 -0
- package/dist-esm/hooks/usePagination.js +45 -0
- package/dist-esm/hooks/usePrevious.js +16 -0
- package/dist-esm/hooks/useThrottle.js +49 -0
- package/dist-esm/hooks/useWindowFitment.js +109 -0
- package/dist-esm/index.js +69 -0
- package/dist-esm/types/index.js +1 -0
- package/dist-esm/types/react-table-config.d.js +1 -0
- package/dist-esm/utils.js +41 -0
- package/package.json +11 -6
- package/dist/components/Accordion/Accordion.stories.d.ts +0 -18
- package/dist/components/Accordion/Accordion.stories.js +0 -117
- package/dist/components/ActionButton/ActionButton.stories.d.ts +0 -7
- package/dist/components/ActionButton/ActionButton.stories.js +0 -36
- package/dist/components/ApplicationLayout/AppAside/AppAside.stories.d.ts +0 -13
- package/dist/components/ApplicationLayout/AppAside/AppAside.stories.js +0 -116
- package/dist/components/ApplicationLayout/AppMain/AppMain.stories.d.ts +0 -14
- package/dist/components/ApplicationLayout/AppMain/AppMain.stories.js +0 -45
- package/dist/components/ApplicationLayout/AppNavigation/AppNavigation.stories.d.ts +0 -12
- package/dist/components/ApplicationLayout/AppNavigation/AppNavigation.stories.js +0 -104
- package/dist/components/ApplicationLayout/AppNavigationBar/AppNavigationBar.stories.d.ts +0 -15
- package/dist/components/ApplicationLayout/AppNavigationBar/AppNavigationBar.stories.js +0 -52
- package/dist/components/ApplicationLayout/AppStatus/AppStatus.stories.d.ts +0 -13
- package/dist/components/ApplicationLayout/AppStatus/AppStatus.stories.js +0 -41
- package/dist/components/ApplicationLayout/Application/Application.stories.d.ts +0 -6
- package/dist/components/ApplicationLayout/Application/Application.stories.js +0 -16
- package/dist/components/ApplicationLayout/ApplicationLayout.stories.d.ts +0 -24
- package/dist/components/ApplicationLayout/ApplicationLayout.stories.js +0 -232
- package/dist/components/ArticlePagination/ArticlePagination.stories.d.ts +0 -6
- package/dist/components/ArticlePagination/ArticlePagination.stories.js +0 -22
- package/dist/components/Badge/Badge.stories.d.ts +0 -15
- package/dist/components/Badge/Badge.stories.js +0 -62
- package/dist/components/Button/Button.stories.d.ts +0 -32
- package/dist/components/Button/Button.stories.js +0 -180
- package/dist/components/Card/Card.stories.d.ts +0 -33
- package/dist/components/Card/Card.stories.js +0 -51
- package/dist/components/CheckboxInput/CheckboxInput.stories.d.ts +0 -11
- package/dist/components/CheckboxInput/CheckboxInput.stories.js +0 -84
- package/dist/components/Chip/Chip.stories.d.ts +0 -9
- package/dist/components/Chip/Chip.stories.js +0 -45
- package/dist/components/CodeSnippet/CodeSnippet.stories.d.ts +0 -45
- package/dist/components/CodeSnippet/CodeSnippet.stories.js +0 -279
- package/dist/components/Col/Col.stories.d.ts +0 -11
- package/dist/components/Col/Col.stories.js +0 -154
- package/dist/components/ConfirmationButton/ConfirmationButton.stories.d.ts +0 -9
- package/dist/components/ConfirmationButton/ConfirmationButton.stories.js +0 -108
- package/dist/components/ConfirmationModal/ConfirmationModal.stories.d.ts +0 -18
- package/dist/components/ConfirmationModal/ConfirmationModal.stories.js +0 -135
- package/dist/components/ContextualMenu/ContextualMenu.stories.d.ts +0 -13
- package/dist/components/ContextualMenu/ContextualMenu.stories.js +0 -107
- package/dist/components/EmptyState/EmptyState.stories.d.ts +0 -7
- package/dist/components/EmptyState/EmptyState.stories.js +0 -49
- package/dist/components/Form/Form.stories.d.ts +0 -12
- package/dist/components/Form/Form.stories.js +0 -179
- package/dist/components/FormikField/FormikField.stories.d.ts +0 -8
- package/dist/components/FormikField/FormikField.stories.js +0 -85
- package/dist/components/Icon/Icon.stories.d.ts +0 -16
- package/dist/components/Icon/Icon.stories.js +0 -49
- package/dist/components/Input/Input.stories.d.ts +0 -14
- package/dist/components/Input/Input.stories.js +0 -148
- package/dist/components/Link/Link.stories.d.ts +0 -9
- package/dist/components/Link/Link.stories.js +0 -48
- package/dist/components/List/List.stories.d.ts +0 -15
- package/dist/components/List/List.stories.js +0 -122
- package/dist/components/LoginPageLayout/LoginPageLayout.stories.d.ts +0 -9
- package/dist/components/LoginPageLayout/LoginPageLayout.stories.js +0 -58
- package/dist/components/MainTable/MainTable.stories.d.ts +0 -15
- package/dist/components/MainTable/MainTable.stories.js +0 -553
- package/dist/components/Modal/Modal.stories.d.ts +0 -6
- package/dist/components/Modal/Modal.stories.js +0 -57
- package/dist/components/ModularTable/ModularTable.stories.d.ts +0 -27
- package/dist/components/ModularTable/ModularTable.stories.js +0 -343
- package/dist/components/MultiSelect/MultiSelect.stories.d.ts +0 -8
- package/dist/components/MultiSelect/MultiSelect.stories.js +0 -70
- package/dist/components/Navigation/Navigation.stories.d.ts +0 -43
- package/dist/components/Navigation/Navigation.stories.js +0 -232
- package/dist/components/Notification/Notification.stories.d.ts +0 -45
- package/dist/components/Notification/Notification.stories.js +0 -201
- package/dist/components/Pagination/Pagination.stories.d.ts +0 -14
- package/dist/components/Pagination/Pagination.stories.js +0 -94
- package/dist/components/Panel/Panel.stories.d.ts +0 -17
- package/dist/components/Panel/Panel.stories.js +0 -60
- package/dist/components/PasswordToggle/PasswordToggle.stories.d.ts +0 -12
- package/dist/components/PasswordToggle/PasswordToggle.stories.js +0 -74
- package/dist/components/RadioInput/RadioInput.stories.d.ts +0 -10
- package/dist/components/RadioInput/RadioInput.stories.js +0 -83
- package/dist/components/Row/Row.stories.d.ts +0 -9
- package/dist/components/Row/Row.stories.js +0 -29
- package/dist/components/SearchAndFilter/SearchAndFilter.stories.d.ts +0 -8
- package/dist/components/SearchAndFilter/SearchAndFilter.stories.js +0 -218
- package/dist/components/SearchBox/SearchBox.stories.d.ts +0 -14
- package/dist/components/SearchBox/SearchBox.stories.js +0 -106
- package/dist/components/Select/Select.stories.d.ts +0 -7
- package/dist/components/Select/Select.stories.js +0 -97
- package/dist/components/SideNavigation/SideNavigation.stories.d.ts +0 -14
- package/dist/components/SideNavigation/SideNavigation.stories.js +0 -62
- package/dist/components/SideNavigation/SideNavigationItem/SideNavigationItem.stories.d.ts +0 -22
- package/dist/components/SideNavigation/SideNavigationItem/SideNavigationItem.stories.js +0 -70
- package/dist/components/SideNavigation/SideNavigationLink/SideNavigationLink.stories.d.ts +0 -7
- package/dist/components/SideNavigation/SideNavigationLink/SideNavigationLink.stories.js +0 -32
- package/dist/components/SideNavigation/SideNavigationText/SideNavigationText.stories.d.ts +0 -6
- package/dist/components/SideNavigation/SideNavigationText/SideNavigationText.stories.js +0 -25
- package/dist/components/Slider/Slider.stories.d.ts +0 -10
- package/dist/components/Slider/Slider.stories.js +0 -74
- package/dist/components/Spinner/Spinner.stories.d.ts +0 -8
- package/dist/components/Spinner/Spinner.stories.js +0 -28
- package/dist/components/StatusLabel/StatusLabel.stories.d.ts +0 -10
- package/dist/components/StatusLabel/StatusLabel.stories.js +0 -61
- package/dist/components/Strip/Strip.stories.d.ts +0 -12
- package/dist/components/Strip/Strip.stories.js +0 -130
- package/dist/components/SummaryButton/SummaryButton.stories.d.ts +0 -18
- package/dist/components/SummaryButton/SummaryButton.stories.js +0 -59
- package/dist/components/Switch/Switch.stories.d.ts +0 -7
- package/dist/components/Switch/Switch.stories.js +0 -26
- package/dist/components/TablePagination/TablePagination.stories.d.ts +0 -14
- package/dist/components/TablePagination/TablePagination.stories.js +0 -330
- package/dist/components/Tabs/Tabs.stories.d.ts +0 -11
- package/dist/components/Tabs/Tabs.stories.js +0 -56
- package/dist/components/Textarea/Textarea.stories.d.ts +0 -7
- package/dist/components/Textarea/Textarea.stories.js +0 -62
- package/dist/components/Tooltip/Tooltip.stories.d.ts +0 -12
- package/dist/components/Tooltip/Tooltip.stories.js +0 -71
- /package/{dist → dist-types}/components/Accordion/Accordion.d.ts +0 -0
- /package/{dist → dist-types}/components/Accordion/AccordionSection/AccordionSection.d.ts +0 -0
- /package/{dist → dist-types}/components/Accordion/AccordionSection/index.d.ts +0 -0
- /package/{dist → dist-types}/components/Accordion/index.d.ts +0 -0
- /package/{dist → dist-types}/components/ActionButton/ActionButton.d.ts +0 -0
- /package/{dist → dist-types}/components/ActionButton/index.d.ts +0 -0
- /package/{dist → dist-types}/components/ApplicationLayout/AppAside/AppAside.d.ts +0 -0
- /package/{dist → dist-types}/components/ApplicationLayout/AppAside/index.d.ts +0 -0
- /package/{dist → dist-types}/components/ApplicationLayout/AppMain/AppMain.d.ts +0 -0
- /package/{dist → dist-types}/components/ApplicationLayout/AppMain/index.d.ts +0 -0
- /package/{dist → dist-types}/components/ApplicationLayout/AppNavigation/AppNavigation.d.ts +0 -0
- /package/{dist → dist-types}/components/ApplicationLayout/AppNavigation/index.d.ts +0 -0
- /package/{dist → dist-types}/components/ApplicationLayout/AppNavigationBar/AppNavigationBar.d.ts +0 -0
- /package/{dist → dist-types}/components/ApplicationLayout/AppNavigationBar/index.d.ts +0 -0
- /package/{dist → dist-types}/components/ApplicationLayout/AppStatus/AppStatus.d.ts +0 -0
- /package/{dist → dist-types}/components/ApplicationLayout/AppStatus/index.d.ts +0 -0
- /package/{dist → dist-types}/components/ApplicationLayout/Application/Application.d.ts +0 -0
- /package/{dist → dist-types}/components/ApplicationLayout/Application/index.d.ts +0 -0
- /package/{dist → dist-types}/components/ApplicationLayout/ApplicationLayout.d.ts +0 -0
- /package/{dist → dist-types}/components/ApplicationLayout/index.d.ts +0 -0
- /package/{dist → dist-types}/components/ArticlePagination/ArticlePagination.d.ts +0 -0
- /package/{dist → dist-types}/components/ArticlePagination/index.d.ts +0 -0
- /package/{dist → dist-types}/components/Badge/Badge.d.ts +0 -0
- /package/{dist → dist-types}/components/Badge/index.d.ts +0 -0
- /package/{dist → dist-types}/components/Button/Button.d.ts +0 -0
- /package/{dist → dist-types}/components/Button/index.d.ts +0 -0
- /package/{dist → dist-types}/components/Card/Card.d.ts +0 -0
- /package/{dist → dist-types}/components/Card/index.d.ts +0 -0
- /package/{dist → dist-types}/components/CheckboxInput/CheckableInput/CheckableInput.d.ts +0 -0
- /package/{dist → dist-types}/components/CheckboxInput/CheckableInput/index.d.ts +0 -0
- /package/{dist → dist-types}/components/CheckboxInput/CheckboxInput.d.ts +0 -0
- /package/{dist → dist-types}/components/CheckboxInput/index.d.ts +0 -0
- /package/{dist → dist-types}/components/Chip/Chip.d.ts +0 -0
- /package/{dist → dist-types}/components/Chip/index.d.ts +0 -0
- /package/{dist → dist-types}/components/Code/Code.d.ts +0 -0
- /package/{dist → dist-types}/components/Code/index.d.ts +0 -0
- /package/{dist → dist-types}/components/CodeSnippet/CodeSnippet.d.ts +0 -0
- /package/{dist → dist-types}/components/CodeSnippet/CodeSnippetBlock.d.ts +0 -0
- /package/{dist → dist-types}/components/CodeSnippet/CodeSnippetDropdown.d.ts +0 -0
- /package/{dist → dist-types}/components/CodeSnippet/index.d.ts +0 -0
- /package/{dist → dist-types}/components/Col/Col.d.ts +0 -0
- /package/{dist → dist-types}/components/Col/index.d.ts +0 -0
- /package/{dist → dist-types}/components/ConfirmationButton/ConfirmationButton.d.ts +0 -0
- /package/{dist → dist-types}/components/ConfirmationButton/index.d.ts +0 -0
- /package/{dist → dist-types}/components/ConfirmationModal/ConfirmationModal.d.ts +0 -0
- /package/{dist → dist-types}/components/ConfirmationModal/index.d.ts +0 -0
- /package/{dist → dist-types}/components/ContextualMenu/ContextualMenu.d.ts +0 -0
- /package/{dist → dist-types}/components/ContextualMenu/ContextualMenuDropdown/ContextualMenuDropdown.d.ts +0 -0
- /package/{dist → dist-types}/components/ContextualMenu/ContextualMenuDropdown/index.d.ts +0 -0
- /package/{dist → dist-types}/components/ContextualMenu/index.d.ts +0 -0
- /package/{dist → dist-types}/components/EmptyState/EmptyState.d.ts +0 -0
- /package/{dist → dist-types}/components/EmptyState/index.d.ts +0 -0
- /package/{dist → dist-types}/components/Field/Field.d.ts +0 -0
- /package/{dist → dist-types}/components/Field/index.d.ts +0 -0
- /package/{dist → dist-types}/components/Form/Form.d.ts +0 -0
- /package/{dist → dist-types}/components/Form/index.d.ts +0 -0
- /package/{dist → dist-types}/components/FormikField/FormikField.d.ts +0 -0
- /package/{dist → dist-types}/components/FormikField/index.d.ts +0 -0
- /package/{dist → dist-types}/components/Icon/Icon.d.ts +0 -0
- /package/{dist → dist-types}/components/Icon/index.d.ts +0 -0
- /package/{dist → dist-types}/components/Input/Input.d.ts +0 -0
- /package/{dist → dist-types}/components/Input/index.d.ts +0 -0
- /package/{dist → dist-types}/components/Label/Label.d.ts +0 -0
- /package/{dist → dist-types}/components/Label/index.d.ts +0 -0
- /package/{dist → dist-types}/components/Link/Link.d.ts +0 -0
- /package/{dist → dist-types}/components/Link/index.d.ts +0 -0
- /package/{dist → dist-types}/components/List/List.d.ts +0 -0
- /package/{dist → dist-types}/components/List/index.d.ts +0 -0
- /package/{dist → dist-types}/components/Loader/Loader.d.ts +0 -0
- /package/{dist → dist-types}/components/Loader/index.d.ts +0 -0
- /package/{dist → dist-types}/components/LoginPageLayout/LoginPageLayout.d.ts +0 -0
- /package/{dist → dist-types}/components/LoginPageLayout/index.d.ts +0 -0
- /package/{dist → dist-types}/components/MainTable/MainTable.d.ts +0 -0
- /package/{dist → dist-types}/components/MainTable/index.d.ts +0 -0
- /package/{dist → dist-types}/components/Modal/Modal.d.ts +0 -0
- /package/{dist → dist-types}/components/Modal/index.d.ts +0 -0
- /package/{dist → dist-types}/components/ModularTable/ModularTable.d.ts +0 -0
- /package/{dist → dist-types}/components/ModularTable/index.d.ts +0 -0
- /package/{dist → dist-types}/components/MultiSelect/FadeInDown/FadeInDown.d.ts +0 -0
- /package/{dist → dist-types}/components/MultiSelect/FadeInDown/index.d.ts +0 -0
- /package/{dist → dist-types}/components/MultiSelect/MultiSelect.d.ts +0 -0
- /package/{dist → dist-types}/components/MultiSelect/index.d.ts +0 -0
- /package/{dist → dist-types}/components/Navigation/Navigation.d.ts +0 -0
- /package/{dist → dist-types}/components/Navigation/NavigationLink/NavigationLink.d.ts +0 -0
- /package/{dist → dist-types}/components/Navigation/NavigationLink/index.d.ts +0 -0
- /package/{dist → dist-types}/components/Navigation/NavigationMenu/NavigationMenu.d.ts +0 -0
- /package/{dist → dist-types}/components/Navigation/NavigationMenu/index.d.ts +0 -0
- /package/{dist → dist-types}/components/Navigation/index.d.ts +0 -0
- /package/{dist → dist-types}/components/Navigation/types.d.ts +0 -0
- /package/{dist → dist-types}/components/Notification/Notification.d.ts +0 -0
- /package/{dist → dist-types}/components/Notification/index.d.ts +0 -0
- /package/{dist → dist-types}/components/NotificationProvider/NotificationProvider.d.ts +0 -0
- /package/{dist → dist-types}/components/NotificationProvider/index.d.ts +0 -0
- /package/{dist → dist-types}/components/NotificationProvider/messageBuilder.d.ts +0 -0
- /package/{dist → dist-types}/components/NotificationProvider/types.d.ts +0 -0
- /package/{dist → dist-types}/components/Pagination/Pagination.d.ts +0 -0
- /package/{dist → dist-types}/components/Pagination/PaginationButton/PaginationButton.d.ts +0 -0
- /package/{dist → dist-types}/components/Pagination/PaginationButton/index.d.ts +0 -0
- /package/{dist → dist-types}/components/Pagination/PaginationItem/PaginationItem.d.ts +0 -0
- /package/{dist → dist-types}/components/Pagination/PaginationItem/index.d.ts +0 -0
- /package/{dist → dist-types}/components/Pagination/index.d.ts +0 -0
- /package/{dist → dist-types}/components/Panel/Panel.d.ts +0 -0
- /package/{dist → dist-types}/components/Panel/index.d.ts +0 -0
- /package/{dist → dist-types}/components/PasswordToggle/PasswordToggle.d.ts +0 -0
- /package/{dist → dist-types}/components/PasswordToggle/index.d.ts +0 -0
- /package/{dist → dist-types}/components/RadioInput/RadioInput.d.ts +0 -0
- /package/{dist → dist-types}/components/RadioInput/index.d.ts +0 -0
- /package/{dist → dist-types}/components/Row/Row.d.ts +0 -0
- /package/{dist → dist-types}/components/Row/index.d.ts +0 -0
- /package/{dist → dist-types}/components/SearchAndFilter/FilterPanelSection/FilterPanelSection.d.ts +0 -0
- /package/{dist → dist-types}/components/SearchAndFilter/FilterPanelSection/index.d.ts +0 -0
- /package/{dist → dist-types}/components/SearchAndFilter/SearchAndFilter.d.ts +0 -0
- /package/{dist → dist-types}/components/SearchAndFilter/index.d.ts +0 -0
- /package/{dist → dist-types}/components/SearchAndFilter/types.d.ts +0 -0
- /package/{dist → dist-types}/components/SearchAndFilter/utils.d.ts +0 -0
- /package/{dist → dist-types}/components/SearchBox/SearchBox.d.ts +0 -0
- /package/{dist → dist-types}/components/SearchBox/index.d.ts +0 -0
- /package/{dist → dist-types}/components/Select/Select.d.ts +0 -0
- /package/{dist → dist-types}/components/Select/index.d.ts +0 -0
- /package/{dist → dist-types}/components/SideNavigation/SideNavigation.d.ts +0 -0
- /package/{dist → dist-types}/components/SideNavigation/SideNavigationBase/SideNavigationBase.d.ts +0 -0
- /package/{dist → dist-types}/components/SideNavigation/SideNavigationBase/index.d.ts +0 -0
- /package/{dist → dist-types}/components/SideNavigation/SideNavigationItem/SideNavigationItem.d.ts +0 -0
- /package/{dist → dist-types}/components/SideNavigation/SideNavigationItem/index.d.ts +0 -0
- /package/{dist → dist-types}/components/SideNavigation/SideNavigationLink/SideNavigationLink.d.ts +0 -0
- /package/{dist → dist-types}/components/SideNavigation/SideNavigationLink/index.d.ts +0 -0
- /package/{dist → dist-types}/components/SideNavigation/SideNavigationText/SideNavigationText.d.ts +0 -0
- /package/{dist → dist-types}/components/SideNavigation/SideNavigationText/index.d.ts +0 -0
- /package/{dist → dist-types}/components/SideNavigation/index.d.ts +0 -0
- /package/{dist → dist-types}/components/Slider/Slider.d.ts +0 -0
- /package/{dist → dist-types}/components/Slider/index.d.ts +0 -0
- /package/{dist → dist-types}/components/Spinner/Spinner.d.ts +0 -0
- /package/{dist → dist-types}/components/Spinner/index.d.ts +0 -0
- /package/{dist → dist-types}/components/StatusLabel/StatusLabel.d.ts +0 -0
- /package/{dist → dist-types}/components/StatusLabel/index.d.ts +0 -0
- /package/{dist → dist-types}/components/Strip/Strip.d.ts +0 -0
- /package/{dist → dist-types}/components/Strip/index.d.ts +0 -0
- /package/{dist → dist-types}/components/SummaryButton/SummaryButton.d.ts +0 -0
- /package/{dist → dist-types}/components/SummaryButton/index.d.ts +0 -0
- /package/{dist → dist-types}/components/Switch/Switch.d.ts +0 -0
- /package/{dist → dist-types}/components/Switch/index.d.ts +0 -0
- /package/{dist → dist-types}/components/Table/Table.d.ts +0 -0
- /package/{dist → dist-types}/components/Table/index.d.ts +0 -0
- /package/{dist → dist-types}/components/TableCell/TableCell.d.ts +0 -0
- /package/{dist → dist-types}/components/TableCell/index.d.ts +0 -0
- /package/{dist → dist-types}/components/TableHeader/TableHeader.d.ts +0 -0
- /package/{dist → dist-types}/components/TableHeader/index.d.ts +0 -0
- /package/{dist → dist-types}/components/TablePagination/TablePagination.d.ts +0 -0
- /package/{dist → dist-types}/components/TablePagination/TablePaginationControls/TablePaginationControls.d.ts +0 -0
- /package/{dist → dist-types}/components/TablePagination/TablePaginationControls/index.d.ts +0 -0
- /package/{dist → dist-types}/components/TablePagination/index.d.ts +0 -0
- /package/{dist → dist-types}/components/TablePagination/utils.d.ts +0 -0
- /package/{dist → dist-types}/components/TableRow/TableRow.d.ts +0 -0
- /package/{dist → dist-types}/components/TableRow/index.d.ts +0 -0
- /package/{dist → dist-types}/components/Tabs/Tabs.d.ts +0 -0
- /package/{dist → dist-types}/components/Tabs/index.d.ts +0 -0
- /package/{dist → dist-types}/components/Textarea/Textarea.d.ts +0 -0
- /package/{dist → dist-types}/components/Textarea/index.d.ts +0 -0
- /package/{dist → dist-types}/components/Tooltip/Tooltip.d.ts +0 -0
- /package/{dist → dist-types}/components/Tooltip/index.d.ts +0 -0
- /package/{dist → dist-types}/enums.d.ts +0 -0
- /package/{dist → dist-types}/hooks/index.d.ts +0 -0
- /package/{dist → dist-types}/hooks/useId.d.ts +0 -0
- /package/{dist → dist-types}/hooks/useListener.d.ts +0 -0
- /package/{dist → dist-types}/hooks/useOnClickOutside.d.ts +0 -0
- /package/{dist → dist-types}/hooks/useOnEscapePressed.d.ts +0 -0
- /package/{dist → dist-types}/hooks/usePagination.d.ts +0 -0
- /package/{dist → dist-types}/hooks/usePrevious.d.ts +0 -0
- /package/{dist → dist-types}/hooks/useThrottle.d.ts +0 -0
- /package/{dist → dist-types}/hooks/useWindowFitment.d.ts +0 -0
- /package/{dist → dist-types}/index.d.ts +0 -0
- /package/{dist → dist-types}/types/index.d.ts +0 -0
- /package/{dist → dist-types}/utils.d.ts +0 -0
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import Notification from "./Notification";
|
|
3
|
-
declare const meta: Meta<typeof Notification>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof Notification>;
|
|
6
|
-
/**
|
|
7
|
-
* The information severity should be used to convey an information message.
|
|
8
|
-
*/
|
|
9
|
-
export declare const Information: Story;
|
|
10
|
-
/**
|
|
11
|
-
* The caution severity should be used to convey information that is not critical but the user should be aware of.
|
|
12
|
-
*/
|
|
13
|
-
export declare const Caution: Story;
|
|
14
|
-
/**
|
|
15
|
-
* The negative severity should be used to convey information that is critical and the user should take action.
|
|
16
|
-
*/
|
|
17
|
-
export declare const Negative: Story;
|
|
18
|
-
/**
|
|
19
|
-
* The positive severity should be used to convey success or completion.
|
|
20
|
-
*/
|
|
21
|
-
export declare const Positive: Story;
|
|
22
|
-
/**
|
|
23
|
-
* When vertical space is limited, you can use the inline variant.
|
|
24
|
-
*/
|
|
25
|
-
export declare const Inline: Story;
|
|
26
|
-
/**
|
|
27
|
-
* In cases where a notification sits inside another component, such as a table cell or a card, it may be useful to remove the outer border and highlight bar.
|
|
28
|
-
*/
|
|
29
|
-
export declare const Borderless: Story;
|
|
30
|
-
/**
|
|
31
|
-
* Actions will appear below the notification message.
|
|
32
|
-
*/
|
|
33
|
-
export declare const Actions: Story;
|
|
34
|
-
/**
|
|
35
|
-
* Notifications that can be dismissed should be given an onDismiss function.
|
|
36
|
-
*/
|
|
37
|
-
export declare const Dismissible: Story;
|
|
38
|
-
/**
|
|
39
|
-
* Notifications can be automatically dismissed after a timeout interval.
|
|
40
|
-
*/
|
|
41
|
-
export declare const Timeout: Story;
|
|
42
|
-
/**
|
|
43
|
-
* For notifications in which recency is important, you can include a section for time.
|
|
44
|
-
*/
|
|
45
|
-
export declare const Timestamp: Story;
|
|
@@ -1,201 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.Timestamp = exports.Timeout = exports.Positive = exports.Negative = exports.Inline = exports.Information = exports.Dismissible = exports.Caution = exports.Borderless = exports.Actions = void 0;
|
|
7
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _Notification = _interopRequireWildcard(require("./Notification"));
|
|
9
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
10
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
11
|
-
const meta = {
|
|
12
|
-
component: _Notification.default,
|
|
13
|
-
tags: ["autodocs"],
|
|
14
|
-
argTypes: {
|
|
15
|
-
borderless: {
|
|
16
|
-
control: {
|
|
17
|
-
type: "boolean"
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
children: {
|
|
21
|
-
control: {
|
|
22
|
-
type: "text"
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
inline: {
|
|
26
|
-
control: {
|
|
27
|
-
type: "boolean"
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
severity: {
|
|
31
|
-
control: {
|
|
32
|
-
type: "radio"
|
|
33
|
-
},
|
|
34
|
-
options: Object.values(_Notification.NotificationSeverity)
|
|
35
|
-
},
|
|
36
|
-
timestamp: {
|
|
37
|
-
control: {
|
|
38
|
-
type: "text"
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
title: {
|
|
42
|
-
control: {
|
|
43
|
-
type: "text"
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
args: {
|
|
48
|
-
borderless: false,
|
|
49
|
-
inline: false,
|
|
50
|
-
severity: _Notification.NotificationSeverity.INFORMATION
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
var _default = exports.default = meta;
|
|
54
|
-
/**
|
|
55
|
-
* The information severity should be used to convey an information message.
|
|
56
|
-
*/
|
|
57
|
-
const Information = exports.Information = {
|
|
58
|
-
name: "Information",
|
|
59
|
-
args: {
|
|
60
|
-
children: "Anyone with access can view your invited users.",
|
|
61
|
-
severity: "information",
|
|
62
|
-
title: "Permissions changed"
|
|
63
|
-
}
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* The caution severity should be used to convey information that is not critical but the user should be aware of.
|
|
68
|
-
*/
|
|
69
|
-
const Caution = exports.Caution = {
|
|
70
|
-
name: "Caution",
|
|
71
|
-
args: {
|
|
72
|
-
children: "Custom storage configuration is only supported on Ubuntu, CentOS and RHEL.",
|
|
73
|
-
severity: "caution",
|
|
74
|
-
title: "Blocked"
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* The negative severity should be used to convey information that is critical and the user should take action.
|
|
80
|
-
*/
|
|
81
|
-
const Negative = exports.Negative = {
|
|
82
|
-
name: "Negative",
|
|
83
|
-
args: {
|
|
84
|
-
children: "Node must be connected to a network.",
|
|
85
|
-
severity: "negative",
|
|
86
|
-
title: "Error"
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* The positive severity should be used to convey success or completion.
|
|
92
|
-
*/
|
|
93
|
-
const Positive = exports.Positive = {
|
|
94
|
-
name: "Positive",
|
|
95
|
-
args: {
|
|
96
|
-
children: "Code successfully reformatted.",
|
|
97
|
-
severity: "positive",
|
|
98
|
-
title: "Success"
|
|
99
|
-
}
|
|
100
|
-
};
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* When vertical space is limited, you can use the inline variant.
|
|
104
|
-
*/
|
|
105
|
-
const Inline = exports.Inline = {
|
|
106
|
-
name: "Inline",
|
|
107
|
-
args: {
|
|
108
|
-
children: "Not enough space.",
|
|
109
|
-
inline: true,
|
|
110
|
-
severity: "negative",
|
|
111
|
-
title: "Error:"
|
|
112
|
-
}
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* In cases where a notification sits inside another component, such as a table cell or a card, it may be useful to remove the outer border and highlight bar.
|
|
117
|
-
*/
|
|
118
|
-
const Borderless = exports.Borderless = {
|
|
119
|
-
name: "Borderless",
|
|
120
|
-
args: {
|
|
121
|
-
borderless: true,
|
|
122
|
-
children: "Only 8GB storage remaining.",
|
|
123
|
-
severity: "caution",
|
|
124
|
-
title: "Warning"
|
|
125
|
-
}
|
|
126
|
-
};
|
|
127
|
-
|
|
128
|
-
/**
|
|
129
|
-
* Actions will appear below the notification message.
|
|
130
|
-
*/
|
|
131
|
-
const Actions = exports.Actions = {
|
|
132
|
-
name: "Actions",
|
|
133
|
-
args: {
|
|
134
|
-
actions: [{
|
|
135
|
-
label: "Action 1",
|
|
136
|
-
onClick: () => null
|
|
137
|
-
}, {
|
|
138
|
-
label: "Action 2",
|
|
139
|
-
onClick: () => null
|
|
140
|
-
}],
|
|
141
|
-
children: "Body lorem ipsum dolor sit amet consequiteor. Lorem ipsum dolor sit amet consequiteor.",
|
|
142
|
-
severity: "information",
|
|
143
|
-
title: "Title"
|
|
144
|
-
}
|
|
145
|
-
};
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* Notifications that can be dismissed should be given an onDismiss function.
|
|
149
|
-
*/
|
|
150
|
-
const Dismissible = exports.Dismissible = {
|
|
151
|
-
render: () => {
|
|
152
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
153
|
-
const [show, setShow] = (0, _react.useState)(true);
|
|
154
|
-
if (!show) {
|
|
155
|
-
return null;
|
|
156
|
-
}
|
|
157
|
-
return /*#__PURE__*/_react.default.createElement(_Notification.default, {
|
|
158
|
-
onDismiss: () => setShow(false),
|
|
159
|
-
title: "Dismissible"
|
|
160
|
-
}, "Click the dismiss button to get rid of me.");
|
|
161
|
-
},
|
|
162
|
-
name: "Dismissible"
|
|
163
|
-
};
|
|
164
|
-
|
|
165
|
-
/**
|
|
166
|
-
* Notifications can be automatically dismissed after a timeout interval.
|
|
167
|
-
*/
|
|
168
|
-
const Timeout = exports.Timeout = {
|
|
169
|
-
render: () => {
|
|
170
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
171
|
-
const [show, setShow] = (0, _react.useState)(true);
|
|
172
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
173
|
-
const [timer, setTimer] = (0, _react.useState)(0);
|
|
174
|
-
if (!show) {
|
|
175
|
-
return null;
|
|
176
|
-
}
|
|
177
|
-
return /*#__PURE__*/_react.default.createElement(_Notification.default, {
|
|
178
|
-
actions: [{
|
|
179
|
-
label: "Start timer",
|
|
180
|
-
onClick: () => setTimer(3000)
|
|
181
|
-
}],
|
|
182
|
-
onDismiss: () => setShow(false),
|
|
183
|
-
timeout: timer,
|
|
184
|
-
title: "Timeout"
|
|
185
|
-
}, "Click the action to start a 3 second timer.");
|
|
186
|
-
},
|
|
187
|
-
name: "Timeout"
|
|
188
|
-
};
|
|
189
|
-
|
|
190
|
-
/**
|
|
191
|
-
* For notifications in which recency is important, you can include a section for time.
|
|
192
|
-
*/
|
|
193
|
-
const Timestamp = exports.Timestamp = {
|
|
194
|
-
name: "Timestamp",
|
|
195
|
-
args: {
|
|
196
|
-
children: "Body lorem ipsum dolor sit amet consequiteor. Lorem ipsum dolor sit amet consequiteor.",
|
|
197
|
-
severity: "information",
|
|
198
|
-
timestamp: "1h ago",
|
|
199
|
-
title: "Title"
|
|
200
|
-
}
|
|
201
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import Pagination from "./Pagination";
|
|
3
|
-
declare const meta: Meta<typeof Pagination>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof Pagination>;
|
|
6
|
-
export declare const Default: Story;
|
|
7
|
-
export declare const TruncatedNumberedPagination: Story;
|
|
8
|
-
export declare const DisabledControlsNumberedPagination: Story;
|
|
9
|
-
export declare const CenteredNumberedPagination: Story;
|
|
10
|
-
export declare const DisabledPaginationItemsNumberedPagination: Story;
|
|
11
|
-
export declare const DefaultButtonsOnlyPagination: Story;
|
|
12
|
-
export declare const DefaultButtonLabelsButtonsOnlyPagination: Story;
|
|
13
|
-
export declare const CustomButtonLabelsButtonsOnlyPagination: Story;
|
|
14
|
-
export declare const CenteredButtonsOnlyPagination: Story;
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.TruncatedNumberedPagination = exports.DisabledPaginationItemsNumberedPagination = exports.DisabledControlsNumberedPagination = exports.DefaultButtonsOnlyPagination = exports.DefaultButtonLabelsButtonsOnlyPagination = exports.Default = exports.CustomButtonLabelsButtonsOnlyPagination = exports.CenteredNumberedPagination = exports.CenteredButtonsOnlyPagination = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _Pagination = _interopRequireDefault(require("./Pagination"));
|
|
9
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
-
const meta = {
|
|
11
|
-
component: _Pagination.default,
|
|
12
|
-
tags: ["autodocs"]
|
|
13
|
-
};
|
|
14
|
-
var _default = exports.default = meta;
|
|
15
|
-
const Default = exports.Default = {
|
|
16
|
-
name: "Default",
|
|
17
|
-
args: {
|
|
18
|
-
itemsPerPage: 20,
|
|
19
|
-
totalItems: 100,
|
|
20
|
-
paginate: () => {},
|
|
21
|
-
currentPage: 3
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
const TruncatedNumberedPagination = exports.TruncatedNumberedPagination = {
|
|
25
|
-
render: () => /*#__PURE__*/_react.default.createElement(_Pagination.default, {
|
|
26
|
-
itemsPerPage: 10,
|
|
27
|
-
totalItems: 1000,
|
|
28
|
-
paginate: () => {},
|
|
29
|
-
currentPage: 34
|
|
30
|
-
}),
|
|
31
|
-
name: "Truncated (Numbered Pagination)"
|
|
32
|
-
};
|
|
33
|
-
const DisabledControlsNumberedPagination = exports.DisabledControlsNumberedPagination = {
|
|
34
|
-
render: () => /*#__PURE__*/_react.default.createElement(_Pagination.default, {
|
|
35
|
-
itemsPerPage: 20,
|
|
36
|
-
totalItems: 100,
|
|
37
|
-
paginate: () => {},
|
|
38
|
-
currentPage: 1
|
|
39
|
-
}),
|
|
40
|
-
name: "Disabled controls (Numbered Pagination)"
|
|
41
|
-
};
|
|
42
|
-
const CenteredNumberedPagination = exports.CenteredNumberedPagination = {
|
|
43
|
-
render: () => /*#__PURE__*/_react.default.createElement(_Pagination.default, {
|
|
44
|
-
itemsPerPage: 10,
|
|
45
|
-
totalItems: 50,
|
|
46
|
-
paginate: () => {},
|
|
47
|
-
currentPage: 1,
|
|
48
|
-
centered: true
|
|
49
|
-
}),
|
|
50
|
-
name: "Centered (Numbered Pagination)"
|
|
51
|
-
};
|
|
52
|
-
const DisabledPaginationItemsNumberedPagination = exports.DisabledPaginationItemsNumberedPagination = {
|
|
53
|
-
render: () => /*#__PURE__*/_react.default.createElement(_Pagination.default, {
|
|
54
|
-
itemsPerPage: 10,
|
|
55
|
-
totalItems: 50,
|
|
56
|
-
paginate: () => {},
|
|
57
|
-
currentPage: 1,
|
|
58
|
-
hideNumbers: true
|
|
59
|
-
}),
|
|
60
|
-
name: "Disabled pagination items (Numbered Pagination)"
|
|
61
|
-
};
|
|
62
|
-
const DefaultButtonsOnlyPagination = exports.DefaultButtonsOnlyPagination = {
|
|
63
|
-
render: () => /*#__PURE__*/_react.default.createElement(_Pagination.default, {
|
|
64
|
-
onForward: () => {},
|
|
65
|
-
onBack: () => {}
|
|
66
|
-
}),
|
|
67
|
-
name: "Default (Buttons-only Pagination)"
|
|
68
|
-
};
|
|
69
|
-
const DefaultButtonLabelsButtonsOnlyPagination = exports.DefaultButtonLabelsButtonsOnlyPagination = {
|
|
70
|
-
render: () => /*#__PURE__*/_react.default.createElement(_Pagination.default, {
|
|
71
|
-
onForward: () => {},
|
|
72
|
-
onBack: () => {},
|
|
73
|
-
showLabels: true
|
|
74
|
-
}),
|
|
75
|
-
name: "Default button labels (Buttons-only Pagination)"
|
|
76
|
-
};
|
|
77
|
-
const CustomButtonLabelsButtonsOnlyPagination = exports.CustomButtonLabelsButtonsOnlyPagination = {
|
|
78
|
-
render: () => /*#__PURE__*/_react.default.createElement(_Pagination.default, {
|
|
79
|
-
onForward: () => {},
|
|
80
|
-
onBack: () => {},
|
|
81
|
-
showLabels: true,
|
|
82
|
-
forwardLabel: "Custom forward label",
|
|
83
|
-
backLabel: "Custom back label"
|
|
84
|
-
}),
|
|
85
|
-
name: "Custom button labels (Buttons-only Pagination)"
|
|
86
|
-
};
|
|
87
|
-
const CenteredButtonsOnlyPagination = exports.CenteredButtonsOnlyPagination = {
|
|
88
|
-
render: () => /*#__PURE__*/_react.default.createElement(_Pagination.default, {
|
|
89
|
-
onForward: () => {},
|
|
90
|
-
onBack: () => {},
|
|
91
|
-
centered: true
|
|
92
|
-
}),
|
|
93
|
-
name: "Centered (Buttons-only Pagination)"
|
|
94
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import Panel from "./Panel";
|
|
3
|
-
declare const meta: Meta<typeof Panel>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof Panel>;
|
|
6
|
-
export declare const Default: Story;
|
|
7
|
-
export declare const Header: Story;
|
|
8
|
-
/**
|
|
9
|
-
* The logo may be provided as attributes to use the standard logo. If this is
|
|
10
|
-
* not sufficient the a `ReactNode` can be passed to the `logo` prop instead.
|
|
11
|
-
*/
|
|
12
|
-
export declare const Logo: Story;
|
|
13
|
-
/**
|
|
14
|
-
* If the default header does not meet your needs then a `ReactNode` can be
|
|
15
|
-
* passed to the `header` prop to replace the header.
|
|
16
|
-
*/
|
|
17
|
-
export declare const CustomHeader: Story;
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.Logo = exports.Header = exports.Default = exports.CustomHeader = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _Panel = _interopRequireDefault(require("./Panel"));
|
|
9
|
-
var _Button = _interopRequireDefault(require("../Button"));
|
|
10
|
-
var _Icon = _interopRequireDefault(require("../Icon"));
|
|
11
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
-
const meta = {
|
|
13
|
-
component: _Panel.default,
|
|
14
|
-
tags: ["autodocs"]
|
|
15
|
-
};
|
|
16
|
-
var _default = exports.default = meta;
|
|
17
|
-
const Default = exports.Default = {
|
|
18
|
-
args: {
|
|
19
|
-
children: "Panel content",
|
|
20
|
-
title: "Panel"
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
const Header = exports.Header = {
|
|
24
|
-
args: {
|
|
25
|
-
controls: /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
26
|
-
appearance: "positive"
|
|
27
|
-
}, /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
28
|
-
name: "plus",
|
|
29
|
-
light: true
|
|
30
|
-
}), " Create"),
|
|
31
|
-
title: "Panel title",
|
|
32
|
-
titleComponent: "h1"
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* The logo may be provided as attributes to use the standard logo. If this is
|
|
38
|
-
* not sufficient the a `ReactNode` can be passed to the `logo` prop instead.
|
|
39
|
-
*/
|
|
40
|
-
const Logo = exports.Logo = {
|
|
41
|
-
args: {
|
|
42
|
-
logo: {
|
|
43
|
-
icon: "https://assets.ubuntu.com/v1/7144ec6d-logo-jaas-icon.svg",
|
|
44
|
-
name: "https://assets.ubuntu.com/v1/a85f7947-juju_black-text-only.svg",
|
|
45
|
-
nameAlt: "Juju"
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* If the default header does not meet your needs then a `ReactNode` can be
|
|
52
|
-
* passed to the `header` prop to replace the header.
|
|
53
|
-
*/
|
|
54
|
-
const CustomHeader = exports.CustomHeader = {
|
|
55
|
-
args: {
|
|
56
|
-
header: /*#__PURE__*/_react.default.createElement("div", {
|
|
57
|
-
className: "p-panel__header"
|
|
58
|
-
}, "This header replaces the entire header area")
|
|
59
|
-
}
|
|
60
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import PasswordToggle from "./PasswordToggle";
|
|
3
|
-
declare const meta: Meta<typeof PasswordToggle>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof PasswordToggle>;
|
|
6
|
-
export declare const Default: Story;
|
|
7
|
-
export declare const ReadOnly: Story;
|
|
8
|
-
export declare const Error: Story;
|
|
9
|
-
export declare const Success: Story;
|
|
10
|
-
export declare const Caution: Story;
|
|
11
|
-
export declare const Help: Story;
|
|
12
|
-
export declare const Disabled: Story;
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.Success = exports.ReadOnly = exports.Help = exports.Error = exports.Disabled = exports.Default = exports.Caution = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _PasswordToggle = _interopRequireDefault(require("./PasswordToggle"));
|
|
9
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
-
const meta = {
|
|
11
|
-
component: _PasswordToggle.default,
|
|
12
|
-
tags: ["autodocs"]
|
|
13
|
-
};
|
|
14
|
-
var _default = exports.default = meta;
|
|
15
|
-
const Default = exports.Default = {
|
|
16
|
-
render: () => /*#__PURE__*/_react.default.createElement(_PasswordToggle.default, {
|
|
17
|
-
id: "examplePassword1",
|
|
18
|
-
label: "Password"
|
|
19
|
-
}),
|
|
20
|
-
name: "Default"
|
|
21
|
-
};
|
|
22
|
-
const ReadOnly = exports.ReadOnly = {
|
|
23
|
-
render: () => /*#__PURE__*/_react.default.createElement(_PasswordToggle.default, {
|
|
24
|
-
id: "examplePassword2",
|
|
25
|
-
label: "Password",
|
|
26
|
-
readOnly: true,
|
|
27
|
-
defaultValue: "password"
|
|
28
|
-
}),
|
|
29
|
-
name: "Read only"
|
|
30
|
-
};
|
|
31
|
-
const Error = exports.Error = {
|
|
32
|
-
render: () => /*#__PURE__*/_react.default.createElement(_PasswordToggle.default, {
|
|
33
|
-
error: "This field is required.",
|
|
34
|
-
id: "examplePassword3",
|
|
35
|
-
label: "Password",
|
|
36
|
-
defaultValue: "password"
|
|
37
|
-
}),
|
|
38
|
-
name: "Error"
|
|
39
|
-
};
|
|
40
|
-
const Success = exports.Success = {
|
|
41
|
-
render: () => /*#__PURE__*/_react.default.createElement(_PasswordToggle.default, {
|
|
42
|
-
success: "Strong password",
|
|
43
|
-
id: "examplePassword4",
|
|
44
|
-
label: "Password",
|
|
45
|
-
defaultValue: "password"
|
|
46
|
-
}),
|
|
47
|
-
name: "Success"
|
|
48
|
-
};
|
|
49
|
-
const Caution = exports.Caution = {
|
|
50
|
-
render: () => /*#__PURE__*/_react.default.createElement(_PasswordToggle.default, {
|
|
51
|
-
caution: "Weak password",
|
|
52
|
-
id: "examplePassword5",
|
|
53
|
-
label: "Password",
|
|
54
|
-
defaultValue: "password"
|
|
55
|
-
}),
|
|
56
|
-
name: "Caution"
|
|
57
|
-
};
|
|
58
|
-
const Help = exports.Help = {
|
|
59
|
-
render: () => /*#__PURE__*/_react.default.createElement(_PasswordToggle.default, {
|
|
60
|
-
help: "Enter a secure password",
|
|
61
|
-
id: "examplePassword6",
|
|
62
|
-
label: "Password"
|
|
63
|
-
}),
|
|
64
|
-
name: "Help"
|
|
65
|
-
};
|
|
66
|
-
const Disabled = exports.Disabled = {
|
|
67
|
-
render: () => /*#__PURE__*/_react.default.createElement(_PasswordToggle.default, {
|
|
68
|
-
disabled: true,
|
|
69
|
-
id: "examplePassword7",
|
|
70
|
-
label: "Password",
|
|
71
|
-
defaultValue: "password"
|
|
72
|
-
}),
|
|
73
|
-
name: "Disabled"
|
|
74
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import RadioInput from "./RadioInput";
|
|
3
|
-
declare const meta: Meta<typeof RadioInput>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof RadioInput>;
|
|
6
|
-
export declare const Default: Story;
|
|
7
|
-
export declare const Children: Story;
|
|
8
|
-
export declare const Disabled: Story;
|
|
9
|
-
export declare const Required: Story;
|
|
10
|
-
export declare const Inline: Story;
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.Required = exports.Inline = exports.Disabled = exports.Default = exports.Children = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _RadioInput = _interopRequireDefault(require("./RadioInput"));
|
|
9
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
-
const meta = {
|
|
11
|
-
component: _RadioInput.default,
|
|
12
|
-
tags: ["autodocs"],
|
|
13
|
-
argTypes: {
|
|
14
|
-
label: {
|
|
15
|
-
control: {
|
|
16
|
-
type: "text"
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
disabled: {
|
|
20
|
-
control: {
|
|
21
|
-
type: "boolean"
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
required: {
|
|
25
|
-
control: {
|
|
26
|
-
type: "boolean"
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
inline: {
|
|
30
|
-
control: {
|
|
31
|
-
type: "boolean"
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
indeterminate: {
|
|
35
|
-
control: {
|
|
36
|
-
type: "boolean"
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
args: {
|
|
41
|
-
label: "RadioInput"
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
var _default = exports.default = meta;
|
|
45
|
-
const Default = exports.Default = {
|
|
46
|
-
render: () => /*#__PURE__*/_react.default.createElement(_RadioInput.default, {
|
|
47
|
-
label: "RadioInput"
|
|
48
|
-
}),
|
|
49
|
-
name: "Default"
|
|
50
|
-
};
|
|
51
|
-
const Children = exports.Children = {
|
|
52
|
-
render: () => /*#__PURE__*/_react.default.createElement(_RadioInput.default, {
|
|
53
|
-
label: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, "I agree to", /*#__PURE__*/_react.default.createElement("a", {
|
|
54
|
-
href: "http://ubuntu.com/legal"
|
|
55
|
-
}, "Terms and Conditions")),
|
|
56
|
-
name: "RadioInput"
|
|
57
|
-
}),
|
|
58
|
-
name: "Children"
|
|
59
|
-
};
|
|
60
|
-
const Disabled = exports.Disabled = {
|
|
61
|
-
render: () => /*#__PURE__*/_react.default.createElement(_RadioInput.default, {
|
|
62
|
-
label: "Disabled",
|
|
63
|
-
name: "RadioInput",
|
|
64
|
-
disabled: true
|
|
65
|
-
}),
|
|
66
|
-
name: "Disabled"
|
|
67
|
-
};
|
|
68
|
-
const Required = exports.Required = {
|
|
69
|
-
render: () => /*#__PURE__*/_react.default.createElement(_RadioInput.default, {
|
|
70
|
-
label: "Required",
|
|
71
|
-
name: "RadioInput",
|
|
72
|
-
required: true
|
|
73
|
-
}),
|
|
74
|
-
name: "Required"
|
|
75
|
-
};
|
|
76
|
-
const Inline = exports.Inline = {
|
|
77
|
-
render: () => /*#__PURE__*/_react.default.createElement(_RadioInput.default, {
|
|
78
|
-
label: "Inline",
|
|
79
|
-
name: "RadioInput",
|
|
80
|
-
inline: true
|
|
81
|
-
}),
|
|
82
|
-
name: "Inline"
|
|
83
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import Row from "./Row";
|
|
3
|
-
declare const meta: Meta<typeof Row>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof Row>;
|
|
6
|
-
/**
|
|
7
|
-
* See [Col](?path=/docs/components-col--docs) for grid details.
|
|
8
|
-
*/
|
|
9
|
-
export declare const Default: Story;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.Default = void 0;
|
|
7
|
-
var _Row = _interopRequireDefault(require("./Row"));
|
|
8
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
-
const meta = {
|
|
10
|
-
component: _Row.default,
|
|
11
|
-
tags: ["autodocs"],
|
|
12
|
-
argTypes: {
|
|
13
|
-
children: {
|
|
14
|
-
control: {
|
|
15
|
-
type: "text"
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
var _default = exports.default = meta;
|
|
21
|
-
/**
|
|
22
|
-
* See [Col](?path=/docs/components-col--docs) for grid details.
|
|
23
|
-
*/
|
|
24
|
-
const Default = exports.Default = {
|
|
25
|
-
name: "Default",
|
|
26
|
-
args: {
|
|
27
|
-
children: "children..."
|
|
28
|
-
}
|
|
29
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import SearchAndFilter from "./SearchAndFilter";
|
|
3
|
-
declare const meta: Meta<typeof SearchAndFilter>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof SearchAndFilter>;
|
|
6
|
-
export declare const Default: Story;
|
|
7
|
-
export declare const WithDataSet: Story;
|
|
8
|
-
export declare const WithExistingSearchData: Story;
|