@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
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/react/types-6-0';
|
|
2
|
+
import { IReqoreTableColumn, IReqoreTableProps } from '../../components/Table';
|
|
3
|
+
import { ReqoreTable } from '../../index';
|
|
4
|
+
import tableData from '../../mock/tableData';
|
|
5
|
+
import { argManager, CustomIntentArg, FlatArg, IntentArg, SizeArg } from '../utils/args';
|
|
6
|
+
|
|
7
|
+
const { createArg } = argManager<IReqoreTableProps>();
|
|
8
|
+
|
|
9
|
+
export default {
|
|
10
|
+
title: 'Components/Table',
|
|
11
|
+
argTypes: {
|
|
12
|
+
...createArg('rounded', {
|
|
13
|
+
type: 'boolean',
|
|
14
|
+
name: 'Rounded',
|
|
15
|
+
description: 'If the table should have rounded corners',
|
|
16
|
+
}),
|
|
17
|
+
...createArg('striped', {
|
|
18
|
+
type: 'boolean',
|
|
19
|
+
name: 'Striped',
|
|
20
|
+
description: 'If the table should have striped rows',
|
|
21
|
+
}),
|
|
22
|
+
...createArg('selectable', {
|
|
23
|
+
type: 'boolean',
|
|
24
|
+
name: 'Selectable',
|
|
25
|
+
description: 'If the table should be selectable',
|
|
26
|
+
}),
|
|
27
|
+
...createArg('columns', {
|
|
28
|
+
name: 'Columns',
|
|
29
|
+
defaultValue: [
|
|
30
|
+
{
|
|
31
|
+
dataId: 'id',
|
|
32
|
+
header: 'ID',
|
|
33
|
+
width: 50,
|
|
34
|
+
align: 'center',
|
|
35
|
+
sortable: true,
|
|
36
|
+
tooltip: 'Custom ID tooltip nice',
|
|
37
|
+
content: 'tag',
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
header: 'Name',
|
|
41
|
+
dataId: 'name',
|
|
42
|
+
grow: 3,
|
|
43
|
+
columns: [
|
|
44
|
+
{
|
|
45
|
+
icon: 'SlideshowLine',
|
|
46
|
+
dataId: 'firstName',
|
|
47
|
+
header: 'First Name',
|
|
48
|
+
width: 150,
|
|
49
|
+
grow: 2,
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
icon: 'SlideshowLine',
|
|
53
|
+
dataId: 'lastName',
|
|
54
|
+
header: 'Last Name',
|
|
55
|
+
width: 150,
|
|
56
|
+
grow: 1,
|
|
57
|
+
sortable: true,
|
|
58
|
+
onCellClick: ({ lastName }) => alert(`Clicked last name cell ${lastName}`),
|
|
59
|
+
content: 'title:info',
|
|
60
|
+
},
|
|
61
|
+
],
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
dataId: 'address',
|
|
65
|
+
header: 'Address',
|
|
66
|
+
width: 300,
|
|
67
|
+
grow: 2,
|
|
68
|
+
onClick: () => alert('clicked address'),
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
icon: 'User4Line',
|
|
72
|
+
dataId: 'age',
|
|
73
|
+
header: 'Really long age header',
|
|
74
|
+
width: 50,
|
|
75
|
+
align: 'center',
|
|
76
|
+
sortable: true,
|
|
77
|
+
intent: 'danger',
|
|
78
|
+
content: 'tag:#000000',
|
|
79
|
+
onCellClick: ({ age }) => alert(`Clicked age cell ${age}`),
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
header: 'Data',
|
|
83
|
+
dataId: 'data',
|
|
84
|
+
columns: [
|
|
85
|
+
{ dataId: 'occupation', header: 'Ocuppation', width: 200, content: 'text:warning' },
|
|
86
|
+
{ dataId: 'group', header: 'Group', width: 150, intent: 'muted' },
|
|
87
|
+
],
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
dataId: 'date',
|
|
91
|
+
header: 'Date',
|
|
92
|
+
sortable: true,
|
|
93
|
+
content: 'time-ago',
|
|
94
|
+
},
|
|
95
|
+
] as IReqoreTableColumn[],
|
|
96
|
+
}),
|
|
97
|
+
...createArg('width', {
|
|
98
|
+
type: 'number',
|
|
99
|
+
defaultValue: 800,
|
|
100
|
+
name: 'Width',
|
|
101
|
+
description: 'The width of the table',
|
|
102
|
+
}),
|
|
103
|
+
...createArg('height', {
|
|
104
|
+
type: 'number',
|
|
105
|
+
defaultValue: 600,
|
|
106
|
+
name: 'Height',
|
|
107
|
+
description: 'The height of the table',
|
|
108
|
+
}),
|
|
109
|
+
...createArg('data', {
|
|
110
|
+
type: 'array',
|
|
111
|
+
defaultValue: tableData.data,
|
|
112
|
+
name: 'Data',
|
|
113
|
+
description: 'The data to be displayed in the table',
|
|
114
|
+
table: {
|
|
115
|
+
disable: true,
|
|
116
|
+
},
|
|
117
|
+
}),
|
|
118
|
+
...createArg('selectToggleTooltip', {
|
|
119
|
+
type: 'string',
|
|
120
|
+
defaultValue: 'Select This Row',
|
|
121
|
+
name: 'Select Toggle Tooltip',
|
|
122
|
+
description: 'The tooltip of the select toggle',
|
|
123
|
+
}),
|
|
124
|
+
...SizeArg,
|
|
125
|
+
...FlatArg,
|
|
126
|
+
...IntentArg,
|
|
127
|
+
...CustomIntentArg('selectedRowIntent'),
|
|
128
|
+
},
|
|
129
|
+
} as Meta<IReqoreTableProps>;
|
|
130
|
+
|
|
131
|
+
const Template: Story<IReqoreTableProps> = (args) => {
|
|
132
|
+
return <ReqoreTable {...args} sort={{ by: 'age', direction: 'desc' }} />;
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
export const Basic = Template.bind({});
|
|
136
|
+
export const Flat = Template.bind({});
|
|
137
|
+
Flat.args = {
|
|
138
|
+
flat: true,
|
|
139
|
+
};
|
|
140
|
+
export const Striped = Template.bind({});
|
|
141
|
+
Striped.args = {
|
|
142
|
+
striped: true,
|
|
143
|
+
};
|
|
144
|
+
export const Rounded = Template.bind({});
|
|
145
|
+
Rounded.args = {
|
|
146
|
+
rounded: true,
|
|
147
|
+
};
|
|
148
|
+
export const Selectable = Template.bind({});
|
|
149
|
+
Selectable.args = {
|
|
150
|
+
selectable: true,
|
|
151
|
+
};
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/react/types-6-0';
|
|
2
|
+
import { IReqoreTabsProps } from '../../components/Tabs';
|
|
3
|
+
import { ReqoreTabs, ReqoreTabsContent } from '../../index';
|
|
4
|
+
import { argManager, FlatArg, IntentArg, SizeArg } from '../utils/args';
|
|
5
|
+
|
|
6
|
+
const tabs = [
|
|
7
|
+
{
|
|
8
|
+
label: 'Tab 1',
|
|
9
|
+
id: 'tab1',
|
|
10
|
+
icon: 'Home3Line',
|
|
11
|
+
tooltip: 'Hooooooome!',
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
label: 'Tab 2',
|
|
15
|
+
id: 'tab2',
|
|
16
|
+
icon: 'Settings6Line',
|
|
17
|
+
as: 'a',
|
|
18
|
+
props: {
|
|
19
|
+
href: 'https://google.com',
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
label: 'Really long tab name with tooltip',
|
|
24
|
+
id: 3,
|
|
25
|
+
icon: 'FileSettingsLine',
|
|
26
|
+
tooltip: 'Click to go to page 3!',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
id: 'tab4',
|
|
30
|
+
icon: 'LightbulbLine',
|
|
31
|
+
intent: 'success',
|
|
32
|
+
onCloseClick: (id) => {
|
|
33
|
+
alert(`${id} close click`);
|
|
34
|
+
},
|
|
35
|
+
closeIcon: 'DeleteBinFill',
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
label: 'Tab 5',
|
|
39
|
+
id: 'tab5',
|
|
40
|
+
icon: 'Polaroid2Line',
|
|
41
|
+
disabled: true,
|
|
42
|
+
onCloseClick: (id) => {
|
|
43
|
+
alert(`${id} close click`);
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
label: 'Lorem Ipsum',
|
|
48
|
+
id: 'tab6',
|
|
49
|
+
icon: 'DragMoveLine',
|
|
50
|
+
intent: 'danger',
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
label: 'Hey I am another long tab',
|
|
54
|
+
id: 'tab7',
|
|
55
|
+
icon: 'LeafFill',
|
|
56
|
+
onCloseClick: (id) => {
|
|
57
|
+
alert(`${id} close click`);
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
label: 'Tab 8',
|
|
62
|
+
id: 'tab8',
|
|
63
|
+
icon: 'MapPin3Line',
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
label: 'Tab 9',
|
|
67
|
+
id: 'tab9',
|
|
68
|
+
icon: 'EjectLine',
|
|
69
|
+
},
|
|
70
|
+
] as IReqoreTabsProps['tabs'];
|
|
71
|
+
|
|
72
|
+
const { createArg } = argManager<IReqoreTabsProps>();
|
|
73
|
+
|
|
74
|
+
export default {
|
|
75
|
+
title: 'Components/Tabs',
|
|
76
|
+
argTypes: {
|
|
77
|
+
...FlatArg,
|
|
78
|
+
...SizeArg,
|
|
79
|
+
...IntentArg,
|
|
80
|
+
...createArg('fill', {
|
|
81
|
+
type: 'boolean',
|
|
82
|
+
defaultValue: false,
|
|
83
|
+
name: 'Fill',
|
|
84
|
+
description: 'If the tabs should fill the container',
|
|
85
|
+
}),
|
|
86
|
+
...createArg('vertical', {
|
|
87
|
+
type: 'boolean',
|
|
88
|
+
defaultValue: false,
|
|
89
|
+
name: 'Vertical',
|
|
90
|
+
description: 'If the tabs should be vertical',
|
|
91
|
+
}),
|
|
92
|
+
},
|
|
93
|
+
} as Meta<IReqoreTabsProps>;
|
|
94
|
+
|
|
95
|
+
const Template: Story<IReqoreTabsProps> = (args) => {
|
|
96
|
+
return (
|
|
97
|
+
<ReqoreTabs {...args} tabs={tabs}>
|
|
98
|
+
<ReqoreTabsContent tabId='tab1'>
|
|
99
|
+
<h3>Tab 1</h3>
|
|
100
|
+
</ReqoreTabsContent>
|
|
101
|
+
<ReqoreTabsContent tabId='tab2'>
|
|
102
|
+
<h3>Tab 2</h3>
|
|
103
|
+
</ReqoreTabsContent>
|
|
104
|
+
<ReqoreTabsContent tabId={3}>
|
|
105
|
+
<h3>Tab 3</h3>
|
|
106
|
+
</ReqoreTabsContent>
|
|
107
|
+
<ReqoreTabsContent tabId='tab4'>
|
|
108
|
+
<h3>Tab 4</h3>
|
|
109
|
+
</ReqoreTabsContent>
|
|
110
|
+
<ReqoreTabsContent tabId='tab5'>
|
|
111
|
+
<h3>Tab 5</h3>
|
|
112
|
+
</ReqoreTabsContent>
|
|
113
|
+
<ReqoreTabsContent tabId='tab6'>
|
|
114
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur vitae nisi ligula. Proin
|
|
115
|
+
laoreet vitae risus sed pretium. Sed eu elit non tortor congue molestie vel ut elit. Duis id
|
|
116
|
+
turpis tincidunt libero accumsan cursus. Quisque urna nibh, tempor ac lorem sed, dapibus
|
|
117
|
+
ornare arcu. Vestibulum at nunc tempus, ultricies justo eget, luctus turpis. Curabitur et
|
|
118
|
+
sapien in est rhoncus suscipit vitae id purus. Cras malesuada, metus vitae vulputate ornare,
|
|
119
|
+
ligula ipsum fringilla ligula, a cursus tortor ligula semper sem. Praesent fringilla dui
|
|
120
|
+
volutpat elementum ultrices. Nam rutrum, augue finibus tempus auctor, eros metus iaculis
|
|
121
|
+
neque, at vehicula ante quam et metus. Etiam quis commodo nunc. Aenean rhoncus, mi ac
|
|
122
|
+
tincidunt efficitur, nisl nunc tempor ipsum, accumsan eleifend felis nisl vitae diam. Nunc
|
|
123
|
+
vitae dapibus nisi. Donec cursus vitae justo ut interdum. Suspendisse mattis, erat vel
|
|
124
|
+
molestie faucibus, tortor neque mollis erat, vulputate aliquet tortor nulla eu diam. Ut eget
|
|
125
|
+
fringilla sapien. Vivamus ut leo in tellus ultrices lacinia non vel lorem. Sed imperdiet
|
|
126
|
+
sapien ut odio sagittis gravida nec vel lacus. Morbi euismod libero sed tristique
|
|
127
|
+
condimentum. Nullam id erat justo. Ut in justo turpis. Nam eleifend tincidunt lacinia. Duis
|
|
128
|
+
non lacinia purus. Mauris accumsan nunc nulla, at consectetur odio pharetra eu. Phasellus
|
|
129
|
+
non massa maximus, placerat velit eget, porta ante. Sed porttitor arcu orci, vitae
|
|
130
|
+
vestibulum odio blandit et. Fusce fringilla ipsum eu ante venenatis dapibus. Morbi ornare
|
|
131
|
+
ultricies risus ut ullamcorper. Curabitur feugiat enim libero, non commodo nibh facilisis
|
|
132
|
+
nec. Integer suscipit quis ligula a porta. Mauris eget odio tincidunt, fermentum tellus non,
|
|
133
|
+
tincidunt tellus. Aliquam erat volutpat. Ut metus libero, facilisis quis est nec, auctor
|
|
134
|
+
finibus justo. Quisque scelerisque placerat mi ac ullamcorper. Aenean vestibulum lorem id
|
|
135
|
+
elit blandit, id viverra tortor fringilla. Vivamus consectetur sodales mauris, in semper
|
|
136
|
+
tellus dapibus vitae. Donec eget sapien in eros accumsan vestibulum. Praesent nec purus
|
|
137
|
+
libero. Aliquam maximus sem ac quam gravida, eu fermentum quam varius. In quam augue, rutrum
|
|
138
|
+
maximus posuere non, molestie ut arcu. Sed pretium rhoncus ullamcorper. Praesent quis purus
|
|
139
|
+
ac dolor tincidunt porttitor eget vitae felis. Sed posuere tellus eu ex dignissim porta.
|
|
140
|
+
Nullam in molestie nisl. Class aptent taciti sociosqu ad litora torquent per conubia nostra,
|
|
141
|
+
per inceptos himenaeos. Proin et varius justo, in faucibus diam. Aenean arcu ex, gravida
|
|
142
|
+
vitae nunc nec, tincidunt venenatis sapien. Duis congue pulvinar ipsum. Integer maximus
|
|
143
|
+
felis mattis ipsum vestibulum lacinia. Maecenas tortor risus, malesuada a est at, lobortis
|
|
144
|
+
tempus tellus. Quisque commodo velit id nisi viverra, non dignissim turpis tristique.
|
|
145
|
+
Suspendisse felis est, fringilla non pellentesque sit amet, varius quis sem. In non velit
|
|
146
|
+
massa. Aenean at porttitor est. Sed viverra eleifend cursus. Ut nec justo porttitor,
|
|
147
|
+
sollicitudin nisl ac, malesuada leo. Morbi consequat ornare suscipit. Maecenas eleifend quam
|
|
148
|
+
sagittis tortor volutpat porttitor. Vivamus dictum ex id finibus tristique. Nulla rutrum,
|
|
149
|
+
ante sagittis molestie aliquet, lectus quam condimentum nisl, a convallis mauris massa sed
|
|
150
|
+
risus. Curabitur ac suscipit dolor, nec dapibus justo. Pellentesque nec sollicitudin sapien.
|
|
151
|
+
Ut metus neque, volutpat eu est eu, iaculis suscipit augue. Fusce blandit magna tincidunt
|
|
152
|
+
turpis semper venenatis. Nullam sit amet accumsan massa. Donec interdum ut dui nec varius.
|
|
153
|
+
Pellentesque ut tellus sit amet tellus mollis consectetur. Aenean aliquam leo elit. Nullam
|
|
154
|
+
convallis felis et rhoncus fermentum. Nunc rutrum nulla sed nisl efficitur laoreet.
|
|
155
|
+
Suspendisse potenti. Sed vitae consequat tellus. Vestibulum in eros at turpis pretium
|
|
156
|
+
rutrum. Phasellus commodo commodo libero, eu volutpat nunc tempus nec. Donec tempus
|
|
157
|
+
dignissim lectus, quis molestie quam dignissim a. Cras eget mauris id libero suscipit
|
|
158
|
+
consequat. Nulla facilisi. Donec arcu arcu, venenatis quis mattis quis, pretium nec justo.
|
|
159
|
+
Praesent aliquet tortor in nulla pellentesque, condimentum congue sapien laoreet. Nullam
|
|
160
|
+
semper consectetur feugiat. Nunc a orci non leo malesuada aliquam eu eget tellus.
|
|
161
|
+
Suspendisse potenti. Nam ornare ornare ullamcorper. Sed semper porttitor sem, eu vehicula
|
|
162
|
+
purus egestas sit amet. Cras sit amet aliquet augue. Cras velit leo, pellentesque quis eros
|
|
163
|
+
eu, feugiat gravida quam. Mauris in turpis nunc. Suspendisse varius urna quam, sit amet
|
|
164
|
+
tempus sem tristique ut. Quisque at velit nec nibh varius tempor venenatis vel felis. Morbi
|
|
165
|
+
velit sapien, facilisis ut odio quis, laoreet euismod magna. Quisque efficitur euismod diam,
|
|
166
|
+
in ullamcorper sapien tristique vitae. Nullam ac volutpat quam. Morbi vulputate arcu nisl,
|
|
167
|
+
et tempus dui tincidunt vel. Morbi finibus pretium pretium. Aliquam fermentum turpis sit
|
|
168
|
+
amet est faucibus elementum ac quis sem. Maecenas scelerisque commodo magna eget blandit.
|
|
169
|
+
Praesent vitae bibendum mauris, eu blandit dui.
|
|
170
|
+
</ReqoreTabsContent>
|
|
171
|
+
<ReqoreTabsContent tabId='tab7'>
|
|
172
|
+
<h3>Tab 7</h3>
|
|
173
|
+
</ReqoreTabsContent>
|
|
174
|
+
<ReqoreTabsContent tabId='tab8'>
|
|
175
|
+
<h3>Tab 8</h3>
|
|
176
|
+
</ReqoreTabsContent>
|
|
177
|
+
<ReqoreTabsContent tabId='tab9'>
|
|
178
|
+
<h3>Tab 9</h3>
|
|
179
|
+
</ReqoreTabsContent>
|
|
180
|
+
</ReqoreTabs>
|
|
181
|
+
);
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
export const Basic = Template.bind({});
|
|
185
|
+
export const Fill = Template.bind({});
|
|
186
|
+
Fill.args = {
|
|
187
|
+
fill: true,
|
|
188
|
+
};
|
|
189
|
+
|
|
190
|
+
export const Vertical = Template.bind({});
|
|
191
|
+
Vertical.args = {
|
|
192
|
+
vertical: true,
|
|
193
|
+
fillParent: true,
|
|
194
|
+
};
|
|
195
|
+
|
|
196
|
+
export const VerticalWithWrapping = Template.bind({});
|
|
197
|
+
VerticalWithWrapping.args = {
|
|
198
|
+
tabs: {
|
|
199
|
+
...tabs,
|
|
200
|
+
vertical: true,
|
|
201
|
+
fillParent: true,
|
|
202
|
+
wrapTabNames: true,
|
|
203
|
+
},
|
|
204
|
+
};
|
|
205
|
+
|
|
206
|
+
export const VerticalFill = Template.bind({});
|
|
207
|
+
VerticalFill.args = {
|
|
208
|
+
tabs: {
|
|
209
|
+
...tabs,
|
|
210
|
+
vertical: true,
|
|
211
|
+
fill: true,
|
|
212
|
+
fillParent: true,
|
|
213
|
+
},
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
export const VerticalCustomWidth = Template.bind({});
|
|
217
|
+
VerticalCustomWidth.args = {
|
|
218
|
+
tabs: {
|
|
219
|
+
...tabs,
|
|
220
|
+
vertical: true,
|
|
221
|
+
fill: true,
|
|
222
|
+
fillParent: true,
|
|
223
|
+
width: '300px',
|
|
224
|
+
},
|
|
225
|
+
};
|
|
226
|
+
|
|
227
|
+
export const Flat = Template.bind({});
|
|
228
|
+
Flat.args = {
|
|
229
|
+
tabs: {
|
|
230
|
+
...tabs,
|
|
231
|
+
flat: true,
|
|
232
|
+
},
|
|
233
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/react/types-6-0';
|
|
2
|
+
import { noop } from 'lodash';
|
|
3
|
+
import { IReqoreTagProps } from '../../components/Tag';
|
|
4
|
+
import { IReqoreTagGroup } from '../../components/Tag/group';
|
|
5
|
+
import { ReqoreTag, ReqoreTagGroup } from '../../index';
|
|
6
|
+
import { argManager, SizeArg } from '../utils/args';
|
|
7
|
+
|
|
8
|
+
const { createArg } = argManager<IReqoreTagGroup & IReqoreTagProps>();
|
|
9
|
+
|
|
10
|
+
export default {
|
|
11
|
+
title: 'Components/Tag',
|
|
12
|
+
argTypes: {
|
|
13
|
+
...SizeArg,
|
|
14
|
+
...createArg('columns', {
|
|
15
|
+
name: 'Columns',
|
|
16
|
+
description: 'Number of columns',
|
|
17
|
+
control: 'number',
|
|
18
|
+
}),
|
|
19
|
+
...createArg('onClick', {
|
|
20
|
+
defaultValue: noop,
|
|
21
|
+
table: {
|
|
22
|
+
disable: true,
|
|
23
|
+
},
|
|
24
|
+
}),
|
|
25
|
+
...createArg('onRemoveClick', {
|
|
26
|
+
defaultValue: noop,
|
|
27
|
+
table: {
|
|
28
|
+
disable: true,
|
|
29
|
+
},
|
|
30
|
+
}),
|
|
31
|
+
...createArg('actions', {
|
|
32
|
+
defaultValue: [
|
|
33
|
+
{
|
|
34
|
+
icon: '24HoursFill',
|
|
35
|
+
onClick: noop,
|
|
36
|
+
disabled: true,
|
|
37
|
+
intent: 'info',
|
|
38
|
+
tooltip: { content: 'I am a tooltip' },
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
icon: 'PsychotherapyFill',
|
|
42
|
+
onClick: noop,
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
icon: 'SpyFill',
|
|
46
|
+
onClick: noop,
|
|
47
|
+
intent: 'success',
|
|
48
|
+
tooltip: { content: 'Hm, another tooltip', openOnMount: true },
|
|
49
|
+
},
|
|
50
|
+
],
|
|
51
|
+
table: {
|
|
52
|
+
disable: true,
|
|
53
|
+
},
|
|
54
|
+
}),
|
|
55
|
+
},
|
|
56
|
+
} as Meta<IReqoreTagGroup & IReqoreTagProps>;
|
|
57
|
+
|
|
58
|
+
const Template: Story<IReqoreTagGroup & IReqoreTagProps> = ({ columns, ...args }) => {
|
|
59
|
+
return (
|
|
60
|
+
<ReqoreTagGroup columns={columns} size={args.size}>
|
|
61
|
+
<ReqoreTag label='Basic Tag' icon='AlarmWarningLine' {...args} />
|
|
62
|
+
<ReqoreTag label='Disabled Tag' disabled icon='AlarmWarningLine' {...args} />
|
|
63
|
+
<ReqoreTag label='300px Tag' width='300px' icon='AlarmWarningLine' {...args} />
|
|
64
|
+
<ReqoreTag label='Danger Tag' icon='AlarmWarningLine' intent='danger' {...args} />
|
|
65
|
+
<ReqoreTag label='Custom Color Tag' icon='AlarmWarningLine' color='#38fdb2' {...args} />
|
|
66
|
+
</ReqoreTagGroup>
|
|
67
|
+
);
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
export const Basic = Template.bind({});
|
|
71
|
+
export const Badge = Template.bind({});
|
|
72
|
+
Badge.args = { badge: true };
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/react/types-6-0';
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
import { IReqoreTextareaProps } from '../../components/Textarea';
|
|
4
|
+
import { ReqoreTextarea } from '../../index';
|
|
5
|
+
import { argManager, DisabledArg, MinimalArg, SizeArg } from '../utils/args';
|
|
6
|
+
|
|
7
|
+
const { createArg } = argManager<IReqoreTextareaProps>();
|
|
8
|
+
|
|
9
|
+
export default {
|
|
10
|
+
title: 'Components/TextArea',
|
|
11
|
+
argTypes: {
|
|
12
|
+
...MinimalArg(),
|
|
13
|
+
...DisabledArg,
|
|
14
|
+
...SizeArg,
|
|
15
|
+
...createArg('scaleWithContent', {
|
|
16
|
+
name: 'Scale with content',
|
|
17
|
+
description: 'Scale with content',
|
|
18
|
+
control: 'boolean',
|
|
19
|
+
defaultValue: true,
|
|
20
|
+
}),
|
|
21
|
+
...createArg('fluid', {
|
|
22
|
+
name: 'Fluid',
|
|
23
|
+
description: 'Fluid',
|
|
24
|
+
control: 'boolean',
|
|
25
|
+
defaultValue: false,
|
|
26
|
+
}),
|
|
27
|
+
...createArg('placeholder', {
|
|
28
|
+
name: 'Placeholder',
|
|
29
|
+
description: 'Placeholder',
|
|
30
|
+
control: 'text',
|
|
31
|
+
defaultValue: 'Placeholder',
|
|
32
|
+
}),
|
|
33
|
+
},
|
|
34
|
+
} as Meta<IReqoreTextareaProps>;
|
|
35
|
+
|
|
36
|
+
const str =
|
|
37
|
+
'✔ Checking your system\n' +
|
|
38
|
+
'✔ Locating Application\n' +
|
|
39
|
+
'✔ Preparing native dependencies\n' +
|
|
40
|
+
'✔ Compiling Main Process Code\n' +
|
|
41
|
+
'✔ Launch Dev Servers\n' +
|
|
42
|
+
'✔ Compiling Preload Scripts\n' +
|
|
43
|
+
'✔ Launching Application\n';
|
|
44
|
+
|
|
45
|
+
const Template: Story<IReqoreTextareaProps> = (args) => {
|
|
46
|
+
const [value, setValue] = useState(str);
|
|
47
|
+
|
|
48
|
+
const handleValueChange = (e) => {
|
|
49
|
+
setValue(e.target.value);
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
const handleValueClear = () => {
|
|
53
|
+
setValue('');
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
return (
|
|
57
|
+
<ReqoreTextarea
|
|
58
|
+
{...args}
|
|
59
|
+
onChange={handleValueChange}
|
|
60
|
+
onClearClick={handleValueClear}
|
|
61
|
+
value={value}
|
|
62
|
+
/>
|
|
63
|
+
);
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
export const Basic = Template.bind({});
|
|
67
|
+
export const Minimal = Template.bind({});
|
|
68
|
+
Minimal.args = {
|
|
69
|
+
minimal: true,
|
|
70
|
+
};
|
|
71
|
+
export const Disabled = Template.bind({});
|
|
72
|
+
Disabled.args = {
|
|
73
|
+
disabled: true,
|
|
74
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/react/types-6-0';
|
|
2
|
+
import { noop } from 'lodash';
|
|
3
|
+
import { IReqoreTreeProps, ReqoreTree } from '../../components/Tree';
|
|
4
|
+
import MockObject from '../../mock/object.json';
|
|
5
|
+
import { argManager } from '../utils/args';
|
|
6
|
+
|
|
7
|
+
const { createArg } = argManager<IReqoreTreeProps>();
|
|
8
|
+
|
|
9
|
+
export default {
|
|
10
|
+
title: 'Components/Tree',
|
|
11
|
+
argTypes: {
|
|
12
|
+
...createArg('withLabelCopy', {
|
|
13
|
+
name: 'With label copy',
|
|
14
|
+
description: 'With label copy',
|
|
15
|
+
control: 'boolean',
|
|
16
|
+
defaultValue: true,
|
|
17
|
+
}),
|
|
18
|
+
...createArg('showTypes', {
|
|
19
|
+
name: 'Show types',
|
|
20
|
+
description: 'Show types',
|
|
21
|
+
control: 'boolean',
|
|
22
|
+
defaultValue: true,
|
|
23
|
+
}),
|
|
24
|
+
...createArg('expanded', {
|
|
25
|
+
name: 'Expanded',
|
|
26
|
+
description: 'Expanded',
|
|
27
|
+
control: 'boolean',
|
|
28
|
+
defaultValue: false,
|
|
29
|
+
}),
|
|
30
|
+
},
|
|
31
|
+
} as Meta<IReqoreTreeProps>;
|
|
32
|
+
|
|
33
|
+
const data = MockObject;
|
|
34
|
+
|
|
35
|
+
const Template: Story<IReqoreTreeProps> = (args: IReqoreTreeProps) => {
|
|
36
|
+
return <ReqoreTree data={data} onItemClick={noop} {...args} />;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export const Basic = Template.bind({});
|
|
40
|
+
export const TextView = Template.bind({});
|
|
41
|
+
TextView.args = {
|
|
42
|
+
mode: 'copy',
|
|
43
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReqoreLayoutContent } from '..';
|
|
2
|
+
import ReqoreContent from '../components/Content';
|
|
3
|
+
import ReqoreUIProvider, { IReqoreUIProviderProps } from '../containers/UIProvider';
|
|
4
|
+
|
|
5
|
+
export const StoryWrapper = ({ children, ...args }: IReqoreUIProviderProps) => {
|
|
6
|
+
return (
|
|
7
|
+
<ReqoreUIProvider {...args}>
|
|
8
|
+
<ReqoreLayoutContent>
|
|
9
|
+
<ReqoreContent style={{ padding: '20px' }}>{children}</ReqoreContent>
|
|
10
|
+
</ReqoreLayoutContent>
|
|
11
|
+
</ReqoreUIProvider>
|
|
12
|
+
);
|
|
13
|
+
};
|