@qoretechnologies/reqore 0.20.1 → 0.20.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/components/Breadcrumbs/index.d.ts +33 -0
- package/dist/src/components/Breadcrumbs/index.d.ts.map +1 -0
- package/dist/src/components/Breadcrumbs/index.js +167 -0
- package/dist/src/components/Breadcrumbs/index.js.map +1 -0
- package/dist/src/components/Breadcrumbs/item.d.ts +14 -0
- package/dist/src/components/Breadcrumbs/item.d.ts.map +1 -0
- package/dist/src/components/Breadcrumbs/item.js +84 -0
- package/dist/src/components/Breadcrumbs/item.js.map +1 -0
- package/dist/src/components/Button/index.d.ts +33 -0
- package/dist/src/components/Button/index.d.ts.map +1 -0
- package/dist/src/components/Button/index.js +154 -0
- package/dist/src/components/Button/index.js.map +1 -0
- package/dist/src/components/Checkbox/index.d.ts +26 -0
- package/dist/src/components/Checkbox/index.d.ts.map +1 -0
- package/dist/src/components/Checkbox/index.js +108 -0
- package/dist/src/components/Checkbox/index.js.map +1 -0
- package/dist/src/components/Columns/column.d.ts +5 -0
- package/dist/src/components/Columns/column.d.ts.map +1 -0
- package/dist/src/components/Columns/column.js +37 -0
- package/dist/src/components/Columns/column.js.map +1 -0
- package/dist/src/components/Columns/index.d.ts +17 -0
- package/dist/src/components/Columns/index.d.ts.map +1 -0
- package/dist/src/components/Columns/index.js +69 -0
- package/dist/src/components/Columns/index.js.map +1 -0
- package/dist/src/components/Comment/index.d.ts +24 -0
- package/dist/src/components/Comment/index.d.ts.map +1 -0
- package/dist/src/components/Comment/index.js +71 -0
- package/dist/src/components/Comment/index.js.map +1 -0
- package/dist/src/components/CommentFeed/index.d.ts +7 -0
- package/dist/src/components/CommentFeed/index.d.ts.map +1 -0
- package/dist/src/components/CommentFeed/index.js +49 -0
- package/dist/src/components/CommentFeed/index.js.map +1 -0
- package/dist/src/components/Content/index.d.ts +11 -0
- package/dist/src/components/Content/index.d.ts.map +1 -0
- package/dist/src/components/Content/index.js +70 -0
- package/dist/src/components/Content/index.js.map +1 -0
- package/dist/src/components/Content/wrapper.d.ts +11 -0
- package/dist/src/components/Content/wrapper.d.ts.map +1 -0
- package/dist/src/components/Content/wrapper.js +43 -0
- package/dist/src/components/Content/wrapper.js.map +1 -0
- package/dist/src/components/ControlGroup/index.d.ts +17 -0
- package/dist/src/components/ControlGroup/index.d.ts.map +1 -0
- package/dist/src/components/ControlGroup/index.js +90 -0
- package/dist/src/components/ControlGroup/index.js.map +1 -0
- package/dist/src/components/Drawer/index.d.ts +36 -0
- package/dist/src/components/Drawer/index.d.ts.map +1 -0
- package/dist/src/components/Drawer/index.js +251 -0
- package/dist/src/components/Drawer/index.js.map +1 -0
- package/dist/src/components/Dropdown/index.d.ts +24 -0
- package/dist/src/components/Dropdown/index.d.ts.map +1 -0
- package/dist/src/components/Dropdown/index.js +38 -0
- package/dist/src/components/Dropdown/index.js.map +1 -0
- package/dist/src/components/Dropdown/item.d.ts +10 -0
- package/dist/src/components/Dropdown/item.d.ts.map +1 -0
- package/dist/src/components/Dropdown/item.js +35 -0
- package/dist/src/components/Dropdown/item.js.map +1 -0
- package/dist/src/components/Dropdown/list.d.ts +14 -0
- package/dist/src/components/Dropdown/list.d.ts.map +1 -0
- package/dist/src/components/Dropdown/list.js +47 -0
- package/dist/src/components/Dropdown/list.js.map +1 -0
- package/dist/src/components/Header/index.d.ts +13 -0
- package/dist/src/components/Header/index.d.ts.map +1 -0
- package/dist/src/components/Header/index.js +44 -0
- package/dist/src/components/Header/index.js.map +1 -0
- package/dist/src/components/Icon/index.d.ts +16 -0
- package/dist/src/components/Icon/index.d.ts.map +1 -0
- package/dist/src/components/Icon/index.js +81 -0
- package/dist/src/components/Icon/index.js.map +1 -0
- package/dist/src/components/Input/index.d.ts +33 -0
- package/dist/src/components/Input/index.d.ts.map +1 -0
- package/dist/src/components/Input/index.js +115 -0
- package/dist/src/components/Input/index.js.map +1 -0
- package/dist/src/components/InputClearButton/index.d.ts +10 -0
- package/dist/src/components/InputClearButton/index.d.ts.map +1 -0
- package/dist/src/components/InputClearButton/index.js +49 -0
- package/dist/src/components/InputClearButton/index.js.map +1 -0
- package/dist/src/components/InternalPopover/index.d.ts +7 -0
- package/dist/src/components/InternalPopover/index.d.ts.map +1 -0
- package/dist/src/components/InternalPopover/index.js +132 -0
- package/dist/src/components/InternalPopover/index.js.map +1 -0
- package/dist/src/components/Layout/content.d.ts +8 -0
- package/dist/src/components/Layout/content.d.ts.map +1 -0
- package/dist/src/components/Layout/content.js +41 -0
- package/dist/src/components/Layout/content.js.map +1 -0
- package/dist/src/components/Layout/index.d.ts +8 -0
- package/dist/src/components/Layout/index.d.ts.map +1 -0
- package/dist/src/components/Layout/index.js +69 -0
- package/dist/src/components/Layout/index.js.map +1 -0
- package/dist/src/components/Menu/divider.d.ts +7 -0
- package/dist/src/components/Menu/divider.d.ts.map +1 -0
- package/dist/src/components/Menu/divider.js +49 -0
- package/dist/src/components/Menu/divider.js.map +1 -0
- package/dist/src/components/Menu/index.d.ts +17 -0
- package/dist/src/components/Menu/index.d.ts.map +1 -0
- package/dist/src/components/Menu/index.js +89 -0
- package/dist/src/components/Menu/index.js.map +1 -0
- package/dist/src/components/Menu/item.d.ts +31 -0
- package/dist/src/components/Menu/item.d.ts.map +1 -0
- package/dist/src/components/Menu/item.js +121 -0
- package/dist/src/components/Menu/item.js.map +1 -0
- package/dist/src/components/Message/index.d.ts +25 -0
- package/dist/src/components/Message/index.d.ts.map +1 -0
- package/dist/src/components/Message/index.js +54 -0
- package/dist/src/components/Message/index.js.map +1 -0
- package/dist/src/components/Modal/actions.d.ts +6 -0
- package/dist/src/components/Modal/actions.d.ts.map +1 -0
- package/dist/src/components/Modal/actions.js +49 -0
- package/dist/src/components/Modal/actions.js.map +1 -0
- package/dist/src/components/Modal/content.d.ts +6 -0
- package/dist/src/components/Modal/content.d.ts.map +1 -0
- package/dist/src/components/Modal/content.js +25 -0
- package/dist/src/components/Modal/content.js.map +1 -0
- package/dist/src/components/Modal/index.d.ts +14 -0
- package/dist/src/components/Modal/index.d.ts.map +1 -0
- package/dist/src/components/Modal/index.js +33 -0
- package/dist/src/components/Modal/index.js.map +1 -0
- package/dist/src/components/Navbar/divider.d.ts +9 -0
- package/dist/src/components/Navbar/divider.d.ts.map +1 -0
- package/dist/src/components/Navbar/divider.js +47 -0
- package/dist/src/components/Navbar/divider.js.map +1 -0
- package/dist/src/components/Navbar/group.d.ts +15 -0
- package/dist/src/components/Navbar/group.d.ts.map +1 -0
- package/dist/src/components/Navbar/group.js +75 -0
- package/dist/src/components/Navbar/group.js.map +1 -0
- package/dist/src/components/Navbar/index.d.ts +16 -0
- package/dist/src/components/Navbar/index.d.ts.map +1 -0
- package/dist/src/components/Navbar/index.js +86 -0
- package/dist/src/components/Navbar/index.js.map +1 -0
- package/dist/src/components/Navbar/item.d.ts +16 -0
- package/dist/src/components/Navbar/item.d.ts.map +1 -0
- package/dist/src/components/Navbar/item.js +81 -0
- package/dist/src/components/Navbar/item.js.map +1 -0
- package/dist/src/components/Notifications/index.d.ts +12 -0
- package/dist/src/components/Notifications/index.d.ts.map +1 -0
- package/dist/src/components/Notifications/index.js +60 -0
- package/dist/src/components/Notifications/index.js.map +1 -0
- package/dist/src/components/Notifications/notification.d.ts +43 -0
- package/dist/src/components/Notifications/notification.d.ts.map +1 -0
- package/dist/src/components/Notifications/notification.js +140 -0
- package/dist/src/components/Notifications/notification.js.map +1 -0
- package/dist/src/components/Panel/index.d.ts +49 -0
- package/dist/src/components/Panel/index.d.ts.map +1 -0
- package/dist/src/components/Panel/index.js +172 -0
- package/dist/src/components/Panel/index.js.map +1 -0
- package/dist/src/components/Panel/panel.screenshot.d.ts +3 -0
- package/dist/src/components/Panel/panel.screenshot.d.ts.map +1 -0
- package/dist/src/components/Panel/panel.screenshot.js +30 -0
- package/dist/src/components/Panel/panel.screenshot.js.map +1 -0
- package/dist/src/components/Paragraph/index.d.ts +8 -0
- package/dist/src/components/Paragraph/index.d.ts.map +1 -0
- package/dist/src/components/Paragraph/index.js +64 -0
- package/dist/src/components/Paragraph/index.js.map +1 -0
- package/dist/src/components/Popover/index.d.ts +16 -0
- package/dist/src/components/Popover/index.d.ts.map +1 -0
- package/dist/src/components/Popover/index.js +55 -0
- package/dist/src/components/Popover/index.js.map +1 -0
- package/dist/src/components/RadioGroup/index.d.ts +17 -0
- package/dist/src/components/RadioGroup/index.d.ts.map +1 -0
- package/dist/src/components/RadioGroup/index.js +48 -0
- package/dist/src/components/RadioGroup/index.js.map +1 -0
- package/dist/src/components/Sidebar/index.d.ts +60 -0
- package/dist/src/components/Sidebar/index.d.ts.map +1 -0
- package/dist/src/components/Sidebar/index.js +265 -0
- package/dist/src/components/Sidebar/index.js.map +1 -0
- package/dist/src/components/Sidebar/item.d.ts +36 -0
- package/dist/src/components/Sidebar/item.d.ts.map +1 -0
- package/dist/src/components/Sidebar/item.js +106 -0
- package/dist/src/components/Sidebar/item.js.map +1 -0
- package/dist/src/components/Table/body.d.ts +10 -0
- package/dist/src/components/Table/body.d.ts.map +1 -0
- package/dist/src/components/Table/body.js +44 -0
- package/dist/src/components/Table/body.js.map +1 -0
- package/dist/src/components/Table/header.d.ts +29 -0
- package/dist/src/components/Table/header.d.ts.map +1 -0
- package/dist/src/components/Table/header.js +106 -0
- package/dist/src/components/Table/header.js.map +1 -0
- package/dist/src/components/Table/headerCell.d.ts +18 -0
- package/dist/src/components/Table/headerCell.d.ts.map +1 -0
- package/dist/src/components/Table/headerCell.js +92 -0
- package/dist/src/components/Table/headerCell.js.map +1 -0
- package/dist/src/components/Table/helpers.d.ts +8 -0
- package/dist/src/components/Table/helpers.d.ts.map +1 -0
- package/dist/src/components/Table/helpers.js +41 -0
- package/dist/src/components/Table/helpers.js.map +1 -0
- package/dist/src/components/Table/index.d.ts +75 -0
- package/dist/src/components/Table/index.d.ts.map +1 -0
- package/dist/src/components/Table/index.js +165 -0
- package/dist/src/components/Table/index.js.map +1 -0
- package/dist/src/components/Table/row.d.ts +58 -0
- package/dist/src/components/Table/row.d.ts.map +1 -0
- package/dist/src/components/Table/row.js +204 -0
- package/dist/src/components/Table/row.js.map +1 -0
- package/dist/src/components/Tabs/content.d.ts +8 -0
- package/dist/src/components/Tabs/content.d.ts.map +1 -0
- package/dist/src/components/Tabs/content.js +41 -0
- package/dist/src/components/Tabs/content.js.map +1 -0
- package/dist/src/components/Tabs/index.d.ts +39 -0
- package/dist/src/components/Tabs/index.d.ts.map +1 -0
- package/dist/src/components/Tabs/index.js +83 -0
- package/dist/src/components/Tabs/index.js.map +1 -0
- package/dist/src/components/Tabs/item.d.ts +23 -0
- package/dist/src/components/Tabs/item.d.ts.map +1 -0
- package/dist/src/components/Tabs/item.js +71 -0
- package/dist/src/components/Tabs/item.js.map +1 -0
- package/dist/src/components/Tabs/list.d.ts +17 -0
- package/dist/src/components/Tabs/list.d.ts.map +1 -0
- package/dist/src/components/Tabs/list.js +189 -0
- package/dist/src/components/Tabs/list.js.map +1 -0
- package/dist/src/components/Tag/group.d.ts +10 -0
- package/dist/src/components/Tag/group.d.ts.map +1 -0
- package/dist/src/components/Tag/group.js +50 -0
- package/dist/src/components/Tag/group.js.map +1 -0
- package/dist/src/components/Tag/index.d.ts +36 -0
- package/dist/src/components/Tag/index.d.ts.map +1 -0
- package/dist/src/components/Tag/index.js +136 -0
- package/dist/src/components/Tag/index.js.map +1 -0
- package/dist/src/components/Textarea/index.d.ts +26 -0
- package/dist/src/components/Textarea/index.d.ts.map +1 -0
- package/dist/src/components/Textarea/index.js +85 -0
- package/dist/src/components/Textarea/index.js.map +1 -0
- package/dist/src/components/TimeAgo/index.d.ts +4 -0
- package/dist/src/components/TimeAgo/index.d.ts.map +1 -0
- package/dist/src/components/TimeAgo/index.js +21 -0
- package/dist/src/components/TimeAgo/index.js.map +1 -0
- package/dist/src/components/Tree/index.d.ts +16 -0
- package/dist/src/components/Tree/index.d.ts.map +1 -0
- package/dist/src/components/Tree/index.js +155 -0
- package/dist/src/components/Tree/index.js.map +1 -0
- package/dist/src/constants/animations.d.ts +5 -0
- package/dist/src/constants/animations.d.ts.map +1 -0
- package/dist/src/constants/animations.js +8 -0
- package/dist/src/constants/animations.js.map +1 -0
- package/dist/src/constants/colors.d.ts +10 -0
- package/dist/src/constants/colors.d.ts.map +1 -0
- package/dist/src/constants/colors.js +13 -0
- package/dist/src/constants/colors.js.map +1 -0
- package/dist/src/constants/sizes.d.ts +59 -0
- package/dist/src/constants/sizes.d.ts.map +1 -0
- package/dist/src/constants/sizes.js +60 -0
- package/dist/src/constants/sizes.js.map +1 -0
- package/dist/src/constants/theme.d.ts +81 -0
- package/dist/src/constants/theme.d.ts.map +1 -0
- package/dist/src/constants/theme.js +20 -0
- package/dist/src/constants/theme.js.map +1 -0
- package/dist/src/containers/PopoverProvider.d.ts +13 -0
- package/dist/src/containers/PopoverProvider.d.ts.map +1 -0
- package/dist/src/containers/PopoverProvider.js +81 -0
- package/dist/src/containers/PopoverProvider.js.map +1 -0
- package/dist/src/containers/ReqoreProvider.d.ts +40 -0
- package/dist/src/containers/ReqoreProvider.d.ts.map +1 -0
- package/dist/src/containers/ReqoreProvider.js +125 -0
- package/dist/src/containers/ReqoreProvider.js.map +1 -0
- package/dist/src/containers/ThemeProvider.d.ts +8 -0
- package/dist/src/containers/ThemeProvider.d.ts.map +1 -0
- package/dist/src/containers/ThemeProvider.js +27 -0
- package/dist/src/containers/ThemeProvider.js.map +1 -0
- package/dist/src/containers/UIProvider.d.ts +13 -0
- package/dist/src/containers/UIProvider.d.ts.map +1 -0
- package/dist/src/containers/UIProvider.js +43 -0
- package/dist/src/containers/UIProvider.js.map +1 -0
- package/dist/src/context/PopoverContext.d.ts +11 -0
- package/dist/src/context/PopoverContext.d.ts.map +1 -0
- package/dist/src/context/PopoverContext.js +5 -0
- package/dist/src/context/PopoverContext.js.map +1 -0
- package/dist/src/context/ReqoreContext.d.ts +15 -0
- package/dist/src/context/ReqoreContext.d.ts.map +1 -0
- package/dist/src/context/ReqoreContext.js +10 -0
- package/dist/src/context/ReqoreContext.js.map +1 -0
- package/dist/src/context/ThemeContext.d.ts +5 -0
- package/dist/src/context/ThemeContext.d.ts.map +1 -0
- package/dist/src/context/ThemeContext.js +6 -0
- package/dist/src/context/ThemeContext.js.map +1 -0
- package/dist/src/helpers/animations.d.ts +2 -0
- package/dist/src/helpers/animations.d.ts.map +1 -0
- package/dist/src/helpers/animations.js +11 -0
- package/dist/src/helpers/animations.js.map +1 -0
- package/dist/src/helpers/colors.d.ts +14 -0
- package/dist/src/helpers/colors.d.ts.map +1 -0
- package/dist/src/helpers/colors.js +108 -0
- package/dist/src/helpers/colors.js.map +1 -0
- package/dist/src/helpers/sidebar.d.ts +4 -0
- package/dist/src/helpers/sidebar.d.ts.map +1 -0
- package/dist/src/helpers/sidebar.js +90 -0
- package/dist/src/helpers/sidebar.js.map +1 -0
- package/dist/src/helpers/time.d.ts +8 -0
- package/dist/src/helpers/time.d.ts.map +1 -0
- package/dist/src/helpers/time.js +25 -0
- package/dist/src/helpers/time.js.map +1 -0
- package/dist/src/helpers/utils.d.ts +5 -0
- package/dist/src/helpers/utils.d.ts.map +1 -0
- package/dist/src/helpers/utils.js +103 -0
- package/dist/src/helpers/utils.js.map +1 -0
- package/dist/src/hooks/useCombinedRefs.d.ts +3 -0
- package/dist/src/hooks/useCombinedRefs.d.ts.map +1 -0
- package/dist/src/hooks/useCombinedRefs.js +29 -0
- package/dist/src/hooks/useCombinedRefs.js.map +1 -0
- package/dist/src/hooks/useLatestZIndex.d.ts +3 -0
- package/dist/src/hooks/useLatestZIndex.d.ts.map +1 -0
- package/dist/src/hooks/useLatestZIndex.js +11 -0
- package/dist/src/hooks/useLatestZIndex.js.map +1 -0
- package/dist/src/hooks/useOutsideClick.d.ts +4 -0
- package/dist/src/hooks/useOutsideClick.d.ts.map +1 -0
- package/dist/src/hooks/useOutsideClick.js +19 -0
- package/dist/src/hooks/useOutsideClick.js.map +1 -0
- package/dist/src/hooks/usePopover.d.ts +19 -0
- package/dist/src/hooks/usePopover.d.ts.map +1 -0
- package/dist/src/hooks/usePopover.js +86 -0
- package/dist/src/hooks/usePopover.js.map +1 -0
- package/dist/src/hooks/useShareForwardedRef.d.ts +3 -0
- package/dist/src/hooks/useShareForwardedRef.d.ts.map +1 -0
- package/dist/src/hooks/useShareForwardedRef.js +25 -0
- package/dist/src/hooks/useShareForwardedRef.js.map +1 -0
- package/dist/src/hooks/useTheme.d.ts +3 -0
- package/dist/src/hooks/useTheme.d.ts.map +1 -0
- package/dist/src/hooks/useTheme.js +21 -0
- package/dist/src/hooks/useTheme.js.map +1 -0
- package/dist/src/hooks/useTooltip.d.ts +3 -0
- package/dist/src/hooks/useTooltip.d.ts.map +1 -0
- package/dist/src/hooks/useTooltip.js +24 -0
- package/dist/src/hooks/useTooltip.js.map +1 -0
- package/dist/src/icons.json +2295 -0
- package/dist/src/index.d.ts +52 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +127 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/mock/breadcrumbs.d.ts +5 -0
- package/dist/src/mock/breadcrumbs.d.ts.map +1 -0
- package/dist/src/mock/breadcrumbs.js +94 -0
- package/dist/src/mock/breadcrumbs.js.map +1 -0
- package/dist/src/mock/icons.d.ts +5 -0
- package/dist/src/mock/icons.d.ts.map +1 -0
- package/dist/src/mock/icons.js +34 -0
- package/dist/src/mock/icons.js.map +1 -0
- package/dist/src/mock/menu.d.ts +3 -0
- package/dist/src/mock/menu.d.ts.map +1 -0
- package/dist/src/mock/menu.js +97 -0
- package/dist/src/mock/menu.js.map +1 -0
- package/dist/src/mock/object.json +317 -0
- package/dist/src/mock/tableData.d.ts +8 -0
- package/dist/src/mock/tableData.d.ts.map +1 -0
- package/dist/src/mock/tableData.js +53 -0
- package/dist/src/mock/tableData.js.map +1 -0
- package/dist/src/stories/Breadcrumbs/Breadcrumbs.stories.d.ts +10 -0
- package/dist/src/stories/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -0
- package/dist/src/stories/Breadcrumbs/Breadcrumbs.stories.js +72 -0
- package/dist/src/stories/Breadcrumbs/Breadcrumbs.stories.js.map +1 -0
- package/dist/src/stories/Button/Button.stories.d.ts +12 -0
- package/dist/src/stories/Button/Button.stories.d.ts.map +1 -0
- package/dist/src/stories/Button/Button.stories.js +57 -0
- package/dist/src/stories/Button/Button.stories.js.map +1 -0
- package/dist/src/stories/Checkbox/Checkbox.stories.d.ts +7 -0
- package/dist/src/stories/Checkbox/Checkbox.stories.d.ts.map +1 -0
- package/dist/src/stories/Checkbox/Checkbox.stories.js +29 -0
- package/dist/src/stories/Checkbox/Checkbox.stories.js.map +1 -0
- package/dist/src/stories/Columns/Columns.stories.d.ts +10 -0
- package/dist/src/stories/Columns/Columns.stories.d.ts.map +1 -0
- package/dist/src/stories/Columns/Columns.stories.js +49 -0
- package/dist/src/stories/Columns/Columns.stories.js.map +1 -0
- package/dist/src/stories/Comment/Comment.stories.d.ts +7 -0
- package/dist/src/stories/Comment/Comment.stories.d.ts.map +1 -0
- package/dist/src/stories/Comment/Comment.stories.js +43 -0
- package/dist/src/stories/Comment/Comment.stories.js.map +1 -0
- package/dist/src/stories/ControlGroup/ControlGroup.stories.d.ts +8 -0
- package/dist/src/stories/ControlGroup/ControlGroup.stories.d.ts.map +1 -0
- package/dist/src/stories/ControlGroup/ControlGroup.stories.js +44 -0
- package/dist/src/stories/ControlGroup/ControlGroup.stories.js.map +1 -0
- package/dist/src/stories/Drawer/Drawer.stories.d.ts +8 -0
- package/dist/src/stories/Drawer/Drawer.stories.d.ts.map +1 -0
- package/dist/src/stories/Drawer/Drawer.stories.js +97 -0
- package/dist/src/stories/Drawer/Drawer.stories.js.map +1 -0
- package/dist/src/stories/Dropdown/Dropdown.stories.d.ts +8 -0
- package/dist/src/stories/Dropdown/Dropdown.stories.d.ts.map +1 -0
- package/dist/src/stories/Dropdown/Dropdown.stories.js +141 -0
- package/dist/src/stories/Dropdown/Dropdown.stories.js.map +1 -0
- package/dist/src/stories/Icon/Icon.stories.d.ts +6 -0
- package/dist/src/stories/Icon/Icon.stories.d.ts.map +1 -0
- package/dist/src/stories/Icon/Icon.stories.js +13 -0
- package/dist/src/stories/Icon/Icon.stories.js.map +1 -0
- package/dist/src/stories/Input/Input.stories.d.ts +6 -0
- package/dist/src/stories/Input/Input.stories.d.ts.map +1 -0
- package/dist/src/stories/Input/Input.stories.js +38 -0
- package/dist/src/stories/Input/Input.stories.js.map +1 -0
- package/dist/src/stories/Menu/Menu.stories.d.ts +6 -0
- package/dist/src/stories/Menu/Menu.stories.d.ts.map +1 -0
- package/dist/src/stories/Menu/Menu.stories.js +48 -0
- package/dist/src/stories/Menu/Menu.stories.js.map +1 -0
- package/dist/src/stories/Message/Message.stories.d.ts +8 -0
- package/dist/src/stories/Message/Message.stories.d.ts.map +1 -0
- package/dist/src/stories/Message/Message.stories.js +50 -0
- package/dist/src/stories/Message/Message.stories.js.map +1 -0
- package/dist/src/stories/Modal/Modal.stories.d.ts +7 -0
- package/dist/src/stories/Modal/Modal.stories.d.ts.map +1 -0
- package/dist/src/stories/Modal/Modal.stories.js +77 -0
- package/dist/src/stories/Modal/Modal.stories.js.map +1 -0
- package/dist/src/stories/Navbar/Navbar.stories.d.ts +6 -0
- package/dist/src/stories/Navbar/Navbar.stories.d.ts.map +1 -0
- package/dist/src/stories/Navbar/Navbar.stories.js +33 -0
- package/dist/src/stories/Navbar/Navbar.stories.js.map +1 -0
- package/dist/src/stories/Notifications/Interactive.stories.d.ts +9 -0
- package/dist/src/stories/Notifications/Interactive.stories.d.ts.map +1 -0
- package/dist/src/stories/Notifications/Interactive.stories.js +100 -0
- package/dist/src/stories/Notifications/Interactive.stories.js.map +1 -0
- package/dist/src/stories/Notifications/Notification.stories.d.ts +9 -0
- package/dist/src/stories/Notifications/Notification.stories.d.ts.map +1 -0
- package/dist/src/stories/Notifications/Notification.stories.js +96 -0
- package/dist/src/stories/Notifications/Notification.stories.js.map +1 -0
- package/dist/src/stories/Notifications/Notifications.stories.d.ts +10 -0
- package/dist/src/stories/Notifications/Notifications.stories.d.ts.map +1 -0
- package/dist/src/stories/Notifications/Notifications.stories.js +63 -0
- package/dist/src/stories/Notifications/Notifications.stories.js.map +1 -0
- package/dist/src/stories/Panel/Panel.stories.d.ts +9 -0
- package/dist/src/stories/Panel/Panel.stories.d.ts.map +1 -0
- package/dist/src/stories/Panel/Panel.stories.js +79 -0
- package/dist/src/stories/Panel/Panel.stories.js.map +1 -0
- package/dist/src/stories/Popover/Popover.stories.d.ts +6 -0
- package/dist/src/stories/Popover/Popover.stories.d.ts.map +1 -0
- package/dist/src/stories/Popover/Popover.stories.js +46 -0
- package/dist/src/stories/Popover/Popover.stories.js.map +1 -0
- package/dist/src/stories/RadioGroup/RadioGroup.stories.d.ts +7 -0
- package/dist/src/stories/RadioGroup/RadioGroup.stories.d.ts.map +1 -0
- package/dist/src/stories/RadioGroup/RadioGroup.stories.js +54 -0
- package/dist/src/stories/RadioGroup/RadioGroup.stories.js.map +1 -0
- package/dist/src/stories/Sidebar/Sidebar.stories.d.ts +6 -0
- package/dist/src/stories/Sidebar/Sidebar.stories.d.ts.map +1 -0
- package/dist/src/stories/Sidebar/Sidebar.stories.js +65 -0
- package/dist/src/stories/Sidebar/Sidebar.stories.js.map +1 -0
- package/dist/src/stories/Table/Table.stories.d.ts +10 -0
- package/dist/src/stories/Table/Table.stories.d.ts.map +1 -0
- package/dist/src/stories/Table/Table.stories.js +157 -0
- package/dist/src/stories/Table/Table.stories.js.map +1 -0
- package/dist/src/stories/Tabs/Tabs.stories.d.ts +12 -0
- package/dist/src/stories/Tabs/Tabs.stories.d.ts.map +1 -0
- package/dist/src/stories/Tabs/Tabs.stories.js +127 -0
- package/dist/src/stories/Tabs/Tabs.stories.js.map +1 -0
- package/dist/src/stories/Tag/Tag.stories.d.ts +8 -0
- package/dist/src/stories/Tag/Tag.stories.d.ts.map +1 -0
- package/dist/src/stories/Tag/Tag.stories.js +79 -0
- package/dist/src/stories/Tag/Tag.stories.js.map +1 -0
- package/dist/src/stories/TextArea/TextArea.stories.d.ts +8 -0
- package/dist/src/stories/TextArea/TextArea.stories.d.ts.map +1 -0
- package/dist/src/stories/TextArea/TextArea.stories.js +65 -0
- package/dist/src/stories/TextArea/TextArea.stories.js.map +1 -0
- package/dist/src/stories/Tree/Tree.stories.d.ts +7 -0
- package/dist/src/stories/Tree/Tree.stories.d.ts.map +1 -0
- package/dist/src/stories/Tree/Tree.stories.js +52 -0
- package/dist/src/stories/Tree/Tree.stories.js.map +1 -0
- package/dist/src/stories/Wrapper.d.ts +4 -0
- package/dist/src/stories/Wrapper.d.ts.map +1 -0
- package/dist/src/stories/Wrapper.js +38 -0
- package/dist/src/stories/Wrapper.js.map +1 -0
- package/dist/src/stories/utils/args.d.ts +61 -0
- package/dist/src/stories/utils/args.d.ts.map +1 -0
- package/dist/src/stories/utils/args.js +120 -0
- package/dist/src/stories/utils/args.js.map +1 -0
- package/dist/src/stories/utils.d.ts +11 -0
- package/dist/src/stories/utils.d.ts.map +1 -0
- package/dist/src/stories/utils.js +17 -0
- package/dist/src/stories/utils.js.map +1 -0
- package/dist/src/styles.d.ts +5 -0
- package/dist/src/styles.d.ts.map +1 -0
- package/dist/src/styles.js +16 -0
- package/dist/src/styles.js.map +1 -0
- package/dist/src/types/global.d.ts +9 -0
- package/dist/src/types/global.d.ts.map +1 -0
- package/dist/src/types/global.js +3 -0
- package/dist/src/types/global.js.map +1 -0
- package/dist/src/types/icons.d.ts +2 -0
- package/dist/src/types/icons.d.ts.map +1 -0
- package/dist/src/types/icons.js +3 -0
- package/dist/src/types/icons.js.map +1 -0
- package/dist/src/types/icons____.d.ts +2 -0
- package/dist/src/types/icons____.d.ts.map +1 -0
- package/dist/src/types/icons____.js +5 -0
- package/dist/src/types/icons____.js.map +1 -0
- package/dist/tests.json +1 -1
- package/package.json +1 -1
- package/src/components/Breadcrumbs/index.tsx +286 -0
- package/src/components/Breadcrumbs/item.tsx +162 -0
- package/src/components/Button/index.tsx +270 -0
- package/src/components/Checkbox/index.tsx +161 -0
- package/src/components/Columns/column.tsx +26 -0
- package/src/components/Columns/index.tsx +40 -0
- package/src/components/Comment/index.tsx +139 -0
- package/src/components/CommentFeed/index.tsx +34 -0
- package/src/components/Content/index.tsx +39 -0
- package/src/components/Content/wrapper.tsx +37 -0
- package/src/components/ControlGroup/index.tsx +81 -0
- package/src/components/Drawer/index.tsx +387 -0
- package/src/components/Dropdown/index.tsx +81 -0
- package/src/components/Dropdown/item.tsx +20 -0
- package/src/components/Dropdown/list.tsx +76 -0
- package/src/components/Header/index.tsx +38 -0
- package/src/components/Icon/index.tsx +83 -0
- package/src/components/Input/index.tsx +185 -0
- package/src/components/InputClearButton/index.tsx +34 -0
- package/src/components/InternalPopover/index.tsx +185 -0
- package/src/components/Layout/content.tsx +31 -0
- package/src/components/Layout/index.tsx +55 -0
- package/src/components/Menu/divider.tsx +36 -0
- package/src/components/Menu/index.tsx +64 -0
- package/src/components/Menu/item.tsx +219 -0
- package/src/components/Message/index.tsx +136 -0
- package/src/components/Modal/actions.tsx +26 -0
- package/src/components/Modal/content.tsx +11 -0
- package/src/components/Modal/index.tsx +26 -0
- package/src/components/Navbar/divider.tsx +51 -0
- package/src/components/Navbar/group.tsx +57 -0
- package/src/components/Navbar/index.tsx +81 -0
- package/src/components/Navbar/item.tsx +75 -0
- package/src/components/Notifications/index.tsx +56 -0
- package/src/components/Notifications/notification.tsx +288 -0
- package/src/components/Panel/__screenshots__/linux/panel-SomePanel.png +0 -0
- package/src/components/Panel/index.tsx +333 -0
- package/src/components/Panel/panel.screenshot.tsx +29 -0
- package/src/components/Paragraph/index.tsx +25 -0
- package/src/components/Popover/index.tsx +65 -0
- package/src/components/RadioGroup/index.tsx +52 -0
- package/src/components/Sidebar/index.tsx +526 -0
- package/src/components/Sidebar/item.tsx +269 -0
- package/src/components/Table/body.tsx +46 -0
- package/src/components/Table/header.tsx +173 -0
- package/src/components/Table/headerCell.tsx +117 -0
- package/src/components/Table/helpers.ts +19 -0
- package/src/components/Table/index.tsx +265 -0
- package/src/components/Table/row.tsx +355 -0
- package/src/components/Tabs/content.tsx +23 -0
- package/src/components/Tabs/index.tsx +117 -0
- package/src/components/Tabs/item.tsx +151 -0
- package/src/components/Tabs/list.tsx +281 -0
- package/src/components/Tag/group.tsx +32 -0
- package/src/components/Tag/index.tsx +237 -0
- package/src/components/Textarea/index.tsx +121 -0
- package/src/components/TimeAgo/index.tsx +15 -0
- package/src/components/Tree/index.tsx +255 -0
- package/src/constants/animations.ts +4 -0
- package/src/constants/colors.ts +9 -0
- package/src/constants/sizes.ts +66 -0
- package/src/constants/theme.ts +102 -0
- package/src/containers/PopoverProvider.tsx +85 -0
- package/src/containers/ReqoreProvider.tsx +194 -0
- package/src/containers/ThemeProvider.tsx +22 -0
- package/src/containers/UIProvider.tsx +54 -0
- package/src/context/PopoverContext.tsx +10 -0
- package/src/context/ReqoreContext.tsx +20 -0
- package/src/context/ThemeContext.tsx +4 -0
- package/src/helpers/animations.ts +13 -0
- package/src/helpers/colors.ts +127 -0
- package/src/helpers/sidebar.ts +105 -0
- package/src/helpers/time.ts +21 -0
- package/src/helpers/utils.ts +75 -0
- package/src/hooks/useCombinedRefs.ts +19 -0
- package/src/hooks/useLatestZIndex.ts +11 -0
- package/src/hooks/useOutsideClick.ts +29 -0
- package/src/hooks/usePopover.tsx +118 -0
- package/src/hooks/useShareForwardedRef.ts +23 -0
- package/src/hooks/useTheme.ts +20 -0
- package/src/hooks/useTooltip.ts +15 -0
- package/src/icons.json +2295 -0
- package/src/index.tsx +51 -0
- package/src/mock/breadcrumbs.ts +93 -0
- package/src/mock/icons.ts +32 -0
- package/src/mock/menu.ts +95 -0
- package/src/mock/object.json +317 -0
- package/src/mock/styleMock.js +1 -0
- package/src/mock/tableData.ts +40 -0
- package/src/stories/Breadcrumbs/Breadcrumbs.stories.tsx +38 -0
- package/src/stories/Button/Button.stories.tsx +69 -0
- package/src/stories/Checkbox/Checkbox.stories.tsx +26 -0
- package/src/stories/Columns/Columns.stories.tsx +71 -0
- package/src/stories/Comment/Comment.stories.tsx +127 -0
- package/src/stories/ControlGroup/ControlGroup.stories.tsx +43 -0
- package/src/stories/Drawer/Drawer.stories.tsx +181 -0
- package/src/stories/Dropdown/Dropdown.stories.tsx +160 -0
- package/src/stories/Icon/Icon.stories.tsx +35 -0
- package/src/stories/Input/Input.stories.tsx +77 -0
- package/src/stories/Menu/Menu.stories.tsx +94 -0
- package/src/stories/Message/Message.stories.tsx +52 -0
- package/src/stories/Modal/Modal.stories.tsx +148 -0
- package/src/stories/Navbar/Navbar.stories.tsx +109 -0
- package/src/stories/Notifications/Interactive.stories.tsx +105 -0
- package/src/stories/Notifications/Notification.stories.tsx +200 -0
- package/src/stories/Notifications/Notifications.stories.tsx +65 -0
- package/src/stories/Panel/Panel.stories.tsx +107 -0
- package/src/stories/Popover/Popover.stories.tsx +54 -0
- package/src/stories/RadioGroup/RadioGroup.stories.tsx +51 -0
- package/src/stories/Sidebar/Sidebar.stories.tsx +78 -0
- package/src/stories/Table/Table.stories.tsx +151 -0
- package/src/stories/Tabs/Tabs.stories.tsx +233 -0
- package/src/stories/Tag/Tag.stories.tsx +72 -0
- package/src/stories/TextArea/TextArea.stories.tsx +74 -0
- package/src/stories/Tree/Tree.stories.tsx +43 -0
- package/src/stories/Wrapper.tsx +13 -0
- package/src/stories/utils/args.ts +138 -0
- package/src/stories/utils.ts +17 -0
- package/src/styles.ts +38 -0
- package/src/types/global.ts +9 -0
- package/src/types/icons.ts +2272 -0
- package/src/types/icons____.ts +5 -0
- package/tests.json +1 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react/types-6-0';
|
|
2
|
+
import { IReqorePanelProps } from '../../components/Panel';
|
|
3
|
+
declare const _default: Meta<IReqorePanelProps>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Basic: any;
|
|
6
|
+
export declare const NoPadding: any;
|
|
7
|
+
export declare const Flat: any;
|
|
8
|
+
export declare const NoLabel: any;
|
|
9
|
+
//# sourceMappingURL=Panel.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Panel.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Panel/Panel.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAS,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAe,MAAM,wBAAwB,CAAC;;AAKxE,wBA8B6B;AA0D7B,eAAO,MAAM,KAAK,KAAoB,CAAC;AACvC,eAAO,MAAM,SAAS,KAAoB,CAAC;AAI3C,eAAO,MAAM,IAAI,KAAoB,CAAC;AAItC,eAAO,MAAM,OAAO,KAAoB,CAAC"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
exports.__esModule = true;
|
|
14
|
+
exports.NoLabel = exports.Flat = exports.NoPadding = exports.Basic = void 0;
|
|
15
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
|
+
var Panel_1 = require("../../components/Panel");
|
|
17
|
+
var args_1 = require("../utils/args");
|
|
18
|
+
var createArg = (0, args_1.argManager)().createArg;
|
|
19
|
+
exports["default"] = {
|
|
20
|
+
title: 'Components/Panel',
|
|
21
|
+
argTypes: __assign(__assign(__assign(__assign(__assign(__assign({}, args_1.IntentArg), args_1.FlatArg), createArg('padded', {
|
|
22
|
+
type: 'boolean',
|
|
23
|
+
defaultValue: true,
|
|
24
|
+
name: 'Padded',
|
|
25
|
+
description: 'If the panel should have padding'
|
|
26
|
+
})), createArg('rounded', {
|
|
27
|
+
type: 'boolean',
|
|
28
|
+
defaultValue: true,
|
|
29
|
+
name: 'Rounded',
|
|
30
|
+
description: 'If the panel should have rounded corners'
|
|
31
|
+
})), createArg('collapsible', {
|
|
32
|
+
type: 'boolean',
|
|
33
|
+
defaultValue: true,
|
|
34
|
+
name: 'Collapsible',
|
|
35
|
+
description: 'If the panel should be collapsible'
|
|
36
|
+
})), createArg('label', {
|
|
37
|
+
type: 'string',
|
|
38
|
+
defaultValue: 'Reqore panel component',
|
|
39
|
+
name: 'Label',
|
|
40
|
+
description: 'The title of the panel component'
|
|
41
|
+
}))
|
|
42
|
+
};
|
|
43
|
+
var Template = function (args) {
|
|
44
|
+
return ((0, jsx_runtime_1.jsx)(Panel_1.ReqorePanel, __assign({}, args, { actions: [
|
|
45
|
+
{ label: 'Test', icon: '24HoursFill', intent: 'info' },
|
|
46
|
+
{
|
|
47
|
+
label: 'More actions',
|
|
48
|
+
actions: [
|
|
49
|
+
{ label: 'Sub Test', icon: 'FileDownloadLine' },
|
|
50
|
+
{ label: 'Sub Test 2', icon: 'FileDownloadLine', intent: 'success' },
|
|
51
|
+
],
|
|
52
|
+
intent: 'info'
|
|
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
|
+
] }, { children: "Shadowlands has mechanisms put in place for allowing players to catch up on Renown, the system of gaining favor and unlocking rewards, Campaign chapters, and soulbinds within your Covenant. This system works for main characters who have started late, for alts, for players who have switched Covenants and are starting over, and for players who have simply missed weekly quests for earning Renown due to being away from the game. I am a message a very long message - Shadowlands has mechanisms put in place for allowing players to catch up on Renown, the system of gaining favor and unlocking rewards, Campaign chapters, and soulbinds within your Covenant. This system works for main characters who have started late, for alts, for players who have switched Covenants and are starting over, and for players who have simply missed weekly quests for earning Renown due to being away from the game. I am a message a very long message - Shadowlands has mechanisms put in place for allowing players to catch up on Renown, the system of gaining favor and unlocking rewards, Campaign chapters, and soulbinds within your Covenant. This system works for main characters who have started late, for alts, for players who have switched Covenants and are starting over, and for players who have simply missed weekly quests for earning Renown due to being away from the game. I am a message a very long message - Shadowlands has mechanisms put in place for allowing players to catch up on Renown, the system of gaining favor and unlocking rewards, Campaign chapters, and soulbinds within your Covenant. This system works for main characters who have started late, for alts, for players who have switched Covenants and are starting over, and for players who have simply missed weekly quests for earning Renown due to being away from the game. I am a message a very long message - Shadowlands has mechanisms put in place for allowing players to catch up on Renown, the system of gaining favor and unlocking rewards, Campaign chapters, and soulbinds within your Covenant. This system works for main characters who have started late, for alts, for players who have switched Covenants and are starting over, and for players who have simply missed weekly quests for earning Renown due to being away from the game." })));
|
|
65
|
+
};
|
|
66
|
+
exports.Basic = Template.bind({});
|
|
67
|
+
exports.NoPadding = Template.bind({});
|
|
68
|
+
exports.NoPadding.args = {
|
|
69
|
+
padded: false
|
|
70
|
+
};
|
|
71
|
+
exports.Flat = Template.bind({});
|
|
72
|
+
exports.Flat.args = {
|
|
73
|
+
flat: true
|
|
74
|
+
};
|
|
75
|
+
exports.NoLabel = Template.bind({});
|
|
76
|
+
exports.NoLabel.args = {
|
|
77
|
+
label: undefined
|
|
78
|
+
};
|
|
79
|
+
//# sourceMappingURL=Panel.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Panel.stories.js","sourceRoot":"","sources":["../../../../src/stories/Panel/Panel.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,gDAAwE;AACxE,sCAA+D;AAEvD,IAAA,SAAS,GAAK,IAAA,iBAAU,GAAqB,UAApC,CAAqC;AAEtD,qBAAe;IACb,KAAK,EAAE,kBAAkB;IACzB,QAAQ,4DACH,gBAAS,GACT,cAAO,GACP,SAAS,CAAC,QAAQ,EAAE;QACrB,IAAI,EAAE,SAAS;QACf,YAAY,EAAE,IAAI;QAClB,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,kCAAkC;KAChD,CAAC,GACC,SAAS,CAAC,SAAS,EAAE;QACtB,IAAI,EAAE,SAAS;QACf,YAAY,EAAE,IAAI;QAClB,IAAI,EAAE,SAAS;QACf,WAAW,EAAE,0CAA0C;KACxD,CAAC,GACC,SAAS,CAAC,aAAa,EAAE;QAC1B,IAAI,EAAE,SAAS;QACf,YAAY,EAAE,IAAI;QAClB,IAAI,EAAE,aAAa;QACnB,WAAW,EAAE,oCAAoC;KAClD,CAAC,GACC,SAAS,CAAC,OAAO,EAAE;QACpB,IAAI,EAAE,QAAQ;QACd,YAAY,EAAE,wBAAwB;QACtC,IAAI,EAAE,OAAO;QACb,WAAW,EAAE,kCAAkC;KAChD,CAAC,CACH;CACyB,CAAC;AAE7B,IAAM,QAAQ,GAA6B,UAAC,IAAuB;IACjE,OAAO,CACL,uBAAC,mBAAW,eACN,IAAI,IACR,OAAO,EAAE;YACP,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE;YACtD;gBACE,KAAK,EAAE,cAAc;gBACrB,OAAO,EAAE;oBACP,EAAE,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,kBAAkB,EAAE;oBAC/C,EAAE,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,kBAAkB,EAAE,MAAM,EAAE,SAAS,EAAE;iBACrE;gBACD,MAAM,EAAE,MAAM;aACf;SACF,EACD,aAAa,EAAE;YACb,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,EAAE;YACxD;gBACE,KAAK,EAAE,cAAc;gBACrB,QAAQ,EAAE,OAAO;gBACjB,OAAO,EAAE;oBACP,EAAE,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,kBAAkB,EAAE,MAAM,EAAE,SAAS,EAAE;oBAClE,EAAE,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,kBAAkB,EAAE;iBAClD;aACF;SACF,0wEA2BW,CACf,CAAC;AACJ,CAAC,CAAC;AAEW,QAAA,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC1B,QAAA,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC3C,iBAAS,CAAC,IAAI,GAAG;IACf,MAAM,EAAE,KAAK;CACd,CAAC;AACW,QAAA,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACtC,YAAI,CAAC,IAAI,GAAG;IACV,IAAI,EAAE,IAAI;CACX,CAAC;AACW,QAAA,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACzC,eAAO,CAAC,IAAI,GAAG;IACb,KAAK,EAAE,SAAS;CACjB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react/types-6-0';
|
|
2
|
+
import { IReqorePopoverProps } from '../../components/Popover';
|
|
3
|
+
declare const _default: Meta<IReqorePopoverProps>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Basic: any;
|
|
6
|
+
//# sourceMappingURL=Popover.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Popover.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Popover/Popover.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAS,MAAM,4BAA4B,CAAC;AAEzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;;AAI/D,wBAE+B;AA6C/B,eAAO,MAAM,KAAK,KAAoB,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
exports.__esModule = true;
|
|
17
|
+
exports.Basic = void 0;
|
|
18
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
|
+
var react_1 = require("react");
|
|
20
|
+
var usePopover_1 = __importDefault(require("../../hooks/usePopover"));
|
|
21
|
+
var index_1 = require("../../index");
|
|
22
|
+
exports["default"] = {
|
|
23
|
+
title: 'Components/Popover'
|
|
24
|
+
};
|
|
25
|
+
var HoverButton = function () {
|
|
26
|
+
return ((0, jsx_runtime_1.jsx)(index_1.ReqorePopover, __assign({ component: index_1.ReqoreButton, content: 'I am shown on hover', isReqoreComponent: true }, { children: "Hover popover" })));
|
|
27
|
+
};
|
|
28
|
+
var ClickButton = function (_a) {
|
|
29
|
+
var content = _a.content, placement = _a.placement;
|
|
30
|
+
var _b = (0, react_1.useState)(null), refElement = _b[0], setRefElement = _b[1];
|
|
31
|
+
(0, usePopover_1["default"])({
|
|
32
|
+
targetElement: refElement,
|
|
33
|
+
content: content || 'I am a tooltip on click',
|
|
34
|
+
handler: 'click',
|
|
35
|
+
placement: placement,
|
|
36
|
+
closeOnOutsideClick: false,
|
|
37
|
+
noArrow: true,
|
|
38
|
+
useTargetWidth: true
|
|
39
|
+
});
|
|
40
|
+
return (0, jsx_runtime_1.jsx)(index_1.ReqoreButton, __assign({ ref: setRefElement }, { children: "Click popover" }));
|
|
41
|
+
};
|
|
42
|
+
var Template = function (args) {
|
|
43
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(HoverButton, {}), (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsx)(ClickButton, __assign({}, args)), (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsx)(index_1.ReqorePopover, __assign({ component: index_1.ReqoreButton, content: 'I am shown on mount', isReqoreComponent: true, openOnMount: true }, { children: "Auto open popover" }))] }));
|
|
44
|
+
};
|
|
45
|
+
exports.Basic = Template.bind({});
|
|
46
|
+
//# sourceMappingURL=Popover.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Popover.stories.js","sourceRoot":"","sources":["../../../../src/stories/Popover/Popover.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AACA,+BAAiC;AAEjC,sEAAgD;AAChD,qCAA0D;AAE1D,qBAAe;IACb,KAAK,EAAE,oBAAoB;CACC,CAAC;AAE/B,IAAM,WAAW,GAAG;IAClB,OAAO,CACL,uBAAC,qBAAa,aAAC,SAAS,EAAE,oBAAY,EAAE,OAAO,EAAC,qBAAqB,EAAC,iBAAiB,yCAEvE,CACjB,CAAC;AACJ,CAAC,CAAC;AAEF,IAAM,WAAW,GAAG,UAAC,EAA2B;QAAzB,OAAO,aAAA,EAAE,SAAS,eAAA;IACjC,IAAA,KAA8B,IAAA,gBAAQ,EAAC,IAAI,CAAC,EAA3C,UAAU,QAAA,EAAE,aAAa,QAAkB,CAAC;IAEnD,IAAA,uBAAU,EAAC;QACT,aAAa,EAAE,UAAU;QACzB,OAAO,EAAE,OAAO,IAAI,yBAAyB;QAC7C,OAAO,EAAE,OAAO;QAChB,SAAS,WAAA;QACT,mBAAmB,EAAE,KAAK;QAC1B,OAAO,EAAE,IAAI;QACb,cAAc,EAAE,IAAI;KACrB,CAAC,CAAC;IAEH,OAAO,uBAAC,oBAAY,aAAC,GAAG,EAAE,aAAa,mCAA8B,CAAC;AACxE,CAAC,CAAC;AAEF,IAAM,QAAQ,GAA+B,UAAC,IAAyB;IACrE,OAAO,CACL,6DACE,uBAAC,WAAW,KAAG,EACf,gCAAM,EACN,uBAAC,WAAW,eAAK,IAAI,EAAI,EACzB,gCAAM,EACN,uBAAC,qBAAa,aACZ,SAAS,EAAE,oBAAY,EACvB,OAAO,EAAC,qBAAqB,EAC7B,iBAAiB,QACjB,WAAW,6CAGG,IACf,CACJ,CAAC;AACJ,CAAC,CAAC;AAEW,QAAA,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react/types-6-0';
|
|
2
|
+
import { IReqoreRadioGroupProps } from '../../components/RadioGroup';
|
|
3
|
+
declare const _default: Meta<IReqoreRadioGroupProps>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Basic: any;
|
|
6
|
+
export declare const Switch: any;
|
|
7
|
+
//# sourceMappingURL=RadioGroup.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RadioGroup.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/RadioGroup/RadioGroup.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAS,MAAM,4BAA4B,CAAC;AAEzD,OAAyB,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;;AAKvF,wBAWkC;AA4BlC,eAAO,MAAM,KAAK,KAAoB,CAAC;AACvC,eAAO,MAAM,MAAM,KAAoB,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
exports.__esModule = true;
|
|
17
|
+
exports.Switch = exports.Basic = void 0;
|
|
18
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
|
+
var react_1 = require("react");
|
|
20
|
+
var RadioGroup_1 = __importDefault(require("../../components/RadioGroup"));
|
|
21
|
+
var args_1 = require("../utils/args");
|
|
22
|
+
var createArg = (0, args_1.argManager)().createArg;
|
|
23
|
+
exports["default"] = {
|
|
24
|
+
title: 'Components/Radio Group',
|
|
25
|
+
argTypes: __assign(__assign({}, createArg('asSwitch', {
|
|
26
|
+
type: 'boolean',
|
|
27
|
+
defaultValue: false,
|
|
28
|
+
name: 'As Switch',
|
|
29
|
+
description: 'If the radio group should be rendered as a switch'
|
|
30
|
+
})), args_1.DisabledArg)
|
|
31
|
+
};
|
|
32
|
+
var Template = function (args) {
|
|
33
|
+
var _a = (0, react_1.useState)(null), selected = _a[0], setSelected = _a[1];
|
|
34
|
+
return ((0, jsx_runtime_1.jsx)(RadioGroup_1["default"], __assign({}, args, { items: [
|
|
35
|
+
{
|
|
36
|
+
label: 'Option 1',
|
|
37
|
+
value: 'opt1'
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
label: 'Option 2',
|
|
41
|
+
value: 'opt2'
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
label: 'Option 3',
|
|
45
|
+
value: 'opt3'
|
|
46
|
+
},
|
|
47
|
+
], onSelectClick: function (value) { return setSelected(value); }, selected: selected })));
|
|
48
|
+
};
|
|
49
|
+
exports.Basic = Template.bind({});
|
|
50
|
+
exports.Switch = Template.bind({});
|
|
51
|
+
exports.Switch.args = {
|
|
52
|
+
asSwitch: true
|
|
53
|
+
};
|
|
54
|
+
//# sourceMappingURL=RadioGroup.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RadioGroup.stories.js","sourceRoot":"","sources":["../../../../src/stories/RadioGroup/RadioGroup.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AACA,+BAAiC;AACjC,2EAAuF;AACvF,sCAAwD;AAEhD,IAAA,SAAS,GAAK,IAAA,iBAAU,GAA0B,UAAzC,CAA0C;AAE3D,qBAAe;IACb,KAAK,EAAE,wBAAwB;IAC/B,QAAQ,wBACH,SAAS,CAAC,UAAU,EAAE;QACvB,IAAI,EAAE,SAAS;QACf,YAAY,EAAE,KAAK;QACnB,IAAI,EAAE,WAAW;QACjB,WAAW,EAAE,mDAAmD;KACjE,CAAC,GACC,kBAAW,CACf;CAC8B,CAAC;AAElC,IAAM,QAAQ,GAAkC,UAAC,IAA4B;IACrE,IAAA,KAA0B,IAAA,gBAAQ,EAAC,IAAI,CAAC,EAAvC,QAAQ,QAAA,EAAE,WAAW,QAAkB,CAAC;IAE/C,OAAO,CACL,uBAAC,uBAAgB,eACX,IAAI,IACR,KAAK,EAAE;YACL;gBACE,KAAK,EAAE,UAAU;gBACjB,KAAK,EAAE,MAAM;aACd;YACD;gBACE,KAAK,EAAE,UAAU;gBACjB,KAAK,EAAE,MAAM;aACd;YACD;gBACE,KAAK,EAAE,UAAU;gBACjB,KAAK,EAAE,MAAM;aACd;SACF,EACD,aAAa,EAAE,UAAC,KAAK,IAAK,OAAA,WAAW,CAAC,KAAK,CAAC,EAAlB,CAAkB,EAC5C,QAAQ,EAAE,QAAQ,IAClB,CACH,CAAC;AACJ,CAAC,CAAC;AAEW,QAAA,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC1B,QAAA,MAAM,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACxC,cAAM,CAAC,IAAI,GAAG;IACZ,QAAQ,EAAE,IAAI;CACf,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react/types-6-0';
|
|
2
|
+
declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
|
|
3
|
+
export default _default;
|
|
4
|
+
export declare const Basic: any;
|
|
5
|
+
export declare const Floating: any;
|
|
6
|
+
//# sourceMappingURL=Sidebar.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sidebar.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Sidebar/Sidebar.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAS,MAAM,4BAA4B,CAAC;;AASzD,wBAsCU;AAwBV,eAAO,MAAM,KAAK,KAAoB,CAAC;AACvC,eAAO,MAAM,QAAQ,KAAoB,CAAC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
exports.__esModule = true;
|
|
14
|
+
exports.Floating = exports.Basic = void 0;
|
|
15
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
|
+
var lodash_1 = require("lodash");
|
|
17
|
+
var index_1 = require("../../index");
|
|
18
|
+
var menu_1 = require("../../mock/menu");
|
|
19
|
+
var args_1 = require("../utils/args");
|
|
20
|
+
var _a = (0, args_1.argManager)(), disableArg = _a.disableArg, createArg = _a.createArg;
|
|
21
|
+
exports["default"] = {
|
|
22
|
+
title: 'Components/Sidebar',
|
|
23
|
+
argTypes: __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, disableArg('items')), args_1.FlatArg), createArg('path', {
|
|
24
|
+
defaultValue: '/',
|
|
25
|
+
name: 'Path',
|
|
26
|
+
description: 'Mock location path',
|
|
27
|
+
type: 'string'
|
|
28
|
+
})), createArg('floating', {
|
|
29
|
+
control: 'boolean',
|
|
30
|
+
defaultValue: false,
|
|
31
|
+
name: 'Floating',
|
|
32
|
+
description: 'If the sidebar should be floating'
|
|
33
|
+
})), createArg('bordered', {
|
|
34
|
+
control: 'boolean',
|
|
35
|
+
defaultValue: false,
|
|
36
|
+
name: 'Bordered',
|
|
37
|
+
description: 'If the sidebar should be bordered'
|
|
38
|
+
})), createArg('isOpen', {
|
|
39
|
+
control: 'boolean',
|
|
40
|
+
defaultValue: false,
|
|
41
|
+
name: 'Is Open',
|
|
42
|
+
description: 'If the sidebar should be shown when floating'
|
|
43
|
+
})), createArg('position', {
|
|
44
|
+
control: 'select',
|
|
45
|
+
options: ['left', 'right'],
|
|
46
|
+
defaultValue: 'left',
|
|
47
|
+
name: 'Sidebar position',
|
|
48
|
+
description: 'Sidebar positions - this decides which border is drawn'
|
|
49
|
+
})), args_1.NoContentArg)
|
|
50
|
+
};
|
|
51
|
+
var Template = function (args) {
|
|
52
|
+
return ((0, jsx_runtime_1.jsx)(index_1.ReqoreSidebar, __assign({}, args, { items: menu_1.qorusSidebarItems, bookmarks: ['submenu-item-2', 'another-item-1'], onBookmarksChange: lodash_1.noop, customItems: [
|
|
53
|
+
{
|
|
54
|
+
element: function () { return ((0, jsx_runtime_1.jsx)("div", __assign({ style: { padding: '10px' } }, { children: (0, jsx_runtime_1.jsx)(index_1.ReqorePanel, __assign({ intent: 'info', flat: true, opacity: 0.5 }, { children: "Hello I am a custom element!" })) }))); }
|
|
55
|
+
},
|
|
56
|
+
] })));
|
|
57
|
+
};
|
|
58
|
+
exports.Basic = Template.bind({});
|
|
59
|
+
exports.Floating = Template.bind({});
|
|
60
|
+
exports.Floating.args = {
|
|
61
|
+
floating: true,
|
|
62
|
+
isOpen: true,
|
|
63
|
+
hasFloatingBackground: true
|
|
64
|
+
};
|
|
65
|
+
//# sourceMappingURL=Sidebar.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sidebar.stories.js","sourceRoot":"","sources":["../../../../src/stories/Sidebar/Sidebar.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,iCAA8B;AAE9B,qCAAyD;AACzD,wCAAoD;AACpD,sCAAkE;AAE5D,IAAA,KAA4B,IAAA,iBAAU,GAAsB,EAA1D,UAAU,gBAAA,EAAE,SAAS,eAAqC,CAAC;AAEnE,qBAAe;IACb,KAAK,EAAE,oBAAoB;IAC3B,QAAQ,8EACH,UAAU,CAAC,OAAO,CAAC,GACnB,cAAO,GACP,SAAS,CAAC,MAAM,EAAE;QACnB,YAAY,EAAE,GAAG;QACjB,IAAI,EAAE,MAAM;QACZ,WAAW,EAAE,oBAAoB;QACjC,IAAI,EAAE,QAAQ;KACf,CAAC,GACC,SAAS,CAAC,UAAU,EAAE;QACvB,OAAO,EAAE,SAAS;QAClB,YAAY,EAAE,KAAK;QACnB,IAAI,EAAE,UAAU;QAChB,WAAW,EAAE,mCAAmC;KACjD,CAAC,GACC,SAAS,CAAC,UAAU,EAAE;QACvB,OAAO,EAAE,SAAS;QAClB,YAAY,EAAE,KAAK;QACnB,IAAI,EAAE,UAAU;QAChB,WAAW,EAAE,mCAAmC;KACjD,CAAC,GACC,SAAS,CAAC,QAAQ,EAAE;QACrB,OAAO,EAAE,SAAS;QAClB,YAAY,EAAE,KAAK;QACnB,IAAI,EAAE,SAAS;QACf,WAAW,EAAE,8CAA8C;KAC5D,CAAC,GACC,SAAS,CAAC,UAAU,EAAE;QACvB,OAAO,EAAE,QAAQ;QACjB,OAAO,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC;QAC1B,YAAY,EAAE,MAAM;QACpB,IAAI,EAAE,kBAAkB;QACxB,WAAW,EAAE,wDAAwD;KACtE,CAAC,GACC,mBAAY,CAChB;CACM,CAAC;AAEV,IAAM,QAAQ,GAA8B,UAAC,IAAwB;IACnE,OAAO,CACL,uBAAC,qBAAa,eACR,IAAI,IACR,KAAK,EAAE,wBAAiB,EACxB,SAAS,EAAE,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,EAC/C,iBAAiB,EAAE,aAAI,EACvB,WAAW,EAAE;YACX;gBACE,OAAO,EAAE,cAAM,OAAA,CACb,yCAAK,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,gBAC7B,uBAAC,mBAAW,aAAC,MAAM,EAAC,MAAM,EAAC,IAAI,QAAC,OAAO,EAAE,GAAG,kDAE9B,IACV,CACP,EANc,CAMd;aACF;SACF,IACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEW,QAAA,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC1B,QAAA,QAAQ,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC1C,gBAAQ,CAAC,IAAI,GAAG;IACd,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,qBAAqB,EAAE,IAAI;CAC5B,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react/types-6-0';
|
|
2
|
+
import { IReqoreTableProps } from '../../components/Table';
|
|
3
|
+
declare const _default: Meta<IReqoreTableProps>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Basic: any;
|
|
6
|
+
export declare const Flat: any;
|
|
7
|
+
export declare const Striped: any;
|
|
8
|
+
export declare const Rounded: any;
|
|
9
|
+
export declare const Selectable: any;
|
|
10
|
+
//# sourceMappingURL=Table.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Table.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Table/Table.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAS,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAsB,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;;AAO/E,wBAwH6B;AAM7B,eAAO,MAAM,KAAK,KAAoB,CAAC;AACvC,eAAO,MAAM,IAAI,KAAoB,CAAC;AAItC,eAAO,MAAM,OAAO,KAAoB,CAAC;AAIzC,eAAO,MAAM,OAAO,KAAoB,CAAC;AAIzC,eAAO,MAAM,UAAU,KAAoB,CAAC"}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
exports.__esModule = true;
|
|
17
|
+
exports.Selectable = exports.Rounded = exports.Striped = exports.Flat = exports.Basic = void 0;
|
|
18
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
|
+
var index_1 = require("../../index");
|
|
20
|
+
var tableData_1 = __importDefault(require("../../mock/tableData"));
|
|
21
|
+
var args_1 = require("../utils/args");
|
|
22
|
+
var createArg = (0, args_1.argManager)().createArg;
|
|
23
|
+
exports["default"] = {
|
|
24
|
+
title: 'Components/Table',
|
|
25
|
+
argTypes: __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, createArg('rounded', {
|
|
26
|
+
type: 'boolean',
|
|
27
|
+
name: 'Rounded',
|
|
28
|
+
description: 'If the table should have rounded corners'
|
|
29
|
+
})), createArg('striped', {
|
|
30
|
+
type: 'boolean',
|
|
31
|
+
name: 'Striped',
|
|
32
|
+
description: 'If the table should have striped rows'
|
|
33
|
+
})), createArg('selectable', {
|
|
34
|
+
type: 'boolean',
|
|
35
|
+
name: 'Selectable',
|
|
36
|
+
description: 'If the table should be selectable'
|
|
37
|
+
})), createArg('columns', {
|
|
38
|
+
name: 'Columns',
|
|
39
|
+
defaultValue: [
|
|
40
|
+
{
|
|
41
|
+
dataId: 'id',
|
|
42
|
+
header: 'ID',
|
|
43
|
+
width: 50,
|
|
44
|
+
align: 'center',
|
|
45
|
+
sortable: true,
|
|
46
|
+
tooltip: 'Custom ID tooltip nice',
|
|
47
|
+
content: 'tag'
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
header: 'Name',
|
|
51
|
+
dataId: 'name',
|
|
52
|
+
grow: 3,
|
|
53
|
+
columns: [
|
|
54
|
+
{
|
|
55
|
+
icon: 'SlideshowLine',
|
|
56
|
+
dataId: 'firstName',
|
|
57
|
+
header: 'First Name',
|
|
58
|
+
width: 150,
|
|
59
|
+
grow: 2
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
icon: 'SlideshowLine',
|
|
63
|
+
dataId: 'lastName',
|
|
64
|
+
header: 'Last Name',
|
|
65
|
+
width: 150,
|
|
66
|
+
grow: 1,
|
|
67
|
+
sortable: true,
|
|
68
|
+
onCellClick: function (_a) {
|
|
69
|
+
var lastName = _a.lastName;
|
|
70
|
+
return alert("Clicked last name cell ".concat(lastName));
|
|
71
|
+
},
|
|
72
|
+
content: 'title:info'
|
|
73
|
+
},
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
dataId: 'address',
|
|
78
|
+
header: 'Address',
|
|
79
|
+
width: 300,
|
|
80
|
+
grow: 2,
|
|
81
|
+
onClick: function () { return alert('clicked address'); }
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
icon: 'User4Line',
|
|
85
|
+
dataId: 'age',
|
|
86
|
+
header: 'Really long age header',
|
|
87
|
+
width: 50,
|
|
88
|
+
align: 'center',
|
|
89
|
+
sortable: true,
|
|
90
|
+
intent: 'danger',
|
|
91
|
+
content: 'tag:#000000',
|
|
92
|
+
onCellClick: function (_a) {
|
|
93
|
+
var age = _a.age;
|
|
94
|
+
return alert("Clicked age cell ".concat(age));
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
header: 'Data',
|
|
99
|
+
dataId: 'data',
|
|
100
|
+
columns: [
|
|
101
|
+
{ dataId: 'occupation', header: 'Ocuppation', width: 200, content: 'text:warning' },
|
|
102
|
+
{ dataId: 'group', header: 'Group', width: 150, intent: 'muted' },
|
|
103
|
+
]
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
dataId: 'date',
|
|
107
|
+
header: 'Date',
|
|
108
|
+
sortable: true,
|
|
109
|
+
content: 'time-ago'
|
|
110
|
+
},
|
|
111
|
+
]
|
|
112
|
+
})), createArg('width', {
|
|
113
|
+
type: 'number',
|
|
114
|
+
defaultValue: 800,
|
|
115
|
+
name: 'Width',
|
|
116
|
+
description: 'The width of the table'
|
|
117
|
+
})), createArg('height', {
|
|
118
|
+
type: 'number',
|
|
119
|
+
defaultValue: 600,
|
|
120
|
+
name: 'Height',
|
|
121
|
+
description: 'The height of the table'
|
|
122
|
+
})), createArg('data', {
|
|
123
|
+
type: 'array',
|
|
124
|
+
defaultValue: tableData_1["default"].data,
|
|
125
|
+
name: 'Data',
|
|
126
|
+
description: 'The data to be displayed in the table',
|
|
127
|
+
table: {
|
|
128
|
+
disable: true
|
|
129
|
+
}
|
|
130
|
+
})), createArg('selectToggleTooltip', {
|
|
131
|
+
type: 'string',
|
|
132
|
+
defaultValue: 'Select This Row',
|
|
133
|
+
name: 'Select Toggle Tooltip',
|
|
134
|
+
description: 'The tooltip of the select toggle'
|
|
135
|
+
})), args_1.SizeArg), args_1.FlatArg), args_1.IntentArg), (0, args_1.CustomIntentArg)('selectedRowIntent'))
|
|
136
|
+
};
|
|
137
|
+
var Template = function (args) {
|
|
138
|
+
return (0, jsx_runtime_1.jsx)(index_1.ReqoreTable, __assign({}, args, { sort: { by: 'age', direction: 'desc' } }));
|
|
139
|
+
};
|
|
140
|
+
exports.Basic = Template.bind({});
|
|
141
|
+
exports.Flat = Template.bind({});
|
|
142
|
+
exports.Flat.args = {
|
|
143
|
+
flat: true
|
|
144
|
+
};
|
|
145
|
+
exports.Striped = Template.bind({});
|
|
146
|
+
exports.Striped.args = {
|
|
147
|
+
striped: true
|
|
148
|
+
};
|
|
149
|
+
exports.Rounded = Template.bind({});
|
|
150
|
+
exports.Rounded.args = {
|
|
151
|
+
rounded: true
|
|
152
|
+
};
|
|
153
|
+
exports.Selectable = Template.bind({});
|
|
154
|
+
exports.Selectable.args = {
|
|
155
|
+
selectable: true
|
|
156
|
+
};
|
|
157
|
+
//# sourceMappingURL=Table.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Table.stories.js","sourceRoot":"","sources":["../../../../src/stories/Table/Table.stories.tsx"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react/types-6-0';
|
|
2
|
+
import { IReqoreTabsProps } from '../../components/Tabs';
|
|
3
|
+
declare const _default: Meta<IReqoreTabsProps>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Basic: any;
|
|
6
|
+
export declare const Fill: any;
|
|
7
|
+
export declare const Vertical: any;
|
|
8
|
+
export declare const VerticalWithWrapping: any;
|
|
9
|
+
export declare const VerticalFill: any;
|
|
10
|
+
export declare const VerticalCustomWidth: any;
|
|
11
|
+
export declare const Flat: any;
|
|
12
|
+
//# sourceMappingURL=Tabs.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tabs.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Tabs/Tabs.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAS,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;;AAwEzD,wBAmB4B;AA2F5B,eAAO,MAAM,KAAK,KAAoB,CAAC;AACvC,eAAO,MAAM,IAAI,KAAoB,CAAC;AAKtC,eAAO,MAAM,QAAQ,KAAoB,CAAC;AAM1C,eAAO,MAAM,oBAAoB,KAAoB,CAAC;AAUtD,eAAO,MAAM,YAAY,KAAoB,CAAC;AAU9C,eAAO,MAAM,mBAAmB,KAAoB,CAAC;AAWrD,eAAO,MAAM,IAAI,KAAoB,CAAC"}
|