@pareto-engineering/design-system 4.3.5 → 4.3.7-alpha.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/cjs/a/AnimatedBlobs/AnimatedBlobs.js +1 -1
- package/dist/cjs/a/AnimatedBlobs/index.js +1 -1
- package/dist/cjs/a/AnimatedGradient/AnimatedGradient.js +1 -1
- package/dist/cjs/a/AnimatedGradient/index.js +1 -1
- package/dist/cjs/a/AnimatedGradient/webGIRenderer.js +1 -1
- package/dist/cjs/a/AppContext/ContextProvider.js +1 -1
- package/dist/cjs/a/AppContext/index.js +1 -1
- package/dist/cjs/a/AppContext/useApp.js +1 -1
- package/dist/cjs/a/BlurOverlay/BlurOverlay.js +1 -1
- package/dist/cjs/a/BlurOverlay/index.js +1 -1
- package/dist/cjs/a/ContentTree/ContentTree.js +1 -1
- package/dist/cjs/a/ContentTree/common/Tree/Tree.js +1 -1
- package/dist/cjs/a/ContentTree/common/Tree/index.js +1 -1
- package/dist/cjs/a/ContentTree/common/index.js +1 -1
- package/dist/cjs/a/ContentTree/common/useFirstVisibleNode.js +1 -1
- package/dist/cjs/a/ContentTree/index.js +1 -1
- package/dist/cjs/a/Conversation/Conversation.js +1 -1
- package/dist/cjs/a/Conversation/common/Message/Message.js +1 -1
- package/dist/cjs/a/Conversation/common/Message/index.js +1 -1
- package/dist/cjs/a/Conversation/index.js +1 -1
- package/dist/cjs/a/Conversation/useConversation.js +1 -1
- package/dist/cjs/a/DatePicker/DatePicker.js +2 -2
- package/dist/cjs/a/DatePicker/index.js +1 -1
- package/dist/cjs/a/DotInfo/DotInfo.js +1 -1
- package/dist/cjs/a/DotInfo/index.js +1 -1
- package/dist/cjs/a/Figure/Figure.js +1 -1
- package/dist/cjs/a/Figure/index.js +1 -1
- package/dist/cjs/a/HamburgerButton/HamburgerButton.js +2 -2
- package/dist/cjs/a/HamburgerButton/index.js +1 -1
- package/dist/cjs/a/IconList/IconList.js +2 -2
- package/dist/cjs/a/IconList/common/Item/Item.js +2 -2
- package/dist/cjs/a/IconList/common/Item/index.js +1 -1
- package/dist/cjs/a/IconList/index.js +1 -1
- package/dist/cjs/a/Label/Label.js +2 -2
- package/dist/cjs/a/Label/index.js +1 -1
- package/dist/cjs/a/LoadingCircle/LoadingCircle.js +1 -1
- package/dist/cjs/a/LoadingCircle/index.js +1 -1
- package/dist/cjs/a/MetaCard/MetaCard.js +1 -1
- package/dist/cjs/a/MetaCard/index.js +1 -1
- package/dist/cjs/a/Notification/Notification.js +113 -0
- package/dist/cjs/a/Notification/index.js +13 -0
- package/dist/cjs/a/Notification/styles.scss +57 -0
- package/dist/cjs/a/NotificationStack/NotificationStack.js +69 -0
- package/dist/cjs/a/NotificationStack/index.js +13 -0
- package/dist/cjs/a/NotificationStack/styles.scss +17 -0
- package/dist/cjs/a/People/People.js +1 -1
- package/dist/cjs/a/People/common/Person/Person.js +1 -1
- package/dist/cjs/a/People/common/Person/index.js +1 -1
- package/dist/cjs/a/People/index.js +1 -1
- package/dist/cjs/a/Popover/Popover.js +1 -1
- package/dist/cjs/a/Popover/index.js +1 -1
- package/dist/cjs/a/ProgressBar/ProgressBar.js +1 -1
- package/dist/cjs/a/ProgressBar/index.js +1 -1
- package/dist/cjs/a/Quote/Quote.js +1 -1
- package/dist/cjs/a/Quote/index.js +1 -1
- package/dist/cjs/a/Removable/Removable.js +1 -1
- package/dist/cjs/a/Removable/index.js +1 -1
- package/dist/cjs/a/SVG/SVG.js +2 -2
- package/dist/cjs/a/SVG/common/UseSVG/UseSVG.js +1 -1
- package/dist/cjs/a/SVG/common/UseSVG/index.js +1 -1
- package/dist/cjs/a/SVG/index.js +1 -1
- package/dist/cjs/a/SnapScroller/SnapScroller.js +1 -1
- package/dist/cjs/a/SnapScroller/index.js +1 -1
- package/dist/cjs/a/Spinner/Spinner.js +1 -1
- package/dist/cjs/a/Spinner/index.js +1 -1
- package/dist/cjs/a/TextSteps/TextSteps.js +1 -1
- package/dist/cjs/a/TextSteps/index.js +1 -1
- package/dist/cjs/a/Timestamp/Timestamp.js +1 -1
- package/dist/cjs/a/Timestamp/index.js +1 -1
- package/dist/cjs/a/Tip/Tip.js +1 -1
- package/dist/cjs/a/Tip/index.js +1 -1
- package/dist/cjs/a/ToggleSwitch/ToggleSwitch.js +1 -1
- package/dist/cjs/a/ToggleSwitch/index.js +1 -1
- package/dist/cjs/a/Tooltip/Tooltip.js +1 -1
- package/dist/cjs/a/Tooltip/index.js +1 -1
- package/dist/cjs/a/XMLEditor/XMLEditor.js +1 -1
- package/dist/cjs/a/XMLEditor/common/index.js +1 -1
- package/dist/cjs/a/XMLEditor/index.js +1 -1
- package/dist/cjs/a/index.js +14 -0
- package/dist/cjs/b/Button/Button.js +2 -2
- package/dist/cjs/b/Button/common/Group/Group.js +2 -2
- package/dist/cjs/b/Button/common/Group/index.js +1 -1
- package/dist/cjs/b/Button/index.js +1 -1
- package/dist/cjs/b/Card/Card.js +1 -1
- package/dist/cjs/b/Card/common/Group/Group.js +2 -2
- package/dist/cjs/b/Card/common/Group/index.js +1 -1
- package/dist/cjs/b/Card/common/Section/Section.js +2 -2
- package/dist/cjs/b/Card/common/Section/index.js +1 -1
- package/dist/cjs/b/Card/index.js +1 -1
- package/dist/cjs/b/Logo/Logo.js +1 -1
- package/dist/cjs/b/Logo/index.js +1 -1
- package/dist/cjs/b/Page/Page.js +2 -2
- package/dist/cjs/b/Page/common/PageHelmet/PageHelmet.js +2 -2
- package/dist/cjs/b/Page/common/PageHelmet/index.js +1 -1
- package/dist/cjs/b/Page/common/Section/Section.js +2 -2
- package/dist/cjs/b/Page/common/Section/index.js +1 -1
- package/dist/cjs/b/Page/index.js +1 -1
- package/dist/cjs/b/Page/usePage.js +1 -1
- package/dist/cjs/b/SocialMediaButton/SocialMediaButton.js +2 -2
- package/dist/cjs/b/SocialMediaButton/index.js +1 -1
- package/dist/cjs/b/ThemeSelector/ThemeSelector.js +1 -1
- package/dist/cjs/b/ThemeSelector/index.js +1 -1
- package/dist/cjs/b/Title/Title.js +2 -2
- package/dist/cjs/b/Title/index.js +1 -1
- package/dist/cjs/c/Modal/Modal.js +1 -1
- package/dist/cjs/c/Modal/common/ModalHeader/ModalHeader.js +1 -1
- package/dist/cjs/c/Modal/common/ModalHeader/index.js +1 -1
- package/dist/cjs/c/Modal/index.js +1 -1
- package/dist/cjs/c/Shortener/Shortener.js +1 -1
- package/dist/cjs/c/Shortener/index.js +1 -1
- package/dist/cjs/c/SocialMediaShareButton/SocialMediaShareButton.js +1 -1
- package/dist/cjs/c/SocialMediaShareButton/index.js +1 -1
- package/dist/cjs/f/FormInput/FormInput.js +2 -2
- package/dist/cjs/f/FormInput/index.js +1 -1
- package/dist/cjs/f/common/Debugger/Debugger.js +1 -1
- package/dist/cjs/f/common/Debugger/index.js +1 -1
- package/dist/cjs/f/common/Description/Description.js +1 -1
- package/dist/cjs/f/common/Description/index.js +1 -1
- package/dist/cjs/f/common/Label/Label.js +1 -1
- package/dist/cjs/f/common/Label/index.js +1 -1
- package/dist/cjs/f/common/utils/lookUpInputValueFromFetchedOptions.js +1 -1
- package/dist/cjs/f/fields/Checkbox/Checkbox.js +2 -2
- package/dist/cjs/f/fields/Checkbox/index.js +1 -1
- package/dist/cjs/f/fields/ChoicesInput/ChoicesInput.js +2 -2
- package/dist/cjs/f/fields/ChoicesInput/common/Choice/Choice.js +2 -2
- package/dist/cjs/f/fields/ChoicesInput/common/Choice/index.js +1 -1
- package/dist/cjs/f/fields/ChoicesInput/index.js +1 -1
- package/dist/cjs/f/fields/EditorInput/EditorInput.js +1 -1
- package/dist/cjs/f/fields/EditorInput/common/BlockFormatDropDown/BlockFormatDropDown.js +1 -1
- package/dist/cjs/f/fields/EditorInput/common/BlockFormatDropDown/index.js +1 -1
- package/dist/cjs/f/fields/EditorInput/common/ColorPicker/ColorPicker.js +1 -1
- package/dist/cjs/f/fields/EditorInput/common/ColorPicker/index.js +1 -1
- package/dist/cjs/f/fields/EditorInput/common/FontSizeDropDown/FontSizeDropDown.js +1 -1
- package/dist/cjs/f/fields/EditorInput/common/FontSizeDropDown/index.js +1 -1
- package/dist/cjs/f/fields/EditorInput/common/ToolbarPlugin/ToolbarPlugin.js +1 -1
- package/dist/cjs/f/fields/EditorInput/common/ToolbarPlugin/index.js +1 -1
- package/dist/cjs/f/fields/EditorInput/common/TreeViewPlugin.js +1 -1
- package/dist/cjs/f/fields/EditorInput/common/index.js +1 -1
- package/dist/cjs/f/fields/EditorInput/index.js +1 -1
- package/dist/cjs/f/fields/FileUpload/FileUpload.js +1 -1
- package/dist/cjs/f/fields/FileUpload/common/Preview/Preview.js +1 -1
- package/dist/cjs/f/fields/FileUpload/common/Preview/index.js +1 -1
- package/dist/cjs/f/fields/FileUpload/index.js +1 -1
- package/dist/cjs/f/fields/LinkInput/LinkInput.js +2 -2
- package/dist/cjs/f/fields/LinkInput/index.js +1 -1
- package/dist/cjs/f/fields/QueryChoices/QueryChoices.js +2 -2
- package/dist/cjs/f/fields/QueryChoices/index.js +1 -1
- package/dist/cjs/f/fields/QueryCombobox/QueryCombobox.js +1 -1
- package/dist/cjs/f/fields/QueryCombobox/common/Combobox/Combobox.js +2 -2
- package/dist/cjs/f/fields/QueryCombobox/common/Combobox/index.js +1 -1
- package/dist/cjs/f/fields/QueryCombobox/common/Menu/Menu.js +2 -2
- package/dist/cjs/f/fields/QueryCombobox/common/Menu/index.js +1 -1
- package/dist/cjs/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +2 -2
- package/dist/cjs/f/fields/QueryCombobox/common/MultipleCombobox/index.js +1 -1
- package/dist/cjs/f/fields/QueryCombobox/index.js +1 -1
- package/dist/cjs/f/fields/QuerySelect/QuerySelect.js +1 -1
- package/dist/cjs/f/fields/QuerySelect/index.js +1 -1
- package/dist/cjs/f/fields/RatingsInput/RatingsInput.js +1 -1
- package/dist/cjs/f/fields/RatingsInput/common/Rating/Rating.js +2 -2
- package/dist/cjs/f/fields/RatingsInput/common/Rating/index.js +1 -1
- package/dist/cjs/f/fields/RatingsInput/index.js +1 -1
- package/dist/cjs/f/fields/SelectInput/SelectInput.js +2 -2
- package/dist/cjs/f/fields/SelectInput/common/Menu/Menu.js +2 -2
- package/dist/cjs/f/fields/SelectInput/common/Menu/index.js +1 -1
- package/dist/cjs/f/fields/SelectInput/common/Multiple/Multiple.js +2 -2
- package/dist/cjs/f/fields/SelectInput/common/Multiple/index.js +1 -1
- package/dist/cjs/f/fields/SelectInput/common/Single/Single.js +2 -2
- package/dist/cjs/f/fields/SelectInput/common/Single/index.js +1 -1
- package/dist/cjs/f/fields/SelectInput/index.js +1 -1
- package/dist/cjs/f/fields/TextInput/TextInput.js +2 -2
- package/dist/cjs/f/fields/TextInput/index.js +1 -1
- package/dist/cjs/f/fields/TextareaInput/TextareaInput.js +2 -2
- package/dist/cjs/f/fields/TextareaInput/index.js +1 -1
- package/dist/cjs/g/DragAndDrop/DragAndDrop.js +2 -2
- package/dist/cjs/g/DragAndDrop/common/DraggableItem/DraggableItem.js +2 -2
- package/dist/cjs/g/DragAndDrop/common/DraggableItem/index.js +1 -1
- package/dist/cjs/g/DragAndDrop/index.js +1 -1
- package/dist/cjs/g/ExpandableLexicalPreview/ExpandableLexicalPreview.js +1 -1
- package/dist/cjs/g/ExpandableLexicalPreview/common/NewWindowPortal/NewWindowPortal.js +1 -1
- package/dist/cjs/g/ExpandableLexicalPreview/common/NewWindowPortal/index.js +1 -1
- package/dist/cjs/g/ExpandableLexicalPreview/index.js +1 -1
- package/dist/cjs/g/FormBuilder/FormBuilder.js +1 -1
- package/dist/cjs/g/FormBuilder/common/Builder/Builder.js +1 -1
- package/dist/cjs/g/FormBuilder/common/Builder/common/ActionsContainer/ActionsContainer.js +1 -1
- package/dist/cjs/g/FormBuilder/common/Builder/common/ActionsContainer/index.js +1 -1
- package/dist/cjs/g/FormBuilder/common/Builder/common/InputBuilder/InputBuilder.js +1 -1
- package/dist/cjs/g/FormBuilder/common/Builder/common/InputBuilder/index.js +1 -1
- package/dist/cjs/g/FormBuilder/common/Builder/common/Section/Section.js +1 -1
- package/dist/cjs/g/FormBuilder/common/Builder/common/Section/index.js +1 -1
- package/dist/cjs/g/FormBuilder/common/Builder/index.js +1 -1
- package/dist/cjs/g/FormBuilder/common/Renderer/Renderer.js +2 -2
- package/dist/cjs/g/FormBuilder/common/Renderer/common/Section/Section.js +2 -2
- package/dist/cjs/g/FormBuilder/common/Renderer/common/Section/index.js +1 -1
- package/dist/cjs/g/FormBuilder/common/Renderer/index.js +1 -1
- package/dist/cjs/g/FormBuilder/index.js +1 -1
- package/dist/cjs/test/QueryLoader/common/PreloadedTestData/PreloadedTestData.js +1 -1
- package/dist/cjs/test/QueryLoader/common/PreloadedTestData/index.js +1 -1
- package/dist/cjs/test/QueryLoader/index.js +1 -1
- package/dist/cjs/utils/hooks/index.js +1 -1
- package/dist/cjs/utils/hooks/useDynamicPosition.js +1 -1
- package/dist/cjs/utils/hooks/useWindowSize.js +1 -1
- package/dist/es/a/AnimatedGradient/webGIRenderer.js +1 -1
- package/dist/es/a/AppContext/useApp.js +1 -1
- package/dist/es/a/AppContext/useTheme.js +2 -2
- package/dist/es/a/Conversation/useConversation.js +1 -1
- package/dist/es/a/DatePicker/DatePicker.js +1 -1
- package/dist/es/a/HamburgerButton/HamburgerButton.js +1 -1
- package/dist/es/a/IconList/IconList.js +1 -1
- package/dist/es/a/IconList/common/Item/Item.js +1 -1
- package/dist/es/a/Label/Label.js +1 -1
- package/dist/es/a/Notification/Notification.js +107 -0
- package/dist/es/a/Notification/index.js +1 -0
- package/dist/es/a/Notification/styles.scss +57 -0
- package/dist/es/a/NotificationStack/NotificationStack.js +63 -0
- package/dist/es/a/NotificationStack/index.js +1 -0
- package/dist/es/a/NotificationStack/styles.scss +17 -0
- package/dist/es/a/SVG/SVG.js +1 -1
- package/dist/es/a/index.js +2 -0
- package/dist/es/b/Button/Button.js +1 -1
- package/dist/es/b/Button/common/Group/Group.js +1 -1
- package/dist/es/b/Card/common/Group/Group.js +1 -1
- package/dist/es/b/Card/common/Section/Section.js +1 -1
- package/dist/es/b/Page/Page.js +1 -1
- package/dist/es/b/Page/common/PageHelmet/PageHelmet.js +1 -1
- package/dist/es/b/Page/common/Section/Section.js +1 -1
- package/dist/es/b/Page/usePage.js +1 -1
- package/dist/es/b/SocialMediaButton/SocialMediaButton.js +1 -1
- package/dist/es/b/Title/Title.js +1 -1
- package/dist/es/f/FormInput/FormInput.js +1 -1
- package/dist/es/f/fields/Checkbox/Checkbox.js +1 -1
- package/dist/es/f/fields/ChoicesInput/ChoicesInput.js +1 -1
- package/dist/es/f/fields/ChoicesInput/common/Choice/Choice.js +1 -1
- package/dist/es/f/fields/LinkInput/LinkInput.js +1 -1
- package/dist/es/f/fields/QueryChoices/QueryChoices.js +1 -1
- package/dist/es/f/fields/QueryCombobox/common/Combobox/Combobox.js +1 -1
- package/dist/es/f/fields/QueryCombobox/common/Menu/Menu.js +1 -1
- package/dist/es/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +1 -1
- package/dist/es/f/fields/RatingsInput/common/Rating/Rating.js +1 -1
- package/dist/es/f/fields/SelectInput/SelectInput.js +1 -1
- package/dist/es/f/fields/SelectInput/common/Menu/Menu.js +1 -1
- package/dist/es/f/fields/SelectInput/common/Multiple/Multiple.js +1 -1
- package/dist/es/f/fields/SelectInput/common/Single/Single.js +1 -1
- package/dist/es/f/fields/TextInput/TextInput.js +1 -1
- package/dist/es/f/fields/TextareaInput/TextareaInput.js +1 -1
- package/dist/es/g/DragAndDrop/DragAndDrop.js +1 -1
- package/dist/es/g/DragAndDrop/common/DraggableItem/DraggableItem.js +1 -1
- package/dist/es/g/FormBuilder/common/Renderer/Renderer.js +1 -1
- package/dist/es/g/FormBuilder/common/Renderer/common/Section/Section.js +1 -1
- package/package.json +2 -2
- package/src/stories/a/Label.stories.jsx +1 -1
- package/src/stories/a/Notification.stories.jsx +86 -0
- package/src/stories/a/NotificationStack.stories.jsx +59 -0
- package/src/stories/b/Button/Button.stories.jsx +1 -1
- package/src/stories/c/Modal.stories.jsx +1 -1
- package/src/ui/a/Notification/Notification.jsx +142 -0
- package/src/ui/a/Notification/index.js +1 -0
- package/src/ui/a/Notification/styles.scss +57 -0
- package/src/ui/a/NotificationStack/NotificationStack.jsx +90 -0
- package/src/ui/a/NotificationStack/index.js +1 -0
- package/src/ui/a/NotificationStack/styles.scss +17 -0
- package/src/ui/a/index.js +2 -0
- package/tests/__snapshots__/Storyshots.test.js.snap +349 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
2
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { useEffect } from 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
2
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { memo } from 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
2
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { memo } from 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
2
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { useState } from 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
2
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { useState } from 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
2
|
/* @pareto-engineering/generator-front 1.1.1-alpha.2 */
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { useState, useEffect } from 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
2
|
/* eslint-disable no-alert */
|
|
3
3
|
/* @pareto-engineering/generator-front 1.1.1-alpha.2 */
|
|
4
4
|
import * as React from 'react';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pareto-engineering/design-system",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.7-alpha.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/es/index.js",
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"relay-test-utils": "^15.0.0"
|
|
83
83
|
},
|
|
84
84
|
"browserslist": "> 2%",
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "ce68be790178fb6346bc622a6610c8ccbd7351d6"
|
|
86
86
|
}
|
|
@@ -13,7 +13,7 @@ export default {
|
|
|
13
13
|
// storyfn => <div className="">{ storyfn() }</div>,
|
|
14
14
|
],
|
|
15
15
|
argTypes:{
|
|
16
|
-
color :{ control: { type: 'select', options: ALL_COLORS }
|
|
16
|
+
color :{ control: { type: 'select' }, options: ALL_COLORS },
|
|
17
17
|
isCompact:{ control: { type: 'boolean' } },
|
|
18
18
|
isGhost :{ control: { type: 'boolean' } },
|
|
19
19
|
},
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
import * as React from 'react'
|
|
3
|
+
|
|
4
|
+
import { Notification } from 'ui'
|
|
5
|
+
|
|
6
|
+
import { ALL_COLORS } from 'stories/colors'
|
|
7
|
+
|
|
8
|
+
const COLORS_OPTIONS = ['success', 'error', 'blocked', 'in-progress']
|
|
9
|
+
|
|
10
|
+
export default {
|
|
11
|
+
title :'a/Notification',
|
|
12
|
+
component :Notification,
|
|
13
|
+
decorators:[
|
|
14
|
+
// storyfn => <div className="">{ storyfn() }</div>,
|
|
15
|
+
],
|
|
16
|
+
argTypes:{
|
|
17
|
+
color :{ control: { type: 'select' }, options: ALL_COLORS },
|
|
18
|
+
type :{ control: { type: 'select' }, options: COLORS_OPTIONS },
|
|
19
|
+
message :{ control: { type: 'text' } },
|
|
20
|
+
isVisible :{ control: { type: 'boolean' } },
|
|
21
|
+
overrideIsVisible:{ control: { type: 'boolean' } },
|
|
22
|
+
closeNotification:{ action: 'closeNotification' },
|
|
23
|
+
},
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export const Base = {
|
|
27
|
+
render:(args) => (
|
|
28
|
+
<div
|
|
29
|
+
style={{
|
|
30
|
+
display :'flex',
|
|
31
|
+
justifyContent:'center',
|
|
32
|
+
alignItems :'center',
|
|
33
|
+
height :'100px',
|
|
34
|
+
}}
|
|
35
|
+
>
|
|
36
|
+
<Notification
|
|
37
|
+
{...args}
|
|
38
|
+
/>
|
|
39
|
+
</div>
|
|
40
|
+
),
|
|
41
|
+
args:{
|
|
42
|
+
message :'This is a notification with a custom color',
|
|
43
|
+
color :'deepblue',
|
|
44
|
+
isVisible:true,
|
|
45
|
+
},
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export const Error = {
|
|
49
|
+
...Base,
|
|
50
|
+
args:{
|
|
51
|
+
...Base.args,
|
|
52
|
+
message:'This is an error notification',
|
|
53
|
+
type :'error',
|
|
54
|
+
color :null,
|
|
55
|
+
},
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export const Warning = {
|
|
59
|
+
...Base,
|
|
60
|
+
args:{
|
|
61
|
+
...Base.args,
|
|
62
|
+
message:'This is a warning notification',
|
|
63
|
+
type :'warning',
|
|
64
|
+
color :null,
|
|
65
|
+
},
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export const Info = {
|
|
69
|
+
...Base,
|
|
70
|
+
args:{
|
|
71
|
+
...Base.args,
|
|
72
|
+
message:'This is an info notification',
|
|
73
|
+
type :'info',
|
|
74
|
+
color :null,
|
|
75
|
+
},
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export const Success = {
|
|
79
|
+
...Base,
|
|
80
|
+
args:{
|
|
81
|
+
...Base.args,
|
|
82
|
+
message:'This is a success notification',
|
|
83
|
+
type :'success',
|
|
84
|
+
color :null,
|
|
85
|
+
},
|
|
86
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
import * as React from 'react'
|
|
3
|
+
|
|
4
|
+
import { NotificationStack } from 'ui'
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
title :'a/NotificationStack',
|
|
8
|
+
component :NotificationStack,
|
|
9
|
+
decorators:[
|
|
10
|
+
// storyfn => <div className="">{ storyfn() }</div>,
|
|
11
|
+
],
|
|
12
|
+
argTypes:{
|
|
13
|
+
notifications :{ control: { type: 'object' } },
|
|
14
|
+
maxNotifications:{ control: { type: 'number' } },
|
|
15
|
+
},
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const notifications = [
|
|
19
|
+
{
|
|
20
|
+
message :'This is an error notification',
|
|
21
|
+
type :'error',
|
|
22
|
+
isVisible:true,
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
message :'This is a warning notification',
|
|
26
|
+
type :'warning',
|
|
27
|
+
isVisible:true,
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
message :'This is an info notification',
|
|
31
|
+
type :'info',
|
|
32
|
+
isVisible:true,
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
message :'This is a success notification',
|
|
36
|
+
type :'success',
|
|
37
|
+
isVisible:true,
|
|
38
|
+
},
|
|
39
|
+
]
|
|
40
|
+
|
|
41
|
+
export const Base = {
|
|
42
|
+
render:(args) => (
|
|
43
|
+
<div
|
|
44
|
+
style={{
|
|
45
|
+
display :'flex',
|
|
46
|
+
justifyContent:'center',
|
|
47
|
+
alignItems :'center',
|
|
48
|
+
height :'500px',
|
|
49
|
+
}}
|
|
50
|
+
>
|
|
51
|
+
<NotificationStack
|
|
52
|
+
{...args}
|
|
53
|
+
/>
|
|
54
|
+
</div>
|
|
55
|
+
),
|
|
56
|
+
args:{
|
|
57
|
+
notifications,
|
|
58
|
+
},
|
|
59
|
+
}
|
|
@@ -14,7 +14,7 @@ export default {
|
|
|
14
14
|
// storyfn => <div className="">{ storyfn() }</div>,
|
|
15
15
|
],
|
|
16
16
|
argTypes:{
|
|
17
|
-
color :{ control: { type: 'select', options: ALL_COLORS }
|
|
17
|
+
color :{ control: { type: 'select' }, options: ALL_COLORS },
|
|
18
18
|
disabled :{ control: { type: 'boolean' } },
|
|
19
19
|
isGhost :{ control: { type: 'boolean' } },
|
|
20
20
|
isSimple :{ control: { type: 'boolean' } },
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
import * as React from 'react'
|
|
3
|
+
|
|
4
|
+
import { useState } from 'react'
|
|
5
|
+
|
|
6
|
+
import PropTypes from 'prop-types'
|
|
7
|
+
|
|
8
|
+
import styleNames from '@pareto-engineering/bem/exports'
|
|
9
|
+
|
|
10
|
+
import { Button } from 'ui'
|
|
11
|
+
|
|
12
|
+
// Local Definitions
|
|
13
|
+
|
|
14
|
+
import './styles.scss'
|
|
15
|
+
|
|
16
|
+
const baseClassName = styleNames.base
|
|
17
|
+
|
|
18
|
+
const componentClassName = 'notification'
|
|
19
|
+
|
|
20
|
+
const iconsMap = {
|
|
21
|
+
success:'I',
|
|
22
|
+
error :'g',
|
|
23
|
+
warning:'x',
|
|
24
|
+
info :'h',
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
const COLORS_MAP = {
|
|
28
|
+
success:'success',
|
|
29
|
+
error :'error',
|
|
30
|
+
warning:'blocked',
|
|
31
|
+
info :'in-progress',
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
const Notification = ({
|
|
35
|
+
id,
|
|
36
|
+
className:userClassName,
|
|
37
|
+
style,
|
|
38
|
+
color,
|
|
39
|
+
message,
|
|
40
|
+
type,
|
|
41
|
+
isVisible,
|
|
42
|
+
overrideIsVisible,
|
|
43
|
+
closeNotification,
|
|
44
|
+
...otherProps
|
|
45
|
+
}) => {
|
|
46
|
+
const [isVisibleState, setIsVisibleState] = useState(isVisible)
|
|
47
|
+
if (!isVisibleState && !overrideIsVisible) {
|
|
48
|
+
return null
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
return (
|
|
52
|
+
<div
|
|
53
|
+
id={id}
|
|
54
|
+
className={[
|
|
55
|
+
baseClassName,
|
|
56
|
+
componentClassName,
|
|
57
|
+
userClassName,
|
|
58
|
+
`x-${color || COLORS_MAP[type]}`,
|
|
59
|
+
]
|
|
60
|
+
.filter((e) => e)
|
|
61
|
+
.join(' ')}
|
|
62
|
+
style={style}
|
|
63
|
+
{...otherProps}
|
|
64
|
+
>
|
|
65
|
+
<div className="message-container">
|
|
66
|
+
<span className="icon">{iconsMap[type]}</span>
|
|
67
|
+
<span className="message">
|
|
68
|
+
{message}
|
|
69
|
+
</span>
|
|
70
|
+
</div>
|
|
71
|
+
|
|
72
|
+
<Button
|
|
73
|
+
className="close"
|
|
74
|
+
isCompact
|
|
75
|
+
color={color || COLORS_MAP[type]}
|
|
76
|
+
onClick={() => {
|
|
77
|
+
if (closeNotification) closeNotification()
|
|
78
|
+
setIsVisibleState(false)
|
|
79
|
+
}}
|
|
80
|
+
>
|
|
81
|
+
<span className="icon">
|
|
82
|
+
Y
|
|
83
|
+
</span>
|
|
84
|
+
</Button>
|
|
85
|
+
</div>
|
|
86
|
+
)
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
Notification.propTypes = {
|
|
90
|
+
/**
|
|
91
|
+
* The HTML id for this element
|
|
92
|
+
*/
|
|
93
|
+
id:PropTypes.string,
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* The HTML class names for this element
|
|
97
|
+
*/
|
|
98
|
+
className:PropTypes.string,
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* The React-written, css properties for this element.
|
|
102
|
+
*/
|
|
103
|
+
style:PropTypes.objectOf(PropTypes.string),
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* The color of the notification
|
|
107
|
+
*/
|
|
108
|
+
color:PropTypes.string,
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* The message of the notification
|
|
112
|
+
*/
|
|
113
|
+
message:PropTypes.string,
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* The type of the notification
|
|
117
|
+
*/
|
|
118
|
+
type:PropTypes.oneOf(['success', 'error', 'warning', 'info']),
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* The visibility of the notification
|
|
122
|
+
*/
|
|
123
|
+
isVisible:PropTypes.bool,
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Override the visibility of the notification
|
|
127
|
+
*/
|
|
128
|
+
overrideIsVisible:PropTypes.bool,
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* The action to close the notification
|
|
132
|
+
*/
|
|
133
|
+
closeNotification:PropTypes.func,
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
Notification.defaultProps = {
|
|
137
|
+
isVisible :true,
|
|
138
|
+
overrideIsVisible:false,
|
|
139
|
+
type :'error',
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export default Notification
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Notification } from './Notification'
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
|
|
3
|
+
@use "@pareto-engineering/bem";
|
|
4
|
+
@use "@pareto-engineering/styles/src/mixins";
|
|
5
|
+
@use "@pareto-engineering/styles/src/globals" as *;
|
|
6
|
+
|
|
7
|
+
$default-padding: 1em;
|
|
8
|
+
$default-margin: 1em;
|
|
9
|
+
$default-border-radius: 1.5em;
|
|
10
|
+
$default-width: clamp(var(--min-width, 30em), var(--width, 50%), var(--max-width, 100%));
|
|
11
|
+
$default-height: clamp(var(--min-height, 3em), var(--height, 5em), var(--max-height, 10em));
|
|
12
|
+
|
|
13
|
+
.#{bem.$base}.notification {
|
|
14
|
+
align-items: center;
|
|
15
|
+
background-color: var(--x);
|
|
16
|
+
border-radius: $default-border-radius $default-border-radius 0 0;
|
|
17
|
+
bottom: 0;
|
|
18
|
+
color: var(--on-x);
|
|
19
|
+
display: flex;
|
|
20
|
+
height: $default-height;
|
|
21
|
+
justify-content: space-between;
|
|
22
|
+
overflow: hidden;
|
|
23
|
+
padding: $default-padding calc($default-padding * 2);
|
|
24
|
+
position: absolute;
|
|
25
|
+
right: 0;
|
|
26
|
+
width: $default-width;
|
|
27
|
+
z-index: 9999;
|
|
28
|
+
|
|
29
|
+
&.stacked {
|
|
30
|
+
position: relative;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
> .message-container {
|
|
34
|
+
align-items: center;
|
|
35
|
+
display: flex;
|
|
36
|
+
overflow: auto;
|
|
37
|
+
|
|
38
|
+
> .message {
|
|
39
|
+
font-size: calc(var(--s0) * 1em);
|
|
40
|
+
margin-left: calc($default-margin / 2);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
> span {
|
|
44
|
+
font-size: calc(var(--s2) * 1em);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.#{bem.$base}.button {
|
|
49
|
+
padding: calc($default-padding / 2);
|
|
50
|
+
|
|
51
|
+
&:focus {
|
|
52
|
+
background-color: transparent;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
import * as React from 'react'
|
|
3
|
+
|
|
4
|
+
import PropTypes from 'prop-types'
|
|
5
|
+
|
|
6
|
+
import styleNames from '@pareto-engineering/bem/exports'
|
|
7
|
+
|
|
8
|
+
import { Notification } from '../Notification'
|
|
9
|
+
|
|
10
|
+
// Local Definitions
|
|
11
|
+
|
|
12
|
+
import './styles.scss'
|
|
13
|
+
|
|
14
|
+
const baseClassName = styleNames.base
|
|
15
|
+
|
|
16
|
+
const componentClassName = 'notification-stack'
|
|
17
|
+
|
|
18
|
+
const NotificationStack = ({
|
|
19
|
+
id,
|
|
20
|
+
className:userClassName,
|
|
21
|
+
style,
|
|
22
|
+
notifications,
|
|
23
|
+
maxNotifications,
|
|
24
|
+
...otherProps
|
|
25
|
+
}) => {
|
|
26
|
+
const notificationsToDisplay = notifications.slice(0, maxNotifications)
|
|
27
|
+
|
|
28
|
+
return (
|
|
29
|
+
<div
|
|
30
|
+
id={id}
|
|
31
|
+
className={[
|
|
32
|
+
baseClassName,
|
|
33
|
+
componentClassName,
|
|
34
|
+
userClassName,
|
|
35
|
+
]
|
|
36
|
+
.filter((e) => e)
|
|
37
|
+
.join(' ')}
|
|
38
|
+
style={style}
|
|
39
|
+
{...otherProps}
|
|
40
|
+
>
|
|
41
|
+
{notificationsToDisplay.map((notification) => (
|
|
42
|
+
<Notification
|
|
43
|
+
className="stacked"
|
|
44
|
+
key={notification?.id || notification.message}
|
|
45
|
+
{...notification}
|
|
46
|
+
/>
|
|
47
|
+
))}
|
|
48
|
+
</div>
|
|
49
|
+
)
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
NotificationStack.propTypes = {
|
|
53
|
+
/**
|
|
54
|
+
* The HTML id for this element
|
|
55
|
+
*/
|
|
56
|
+
id:PropTypes.string,
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* The HTML class names for this element
|
|
60
|
+
*/
|
|
61
|
+
className:PropTypes.string,
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* The React-written, css properties for this element.
|
|
65
|
+
*/
|
|
66
|
+
style:PropTypes.objectOf(PropTypes.string),
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* The list of notifications to display
|
|
70
|
+
*/
|
|
71
|
+
notifications:PropTypes.arrayOf(PropTypes.shape({
|
|
72
|
+
id :PropTypes.string,
|
|
73
|
+
color :PropTypes.string,
|
|
74
|
+
message :PropTypes.string,
|
|
75
|
+
type :PropTypes.string,
|
|
76
|
+
isVisible :PropTypes.bool,
|
|
77
|
+
closeNotification:PropTypes.func,
|
|
78
|
+
})),
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* The maximum number of notifications to display
|
|
82
|
+
*/
|
|
83
|
+
maxNotifications:PropTypes.number,
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
NotificationStack.defaultProps = {
|
|
87
|
+
maxNotifications:5,
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export default NotificationStack
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as NotificationStack } from './NotificationStack'
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
@use "@pareto-engineering/bem";
|
|
2
|
+
@use "@pareto-engineering/styles/src/mixins";
|
|
3
|
+
@use "@pareto-engineering/styles/src/globals" as *;
|
|
4
|
+
|
|
5
|
+
$default-padding: 1em;
|
|
6
|
+
|
|
7
|
+
.#{bem.$base}.notification-stack {
|
|
8
|
+
align-items: center;
|
|
9
|
+
bottom: 0;
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
padding: $default-padding calc($default-padding * 2);
|
|
13
|
+
position: fixed;
|
|
14
|
+
right: 0;
|
|
15
|
+
row-gap: $default-padding;
|
|
16
|
+
z-index: 9999;
|
|
17
|
+
}
|
package/src/ui/a/index.js
CHANGED
|
@@ -10,6 +10,8 @@ export { HamburgerButton } from './HamburgerButton'
|
|
|
10
10
|
export { IconList } from './IconList'
|
|
11
11
|
export { Label } from './Label'
|
|
12
12
|
export { LoadingCircle } from './LoadingCircle'
|
|
13
|
+
export { Notification } from './Notification'
|
|
14
|
+
export { NotificationStack } from './NotificationStack'
|
|
13
15
|
export { People } from './People'
|
|
14
16
|
export { Popover } from './Popover'
|
|
15
17
|
export { ProgressBar } from './ProgressBar'
|