@canonical/react-components 1.3.1 → 1.3.2
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/package.json +7 -10
- package/dist-esm/components/Accordion/Accordion.js +0 -52
- package/dist-esm/components/Accordion/AccordionSection/AccordionSection.js +0 -47
- package/dist-esm/components/Accordion/AccordionSection/index.js +0 -1
- package/dist-esm/components/Accordion/index.js +0 -1
- package/dist-esm/components/ActionButton/ActionButton.js +0 -106
- package/dist-esm/components/ActionButton/index.js +0 -1
- package/dist-esm/components/ApplicationLayout/AppAside/AppAside.js +0 -29
- package/dist-esm/components/ApplicationLayout/AppAside/index.js +0 -1
- package/dist-esm/components/ApplicationLayout/AppMain/AppMain.js +0 -21
- package/dist-esm/components/ApplicationLayout/AppMain/index.js +0 -1
- package/dist-esm/components/ApplicationLayout/AppNavigation/AppNavigation.js +0 -31
- package/dist-esm/components/ApplicationLayout/AppNavigation/index.js +0 -1
- package/dist-esm/components/ApplicationLayout/AppNavigationBar/AppNavigationBar.js +0 -24
- package/dist-esm/components/ApplicationLayout/AppNavigationBar/index.js +0 -1
- package/dist-esm/components/ApplicationLayout/AppStatus/AppStatus.js +0 -21
- package/dist-esm/components/ApplicationLayout/AppStatus/index.js +0 -1
- package/dist-esm/components/ApplicationLayout/Application/Application.js +0 -22
- package/dist-esm/components/ApplicationLayout/Application/index.js +0 -1
- package/dist-esm/components/ApplicationLayout/ApplicationLayout.js +0 -113
- package/dist-esm/components/ApplicationLayout/index.js +0 -7
- package/dist-esm/components/ArticlePagination/ArticlePagination.js +0 -39
- package/dist-esm/components/ArticlePagination/index.js +0 -1
- package/dist-esm/components/Badge/Badge.js +0 -64
- package/dist-esm/components/Badge/index.js +0 -1
- package/dist-esm/components/Button/Button.js +0 -55
- package/dist-esm/components/Button/index.js +0 -1
- package/dist-esm/components/Card/Card.js +0 -45
- package/dist-esm/components/Card/index.js +0 -1
- package/dist-esm/components/CheckboxInput/CheckableInput/CheckableInput.js +0 -35
- package/dist-esm/components/CheckboxInput/CheckableInput/index.js +0 -1
- package/dist-esm/components/CheckboxInput/CheckboxInput.js +0 -24
- package/dist-esm/components/CheckboxInput/index.js +0 -1
- package/dist-esm/components/Chip/Chip.js +0 -81
- package/dist-esm/components/Chip/index.js +0 -1
- package/dist-esm/components/Code/Code.js +0 -49
- package/dist-esm/components/Code/index.js +0 -1
- package/dist-esm/components/CodeSnippet/CodeSnippet.js +0 -28
- package/dist-esm/components/CodeSnippet/CodeSnippetBlock.js +0 -64
- package/dist-esm/components/CodeSnippet/CodeSnippetDropdown.js +0 -27
- package/dist-esm/components/CodeSnippet/index.js +0 -2
- package/dist-esm/components/Col/Col.js +0 -38
- package/dist-esm/components/Col/index.js +0 -1
- package/dist-esm/components/ConfirmationButton/ConfirmationButton.js +0 -63
- package/dist-esm/components/ConfirmationButton/index.js +0 -1
- package/dist-esm/components/ConfirmationModal/ConfirmationModal.js +0 -47
- package/dist-esm/components/ConfirmationModal/index.js +0 -1
- package/dist-esm/components/ContextualMenu/ContextualMenu.js +0 -215
- package/dist-esm/components/ContextualMenu/ContextualMenuDropdown/ContextualMenuDropdown.js +0 -249
- package/dist-esm/components/ContextualMenu/ContextualMenuDropdown/index.js +0 -1
- package/dist-esm/components/ContextualMenu/index.js +0 -1
- package/dist-esm/components/EmptyState/EmptyState.js +0 -28
- package/dist-esm/components/EmptyState/index.js +0 -1
- package/dist-esm/components/Field/Field.js +0 -126
- package/dist-esm/components/Field/index.js +0 -1
- package/dist-esm/components/Form/Form.js +0 -28
- package/dist-esm/components/Form/index.js +0 -1
- package/dist-esm/components/FormikField/FormikField.js +0 -33
- package/dist-esm/components/FormikField/index.js +0 -1
- package/dist-esm/components/Icon/Icon.js +0 -61
- package/dist-esm/components/Icon/index.js +0 -1
- package/dist-esm/components/Input/Input.js +0 -103
- package/dist-esm/components/Input/index.js +0 -1
- package/dist-esm/components/Label/Label.js +0 -27
- package/dist-esm/components/Label/index.js +0 -1
- package/dist-esm/components/Link/Link.js +0 -37
- package/dist-esm/components/Link/index.js +0 -1
- package/dist-esm/components/List/List.js +0 -110
- package/dist-esm/components/List/index.js +0 -1
- package/dist-esm/components/Loader/Loader.js +0 -14
- package/dist-esm/components/Loader/index.js +0 -1
- package/dist-esm/components/LoginPageLayout/LoginPageLayout.js +0 -63
- package/dist-esm/components/LoginPageLayout/index.js +0 -1
- package/dist-esm/components/MainTable/MainTable.js +0 -211
- package/dist-esm/components/MainTable/index.js +0 -1
- package/dist-esm/components/Modal/Modal.js +0 -135
- package/dist-esm/components/Modal/index.js +0 -1
- package/dist-esm/components/ModularTable/ModularTable.js +0 -166
- package/dist-esm/components/ModularTable/index.js +0 -1
- package/dist-esm/components/MultiSelect/FadeInDown/FadeInDown.js +0 -25
- package/dist-esm/components/MultiSelect/FadeInDown/index.js +0 -1
- package/dist-esm/components/MultiSelect/MultiSelect.js +0 -308
- package/dist-esm/components/MultiSelect/index.js +0 -1
- package/dist-esm/components/Navigation/Navigation.js +0 -215
- package/dist-esm/components/Navigation/NavigationLink/NavigationLink.js +0 -58
- package/dist-esm/components/Navigation/NavigationLink/index.js +0 -1
- package/dist-esm/components/Navigation/NavigationMenu/NavigationMenu.js +0 -57
- package/dist-esm/components/Navigation/NavigationMenu/index.js +0 -1
- package/dist-esm/components/Navigation/index.js +0 -1
- package/dist-esm/components/Navigation/types.js +0 -1
- package/dist-esm/components/Notification/Notification.js +0 -119
- package/dist-esm/components/Notification/index.js +0 -1
- package/dist-esm/components/NotificationProvider/NotificationProvider.js +0 -83
- package/dist-esm/components/NotificationProvider/index.js +0 -2
- package/dist-esm/components/NotificationProvider/messageBuilder.js +0 -31
- package/dist-esm/components/NotificationProvider/types.js +0 -1
- package/dist-esm/components/Pagination/Pagination.js +0 -173
- package/dist-esm/components/Pagination/PaginationButton/PaginationButton.js +0 -31
- package/dist-esm/components/Pagination/PaginationButton/index.js +0 -1
- package/dist-esm/components/Pagination/PaginationItem/PaginationItem.js +0 -20
- package/dist-esm/components/Pagination/PaginationItem/index.js +0 -1
- package/dist-esm/components/Pagination/index.js +0 -1
- package/dist-esm/components/Panel/Panel.js +0 -89
- package/dist-esm/components/Panel/index.js +0 -1
- package/dist-esm/components/PasswordToggle/PasswordToggle.js +0 -90
- package/dist-esm/components/PasswordToggle/index.js +0 -1
- package/dist-esm/components/RadioInput/RadioInput.js +0 -22
- package/dist-esm/components/RadioInput/index.js +0 -1
- package/dist-esm/components/Row/Row.js +0 -22
- package/dist-esm/components/Row/index.js +0 -1
- package/dist-esm/components/SearchAndFilter/FilterPanelSection/FilterPanelSection.js +0 -107
- package/dist-esm/components/SearchAndFilter/FilterPanelSection/index.js +0 -1
- package/dist-esm/components/SearchAndFilter/SearchAndFilter.js +0 -286
- package/dist-esm/components/SearchAndFilter/index.js +0 -1
- package/dist-esm/components/SearchAndFilter/types.js +0 -1
- package/dist-esm/components/SearchAndFilter/utils.js +0 -22
- package/dist-esm/components/SearchBox/SearchBox.js +0 -95
- package/dist-esm/components/SearchBox/index.js +0 -1
- package/dist-esm/components/Select/Select.js +0 -84
- package/dist-esm/components/Select/index.js +0 -1
- package/dist-esm/components/SideNavigation/SideNavigation.js +0 -89
- package/dist-esm/components/SideNavigation/SideNavigationBase/SideNavigationBase.js +0 -31
- package/dist-esm/components/SideNavigation/SideNavigationBase/index.js +0 -1
- package/dist-esm/components/SideNavigation/SideNavigationItem/SideNavigationItem.js +0 -32
- package/dist-esm/components/SideNavigation/SideNavigationItem/index.js +0 -1
- package/dist-esm/components/SideNavigation/SideNavigationLink/SideNavigationLink.js +0 -25
- package/dist-esm/components/SideNavigation/SideNavigationLink/index.js +0 -1
- package/dist-esm/components/SideNavigation/SideNavigationText/SideNavigationText.js +0 -20
- package/dist-esm/components/SideNavigation/SideNavigationText/index.js +0 -1
- package/dist-esm/components/SideNavigation/index.js +0 -4
- package/dist-esm/components/Slider/Slider.js +0 -83
- package/dist-esm/components/Slider/index.js +0 -1
- package/dist-esm/components/Spinner/Spinner.js +0 -36
- package/dist-esm/components/Spinner/index.js +0 -1
- package/dist-esm/components/StatusLabel/StatusLabel.js +0 -36
- package/dist-esm/components/StatusLabel/index.js +0 -1
- package/dist-esm/components/Strip/Strip.js +0 -50
- package/dist-esm/components/Strip/index.js +0 -1
- package/dist-esm/components/SummaryButton/SummaryButton.js +0 -28
- package/dist-esm/components/SummaryButton/index.js +0 -1
- package/dist-esm/components/Switch/Switch.js +0 -28
- package/dist-esm/components/Switch/index.js +0 -1
- package/dist-esm/components/Table/Table.js +0 -23
- package/dist-esm/components/Table/index.js +0 -1
- package/dist-esm/components/TableCell/TableCell.js +0 -26
- package/dist-esm/components/TableCell/index.js +0 -1
- package/dist-esm/components/TableHeader/TableHeader.js +0 -17
- package/dist-esm/components/TableHeader/index.js +0 -1
- package/dist-esm/components/TablePagination/TablePagination.js +0 -104
- package/dist-esm/components/TablePagination/TablePaginationControls/TablePaginationControls.js +0 -120
- package/dist-esm/components/TablePagination/TablePaginationControls/index.js +0 -1
- package/dist-esm/components/TablePagination/index.js +0 -1
- package/dist-esm/components/TablePagination/utils.js +0 -67
- package/dist-esm/components/TableRow/TableRow.js +0 -15
- package/dist-esm/components/TableRow/index.js +0 -1
- package/dist-esm/components/Tabs/Tabs.js +0 -42
- package/dist-esm/components/Tabs/index.js +0 -1
- package/dist-esm/components/Textarea/Textarea.js +0 -115
- package/dist-esm/components/Textarea/index.js +0 -1
- package/dist-esm/components/Tooltip/Tooltip.js +0 -245
- package/dist-esm/components/Tooltip/index.js +0 -1
- package/dist-esm/enums.js +0 -8
- package/dist-esm/hooks/index.js +0 -8
- package/dist-esm/hooks/useId.js +0 -13
- package/dist-esm/hooks/useListener.js +0 -51
- package/dist-esm/hooks/useOnClickOutside.js +0 -38
- package/dist-esm/hooks/useOnEscapePressed.js +0 -25
- package/dist-esm/hooks/usePagination.js +0 -45
- package/dist-esm/hooks/usePrevious.js +0 -16
- package/dist-esm/hooks/useThrottle.js +0 -49
- package/dist-esm/hooks/useWindowFitment.js +0 -109
- package/dist-esm/index.js +0 -69
- package/dist-esm/types/index.js +0 -1
- package/dist-esm/types/react-table-config.d.js +0 -1
- package/dist-esm/utils.js +0 -41
- /package/{dist-types → dist}/components/Accordion/Accordion.d.ts +0 -0
- /package/{dist-types → dist}/components/Accordion/AccordionSection/AccordionSection.d.ts +0 -0
- /package/{dist-types → dist}/components/Accordion/AccordionSection/index.d.ts +0 -0
- /package/{dist-types → dist}/components/Accordion/index.d.ts +0 -0
- /package/{dist-types → dist}/components/ActionButton/ActionButton.d.ts +0 -0
- /package/{dist-types → dist}/components/ActionButton/index.d.ts +0 -0
- /package/{dist-types → dist}/components/ApplicationLayout/AppAside/AppAside.d.ts +0 -0
- /package/{dist-types → dist}/components/ApplicationLayout/AppAside/index.d.ts +0 -0
- /package/{dist-types → dist}/components/ApplicationLayout/AppMain/AppMain.d.ts +0 -0
- /package/{dist-types → dist}/components/ApplicationLayout/AppMain/index.d.ts +0 -0
- /package/{dist-types → dist}/components/ApplicationLayout/AppNavigation/AppNavigation.d.ts +0 -0
- /package/{dist-types → dist}/components/ApplicationLayout/AppNavigation/index.d.ts +0 -0
- /package/{dist-types → dist}/components/ApplicationLayout/AppNavigationBar/AppNavigationBar.d.ts +0 -0
- /package/{dist-types → dist}/components/ApplicationLayout/AppNavigationBar/index.d.ts +0 -0
- /package/{dist-types → dist}/components/ApplicationLayout/AppStatus/AppStatus.d.ts +0 -0
- /package/{dist-types → dist}/components/ApplicationLayout/AppStatus/index.d.ts +0 -0
- /package/{dist-types → dist}/components/ApplicationLayout/Application/Application.d.ts +0 -0
- /package/{dist-types → dist}/components/ApplicationLayout/Application/index.d.ts +0 -0
- /package/{dist-types → dist}/components/ApplicationLayout/ApplicationLayout.d.ts +0 -0
- /package/{dist-types → dist}/components/ApplicationLayout/index.d.ts +0 -0
- /package/{dist-types → dist}/components/ArticlePagination/ArticlePagination.d.ts +0 -0
- /package/{dist-types → dist}/components/ArticlePagination/index.d.ts +0 -0
- /package/{dist-types → dist}/components/Badge/Badge.d.ts +0 -0
- /package/{dist-types → dist}/components/Badge/index.d.ts +0 -0
- /package/{dist-types → dist}/components/Button/Button.d.ts +0 -0
- /package/{dist-types → dist}/components/Button/index.d.ts +0 -0
- /package/{dist-types → dist}/components/Card/Card.d.ts +0 -0
- /package/{dist-types → dist}/components/Card/index.d.ts +0 -0
- /package/{dist-types → dist}/components/CheckboxInput/CheckableInput/CheckableInput.d.ts +0 -0
- /package/{dist-types → dist}/components/CheckboxInput/CheckableInput/index.d.ts +0 -0
- /package/{dist-types → dist}/components/CheckboxInput/CheckboxInput.d.ts +0 -0
- /package/{dist-types → dist}/components/CheckboxInput/index.d.ts +0 -0
- /package/{dist-types → dist}/components/Chip/Chip.d.ts +0 -0
- /package/{dist-types → dist}/components/Chip/index.d.ts +0 -0
- /package/{dist-types → dist}/components/Code/Code.d.ts +0 -0
- /package/{dist-types → dist}/components/Code/index.d.ts +0 -0
- /package/{dist-types → dist}/components/CodeSnippet/CodeSnippet.d.ts +0 -0
- /package/{dist-types → dist}/components/CodeSnippet/CodeSnippetBlock.d.ts +0 -0
- /package/{dist-types → dist}/components/CodeSnippet/CodeSnippetDropdown.d.ts +0 -0
- /package/{dist-types → dist}/components/CodeSnippet/index.d.ts +0 -0
- /package/{dist-types → dist}/components/Col/Col.d.ts +0 -0
- /package/{dist-types → dist}/components/Col/index.d.ts +0 -0
- /package/{dist-types → dist}/components/ConfirmationButton/ConfirmationButton.d.ts +0 -0
- /package/{dist-types → dist}/components/ConfirmationButton/index.d.ts +0 -0
- /package/{dist-types → dist}/components/ConfirmationModal/ConfirmationModal.d.ts +0 -0
- /package/{dist-types → dist}/components/ConfirmationModal/index.d.ts +0 -0
- /package/{dist-types → dist}/components/ContextualMenu/ContextualMenu.d.ts +0 -0
- /package/{dist-types → dist}/components/ContextualMenu/ContextualMenuDropdown/ContextualMenuDropdown.d.ts +0 -0
- /package/{dist-types → dist}/components/ContextualMenu/ContextualMenuDropdown/index.d.ts +0 -0
- /package/{dist-types → dist}/components/ContextualMenu/index.d.ts +0 -0
- /package/{dist-types → dist}/components/EmptyState/EmptyState.d.ts +0 -0
- /package/{dist-types → dist}/components/EmptyState/index.d.ts +0 -0
- /package/{dist-types → dist}/components/Field/Field.d.ts +0 -0
- /package/{dist-types → dist}/components/Field/index.d.ts +0 -0
- /package/{dist-types → dist}/components/Form/Form.d.ts +0 -0
- /package/{dist-types → dist}/components/Form/index.d.ts +0 -0
- /package/{dist-types → dist}/components/FormikField/FormikField.d.ts +0 -0
- /package/{dist-types → dist}/components/FormikField/index.d.ts +0 -0
- /package/{dist-types → dist}/components/Icon/Icon.d.ts +0 -0
- /package/{dist-types → dist}/components/Icon/index.d.ts +0 -0
- /package/{dist-types → dist}/components/Input/Input.d.ts +0 -0
- /package/{dist-types → dist}/components/Input/index.d.ts +0 -0
- /package/{dist-types → dist}/components/Label/Label.d.ts +0 -0
- /package/{dist-types → dist}/components/Label/index.d.ts +0 -0
- /package/{dist-types → dist}/components/Link/Link.d.ts +0 -0
- /package/{dist-types → dist}/components/Link/index.d.ts +0 -0
- /package/{dist-types → dist}/components/List/List.d.ts +0 -0
- /package/{dist-types → dist}/components/List/index.d.ts +0 -0
- /package/{dist-types → dist}/components/Loader/Loader.d.ts +0 -0
- /package/{dist-types → dist}/components/Loader/index.d.ts +0 -0
- /package/{dist-types → dist}/components/LoginPageLayout/LoginPageLayout.d.ts +0 -0
- /package/{dist-types → dist}/components/LoginPageLayout/index.d.ts +0 -0
- /package/{dist-types → dist}/components/MainTable/MainTable.d.ts +0 -0
- /package/{dist-types → dist}/components/MainTable/index.d.ts +0 -0
- /package/{dist-types → dist}/components/Modal/Modal.d.ts +0 -0
- /package/{dist-types → dist}/components/Modal/index.d.ts +0 -0
- /package/{dist-types → dist}/components/ModularTable/ModularTable.d.ts +0 -0
- /package/{dist-types → dist}/components/ModularTable/index.d.ts +0 -0
- /package/{dist-types → dist}/components/MultiSelect/FadeInDown/FadeInDown.d.ts +0 -0
- /package/{dist-types → dist}/components/MultiSelect/FadeInDown/index.d.ts +0 -0
- /package/{dist-types → dist}/components/MultiSelect/MultiSelect.d.ts +0 -0
- /package/{dist-types → dist}/components/MultiSelect/index.d.ts +0 -0
- /package/{dist-types → dist}/components/Navigation/Navigation.d.ts +0 -0
- /package/{dist-types → dist}/components/Navigation/NavigationLink/NavigationLink.d.ts +0 -0
- /package/{dist-types → dist}/components/Navigation/NavigationLink/index.d.ts +0 -0
- /package/{dist-types → dist}/components/Navigation/NavigationMenu/NavigationMenu.d.ts +0 -0
- /package/{dist-types → dist}/components/Navigation/NavigationMenu/index.d.ts +0 -0
- /package/{dist-types → dist}/components/Navigation/index.d.ts +0 -0
- /package/{dist-types → dist}/components/Navigation/types.d.ts +0 -0
- /package/{dist-types → dist}/components/Notification/Notification.d.ts +0 -0
- /package/{dist-types → dist}/components/Notification/index.d.ts +0 -0
- /package/{dist-types → dist}/components/NotificationProvider/NotificationProvider.d.ts +0 -0
- /package/{dist-types → dist}/components/NotificationProvider/index.d.ts +0 -0
- /package/{dist-types → dist}/components/NotificationProvider/messageBuilder.d.ts +0 -0
- /package/{dist-types → dist}/components/NotificationProvider/types.d.ts +0 -0
- /package/{dist-types → dist}/components/Pagination/Pagination.d.ts +0 -0
- /package/{dist-types → dist}/components/Pagination/PaginationButton/PaginationButton.d.ts +0 -0
- /package/{dist-types → dist}/components/Pagination/PaginationButton/index.d.ts +0 -0
- /package/{dist-types → dist}/components/Pagination/PaginationItem/PaginationItem.d.ts +0 -0
- /package/{dist-types → dist}/components/Pagination/PaginationItem/index.d.ts +0 -0
- /package/{dist-types → dist}/components/Pagination/index.d.ts +0 -0
- /package/{dist-types → dist}/components/Panel/Panel.d.ts +0 -0
- /package/{dist-types → dist}/components/Panel/index.d.ts +0 -0
- /package/{dist-types → dist}/components/PasswordToggle/PasswordToggle.d.ts +0 -0
- /package/{dist-types → dist}/components/PasswordToggle/index.d.ts +0 -0
- /package/{dist-types → dist}/components/RadioInput/RadioInput.d.ts +0 -0
- /package/{dist-types → dist}/components/RadioInput/index.d.ts +0 -0
- /package/{dist-types → dist}/components/Row/Row.d.ts +0 -0
- /package/{dist-types → dist}/components/Row/index.d.ts +0 -0
- /package/{dist-types → dist}/components/SearchAndFilter/FilterPanelSection/FilterPanelSection.d.ts +0 -0
- /package/{dist-types → dist}/components/SearchAndFilter/FilterPanelSection/index.d.ts +0 -0
- /package/{dist-types → dist}/components/SearchAndFilter/SearchAndFilter.d.ts +0 -0
- /package/{dist-types → dist}/components/SearchAndFilter/index.d.ts +0 -0
- /package/{dist-types → dist}/components/SearchAndFilter/types.d.ts +0 -0
- /package/{dist-types → dist}/components/SearchAndFilter/utils.d.ts +0 -0
- /package/{dist-types → dist}/components/SearchBox/SearchBox.d.ts +0 -0
- /package/{dist-types → dist}/components/SearchBox/index.d.ts +0 -0
- /package/{dist-types → dist}/components/Select/Select.d.ts +0 -0
- /package/{dist-types → dist}/components/Select/index.d.ts +0 -0
- /package/{dist-types → dist}/components/SideNavigation/SideNavigation.d.ts +0 -0
- /package/{dist-types → dist}/components/SideNavigation/SideNavigationBase/SideNavigationBase.d.ts +0 -0
- /package/{dist-types → dist}/components/SideNavigation/SideNavigationBase/index.d.ts +0 -0
- /package/{dist-types → dist}/components/SideNavigation/SideNavigationItem/SideNavigationItem.d.ts +0 -0
- /package/{dist-types → dist}/components/SideNavigation/SideNavigationItem/index.d.ts +0 -0
- /package/{dist-types → dist}/components/SideNavigation/SideNavigationLink/SideNavigationLink.d.ts +0 -0
- /package/{dist-types → dist}/components/SideNavigation/SideNavigationLink/index.d.ts +0 -0
- /package/{dist-types → dist}/components/SideNavigation/SideNavigationText/SideNavigationText.d.ts +0 -0
- /package/{dist-types → dist}/components/SideNavigation/SideNavigationText/index.d.ts +0 -0
- /package/{dist-types → dist}/components/SideNavigation/index.d.ts +0 -0
- /package/{dist-types → dist}/components/Slider/Slider.d.ts +0 -0
- /package/{dist-types → dist}/components/Slider/index.d.ts +0 -0
- /package/{dist-types → dist}/components/Spinner/Spinner.d.ts +0 -0
- /package/{dist-types → dist}/components/Spinner/index.d.ts +0 -0
- /package/{dist-types → dist}/components/StatusLabel/StatusLabel.d.ts +0 -0
- /package/{dist-types → dist}/components/StatusLabel/index.d.ts +0 -0
- /package/{dist-types → dist}/components/Strip/Strip.d.ts +0 -0
- /package/{dist-types → dist}/components/Strip/index.d.ts +0 -0
- /package/{dist-types → dist}/components/SummaryButton/SummaryButton.d.ts +0 -0
- /package/{dist-types → dist}/components/SummaryButton/index.d.ts +0 -0
- /package/{dist-types → dist}/components/Switch/Switch.d.ts +0 -0
- /package/{dist-types → dist}/components/Switch/index.d.ts +0 -0
- /package/{dist-types → dist}/components/Table/Table.d.ts +0 -0
- /package/{dist-types → dist}/components/Table/index.d.ts +0 -0
- /package/{dist-types → dist}/components/TableCell/TableCell.d.ts +0 -0
- /package/{dist-types → dist}/components/TableCell/index.d.ts +0 -0
- /package/{dist-types → dist}/components/TableHeader/TableHeader.d.ts +0 -0
- /package/{dist-types → dist}/components/TableHeader/index.d.ts +0 -0
- /package/{dist-types → dist}/components/TablePagination/TablePagination.d.ts +0 -0
- /package/{dist-types → dist}/components/TablePagination/TablePaginationControls/TablePaginationControls.d.ts +0 -0
- /package/{dist-types → dist}/components/TablePagination/TablePaginationControls/index.d.ts +0 -0
- /package/{dist-types → dist}/components/TablePagination/index.d.ts +0 -0
- /package/{dist-types → dist}/components/TablePagination/utils.d.ts +0 -0
- /package/{dist-types → dist}/components/TableRow/TableRow.d.ts +0 -0
- /package/{dist-types → dist}/components/TableRow/index.d.ts +0 -0
- /package/{dist-types → dist}/components/Tabs/Tabs.d.ts +0 -0
- /package/{dist-types → dist}/components/Tabs/index.d.ts +0 -0
- /package/{dist-types → dist}/components/Textarea/Textarea.d.ts +0 -0
- /package/{dist-types → dist}/components/Textarea/index.d.ts +0 -0
- /package/{dist-types → dist}/components/Tooltip/Tooltip.d.ts +0 -0
- /package/{dist-types → dist}/components/Tooltip/index.d.ts +0 -0
- /package/{dist-types → dist}/enums.d.ts +0 -0
- /package/{dist-types → dist}/hooks/index.d.ts +0 -0
- /package/{dist-types → dist}/hooks/useId.d.ts +0 -0
- /package/{dist-types → dist}/hooks/useListener.d.ts +0 -0
- /package/{dist-types → dist}/hooks/useOnClickOutside.d.ts +0 -0
- /package/{dist-types → dist}/hooks/useOnEscapePressed.d.ts +0 -0
- /package/{dist-types → dist}/hooks/usePagination.d.ts +0 -0
- /package/{dist-types → dist}/hooks/usePrevious.d.ts +0 -0
- /package/{dist-types → dist}/hooks/useThrottle.d.ts +0 -0
- /package/{dist-types → dist}/hooks/useWindowFitment.d.ts +0 -0
- /package/{dist-types → dist}/index.d.ts +0 -0
- /package/{dist-types → dist}/types/index.d.ts +0 -0
- /package/{dist-types → dist}/utils.d.ts +0 -0
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
var _excluded = ["children", "className", "inline", "stacked"];
|
|
2
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
4
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
|
|
5
|
-
import classNames from "classnames";
|
|
6
|
-
import React from "react";
|
|
7
|
-
/**
|
|
8
|
-
* This is a [React](https://reactjs.org/) component for the Vanilla [Form](https://docs.vanillaframework.io/base/forms).
|
|
9
|
-
*
|
|
10
|
-
* Form controls have global styling defined at the HTML element level. Labels and most input types are 100% width of the `<form>` parent element.
|
|
11
|
-
*/
|
|
12
|
-
var Form = _ref => {
|
|
13
|
-
var {
|
|
14
|
-
children,
|
|
15
|
-
className,
|
|
16
|
-
inline,
|
|
17
|
-
stacked
|
|
18
|
-
} = _ref,
|
|
19
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
20
|
-
return /*#__PURE__*/React.createElement("form", _extends({
|
|
21
|
-
className: classNames(className, {
|
|
22
|
-
"p-form": inline || stacked,
|
|
23
|
-
"p-form--inline": inline,
|
|
24
|
-
"p-form--stacked": stacked
|
|
25
|
-
})
|
|
26
|
-
}, props), children);
|
|
27
|
-
};
|
|
28
|
-
export default Form;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./Form";
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
var _excluded = ["component", "displayError", "name", "value", "label"];
|
|
2
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
4
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
|
|
5
|
-
import React from "react";
|
|
6
|
-
import { useField } from "formik";
|
|
7
|
-
import Input from "../Input";
|
|
8
|
-
/**
|
|
9
|
-
* This component makes it easier to use Vanilla form inputs with Formik. It
|
|
10
|
-
* makes use of Formik's context to automatically map errors, values, states
|
|
11
|
-
* etc. onto the provided field.
|
|
12
|
-
*/
|
|
13
|
-
var FormikField = _ref => {
|
|
14
|
-
var {
|
|
15
|
-
component: Component = Input,
|
|
16
|
-
displayError = true,
|
|
17
|
-
name,
|
|
18
|
-
value,
|
|
19
|
-
label
|
|
20
|
-
} = _ref,
|
|
21
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
22
|
-
var [field, meta] = useField({
|
|
23
|
-
name,
|
|
24
|
-
type: props.type,
|
|
25
|
-
value
|
|
26
|
-
});
|
|
27
|
-
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
28
|
-
"aria-label": label,
|
|
29
|
-
error: meta.touched && displayError ? meta.error : null,
|
|
30
|
-
label: label
|
|
31
|
-
}, field, props));
|
|
32
|
-
};
|
|
33
|
-
export default FormikField;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./FormikField";
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
var _excluded = ["className", "light", "name"];
|
|
2
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
4
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
|
|
5
|
-
import classNames from "classnames";
|
|
6
|
-
import React from "react";
|
|
7
|
-
export var ICONS = {
|
|
8
|
-
anchor: "anchor",
|
|
9
|
-
chevronDown: "chevron-down",
|
|
10
|
-
chevronUp: "chevron-up",
|
|
11
|
-
close: "close",
|
|
12
|
-
code: "code",
|
|
13
|
-
collapse: "collapse",
|
|
14
|
-
copy: "copy",
|
|
15
|
-
delete: "delete",
|
|
16
|
-
drag: "drag",
|
|
17
|
-
error: "error",
|
|
18
|
-
expand: "expand",
|
|
19
|
-
externalLink: "external-link",
|
|
20
|
-
help: "help",
|
|
21
|
-
information: "information",
|
|
22
|
-
menu: "menu",
|
|
23
|
-
minus: "minus",
|
|
24
|
-
plus: "plus",
|
|
25
|
-
search: "search",
|
|
26
|
-
share: "share",
|
|
27
|
-
spinner: "spinner",
|
|
28
|
-
success: "success",
|
|
29
|
-
user: "user",
|
|
30
|
-
warning: "warning",
|
|
31
|
-
facebook: "facebook",
|
|
32
|
-
twitter: "twitter",
|
|
33
|
-
instagram: "instagram",
|
|
34
|
-
linkedin: "linkedin",
|
|
35
|
-
youtube: "youtube",
|
|
36
|
-
github: "github",
|
|
37
|
-
rss: "rss",
|
|
38
|
-
email: "email"
|
|
39
|
-
};
|
|
40
|
-
/**
|
|
41
|
-
* This is a [React](https://reactjs.org/) component for the Vanilla [Icon](https://docs.vanillaframework.io/patterns/icons/).
|
|
42
|
-
*
|
|
43
|
-
* Icons provide visual context and enhance usability.
|
|
44
|
-
*
|
|
45
|
-
* @param name One of built-in Vanilla icons or a name of a custom icon that follows `p-icon--{name}` convention.
|
|
46
|
-
* @returns Icon
|
|
47
|
-
*/
|
|
48
|
-
var Icon = _ref => {
|
|
49
|
-
var {
|
|
50
|
-
className,
|
|
51
|
-
light,
|
|
52
|
-
name
|
|
53
|
-
} = _ref,
|
|
54
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
55
|
-
return /*#__PURE__*/React.createElement("i", _extends({
|
|
56
|
-
className: classNames(className, "p-icon--".concat(name), {
|
|
57
|
-
"is-light": light
|
|
58
|
-
})
|
|
59
|
-
}, props));
|
|
60
|
-
};
|
|
61
|
-
export default Icon;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default, ICONS } from "./Icon";
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
var _excluded = ["caution", "className", "error", "help", "helpClassName", "id", "label", "labelClassName", "required", "stacked", "success", "takeFocus", "takeFocusDelay", "type", "wrapperClassName"];
|
|
2
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
6
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
7
|
-
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
9
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
|
|
10
|
-
import classNames from "classnames";
|
|
11
|
-
import React, { useEffect, useId, useRef } from "react";
|
|
12
|
-
import Field from "../Field";
|
|
13
|
-
import CheckboxInput from "../CheckboxInput";
|
|
14
|
-
import RadioInput from "../RadioInput";
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* The props for the Input component.
|
|
18
|
-
*/
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* This is a [React](https://reactjs.org/) component for the Vanilla [Input](https://docs.vanillaframework.io/base/forms/#input).
|
|
22
|
-
*
|
|
23
|
-
* An input field where the user can enter data, which can vary in many ways, depending on the type attribute.
|
|
24
|
-
*/
|
|
25
|
-
var Input = _ref => {
|
|
26
|
-
var {
|
|
27
|
-
caution,
|
|
28
|
-
className,
|
|
29
|
-
error,
|
|
30
|
-
help,
|
|
31
|
-
helpClassName,
|
|
32
|
-
id,
|
|
33
|
-
label,
|
|
34
|
-
labelClassName,
|
|
35
|
-
required,
|
|
36
|
-
stacked,
|
|
37
|
-
success,
|
|
38
|
-
takeFocus,
|
|
39
|
-
takeFocusDelay,
|
|
40
|
-
type,
|
|
41
|
-
wrapperClassName
|
|
42
|
-
} = _ref,
|
|
43
|
-
inputProps = _objectWithoutProperties(_ref, _excluded);
|
|
44
|
-
var inputRef = useRef(null);
|
|
45
|
-
var fieldLabel = !["checkbox", "radio"].includes(type) ? label : "";
|
|
46
|
-
var defaultInputId = useId();
|
|
47
|
-
var inputId = id || defaultInputId;
|
|
48
|
-
var validationId = useId();
|
|
49
|
-
var helpId = useId();
|
|
50
|
-
var hasError = !!error;
|
|
51
|
-
var description = [help ? helpId : null, success ? validationId : null].filter(Boolean).join(" ");
|
|
52
|
-
var commonProps = _objectSpread({
|
|
53
|
-
"aria-describedby": !description ? undefined : description,
|
|
54
|
-
"aria-errormessage": hasError ? validationId : null,
|
|
55
|
-
"aria-invalid": hasError,
|
|
56
|
-
id: inputId,
|
|
57
|
-
required: required
|
|
58
|
-
}, inputProps);
|
|
59
|
-
useEffect(() => {
|
|
60
|
-
if (takeFocus) {
|
|
61
|
-
if (takeFocusDelay) {
|
|
62
|
-
setTimeout(() => inputRef.current.focus(), takeFocusDelay);
|
|
63
|
-
} else {
|
|
64
|
-
inputRef.current.focus();
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}, [takeFocus, takeFocusDelay]);
|
|
68
|
-
var input;
|
|
69
|
-
if (type === "checkbox") {
|
|
70
|
-
input = /*#__PURE__*/React.createElement(CheckboxInput, _extends({
|
|
71
|
-
label: label,
|
|
72
|
-
labelClassName: labelClassName
|
|
73
|
-
}, commonProps));
|
|
74
|
-
} else if (type === "radio") {
|
|
75
|
-
input = /*#__PURE__*/React.createElement(RadioInput, _extends({
|
|
76
|
-
label: label,
|
|
77
|
-
labelClassName: labelClassName
|
|
78
|
-
}, commonProps));
|
|
79
|
-
} else {
|
|
80
|
-
input = /*#__PURE__*/React.createElement("input", _extends({
|
|
81
|
-
className: classNames("p-form-validation__input", className),
|
|
82
|
-
ref: inputRef,
|
|
83
|
-
type: type
|
|
84
|
-
}, commonProps));
|
|
85
|
-
}
|
|
86
|
-
return /*#__PURE__*/React.createElement(Field, {
|
|
87
|
-
caution: caution,
|
|
88
|
-
className: wrapperClassName,
|
|
89
|
-
error: error,
|
|
90
|
-
forId: inputId,
|
|
91
|
-
help: help,
|
|
92
|
-
helpClassName: helpClassName + "",
|
|
93
|
-
helpId: helpId,
|
|
94
|
-
isTickElement: type === "checkbox" || type === "radio",
|
|
95
|
-
label: fieldLabel,
|
|
96
|
-
labelClassName: labelClassName,
|
|
97
|
-
required: required,
|
|
98
|
-
stacked: stacked,
|
|
99
|
-
success: success,
|
|
100
|
-
validationId: validationId
|
|
101
|
-
}, input);
|
|
102
|
-
};
|
|
103
|
-
export default Input;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./Input";
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
var _excluded = ["children", "className", "forId", "required"];
|
|
2
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
4
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
|
|
5
|
-
import classNames from "classnames";
|
|
6
|
-
import React from "react";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* The props for the Label component.
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
var Label = _ref => {
|
|
13
|
-
var {
|
|
14
|
-
children,
|
|
15
|
-
className,
|
|
16
|
-
forId,
|
|
17
|
-
required
|
|
18
|
-
} = _ref,
|
|
19
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
20
|
-
return /*#__PURE__*/React.createElement("label", _extends({
|
|
21
|
-
className: classNames(className, "p-form__label", {
|
|
22
|
-
"is-required": required
|
|
23
|
-
}),
|
|
24
|
-
htmlFor: forId
|
|
25
|
-
}, props), children);
|
|
26
|
-
};
|
|
27
|
-
export default Label;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./Label";
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
var _excluded = ["children", "className", "href", "inverted", "soft", "top"];
|
|
2
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
4
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
|
|
5
|
-
import classNames from "classnames";
|
|
6
|
-
import React from "react";
|
|
7
|
-
/**
|
|
8
|
-
* This is a [React](https://reactjs.org/) component for the Vanilla [Link](https://docs.vanillaframework.io/patterns/links/).
|
|
9
|
-
*
|
|
10
|
-
* Links are used to embed actions or pathways to more information, allowing users to click their way from page to page.
|
|
11
|
-
*/
|
|
12
|
-
var Link = _ref => {
|
|
13
|
-
var {
|
|
14
|
-
children,
|
|
15
|
-
className,
|
|
16
|
-
href = "#",
|
|
17
|
-
inverted = false,
|
|
18
|
-
soft = false,
|
|
19
|
-
top = false
|
|
20
|
-
} = _ref,
|
|
21
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
22
|
-
var link = /*#__PURE__*/React.createElement("a", _extends({
|
|
23
|
-
className: classNames(className, {
|
|
24
|
-
"p-link--inverted": inverted,
|
|
25
|
-
"p-link--soft": soft,
|
|
26
|
-
"p-top__link": top
|
|
27
|
-
}),
|
|
28
|
-
href: href
|
|
29
|
-
}, props), children);
|
|
30
|
-
if (top) {
|
|
31
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
32
|
-
className: "p-top"
|
|
33
|
-
}, link);
|
|
34
|
-
}
|
|
35
|
-
return link;
|
|
36
|
-
};
|
|
37
|
-
export default Link;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./Link";
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
var _excluded = ["title", "className", "content", "titleElement"],
|
|
2
|
-
_excluded2 = ["title", "className", "content"],
|
|
3
|
-
_excluded3 = ["className", "detailed", "divided", "inline", "isDark", "items", "middot", "stretch", "split", "stepped", "ticked"];
|
|
4
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
5
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
6
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
|
|
7
|
-
import classNames from "classnames";
|
|
8
|
-
import React from "react";
|
|
9
|
-
var generateItems = _ref => {
|
|
10
|
-
var {
|
|
11
|
-
items,
|
|
12
|
-
ticked,
|
|
13
|
-
inline,
|
|
14
|
-
middot,
|
|
15
|
-
stepped
|
|
16
|
-
} = _ref;
|
|
17
|
-
return items.map((item, i) => {
|
|
18
|
-
var body;
|
|
19
|
-
var title;
|
|
20
|
-
var className;
|
|
21
|
-
var content;
|
|
22
|
-
var TitleComponent = "h3";
|
|
23
|
-
var liProps;
|
|
24
|
-
if ( /*#__PURE__*/React.isValidElement(item) || typeof item === "string" || typeof item === "number") {
|
|
25
|
-
content = item;
|
|
26
|
-
} else if (item && typeof item === "object" && "content" in item) {
|
|
27
|
-
if ("titleElement" in item) {
|
|
28
|
-
var _item = item;
|
|
29
|
-
({
|
|
30
|
-
title,
|
|
31
|
-
className,
|
|
32
|
-
content,
|
|
33
|
-
titleElement: TitleComponent = "h3"
|
|
34
|
-
} = _item);
|
|
35
|
-
liProps = _objectWithoutProperties(_item, _excluded);
|
|
36
|
-
_item;
|
|
37
|
-
} else {
|
|
38
|
-
var _item2 = item;
|
|
39
|
-
({
|
|
40
|
-
title,
|
|
41
|
-
className,
|
|
42
|
-
content
|
|
43
|
-
} = _item2);
|
|
44
|
-
liProps = _objectWithoutProperties(_item2, _excluded2);
|
|
45
|
-
_item2;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
if (stepped) {
|
|
49
|
-
body = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(TitleComponent, {
|
|
50
|
-
className: "p-stepped-list__title"
|
|
51
|
-
}, title), /*#__PURE__*/React.createElement("div", {
|
|
52
|
-
className: "p-stepped-list__content"
|
|
53
|
-
}, content));
|
|
54
|
-
} else {
|
|
55
|
-
body = content;
|
|
56
|
-
}
|
|
57
|
-
return /*#__PURE__*/React.createElement("li", _extends({
|
|
58
|
-
className: classNames(className, {
|
|
59
|
-
"p-list__item": !inline && !stepped,
|
|
60
|
-
"p-inline-list__item": inline,
|
|
61
|
-
"p-stepped-list__item": stepped,
|
|
62
|
-
"is-ticked": ticked
|
|
63
|
-
}),
|
|
64
|
-
key: i
|
|
65
|
-
}, liProps), body, middot ? " " : null);
|
|
66
|
-
});
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* This is a [React](https://reactjs.org/) component for the Vanilla [List](https://docs.vanillaframework.io/patterns/lists/).
|
|
71
|
-
*
|
|
72
|
-
* If you want to display lists in a way that is more visually distinctive than the standard `<ol>` and `<ul>`, we have 7 list styles at your disposal.
|
|
73
|
-
*/
|
|
74
|
-
var List = _ref2 => {
|
|
75
|
-
var {
|
|
76
|
-
className,
|
|
77
|
-
detailed,
|
|
78
|
-
divided,
|
|
79
|
-
inline,
|
|
80
|
-
isDark,
|
|
81
|
-
items,
|
|
82
|
-
middot,
|
|
83
|
-
stretch,
|
|
84
|
-
split,
|
|
85
|
-
stepped,
|
|
86
|
-
ticked
|
|
87
|
-
} = _ref2,
|
|
88
|
-
props = _objectWithoutProperties(_ref2, _excluded3);
|
|
89
|
-
var Component = stepped ? "ol" : "ul";
|
|
90
|
-
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
91
|
-
className: classNames(className, {
|
|
92
|
-
"p-list": !divided && !inline && !middot && !stretch && !stepped,
|
|
93
|
-
"p-list--divided": divided,
|
|
94
|
-
"p-inline-list": inline,
|
|
95
|
-
"p-inline-list--middot": middot,
|
|
96
|
-
"p-inline-list--stretch": stretch,
|
|
97
|
-
"p-stepped-list": stepped && !detailed,
|
|
98
|
-
"p-stepped-list--detailed": stepped && detailed,
|
|
99
|
-
"is-dark": isDark,
|
|
100
|
-
"is-split": split
|
|
101
|
-
})
|
|
102
|
-
}, props), generateItems({
|
|
103
|
-
items,
|
|
104
|
-
ticked,
|
|
105
|
-
inline: inline || middot || stretch,
|
|
106
|
-
middot,
|
|
107
|
-
stepped
|
|
108
|
-
}));
|
|
109
|
-
};
|
|
110
|
-
export default List;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./List";
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import Spinner from "../Spinner";
|
|
3
|
-
import { IS_DEV } from "../../utils";
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* @deprecated Loader component is deprecated. Use Spinner component instead.
|
|
7
|
-
*/
|
|
8
|
-
var Loader = props => {
|
|
9
|
-
if (IS_DEV) {
|
|
10
|
-
console.warn("The Loader component has been renamed to Spinner and will be removed in a future release. https://canonical.github.io/react-components/?path=/story/spinner--default-story");
|
|
11
|
-
}
|
|
12
|
-
return /*#__PURE__*/React.createElement(Spinner, props);
|
|
13
|
-
};
|
|
14
|
-
export default Loader;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./Loader";
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import _pt from "prop-types";
|
|
2
|
-
import React, { useLayoutEffect } from "react";
|
|
3
|
-
import Card from "../Card";
|
|
4
|
-
import Col from "../Col";
|
|
5
|
-
import Navigation from "../Navigation";
|
|
6
|
-
import Row from "../Row";
|
|
7
|
-
import { Theme } from "../../enums";
|
|
8
|
-
import "./LoginPageLayout.scss";
|
|
9
|
-
var defaultLogo = {
|
|
10
|
-
src: "https://assets.ubuntu.com/v1/82818827-CoF_white.svg",
|
|
11
|
-
title: "Canonical",
|
|
12
|
-
url: "/"
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* This is a layout component that is used to display a page with a title and children.
|
|
16
|
-
* The LoginPageLayout recommended usages are in the login flow like registration, sign up and error pages.
|
|
17
|
-
*/
|
|
18
|
-
var LoginPageLayout = _ref => {
|
|
19
|
-
var {
|
|
20
|
-
children,
|
|
21
|
-
title,
|
|
22
|
-
logo = defaultLogo
|
|
23
|
-
} = _ref;
|
|
24
|
-
useLayoutEffect(() => {
|
|
25
|
-
var _document$querySelect;
|
|
26
|
-
var bodyInitiallyContainsIsPaper = (_document$querySelect = document.querySelector("body")) === null || _document$querySelect === void 0 ? void 0 : _document$querySelect.classList.contains("is-paper");
|
|
27
|
-
if (!bodyInitiallyContainsIsPaper) {
|
|
28
|
-
var _document$querySelect2;
|
|
29
|
-
(_document$querySelect2 = document.querySelector("body")) === null || _document$querySelect2 === void 0 || _document$querySelect2.classList.add("is-paper");
|
|
30
|
-
}
|
|
31
|
-
return () => {
|
|
32
|
-
if (!bodyInitiallyContainsIsPaper) {
|
|
33
|
-
var _document$querySelect3;
|
|
34
|
-
(_document$querySelect3 = document.querySelector("body")) === null || _document$querySelect3 === void 0 || _document$querySelect3.classList.remove("is-paper");
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
}, []);
|
|
38
|
-
return /*#__PURE__*/React.createElement(Row, {
|
|
39
|
-
className: "p-strip page-row"
|
|
40
|
-
}, /*#__PURE__*/React.createElement(Col, {
|
|
41
|
-
emptyLarge: 4,
|
|
42
|
-
size: 6
|
|
43
|
-
}, /*#__PURE__*/React.createElement(Card, {
|
|
44
|
-
className: "u-no-padding page-card"
|
|
45
|
-
}, /*#__PURE__*/React.createElement(Navigation, {
|
|
46
|
-
logo: logo,
|
|
47
|
-
theme: Theme.DARK
|
|
48
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
49
|
-
className: "p-card__inner page-inner"
|
|
50
|
-
}, /*#__PURE__*/React.createElement("h1", {
|
|
51
|
-
className: "p-heading--4"
|
|
52
|
-
}, title), /*#__PURE__*/React.createElement("div", null, children)))));
|
|
53
|
-
};
|
|
54
|
-
LoginPageLayout.propTypes = {
|
|
55
|
-
title: _pt.string.isRequired,
|
|
56
|
-
children: _pt.node,
|
|
57
|
-
logo: _pt.shape({
|
|
58
|
-
src: _pt.string.isRequired,
|
|
59
|
-
title: _pt.string.isRequired,
|
|
60
|
-
url: _pt.string.isRequired
|
|
61
|
-
})
|
|
62
|
-
};
|
|
63
|
-
export default LoginPageLayout;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./LoginPageLayout";
|