@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,56 @@
|
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
2
|
+
import styled, { css } from 'styled-components';
|
|
3
|
+
|
|
4
|
+
export interface IReqoreNotificationsWrapperProps {
|
|
5
|
+
children: any;
|
|
6
|
+
position?: IReqoreNotificationsPosition;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export type IReqoreNotificationsPosition =
|
|
10
|
+
| 'TOP'
|
|
11
|
+
| 'BOTTOM'
|
|
12
|
+
| 'TOP LEFT'
|
|
13
|
+
| 'TOP RIGHT'
|
|
14
|
+
| 'BOTTOM LEFT'
|
|
15
|
+
| 'BOTTOM RIGHT';
|
|
16
|
+
|
|
17
|
+
export interface IReqoreNotificationsStyle {
|
|
18
|
+
positions: string[];
|
|
19
|
+
}
|
|
20
|
+
const StyledNotificationsWrapper = styled.div<IReqoreNotificationsStyle>`
|
|
21
|
+
position: fixed;
|
|
22
|
+
z-index: 10000;
|
|
23
|
+
padding: 0 20px 20px 20px;
|
|
24
|
+
|
|
25
|
+
${({ positions }) => {
|
|
26
|
+
const hasTwoPositions = positions.length > 1;
|
|
27
|
+
|
|
28
|
+
if (hasTwoPositions) {
|
|
29
|
+
return css`
|
|
30
|
+
${positions[0]}: 30px;
|
|
31
|
+
${positions[1]}: 30px;
|
|
32
|
+
`;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
return css`
|
|
36
|
+
${positions[0]}: 30px;
|
|
37
|
+
left: 50%;
|
|
38
|
+
transform: translateX(-50%);
|
|
39
|
+
`;
|
|
40
|
+
}}
|
|
41
|
+
`;
|
|
42
|
+
|
|
43
|
+
const ReqoreNotificationsWrapper: React.FC<IReqoreNotificationsWrapperProps> = forwardRef(
|
|
44
|
+
({ children, position = 'TOP' }, ref: any) => (
|
|
45
|
+
<StyledNotificationsWrapper
|
|
46
|
+
positions={position
|
|
47
|
+
.split(' ')
|
|
48
|
+
.map((p: IReqoreNotificationsPosition | string): string => p.toLowerCase())}
|
|
49
|
+
ref={ref}
|
|
50
|
+
>
|
|
51
|
+
{children}
|
|
52
|
+
</StyledNotificationsWrapper>
|
|
53
|
+
)
|
|
54
|
+
);
|
|
55
|
+
|
|
56
|
+
export default ReqoreNotificationsWrapper;
|
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
import { animated, useTransition } from '@react-spring/web';
|
|
2
|
+
import { darken, rgba } from 'polished';
|
|
3
|
+
import React, { forwardRef, useEffect, useState } from 'react';
|
|
4
|
+
import { useMount, useUnmount } from 'react-use';
|
|
5
|
+
import styled, { css, keyframes } from 'styled-components';
|
|
6
|
+
import { SPRING_CONFIG } from '../../constants/animations';
|
|
7
|
+
import { PADDING_FROM_SIZE, TABS_SIZE_TO_PX, TEXT_FROM_SIZE, TSizes } from '../../constants/sizes';
|
|
8
|
+
import { IReqoreIntent, IReqoreTheme } from '../../constants/theme';
|
|
9
|
+
import ReqoreThemeProvider from '../../containers/ThemeProvider';
|
|
10
|
+
import { fadeIn } from '../../helpers/animations';
|
|
11
|
+
import {
|
|
12
|
+
changeDarkness,
|
|
13
|
+
changeLightness,
|
|
14
|
+
getNotificationIntent,
|
|
15
|
+
getReadableColorFrom,
|
|
16
|
+
} from '../../helpers/colors';
|
|
17
|
+
import { IReqoreIconName } from '../../types/icons';
|
|
18
|
+
import ReqoreIcon from '../Icon';
|
|
19
|
+
|
|
20
|
+
export type IReqoreNotificationType = IReqoreIntent;
|
|
21
|
+
|
|
22
|
+
export interface IReqoreNotificationProps {
|
|
23
|
+
type?: IReqoreNotificationType;
|
|
24
|
+
intent?: IReqoreIntent;
|
|
25
|
+
title?: string;
|
|
26
|
+
content: string;
|
|
27
|
+
icon?: IReqoreIconName;
|
|
28
|
+
onClose?: () => any;
|
|
29
|
+
onClick?: () => any;
|
|
30
|
+
duration?: number;
|
|
31
|
+
onFinish?: () => any;
|
|
32
|
+
fluid?: boolean;
|
|
33
|
+
flat?: boolean;
|
|
34
|
+
inverted?: boolean;
|
|
35
|
+
size?: TSizes;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface IReqoreNotificationStyle {
|
|
39
|
+
theme: IReqoreTheme;
|
|
40
|
+
type?: IReqoreNotificationType;
|
|
41
|
+
clickable?: boolean;
|
|
42
|
+
timeout?: number;
|
|
43
|
+
intent?: IReqoreIntent;
|
|
44
|
+
hasShadow?: boolean;
|
|
45
|
+
fluid?: boolean;
|
|
46
|
+
flat?: boolean;
|
|
47
|
+
inverted?: boolean;
|
|
48
|
+
size?: TSizes;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
const timeoutAnimation = keyframes`
|
|
52
|
+
0% {
|
|
53
|
+
width: 100%;
|
|
54
|
+
}
|
|
55
|
+
100% {
|
|
56
|
+
width: 0;
|
|
57
|
+
}
|
|
58
|
+
`;
|
|
59
|
+
|
|
60
|
+
export const StyledReqoreNotification = styled(animated.div)<IReqoreNotificationStyle>`
|
|
61
|
+
min-width: ${({ fluid }) => (!fluid ? '200px' : undefined)};
|
|
62
|
+
max-width: ${({ fluid }) => (!fluid ? '450px' : undefined)};
|
|
63
|
+
border-radius: 5px;
|
|
64
|
+
min-height: ${({ size = 'normal' }: IReqoreNotificationStyle) => TABS_SIZE_TO_PX[size]}px;
|
|
65
|
+
display: flex;
|
|
66
|
+
flex: 0 1 auto;
|
|
67
|
+
overflow: auto;
|
|
68
|
+
position: relative;
|
|
69
|
+
transition: all 0.2s ease-out;
|
|
70
|
+
animation: 0.2s ${fadeIn} ease-in;
|
|
71
|
+
font-size: ${({ size = 'normal' }) => TEXT_FROM_SIZE[size]}px;
|
|
72
|
+
|
|
73
|
+
&:not(:first-child) {
|
|
74
|
+
margin-top: 10px;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
${({
|
|
78
|
+
theme,
|
|
79
|
+
type,
|
|
80
|
+
intent,
|
|
81
|
+
clickable,
|
|
82
|
+
timeout,
|
|
83
|
+
hasShadow,
|
|
84
|
+
flat,
|
|
85
|
+
inverted,
|
|
86
|
+
}: IReqoreNotificationStyle) => css`
|
|
87
|
+
background-color: ${inverted ? 'transparent' : getNotificationIntent(theme, intent || type)};
|
|
88
|
+
border: ${flat ? 0 : '1px solid'};
|
|
89
|
+
border-color: ${inverted
|
|
90
|
+
? getNotificationIntent(theme, intent || type)
|
|
91
|
+
: darken(0.2, getNotificationIntent(theme, intent || type))};
|
|
92
|
+
|
|
93
|
+
${hasShadow &&
|
|
94
|
+
css`
|
|
95
|
+
box-shadow: 0px 0px 30px 10px ${rgba('#000000', 0.3)};
|
|
96
|
+
`}
|
|
97
|
+
|
|
98
|
+
${timeout &&
|
|
99
|
+
css`
|
|
100
|
+
&::before {
|
|
101
|
+
content: '';
|
|
102
|
+
position: absolute;
|
|
103
|
+
display: block;
|
|
104
|
+
top: 0;
|
|
105
|
+
height: 3px;
|
|
106
|
+
background-color: ${changeLightness(getNotificationIntent(theme, intent || type), 0.1)};
|
|
107
|
+
animation-name: ${timeoutAnimation};
|
|
108
|
+
animation-duration: ${timeout}ms;
|
|
109
|
+
}
|
|
110
|
+
`}
|
|
111
|
+
|
|
112
|
+
color: ${inverted && (intent || type)
|
|
113
|
+
? getNotificationIntent(theme, intent || type)
|
|
114
|
+
: getReadableColorFrom(getNotificationIntent(theme, intent || type), true)};
|
|
115
|
+
|
|
116
|
+
${clickable &&
|
|
117
|
+
css`
|
|
118
|
+
cursor: pointer;
|
|
119
|
+
&:hover {
|
|
120
|
+
background-color: ${inverted
|
|
121
|
+
? rgba(changeDarkness(getNotificationIntent(theme, intent || type), 0.2), 0.1)
|
|
122
|
+
: changeLightness(getNotificationIntent(theme, intent || type), 0.0625)};
|
|
123
|
+
}
|
|
124
|
+
`}
|
|
125
|
+
`}
|
|
126
|
+
`;
|
|
127
|
+
|
|
128
|
+
export const StyledIconWrapper = styled.div<IReqoreNotificationStyle>`
|
|
129
|
+
min-height: ${({ size = 'normal' }: IReqoreNotificationStyle) => TABS_SIZE_TO_PX[size]}px;
|
|
130
|
+
flex: 0 1 auto;
|
|
131
|
+
flex-shrink: 0;
|
|
132
|
+
display: flex;
|
|
133
|
+
justify-content: center;
|
|
134
|
+
align-items: center;
|
|
135
|
+
transition: all 0.2s ease-out;
|
|
136
|
+
|
|
137
|
+
${({ clickable, theme, intent, type }) =>
|
|
138
|
+
clickable &&
|
|
139
|
+
css`
|
|
140
|
+
.reqore-icon {
|
|
141
|
+
transform: scale(0.85);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
&:hover {
|
|
145
|
+
cursor: pointer;
|
|
146
|
+
background-color: ${changeLightness(getNotificationIntent(theme, intent || type), 0.02)};
|
|
147
|
+
.reqore-icon {
|
|
148
|
+
transform: scale(1);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
`}
|
|
152
|
+
`;
|
|
153
|
+
|
|
154
|
+
export const StyledNotificationContentWrapper = styled.div<IReqoreNotificationStyle>`
|
|
155
|
+
flex: 1;
|
|
156
|
+
min-height: ${({ size = 'normal' }: IReqoreNotificationStyle) => TABS_SIZE_TO_PX[size]}px;
|
|
157
|
+
display: flex;
|
|
158
|
+
flex-flow: column;
|
|
159
|
+
justify-content: center;
|
|
160
|
+
padding: ${({ size = 'normal' }: IReqoreNotificationStyle) => `${PADDING_FROM_SIZE[size]}px`};
|
|
161
|
+
`;
|
|
162
|
+
|
|
163
|
+
export const StyledNotificationTitle = styled.h4`
|
|
164
|
+
margin: 0 0 5px 0;
|
|
165
|
+
padding: 0;
|
|
166
|
+
display: flex;
|
|
167
|
+
align-items: center;
|
|
168
|
+
`;
|
|
169
|
+
|
|
170
|
+
export const StyledNotificationContent = styled.p`
|
|
171
|
+
margin: 0;
|
|
172
|
+
padding: 0;
|
|
173
|
+
flex: 1;
|
|
174
|
+
display: flex;
|
|
175
|
+
align-items: center;
|
|
176
|
+
`;
|
|
177
|
+
|
|
178
|
+
export const typeToIcon: { [type: string]: IReqoreIconName } = {
|
|
179
|
+
info: 'InformationLine',
|
|
180
|
+
pending: 'TimerLine',
|
|
181
|
+
warning: 'AlarmWarningLine',
|
|
182
|
+
danger: 'ErrorWarningLine',
|
|
183
|
+
success: 'CheckFill',
|
|
184
|
+
muted: 'Forbid2Line',
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
const ReqoreNotification: React.FC<IReqoreNotificationProps> = forwardRef(
|
|
188
|
+
(
|
|
189
|
+
{
|
|
190
|
+
type,
|
|
191
|
+
intent,
|
|
192
|
+
icon,
|
|
193
|
+
title,
|
|
194
|
+
content,
|
|
195
|
+
onClose,
|
|
196
|
+
onClick,
|
|
197
|
+
duration,
|
|
198
|
+
onFinish,
|
|
199
|
+
flat,
|
|
200
|
+
inverted,
|
|
201
|
+
size = 'normal',
|
|
202
|
+
},
|
|
203
|
+
ref: any
|
|
204
|
+
) => {
|
|
205
|
+
const [internalTimeout, setInternalTimeout] = useState(null);
|
|
206
|
+
|
|
207
|
+
const transitions = useTransition(true, {
|
|
208
|
+
from: { opacity: 0, transform: 'scale(0.9)' },
|
|
209
|
+
enter: { opacity: 1, transform: 'scale(1)' },
|
|
210
|
+
leave: { opacity: 0, transform: 'scale(0.9)' },
|
|
211
|
+
config: SPRING_CONFIG,
|
|
212
|
+
});
|
|
213
|
+
|
|
214
|
+
useMount(() => {
|
|
215
|
+
if (duration) {
|
|
216
|
+
setInternalTimeout(
|
|
217
|
+
setTimeout(() => {
|
|
218
|
+
onFinish && onFinish();
|
|
219
|
+
}, duration)
|
|
220
|
+
);
|
|
221
|
+
}
|
|
222
|
+
});
|
|
223
|
+
|
|
224
|
+
useEffect(() => {
|
|
225
|
+
if (internalTimeout) {
|
|
226
|
+
clearTimeout(internalTimeout);
|
|
227
|
+
setInternalTimeout(
|
|
228
|
+
setTimeout(() => {
|
|
229
|
+
onFinish && onFinish();
|
|
230
|
+
}, duration)
|
|
231
|
+
);
|
|
232
|
+
}
|
|
233
|
+
}, [duration, type, intent, content, title]);
|
|
234
|
+
|
|
235
|
+
useUnmount(() => {
|
|
236
|
+
clearTimeout(internalTimeout);
|
|
237
|
+
});
|
|
238
|
+
|
|
239
|
+
return transitions((styles, item) =>
|
|
240
|
+
item ? (
|
|
241
|
+
<ReqoreThemeProvider>
|
|
242
|
+
<StyledReqoreNotification
|
|
243
|
+
key={`${duration}${type || intent}${title}${content}`}
|
|
244
|
+
type={type || intent}
|
|
245
|
+
hasShadow
|
|
246
|
+
timeout={duration}
|
|
247
|
+
clickable={!!onClick}
|
|
248
|
+
onClick={onClick}
|
|
249
|
+
flat={flat}
|
|
250
|
+
inverted={inverted}
|
|
251
|
+
className='reqore-notification'
|
|
252
|
+
ref={ref}
|
|
253
|
+
style={styles}
|
|
254
|
+
size={size}
|
|
255
|
+
>
|
|
256
|
+
{type || intent || icon ? (
|
|
257
|
+
<StyledIconWrapper type={type || intent} size={size}>
|
|
258
|
+
<ReqoreIcon
|
|
259
|
+
icon={icon || typeToIcon[type || intent]}
|
|
260
|
+
margin={'both'}
|
|
261
|
+
size={`${TEXT_FROM_SIZE[size]}px`}
|
|
262
|
+
/>
|
|
263
|
+
</StyledIconWrapper>
|
|
264
|
+
) : null}
|
|
265
|
+
<StyledNotificationContentWrapper size={size}>
|
|
266
|
+
{title && <StyledNotificationTitle>{title}</StyledNotificationTitle>}
|
|
267
|
+
<StyledNotificationContent>{content}</StyledNotificationContent>
|
|
268
|
+
</StyledNotificationContentWrapper>
|
|
269
|
+
<StyledIconWrapper
|
|
270
|
+
type={type || intent}
|
|
271
|
+
size={size}
|
|
272
|
+
clickable
|
|
273
|
+
className='reqore-notification-close'
|
|
274
|
+
onClick={(event) => {
|
|
275
|
+
event.stopPropagation();
|
|
276
|
+
onClose && onClose();
|
|
277
|
+
}}
|
|
278
|
+
>
|
|
279
|
+
<ReqoreIcon icon='CloseFill' margin='both' size={`${TEXT_FROM_SIZE[size]}px`} />
|
|
280
|
+
</StyledIconWrapper>
|
|
281
|
+
</StyledReqoreNotification>
|
|
282
|
+
</ReqoreThemeProvider>
|
|
283
|
+
) : null
|
|
284
|
+
);
|
|
285
|
+
}
|
|
286
|
+
);
|
|
287
|
+
|
|
288
|
+
export default ReqoreNotification;
|
|
Binary file
|
|
@@ -0,0 +1,333 @@
|
|
|
1
|
+
import { size } from 'lodash';
|
|
2
|
+
import { rgba } from 'polished';
|
|
3
|
+
import { forwardRef, ReactElement, useCallback, useMemo, useState } from 'react';
|
|
4
|
+
import { useUpdateEffect } from 'react-use';
|
|
5
|
+
import styled, { css } from 'styled-components';
|
|
6
|
+
import { RADIUS_FROM_SIZE } from '../../constants/sizes';
|
|
7
|
+
import { IReqoreIntent, IReqoreTheme } from '../../constants/theme';
|
|
8
|
+
import ReqoreThemeProvider from '../../containers/ThemeProvider';
|
|
9
|
+
import {
|
|
10
|
+
changeDarkness,
|
|
11
|
+
changeLightness,
|
|
12
|
+
getMainBackgroundColor,
|
|
13
|
+
getReadableColor,
|
|
14
|
+
} from '../../helpers/colors';
|
|
15
|
+
import { useReqoreTheme } from '../../hooks/useTheme';
|
|
16
|
+
import { IReqoreIconName } from '../../types/icons';
|
|
17
|
+
import ReqoreButton from '../Button';
|
|
18
|
+
import ReqoreControlGroup from '../ControlGroup';
|
|
19
|
+
import ReqoreDropdown from '../Dropdown';
|
|
20
|
+
import { IReqoreDropdownItemProps } from '../Dropdown/item';
|
|
21
|
+
import ReqoreIcon from '../Icon';
|
|
22
|
+
|
|
23
|
+
export interface IReqorePanelAction {
|
|
24
|
+
icon?: IReqoreIconName;
|
|
25
|
+
label?: string;
|
|
26
|
+
onClick?: () => void;
|
|
27
|
+
intent?: IReqoreIntent;
|
|
28
|
+
actions?: IReqoreDropdownItemProps[];
|
|
29
|
+
className?: string;
|
|
30
|
+
id?: string;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export interface IReqorePanelBottomAction extends IReqorePanelAction {
|
|
34
|
+
position: 'left' | 'right';
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface IReqorePanelProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
38
|
+
as?: any;
|
|
39
|
+
children?: any;
|
|
40
|
+
icon?: IReqoreIconName;
|
|
41
|
+
label?: string | ReactElement<any>;
|
|
42
|
+
collapsible?: boolean;
|
|
43
|
+
isCollapsed?: boolean;
|
|
44
|
+
onClose?: () => void;
|
|
45
|
+
rounded?: boolean;
|
|
46
|
+
actions?: IReqorePanelAction[];
|
|
47
|
+
bottomActions?: IReqorePanelBottomAction[];
|
|
48
|
+
customTheme?: IReqoreTheme;
|
|
49
|
+
intent?: IReqoreIntent;
|
|
50
|
+
flat?: boolean;
|
|
51
|
+
unMountContentOnCollapse?: boolean;
|
|
52
|
+
onCollapseChange?: (isCollapsed?: boolean) => void;
|
|
53
|
+
fill?: boolean;
|
|
54
|
+
padded?: boolean;
|
|
55
|
+
contentStyle?: React.CSSProperties;
|
|
56
|
+
opacity?: number;
|
|
57
|
+
blur?: number;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export interface IStyledPanel extends IReqorePanelProps {
|
|
61
|
+
theme: IReqoreTheme;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export const StyledPanel = styled.div<IStyledPanel>`
|
|
65
|
+
background-color: ${({ theme, opacity = 1 }: IStyledPanel) =>
|
|
66
|
+
changeDarkness(rgba(getMainBackgroundColor(theme), opacity), 0.03)};
|
|
67
|
+
border-radius: ${({ rounded }) => (rounded ? RADIUS_FROM_SIZE.normal : 0)}px;
|
|
68
|
+
border: ${({ theme, flat, opacity = 1 }) =>
|
|
69
|
+
flat
|
|
70
|
+
? undefined
|
|
71
|
+
: `1px solid ${changeLightness(rgba(getMainBackgroundColor(theme), opacity), 0.2)}`};
|
|
72
|
+
color: ${({ theme }) => getReadableColor(theme, undefined, undefined, true)};
|
|
73
|
+
overflow: hidden;
|
|
74
|
+
display: flex;
|
|
75
|
+
flex-flow: column;
|
|
76
|
+
position: relative;
|
|
77
|
+
z-index: 1;
|
|
78
|
+
backdrop-filter: ${({ blur, opacity }) => (blur && opacity < 1 ? `blur(${blur}px)` : undefined)};
|
|
79
|
+
|
|
80
|
+
${({ fill, isCollapsed }) =>
|
|
81
|
+
!isCollapsed && fill
|
|
82
|
+
? css`
|
|
83
|
+
height: 100%;
|
|
84
|
+
flex: 1;
|
|
85
|
+
`
|
|
86
|
+
: undefined}
|
|
87
|
+
`;
|
|
88
|
+
|
|
89
|
+
export const StyledPanelTitle = styled.div<IStyledPanel>`
|
|
90
|
+
display: flex;
|
|
91
|
+
background-color: ${({ theme, opacity = 1 }: IStyledPanel) =>
|
|
92
|
+
changeLightness(rgba(getMainBackgroundColor(theme), opacity), 0.07)};
|
|
93
|
+
justify-content: space-between;
|
|
94
|
+
height: 40px;
|
|
95
|
+
align-items: center;
|
|
96
|
+
padding: 0 5px 0 15px;
|
|
97
|
+
border-bottom: ${({ theme, isCollapsed, flat, opacity = 1 }) =>
|
|
98
|
+
!isCollapsed && !flat
|
|
99
|
+
? `1px solid ${changeLightness(rgba(getMainBackgroundColor(theme), opacity), 0.2)}`
|
|
100
|
+
: null};
|
|
101
|
+
transition: background-color 0.2s ease-out;
|
|
102
|
+
overflow: hidden;
|
|
103
|
+
flex: 0 0 auto;
|
|
104
|
+
|
|
105
|
+
${({ collapsible }) =>
|
|
106
|
+
collapsible &&
|
|
107
|
+
css`
|
|
108
|
+
cursor: pointer;
|
|
109
|
+
&:hover {
|
|
110
|
+
background-color: ${({ theme, opacity = 1 }: IStyledPanel) =>
|
|
111
|
+
changeLightness(rgba(getMainBackgroundColor(theme), opacity), 0.1)};
|
|
112
|
+
}
|
|
113
|
+
`}
|
|
114
|
+
`;
|
|
115
|
+
|
|
116
|
+
export const StyledPanelBottomActions = styled(StyledPanelTitle)`
|
|
117
|
+
padding-left: 5px;
|
|
118
|
+
border-bottom: 0;
|
|
119
|
+
border-top: ${({ theme, flat, opacity = 1 }) =>
|
|
120
|
+
!flat
|
|
121
|
+
? `1px solid ${changeLightness(rgba(getMainBackgroundColor(theme), opacity), 0.2)}`
|
|
122
|
+
: null};
|
|
123
|
+
`;
|
|
124
|
+
|
|
125
|
+
export const StyledPanelContent = styled.div<IStyledPanel>`
|
|
126
|
+
display: ${({ isCollapsed }) => (isCollapsed ? 'none' : undefined)};
|
|
127
|
+
min-height: ${({ isCollapsed }) => (isCollapsed ? undefined : '40px')};
|
|
128
|
+
padding: ${({ padded }) => (!padded ? undefined : '10px')};
|
|
129
|
+
flex: 1;
|
|
130
|
+
overflow: auto;
|
|
131
|
+
`;
|
|
132
|
+
|
|
133
|
+
export const StyledPanelTitleLabel = styled.span`
|
|
134
|
+
white-space: nowrap;
|
|
135
|
+
text-overflow: ellipsis;
|
|
136
|
+
overflow: hidden;
|
|
137
|
+
`;
|
|
138
|
+
|
|
139
|
+
export const StyledPanelTitleHeader = styled.div`
|
|
140
|
+
display: flex;
|
|
141
|
+
justify-content: center;
|
|
142
|
+
align-items: center;
|
|
143
|
+
overflow: hidden;
|
|
144
|
+
padding-right: 5px;
|
|
145
|
+
|
|
146
|
+
${StyledPanelTitleLabel} {
|
|
147
|
+
font-weight: 600;
|
|
148
|
+
}
|
|
149
|
+
`;
|
|
150
|
+
|
|
151
|
+
export const ReqorePanel = forwardRef(
|
|
152
|
+
(
|
|
153
|
+
{
|
|
154
|
+
children,
|
|
155
|
+
label,
|
|
156
|
+
collapsible,
|
|
157
|
+
onClose,
|
|
158
|
+
rounded = true,
|
|
159
|
+
actions = [],
|
|
160
|
+
bottomActions = [],
|
|
161
|
+
isCollapsed,
|
|
162
|
+
customTheme,
|
|
163
|
+
icon,
|
|
164
|
+
intent,
|
|
165
|
+
className,
|
|
166
|
+
flat,
|
|
167
|
+
unMountContentOnCollapse = true,
|
|
168
|
+
onCollapseChange,
|
|
169
|
+
padded = true,
|
|
170
|
+
contentStyle,
|
|
171
|
+
...rest
|
|
172
|
+
}: IReqorePanelProps,
|
|
173
|
+
ref
|
|
174
|
+
) => {
|
|
175
|
+
const [_isCollapsed, setIsCollapsed] = useState(isCollapsed || false);
|
|
176
|
+
const theme = useReqoreTheme('main', customTheme, intent);
|
|
177
|
+
|
|
178
|
+
useUpdateEffect(() => {
|
|
179
|
+
setIsCollapsed(!!isCollapsed);
|
|
180
|
+
}, [isCollapsed]);
|
|
181
|
+
|
|
182
|
+
const hasTitleBar: boolean = useMemo(
|
|
183
|
+
() => !!label || collapsible || !!onClose || !!size(actions),
|
|
184
|
+
[label, collapsible, onClose, actions]
|
|
185
|
+
);
|
|
186
|
+
|
|
187
|
+
const handleCollapseClick = useCallback(() => {
|
|
188
|
+
if (collapsible) {
|
|
189
|
+
setIsCollapsed(!_isCollapsed);
|
|
190
|
+
onCollapseChange?.(!_isCollapsed);
|
|
191
|
+
}
|
|
192
|
+
}, [collapsible, _isCollapsed, onCollapseChange]);
|
|
193
|
+
|
|
194
|
+
const leftBottomActions: IReqorePanelBottomAction[] = useMemo(
|
|
195
|
+
() => bottomActions.filter(({ position }) => position === 'left'),
|
|
196
|
+
[bottomActions]
|
|
197
|
+
);
|
|
198
|
+
|
|
199
|
+
const rightBottomActions: IReqorePanelBottomAction[] = useMemo(
|
|
200
|
+
() => bottomActions.filter(({ position }) => position === 'right'),
|
|
201
|
+
[bottomActions]
|
|
202
|
+
);
|
|
203
|
+
|
|
204
|
+
const hasBottomActions: boolean = useMemo(
|
|
205
|
+
() => !!(size(leftBottomActions) || size(rightBottomActions)),
|
|
206
|
+
[leftBottomActions, rightBottomActions]
|
|
207
|
+
);
|
|
208
|
+
|
|
209
|
+
const renderActions = ({
|
|
210
|
+
label,
|
|
211
|
+
actions,
|
|
212
|
+
intent,
|
|
213
|
+
className,
|
|
214
|
+
id,
|
|
215
|
+
...rest
|
|
216
|
+
}: IReqorePanelAction) =>
|
|
217
|
+
size(actions) ? (
|
|
218
|
+
<ReqoreDropdown
|
|
219
|
+
{...rest}
|
|
220
|
+
label={label}
|
|
221
|
+
componentProps={{
|
|
222
|
+
intent,
|
|
223
|
+
id,
|
|
224
|
+
minimal: true,
|
|
225
|
+
className,
|
|
226
|
+
onClick: (e: React.MouseEvent<HTMLButtonElement>) => {
|
|
227
|
+
e.stopPropagation();
|
|
228
|
+
},
|
|
229
|
+
}}
|
|
230
|
+
items={actions}
|
|
231
|
+
/>
|
|
232
|
+
) : (
|
|
233
|
+
<ReqoreButton
|
|
234
|
+
{...rest}
|
|
235
|
+
id={id}
|
|
236
|
+
className={className}
|
|
237
|
+
customTheme={theme}
|
|
238
|
+
intent={intent}
|
|
239
|
+
onClick={
|
|
240
|
+
rest.onClick
|
|
241
|
+
? (e: React.MouseEvent<HTMLButtonElement>) => {
|
|
242
|
+
e.stopPropagation();
|
|
243
|
+
rest.onClick?.();
|
|
244
|
+
}
|
|
245
|
+
: undefined
|
|
246
|
+
}
|
|
247
|
+
>
|
|
248
|
+
{label}
|
|
249
|
+
</ReqoreButton>
|
|
250
|
+
);
|
|
251
|
+
|
|
252
|
+
return (
|
|
253
|
+
<ReqoreThemeProvider theme={theme}>
|
|
254
|
+
<StyledPanel
|
|
255
|
+
{...rest}
|
|
256
|
+
as={rest.as || 'div'}
|
|
257
|
+
ref={ref as any}
|
|
258
|
+
isCollapsed={_isCollapsed}
|
|
259
|
+
rounded={rounded}
|
|
260
|
+
flat={flat}
|
|
261
|
+
className={`${className || ''} reqore-panel`}
|
|
262
|
+
>
|
|
263
|
+
{hasTitleBar && (
|
|
264
|
+
<StyledPanelTitle
|
|
265
|
+
flat={flat}
|
|
266
|
+
isCollapsed={_isCollapsed}
|
|
267
|
+
collapsible={collapsible}
|
|
268
|
+
className='reqore-panel-title'
|
|
269
|
+
onClick={handleCollapseClick}
|
|
270
|
+
theme={theme}
|
|
271
|
+
opacity={rest.opacity}
|
|
272
|
+
>
|
|
273
|
+
<StyledPanelTitleHeader>
|
|
274
|
+
{icon && <ReqoreIcon icon={icon} margin='right' />}
|
|
275
|
+
{typeof label === 'string' ? (
|
|
276
|
+
<StyledPanelTitleLabel>{label}</StyledPanelTitleLabel>
|
|
277
|
+
) : (
|
|
278
|
+
label
|
|
279
|
+
)}
|
|
280
|
+
</StyledPanelTitleHeader>
|
|
281
|
+
<ReqoreControlGroup minimal>
|
|
282
|
+
{actions.map(renderActions)}
|
|
283
|
+
{collapsible && (
|
|
284
|
+
<ReqoreButton
|
|
285
|
+
customTheme={theme}
|
|
286
|
+
icon={_isCollapsed ? 'ArrowDownSLine' : 'ArrowUpSLine'}
|
|
287
|
+
onClick={handleCollapseClick}
|
|
288
|
+
tooltip={_isCollapsed ? 'Expand' : 'Collapse'}
|
|
289
|
+
/>
|
|
290
|
+
)}
|
|
291
|
+
{onClose && (
|
|
292
|
+
<ReqoreButton
|
|
293
|
+
customTheme={theme}
|
|
294
|
+
icon='CloseLine'
|
|
295
|
+
onClick={(e: React.MouseEvent<HTMLButtonElement>) => {
|
|
296
|
+
e.stopPropagation();
|
|
297
|
+
onClose?.();
|
|
298
|
+
}}
|
|
299
|
+
/>
|
|
300
|
+
)}
|
|
301
|
+
</ReqoreControlGroup>
|
|
302
|
+
</StyledPanelTitle>
|
|
303
|
+
)}
|
|
304
|
+
{!_isCollapsed || (_isCollapsed && !unMountContentOnCollapse) ? (
|
|
305
|
+
<StyledPanelContent
|
|
306
|
+
className='reqore-panel-content'
|
|
307
|
+
isCollapsed={_isCollapsed}
|
|
308
|
+
style={contentStyle}
|
|
309
|
+
padded={padded}
|
|
310
|
+
>
|
|
311
|
+
{children}
|
|
312
|
+
</StyledPanelContent>
|
|
313
|
+
) : null}
|
|
314
|
+
{hasBottomActions && !_isCollapsed ? (
|
|
315
|
+
<StyledPanelBottomActions
|
|
316
|
+
flat={flat}
|
|
317
|
+
className='reqore-panel-bottom-actions'
|
|
318
|
+
theme={theme}
|
|
319
|
+
opacity={rest.opacity}
|
|
320
|
+
>
|
|
321
|
+
<ReqoreControlGroup minimal>
|
|
322
|
+
{leftBottomActions.map(renderActions)}
|
|
323
|
+
</ReqoreControlGroup>
|
|
324
|
+
<ReqoreControlGroup minimal>
|
|
325
|
+
{rightBottomActions.map(renderActions)}
|
|
326
|
+
</ReqoreControlGroup>
|
|
327
|
+
</StyledPanelBottomActions>
|
|
328
|
+
) : null}
|
|
329
|
+
</StyledPanel>
|
|
330
|
+
</ReqoreThemeProvider>
|
|
331
|
+
);
|
|
332
|
+
}
|
|
333
|
+
);
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { noop } from 'lodash';
|
|
2
|
+
import { ReqorePanel } from '../../index';
|
|
3
|
+
|
|
4
|
+
export const SomePanel = () => (
|
|
5
|
+
<ReqorePanel
|
|
6
|
+
collapsible
|
|
7
|
+
intent='danger'
|
|
8
|
+
title='DANGER'
|
|
9
|
+
icon='AlarmWarningLine'
|
|
10
|
+
padded
|
|
11
|
+
actions={[
|
|
12
|
+
{
|
|
13
|
+
icon: 'Settings2Line',
|
|
14
|
+
onClick: noop,
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
icon: 'UserFill',
|
|
18
|
+
onClick: noop,
|
|
19
|
+
label: 'Test',
|
|
20
|
+
},
|
|
21
|
+
]}
|
|
22
|
+
>
|
|
23
|
+
I am a message a very long message - Shadowlands has mechanisms put in place for allowing
|
|
24
|
+
players to catch up on Renown, the system of gaining favor and unlocking rewards, Campaign
|
|
25
|
+
chapters, and soulbinds within your Covenant. This system works for main characters who have
|
|
26
|
+
started late, for alts, for players who have switched Covenants and are starting over, and for
|
|
27
|
+
players who have simply missed weekly quests for earning Renown due to being away from the game.
|
|
28
|
+
</ReqorePanel>
|
|
29
|
+
);
|