@qoretechnologies/reqore 0.20.1 → 0.20.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/dist/src/components/Breadcrumbs/index.d.ts +33 -0
- package/dist/src/components/Breadcrumbs/index.d.ts.map +1 -0
- package/dist/src/components/Breadcrumbs/index.js +167 -0
- package/dist/src/components/Breadcrumbs/index.js.map +1 -0
- package/dist/src/components/Breadcrumbs/item.d.ts +14 -0
- package/dist/src/components/Breadcrumbs/item.d.ts.map +1 -0
- package/dist/src/components/Breadcrumbs/item.js +84 -0
- package/dist/src/components/Breadcrumbs/item.js.map +1 -0
- package/dist/src/components/Button/index.d.ts +33 -0
- package/dist/src/components/Button/index.d.ts.map +1 -0
- package/dist/src/components/Button/index.js +154 -0
- package/dist/src/components/Button/index.js.map +1 -0
- package/dist/src/components/Checkbox/index.d.ts +26 -0
- package/dist/src/components/Checkbox/index.d.ts.map +1 -0
- package/dist/src/components/Checkbox/index.js +108 -0
- package/dist/src/components/Checkbox/index.js.map +1 -0
- package/dist/src/components/Columns/column.d.ts +5 -0
- package/dist/src/components/Columns/column.d.ts.map +1 -0
- package/dist/src/components/Columns/column.js +37 -0
- package/dist/src/components/Columns/column.js.map +1 -0
- package/dist/src/components/Columns/index.d.ts +17 -0
- package/dist/src/components/Columns/index.d.ts.map +1 -0
- package/dist/src/components/Columns/index.js +69 -0
- package/dist/src/components/Columns/index.js.map +1 -0
- package/dist/src/components/Comment/index.d.ts +24 -0
- package/dist/src/components/Comment/index.d.ts.map +1 -0
- package/dist/src/components/Comment/index.js +71 -0
- package/dist/src/components/Comment/index.js.map +1 -0
- package/dist/src/components/CommentFeed/index.d.ts +7 -0
- package/dist/src/components/CommentFeed/index.d.ts.map +1 -0
- package/dist/src/components/CommentFeed/index.js +49 -0
- package/dist/src/components/CommentFeed/index.js.map +1 -0
- package/dist/src/components/Content/index.d.ts +11 -0
- package/dist/src/components/Content/index.d.ts.map +1 -0
- package/dist/src/components/Content/index.js +70 -0
- package/dist/src/components/Content/index.js.map +1 -0
- package/dist/src/components/Content/wrapper.d.ts +11 -0
- package/dist/src/components/Content/wrapper.d.ts.map +1 -0
- package/dist/src/components/Content/wrapper.js +43 -0
- package/dist/src/components/Content/wrapper.js.map +1 -0
- package/dist/src/components/ControlGroup/index.d.ts +17 -0
- package/dist/src/components/ControlGroup/index.d.ts.map +1 -0
- package/dist/src/components/ControlGroup/index.js +90 -0
- package/dist/src/components/ControlGroup/index.js.map +1 -0
- package/dist/src/components/Drawer/index.d.ts +36 -0
- package/dist/src/components/Drawer/index.d.ts.map +1 -0
- package/dist/src/components/Drawer/index.js +251 -0
- package/dist/src/components/Drawer/index.js.map +1 -0
- package/dist/src/components/Dropdown/index.d.ts +24 -0
- package/dist/src/components/Dropdown/index.d.ts.map +1 -0
- package/dist/src/components/Dropdown/index.js +38 -0
- package/dist/src/components/Dropdown/index.js.map +1 -0
- package/dist/src/components/Dropdown/item.d.ts +10 -0
- package/dist/src/components/Dropdown/item.d.ts.map +1 -0
- package/dist/src/components/Dropdown/item.js +35 -0
- package/dist/src/components/Dropdown/item.js.map +1 -0
- package/dist/src/components/Dropdown/list.d.ts +14 -0
- package/dist/src/components/Dropdown/list.d.ts.map +1 -0
- package/dist/src/components/Dropdown/list.js +47 -0
- package/dist/src/components/Dropdown/list.js.map +1 -0
- package/dist/src/components/Header/index.d.ts +13 -0
- package/dist/src/components/Header/index.d.ts.map +1 -0
- package/dist/src/components/Header/index.js +44 -0
- package/dist/src/components/Header/index.js.map +1 -0
- package/dist/src/components/Icon/index.d.ts +16 -0
- package/dist/src/components/Icon/index.d.ts.map +1 -0
- package/dist/src/components/Icon/index.js +81 -0
- package/dist/src/components/Icon/index.js.map +1 -0
- package/dist/src/components/Input/index.d.ts +33 -0
- package/dist/src/components/Input/index.d.ts.map +1 -0
- package/dist/src/components/Input/index.js +115 -0
- package/dist/src/components/Input/index.js.map +1 -0
- package/dist/src/components/InputClearButton/index.d.ts +10 -0
- package/dist/src/components/InputClearButton/index.d.ts.map +1 -0
- package/dist/src/components/InputClearButton/index.js +49 -0
- package/dist/src/components/InputClearButton/index.js.map +1 -0
- package/dist/src/components/InternalPopover/index.d.ts +7 -0
- package/dist/src/components/InternalPopover/index.d.ts.map +1 -0
- package/dist/src/components/InternalPopover/index.js +132 -0
- package/dist/src/components/InternalPopover/index.js.map +1 -0
- package/dist/src/components/Layout/content.d.ts +8 -0
- package/dist/src/components/Layout/content.d.ts.map +1 -0
- package/dist/src/components/Layout/content.js +41 -0
- package/dist/src/components/Layout/content.js.map +1 -0
- package/dist/src/components/Layout/index.d.ts +8 -0
- package/dist/src/components/Layout/index.d.ts.map +1 -0
- package/dist/src/components/Layout/index.js +69 -0
- package/dist/src/components/Layout/index.js.map +1 -0
- package/dist/src/components/Menu/divider.d.ts +7 -0
- package/dist/src/components/Menu/divider.d.ts.map +1 -0
- package/dist/src/components/Menu/divider.js +49 -0
- package/dist/src/components/Menu/divider.js.map +1 -0
- package/dist/src/components/Menu/index.d.ts +17 -0
- package/dist/src/components/Menu/index.d.ts.map +1 -0
- package/dist/src/components/Menu/index.js +89 -0
- package/dist/src/components/Menu/index.js.map +1 -0
- package/dist/src/components/Menu/item.d.ts +31 -0
- package/dist/src/components/Menu/item.d.ts.map +1 -0
- package/dist/src/components/Menu/item.js +121 -0
- package/dist/src/components/Menu/item.js.map +1 -0
- package/dist/src/components/Message/index.d.ts +25 -0
- package/dist/src/components/Message/index.d.ts.map +1 -0
- package/dist/src/components/Message/index.js +54 -0
- package/dist/src/components/Message/index.js.map +1 -0
- package/dist/src/components/Modal/actions.d.ts +6 -0
- package/dist/src/components/Modal/actions.d.ts.map +1 -0
- package/dist/src/components/Modal/actions.js +49 -0
- package/dist/src/components/Modal/actions.js.map +1 -0
- package/dist/src/components/Modal/content.d.ts +6 -0
- package/dist/src/components/Modal/content.d.ts.map +1 -0
- package/dist/src/components/Modal/content.js +25 -0
- package/dist/src/components/Modal/content.js.map +1 -0
- package/dist/src/components/Modal/index.d.ts +14 -0
- package/dist/src/components/Modal/index.d.ts.map +1 -0
- package/dist/src/components/Modal/index.js +33 -0
- package/dist/src/components/Modal/index.js.map +1 -0
- package/dist/src/components/Navbar/divider.d.ts +9 -0
- package/dist/src/components/Navbar/divider.d.ts.map +1 -0
- package/dist/src/components/Navbar/divider.js +47 -0
- package/dist/src/components/Navbar/divider.js.map +1 -0
- package/dist/src/components/Navbar/group.d.ts +15 -0
- package/dist/src/components/Navbar/group.d.ts.map +1 -0
- package/dist/src/components/Navbar/group.js +75 -0
- package/dist/src/components/Navbar/group.js.map +1 -0
- package/dist/src/components/Navbar/index.d.ts +16 -0
- package/dist/src/components/Navbar/index.d.ts.map +1 -0
- package/dist/src/components/Navbar/index.js +86 -0
- package/dist/src/components/Navbar/index.js.map +1 -0
- package/dist/src/components/Navbar/item.d.ts +16 -0
- package/dist/src/components/Navbar/item.d.ts.map +1 -0
- package/dist/src/components/Navbar/item.js +81 -0
- package/dist/src/components/Navbar/item.js.map +1 -0
- package/dist/src/components/Notifications/index.d.ts +12 -0
- package/dist/src/components/Notifications/index.d.ts.map +1 -0
- package/dist/src/components/Notifications/index.js +60 -0
- package/dist/src/components/Notifications/index.js.map +1 -0
- package/dist/src/components/Notifications/notification.d.ts +43 -0
- package/dist/src/components/Notifications/notification.d.ts.map +1 -0
- package/dist/src/components/Notifications/notification.js +140 -0
- package/dist/src/components/Notifications/notification.js.map +1 -0
- package/dist/src/components/Panel/index.d.ts +49 -0
- package/dist/src/components/Panel/index.d.ts.map +1 -0
- package/dist/src/components/Panel/index.js +172 -0
- package/dist/src/components/Panel/index.js.map +1 -0
- package/dist/src/components/Panel/panel.screenshot.d.ts +3 -0
- package/dist/src/components/Panel/panel.screenshot.d.ts.map +1 -0
- package/dist/src/components/Panel/panel.screenshot.js +30 -0
- package/dist/src/components/Panel/panel.screenshot.js.map +1 -0
- package/dist/src/components/Paragraph/index.d.ts +8 -0
- package/dist/src/components/Paragraph/index.d.ts.map +1 -0
- package/dist/src/components/Paragraph/index.js +64 -0
- package/dist/src/components/Paragraph/index.js.map +1 -0
- package/dist/src/components/Popover/index.d.ts +16 -0
- package/dist/src/components/Popover/index.d.ts.map +1 -0
- package/dist/src/components/Popover/index.js +55 -0
- package/dist/src/components/Popover/index.js.map +1 -0
- package/dist/src/components/RadioGroup/index.d.ts +17 -0
- package/dist/src/components/RadioGroup/index.d.ts.map +1 -0
- package/dist/src/components/RadioGroup/index.js +48 -0
- package/dist/src/components/RadioGroup/index.js.map +1 -0
- package/dist/src/components/Sidebar/index.d.ts +60 -0
- package/dist/src/components/Sidebar/index.d.ts.map +1 -0
- package/dist/src/components/Sidebar/index.js +265 -0
- package/dist/src/components/Sidebar/index.js.map +1 -0
- package/dist/src/components/Sidebar/item.d.ts +36 -0
- package/dist/src/components/Sidebar/item.d.ts.map +1 -0
- package/dist/src/components/Sidebar/item.js +106 -0
- package/dist/src/components/Sidebar/item.js.map +1 -0
- package/dist/src/components/Table/body.d.ts +10 -0
- package/dist/src/components/Table/body.d.ts.map +1 -0
- package/dist/src/components/Table/body.js +44 -0
- package/dist/src/components/Table/body.js.map +1 -0
- package/dist/src/components/Table/header.d.ts +29 -0
- package/dist/src/components/Table/header.d.ts.map +1 -0
- package/dist/src/components/Table/header.js +106 -0
- package/dist/src/components/Table/header.js.map +1 -0
- package/dist/src/components/Table/headerCell.d.ts +18 -0
- package/dist/src/components/Table/headerCell.d.ts.map +1 -0
- package/dist/src/components/Table/headerCell.js +92 -0
- package/dist/src/components/Table/headerCell.js.map +1 -0
- package/dist/src/components/Table/helpers.d.ts +8 -0
- package/dist/src/components/Table/helpers.d.ts.map +1 -0
- package/dist/src/components/Table/helpers.js +41 -0
- package/dist/src/components/Table/helpers.js.map +1 -0
- package/dist/src/components/Table/index.d.ts +75 -0
- package/dist/src/components/Table/index.d.ts.map +1 -0
- package/dist/src/components/Table/index.js +165 -0
- package/dist/src/components/Table/index.js.map +1 -0
- package/dist/src/components/Table/row.d.ts +58 -0
- package/dist/src/components/Table/row.d.ts.map +1 -0
- package/dist/src/components/Table/row.js +204 -0
- package/dist/src/components/Table/row.js.map +1 -0
- package/dist/src/components/Tabs/content.d.ts +8 -0
- package/dist/src/components/Tabs/content.d.ts.map +1 -0
- package/dist/src/components/Tabs/content.js +41 -0
- package/dist/src/components/Tabs/content.js.map +1 -0
- package/dist/src/components/Tabs/index.d.ts +39 -0
- package/dist/src/components/Tabs/index.d.ts.map +1 -0
- package/dist/src/components/Tabs/index.js +83 -0
- package/dist/src/components/Tabs/index.js.map +1 -0
- package/dist/src/components/Tabs/item.d.ts +23 -0
- package/dist/src/components/Tabs/item.d.ts.map +1 -0
- package/dist/src/components/Tabs/item.js +71 -0
- package/dist/src/components/Tabs/item.js.map +1 -0
- package/dist/src/components/Tabs/list.d.ts +17 -0
- package/dist/src/components/Tabs/list.d.ts.map +1 -0
- package/dist/src/components/Tabs/list.js +189 -0
- package/dist/src/components/Tabs/list.js.map +1 -0
- package/dist/src/components/Tag/group.d.ts +10 -0
- package/dist/src/components/Tag/group.d.ts.map +1 -0
- package/dist/src/components/Tag/group.js +50 -0
- package/dist/src/components/Tag/group.js.map +1 -0
- package/dist/src/components/Tag/index.d.ts +36 -0
- package/dist/src/components/Tag/index.d.ts.map +1 -0
- package/dist/src/components/Tag/index.js +136 -0
- package/dist/src/components/Tag/index.js.map +1 -0
- package/dist/src/components/Textarea/index.d.ts +26 -0
- package/dist/src/components/Textarea/index.d.ts.map +1 -0
- package/dist/src/components/Textarea/index.js +85 -0
- package/dist/src/components/Textarea/index.js.map +1 -0
- package/dist/src/components/TimeAgo/index.d.ts +4 -0
- package/dist/src/components/TimeAgo/index.d.ts.map +1 -0
- package/dist/src/components/TimeAgo/index.js +21 -0
- package/dist/src/components/TimeAgo/index.js.map +1 -0
- package/dist/src/components/Tree/index.d.ts +16 -0
- package/dist/src/components/Tree/index.d.ts.map +1 -0
- package/dist/src/components/Tree/index.js +155 -0
- package/dist/src/components/Tree/index.js.map +1 -0
- package/dist/src/constants/animations.d.ts +5 -0
- package/dist/src/constants/animations.d.ts.map +1 -0
- package/dist/src/constants/animations.js +8 -0
- package/dist/src/constants/animations.js.map +1 -0
- package/dist/src/constants/colors.d.ts +10 -0
- package/dist/src/constants/colors.d.ts.map +1 -0
- package/dist/src/constants/colors.js +13 -0
- package/dist/src/constants/colors.js.map +1 -0
- package/dist/src/constants/sizes.d.ts +59 -0
- package/dist/src/constants/sizes.d.ts.map +1 -0
- package/dist/src/constants/sizes.js +60 -0
- package/dist/src/constants/sizes.js.map +1 -0
- package/dist/src/constants/theme.d.ts +81 -0
- package/dist/src/constants/theme.d.ts.map +1 -0
- package/dist/src/constants/theme.js +20 -0
- package/dist/src/constants/theme.js.map +1 -0
- package/dist/src/containers/PopoverProvider.d.ts +13 -0
- package/dist/src/containers/PopoverProvider.d.ts.map +1 -0
- package/dist/src/containers/PopoverProvider.js +81 -0
- package/dist/src/containers/PopoverProvider.js.map +1 -0
- package/dist/src/containers/ReqoreProvider.d.ts +40 -0
- package/dist/src/containers/ReqoreProvider.d.ts.map +1 -0
- package/dist/src/containers/ReqoreProvider.js +125 -0
- package/dist/src/containers/ReqoreProvider.js.map +1 -0
- package/dist/src/containers/ThemeProvider.d.ts +8 -0
- package/dist/src/containers/ThemeProvider.d.ts.map +1 -0
- package/dist/src/containers/ThemeProvider.js +27 -0
- package/dist/src/containers/ThemeProvider.js.map +1 -0
- package/dist/src/containers/UIProvider.d.ts +13 -0
- package/dist/src/containers/UIProvider.d.ts.map +1 -0
- package/dist/src/containers/UIProvider.js +43 -0
- package/dist/src/containers/UIProvider.js.map +1 -0
- package/dist/src/context/PopoverContext.d.ts +11 -0
- package/dist/src/context/PopoverContext.d.ts.map +1 -0
- package/dist/src/context/PopoverContext.js +5 -0
- package/dist/src/context/PopoverContext.js.map +1 -0
- package/dist/src/context/ReqoreContext.d.ts +15 -0
- package/dist/src/context/ReqoreContext.d.ts.map +1 -0
- package/dist/src/context/ReqoreContext.js +10 -0
- package/dist/src/context/ReqoreContext.js.map +1 -0
- package/dist/src/context/ThemeContext.d.ts +5 -0
- package/dist/src/context/ThemeContext.d.ts.map +1 -0
- package/dist/src/context/ThemeContext.js +6 -0
- package/dist/src/context/ThemeContext.js.map +1 -0
- package/dist/src/helpers/animations.d.ts +2 -0
- package/dist/src/helpers/animations.d.ts.map +1 -0
- package/dist/src/helpers/animations.js +11 -0
- package/dist/src/helpers/animations.js.map +1 -0
- package/dist/src/helpers/colors.d.ts +14 -0
- package/dist/src/helpers/colors.d.ts.map +1 -0
- package/dist/src/helpers/colors.js +108 -0
- package/dist/src/helpers/colors.js.map +1 -0
- package/dist/src/helpers/sidebar.d.ts +4 -0
- package/dist/src/helpers/sidebar.d.ts.map +1 -0
- package/dist/src/helpers/sidebar.js +90 -0
- package/dist/src/helpers/sidebar.js.map +1 -0
- package/dist/src/helpers/time.d.ts +8 -0
- package/dist/src/helpers/time.d.ts.map +1 -0
- package/dist/src/helpers/time.js +25 -0
- package/dist/src/helpers/time.js.map +1 -0
- package/dist/src/helpers/utils.d.ts +5 -0
- package/dist/src/helpers/utils.d.ts.map +1 -0
- package/dist/src/helpers/utils.js +103 -0
- package/dist/src/helpers/utils.js.map +1 -0
- package/dist/src/hooks/useCombinedRefs.d.ts +3 -0
- package/dist/src/hooks/useCombinedRefs.d.ts.map +1 -0
- package/dist/src/hooks/useCombinedRefs.js +29 -0
- package/dist/src/hooks/useCombinedRefs.js.map +1 -0
- package/dist/src/hooks/useLatestZIndex.d.ts +3 -0
- package/dist/src/hooks/useLatestZIndex.d.ts.map +1 -0
- package/dist/src/hooks/useLatestZIndex.js +11 -0
- package/dist/src/hooks/useLatestZIndex.js.map +1 -0
- package/dist/src/hooks/useOutsideClick.d.ts +4 -0
- package/dist/src/hooks/useOutsideClick.d.ts.map +1 -0
- package/dist/src/hooks/useOutsideClick.js +19 -0
- package/dist/src/hooks/useOutsideClick.js.map +1 -0
- package/dist/src/hooks/usePopover.d.ts +19 -0
- package/dist/src/hooks/usePopover.d.ts.map +1 -0
- package/dist/src/hooks/usePopover.js +86 -0
- package/dist/src/hooks/usePopover.js.map +1 -0
- package/dist/src/hooks/useShareForwardedRef.d.ts +3 -0
- package/dist/src/hooks/useShareForwardedRef.d.ts.map +1 -0
- package/dist/src/hooks/useShareForwardedRef.js +25 -0
- package/dist/src/hooks/useShareForwardedRef.js.map +1 -0
- package/dist/src/hooks/useTheme.d.ts +3 -0
- package/dist/src/hooks/useTheme.d.ts.map +1 -0
- package/dist/src/hooks/useTheme.js +21 -0
- package/dist/src/hooks/useTheme.js.map +1 -0
- package/dist/src/hooks/useTooltip.d.ts +3 -0
- package/dist/src/hooks/useTooltip.d.ts.map +1 -0
- package/dist/src/hooks/useTooltip.js +24 -0
- package/dist/src/hooks/useTooltip.js.map +1 -0
- package/dist/src/icons.json +2295 -0
- package/dist/src/index.d.ts +52 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +127 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/mock/breadcrumbs.d.ts +5 -0
- package/dist/src/mock/breadcrumbs.d.ts.map +1 -0
- package/dist/src/mock/breadcrumbs.js +94 -0
- package/dist/src/mock/breadcrumbs.js.map +1 -0
- package/dist/src/mock/icons.d.ts +5 -0
- package/dist/src/mock/icons.d.ts.map +1 -0
- package/dist/src/mock/icons.js +34 -0
- package/dist/src/mock/icons.js.map +1 -0
- package/dist/src/mock/menu.d.ts +3 -0
- package/dist/src/mock/menu.d.ts.map +1 -0
- package/dist/src/mock/menu.js +97 -0
- package/dist/src/mock/menu.js.map +1 -0
- package/dist/src/mock/object.json +317 -0
- package/dist/src/mock/tableData.d.ts +8 -0
- package/dist/src/mock/tableData.d.ts.map +1 -0
- package/dist/src/mock/tableData.js +53 -0
- package/dist/src/mock/tableData.js.map +1 -0
- package/dist/src/stories/Breadcrumbs/Breadcrumbs.stories.d.ts +10 -0
- package/dist/src/stories/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -0
- package/dist/src/stories/Breadcrumbs/Breadcrumbs.stories.js +72 -0
- package/dist/src/stories/Breadcrumbs/Breadcrumbs.stories.js.map +1 -0
- package/dist/src/stories/Button/Button.stories.d.ts +12 -0
- package/dist/src/stories/Button/Button.stories.d.ts.map +1 -0
- package/dist/src/stories/Button/Button.stories.js +57 -0
- package/dist/src/stories/Button/Button.stories.js.map +1 -0
- package/dist/src/stories/Checkbox/Checkbox.stories.d.ts +7 -0
- package/dist/src/stories/Checkbox/Checkbox.stories.d.ts.map +1 -0
- package/dist/src/stories/Checkbox/Checkbox.stories.js +29 -0
- package/dist/src/stories/Checkbox/Checkbox.stories.js.map +1 -0
- package/dist/src/stories/Columns/Columns.stories.d.ts +10 -0
- package/dist/src/stories/Columns/Columns.stories.d.ts.map +1 -0
- package/dist/src/stories/Columns/Columns.stories.js +49 -0
- package/dist/src/stories/Columns/Columns.stories.js.map +1 -0
- package/dist/src/stories/Comment/Comment.stories.d.ts +7 -0
- package/dist/src/stories/Comment/Comment.stories.d.ts.map +1 -0
- package/dist/src/stories/Comment/Comment.stories.js +43 -0
- package/dist/src/stories/Comment/Comment.stories.js.map +1 -0
- package/dist/src/stories/ControlGroup/ControlGroup.stories.d.ts +8 -0
- package/dist/src/stories/ControlGroup/ControlGroup.stories.d.ts.map +1 -0
- package/dist/src/stories/ControlGroup/ControlGroup.stories.js +44 -0
- package/dist/src/stories/ControlGroup/ControlGroup.stories.js.map +1 -0
- package/dist/src/stories/Drawer/Drawer.stories.d.ts +8 -0
- package/dist/src/stories/Drawer/Drawer.stories.d.ts.map +1 -0
- package/dist/src/stories/Drawer/Drawer.stories.js +97 -0
- package/dist/src/stories/Drawer/Drawer.stories.js.map +1 -0
- package/dist/src/stories/Dropdown/Dropdown.stories.d.ts +8 -0
- package/dist/src/stories/Dropdown/Dropdown.stories.d.ts.map +1 -0
- package/dist/src/stories/Dropdown/Dropdown.stories.js +141 -0
- package/dist/src/stories/Dropdown/Dropdown.stories.js.map +1 -0
- package/dist/src/stories/Icon/Icon.stories.d.ts +6 -0
- package/dist/src/stories/Icon/Icon.stories.d.ts.map +1 -0
- package/dist/src/stories/Icon/Icon.stories.js +13 -0
- package/dist/src/stories/Icon/Icon.stories.js.map +1 -0
- package/dist/src/stories/Input/Input.stories.d.ts +6 -0
- package/dist/src/stories/Input/Input.stories.d.ts.map +1 -0
- package/dist/src/stories/Input/Input.stories.js +38 -0
- package/dist/src/stories/Input/Input.stories.js.map +1 -0
- package/dist/src/stories/Menu/Menu.stories.d.ts +6 -0
- package/dist/src/stories/Menu/Menu.stories.d.ts.map +1 -0
- package/dist/src/stories/Menu/Menu.stories.js +48 -0
- package/dist/src/stories/Menu/Menu.stories.js.map +1 -0
- package/dist/src/stories/Message/Message.stories.d.ts +8 -0
- package/dist/src/stories/Message/Message.stories.d.ts.map +1 -0
- package/dist/src/stories/Message/Message.stories.js +50 -0
- package/dist/src/stories/Message/Message.stories.js.map +1 -0
- package/dist/src/stories/Modal/Modal.stories.d.ts +7 -0
- package/dist/src/stories/Modal/Modal.stories.d.ts.map +1 -0
- package/dist/src/stories/Modal/Modal.stories.js +77 -0
- package/dist/src/stories/Modal/Modal.stories.js.map +1 -0
- package/dist/src/stories/Navbar/Navbar.stories.d.ts +6 -0
- package/dist/src/stories/Navbar/Navbar.stories.d.ts.map +1 -0
- package/dist/src/stories/Navbar/Navbar.stories.js +33 -0
- package/dist/src/stories/Navbar/Navbar.stories.js.map +1 -0
- package/dist/src/stories/Notifications/Interactive.stories.d.ts +9 -0
- package/dist/src/stories/Notifications/Interactive.stories.d.ts.map +1 -0
- package/dist/src/stories/Notifications/Interactive.stories.js +100 -0
- package/dist/src/stories/Notifications/Interactive.stories.js.map +1 -0
- package/dist/src/stories/Notifications/Notification.stories.d.ts +9 -0
- package/dist/src/stories/Notifications/Notification.stories.d.ts.map +1 -0
- package/dist/src/stories/Notifications/Notification.stories.js +96 -0
- package/dist/src/stories/Notifications/Notification.stories.js.map +1 -0
- package/dist/src/stories/Notifications/Notifications.stories.d.ts +10 -0
- package/dist/src/stories/Notifications/Notifications.stories.d.ts.map +1 -0
- package/dist/src/stories/Notifications/Notifications.stories.js +63 -0
- package/dist/src/stories/Notifications/Notifications.stories.js.map +1 -0
- package/dist/src/stories/Panel/Panel.stories.d.ts +9 -0
- package/dist/src/stories/Panel/Panel.stories.d.ts.map +1 -0
- package/dist/src/stories/Panel/Panel.stories.js +79 -0
- package/dist/src/stories/Panel/Panel.stories.js.map +1 -0
- package/dist/src/stories/Popover/Popover.stories.d.ts +6 -0
- package/dist/src/stories/Popover/Popover.stories.d.ts.map +1 -0
- package/dist/src/stories/Popover/Popover.stories.js +46 -0
- package/dist/src/stories/Popover/Popover.stories.js.map +1 -0
- package/dist/src/stories/RadioGroup/RadioGroup.stories.d.ts +7 -0
- package/dist/src/stories/RadioGroup/RadioGroup.stories.d.ts.map +1 -0
- package/dist/src/stories/RadioGroup/RadioGroup.stories.js +54 -0
- package/dist/src/stories/RadioGroup/RadioGroup.stories.js.map +1 -0
- package/dist/src/stories/Sidebar/Sidebar.stories.d.ts +6 -0
- package/dist/src/stories/Sidebar/Sidebar.stories.d.ts.map +1 -0
- package/dist/src/stories/Sidebar/Sidebar.stories.js +65 -0
- package/dist/src/stories/Sidebar/Sidebar.stories.js.map +1 -0
- package/dist/src/stories/Table/Table.stories.d.ts +10 -0
- package/dist/src/stories/Table/Table.stories.d.ts.map +1 -0
- package/dist/src/stories/Table/Table.stories.js +157 -0
- package/dist/src/stories/Table/Table.stories.js.map +1 -0
- package/dist/src/stories/Tabs/Tabs.stories.d.ts +12 -0
- package/dist/src/stories/Tabs/Tabs.stories.d.ts.map +1 -0
- package/dist/src/stories/Tabs/Tabs.stories.js +127 -0
- package/dist/src/stories/Tabs/Tabs.stories.js.map +1 -0
- package/dist/src/stories/Tag/Tag.stories.d.ts +8 -0
- package/dist/src/stories/Tag/Tag.stories.d.ts.map +1 -0
- package/dist/src/stories/Tag/Tag.stories.js +79 -0
- package/dist/src/stories/Tag/Tag.stories.js.map +1 -0
- package/dist/src/stories/TextArea/TextArea.stories.d.ts +8 -0
- package/dist/src/stories/TextArea/TextArea.stories.d.ts.map +1 -0
- package/dist/src/stories/TextArea/TextArea.stories.js +65 -0
- package/dist/src/stories/TextArea/TextArea.stories.js.map +1 -0
- package/dist/src/stories/Tree/Tree.stories.d.ts +7 -0
- package/dist/src/stories/Tree/Tree.stories.d.ts.map +1 -0
- package/dist/src/stories/Tree/Tree.stories.js +52 -0
- package/dist/src/stories/Tree/Tree.stories.js.map +1 -0
- package/dist/src/stories/Wrapper.d.ts +4 -0
- package/dist/src/stories/Wrapper.d.ts.map +1 -0
- package/dist/src/stories/Wrapper.js +38 -0
- package/dist/src/stories/Wrapper.js.map +1 -0
- package/dist/src/stories/utils/args.d.ts +61 -0
- package/dist/src/stories/utils/args.d.ts.map +1 -0
- package/dist/src/stories/utils/args.js +120 -0
- package/dist/src/stories/utils/args.js.map +1 -0
- package/dist/src/stories/utils.d.ts +11 -0
- package/dist/src/stories/utils.d.ts.map +1 -0
- package/dist/src/stories/utils.js +17 -0
- package/dist/src/stories/utils.js.map +1 -0
- package/dist/src/styles.d.ts +5 -0
- package/dist/src/styles.d.ts.map +1 -0
- package/dist/src/styles.js +16 -0
- package/dist/src/styles.js.map +1 -0
- package/dist/src/types/global.d.ts +9 -0
- package/dist/src/types/global.d.ts.map +1 -0
- package/dist/src/types/global.js +3 -0
- package/dist/src/types/global.js.map +1 -0
- package/dist/src/types/icons.d.ts +2 -0
- package/dist/src/types/icons.d.ts.map +1 -0
- package/dist/src/types/icons.js +3 -0
- package/dist/src/types/icons.js.map +1 -0
- package/dist/src/types/icons____.d.ts +2 -0
- package/dist/src/types/icons____.d.ts.map +1 -0
- package/dist/src/types/icons____.js +5 -0
- package/dist/src/types/icons____.js.map +1 -0
- package/dist/tests.json +1 -1
- package/package.json +1 -1
- package/src/components/Breadcrumbs/index.tsx +286 -0
- package/src/components/Breadcrumbs/item.tsx +162 -0
- package/src/components/Button/index.tsx +270 -0
- package/src/components/Checkbox/index.tsx +161 -0
- package/src/components/Columns/column.tsx +26 -0
- package/src/components/Columns/index.tsx +40 -0
- package/src/components/Comment/index.tsx +139 -0
- package/src/components/CommentFeed/index.tsx +34 -0
- package/src/components/Content/index.tsx +39 -0
- package/src/components/Content/wrapper.tsx +37 -0
- package/src/components/ControlGroup/index.tsx +81 -0
- package/src/components/Drawer/index.tsx +387 -0
- package/src/components/Dropdown/index.tsx +81 -0
- package/src/components/Dropdown/item.tsx +20 -0
- package/src/components/Dropdown/list.tsx +76 -0
- package/src/components/Header/index.tsx +38 -0
- package/src/components/Icon/index.tsx +83 -0
- package/src/components/Input/index.tsx +185 -0
- package/src/components/InputClearButton/index.tsx +34 -0
- package/src/components/InternalPopover/index.tsx +185 -0
- package/src/components/Layout/content.tsx +31 -0
- package/src/components/Layout/index.tsx +55 -0
- package/src/components/Menu/divider.tsx +36 -0
- package/src/components/Menu/index.tsx +64 -0
- package/src/components/Menu/item.tsx +219 -0
- package/src/components/Message/index.tsx +136 -0
- package/src/components/Modal/actions.tsx +26 -0
- package/src/components/Modal/content.tsx +11 -0
- package/src/components/Modal/index.tsx +26 -0
- package/src/components/Navbar/divider.tsx +51 -0
- package/src/components/Navbar/group.tsx +57 -0
- package/src/components/Navbar/index.tsx +81 -0
- package/src/components/Navbar/item.tsx +75 -0
- package/src/components/Notifications/index.tsx +56 -0
- package/src/components/Notifications/notification.tsx +288 -0
- package/src/components/Panel/__screenshots__/linux/panel-SomePanel.png +0 -0
- package/src/components/Panel/index.tsx +333 -0
- package/src/components/Panel/panel.screenshot.tsx +29 -0
- package/src/components/Paragraph/index.tsx +25 -0
- package/src/components/Popover/index.tsx +65 -0
- package/src/components/RadioGroup/index.tsx +52 -0
- package/src/components/Sidebar/index.tsx +526 -0
- package/src/components/Sidebar/item.tsx +269 -0
- package/src/components/Table/body.tsx +46 -0
- package/src/components/Table/header.tsx +173 -0
- package/src/components/Table/headerCell.tsx +117 -0
- package/src/components/Table/helpers.ts +19 -0
- package/src/components/Table/index.tsx +265 -0
- package/src/components/Table/row.tsx +355 -0
- package/src/components/Tabs/content.tsx +23 -0
- package/src/components/Tabs/index.tsx +117 -0
- package/src/components/Tabs/item.tsx +151 -0
- package/src/components/Tabs/list.tsx +281 -0
- package/src/components/Tag/group.tsx +32 -0
- package/src/components/Tag/index.tsx +237 -0
- package/src/components/Textarea/index.tsx +121 -0
- package/src/components/TimeAgo/index.tsx +15 -0
- package/src/components/Tree/index.tsx +255 -0
- package/src/constants/animations.ts +4 -0
- package/src/constants/colors.ts +9 -0
- package/src/constants/sizes.ts +66 -0
- package/src/constants/theme.ts +102 -0
- package/src/containers/PopoverProvider.tsx +85 -0
- package/src/containers/ReqoreProvider.tsx +194 -0
- package/src/containers/ThemeProvider.tsx +22 -0
- package/src/containers/UIProvider.tsx +54 -0
- package/src/context/PopoverContext.tsx +10 -0
- package/src/context/ReqoreContext.tsx +20 -0
- package/src/context/ThemeContext.tsx +4 -0
- package/src/helpers/animations.ts +13 -0
- package/src/helpers/colors.ts +127 -0
- package/src/helpers/sidebar.ts +105 -0
- package/src/helpers/time.ts +21 -0
- package/src/helpers/utils.ts +75 -0
- package/src/hooks/useCombinedRefs.ts +19 -0
- package/src/hooks/useLatestZIndex.ts +11 -0
- package/src/hooks/useOutsideClick.ts +29 -0
- package/src/hooks/usePopover.tsx +118 -0
- package/src/hooks/useShareForwardedRef.ts +23 -0
- package/src/hooks/useTheme.ts +20 -0
- package/src/hooks/useTooltip.ts +15 -0
- package/src/icons.json +2295 -0
- package/src/index.tsx +51 -0
- package/src/mock/breadcrumbs.ts +93 -0
- package/src/mock/icons.ts +32 -0
- package/src/mock/menu.ts +95 -0
- package/src/mock/object.json +317 -0
- package/src/mock/styleMock.js +1 -0
- package/src/mock/tableData.ts +40 -0
- package/src/stories/Breadcrumbs/Breadcrumbs.stories.tsx +38 -0
- package/src/stories/Button/Button.stories.tsx +69 -0
- package/src/stories/Checkbox/Checkbox.stories.tsx +26 -0
- package/src/stories/Columns/Columns.stories.tsx +71 -0
- package/src/stories/Comment/Comment.stories.tsx +127 -0
- package/src/stories/ControlGroup/ControlGroup.stories.tsx +43 -0
- package/src/stories/Drawer/Drawer.stories.tsx +181 -0
- package/src/stories/Dropdown/Dropdown.stories.tsx +160 -0
- package/src/stories/Icon/Icon.stories.tsx +35 -0
- package/src/stories/Input/Input.stories.tsx +77 -0
- package/src/stories/Menu/Menu.stories.tsx +94 -0
- package/src/stories/Message/Message.stories.tsx +52 -0
- package/src/stories/Modal/Modal.stories.tsx +148 -0
- package/src/stories/Navbar/Navbar.stories.tsx +109 -0
- package/src/stories/Notifications/Interactive.stories.tsx +105 -0
- package/src/stories/Notifications/Notification.stories.tsx +200 -0
- package/src/stories/Notifications/Notifications.stories.tsx +65 -0
- package/src/stories/Panel/Panel.stories.tsx +107 -0
- package/src/stories/Popover/Popover.stories.tsx +54 -0
- package/src/stories/RadioGroup/RadioGroup.stories.tsx +51 -0
- package/src/stories/Sidebar/Sidebar.stories.tsx +78 -0
- package/src/stories/Table/Table.stories.tsx +151 -0
- package/src/stories/Tabs/Tabs.stories.tsx +233 -0
- package/src/stories/Tag/Tag.stories.tsx +72 -0
- package/src/stories/TextArea/TextArea.stories.tsx +74 -0
- package/src/stories/Tree/Tree.stories.tsx +43 -0
- package/src/stories/Wrapper.tsx +13 -0
- package/src/stories/utils/args.ts +138 -0
- package/src/stories/utils.ts +17 -0
- package/src/styles.ts +38 -0
- package/src/types/global.ts +9 -0
- package/src/types/icons.ts +2272 -0
- package/src/types/icons____.ts +5 -0
- package/tests.json +1 -1
package/src/index.tsx
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export { default as ReqoreBreadcrumbs } from './components/Breadcrumbs';
|
|
2
|
+
export { default as ReqoreBreadcrumbsItem } from './components/Breadcrumbs/item';
|
|
3
|
+
export { default as ReqoreButton } from './components/Button';
|
|
4
|
+
export { default as ReqoreCheckbox } from './components/Checkbox';
|
|
5
|
+
export { ReqoreColumns } from './components/Columns';
|
|
6
|
+
export { ReqoreColumn } from './components/Columns/column';
|
|
7
|
+
export { ReqoreComment } from './components/Comment';
|
|
8
|
+
export { ReqoreCommentFeed } from './components/CommentFeed';
|
|
9
|
+
export { default as ReqoreContent } from './components/Content';
|
|
10
|
+
export { default as ReqoreControlGroup } from './components/ControlGroup';
|
|
11
|
+
export { ReqoreDrawer } from './components/Drawer';
|
|
12
|
+
export { default as ReqoreDropdown } from './components/Dropdown';
|
|
13
|
+
export { ReqoreDropdownDivider, ReqoreDropdownItem } from './components/Dropdown/item';
|
|
14
|
+
export { ReqoreH1, ReqoreH2, ReqoreH3, ReqoreH4, ReqoreH5, ReqoreH6 } from './components/Header';
|
|
15
|
+
export { default as ReqoreIcon } from './components/Icon';
|
|
16
|
+
export { default as ReqoreInput } from './components/Input';
|
|
17
|
+
export { default as ReqoreLayoutContent } from './components/Layout/content';
|
|
18
|
+
export { default as ReqoreMenu } from './components/Menu';
|
|
19
|
+
export { default as ReqoreMenuDivider } from './components/Menu/divider';
|
|
20
|
+
export { default as ReqoreMenuItem } from './components/Menu/item';
|
|
21
|
+
export { default as ReqoreMessage } from './components/Message';
|
|
22
|
+
export { ReqoreModal } from './components/Modal';
|
|
23
|
+
export { ReqoreModalActions, ReqoreModalActionsGroup } from './components/Modal/actions';
|
|
24
|
+
export { ReqoreModalContent } from './components/Modal/content';
|
|
25
|
+
export { ReqoreFooter, ReqoreHeader } from './components/Navbar';
|
|
26
|
+
export { default as ReqoreNavbarDivider } from './components/Navbar/divider';
|
|
27
|
+
export { default as ReqoreNavbarGroup } from './components/Navbar/group';
|
|
28
|
+
export { default as ReqoreNavbarItem } from './components/Navbar/item';
|
|
29
|
+
export { default as ReqoreNotificationsWrapper } from './components/Notifications';
|
|
30
|
+
export { default as ReqoreNotification } from './components/Notifications/notification';
|
|
31
|
+
export { ReqorePanel } from './components/Panel';
|
|
32
|
+
export { ReqoreP, ReqoreP as ReqoreParagraph } from './components/Paragraph';
|
|
33
|
+
export { default as ReqorePopover } from './components/Popover';
|
|
34
|
+
export { default as ReqoreRadioGroup } from './components/RadioGroup';
|
|
35
|
+
export { default as ReqoreSidebar } from './components/Sidebar';
|
|
36
|
+
export { default as ReqoreTable } from './components/Table';
|
|
37
|
+
export { default as ReqoreTabs } from './components/Tabs';
|
|
38
|
+
export { default as ReqoreTabsContent } from './components/Tabs/content';
|
|
39
|
+
export { default as ReqoreTabsListItem } from './components/Tabs/item';
|
|
40
|
+
export { default as ReqoreTabsList } from './components/Tabs/list';
|
|
41
|
+
export { default as ReqoreTag } from './components/Tag';
|
|
42
|
+
export { default as ReqoreTagGroup } from './components/Tag/group';
|
|
43
|
+
export { default as ReqoreTextarea } from './components/Textarea';
|
|
44
|
+
export { TimeAgo as ReqoreTimeAgo } from './components/TimeAgo';
|
|
45
|
+
export { ReqoreTree } from './components/Tree';
|
|
46
|
+
export { Colors as ReqoreColors } from './constants/colors';
|
|
47
|
+
export { default as ReqoreNotifications } from './containers/ReqoreProvider';
|
|
48
|
+
export { default as ReqoreUIProvider } from './containers/UIProvider';
|
|
49
|
+
export { default as ReqoreContext } from './context/ReqoreContext';
|
|
50
|
+
export { default as ReqoreThemeContext } from './context/ThemeContext';
|
|
51
|
+
export { default as useLatestZIndex } from './hooks/useLatestZIndex';
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { noop } from 'lodash';
|
|
2
|
+
import { IReqoreBreadcrumbItem, IReqoreBreadcrumbItemTabs } from '../components/Breadcrumbs';
|
|
3
|
+
import { Icons } from './icons';
|
|
4
|
+
|
|
5
|
+
export default [
|
|
6
|
+
{
|
|
7
|
+
label: 'Dashboard',
|
|
8
|
+
icon: Icons.Dashboard,
|
|
9
|
+
tooltip: 'Dashboard',
|
|
10
|
+
active: true,
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
label: 'Workflows',
|
|
14
|
+
icon: Icons.Workflow,
|
|
15
|
+
tooltip: 'Opens in a new window',
|
|
16
|
+
as: 'a',
|
|
17
|
+
props: {
|
|
18
|
+
href: 'https://google.com',
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
label: 'Services',
|
|
23
|
+
icon: Icons.Services,
|
|
24
|
+
tooltip: 'Services',
|
|
25
|
+
props: {
|
|
26
|
+
onClick: noop,
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
label: 'Jobs',
|
|
31
|
+
icon: Icons.Jobs,
|
|
32
|
+
customTheme: '#a9a9a9',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
tooltip: 'Connections',
|
|
36
|
+
icon: Icons.Connections,
|
|
37
|
+
customTheme: '#a9a9a9',
|
|
38
|
+
},
|
|
39
|
+
] as IReqoreBreadcrumbItem[];
|
|
40
|
+
|
|
41
|
+
export const breadcrumbsTabs = {
|
|
42
|
+
withTabs: {
|
|
43
|
+
activeTab: 'valuemaps',
|
|
44
|
+
onTabChange(tabId) {
|
|
45
|
+
console.log('🚀 ~ file: breadcrumbs.ts ~ line 46 ~ onTabChange ~ tabId', tabId);
|
|
46
|
+
},
|
|
47
|
+
tabs: [
|
|
48
|
+
{
|
|
49
|
+
label: 'RBAC',
|
|
50
|
+
icon: Icons.RBAC,
|
|
51
|
+
id: 'rbac',
|
|
52
|
+
props: {
|
|
53
|
+
onClick() {
|
|
54
|
+
console.log('rbac');
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
label: 'Value Maps',
|
|
60
|
+
icon: Icons.Valuemaps,
|
|
61
|
+
id: 'valuemaps',
|
|
62
|
+
onCloseClick(id) {
|
|
63
|
+
console.log('🚀 ~ file: breadcrumbs.ts ~ line 54 ~ onCloseClick ~ id', id);
|
|
64
|
+
},
|
|
65
|
+
intent: 'success',
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
label: 'SLAs',
|
|
69
|
+
icon: Icons.SLAs,
|
|
70
|
+
id: 'sla',
|
|
71
|
+
intent: 'danger',
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
label: 'Releases',
|
|
75
|
+
icon: Icons.Releases,
|
|
76
|
+
id: 'releases',
|
|
77
|
+
tooltip: {
|
|
78
|
+
content: 'Releases',
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
label: 'Errors',
|
|
83
|
+
icon: Icons.Errors,
|
|
84
|
+
id: 'errors',
|
|
85
|
+
props: {
|
|
86
|
+
onClick() {
|
|
87
|
+
console.log('errors');
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
],
|
|
92
|
+
} as IReqoreBreadcrumbItemTabs,
|
|
93
|
+
} as IReqoreBreadcrumbItem;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { IReqoreIconName } from '../types/icons';
|
|
2
|
+
|
|
3
|
+
export const Icons: { [key: string]: IReqoreIconName } = {
|
|
4
|
+
Dashboard: 'Home2Fill',
|
|
5
|
+
Workflow: 'ExchangeLine',
|
|
6
|
+
Services: 'GitMergeLine',
|
|
7
|
+
Jobs: 'CalendarLine',
|
|
8
|
+
Groups: 'BubbleChartFill',
|
|
9
|
+
Connections: 'StackshareLine',
|
|
10
|
+
Search: 'SearchLine',
|
|
11
|
+
Global: 'LayoutGridFill',
|
|
12
|
+
RBAC: 'GroupLine',
|
|
13
|
+
Valuemaps: 'MapLine',
|
|
14
|
+
SLAs: 'TimeLine',
|
|
15
|
+
Releases: 'InstallLine',
|
|
16
|
+
Errors: 'ErrorWarningLine',
|
|
17
|
+
Types: 'Key2Fill',
|
|
18
|
+
System: 'Settings2Line',
|
|
19
|
+
Alerts: 'AlarmWarningLine',
|
|
20
|
+
Cluster: 'GridFill',
|
|
21
|
+
OrderStats: 'PieChartLine',
|
|
22
|
+
Options: 'SettingsLine',
|
|
23
|
+
Properties: 'StackLine',
|
|
24
|
+
Cache: 'DatabaseLine',
|
|
25
|
+
HTTPServices: 'GlobeLine',
|
|
26
|
+
ConfigItems: 'Settings6Line',
|
|
27
|
+
More: 'MoreFill',
|
|
28
|
+
Library: 'Book3Line',
|
|
29
|
+
Extensions: 'AppsLine',
|
|
30
|
+
Logs: 'FileTextLine',
|
|
31
|
+
Info: 'InformationLine',
|
|
32
|
+
};
|
package/src/mock/menu.ts
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { IQorusSidebarItems } from "../components/Sidebar";
|
|
2
|
+
|
|
3
|
+
export const qorusSidebarItems: IQorusSidebarItems = {
|
|
4
|
+
Menu: {
|
|
5
|
+
title: "Menu",
|
|
6
|
+
items: [
|
|
7
|
+
{
|
|
8
|
+
name: "Menu item 1",
|
|
9
|
+
as: "a",
|
|
10
|
+
props: {
|
|
11
|
+
href: "/item-1",
|
|
12
|
+
},
|
|
13
|
+
icon: "Home3Line",
|
|
14
|
+
id: "menu-item-1",
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
name: "Menu item 2",
|
|
18
|
+
as: "a",
|
|
19
|
+
props: {
|
|
20
|
+
href: "/item-2",
|
|
21
|
+
},
|
|
22
|
+
icon: "Settings4Fill",
|
|
23
|
+
id: "menu-item-2",
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
name: "Menu item 3",
|
|
27
|
+
icon: "File3Line",
|
|
28
|
+
id: "menu-item-3",
|
|
29
|
+
activePaths: ["/item-3"],
|
|
30
|
+
submenu: [
|
|
31
|
+
{
|
|
32
|
+
name: "Submenu item 1",
|
|
33
|
+
as: "a",
|
|
34
|
+
props: {
|
|
35
|
+
href: "/item-3/item-1",
|
|
36
|
+
},
|
|
37
|
+
icon: "NodeTree",
|
|
38
|
+
id: "submenu-item-1",
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: "Submenu item 2",
|
|
42
|
+
as: "a",
|
|
43
|
+
props: {
|
|
44
|
+
href: "/item-3/item-2",
|
|
45
|
+
},
|
|
46
|
+
icon: "Chat3Fill",
|
|
47
|
+
id: "submenu-item-2",
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
name: "Super really long Submenu item 3",
|
|
51
|
+
as: "a",
|
|
52
|
+
props: {
|
|
53
|
+
href: "/item-3/item-3",
|
|
54
|
+
},
|
|
55
|
+
icon: "DatabaseFill",
|
|
56
|
+
id: "submenu-item-3",
|
|
57
|
+
},
|
|
58
|
+
],
|
|
59
|
+
},
|
|
60
|
+
],
|
|
61
|
+
},
|
|
62
|
+
Menu2: {
|
|
63
|
+
items: [
|
|
64
|
+
{
|
|
65
|
+
name: "Super Long Really Another item 1",
|
|
66
|
+
as: "a",
|
|
67
|
+
props: {
|
|
68
|
+
href: "/another-item-1",
|
|
69
|
+
},
|
|
70
|
+
icon: "Home6Line",
|
|
71
|
+
id: "another-item-1",
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
name: "Another item 2",
|
|
75
|
+
as: "a",
|
|
76
|
+
props: {
|
|
77
|
+
href: "/another-item-2",
|
|
78
|
+
},
|
|
79
|
+
icon: "TableFill",
|
|
80
|
+
id: "another-item-2",
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
name: "Another item 3",
|
|
84
|
+
as: "a",
|
|
85
|
+
props: {
|
|
86
|
+
onClick: () => {
|
|
87
|
+
alert("Click");
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
icon: "BellLine",
|
|
91
|
+
id: "another-item-3",
|
|
92
|
+
},
|
|
93
|
+
],
|
|
94
|
+
},
|
|
95
|
+
};
|
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"_id": "606d4c955f96372fd1b8bcd1",
|
|
4
|
+
"index": 0,
|
|
5
|
+
"guid": "d08cde5f-e18e-4d7f-80a9-6541848ab830",
|
|
6
|
+
"isActive": false,
|
|
7
|
+
"balance": "$3,219.32",
|
|
8
|
+
"picture": "http://placehold.it/32x32",
|
|
9
|
+
"age": 25,
|
|
10
|
+
"eyeColor": "brown",
|
|
11
|
+
"name": "Zelma Short",
|
|
12
|
+
"gender": "female",
|
|
13
|
+
"company": "LINGOAGE",
|
|
14
|
+
"email": "zelmashort@lingoage.com",
|
|
15
|
+
"phone": "+1 (840) 429-2274",
|
|
16
|
+
"address": "757 Woodside Avenue, Winchester, Marshall Islands, 2032",
|
|
17
|
+
"about": "Ipsum est ex nisi veniam proident adipisicing. Occaecat Lorem minim amet aliqua laboris excepteur sint eu mollit laborum sunt. Duis aliquip nulla cillum labore culpa ullamco labore non in nostrud. Cupidatat nisi enim ullamco quis voluptate Lorem voluptate minim dolore esse irure eiusmod aliquip amet. Dolore laboris Lorem laboris irure magna sint dolor. In irure adipisicing minim ullamco commodo ad dolore elit occaecat dolor. Cillum commodo est commodo dolor enim velit.\r\n",
|
|
18
|
+
"registered": "2015-03-19T05:00:22 -01:00",
|
|
19
|
+
"latitude": -8.97737,
|
|
20
|
+
"longitude": 110.576471,
|
|
21
|
+
"tags": [
|
|
22
|
+
"aute",
|
|
23
|
+
"qui",
|
|
24
|
+
"ut",
|
|
25
|
+
"mollit",
|
|
26
|
+
"culpa",
|
|
27
|
+
"qui",
|
|
28
|
+
"irure"
|
|
29
|
+
],
|
|
30
|
+
"friends": [
|
|
31
|
+
{
|
|
32
|
+
"id": 0,
|
|
33
|
+
"name": "Angel Gallagher"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"id": 1,
|
|
37
|
+
"name": "Rose Farmer"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"id": 2,
|
|
41
|
+
"name": "Jaclyn Keith"
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"greeting": "Hello, Zelma Short! You have 5 unread messages.",
|
|
45
|
+
"favoriteFruit": "banana"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"_id": "606d4c957cc794c26ad703f6",
|
|
49
|
+
"index": 1,
|
|
50
|
+
"guid": "366ccd74-64e4-4336-a660-78b55cccd653",
|
|
51
|
+
"isActive": true,
|
|
52
|
+
"balance": "$3,464.91",
|
|
53
|
+
"picture": "http://placehold.it/32x32",
|
|
54
|
+
"age": 32,
|
|
55
|
+
"eyeColor": "green",
|
|
56
|
+
"name": "Jennings Briggs",
|
|
57
|
+
"gender": "male",
|
|
58
|
+
"company": "FROSNEX",
|
|
59
|
+
"email": "jenningsbriggs@frosnex.com",
|
|
60
|
+
"phone": "+1 (821) 563-3061",
|
|
61
|
+
"address": "485 Auburn Place, Toftrees, North Carolina, 3460",
|
|
62
|
+
"about": "Sit voluptate ut ipsum aliquip officia eiusmod esse sint exercitation officia. Velit ex ex mollit ad enim voluptate Lorem nisi minim. Sit officia sit eu est anim Lorem aute anim nulla officia.\r\n",
|
|
63
|
+
"registered": "2014-11-25T11:58:45 -01:00",
|
|
64
|
+
"latitude": 32.968241,
|
|
65
|
+
"longitude": 21.905937,
|
|
66
|
+
"tags": [
|
|
67
|
+
"occaecat",
|
|
68
|
+
"id",
|
|
69
|
+
"sit",
|
|
70
|
+
"eiusmod",
|
|
71
|
+
"tempor",
|
|
72
|
+
"adipisicing",
|
|
73
|
+
"sint"
|
|
74
|
+
],
|
|
75
|
+
"friends": [
|
|
76
|
+
{
|
|
77
|
+
"id": 0,
|
|
78
|
+
"name": "Buck Watts"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"id": 1,
|
|
82
|
+
"name": "Barr Hull"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"id": 2,
|
|
86
|
+
"name": "Muriel Lowery"
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
"greeting": "Hello, Jennings Briggs! You have 8 unread messages.",
|
|
90
|
+
"favoriteFruit": "banana"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"_id": "606d4c953ed5ee3081404d98",
|
|
94
|
+
"index": 2,
|
|
95
|
+
"guid": "ed26f92f-26a7-492f-b3c8-a6767297526c",
|
|
96
|
+
"isActive": false,
|
|
97
|
+
"balance": "$3,974.33",
|
|
98
|
+
"picture": "http://placehold.it/32x32",
|
|
99
|
+
"age": 35,
|
|
100
|
+
"eyeColor": "green",
|
|
101
|
+
"name": "Stephenson Dunlap",
|
|
102
|
+
"gender": "male",
|
|
103
|
+
"company": "PLASMOS",
|
|
104
|
+
"email": "stephensondunlap@plasmos.com",
|
|
105
|
+
"phone": "+1 (809) 545-2664",
|
|
106
|
+
"address": "463 Cambridge Place, Cloverdale, South Dakota, 8144",
|
|
107
|
+
"about": "Laboris sit tempor laborum cupidatat ea quis commodo ut incididunt. Commodo dolor irure sit non. Enim pariatur sunt cupidatat enim aliquip velit laboris eiusmod sint. Esse eiusmod minim dolore sint. Quis duis id ut tempor tempor laboris fugiat quis proident. Irure proident deserunt consequat voluptate labore irure eu nulla commodo incididunt nisi officia amet est.\r\n",
|
|
108
|
+
"registered": "2019-06-05T08:58:50 -02:00",
|
|
109
|
+
"latitude": -41.239498,
|
|
110
|
+
"longitude": 11.237437,
|
|
111
|
+
"tags": [
|
|
112
|
+
"ut",
|
|
113
|
+
"consectetur",
|
|
114
|
+
"enim",
|
|
115
|
+
"deserunt",
|
|
116
|
+
"anim",
|
|
117
|
+
"adipisicing",
|
|
118
|
+
"irure"
|
|
119
|
+
],
|
|
120
|
+
"friends": [
|
|
121
|
+
{
|
|
122
|
+
"id": 0,
|
|
123
|
+
"name": "Cora Hobbs"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"id": 1,
|
|
127
|
+
"name": "Smith Gray"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"id": 2,
|
|
131
|
+
"name": "Rosanne Winters"
|
|
132
|
+
}
|
|
133
|
+
],
|
|
134
|
+
"greeting": "Hello, Stephenson Dunlap! You have 9 unread messages.",
|
|
135
|
+
"favoriteFruit": "strawberry"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"_id": "606d4c95cc5c1b49eaf17919",
|
|
139
|
+
"index": 3,
|
|
140
|
+
"guid": "904ad88c-c754-4575-b626-202d2b6324c7",
|
|
141
|
+
"isActive": true,
|
|
142
|
+
"balance": "$2,267.87",
|
|
143
|
+
"picture": "http://placehold.it/32x32",
|
|
144
|
+
"age": 21,
|
|
145
|
+
"eyeColor": "blue",
|
|
146
|
+
"name": "Sheryl Barton",
|
|
147
|
+
"gender": "female",
|
|
148
|
+
"company": "NAMEGEN",
|
|
149
|
+
"email": "sherylbarton@namegen.com",
|
|
150
|
+
"phone": "+1 (974) 505-2024",
|
|
151
|
+
"address": "524 Shale Street, Wauhillau, Idaho, 4275",
|
|
152
|
+
"about": "Enim aute ea anim sunt occaecat pariatur nisi excepteur eiusmod. Proident labore dolore elit veniam incididunt. Ad deserunt ipsum deserunt ad id.\r\n",
|
|
153
|
+
"registered": "2020-02-24T06:26:21 -01:00",
|
|
154
|
+
"latitude": -79.669108,
|
|
155
|
+
"longitude": 19.666959,
|
|
156
|
+
"tags": [
|
|
157
|
+
"magna",
|
|
158
|
+
"nisi",
|
|
159
|
+
"eiusmod",
|
|
160
|
+
"elit",
|
|
161
|
+
"eu",
|
|
162
|
+
"in",
|
|
163
|
+
"anim"
|
|
164
|
+
],
|
|
165
|
+
"friends": [
|
|
166
|
+
{
|
|
167
|
+
"id": 0,
|
|
168
|
+
"name": "Lowery Lucas"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"id": 1,
|
|
172
|
+
"name": "Lilia Mendoza"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"id": 2,
|
|
176
|
+
"name": "Frieda Valenzuela"
|
|
177
|
+
}
|
|
178
|
+
],
|
|
179
|
+
"greeting": "Hello, Sheryl Barton! You have 8 unread messages.",
|
|
180
|
+
"favoriteFruit": "strawberry"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"_id": "606d4c95dcb57310a73b8feb",
|
|
184
|
+
"index": 4,
|
|
185
|
+
"guid": "eaf6380a-7fb7-4924-b09f-5b37ed134f57",
|
|
186
|
+
"isActive": true,
|
|
187
|
+
"balance": "$3,578.40",
|
|
188
|
+
"picture": "http://placehold.it/32x32",
|
|
189
|
+
"age": 30,
|
|
190
|
+
"eyeColor": "brown",
|
|
191
|
+
"name": "Hahn Stanley",
|
|
192
|
+
"gender": "male",
|
|
193
|
+
"company": "GOGOL",
|
|
194
|
+
"email": "hahnstanley@gogol.com",
|
|
195
|
+
"phone": "+1 (948) 430-2371",
|
|
196
|
+
"address": "569 Bushwick Court, Jamestown, Tennessee, 3203",
|
|
197
|
+
"about": "Est ipsum enim occaecat dolor nisi excepteur. Officia magna veniam occaecat velit consectetur reprehenderit. Ut exercitation laboris est deserunt anim dolor sint pariatur. Commodo ut ex culpa incididunt irure cupidatat irure deserunt. Cillum excepteur quis sunt sunt in ex consectetur adipisicing incididunt labore adipisicing laboris sint.\r\n",
|
|
198
|
+
"registered": "2018-05-30T10:39:01 -02:00",
|
|
199
|
+
"latitude": 39.987328,
|
|
200
|
+
"longitude": -18.121186,
|
|
201
|
+
"tags": [
|
|
202
|
+
"amet",
|
|
203
|
+
"reprehenderit",
|
|
204
|
+
"elit",
|
|
205
|
+
"nostrud",
|
|
206
|
+
"sunt",
|
|
207
|
+
"consequat",
|
|
208
|
+
"fugiat"
|
|
209
|
+
],
|
|
210
|
+
"friends": [
|
|
211
|
+
{
|
|
212
|
+
"id": 0,
|
|
213
|
+
"name": "Mclaughlin Melendez"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"id": 1,
|
|
217
|
+
"name": "Freeman Barber"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"id": 2,
|
|
221
|
+
"name": "Acevedo Newton"
|
|
222
|
+
}
|
|
223
|
+
],
|
|
224
|
+
"greeting": "Hello, Hahn Stanley! You have 5 unread messages.",
|
|
225
|
+
"favoriteFruit": "banana"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"_id": "606d4c95769391999f8151f4",
|
|
229
|
+
"index": 5,
|
|
230
|
+
"guid": "eaa5653d-7576-4663-a2d9-58083caeb4df",
|
|
231
|
+
"isActive": true,
|
|
232
|
+
"balance": "$1,380.84",
|
|
233
|
+
"picture": "http://placehold.it/32x32",
|
|
234
|
+
"age": 38,
|
|
235
|
+
"eyeColor": "brown",
|
|
236
|
+
"name": "Paulette Perez",
|
|
237
|
+
"gender": "female",
|
|
238
|
+
"company": "VELOS",
|
|
239
|
+
"email": "pauletteperez@velos.com",
|
|
240
|
+
"phone": "+1 (861) 551-3633",
|
|
241
|
+
"address": "732 Bridgewater Street, Welch, Florida, 989",
|
|
242
|
+
"about": "Cupidatat veniam occaecat magna anim officia Lorem. Commodo amet pariatur deserunt consectetur excepteur dolor dolore ipsum enim duis dolor est. Et ad amet enim esse deserunt cupidatat qui esse. Enim ad sit Lorem sit voluptate dolore sit nisi aliqua sint exercitation. Commodo non ex adipisicing magna. Occaecat consequat minim sunt sint duis veniam mollit ullamco dolor in dolore.\r\n",
|
|
243
|
+
"registered": "2015-09-29T09:39:54 -02:00",
|
|
244
|
+
"latitude": -18.968669,
|
|
245
|
+
"longitude": -33.485271,
|
|
246
|
+
"tags": [
|
|
247
|
+
"mollit",
|
|
248
|
+
"officia",
|
|
249
|
+
"ipsum",
|
|
250
|
+
"veniam",
|
|
251
|
+
"laborum",
|
|
252
|
+
"laboris",
|
|
253
|
+
"consectetur"
|
|
254
|
+
],
|
|
255
|
+
"friends": [
|
|
256
|
+
{
|
|
257
|
+
"id": 0,
|
|
258
|
+
"name": "Young Bolton"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"id": 1,
|
|
262
|
+
"name": "Terrie Burke"
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"id": 2,
|
|
266
|
+
"name": "Hill Adams"
|
|
267
|
+
}
|
|
268
|
+
],
|
|
269
|
+
"greeting": "Hello, Paulette Perez! You have 9 unread messages.",
|
|
270
|
+
"favoriteFruit": "banana"
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"_id": "606d4c9524bd1bd2d57b00c2",
|
|
274
|
+
"index": 6,
|
|
275
|
+
"guid": "e4c19c95-0d20-4919-80c6-7bf05b80b66a",
|
|
276
|
+
"isActive": true,
|
|
277
|
+
"balance": "$3,334.46",
|
|
278
|
+
"picture": "http://placehold.it/32x32",
|
|
279
|
+
"age": 22,
|
|
280
|
+
"eyeColor": "blue",
|
|
281
|
+
"name": "Levine Bray",
|
|
282
|
+
"gender": "male",
|
|
283
|
+
"company": "AUSTEX",
|
|
284
|
+
"email": "levinebray@austex.com",
|
|
285
|
+
"phone": "+1 (968) 524-2455",
|
|
286
|
+
"address": "932 Debevoise Street, Wolcott, Palau, 8906",
|
|
287
|
+
"about": "Qui excepteur deserunt nulla tempor do tempor occaecat commodo et ipsum velit quis adipisicing id. Ullamco ad pariatur excepteur consectetur sit sit. Aute id anim id proident sint est irure culpa amet aute ex. Sint adipisicing aliqua velit nostrud elit aliquip voluptate occaecat duis voluptate occaecat reprehenderit et. Aliquip aute cillum ex cillum officia aliquip. Commodo enim ex aute elit consequat esse eiusmod. Eu cillum officia culpa in eiusmod non.\r\n",
|
|
288
|
+
"registered": "2014-12-29T03:11:31 -01:00",
|
|
289
|
+
"latitude": 55.032528,
|
|
290
|
+
"longitude": 178.669012,
|
|
291
|
+
"tags": [
|
|
292
|
+
"sit",
|
|
293
|
+
"non",
|
|
294
|
+
"et",
|
|
295
|
+
"labore",
|
|
296
|
+
"consectetur",
|
|
297
|
+
"voluptate",
|
|
298
|
+
"ea"
|
|
299
|
+
],
|
|
300
|
+
"friends": [
|
|
301
|
+
{
|
|
302
|
+
"id": 0,
|
|
303
|
+
"name": "Delores Clay"
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"id": 1,
|
|
307
|
+
"name": "Tanner Elliott"
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"id": 2,
|
|
311
|
+
"name": "Jeanne Randall"
|
|
312
|
+
}
|
|
313
|
+
],
|
|
314
|
+
"greeting": "Hello, Levine Bray! You have 5 unread messages.",
|
|
315
|
+
"favoriteFruit": "strawberry"
|
|
316
|
+
}
|
|
317
|
+
]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import shortid from 'shortid';
|
|
2
|
+
import { IReqoreTableColumn, IReqoreTableData } from '../components/Table';
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
columns: [
|
|
6
|
+
{
|
|
7
|
+
dataId: 'id',
|
|
8
|
+
header: 'ID',
|
|
9
|
+
width: 50,
|
|
10
|
+
align: 'center',
|
|
11
|
+
},
|
|
12
|
+
{ dataId: 'firstName', header: 'First Name', width: 150 },
|
|
13
|
+
{ dataId: 'lastName', header: 'Last Name', width: 150 },
|
|
14
|
+
{ dataId: 'address', header: 'Address', width: 300, grow: 2 },
|
|
15
|
+
{
|
|
16
|
+
dataId: 'age',
|
|
17
|
+
header: 'Really long age header',
|
|
18
|
+
width: 50,
|
|
19
|
+
align: 'center',
|
|
20
|
+
intent: 'success',
|
|
21
|
+
},
|
|
22
|
+
{ dataId: 'occupation', header: 'Ocuppation', width: 200 },
|
|
23
|
+
{ dataId: 'group', header: 'Group', width: 150, intent: 'muted' },
|
|
24
|
+
{ dataId: 'date', header: 'Date', width: 150, content: 'time-ago' },
|
|
25
|
+
] as IReqoreTableColumn[],
|
|
26
|
+
data: [...new Array(100)].map((_val, index) => ({
|
|
27
|
+
id: index,
|
|
28
|
+
firstName: shortid.generate(),
|
|
29
|
+
lastName: shortid.generate(),
|
|
30
|
+
address: `${shortid.generate()}, ${shortid.generate()}, ${shortid.generate()}`,
|
|
31
|
+
age: 99 - index,
|
|
32
|
+
occupation: shortid.generate(),
|
|
33
|
+
group: shortid.generate(),
|
|
34
|
+
date: Date.now(),
|
|
35
|
+
_intent: index === 2 || index === 3 || index === 4 ? 'info' : undefined,
|
|
36
|
+
_selectId: index !== 3 && index !== 6 ? `Row-${index}` : null,
|
|
37
|
+
_disabled: index === 5,
|
|
38
|
+
})) as IReqoreTableData,
|
|
39
|
+
height: 300,
|
|
40
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ComponentMeta, ComponentStory } from '@storybook/react';
|
|
2
|
+
import { IReqoreBreadcrumbItem, IReqoreBreadcrumbsProps } from '../../components/Breadcrumbs';
|
|
3
|
+
import { ReqoreBreadcrumbs } from '../../index';
|
|
4
|
+
import breadcrumbs, { breadcrumbsTabs } from '../../mock/breadcrumbs';
|
|
5
|
+
import { buildTemplate } from '../utils';
|
|
6
|
+
|
|
7
|
+
export default {
|
|
8
|
+
title: 'Components/Breadcrumbs',
|
|
9
|
+
argTypes: {
|
|
10
|
+
withTabs: {
|
|
11
|
+
name: 'With tabs',
|
|
12
|
+
defaultValue: false,
|
|
13
|
+
description: 'Whether tabs should be shown alongside the breadcrumbs',
|
|
14
|
+
control: 'boolean',
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
parameters: {
|
|
18
|
+
jest: ['breadcrumbs.test.tsx'],
|
|
19
|
+
},
|
|
20
|
+
} as ComponentMeta<typeof ReqoreBreadcrumbs & { withTabs?: boolean }>;
|
|
21
|
+
|
|
22
|
+
const Template: ComponentStory<typeof ReqoreBreadcrumbs & { withTabs?: boolean }> = (
|
|
23
|
+
args: IReqoreBreadcrumbsProps & { withTabs?: boolean }
|
|
24
|
+
) => {
|
|
25
|
+
const items = args.withTabs ? [...breadcrumbs, breadcrumbsTabs] : breadcrumbs;
|
|
26
|
+
const customTheme = args.customTheme ? { main: args.customTheme } : undefined;
|
|
27
|
+
|
|
28
|
+
return (
|
|
29
|
+
<ReqoreBreadcrumbs
|
|
30
|
+
{...args}
|
|
31
|
+
items={items as IReqoreBreadcrumbItem[]}
|
|
32
|
+
customTheme={customTheme as any}
|
|
33
|
+
/>
|
|
34
|
+
);
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export const Default = buildTemplate(Template);
|
|
38
|
+
export const WithTabs = buildTemplate(Template, { withTabs: true });
|