@qoretechnologies/reqore 0.20.1 → 0.20.4
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/__tests__/modal.test.tsx +3 -8
- package/__tests__/panel.test.tsx +3 -3
- 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/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 +50 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +122 -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 +2 -2
- 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/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 +49 -0
- package/src/mock/breadcrumbs.ts +93 -0
- package/src/mock/icons.ts +32 -0
- package/src/mock/menu.ts +95 -0
- package/src/mock/object.json +317 -0
- package/src/mock/styleMock.js +1 -0
- package/src/mock/tableData.ts +40 -0
- package/src/stories/Breadcrumbs/Breadcrumbs.stories.tsx +38 -0
- package/src/stories/Button/Button.stories.tsx +69 -0
- package/src/stories/Checkbox/Checkbox.stories.tsx +26 -0
- package/src/stories/Columns/Columns.stories.tsx +71 -0
- package/src/stories/Comment/Comment.stories.tsx +127 -0
- package/src/stories/ControlGroup/ControlGroup.stories.tsx +43 -0
- package/src/stories/Drawer/Drawer.stories.tsx +181 -0
- package/src/stories/Dropdown/Dropdown.stories.tsx +160 -0
- package/src/stories/Icon/Icon.stories.tsx +35 -0
- package/src/stories/Input/Input.stories.tsx +77 -0
- package/src/stories/Menu/Menu.stories.tsx +94 -0
- package/src/stories/Message/Message.stories.tsx +52 -0
- package/src/stories/Modal/Modal.stories.tsx +148 -0
- package/src/stories/Navbar/Navbar.stories.tsx +109 -0
- package/src/stories/Notifications/Interactive.stories.tsx +105 -0
- package/src/stories/Notifications/Notification.stories.tsx +200 -0
- package/src/stories/Notifications/Notifications.stories.tsx +65 -0
- package/src/stories/Panel/Panel.stories.tsx +107 -0
- package/src/stories/Popover/Popover.stories.tsx +54 -0
- package/src/stories/RadioGroup/RadioGroup.stories.tsx +51 -0
- package/src/stories/Sidebar/Sidebar.stories.tsx +78 -0
- package/src/stories/Table/Table.stories.tsx +151 -0
- package/src/stories/Tabs/Tabs.stories.tsx +233 -0
- package/src/stories/Tag/Tag.stories.tsx +72 -0
- package/src/stories/TextArea/TextArea.stories.tsx +74 -0
- package/src/stories/Tree/Tree.stories.tsx +43 -0
- package/src/stories/Wrapper.tsx +13 -0
- package/src/stories/utils/args.ts +138 -0
- package/src/stories/utils.ts +17 -0
- package/src/styles.ts +38 -0
- package/src/types/global.ts +9 -0
- package/src/types/icons.ts +2272 -0
- package/src/types/icons____.ts +5 -0
- package/tests.json +1 -1
- package/tsconfig.prod.json +26 -0
|
@@ -0,0 +1,48 @@
|
|
|
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.MenuStory = 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 createArg = (0, args_1.argManager)().createArg;
|
|
19
|
+
exports["default"] = {
|
|
20
|
+
title: 'Components/Menu',
|
|
21
|
+
argTypes: __assign(__assign(__assign(__assign({}, createArg('width', {
|
|
22
|
+
type: 'string',
|
|
23
|
+
defaultValue: '160px',
|
|
24
|
+
name: 'Width'
|
|
25
|
+
})), createArg('maxHeight', {
|
|
26
|
+
type: 'string',
|
|
27
|
+
defaultValue: undefined,
|
|
28
|
+
name: 'Max Height'
|
|
29
|
+
})), createArg('position', {
|
|
30
|
+
defaultValue: undefined,
|
|
31
|
+
name: 'Position',
|
|
32
|
+
options: ['left', 'right'],
|
|
33
|
+
control: {
|
|
34
|
+
type: 'select'
|
|
35
|
+
}
|
|
36
|
+
})), args_1.IntentArg)
|
|
37
|
+
};
|
|
38
|
+
var MenuStory = function (args) {
|
|
39
|
+
return ((0, jsx_runtime_1.jsxs)(index_1.ReqoreMenu, __assign({}, args, { children: [(0, jsx_runtime_1.jsx)(index_1.ReqoreMenuItem, __assign({ icon: 'Save3Fill', intent: 'success', selected: true }, { children: "Selected success" })), (0, jsx_runtime_1.jsx)(index_1.ReqoreMenuItem, __assign({ icon: 'Save3Fill' }, { children: "Save" })), (0, jsx_runtime_1.jsx)(index_1.ReqoreMenuItem, __assign({ icon: 'ChatPollFill', onClick: function () { return alert('Item clicked'); }, rightIcon: 'FahrenheitFill', onRightIconClick: function () { return alert('Icon clicked'); }, tooltip: {
|
|
40
|
+
content: 'You sure?'
|
|
41
|
+
}, intent: 'danger' }, { children: "Delete" })), (0, jsx_runtime_1.jsx)(index_1.ReqoreMenuItem, __assign({ icon: 'Lock2Fill' }, { children: "This is a really long item that should wrap" })), (0, jsx_runtime_1.jsx)(index_1.ReqoreMenuItem, __assign({ icon: 'Lock2Fill', disabled: true }, { children: "Disabled" })), (0, jsx_runtime_1.jsx)(index_1.ReqoreMenuItem, __assign({ icon: 'Lock2Fill', disabled: true, intent: 'warning' }, { children: "Disabled intent" })), (0, jsx_runtime_1.jsx)(index_1.ReqoreMenuDivider, {}), (0, jsx_runtime_1.jsx)(index_1.ReqorePopover, __assign({ component: index_1.ReqoreMenuItem, componentProps: {
|
|
42
|
+
icon: 'EmotionUnhappyLine',
|
|
43
|
+
rightIcon: 'Scissors2Fill'
|
|
44
|
+
}, content: (0, jsx_runtime_1.jsxs)(index_1.ReqoreMenu, __assign({}, args, { children: [(0, jsx_runtime_1.jsx)(index_1.ReqoreMenuItem, __assign({ icon: 'ZhihuFill' }, { children: "Item 1" })), (0, jsx_runtime_1.jsx)(index_1.ReqoreMenuItem, __assign({ icon: 'AccountCircleFill' }, { children: "Item 2" })), (0, jsx_runtime_1.jsx)(index_1.ReqoreMenuItem, __assign({ icon: 'AnticlockwiseFill', disabled: true }, { children: "Item 3" })), (0, jsx_runtime_1.jsx)(index_1.ReqoreMenuItem, __assign({ icon: 'ArchiveFill' }, { children: "Item 4" }))] })), isReqoreComponent: true, handler: 'click', placement: 'right' }, { children: "I have a submenu on click" })), (0, jsx_runtime_1.jsx)(index_1.ReqoreMenuDivider, { label: 'Divider' }), (0, jsx_runtime_1.jsx)(index_1.ReqoreMenuItem, __assign({ icon: 'DualSim1Line', rightIcon: 'MoneyEuroBoxLine', selected: true }, { children: "I am selected!" }))] })));
|
|
45
|
+
};
|
|
46
|
+
exports.MenuStory = MenuStory;
|
|
47
|
+
exports.MenuStory.storyName = 'Menu';
|
|
48
|
+
//# sourceMappingURL=Menu.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Menu.stories.js","sourceRoot":"","sources":["../../../../src/stories/Menu/Menu.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAGA,qCAA2F;AAC3F,sCAAsD;AAE9C,IAAA,SAAS,GAAK,IAAA,iBAAU,GAAoB,UAAnC,CAAoC;AAErD,qBAAe;IACb,KAAK,EAAE,iBAAiB;IACxB,QAAQ,0CACH,SAAS,CAAC,OAAO,EAAE;QACpB,I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AE,oBAAoB;oBAC1B,SAAS,EAAE,eAAe;iBACH,EAE3B,OAAO,EACL,wBAAC,kBAAU,eAAK,IAAI,eAClB,uBAAC,sBAAc,aAAC,IAAI,EAAC,WAAW,4BAAwB,EACxD,uBAAC,sBAAc,aAAC,IAAI,EAAC,mBAAmB,4BAAwB,EAChE,uBAAC,sBAAc,aAAC,IAAI,EAAC,mBAAmB,EAAC,QAAQ,kCAEhC,EACjB,uBAAC,sBAAc,aAAC,IAAI,EAAC,aAAa,4BAAwB,KAC/C,EAEf,iBAAiB,QACjB,OAAO,EAAC,OAAO,EACf,SAAS,EAAC,OAAO,+CAGH,EAChB,uBAAC,yBAAiB,IAAC,KAAK,EAAC,SAAS,GAAG,EACrC,uBAAC,sBAAc,aAAC,IAAI,EAAC,cAAc,EAAC,SAAS,EAAC,kBAAkB,EAAC,QAAQ,0CAExD,KACN,CACd,CAAC;AACJ,CAAC,CAAC;AA1DW,QAAA,SAAS,aA0DpB;AAEF,iBAAS,CAAC,SAAS,GAAG,MAAM,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/react/types-6-0';
|
|
2
|
+
import { IReqoreMessageProps } from '../../components/Message';
|
|
3
|
+
declare const _default: Meta<IReqoreMessageProps>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Basic: Story<IReqoreMessageProps>;
|
|
6
|
+
export declare const Flat: Story<IReqoreMessageProps>;
|
|
7
|
+
export declare const Inverted: Story<IReqoreMessageProps>;
|
|
8
|
+
//# sourceMappingURL=Message.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Message.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Message/Message.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAsB,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;;AAK9E,wBAmB+B;AAgB/B,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,mBAAmB,CAAqB,CAAC;AACnE,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,mBAAmB,CAAqB,CAAC;AAKlE,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,mBAAmB,CAAqB,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
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.Inverted = exports.Flat = exports.Basic = void 0;
|
|
18
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
|
+
var Message_1 = __importDefault(require("../../components/Message"));
|
|
20
|
+
var args_1 = require("../utils/args");
|
|
21
|
+
var createArg = (0, args_1.argManager)().createArg;
|
|
22
|
+
exports["default"] = {
|
|
23
|
+
title: 'Components/Message',
|
|
24
|
+
argTypes: __assign(__assign(__assign(__assign(__assign({}, args_1.SizeArg), args_1.FlatArg), args_1.IntentArg), createArg('title', {
|
|
25
|
+
defaultValue: 'This is a test',
|
|
26
|
+
name: 'Message Header',
|
|
27
|
+
type: 'string',
|
|
28
|
+
description: 'The title of the message'
|
|
29
|
+
})), createArg('inverted', {
|
|
30
|
+
defaultValue: false,
|
|
31
|
+
name: 'Inverted',
|
|
32
|
+
description: 'Inverts the message colors',
|
|
33
|
+
type: 'boolean'
|
|
34
|
+
}))
|
|
35
|
+
};
|
|
36
|
+
var Template = function (args) {
|
|
37
|
+
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(Message_1["default"], __assign({}, args, { children: "In to am attended desirous raptures declared diverted confined at. Collected instantly remaining up certainly to necessary as. Over walk dull into son boy door went new. At or happiness commanded daughters as. Is handsome an declared at received in extended vicinity subjects. Into miss on he over been late pain an. Only week bore boy what fat case left use. Match round scale now sex style far times. Your me past an much." })) }));
|
|
38
|
+
};
|
|
39
|
+
exports.Basic = Template.bind({});
|
|
40
|
+
exports.Flat = Template.bind({});
|
|
41
|
+
exports.Flat.args = {
|
|
42
|
+
flat: true,
|
|
43
|
+
intent: 'success'
|
|
44
|
+
};
|
|
45
|
+
exports.Inverted = Template.bind({});
|
|
46
|
+
exports.Inverted.args = {
|
|
47
|
+
inverted: true,
|
|
48
|
+
intent: 'danger'
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=Message.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Message.stories.js","sourceRoot":"","sources":["../../../../src/stories/Message/Message.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AACA,qEAA8E;AAC9E,sCAAwE;AAEhE,IAAA,SAAS,GAAK,IAAA,iBAAU,GAAuB,UAAtC,CAAuC;AAExD,qBAAe;IACb,KAAK,EAAE,oBAAoB;IAC3B,QAAQ,mDACH,cAAO,GACP,cAAO,GACP,gBAAS,GACT,SAAS,CAAC,OAAO,EAAE;QACpB,YAAY,EAAE,gBAAgB;QAC9B,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,0BAA0B;KACxC,CAAC,GACC,SAAS,CAAC,UAAU,EAAE;QACvB,YAAY,EAAE,KAAK;QACnB,IAAI,EAAE,UAAU;QAChB,WAAW,EAAE,4BAA4B;QACzC,IAAI,EAAE,SAAS;KAChB,CAAC,CACH;CAC2B,CAAC;AAE/B,IAAM,QAAQ,GAA+B,UAAC,IAAyB;IACrE,OAAO,CACL,2DACE,uBAAC,oBAAa,eAAK,IAAI,4bAMP,GACf,CACJ,CAAC;AACJ,CAAC,CAAC;AAEW,QAAA,KAAK,GAA+B,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACtD,QAAA,IAAI,GAA+B,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAClE,YAAI,CAAC,IAAI,GAAG;IACV,IAAI,EAAE,IAAI;IACV,MAAM,EAAE,SAAS;CAClB,CAAC;AACW,QAAA,QAAQ,GAA+B,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACtE,gBAAQ,CAAC,IAAI,GAAG;IACd,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,QAAQ;CACjB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react/types-6-0';
|
|
2
|
+
import { IReqoreModalProps } from '../../components/Modal';
|
|
3
|
+
declare const _default: Meta<IReqoreModalProps>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Basic: any;
|
|
6
|
+
export declare const ConfirmationModal: any;
|
|
7
|
+
//# sourceMappingURL=Modal.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Modal.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Modal/Modal.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAS,MAAM,4BAA4B,CAAC;AAIzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;;AAM3D,wBA0C6B;AA2F7B,eAAO,MAAM,KAAK,KAAoB,CAAC;AACvC,eAAO,MAAM,iBAAiB,KAAoB,CAAC"}
|
|
@@ -0,0 +1,77 @@
|
|
|
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.ConfirmationModal = exports.Basic = void 0;
|
|
15
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
|
+
var lodash_1 = require("lodash");
|
|
17
|
+
var react_1 = require("react");
|
|
18
|
+
var react_use_1 = require("react-use");
|
|
19
|
+
var index_1 = require("../../index");
|
|
20
|
+
var args_1 = require("../utils/args");
|
|
21
|
+
var createArg = (0, args_1.argManager)().createArg;
|
|
22
|
+
exports["default"] = {
|
|
23
|
+
title: 'Components/Modal',
|
|
24
|
+
argTypes: __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, args_1.IntentArg), args_1.FlatArg), createArg('isOpen', {
|
|
25
|
+
type: 'boolean',
|
|
26
|
+
defaultValue: true,
|
|
27
|
+
name: 'Is Open',
|
|
28
|
+
description: 'Whether the modal is open or not'
|
|
29
|
+
})), createArg('label', {
|
|
30
|
+
defaultValue: 'This is a test',
|
|
31
|
+
name: 'Label',
|
|
32
|
+
type: 'string'
|
|
33
|
+
})), createArg('blur', {
|
|
34
|
+
defaultValue: 3,
|
|
35
|
+
name: 'Backdrop blur',
|
|
36
|
+
type: 'number'
|
|
37
|
+
})), createArg('opacity', {
|
|
38
|
+
defaultValue: 1,
|
|
39
|
+
name: 'Modal Opacity',
|
|
40
|
+
type: 'number'
|
|
41
|
+
})), createArg('hasBackdrop', {
|
|
42
|
+
defaultValue: true,
|
|
43
|
+
name: 'Has Backdrop',
|
|
44
|
+
type: 'boolean'
|
|
45
|
+
})), createArg('width', {
|
|
46
|
+
defaultValue: '80vw',
|
|
47
|
+
name: 'Width',
|
|
48
|
+
type: 'string'
|
|
49
|
+
})), createArg('height', {
|
|
50
|
+
defaultValue: '50vh',
|
|
51
|
+
name: 'Height',
|
|
52
|
+
type: 'string'
|
|
53
|
+
}))
|
|
54
|
+
};
|
|
55
|
+
var Template = function (args) {
|
|
56
|
+
var confirmAction = (0, react_1.useContext)(index_1.ReqoreContext).confirmAction;
|
|
57
|
+
(0, react_use_1.useMount)(function () {
|
|
58
|
+
if (args.confirm) {
|
|
59
|
+
confirmAction({
|
|
60
|
+
description: 'How is the wheather going to be?',
|
|
61
|
+
title: 'Tell me something',
|
|
62
|
+
onConfirm: lodash_1.noop,
|
|
63
|
+
onCancel: lodash_1.noop
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(index_1.ReqorePanel, __assign({ label: 'Just some background text', padded: true }, { children: "By impossible of in difficulty discovered celebrated ye. Justice joy manners boy met resolve produce. Bed head loud next plan rent had easy add him. As earnestly shameless elsewhere defective estimable fulfilled of. Esteem my advice it an excuse enable. Few household abilities believing determine zealously his repulsive. To open draw dear be by side like. Allow miles wound place the leave had. To sitting subject no improve studied limited. Ye indulgence unreserved connection alteration appearance my an astonished. Up as seen sent make he they of. Her raising and himself pasture believe females. Fancy she stuff after aware merit small his. Charmed esteems luckily age out. At ourselves direction believing do he departure. Celebrated her had sentiments understood are projection set. Possession ye no mr unaffected remarkably at. Wrote house in never fruit up. Pasture imagine my garrets an he. However distant she request behaved see nothing. Talking settled at pleased an of me brother weather. Breakfast procuring nay end happiness allowance assurance frankness. Met simplicity nor difficulty unreserved who. Entreaties mr conviction dissimilar me astonished estimating cultivated. On no applauded exquisite my additions. Pronounce add boy estimable nay suspected. You sudden nay elinor thirty esteem temper. Quiet leave shy you gay off asked large style. Rooms oh fully taken by worse do. Points afraid but may end law lasted. Was out laughter raptures returned outweigh. Luckily cheered colonel me do we attacks on highest enabled. Tried law yet style child. Bore of true of no be deal. Frequently sufficient in be unaffected. The furnished she concluded depending procuring concealed. In to am attended desirous raptures declared diverted confined at. Collected instantly remaining up certainly to necessary as. Over walk dull into son boy door went new. At or happiness commanded daughters as. Is handsome an declared at received in extended vicinity subjects. Into miss on he over been late pain an. Only week bore boy what fat case left use. Match round scale now sex style far times. Your me past an much. Able an hope of body. Any nay shyness article matters own removal nothing his forming. Gay own additions education satisfied the perpetual. If he cause manor happy. Without farther she exposed saw man led. Along on happy could cease green oh. Her old collecting she considered discovered. So at parties he warrant oh staying. Square new horses and put better end. Sincerity collected happiness do is contented. Sigh ever way now many. Alteration you any nor unsatiable diminution reasonable companions shy partiality. Leaf by left deal mile oh if easy. Added woman first get led joy not early jokes. As am hastily invited settled at limited civilly fortune me. Really spring in extent an by. Judge but built gay party world. Of so am he remember although required. Bachelor unpacked be advanced at. Confined in declared marianne is vicinity. It sportsman earnestly ye preserved an on. Moment led family sooner cannot her window pulled any. Or raillery if improved landlord to speaking hastened differed he. Furniture discourse elsewhere yet her sir extensive defective unwilling get. Why resolution one motionless you him thoroughly. Noise is round to in it quick timed doors. Written address greatly get attacks inhabit pursuit our but. Lasted hunted enough an up seeing in lively letter. Had judgment out opinions property the supplied." })), (0, jsx_runtime_1.jsx)(index_1.ReqoreModal, __assign({}, args, { onClose: function () { return lodash_1.noop; }, bottomActions: [
|
|
68
|
+
{ label: 'Confirm', intent: 'success', position: 'right' },
|
|
69
|
+
{ label: 'Cancel', intent: 'danger', position: 'left' },
|
|
70
|
+
] }, { children: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Sit amet purus gravida quis blandit turpis cursus in hac. Ultricies lacus sed turpis tincidunt. Ac tincidunt vitae semper quis lectus nulla at. Aliquam vestibulum morbi blandit cursus risus at ultrices. Risus feugiat in ante metus dictum. Enim blandit volutpat maecenas volutpat. Nulla posuere sollicitudin aliquam ultrices sagittis orci a scelerisque. Mollis nunc sed id semper risus in hendrerit gravida. Sem nulla pharetra diam sit amet nisl suscipit. Congue eu consequat ac felis donec et odio pellentesque diam. Augue mauris augue neque gravida in fermentum et sollicitudin. Nulla pellentesque dignissim enim sit amet venenatis urna. Nunc sed blandit libero volutpat sed. Mi in nulla posuere sollicitudin. Eu consequat ac felis donec et odio pellentesque diam. Viverra nam libero justo laoreet sit amet cursus sit amet. Posuere sollicitudin aliquam ultrices sagittis orci a scelerisque. Et netus et malesuada fames ac. Arcu non odio euismod lacinia at quis risus sed vulputate. Sapien eget mi proin sed libero enim sed. Suspendisse faucibus interdum posuere lorem ipsum. In est ante in nibh mauris cursus. Urna cursus eget nunc scelerisque. Mi eget mauris pharetra et ultrices neque. Turpis nunc eget lorem dolor sed viverra ipsum nunc aliquet. Id aliquet lectus proin nibh. At auctor urna nunc id cursus. Erat pellentesque adipiscing commodo elit at imperdiet. Ipsum dolor sit amet consectetur adipiscing elit. Suspendisse interdum consectetur libero id faucibus nisl. Leo vel orci porta non pulvinar neque laoreet. Ut diam quam nulla porttitor massa." }))] }));
|
|
71
|
+
};
|
|
72
|
+
exports.Basic = Template.bind({});
|
|
73
|
+
exports.ConfirmationModal = Template.bind({});
|
|
74
|
+
exports.ConfirmationModal.args = {
|
|
75
|
+
confirm: true
|
|
76
|
+
};
|
|
77
|
+
//# sourceMappingURL=Modal.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Modal.stories.js","sourceRoot":"","sources":["../../../../src/stories/Modal/Modal.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,iCAA8B;AAC9B,+BAAmC;AACnC,uCAAqC;AAErC,qCAAsE;AACtE,sCAA+D;AAEvD,IAAA,SAAS,GAAK,IAAA,iBAAU,GAAqB,UAApC,CAAqC;AAEtD,qBAAe;IACb,KAAK,EAAE,kBAAkB;IACzB,QAAQ,uFACH,gBAAS,GACT,cAAO,GACP,SAAS,CAAC,QAAQ,EAAE;QACrB,IAA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,uBAAC,mBAAW,eACN,IAAI,IACR,OAAO,EAAE,cAAM,OAAA,aAAI,EAAJ,CAAI,EACnB,aAAa,EAAE;oBACb,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE;oBAC1D,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE;iBACxD,uqDAqBW,IACb,CACJ,CAAC;AACJ,CAAC,CAAC;AAEW,QAAA,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC1B,QAAA,iBAAiB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACnD,yBAAiB,CAAC,IAAI,GAAG;IACvB,OAAO,EAAE,IAAI;CACd,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react/types-6-0';
|
|
2
|
+
import { IReqoreNavbarProps } from '../../components/Navbar';
|
|
3
|
+
declare const _default: Meta<IReqoreNavbarProps>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Basic: any;
|
|
6
|
+
//# sourceMappingURL=Navbar.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Navbar.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Navbar/Navbar.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAS,MAAM,4BAA4B,CAAC;AAIzD,OAAO,EAAE,kBAAkB,EAAgB,MAAM,yBAAyB,CAAC;;AAc3E,wBAM8B;AAoF9B,eAAO,MAAM,KAAK,KAAoB,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
exports.__esModule = true;
|
|
17
|
+
exports.Basic = void 0;
|
|
18
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
|
+
var lodash_1 = require("lodash");
|
|
20
|
+
var Content_1 = __importDefault(require("../../components/Content"));
|
|
21
|
+
var Icon_1 = __importDefault(require("../../components/Icon"));
|
|
22
|
+
var Navbar_1 = require("../../components/Navbar");
|
|
23
|
+
var index_1 = require("../../index");
|
|
24
|
+
var args_1 = require("../utils/args");
|
|
25
|
+
exports["default"] = {
|
|
26
|
+
title: 'Components/Header - Footer Navbar',
|
|
27
|
+
argTypes: __assign(__assign({}, args_1.FlatArg), args_1.NoContentArg)
|
|
28
|
+
};
|
|
29
|
+
var Template = function (args) {
|
|
30
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(index_1.ReqoreHeader, __assign({}, args, { children: [(0, jsx_runtime_1.jsx)(index_1.ReqoreNavbarGroup, { children: (0, jsx_runtime_1.jsx)(index_1.ReqoreNavbarItem, { children: (0, jsx_runtime_1.jsx)("h3", { children: "I am a logo on the left" }) }) }), (0, jsx_runtime_1.jsxs)(index_1.ReqoreNavbarGroup, __assign({ position: 'right' }, { children: [(0, jsx_runtime_1.jsx)(index_1.ReqoreNavbarItem, __assign({ active: true }, { children: (0, jsx_runtime_1.jsx)(Icon_1["default"], { icon: 'AwardFill' }) })), (0, jsx_runtime_1.jsx)(index_1.ReqoreNavbarItem, __assign({ disabled: true }, { children: (0, jsx_runtime_1.jsx)(Icon_1["default"], { icon: 'BehanceLine' }) })), (0, jsx_runtime_1.jsx)(index_1.ReqorePopover, __assign({ component: index_1.ReqoreNavbarItem, content: (0, jsx_runtime_1.jsxs)(index_1.ReqoreMenu, { children: [(0, jsx_runtime_1.jsx)(index_1.ReqoreMenuDivider, { label: 'User area' }), (0, jsx_runtime_1.jsx)(index_1.ReqoreMenuItem, __assign({ icon: 'ArrowGoBackFill' }, { children: "Profile" })), (0, jsx_runtime_1.jsx)(index_1.ReqoreMenuItem, __assign({ icon: 'DeleteBack2Fill' }, { children: "Alerts" })), (0, jsx_runtime_1.jsx)(index_1.ReqoreMenuItem, __assign({ icon: 'FileTextFill' }, { children: "Log out" }))] }), handler: 'click', componentProps: { interactive: true }, isReqoreComponent: true }, { children: (0, jsx_runtime_1.jsx)(Icon_1["default"], { icon: 'UserFill' }) })), (0, jsx_runtime_1.jsx)(index_1.ReqoreNavbarDivider, {}), (0, jsx_runtime_1.jsx)(index_1.ReqorePopover, __assign({ component: index_1.ReqoreNavbarItem, content: 'Notifications', componentProps: { onClick: lodash_1.noop }, isReqoreComponent: true }, { children: (0, jsx_runtime_1.jsx)(Icon_1["default"], { icon: 'Notification4Fill' }) }))] }))] })), (0, jsx_runtime_1.jsx)(Content_1["default"], { children: "Hey!" }), (0, jsx_runtime_1.jsxs)(Navbar_1.ReqoreFooter, __assign({}, args, { children: [(0, jsx_runtime_1.jsx)(index_1.ReqoreNavbarGroup, { children: (0, jsx_runtime_1.jsx)(index_1.ReqoreNavbarItem, { children: (0, jsx_runtime_1.jsx)("h3", { children: "I am a logo on the left" }) }) }), (0, jsx_runtime_1.jsxs)(index_1.ReqoreNavbarGroup, __assign({ position: 'right' }, { children: [(0, jsx_runtime_1.jsx)(index_1.ReqorePopover, __assign({ component: index_1.ReqoreNavbarItem, content: (0, jsx_runtime_1.jsxs)(index_1.ReqoreMenu, { children: [(0, jsx_runtime_1.jsx)(index_1.ReqoreMenuDivider, { label: 'User area' }), (0, jsx_runtime_1.jsx)(index_1.ReqoreMenuItem, __assign({ icon: 'DualSim1Fill' }, { children: "Profile" })), (0, jsx_runtime_1.jsx)(index_1.ReqoreMenuItem, __assign({ icon: 'FolderReceivedFill' }, { children: "Alerts" })), (0, jsx_runtime_1.jsx)(index_1.ReqoreMenuItem, __assign({ icon: 'FolderOpenFill' }, { children: "Log out" }))] }), handler: 'click', componentProps: { interactive: true }, isReqoreComponent: true }, { children: (0, jsx_runtime_1.jsx)(Icon_1["default"], { icon: 'FlightLandLine' }) })), (0, jsx_runtime_1.jsx)(index_1.ReqorePopover, __assign({ component: index_1.ReqoreNavbarItem, content: 'Notifications', componentProps: { interactive: true }, isReqoreComponent: true }, { children: (0, jsx_runtime_1.jsx)(Icon_1["default"], { icon: 'GpsLine' }) }))] }))] }))] }));
|
|
31
|
+
};
|
|
32
|
+
exports.Basic = Template.bind({});
|
|
33
|
+
//# sourceMappingURL=Navbar.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Navbar.stories.js","sourceRoot":"","sources":["../../../../src/stories/Navbar/Navbar.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AACA,iCAA8B;AAC9B,qEAAqD;AACrD,+DAA+C;AAC/C,kDAA2E;AAE3E,qCASqB;AACrB,sCAAsD;AAEtD,qBAAe;IACb,KAAK,EAAE,mCAAmC;IAC1C,QAAQ,wBACH,cAAO,GACP,mBAAY,CAChB;CAC0B,CAAC;AAE9B,IAAM,QAAQ,GAA8B,UAAC,IAAwB;IACnE,OAAO,CACL,6DACE,wBAAC,oBAAY,eAAK,IAAI,eACpB,uBAAC,yBAAiB,cAChB,uBAAC,wBAAgB,cACf,qEAAgC,GACf,GACD,EACpB,wBAAC,yBAAiB,aAAC,QAAQ,EAAC,OAAO,iBACjC,uBAAC,wBAAgB,aAAC,MAAM,sBACtB,uBAAC,iBAAU,IAAC,IAAI,EAAC,WAAW,GAAG,IACd,EACnB,uBAAC,wBAAgB,aAAC,QAAQ,sBACxB,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AO,EACf,cAAc,EAAE,EAAE,WAAW,EAAE,IAAI,EAA4B,EAC/D,iBAAiB,sBAEjB,uBAAC,iBAAU,IAAC,IAAI,EAAC,gBAAgB,GAAG,IACtB,EAChB,uBAAC,qBAAa,aACZ,SAAS,EAAE,wBAAgB,EAC3B,OAAO,EAAC,eAAe,EACvB,cAAc,EAAE,EAAE,WAAW,EAAE,IAAI,EAA4B,EAC/D,iBAAiB,sBAEjB,uBAAC,iBAAU,IAAC,IAAI,EAAC,SAAS,GAAG,IACf,KACE,KACP,IACd,CACJ,CAAC;AACJ,CAAC,CAAC;AAEW,QAAA,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react/types-6-0';
|
|
2
|
+
declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
|
|
3
|
+
export default _default;
|
|
4
|
+
export declare const Adding: any;
|
|
5
|
+
export declare const Updating: any;
|
|
6
|
+
export declare const Clickable: any;
|
|
7
|
+
export declare const CloseCallback: any;
|
|
8
|
+
export declare const FinishCallback: any;
|
|
9
|
+
//# sourceMappingURL=Interactive.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Interactive.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Notifications/Interactive.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAS,MAAM,4BAA4B,CAAC;;AAQzD,wBAGU;AAmEV,eAAO,MAAM,MAAM,KAAoB,CAAC;AAExC,eAAO,MAAM,QAAQ,KAAoB,CAAC;AAK1C,eAAO,MAAM,SAAS,KAAoB,CAAC;AAO3C,eAAO,MAAM,aAAa,KAAoB,CAAC;AAO/C,eAAO,MAAM,cAAc,KAAoB,CAAC"}
|
|
@@ -0,0 +1,100 @@
|
|
|
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.FinishCallback = exports.CloseCallback = exports.Clickable = exports.Updating = exports.Adding = void 0;
|
|
29
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
30
|
+
var react_1 = require("react");
|
|
31
|
+
var notification_1 = __importDefault(require("../../components/Notifications/notification"));
|
|
32
|
+
var index_1 = require("../../index");
|
|
33
|
+
exports["default"] = {
|
|
34
|
+
title: 'Components/Notifications/Interactive',
|
|
35
|
+
component: notification_1["default"]
|
|
36
|
+
};
|
|
37
|
+
var AddingButton = function (_a) {
|
|
38
|
+
var id = _a.id, onClick = _a.onClick, onClose = _a.onClose, onFinish = _a.onFinish;
|
|
39
|
+
var addNotification = (0, react_1.useContext)(index_1.ReqoreContext).addNotification;
|
|
40
|
+
return ((0, jsx_runtime_1.jsx)("button", __assign({ onClick: function () {
|
|
41
|
+
return addNotification({
|
|
42
|
+
title: 'Created notification',
|
|
43
|
+
content: 'Yo, wassup?',
|
|
44
|
+
icon: 'FileChartLine',
|
|
45
|
+
duration: 5000,
|
|
46
|
+
id: id || Date.now(),
|
|
47
|
+
onClick: onClick,
|
|
48
|
+
onClose: onClose,
|
|
49
|
+
onFinish: onFinish
|
|
50
|
+
});
|
|
51
|
+
} }, { children: "Add notification" })));
|
|
52
|
+
};
|
|
53
|
+
var UpdatingButton = function (_a) {
|
|
54
|
+
var id = _a.id;
|
|
55
|
+
var addNotification = (0, react_1.useContext)(index_1.ReqoreContext).addNotification;
|
|
56
|
+
return ((0, jsx_runtime_1.jsx)("button", __assign({ onClick: function () {
|
|
57
|
+
return addNotification({
|
|
58
|
+
content: 'I have just updated!',
|
|
59
|
+
icon: 'AccountPinBoxLine',
|
|
60
|
+
type: 'danger',
|
|
61
|
+
duration: 3000,
|
|
62
|
+
id: id
|
|
63
|
+
});
|
|
64
|
+
} }, { children: "Update notification" })));
|
|
65
|
+
};
|
|
66
|
+
var Template = function (_a) {
|
|
67
|
+
var theme = _a.theme, args = __rest(_a, ["theme"]);
|
|
68
|
+
return ((0, jsx_runtime_1.jsx)(index_1.ReqoreUIProvider, __assign({ theme: theme }, { children: (0, jsx_runtime_1.jsxs)("div", __assign({ style: {
|
|
69
|
+
width: '100%',
|
|
70
|
+
height: '500px',
|
|
71
|
+
display: 'flex',
|
|
72
|
+
justifyContent: 'center',
|
|
73
|
+
alignItems: 'center',
|
|
74
|
+
flexFlow: 'column'
|
|
75
|
+
} }, { children: [(0, jsx_runtime_1.jsx)("h4", { children: "Hello, I am a notification testing page" }), (0, jsx_runtime_1.jsx)(AddingButton, __assign({}, args)), args.id && (0, jsx_runtime_1.jsx)(UpdatingButton, { id: args.id })] })) })));
|
|
76
|
+
};
|
|
77
|
+
exports.Adding = Template.bind({});
|
|
78
|
+
exports.Updating = Template.bind({});
|
|
79
|
+
exports.Updating.args = {
|
|
80
|
+
id: 'test'
|
|
81
|
+
};
|
|
82
|
+
exports.Clickable = Template.bind({});
|
|
83
|
+
exports.Clickable.args = {
|
|
84
|
+
onClick: function (id) {
|
|
85
|
+
alert("Notification ".concat(id, " clicked"));
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
exports.CloseCallback = Template.bind({});
|
|
89
|
+
exports.CloseCallback.args = {
|
|
90
|
+
onClose: function (id) {
|
|
91
|
+
alert("Notification ".concat(id, " closed"));
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
exports.FinishCallback = Template.bind({});
|
|
95
|
+
exports.FinishCallback.args = {
|
|
96
|
+
onFinish: function (id) {
|
|
97
|
+
alert("Notification ".concat(id, " finished"));
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
//# sourceMappingURL=Interactive.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Interactive.stories.js","sourceRoot":"","sources":["../../../../src/stories/Notifications/Interactive.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,+BAAmC;AACnC,6FAEqD;AAErD,qCAA8D;AAE9D,qBAAe;IACb,KAAK,EAAE,sCAAsC;IAC7C,SAAS,EAAE,yBAAkB;CACtB,CAAC;AAEV,IAAM,YAAY,GAAG,UAAC,EAAuC;QAArC,EAAE,QAAA,EAAE,OAAO,aAAA,EAAE,OAAO,aAAA,EAAE,QAAQ,cAAA;IAC5C,IAAA,eAAe,GAAK,IAAA,kBAAU,EAAC,qBAAa,CAAC,gBAA9B,CAA+B;IAEtD,OAAO,CACL,4CACE,OAAO,EAAE;YACP,OAAA,eAAe,CAAC;gBACd,KAAK,EAAE,sBAAsB;gBAC7B,OAAO,EAAE,aAAa;gBACtB,IAAI,EAAE,eAAe;gBACrB,QAAQ,EAAE,IAAI;gBACd,EAAE,EAAE,EAAE,IAAI,IAAI,CAAC,GAAG,EAA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AC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC3C,iBAAS,CAAC,IAAI,GAAG;IACf,OAAO,EAAE,UAAC,EAAE;QACV,KAAK,CAAC,uBAAgB,EAAE,aAAU,CAAC,CAAC;IACtC,CAAC;CACF,CAAC;AAEW,QAAA,aAAa,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC/C,qBAAa,CAAC,IAAI,GAAG;IACnB,OAAO,EAAE,UAAC,EAAE;QACV,KAAK,CAAC,uBAAgB,EAAE,YAAS,CAAC,CAAC;IACrC,CAAC;CACF,CAAC;AAEW,QAAA,cAAc,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAChD,sBAAc,CAAC,IAAI,GAAG;IACpB,QAAQ,EAAE,UAAC,EAAE;QACX,KAAK,CAAC,uBAAgB,EAAE,cAAW,CAAC,CAAC;IACvC,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react/types-6-0';
|
|
2
|
+
declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
|
|
3
|
+
export default _default;
|
|
4
|
+
export declare const Default: any;
|
|
5
|
+
export declare const CustomColors: any;
|
|
6
|
+
export declare const CustomColors2: any;
|
|
7
|
+
export declare const WithTimeout: any;
|
|
8
|
+
export declare const WithUpdate: any;
|
|
9
|
+
//# sourceMappingURL=Notification.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Notification.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Notifications/Notification.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAS,MAAM,4BAA4B,CAAC;;AAUzD,wBAGU;AAmHV,eAAO,MAAM,OAAO,KAAoB,CAAC;AAEzC,eAAO,MAAM,YAAY,KAAoB,CAAC;AAc9C,eAAO,MAAM,aAAa,KAAoB,CAAC;AAc/C,eAAO,MAAM,WAAW,KAA0B,CAAC;AAkCnD,eAAO,MAAM,UAAU,KAA0B,CAAC"}
|
|
@@ -0,0 +1,96 @@
|
|
|
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.WithUpdate = exports.WithTimeout = exports.CustomColors2 = exports.CustomColors = exports.Default = void 0;
|
|
29
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
30
|
+
var lodash_1 = require("lodash");
|
|
31
|
+
var react_1 = require("react");
|
|
32
|
+
var react_use_1 = require("react-use");
|
|
33
|
+
var notification_1 = __importDefault(require("../../components/Notifications/notification"));
|
|
34
|
+
var index_1 = require("../../index");
|
|
35
|
+
exports["default"] = {
|
|
36
|
+
title: 'Components/Notifications/Item',
|
|
37
|
+
component: notification_1["default"]
|
|
38
|
+
};
|
|
39
|
+
var Template = function (_a) {
|
|
40
|
+
var theme = _a.theme, args = __rest(_a, ["theme"]);
|
|
41
|
+
return ((0, jsx_runtime_1.jsxs)(index_1.ReqoreUIProvider, __assign({ theme: theme }, { children: [(0, jsx_runtime_1.jsx)(notification_1["default"], __assign({}, args, { type: 'info', content: "Hello, I am a very simple notification. Look at me, look at me? Isn't this great?", onClick: lodash_1.noop })), (0, jsx_runtime_1.jsx)(notification_1["default"], __assign({}, args, { type: 'pending', icon: 'TimerLine', content: 'I am still waiting', onClick: lodash_1.noop })), (0, jsx_runtime_1.jsx)(notification_1["default"], __assign({}, args, { type: 'success', title: 'Simple notification', content: "Hello, I am a very simple notification. Look at me, look at me? Isn't this great?", onClick: lodash_1.noop })), (0, jsx_runtime_1.jsx)(notification_1["default"], __assign({}, args, { type: 'warning', title: 'Simple notification', content: "Hello, I am a very simple notification. Look at me, look at me? Isn't this great?", onClose: lodash_1.noop })), (0, jsx_runtime_1.jsx)(notification_1["default"], __assign({}, args, { type: 'danger', title: 'Simple notification', content: "Hello, I am a very simple notification. Look at me, look at me? Isn't this great?", onClick: lodash_1.noop, onClose: lodash_1.noop })), (0, jsx_runtime_1.jsx)("h4", { children: " Flat and inverted " }), (0, jsx_runtime_1.jsx)(notification_1["default"], __assign({}, args, { type: 'danger', title: 'Simple notification', content: "Hello, I am a very simple notification. Look at me, look at me? Isn't this great?", onClick: lodash_1.noop, onClose: lodash_1.noop, flat: true, inverted: true })), (0, jsx_runtime_1.jsx)(notification_1["default"], __assign({}, args, { title: 'Simple notification', content: "Hello, I am a very simple notification. Look at me, look at me? Isn't this great?", onClick: lodash_1.noop, onClose: lodash_1.noop, inverted: true })), (0, jsx_runtime_1.jsx)(notification_1["default"], __assign({}, args, { title: 'Simple notification', content: "Hello, I am a very simple notification. Look at me, look at me? Isn't this great?", onClick: lodash_1.noop, onClose: lodash_1.noop, flat: true, intent: 'info', size: 'big' })), (0, jsx_runtime_1.jsx)(notification_1["default"], __assign({}, args, { title: 'Simple notification', content: "Hello, I am a very simple notification. Look at me, look at me? Isn't this great?", onClick: lodash_1.noop, onClose: lodash_1.noop, intent: 'success', flat: true, icon: '4KLine', size: 'small' })), (0, jsx_runtime_1.jsx)(notification_1["default"], __assign({}, args, { title: 'Simple notification', content: "Hello, I am a very simple notification. Look at me, look at me? Isn't this great?", onClick: lodash_1.noop, onClose: lodash_1.noop, flat: true, intent: 'danger', size: 'huge' })), (0, jsx_runtime_1.jsx)(notification_1["default"], __assign({}, args, { title: 'Simple notification', content: "Hello, I am a very simple notification. Look at me, look at me? Isn't this great?", onClick: lodash_1.noop, onClose: lodash_1.noop, intent: 'warning', flat: true, icon: '4KLine', size: 'tiny' }))] })));
|
|
42
|
+
};
|
|
43
|
+
var SingleTemplate = function (_a) {
|
|
44
|
+
var theme = _a.theme, args = __rest(_a, ["theme"]);
|
|
45
|
+
return ((0, jsx_runtime_1.jsx)(index_1.ReqoreUIProvider, __assign({ theme: theme }, { children: (0, jsx_runtime_1.jsx)(notification_1["default"], __assign({}, args)) })));
|
|
46
|
+
};
|
|
47
|
+
exports.Default = Template.bind({});
|
|
48
|
+
exports.CustomColors = Template.bind({});
|
|
49
|
+
exports.CustomColors.args = {
|
|
50
|
+
theme: {
|
|
51
|
+
notifications: {
|
|
52
|
+
info: '#6c2d80',
|
|
53
|
+
success: '#81a194',
|
|
54
|
+
pending: '#b8d8f5',
|
|
55
|
+
warning: '#382d31',
|
|
56
|
+
danger: '#786714'
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
exports.CustomColors2 = Template.bind({});
|
|
61
|
+
exports.CustomColors2.args = {
|
|
62
|
+
theme: {
|
|
63
|
+
notifications: {
|
|
64
|
+
info: '#d6bac0',
|
|
65
|
+
success: '#2aeb37',
|
|
66
|
+
pending: '#181d7d',
|
|
67
|
+
warning: '#96714e',
|
|
68
|
+
danger: '#b87cd6'
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
exports.WithTimeout = SingleTemplate.bind({});
|
|
73
|
+
exports.WithTimeout.args = {
|
|
74
|
+
type: 'info',
|
|
75
|
+
content: 'I am a notification with a 10s timeout',
|
|
76
|
+
onClick: lodash_1.noop,
|
|
77
|
+
duration: 10000
|
|
78
|
+
};
|
|
79
|
+
var UpdateTemplate = function (_a) {
|
|
80
|
+
var theme = _a.theme, args = __rest(_a, ["theme"]);
|
|
81
|
+
var _b = (0, react_1.useState)(__assign({}, args)), notificationData = _b[0], setNotificationData = _b[1];
|
|
82
|
+
(0, react_use_1.useMount)(function () {
|
|
83
|
+
setTimeout(function () {
|
|
84
|
+
setNotificationData(__assign(__assign({}, notificationData), { title: 'I am updated notification', content: 'Hellooo I am an updated notification with 7s duration', type: 'success', duration: 7000 }));
|
|
85
|
+
}, 5000);
|
|
86
|
+
});
|
|
87
|
+
return ((0, jsx_runtime_1.jsx)(index_1.ReqoreUIProvider, __assign({ theme: theme }, { children: (0, jsx_runtime_1.jsx)(notification_1["default"], __assign({}, notificationData)) })));
|
|
88
|
+
};
|
|
89
|
+
exports.WithUpdate = UpdateTemplate.bind({});
|
|
90
|
+
exports.WithUpdate.args = {
|
|
91
|
+
type: 'pending',
|
|
92
|
+
content: 'I am a notification with a 10s timeout thats gonna update',
|
|
93
|
+
onClick: lodash_1.noop,
|
|
94
|
+
duration: 10000
|
|
95
|
+
};
|
|
96
|
+
//# sourceMappingURL=Notification.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Notification.stories.js","sourceRoot":"","sources":["../../../../src/stories/Notifications/Notification.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,iCAA8B;AAC9B,+BAAiC;AACjC,uCAAqC;AACrC,6FAEqD;AAErD,qCAA+C;AAE/C,qBAAe;IACb,KAAK,EAAE,+BAA+B;IACtC,SAAS,EAAE,yBAAkB;CACtB,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AU,GAAG,cAAc,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAElD,kBAAU,CAAC,IAAI,GAAG;IAChB,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,2DAA2D;IACpE,OAAO,EAAE,aAAI;IACb,QAAQ,EAAE,KAAK;CAChB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react/types-6-0';
|
|
2
|
+
declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
|
|
3
|
+
export default _default;
|
|
4
|
+
export declare const Top: any;
|
|
5
|
+
export declare const Bottom: any;
|
|
6
|
+
export declare const TopLeft: any;
|
|
7
|
+
export declare const TopRight: any;
|
|
8
|
+
export declare const BottomLeft: any;
|
|
9
|
+
export declare const BottomRight: any;
|
|
10
|
+
//# sourceMappingURL=Notifications.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Notifications.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Notifications/Notifications.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAS,MAAM,4BAA4B,CAAC;;AAWzD,wBAGU;AA0BV,eAAO,MAAM,GAAG,KAAoB,CAAC;AACrC,eAAO,MAAM,MAAM,KAAoB,CAAC;AAKxC,eAAO,MAAM,OAAO,KAAoB,CAAC;AAKzC,eAAO,MAAM,QAAQ,KAAoB,CAAC;AAK1C,eAAO,MAAM,UAAU,KAAoB,CAAC;AAK5C,eAAO,MAAM,WAAW,KAAoB,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
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.BottomRight = exports.BottomLeft = exports.TopRight = exports.TopLeft = exports.Bottom = exports.Top = void 0;
|
|
29
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
30
|
+
var lodash_1 = require("lodash");
|
|
31
|
+
var Notifications_1 = __importDefault(require("../../components/Notifications"));
|
|
32
|
+
var notification_1 = __importDefault(require("../../components/Notifications/notification"));
|
|
33
|
+
var index_1 = require("../../index");
|
|
34
|
+
exports["default"] = {
|
|
35
|
+
title: 'Components/Notifications/Wrapper',
|
|
36
|
+
component: notification_1["default"]
|
|
37
|
+
};
|
|
38
|
+
var Template = function (_a) {
|
|
39
|
+
var theme = _a.theme, args = __rest(_a, ["theme"]);
|
|
40
|
+
return ((0, jsx_runtime_1.jsx)(index_1.ReqoreUIProvider, __assign({ theme: theme }, { children: (0, jsx_runtime_1.jsxs)(Notifications_1["default"], __assign({ position: args.position }, { children: [(0, jsx_runtime_1.jsx)(notification_1["default"], __assign({}, args, { type: 'info', content: "Hello, I am a very simple notification. Look at me, look at me? Isn't this great?", onClick: lodash_1.noop })), (0, jsx_runtime_1.jsx)(notification_1["default"], __assign({}, args, { type: 'info', content: "Hello, I am a very simple notification. Look at me, look at me? Isn't this great?", onClick: lodash_1.noop }))] })) })));
|
|
41
|
+
};
|
|
42
|
+
exports.Top = Template.bind({});
|
|
43
|
+
exports.Bottom = Template.bind({});
|
|
44
|
+
exports.Bottom.args = {
|
|
45
|
+
position: 'BOTTOM'
|
|
46
|
+
};
|
|
47
|
+
exports.TopLeft = Template.bind({});
|
|
48
|
+
exports.TopLeft.args = {
|
|
49
|
+
position: 'TOP LEFT'
|
|
50
|
+
};
|
|
51
|
+
exports.TopRight = Template.bind({});
|
|
52
|
+
exports.TopRight.args = {
|
|
53
|
+
position: 'TOP RIGHT'
|
|
54
|
+
};
|
|
55
|
+
exports.BottomLeft = Template.bind({});
|
|
56
|
+
exports.BottomLeft.args = {
|
|
57
|
+
position: 'BOTTOM LEFT'
|
|
58
|
+
};
|
|
59
|
+
exports.BottomRight = Template.bind({});
|
|
60
|
+
exports.BottomRight.args = {
|
|
61
|
+
position: 'BOTTOM RIGHT'
|
|
62
|
+
};
|
|
63
|
+
//# sourceMappingURL=Notifications.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Notifications.stories.js","sourceRoot":"","sources":["../../../../src/stories/Notifications/Notifications.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,iCAA8B;AAC9B,iFAEwC;AACxC,6FAEqD;AAErD,qCAA+C;AAE/C,qBAAe;IACb,KAAK,EAAE,kCAAkC;IACzC,SAAS,EAAE,yBAAkB;CACtB,CAAC;AAEV,IAAM,QAAQ,GAEV,UAAC,EAGkF;IAFrF,IAAA,KAAK,WAAA,EACF,IAAI,cAFJ,SAGJ,CADQ;IACmF,OAAA,CAC1F,uBAAC,wBAAgB,aAAC,KAAK,EAAE,KAAK,gBAC5B,wBAAC,0BAA0B,aAAC,QAAQ,EAA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