@qoretechnologies/reqore 0.19.13 → 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/.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/.github/workflows/tests.yml +4 -4
- package/.gitpod.yml +7 -2
- package/.vscode/settings.json +21 -3
- package/__tests__/drawer.test.tsx +8 -9
- package/__tests__/dropdown.test.tsx +55 -13
- package/__tests__/modal.test.tsx +4 -7
- package/__tests__/tabs.test.tsx +4 -4
- 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/{components → src/components}/Checkbox/index.d.ts +0 -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/{components → src/components}/Columns/column.d.ts +0 -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/{components → src/components}/Columns/index.d.ts +0 -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/{components → src/components}/Comment/index.d.ts +0 -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/{components → src/components}/CommentFeed/index.d.ts +0 -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/{components → src/components}/Content/index.d.ts +0 -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/{components → src/components}/Content/wrapper.d.ts +0 -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/{components → src/components}/ControlGroup/index.d.ts +0 -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/{components → src/components}/Dropdown/item.d.ts +0 -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/{components → src/components}/Dropdown/list.d.ts +0 -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/{components → src/components}/Header/index.d.ts +0 -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/{components → src/components}/Input/index.d.ts +0 -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/{components → src/components}/InputClearButton/index.d.ts +0 -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/{components → src/components}/InternalPopover/index.d.ts +0 -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/{components → src/components}/Layout/content.d.ts +0 -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/{components → src/components}/Layout/index.d.ts +0 -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/{components → src/components}/Menu/divider.d.ts +0 -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/{components → src/components}/Message/index.d.ts +0 -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/{components → src/components}/Modal/actions.d.ts +0 -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/{components → src/components}/Modal/content.d.ts +0 -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/{components → src/components}/Navbar/divider.d.ts +0 -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/{components → src/components}/Navbar/group.d.ts +0 -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/{components → src/components}/Navbar/index.d.ts +0 -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/{components → src/components}/Navbar/item.d.ts +0 -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/{components → src/components}/Notifications/index.d.ts +0 -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/{components → src/components}/Notifications/notification.d.ts +0 -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/{components → src/components}/Panel/panel.screenshot.d.ts +0 -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/{components → src/components}/Paragraph/index.d.ts +0 -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/{components → src/components}/RadioGroup/index.d.ts +0 -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/{components → src/components}/Sidebar/index.d.ts +0 -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/{components → src/components}/Sidebar/item.d.ts +0 -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/{components → src/components}/Table/body.d.ts +0 -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/{components → src/components}/Table/header.d.ts +0 -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/{components → src/components}/Table/headerCell.d.ts +0 -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/{components → src/components}/Table/helpers.d.ts +0 -0
- package/dist/src/components/Table/helpers.d.ts.map +1 -0
- package/dist/{components → src/components}/Table/helpers.js +0 -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/{components → src/components}/Table/row.d.ts +0 -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/{components → src/components}/Tabs/content.d.ts +0 -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/{components → src/components}/Tag/group.d.ts +0 -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/{components → src/components}/Tag/index.d.ts +0 -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/{components → src/components}/Textarea/index.d.ts +0 -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/{components → src/components}/TimeAgo/index.d.ts +0 -0
- package/dist/src/components/TimeAgo/index.d.ts.map +1 -0
- package/dist/{components → src/components}/TimeAgo/index.js +0 -0
- package/dist/src/components/TimeAgo/index.js.map +1 -0
- package/dist/{components → src/components}/Tree/index.d.ts +0 -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/{constants → src/constants}/animations.d.ts +0 -0
- package/dist/src/constants/animations.d.ts.map +1 -0
- package/dist/{constants → src/constants}/animations.js +0 -0
- package/dist/src/constants/animations.js.map +1 -0
- package/dist/{constants → src/constants}/colors.d.ts +0 -0
- package/dist/src/constants/colors.d.ts.map +1 -0
- package/dist/{constants → src/constants}/colors.js +0 -0
- package/dist/src/constants/colors.js.map +1 -0
- package/dist/{constants → src/constants}/sizes.d.ts +0 -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/{constants → src/constants}/theme.js +0 -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/{containers → src/containers}/ReqoreProvider.d.ts +0 -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/{containers → src/containers}/ThemeProvider.d.ts +0 -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/{context → src/context}/PopoverContext.js +0 -0
- package/dist/src/context/PopoverContext.js.map +1 -0
- package/dist/{context → src/context}/ReqoreContext.d.ts +0 -0
- package/dist/src/context/ReqoreContext.d.ts.map +1 -0
- package/dist/{context → src/context}/ReqoreContext.js +0 -0
- package/dist/src/context/ReqoreContext.js.map +1 -0
- package/dist/{context → src/context}/ThemeContext.d.ts +0 -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/{helpers → src/helpers}/animations.d.ts +0 -0
- package/dist/src/helpers/animations.d.ts.map +1 -0
- package/dist/{helpers → src/helpers}/animations.js +0 -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/{helpers → src/helpers}/sidebar.d.ts +0 -0
- package/dist/src/helpers/sidebar.d.ts.map +1 -0
- package/dist/{helpers → src/helpers}/sidebar.js +0 -0
- package/dist/src/helpers/sidebar.js.map +1 -0
- package/dist/{helpers → src/helpers}/time.d.ts +0 -0
- package/dist/src/helpers/time.d.ts.map +1 -0
- package/dist/{helpers → src/helpers}/time.js +0 -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/{hooks → src/hooks}/useCombinedRefs.d.ts +0 -0
- package/dist/src/hooks/useCombinedRefs.d.ts.map +1 -0
- package/dist/{hooks → src/hooks}/useCombinedRefs.js +0 -0
- package/dist/src/hooks/useCombinedRefs.js.map +1 -0
- package/dist/{hooks → src/hooks}/useLatestZIndex.d.ts +0 -0
- package/dist/src/hooks/useLatestZIndex.d.ts.map +1 -0
- package/dist/{hooks → src/hooks}/useLatestZIndex.js +0 -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/{hooks → src/hooks}/useShareForwardedRef.d.ts +0 -0
- package/dist/src/hooks/useShareForwardedRef.d.ts.map +1 -0
- package/dist/{hooks → src/hooks}/useShareForwardedRef.js +0 -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/{hooks → src/hooks}/useTheme.js +0 -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/{index.d.ts → src/index.d.ts} +0 -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/{types → src/types}/global.js +0 -0
- package/dist/src/types/global.js.map +1 -0
- package/dist/{types → src/types}/icons.d.ts +0 -0
- package/dist/src/types/icons.d.ts.map +1 -0
- package/dist/{types → src/types}/icons.js +0 -0
- package/dist/src/types/icons.js.map +1 -0
- package/dist/{types → src/types}/icons____.d.ts +0 -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 -0
- package/package.json +15 -11
- 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/components/Breadcrumbs/index.d.ts +0 -31
- package/dist/components/Breadcrumbs/index.d.ts.map +0 -1
- package/dist/components/Breadcrumbs/index.js +0 -148
- package/dist/components/Breadcrumbs/index.js.map +0 -1
- package/dist/components/Breadcrumbs/item.d.ts +0 -14
- package/dist/components/Breadcrumbs/item.d.ts.map +0 -1
- package/dist/components/Breadcrumbs/item.js +0 -76
- package/dist/components/Breadcrumbs/item.js.map +0 -1
- package/dist/components/Button/index.d.ts +0 -30
- package/dist/components/Button/index.d.ts.map +0 -1
- package/dist/components/Button/index.js +0 -165
- package/dist/components/Button/index.js.map +0 -1
- package/dist/components/Checkbox/index.d.ts.map +0 -1
- package/dist/components/Checkbox/index.js +0 -108
- package/dist/components/Checkbox/index.js.map +0 -1
- package/dist/components/Columns/column.d.ts.map +0 -1
- package/dist/components/Columns/column.js +0 -33
- package/dist/components/Columns/column.js.map +0 -1
- package/dist/components/Columns/index.d.ts.map +0 -1
- package/dist/components/Columns/index.js +0 -65
- package/dist/components/Columns/index.js.map +0 -1
- package/dist/components/Comment/index.d.ts.map +0 -1
- package/dist/components/Comment/index.js +0 -71
- package/dist/components/Comment/index.js.map +0 -1
- package/dist/components/CommentFeed/index.d.ts.map +0 -1
- package/dist/components/CommentFeed/index.js +0 -49
- package/dist/components/CommentFeed/index.js.map +0 -1
- package/dist/components/Content/index.d.ts.map +0 -1
- package/dist/components/Content/index.js +0 -66
- package/dist/components/Content/index.js.map +0 -1
- package/dist/components/Content/wrapper.d.ts.map +0 -1
- package/dist/components/Content/wrapper.js +0 -43
- package/dist/components/Content/wrapper.js.map +0 -1
- package/dist/components/ControlGroup/index.d.ts.map +0 -1
- package/dist/components/ControlGroup/index.js +0 -86
- package/dist/components/ControlGroup/index.js.map +0 -1
- package/dist/components/Drawer/index.d.ts +0 -36
- package/dist/components/Drawer/index.d.ts.map +0 -1
- package/dist/components/Drawer/index.js +0 -204
- package/dist/components/Drawer/index.js.map +0 -1
- package/dist/components/Dropdown/index.d.ts +0 -24
- package/dist/components/Dropdown/index.d.ts.map +0 -1
- package/dist/components/Dropdown/index.js +0 -38
- package/dist/components/Dropdown/index.js.map +0 -1
- package/dist/components/Dropdown/item.d.ts.map +0 -1
- package/dist/components/Dropdown/item.js +0 -35
- package/dist/components/Dropdown/item.js.map +0 -1
- package/dist/components/Dropdown/list.d.ts.map +0 -1
- package/dist/components/Dropdown/list.js +0 -47
- package/dist/components/Dropdown/list.js.map +0 -1
- package/dist/components/Header/index.d.ts.map +0 -1
- package/dist/components/Header/index.js +0 -40
- package/dist/components/Header/index.js.map +0 -1
- package/dist/components/Icon/index.d.ts +0 -13
- package/dist/components/Icon/index.d.ts.map +0 -1
- package/dist/components/Icon/index.js +0 -72
- package/dist/components/Icon/index.js.map +0 -1
- package/dist/components/Input/index.d.ts.map +0 -1
- package/dist/components/Input/index.js +0 -115
- package/dist/components/Input/index.js.map +0 -1
- package/dist/components/InputClearButton/index.d.ts.map +0 -1
- package/dist/components/InputClearButton/index.js +0 -49
- package/dist/components/InputClearButton/index.js.map +0 -1
- package/dist/components/InternalPopover/index.d.ts.map +0 -1
- package/dist/components/InternalPopover/index.js +0 -128
- package/dist/components/InternalPopover/index.js.map +0 -1
- package/dist/components/Layout/content.d.ts.map +0 -1
- package/dist/components/Layout/content.js +0 -41
- package/dist/components/Layout/content.js.map +0 -1
- package/dist/components/Layout/index.d.ts.map +0 -1
- package/dist/components/Layout/index.js +0 -65
- package/dist/components/Layout/index.js.map +0 -1
- package/dist/components/Menu/divider.d.ts.map +0 -1
- package/dist/components/Menu/divider.js +0 -49
- package/dist/components/Menu/divider.js.map +0 -1
- package/dist/components/Menu/index.d.ts +0 -16
- package/dist/components/Menu/index.d.ts.map +0 -1
- package/dist/components/Menu/index.js +0 -87
- package/dist/components/Menu/index.js.map +0 -1
- package/dist/components/Menu/item.d.ts +0 -31
- package/dist/components/Menu/item.d.ts.map +0 -1
- package/dist/components/Menu/item.js +0 -118
- package/dist/components/Menu/item.js.map +0 -1
- package/dist/components/Message/index.d.ts.map +0 -1
- package/dist/components/Message/index.js +0 -51
- package/dist/components/Message/index.js.map +0 -1
- package/dist/components/Modal/actions.d.ts.map +0 -1
- package/dist/components/Modal/actions.js +0 -49
- package/dist/components/Modal/actions.js.map +0 -1
- package/dist/components/Modal/content.d.ts.map +0 -1
- package/dist/components/Modal/content.js +0 -25
- package/dist/components/Modal/content.js.map +0 -1
- package/dist/components/Modal/index.d.ts +0 -24
- package/dist/components/Modal/index.d.ts.map +0 -1
- package/dist/components/Modal/index.js +0 -118
- package/dist/components/Modal/index.js.map +0 -1
- package/dist/components/Navbar/divider.d.ts.map +0 -1
- package/dist/components/Navbar/divider.js +0 -47
- package/dist/components/Navbar/divider.js.map +0 -1
- package/dist/components/Navbar/group.d.ts.map +0 -1
- package/dist/components/Navbar/group.js +0 -71
- package/dist/components/Navbar/group.js.map +0 -1
- package/dist/components/Navbar/index.d.ts.map +0 -1
- package/dist/components/Navbar/index.js +0 -82
- package/dist/components/Navbar/index.js.map +0 -1
- package/dist/components/Navbar/item.d.ts.map +0 -1
- package/dist/components/Navbar/item.js +0 -77
- package/dist/components/Navbar/item.js.map +0 -1
- package/dist/components/Notifications/index.d.ts.map +0 -1
- package/dist/components/Notifications/index.js +0 -56
- package/dist/components/Notifications/index.js.map +0 -1
- package/dist/components/Notifications/notification.d.ts.map +0 -1
- package/dist/components/Notifications/notification.js +0 -136
- package/dist/components/Notifications/notification.js.map +0 -1
- package/dist/components/Panel/index.d.ts +0 -38
- package/dist/components/Panel/index.d.ts.map +0 -1
- package/dist/components/Panel/index.js +0 -141
- package/dist/components/Panel/index.js.map +0 -1
- package/dist/components/Panel/panel.screenshot.d.ts.map +0 -1
- package/dist/components/Panel/panel.screenshot.js +0 -30
- package/dist/components/Panel/panel.screenshot.js.map +0 -1
- package/dist/components/Paragraph/index.d.ts.map +0 -1
- package/dist/components/Paragraph/index.js +0 -60
- package/dist/components/Paragraph/index.js.map +0 -1
- package/dist/components/Popover/index.d.ts +0 -16
- package/dist/components/Popover/index.d.ts.map +0 -1
- package/dist/components/Popover/index.js +0 -55
- package/dist/components/Popover/index.js.map +0 -1
- package/dist/components/RadioGroup/index.d.ts.map +0 -1
- package/dist/components/RadioGroup/index.js +0 -48
- package/dist/components/RadioGroup/index.js.map +0 -1
- package/dist/components/Sidebar/index.d.ts.map +0 -1
- package/dist/components/Sidebar/index.js +0 -261
- package/dist/components/Sidebar/index.js.map +0 -1
- package/dist/components/Sidebar/item.d.ts.map +0 -1
- package/dist/components/Sidebar/item.js +0 -106
- package/dist/components/Sidebar/item.js.map +0 -1
- package/dist/components/Table/body.d.ts.map +0 -1
- package/dist/components/Table/body.js +0 -44
- package/dist/components/Table/body.js.map +0 -1
- package/dist/components/Table/header.d.ts.map +0 -1
- package/dist/components/Table/header.js +0 -102
- package/dist/components/Table/header.js.map +0 -1
- package/dist/components/Table/headerCell.d.ts.map +0 -1
- package/dist/components/Table/headerCell.js +0 -88
- package/dist/components/Table/headerCell.js.map +0 -1
- package/dist/components/Table/helpers.d.ts.map +0 -1
- package/dist/components/Table/helpers.js.map +0 -1
- package/dist/components/Table/index.d.ts +0 -74
- package/dist/components/Table/index.d.ts.map +0 -1
- package/dist/components/Table/index.js +0 -161
- package/dist/components/Table/index.js.map +0 -1
- package/dist/components/Table/row.d.ts.map +0 -1
- package/dist/components/Table/row.js +0 -200
- package/dist/components/Table/row.js.map +0 -1
- package/dist/components/Tabs/content.d.ts.map +0 -1
- package/dist/components/Tabs/content.js +0 -41
- package/dist/components/Tabs/content.js.map +0 -1
- package/dist/components/Tabs/index.d.ts +0 -36
- package/dist/components/Tabs/index.d.ts.map +0 -1
- package/dist/components/Tabs/index.js +0 -79
- package/dist/components/Tabs/index.js.map +0 -1
- package/dist/components/Tabs/item.d.ts +0 -21
- package/dist/components/Tabs/item.d.ts.map +0 -1
- package/dist/components/Tabs/item.js +0 -86
- package/dist/components/Tabs/item.js.map +0 -1
- package/dist/components/Tabs/list.d.ts +0 -16
- package/dist/components/Tabs/list.d.ts.map +0 -1
- package/dist/components/Tabs/list.js +0 -175
- package/dist/components/Tabs/list.js.map +0 -1
- package/dist/components/Tag/group.d.ts.map +0 -1
- package/dist/components/Tag/group.js +0 -50
- package/dist/components/Tag/group.js.map +0 -1
- package/dist/components/Tag/index.d.ts.map +0 -1
- package/dist/components/Tag/index.js +0 -132
- package/dist/components/Tag/index.js.map +0 -1
- package/dist/components/Textarea/index.d.ts.map +0 -1
- package/dist/components/Textarea/index.js +0 -85
- package/dist/components/Textarea/index.js.map +0 -1
- package/dist/components/TimeAgo/index.d.ts.map +0 -1
- package/dist/components/TimeAgo/index.js.map +0 -1
- package/dist/components/Tree/index.d.ts.map +0 -1
- package/dist/components/Tree/index.js +0 -151
- package/dist/components/Tree/index.js.map +0 -1
- package/dist/constants/animations.d.ts.map +0 -1
- package/dist/constants/animations.js.map +0 -1
- package/dist/constants/colors.d.ts.map +0 -1
- package/dist/constants/colors.js.map +0 -1
- package/dist/constants/sizes.d.ts.map +0 -1
- package/dist/constants/sizes.js +0 -60
- package/dist/constants/sizes.js.map +0 -1
- package/dist/constants/theme.d.ts +0 -74
- package/dist/constants/theme.d.ts.map +0 -1
- package/dist/constants/theme.js.map +0 -1
- package/dist/containers/PopoverProvider.d.ts +0 -12
- package/dist/containers/PopoverProvider.d.ts.map +0 -1
- package/dist/containers/PopoverProvider.js +0 -56
- package/dist/containers/PopoverProvider.js.map +0 -1
- package/dist/containers/ReqoreProvider.d.ts.map +0 -1
- package/dist/containers/ReqoreProvider.js +0 -117
- package/dist/containers/ReqoreProvider.js.map +0 -1
- package/dist/containers/ThemeProvider.d.ts.map +0 -1
- package/dist/containers/ThemeProvider.js +0 -27
- package/dist/containers/ThemeProvider.js.map +0 -1
- package/dist/containers/UIProvider.d.ts +0 -13
- package/dist/containers/UIProvider.d.ts.map +0 -1
- package/dist/containers/UIProvider.js +0 -43
- package/dist/containers/UIProvider.js.map +0 -1
- package/dist/context/PopoverContext.d.ts +0 -11
- package/dist/context/PopoverContext.d.ts.map +0 -1
- package/dist/context/PopoverContext.js.map +0 -1
- package/dist/context/ReqoreContext.d.ts.map +0 -1
- package/dist/context/ReqoreContext.js.map +0 -1
- package/dist/context/ThemeContext.d.ts.map +0 -1
- package/dist/context/ThemeContext.js +0 -5
- package/dist/context/ThemeContext.js.map +0 -1
- package/dist/helpers/animations.d.ts.map +0 -1
- package/dist/helpers/animations.js.map +0 -1
- package/dist/helpers/colors.d.ts +0 -13
- package/dist/helpers/colors.d.ts.map +0 -1
- package/dist/helpers/colors.js +0 -100
- package/dist/helpers/colors.js.map +0 -1
- package/dist/helpers/sidebar.d.ts.map +0 -1
- package/dist/helpers/sidebar.js.map +0 -1
- package/dist/helpers/time.d.ts.map +0 -1
- package/dist/helpers/time.js.map +0 -1
- package/dist/helpers/utils.d.ts +0 -4
- package/dist/helpers/utils.d.ts.map +0 -1
- package/dist/helpers/utils.js +0 -82
- package/dist/helpers/utils.js.map +0 -1
- package/dist/hooks/useCombinedRefs.d.ts.map +0 -1
- package/dist/hooks/useCombinedRefs.js.map +0 -1
- package/dist/hooks/useLatestZIndex.d.ts.map +0 -1
- package/dist/hooks/useLatestZIndex.js.map +0 -1
- package/dist/hooks/useOutsideClick.d.ts +0 -4
- package/dist/hooks/useOutsideClick.d.ts.map +0 -1
- package/dist/hooks/useOutsideClick.js +0 -24
- package/dist/hooks/useOutsideClick.js.map +0 -1
- package/dist/hooks/usePopover.d.ts +0 -17
- package/dist/hooks/usePopover.d.ts.map +0 -1
- package/dist/hooks/usePopover.js +0 -77
- package/dist/hooks/usePopover.js.map +0 -1
- package/dist/hooks/useShareForwardedRef.d.ts.map +0 -1
- package/dist/hooks/useShareForwardedRef.js.map +0 -1
- package/dist/hooks/useTheme.d.ts +0 -3
- package/dist/hooks/useTheme.d.ts.map +0 -1
- package/dist/hooks/useTheme.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -123
- package/dist/index.js.map +0 -1
- package/dist/types/global.d.ts +0 -8
- package/dist/types/global.d.ts.map +0 -1
- package/dist/types/global.js.map +0 -1
- package/dist/types/icons.d.ts.map +0 -1
- package/dist/types/icons.js.map +0 -1
- package/dist/types/icons____.d.ts.map +0 -1
- package/dist/types/icons____.js +0 -6
- package/dist/types/icons____.js.map +0 -1
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/react/types-6-0';
|
|
2
|
+
import { noop } from 'lodash';
|
|
3
|
+
import { useState } from 'react';
|
|
4
|
+
import { useMount } from 'react-use';
|
|
5
|
+
import ReqoreNotification, {
|
|
6
|
+
IReqoreNotificationProps,
|
|
7
|
+
} from '../../components/Notifications/notification';
|
|
8
|
+
import { IReqoreUIProviderProps } from '../../containers/UIProvider';
|
|
9
|
+
import { ReqoreUIProvider } from '../../index';
|
|
10
|
+
|
|
11
|
+
export default {
|
|
12
|
+
title: 'Components/Notifications/Item',
|
|
13
|
+
component: ReqoreNotification,
|
|
14
|
+
} as Meta;
|
|
15
|
+
|
|
16
|
+
const Template: Story<IReqoreNotificationProps & IReqoreUIProviderProps> = ({
|
|
17
|
+
theme,
|
|
18
|
+
...args
|
|
19
|
+
}: IReqoreNotificationProps & IReqoreUIProviderProps) => (
|
|
20
|
+
<ReqoreUIProvider theme={theme}>
|
|
21
|
+
<ReqoreNotification
|
|
22
|
+
{...args}
|
|
23
|
+
type='info'
|
|
24
|
+
content="Hello, I am a very simple notification. Look at me, look at me? Isn't this great?"
|
|
25
|
+
onClick={noop}
|
|
26
|
+
/>
|
|
27
|
+
<ReqoreNotification
|
|
28
|
+
{...args}
|
|
29
|
+
type='pending'
|
|
30
|
+
icon='TimerLine'
|
|
31
|
+
content='I am still waiting'
|
|
32
|
+
onClick={noop}
|
|
33
|
+
/>
|
|
34
|
+
<ReqoreNotification
|
|
35
|
+
{...args}
|
|
36
|
+
type='success'
|
|
37
|
+
title='Simple notification'
|
|
38
|
+
content="Hello, I am a very simple notification. Look at me, look at me? Isn't this great?"
|
|
39
|
+
onClick={noop}
|
|
40
|
+
/>
|
|
41
|
+
<ReqoreNotification
|
|
42
|
+
{...args}
|
|
43
|
+
type='warning'
|
|
44
|
+
title='Simple notification'
|
|
45
|
+
content="Hello, I am a very simple notification. Look at me, look at me? Isn't this great?"
|
|
46
|
+
onClose={noop}
|
|
47
|
+
/>
|
|
48
|
+
<ReqoreNotification
|
|
49
|
+
{...args}
|
|
50
|
+
type='danger'
|
|
51
|
+
title='Simple notification'
|
|
52
|
+
content="Hello, I am a very simple notification. Look at me, look at me? Isn't this great?"
|
|
53
|
+
onClick={noop}
|
|
54
|
+
onClose={noop}
|
|
55
|
+
/>
|
|
56
|
+
<h4> Flat and inverted </h4>
|
|
57
|
+
<ReqoreNotification
|
|
58
|
+
{...args}
|
|
59
|
+
type='danger'
|
|
60
|
+
title='Simple notification'
|
|
61
|
+
content="Hello, I am a very simple notification. Look at me, look at me? Isn't this great?"
|
|
62
|
+
onClick={noop}
|
|
63
|
+
onClose={noop}
|
|
64
|
+
flat
|
|
65
|
+
inverted
|
|
66
|
+
/>
|
|
67
|
+
<ReqoreNotification
|
|
68
|
+
{...args}
|
|
69
|
+
title='Simple notification'
|
|
70
|
+
content="Hello, I am a very simple notification. Look at me, look at me? Isn't this great?"
|
|
71
|
+
onClick={noop}
|
|
72
|
+
onClose={noop}
|
|
73
|
+
inverted
|
|
74
|
+
/>
|
|
75
|
+
<ReqoreNotification
|
|
76
|
+
{...args}
|
|
77
|
+
title='Simple notification'
|
|
78
|
+
content="Hello, I am a very simple notification. Look at me, look at me? Isn't this great?"
|
|
79
|
+
onClick={noop}
|
|
80
|
+
onClose={noop}
|
|
81
|
+
flat
|
|
82
|
+
intent='info'
|
|
83
|
+
size='big'
|
|
84
|
+
/>
|
|
85
|
+
<ReqoreNotification
|
|
86
|
+
{...args}
|
|
87
|
+
title='Simple notification'
|
|
88
|
+
content="Hello, I am a very simple notification. Look at me, look at me? Isn't this great?"
|
|
89
|
+
onClick={noop}
|
|
90
|
+
onClose={noop}
|
|
91
|
+
intent='success'
|
|
92
|
+
flat
|
|
93
|
+
icon='4KLine'
|
|
94
|
+
size='small'
|
|
95
|
+
/>
|
|
96
|
+
<ReqoreNotification
|
|
97
|
+
{...args}
|
|
98
|
+
title='Simple notification'
|
|
99
|
+
content="Hello, I am a very simple notification. Look at me, look at me? Isn't this great?"
|
|
100
|
+
onClick={noop}
|
|
101
|
+
onClose={noop}
|
|
102
|
+
flat
|
|
103
|
+
intent='danger'
|
|
104
|
+
size='huge'
|
|
105
|
+
/>
|
|
106
|
+
<ReqoreNotification
|
|
107
|
+
{...args}
|
|
108
|
+
title='Simple notification'
|
|
109
|
+
content="Hello, I am a very simple notification. Look at me, look at me? Isn't this great?"
|
|
110
|
+
onClick={noop}
|
|
111
|
+
onClose={noop}
|
|
112
|
+
intent='warning'
|
|
113
|
+
flat
|
|
114
|
+
icon='4KLine'
|
|
115
|
+
size='tiny'
|
|
116
|
+
/>
|
|
117
|
+
</ReqoreUIProvider>
|
|
118
|
+
);
|
|
119
|
+
|
|
120
|
+
const SingleTemplate: Story<IReqoreNotificationProps & IReqoreUIProviderProps> = ({
|
|
121
|
+
theme,
|
|
122
|
+
...args
|
|
123
|
+
}: IReqoreNotificationProps & IReqoreUIProviderProps) => (
|
|
124
|
+
<ReqoreUIProvider theme={theme}>
|
|
125
|
+
<ReqoreNotification {...args} />
|
|
126
|
+
</ReqoreUIProvider>
|
|
127
|
+
);
|
|
128
|
+
|
|
129
|
+
export const Default = Template.bind({});
|
|
130
|
+
|
|
131
|
+
export const CustomColors = Template.bind({});
|
|
132
|
+
|
|
133
|
+
CustomColors.args = {
|
|
134
|
+
theme: {
|
|
135
|
+
notifications: {
|
|
136
|
+
info: '#6c2d80',
|
|
137
|
+
success: '#81a194',
|
|
138
|
+
pending: '#b8d8f5',
|
|
139
|
+
warning: '#382d31',
|
|
140
|
+
danger: '#786714',
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
} as IReqoreUIProviderProps;
|
|
144
|
+
|
|
145
|
+
export const CustomColors2 = Template.bind({});
|
|
146
|
+
|
|
147
|
+
CustomColors2.args = {
|
|
148
|
+
theme: {
|
|
149
|
+
notifications: {
|
|
150
|
+
info: '#d6bac0',
|
|
151
|
+
success: '#2aeb37',
|
|
152
|
+
pending: '#181d7d',
|
|
153
|
+
warning: '#96714e',
|
|
154
|
+
danger: '#b87cd6',
|
|
155
|
+
},
|
|
156
|
+
},
|
|
157
|
+
} as IReqoreUIProviderProps;
|
|
158
|
+
|
|
159
|
+
export const WithTimeout = SingleTemplate.bind({});
|
|
160
|
+
|
|
161
|
+
WithTimeout.args = {
|
|
162
|
+
type: 'info',
|
|
163
|
+
content: 'I am a notification with a 10s timeout',
|
|
164
|
+
onClick: noop,
|
|
165
|
+
duration: 10000,
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
const UpdateTemplate: Story<IReqoreNotificationProps & IReqoreUIProviderProps> = ({
|
|
169
|
+
theme,
|
|
170
|
+
...args
|
|
171
|
+
}: IReqoreNotificationProps & IReqoreUIProviderProps) => {
|
|
172
|
+
const [notificationData, setNotificationData] = useState({ ...args });
|
|
173
|
+
|
|
174
|
+
useMount(() => {
|
|
175
|
+
setTimeout(() => {
|
|
176
|
+
setNotificationData({
|
|
177
|
+
...notificationData,
|
|
178
|
+
title: 'I am updated notification',
|
|
179
|
+
content: 'Hellooo I am an updated notification with 7s duration',
|
|
180
|
+
type: 'success',
|
|
181
|
+
duration: 7000,
|
|
182
|
+
});
|
|
183
|
+
}, 5000);
|
|
184
|
+
});
|
|
185
|
+
|
|
186
|
+
return (
|
|
187
|
+
<ReqoreUIProvider theme={theme}>
|
|
188
|
+
<ReqoreNotification {...notificationData} />
|
|
189
|
+
</ReqoreUIProvider>
|
|
190
|
+
);
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
export const WithUpdate = UpdateTemplate.bind({});
|
|
194
|
+
|
|
195
|
+
WithUpdate.args = {
|
|
196
|
+
type: 'pending',
|
|
197
|
+
content: 'I am a notification with a 10s timeout thats gonna update',
|
|
198
|
+
onClick: noop,
|
|
199
|
+
duration: 10000,
|
|
200
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/react/types-6-0';
|
|
2
|
+
import { noop } from 'lodash';
|
|
3
|
+
import ReqoreNotificationsWrapper, {
|
|
4
|
+
IReqoreNotificationsWrapperProps,
|
|
5
|
+
} from '../../components/Notifications';
|
|
6
|
+
import ReqoreNotification, {
|
|
7
|
+
IReqoreNotificationProps,
|
|
8
|
+
} from '../../components/Notifications/notification';
|
|
9
|
+
import { IReqoreUIProviderProps } from '../../containers/UIProvider';
|
|
10
|
+
import { ReqoreUIProvider } from '../../index';
|
|
11
|
+
|
|
12
|
+
export default {
|
|
13
|
+
title: 'Components/Notifications/Wrapper',
|
|
14
|
+
component: ReqoreNotification,
|
|
15
|
+
} as Meta;
|
|
16
|
+
|
|
17
|
+
const Template: Story<
|
|
18
|
+
IReqoreNotificationProps & IReqoreUIProviderProps & IReqoreNotificationsWrapperProps
|
|
19
|
+
> = ({
|
|
20
|
+
theme,
|
|
21
|
+
...args
|
|
22
|
+
}: IReqoreNotificationProps & IReqoreUIProviderProps & IReqoreNotificationsWrapperProps) => (
|
|
23
|
+
<ReqoreUIProvider theme={theme}>
|
|
24
|
+
<ReqoreNotificationsWrapper position={args.position}>
|
|
25
|
+
<ReqoreNotification
|
|
26
|
+
{...args}
|
|
27
|
+
type='info'
|
|
28
|
+
content="Hello, I am a very simple notification. Look at me, look at me? Isn't this great?"
|
|
29
|
+
onClick={noop}
|
|
30
|
+
/>
|
|
31
|
+
<ReqoreNotification
|
|
32
|
+
{...args}
|
|
33
|
+
type='info'
|
|
34
|
+
content="Hello, I am a very simple notification. Look at me, look at me? Isn't this great?"
|
|
35
|
+
onClick={noop}
|
|
36
|
+
/>
|
|
37
|
+
</ReqoreNotificationsWrapper>
|
|
38
|
+
</ReqoreUIProvider>
|
|
39
|
+
);
|
|
40
|
+
|
|
41
|
+
export const Top = Template.bind({});
|
|
42
|
+
export const Bottom = Template.bind({});
|
|
43
|
+
Bottom.args = {
|
|
44
|
+
position: 'BOTTOM',
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export const TopLeft = Template.bind({});
|
|
48
|
+
TopLeft.args = {
|
|
49
|
+
position: 'TOP LEFT',
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export const TopRight = Template.bind({});
|
|
53
|
+
TopRight.args = {
|
|
54
|
+
position: 'TOP RIGHT',
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
export const BottomLeft = Template.bind({});
|
|
58
|
+
BottomLeft.args = {
|
|
59
|
+
position: 'BOTTOM LEFT',
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
export const BottomRight = Template.bind({});
|
|
63
|
+
BottomRight.args = {
|
|
64
|
+
position: 'BOTTOM RIGHT',
|
|
65
|
+
};
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/react/types-6-0';
|
|
2
|
+
import { IReqorePanelProps, ReqorePanel } from '../../components/Panel';
|
|
3
|
+
import { argManager, FlatArg, IntentArg } from '../utils/args';
|
|
4
|
+
|
|
5
|
+
const { createArg } = argManager<IReqorePanelProps>();
|
|
6
|
+
|
|
7
|
+
export default {
|
|
8
|
+
title: 'Components/Panel',
|
|
9
|
+
argTypes: {
|
|
10
|
+
...IntentArg,
|
|
11
|
+
...FlatArg,
|
|
12
|
+
...createArg('padded', {
|
|
13
|
+
type: 'boolean',
|
|
14
|
+
defaultValue: true,
|
|
15
|
+
name: 'Padded',
|
|
16
|
+
description: 'If the panel should have padding',
|
|
17
|
+
}),
|
|
18
|
+
...createArg('rounded', {
|
|
19
|
+
type: 'boolean',
|
|
20
|
+
defaultValue: true,
|
|
21
|
+
name: 'Rounded',
|
|
22
|
+
description: 'If the panel should have rounded corners',
|
|
23
|
+
}),
|
|
24
|
+
...createArg('collapsible', {
|
|
25
|
+
type: 'boolean',
|
|
26
|
+
defaultValue: true,
|
|
27
|
+
name: 'Collapsible',
|
|
28
|
+
description: 'If the panel should be collapsible',
|
|
29
|
+
}),
|
|
30
|
+
...createArg('label', {
|
|
31
|
+
type: 'string',
|
|
32
|
+
defaultValue: 'Reqore panel component',
|
|
33
|
+
name: 'Label',
|
|
34
|
+
description: 'The title of the panel component',
|
|
35
|
+
}),
|
|
36
|
+
},
|
|
37
|
+
} as Meta<IReqorePanelProps>;
|
|
38
|
+
|
|
39
|
+
const Template: Story<IReqorePanelProps> = (args: IReqorePanelProps) => {
|
|
40
|
+
return (
|
|
41
|
+
<ReqorePanel
|
|
42
|
+
{...args}
|
|
43
|
+
actions={[
|
|
44
|
+
{ label: 'Test', icon: '24HoursFill', intent: 'info' },
|
|
45
|
+
{
|
|
46
|
+
label: 'More actions',
|
|
47
|
+
actions: [
|
|
48
|
+
{ label: 'Sub Test', icon: 'FileDownloadLine' },
|
|
49
|
+
{ label: 'Sub Test 2', icon: 'FileDownloadLine', intent: 'success' },
|
|
50
|
+
],
|
|
51
|
+
intent: 'info',
|
|
52
|
+
},
|
|
53
|
+
]}
|
|
54
|
+
bottomActions={[
|
|
55
|
+
{ label: 'Test', icon: '24HoursFill', position: 'left' },
|
|
56
|
+
{
|
|
57
|
+
label: 'More actions',
|
|
58
|
+
position: 'right',
|
|
59
|
+
actions: [
|
|
60
|
+
{ label: 'Sub Test', icon: 'FileDownloadLine', intent: 'success' },
|
|
61
|
+
{ label: 'Sub Test 2', icon: 'FileDownloadLine' },
|
|
62
|
+
],
|
|
63
|
+
},
|
|
64
|
+
]}
|
|
65
|
+
>
|
|
66
|
+
Shadowlands has mechanisms put in place for allowing players to catch up on Renown, the system
|
|
67
|
+
of gaining favor and unlocking rewards, Campaign chapters, and soulbinds within your Covenant.
|
|
68
|
+
This system works for main characters who have started late, for alts, for players who have
|
|
69
|
+
switched Covenants and are starting over, and for players who have simply missed weekly quests
|
|
70
|
+
for earning Renown due to being away from the game. I am a message a very long message -
|
|
71
|
+
Shadowlands has mechanisms put in place for allowing players to catch up on Renown, the system
|
|
72
|
+
of gaining favor and unlocking rewards, Campaign chapters, and soulbinds within your Covenant.
|
|
73
|
+
This system works for main characters who have started late, for alts, for players who have
|
|
74
|
+
switched Covenants and are starting over, and for players who have simply missed weekly quests
|
|
75
|
+
for earning Renown due to being away from the game. I am a message a very long message -
|
|
76
|
+
Shadowlands has mechanisms put in place for allowing players to catch up on Renown, the system
|
|
77
|
+
of gaining favor and unlocking rewards, Campaign chapters, and soulbinds within your Covenant.
|
|
78
|
+
This system works for main characters who have started late, for alts, for players who have
|
|
79
|
+
switched Covenants and are starting over, and for players who have simply missed weekly quests
|
|
80
|
+
for earning Renown due to being away from the game. I am a message a very long message -
|
|
81
|
+
Shadowlands has mechanisms put in place for allowing players to catch up on Renown, the system
|
|
82
|
+
of gaining favor and unlocking rewards, Campaign chapters, and soulbinds within your Covenant.
|
|
83
|
+
This system works for main characters who have started late, for alts, for players who have
|
|
84
|
+
switched Covenants and are starting over, and for players who have simply missed weekly quests
|
|
85
|
+
for earning Renown due to being away from the game. I am a message a very long message -
|
|
86
|
+
Shadowlands has mechanisms put in place for allowing players to catch up on Renown, the system
|
|
87
|
+
of gaining favor and unlocking rewards, Campaign chapters, and soulbinds within your Covenant.
|
|
88
|
+
This system works for main characters who have started late, for alts, for players who have
|
|
89
|
+
switched Covenants and are starting over, and for players who have simply missed weekly quests
|
|
90
|
+
for earning Renown due to being away from the game.
|
|
91
|
+
</ReqorePanel>
|
|
92
|
+
);
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
export const Basic = Template.bind({});
|
|
96
|
+
export const NoPadding = Template.bind({});
|
|
97
|
+
NoPadding.args = {
|
|
98
|
+
padded: false,
|
|
99
|
+
};
|
|
100
|
+
export const Flat = Template.bind({});
|
|
101
|
+
Flat.args = {
|
|
102
|
+
flat: true,
|
|
103
|
+
};
|
|
104
|
+
export const NoLabel = Template.bind({});
|
|
105
|
+
NoLabel.args = {
|
|
106
|
+
label: undefined,
|
|
107
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/react/types-6-0';
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
import { IReqorePopoverProps } from '../../components/Popover';
|
|
4
|
+
import usePopover from '../../hooks/usePopover';
|
|
5
|
+
import { ReqoreButton, ReqorePopover } from '../../index';
|
|
6
|
+
|
|
7
|
+
export default {
|
|
8
|
+
title: 'Components/Popover',
|
|
9
|
+
} as Meta<IReqorePopoverProps>;
|
|
10
|
+
|
|
11
|
+
const HoverButton = () => {
|
|
12
|
+
return (
|
|
13
|
+
<ReqorePopover component={ReqoreButton} content='I am shown on hover' isReqoreComponent>
|
|
14
|
+
Hover popover
|
|
15
|
+
</ReqorePopover>
|
|
16
|
+
);
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
const ClickButton = ({ content, placement }: any) => {
|
|
20
|
+
const [refElement, setRefElement] = useState(null);
|
|
21
|
+
|
|
22
|
+
usePopover({
|
|
23
|
+
targetElement: refElement,
|
|
24
|
+
content: content || 'I am a tooltip on click',
|
|
25
|
+
handler: 'click',
|
|
26
|
+
placement,
|
|
27
|
+
closeOnOutsideClick: false,
|
|
28
|
+
noArrow: true,
|
|
29
|
+
useTargetWidth: true,
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
return <ReqoreButton ref={setRefElement}>Click popover</ReqoreButton>;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
const Template: Story<IReqorePopoverProps> = (args: IReqorePopoverProps) => {
|
|
36
|
+
return (
|
|
37
|
+
<>
|
|
38
|
+
<HoverButton />
|
|
39
|
+
<br />
|
|
40
|
+
<ClickButton {...args} />
|
|
41
|
+
<br />
|
|
42
|
+
<ReqorePopover
|
|
43
|
+
component={ReqoreButton}
|
|
44
|
+
content='I am shown on mount'
|
|
45
|
+
isReqoreComponent
|
|
46
|
+
openOnMount
|
|
47
|
+
>
|
|
48
|
+
Auto open popover
|
|
49
|
+
</ReqorePopover>
|
|
50
|
+
</>
|
|
51
|
+
);
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
export const Basic = Template.bind({});
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/react/types-6-0';
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
import ReqoreRadioGroup, { IReqoreRadioGroupProps } from '../../components/RadioGroup';
|
|
4
|
+
import { argManager, DisabledArg } from '../utils/args';
|
|
5
|
+
|
|
6
|
+
const { createArg } = argManager<IReqoreRadioGroupProps>();
|
|
7
|
+
|
|
8
|
+
export default {
|
|
9
|
+
title: 'Components/Radio Group',
|
|
10
|
+
argTypes: {
|
|
11
|
+
...createArg('asSwitch', {
|
|
12
|
+
type: 'boolean',
|
|
13
|
+
defaultValue: false,
|
|
14
|
+
name: 'As Switch',
|
|
15
|
+
description: 'If the radio group should be rendered as a switch',
|
|
16
|
+
}),
|
|
17
|
+
...DisabledArg,
|
|
18
|
+
},
|
|
19
|
+
} as Meta<IReqoreRadioGroupProps>;
|
|
20
|
+
|
|
21
|
+
const Template: Story<IReqoreRadioGroupProps> = (args: IReqoreRadioGroupProps) => {
|
|
22
|
+
const [selected, setSelected] = useState(null);
|
|
23
|
+
|
|
24
|
+
return (
|
|
25
|
+
<ReqoreRadioGroup
|
|
26
|
+
{...args}
|
|
27
|
+
items={[
|
|
28
|
+
{
|
|
29
|
+
label: 'Option 1',
|
|
30
|
+
value: 'opt1',
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
label: 'Option 2',
|
|
34
|
+
value: 'opt2',
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
label: 'Option 3',
|
|
38
|
+
value: 'opt3',
|
|
39
|
+
},
|
|
40
|
+
]}
|
|
41
|
+
onSelectClick={(value) => setSelected(value)}
|
|
42
|
+
selected={selected}
|
|
43
|
+
/>
|
|
44
|
+
);
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export const Basic = Template.bind({});
|
|
48
|
+
export const Switch = Template.bind({});
|
|
49
|
+
Switch.args = {
|
|
50
|
+
asSwitch: true,
|
|
51
|
+
};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/react/types-6-0';
|
|
2
|
+
import { noop } from 'lodash';
|
|
3
|
+
import { IQorusSidebarProps } from '../../components/Sidebar';
|
|
4
|
+
import { ReqorePanel, ReqoreSidebar } from '../../index';
|
|
5
|
+
import { qorusSidebarItems } from '../../mock/menu';
|
|
6
|
+
import { argManager, FlatArg, NoContentArg } from '../utils/args';
|
|
7
|
+
|
|
8
|
+
const { disableArg, createArg } = argManager<IQorusSidebarProps>();
|
|
9
|
+
|
|
10
|
+
export default {
|
|
11
|
+
title: 'Components/Sidebar',
|
|
12
|
+
argTypes: {
|
|
13
|
+
...disableArg('items'),
|
|
14
|
+
...FlatArg,
|
|
15
|
+
...createArg('path', {
|
|
16
|
+
defaultValue: '/',
|
|
17
|
+
name: 'Path',
|
|
18
|
+
description: 'Mock location path',
|
|
19
|
+
type: 'string',
|
|
20
|
+
}),
|
|
21
|
+
...createArg('floating', {
|
|
22
|
+
control: 'boolean',
|
|
23
|
+
defaultValue: false,
|
|
24
|
+
name: 'Floating',
|
|
25
|
+
description: 'If the sidebar should be floating',
|
|
26
|
+
}),
|
|
27
|
+
...createArg('bordered', {
|
|
28
|
+
control: 'boolean',
|
|
29
|
+
defaultValue: false,
|
|
30
|
+
name: 'Bordered',
|
|
31
|
+
description: 'If the sidebar should be bordered',
|
|
32
|
+
}),
|
|
33
|
+
...createArg('isOpen', {
|
|
34
|
+
control: 'boolean',
|
|
35
|
+
defaultValue: false,
|
|
36
|
+
name: 'Is Open',
|
|
37
|
+
description: 'If the sidebar should be shown when floating',
|
|
38
|
+
}),
|
|
39
|
+
...createArg('position', {
|
|
40
|
+
control: 'select',
|
|
41
|
+
options: ['left', 'right'],
|
|
42
|
+
defaultValue: 'left',
|
|
43
|
+
name: 'Sidebar position',
|
|
44
|
+
description: 'Sidebar positions - this decides which border is drawn',
|
|
45
|
+
}),
|
|
46
|
+
...NoContentArg,
|
|
47
|
+
},
|
|
48
|
+
} as Meta;
|
|
49
|
+
|
|
50
|
+
const Template: Story<IQorusSidebarProps> = (args: IQorusSidebarProps) => {
|
|
51
|
+
return (
|
|
52
|
+
<ReqoreSidebar
|
|
53
|
+
{...args}
|
|
54
|
+
items={qorusSidebarItems}
|
|
55
|
+
bookmarks={['submenu-item-2', 'another-item-1']}
|
|
56
|
+
onBookmarksChange={noop}
|
|
57
|
+
customItems={[
|
|
58
|
+
{
|
|
59
|
+
element: () => (
|
|
60
|
+
<div style={{ padding: '10px' }}>
|
|
61
|
+
<ReqorePanel intent='info' flat opacity={0.5}>
|
|
62
|
+
Hello I am a custom element!
|
|
63
|
+
</ReqorePanel>
|
|
64
|
+
</div>
|
|
65
|
+
),
|
|
66
|
+
},
|
|
67
|
+
]}
|
|
68
|
+
/>
|
|
69
|
+
);
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
export const Basic = Template.bind({});
|
|
73
|
+
export const Floating = Template.bind({});
|
|
74
|
+
Floating.args = {
|
|
75
|
+
floating: true,
|
|
76
|
+
isOpen: true,
|
|
77
|
+
hasFloatingBackground: true,
|
|
78
|
+
};
|