@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,127 @@
|
|
|
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.Flat = exports.VerticalCustomWidth = exports.VerticalFill = exports.VerticalWithWrapping = exports.Vertical = exports.Fill = exports.Basic = void 0;
|
|
15
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
|
+
var index_1 = require("../../index");
|
|
17
|
+
var args_1 = require("../utils/args");
|
|
18
|
+
var tabs = [
|
|
19
|
+
{
|
|
20
|
+
label: 'Tab 1',
|
|
21
|
+
id: 'tab1',
|
|
22
|
+
icon: 'Home3Line',
|
|
23
|
+
tooltip: 'Hooooooome!'
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
label: 'Tab 2',
|
|
27
|
+
id: 'tab2',
|
|
28
|
+
icon: 'Settings6Line',
|
|
29
|
+
as: 'a',
|
|
30
|
+
props: {
|
|
31
|
+
href: 'https://google.com'
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
label: 'Really long tab name with tooltip',
|
|
36
|
+
id: 3,
|
|
37
|
+
icon: 'FileSettingsLine',
|
|
38
|
+
tooltip: 'Click to go to page 3!'
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
id: 'tab4',
|
|
42
|
+
icon: 'LightbulbLine',
|
|
43
|
+
intent: 'success',
|
|
44
|
+
onCloseClick: function (id) {
|
|
45
|
+
alert("".concat(id, " close click"));
|
|
46
|
+
},
|
|
47
|
+
closeIcon: 'DeleteBinFill'
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
label: 'Tab 5',
|
|
51
|
+
id: 'tab5',
|
|
52
|
+
icon: 'Polaroid2Line',
|
|
53
|
+
disabled: true,
|
|
54
|
+
onCloseClick: function (id) {
|
|
55
|
+
alert("".concat(id, " close click"));
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
label: 'Lorem Ipsum',
|
|
60
|
+
id: 'tab6',
|
|
61
|
+
icon: 'DragMoveLine',
|
|
62
|
+
intent: 'danger'
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
label: 'Hey I am another long tab',
|
|
66
|
+
id: 'tab7',
|
|
67
|
+
icon: 'LeafFill',
|
|
68
|
+
onCloseClick: function (id) {
|
|
69
|
+
alert("".concat(id, " close click"));
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
label: 'Tab 8',
|
|
74
|
+
id: 'tab8',
|
|
75
|
+
icon: 'MapPin3Line'
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
label: 'Tab 9',
|
|
79
|
+
id: 'tab9',
|
|
80
|
+
icon: 'EjectLine'
|
|
81
|
+
},
|
|
82
|
+
];
|
|
83
|
+
var createArg = (0, args_1.argManager)().createArg;
|
|
84
|
+
exports["default"] = {
|
|
85
|
+
title: 'Components/Tabs',
|
|
86
|
+
argTypes: __assign(__assign(__assign(__assign(__assign({}, args_1.FlatArg), args_1.SizeArg), args_1.IntentArg), createArg('fill', {
|
|
87
|
+
type: 'boolean',
|
|
88
|
+
defaultValue: false,
|
|
89
|
+
name: 'Fill',
|
|
90
|
+
description: 'If the tabs should fill the container'
|
|
91
|
+
})), createArg('vertical', {
|
|
92
|
+
type: 'boolean',
|
|
93
|
+
defaultValue: false,
|
|
94
|
+
name: 'Vertical',
|
|
95
|
+
description: 'If the tabs should be vertical'
|
|
96
|
+
}))
|
|
97
|
+
};
|
|
98
|
+
var Template = function (args) {
|
|
99
|
+
return ((0, jsx_runtime_1.jsxs)(index_1.ReqoreTabs, __assign({}, args, { tabs: tabs }, { children: [(0, jsx_runtime_1.jsx)(index_1.ReqoreTabsContent, __assign({ tabId: 'tab1' }, { children: (0, jsx_runtime_1.jsx)("h3", { children: "Tab 1" }) })), (0, jsx_runtime_1.jsx)(index_1.ReqoreTabsContent, __assign({ tabId: 'tab2' }, { children: (0, jsx_runtime_1.jsx)("h3", { children: "Tab 2" }) })), (0, jsx_runtime_1.jsx)(index_1.ReqoreTabsContent, __assign({ tabId: 3 }, { children: (0, jsx_runtime_1.jsx)("h3", { children: "Tab 3" }) })), (0, jsx_runtime_1.jsx)(index_1.ReqoreTabsContent, __assign({ tabId: 'tab4' }, { children: (0, jsx_runtime_1.jsx)("h3", { children: "Tab 4" }) })), (0, jsx_runtime_1.jsx)(index_1.ReqoreTabsContent, __assign({ tabId: 'tab5' }, { children: (0, jsx_runtime_1.jsx)("h3", { children: "Tab 5" }) })), (0, jsx_runtime_1.jsx)(index_1.ReqoreTabsContent, __assign({ tabId: 'tab6' }, { children: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur vitae nisi ligula. Proin laoreet vitae risus sed pretium. Sed eu elit non tortor congue molestie vel ut elit. Duis id turpis tincidunt libero accumsan cursus. Quisque urna nibh, tempor ac lorem sed, dapibus ornare arcu. Vestibulum at nunc tempus, ultricies justo eget, luctus turpis. Curabitur et sapien in est rhoncus suscipit vitae id purus. Cras malesuada, metus vitae vulputate ornare, ligula ipsum fringilla ligula, a cursus tortor ligula semper sem. Praesent fringilla dui volutpat elementum ultrices. Nam rutrum, augue finibus tempus auctor, eros metus iaculis neque, at vehicula ante quam et metus. Etiam quis commodo nunc. Aenean rhoncus, mi ac tincidunt efficitur, nisl nunc tempor ipsum, accumsan eleifend felis nisl vitae diam. Nunc vitae dapibus nisi. Donec cursus vitae justo ut interdum. Suspendisse mattis, erat vel molestie faucibus, tortor neque mollis erat, vulputate aliquet tortor nulla eu diam. Ut eget fringilla sapien. Vivamus ut leo in tellus ultrices lacinia non vel lorem. Sed imperdiet sapien ut odio sagittis gravida nec vel lacus. Morbi euismod libero sed tristique condimentum. Nullam id erat justo. Ut in justo turpis. Nam eleifend tincidunt lacinia. Duis non lacinia purus. Mauris accumsan nunc nulla, at consectetur odio pharetra eu. Phasellus non massa maximus, placerat velit eget, porta ante. Sed porttitor arcu orci, vitae vestibulum odio blandit et. Fusce fringilla ipsum eu ante venenatis dapibus. Morbi ornare ultricies risus ut ullamcorper. Curabitur feugiat enim libero, non commodo nibh facilisis nec. Integer suscipit quis ligula a porta. Mauris eget odio tincidunt, fermentum tellus non, tincidunt tellus. Aliquam erat volutpat. Ut metus libero, facilisis quis est nec, auctor finibus justo. Quisque scelerisque placerat mi ac ullamcorper. Aenean vestibulum lorem id elit blandit, id viverra tortor fringilla. Vivamus consectetur sodales mauris, in semper tellus dapibus vitae. Donec eget sapien in eros accumsan vestibulum. Praesent nec purus libero. Aliquam maximus sem ac quam gravida, eu fermentum quam varius. In quam augue, rutrum maximus posuere non, molestie ut arcu. Sed pretium rhoncus ullamcorper. Praesent quis purus ac dolor tincidunt porttitor eget vitae felis. Sed posuere tellus eu ex dignissim porta. Nullam in molestie nisl. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Proin et varius justo, in faucibus diam. Aenean arcu ex, gravida vitae nunc nec, tincidunt venenatis sapien. Duis congue pulvinar ipsum. Integer maximus felis mattis ipsum vestibulum lacinia. Maecenas tortor risus, malesuada a est at, lobortis tempus tellus. Quisque commodo velit id nisi viverra, non dignissim turpis tristique. Suspendisse felis est, fringilla non pellentesque sit amet, varius quis sem. In non velit massa. Aenean at porttitor est. Sed viverra eleifend cursus. Ut nec justo porttitor, sollicitudin nisl ac, malesuada leo. Morbi consequat ornare suscipit. Maecenas eleifend quam sagittis tortor volutpat porttitor. Vivamus dictum ex id finibus tristique. Nulla rutrum, ante sagittis molestie aliquet, lectus quam condimentum nisl, a convallis mauris massa sed risus. Curabitur ac suscipit dolor, nec dapibus justo. Pellentesque nec sollicitudin sapien. Ut metus neque, volutpat eu est eu, iaculis suscipit augue. Fusce blandit magna tincidunt turpis semper venenatis. Nullam sit amet accumsan massa. Donec interdum ut dui nec varius. Pellentesque ut tellus sit amet tellus mollis consectetur. Aenean aliquam leo elit. Nullam convallis felis et rhoncus fermentum. Nunc rutrum nulla sed nisl efficitur laoreet. Suspendisse potenti. Sed vitae consequat tellus. Vestibulum in eros at turpis pretium rutrum. Phasellus commodo commodo libero, eu volutpat nunc tempus nec. Donec tempus dignissim lectus, quis molestie quam dignissim a. Cras eget mauris id libero suscipit consequat. Nulla facilisi. Donec arcu arcu, venenatis quis mattis quis, pretium nec justo. Praesent aliquet tortor in nulla pellentesque, condimentum congue sapien laoreet. Nullam semper consectetur feugiat. Nunc a orci non leo malesuada aliquam eu eget tellus. Suspendisse potenti. Nam ornare ornare ullamcorper. Sed semper porttitor sem, eu vehicula purus egestas sit amet. Cras sit amet aliquet augue. Cras velit leo, pellentesque quis eros eu, feugiat gravida quam. Mauris in turpis nunc. Suspendisse varius urna quam, sit amet tempus sem tristique ut. Quisque at velit nec nibh varius tempor venenatis vel felis. Morbi velit sapien, facilisis ut odio quis, laoreet euismod magna. Quisque efficitur euismod diam, in ullamcorper sapien tristique vitae. Nullam ac volutpat quam. Morbi vulputate arcu nisl, et tempus dui tincidunt vel. Morbi finibus pretium pretium. Aliquam fermentum turpis sit amet est faucibus elementum ac quis sem. Maecenas scelerisque commodo magna eget blandit. Praesent vitae bibendum mauris, eu blandit dui." })), (0, jsx_runtime_1.jsx)(index_1.ReqoreTabsContent, __assign({ tabId: 'tab7' }, { children: (0, jsx_runtime_1.jsx)("h3", { children: "Tab 7" }) })), (0, jsx_runtime_1.jsx)(index_1.ReqoreTabsContent, __assign({ tabId: 'tab8' }, { children: (0, jsx_runtime_1.jsx)("h3", { children: "Tab 8" }) })), (0, jsx_runtime_1.jsx)(index_1.ReqoreTabsContent, __assign({ tabId: 'tab9' }, { children: (0, jsx_runtime_1.jsx)("h3", { children: "Tab 9" }) }))] })));
|
|
100
|
+
};
|
|
101
|
+
exports.Basic = Template.bind({});
|
|
102
|
+
exports.Fill = Template.bind({});
|
|
103
|
+
exports.Fill.args = {
|
|
104
|
+
fill: true
|
|
105
|
+
};
|
|
106
|
+
exports.Vertical = Template.bind({});
|
|
107
|
+
exports.Vertical.args = {
|
|
108
|
+
vertical: true,
|
|
109
|
+
fillParent: true
|
|
110
|
+
};
|
|
111
|
+
exports.VerticalWithWrapping = Template.bind({});
|
|
112
|
+
exports.VerticalWithWrapping.args = {
|
|
113
|
+
tabs: __assign(__assign({}, tabs), { vertical: true, fillParent: true, wrapTabNames: true })
|
|
114
|
+
};
|
|
115
|
+
exports.VerticalFill = Template.bind({});
|
|
116
|
+
exports.VerticalFill.args = {
|
|
117
|
+
tabs: __assign(__assign({}, tabs), { vertical: true, fill: true, fillParent: true })
|
|
118
|
+
};
|
|
119
|
+
exports.VerticalCustomWidth = Template.bind({});
|
|
120
|
+
exports.VerticalCustomWidth.args = {
|
|
121
|
+
tabs: __assign(__assign({}, tabs), { vertical: true, fill: true, fillParent: true, width: '300px' })
|
|
122
|
+
};
|
|
123
|
+
exports.Flat = Template.bind({});
|
|
124
|
+
exports.Flat.args = {
|
|
125
|
+
tabs: __assign(__assign({}, tabs), { flat: true })
|
|
126
|
+
};
|
|
127
|
+
//# sourceMappingURL=Tabs.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tabs.stories.js","sourceRoot":"","sources":["../../../../src/stories/Tabs/Tabs.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEA,qCAA4D;AAC5D,sCAAwE;AAExE,IAAM,IAAI,GAAG;IACX;QACE,KAAK,EAAE,OAAO;QACd,EAAE,EAAE,MAAM;QACV,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE,aAAa;KACvB;IACD;QACE,KAAK,EAAE,OAAO;QACd,EAAE,EAAE,MAAM;QACV,IAAI,EAAE,eAAe;QACrB,EAAE,EAAE,GAAG;QACP,KAAK,EAAE;YACL,IAAI,EAAE,oBAAoB;SAC3B;KACF;IACD;QACE,KAAK,EAAE,mCAAmC;QAC1C,EAAE,EAAE,CAAC;QACL,IAAI,EAAE,kBAAkB;QACxB,OAAO,EAAE,wBAAwB;KAClC;IACD;QACE,EAAE,EAAE,MAAM;QACV,IAAI,E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AAQ,EAAE,IAAI,EACd,UAAU,EAAE,IAAI,EAChB,YAAY,EAAE,IAAI,GACnB;CACF,CAAC;AAEW,QAAA,YAAY,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC9C,oBAAY,CAAC,IAAI,GAAG;IAClB,IAAI,wBACC,IAAI,KACP,QAAQ,EAAE,IAAI,EACd,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,IAAI,GACjB;CACF,CAAC;AAEW,QAAA,mBAAmB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACrD,2BAAmB,CAAC,IAAI,GAAG;IACzB,IAAI,wBACC,IAAI,KACP,QAAQ,EAAE,IAAI,EACd,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,IAAI,EAChB,KAAK,EAAE,OAAO,GACf;CACF,CAAC;AAEW,QAAA,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACtC,YAAI,CAAC,IAAI,GAAG;IACV,IAAI,wBACC,IAAI,KACP,IAAI,EAAE,IAAI,GACX;CACF,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react/types-6-0';
|
|
2
|
+
import { IReqoreTagProps } from '../../components/Tag';
|
|
3
|
+
import { IReqoreTagGroup } from '../../components/Tag/group';
|
|
4
|
+
declare const _default: Meta<IReqoreTagGroup & IReqoreTagProps>;
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const Basic: any;
|
|
7
|
+
export declare const Badge: any;
|
|
8
|
+
//# sourceMappingURL=Tag.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tag.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Tag/Tag.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAS,MAAM,4BAA4B,CAAC;AAEzD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;;AAM7D,wBA8C6C;AAc7C,eAAO,MAAM,KAAK,KAAoB,CAAC;AACvC,eAAO,MAAM,KAAK,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
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
+
var t = {};
|
|
15
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
+
t[p] = s[p];
|
|
17
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
+
t[p[i]] = s[p[i]];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
23
|
+
};
|
|
24
|
+
exports.__esModule = true;
|
|
25
|
+
exports.Badge = exports.Basic = void 0;
|
|
26
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
27
|
+
var lodash_1 = require("lodash");
|
|
28
|
+
var index_1 = require("../../index");
|
|
29
|
+
var args_1 = require("../utils/args");
|
|
30
|
+
var createArg = (0, args_1.argManager)().createArg;
|
|
31
|
+
exports["default"] = {
|
|
32
|
+
title: 'Components/Tag',
|
|
33
|
+
argTypes: __assign(__assign(__assign(__assign(__assign({}, args_1.SizeArg), createArg('columns', {
|
|
34
|
+
name: 'Columns',
|
|
35
|
+
description: 'Number of columns',
|
|
36
|
+
control: 'number'
|
|
37
|
+
})), createArg('onClick', {
|
|
38
|
+
defaultValue: lodash_1.noop,
|
|
39
|
+
table: {
|
|
40
|
+
disable: true
|
|
41
|
+
}
|
|
42
|
+
})), createArg('onRemoveClick', {
|
|
43
|
+
defaultValue: lodash_1.noop,
|
|
44
|
+
table: {
|
|
45
|
+
disable: true
|
|
46
|
+
}
|
|
47
|
+
})), createArg('actions', {
|
|
48
|
+
defaultValue: [
|
|
49
|
+
{
|
|
50
|
+
icon: '24HoursFill',
|
|
51
|
+
onClick: lodash_1.noop,
|
|
52
|
+
disabled: true,
|
|
53
|
+
intent: 'info',
|
|
54
|
+
tooltip: { content: 'I am a tooltip' }
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
icon: 'PsychotherapyFill',
|
|
58
|
+
onClick: lodash_1.noop
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
icon: 'SpyFill',
|
|
62
|
+
onClick: lodash_1.noop,
|
|
63
|
+
intent: 'success',
|
|
64
|
+
tooltip: { content: 'Hm, another tooltip', openOnMount: true }
|
|
65
|
+
},
|
|
66
|
+
],
|
|
67
|
+
table: {
|
|
68
|
+
disable: true
|
|
69
|
+
}
|
|
70
|
+
}))
|
|
71
|
+
};
|
|
72
|
+
var Template = function (_a) {
|
|
73
|
+
var columns = _a.columns, args = __rest(_a, ["columns"]);
|
|
74
|
+
return ((0, jsx_runtime_1.jsxs)(index_1.ReqoreTagGroup, __assign({ columns: columns, size: args.size }, { children: [(0, jsx_runtime_1.jsx)(index_1.ReqoreTag, __assign({ label: 'Basic Tag', icon: 'AlarmWarningLine' }, args)), (0, jsx_runtime_1.jsx)(index_1.ReqoreTag, __assign({ label: 'Disabled Tag', disabled: true, icon: 'AlarmWarningLine' }, args)), (0, jsx_runtime_1.jsx)(index_1.ReqoreTag, __assign({ label: '300px Tag', width: '300px', icon: 'AlarmWarningLine' }, args)), (0, jsx_runtime_1.jsx)(index_1.ReqoreTag, __assign({ label: 'Danger Tag', icon: 'AlarmWarningLine', intent: 'danger' }, args)), (0, jsx_runtime_1.jsx)(index_1.ReqoreTag, __assign({ label: 'Custom Color Tag', icon: 'AlarmWarningLine', color: '#38fdb2' }, args))] })));
|
|
75
|
+
};
|
|
76
|
+
exports.Basic = Template.bind({});
|
|
77
|
+
exports.Badge = Template.bind({});
|
|
78
|
+
exports.Badge.args = { badge: true };
|
|
79
|
+
//# sourceMappingURL=Tag.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tag.stories.js","sourceRoot":"","sources":["../../../../src/stories/Tag/Tag.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,iCAA8B;AAG9B,qCAAwD;AACxD,sCAAoD;AAE5C,IAAA,SAAS,GAAK,IAAA,iBAAU,GAAqC,UAApD,CAAqD;AAEtE,qBAAe;IACb,KAAK,EAAE,gBAAgB;IACvB,QAAQ,mDACH,cAAO,GACP,SAAS,CAAC,SAAS,EAAE;QACtB,IAAI,EAAE,SAAS;QACf,WAAW,EAAE,mBAAmB;QAChC,OAAO,EAAE,QAAQ;KAClB,CAAC,GACC,SAAS,CAAC,SAAS,EAAE;QACtB,YAAY,EAAE,aAAI;QAClB,KAAK,EAAE;YACL,OAAO,EAAE,IAAI;SACd;KACF,CAAC,GACC,SAAS,CAAC,eAAe,EAAE;QAC5B,YAAY,EAAE,aAAI;QAClB,KAAK,EAAE;YACL,OAAO,EAAE,IAAI;SACd;KACF,CAAC,GACC,SAAS,CAAC,SAAS,EAAE;QACtB,YAAY,EAAE;YACZ;gBACE,IAAI,EAAE,aAAa;gBACnB,OAAO,EAAE,aAAI;gBACb,QAAQ,EAAE,IAAI;gBACd,MAAM,EAAE,MAAM;gBACd,OAAO,EAAE,EAAE,OAAO,EAAE,gBAAgB,EAAE;aACvC;YACD;gBACE,IAAI,EAAE,mBAAmB;gBACzB,OAAO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@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react/types-6-0';
|
|
2
|
+
import { IReqoreTextareaProps } from '../../components/Textarea';
|
|
3
|
+
declare const _default: Meta<IReqoreTextareaProps>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Basic: any;
|
|
6
|
+
export declare const Minimal: any;
|
|
7
|
+
export declare const Disabled: any;
|
|
8
|
+
//# sourceMappingURL=TextArea.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextArea.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/TextArea/TextArea.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAS,MAAM,4BAA4B,CAAC;AAEzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;;AAMjE,wBAyBgC;AAgChC,eAAO,MAAM,KAAK,KAAoB,CAAC;AACvC,eAAO,MAAM,OAAO,KAAoB,CAAC;AAIzC,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.Disabled = exports.Minimal = exports.Basic = void 0;
|
|
15
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
|
+
var react_1 = require("react");
|
|
17
|
+
var index_1 = require("../../index");
|
|
18
|
+
var args_1 = require("../utils/args");
|
|
19
|
+
var createArg = (0, args_1.argManager)().createArg;
|
|
20
|
+
exports["default"] = {
|
|
21
|
+
title: 'Components/TextArea',
|
|
22
|
+
argTypes: __assign(__assign(__assign(__assign(__assign(__assign({}, (0, args_1.MinimalArg)()), args_1.DisabledArg), args_1.SizeArg), createArg('scaleWithContent', {
|
|
23
|
+
name: 'Scale with content',
|
|
24
|
+
description: 'Scale with content',
|
|
25
|
+
control: 'boolean',
|
|
26
|
+
defaultValue: true
|
|
27
|
+
})), createArg('fluid', {
|
|
28
|
+
name: 'Fluid',
|
|
29
|
+
description: 'Fluid',
|
|
30
|
+
control: 'boolean',
|
|
31
|
+
defaultValue: false
|
|
32
|
+
})), createArg('placeholder', {
|
|
33
|
+
name: 'Placeholder',
|
|
34
|
+
description: 'Placeholder',
|
|
35
|
+
control: 'text',
|
|
36
|
+
defaultValue: 'Placeholder'
|
|
37
|
+
}))
|
|
38
|
+
};
|
|
39
|
+
var str = '✔ Checking your system\n' +
|
|
40
|
+
'✔ Locating Application\n' +
|
|
41
|
+
'✔ Preparing native dependencies\n' +
|
|
42
|
+
'✔ Compiling Main Process Code\n' +
|
|
43
|
+
'✔ Launch Dev Servers\n' +
|
|
44
|
+
'✔ Compiling Preload Scripts\n' +
|
|
45
|
+
'✔ Launching Application\n';
|
|
46
|
+
var Template = function (args) {
|
|
47
|
+
var _a = (0, react_1.useState)(str), value = _a[0], setValue = _a[1];
|
|
48
|
+
var handleValueChange = function (e) {
|
|
49
|
+
setValue(e.target.value);
|
|
50
|
+
};
|
|
51
|
+
var handleValueClear = function () {
|
|
52
|
+
setValue('');
|
|
53
|
+
};
|
|
54
|
+
return ((0, jsx_runtime_1.jsx)(index_1.ReqoreTextarea, __assign({}, args, { onChange: handleValueChange, onClearClick: handleValueClear, value: value })));
|
|
55
|
+
};
|
|
56
|
+
exports.Basic = Template.bind({});
|
|
57
|
+
exports.Minimal = Template.bind({});
|
|
58
|
+
exports.Minimal.args = {
|
|
59
|
+
minimal: true
|
|
60
|
+
};
|
|
61
|
+
exports.Disabled = Template.bind({});
|
|
62
|
+
exports.Disabled.args = {
|
|
63
|
+
disabled: true
|
|
64
|
+
};
|
|
65
|
+
//# sourceMappingURL=TextArea.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextArea.stories.js","sourceRoot":"","sources":["../../../../src/stories/TextArea/TextArea.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,+BAAiC;AAEjC,qCAA6C;AAC7C,sCAA6E;AAErE,IAAA,SAAS,GAAK,IAAA,iBAAU,GAAwB,UAAvC,CAAwC;AAEzD,qBAAe;IACb,KAAK,EAAE,qBAAqB;IAC5B,QAAQ,4DACH,IAAA,iBAAU,GAAE,GACZ,kBAAW,GACX,cAAO,GACP,SAAS,CAAC,kBAAkB,EAAE;QAC/B,IAAI,EAAE,oBAAoB;QAC1B,WAAW,EAAE,oBAAoB;QACjC,OAAO,EAAE,SAAS;QAClB,YAAY,EAAE,IAAI;KACnB,CAAC,GACC,SAAS,CAAC,OAAO,EAAE;QACpB,IAAI,EAAE,OAAO;QACb,WAAW,EAAE,OAAO;QACpB,OAAO,EAAE,SAAS;QAClB,YAAY,EAAE,KAAK;KACpB,CAAC,GACC,SAAS,CAAC,aAAa,EAAE;QAC1B,IAAI,EAAE,aAAa;QACnB,WAAW,EAAE,aAAa;QAC1B,OAAO,EAAE,MAAM;QACf,YAAY,EAAE,aAAa;KAC5B,CAAC,CACH;CAC4B,CAAC;AAEhC,IAAM,GAAG,GACP,0BAA0B;IAC1B,0BAA0B;IAC1B,mCAAmC;IACnC,iCAAiC;IACjC,wBAAwB;IACxB,+BAA+B;IAC/B,2BAA2B,CAAC;AAE9B,IAAM,QAAQ,GAAgC,UAAC,IAAI;IAC3C,IAAA,KAAoB,IAAA,gBAAQ,EAAC,GAAG,CAAC,EAAhC,KAAK,QAAA,EAAE,QAAQ,QAAiB,CAAC;IAExC,IAAM,iBAAiB,GAAG,UAAC,CAAC;QAC1B,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAC3B,CAAC,CAAC;IAEF,IAAM,gBAAgB,GAAG;QACvB,QAAQ,CAAC,EAAE,CAAC,CAAC;IACf,CAAC,CAAC;IAEF,OAAO,CACL,uBAAC,sBAAc,eACT,IAAI,IACR,QAAQ,EAAE,iBAAiB,EAC3B,YAAY,EAAE,gBAAgB,EAC9B,KAAK,EAAE,KAAK,IACZ,CACH,CAAC;AACJ,CAAC,CAAC;AAEW,QAAA,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC1B,QAAA,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACzC,eAAO,CAAC,IAAI,GAAG;IACb,OAAO,EAAE,IAAI;CACd,CAAC;AACW,QAAA,QAAQ,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC1C,gBAAQ,CAAC,IAAI,GAAG;IACd,QAAQ,EAAE,IAAI;CACf,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react/types-6-0';
|
|
2
|
+
import { IReqoreTreeProps } from '../../components/Tree';
|
|
3
|
+
declare const _default: Meta<IReqoreTreeProps>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Basic: any;
|
|
6
|
+
export declare const TextView: any;
|
|
7
|
+
//# sourceMappingURL=Tree.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tree.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Tree/Tree.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAS,MAAM,4BAA4B,CAAC;AAEzD,OAAO,EAAE,gBAAgB,EAAc,MAAM,uBAAuB,CAAC;;AAMrE,wBAsB4B;AAQ5B,eAAO,MAAM,KAAK,KAAoB,CAAC;AACvC,eAAO,MAAM,QAAQ,KAAoB,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
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.TextView = exports.Basic = void 0;
|
|
18
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
|
+
var lodash_1 = require("lodash");
|
|
20
|
+
var Tree_1 = require("../../components/Tree");
|
|
21
|
+
var object_json_1 = __importDefault(require("../../mock/object.json"));
|
|
22
|
+
var args_1 = require("../utils/args");
|
|
23
|
+
var createArg = (0, args_1.argManager)().createArg;
|
|
24
|
+
exports["default"] = {
|
|
25
|
+
title: 'Components/Tree',
|
|
26
|
+
argTypes: __assign(__assign(__assign({}, createArg('withLabelCopy', {
|
|
27
|
+
name: 'With label copy',
|
|
28
|
+
description: 'With label copy',
|
|
29
|
+
control: 'boolean',
|
|
30
|
+
defaultValue: true
|
|
31
|
+
})), createArg('showTypes', {
|
|
32
|
+
name: 'Show types',
|
|
33
|
+
description: 'Show types',
|
|
34
|
+
control: 'boolean',
|
|
35
|
+
defaultValue: true
|
|
36
|
+
})), createArg('expanded', {
|
|
37
|
+
name: 'Expanded',
|
|
38
|
+
description: 'Expanded',
|
|
39
|
+
control: 'boolean',
|
|
40
|
+
defaultValue: false
|
|
41
|
+
}))
|
|
42
|
+
};
|
|
43
|
+
var data = object_json_1["default"];
|
|
44
|
+
var Template = function (args) {
|
|
45
|
+
return (0, jsx_runtime_1.jsx)(Tree_1.ReqoreTree, __assign({ data: data, onItemClick: lodash_1.noop }, args));
|
|
46
|
+
};
|
|
47
|
+
exports.Basic = Template.bind({});
|
|
48
|
+
exports.TextView = Template.bind({});
|
|
49
|
+
exports.TextView.args = {
|
|
50
|
+
mode: 'copy'
|
|
51
|
+
};
|
|
52
|
+
//# sourceMappingURL=Tree.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tree.stories.js","sourceRoot":"","sources":["../../../../src/stories/Tree/Tree.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AACA,iCAA8B;AAC9B,8CAAqE;AACrE,uEAAgD;AAChD,sCAA2C;AAEnC,IAAA,SAAS,GAAK,IAAA,iBAAU,GAAoB,UAAnC,CAAoC;AAErD,qBAAe;IACb,KAAK,EAAE,iBAAiB;IACxB,QAAQ,iCACH,SAAS,CAAC,eAAe,EAAE;QAC5B,IAAI,EAAE,iBAAiB;QACvB,WAAW,EAAE,iBAAiB;QAC9B,OAAO,EAAE,SAAS;QAClB,YAAY,EAAE,IAAI;KACnB,CAAC,GACC,SAAS,CAAC,WAAW,EAAE;QACxB,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,YAAY;QACzB,OAAO,EAAE,SAAS;QAClB,YAAY,EAAE,IAAI;KACnB,CAAC,GACC,SAAS,CAAC,UAAU,EAAE;QACvB,IAAI,EAAE,UAAU;QAChB,WAAW,EAAE,UAAU;QACvB,OAAO,EAAE,SAAS;QAClB,YAAY,EAAE,KAAK;KACpB,CAAC,CACH;CACwB,CAAC;AAE5B,IAAM,IAAI,GAAG,wBAAU,CAAC;AAExB,IAAM,QAAQ,GAA4B,UAAC,IAAsB;IAC/D,OAAO,uBAAC,iBAAU,aAAC,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,aAAI,IAAM,IAAI,EAAI,CAAC;AACjE,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,IAAI,EAAE,MAAM;CACb,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Wrapper.d.ts","sourceRoot":"","sources":["../../../src/stories/Wrapper.tsx"],"names":[],"mappings":";AAEA,OAAyB,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAEpF,eAAO,MAAM,YAAY,0BAA2B,sBAAsB,gBAQzE,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
+
var t = {};
|
|
15
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
+
t[p] = s[p];
|
|
17
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
+
t[p[i]] = s[p[i]];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
23
|
+
};
|
|
24
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
|
+
};
|
|
27
|
+
exports.__esModule = true;
|
|
28
|
+
exports.StoryWrapper = void 0;
|
|
29
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
30
|
+
var __1 = require("..");
|
|
31
|
+
var Content_1 = __importDefault(require("../components/Content"));
|
|
32
|
+
var UIProvider_1 = __importDefault(require("../containers/UIProvider"));
|
|
33
|
+
var StoryWrapper = function (_a) {
|
|
34
|
+
var children = _a.children, args = __rest(_a, ["children"]);
|
|
35
|
+
return ((0, jsx_runtime_1.jsx)(UIProvider_1["default"], __assign({}, args, { children: (0, jsx_runtime_1.jsx)(__1.ReqoreLayoutContent, { children: (0, jsx_runtime_1.jsx)(Content_1["default"], __assign({ style: { padding: '20px' } }, { children: children })) }) })));
|
|
36
|
+
};
|
|
37
|
+
exports.StoryWrapper = StoryWrapper;
|
|
38
|
+
//# sourceMappingURL=Wrapper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Wrapper.js","sourceRoot":"","sources":["../../../src/stories/Wrapper.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAAyC;AACzC,kEAAkD;AAClD,wEAAoF;AAE7E,IAAM,YAAY,GAAG,UAAC,EAA6C;IAA3C,IAAA,QAAQ,cAAA,EAAK,IAAI,cAAnB,YAAqB,CAAF;IAC9C,OAAO,CACL,uBAAC,uBAAgB,eAAK,IAAI,cACxB,uBAAC,uBAAmB,cAClB,uBAAC,oBAAa,aAAC,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,gBAAG,QAAQ,IAAiB,GACjD,IACL,CACpB,CAAC;AACJ,CAAC,CAAC;AARW,QAAA,YAAY,gBAQvB"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { IReqoreIconName } from '../../types/icons';
|
|
2
|
+
export interface IArgData {
|
|
3
|
+
description?: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
control?: any;
|
|
6
|
+
options?: string[];
|
|
7
|
+
type?: string;
|
|
8
|
+
table?: any;
|
|
9
|
+
}
|
|
10
|
+
export declare type TArg<T> = {
|
|
11
|
+
[key: string]: (IArgData & {
|
|
12
|
+
defaultValue?: T;
|
|
13
|
+
}) | undefined;
|
|
14
|
+
};
|
|
15
|
+
export declare type TDisabledArg = {
|
|
16
|
+
[key: string]: {
|
|
17
|
+
table: {
|
|
18
|
+
disable: boolean;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export declare const argManager: <Target>() => {
|
|
23
|
+
createArg<K extends keyof Target>(name: K, data: IArgData & {
|
|
24
|
+
defaultValue?: Target[K];
|
|
25
|
+
}): TArg<Target[K]>;
|
|
26
|
+
disableArg<K_1 extends keyof Target>(name: K_1): TDisabledArg;
|
|
27
|
+
disableArgs<K_2 extends keyof Target>(names: K_2[]): TDisabledArg;
|
|
28
|
+
};
|
|
29
|
+
export declare const IconArg: (iconKeyName?: string, name?: string, defaultValue?: IReqoreIconName) => TArg<any>;
|
|
30
|
+
export declare const MinimalArg: () => TArg<any>;
|
|
31
|
+
export declare const FlatArg: {
|
|
32
|
+
[x: string]: IArgData & {
|
|
33
|
+
defaultValue?: any;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
export declare const NoContentArg: {
|
|
37
|
+
[x: string]: IArgData & {
|
|
38
|
+
defaultValue?: any;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
export declare const SizeArg: {
|
|
42
|
+
[x: string]: IArgData & {
|
|
43
|
+
defaultValue?: any;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
export declare const IntentArg: {
|
|
47
|
+
[x: string]: IArgData & {
|
|
48
|
+
defaultValue?: any;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
export declare const CustomIntentArg: (key: string) => {
|
|
52
|
+
[x: string]: IArgData & {
|
|
53
|
+
defaultValue?: any;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
export declare const DisabledArg: {
|
|
57
|
+
[x: string]: IArgData & {
|
|
58
|
+
defaultValue?: any;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
//# sourceMappingURL=args.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"args.d.ts","sourceRoot":"","sources":["../../../../src/stories/utils/args.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,MAAM,WAAW,QAAQ;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,GAAG,CAAC;CACb;AAED,oBAAY,IAAI,CAAC,CAAC,IAAI;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,QAAQ,GAAG;QAAE,YAAY,CAAC,EAAE,CAAC,CAAA;KAAE,CAAC,GAAG,SAAS,CAAA;CAAE,CAAC;AACvF,oBAAY,YAAY,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG;QAAE,KAAK,EAAE;YAAE,OAAO,EAAE,OAAO,CAAA;SAAE,CAAA;KAAE,CAAA;CAAE,CAAC;AAE9E,eAAO,MAAM,UAAU;;;;qDAU0B,YAAY;yDASR,YAAY;CAehE,CAAC;AAEF,eAAO,MAAM,OAAO,iBACL,MAAM,SACZ,MAAM,iBACE,eAAe,cAU5B,CAAC;AAEL,eAAO,MAAM,UAAU,QAAO,KAAK,GAAG,CASrC,CAAC;AAEF,eAAO,MAAM,OAAO;;;;CASnB,CAAC;AAEF,eAAO,MAAM,YAAY;;;;CAOxB,CAAC;AAEF,eAAO,MAAM,OAAO;;;;CAWnB,CAAC;AAEF,eAAO,MAAM,SAAS;;;;CAOrB,CAAC;AAEF,eAAO,MAAM,eAAe,QAAS,MAAM;;;;CAOzC,CAAC;AAEH,eAAO,MAAM,WAAW;;;;CAOvB,CAAC"}
|
|
@@ -0,0 +1,120 @@
|
|
|
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.DisabledArg = exports.CustomIntentArg = exports.IntentArg = exports.SizeArg = exports.NoContentArg = exports.FlatArg = exports.MinimalArg = exports.IconArg = exports.argManager = void 0;
|
|
18
|
+
var theme_1 = require("../../constants/theme");
|
|
19
|
+
var icons_json_1 = __importDefault(require("../../icons.json"));
|
|
20
|
+
var argManager = function () {
|
|
21
|
+
return {
|
|
22
|
+
createArg: function (name, data) {
|
|
23
|
+
var _a;
|
|
24
|
+
return _a = {},
|
|
25
|
+
_a[name] = data,
|
|
26
|
+
_a;
|
|
27
|
+
},
|
|
28
|
+
disableArg: function (name) {
|
|
29
|
+
var _a;
|
|
30
|
+
return _a = {},
|
|
31
|
+
_a[name] = {
|
|
32
|
+
table: {
|
|
33
|
+
disable: true
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
_a;
|
|
37
|
+
},
|
|
38
|
+
disableArgs: function (names) {
|
|
39
|
+
return names.reduce(function (newArgs, name) {
|
|
40
|
+
var _a;
|
|
41
|
+
return __assign(__assign({}, newArgs), (_a = {},
|
|
42
|
+
_a[name] = {
|
|
43
|
+
table: {
|
|
44
|
+
disable: true
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
_a));
|
|
48
|
+
}, {});
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
exports.argManager = argManager;
|
|
53
|
+
var IconArg = function (iconKeyName, name, defaultValue) {
|
|
54
|
+
if (iconKeyName === void 0) { iconKeyName = 'icon'; }
|
|
55
|
+
return (0, exports.argManager)().createArg(iconKeyName, {
|
|
56
|
+
defaultValue: defaultValue || '24HoursFill',
|
|
57
|
+
name: name || 'Icon',
|
|
58
|
+
description: 'The icon name used',
|
|
59
|
+
control: {
|
|
60
|
+
type: 'select'
|
|
61
|
+
},
|
|
62
|
+
options: icons_json_1["default"]
|
|
63
|
+
});
|
|
64
|
+
};
|
|
65
|
+
exports.IconArg = IconArg;
|
|
66
|
+
var MinimalArg = function () {
|
|
67
|
+
return (0, exports.argManager)().createArg('minimal', {
|
|
68
|
+
description: 'Whether the component should be minimal',
|
|
69
|
+
name: 'Minimal',
|
|
70
|
+
defaultValue: false,
|
|
71
|
+
control: {
|
|
72
|
+
type: 'boolean'
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
};
|
|
76
|
+
exports.MinimalArg = MinimalArg;
|
|
77
|
+
exports.FlatArg = __assign({}, (0, exports.argManager)().createArg('flat', {
|
|
78
|
+
description: 'Whether the component should be flat',
|
|
79
|
+
name: 'Flat',
|
|
80
|
+
defaultValue: false,
|
|
81
|
+
control: {
|
|
82
|
+
type: 'boolean'
|
|
83
|
+
}
|
|
84
|
+
}));
|
|
85
|
+
exports.NoContentArg = __assign({}, (0, exports.argManager)().createArg('withoutContent', {
|
|
86
|
+
defaultValue: true,
|
|
87
|
+
table: {
|
|
88
|
+
disable: true
|
|
89
|
+
}
|
|
90
|
+
}));
|
|
91
|
+
exports.SizeArg = __assign({}, (0, exports.argManager)().createArg('size', {
|
|
92
|
+
control: 'select',
|
|
93
|
+
description: 'The size of the element',
|
|
94
|
+
options: ['tiny', 'small', 'normal', 'big', 'huge'],
|
|
95
|
+
name: 'Size',
|
|
96
|
+
defaultValue: 'normal',
|
|
97
|
+
table: {
|
|
98
|
+
defaultValue: { summary: 'normal' }
|
|
99
|
+
}
|
|
100
|
+
}));
|
|
101
|
+
exports.IntentArg = __assign({}, (0, exports.argManager)().createArg('intent', {
|
|
102
|
+
control: 'select',
|
|
103
|
+
description: 'The intent of the element',
|
|
104
|
+
options: Object.keys(theme_1.DEFAULT_INTENTS),
|
|
105
|
+
name: 'Intent'
|
|
106
|
+
}));
|
|
107
|
+
var CustomIntentArg = function (key) { return (__assign({}, (0, exports.argManager)().createArg(key, {
|
|
108
|
+
control: 'select',
|
|
109
|
+
description: 'The custom intent',
|
|
110
|
+
options: Object.keys(theme_1.DEFAULT_INTENTS),
|
|
111
|
+
name: 'Custom Intent'
|
|
112
|
+
}))); };
|
|
113
|
+
exports.CustomIntentArg = CustomIntentArg;
|
|
114
|
+
exports.DisabledArg = __assign({}, (0, exports.argManager)().createArg('disabled', {
|
|
115
|
+
control: 'boolean',
|
|
116
|
+
description: 'Whether the element should be disabled',
|
|
117
|
+
name: 'Disabled',
|
|
118
|
+
defaultValue: false
|
|
119
|
+
}));
|
|
120
|
+
//# sourceMappingURL=args.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"args.js","sourceRoot":"","sources":["../../../../src/stories/utils/args.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,+CAAwD;AACxD,gEAAqC;AAe9B,IAAM,UAAU,GAAG;IACxB,OAAO;QACL,SAAS,EAAT,UACE,IAAO,EACP,IAA6C;;YAE7C;gBACE,GAAC,IAAc,IAAG,IAAI;mBACtB;QACJ,CAAC;QACD,UAAU,EAAV,UAAmC,IAAO;;YACxC;gBACE,GAAC,IAAI,IAAG;oBACN,KAAK,EAAE;wBACL,OAAO,EAAE,IAAI;qBACd;iBACF;mBACD;QACJ,CAAC;QACD,WAAW,EAAX,UAAoC,KAAU;YAC5C,OAAO,KAAK,CAAC,MAAM,CA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