@pareto-engineering/design-system 5.3.0 → 5.4.0
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/README.md +54 -0
- package/dist/DatePicker-DHuh_8q6.js +1305 -0
- package/dist/ExposePlainTextPlugin-DeW6mVaE.js +33 -0
- package/dist/FormBuilder-653sa2uJ.js +28728 -0
- package/dist/Lexical-BIl3XjnU.js +8899 -0
- package/dist/LexicalComposerContext-D_q7RDyF.js +56 -0
- package/dist/TreeViewPlugin-BqY3Z-6y.js +2412 -0
- package/dist/YAxis-C5dCrcDo.js +1116 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
- package/dist/assets/AnimatedBlobs.css +1 -0
- package/dist/assets/AreaChart.css +1 -0
- package/dist/assets/BarChart.css +1 -0
- package/dist/assets/BlurOverlay.css +1 -0
- package/dist/assets/CustomLegend.css +1 -0
- package/dist/assets/CustomTooltipContent.css +1 -0
- package/dist/assets/DatePicker.css +1 -0
- package/dist/assets/Description.css +1 -0
- package/dist/assets/DotInfo.css +1 -0
- package/dist/assets/DragAndDrop.css +1 -0
- package/dist/assets/DraggableItem.css +1 -0
- package/dist/assets/Figure.css +1 -0
- package/dist/assets/FormBuilder.css +1 -0
- package/dist/assets/Group.css +1 -0
- package/dist/assets/HamburgerButton.css +1 -0
- package/dist/assets/IconList.css +1 -0
- package/dist/assets/Label.css +1 -0
- package/dist/assets/Label2.css +1 -0
- package/dist/assets/LoadingCircle.css +1 -0
- package/dist/assets/MetaCard.css +1 -0
- package/dist/assets/People.css +1 -0
- package/dist/assets/PieChart.css +1 -0
- package/dist/assets/Popover.css +1 -0
- package/dist/assets/ProgressBar.css +1 -0
- package/dist/assets/Quote.css +1 -0
- package/dist/assets/RadioInput.css +1 -0
- package/dist/assets/Removable.css +1 -0
- package/dist/assets/SVG.css +1 -0
- package/dist/assets/SnapScroller.css +1 -0
- package/dist/assets/SocialMediaShareButton.css +1 -0
- package/dist/assets/Spinner.css +1 -0
- package/dist/assets/TextSteps.css +1 -0
- package/dist/assets/ThroughPutIndicator.css +1 -0
- package/dist/assets/Timestamp.css +1 -0
- package/dist/assets/Tip.css +1 -0
- package/dist/assets/ToggleSwitch.css +1 -0
- package/dist/assets/Tooltip.css +1 -0
- package/dist/assets/XMLEditor.css +1 -0
- package/dist/assets/YlabelsDropDown.css +1 -0
- package/dist/assets/exports.css +0 -0
- package/dist/debounce-Cm69Z_cF.js +209 -0
- package/dist/exports.module-DmUnHWIJ.js +20 -0
- package/dist/generateCategoricalChart-BBPxYd_a.js +15749 -0
- package/dist/index-BUor0nOw.js +12623 -0
- package/dist/index-C_b9PQD8.js +1360 -0
- package/dist/index-CxkFVI6N.js +667 -0
- package/dist/index.js +137 -0
- package/dist/stories/StyleGuide/helpers.js +132 -0
- package/dist/stories/a/AppContext.stories.js +85 -0
- package/dist/stories/a/AreaChart.stories.js +182 -0
- package/dist/stories/a/BarChart.stories.js +173 -0
- package/dist/stories/a/BlurOverlay.stories.js +79 -0
- package/dist/stories/a/ContentTree.stories.js +112 -0
- package/dist/stories/a/Conversation.stories.js +113 -0
- package/dist/stories/a/DatePicker.stories.js +128 -0
- package/dist/stories/a/DotInfo.stories.js +73 -0
- package/dist/stories/a/Figure.stories.js +69 -0
- package/dist/stories/a/HamburgerButton.stories.js +65 -0
- package/dist/stories/a/IconList.stories.js +85 -0
- package/dist/stories/a/Label.stories.js +79 -0
- package/dist/stories/a/LoadingCircle.stories.js +69 -0
- package/dist/stories/a/MetaCard.stories.js +67 -0
- package/dist/stories/a/Notification.stories.js +124 -0
- package/dist/stories/a/NotificationStack.stories.js +102 -0
- package/dist/stories/a/People.stories.js +96 -0
- package/dist/stories/a/PieChart.stories.js +79 -0
- package/dist/stories/a/Popover.stories.js +147 -0
- package/dist/stories/a/ProgressBar.stories.js +86 -0
- package/dist/stories/a/Quote.stories.js +87 -0
- package/dist/stories/a/Removable.stories.js +62 -0
- package/dist/stories/a/SVG.stories.js +155 -0
- package/dist/stories/a/SnapScroller.stories.js +105 -0
- package/dist/stories/a/Spinner.stories.js +62 -0
- package/dist/stories/a/TextSteps.stories.js +57 -0
- package/dist/stories/a/Timestamp.stories.js +92 -0
- package/dist/stories/a/Tip.stories.js +67 -0
- package/dist/stories/a/ToggleSwitch.stories.js +67 -0
- package/dist/stories/a/Tooltip.stories.js +107 -0
- package/dist/stories/a/XMLEditor.stories.js +59 -0
- package/dist/stories/b/Button/Button.stories.js +154 -0
- package/dist/stories/b/Button/Group.stories.js +59 -0
- package/dist/stories/b/Card/Card.stories.js +85 -0
- package/dist/stories/b/Card/Group.stories.js +83 -0
- package/dist/stories/b/Logo.stories.js +69 -0
- package/dist/stories/b/Page.stories.js +94 -0
- package/dist/stories/b/SocialMediaButton.stories.js +95 -0
- package/dist/stories/b/ThemeSelector.stories.js +86 -0
- package/dist/stories/b/Title.stories.js +82 -0
- package/dist/stories/c/Modal.stories.js +76 -0
- package/dist/stories/c/Shortener.stories.js +73 -0
- package/dist/stories/c/SocialMediaShareButton.stories.js +72 -0
- package/dist/stories/colors.js +63 -0
- package/dist/stories/f/Checkbox.stories.js +133 -0
- package/dist/stories/f/ChoicesInput.stories.js +167 -0
- package/dist/stories/f/Description.stories.js +75 -0
- package/dist/stories/f/EditorInput.stories.js +104 -0
- package/dist/stories/f/FileUpload.stories.js +100 -0
- package/dist/stories/f/Label.stories.js +66 -0
- package/dist/stories/f/LinkInput.stories.js +121 -0
- package/dist/stories/f/RadioInput.stories.js +74 -0
- package/dist/stories/f/RatingsInput.stories.js +116 -0
- package/dist/stories/f/SelectInput.stories.js +160 -0
- package/dist/stories/f/TextInput.stories.js +148 -0
- package/dist/stories/f/TextareaInput.stories.js +138 -0
- package/dist/stories/g/DragAndDrop.stories.js +150 -0
- package/dist/stories/g/ExpandableLexicalPreview.stories.js +68 -0
- package/dist/stories/g/FormBuilder.stories.js +140 -0
- package/dist/stories/utils/Router.js +12 -0
- package/dist/stories/utils/generateNodeId.js +7 -0
- package/dist/stories/utils/lorem.js +18 -0
- package/dist/stories/utils/testData.js +66 -0
- package/dist/throttle-BCrS-Wew.js +24 -0
- package/dist/ui/a/AnimatedBlobs/AnimatedBlobs.js +75 -0
- package/dist/ui/a/AnimatedBlobs/index.js +4 -0
- package/dist/ui/a/AnimatedGradient/AnimatedGradient.js +41 -0
- package/dist/ui/a/AnimatedGradient/index.js +4 -0
- package/dist/ui/a/AnimatedGradient/webGIRenderer.js +814 -0
- package/dist/ui/a/AppContext/Context.js +5 -0
- package/dist/ui/a/AppContext/ContextProvider.js +73 -0
- package/dist/ui/a/AppContext/index.js +10 -0
- package/dist/ui/a/AppContext/useApp.js +6 -0
- package/dist/ui/a/AppContext/useTheme.js +25 -0
- package/dist/ui/a/BlurOverlay/BlurOverlay.js +53 -0
- package/dist/ui/a/BlurOverlay/index.js +4 -0
- package/dist/ui/a/Charts/AreaChart/AreaChart.js +697 -0
- package/dist/ui/a/Charts/AreaChart/index.js +4 -0
- package/dist/ui/a/Charts/BarChart/BarChart.js +165 -0
- package/dist/ui/a/Charts/BarChart/index.js +4 -0
- package/dist/ui/a/Charts/Common/CustomLegend/CustomLegend.js +96 -0
- package/dist/ui/a/Charts/Common/CustomLegend/index.js +4 -0
- package/dist/ui/a/Charts/Common/CustomTooltipContent/CustomTooltipContent.js +137 -0
- package/dist/ui/a/Charts/Common/CustomTooltipContent/index.js +4 -0
- package/dist/ui/a/Charts/Common/YLabelsDropDown/YlabelsDropDown.js +107 -0
- package/dist/ui/a/Charts/Common/YLabelsDropDown/index.js +4 -0
- package/dist/ui/a/Charts/Common/index.js +8 -0
- package/dist/ui/a/Charts/PieChart/PieChart.js +1227 -0
- package/dist/ui/a/Charts/PieChart/index.js +4 -0
- package/dist/ui/a/Charts/index.js +8 -0
- package/dist/ui/a/ContentTree/ContentTree.js +10 -0
- package/dist/ui/a/ContentTree/common/Tree/Tree.js +51 -0
- package/dist/ui/a/ContentTree/common/Tree/index.js +4 -0
- package/dist/ui/a/ContentTree/common/index.js +8 -0
- package/dist/ui/a/ContentTree/common/useContentTree.js +44 -0
- package/dist/ui/a/ContentTree/common/useFirstVisibleNode.js +20 -0
- package/dist/ui/a/ContentTree/index.js +4 -0
- package/dist/ui/a/Conversation/Context.js +5 -0
- package/dist/ui/a/Conversation/Conversation.js +51 -0
- package/dist/ui/a/Conversation/common/Message/Message.js +97 -0
- package/dist/ui/a/Conversation/common/Message/index.js +4 -0
- package/dist/ui/a/Conversation/common/index.js +4 -0
- package/dist/ui/a/Conversation/index.js +8 -0
- package/dist/ui/a/Conversation/useConversation.js +6 -0
- package/dist/ui/a/DatePicker/DatePicker.js +9 -0
- package/dist/ui/a/DatePicker/index.js +4 -0
- package/dist/ui/a/DotInfo/DotInfo.js +76 -0
- package/dist/ui/a/DotInfo/index.js +4 -0
- package/dist/ui/a/Figure/Figure.js +59 -0
- package/dist/ui/a/Figure/index.js +4 -0
- package/dist/ui/a/HamburgerButton/HamburgerButton.js +71 -0
- package/dist/ui/a/HamburgerButton/index.js +4 -0
- package/dist/ui/a/IconList/IconList.js +64 -0
- package/dist/ui/a/IconList/common/Item/Item.js +58 -0
- package/dist/ui/a/IconList/common/Item/index.js +4 -0
- package/dist/ui/a/IconList/common/index.js +4 -0
- package/dist/ui/a/IconList/index.js +4 -0
- package/dist/ui/a/Label/Label.js +72 -0
- package/dist/ui/a/Label/index.js +4 -0
- package/dist/ui/a/LoadingCircle/LoadingCircle.js +96 -0
- package/dist/ui/a/LoadingCircle/index.js +4 -0
- package/dist/ui/a/MetaCard/MetaCard.js +54 -0
- package/dist/ui/a/MetaCard/index.js +4 -0
- package/dist/ui/a/Notification/Notification.js +50 -0
- package/dist/ui/a/Notification/index.js +4 -0
- package/dist/ui/a/NotificationStack/NotificationStack.js +8 -0
- package/dist/ui/a/NotificationStack/index.js +4 -0
- package/dist/ui/a/People/People.js +65 -0
- package/dist/ui/a/People/common/Person/Person.js +82 -0
- package/dist/ui/a/People/common/Person/index.js +4 -0
- package/dist/ui/a/People/common/index.js +4 -0
- package/dist/ui/a/People/index.js +4 -0
- package/dist/ui/a/Popover/Popover.js +124 -0
- package/dist/ui/a/Popover/index.js +4 -0
- package/dist/ui/a/ProgressBar/ProgressBar.js +70 -0
- package/dist/ui/a/ProgressBar/index.js +4 -0
- package/dist/ui/a/Quote/Quote.js +73 -0
- package/dist/ui/a/Quote/index.js +4 -0
- package/dist/ui/a/Removable/Removable.js +55 -0
- package/dist/ui/a/Removable/index.js +4 -0
- package/dist/ui/a/SVG/SVG.js +152 -0
- package/dist/ui/a/SVG/common/UseSVG/UseSVG.js +59 -0
- package/dist/ui/a/SVG/common/UseSVG/index.js +4 -0
- package/dist/ui/a/SVG/common/index.js +4 -0
- package/dist/ui/a/SVG/index.js +4 -0
- package/dist/ui/a/SnapScroller/SnapScroller.js +72 -0
- package/dist/ui/a/SnapScroller/index.js +4 -0
- package/dist/ui/a/Spinner/Spinner.js +48 -0
- package/dist/ui/a/Spinner/index.js +4 -0
- package/dist/ui/a/TextSteps/TextSteps.js +58 -0
- package/dist/ui/a/TextSteps/index.js +4 -0
- package/dist/ui/a/ThroughPutIndicator/ThroughPutIndicator.js +57 -0
- package/dist/ui/a/ThroughPutIndicator/index.js +4 -0
- package/dist/ui/a/Timestamp/Timestamp.js +250 -0
- package/dist/ui/a/Timestamp/index.js +4 -0
- package/dist/ui/a/Tip/Tip.js +74 -0
- package/dist/ui/a/Tip/index.js +4 -0
- package/dist/ui/a/ToggleSwitch/ToggleSwitch.js +77 -0
- package/dist/ui/a/ToggleSwitch/index.js +4 -0
- package/dist/ui/a/Tooltip/Tooltip.js +101 -0
- package/dist/ui/a/Tooltip/index.js +4 -0
- package/dist/ui/a/XMLEditor/XMLEditor.js +2447 -0
- package/dist/ui/a/XMLEditor/common/index.js +4 -0
- package/dist/ui/a/XMLEditor/common/theme.js +4 -0
- package/dist/ui/a/XMLEditor/index.js +4 -0
- package/dist/ui/a/index.js +74 -0
- package/dist/ui/b/Button/Button.js +51 -0
- package/dist/ui/b/Button/common/Group/Group.js +48 -0
- package/dist/ui/b/Button/common/Group/index.js +4 -0
- package/dist/ui/b/Button/common/index.js +4 -0
- package/dist/ui/b/Button/index.js +4 -0
- package/dist/ui/b/Card/Card.js +51 -0
- package/dist/ui/b/Card/common/Group/Group.js +50 -0
- package/dist/ui/b/Card/common/Group/index.js +4 -0
- package/dist/ui/b/Card/common/Section/Section.js +54 -0
- package/dist/ui/b/Card/common/Section/index.js +4 -0
- package/dist/ui/b/Card/common/index.js +6 -0
- package/dist/ui/b/Card/index.js +4 -0
- package/dist/ui/b/Logo/Logo.js +39 -0
- package/dist/ui/b/Logo/index.js +4 -0
- package/dist/ui/b/Page/Context.js +5 -0
- package/dist/ui/b/Page/Page.js +42 -0
- package/dist/ui/b/Page/common/PageHelmet/PageHelmet.js +40 -0
- package/dist/ui/b/Page/common/PageHelmet/index.js +4 -0
- package/dist/ui/b/Page/common/Section/Section.js +67 -0
- package/dist/ui/b/Page/common/Section/index.js +4 -0
- package/dist/ui/b/Page/common/index.js +6 -0
- package/dist/ui/b/Page/index.js +8 -0
- package/dist/ui/b/Page/usePage.js +6 -0
- package/dist/ui/b/SocialMediaButton/SocialMediaButton.js +40 -0
- package/dist/ui/b/SocialMediaButton/index.js +4 -0
- package/dist/ui/b/ThemeSelector/ThemeSelector.js +40 -0
- package/dist/ui/b/ThemeSelector/index.js +4 -0
- package/dist/ui/b/Title/Title.js +126 -0
- package/dist/ui/b/Title/index.js +4 -0
- package/dist/ui/b/index.js +13 -0
- package/dist/ui/c/Modal/Modal.js +8 -0
- package/dist/ui/c/Modal/common/ModalHeader/ModalHeader.js +50 -0
- package/dist/ui/c/Modal/common/ModalHeader/index.js +4 -0
- package/dist/ui/c/Modal/common/index.js +4 -0
- package/dist/ui/c/Modal/index.js +4 -0
- package/dist/ui/c/Shortener/Shortener.js +10 -0
- package/dist/ui/c/Shortener/index.js +4 -0
- package/dist/ui/c/SocialMediaShareButton/SocialMediaShareButton.js +80 -0
- package/dist/ui/c/SocialMediaShareButton/index.js +4 -0
- package/dist/ui/c/index.js +7 -0
- package/dist/ui/d/index.js +1 -0
- package/dist/ui/f/FormInput/FormInput.js +9 -0
- package/dist/ui/f/FormInput/index.js +4 -0
- package/dist/ui/f/common/Debugger/Debugger.js +10 -0
- package/dist/ui/f/common/Debugger/index.js +4 -0
- package/dist/ui/f/common/Description/Description.js +62 -0
- package/dist/ui/f/common/Description/index.js +4 -0
- package/dist/ui/f/common/Label/Label.js +74 -0
- package/dist/ui/f/common/Label/index.js +4 -0
- package/dist/ui/f/common/index.js +12 -0
- package/dist/ui/f/common/utils/index.js +6 -0
- package/dist/ui/f/common/utils/lookUpInputValueFromFetchedOptions.js +1039 -0
- package/dist/ui/f/common/utils/validators.js +7 -0
- package/dist/ui/f/fields/Checkbox/Checkbox.js +11 -0
- package/dist/ui/f/fields/Checkbox/index.js +4 -0
- package/dist/ui/f/fields/ChoicesInput/ChoicesInput.js +11 -0
- package/dist/ui/f/fields/ChoicesInput/common/Choice/Choice.js +112 -0
- package/dist/ui/f/fields/ChoicesInput/common/Choice/index.js +4 -0
- package/dist/ui/f/fields/ChoicesInput/common/index.js +4 -0
- package/dist/ui/f/fields/ChoicesInput/index.js +4 -0
- package/dist/ui/f/fields/EditorInput/EditorInput.js +15 -0
- package/dist/ui/f/fields/EditorInput/common/BlockFormatDropDown/BlockFormatDropDown.js +44 -0
- package/dist/ui/f/fields/EditorInput/common/BlockFormatDropDown/index.js +4 -0
- package/dist/ui/f/fields/EditorInput/common/ColorPicker/ColorPicker.js +43 -0
- package/dist/ui/f/fields/EditorInput/common/ColorPicker/index.js +4 -0
- package/dist/ui/f/fields/EditorInput/common/ExposePlainTextPlugin.js +7 -0
- package/dist/ui/f/fields/EditorInput/common/FontSizeDropDown/FontSizeDropDown.js +44 -0
- package/dist/ui/f/fields/EditorInput/common/FontSizeDropDown/index.js +4 -0
- package/dist/ui/f/fields/EditorInput/common/StopPropagationPlugin.js +18 -0
- package/dist/ui/f/fields/EditorInput/common/ToolbarPlugin/ToolbarPlugin.js +11 -0
- package/dist/ui/f/fields/EditorInput/common/ToolbarPlugin/index.js +4 -0
- package/dist/ui/f/fields/EditorInput/common/TreeViewPlugin.js +7 -0
- package/dist/ui/f/fields/EditorInput/common/index.js +13 -0
- package/dist/ui/f/fields/EditorInput/index.js +4 -0
- package/dist/ui/f/fields/FileUpload/FileUpload.js +11 -0
- package/dist/ui/f/fields/FileUpload/common/Preview/Preview.js +42 -0
- package/dist/ui/f/fields/FileUpload/common/Preview/index.js +4 -0
- package/dist/ui/f/fields/FileUpload/common/index.js +4 -0
- package/dist/ui/f/fields/FileUpload/index.js +8 -0
- package/dist/ui/f/fields/FileUpload/utils.js +48 -0
- package/dist/ui/f/fields/LatexPreviewInput/LatexPreviewInput.js +10 -0
- package/dist/ui/f/fields/LatexPreviewInput/convertLatexToHtml.js +51108 -0
- package/dist/ui/f/fields/LatexPreviewInput/index.js +6 -0
- package/dist/ui/f/fields/LinkInput/LinkInput.js +11 -0
- package/dist/ui/f/fields/LinkInput/index.js +4 -0
- package/dist/ui/f/fields/QueryChoices/QueryChoices.js +8 -0
- package/dist/ui/f/fields/QueryChoices/index.js +4 -0
- package/dist/ui/f/fields/QueryCombobox/QueryCombobox.js +9 -0
- package/dist/ui/f/fields/QueryCombobox/common/Combobox/Combobox.js +47 -0
- package/dist/ui/f/fields/QueryCombobox/common/Combobox/index.js +4 -0
- package/dist/ui/f/fields/QueryCombobox/common/Menu/Menu.js +78 -0
- package/dist/ui/f/fields/QueryCombobox/common/Menu/index.js +4 -0
- package/dist/ui/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +47 -0
- package/dist/ui/f/fields/QueryCombobox/common/MultipleCombobox/index.js +4 -0
- package/dist/ui/f/fields/QueryCombobox/common/index.js +7 -0
- package/dist/ui/f/fields/QueryCombobox/index.js +4 -0
- package/dist/ui/f/fields/QuerySelect/QuerySelect.js +12 -0
- package/dist/ui/f/fields/QuerySelect/index.js +4 -0
- package/dist/ui/f/fields/RadioInput/RadioInput.js +78 -0
- package/dist/ui/f/fields/RadioInput/index.js +4 -0
- package/dist/ui/f/fields/RatingsInput/RatingsInput.js +11 -0
- package/dist/ui/f/fields/RatingsInput/common/Rating/Rating.js +127 -0
- package/dist/ui/f/fields/RatingsInput/common/Rating/index.js +4 -0
- package/dist/ui/f/fields/RatingsInput/common/index.js +4 -0
- package/dist/ui/f/fields/RatingsInput/index.js +4 -0
- package/dist/ui/f/fields/SelectInput/SelectInput.js +9 -0
- package/dist/ui/f/fields/SelectInput/common/Menu/Menu.js +79 -0
- package/dist/ui/f/fields/SelectInput/common/Menu/index.js +4 -0
- package/dist/ui/f/fields/SelectInput/common/Multiple/Multiple.js +47 -0
- package/dist/ui/f/fields/SelectInput/common/Multiple/index.js +4 -0
- package/dist/ui/f/fields/SelectInput/common/Single/Single.js +44 -0
- package/dist/ui/f/fields/SelectInput/common/Single/index.js +4 -0
- package/dist/ui/f/fields/SelectInput/common/index.js +7 -0
- package/dist/ui/f/fields/SelectInput/index.js +4 -0
- package/dist/ui/f/fields/TextInput/TextInput.js +11 -0
- package/dist/ui/f/fields/TextInput/index.js +4 -0
- package/dist/ui/f/fields/TextareaInput/TextareaInput.js +11 -0
- package/dist/ui/f/fields/TextareaInput/index.js +4 -0
- package/dist/ui/f/fields/ToggleInput/ToggleInput.js +42 -0
- package/dist/ui/f/fields/ToggleInput/index.js +4 -0
- package/dist/ui/f/fields/index.js +25 -0
- package/dist/ui/f/index.js +35 -0
- package/dist/ui/g/DragAndDrop/DragAndDrop.js +89 -0
- package/dist/ui/g/DragAndDrop/common/DraggableItem/DraggableItem.js +64 -0
- package/dist/ui/g/DragAndDrop/common/DraggableItem/index.js +4 -0
- package/dist/ui/g/DragAndDrop/common/index.js +4 -0
- package/dist/ui/g/DragAndDrop/index.js +4 -0
- package/dist/ui/g/ExpandableLexicalPreview/ExpandableLexicalPreview.js +15 -0
- package/dist/ui/g/ExpandableLexicalPreview/common/NewWindowPortal/NewWindowPortal.js +40 -0
- package/dist/ui/g/ExpandableLexicalPreview/common/NewWindowPortal/index.js +4 -0
- package/dist/ui/g/ExpandableLexicalPreview/common/index.js +4 -0
- package/dist/ui/g/ExpandableLexicalPreview/index.js +4 -0
- package/dist/ui/g/FormBuilder/FormBuilder.js +8 -0
- package/dist/ui/g/FormBuilder/common/Builder/Builder.js +13 -0
- package/dist/ui/g/FormBuilder/common/Builder/common/ActionsContainer/ActionsContainer.js +43 -0
- package/dist/ui/g/FormBuilder/common/Builder/common/ActionsContainer/index.js +4 -0
- package/dist/ui/g/FormBuilder/common/Builder/common/InputBuilder/InputBuilder.js +46 -0
- package/dist/ui/g/FormBuilder/common/Builder/common/InputBuilder/index.js +4 -0
- package/dist/ui/g/FormBuilder/common/Builder/common/Section/Section.js +14 -0
- package/dist/ui/g/FormBuilder/common/Builder/common/Section/index.js +4 -0
- package/dist/ui/g/FormBuilder/common/Builder/common/index.js +6 -0
- package/dist/ui/g/FormBuilder/common/Builder/index.js +4 -0
- package/dist/ui/g/FormBuilder/common/Renderer/Renderer.js +15 -0
- package/dist/ui/g/FormBuilder/common/Renderer/common/Section/Section.js +14 -0
- package/dist/ui/g/FormBuilder/common/Renderer/common/Section/index.js +4 -0
- package/dist/ui/g/FormBuilder/common/Renderer/common/index.js +4 -0
- package/dist/ui/g/FormBuilder/common/Renderer/index.js +4 -0
- package/dist/ui/g/FormBuilder/common/index.js +5 -0
- package/dist/ui/g/FormBuilder/index.js +4 -0
- package/dist/ui/g/index.js +7 -0
- package/dist/ui/index.js +137 -0
- package/dist/ui/utils/applyCharacterLimit.js +31 -0
- package/dist/ui/utils/formatting.js +90 -0
- package/dist/ui/utils/hooks/index.js +8 -0
- package/dist/ui/utils/hooks/useDynamicPosition.js +61 -0
- package/dist/ui/utils/hooks/useOutsideClick.js +14 -0
- package/dist/ui/utils/hooks/useWindowSize.js +16 -0
- package/dist/ui/utils/index.js +16 -0
- package/dist/vite.svg +1 -0
- package/package.json +44 -36
- package/.eslintrc.js +0 -3
- package/.storybook/main.js +0 -32
- package/.storybook/preview.js +0 -45
- package/.storybook/webpackFinal.js +0 -68
- package/babel.config.js +0 -55
- package/dist/cjs/a/AnimatedBlobs/AnimatedBlobs.js +0 -89
- package/dist/cjs/a/AnimatedBlobs/index.js +0 -13
- package/dist/cjs/a/AnimatedBlobs/styles.scss +0 -87
- package/dist/cjs/a/AnimatedGradient/AnimatedGradient.js +0 -59
- package/dist/cjs/a/AnimatedGradient/index.js +0 -13
- package/dist/cjs/a/AnimatedGradient/styles.scss +0 -15
- package/dist/cjs/a/AnimatedGradient/webGIRenderer.js +0 -527
- package/dist/cjs/a/AppContext/Context.js +0 -10
- package/dist/cjs/a/AppContext/ContextProvider.js +0 -87
- package/dist/cjs/a/AppContext/index.js +0 -34
- package/dist/cjs/a/AppContext/useApp.js +0 -11
- package/dist/cjs/a/AppContext/useTheme.js +0 -38
- package/dist/cjs/a/BlurOverlay/BlurOverlay.js +0 -58
- package/dist/cjs/a/BlurOverlay/index.js +0 -13
- package/dist/cjs/a/BlurOverlay/styles.scss +0 -33
- package/dist/cjs/a/Charts/AreaChart/AreaChart.js +0 -256
- package/dist/cjs/a/Charts/AreaChart/index.js +0 -13
- package/dist/cjs/a/Charts/AreaChart/styles.scss +0 -70
- package/dist/cjs/a/Charts/BarChart/BarChart.js +0 -138
- package/dist/cjs/a/Charts/BarChart/index.js +0 -13
- package/dist/cjs/a/Charts/BarChart/styles.scss +0 -48
- package/dist/cjs/a/Charts/Common/CustomLegend/CustomLegend.js +0 -106
- package/dist/cjs/a/Charts/Common/CustomLegend/index.js +0 -13
- package/dist/cjs/a/Charts/Common/CustomLegend/styles.scss +0 -75
- package/dist/cjs/a/Charts/Common/CustomTooltipContent/CustomTooltipContent.js +0 -194
- package/dist/cjs/a/Charts/Common/CustomTooltipContent/index.js +0 -13
- package/dist/cjs/a/Charts/Common/CustomTooltipContent/styles.scss +0 -26
- package/dist/cjs/a/Charts/Common/YLabelsDropDown/YlabelsDropDown.js +0 -97
- package/dist/cjs/a/Charts/Common/YLabelsDropDown/index.js +0 -13
- package/dist/cjs/a/Charts/Common/YLabelsDropDown/styles.scss +0 -89
- package/dist/cjs/a/Charts/Common/index.js +0 -26
- package/dist/cjs/a/Charts/PieChart/PieChart.js +0 -130
- package/dist/cjs/a/Charts/PieChart/index.js +0 -13
- package/dist/cjs/a/Charts/PieChart/styles.scss +0 -136
- package/dist/cjs/a/Charts/index.js +0 -26
- package/dist/cjs/a/ContentTree/ContentTree.js +0 -77
- package/dist/cjs/a/ContentTree/common/Tree/Tree.js +0 -111
- package/dist/cjs/a/ContentTree/common/Tree/index.js +0 -13
- package/dist/cjs/a/ContentTree/common/index.js +0 -27
- package/dist/cjs/a/ContentTree/common/useContentTree.js +0 -79
- package/dist/cjs/a/ContentTree/common/useFirstVisibleNode.js +0 -61
- package/dist/cjs/a/ContentTree/index.js +0 -13
- package/dist/cjs/a/ContentTree/styles.scss +0 -56
- package/dist/cjs/a/Conversation/Context.js +0 -10
- package/dist/cjs/a/Conversation/Conversation.js +0 -85
- package/dist/cjs/a/Conversation/common/Message/Message.js +0 -103
- package/dist/cjs/a/Conversation/common/Message/index.js +0 -13
- package/dist/cjs/a/Conversation/common/index.js +0 -12
- package/dist/cjs/a/Conversation/index.js +0 -27
- package/dist/cjs/a/Conversation/styles.scss +0 -86
- package/dist/cjs/a/Conversation/useConversation.js +0 -11
- package/dist/cjs/a/DatePicker/DatePicker.js +0 -162
- package/dist/cjs/a/DatePicker/index.js +0 -13
- package/dist/cjs/a/DatePicker/styles.scss +0 -380
- package/dist/cjs/a/DotInfo/DotInfo.js +0 -86
- package/dist/cjs/a/DotInfo/index.js +0 -13
- package/dist/cjs/a/DotInfo/styles.scss +0 -20
- package/dist/cjs/a/Figure/Figure.js +0 -72
- package/dist/cjs/a/Figure/index.js +0 -13
- package/dist/cjs/a/Figure/styles.scss +0 -19
- package/dist/cjs/a/HamburgerButton/HamburgerButton.js +0 -82
- package/dist/cjs/a/HamburgerButton/index.js +0 -13
- package/dist/cjs/a/HamburgerButton/styles.scss +0 -183
- package/dist/cjs/a/IconList/IconList.js +0 -74
- package/dist/cjs/a/IconList/common/Item/Item.js +0 -72
- package/dist/cjs/a/IconList/common/Item/index.js +0 -13
- package/dist/cjs/a/IconList/common/index.js +0 -12
- package/dist/cjs/a/IconList/index.js +0 -13
- package/dist/cjs/a/IconList/styles.scss +0 -37
- package/dist/cjs/a/Label/Label.js +0 -79
- package/dist/cjs/a/Label/index.js +0 -13
- package/dist/cjs/a/Label/styles.scss +0 -35
- package/dist/cjs/a/LoadingCircle/LoadingCircle.js +0 -102
- package/dist/cjs/a/LoadingCircle/index.js +0 -13
- package/dist/cjs/a/LoadingCircle/styles.scss +0 -47
- package/dist/cjs/a/MetaCard/MetaCard.js +0 -64
- package/dist/cjs/a/MetaCard/index.js +0 -13
- package/dist/cjs/a/MetaCard/styles.scss +0 -45
- package/dist/cjs/a/Notification/Notification.js +0 -113
- package/dist/cjs/a/Notification/index.js +0 -13
- package/dist/cjs/a/Notification/styles.scss +0 -67
- package/dist/cjs/a/NotificationStack/NotificationStack.js +0 -68
- package/dist/cjs/a/NotificationStack/index.js +0 -13
- package/dist/cjs/a/NotificationStack/styles.scss +0 -23
- package/dist/cjs/a/People/People.js +0 -77
- package/dist/cjs/a/People/common/Person/Person.js +0 -88
- package/dist/cjs/a/People/common/Person/index.js +0 -13
- package/dist/cjs/a/People/common/index.js +0 -12
- package/dist/cjs/a/People/index.js +0 -13
- package/dist/cjs/a/People/styles.scss +0 -60
- package/dist/cjs/a/Popover/Popover.js +0 -117
- package/dist/cjs/a/Popover/index.js +0 -13
- package/dist/cjs/a/Popover/styles.scss +0 -34
- package/dist/cjs/a/ProgressBar/ProgressBar.js +0 -81
- package/dist/cjs/a/ProgressBar/index.js +0 -13
- package/dist/cjs/a/ProgressBar/styles.scss +0 -47
- package/dist/cjs/a/Quote/Quote.js +0 -92
- package/dist/cjs/a/Quote/index.js +0 -13
- package/dist/cjs/a/Quote/styles.scss +0 -35
- package/dist/cjs/a/Removable/Removable.js +0 -71
- package/dist/cjs/a/Removable/index.js +0 -13
- package/dist/cjs/a/Removable/styles.scss +0 -33
- package/dist/cjs/a/SVG/SVG.js +0 -133
- package/dist/cjs/a/SVG/common/UseSVG/UseSVG.js +0 -71
- package/dist/cjs/a/SVG/common/UseSVG/index.js +0 -13
- package/dist/cjs/a/SVG/common/index.js +0 -12
- package/dist/cjs/a/SVG/index.js +0 -13
- package/dist/cjs/a/SVG/styles.scss +0 -57
- package/dist/cjs/a/SnapScroller/SnapScroller.js +0 -92
- package/dist/cjs/a/SnapScroller/index.js +0 -13
- package/dist/cjs/a/SnapScroller/styles.scss +0 -77
- package/dist/cjs/a/Spinner/Spinner.js +0 -62
- package/dist/cjs/a/Spinner/index.js +0 -13
- package/dist/cjs/a/Spinner/styles.scss +0 -23
- package/dist/cjs/a/TextSteps/TextSteps.js +0 -67
- package/dist/cjs/a/TextSteps/index.js +0 -13
- package/dist/cjs/a/TextSteps/styles.scss +0 -29
- package/dist/cjs/a/ThroughPutIndicator/ThroughPutIndicator.js +0 -78
- package/dist/cjs/a/ThroughPutIndicator/index.js +0 -13
- package/dist/cjs/a/ThroughPutIndicator/styles.scss +0 -35
- package/dist/cjs/a/Timestamp/Timestamp.js +0 -122
- package/dist/cjs/a/Timestamp/index.js +0 -13
- package/dist/cjs/a/Timestamp/styles.scss +0 -7
- package/dist/cjs/a/Tip/Tip.js +0 -85
- package/dist/cjs/a/Tip/index.js +0 -13
- package/dist/cjs/a/Tip/styles.scss +0 -16
- package/dist/cjs/a/ToggleSwitch/ToggleSwitch.js +0 -87
- package/dist/cjs/a/ToggleSwitch/index.js +0 -13
- package/dist/cjs/a/ToggleSwitch/styles.scss +0 -58
- package/dist/cjs/a/Tooltip/Tooltip.js +0 -104
- package/dist/cjs/a/Tooltip/index.js +0 -13
- package/dist/cjs/a/Tooltip/styles.scss +0 -89
- package/dist/cjs/a/XMLEditor/XMLEditor.js +0 -128
- package/dist/cjs/a/XMLEditor/common/index.js +0 -13
- package/dist/cjs/a/XMLEditor/common/theme.js +0 -186
- package/dist/cjs/a/XMLEditor/index.js +0 -13
- package/dist/cjs/a/XMLEditor/styles.scss +0 -24
- package/dist/cjs/a/index.js +0 -259
- package/dist/cjs/b/Button/Button.js +0 -111
- package/dist/cjs/b/Button/common/Group/Group.js +0 -54
- package/dist/cjs/b/Button/common/Group/index.js +0 -13
- package/dist/cjs/b/Button/common/Group/styles.scss +0 -11
- package/dist/cjs/b/Button/common/index.js +0 -12
- package/dist/cjs/b/Button/index.js +0 -13
- package/dist/cjs/b/Button/styles.scss +0 -173
- package/dist/cjs/b/Card/Card.js +0 -73
- package/dist/cjs/b/Card/common/Group/Group.js +0 -70
- package/dist/cjs/b/Card/common/Group/index.js +0 -13
- package/dist/cjs/b/Card/common/Group/styles.scss +0 -35
- package/dist/cjs/b/Card/common/Section/Section.js +0 -58
- package/dist/cjs/b/Card/common/Section/index.js +0 -13
- package/dist/cjs/b/Card/common/index.js +0 -19
- package/dist/cjs/b/Card/index.js +0 -13
- package/dist/cjs/b/Card/styles.scss +0 -57
- package/dist/cjs/b/Logo/Logo.js +0 -123
- package/dist/cjs/b/Logo/index.js +0 -13
- package/dist/cjs/b/Logo/styles.scss +0 -11
- package/dist/cjs/b/Page/Context.js +0 -10
- package/dist/cjs/b/Page/Page.js +0 -106
- package/dist/cjs/b/Page/common/PageHelmet/PageHelmet.js +0 -186
- package/dist/cjs/b/Page/common/PageHelmet/index.js +0 -13
- package/dist/cjs/b/Page/common/Section/Section.js +0 -66
- package/dist/cjs/b/Page/common/Section/index.js +0 -13
- package/dist/cjs/b/Page/common/index.js +0 -19
- package/dist/cjs/b/Page/index.js +0 -27
- package/dist/cjs/b/Page/styles.scss +0 -38
- package/dist/cjs/b/Page/usePage.js +0 -11
- package/dist/cjs/b/SocialMediaButton/SocialMediaButton.js +0 -116
- package/dist/cjs/b/SocialMediaButton/index.js +0 -13
- package/dist/cjs/b/SocialMediaButton/styles.scss +0 -35
- package/dist/cjs/b/ThemeSelector/ThemeSelector.js +0 -74
- package/dist/cjs/b/ThemeSelector/index.js +0 -13
- package/dist/cjs/b/ThemeSelector/styles.scss +0 -52
- package/dist/cjs/b/Title/Title.js +0 -110
- package/dist/cjs/b/Title/index.js +0 -13
- package/dist/cjs/b/index.js +0 -54
- package/dist/cjs/c/Modal/Modal.js +0 -82
- package/dist/cjs/c/Modal/common/ModalHeader/ModalHeader.js +0 -76
- package/dist/cjs/c/Modal/common/ModalHeader/index.js +0 -13
- package/dist/cjs/c/Modal/common/index.js +0 -12
- package/dist/cjs/c/Modal/index.js +0 -13
- package/dist/cjs/c/Modal/styles.scss +0 -44
- package/dist/cjs/c/Shortener/Shortener.js +0 -102
- package/dist/cjs/c/Shortener/index.js +0 -13
- package/dist/cjs/c/Shortener/styles.scss +0 -7
- package/dist/cjs/c/SocialMediaShareButton/SocialMediaShareButton.js +0 -102
- package/dist/cjs/c/SocialMediaShareButton/index.js +0 -13
- package/dist/cjs/c/SocialMediaShareButton/styles.scss +0 -39
- package/dist/cjs/c/index.js +0 -26
- package/dist/cjs/d/index.js +0 -2
- package/dist/cjs/f/FormInput/FormInput.js +0 -154
- package/dist/cjs/f/FormInput/index.js +0 -13
- package/dist/cjs/f/FormInput/styles.scss +0 -11
- package/dist/cjs/f/common/Debugger/Debugger.js +0 -68
- package/dist/cjs/f/common/Debugger/index.js +0 -13
- package/dist/cjs/f/common/Debugger/styles.scss +0 -12
- package/dist/cjs/f/common/Description/Description.js +0 -75
- package/dist/cjs/f/common/Description/index.js +0 -13
- package/dist/cjs/f/common/Description/styles.scss +0 -9
- package/dist/cjs/f/common/Label/Label.js +0 -82
- package/dist/cjs/f/common/Label/index.js +0 -13
- package/dist/cjs/f/common/Label/styles.scss +0 -9
- package/dist/cjs/f/common/index.js +0 -43
- package/dist/cjs/f/common/utils/index.js +0 -19
- package/dist/cjs/f/common/utils/lookUpInputValueFromFetchedOptions.js +0 -29
- package/dist/cjs/f/common/utils/validators.js +0 -17
- package/dist/cjs/f/fields/Checkbox/Checkbox.js +0 -117
- package/dist/cjs/f/fields/Checkbox/index.js +0 -13
- package/dist/cjs/f/fields/Checkbox/styles.scss +0 -16
- package/dist/cjs/f/fields/ChoicesInput/ChoicesInput.js +0 -151
- package/dist/cjs/f/fields/ChoicesInput/common/Choice/Choice.js +0 -105
- package/dist/cjs/f/fields/ChoicesInput/common/Choice/index.js +0 -13
- package/dist/cjs/f/fields/ChoicesInput/common/index.js +0 -12
- package/dist/cjs/f/fields/ChoicesInput/index.js +0 -13
- package/dist/cjs/f/fields/ChoicesInput/styles.scss +0 -79
- package/dist/cjs/f/fields/EditorInput/EditorInput.js +0 -238
- package/dist/cjs/f/fields/EditorInput/common/BlockFormatDropDown/BlockFormatDropDown.js +0 -256
- package/dist/cjs/f/fields/EditorInput/common/BlockFormatDropDown/index.js +0 -13
- package/dist/cjs/f/fields/EditorInput/common/BlockFormatDropDown/styles.scss +0 -55
- package/dist/cjs/f/fields/EditorInput/common/ColorPicker/ColorPicker.js +0 -98
- package/dist/cjs/f/fields/EditorInput/common/ColorPicker/index.js +0 -13
- package/dist/cjs/f/fields/EditorInput/common/ColorPicker/styles.scss +0 -36
- package/dist/cjs/f/fields/EditorInput/common/ExposePlainTextPlugin.js +0 -47
- package/dist/cjs/f/fields/EditorInput/common/FontSizeDropDown/FontSizeDropDown.js +0 -94
- package/dist/cjs/f/fields/EditorInput/common/FontSizeDropDown/index.js +0 -13
- package/dist/cjs/f/fields/EditorInput/common/FontSizeDropDown/styles.scss +0 -55
- package/dist/cjs/f/fields/EditorInput/common/StopPropagationPlugin.js +0 -25
- package/dist/cjs/f/fields/EditorInput/common/ToolbarPlugin/ToolbarPlugin.js +0 -289
- package/dist/cjs/f/fields/EditorInput/common/ToolbarPlugin/index.js +0 -13
- package/dist/cjs/f/fields/EditorInput/common/ToolbarPlugin/styles.scss +0 -56
- package/dist/cjs/f/fields/EditorInput/common/TreeViewPlugin.js +0 -18
- package/dist/cjs/f/fields/EditorInput/common/index.js +0 -55
- package/dist/cjs/f/fields/EditorInput/index.js +0 -13
- package/dist/cjs/f/fields/EditorInput/styles.scss +0 -240
- package/dist/cjs/f/fields/FileUpload/FileUpload.js +0 -248
- package/dist/cjs/f/fields/FileUpload/common/Preview/Preview.js +0 -135
- package/dist/cjs/f/fields/FileUpload/common/Preview/index.js +0 -13
- package/dist/cjs/f/fields/FileUpload/common/Preview/styles.scss +0 -96
- package/dist/cjs/f/fields/FileUpload/common/index.js +0 -12
- package/dist/cjs/f/fields/FileUpload/index.js +0 -32
- package/dist/cjs/f/fields/FileUpload/styles.scss +0 -73
- package/dist/cjs/f/fields/FileUpload/utils.js +0 -48
- package/dist/cjs/f/fields/LatexPreviewInput/LatexPreviewInput.js +0 -78
- package/dist/cjs/f/fields/LatexPreviewInput/convertLatexToHtml.js +0 -46
- package/dist/cjs/f/fields/LatexPreviewInput/index.js +0 -20
- package/dist/cjs/f/fields/LatexPreviewInput/styles.scss +0 -25
- package/dist/cjs/f/fields/LinkInput/LinkInput.js +0 -152
- package/dist/cjs/f/fields/LinkInput/index.js +0 -13
- package/dist/cjs/f/fields/LinkInput/styles.scss +0 -90
- package/dist/cjs/f/fields/QueryChoices/QueryChoices.js +0 -137
- package/dist/cjs/f/fields/QueryChoices/index.js +0 -13
- package/dist/cjs/f/fields/QueryCombobox/QueryCombobox.js +0 -241
- package/dist/cjs/f/fields/QueryCombobox/common/Combobox/Combobox.js +0 -238
- package/dist/cjs/f/fields/QueryCombobox/common/Combobox/index.js +0 -13
- package/dist/cjs/f/fields/QueryCombobox/common/Menu/Menu.js +0 -83
- package/dist/cjs/f/fields/QueryCombobox/common/Menu/index.js +0 -13
- package/dist/cjs/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +0 -331
- package/dist/cjs/f/fields/QueryCombobox/common/MultipleCombobox/index.js +0 -13
- package/dist/cjs/f/fields/QueryCombobox/common/index.js +0 -26
- package/dist/cjs/f/fields/QueryCombobox/index.js +0 -13
- package/dist/cjs/f/fields/QueryCombobox/styles.scss +0 -134
- package/dist/cjs/f/fields/QuerySelect/QuerySelect.js +0 -198
- package/dist/cjs/f/fields/QuerySelect/index.js +0 -13
- package/dist/cjs/f/fields/RatingsInput/RatingsInput.js +0 -132
- package/dist/cjs/f/fields/RatingsInput/common/Rating/Rating.js +0 -117
- package/dist/cjs/f/fields/RatingsInput/common/Rating/index.js +0 -13
- package/dist/cjs/f/fields/RatingsInput/common/index.js +0 -12
- package/dist/cjs/f/fields/RatingsInput/index.js +0 -13
- package/dist/cjs/f/fields/RatingsInput/styles.scss +0 -48
- package/dist/cjs/f/fields/SelectInput/SelectInput.js +0 -149
- package/dist/cjs/f/fields/SelectInput/common/Menu/Menu.js +0 -83
- package/dist/cjs/f/fields/SelectInput/common/Menu/index.js +0 -13
- package/dist/cjs/f/fields/SelectInput/common/Multiple/Multiple.js +0 -242
- package/dist/cjs/f/fields/SelectInput/common/Multiple/index.js +0 -13
- package/dist/cjs/f/fields/SelectInput/common/Single/Single.js +0 -115
- package/dist/cjs/f/fields/SelectInput/common/Single/index.js +0 -13
- package/dist/cjs/f/fields/SelectInput/common/index.js +0 -26
- package/dist/cjs/f/fields/SelectInput/index.js +0 -13
- package/dist/cjs/f/fields/SelectInput/styles.scss +0 -191
- package/dist/cjs/f/fields/TextInput/TextInput.js +0 -150
- package/dist/cjs/f/fields/TextInput/index.js +0 -13
- package/dist/cjs/f/fields/TextInput/styles.scss +0 -81
- package/dist/cjs/f/fields/TextareaInput/TextareaInput.js +0 -151
- package/dist/cjs/f/fields/TextareaInput/index.js +0 -13
- package/dist/cjs/f/fields/TextareaInput/styles.scss +0 -53
- package/dist/cjs/f/fields/ToggleInput/ToggleInput.js +0 -126
- package/dist/cjs/f/fields/ToggleInput/index.js +0 -13
- package/dist/cjs/f/fields/ToggleInput/styles.scss +0 -22
- package/dist/cjs/f/fields/index.js +0 -127
- package/dist/cjs/f/index.js +0 -39
- package/dist/cjs/form-reset.scss +0 -86
- package/dist/cjs/form.scss +0 -34
- package/dist/cjs/g/DragAndDrop/DragAndDrop.js +0 -104
- package/dist/cjs/g/DragAndDrop/common/DraggableItem/DraggableItem.js +0 -76
- package/dist/cjs/g/DragAndDrop/common/DraggableItem/index.js +0 -13
- package/dist/cjs/g/DragAndDrop/common/DraggableItem/styles.scss +0 -12
- package/dist/cjs/g/DragAndDrop/common/index.js +0 -12
- package/dist/cjs/g/DragAndDrop/index.js +0 -13
- package/dist/cjs/g/DragAndDrop/styles.scss +0 -8
- package/dist/cjs/g/ExpandableLexicalPreview/ExpandableLexicalPreview.js +0 -139
- package/dist/cjs/g/ExpandableLexicalPreview/common/NewWindowPortal/NewWindowPortal.js +0 -79
- package/dist/cjs/g/ExpandableLexicalPreview/common/NewWindowPortal/index.js +0 -13
- package/dist/cjs/g/ExpandableLexicalPreview/common/NewWindowPortal/styles.scss +0 -9
- package/dist/cjs/g/ExpandableLexicalPreview/common/index.js +0 -12
- package/dist/cjs/g/ExpandableLexicalPreview/index.js +0 -13
- package/dist/cjs/g/ExpandableLexicalPreview/styles.scss +0 -33
- package/dist/cjs/g/FormBuilder/FormBuilder.js +0 -127
- package/dist/cjs/g/FormBuilder/common/Builder/Builder.js +0 -193
- package/dist/cjs/g/FormBuilder/common/Builder/common/ActionsContainer/ActionsContainer.js +0 -80
- package/dist/cjs/g/FormBuilder/common/Builder/common/ActionsContainer/index.js +0 -13
- package/dist/cjs/g/FormBuilder/common/Builder/common/ActionsContainer/styles.scss +0 -59
- package/dist/cjs/g/FormBuilder/common/Builder/common/InputBuilder/InputBuilder.js +0 -254
- package/dist/cjs/g/FormBuilder/common/Builder/common/InputBuilder/index.js +0 -13
- package/dist/cjs/g/FormBuilder/common/Builder/common/InputBuilder/styles.scss +0 -169
- package/dist/cjs/g/FormBuilder/common/Builder/common/Section/Section.js +0 -148
- package/dist/cjs/g/FormBuilder/common/Builder/common/Section/index.js +0 -13
- package/dist/cjs/g/FormBuilder/common/Builder/common/Section/styles.scss +0 -71
- package/dist/cjs/g/FormBuilder/common/Builder/common/index.js +0 -26
- package/dist/cjs/g/FormBuilder/common/Builder/index.js +0 -13
- package/dist/cjs/g/FormBuilder/common/Builder/styles.scss +0 -63
- package/dist/cjs/g/FormBuilder/common/Renderer/Renderer.js +0 -194
- package/dist/cjs/g/FormBuilder/common/Renderer/common/Section/Section.js +0 -95
- package/dist/cjs/g/FormBuilder/common/Renderer/common/Section/index.js +0 -13
- package/dist/cjs/g/FormBuilder/common/Renderer/common/index.js +0 -12
- package/dist/cjs/g/FormBuilder/common/Renderer/index.js +0 -13
- package/dist/cjs/g/FormBuilder/common/Renderer/styles.scss +0 -30
- package/dist/cjs/g/FormBuilder/common/index.js +0 -19
- package/dist/cjs/g/FormBuilder/index.js +0 -13
- package/dist/cjs/g/FormBuilder/styles.scss +0 -25
- package/dist/cjs/g/index.js +0 -26
- package/dist/cjs/index.js +0 -93
- package/dist/cjs/test/QueryLoader/QueryLoader.js +0 -36
- package/dist/cjs/test/QueryLoader/__generated__/QueryLoaderHelloQuery.graphql.js +0 -63
- package/dist/cjs/test/QueryLoader/common/PreloadedTestData/PreloadedTestData.js +0 -40
- package/dist/cjs/test/QueryLoader/common/PreloadedTestData/index.js +0 -13
- package/dist/cjs/test/QueryLoader/common/index.js +0 -12
- package/dist/cjs/test/QueryLoader/index.js +0 -13
- package/dist/cjs/test/index.js +0 -12
- package/dist/cjs/utils/applyCharacterLimit.js +0 -75
- package/dist/cjs/utils/formatting.js +0 -128
- package/dist/cjs/utils/hooks/index.js +0 -27
- package/dist/cjs/utils/hooks/useDynamicPosition.js +0 -91
- package/dist/cjs/utils/hooks/useOutsideClick.js +0 -25
- package/dist/cjs/utils/hooks/useWindowSize.js +0 -30
- package/dist/cjs/utils/index.js +0 -62
- package/dist/es/a/AnimatedBlobs/AnimatedBlobs.js +0 -77
- package/dist/es/a/AnimatedBlobs/index.js +0 -1
- package/dist/es/a/AnimatedBlobs/styles.scss +0 -87
- package/dist/es/a/AnimatedGradient/AnimatedGradient.js +0 -49
- package/dist/es/a/AnimatedGradient/index.js +0 -1
- package/dist/es/a/AnimatedGradient/styles.scss +0 -15
- package/dist/es/a/AnimatedGradient/webGIRenderer.js +0 -491
- package/dist/es/a/AppContext/Context.js +0 -2
- package/dist/es/a/AppContext/ContextProvider.js +0 -77
- package/dist/es/a/AppContext/index.js +0 -5
- package/dist/es/a/AppContext/useApp.js +0 -3
- package/dist/es/a/AppContext/useTheme.js +0 -31
- package/dist/es/a/BlurOverlay/BlurOverlay.js +0 -45
- package/dist/es/a/BlurOverlay/index.js +0 -2
- package/dist/es/a/BlurOverlay/styles.scss +0 -33
- package/dist/es/a/Charts/AreaChart/AreaChart.js +0 -246
- package/dist/es/a/Charts/AreaChart/index.js +0 -1
- package/dist/es/a/Charts/AreaChart/styles.scss +0 -70
- package/dist/es/a/Charts/BarChart/BarChart.js +0 -129
- package/dist/es/a/Charts/BarChart/index.js +0 -1
- package/dist/es/a/Charts/BarChart/styles.scss +0 -48
- package/dist/es/a/Charts/Common/CustomLegend/CustomLegend.js +0 -94
- package/dist/es/a/Charts/Common/CustomLegend/index.js +0 -1
- package/dist/es/a/Charts/Common/CustomLegend/styles.scss +0 -75
- package/dist/es/a/Charts/Common/CustomTooltipContent/CustomTooltipContent.js +0 -175
- package/dist/es/a/Charts/Common/CustomTooltipContent/index.js +0 -1
- package/dist/es/a/Charts/Common/CustomTooltipContent/styles.scss +0 -26
- package/dist/es/a/Charts/Common/YLabelsDropDown/YlabelsDropDown.js +0 -86
- package/dist/es/a/Charts/Common/YLabelsDropDown/index.js +0 -1
- package/dist/es/a/Charts/Common/YLabelsDropDown/styles.scss +0 -89
- package/dist/es/a/Charts/Common/index.js +0 -3
- package/dist/es/a/Charts/PieChart/PieChart.js +0 -120
- package/dist/es/a/Charts/PieChart/index.js +0 -1
- package/dist/es/a/Charts/PieChart/styles.scss +0 -136
- package/dist/es/a/Charts/index.js +0 -3
- package/dist/es/a/ContentTree/ContentTree.js +0 -66
- package/dist/es/a/ContentTree/common/Tree/Tree.js +0 -101
- package/dist/es/a/ContentTree/common/Tree/index.js +0 -2
- package/dist/es/a/ContentTree/common/index.js +0 -3
- package/dist/es/a/ContentTree/common/useContentTree.js +0 -73
- package/dist/es/a/ContentTree/common/useFirstVisibleNode.js +0 -54
- package/dist/es/a/ContentTree/index.js +0 -2
- package/dist/es/a/ContentTree/styles.scss +0 -56
- package/dist/es/a/Conversation/Context.js +0 -2
- package/dist/es/a/Conversation/Conversation.js +0 -73
- package/dist/es/a/Conversation/common/Message/Message.js +0 -93
- package/dist/es/a/Conversation/common/Message/index.js +0 -2
- package/dist/es/a/Conversation/common/index.js +0 -1
- package/dist/es/a/Conversation/index.js +0 -4
- package/dist/es/a/Conversation/styles.scss +0 -86
- package/dist/es/a/Conversation/useConversation.js +0 -3
- package/dist/es/a/DatePicker/DatePicker.js +0 -154
- package/dist/es/a/DatePicker/index.js +0 -2
- package/dist/es/a/DatePicker/styles.scss +0 -380
- package/dist/es/a/DotInfo/DotInfo.js +0 -74
- package/dist/es/a/DotInfo/index.js +0 -2
- package/dist/es/a/DotInfo/styles.scss +0 -20
- package/dist/es/a/Figure/Figure.js +0 -60
- package/dist/es/a/Figure/index.js +0 -2
- package/dist/es/a/Figure/styles.scss +0 -19
- package/dist/es/a/HamburgerButton/HamburgerButton.js +0 -72
- package/dist/es/a/HamburgerButton/index.js +0 -2
- package/dist/es/a/HamburgerButton/styles.scss +0 -183
- package/dist/es/a/IconList/IconList.js +0 -64
- package/dist/es/a/IconList/common/Item/Item.js +0 -63
- package/dist/es/a/IconList/common/Item/index.js +0 -2
- package/dist/es/a/IconList/common/index.js +0 -1
- package/dist/es/a/IconList/index.js +0 -2
- package/dist/es/a/IconList/styles.scss +0 -37
- package/dist/es/a/Label/Label.js +0 -69
- package/dist/es/a/Label/index.js +0 -2
- package/dist/es/a/Label/styles.scss +0 -35
- package/dist/es/a/LoadingCircle/LoadingCircle.js +0 -90
- package/dist/es/a/LoadingCircle/index.js +0 -2
- package/dist/es/a/LoadingCircle/styles.scss +0 -47
- package/dist/es/a/MetaCard/MetaCard.js +0 -52
- package/dist/es/a/MetaCard/index.js +0 -1
- package/dist/es/a/MetaCard/styles.scss +0 -45
- package/dist/es/a/Notification/Notification.js +0 -107
- package/dist/es/a/Notification/index.js +0 -1
- package/dist/es/a/Notification/styles.scss +0 -67
- package/dist/es/a/NotificationStack/NotificationStack.js +0 -62
- package/dist/es/a/NotificationStack/index.js +0 -1
- package/dist/es/a/NotificationStack/styles.scss +0 -23
- package/dist/es/a/People/People.js +0 -65
- package/dist/es/a/People/common/Person/Person.js +0 -78
- package/dist/es/a/People/common/Person/index.js +0 -2
- package/dist/es/a/People/common/index.js +0 -1
- package/dist/es/a/People/index.js +0 -2
- package/dist/es/a/People/styles.scss +0 -60
- package/dist/es/a/Popover/Popover.js +0 -106
- package/dist/es/a/Popover/index.js +0 -2
- package/dist/es/a/Popover/styles.scss +0 -34
- package/dist/es/a/ProgressBar/ProgressBar.js +0 -69
- package/dist/es/a/ProgressBar/index.js +0 -2
- package/dist/es/a/ProgressBar/styles.scss +0 -47
- package/dist/es/a/Quote/Quote.js +0 -80
- package/dist/es/a/Quote/index.js +0 -2
- package/dist/es/a/Quote/styles.scss +0 -35
- package/dist/es/a/Removable/Removable.js +0 -59
- package/dist/es/a/Removable/index.js +0 -2
- package/dist/es/a/Removable/styles.scss +0 -33
- package/dist/es/a/SVG/SVG.js +0 -125
- package/dist/es/a/SVG/common/UseSVG/UseSVG.js +0 -59
- package/dist/es/a/SVG/common/UseSVG/index.js +0 -2
- package/dist/es/a/SVG/common/index.js +0 -1
- package/dist/es/a/SVG/index.js +0 -2
- package/dist/es/a/SVG/styles.scss +0 -57
- package/dist/es/a/SnapScroller/SnapScroller.js +0 -82
- package/dist/es/a/SnapScroller/index.js +0 -2
- package/dist/es/a/SnapScroller/styles.scss +0 -77
- package/dist/es/a/Spinner/Spinner.js +0 -50
- package/dist/es/a/Spinner/index.js +0 -2
- package/dist/es/a/Spinner/styles.scss +0 -23
- package/dist/es/a/TextSteps/TextSteps.js +0 -56
- package/dist/es/a/TextSteps/index.js +0 -1
- package/dist/es/a/TextSteps/styles.scss +0 -29
- package/dist/es/a/ThroughPutIndicator/ThroughPutIndicator.js +0 -66
- package/dist/es/a/ThroughPutIndicator/index.js +0 -2
- package/dist/es/a/ThroughPutIndicator/styles.scss +0 -35
- package/dist/es/a/Timestamp/Timestamp.js +0 -112
- package/dist/es/a/Timestamp/index.js +0 -2
- package/dist/es/a/Timestamp/styles.scss +0 -7
- package/dist/es/a/Tip/Tip.js +0 -73
- package/dist/es/a/Tip/index.js +0 -2
- package/dist/es/a/Tip/styles.scss +0 -16
- package/dist/es/a/ToggleSwitch/ToggleSwitch.js +0 -75
- package/dist/es/a/ToggleSwitch/index.js +0 -2
- package/dist/es/a/ToggleSwitch/styles.scss +0 -58
- package/dist/es/a/Tooltip/Tooltip.js +0 -94
- package/dist/es/a/Tooltip/index.js +0 -2
- package/dist/es/a/Tooltip/styles.scss +0 -89
- package/dist/es/a/XMLEditor/XMLEditor.js +0 -117
- package/dist/es/a/XMLEditor/common/index.js +0 -1
- package/dist/es/a/XMLEditor/common/theme.js +0 -180
- package/dist/es/a/XMLEditor/index.js +0 -1
- package/dist/es/a/XMLEditor/styles.scss +0 -24
- package/dist/es/a/index.js +0 -32
- package/dist/es/b/Button/Button.js +0 -105
- package/dist/es/b/Button/common/Group/Group.js +0 -44
- package/dist/es/b/Button/common/Group/index.js +0 -1
- package/dist/es/b/Button/common/Group/styles.scss +0 -11
- package/dist/es/b/Button/common/index.js +0 -1
- package/dist/es/b/Button/index.js +0 -2
- package/dist/es/b/Button/styles.scss +0 -173
- package/dist/es/b/Card/Card.js +0 -61
- package/dist/es/b/Card/common/Group/Group.js +0 -62
- package/dist/es/b/Card/common/Group/index.js +0 -1
- package/dist/es/b/Card/common/Group/styles.scss +0 -35
- package/dist/es/b/Card/common/Section/Section.js +0 -48
- package/dist/es/b/Card/common/Section/index.js +0 -1
- package/dist/es/b/Card/common/index.js +0 -2
- package/dist/es/b/Card/index.js +0 -1
- package/dist/es/b/Card/styles.scss +0 -57
- package/dist/es/b/Logo/Logo.js +0 -113
- package/dist/es/b/Logo/index.js +0 -2
- package/dist/es/b/Logo/styles.scss +0 -11
- package/dist/es/b/Page/Context.js +0 -2
- package/dist/es/b/Page/Page.js +0 -100
- package/dist/es/b/Page/common/PageHelmet/PageHelmet.js +0 -174
- package/dist/es/b/Page/common/PageHelmet/index.js +0 -2
- package/dist/es/b/Page/common/Section/Section.js +0 -59
- package/dist/es/b/Page/common/Section/index.js +0 -2
- package/dist/es/b/Page/common/index.js +0 -2
- package/dist/es/b/Page/index.js +0 -4
- package/dist/es/b/Page/styles.scss +0 -38
- package/dist/es/b/Page/usePage.js +0 -3
- package/dist/es/b/SocialMediaButton/SocialMediaButton.js +0 -108
- package/dist/es/b/SocialMediaButton/index.js +0 -2
- package/dist/es/b/SocialMediaButton/styles.scss +0 -35
- package/dist/es/b/ThemeSelector/ThemeSelector.js +0 -64
- package/dist/es/b/ThemeSelector/index.js +0 -2
- package/dist/es/b/ThemeSelector/styles.scss +0 -52
- package/dist/es/b/Title/Title.js +0 -102
- package/dist/es/b/Title/index.js +0 -2
- package/dist/es/b/index.js +0 -7
- package/dist/es/c/Modal/Modal.js +0 -70
- package/dist/es/c/Modal/common/ModalHeader/ModalHeader.js +0 -64
- package/dist/es/c/Modal/common/ModalHeader/index.js +0 -1
- package/dist/es/c/Modal/common/index.js +0 -1
- package/dist/es/c/Modal/index.js +0 -2
- package/dist/es/c/Modal/styles.scss +0 -44
- package/dist/es/c/Shortener/Shortener.js +0 -91
- package/dist/es/c/Shortener/index.js +0 -2
- package/dist/es/c/Shortener/styles.scss +0 -7
- package/dist/es/c/SocialMediaShareButton/SocialMediaShareButton.js +0 -92
- package/dist/es/c/SocialMediaShareButton/index.js +0 -2
- package/dist/es/c/SocialMediaShareButton/styles.scss +0 -39
- package/dist/es/c/index.js +0 -3
- package/dist/es/d/index.js +0 -1
- package/dist/es/f/FormInput/FormInput.js +0 -146
- package/dist/es/f/FormInput/index.js +0 -2
- package/dist/es/f/FormInput/styles.scss +0 -11
- package/dist/es/f/common/Debugger/Debugger.js +0 -58
- package/dist/es/f/common/Debugger/index.js +0 -2
- package/dist/es/f/common/Debugger/styles.scss +0 -12
- package/dist/es/f/common/Description/Description.js +0 -65
- package/dist/es/f/common/Description/index.js +0 -2
- package/dist/es/f/common/Description/styles.scss +0 -9
- package/dist/es/f/common/Label/Label.js +0 -69
- package/dist/es/f/common/Label/index.js +0 -2
- package/dist/es/f/common/Label/styles.scss +0 -9
- package/dist/es/f/common/index.js +0 -4
- package/dist/es/f/common/utils/index.js +0 -2
- package/dist/es/f/common/utils/lookUpInputValueFromFetchedOptions.js +0 -20
- package/dist/es/f/common/utils/validators.js +0 -10
- package/dist/es/f/fields/Checkbox/Checkbox.js +0 -110
- package/dist/es/f/fields/Checkbox/index.js +0 -2
- package/dist/es/f/fields/Checkbox/styles.scss +0 -16
- package/dist/es/f/fields/ChoicesInput/ChoicesInput.js +0 -143
- package/dist/es/f/fields/ChoicesInput/common/Choice/Choice.js +0 -98
- package/dist/es/f/fields/ChoicesInput/common/Choice/index.js +0 -2
- package/dist/es/f/fields/ChoicesInput/common/index.js +0 -1
- package/dist/es/f/fields/ChoicesInput/index.js +0 -2
- package/dist/es/f/fields/ChoicesInput/styles.scss +0 -79
- package/dist/es/f/fields/EditorInput/EditorInput.js +0 -227
- package/dist/es/f/fields/EditorInput/common/BlockFormatDropDown/BlockFormatDropDown.js +0 -246
- package/dist/es/f/fields/EditorInput/common/BlockFormatDropDown/index.js +0 -2
- package/dist/es/f/fields/EditorInput/common/BlockFormatDropDown/styles.scss +0 -55
- package/dist/es/f/fields/EditorInput/common/ColorPicker/ColorPicker.js +0 -87
- package/dist/es/f/fields/EditorInput/common/ColorPicker/index.js +0 -2
- package/dist/es/f/fields/EditorInput/common/ColorPicker/styles.scss +0 -36
- package/dist/es/f/fields/EditorInput/common/ExposePlainTextPlugin.js +0 -39
- package/dist/es/f/fields/EditorInput/common/FontSizeDropDown/FontSizeDropDown.js +0 -81
- package/dist/es/f/fields/EditorInput/common/FontSizeDropDown/index.js +0 -2
- package/dist/es/f/fields/EditorInput/common/FontSizeDropDown/styles.scss +0 -55
- package/dist/es/f/fields/EditorInput/common/StopPropagationPlugin.js +0 -19
- package/dist/es/f/fields/EditorInput/common/ToolbarPlugin/ToolbarPlugin.js +0 -277
- package/dist/es/f/fields/EditorInput/common/ToolbarPlugin/index.js +0 -2
- package/dist/es/f/fields/EditorInput/common/ToolbarPlugin/styles.scss +0 -56
- package/dist/es/f/fields/EditorInput/common/TreeViewPlugin.js +0 -11
- package/dist/es/f/fields/EditorInput/common/index.js +0 -7
- package/dist/es/f/fields/EditorInput/index.js +0 -2
- package/dist/es/f/fields/EditorInput/styles.scss +0 -240
- package/dist/es/f/fields/FileUpload/FileUpload.js +0 -237
- package/dist/es/f/fields/FileUpload/common/Preview/Preview.js +0 -125
- package/dist/es/f/fields/FileUpload/common/Preview/index.js +0 -2
- package/dist/es/f/fields/FileUpload/common/Preview/styles.scss +0 -96
- package/dist/es/f/fields/FileUpload/common/index.js +0 -2
- package/dist/es/f/fields/FileUpload/index.js +0 -3
- package/dist/es/f/fields/FileUpload/styles.scss +0 -73
- package/dist/es/f/fields/FileUpload/utils.js +0 -40
- package/dist/es/f/fields/LatexPreviewInput/LatexPreviewInput.js +0 -70
- package/dist/es/f/fields/LatexPreviewInput/convertLatexToHtml.js +0 -31
- package/dist/es/f/fields/LatexPreviewInput/index.js +0 -3
- package/dist/es/f/fields/LatexPreviewInput/styles.scss +0 -25
- package/dist/es/f/fields/LinkInput/LinkInput.js +0 -146
- package/dist/es/f/fields/LinkInput/index.js +0 -2
- package/dist/es/f/fields/LinkInput/styles.scss +0 -90
- package/dist/es/f/fields/QueryChoices/QueryChoices.js +0 -126
- package/dist/es/f/fields/QueryChoices/index.js +0 -2
- package/dist/es/f/fields/QueryCombobox/QueryCombobox.js +0 -229
- package/dist/es/f/fields/QueryCombobox/common/Combobox/Combobox.js +0 -231
- package/dist/es/f/fields/QueryCombobox/common/Combobox/index.js +0 -2
- package/dist/es/f/fields/QueryCombobox/common/Menu/Menu.js +0 -73
- package/dist/es/f/fields/QueryCombobox/common/Menu/index.js +0 -2
- package/dist/es/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +0 -324
- package/dist/es/f/fields/QueryCombobox/common/MultipleCombobox/index.js +0 -2
- package/dist/es/f/fields/QueryCombobox/common/index.js +0 -3
- package/dist/es/f/fields/QueryCombobox/index.js +0 -2
- package/dist/es/f/fields/QueryCombobox/styles.scss +0 -134
- package/dist/es/f/fields/QuerySelect/QuerySelect.js +0 -186
- package/dist/es/f/fields/QuerySelect/index.js +0 -2
- package/dist/es/f/fields/RatingsInput/RatingsInput.js +0 -121
- package/dist/es/f/fields/RatingsInput/common/Rating/Rating.js +0 -109
- package/dist/es/f/fields/RatingsInput/common/Rating/index.js +0 -2
- package/dist/es/f/fields/RatingsInput/common/index.js +0 -1
- package/dist/es/f/fields/RatingsInput/index.js +0 -2
- package/dist/es/f/fields/RatingsInput/styles.scss +0 -48
- package/dist/es/f/fields/SelectInput/SelectInput.js +0 -141
- package/dist/es/f/fields/SelectInput/common/Menu/Menu.js +0 -73
- package/dist/es/f/fields/SelectInput/common/Menu/index.js +0 -2
- package/dist/es/f/fields/SelectInput/common/Multiple/Multiple.js +0 -233
- package/dist/es/f/fields/SelectInput/common/Multiple/index.js +0 -2
- package/dist/es/f/fields/SelectInput/common/Single/Single.js +0 -107
- package/dist/es/f/fields/SelectInput/common/Single/index.js +0 -2
- package/dist/es/f/fields/SelectInput/common/index.js +0 -3
- package/dist/es/f/fields/SelectInput/index.js +0 -2
- package/dist/es/f/fields/SelectInput/styles.scss +0 -191
- package/dist/es/f/fields/TextInput/TextInput.js +0 -144
- package/dist/es/f/fields/TextInput/index.js +0 -2
- package/dist/es/f/fields/TextInput/styles.scss +0 -81
- package/dist/es/f/fields/TextareaInput/TextareaInput.js +0 -145
- package/dist/es/f/fields/TextareaInput/index.js +0 -2
- package/dist/es/f/fields/TextareaInput/styles.scss +0 -53
- package/dist/es/f/fields/ToggleInput/ToggleInput.js +0 -116
- package/dist/es/f/fields/ToggleInput/index.js +0 -2
- package/dist/es/f/fields/ToggleInput/styles.scss +0 -22
- package/dist/es/f/fields/index.js +0 -14
- package/dist/es/f/index.js +0 -3
- package/dist/es/form-reset.scss +0 -86
- package/dist/es/form.scss +0 -34
- package/dist/es/g/DragAndDrop/DragAndDrop.js +0 -95
- package/dist/es/g/DragAndDrop/common/DraggableItem/DraggableItem.js +0 -68
- package/dist/es/g/DragAndDrop/common/DraggableItem/index.js +0 -2
- package/dist/es/g/DragAndDrop/common/DraggableItem/styles.scss +0 -12
- package/dist/es/g/DragAndDrop/common/index.js +0 -1
- package/dist/es/g/DragAndDrop/index.js +0 -2
- package/dist/es/g/DragAndDrop/styles.scss +0 -8
- package/dist/es/g/ExpandableLexicalPreview/ExpandableLexicalPreview.js +0 -128
- package/dist/es/g/ExpandableLexicalPreview/common/NewWindowPortal/NewWindowPortal.js +0 -70
- package/dist/es/g/ExpandableLexicalPreview/common/NewWindowPortal/index.js +0 -2
- package/dist/es/g/ExpandableLexicalPreview/common/NewWindowPortal/styles.scss +0 -9
- package/dist/es/g/ExpandableLexicalPreview/common/index.js +0 -1
- package/dist/es/g/ExpandableLexicalPreview/index.js +0 -2
- package/dist/es/g/ExpandableLexicalPreview/styles.scss +0 -33
- package/dist/es/g/FormBuilder/FormBuilder.js +0 -117
- package/dist/es/g/FormBuilder/common/Builder/Builder.js +0 -178
- package/dist/es/g/FormBuilder/common/Builder/common/ActionsContainer/ActionsContainer.js +0 -70
- package/dist/es/g/FormBuilder/common/Builder/common/ActionsContainer/index.js +0 -2
- package/dist/es/g/FormBuilder/common/Builder/common/ActionsContainer/styles.scss +0 -59
- package/dist/es/g/FormBuilder/common/Builder/common/InputBuilder/InputBuilder.js +0 -241
- package/dist/es/g/FormBuilder/common/Builder/common/InputBuilder/index.js +0 -2
- package/dist/es/g/FormBuilder/common/Builder/common/InputBuilder/styles.scss +0 -169
- package/dist/es/g/FormBuilder/common/Builder/common/Section/Section.js +0 -135
- package/dist/es/g/FormBuilder/common/Builder/common/Section/index.js +0 -2
- package/dist/es/g/FormBuilder/common/Builder/common/Section/styles.scss +0 -71
- package/dist/es/g/FormBuilder/common/Builder/common/index.js +0 -3
- package/dist/es/g/FormBuilder/common/Builder/index.js +0 -2
- package/dist/es/g/FormBuilder/common/Builder/styles.scss +0 -63
- package/dist/es/g/FormBuilder/common/Renderer/Renderer.js +0 -187
- package/dist/es/g/FormBuilder/common/Renderer/common/Section/Section.js +0 -88
- package/dist/es/g/FormBuilder/common/Renderer/common/Section/index.js +0 -2
- package/dist/es/g/FormBuilder/common/Renderer/common/index.js +0 -1
- package/dist/es/g/FormBuilder/common/Renderer/index.js +0 -2
- package/dist/es/g/FormBuilder/common/Renderer/styles.scss +0 -30
- package/dist/es/g/FormBuilder/common/index.js +0 -2
- package/dist/es/g/FormBuilder/index.js +0 -2
- package/dist/es/g/FormBuilder/styles.scss +0 -25
- package/dist/es/g/index.js +0 -3
- package/dist/es/index.js +0 -8
- package/dist/es/test/QueryLoader/QueryLoader.js +0 -30
- package/dist/es/test/QueryLoader/__generated__/QueryLoaderHelloQuery.graphql.js +0 -63
- package/dist/es/test/QueryLoader/common/PreloadedTestData/PreloadedTestData.js +0 -30
- package/dist/es/test/QueryLoader/common/PreloadedTestData/index.js +0 -2
- package/dist/es/test/QueryLoader/common/index.js +0 -1
- package/dist/es/test/QueryLoader/index.js +0 -2
- package/dist/es/test/index.js +0 -1
- package/dist/es/utils/applyCharacterLimit.js +0 -67
- package/dist/es/utils/formatting.js +0 -117
- package/dist/es/utils/hooks/index.js +0 -3
- package/dist/es/utils/hooks/useDynamicPosition.js +0 -83
- package/dist/es/utils/hooks/useOutsideClick.js +0 -19
- package/dist/es/utils/hooks/useWindowSize.js +0 -22
- package/dist/es/utils/index.js +0 -3
- package/jest.config.js +0 -28
- package/src/stories/Introduction.stories.mdx +0 -193
- package/src/stories/StyleGuide/Sprites.stories.mdx +0 -25
- package/src/stories/StyleGuide/ai-icons.stories.mdx +0 -27
- package/src/stories/StyleGuide/colors.stories.mdx +0 -73
- package/src/stories/StyleGuide/cssClasses.stories.mdx +0 -16
- package/src/stories/StyleGuide/helpers.js +0 -64
- package/src/stories/StyleGuide/icons.stories.mdx +0 -29
- package/src/stories/StyleGuide/typography.stories.mdx +0 -55
- package/src/stories/a/AppContext.stories.jsx +0 -44
- package/src/stories/a/AreaChart.stories.jsx +0 -118
- package/src/stories/a/BarChart.stories.jsx +0 -89
- package/src/stories/a/BlurOverlay.stories.jsx +0 -39
- package/src/stories/a/ContentTree.stories.jsx +0 -662
- package/src/stories/a/Conversation.stories.jsx +0 -92
- package/src/stories/a/DatePicker.stories.jsx +0 -96
- package/src/stories/a/DotInfo.stories.jsx +0 -33
- package/src/stories/a/Figure.stories.jsx +0 -26
- package/src/stories/a/HamburgerButton.stories.jsx +0 -27
- package/src/stories/a/IconList.stories.jsx +0 -51
- package/src/stories/a/Label.stories.jsx +0 -49
- package/src/stories/a/LoadingCircle.stories.jsx +0 -28
- package/src/stories/a/MetaCard.stories.jsx +0 -35
- package/src/stories/a/Notification.stories.jsx +0 -86
- package/src/stories/a/NotificationStack.stories.jsx +0 -59
- package/src/stories/a/People.stories.jsx +0 -92
- package/src/stories/a/PieChart.stories.jsx +0 -53
- package/src/stories/a/Popover.stories.jsx +0 -106
- package/src/stories/a/ProgressBar.stories.jsx +0 -84
- package/src/stories/a/Quote.stories.jsx +0 -49
- package/src/stories/a/Removable.stories.jsx +0 -22
- package/src/stories/a/SVG.stories.jsx +0 -97
- package/src/stories/a/SnapScroller.stories.jsx +0 -98
- package/src/stories/a/Spinner.stories.jsx +0 -25
- package/src/stories/a/TextSteps.stories.jsx +0 -19
- package/src/stories/a/Timestamp.stories.jsx +0 -98
- package/src/stories/a/Tip.stories.jsx +0 -29
- package/src/stories/a/ToggleSwitch.stories.jsx +0 -28
- package/src/stories/a/Tooltip.stories.jsx +0 -75
- package/src/stories/a/XMLEditor.stories.jsx +0 -26
- package/src/stories/assets/code-brackets.svg +0 -1
- package/src/stories/assets/colors.svg +0 -1
- package/src/stories/assets/comments.svg +0 -1
- package/src/stories/assets/direction.svg +0 -1
- package/src/stories/assets/flow.svg +0 -1
- package/src/stories/assets/plugin.svg +0 -1
- package/src/stories/assets/repo.svg +0 -1
- package/src/stories/assets/stackalt.svg +0 -1
- package/src/stories/b/Button/Button.stories.jsx +0 -125
- package/src/stories/b/Button/Group.stories.jsx +0 -35
- package/src/stories/b/Card/Card.stories.jsx +0 -59
- package/src/stories/b/Card/Group.stories.jsx +0 -59
- package/src/stories/b/Logo.stories.jsx +0 -46
- package/src/stories/b/Page.stories.jsx +0 -76
- package/src/stories/b/SocialMediaButton.stories.jsx +0 -58
- package/src/stories/b/ThemeSelector.stories.jsx +0 -49
- package/src/stories/b/Title.stories.jsx +0 -47
- package/src/stories/c/Modal.stories.jsx +0 -49
- package/src/stories/c/Shortener.stories.jsx +0 -34
- package/src/stories/c/SocialMediaShareButton.stories.jsx +0 -33
- package/src/stories/colors.js +0 -74
- package/src/stories/f/Checkbox.stories.jsx +0 -102
- package/src/stories/f/ChoicesInput.stories.jsx +0 -139
- package/src/stories/f/Description.stories.jsx +0 -40
- package/src/stories/f/EditorInput.stories.jsx +0 -81
- package/src/stories/f/FileUpload.stories.jsx +0 -68
- package/src/stories/f/FormInput.stories.jsx +0 -451
- package/src/stories/f/Label.stories.jsx +0 -27
- package/src/stories/f/LinkInput.stories.jsx +0 -93
- package/src/stories/f/QueryChoices.stories.jsx +0 -144
- package/src/stories/f/QueryCombobox.stories.jsx +0 -323
- package/src/stories/f/QuerySelect.stories.jsx +0 -150
- package/src/stories/f/RatingsInput.stories.jsx +0 -77
- package/src/stories/f/SelectInput.stories.jsx +0 -126
- package/src/stories/f/TextInput.stories.jsx +0 -120
- package/src/stories/f/TextareaInput.stories.jsx +0 -107
- package/src/stories/f/__generated__/FormInputAllTaskStatusesQuery.graphql.js +0 -122
- package/src/stories/f/__generated__/FormInputAllTeamsQuery.graphql.js +0 -139
- package/src/stories/f/__generated__/QueryChoicesAllTaskStatusesQuery.graphql.js +0 -122
- package/src/stories/f/__generated__/QueryComboboxAllTeamsQuery.graphql.js +0 -139
- package/src/stories/f/__generated__/QuerySelectAllTaskStatusesQuery.graphql.js +0 -122
- package/src/stories/g/DragAndDrop.stories.jsx +0 -114
- package/src/stories/g/ExpandableLexicalPreview.stories.jsx +0 -37
- package/src/stories/g/FormBuilder.stories.jsx +0 -114
- package/src/stories/original/Button.jsx +0 -55
- package/src/stories/original/Button.stories.js +0 -39
- package/src/stories/original/Header.jsx +0 -64
- package/src/stories/original/Header.stories.js +0 -22
- package/src/stories/original/Introduction.mdx +0 -211
- package/src/stories/original/Page.jsx +0 -76
- package/src/stories/original/Page.stories.js +0 -26
- package/src/stories/original/assets/code-brackets.svg +0 -1
- package/src/stories/original/assets/colors.svg +0 -1
- package/src/stories/original/assets/comments.svg +0 -1
- package/src/stories/original/assets/direction.svg +0 -1
- package/src/stories/original/assets/flow.svg +0 -1
- package/src/stories/original/assets/plugin.svg +0 -1
- package/src/stories/original/assets/repo.svg +0 -1
- package/src/stories/original/assets/stackalt.svg +0 -1
- package/src/stories/original/button.css +0 -30
- package/src/stories/original/header.css +0 -32
- package/src/stories/original/page.css +0 -69
- package/src/stories/r/PrivateRoute.stories.jsx +0 -16
- package/src/stories/r/SwitchRouteMap.stories.jsx +0 -14
- package/src/stories/test/QueryLoader.stories.jsx +0 -36
- package/src/stories/utils/Router.jsx +0 -20
- package/src/stories/utils/generateNodeId.js +0 -12
- package/src/stories/utils/lorem.js +0 -15
- package/src/stories/utils/relay/EnvironmentProvider.jsx +0 -14
- package/src/stories/utils/relay/environment.js +0 -5
- package/src/stories/utils/relay/index.js +0 -4
- package/src/stories/utils/relay/mockRelayOperation.js +0 -14
- package/src/stories/utils/relay/mockResolvers.js +0 -299
- package/src/stories/utils/testData.js +0 -63
- package/src/ui/a/AnimatedBlobs/AnimatedBlobs.jsx +0 -96
- package/src/ui/a/AnimatedBlobs/index.js +0 -1
- package/src/ui/a/AnimatedBlobs/styles.scss +0 -87
- package/src/ui/a/AnimatedGradient/AnimatedGradient.jsx +0 -70
- package/src/ui/a/AnimatedGradient/index.js +0 -1
- package/src/ui/a/AnimatedGradient/styles.scss +0 -15
- package/src/ui/a/AnimatedGradient/webGIRenderer.js +0 -541
- package/src/ui/a/AppContext/Context.js +0 -3
- package/src/ui/a/AppContext/ContextProvider.jsx +0 -90
- package/src/ui/a/AppContext/index.js +0 -5
- package/src/ui/a/AppContext/useApp.js +0 -4
- package/src/ui/a/AppContext/useTheme.js +0 -43
- package/src/ui/a/BlurOverlay/BlurOverlay.jsx +0 -69
- package/src/ui/a/BlurOverlay/index.js +0 -2
- package/src/ui/a/BlurOverlay/styles.scss +0 -33
- package/src/ui/a/Charts/AreaChart/AreaChart.jsx +0 -306
- package/src/ui/a/Charts/AreaChart/index.js +0 -1
- package/src/ui/a/Charts/AreaChart/styles.scss +0 -70
- package/src/ui/a/Charts/BarChart/BarChart.jsx +0 -168
- package/src/ui/a/Charts/BarChart/index.js +0 -1
- package/src/ui/a/Charts/BarChart/styles.scss +0 -48
- package/src/ui/a/Charts/Common/CustomLegend/CustomLegend.jsx +0 -132
- package/src/ui/a/Charts/Common/CustomLegend/index.js +0 -1
- package/src/ui/a/Charts/Common/CustomLegend/styles.scss +0 -75
- package/src/ui/a/Charts/Common/CustomTooltipContent/CustomTooltipContent.jsx +0 -201
- package/src/ui/a/Charts/Common/CustomTooltipContent/index.js +0 -1
- package/src/ui/a/Charts/Common/CustomTooltipContent/styles.scss +0 -26
- package/src/ui/a/Charts/Common/YLabelsDropDown/YlabelsDropDown.jsx +0 -121
- package/src/ui/a/Charts/Common/YLabelsDropDown/index.js +0 -1
- package/src/ui/a/Charts/Common/YLabelsDropDown/styles.scss +0 -89
- package/src/ui/a/Charts/Common/index.js +0 -3
- package/src/ui/a/Charts/PieChart/PieChart.jsx +0 -163
- package/src/ui/a/Charts/PieChart/index.js +0 -1
- package/src/ui/a/Charts/PieChart/styles.scss +0 -136
- package/src/ui/a/Charts/index.js +0 -3
- package/src/ui/a/ContentTree/ContentTree.jsx +0 -88
- package/src/ui/a/ContentTree/common/Tree/Tree.jsx +0 -150
- package/src/ui/a/ContentTree/common/Tree/index.js +0 -2
- package/src/ui/a/ContentTree/common/index.js +0 -3
- package/src/ui/a/ContentTree/common/useContentTree.js +0 -83
- package/src/ui/a/ContentTree/common/useFirstVisibleNode.js +0 -59
- package/src/ui/a/ContentTree/index.js +0 -2
- package/src/ui/a/ContentTree/styles.scss +0 -56
- package/src/ui/a/Conversation/Context.js +0 -3
- package/src/ui/a/Conversation/Conversation.jsx +0 -105
- package/src/ui/a/Conversation/common/Message/Message.jsx +0 -129
- package/src/ui/a/Conversation/common/Message/index.js +0 -2
- package/src/ui/a/Conversation/common/index.js +0 -1
- package/src/ui/a/Conversation/index.js +0 -4
- package/src/ui/a/Conversation/styles.scss +0 -86
- package/src/ui/a/Conversation/useConversation.js +0 -4
- package/src/ui/a/DatePicker/DatePicker.jsx +0 -201
- package/src/ui/a/DatePicker/index.js +0 -2
- package/src/ui/a/DatePicker/styles.scss +0 -380
- package/src/ui/a/DotInfo/DotInfo.jsx +0 -101
- package/src/ui/a/DotInfo/index.js +0 -2
- package/src/ui/a/DotInfo/styles.scss +0 -20
- package/src/ui/a/Figure/Figure.jsx +0 -82
- package/src/ui/a/Figure/index.js +0 -2
- package/src/ui/a/Figure/styles.scss +0 -19
- package/src/ui/a/HamburgerButton/HamburgerButton.jsx +0 -97
- package/src/ui/a/HamburgerButton/index.js +0 -2
- package/src/ui/a/HamburgerButton/styles.scss +0 -183
- package/src/ui/a/IconList/IconList.jsx +0 -89
- package/src/ui/a/IconList/common/Item/Item.jsx +0 -81
- package/src/ui/a/IconList/common/Item/index.js +0 -2
- package/src/ui/a/IconList/common/index.js +0 -1
- package/src/ui/a/IconList/index.js +0 -2
- package/src/ui/a/IconList/styles.scss +0 -37
- package/src/ui/a/Label/Label.jsx +0 -96
- package/src/ui/a/Label/index.js +0 -2
- package/src/ui/a/Label/styles.scss +0 -35
- package/src/ui/a/LoadingCircle/LoadingCircle.jsx +0 -118
- package/src/ui/a/LoadingCircle/index.js +0 -2
- package/src/ui/a/LoadingCircle/styles.scss +0 -47
- package/src/ui/a/MetaCard/MetaCard.jsx +0 -75
- package/src/ui/a/MetaCard/index.js +0 -1
- package/src/ui/a/MetaCard/styles.scss +0 -45
- package/src/ui/a/Notification/Notification.jsx +0 -142
- package/src/ui/a/Notification/index.js +0 -1
- package/src/ui/a/Notification/styles.scss +0 -67
- package/src/ui/a/NotificationStack/NotificationStack.jsx +0 -89
- package/src/ui/a/NotificationStack/index.js +0 -1
- package/src/ui/a/NotificationStack/styles.scss +0 -23
- package/src/ui/a/People/People.jsx +0 -92
- package/src/ui/a/People/common/Person/Person.jsx +0 -99
- package/src/ui/a/People/common/Person/index.js +0 -2
- package/src/ui/a/People/common/index.js +0 -1
- package/src/ui/a/People/index.js +0 -2
- package/src/ui/a/People/styles.scss +0 -60
- package/src/ui/a/Popover/Popover.jsx +0 -155
- package/src/ui/a/Popover/index.js +0 -2
- package/src/ui/a/Popover/styles.scss +0 -34
- package/src/ui/a/ProgressBar/ProgressBar.jsx +0 -95
- package/src/ui/a/ProgressBar/index.js +0 -2
- package/src/ui/a/ProgressBar/styles.scss +0 -47
- package/src/ui/a/Quote/Quote.jsx +0 -97
- package/src/ui/a/Quote/index.js +0 -2
- package/src/ui/a/Quote/styles.scss +0 -35
- package/src/ui/a/Removable/Removable.jsx +0 -78
- package/src/ui/a/Removable/index.js +0 -2
- package/src/ui/a/Removable/styles.scss +0 -33
- package/src/ui/a/SVG/SVG.jsx +0 -183
- package/src/ui/a/SVG/common/UseSVG/UseSVG.jsx +0 -74
- package/src/ui/a/SVG/common/UseSVG/index.js +0 -2
- package/src/ui/a/SVG/common/index.js +0 -1
- package/src/ui/a/SVG/index.js +0 -2
- package/src/ui/a/SVG/styles.scss +0 -57
- package/src/ui/a/SnapScroller/SnapScroller.jsx +0 -105
- package/src/ui/a/SnapScroller/index.js +0 -2
- package/src/ui/a/SnapScroller/styles.scss +0 -77
- package/src/ui/a/Spinner/Spinner.jsx +0 -69
- package/src/ui/a/Spinner/index.js +0 -2
- package/src/ui/a/Spinner/styles.scss +0 -23
- package/src/ui/a/TextSteps/TextSteps.jsx +0 -80
- package/src/ui/a/TextSteps/index.js +0 -1
- package/src/ui/a/TextSteps/styles.scss +0 -29
- package/src/ui/a/ThroughPutIndicator/ThroughPutIndicator.jsx +0 -90
- package/src/ui/a/ThroughPutIndicator/index.js +0 -2
- package/src/ui/a/ThroughPutIndicator/styles.scss +0 -35
- package/src/ui/a/Timestamp/Timestamp.jsx +0 -166
- package/src/ui/a/Timestamp/index.js +0 -2
- package/src/ui/a/Timestamp/styles.scss +0 -7
- package/src/ui/a/Tip/Tip.jsx +0 -99
- package/src/ui/a/Tip/index.js +0 -2
- package/src/ui/a/Tip/styles.scss +0 -16
- package/src/ui/a/ToggleSwitch/ToggleSwitch.jsx +0 -99
- package/src/ui/a/ToggleSwitch/index.js +0 -2
- package/src/ui/a/ToggleSwitch/styles.scss +0 -58
- package/src/ui/a/Tooltip/Tooltip.jsx +0 -135
- package/src/ui/a/Tooltip/index.js +0 -2
- package/src/ui/a/Tooltip/styles.scss +0 -89
- package/src/ui/a/XMLEditor/XMLEditor.jsx +0 -202
- package/src/ui/a/XMLEditor/common/index.js +0 -1
- package/src/ui/a/XMLEditor/common/theme.jsx +0 -184
- package/src/ui/a/XMLEditor/index.js +0 -1
- package/src/ui/a/XMLEditor/styles.scss +0 -24
- package/src/ui/a/index.js +0 -34
- package/src/ui/b/Button/Button.jsx +0 -139
- package/src/ui/b/Button/common/Group/Group.jsx +0 -65
- package/src/ui/b/Button/common/Group/index.js +0 -1
- package/src/ui/b/Button/common/Group/styles.scss +0 -11
- package/src/ui/b/Button/common/index.js +0 -1
- package/src/ui/b/Button/index.js +0 -2
- package/src/ui/b/Button/styles.scss +0 -173
- package/src/ui/b/Card/Card.jsx +0 -88
- package/src/ui/b/Card/common/Group/Group.jsx +0 -88
- package/src/ui/b/Card/common/Group/index.js +0 -1
- package/src/ui/b/Card/common/Group/styles.scss +0 -35
- package/src/ui/b/Card/common/Section/Section.jsx +0 -70
- package/src/ui/b/Card/common/Section/index.js +0 -1
- package/src/ui/b/Card/common/index.js +0 -2
- package/src/ui/b/Card/index.js +0 -1
- package/src/ui/b/Card/styles.scss +0 -57
- package/src/ui/b/Logo/Logo.jsx +0 -150
- package/src/ui/b/Logo/index.js +0 -2
- package/src/ui/b/Logo/styles.scss +0 -11
- package/src/ui/b/Page/Context.js +0 -3
- package/src/ui/b/Page/Page.jsx +0 -127
- package/src/ui/b/Page/common/PageHelmet/PageHelmet.jsx +0 -289
- package/src/ui/b/Page/common/PageHelmet/index.js +0 -2
- package/src/ui/b/Page/common/Section/Section.jsx +0 -83
- package/src/ui/b/Page/common/Section/index.js +0 -2
- package/src/ui/b/Page/common/index.js +0 -2
- package/src/ui/b/Page/index.js +0 -4
- package/src/ui/b/Page/styles.scss +0 -38
- package/src/ui/b/Page/usePage.js +0 -4
- package/src/ui/b/SocialMediaButton/SocialMediaButton.jsx +0 -136
- package/src/ui/b/SocialMediaButton/index.js +0 -2
- package/src/ui/b/SocialMediaButton/styles.scss +0 -35
- package/src/ui/b/ThemeSelector/ThemeSelector.jsx +0 -85
- package/src/ui/b/ThemeSelector/index.js +0 -2
- package/src/ui/b/ThemeSelector/styles.scss +0 -52
- package/src/ui/b/Title/Title.jsx +0 -149
- package/src/ui/b/Title/index.js +0 -2
- package/src/ui/b/index.js +0 -7
- package/src/ui/c/Modal/Modal.jsx +0 -95
- package/src/ui/c/Modal/common/ModalHeader/ModalHeader.jsx +0 -89
- package/src/ui/c/Modal/common/ModalHeader/index.js +0 -1
- package/src/ui/c/Modal/common/index.js +0 -1
- package/src/ui/c/Modal/index.js +0 -2
- package/src/ui/c/Modal/styles.scss +0 -44
- package/src/ui/c/Shortener/Shortener.jsx +0 -140
- package/src/ui/c/Shortener/index.js +0 -2
- package/src/ui/c/Shortener/styles.scss +0 -7
- package/src/ui/c/SocialMediaShareButton/SocialMediaShareButton.jsx +0 -117
- package/src/ui/c/SocialMediaShareButton/index.js +0 -2
- package/src/ui/c/SocialMediaShareButton/styles.scss +0 -39
- package/src/ui/c/index.js +0 -3
- package/src/ui/d/index.js +0 -1
- package/src/ui/f/FormInput/FormInput.jsx +0 -249
- package/src/ui/f/FormInput/index.js +0 -2
- package/src/ui/f/FormInput/styles.scss +0 -11
- package/src/ui/f/common/Debugger/Debugger.jsx +0 -83
- package/src/ui/f/common/Debugger/index.js +0 -2
- package/src/ui/f/common/Debugger/styles.scss +0 -12
- package/src/ui/f/common/Description/Description.jsx +0 -90
- package/src/ui/f/common/Description/index.js +0 -2
- package/src/ui/f/common/Description/styles.scss +0 -9
- package/src/ui/f/common/Label/Label.jsx +0 -94
- package/src/ui/f/common/Label/index.js +0 -2
- package/src/ui/f/common/Label/styles.scss +0 -9
- package/src/ui/f/common/index.js +0 -4
- package/src/ui/f/common/utils/index.js +0 -2
- package/src/ui/f/common/utils/lookUpInputValueFromFetchedOptions.js +0 -23
- package/src/ui/f/common/utils/validators.js +0 -10
- package/src/ui/f/fields/Checkbox/Checkbox.jsx +0 -141
- package/src/ui/f/fields/Checkbox/index.js +0 -2
- package/src/ui/f/fields/Checkbox/styles.scss +0 -16
- package/src/ui/f/fields/ChoicesInput/ChoicesInput.jsx +0 -178
- package/src/ui/f/fields/ChoicesInput/common/Choice/Choice.jsx +0 -127
- package/src/ui/f/fields/ChoicesInput/common/Choice/index.js +0 -2
- package/src/ui/f/fields/ChoicesInput/common/index.js +0 -1
- package/src/ui/f/fields/ChoicesInput/index.js +0 -2
- package/src/ui/f/fields/ChoicesInput/styles.scss +0 -79
- package/src/ui/f/fields/EditorInput/EditorInput.jsx +0 -295
- package/src/ui/f/fields/EditorInput/common/BlockFormatDropDown/BlockFormatDropDown.jsx +0 -292
- package/src/ui/f/fields/EditorInput/common/BlockFormatDropDown/index.js +0 -2
- package/src/ui/f/fields/EditorInput/common/BlockFormatDropDown/styles.scss +0 -55
- package/src/ui/f/fields/EditorInput/common/ColorPicker/ColorPicker.jsx +0 -115
- package/src/ui/f/fields/EditorInput/common/ColorPicker/index.js +0 -2
- package/src/ui/f/fields/EditorInput/common/ColorPicker/styles.scss +0 -36
- package/src/ui/f/fields/EditorInput/common/ExposePlainTextPlugin.jsx +0 -50
- package/src/ui/f/fields/EditorInput/common/FontSizeDropDown/FontSizeDropDown.jsx +0 -134
- package/src/ui/f/fields/EditorInput/common/FontSizeDropDown/index.js +0 -2
- package/src/ui/f/fields/EditorInput/common/FontSizeDropDown/styles.scss +0 -55
- package/src/ui/f/fields/EditorInput/common/StopPropagationPlugin.jsx +0 -25
- package/src/ui/f/fields/EditorInput/common/ToolbarPlugin/ToolbarPlugin.jsx +0 -417
- package/src/ui/f/fields/EditorInput/common/ToolbarPlugin/index.js +0 -2
- package/src/ui/f/fields/EditorInput/common/ToolbarPlugin/styles.scss +0 -56
- package/src/ui/f/fields/EditorInput/common/TreeViewPlugin.jsx +0 -16
- package/src/ui/f/fields/EditorInput/common/index.js +0 -7
- package/src/ui/f/fields/EditorInput/index.js +0 -2
- package/src/ui/f/fields/EditorInput/styles.scss +0 -240
- package/src/ui/f/fields/FileUpload/FileUpload.jsx +0 -300
- package/src/ui/f/fields/FileUpload/common/Preview/Preview.jsx +0 -198
- package/src/ui/f/fields/FileUpload/common/Preview/index.js +0 -2
- package/src/ui/f/fields/FileUpload/common/Preview/styles.scss +0 -96
- package/src/ui/f/fields/FileUpload/common/index.js +0 -2
- package/src/ui/f/fields/FileUpload/index.js +0 -3
- package/src/ui/f/fields/FileUpload/styles.scss +0 -73
- package/src/ui/f/fields/FileUpload/utils.js +0 -52
- package/src/ui/f/fields/LatexPreviewInput/LatexPreviewInput.jsx +0 -92
- package/src/ui/f/fields/LatexPreviewInput/convertLatexToHtml.jsx +0 -38
- package/src/ui/f/fields/LatexPreviewInput/index.js +0 -3
- package/src/ui/f/fields/LatexPreviewInput/styles.scss +0 -25
- package/src/ui/f/fields/LinkInput/LinkInput.jsx +0 -185
- package/src/ui/f/fields/LinkInput/index.js +0 -2
- package/src/ui/f/fields/LinkInput/styles.scss +0 -90
- package/src/ui/f/fields/QueryChoices/QueryChoices.jsx +0 -153
- package/src/ui/f/fields/QueryChoices/index.js +0 -2
- package/src/ui/f/fields/QueryCombobox/QueryCombobox.jsx +0 -264
- package/src/ui/f/fields/QueryCombobox/common/Combobox/Combobox.jsx +0 -278
- package/src/ui/f/fields/QueryCombobox/common/Combobox/index.js +0 -2
- package/src/ui/f/fields/QueryCombobox/common/Menu/Menu.jsx +0 -103
- package/src/ui/f/fields/QueryCombobox/common/Menu/index.js +0 -2
- package/src/ui/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.jsx +0 -402
- package/src/ui/f/fields/QueryCombobox/common/MultipleCombobox/index.js +0 -2
- package/src/ui/f/fields/QueryCombobox/common/index.js +0 -3
- package/src/ui/f/fields/QueryCombobox/index.js +0 -2
- package/src/ui/f/fields/QueryCombobox/styles.scss +0 -134
- package/src/ui/f/fields/QuerySelect/QuerySelect.jsx +0 -220
- package/src/ui/f/fields/QuerySelect/index.js +0 -2
- package/src/ui/f/fields/RatingsInput/RatingsInput.jsx +0 -149
- package/src/ui/f/fields/RatingsInput/common/Rating/Rating.jsx +0 -142
- package/src/ui/f/fields/RatingsInput/common/Rating/index.js +0 -2
- package/src/ui/f/fields/RatingsInput/common/index.js +0 -1
- package/src/ui/f/fields/RatingsInput/index.js +0 -2
- package/src/ui/f/fields/RatingsInput/styles.scss +0 -48
- package/src/ui/f/fields/SelectInput/SelectInput.jsx +0 -183
- package/src/ui/f/fields/SelectInput/common/Menu/Menu.jsx +0 -104
- package/src/ui/f/fields/SelectInput/common/Menu/index.js +0 -2
- package/src/ui/f/fields/SelectInput/common/Multiple/Multiple.jsx +0 -288
- package/src/ui/f/fields/SelectInput/common/Multiple/index.js +0 -2
- package/src/ui/f/fields/SelectInput/common/Single/Single.jsx +0 -140
- package/src/ui/f/fields/SelectInput/common/Single/index.js +0 -2
- package/src/ui/f/fields/SelectInput/common/index.js +0 -3
- package/src/ui/f/fields/SelectInput/index.js +0 -2
- package/src/ui/f/fields/SelectInput/styles.scss +0 -191
- package/src/ui/f/fields/TextInput/TextInput.jsx +0 -191
- package/src/ui/f/fields/TextInput/index.js +0 -2
- package/src/ui/f/fields/TextInput/styles.scss +0 -81
- package/src/ui/f/fields/TextareaInput/TextareaInput.jsx +0 -180
- package/src/ui/f/fields/TextareaInput/index.js +0 -2
- package/src/ui/f/fields/TextareaInput/styles.scss +0 -53
- package/src/ui/f/fields/ToggleInput/ToggleInput.jsx +0 -140
- package/src/ui/f/fields/ToggleInput/index.js +0 -2
- package/src/ui/f/fields/ToggleInput/styles.scss +0 -22
- package/src/ui/f/fields/index.js +0 -22
- package/src/ui/f/index.js +0 -3
- package/src/ui/form-reset.scss +0 -86
- package/src/ui/form.scss +0 -34
- package/src/ui/g/DragAndDrop/DragAndDrop.jsx +0 -125
- package/src/ui/g/DragAndDrop/common/DraggableItem/DraggableItem.jsx +0 -93
- package/src/ui/g/DragAndDrop/common/DraggableItem/index.js +0 -2
- package/src/ui/g/DragAndDrop/common/DraggableItem/styles.scss +0 -12
- package/src/ui/g/DragAndDrop/common/index.js +0 -1
- package/src/ui/g/DragAndDrop/index.js +0 -2
- package/src/ui/g/DragAndDrop/styles.scss +0 -8
- package/src/ui/g/ExpandableLexicalPreview/ExpandableLexicalPreview.jsx +0 -180
- package/src/ui/g/ExpandableLexicalPreview/common/NewWindowPortal/NewWindowPortal.jsx +0 -80
- package/src/ui/g/ExpandableLexicalPreview/common/NewWindowPortal/index.js +0 -2
- package/src/ui/g/ExpandableLexicalPreview/common/NewWindowPortal/styles.scss +0 -9
- package/src/ui/g/ExpandableLexicalPreview/common/index.js +0 -1
- package/src/ui/g/ExpandableLexicalPreview/index.js +0 -2
- package/src/ui/g/ExpandableLexicalPreview/styles.scss +0 -33
- package/src/ui/g/FormBuilder/FormBuilder.jsx +0 -157
- package/src/ui/g/FormBuilder/common/Builder/Builder.jsx +0 -213
- package/src/ui/g/FormBuilder/common/Builder/common/ActionsContainer/ActionsContainer.jsx +0 -97
- package/src/ui/g/FormBuilder/common/Builder/common/ActionsContainer/index.js +0 -2
- package/src/ui/g/FormBuilder/common/Builder/common/ActionsContainer/styles.scss +0 -59
- package/src/ui/g/FormBuilder/common/Builder/common/InputBuilder/InputBuilder.jsx +0 -321
- package/src/ui/g/FormBuilder/common/Builder/common/InputBuilder/index.js +0 -2
- package/src/ui/g/FormBuilder/common/Builder/common/InputBuilder/styles.scss +0 -169
- package/src/ui/g/FormBuilder/common/Builder/common/Section/Section.jsx +0 -186
- package/src/ui/g/FormBuilder/common/Builder/common/Section/index.js +0 -2
- package/src/ui/g/FormBuilder/common/Builder/common/Section/styles.scss +0 -71
- package/src/ui/g/FormBuilder/common/Builder/common/index.js +0 -3
- package/src/ui/g/FormBuilder/common/Builder/index.js +0 -2
- package/src/ui/g/FormBuilder/common/Builder/styles.scss +0 -63
- package/src/ui/g/FormBuilder/common/Renderer/Renderer.jsx +0 -240
- package/src/ui/g/FormBuilder/common/Renderer/common/Section/Section.jsx +0 -114
- package/src/ui/g/FormBuilder/common/Renderer/common/Section/index.js +0 -2
- package/src/ui/g/FormBuilder/common/Renderer/common/index.js +0 -1
- package/src/ui/g/FormBuilder/common/Renderer/index.js +0 -2
- package/src/ui/g/FormBuilder/common/Renderer/styles.scss +0 -30
- package/src/ui/g/FormBuilder/common/index.js +0 -2
- package/src/ui/g/FormBuilder/index.js +0 -2
- package/src/ui/g/FormBuilder/styles.scss +0 -25
- package/src/ui/g/index.js +0 -3
- package/src/ui/index.js +0 -8
- package/src/ui/test/QueryLoader/QueryLoader.jsx +0 -41
- package/src/ui/test/QueryLoader/__generated__/QueryLoaderHelloQuery.graphql.js +0 -68
- package/src/ui/test/QueryLoader/common/PreloadedTestData/PreloadedTestData.jsx +0 -51
- package/src/ui/test/QueryLoader/common/PreloadedTestData/index.js +0 -2
- package/src/ui/test/QueryLoader/common/index.js +0 -1
- package/src/ui/test/QueryLoader/index.js +0 -2
- package/src/ui/test/index.js +0 -1
- package/src/ui/utils/applyCharacterLimit.js +0 -80
- package/src/ui/utils/formatting.js +0 -142
- package/src/ui/utils/hooks/index.js +0 -3
- package/src/ui/utils/hooks/useDynamicPosition.js +0 -104
- package/src/ui/utils/hooks/useOutsideClick.js +0 -23
- package/src/ui/utils/hooks/useWindowSize.js +0 -32
- package/src/ui/utils/index.js +0 -5
- package/stylelint.config.js +0 -3
- package/tests/Storyshots.test.js +0 -3
- package/tests/__snapshots__/Storyshots.test.js.snap +0 -36169
- package/tests/emptyMock.js +0 -3
- package/tests/global-setup.js +0 -3
- package/tests/mockResizeObserver.js +0 -9
- package/tests/mockTextEncoder.js +0 -7
- package/tests/staticStub.js +0 -1
- package/tests/test-setup.js +0 -25
|
@@ -0,0 +1,814 @@
|
|
|
1
|
+
function C(u) {
|
|
2
|
+
return [(u >> 16 & 255) / 255, (u >> 8 & 255) / 255, (255 & u) / 255];
|
|
3
|
+
}
|
|
4
|
+
["SCREEN", "LINEAR_LIGHT"].reduce((u, o, l) => Object.assign(u, {
|
|
5
|
+
[o]: l
|
|
6
|
+
}), {});
|
|
7
|
+
class L {
|
|
8
|
+
constructor(o, l, m, g = !1) {
|
|
9
|
+
const a = this, w = document.location.search.toLowerCase().indexOf("debug=webgl") !== -1;
|
|
10
|
+
a.canvas = o, a.gl = a.canvas.getContext("webgl", {
|
|
11
|
+
antialias: !0
|
|
12
|
+
}), a.meshes = [];
|
|
13
|
+
const s = a.gl;
|
|
14
|
+
l && m && this.setSize(l, m), a.lastDebugMsg, a.debug = g && w ? function(i) {
|
|
15
|
+
const r = /* @__PURE__ */ new Date();
|
|
16
|
+
r - a.lastDebugMsg > 1e3 && console.log("---"), console.log(`${r.toLocaleTimeString() + Array(Math.max(0, 32 - i.length)).join(" ") + i}: `, ...Array.from(arguments).slice(1)), a.lastDebugMsg = r;
|
|
17
|
+
} : () => {
|
|
18
|
+
}, Object.defineProperties(a, {
|
|
19
|
+
Material: {
|
|
20
|
+
enumerable: !1,
|
|
21
|
+
value: class {
|
|
22
|
+
constructor(i, r, e = {}) {
|
|
23
|
+
const t = this;
|
|
24
|
+
function d(p, b) {
|
|
25
|
+
const v = s.createShader(p);
|
|
26
|
+
return s.shaderSource(v, b), s.compileShader(v), s.getShaderParameter(v, s.COMPILE_STATUS) || console.error(s.getShaderInfoLog(v)), a.debug("Material.compileShaderSource", {
|
|
27
|
+
source: b
|
|
28
|
+
}), v;
|
|
29
|
+
}
|
|
30
|
+
function c(p, b) {
|
|
31
|
+
return Object.entries(p).map(([v, f]) => f.getDeclaration(v, b)).join(`
|
|
32
|
+
`);
|
|
33
|
+
}
|
|
34
|
+
t.uniforms = e, t.uniformInstances = [];
|
|
35
|
+
const h = `
|
|
36
|
+
precision highp float;
|
|
37
|
+
`;
|
|
38
|
+
t.vertexSource = `
|
|
39
|
+
${h}
|
|
40
|
+
attribute vec4 position;
|
|
41
|
+
attribute vec2 uv;
|
|
42
|
+
attribute vec2 uvNorm;
|
|
43
|
+
${c(a.commonUniforms, "vertex")}
|
|
44
|
+
${c(e, "vertex")}
|
|
45
|
+
${i}
|
|
46
|
+
`, t.Source = `
|
|
47
|
+
${h}
|
|
48
|
+
${c(a.commonUniforms, "fragment")}
|
|
49
|
+
${c(e, "fragment")}
|
|
50
|
+
${r}
|
|
51
|
+
`, t.vertexShader = d(s.VERTEX_SHADER, t.vertexSource), t.fragmentShader = d(s.FRAGMENT_SHADER, t.Source), t.program = s.createProgram(), s.attachShader(t.program, t.vertexShader), s.attachShader(t.program, t.fragmentShader), s.linkProgram(t.program), s.getProgramParameter(t.program, s.LINK_STATUS) || console.error(s.getProgramInfoLog(t.program)), s.useProgram(t.program), t.attachUniforms(void 0, a.commonUniforms), t.attachUniforms(void 0, t.uniforms);
|
|
52
|
+
}
|
|
53
|
+
// t = uniform
|
|
54
|
+
attachUniforms(i, r) {
|
|
55
|
+
const e = this;
|
|
56
|
+
i === void 0 ? Object.entries(r).forEach(([t, d]) => {
|
|
57
|
+
e.attachUniforms(t, d);
|
|
58
|
+
}) : r.type == "array" ? r.value.forEach((t, d) => e.attachUniforms(`${i}[${d}]`, t)) : r.type == "struct" ? Object.entries(r.value).forEach(([t, d]) => e.attachUniforms(`${i}.${t}`, d)) : (a.debug("Material.attachUniforms", {
|
|
59
|
+
name: i,
|
|
60
|
+
uniform: r
|
|
61
|
+
}), e.uniformInstances.push({
|
|
62
|
+
uniform: r,
|
|
63
|
+
location: s.getUniformLocation(e.program, i)
|
|
64
|
+
}));
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
Uniform: {
|
|
69
|
+
enumerable: !1,
|
|
70
|
+
value: class {
|
|
71
|
+
constructor(i) {
|
|
72
|
+
this.type = "float", Object.assign(this, i), this.typeFn = {
|
|
73
|
+
float: "1f",
|
|
74
|
+
int: "1i",
|
|
75
|
+
vec2: "2fv",
|
|
76
|
+
vec3: "3fv",
|
|
77
|
+
vec4: "4fv",
|
|
78
|
+
mat4: "Matrix4fv"
|
|
79
|
+
}[this.type] || "1f", this.update();
|
|
80
|
+
}
|
|
81
|
+
update(i) {
|
|
82
|
+
this.value !== void 0 && s[`uniform${this.typeFn}`](i, this.typeFn.indexOf("Matrix") === 0 ? this.transpose : this.value, this.typeFn.indexOf("Matrix") === 0 ? this.value : null);
|
|
83
|
+
}
|
|
84
|
+
// e - name
|
|
85
|
+
// t - type
|
|
86
|
+
// n - length
|
|
87
|
+
getDeclaration(i, r, e) {
|
|
88
|
+
const t = this;
|
|
89
|
+
if (t.excludeFrom !== r) {
|
|
90
|
+
if (t.type === "array") return `${t.value[0].getDeclaration(i, r, t.value.length)}
|
|
91
|
+
const int ${i}_length = ${t.value.length};`;
|
|
92
|
+
if (t.type === "struct") {
|
|
93
|
+
let d = i.replace("u_", "");
|
|
94
|
+
return d = d.charAt(0).toUpperCase() + d.slice(1), `uniform struct ${d}
|
|
95
|
+
{
|
|
96
|
+
${Object.entries(t.value).map(([c, h]) => h.getDeclaration(c, r).replace(/^uniform/, "")).join("")}
|
|
97
|
+
} ${i}${e > 0 ? `[${e}]` : ""};`;
|
|
98
|
+
}
|
|
99
|
+
return `uniform ${t.type} ${i}${e > 0 ? `[${e}]` : ""};`;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
PlaneGeometry: {
|
|
105
|
+
enumerable: !1,
|
|
106
|
+
value: class {
|
|
107
|
+
constructor(i, r, e, t, d) {
|
|
108
|
+
s.createBuffer(), this.attributes = {
|
|
109
|
+
position: new a.Attribute({
|
|
110
|
+
target: s.ARRAY_BUFFER,
|
|
111
|
+
size: 3
|
|
112
|
+
}),
|
|
113
|
+
uv: new a.Attribute({
|
|
114
|
+
target: s.ARRAY_BUFFER,
|
|
115
|
+
size: 2
|
|
116
|
+
}),
|
|
117
|
+
uvNorm: new a.Attribute({
|
|
118
|
+
target: s.ARRAY_BUFFER,
|
|
119
|
+
size: 2
|
|
120
|
+
}),
|
|
121
|
+
index: new a.Attribute({
|
|
122
|
+
target: s.ELEMENT_ARRAY_BUFFER,
|
|
123
|
+
size: 3,
|
|
124
|
+
type: s.UNSIGNED_SHORT
|
|
125
|
+
})
|
|
126
|
+
}, this.setTopology(e, t), this.setSize(i, r, d);
|
|
127
|
+
}
|
|
128
|
+
setTopology(i = 1, r = 1) {
|
|
129
|
+
const e = this;
|
|
130
|
+
e.xSegCount = i, e.ySegCount = r, e.vertexCount = (e.xSegCount + 1) * (e.ySegCount + 1), e.quadCount = e.xSegCount * e.ySegCount * 2, e.attributes.uv.values = new Float32Array(2 * e.vertexCount), e.attributes.uvNorm.values = new Float32Array(2 * e.vertexCount), e.attributes.index.values = new Uint16Array(3 * e.quadCount);
|
|
131
|
+
for (let t = 0; t <= e.ySegCount; t++)
|
|
132
|
+
for (let d = 0; d <= e.xSegCount; d++) {
|
|
133
|
+
const c = t * (e.xSegCount + 1) + d;
|
|
134
|
+
if (e.attributes.uv.values[2 * c] = d / e.xSegCount, e.attributes.uv.values[2 * c + 1] = 1 - t / e.ySegCount, e.attributes.uvNorm.values[2 * c] = d / e.xSegCount * 2 - 1, e.attributes.uvNorm.values[2 * c + 1] = 1 - t / e.ySegCount * 2, d < e.xSegCount && t < e.ySegCount) {
|
|
135
|
+
const h = t * e.xSegCount + d;
|
|
136
|
+
e.attributes.index.values[6 * h] = c, e.attributes.index.values[6 * h + 1] = c + 1 + e.xSegCount, e.attributes.index.values[6 * h + 2] = c + 1, e.attributes.index.values[6 * h + 3] = c + 1, e.attributes.index.values[6 * h + 4] = c + 1 + e.xSegCount, e.attributes.index.values[6 * h + 5] = c + 2 + e.xSegCount;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
e.attributes.uv.update(), e.attributes.uvNorm.update(), e.attributes.index.update(), a.debug("Geometry.setTopology", {
|
|
140
|
+
uv: e.attributes.uv,
|
|
141
|
+
uvNorm: e.attributes.uvNorm,
|
|
142
|
+
index: e.attributes.index
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
setSize(i = 1, r = 1, e = "xz") {
|
|
146
|
+
const t = this;
|
|
147
|
+
t.width = i, t.height = r, t.orientation = e, t.attributes.position.values && t.attributes.position.values.length === 3 * t.vertexCount || (t.attributes.position.values = new Float32Array(3 * t.vertexCount));
|
|
148
|
+
const d = i / -2, c = r / -2, h = i / t.xSegCount, p = r / t.ySegCount;
|
|
149
|
+
for (let b = 0; b <= t.ySegCount; b++) {
|
|
150
|
+
const v = c + b * p;
|
|
151
|
+
for (let f = 0; f <= t.xSegCount; f++) {
|
|
152
|
+
const S = d + f * h, x = b * (t.xSegCount + 1) + f;
|
|
153
|
+
t.attributes.position.values[3 * x + "xyz".indexOf(e[0])] = S, t.attributes.position.values[3 * x + "xyz".indexOf(e[1])] = -v;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
t.attributes.position.update(), a.debug("Geometry.setSize", {
|
|
157
|
+
position: t.attributes.position
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
Mesh: {
|
|
163
|
+
enumerable: !1,
|
|
164
|
+
value: class {
|
|
165
|
+
constructor(i, r) {
|
|
166
|
+
const e = this;
|
|
167
|
+
e.geometry = i, e.material = r, e.wireframe = !1, e.attributeInstances = [], Object.entries(e.geometry.attributes).forEach(([t, d]) => {
|
|
168
|
+
e.attributeInstances.push({
|
|
169
|
+
attribute: d,
|
|
170
|
+
location: d.attach(t, e.material.program)
|
|
171
|
+
});
|
|
172
|
+
}), a.meshes.push(e), a.debug("Mesh.constructor", {
|
|
173
|
+
mesh: e
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
draw() {
|
|
177
|
+
s.useProgram(this.material.program), this.material.uniformInstances.forEach(({
|
|
178
|
+
uniform: i,
|
|
179
|
+
location: r
|
|
180
|
+
}) => i.update(r)), this.attributeInstances.forEach(({
|
|
181
|
+
attribute: i,
|
|
182
|
+
location: r
|
|
183
|
+
}) => i.use(r)), s.drawElements(this.wireframe ? s.LINES : s.TRIANGLES, this.geometry.attributes.index.values.length, s.UNSIGNED_SHORT, 0);
|
|
184
|
+
}
|
|
185
|
+
remove() {
|
|
186
|
+
a.meshes = a.meshes.filter((i) => i != this);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
Attribute: {
|
|
191
|
+
enumerable: !1,
|
|
192
|
+
value: class {
|
|
193
|
+
constructor(i) {
|
|
194
|
+
this.type = s.FLOAT, this.normalized = !1, this.buffer = s.createBuffer(), Object.assign(this, i), this.update();
|
|
195
|
+
}
|
|
196
|
+
update() {
|
|
197
|
+
this.values !== void 0 && (s.bindBuffer(this.target, this.buffer), s.bufferData(this.target, this.values, s.STATIC_DRAW));
|
|
198
|
+
}
|
|
199
|
+
attach(i, r) {
|
|
200
|
+
const e = s.getAttribLocation(r, i);
|
|
201
|
+
return this.target === s.ARRAY_BUFFER && (s.enableVertexAttribArray(e), s.vertexAttribPointer(e, this.size, this.type, this.normalized, 0, 0)), e;
|
|
202
|
+
}
|
|
203
|
+
use(i) {
|
|
204
|
+
s.bindBuffer(this.target, this.buffer), this.target === s.ARRAY_BUFFER && (s.enableVertexAttribArray(i), s.vertexAttribPointer(i, this.size, this.type, this.normalized, 0, 0));
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
});
|
|
209
|
+
const y = [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];
|
|
210
|
+
a.commonUniforms = {
|
|
211
|
+
projectionMatrix: new a.Uniform({
|
|
212
|
+
type: "mat4",
|
|
213
|
+
value: y
|
|
214
|
+
}),
|
|
215
|
+
modelViewMatrix: new a.Uniform({
|
|
216
|
+
type: "mat4",
|
|
217
|
+
value: y
|
|
218
|
+
}),
|
|
219
|
+
resolution: new a.Uniform({
|
|
220
|
+
type: "vec2",
|
|
221
|
+
value: [1, 1]
|
|
222
|
+
}),
|
|
223
|
+
aspectRatio: new a.Uniform({
|
|
224
|
+
type: "float",
|
|
225
|
+
value: 1
|
|
226
|
+
})
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
setSize(o = 640, l = 480) {
|
|
230
|
+
this.width = o, this.height = l, this.canvas.width = o, this.canvas.height = l, this.gl.viewport(0, 0, o, l), this.commonUniforms.resolution.value = [o, l], this.commonUniforms.aspectRatio.value = o / l, this.debug("MiniGL.setSize", {
|
|
231
|
+
width: o,
|
|
232
|
+
height: l
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
// left, right, top, bottom, near, far
|
|
236
|
+
setOrthographicCamera(o = 0, l = 0, m = 0, g = -2e3, a = 2e3) {
|
|
237
|
+
this.commonUniforms.projectionMatrix.value = [2 / this.width, 0, 0, 0, 0, 2 / this.height, 0, 0, 0, 0, 2 / (g - a), 0, o, l, m, 1], this.debug("setOrthographicCamera", this.commonUniforms.projectionMatrix.value);
|
|
238
|
+
}
|
|
239
|
+
render() {
|
|
240
|
+
this.gl.clearColor(0, 0, 0, 0), this.gl.clearDepth(1), this.meshes.forEach((o) => o.draw());
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
function n(u, o, l) {
|
|
244
|
+
return o in u ? Object.defineProperty(u, o, {
|
|
245
|
+
value: l,
|
|
246
|
+
enumerable: !0,
|
|
247
|
+
configurable: !0,
|
|
248
|
+
writable: !0
|
|
249
|
+
}) : u[o] = l, u;
|
|
250
|
+
}
|
|
251
|
+
class _ {
|
|
252
|
+
constructor(...o) {
|
|
253
|
+
n(this, "el", void 0), n(this, "cssVarRetries", 0), n(this, "maxCssVarRetries", 200), n(this, "angle", 0), n(this, "isLoadedClass", !1), n(this, "isScrolling", !1), /* e(this, "isStatic", o.disableAmbientAnimations()), */
|
|
254
|
+
n(this, "scrollingTimeout", void 0), n(this, "scrollingRefreshDelay", 200), n(this, "isIntersecting", !1), n(this, "shaderFiles", void 0), n(this, "vertexShader", void 0), n(this, "sectionColors", void 0), n(this, "computedCanvasStyle", void 0), n(this, "conf", void 0), n(this, "uniforms", void 0), n(this, "t", 1253106), n(this, "last", 0), n(this, "width", void 0), n(this, "minWidth", 1111), n(this, "height", 600), n(this, "xSegCount", void 0), n(this, "ySegCount", void 0), n(this, "mesh", void 0), n(this, "material", void 0), n(this, "geometry", void 0), n(this, "minigl", void 0), n(this, "scrollObserver", void 0), n(this, "amp", 320), n(this, "seed", 5), n(this, "freqX", 14e-5), n(this, "freqY", 29e-5), n(this, "freqDelta", 1e-5), n(this, "activeColors", [1, 1, 1, 1]), n(this, "isMetaKey", !1), n(this, "isGradientLegendVisible", !1), n(this, "isMouseDown", !1), n(this, "handleScroll", () => {
|
|
255
|
+
clearTimeout(this.scrollingTimeout), this.scrollingTimeout = setTimeout(this.handleScrollEnd, this.scrollingRefreshDelay), this.isGradientLegendVisible && this.hideGradientLegend(), this.conf.playing && (this.isScrolling = !0, this.pause());
|
|
256
|
+
}), n(this, "handleScrollEnd", () => {
|
|
257
|
+
this.isScrolling = !1, this.isIntersecting && this.play();
|
|
258
|
+
}), n(this, "resize", () => {
|
|
259
|
+
this.width = window.innerWidth, this.minigl.setSize(this.width, this.height), this.minigl.setOrthographicCamera(), this.xSegCount = Math.ceil(this.width * this.conf.density[0]), this.ySegCount = Math.ceil(this.height * this.conf.density[1]), this.mesh.geometry.setTopology(this.xSegCount, this.ySegCount), this.mesh.geometry.setSize(this.width, this.height), this.mesh.material.uniforms.u_shadow_power.value = this.width < 600 ? 5 : 6;
|
|
260
|
+
}), n(this, "handleMouseDown", (l) => {
|
|
261
|
+
this.isGradientLegendVisible && (this.isMetaKey = l.metaKey, this.isMouseDown = !0, this.conf.playing === !1 && requestAnimationFrame(this.animate));
|
|
262
|
+
}), n(this, "handleMouseUp", () => {
|
|
263
|
+
this.isMouseDown = !1;
|
|
264
|
+
}), n(this, "animate", (l) => {
|
|
265
|
+
if (!this.shouldSkipFrame(l) || this.isMouseDown) {
|
|
266
|
+
if (this.t += Math.min(l - this.last, 1e3 / 15), this.last = l, this.isMouseDown) {
|
|
267
|
+
let m = 160;
|
|
268
|
+
this.isMetaKey && (m = -160), this.t += m;
|
|
269
|
+
}
|
|
270
|
+
this.mesh.material.uniforms.u_time.value = this.t, this.minigl.render();
|
|
271
|
+
}
|
|
272
|
+
if (this.last !== 0 && this.isStatic) return this.minigl.render(), void this.disconnect();
|
|
273
|
+
/* this.isIntersecting && */
|
|
274
|
+
(this.conf.playing || this.isMouseDown) && requestAnimationFrame(this.animate);
|
|
275
|
+
}), n(this, "addIsLoadedClass", () => {
|
|
276
|
+
!this.isLoadedClass && (this.isLoadedClass = !0, this.el.classList.add("isLoaded"), setTimeout(() => {
|
|
277
|
+
this.el.parentElement.classList.add("isLoaded");
|
|
278
|
+
}, 3e3));
|
|
279
|
+
}), n(this, "pause", () => {
|
|
280
|
+
this.conf.playing = !1;
|
|
281
|
+
}), n(this, "play", () => {
|
|
282
|
+
requestAnimationFrame(this.animate), this.conf.playing = !0;
|
|
283
|
+
}), n(this, "initGradient", (l) => (this.el = document.querySelector(l), this.connect(), this));
|
|
284
|
+
}
|
|
285
|
+
async connect() {
|
|
286
|
+
this.shaderFiles = {
|
|
287
|
+
vertex: `varying vec3 v_color;
|
|
288
|
+
|
|
289
|
+
void main() {
|
|
290
|
+
float time = u_time * u_global.noiseSpeed;
|
|
291
|
+
|
|
292
|
+
vec2 noiseCoord = resolution * uvNorm * u_global.noiseFreq;
|
|
293
|
+
|
|
294
|
+
vec2 st = 1. - uvNorm.xy;
|
|
295
|
+
|
|
296
|
+
//
|
|
297
|
+
// Tilting the plane
|
|
298
|
+
//
|
|
299
|
+
|
|
300
|
+
// Front-to-back tilt
|
|
301
|
+
float tilt = resolution.y / 2.0 * uvNorm.y;
|
|
302
|
+
|
|
303
|
+
// Left-to-right angle
|
|
304
|
+
float incline = resolution.x * uvNorm.x / 2.0 * u_vertDeform.incline;
|
|
305
|
+
|
|
306
|
+
// Up-down shift to offset incline
|
|
307
|
+
float offset = resolution.x / 2.0 * u_vertDeform.incline * mix(u_vertDeform.offsetBottom, u_vertDeform.offsetTop, uv.y);
|
|
308
|
+
|
|
309
|
+
//
|
|
310
|
+
// Vertex noise
|
|
311
|
+
//
|
|
312
|
+
|
|
313
|
+
float noise = snoise(vec3(
|
|
314
|
+
noiseCoord.x * u_vertDeform.noiseFreq.x + time * u_vertDeform.noiseFlow,
|
|
315
|
+
noiseCoord.y * u_vertDeform.noiseFreq.y,
|
|
316
|
+
time * u_vertDeform.noiseSpeed + u_vertDeform.noiseSeed
|
|
317
|
+
)) * u_vertDeform.noiseAmp;
|
|
318
|
+
|
|
319
|
+
// Fade noise to zero at edges
|
|
320
|
+
noise *= 1.0 - pow(abs(uvNorm.y), 2.0);
|
|
321
|
+
|
|
322
|
+
// Clamp to 0
|
|
323
|
+
noise = max(0.0, noise);
|
|
324
|
+
|
|
325
|
+
vec3 pos = vec3(
|
|
326
|
+
position.x,
|
|
327
|
+
position.y + tilt + incline + noise - offset,
|
|
328
|
+
position.z
|
|
329
|
+
);
|
|
330
|
+
|
|
331
|
+
//
|
|
332
|
+
// Vertex color, to be passed to fragment shader
|
|
333
|
+
//
|
|
334
|
+
|
|
335
|
+
if (u_active_colors[0] == 1.) {
|
|
336
|
+
v_color = u_baseColor;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
for (int i = 0; i < u_waveLayers_length; i++) {
|
|
340
|
+
if (u_active_colors[i + 1] == 1.) {
|
|
341
|
+
WaveLayers layer = u_waveLayers[i];
|
|
342
|
+
|
|
343
|
+
float noise = smoothstep(
|
|
344
|
+
layer.noiseFloor,
|
|
345
|
+
layer.noiseCeil,
|
|
346
|
+
snoise(vec3(
|
|
347
|
+
noiseCoord.x * layer.noiseFreq.x + time * layer.noiseFlow,
|
|
348
|
+
noiseCoord.y * layer.noiseFreq.y,
|
|
349
|
+
time * layer.noiseSpeed + layer.noiseSeed
|
|
350
|
+
)) / 2.0 + 0.5
|
|
351
|
+
);
|
|
352
|
+
|
|
353
|
+
v_color = blendNormal(v_color, layer.color, pow(noise, 4.));
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
//
|
|
358
|
+
// Finish
|
|
359
|
+
//
|
|
360
|
+
|
|
361
|
+
gl_Position = projectionMatrix * modelViewMatrix * vec4(pos, 1.0);
|
|
362
|
+
}`,
|
|
363
|
+
noise: `//
|
|
364
|
+
// Description : Array and textureless GLSL 2D/3D/4D simplex
|
|
365
|
+
// noise functions.
|
|
366
|
+
// Author : Ian McEwan, Ashima Arts.
|
|
367
|
+
// Maintainer : stegu
|
|
368
|
+
// Lastmod : 20110822 (ijm)
|
|
369
|
+
// License : Copyright (C) 2011 Ashima Arts. All rights reserved.
|
|
370
|
+
// Distributed under the MIT License. See LICENSE file.
|
|
371
|
+
// https://github.com/ashima/webgl-noise
|
|
372
|
+
// https://github.com/stegu/webgl-noise
|
|
373
|
+
//
|
|
374
|
+
|
|
375
|
+
vec3 mod289(vec3 x) {
|
|
376
|
+
return x - floor(x * (1.0 / 289.0)) * 289.0;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
vec4 mod289(vec4 x) {
|
|
380
|
+
return x - floor(x * (1.0 / 289.0)) * 289.0;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
vec4 permute(vec4 x) {
|
|
384
|
+
return mod289(((x*34.0)+1.0)*x);
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
vec4 taylorInvSqrt(vec4 r)
|
|
388
|
+
{
|
|
389
|
+
return 1.79284291400159 - 0.85373472095314 * r;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
float snoise(vec3 v)
|
|
393
|
+
{
|
|
394
|
+
const vec2 C = vec2(1.0/6.0, 1.0/3.0) ;
|
|
395
|
+
const vec4 D = vec4(0.0, 0.5, 1.0, 2.0);
|
|
396
|
+
|
|
397
|
+
// First corner
|
|
398
|
+
vec3 i = floor(v + dot(v, C.yyy) );
|
|
399
|
+
vec3 x0 = v - i + dot(i, C.xxx) ;
|
|
400
|
+
|
|
401
|
+
// Other corners
|
|
402
|
+
vec3 g = step(x0.yzx, x0.xyz);
|
|
403
|
+
vec3 l = 1.0 - g;
|
|
404
|
+
vec3 i1 = min( g.xyz, l.zxy );
|
|
405
|
+
vec3 i2 = max( g.xyz, l.zxy );
|
|
406
|
+
|
|
407
|
+
// x0 = x0 - 0.0 + 0.0 * C.xxx;
|
|
408
|
+
// x1 = x0 - i1 + 1.0 * C.xxx;
|
|
409
|
+
// x2 = x0 - i2 + 2.0 * C.xxx;
|
|
410
|
+
// x3 = x0 - 1.0 + 3.0 * C.xxx;
|
|
411
|
+
vec3 x1 = x0 - i1 + C.xxx;
|
|
412
|
+
vec3 x2 = x0 - i2 + C.yyy; // 2.0*C.x = 1/3 = C.y
|
|
413
|
+
vec3 x3 = x0 - D.yyy; // -1.0+3.0*C.x = -0.5 = -D.y
|
|
414
|
+
|
|
415
|
+
// Permutations
|
|
416
|
+
i = mod289(i);
|
|
417
|
+
vec4 p = permute( permute( permute(
|
|
418
|
+
i.z + vec4(0.0, i1.z, i2.z, 1.0 ))
|
|
419
|
+
+ i.y + vec4(0.0, i1.y, i2.y, 1.0 ))
|
|
420
|
+
+ i.x + vec4(0.0, i1.x, i2.x, 1.0 ));
|
|
421
|
+
|
|
422
|
+
// Gradients: 7x7 points over a square, mapped onto an octahedron.
|
|
423
|
+
// The ring size 17*17 = 289 is close to a multiple of 49 (49*6 = 294)
|
|
424
|
+
float n_ = 0.142857142857; // 1.0/7.0
|
|
425
|
+
vec3 ns = n_ * D.wyz - D.xzx;
|
|
426
|
+
|
|
427
|
+
vec4 j = p - 49.0 * floor(p * ns.z * ns.z); // mod(p,7*7)
|
|
428
|
+
|
|
429
|
+
vec4 x_ = floor(j * ns.z);
|
|
430
|
+
vec4 y_ = floor(j - 7.0 * x_ ); // mod(j,N)
|
|
431
|
+
|
|
432
|
+
vec4 x = x_ *ns.x + ns.yyyy;
|
|
433
|
+
vec4 y = y_ *ns.x + ns.yyyy;
|
|
434
|
+
vec4 h = 1.0 - abs(x) - abs(y);
|
|
435
|
+
|
|
436
|
+
vec4 b0 = vec4( x.xy, y.xy );
|
|
437
|
+
vec4 b1 = vec4( x.zw, y.zw );
|
|
438
|
+
|
|
439
|
+
//vec4 s0 = vec4(lessThan(b0,0.0))*2.0 - 1.0;
|
|
440
|
+
//vec4 s1 = vec4(lessThan(b1,0.0))*2.0 - 1.0;
|
|
441
|
+
vec4 s0 = floor(b0)*2.0 + 1.0;
|
|
442
|
+
vec4 s1 = floor(b1)*2.0 + 1.0;
|
|
443
|
+
vec4 sh = -step(h, vec4(0.0));
|
|
444
|
+
|
|
445
|
+
vec4 a0 = b0.xzyw + s0.xzyw*sh.xxyy ;
|
|
446
|
+
vec4 a1 = b1.xzyw + s1.xzyw*sh.zzww ;
|
|
447
|
+
|
|
448
|
+
vec3 p0 = vec3(a0.xy,h.x);
|
|
449
|
+
vec3 p1 = vec3(a0.zw,h.y);
|
|
450
|
+
vec3 p2 = vec3(a1.xy,h.z);
|
|
451
|
+
vec3 p3 = vec3(a1.zw,h.w);
|
|
452
|
+
|
|
453
|
+
//Normalise gradients
|
|
454
|
+
vec4 norm = taylorInvSqrt(vec4(dot(p0,p0), dot(p1,p1), dot(p2, p2), dot(p3,p3)));
|
|
455
|
+
p0 *= norm.x;
|
|
456
|
+
p1 *= norm.y;
|
|
457
|
+
p2 *= norm.z;
|
|
458
|
+
p3 *= norm.w;
|
|
459
|
+
|
|
460
|
+
// Mix final noise value
|
|
461
|
+
vec4 m = max(0.6 - vec4(dot(x0,x0), dot(x1,x1), dot(x2,x2), dot(x3,x3)), 0.0);
|
|
462
|
+
m = m * m;
|
|
463
|
+
return 42.0 * dot( m*m, vec4( dot(p0,x0), dot(p1,x1),
|
|
464
|
+
dot(p2,x2), dot(p3,x3) ) );
|
|
465
|
+
}`,
|
|
466
|
+
blend: `//
|
|
467
|
+
// https://github.com/jamieowen/glsl-blend
|
|
468
|
+
//
|
|
469
|
+
|
|
470
|
+
// Normal
|
|
471
|
+
|
|
472
|
+
vec3 blendNormal(vec3 base, vec3 blend) {
|
|
473
|
+
return blend;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
vec3 blendNormal(vec3 base, vec3 blend, float opacity) {
|
|
477
|
+
return (blendNormal(base, blend) * opacity + base * (1.0 - opacity));
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
// Screen
|
|
481
|
+
|
|
482
|
+
float blendScreen(float base, float blend) {
|
|
483
|
+
return 1.0-((1.0-base)*(1.0-blend));
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
vec3 blendScreen(vec3 base, vec3 blend) {
|
|
487
|
+
return vec3(blendScreen(base.r,blend.r),blendScreen(base.g,blend.g),blendScreen(base.b,blend.b));
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
vec3 blendScreen(vec3 base, vec3 blend, float opacity) {
|
|
491
|
+
return (blendScreen(base, blend) * opacity + base * (1.0 - opacity));
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
// Multiply
|
|
495
|
+
|
|
496
|
+
vec3 blendMultiply(vec3 base, vec3 blend) {
|
|
497
|
+
return base*blend;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
vec3 blendMultiply(vec3 base, vec3 blend, float opacity) {
|
|
501
|
+
return (blendMultiply(base, blend) * opacity + base * (1.0 - opacity));
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
// Overlay
|
|
505
|
+
|
|
506
|
+
float blendOverlay(float base, float blend) {
|
|
507
|
+
return base<0.5?(2.0*base*blend):(1.0-2.0*(1.0-base)*(1.0-blend));
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
vec3 blendOverlay(vec3 base, vec3 blend) {
|
|
511
|
+
return vec3(blendOverlay(base.r,blend.r),blendOverlay(base.g,blend.g),blendOverlay(base.b,blend.b));
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
vec3 blendOverlay(vec3 base, vec3 blend, float opacity) {
|
|
515
|
+
return (blendOverlay(base, blend) * opacity + base * (1.0 - opacity));
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
// Hard light
|
|
519
|
+
|
|
520
|
+
vec3 blendHardLight(vec3 base, vec3 blend) {
|
|
521
|
+
return blendOverlay(blend,base);
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
vec3 blendHardLight(vec3 base, vec3 blend, float opacity) {
|
|
525
|
+
return (blendHardLight(base, blend) * opacity + base * (1.0 - opacity));
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
// Soft light
|
|
529
|
+
|
|
530
|
+
float blendSoftLight(float base, float blend) {
|
|
531
|
+
return (blend<0.5)?(2.0*base*blend+base*base*(1.0-2.0*blend)):(sqrt(base)*(2.0*blend-1.0)+2.0*base*(1.0-blend));
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
vec3 blendSoftLight(vec3 base, vec3 blend) {
|
|
535
|
+
return vec3(blendSoftLight(base.r,blend.r),blendSoftLight(base.g,blend.g),blendSoftLight(base.b,blend.b));
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
vec3 blendSoftLight(vec3 base, vec3 blend, float opacity) {
|
|
539
|
+
return (blendSoftLight(base, blend) * opacity + base * (1.0 - opacity));
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
// Color dodge
|
|
543
|
+
|
|
544
|
+
float blendColorDodge(float base, float blend) {
|
|
545
|
+
return (blend==1.0)?blend:min(base/(1.0-blend),1.0);
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
vec3 blendColorDodge(vec3 base, vec3 blend) {
|
|
549
|
+
return vec3(blendColorDodge(base.r,blend.r),blendColorDodge(base.g,blend.g),blendColorDodge(base.b,blend.b));
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
vec3 blendColorDodge(vec3 base, vec3 blend, float opacity) {
|
|
553
|
+
return (blendColorDodge(base, blend) * opacity + base * (1.0 - opacity));
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
// Color burn
|
|
557
|
+
|
|
558
|
+
float blendColorBurn(float base, float blend) {
|
|
559
|
+
return (blend==0.0)?blend:max((1.0-((1.0-base)/blend)),0.0);
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
vec3 blendColorBurn(vec3 base, vec3 blend) {
|
|
563
|
+
return vec3(blendColorBurn(base.r,blend.r),blendColorBurn(base.g,blend.g),blendColorBurn(base.b,blend.b));
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
vec3 blendColorBurn(vec3 base, vec3 blend, float opacity) {
|
|
567
|
+
return (blendColorBurn(base, blend) * opacity + base * (1.0 - opacity));
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
// Vivid Light
|
|
571
|
+
|
|
572
|
+
float blendVividLight(float base, float blend) {
|
|
573
|
+
return (blend<0.5)?blendColorBurn(base,(2.0*blend)):blendColorDodge(base,(2.0*(blend-0.5)));
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
vec3 blendVividLight(vec3 base, vec3 blend) {
|
|
577
|
+
return vec3(blendVividLight(base.r,blend.r),blendVividLight(base.g,blend.g),blendVividLight(base.b,blend.b));
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
vec3 blendVividLight(vec3 base, vec3 blend, float opacity) {
|
|
581
|
+
return (blendVividLight(base, blend) * opacity + base * (1.0 - opacity));
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
// Lighten
|
|
585
|
+
|
|
586
|
+
float blendLighten(float base, float blend) {
|
|
587
|
+
return max(blend,base);
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
vec3 blendLighten(vec3 base, vec3 blend) {
|
|
591
|
+
return vec3(blendLighten(base.r,blend.r),blendLighten(base.g,blend.g),blendLighten(base.b,blend.b));
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
vec3 blendLighten(vec3 base, vec3 blend, float opacity) {
|
|
595
|
+
return (blendLighten(base, blend) * opacity + base * (1.0 - opacity));
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
// Linear burn
|
|
599
|
+
|
|
600
|
+
float blendLinearBurn(float base, float blend) {
|
|
601
|
+
// Note : Same implementation as BlendSubtractf
|
|
602
|
+
return max(base+blend-1.0,0.0);
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
vec3 blendLinearBurn(vec3 base, vec3 blend) {
|
|
606
|
+
// Note : Same implementation as BlendSubtract
|
|
607
|
+
return max(base+blend-vec3(1.0),vec3(0.0));
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
vec3 blendLinearBurn(vec3 base, vec3 blend, float opacity) {
|
|
611
|
+
return (blendLinearBurn(base, blend) * opacity + base * (1.0 - opacity));
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
// Linear dodge
|
|
615
|
+
|
|
616
|
+
float blendLinearDodge(float base, float blend) {
|
|
617
|
+
// Note : Same implementation as BlendAddf
|
|
618
|
+
return min(base+blend,1.0);
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
vec3 blendLinearDodge(vec3 base, vec3 blend) {
|
|
622
|
+
// Note : Same implementation as BlendAdd
|
|
623
|
+
return min(base+blend,vec3(1.0));
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
vec3 blendLinearDodge(vec3 base, vec3 blend, float opacity) {
|
|
627
|
+
return (blendLinearDodge(base, blend) * opacity + base * (1.0 - opacity));
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
// Linear light
|
|
631
|
+
|
|
632
|
+
float blendLinearLight(float base, float blend) {
|
|
633
|
+
return blend<0.5?blendLinearBurn(base,(2.0*blend)):blendLinearDodge(base,(2.0*(blend-0.5)));
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
vec3 blendLinearLight(vec3 base, vec3 blend) {
|
|
637
|
+
return vec3(blendLinearLight(base.r,blend.r),blendLinearLight(base.g,blend.g),blendLinearLight(base.b,blend.b));
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
vec3 blendLinearLight(vec3 base, vec3 blend, float opacity) {
|
|
641
|
+
return (blendLinearLight(base, blend) * opacity + base * (1.0 - opacity));
|
|
642
|
+
}`,
|
|
643
|
+
fragment: `varying vec3 v_color;
|
|
644
|
+
|
|
645
|
+
void main() {
|
|
646
|
+
vec3 color = v_color;
|
|
647
|
+
if (u_darken_top == 1.0) {
|
|
648
|
+
vec2 st = gl_FragCoord.xy/resolution.xy;
|
|
649
|
+
color.g -= pow(st.y + sin(-12.0) * st.x, u_shadow_power) * 0.4;
|
|
650
|
+
}
|
|
651
|
+
gl_FragColor = vec4(color, 1.0);
|
|
652
|
+
}`
|
|
653
|
+
}, this.conf = {
|
|
654
|
+
presetName: "",
|
|
655
|
+
wireframe: !1,
|
|
656
|
+
density: [0.06, 0.16],
|
|
657
|
+
zoom: 1,
|
|
658
|
+
rotation: 0,
|
|
659
|
+
playing: !0
|
|
660
|
+
}, document.querySelectorAll("canvas").length < 1 ? console.log("DID NOT LOAD HERO STRIPE CANVAS") : (this.minigl = new L(this.el, null, null, !0), requestAnimationFrame(() => {
|
|
661
|
+
this.el && (this.computedCanvasStyle = getComputedStyle(this.el), this.waitForCssVars());
|
|
662
|
+
}));
|
|
663
|
+
}
|
|
664
|
+
disconnect() {
|
|
665
|
+
this.scrollObserver && (window.removeEventListener("scroll", this.handleScroll), window.removeEventListener("mousedown", this.handleMouseDown), window.removeEventListener("mouseup", this.handleMouseUp), window.removeEventListener("keydown", this.handleKeyDown), this.scrollObserver.disconnect()), window.removeEventListener("resize", this.resize);
|
|
666
|
+
}
|
|
667
|
+
initMaterial() {
|
|
668
|
+
this.uniforms = {
|
|
669
|
+
u_time: new this.minigl.Uniform({
|
|
670
|
+
value: 0
|
|
671
|
+
}),
|
|
672
|
+
u_shadow_power: new this.minigl.Uniform({
|
|
673
|
+
value: 5
|
|
674
|
+
}),
|
|
675
|
+
u_darken_top: new this.minigl.Uniform({
|
|
676
|
+
value: this.el.dataset.jsDarkenTop === "" ? 1 : 0
|
|
677
|
+
}),
|
|
678
|
+
u_active_colors: new this.minigl.Uniform({
|
|
679
|
+
value: this.activeColors,
|
|
680
|
+
type: "vec4"
|
|
681
|
+
}),
|
|
682
|
+
u_global: new this.minigl.Uniform({
|
|
683
|
+
value: {
|
|
684
|
+
noiseFreq: new this.minigl.Uniform({
|
|
685
|
+
value: [this.freqX, this.freqY],
|
|
686
|
+
type: "vec2"
|
|
687
|
+
}),
|
|
688
|
+
noiseSpeed: new this.minigl.Uniform({
|
|
689
|
+
value: 5e-6
|
|
690
|
+
})
|
|
691
|
+
},
|
|
692
|
+
type: "struct"
|
|
693
|
+
}),
|
|
694
|
+
u_vertDeform: new this.minigl.Uniform({
|
|
695
|
+
value: {
|
|
696
|
+
incline: new this.minigl.Uniform({
|
|
697
|
+
value: Math.sin(this.angle) / Math.cos(this.angle)
|
|
698
|
+
}),
|
|
699
|
+
offsetTop: new this.minigl.Uniform({
|
|
700
|
+
value: -0.5
|
|
701
|
+
}),
|
|
702
|
+
offsetBottom: new this.minigl.Uniform({
|
|
703
|
+
value: -0.5
|
|
704
|
+
}),
|
|
705
|
+
noiseFreq: new this.minigl.Uniform({
|
|
706
|
+
value: [3, 4],
|
|
707
|
+
type: "vec2"
|
|
708
|
+
}),
|
|
709
|
+
noiseAmp: new this.minigl.Uniform({
|
|
710
|
+
value: this.amp
|
|
711
|
+
}),
|
|
712
|
+
noiseSpeed: new this.minigl.Uniform({
|
|
713
|
+
value: 10
|
|
714
|
+
}),
|
|
715
|
+
noiseFlow: new this.minigl.Uniform({
|
|
716
|
+
value: 3
|
|
717
|
+
}),
|
|
718
|
+
noiseSeed: new this.minigl.Uniform({
|
|
719
|
+
value: this.seed
|
|
720
|
+
})
|
|
721
|
+
},
|
|
722
|
+
type: "struct",
|
|
723
|
+
excludeFrom: "fragment"
|
|
724
|
+
}),
|
|
725
|
+
u_baseColor: new this.minigl.Uniform({
|
|
726
|
+
value: this.sectionColors[0],
|
|
727
|
+
type: "vec3",
|
|
728
|
+
excludeFrom: "fragment"
|
|
729
|
+
}),
|
|
730
|
+
u_waveLayers: new this.minigl.Uniform({
|
|
731
|
+
value: [],
|
|
732
|
+
excludeFrom: "fragment",
|
|
733
|
+
type: "array"
|
|
734
|
+
})
|
|
735
|
+
};
|
|
736
|
+
for (let o = 1; o < this.sectionColors.length; o += 1)
|
|
737
|
+
this.uniforms.u_waveLayers.value.push(new this.minigl.Uniform({
|
|
738
|
+
value: {
|
|
739
|
+
color: new this.minigl.Uniform({
|
|
740
|
+
value: this.sectionColors[o],
|
|
741
|
+
type: "vec3"
|
|
742
|
+
}),
|
|
743
|
+
noiseFreq: new this.minigl.Uniform({
|
|
744
|
+
value: [2 + o / this.sectionColors.length, 3 + o / this.sectionColors.length],
|
|
745
|
+
type: "vec2"
|
|
746
|
+
}),
|
|
747
|
+
noiseSpeed: new this.minigl.Uniform({
|
|
748
|
+
value: 11 + 0.3 * o
|
|
749
|
+
}),
|
|
750
|
+
noiseFlow: new this.minigl.Uniform({
|
|
751
|
+
value: 6.5 + 0.3 * o
|
|
752
|
+
}),
|
|
753
|
+
noiseSeed: new this.minigl.Uniform({
|
|
754
|
+
value: this.seed + 10 * o
|
|
755
|
+
}),
|
|
756
|
+
noiseFloor: new this.minigl.Uniform({
|
|
757
|
+
value: 0.1
|
|
758
|
+
}),
|
|
759
|
+
noiseCeil: new this.minigl.Uniform({
|
|
760
|
+
value: 0.63 + 0.07 * o
|
|
761
|
+
})
|
|
762
|
+
},
|
|
763
|
+
type: "struct"
|
|
764
|
+
}));
|
|
765
|
+
return this.vertexShader = [this.shaderFiles.noise, this.shaderFiles.blend, this.shaderFiles.vertex].join(`
|
|
766
|
+
|
|
767
|
+
`), new this.minigl.Material(this.vertexShader, this.shaderFiles.fragment, this.uniforms);
|
|
768
|
+
}
|
|
769
|
+
initMesh() {
|
|
770
|
+
this.material = this.initMaterial(), this.geometry = new this.minigl.PlaneGeometry(), this.mesh = new this.minigl.Mesh(this.geometry, this.material);
|
|
771
|
+
}
|
|
772
|
+
shouldSkipFrame(o) {
|
|
773
|
+
return !!window.document.hidden || !this.conf.playing || parseInt(o, 10) % 2 == 0 || void 0;
|
|
774
|
+
}
|
|
775
|
+
updateFrequency(o) {
|
|
776
|
+
this.freqX += o, this.freqY += o;
|
|
777
|
+
}
|
|
778
|
+
toggleColor(o) {
|
|
779
|
+
this.activeColors[o] = this.activeColors[o] === 0 ? 1 : 0;
|
|
780
|
+
}
|
|
781
|
+
showGradientLegend() {
|
|
782
|
+
this.width > this.minWidth && (this.isGradientLegendVisible = !0, document.body.classList.add("isGradientLegendVisible"));
|
|
783
|
+
}
|
|
784
|
+
hideGradientLegend() {
|
|
785
|
+
this.isGradientLegendVisible = !1, document.body.classList.remove("isGradientLegendVisible");
|
|
786
|
+
}
|
|
787
|
+
init() {
|
|
788
|
+
this.initGradientColors(), this.initMesh(), this.resize(), requestAnimationFrame(this.animate), window.addEventListener("resize", this.resize);
|
|
789
|
+
}
|
|
790
|
+
/*
|
|
791
|
+
* Waiting for the css variables to become available, usually on page load before we can continue.
|
|
792
|
+
* Using default colors assigned below if no variables have been found after maxCssVarRetries
|
|
793
|
+
*/
|
|
794
|
+
waitForCssVars() {
|
|
795
|
+
if (this.computedCanvasStyle && this.computedCanvasStyle.getPropertyValue("--gradient-color-1").indexOf("#") !== -1) this.init(), this.addIsLoadedClass();
|
|
796
|
+
else {
|
|
797
|
+
if (this.cssVarRetries += 1, this.cssVarRetries > this.maxCssVarRetries)
|
|
798
|
+
return this.sectionColors = [16711680, 16711680, 16711935, 65280, 255], void this.init();
|
|
799
|
+
requestAnimationFrame(() => this.waitForCssVars());
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
/*
|
|
803
|
+
* Initializes the four section colors by retrieving them from css variables.
|
|
804
|
+
*/
|
|
805
|
+
initGradientColors() {
|
|
806
|
+
this.sectionColors = ["--gradient-color-1", "--gradient-color-2", "--gradient-color-3", "--gradient-color-4"].map((o) => {
|
|
807
|
+
let l = this.computedCanvasStyle.getPropertyValue(o).trim();
|
|
808
|
+
return l.length === 4 && (l = `#${l.substr(1).split("").map((g) => g + g).join("")}`), l && `0x${l.substr(1)}`;
|
|
809
|
+
}).filter(Boolean).map(C);
|
|
810
|
+
}
|
|
811
|
+
}
|
|
812
|
+
export {
|
|
813
|
+
_ as Gradient
|
|
814
|
+
};
|