@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,35 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/react/types-6-0';
|
|
2
|
+
import { IReqoreIconProps } from '../../components/Icon';
|
|
3
|
+
import { ReqoreIcon } from '../../index';
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
title: 'Components/Icon',
|
|
7
|
+
} as Meta;
|
|
8
|
+
|
|
9
|
+
export const Icon: Story<IReqoreIconProps> = () => {
|
|
10
|
+
return (
|
|
11
|
+
<>
|
|
12
|
+
<ReqoreIcon icon='AccountCircleLine' size='12px' />
|
|
13
|
+
<ReqoreIcon icon='4KFill' size='14px' />
|
|
14
|
+
<ReqoreIcon icon='ArrowLeftCircleFill' intent='success' />
|
|
15
|
+
<ReqoreIcon icon='HotelFill' size='18px' />
|
|
16
|
+
<ReqoreIcon icon='SignalTowerFill' size='20px' color='#ff0000' />
|
|
17
|
+
<h4> Margined </h4>
|
|
18
|
+
<ReqoreIcon icon='AccountCircleLine' />
|
|
19
|
+
No Margin
|
|
20
|
+
<div>
|
|
21
|
+
<ReqoreIcon icon='4KFill' margin='right' />
|
|
22
|
+
Right Margin
|
|
23
|
+
</div>
|
|
24
|
+
<div>
|
|
25
|
+
Left Margin
|
|
26
|
+
<ReqoreIcon icon='ArrowLeftCircleFill' margin='left' />
|
|
27
|
+
</div>
|
|
28
|
+
<div>
|
|
29
|
+
Both
|
|
30
|
+
<ReqoreIcon icon='HotelFill' margin='both' />
|
|
31
|
+
Sides
|
|
32
|
+
</div>
|
|
33
|
+
</>
|
|
34
|
+
);
|
|
35
|
+
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/react/types-6-0';
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
import ReqoreInput, { IReqoreInputProps } from '../../components/Input';
|
|
4
|
+
import { ReqoreControlGroup } from '../../index';
|
|
5
|
+
import { FlatArg, MinimalArg } from '../utils/args';
|
|
6
|
+
|
|
7
|
+
export default {
|
|
8
|
+
title: 'Components/Input',
|
|
9
|
+
argTypes: {
|
|
10
|
+
...MinimalArg,
|
|
11
|
+
...FlatArg,
|
|
12
|
+
},
|
|
13
|
+
} as Meta<IReqoreInputProps>;
|
|
14
|
+
|
|
15
|
+
const Template: Story<IReqoreInputProps> = (args: IReqoreInputProps) => {
|
|
16
|
+
const [value, setValue] = useState('Input value');
|
|
17
|
+
|
|
18
|
+
const handleValueChange = (e) => {
|
|
19
|
+
setValue(e.target.value);
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
const handleValueClear = () => {
|
|
23
|
+
setValue('');
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
return (
|
|
27
|
+
<>
|
|
28
|
+
<ReqoreControlGroup>
|
|
29
|
+
<ReqoreInput
|
|
30
|
+
placeholder='Reqore Input'
|
|
31
|
+
onChange={handleValueChange}
|
|
32
|
+
value={value}
|
|
33
|
+
{...args}
|
|
34
|
+
/>
|
|
35
|
+
<ReqoreInput
|
|
36
|
+
placeholder='Minimal Input'
|
|
37
|
+
minimal
|
|
38
|
+
onChange={handleValueChange}
|
|
39
|
+
value={value}
|
|
40
|
+
{...args}
|
|
41
|
+
/>
|
|
42
|
+
<ReqoreInput
|
|
43
|
+
placeholder='Flat Input'
|
|
44
|
+
flat
|
|
45
|
+
onChange={handleValueChange}
|
|
46
|
+
value={value}
|
|
47
|
+
{...args}
|
|
48
|
+
/>
|
|
49
|
+
<ReqoreInput
|
|
50
|
+
placeholder='Clearable Input'
|
|
51
|
+
onClearClick={handleValueClear}
|
|
52
|
+
value={value}
|
|
53
|
+
onChange={handleValueChange}
|
|
54
|
+
{...args}
|
|
55
|
+
/>
|
|
56
|
+
<ReqoreInput
|
|
57
|
+
placeholder='Disabled Input'
|
|
58
|
+
disabled
|
|
59
|
+
onChange={handleValueChange}
|
|
60
|
+
value={value}
|
|
61
|
+
{...args}
|
|
62
|
+
/>
|
|
63
|
+
</ReqoreControlGroup>
|
|
64
|
+
<br />
|
|
65
|
+
<ReqoreControlGroup fluid>
|
|
66
|
+
<ReqoreInput
|
|
67
|
+
placeholder='Fluid Input'
|
|
68
|
+
onChange={handleValueChange}
|
|
69
|
+
value={value}
|
|
70
|
+
{...args}
|
|
71
|
+
/>
|
|
72
|
+
</ReqoreControlGroup>
|
|
73
|
+
</>
|
|
74
|
+
);
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
export const Basic = Template.bind({});
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/react/types-6-0';
|
|
2
|
+
import { IReqoreMenuProps } from '../../components/Menu';
|
|
3
|
+
import { IReqoreMenuItemProps } from '../../components/Menu/item';
|
|
4
|
+
import { ReqoreMenu, ReqoreMenuDivider, ReqoreMenuItem, ReqorePopover } from '../../index';
|
|
5
|
+
import { argManager, IntentArg } from '../utils/args';
|
|
6
|
+
|
|
7
|
+
const { createArg } = argManager<IReqoreMenuProps>();
|
|
8
|
+
|
|
9
|
+
export default {
|
|
10
|
+
title: 'Components/Menu',
|
|
11
|
+
argTypes: {
|
|
12
|
+
...createArg('width', {
|
|
13
|
+
type: 'string',
|
|
14
|
+
defaultValue: '160px',
|
|
15
|
+
name: 'Width',
|
|
16
|
+
}),
|
|
17
|
+
...createArg('maxHeight', {
|
|
18
|
+
type: 'string',
|
|
19
|
+
defaultValue: undefined,
|
|
20
|
+
name: 'Max Height',
|
|
21
|
+
}),
|
|
22
|
+
...createArg('position', {
|
|
23
|
+
defaultValue: undefined,
|
|
24
|
+
name: 'Position',
|
|
25
|
+
options: ['left', 'right'],
|
|
26
|
+
control: {
|
|
27
|
+
type: 'select',
|
|
28
|
+
},
|
|
29
|
+
}),
|
|
30
|
+
...IntentArg,
|
|
31
|
+
},
|
|
32
|
+
} as Meta<IReqoreMenuProps>;
|
|
33
|
+
|
|
34
|
+
export const MenuStory: Story<IReqoreMenuProps> = (args) => {
|
|
35
|
+
return (
|
|
36
|
+
<ReqoreMenu {...args}>
|
|
37
|
+
<ReqoreMenuItem icon='Save3Fill' intent='success' selected>
|
|
38
|
+
Selected success
|
|
39
|
+
</ReqoreMenuItem>
|
|
40
|
+
<ReqoreMenuItem icon='Save3Fill'>Save</ReqoreMenuItem>
|
|
41
|
+
<ReqoreMenuItem
|
|
42
|
+
icon='ChatPollFill'
|
|
43
|
+
onClick={() => alert('Item clicked')}
|
|
44
|
+
rightIcon='FahrenheitFill'
|
|
45
|
+
onRightIconClick={() => alert('Icon clicked')}
|
|
46
|
+
tooltip={{
|
|
47
|
+
content: 'You sure?',
|
|
48
|
+
}}
|
|
49
|
+
intent='danger'
|
|
50
|
+
>
|
|
51
|
+
Delete
|
|
52
|
+
</ReqoreMenuItem>
|
|
53
|
+
|
|
54
|
+
<ReqoreMenuItem icon='Lock2Fill'>This is a really long item that should wrap</ReqoreMenuItem>
|
|
55
|
+
<ReqoreMenuItem icon='Lock2Fill' disabled>
|
|
56
|
+
Disabled
|
|
57
|
+
</ReqoreMenuItem>
|
|
58
|
+
<ReqoreMenuItem icon='Lock2Fill' disabled intent='warning'>
|
|
59
|
+
Disabled intent
|
|
60
|
+
</ReqoreMenuItem>
|
|
61
|
+
<ReqoreMenuDivider />
|
|
62
|
+
<ReqorePopover
|
|
63
|
+
component={ReqoreMenuItem}
|
|
64
|
+
componentProps={
|
|
65
|
+
{
|
|
66
|
+
icon: 'EmotionUnhappyLine',
|
|
67
|
+
rightIcon: 'Scissors2Fill',
|
|
68
|
+
} as IReqoreMenuItemProps
|
|
69
|
+
}
|
|
70
|
+
content={
|
|
71
|
+
<ReqoreMenu {...args}>
|
|
72
|
+
<ReqoreMenuItem icon='ZhihuFill'>Item 1</ReqoreMenuItem>
|
|
73
|
+
<ReqoreMenuItem icon='AccountCircleFill'>Item 2</ReqoreMenuItem>
|
|
74
|
+
<ReqoreMenuItem icon='AnticlockwiseFill' disabled>
|
|
75
|
+
Item 3
|
|
76
|
+
</ReqoreMenuItem>
|
|
77
|
+
<ReqoreMenuItem icon='ArchiveFill'>Item 4</ReqoreMenuItem>
|
|
78
|
+
</ReqoreMenu>
|
|
79
|
+
}
|
|
80
|
+
isReqoreComponent
|
|
81
|
+
handler='click'
|
|
82
|
+
placement='right'
|
|
83
|
+
>
|
|
84
|
+
I have a submenu on click
|
|
85
|
+
</ReqorePopover>
|
|
86
|
+
<ReqoreMenuDivider label='Divider' />
|
|
87
|
+
<ReqoreMenuItem icon='DualSim1Line' rightIcon='MoneyEuroBoxLine' selected>
|
|
88
|
+
I am selected!
|
|
89
|
+
</ReqoreMenuItem>
|
|
90
|
+
</ReqoreMenu>
|
|
91
|
+
);
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
MenuStory.storyName = 'Menu';
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/react/types-6-0';
|
|
2
|
+
import ReqoreMessage, { IReqoreMessageProps } from '../../components/Message';
|
|
3
|
+
import { argManager, FlatArg, IntentArg, SizeArg } from '../utils/args';
|
|
4
|
+
|
|
5
|
+
const { createArg } = argManager<IReqoreMessageProps>();
|
|
6
|
+
|
|
7
|
+
export default {
|
|
8
|
+
title: 'Components/Message',
|
|
9
|
+
argTypes: {
|
|
10
|
+
...SizeArg,
|
|
11
|
+
...FlatArg,
|
|
12
|
+
...IntentArg,
|
|
13
|
+
...createArg('title', {
|
|
14
|
+
defaultValue: 'This is a test',
|
|
15
|
+
name: 'Message Header',
|
|
16
|
+
type: 'string',
|
|
17
|
+
description: 'The title of the message',
|
|
18
|
+
}),
|
|
19
|
+
...createArg('inverted', {
|
|
20
|
+
defaultValue: false,
|
|
21
|
+
name: 'Inverted',
|
|
22
|
+
description: 'Inverts the message colors',
|
|
23
|
+
type: 'boolean',
|
|
24
|
+
}),
|
|
25
|
+
},
|
|
26
|
+
} as Meta<IReqoreMessageProps>;
|
|
27
|
+
|
|
28
|
+
const Template: Story<IReqoreMessageProps> = (args: IReqoreMessageProps) => {
|
|
29
|
+
return (
|
|
30
|
+
<>
|
|
31
|
+
<ReqoreMessage {...args}>
|
|
32
|
+
In to am attended desirous raptures declared diverted confined at. Collected instantly
|
|
33
|
+
remaining up certainly to necessary as. Over walk dull into son boy door went new. At or
|
|
34
|
+
happiness commanded daughters as. Is handsome an declared at received in extended vicinity
|
|
35
|
+
subjects. Into miss on he over been late pain an. Only week bore boy what fat case left use.
|
|
36
|
+
Match round scale now sex style far times. Your me past an much.
|
|
37
|
+
</ReqoreMessage>
|
|
38
|
+
</>
|
|
39
|
+
);
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export const Basic: Story<IReqoreMessageProps> = Template.bind({});
|
|
43
|
+
export const Flat: Story<IReqoreMessageProps> = Template.bind({});
|
|
44
|
+
Flat.args = {
|
|
45
|
+
flat: true,
|
|
46
|
+
intent: 'success',
|
|
47
|
+
};
|
|
48
|
+
export const Inverted: Story<IReqoreMessageProps> = Template.bind({});
|
|
49
|
+
Inverted.args = {
|
|
50
|
+
inverted: true,
|
|
51
|
+
intent: 'danger',
|
|
52
|
+
};
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/react/types-6-0';
|
|
2
|
+
import { noop } from 'lodash';
|
|
3
|
+
import { useContext } from 'react';
|
|
4
|
+
import { useMount } from 'react-use';
|
|
5
|
+
import { IReqoreModalProps } from '../../components/Modal';
|
|
6
|
+
import { ReqoreContext, ReqoreModal, ReqorePanel } from '../../index';
|
|
7
|
+
import { argManager, FlatArg, IntentArg } from '../utils/args';
|
|
8
|
+
|
|
9
|
+
const { createArg } = argManager<IReqoreModalProps>();
|
|
10
|
+
|
|
11
|
+
export default {
|
|
12
|
+
title: 'Components/Modal',
|
|
13
|
+
argTypes: {
|
|
14
|
+
...IntentArg,
|
|
15
|
+
...FlatArg,
|
|
16
|
+
...createArg('isOpen', {
|
|
17
|
+
type: 'boolean',
|
|
18
|
+
defaultValue: true,
|
|
19
|
+
name: 'Is Open',
|
|
20
|
+
description: 'Whether the modal is open or not',
|
|
21
|
+
}),
|
|
22
|
+
...createArg('label', {
|
|
23
|
+
defaultValue: 'This is a test',
|
|
24
|
+
name: 'Label',
|
|
25
|
+
type: 'string',
|
|
26
|
+
}),
|
|
27
|
+
...createArg('blur', {
|
|
28
|
+
defaultValue: 3,
|
|
29
|
+
name: 'Backdrop blur',
|
|
30
|
+
type: 'number',
|
|
31
|
+
}),
|
|
32
|
+
...createArg('opacity', {
|
|
33
|
+
defaultValue: 1,
|
|
34
|
+
name: 'Modal Opacity',
|
|
35
|
+
type: 'number',
|
|
36
|
+
}),
|
|
37
|
+
...createArg('hasBackdrop', {
|
|
38
|
+
defaultValue: true,
|
|
39
|
+
name: 'Has Backdrop',
|
|
40
|
+
type: 'boolean',
|
|
41
|
+
}),
|
|
42
|
+
...createArg('width', {
|
|
43
|
+
defaultValue: '80vw',
|
|
44
|
+
name: 'Width',
|
|
45
|
+
type: 'string',
|
|
46
|
+
}),
|
|
47
|
+
...createArg('height', {
|
|
48
|
+
defaultValue: '50vh',
|
|
49
|
+
name: 'Height',
|
|
50
|
+
type: 'string',
|
|
51
|
+
}),
|
|
52
|
+
},
|
|
53
|
+
} as Meta<IReqoreModalProps>;
|
|
54
|
+
|
|
55
|
+
const Template: Story<IReqoreModalProps & { confirm?: boolean }> = (args) => {
|
|
56
|
+
const { confirmAction } = useContext(ReqoreContext);
|
|
57
|
+
|
|
58
|
+
useMount(() => {
|
|
59
|
+
if (args.confirm) {
|
|
60
|
+
confirmAction({
|
|
61
|
+
description: 'How is the wheather going to be?',
|
|
62
|
+
title: 'Tell me something',
|
|
63
|
+
onConfirm: noop,
|
|
64
|
+
onCancel: noop,
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
return (
|
|
70
|
+
<>
|
|
71
|
+
<ReqorePanel label='Just some background text' padded>
|
|
72
|
+
By impossible of in difficulty discovered celebrated ye. Justice joy manners boy met resolve
|
|
73
|
+
produce. Bed head loud next plan rent had easy add him. As earnestly shameless elsewhere
|
|
74
|
+
defective estimable fulfilled of. Esteem my advice it an excuse enable. Few household
|
|
75
|
+
abilities believing determine zealously his repulsive. To open draw dear be by side like.
|
|
76
|
+
Allow miles wound place the leave had. To sitting subject no improve studied limited. Ye
|
|
77
|
+
indulgence unreserved connection alteration appearance my an astonished. Up as seen sent
|
|
78
|
+
make he they of. Her raising and himself pasture believe females. Fancy she stuff after
|
|
79
|
+
aware merit small his. Charmed esteems luckily age out. At ourselves direction believing do
|
|
80
|
+
he departure. Celebrated her had sentiments understood are projection set. Possession ye no
|
|
81
|
+
mr unaffected remarkably at. Wrote house in never fruit up. Pasture imagine my garrets an
|
|
82
|
+
he. However distant she request behaved see nothing. Talking settled at pleased an of me
|
|
83
|
+
brother weather. Breakfast procuring nay end happiness allowance assurance frankness. Met
|
|
84
|
+
simplicity nor difficulty unreserved who. Entreaties mr conviction dissimilar me astonished
|
|
85
|
+
estimating cultivated. On no applauded exquisite my additions. Pronounce add boy estimable
|
|
86
|
+
nay suspected. You sudden nay elinor thirty esteem temper. Quiet leave shy you gay off asked
|
|
87
|
+
large style. Rooms oh fully taken by worse do. Points afraid but may end law lasted. Was out
|
|
88
|
+
laughter raptures returned outweigh. Luckily cheered colonel me do we attacks on highest
|
|
89
|
+
enabled. Tried law yet style child. Bore of true of no be deal. Frequently sufficient in be
|
|
90
|
+
unaffected. The furnished she concluded depending procuring concealed. In to am attended
|
|
91
|
+
desirous raptures declared diverted confined at. Collected instantly remaining up certainly
|
|
92
|
+
to necessary as. Over walk dull into son boy door went new. At or happiness commanded
|
|
93
|
+
daughters as. Is handsome an declared at received in extended vicinity subjects. Into miss
|
|
94
|
+
on he over been late pain an. Only week bore boy what fat case left use. Match round scale
|
|
95
|
+
now sex style far times. Your me past an much. Able an hope of body. Any nay shyness article
|
|
96
|
+
matters own removal nothing his forming. Gay own additions education satisfied the
|
|
97
|
+
perpetual. If he cause manor happy. Without farther she exposed saw man led. Along on happy
|
|
98
|
+
could cease green oh. Her old collecting she considered discovered. So at parties he warrant
|
|
99
|
+
oh staying. Square new horses and put better end. Sincerity collected happiness do is
|
|
100
|
+
contented. Sigh ever way now many. Alteration you any nor unsatiable diminution reasonable
|
|
101
|
+
companions shy partiality. Leaf by left deal mile oh if easy. Added woman first get led joy
|
|
102
|
+
not early jokes. As am hastily invited settled at limited civilly fortune me. Really spring
|
|
103
|
+
in extent an by. Judge but built gay party world. Of so am he remember although required.
|
|
104
|
+
Bachelor unpacked be advanced at. Confined in declared marianne is vicinity. It sportsman
|
|
105
|
+
earnestly ye preserved an on. Moment led family sooner cannot her window pulled any. Or
|
|
106
|
+
raillery if improved landlord to speaking hastened differed he. Furniture discourse
|
|
107
|
+
elsewhere yet her sir extensive defective unwilling get. Why resolution one motionless you
|
|
108
|
+
him thoroughly. Noise is round to in it quick timed doors. Written address greatly get
|
|
109
|
+
attacks inhabit pursuit our but. Lasted hunted enough an up seeing in lively letter. Had
|
|
110
|
+
judgment out opinions property the supplied.
|
|
111
|
+
</ReqorePanel>
|
|
112
|
+
<ReqoreModal
|
|
113
|
+
{...args}
|
|
114
|
+
onClose={() => noop}
|
|
115
|
+
bottomActions={[
|
|
116
|
+
{ label: 'Confirm', intent: 'success', position: 'right' },
|
|
117
|
+
{ label: 'Cancel', intent: 'danger', position: 'left' },
|
|
118
|
+
]}
|
|
119
|
+
>
|
|
120
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut
|
|
121
|
+
labore et dolore magna aliqua. Sit amet purus gravida quis blandit turpis cursus in hac.
|
|
122
|
+
Ultricies lacus sed turpis tincidunt. Ac tincidunt vitae semper quis lectus nulla at.
|
|
123
|
+
Aliquam vestibulum morbi blandit cursus risus at ultrices. Risus feugiat in ante metus
|
|
124
|
+
dictum. Enim blandit volutpat maecenas volutpat. Nulla posuere sollicitudin aliquam ultrices
|
|
125
|
+
sagittis orci a scelerisque. Mollis nunc sed id semper risus in hendrerit gravida. Sem nulla
|
|
126
|
+
pharetra diam sit amet nisl suscipit. Congue eu consequat ac felis donec et odio
|
|
127
|
+
pellentesque diam. Augue mauris augue neque gravida in fermentum et sollicitudin. Nulla
|
|
128
|
+
pellentesque dignissim enim sit amet venenatis urna. Nunc sed blandit libero volutpat sed.
|
|
129
|
+
Mi in nulla posuere sollicitudin. Eu consequat ac felis donec et odio pellentesque diam.
|
|
130
|
+
Viverra nam libero justo laoreet sit amet cursus sit amet. Posuere sollicitudin aliquam
|
|
131
|
+
ultrices sagittis orci a scelerisque. Et netus et malesuada fames ac. Arcu non odio euismod
|
|
132
|
+
lacinia at quis risus sed vulputate. Sapien eget mi proin sed libero enim sed. Suspendisse
|
|
133
|
+
faucibus interdum posuere lorem ipsum. In est ante in nibh mauris cursus. Urna cursus eget
|
|
134
|
+
nunc scelerisque. Mi eget mauris pharetra et ultrices neque. Turpis nunc eget lorem dolor
|
|
135
|
+
sed viverra ipsum nunc aliquet. Id aliquet lectus proin nibh. At auctor urna nunc id cursus.
|
|
136
|
+
Erat pellentesque adipiscing commodo elit at imperdiet. Ipsum dolor sit amet consectetur
|
|
137
|
+
adipiscing elit. Suspendisse interdum consectetur libero id faucibus nisl. Leo vel orci
|
|
138
|
+
porta non pulvinar neque laoreet. Ut diam quam nulla porttitor massa.
|
|
139
|
+
</ReqoreModal>
|
|
140
|
+
</>
|
|
141
|
+
);
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
export const Basic = Template.bind({});
|
|
145
|
+
export const ConfirmationModal = Template.bind({});
|
|
146
|
+
ConfirmationModal.args = {
|
|
147
|
+
confirm: true,
|
|
148
|
+
};
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/react/types-6-0';
|
|
2
|
+
import { noop } from 'lodash';
|
|
3
|
+
import ReqoreContent from '../../components/Content';
|
|
4
|
+
import ReqoreIcon from '../../components/Icon';
|
|
5
|
+
import { IReqoreNavbarProps, ReqoreFooter } from '../../components/Navbar';
|
|
6
|
+
import { IReqoreNavbarItemProps } from '../../components/Navbar/item';
|
|
7
|
+
import {
|
|
8
|
+
ReqoreHeader,
|
|
9
|
+
ReqoreMenu,
|
|
10
|
+
ReqoreMenuDivider,
|
|
11
|
+
ReqoreMenuItem,
|
|
12
|
+
ReqoreNavbarDivider,
|
|
13
|
+
ReqoreNavbarGroup,
|
|
14
|
+
ReqoreNavbarItem,
|
|
15
|
+
ReqorePopover,
|
|
16
|
+
} from '../../index';
|
|
17
|
+
import { FlatArg, NoContentArg } from '../utils/args';
|
|
18
|
+
|
|
19
|
+
export default {
|
|
20
|
+
title: 'Components/Header - Footer Navbar',
|
|
21
|
+
argTypes: {
|
|
22
|
+
...FlatArg,
|
|
23
|
+
...NoContentArg,
|
|
24
|
+
},
|
|
25
|
+
} as Meta<IReqoreNavbarProps>;
|
|
26
|
+
|
|
27
|
+
const Template: Story<IReqoreNavbarProps> = (args: IReqoreNavbarProps) => {
|
|
28
|
+
return (
|
|
29
|
+
<>
|
|
30
|
+
<ReqoreHeader {...args}>
|
|
31
|
+
<ReqoreNavbarGroup>
|
|
32
|
+
<ReqoreNavbarItem>
|
|
33
|
+
<h3>I am a logo on the left</h3>
|
|
34
|
+
</ReqoreNavbarItem>
|
|
35
|
+
</ReqoreNavbarGroup>
|
|
36
|
+
<ReqoreNavbarGroup position='right'>
|
|
37
|
+
<ReqoreNavbarItem active>
|
|
38
|
+
<ReqoreIcon icon='AwardFill' />
|
|
39
|
+
</ReqoreNavbarItem>
|
|
40
|
+
<ReqoreNavbarItem disabled>
|
|
41
|
+
<ReqoreIcon icon='BehanceLine' />
|
|
42
|
+
</ReqoreNavbarItem>
|
|
43
|
+
<ReqorePopover
|
|
44
|
+
component={ReqoreNavbarItem}
|
|
45
|
+
content={
|
|
46
|
+
<ReqoreMenu>
|
|
47
|
+
<ReqoreMenuDivider label='User area' />
|
|
48
|
+
<ReqoreMenuItem icon='ArrowGoBackFill'>Profile</ReqoreMenuItem>
|
|
49
|
+
<ReqoreMenuItem icon='DeleteBack2Fill'>Alerts</ReqoreMenuItem>
|
|
50
|
+
<ReqoreMenuItem icon='FileTextFill'>Log out</ReqoreMenuItem>
|
|
51
|
+
</ReqoreMenu>
|
|
52
|
+
}
|
|
53
|
+
handler='click'
|
|
54
|
+
componentProps={{ interactive: true } as IReqoreNavbarItemProps}
|
|
55
|
+
isReqoreComponent
|
|
56
|
+
>
|
|
57
|
+
<ReqoreIcon icon='UserFill' />
|
|
58
|
+
</ReqorePopover>
|
|
59
|
+
<ReqoreNavbarDivider />
|
|
60
|
+
<ReqorePopover
|
|
61
|
+
component={ReqoreNavbarItem}
|
|
62
|
+
content='Notifications'
|
|
63
|
+
componentProps={{ onClick: noop } as IReqoreNavbarItemProps}
|
|
64
|
+
isReqoreComponent
|
|
65
|
+
>
|
|
66
|
+
<ReqoreIcon icon='Notification4Fill' />
|
|
67
|
+
</ReqorePopover>
|
|
68
|
+
</ReqoreNavbarGroup>
|
|
69
|
+
</ReqoreHeader>
|
|
70
|
+
|
|
71
|
+
<ReqoreContent>Hey!</ReqoreContent>
|
|
72
|
+
<ReqoreFooter {...args}>
|
|
73
|
+
<ReqoreNavbarGroup>
|
|
74
|
+
<ReqoreNavbarItem>
|
|
75
|
+
<h3>I am a logo on the left</h3>
|
|
76
|
+
</ReqoreNavbarItem>
|
|
77
|
+
</ReqoreNavbarGroup>
|
|
78
|
+
<ReqoreNavbarGroup position='right'>
|
|
79
|
+
<ReqorePopover
|
|
80
|
+
component={ReqoreNavbarItem}
|
|
81
|
+
content={
|
|
82
|
+
<ReqoreMenu>
|
|
83
|
+
<ReqoreMenuDivider label='User area' />
|
|
84
|
+
<ReqoreMenuItem icon='DualSim1Fill'>Profile</ReqoreMenuItem>
|
|
85
|
+
<ReqoreMenuItem icon='FolderReceivedFill'>Alerts</ReqoreMenuItem>
|
|
86
|
+
<ReqoreMenuItem icon='FolderOpenFill'>Log out</ReqoreMenuItem>
|
|
87
|
+
</ReqoreMenu>
|
|
88
|
+
}
|
|
89
|
+
handler='click'
|
|
90
|
+
componentProps={{ interactive: true } as IReqoreNavbarItemProps}
|
|
91
|
+
isReqoreComponent
|
|
92
|
+
>
|
|
93
|
+
<ReqoreIcon icon='FlightLandLine' />
|
|
94
|
+
</ReqorePopover>
|
|
95
|
+
<ReqorePopover
|
|
96
|
+
component={ReqoreNavbarItem}
|
|
97
|
+
content='Notifications'
|
|
98
|
+
componentProps={{ interactive: true } as IReqoreNavbarItemProps}
|
|
99
|
+
isReqoreComponent
|
|
100
|
+
>
|
|
101
|
+
<ReqoreIcon icon='GpsLine' />
|
|
102
|
+
</ReqorePopover>
|
|
103
|
+
</ReqoreNavbarGroup>
|
|
104
|
+
</ReqoreFooter>
|
|
105
|
+
</>
|
|
106
|
+
);
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
export const Basic = Template.bind({});
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/react/types-6-0';
|
|
2
|
+
import { useContext } from 'react';
|
|
3
|
+
import ReqoreNotification, {
|
|
4
|
+
IReqoreNotificationProps,
|
|
5
|
+
} from '../../components/Notifications/notification';
|
|
6
|
+
import { IReqoreUIProviderProps } from '../../containers/UIProvider';
|
|
7
|
+
import { ReqoreContext, ReqoreUIProvider } from '../../index';
|
|
8
|
+
|
|
9
|
+
export default {
|
|
10
|
+
title: 'Components/Notifications/Interactive',
|
|
11
|
+
component: ReqoreNotification,
|
|
12
|
+
} as Meta;
|
|
13
|
+
|
|
14
|
+
const AddingButton = ({ id, onClick, onClose, onFinish }: any) => {
|
|
15
|
+
const { addNotification } = useContext(ReqoreContext);
|
|
16
|
+
|
|
17
|
+
return (
|
|
18
|
+
<button
|
|
19
|
+
onClick={() =>
|
|
20
|
+
addNotification({
|
|
21
|
+
title: 'Created notification',
|
|
22
|
+
content: 'Yo, wassup?',
|
|
23
|
+
icon: 'FileChartLine',
|
|
24
|
+
duration: 5000,
|
|
25
|
+
id: id || Date.now(),
|
|
26
|
+
onClick,
|
|
27
|
+
onClose,
|
|
28
|
+
onFinish,
|
|
29
|
+
})
|
|
30
|
+
}
|
|
31
|
+
>
|
|
32
|
+
Add notification
|
|
33
|
+
</button>
|
|
34
|
+
);
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
const UpdatingButton = ({ id }) => {
|
|
38
|
+
const { addNotification } = useContext(ReqoreContext);
|
|
39
|
+
|
|
40
|
+
return (
|
|
41
|
+
<button
|
|
42
|
+
onClick={() =>
|
|
43
|
+
addNotification({
|
|
44
|
+
content: 'I have just updated!',
|
|
45
|
+
icon: 'AccountPinBoxLine',
|
|
46
|
+
type: 'danger',
|
|
47
|
+
duration: 3000,
|
|
48
|
+
id,
|
|
49
|
+
})
|
|
50
|
+
}
|
|
51
|
+
>
|
|
52
|
+
Update notification
|
|
53
|
+
</button>
|
|
54
|
+
);
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
const Template: Story<IReqoreNotificationProps & IReqoreUIProviderProps> = ({
|
|
58
|
+
theme,
|
|
59
|
+
...args
|
|
60
|
+
}: IReqoreNotificationProps & IReqoreUIProviderProps & { id?: string | number }) => (
|
|
61
|
+
<ReqoreUIProvider theme={theme}>
|
|
62
|
+
<div
|
|
63
|
+
style={{
|
|
64
|
+
width: '100%',
|
|
65
|
+
height: '500px',
|
|
66
|
+
display: 'flex',
|
|
67
|
+
justifyContent: 'center',
|
|
68
|
+
alignItems: 'center',
|
|
69
|
+
flexFlow: 'column',
|
|
70
|
+
}}
|
|
71
|
+
>
|
|
72
|
+
<h4>Hello, I am a notification testing page</h4>
|
|
73
|
+
<AddingButton {...args} />
|
|
74
|
+
{args.id && <UpdatingButton id={args.id} />}
|
|
75
|
+
</div>
|
|
76
|
+
</ReqoreUIProvider>
|
|
77
|
+
);
|
|
78
|
+
|
|
79
|
+
export const Adding = Template.bind({});
|
|
80
|
+
|
|
81
|
+
export const Updating = Template.bind({});
|
|
82
|
+
Updating.args = {
|
|
83
|
+
id: 'test',
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
export const Clickable = Template.bind({});
|
|
87
|
+
Clickable.args = {
|
|
88
|
+
onClick: (id) => {
|
|
89
|
+
alert(`Notification ${id} clicked`);
|
|
90
|
+
},
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
export const CloseCallback = Template.bind({});
|
|
94
|
+
CloseCallback.args = {
|
|
95
|
+
onClose: (id) => {
|
|
96
|
+
alert(`Notification ${id} closed`);
|
|
97
|
+
},
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
export const FinishCallback = Template.bind({});
|
|
101
|
+
FinishCallback.args = {
|
|
102
|
+
onFinish: (id) => {
|
|
103
|
+
alert(`Notification ${id} finished`);
|
|
104
|
+
},
|
|
105
|
+
};
|