@qoretechnologies/reqore 0.20.0 → 0.20.3
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/.github/ISSUE_TEMPLATE/bug_report.md +38 -0
- package/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- package/.github/ISSUE_TEMPLATE/new-component.md +20 -0
- package/.github/ISSUE_TEMPLATE/visual-bug-report.md +38 -0
- package/dist/components/Breadcrumbs/index.d.ts +33 -0
- package/dist/components/Breadcrumbs/index.d.ts.map +1 -0
- package/dist/components/Breadcrumbs/index.js +167 -0
- package/dist/components/Breadcrumbs/index.js.map +1 -0
- package/dist/components/Breadcrumbs/item.d.ts +14 -0
- package/dist/components/Breadcrumbs/item.d.ts.map +1 -0
- package/dist/components/Breadcrumbs/item.js +84 -0
- package/dist/components/Breadcrumbs/item.js.map +1 -0
- package/dist/components/Button/index.d.ts +33 -0
- package/dist/components/Button/index.d.ts.map +1 -0
- package/dist/components/Button/index.js +154 -0
- package/dist/components/Button/index.js.map +1 -0
- package/dist/components/Checkbox/index.d.ts +26 -0
- package/dist/components/Checkbox/index.d.ts.map +1 -0
- package/dist/components/Checkbox/index.js +108 -0
- package/dist/components/Checkbox/index.js.map +1 -0
- package/dist/components/Columns/column.d.ts +5 -0
- package/dist/components/Columns/column.d.ts.map +1 -0
- package/dist/components/Columns/column.js +37 -0
- package/dist/components/Columns/column.js.map +1 -0
- package/dist/components/Columns/index.d.ts +17 -0
- package/dist/components/Columns/index.d.ts.map +1 -0
- package/dist/components/Columns/index.js +69 -0
- package/dist/components/Columns/index.js.map +1 -0
- package/dist/components/Comment/index.d.ts +24 -0
- package/dist/components/Comment/index.d.ts.map +1 -0
- package/dist/components/Comment/index.js +71 -0
- package/dist/components/Comment/index.js.map +1 -0
- package/dist/components/CommentFeed/index.d.ts +7 -0
- package/dist/components/CommentFeed/index.d.ts.map +1 -0
- package/dist/components/CommentFeed/index.js +49 -0
- package/dist/components/CommentFeed/index.js.map +1 -0
- package/dist/components/Content/index.d.ts +11 -0
- package/dist/components/Content/index.d.ts.map +1 -0
- package/dist/components/Content/index.js +70 -0
- package/dist/components/Content/index.js.map +1 -0
- package/dist/components/Content/wrapper.d.ts +11 -0
- package/dist/components/Content/wrapper.d.ts.map +1 -0
- package/dist/components/Content/wrapper.js +43 -0
- package/dist/components/Content/wrapper.js.map +1 -0
- package/dist/components/ControlGroup/index.d.ts +17 -0
- package/dist/components/ControlGroup/index.d.ts.map +1 -0
- package/dist/components/ControlGroup/index.js +90 -0
- package/dist/components/ControlGroup/index.js.map +1 -0
- package/dist/components/Drawer/index.d.ts +36 -0
- package/dist/components/Drawer/index.d.ts.map +1 -0
- package/dist/components/Drawer/index.js +251 -0
- package/dist/components/Drawer/index.js.map +1 -0
- package/dist/components/Dropdown/index.d.ts +24 -0
- package/dist/components/Dropdown/index.d.ts.map +1 -0
- package/dist/components/Dropdown/index.js +38 -0
- package/dist/components/Dropdown/index.js.map +1 -0
- package/dist/components/Dropdown/item.d.ts +10 -0
- package/dist/components/Dropdown/item.d.ts.map +1 -0
- package/dist/components/Dropdown/item.js +35 -0
- package/dist/components/Dropdown/item.js.map +1 -0
- package/dist/components/Dropdown/list.d.ts +14 -0
- package/dist/components/Dropdown/list.d.ts.map +1 -0
- package/dist/components/Dropdown/list.js +47 -0
- package/dist/components/Dropdown/list.js.map +1 -0
- package/dist/components/Header/index.d.ts +13 -0
- package/dist/components/Header/index.d.ts.map +1 -0
- package/dist/components/Header/index.js +44 -0
- package/dist/components/Header/index.js.map +1 -0
- package/dist/components/Icon/index.d.ts +16 -0
- package/dist/components/Icon/index.d.ts.map +1 -0
- package/dist/components/Icon/index.js +81 -0
- package/dist/components/Icon/index.js.map +1 -0
- package/dist/components/Input/index.d.ts +33 -0
- package/dist/components/Input/index.d.ts.map +1 -0
- package/dist/components/Input/index.js +115 -0
- package/dist/components/Input/index.js.map +1 -0
- package/dist/components/InputClearButton/index.d.ts +10 -0
- package/dist/components/InputClearButton/index.d.ts.map +1 -0
- package/dist/components/InputClearButton/index.js +49 -0
- package/dist/components/InputClearButton/index.js.map +1 -0
- package/dist/components/InternalPopover/index.d.ts +7 -0
- package/dist/components/InternalPopover/index.d.ts.map +1 -0
- package/dist/components/InternalPopover/index.js +132 -0
- package/dist/components/InternalPopover/index.js.map +1 -0
- package/dist/components/Layout/content.d.ts +8 -0
- package/dist/components/Layout/content.d.ts.map +1 -0
- package/dist/components/Layout/content.js +41 -0
- package/dist/components/Layout/content.js.map +1 -0
- package/dist/components/Layout/index.d.ts +8 -0
- package/dist/components/Layout/index.d.ts.map +1 -0
- package/dist/components/Layout/index.js +69 -0
- package/dist/components/Layout/index.js.map +1 -0
- package/dist/components/Menu/divider.d.ts +7 -0
- package/dist/components/Menu/divider.d.ts.map +1 -0
- package/dist/components/Menu/divider.js +49 -0
- package/dist/components/Menu/divider.js.map +1 -0
- package/dist/components/Menu/index.d.ts +17 -0
- package/dist/components/Menu/index.d.ts.map +1 -0
- package/dist/components/Menu/index.js +89 -0
- package/dist/components/Menu/index.js.map +1 -0
- package/dist/components/Menu/item.d.ts +31 -0
- package/dist/components/Menu/item.d.ts.map +1 -0
- package/dist/components/Menu/item.js +121 -0
- package/dist/components/Menu/item.js.map +1 -0
- package/dist/components/Message/index.d.ts +25 -0
- package/dist/components/Message/index.d.ts.map +1 -0
- package/dist/components/Message/index.js +54 -0
- package/dist/components/Message/index.js.map +1 -0
- package/dist/components/Modal/actions.d.ts +6 -0
- package/dist/components/Modal/actions.d.ts.map +1 -0
- package/dist/components/Modal/actions.js +49 -0
- package/dist/components/Modal/actions.js.map +1 -0
- package/dist/components/Modal/content.d.ts +6 -0
- package/dist/components/Modal/content.d.ts.map +1 -0
- package/dist/components/Modal/content.js +25 -0
- package/dist/components/Modal/content.js.map +1 -0
- package/dist/components/Modal/index.d.ts +14 -0
- package/dist/components/Modal/index.d.ts.map +1 -0
- package/dist/components/Modal/index.js +33 -0
- package/dist/components/Modal/index.js.map +1 -0
- package/dist/components/Navbar/divider.d.ts +9 -0
- package/dist/components/Navbar/divider.d.ts.map +1 -0
- package/dist/components/Navbar/divider.js +47 -0
- package/dist/components/Navbar/divider.js.map +1 -0
- package/dist/components/Navbar/group.d.ts +15 -0
- package/dist/components/Navbar/group.d.ts.map +1 -0
- package/dist/components/Navbar/group.js +75 -0
- package/dist/components/Navbar/group.js.map +1 -0
- package/dist/components/Navbar/index.d.ts +16 -0
- package/dist/components/Navbar/index.d.ts.map +1 -0
- package/dist/components/Navbar/index.js +86 -0
- package/dist/components/Navbar/index.js.map +1 -0
- package/dist/components/Navbar/item.d.ts +16 -0
- package/dist/components/Navbar/item.d.ts.map +1 -0
- package/dist/components/Navbar/item.js +81 -0
- package/dist/components/Navbar/item.js.map +1 -0
- package/dist/components/Notifications/index.d.ts +12 -0
- package/dist/components/Notifications/index.d.ts.map +1 -0
- package/dist/components/Notifications/index.js +60 -0
- package/dist/components/Notifications/index.js.map +1 -0
- package/dist/components/Notifications/notification.d.ts +43 -0
- package/dist/components/Notifications/notification.d.ts.map +1 -0
- package/dist/components/Notifications/notification.js +140 -0
- package/dist/components/Notifications/notification.js.map +1 -0
- package/dist/components/Panel/index.d.ts +49 -0
- package/dist/components/Panel/index.d.ts.map +1 -0
- package/dist/components/Panel/index.js +172 -0
- package/dist/components/Panel/index.js.map +1 -0
- package/dist/components/Panel/panel.screenshot.d.ts +3 -0
- package/dist/components/Panel/panel.screenshot.d.ts.map +1 -0
- package/dist/components/Panel/panel.screenshot.js +30 -0
- package/dist/components/Panel/panel.screenshot.js.map +1 -0
- package/dist/components/Paragraph/index.d.ts +8 -0
- package/dist/components/Paragraph/index.d.ts.map +1 -0
- package/dist/components/Paragraph/index.js +64 -0
- package/dist/components/Paragraph/index.js.map +1 -0
- package/dist/components/Popover/index.d.ts +16 -0
- package/dist/components/Popover/index.d.ts.map +1 -0
- package/dist/components/Popover/index.js +55 -0
- package/dist/components/Popover/index.js.map +1 -0
- package/dist/components/RadioGroup/index.d.ts +17 -0
- package/dist/components/RadioGroup/index.d.ts.map +1 -0
- package/dist/components/RadioGroup/index.js +48 -0
- package/dist/components/RadioGroup/index.js.map +1 -0
- package/dist/components/Sidebar/index.d.ts +60 -0
- package/dist/components/Sidebar/index.d.ts.map +1 -0
- package/dist/components/Sidebar/index.js +265 -0
- package/dist/components/Sidebar/index.js.map +1 -0
- package/dist/components/Sidebar/item.d.ts +36 -0
- package/dist/components/Sidebar/item.d.ts.map +1 -0
- package/dist/components/Sidebar/item.js +106 -0
- package/dist/components/Sidebar/item.js.map +1 -0
- package/dist/components/Table/body.d.ts +10 -0
- package/dist/components/Table/body.d.ts.map +1 -0
- package/dist/components/Table/body.js +44 -0
- package/dist/components/Table/body.js.map +1 -0
- package/dist/components/Table/header.d.ts +29 -0
- package/dist/components/Table/header.d.ts.map +1 -0
- package/dist/components/Table/header.js +106 -0
- package/dist/components/Table/header.js.map +1 -0
- package/dist/components/Table/headerCell.d.ts +18 -0
- package/dist/components/Table/headerCell.d.ts.map +1 -0
- package/dist/components/Table/headerCell.js +92 -0
- package/dist/components/Table/headerCell.js.map +1 -0
- package/dist/components/Table/helpers.d.ts +8 -0
- package/dist/components/Table/helpers.d.ts.map +1 -0
- package/dist/components/Table/helpers.js +41 -0
- package/dist/components/Table/helpers.js.map +1 -0
- package/dist/components/Table/index.d.ts +75 -0
- package/dist/components/Table/index.d.ts.map +1 -0
- package/dist/components/Table/index.js +165 -0
- package/dist/components/Table/index.js.map +1 -0
- package/dist/components/Table/row.d.ts +58 -0
- package/dist/components/Table/row.d.ts.map +1 -0
- package/dist/components/Table/row.js +204 -0
- package/dist/components/Table/row.js.map +1 -0
- package/dist/components/Tabs/content.d.ts +8 -0
- package/dist/components/Tabs/content.d.ts.map +1 -0
- package/dist/components/Tabs/content.js +41 -0
- package/dist/components/Tabs/content.js.map +1 -0
- package/dist/components/Tabs/index.d.ts +39 -0
- package/dist/components/Tabs/index.d.ts.map +1 -0
- package/dist/components/Tabs/index.js +83 -0
- package/dist/components/Tabs/index.js.map +1 -0
- package/dist/components/Tabs/item.d.ts +23 -0
- package/dist/components/Tabs/item.d.ts.map +1 -0
- package/dist/components/Tabs/item.js +71 -0
- package/dist/components/Tabs/item.js.map +1 -0
- package/dist/components/Tabs/list.d.ts +17 -0
- package/dist/components/Tabs/list.d.ts.map +1 -0
- package/dist/components/Tabs/list.js +189 -0
- package/dist/components/Tabs/list.js.map +1 -0
- package/dist/components/Tag/group.d.ts +10 -0
- package/dist/components/Tag/group.d.ts.map +1 -0
- package/dist/components/Tag/group.js +50 -0
- package/dist/components/Tag/group.js.map +1 -0
- package/dist/components/Tag/index.d.ts +36 -0
- package/dist/components/Tag/index.d.ts.map +1 -0
- package/dist/components/Tag/index.js +136 -0
- package/dist/components/Tag/index.js.map +1 -0
- package/dist/components/Textarea/index.d.ts +26 -0
- package/dist/components/Textarea/index.d.ts.map +1 -0
- package/dist/components/Textarea/index.js +85 -0
- package/dist/components/Textarea/index.js.map +1 -0
- package/dist/components/TimeAgo/index.d.ts +4 -0
- package/dist/components/TimeAgo/index.d.ts.map +1 -0
- package/dist/components/TimeAgo/index.js +21 -0
- package/dist/components/TimeAgo/index.js.map +1 -0
- package/dist/components/Tree/index.d.ts +16 -0
- package/dist/components/Tree/index.d.ts.map +1 -0
- package/dist/components/Tree/index.js +155 -0
- package/dist/components/Tree/index.js.map +1 -0
- package/dist/constants/animations.d.ts +5 -0
- package/dist/constants/animations.d.ts.map +1 -0
- package/dist/constants/animations.js +8 -0
- package/dist/constants/animations.js.map +1 -0
- package/dist/constants/colors.d.ts +10 -0
- package/dist/constants/colors.d.ts.map +1 -0
- package/dist/constants/colors.js +13 -0
- package/dist/constants/colors.js.map +1 -0
- package/dist/constants/sizes.d.ts +59 -0
- package/dist/constants/sizes.d.ts.map +1 -0
- package/dist/constants/sizes.js +60 -0
- package/dist/constants/sizes.js.map +1 -0
- package/dist/constants/theme.d.ts +81 -0
- package/dist/constants/theme.d.ts.map +1 -0
- package/dist/constants/theme.js +20 -0
- package/dist/constants/theme.js.map +1 -0
- package/dist/containers/PopoverProvider.d.ts +13 -0
- package/dist/containers/PopoverProvider.d.ts.map +1 -0
- package/dist/containers/PopoverProvider.js +81 -0
- package/dist/containers/PopoverProvider.js.map +1 -0
- package/dist/containers/ReqoreProvider.d.ts +40 -0
- package/dist/containers/ReqoreProvider.d.ts.map +1 -0
- package/dist/containers/ReqoreProvider.js +125 -0
- package/dist/containers/ReqoreProvider.js.map +1 -0
- package/dist/containers/ThemeProvider.d.ts +8 -0
- package/dist/containers/ThemeProvider.d.ts.map +1 -0
- package/dist/containers/ThemeProvider.js +27 -0
- package/dist/containers/ThemeProvider.js.map +1 -0
- package/dist/containers/UIProvider.d.ts +13 -0
- package/dist/containers/UIProvider.d.ts.map +1 -0
- package/dist/containers/UIProvider.js +43 -0
- package/dist/containers/UIProvider.js.map +1 -0
- package/dist/context/PopoverContext.d.ts +11 -0
- package/dist/context/PopoverContext.d.ts.map +1 -0
- package/dist/context/PopoverContext.js +5 -0
- package/dist/context/PopoverContext.js.map +1 -0
- package/dist/context/ReqoreContext.d.ts +15 -0
- package/dist/context/ReqoreContext.d.ts.map +1 -0
- package/dist/context/ReqoreContext.js +10 -0
- package/dist/context/ReqoreContext.js.map +1 -0
- package/dist/context/ThemeContext.d.ts +5 -0
- package/dist/context/ThemeContext.d.ts.map +1 -0
- package/dist/context/ThemeContext.js +6 -0
- package/dist/context/ThemeContext.js.map +1 -0
- package/dist/helpers/animations.d.ts +2 -0
- package/dist/helpers/animations.d.ts.map +1 -0
- package/dist/helpers/animations.js +11 -0
- package/dist/helpers/animations.js.map +1 -0
- package/dist/helpers/colors.d.ts +14 -0
- package/dist/helpers/colors.d.ts.map +1 -0
- package/dist/helpers/colors.js +108 -0
- package/dist/helpers/colors.js.map +1 -0
- package/dist/helpers/sidebar.d.ts +4 -0
- package/dist/helpers/sidebar.d.ts.map +1 -0
- package/dist/helpers/sidebar.js +90 -0
- package/dist/helpers/sidebar.js.map +1 -0
- package/dist/helpers/time.d.ts +8 -0
- package/dist/helpers/time.d.ts.map +1 -0
- package/dist/helpers/time.js +25 -0
- package/dist/helpers/time.js.map +1 -0
- package/dist/helpers/utils.d.ts +5 -0
- package/dist/helpers/utils.d.ts.map +1 -0
- package/dist/helpers/utils.js +103 -0
- package/dist/helpers/utils.js.map +1 -0
- package/dist/hooks/useCombinedRefs.d.ts +3 -0
- package/dist/hooks/useCombinedRefs.d.ts.map +1 -0
- package/dist/hooks/useCombinedRefs.js +29 -0
- package/dist/hooks/useCombinedRefs.js.map +1 -0
- package/dist/hooks/useLatestZIndex.d.ts +3 -0
- package/dist/hooks/useLatestZIndex.d.ts.map +1 -0
- package/dist/hooks/useLatestZIndex.js +11 -0
- package/dist/hooks/useLatestZIndex.js.map +1 -0
- package/dist/hooks/useOutsideClick.d.ts +4 -0
- package/dist/hooks/useOutsideClick.d.ts.map +1 -0
- package/dist/hooks/useOutsideClick.js +19 -0
- package/dist/hooks/useOutsideClick.js.map +1 -0
- package/dist/hooks/usePopover.d.ts +19 -0
- package/dist/hooks/usePopover.d.ts.map +1 -0
- package/dist/hooks/usePopover.js +86 -0
- package/dist/hooks/usePopover.js.map +1 -0
- package/dist/hooks/useShareForwardedRef.d.ts +3 -0
- package/dist/hooks/useShareForwardedRef.d.ts.map +1 -0
- package/dist/hooks/useShareForwardedRef.js +25 -0
- package/dist/hooks/useShareForwardedRef.js.map +1 -0
- package/dist/hooks/useTheme.d.ts +3 -0
- package/dist/hooks/useTheme.d.ts.map +1 -0
- package/dist/hooks/useTheme.js +21 -0
- package/dist/hooks/useTheme.js.map +1 -0
- package/dist/hooks/useTooltip.d.ts +3 -0
- package/dist/hooks/useTooltip.d.ts.map +1 -0
- package/dist/hooks/useTooltip.js +24 -0
- package/dist/hooks/useTooltip.js.map +1 -0
- package/dist/index.d.ts +52 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +127 -0
- package/dist/index.js.map +1 -0
- package/dist/styles.d.ts +5 -0
- package/dist/styles.d.ts.map +1 -0
- package/dist/styles.js +16 -0
- package/dist/styles.js.map +1 -0
- package/dist/types/global.d.ts +9 -0
- package/dist/types/global.d.ts.map +1 -0
- package/dist/types/global.js +3 -0
- package/dist/types/global.js.map +1 -0
- package/dist/types/icons.d.ts +2 -0
- package/dist/types/icons.d.ts.map +1 -0
- package/dist/types/icons.js +3 -0
- package/dist/types/icons.js.map +1 -0
- package/dist/types/icons____.d.ts +2 -0
- package/dist/types/icons____.d.ts.map +1 -0
- package/dist/types/icons____.js +5 -0
- package/dist/types/icons____.js.map +1 -0
- 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/dist/tests.json +0 -1
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { ComponentMeta, ComponentStory } from '@storybook/react';
|
|
2
|
+
import ReqoreButton from '../../components/Button';
|
|
3
|
+
import { ReqoreControlGroup } from '../../index';
|
|
4
|
+
import { IconArg } from '../utils/args';
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
title: 'Components/Button',
|
|
8
|
+
parameters: {
|
|
9
|
+
jest: ['button.test.tsx'],
|
|
10
|
+
},
|
|
11
|
+
argTypes: {
|
|
12
|
+
...IconArg('icon', 'Icon'),
|
|
13
|
+
...IconArg('rightIcon', 'Right Icon'),
|
|
14
|
+
},
|
|
15
|
+
} as ComponentMeta<typeof ReqoreButton>;
|
|
16
|
+
|
|
17
|
+
const Template: ComponentStory<typeof ReqoreButton> = (buttonProps) => {
|
|
18
|
+
return (
|
|
19
|
+
<>
|
|
20
|
+
<ReqoreControlGroup size={buttonProps.size}>
|
|
21
|
+
<ReqoreButton {...buttonProps}>Default</ReqoreButton>
|
|
22
|
+
<ReqoreButton {...buttonProps} disabled>
|
|
23
|
+
Disabled
|
|
24
|
+
</ReqoreButton>
|
|
25
|
+
<ReqoreButton {...buttonProps} active>
|
|
26
|
+
Active
|
|
27
|
+
</ReqoreButton>
|
|
28
|
+
<ReqoreButton {...buttonProps} flat>
|
|
29
|
+
Flat
|
|
30
|
+
</ReqoreButton>
|
|
31
|
+
<ReqoreButton {...buttonProps} minimal>
|
|
32
|
+
Minimal
|
|
33
|
+
</ReqoreButton>
|
|
34
|
+
</ReqoreControlGroup>
|
|
35
|
+
<br />
|
|
36
|
+
<ReqoreControlGroup fluid>
|
|
37
|
+
<ReqoreButton {...buttonProps} fluid>
|
|
38
|
+
Fluid button
|
|
39
|
+
</ReqoreButton>
|
|
40
|
+
</ReqoreControlGroup>
|
|
41
|
+
</>
|
|
42
|
+
);
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export const Default = Template.bind({});
|
|
46
|
+
export const Info = Template.bind({});
|
|
47
|
+
Info.args = {
|
|
48
|
+
intent: 'info',
|
|
49
|
+
};
|
|
50
|
+
export const Success = Template.bind({});
|
|
51
|
+
Success.args = {
|
|
52
|
+
intent: 'success',
|
|
53
|
+
};
|
|
54
|
+
export const Warning = Template.bind({});
|
|
55
|
+
Warning.args = {
|
|
56
|
+
intent: 'warning',
|
|
57
|
+
};
|
|
58
|
+
export const Pending = Template.bind({});
|
|
59
|
+
Pending.args = {
|
|
60
|
+
intent: 'pending',
|
|
61
|
+
};
|
|
62
|
+
export const Danger = Template.bind({});
|
|
63
|
+
Danger.args = {
|
|
64
|
+
intent: 'danger',
|
|
65
|
+
};
|
|
66
|
+
export const Muted = Template.bind({});
|
|
67
|
+
Muted.args = {
|
|
68
|
+
intent: 'muted',
|
|
69
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ComponentMeta, ComponentStory } from '@storybook/react';
|
|
2
|
+
import Checkbox from '../../components/Checkbox';
|
|
3
|
+
import { ReqoreCheckbox } from '../../index';
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
title: 'Components/Checkbox',
|
|
7
|
+
parameters: ['checkbox.test.tsx'],
|
|
8
|
+
} as ComponentMeta<typeof Checkbox>;
|
|
9
|
+
|
|
10
|
+
const Template: ComponentStory<typeof Checkbox> = (args) => {
|
|
11
|
+
return (
|
|
12
|
+
<>
|
|
13
|
+
<ReqoreCheckbox {...args} />
|
|
14
|
+
<ReqoreCheckbox {...args} label='Label' labelDetail='Detail' labelDetailPosition='left' />
|
|
15
|
+
<ReqoreCheckbox {...args} checked />
|
|
16
|
+
<ReqoreCheckbox {...args} disabled />
|
|
17
|
+
<ReqoreCheckbox {...args} label='Label' labelDetail='Detail' labelPosition='left' />
|
|
18
|
+
</>
|
|
19
|
+
);
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export const Basic = Template.bind({});
|
|
23
|
+
export const Switch = Template.bind({});
|
|
24
|
+
Switch.args = {
|
|
25
|
+
asSwitch: true,
|
|
26
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/react';
|
|
2
|
+
import { IReqoreColumnsProps } from '../../components/Columns';
|
|
3
|
+
import { ReqoreColumn, ReqoreColumns } from '../../index';
|
|
4
|
+
import { argManager } from '../utils/args';
|
|
5
|
+
|
|
6
|
+
export interface IColumnsStoryArgs extends IReqoreColumnsProps {
|
|
7
|
+
multipleColumns?: boolean;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
const { createArg, disableArgs } = argManager<IColumnsStoryArgs>();
|
|
11
|
+
|
|
12
|
+
export default {
|
|
13
|
+
title: 'Components/Columns',
|
|
14
|
+
component: ReqoreColumns,
|
|
15
|
+
argTypes: {
|
|
16
|
+
...createArg('multipleColumns', {
|
|
17
|
+
defaultValue: false,
|
|
18
|
+
control: 'boolean',
|
|
19
|
+
name: 'Multiple Columns',
|
|
20
|
+
}),
|
|
21
|
+
...createArg('minColumnWidth', {
|
|
22
|
+
defaultValue: '200px',
|
|
23
|
+
}),
|
|
24
|
+
...createArg('maxColumnWidth', {
|
|
25
|
+
defaultValue: '300px',
|
|
26
|
+
}),
|
|
27
|
+
...createArg('alignItems', {
|
|
28
|
+
defaultValue: 'normal',
|
|
29
|
+
}),
|
|
30
|
+
...createArg('alignItems', {
|
|
31
|
+
defaultValue: 'normal',
|
|
32
|
+
}),
|
|
33
|
+
...createArg('columns', {
|
|
34
|
+
defaultValue: undefined,
|
|
35
|
+
type: 'number',
|
|
36
|
+
}),
|
|
37
|
+
...createArg('columnsGap', {
|
|
38
|
+
defaultValue: undefined,
|
|
39
|
+
}),
|
|
40
|
+
...disableArgs(['className', 'multipleColumns']),
|
|
41
|
+
},
|
|
42
|
+
} as Meta<IColumnsStoryArgs>;
|
|
43
|
+
|
|
44
|
+
const Template: Story<IColumnsStoryArgs> = (args) => {
|
|
45
|
+
return (
|
|
46
|
+
<ReqoreColumns {...args}>
|
|
47
|
+
<ReqoreColumn {...args} style={{ border: '1px solid white', padding: '10px' }}>
|
|
48
|
+
1st column
|
|
49
|
+
</ReqoreColumn>
|
|
50
|
+
<ReqoreColumn {...args} style={{ border: '1px solid white', padding: '10px' }}>
|
|
51
|
+
2nd column
|
|
52
|
+
</ReqoreColumn>
|
|
53
|
+
{args.multipleColumns && (
|
|
54
|
+
<>
|
|
55
|
+
<ReqoreColumn {...args} style={{ border: '1px solid white', padding: '10px' }}>
|
|
56
|
+
4th column
|
|
57
|
+
</ReqoreColumn>
|
|
58
|
+
<ReqoreColumn {...args} style={{ border: '1px solid white', padding: '10px' }}>
|
|
59
|
+
3rd column
|
|
60
|
+
</ReqoreColumn>
|
|
61
|
+
</>
|
|
62
|
+
)}
|
|
63
|
+
</ReqoreColumns>
|
|
64
|
+
);
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
export const Basic = Template.bind({});
|
|
68
|
+
export const MultipleColumns = Template.bind({});
|
|
69
|
+
MultipleColumns.args = {
|
|
70
|
+
multipleColumns: true,
|
|
71
|
+
};
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { ComponentMeta, ComponentStory } from '@storybook/react';
|
|
2
|
+
import { IReqoreCommentFeedProps } from '../../components/CommentFeed';
|
|
3
|
+
import { ReqoreComment, ReqoreCommentFeed } from '../../index';
|
|
4
|
+
import { argManager } from '../utils/args';
|
|
5
|
+
|
|
6
|
+
const { createArg } = argManager<IReqoreCommentFeedProps>();
|
|
7
|
+
|
|
8
|
+
export default {
|
|
9
|
+
title: 'Components/Comments',
|
|
10
|
+
argTypes: {
|
|
11
|
+
...createArg('gapSize', {
|
|
12
|
+
defaultValue: '0',
|
|
13
|
+
type: 'string',
|
|
14
|
+
}),
|
|
15
|
+
},
|
|
16
|
+
} as ComponentMeta<typeof ReqoreCommentFeed>;
|
|
17
|
+
|
|
18
|
+
const Template: ComponentStory<typeof ReqoreCommentFeed> = (args) => {
|
|
19
|
+
return (
|
|
20
|
+
<ReqoreCommentFeed {...args}>
|
|
21
|
+
<ReqoreComment title='Test comment' detail='2 hours ago' icon='UserFill'>
|
|
22
|
+
This is a test
|
|
23
|
+
</ReqoreComment>
|
|
24
|
+
<ReqoreComment
|
|
25
|
+
title='Test comment'
|
|
26
|
+
detail='2 hours ago'
|
|
27
|
+
icon='UserFill'
|
|
28
|
+
rounded
|
|
29
|
+
flat
|
|
30
|
+
intent='info'
|
|
31
|
+
>
|
|
32
|
+
root@f075a0285dc4:/usr/src/app# yarn storybook yarn run v1.22.5 $ start-storybook -p 6006
|
|
33
|
+
--no-dll info @storybook/react v6.3.6 info (node:94152) DeprecationWarning: DLL-related CLI
|
|
34
|
+
flags are deprecated, see:
|
|
35
|
+
https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-dll-flags (Use
|
|
36
|
+
`node --trace-deprecation ...` to show where the warning was created) info = Loading presets
|
|
37
|
+
info = Loading 1 config file in "/usr/src/app/.storybook" info = Loading 9 other files in
|
|
38
|
+
"/usr/src/app/.storybook" info = Adding stories defined in "/usr/src/app/.storybook/main.js"
|
|
39
|
+
info = Using implicit CSS loaders info = Using prebuilt manager info = Using default
|
|
40
|
+
Webpack4 setup (node:94152) DeprecationWarning: Default PostCSS plugins are deprecated. When
|
|
41
|
+
switching to '@storybook/addon-postcss', you will need to add your own plugins, such as
|
|
42
|
+
'postcss-flexbugs-fixes' and 'autoprefixer'. See
|
|
43
|
+
https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-default-postcss-plugins
|
|
44
|
+
for details. webpack built preview fa5eb92344441c8f8b60 in 13740ms
|
|
45
|
+
</ReqoreComment>
|
|
46
|
+
<ReqoreComment
|
|
47
|
+
title='Test comment'
|
|
48
|
+
detail='2 hours ago'
|
|
49
|
+
intent='danger'
|
|
50
|
+
image='https://lh3.googleusercontent.com/ogw/ADea4I59tV_-XSMTDNNfJuHsP5-6I22aIE7Q8itFr2peUQ=s32-c-mo'
|
|
51
|
+
>
|
|
52
|
+
This is a test of some kind
|
|
53
|
+
</ReqoreComment>
|
|
54
|
+
<ReqoreComment icon='UserFill' rounded flat intent='info' detail='2 hours ago'>
|
|
55
|
+
root@f075a0285dc4:/usr/src/app# yarn storybook yarn run v1.22.5 $ start-storybook -p 6006
|
|
56
|
+
--no-dll info @storybook/react v6.3.6 info (node:94152) DeprecationWarning: DLL-related CLI
|
|
57
|
+
flags are deprecated, see:
|
|
58
|
+
https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-dll-flags (Use
|
|
59
|
+
`node --trace-deprecation ...` to show where the warning was created) info = Loading presets
|
|
60
|
+
info = Loading 1 config file in "/usr/src/app/.storybook" info = Loading 9 other files in
|
|
61
|
+
"/usr/src/app/.storybook" info = Adding stories defined in "/usr/src/app/.storybook/main.js"
|
|
62
|
+
info = Using implicit CSS loaders info = Using prebuilt manager info = Using default
|
|
63
|
+
Webpack4 setup (node:94152) DeprecationWarning: Default PostCSS plugins are deprecated. When
|
|
64
|
+
switching to '@storybook/addon-postcss', you will need to add your own plugins, such as
|
|
65
|
+
'postcss-flexbugs-fixes' and 'autoprefixer'. See
|
|
66
|
+
https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-default-postcss-plugins
|
|
67
|
+
for details. webpack built preview fa5eb92344441c8f8b60 in 13740ms
|
|
68
|
+
</ReqoreComment>
|
|
69
|
+
<ReqoreComment
|
|
70
|
+
rounded
|
|
71
|
+
flat
|
|
72
|
+
intent='info'
|
|
73
|
+
title='Awesome comment'
|
|
74
|
+
actions={[
|
|
75
|
+
{
|
|
76
|
+
label: 'Edit',
|
|
77
|
+
icon: 'Edit2Line',
|
|
78
|
+
},
|
|
79
|
+
]}
|
|
80
|
+
>
|
|
81
|
+
root@f075a0285dc4:/usr/src/app# yarn storybook yarn run v1.22.5 $ start-storybook -p 6006
|
|
82
|
+
--no-dll info @storybook/react v6.3.6 info (node:94152) DeprecationWarning: DLL-related CLI
|
|
83
|
+
flags are deprecated, see:
|
|
84
|
+
https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-dll-flags (Use
|
|
85
|
+
`node --trace-deprecation ...` to show where the warning was created) info = Loading presets
|
|
86
|
+
info = Loading 1 config file in "/usr/src/app/.storybook" info = Loading 9 other files in
|
|
87
|
+
"/usr/src/app/.storybook" info = Adding stories defined in "/usr/src/app/.storybook/main.js"
|
|
88
|
+
info = Using implicit CSS loaders info = Using prebuilt manager info = Using default
|
|
89
|
+
Webpack4 setup (node:94152) DeprecationWarning: Default PostCSS plugins are deprecated. When
|
|
90
|
+
switching to '@storybook/addon-postcss', you will need to add your own plugins, such as
|
|
91
|
+
'postcss-flexbugs-fixes' and 'autoprefixer'. See
|
|
92
|
+
https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-default-postcss-plugins
|
|
93
|
+
for details. webpack built preview fa5eb92344441c8f8b60 in 13740ms
|
|
94
|
+
</ReqoreComment>
|
|
95
|
+
<ReqoreComment
|
|
96
|
+
rounded
|
|
97
|
+
flat
|
|
98
|
+
intent='warning'
|
|
99
|
+
actions={[
|
|
100
|
+
{
|
|
101
|
+
label: 'Edit',
|
|
102
|
+
icon: 'Edit2Line',
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
icon: 'DeleteBin2Fill',
|
|
106
|
+
},
|
|
107
|
+
]}
|
|
108
|
+
>
|
|
109
|
+
root@f075a0285dc4:/usr/src/app# yarn storybook yarn run v1.22.5 $ start-storybook -p 6006
|
|
110
|
+
--no-dll info @storybook/react v6.3.6 info (node:94152) DeprecationWarning: DLL-related CLI
|
|
111
|
+
flags are deprecated, see:
|
|
112
|
+
https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-dll-flags (Use
|
|
113
|
+
`node --trace-deprecation ...` to show where the warning was created) info = Loading presets
|
|
114
|
+
info = Loading 1 config file in "/usr/src/app/.storybook" info = Loading 9 other files in
|
|
115
|
+
"/usr/src/app/.storybook" info = Adding stories defined in "/usr/src/app/.storybook/main.js"
|
|
116
|
+
info = Using implicit CSS loaders info = Using prebuilt manager info = Using default
|
|
117
|
+
Webpack4 setup (node:94152) DeprecationWarning: Default PostCSS plugins are deprecated. When
|
|
118
|
+
switching to '@storybook/addon-postcss', you will need to add your own plugins, such as
|
|
119
|
+
'postcss-flexbugs-fixes' and 'autoprefixer'. See
|
|
120
|
+
https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-default-postcss-plugins
|
|
121
|
+
for details. webpack built preview fa5eb92344441c8f8b60 in 13740ms
|
|
122
|
+
</ReqoreComment>
|
|
123
|
+
</ReqoreCommentFeed>
|
|
124
|
+
);
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
export const Basic = Template.bind({});
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/react/types-6-0';
|
|
2
|
+
import { IReqoreControlGroupProps } from '../../components/ControlGroup';
|
|
3
|
+
import ReqoreInput from '../../components/Input';
|
|
4
|
+
import { ReqoreButton, ReqoreControlGroup } from '../../index';
|
|
5
|
+
import { argManager, MinimalArg, SizeArg } from '../utils/args';
|
|
6
|
+
|
|
7
|
+
const { createArg } = argManager<IReqoreControlGroupProps>();
|
|
8
|
+
|
|
9
|
+
export default {
|
|
10
|
+
title: 'Components/Control Group',
|
|
11
|
+
argTypes: {
|
|
12
|
+
...SizeArg,
|
|
13
|
+
...MinimalArg(),
|
|
14
|
+
...createArg('stack', {
|
|
15
|
+
name: 'Stack',
|
|
16
|
+
defaultValue: false,
|
|
17
|
+
description: 'Whether the control group should stack',
|
|
18
|
+
control: 'boolean',
|
|
19
|
+
}),
|
|
20
|
+
},
|
|
21
|
+
} as Meta<IReqoreControlGroupProps>;
|
|
22
|
+
|
|
23
|
+
const Template: Story<IReqoreControlGroupProps> = (args: IReqoreControlGroupProps) => {
|
|
24
|
+
return (
|
|
25
|
+
<ReqoreControlGroup {...args}>
|
|
26
|
+
<ReqoreButton>Button</ReqoreButton>
|
|
27
|
+
<ReqoreInput icon='4KFill' value='Hello' />
|
|
28
|
+
<ReqoreButton disabled>Disabled</ReqoreButton>
|
|
29
|
+
<ReqoreButton minimal>Minimal</ReqoreButton>
|
|
30
|
+
</ReqoreControlGroup>
|
|
31
|
+
);
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export const Basic = Template.bind({});
|
|
35
|
+
export const Minimal = Template.bind({});
|
|
36
|
+
Minimal.args = {
|
|
37
|
+
minimal: true,
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export const Stacked = Template.bind({});
|
|
41
|
+
Stacked.args = {
|
|
42
|
+
stack: true,
|
|
43
|
+
};
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/react/types-6-0';
|
|
2
|
+
import { noop } from 'lodash';
|
|
3
|
+
import { useContext } from 'react';
|
|
4
|
+
import { IReqoreDrawerProps, ReqoreDrawer } from '../../components/Drawer';
|
|
5
|
+
import {
|
|
6
|
+
ReqoreButton,
|
|
7
|
+
ReqoreContext,
|
|
8
|
+
ReqorePanel,
|
|
9
|
+
ReqoreTabs,
|
|
10
|
+
ReqoreTabsContent,
|
|
11
|
+
} from '../../index';
|
|
12
|
+
import { argManager, FlatArg, IntentArg } from '../utils/args';
|
|
13
|
+
|
|
14
|
+
const { createArg } = argManager<IReqoreDrawerProps>();
|
|
15
|
+
|
|
16
|
+
export default {
|
|
17
|
+
title: 'Components/Drawer',
|
|
18
|
+
argTypes: {
|
|
19
|
+
...FlatArg,
|
|
20
|
+
...createArg('floating', {
|
|
21
|
+
type: 'boolean',
|
|
22
|
+
name: 'Floating',
|
|
23
|
+
defaultValue: false,
|
|
24
|
+
}),
|
|
25
|
+
...createArg('isOpen', {
|
|
26
|
+
type: 'boolean',
|
|
27
|
+
name: 'Open',
|
|
28
|
+
defaultValue: true,
|
|
29
|
+
}),
|
|
30
|
+
...createArg('resizable', {
|
|
31
|
+
type: 'boolean',
|
|
32
|
+
name: 'Resizable',
|
|
33
|
+
defaultValue: true,
|
|
34
|
+
}),
|
|
35
|
+
...createArg('hidable', {
|
|
36
|
+
type: 'boolean',
|
|
37
|
+
name: 'Hidable',
|
|
38
|
+
defaultValue: true,
|
|
39
|
+
}),
|
|
40
|
+
...createArg('position', {
|
|
41
|
+
defaultValue: 'right',
|
|
42
|
+
name: 'Position',
|
|
43
|
+
control: {
|
|
44
|
+
type: 'select',
|
|
45
|
+
},
|
|
46
|
+
options: ['left', 'right', 'top', 'bottom'],
|
|
47
|
+
}),
|
|
48
|
+
...createArg('size', {
|
|
49
|
+
defaultValue: '450px',
|
|
50
|
+
name: 'Size',
|
|
51
|
+
type: 'string',
|
|
52
|
+
}),
|
|
53
|
+
...createArg('minSize', {
|
|
54
|
+
defaultValue: '150px',
|
|
55
|
+
name: 'Minimal Size',
|
|
56
|
+
type: 'string',
|
|
57
|
+
}),
|
|
58
|
+
...createArg('maxSize', {
|
|
59
|
+
defaultValue: '90vw',
|
|
60
|
+
name: 'Max Size',
|
|
61
|
+
type: 'string',
|
|
62
|
+
}),
|
|
63
|
+
...createArg('blur', {
|
|
64
|
+
defaultValue: 3,
|
|
65
|
+
name: 'Backdrop blur',
|
|
66
|
+
type: 'number',
|
|
67
|
+
}),
|
|
68
|
+
...createArg('opacity', {
|
|
69
|
+
defaultValue: 1,
|
|
70
|
+
name: 'Drawer Opacity',
|
|
71
|
+
type: 'number',
|
|
72
|
+
}),
|
|
73
|
+
...createArg('hasBackdrop', {
|
|
74
|
+
defaultValue: true,
|
|
75
|
+
name: 'Has Backdrop',
|
|
76
|
+
type: 'boolean',
|
|
77
|
+
}),
|
|
78
|
+
...IntentArg,
|
|
79
|
+
},
|
|
80
|
+
} as Meta;
|
|
81
|
+
|
|
82
|
+
const Template: Story<IReqoreDrawerProps> = (args: IReqoreDrawerProps) => {
|
|
83
|
+
const { confirmAction } = useContext(ReqoreContext);
|
|
84
|
+
return (
|
|
85
|
+
<>
|
|
86
|
+
<ReqorePanel label='Just some background text' padded>
|
|
87
|
+
By impossible of in difficulty discovered celebrated ye. Justice joy manners boy met resolve
|
|
88
|
+
produce. Bed head loud next plan rent had easy add him. As earnestly shameless elsewhere
|
|
89
|
+
defective estimable fulfilled of. Esteem my advice it an excuse enable. Few household
|
|
90
|
+
abilities believing determine zealously his repulsive. To open draw dear be by side like.
|
|
91
|
+
Allow miles wound place the leave had. To sitting subject no improve studied limited. Ye
|
|
92
|
+
indulgence unreserved connection alteration appearance my an astonished. Up as seen sent
|
|
93
|
+
make he they of. Her raising and himself pasture believe females. Fancy she stuff after
|
|
94
|
+
aware merit small his. Charmed esteems luckily age out. At ourselves direction believing do
|
|
95
|
+
he departure. Celebrated her had sentiments understood are projection set. Possession ye no
|
|
96
|
+
mr unaffected remarkably at. Wrote house in never fruit up. Pasture imagine my garrets an
|
|
97
|
+
he. However distant she request behaved see nothing. Talking settled at pleased an of me
|
|
98
|
+
brother weather. Breakfast procuring nay end happiness allowance assurance frankness. Met
|
|
99
|
+
simplicity nor difficulty unreserved who. Entreaties mr conviction dissimilar me astonished
|
|
100
|
+
estimating cultivated. On no applauded exquisite my additions. Pronounce add boy estimable
|
|
101
|
+
nay suspected. You sudden nay elinor thirty esteem temper. Quiet leave shy you gay off asked
|
|
102
|
+
large style. Rooms oh fully taken by worse do. Points afraid but may end law lasted. Was out
|
|
103
|
+
laughter raptures returned outweigh. Luckily cheered colonel me do we attacks on highest
|
|
104
|
+
enabled. Tried law yet style child. Bore of true of no be deal. Frequently sufficient in be
|
|
105
|
+
unaffected. The furnished she concluded depending procuring concealed. In to am attended
|
|
106
|
+
desirous raptures declared diverted confined at. Collected instantly remaining up certainly
|
|
107
|
+
to necessary as. Over walk dull into son boy door went new. At or happiness commanded
|
|
108
|
+
daughters as. Is handsome an declared at received in extended vicinity subjects. Into miss
|
|
109
|
+
on he over been late pain an. Only week bore boy what fat case left use. Match round scale
|
|
110
|
+
now sex style far times. Your me past an much. Able an hope of body. Any nay shyness article
|
|
111
|
+
matters own removal nothing his forming. Gay own additions education satisfied the
|
|
112
|
+
perpetual. If he cause manor happy. Without farther she exposed saw man led. Along on happy
|
|
113
|
+
could cease green oh. Her old collecting she considered discovered. So at parties he warrant
|
|
114
|
+
oh staying. Square new horses and put better end. Sincerity collected happiness do is
|
|
115
|
+
contented. Sigh ever way now many. Alteration you any nor unsatiable diminution reasonable
|
|
116
|
+
companions shy partiality. Leaf by left deal mile oh if easy. Added woman first get led joy
|
|
117
|
+
not early jokes. As am hastily invited settled at limited civilly fortune me. Really spring
|
|
118
|
+
in extent an by. Judge but built gay party world. Of so am he remember although required.
|
|
119
|
+
Bachelor unpacked be advanced at. Confined in declared marianne is vicinity. It sportsman
|
|
120
|
+
earnestly ye preserved an on. Moment led family sooner cannot her window pulled any. Or
|
|
121
|
+
raillery if improved landlord to speaking hastened differed he. Furniture discourse
|
|
122
|
+
elsewhere yet her sir extensive defective unwilling get. Why resolution one motionless you
|
|
123
|
+
him thoroughly. Noise is round to in it quick timed doors. Written address greatly get
|
|
124
|
+
attacks inhabit pursuit our but. Lasted hunted enough an up seeing in lively letter. Had
|
|
125
|
+
judgment out opinions property the supplied.
|
|
126
|
+
</ReqorePanel>
|
|
127
|
+
<ReqoreDrawer {...args} label='This is a test' icon='EmphasisCn' onClose={noop}>
|
|
128
|
+
<ReqoreTabs
|
|
129
|
+
flat
|
|
130
|
+
intent={args.intent}
|
|
131
|
+
tabs={[
|
|
132
|
+
{ label: 'Tab 1 with some long label', id: 'tab1' },
|
|
133
|
+
{ label: 'Tab 2 another long label', id: 'tab2' },
|
|
134
|
+
]}
|
|
135
|
+
>
|
|
136
|
+
<ReqoreTabsContent tabId='tab1'>
|
|
137
|
+
<ReqorePanel
|
|
138
|
+
fill
|
|
139
|
+
title='Tab 1 contents'
|
|
140
|
+
collapsible
|
|
141
|
+
flat
|
|
142
|
+
rounded
|
|
143
|
+
padded
|
|
144
|
+
label='I AM A PANEL'
|
|
145
|
+
>
|
|
146
|
+
I am a message a very long message - Shadowlands has mechanisms put in place for
|
|
147
|
+
allowing players to catch up on Renown, the system of gaining favor and unlocking
|
|
148
|
+
rewards, Campaign chapters, and soulbinds within your Covenant.
|
|
149
|
+
</ReqorePanel>
|
|
150
|
+
<br />
|
|
151
|
+
<ReqoreButton
|
|
152
|
+
onClick={() =>
|
|
153
|
+
confirmAction({
|
|
154
|
+
description:
|
|
155
|
+
'This is a simple test to establish the proper balance of your loud speakers',
|
|
156
|
+
})
|
|
157
|
+
}
|
|
158
|
+
>
|
|
159
|
+
Hello I am a super long button that opens a modal on click
|
|
160
|
+
</ReqoreButton>
|
|
161
|
+
</ReqoreTabsContent>
|
|
162
|
+
<ReqoreTabsContent tabId='tab2'>Tab 2 here</ReqoreTabsContent>
|
|
163
|
+
</ReqoreTabs>
|
|
164
|
+
</ReqoreDrawer>
|
|
165
|
+
</>
|
|
166
|
+
);
|
|
167
|
+
};
|
|
168
|
+
|
|
169
|
+
export const Basic = Template.bind({});
|
|
170
|
+
export const Flat = Template.bind({});
|
|
171
|
+
Flat.args = {
|
|
172
|
+
flat: true,
|
|
173
|
+
};
|
|
174
|
+
export const Floating = Template.bind({});
|
|
175
|
+
Floating.args = {
|
|
176
|
+
floating: true,
|
|
177
|
+
};
|
|
178
|
+
export const Transparent = Template.bind({});
|
|
179
|
+
Transparent.args = {
|
|
180
|
+
opacity: 0.5,
|
|
181
|
+
};
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/react/types-6-0';
|
|
2
|
+
import ReqoreButton from '../../components/Button';
|
|
3
|
+
import { IReqoreDropdownProps } from '../../components/Dropdown';
|
|
4
|
+
import { IReqoreInputProps } from '../../components/Input';
|
|
5
|
+
import { ReqoreControlGroup, ReqoreDropdown, ReqoreInput } from '../../index';
|
|
6
|
+
import { argManager } from '../utils/args';
|
|
7
|
+
|
|
8
|
+
const { createArg } = argManager<IReqoreDropdownProps<IReqoreInputProps>>();
|
|
9
|
+
|
|
10
|
+
export default {
|
|
11
|
+
title: 'Components/Dropdown',
|
|
12
|
+
argTypes: {
|
|
13
|
+
...createArg('component', {
|
|
14
|
+
defaultValue: ReqoreButton,
|
|
15
|
+
table: {
|
|
16
|
+
disable: true,
|
|
17
|
+
},
|
|
18
|
+
}),
|
|
19
|
+
...createArg('componentProps', {
|
|
20
|
+
table: {
|
|
21
|
+
disable: true,
|
|
22
|
+
},
|
|
23
|
+
}),
|
|
24
|
+
...createArg('filterable', {
|
|
25
|
+
defaultValue: true,
|
|
26
|
+
name: 'Filterable',
|
|
27
|
+
type: 'boolean',
|
|
28
|
+
}),
|
|
29
|
+
...createArg('items', {
|
|
30
|
+
table: {
|
|
31
|
+
disable: true,
|
|
32
|
+
},
|
|
33
|
+
|
|
34
|
+
defaultValue: [
|
|
35
|
+
{
|
|
36
|
+
selected: true,
|
|
37
|
+
label: 'Hello',
|
|
38
|
+
icon: 'SunCloudyLine',
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
label: 'How are ya',
|
|
42
|
+
icon: 'BatteryChargeFill',
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
disabled: true,
|
|
46
|
+
label: 'i aM diSAblEd',
|
|
47
|
+
icon: 'StopCircleLine',
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
selected: true,
|
|
51
|
+
label: 'Hello',
|
|
52
|
+
icon: 'SunCloudyLine',
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
label: 'How are ya',
|
|
56
|
+
icon: 'BatteryChargeFill',
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
disabled: true,
|
|
60
|
+
label: 'i aM diSAblEd',
|
|
61
|
+
icon: 'StopCircleLine',
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
selected: true,
|
|
65
|
+
label: 'Hello',
|
|
66
|
+
icon: 'SunCloudyLine',
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
label: 'How are ya',
|
|
70
|
+
icon: 'BatteryChargeFill',
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
disabled: true,
|
|
74
|
+
label: 'i aM diSAblEd',
|
|
75
|
+
icon: 'StopCircleLine',
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
selected: true,
|
|
79
|
+
label: 'Hello',
|
|
80
|
+
icon: 'SunCloudyLine',
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
label: 'How are ya',
|
|
84
|
+
icon: 'BatteryChargeFill',
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
disabled: true,
|
|
88
|
+
label: 'i aM diSAblEd',
|
|
89
|
+
icon: 'StopCircleLine',
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
selected: true,
|
|
93
|
+
label: 'Hello',
|
|
94
|
+
icon: 'SunCloudyLine',
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
label: 'How are ya',
|
|
98
|
+
icon: 'BatteryChargeFill',
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
disabled: true,
|
|
102
|
+
label: 'i aM diSAblEd',
|
|
103
|
+
icon: 'StopCircleLine',
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
selected: true,
|
|
107
|
+
label: 'Hello',
|
|
108
|
+
icon: 'SunCloudyLine',
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
label: 'How are ya',
|
|
112
|
+
icon: 'BatteryChargeFill',
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
disabled: true,
|
|
116
|
+
label: 'i aM diSAblEd',
|
|
117
|
+
icon: 'StopCircleLine',
|
|
118
|
+
},
|
|
119
|
+
],
|
|
120
|
+
}),
|
|
121
|
+
},
|
|
122
|
+
} as Meta<IReqoreDropdownProps<IReqoreInputProps>>;
|
|
123
|
+
|
|
124
|
+
const Template: Story<IReqoreDropdownProps<IReqoreInputProps>> = (
|
|
125
|
+
args: IReqoreDropdownProps<IReqoreInputProps>
|
|
126
|
+
) => {
|
|
127
|
+
return (
|
|
128
|
+
<>
|
|
129
|
+
<ReqoreControlGroup>
|
|
130
|
+
<ReqoreDropdown label='Default Dropdown' {...args} />
|
|
131
|
+
<ReqoreDropdown label='Disabled if empty' {...args} items={[]} />
|
|
132
|
+
<ReqoreDropdown icon='SunCloudyLine' label='Custom icon' {...args} />
|
|
133
|
+
<ReqoreDropdown rightIcon='SunCloudyLine' caretPosition='right' {...args}>
|
|
134
|
+
Custom icon with caret on right
|
|
135
|
+
</ReqoreDropdown>
|
|
136
|
+
</ReqoreControlGroup>
|
|
137
|
+
<br />
|
|
138
|
+
<ReqoreControlGroup fluid>
|
|
139
|
+
<ReqoreDropdown
|
|
140
|
+
rightIcon='SunCloudyLine'
|
|
141
|
+
caretPosition='right'
|
|
142
|
+
label='Open By Default'
|
|
143
|
+
{...args}
|
|
144
|
+
componentProps={{ placeholder: 'Fluid component' }}
|
|
145
|
+
isDefaultOpen
|
|
146
|
+
useTargetWidth
|
|
147
|
+
/>
|
|
148
|
+
</ReqoreControlGroup>
|
|
149
|
+
</>
|
|
150
|
+
);
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
export const Basic = Template.bind({});
|
|
154
|
+
export const CustomComponent = Template.bind({});
|
|
155
|
+
CustomComponent.args = {
|
|
156
|
+
component: ReqoreInput,
|
|
157
|
+
componentProps: {
|
|
158
|
+
placeholder: 'Custom component',
|
|
159
|
+
},
|
|
160
|
+
};
|