@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,1227 @@
|
|
|
1
|
+
import { jsxs as ee, jsx as S } from "react/jsx-runtime";
|
|
2
|
+
import d, { PureComponent as ye } from "react";
|
|
3
|
+
import { P as h } from "../../../../index-CxkFVI6N.js";
|
|
4
|
+
import { s as Xe } from "../../../../exports.module-DmUnHWIJ.js";
|
|
5
|
+
import Ye from "../Common/CustomLegend/CustomLegend.js";
|
|
6
|
+
import Je from "../Common/CustomTooltipContent/CustomTooltipContent.js";
|
|
7
|
+
import "../Common/YLabelsDropDown/YlabelsDropDown.js";
|
|
8
|
+
import { h as L, a as O, O as De, P as et, Q as Ce, S as tt, l as C, s as ge, U as R, L as j, V as Be, w as be, x as Fe, D as rt, C as nt, c as W, n as M, W as it, A as at, v as ot, b as Pe, e as st, i as V, k as ct, u as lt, G as ut, r as re, X as ft, Y as Ke, Z as pt, _ as te, I as ke, g as dt, $ as mt, R as vt, T as ht } from "../../../../generateCategoricalChart-BBPxYd_a.js";
|
|
9
|
+
import { g as Me } from "../../../../_commonjsHelpers-DaMA6jEr.js";
|
|
10
|
+
import '../../../../assets/PieChart.css';var yt = ["points", "className", "baseLinePoints", "connectNulls"];
|
|
11
|
+
function q() {
|
|
12
|
+
return q = Object.assign ? Object.assign.bind() : function(r) {
|
|
13
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
14
|
+
var n = arguments[e];
|
|
15
|
+
for (var t in n)
|
|
16
|
+
Object.prototype.hasOwnProperty.call(n, t) && (r[t] = n[t]);
|
|
17
|
+
}
|
|
18
|
+
return r;
|
|
19
|
+
}, q.apply(this, arguments);
|
|
20
|
+
}
|
|
21
|
+
function gt(r, e) {
|
|
22
|
+
if (r == null) return {};
|
|
23
|
+
var n = bt(r, e), t, i;
|
|
24
|
+
if (Object.getOwnPropertySymbols) {
|
|
25
|
+
var o = Object.getOwnPropertySymbols(r);
|
|
26
|
+
for (i = 0; i < o.length; i++)
|
|
27
|
+
t = o[i], !(e.indexOf(t) >= 0) && Object.prototype.propertyIsEnumerable.call(r, t) && (n[t] = r[t]);
|
|
28
|
+
}
|
|
29
|
+
return n;
|
|
30
|
+
}
|
|
31
|
+
function bt(r, e) {
|
|
32
|
+
if (r == null) return {};
|
|
33
|
+
var n = {};
|
|
34
|
+
for (var t in r)
|
|
35
|
+
if (Object.prototype.hasOwnProperty.call(r, t)) {
|
|
36
|
+
if (e.indexOf(t) >= 0) continue;
|
|
37
|
+
n[t] = r[t];
|
|
38
|
+
}
|
|
39
|
+
return n;
|
|
40
|
+
}
|
|
41
|
+
function _e(r) {
|
|
42
|
+
return Pt(r) || Ot(r) || xt(r) || At();
|
|
43
|
+
}
|
|
44
|
+
function At() {
|
|
45
|
+
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
46
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
47
|
+
}
|
|
48
|
+
function xt(r, e) {
|
|
49
|
+
if (r) {
|
|
50
|
+
if (typeof r == "string") return de(r, e);
|
|
51
|
+
var n = Object.prototype.toString.call(r).slice(8, -1);
|
|
52
|
+
if (n === "Object" && r.constructor && (n = r.constructor.name), n === "Map" || n === "Set") return Array.from(r);
|
|
53
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return de(r, e);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
function Ot(r) {
|
|
57
|
+
if (typeof Symbol < "u" && r[Symbol.iterator] != null || r["@@iterator"] != null) return Array.from(r);
|
|
58
|
+
}
|
|
59
|
+
function Pt(r) {
|
|
60
|
+
if (Array.isArray(r)) return de(r);
|
|
61
|
+
}
|
|
62
|
+
function de(r, e) {
|
|
63
|
+
(e == null || e > r.length) && (e = r.length);
|
|
64
|
+
for (var n = 0, t = new Array(e); n < e; n++) t[n] = r[n];
|
|
65
|
+
return t;
|
|
66
|
+
}
|
|
67
|
+
var je = function(e) {
|
|
68
|
+
return e && e.x === +e.x && e.y === +e.y;
|
|
69
|
+
}, kt = function() {
|
|
70
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], n = [[]];
|
|
71
|
+
return e.forEach(function(t) {
|
|
72
|
+
je(t) ? n[n.length - 1].push(t) : n[n.length - 1].length > 0 && n.push([]);
|
|
73
|
+
}), je(e[0]) && n[n.length - 1].push(e[0]), n[n.length - 1].length <= 0 && (n = n.slice(0, -1)), n;
|
|
74
|
+
}, Q = function(e, n) {
|
|
75
|
+
var t = kt(e);
|
|
76
|
+
n && (t = [t.reduce(function(o, a) {
|
|
77
|
+
return [].concat(_e(o), _e(a));
|
|
78
|
+
}, [])]);
|
|
79
|
+
var i = t.map(function(o) {
|
|
80
|
+
return o.reduce(function(a, c, u) {
|
|
81
|
+
return "".concat(a).concat(u === 0 ? "M" : "L").concat(c.x, ",").concat(c.y);
|
|
82
|
+
}, "");
|
|
83
|
+
}).join("");
|
|
84
|
+
return t.length === 1 ? "".concat(i, "Z") : i;
|
|
85
|
+
}, _t = function(e, n, t) {
|
|
86
|
+
var i = Q(e, t);
|
|
87
|
+
return "".concat(i.slice(-1) === "Z" ? i.slice(0, -1) : i, "L").concat(Q(n.reverse(), t).slice(1));
|
|
88
|
+
}, jt = function(e) {
|
|
89
|
+
var n = e.points, t = e.className, i = e.baseLinePoints, o = e.connectNulls, a = gt(e, yt);
|
|
90
|
+
if (!n || !n.length)
|
|
91
|
+
return null;
|
|
92
|
+
var c = L("recharts-polygon", t);
|
|
93
|
+
if (i && i.length) {
|
|
94
|
+
var u = a.stroke && a.stroke !== "none", s = _t(n, i, o);
|
|
95
|
+
return /* @__PURE__ */ d.createElement("g", {
|
|
96
|
+
className: c
|
|
97
|
+
}, /* @__PURE__ */ d.createElement("path", q({}, O(a, !0), {
|
|
98
|
+
fill: s.slice(-1) === "Z" ? a.fill : "none",
|
|
99
|
+
stroke: "none",
|
|
100
|
+
d: s
|
|
101
|
+
})), u ? /* @__PURE__ */ d.createElement("path", q({}, O(a, !0), {
|
|
102
|
+
fill: "none",
|
|
103
|
+
d: Q(n, o)
|
|
104
|
+
})) : null, u ? /* @__PURE__ */ d.createElement("path", q({}, O(a, !0), {
|
|
105
|
+
fill: "none",
|
|
106
|
+
d: Q(i, o)
|
|
107
|
+
})) : null);
|
|
108
|
+
}
|
|
109
|
+
var f = Q(n, o);
|
|
110
|
+
return /* @__PURE__ */ d.createElement("path", q({}, O(a, !0), {
|
|
111
|
+
fill: f.slice(-1) === "Z" ? a.fill : "none",
|
|
112
|
+
className: c,
|
|
113
|
+
d: f
|
|
114
|
+
}));
|
|
115
|
+
}, fe, Te;
|
|
116
|
+
function Tt() {
|
|
117
|
+
if (Te) return fe;
|
|
118
|
+
Te = 1;
|
|
119
|
+
var r = De(), e = et(), n = Ce();
|
|
120
|
+
function t(i, o) {
|
|
121
|
+
return i && i.length ? r(i, n(o, 2), e) : void 0;
|
|
122
|
+
}
|
|
123
|
+
return fe = t, fe;
|
|
124
|
+
}
|
|
125
|
+
var wt = Tt();
|
|
126
|
+
const St = /* @__PURE__ */ Me(wt);
|
|
127
|
+
var pe, we;
|
|
128
|
+
function Rt() {
|
|
129
|
+
if (we) return pe;
|
|
130
|
+
we = 1;
|
|
131
|
+
var r = De(), e = Ce(), n = tt();
|
|
132
|
+
function t(i, o) {
|
|
133
|
+
return i && i.length ? r(i, e(o, 2), n) : void 0;
|
|
134
|
+
}
|
|
135
|
+
return pe = t, pe;
|
|
136
|
+
}
|
|
137
|
+
var Et = Rt();
|
|
138
|
+
const It = /* @__PURE__ */ Me(Et);
|
|
139
|
+
var Lt = ["cx", "cy", "angle", "ticks", "axisLine"], Nt = ["ticks", "tick", "angle", "tickFormatter", "stroke"];
|
|
140
|
+
function Z(r) {
|
|
141
|
+
"@babel/helpers - typeof";
|
|
142
|
+
return Z = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
143
|
+
return typeof e;
|
|
144
|
+
} : function(e) {
|
|
145
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
146
|
+
}, Z(r);
|
|
147
|
+
}
|
|
148
|
+
function X() {
|
|
149
|
+
return X = Object.assign ? Object.assign.bind() : function(r) {
|
|
150
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
151
|
+
var n = arguments[e];
|
|
152
|
+
for (var t in n)
|
|
153
|
+
Object.prototype.hasOwnProperty.call(n, t) && (r[t] = n[t]);
|
|
154
|
+
}
|
|
155
|
+
return r;
|
|
156
|
+
}, X.apply(this, arguments);
|
|
157
|
+
}
|
|
158
|
+
function Se(r, e) {
|
|
159
|
+
var n = Object.keys(r);
|
|
160
|
+
if (Object.getOwnPropertySymbols) {
|
|
161
|
+
var t = Object.getOwnPropertySymbols(r);
|
|
162
|
+
e && (t = t.filter(function(i) {
|
|
163
|
+
return Object.getOwnPropertyDescriptor(r, i).enumerable;
|
|
164
|
+
})), n.push.apply(n, t);
|
|
165
|
+
}
|
|
166
|
+
return n;
|
|
167
|
+
}
|
|
168
|
+
function $(r) {
|
|
169
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
170
|
+
var n = arguments[e] != null ? arguments[e] : {};
|
|
171
|
+
e % 2 ? Se(Object(n), !0).forEach(function(t) {
|
|
172
|
+
se(r, t, n[t]);
|
|
173
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(n)) : Se(Object(n)).forEach(function(t) {
|
|
174
|
+
Object.defineProperty(r, t, Object.getOwnPropertyDescriptor(n, t));
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
return r;
|
|
178
|
+
}
|
|
179
|
+
function Re(r, e) {
|
|
180
|
+
if (r == null) return {};
|
|
181
|
+
var n = $t(r, e), t, i;
|
|
182
|
+
if (Object.getOwnPropertySymbols) {
|
|
183
|
+
var o = Object.getOwnPropertySymbols(r);
|
|
184
|
+
for (i = 0; i < o.length; i++)
|
|
185
|
+
t = o[i], !(e.indexOf(t) >= 0) && Object.prototype.propertyIsEnumerable.call(r, t) && (n[t] = r[t]);
|
|
186
|
+
}
|
|
187
|
+
return n;
|
|
188
|
+
}
|
|
189
|
+
function $t(r, e) {
|
|
190
|
+
if (r == null) return {};
|
|
191
|
+
var n = {};
|
|
192
|
+
for (var t in r)
|
|
193
|
+
if (Object.prototype.hasOwnProperty.call(r, t)) {
|
|
194
|
+
if (e.indexOf(t) >= 0) continue;
|
|
195
|
+
n[t] = r[t];
|
|
196
|
+
}
|
|
197
|
+
return n;
|
|
198
|
+
}
|
|
199
|
+
function Dt(r, e) {
|
|
200
|
+
if (!(r instanceof e))
|
|
201
|
+
throw new TypeError("Cannot call a class as a function");
|
|
202
|
+
}
|
|
203
|
+
function Ee(r, e) {
|
|
204
|
+
for (var n = 0; n < e.length; n++) {
|
|
205
|
+
var t = e[n];
|
|
206
|
+
t.enumerable = t.enumerable || !1, t.configurable = !0, "value" in t && (t.writable = !0), Object.defineProperty(r, qe(t.key), t);
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
function Ct(r, e, n) {
|
|
210
|
+
return e && Ee(r.prototype, e), n && Ee(r, n), Object.defineProperty(r, "prototype", { writable: !1 }), r;
|
|
211
|
+
}
|
|
212
|
+
function Bt(r, e, n) {
|
|
213
|
+
return e = ie(e), Ft(r, Ve() ? Reflect.construct(e, n || [], ie(r).constructor) : e.apply(r, n));
|
|
214
|
+
}
|
|
215
|
+
function Ft(r, e) {
|
|
216
|
+
if (e && (Z(e) === "object" || typeof e == "function"))
|
|
217
|
+
return e;
|
|
218
|
+
if (e !== void 0)
|
|
219
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
220
|
+
return Kt(r);
|
|
221
|
+
}
|
|
222
|
+
function Kt(r) {
|
|
223
|
+
if (r === void 0)
|
|
224
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
225
|
+
return r;
|
|
226
|
+
}
|
|
227
|
+
function Ve() {
|
|
228
|
+
try {
|
|
229
|
+
var r = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
230
|
+
}));
|
|
231
|
+
} catch {
|
|
232
|
+
}
|
|
233
|
+
return (Ve = function() {
|
|
234
|
+
return !!r;
|
|
235
|
+
})();
|
|
236
|
+
}
|
|
237
|
+
function ie(r) {
|
|
238
|
+
return ie = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) {
|
|
239
|
+
return n.__proto__ || Object.getPrototypeOf(n);
|
|
240
|
+
}, ie(r);
|
|
241
|
+
}
|
|
242
|
+
function Mt(r, e) {
|
|
243
|
+
if (typeof e != "function" && e !== null)
|
|
244
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
245
|
+
r.prototype = Object.create(e && e.prototype, { constructor: { value: r, writable: !0, configurable: !0 } }), Object.defineProperty(r, "prototype", { writable: !1 }), e && me(r, e);
|
|
246
|
+
}
|
|
247
|
+
function me(r, e) {
|
|
248
|
+
return me = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, i) {
|
|
249
|
+
return t.__proto__ = i, t;
|
|
250
|
+
}, me(r, e);
|
|
251
|
+
}
|
|
252
|
+
function se(r, e, n) {
|
|
253
|
+
return e = qe(e), e in r ? Object.defineProperty(r, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = n, r;
|
|
254
|
+
}
|
|
255
|
+
function qe(r) {
|
|
256
|
+
var e = Vt(r, "string");
|
|
257
|
+
return Z(e) == "symbol" ? e : e + "";
|
|
258
|
+
}
|
|
259
|
+
function Vt(r, e) {
|
|
260
|
+
if (Z(r) != "object" || !r) return r;
|
|
261
|
+
var n = r[Symbol.toPrimitive];
|
|
262
|
+
if (n !== void 0) {
|
|
263
|
+
var t = n.call(r, e);
|
|
264
|
+
if (Z(t) != "object") return t;
|
|
265
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
266
|
+
}
|
|
267
|
+
return (e === "string" ? String : Number)(r);
|
|
268
|
+
}
|
|
269
|
+
var ce = /* @__PURE__ */ function(r) {
|
|
270
|
+
function e() {
|
|
271
|
+
return Dt(this, e), Bt(this, e, arguments);
|
|
272
|
+
}
|
|
273
|
+
return Mt(e, r), Ct(e, [{
|
|
274
|
+
key: "getTickValueCoord",
|
|
275
|
+
value: (
|
|
276
|
+
/**
|
|
277
|
+
* Calculate the coordinate of tick
|
|
278
|
+
* @param {Number} coordinate The radius of tick
|
|
279
|
+
* @return {Object} (x, y)
|
|
280
|
+
*/
|
|
281
|
+
function(t) {
|
|
282
|
+
var i = t.coordinate, o = this.props, a = o.angle, c = o.cx, u = o.cy;
|
|
283
|
+
return R(c, u, i, a);
|
|
284
|
+
}
|
|
285
|
+
)
|
|
286
|
+
}, {
|
|
287
|
+
key: "getTickTextAnchor",
|
|
288
|
+
value: function() {
|
|
289
|
+
var t = this.props.orientation, i;
|
|
290
|
+
switch (t) {
|
|
291
|
+
case "left":
|
|
292
|
+
i = "end";
|
|
293
|
+
break;
|
|
294
|
+
case "right":
|
|
295
|
+
i = "start";
|
|
296
|
+
break;
|
|
297
|
+
default:
|
|
298
|
+
i = "middle";
|
|
299
|
+
break;
|
|
300
|
+
}
|
|
301
|
+
return i;
|
|
302
|
+
}
|
|
303
|
+
}, {
|
|
304
|
+
key: "getViewBox",
|
|
305
|
+
value: function() {
|
|
306
|
+
var t = this.props, i = t.cx, o = t.cy, a = t.angle, c = t.ticks, u = St(c, function(f) {
|
|
307
|
+
return f.coordinate || 0;
|
|
308
|
+
}), s = It(c, function(f) {
|
|
309
|
+
return f.coordinate || 0;
|
|
310
|
+
});
|
|
311
|
+
return {
|
|
312
|
+
cx: i,
|
|
313
|
+
cy: o,
|
|
314
|
+
startAngle: a,
|
|
315
|
+
endAngle: a,
|
|
316
|
+
innerRadius: s.coordinate || 0,
|
|
317
|
+
outerRadius: u.coordinate || 0
|
|
318
|
+
};
|
|
319
|
+
}
|
|
320
|
+
}, {
|
|
321
|
+
key: "renderAxisLine",
|
|
322
|
+
value: function() {
|
|
323
|
+
var t = this.props, i = t.cx, o = t.cy, a = t.angle, c = t.ticks, u = t.axisLine, s = Re(t, Lt), f = c.reduce(function(m, l) {
|
|
324
|
+
return [Math.min(m[0], l.coordinate), Math.max(m[1], l.coordinate)];
|
|
325
|
+
}, [1 / 0, -1 / 0]), v = R(i, o, f[0], a), b = R(i, o, f[1], a), x = $($($({}, O(s, !1)), {}, {
|
|
326
|
+
fill: "none"
|
|
327
|
+
}, O(u, !1)), {}, {
|
|
328
|
+
x1: v.x,
|
|
329
|
+
y1: v.y,
|
|
330
|
+
x2: b.x,
|
|
331
|
+
y2: b.y
|
|
332
|
+
});
|
|
333
|
+
return /* @__PURE__ */ d.createElement("line", X({
|
|
334
|
+
className: "recharts-polar-radius-axis-line"
|
|
335
|
+
}, x));
|
|
336
|
+
}
|
|
337
|
+
}, {
|
|
338
|
+
key: "renderTicks",
|
|
339
|
+
value: function() {
|
|
340
|
+
var t = this, i = this.props, o = i.ticks, a = i.tick, c = i.angle, u = i.tickFormatter, s = i.stroke, f = Re(i, Nt), v = this.getTickTextAnchor(), b = O(f, !1), x = O(a, !1), m = o.map(function(l, y) {
|
|
341
|
+
var p = t.getTickValueCoord(l), A = $($($($({
|
|
342
|
+
textAnchor: v,
|
|
343
|
+
transform: "rotate(".concat(90 - c, ", ").concat(p.x, ", ").concat(p.y, ")")
|
|
344
|
+
}, b), {}, {
|
|
345
|
+
stroke: "none",
|
|
346
|
+
fill: s
|
|
347
|
+
}, x), {}, {
|
|
348
|
+
index: y
|
|
349
|
+
}, p), {}, {
|
|
350
|
+
payload: l
|
|
351
|
+
});
|
|
352
|
+
return /* @__PURE__ */ d.createElement(j, X({
|
|
353
|
+
className: L("recharts-polar-radius-axis-tick", Be(a)),
|
|
354
|
+
key: "tick-".concat(l.coordinate)
|
|
355
|
+
}, be(t.props, l, y)), e.renderTickItem(a, A, u ? u(l.value, y) : l.value));
|
|
356
|
+
});
|
|
357
|
+
return /* @__PURE__ */ d.createElement(j, {
|
|
358
|
+
className: "recharts-polar-radius-axis-ticks"
|
|
359
|
+
}, m);
|
|
360
|
+
}
|
|
361
|
+
}, {
|
|
362
|
+
key: "render",
|
|
363
|
+
value: function() {
|
|
364
|
+
var t = this.props, i = t.ticks, o = t.axisLine, a = t.tick;
|
|
365
|
+
return !i || !i.length ? null : /* @__PURE__ */ d.createElement(j, {
|
|
366
|
+
className: L("recharts-polar-radius-axis", this.props.className)
|
|
367
|
+
}, o && this.renderAxisLine(), a && this.renderTicks(), Fe.renderCallByParent(this.props, this.getViewBox()));
|
|
368
|
+
}
|
|
369
|
+
}], [{
|
|
370
|
+
key: "renderTickItem",
|
|
371
|
+
value: function(t, i, o) {
|
|
372
|
+
var a;
|
|
373
|
+
return /* @__PURE__ */ d.isValidElement(t) ? a = /* @__PURE__ */ d.cloneElement(t, i) : C(t) ? a = t(i) : a = /* @__PURE__ */ d.createElement(ge, X({}, i, {
|
|
374
|
+
className: "recharts-polar-radius-axis-tick-value"
|
|
375
|
+
}), o), a;
|
|
376
|
+
}
|
|
377
|
+
}]);
|
|
378
|
+
}(ye);
|
|
379
|
+
se(ce, "displayName", "PolarRadiusAxis");
|
|
380
|
+
se(ce, "axisType", "radiusAxis");
|
|
381
|
+
se(ce, "defaultProps", {
|
|
382
|
+
type: "number",
|
|
383
|
+
radiusAxisId: 0,
|
|
384
|
+
cx: 0,
|
|
385
|
+
cy: 0,
|
|
386
|
+
angle: 0,
|
|
387
|
+
orientation: "right",
|
|
388
|
+
stroke: "#ccc",
|
|
389
|
+
axisLine: !0,
|
|
390
|
+
tick: !0,
|
|
391
|
+
tickCount: 5,
|
|
392
|
+
allowDataOverflow: !1,
|
|
393
|
+
scale: "auto",
|
|
394
|
+
allowDuplicatedCategory: !0
|
|
395
|
+
});
|
|
396
|
+
function G(r) {
|
|
397
|
+
"@babel/helpers - typeof";
|
|
398
|
+
return G = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
399
|
+
return typeof e;
|
|
400
|
+
} : function(e) {
|
|
401
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
402
|
+
}, G(r);
|
|
403
|
+
}
|
|
404
|
+
function B() {
|
|
405
|
+
return B = Object.assign ? Object.assign.bind() : function(r) {
|
|
406
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
407
|
+
var n = arguments[e];
|
|
408
|
+
for (var t in n)
|
|
409
|
+
Object.prototype.hasOwnProperty.call(n, t) && (r[t] = n[t]);
|
|
410
|
+
}
|
|
411
|
+
return r;
|
|
412
|
+
}, B.apply(this, arguments);
|
|
413
|
+
}
|
|
414
|
+
function Ie(r, e) {
|
|
415
|
+
var n = Object.keys(r);
|
|
416
|
+
if (Object.getOwnPropertySymbols) {
|
|
417
|
+
var t = Object.getOwnPropertySymbols(r);
|
|
418
|
+
e && (t = t.filter(function(i) {
|
|
419
|
+
return Object.getOwnPropertyDescriptor(r, i).enumerable;
|
|
420
|
+
})), n.push.apply(n, t);
|
|
421
|
+
}
|
|
422
|
+
return n;
|
|
423
|
+
}
|
|
424
|
+
function D(r) {
|
|
425
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
426
|
+
var n = arguments[e] != null ? arguments[e] : {};
|
|
427
|
+
e % 2 ? Ie(Object(n), !0).forEach(function(t) {
|
|
428
|
+
le(r, t, n[t]);
|
|
429
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(n)) : Ie(Object(n)).forEach(function(t) {
|
|
430
|
+
Object.defineProperty(r, t, Object.getOwnPropertyDescriptor(n, t));
|
|
431
|
+
});
|
|
432
|
+
}
|
|
433
|
+
return r;
|
|
434
|
+
}
|
|
435
|
+
function qt(r, e) {
|
|
436
|
+
if (!(r instanceof e))
|
|
437
|
+
throw new TypeError("Cannot call a class as a function");
|
|
438
|
+
}
|
|
439
|
+
function Le(r, e) {
|
|
440
|
+
for (var n = 0; n < e.length; n++) {
|
|
441
|
+
var t = e[n];
|
|
442
|
+
t.enumerable = t.enumerable || !1, t.configurable = !0, "value" in t && (t.writable = !0), Object.defineProperty(r, We(t.key), t);
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
function zt(r, e, n) {
|
|
446
|
+
return e && Le(r.prototype, e), n && Le(r, n), Object.defineProperty(r, "prototype", { writable: !1 }), r;
|
|
447
|
+
}
|
|
448
|
+
function Wt(r, e, n) {
|
|
449
|
+
return e = ae(e), Zt(r, ze() ? Reflect.construct(e, n || [], ae(r).constructor) : e.apply(r, n));
|
|
450
|
+
}
|
|
451
|
+
function Zt(r, e) {
|
|
452
|
+
if (e && (G(e) === "object" || typeof e == "function"))
|
|
453
|
+
return e;
|
|
454
|
+
if (e !== void 0)
|
|
455
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
456
|
+
return Gt(r);
|
|
457
|
+
}
|
|
458
|
+
function Gt(r) {
|
|
459
|
+
if (r === void 0)
|
|
460
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
461
|
+
return r;
|
|
462
|
+
}
|
|
463
|
+
function ze() {
|
|
464
|
+
try {
|
|
465
|
+
var r = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
466
|
+
}));
|
|
467
|
+
} catch {
|
|
468
|
+
}
|
|
469
|
+
return (ze = function() {
|
|
470
|
+
return !!r;
|
|
471
|
+
})();
|
|
472
|
+
}
|
|
473
|
+
function ae(r) {
|
|
474
|
+
return ae = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) {
|
|
475
|
+
return n.__proto__ || Object.getPrototypeOf(n);
|
|
476
|
+
}, ae(r);
|
|
477
|
+
}
|
|
478
|
+
function Ht(r, e) {
|
|
479
|
+
if (typeof e != "function" && e !== null)
|
|
480
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
481
|
+
r.prototype = Object.create(e && e.prototype, { constructor: { value: r, writable: !0, configurable: !0 } }), Object.defineProperty(r, "prototype", { writable: !1 }), e && ve(r, e);
|
|
482
|
+
}
|
|
483
|
+
function ve(r, e) {
|
|
484
|
+
return ve = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, i) {
|
|
485
|
+
return t.__proto__ = i, t;
|
|
486
|
+
}, ve(r, e);
|
|
487
|
+
}
|
|
488
|
+
function le(r, e, n) {
|
|
489
|
+
return e = We(e), e in r ? Object.defineProperty(r, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = n, r;
|
|
490
|
+
}
|
|
491
|
+
function We(r) {
|
|
492
|
+
var e = Ut(r, "string");
|
|
493
|
+
return G(e) == "symbol" ? e : e + "";
|
|
494
|
+
}
|
|
495
|
+
function Ut(r, e) {
|
|
496
|
+
if (G(r) != "object" || !r) return r;
|
|
497
|
+
var n = r[Symbol.toPrimitive];
|
|
498
|
+
if (n !== void 0) {
|
|
499
|
+
var t = n.call(r, e);
|
|
500
|
+
if (G(t) != "object") return t;
|
|
501
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
502
|
+
}
|
|
503
|
+
return (e === "string" ? String : Number)(r);
|
|
504
|
+
}
|
|
505
|
+
var Qt = Math.PI / 180, Xt = 1e-5, ue = /* @__PURE__ */ function(r) {
|
|
506
|
+
function e() {
|
|
507
|
+
return qt(this, e), Wt(this, e, arguments);
|
|
508
|
+
}
|
|
509
|
+
return Ht(e, r), zt(e, [{
|
|
510
|
+
key: "getTickLineCoord",
|
|
511
|
+
value: (
|
|
512
|
+
/**
|
|
513
|
+
* Calculate the coordinate of line endpoint
|
|
514
|
+
* @param {Object} data The Data if ticks
|
|
515
|
+
* @return {Object} (x0, y0): The start point of text,
|
|
516
|
+
* (x1, y1): The end point close to text,
|
|
517
|
+
* (x2, y2): The end point close to axis
|
|
518
|
+
*/
|
|
519
|
+
function(t) {
|
|
520
|
+
var i = this.props, o = i.cx, a = i.cy, c = i.radius, u = i.orientation, s = i.tickSize, f = s || 8, v = R(o, a, c, t.coordinate), b = R(o, a, c + (u === "inner" ? -1 : 1) * f, t.coordinate);
|
|
521
|
+
return {
|
|
522
|
+
x1: v.x,
|
|
523
|
+
y1: v.y,
|
|
524
|
+
x2: b.x,
|
|
525
|
+
y2: b.y
|
|
526
|
+
};
|
|
527
|
+
}
|
|
528
|
+
)
|
|
529
|
+
/**
|
|
530
|
+
* Get the text-anchor of each tick
|
|
531
|
+
* @param {Object} data Data of ticks
|
|
532
|
+
* @return {String} text-anchor
|
|
533
|
+
*/
|
|
534
|
+
}, {
|
|
535
|
+
key: "getTickTextAnchor",
|
|
536
|
+
value: function(t) {
|
|
537
|
+
var i = this.props.orientation, o = Math.cos(-t.coordinate * Qt), a;
|
|
538
|
+
return o > Xt ? a = i === "outer" ? "start" : "end" : o < -1e-5 ? a = i === "outer" ? "end" : "start" : a = "middle", a;
|
|
539
|
+
}
|
|
540
|
+
}, {
|
|
541
|
+
key: "renderAxisLine",
|
|
542
|
+
value: function() {
|
|
543
|
+
var t = this.props, i = t.cx, o = t.cy, a = t.radius, c = t.axisLine, u = t.axisLineType, s = D(D({}, O(this.props, !1)), {}, {
|
|
544
|
+
fill: "none"
|
|
545
|
+
}, O(c, !1));
|
|
546
|
+
if (u === "circle")
|
|
547
|
+
return /* @__PURE__ */ d.createElement(rt, B({
|
|
548
|
+
className: "recharts-polar-angle-axis-line"
|
|
549
|
+
}, s, {
|
|
550
|
+
cx: i,
|
|
551
|
+
cy: o,
|
|
552
|
+
r: a
|
|
553
|
+
}));
|
|
554
|
+
var f = this.props.ticks, v = f.map(function(b) {
|
|
555
|
+
return R(i, o, a, b.coordinate);
|
|
556
|
+
});
|
|
557
|
+
return /* @__PURE__ */ d.createElement(jt, B({
|
|
558
|
+
className: "recharts-polar-angle-axis-line"
|
|
559
|
+
}, s, {
|
|
560
|
+
points: v
|
|
561
|
+
}));
|
|
562
|
+
}
|
|
563
|
+
}, {
|
|
564
|
+
key: "renderTicks",
|
|
565
|
+
value: function() {
|
|
566
|
+
var t = this, i = this.props, o = i.ticks, a = i.tick, c = i.tickLine, u = i.tickFormatter, s = i.stroke, f = O(this.props, !1), v = O(a, !1), b = D(D({}, f), {}, {
|
|
567
|
+
fill: "none"
|
|
568
|
+
}, O(c, !1)), x = o.map(function(m, l) {
|
|
569
|
+
var y = t.getTickLineCoord(m), p = t.getTickTextAnchor(m), A = D(D(D({
|
|
570
|
+
textAnchor: p
|
|
571
|
+
}, f), {}, {
|
|
572
|
+
stroke: "none",
|
|
573
|
+
fill: s
|
|
574
|
+
}, v), {}, {
|
|
575
|
+
index: l,
|
|
576
|
+
payload: m,
|
|
577
|
+
x: y.x2,
|
|
578
|
+
y: y.y2
|
|
579
|
+
});
|
|
580
|
+
return /* @__PURE__ */ d.createElement(j, B({
|
|
581
|
+
className: L("recharts-polar-angle-axis-tick", Be(a)),
|
|
582
|
+
key: "tick-".concat(m.coordinate)
|
|
583
|
+
}, be(t.props, m, l)), c && /* @__PURE__ */ d.createElement("line", B({
|
|
584
|
+
className: "recharts-polar-angle-axis-tick-line"
|
|
585
|
+
}, b, y)), a && e.renderTickItem(a, A, u ? u(m.value, l) : m.value));
|
|
586
|
+
});
|
|
587
|
+
return /* @__PURE__ */ d.createElement(j, {
|
|
588
|
+
className: "recharts-polar-angle-axis-ticks"
|
|
589
|
+
}, x);
|
|
590
|
+
}
|
|
591
|
+
}, {
|
|
592
|
+
key: "render",
|
|
593
|
+
value: function() {
|
|
594
|
+
var t = this.props, i = t.ticks, o = t.radius, a = t.axisLine;
|
|
595
|
+
return o <= 0 || !i || !i.length ? null : /* @__PURE__ */ d.createElement(j, {
|
|
596
|
+
className: L("recharts-polar-angle-axis", this.props.className)
|
|
597
|
+
}, a && this.renderAxisLine(), this.renderTicks());
|
|
598
|
+
}
|
|
599
|
+
}], [{
|
|
600
|
+
key: "renderTickItem",
|
|
601
|
+
value: function(t, i, o) {
|
|
602
|
+
var a;
|
|
603
|
+
return /* @__PURE__ */ d.isValidElement(t) ? a = /* @__PURE__ */ d.cloneElement(t, i) : C(t) ? a = t(i) : a = /* @__PURE__ */ d.createElement(ge, B({}, i, {
|
|
604
|
+
className: "recharts-polar-angle-axis-tick-value"
|
|
605
|
+
}), o), a;
|
|
606
|
+
}
|
|
607
|
+
}]);
|
|
608
|
+
}(ye);
|
|
609
|
+
le(ue, "displayName", "PolarAngleAxis");
|
|
610
|
+
le(ue, "axisType", "angleAxis");
|
|
611
|
+
le(ue, "defaultProps", {
|
|
612
|
+
type: "category",
|
|
613
|
+
angleAxisId: 0,
|
|
614
|
+
scale: "auto",
|
|
615
|
+
cx: 0,
|
|
616
|
+
cy: 0,
|
|
617
|
+
orientation: "outer",
|
|
618
|
+
axisLine: !0,
|
|
619
|
+
tickLine: !0,
|
|
620
|
+
tickSize: 8,
|
|
621
|
+
tick: !0,
|
|
622
|
+
hide: !1,
|
|
623
|
+
allowDuplicatedCategory: !0
|
|
624
|
+
});
|
|
625
|
+
var ne;
|
|
626
|
+
function H(r) {
|
|
627
|
+
"@babel/helpers - typeof";
|
|
628
|
+
return H = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
629
|
+
return typeof e;
|
|
630
|
+
} : function(e) {
|
|
631
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
632
|
+
}, H(r);
|
|
633
|
+
}
|
|
634
|
+
function z() {
|
|
635
|
+
return z = Object.assign ? Object.assign.bind() : function(r) {
|
|
636
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
637
|
+
var n = arguments[e];
|
|
638
|
+
for (var t in n)
|
|
639
|
+
Object.prototype.hasOwnProperty.call(n, t) && (r[t] = n[t]);
|
|
640
|
+
}
|
|
641
|
+
return r;
|
|
642
|
+
}, z.apply(this, arguments);
|
|
643
|
+
}
|
|
644
|
+
function Ne(r, e) {
|
|
645
|
+
var n = Object.keys(r);
|
|
646
|
+
if (Object.getOwnPropertySymbols) {
|
|
647
|
+
var t = Object.getOwnPropertySymbols(r);
|
|
648
|
+
e && (t = t.filter(function(i) {
|
|
649
|
+
return Object.getOwnPropertyDescriptor(r, i).enumerable;
|
|
650
|
+
})), n.push.apply(n, t);
|
|
651
|
+
}
|
|
652
|
+
return n;
|
|
653
|
+
}
|
|
654
|
+
function g(r) {
|
|
655
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
656
|
+
var n = arguments[e] != null ? arguments[e] : {};
|
|
657
|
+
e % 2 ? Ne(Object(n), !0).forEach(function(t) {
|
|
658
|
+
k(r, t, n[t]);
|
|
659
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(n)) : Ne(Object(n)).forEach(function(t) {
|
|
660
|
+
Object.defineProperty(r, t, Object.getOwnPropertyDescriptor(n, t));
|
|
661
|
+
});
|
|
662
|
+
}
|
|
663
|
+
return r;
|
|
664
|
+
}
|
|
665
|
+
function Yt(r, e) {
|
|
666
|
+
if (!(r instanceof e))
|
|
667
|
+
throw new TypeError("Cannot call a class as a function");
|
|
668
|
+
}
|
|
669
|
+
function $e(r, e) {
|
|
670
|
+
for (var n = 0; n < e.length; n++) {
|
|
671
|
+
var t = e[n];
|
|
672
|
+
t.enumerable = t.enumerable || !1, t.configurable = !0, "value" in t && (t.writable = !0), Object.defineProperty(r, Ge(t.key), t);
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
function Jt(r, e, n) {
|
|
676
|
+
return e && $e(r.prototype, e), n && $e(r, n), Object.defineProperty(r, "prototype", { writable: !1 }), r;
|
|
677
|
+
}
|
|
678
|
+
function er(r, e, n) {
|
|
679
|
+
return e = oe(e), tr(r, Ze() ? Reflect.construct(e, n || [], oe(r).constructor) : e.apply(r, n));
|
|
680
|
+
}
|
|
681
|
+
function tr(r, e) {
|
|
682
|
+
if (e && (H(e) === "object" || typeof e == "function"))
|
|
683
|
+
return e;
|
|
684
|
+
if (e !== void 0)
|
|
685
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
686
|
+
return rr(r);
|
|
687
|
+
}
|
|
688
|
+
function rr(r) {
|
|
689
|
+
if (r === void 0)
|
|
690
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
691
|
+
return r;
|
|
692
|
+
}
|
|
693
|
+
function Ze() {
|
|
694
|
+
try {
|
|
695
|
+
var r = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
696
|
+
}));
|
|
697
|
+
} catch {
|
|
698
|
+
}
|
|
699
|
+
return (Ze = function() {
|
|
700
|
+
return !!r;
|
|
701
|
+
})();
|
|
702
|
+
}
|
|
703
|
+
function oe(r) {
|
|
704
|
+
return oe = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) {
|
|
705
|
+
return n.__proto__ || Object.getPrototypeOf(n);
|
|
706
|
+
}, oe(r);
|
|
707
|
+
}
|
|
708
|
+
function nr(r, e) {
|
|
709
|
+
if (typeof e != "function" && e !== null)
|
|
710
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
711
|
+
r.prototype = Object.create(e && e.prototype, { constructor: { value: r, writable: !0, configurable: !0 } }), Object.defineProperty(r, "prototype", { writable: !1 }), e && he(r, e);
|
|
712
|
+
}
|
|
713
|
+
function he(r, e) {
|
|
714
|
+
return he = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, i) {
|
|
715
|
+
return t.__proto__ = i, t;
|
|
716
|
+
}, he(r, e);
|
|
717
|
+
}
|
|
718
|
+
function k(r, e, n) {
|
|
719
|
+
return e = Ge(e), e in r ? Object.defineProperty(r, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = n, r;
|
|
720
|
+
}
|
|
721
|
+
function Ge(r) {
|
|
722
|
+
var e = ir(r, "string");
|
|
723
|
+
return H(e) == "symbol" ? e : e + "";
|
|
724
|
+
}
|
|
725
|
+
function ir(r, e) {
|
|
726
|
+
if (H(r) != "object" || !r) return r;
|
|
727
|
+
var n = r[Symbol.toPrimitive];
|
|
728
|
+
if (n !== void 0) {
|
|
729
|
+
var t = n.call(r, e);
|
|
730
|
+
if (H(t) != "object") return t;
|
|
731
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
732
|
+
}
|
|
733
|
+
return String(r);
|
|
734
|
+
}
|
|
735
|
+
var E = /* @__PURE__ */ function(r) {
|
|
736
|
+
function e(n) {
|
|
737
|
+
var t;
|
|
738
|
+
return Yt(this, e), t = er(this, e, [n]), k(t, "pieRef", null), k(t, "sectorRefs", []), k(t, "id", lt("recharts-pie-")), k(t, "handleAnimationEnd", function() {
|
|
739
|
+
var i = t.props.onAnimationEnd;
|
|
740
|
+
t.setState({
|
|
741
|
+
isAnimationFinished: !0
|
|
742
|
+
}), C(i) && i();
|
|
743
|
+
}), k(t, "handleAnimationStart", function() {
|
|
744
|
+
var i = t.props.onAnimationStart;
|
|
745
|
+
t.setState({
|
|
746
|
+
isAnimationFinished: !1
|
|
747
|
+
}), C(i) && i();
|
|
748
|
+
}), t.state = {
|
|
749
|
+
isAnimationFinished: !n.isAnimationActive,
|
|
750
|
+
prevIsAnimationActive: n.isAnimationActive,
|
|
751
|
+
prevAnimationId: n.animationId,
|
|
752
|
+
sectorToFocus: 0
|
|
753
|
+
}, t;
|
|
754
|
+
}
|
|
755
|
+
return nr(e, r), Jt(e, [{
|
|
756
|
+
key: "isActiveIndex",
|
|
757
|
+
value: function(t) {
|
|
758
|
+
var i = this.props.activeIndex;
|
|
759
|
+
return Array.isArray(i) ? i.indexOf(t) !== -1 : t === i;
|
|
760
|
+
}
|
|
761
|
+
}, {
|
|
762
|
+
key: "hasActiveIndex",
|
|
763
|
+
value: function() {
|
|
764
|
+
var t = this.props.activeIndex;
|
|
765
|
+
return Array.isArray(t) ? t.length !== 0 : t || t === 0;
|
|
766
|
+
}
|
|
767
|
+
}, {
|
|
768
|
+
key: "renderLabels",
|
|
769
|
+
value: function(t) {
|
|
770
|
+
var i = this.props.isAnimationActive;
|
|
771
|
+
if (i && !this.state.isAnimationFinished)
|
|
772
|
+
return null;
|
|
773
|
+
var o = this.props, a = o.label, c = o.labelLine, u = o.dataKey, s = o.valueKey, f = O(this.props, !1), v = O(a, !1), b = O(c, !1), x = a && a.offsetRadius || 20, m = t.map(function(l, y) {
|
|
774
|
+
var p = (l.startAngle + l.endAngle) / 2, A = R(l.cx, l.cy, l.outerRadius + x, p), _ = g(g(g(g({}, f), l), {}, {
|
|
775
|
+
stroke: "none"
|
|
776
|
+
}, v), {}, {
|
|
777
|
+
index: y,
|
|
778
|
+
textAnchor: e.getTextAnchor(A.x, l.cx)
|
|
779
|
+
}, A), F = g(g(g(g({}, f), l), {}, {
|
|
780
|
+
fill: "none",
|
|
781
|
+
stroke: l.fill
|
|
782
|
+
}, b), {}, {
|
|
783
|
+
index: y,
|
|
784
|
+
points: [R(l.cx, l.cy, l.outerRadius, p), A]
|
|
785
|
+
}), T = u;
|
|
786
|
+
return W(u) && W(s) ? T = "value" : W(u) && (T = s), // eslint-disable-next-line react/no-array-index-key
|
|
787
|
+
/* @__PURE__ */ d.createElement(j, {
|
|
788
|
+
key: "label-".concat(l.startAngle, "-").concat(l.endAngle, "-").concat(l.midAngle, "-").concat(y)
|
|
789
|
+
}, c && e.renderLabelLineItem(c, F, "line"), e.renderLabelItem(a, _, M(l, T)));
|
|
790
|
+
});
|
|
791
|
+
return /* @__PURE__ */ d.createElement(j, {
|
|
792
|
+
className: "recharts-pie-labels"
|
|
793
|
+
}, m);
|
|
794
|
+
}
|
|
795
|
+
}, {
|
|
796
|
+
key: "renderSectorsStatically",
|
|
797
|
+
value: function(t) {
|
|
798
|
+
var i = this, o = this.props, a = o.activeShape, c = o.blendStroke, u = o.inactiveShape;
|
|
799
|
+
return t.map(function(s, f) {
|
|
800
|
+
if ((s == null ? void 0 : s.startAngle) === 0 && (s == null ? void 0 : s.endAngle) === 0 && t.length !== 1) return null;
|
|
801
|
+
var v = i.isActiveIndex(f), b = u && i.hasActiveIndex() ? u : null, x = v ? a : b, m = g(g({}, s), {}, {
|
|
802
|
+
stroke: c ? s.fill : s.stroke,
|
|
803
|
+
tabIndex: -1
|
|
804
|
+
});
|
|
805
|
+
return /* @__PURE__ */ d.createElement(j, z({
|
|
806
|
+
ref: function(y) {
|
|
807
|
+
y && !i.sectorRefs.includes(y) && i.sectorRefs.push(y);
|
|
808
|
+
},
|
|
809
|
+
tabIndex: -1,
|
|
810
|
+
className: "recharts-pie-sector"
|
|
811
|
+
}, be(i.props, s, f), {
|
|
812
|
+
// eslint-disable-next-line react/no-array-index-key
|
|
813
|
+
key: "sector-".concat(s == null ? void 0 : s.startAngle, "-").concat(s == null ? void 0 : s.endAngle, "-").concat(s.midAngle, "-").concat(f)
|
|
814
|
+
}), /* @__PURE__ */ d.createElement(it, z({
|
|
815
|
+
option: x,
|
|
816
|
+
isActive: v,
|
|
817
|
+
shapeType: "sector"
|
|
818
|
+
}, m)));
|
|
819
|
+
});
|
|
820
|
+
}
|
|
821
|
+
}, {
|
|
822
|
+
key: "renderSectorsWithAnimation",
|
|
823
|
+
value: function() {
|
|
824
|
+
var t = this, i = this.props, o = i.sectors, a = i.isAnimationActive, c = i.animationBegin, u = i.animationDuration, s = i.animationEasing, f = i.animationId, v = this.state, b = v.prevSectors, x = v.prevIsAnimationActive;
|
|
825
|
+
return /* @__PURE__ */ d.createElement(at, {
|
|
826
|
+
begin: c,
|
|
827
|
+
duration: u,
|
|
828
|
+
isActive: a,
|
|
829
|
+
easing: s,
|
|
830
|
+
from: {
|
|
831
|
+
t: 0
|
|
832
|
+
},
|
|
833
|
+
to: {
|
|
834
|
+
t: 1
|
|
835
|
+
},
|
|
836
|
+
key: "pie-".concat(f, "-").concat(x),
|
|
837
|
+
onAnimationStart: this.handleAnimationStart,
|
|
838
|
+
onAnimationEnd: this.handleAnimationEnd
|
|
839
|
+
}, function(m) {
|
|
840
|
+
var l = m.t, y = [], p = o && o[0], A = p.startAngle;
|
|
841
|
+
return o.forEach(function(_, F) {
|
|
842
|
+
var T = b && b[F], N = F > 0 ? ot(_, "paddingAngle", 0) : 0;
|
|
843
|
+
if (T) {
|
|
844
|
+
var U = Pe(T.endAngle - T.startAngle, _.endAngle - _.startAngle), P = g(g({}, _), {}, {
|
|
845
|
+
startAngle: A + N,
|
|
846
|
+
endAngle: A + U(l) + N
|
|
847
|
+
});
|
|
848
|
+
y.push(P), A = P.endAngle;
|
|
849
|
+
} else {
|
|
850
|
+
var K = _.endAngle, w = _.startAngle, Y = Pe(0, K - w), J = Y(l), I = g(g({}, _), {}, {
|
|
851
|
+
startAngle: A + N,
|
|
852
|
+
endAngle: A + J + N
|
|
853
|
+
});
|
|
854
|
+
y.push(I), A = I.endAngle;
|
|
855
|
+
}
|
|
856
|
+
}), /* @__PURE__ */ d.createElement(j, null, t.renderSectorsStatically(y));
|
|
857
|
+
});
|
|
858
|
+
}
|
|
859
|
+
}, {
|
|
860
|
+
key: "attachKeyboardHandlers",
|
|
861
|
+
value: function(t) {
|
|
862
|
+
var i = this;
|
|
863
|
+
t.onkeydown = function(o) {
|
|
864
|
+
if (!o.altKey)
|
|
865
|
+
switch (o.key) {
|
|
866
|
+
case "ArrowLeft": {
|
|
867
|
+
var a = ++i.state.sectorToFocus % i.sectorRefs.length;
|
|
868
|
+
i.sectorRefs[a].focus(), i.setState({
|
|
869
|
+
sectorToFocus: a
|
|
870
|
+
});
|
|
871
|
+
break;
|
|
872
|
+
}
|
|
873
|
+
case "ArrowRight": {
|
|
874
|
+
var c = --i.state.sectorToFocus < 0 ? i.sectorRefs.length - 1 : i.state.sectorToFocus % i.sectorRefs.length;
|
|
875
|
+
i.sectorRefs[c].focus(), i.setState({
|
|
876
|
+
sectorToFocus: c
|
|
877
|
+
});
|
|
878
|
+
break;
|
|
879
|
+
}
|
|
880
|
+
case "Escape": {
|
|
881
|
+
i.sectorRefs[i.state.sectorToFocus].blur(), i.setState({
|
|
882
|
+
sectorToFocus: 0
|
|
883
|
+
});
|
|
884
|
+
break;
|
|
885
|
+
}
|
|
886
|
+
}
|
|
887
|
+
};
|
|
888
|
+
}
|
|
889
|
+
}, {
|
|
890
|
+
key: "renderSectors",
|
|
891
|
+
value: function() {
|
|
892
|
+
var t = this.props, i = t.sectors, o = t.isAnimationActive, a = this.state.prevSectors;
|
|
893
|
+
return o && i && i.length && (!a || !st(a, i)) ? this.renderSectorsWithAnimation() : this.renderSectorsStatically(i);
|
|
894
|
+
}
|
|
895
|
+
}, {
|
|
896
|
+
key: "componentDidMount",
|
|
897
|
+
value: function() {
|
|
898
|
+
this.pieRef && this.attachKeyboardHandlers(this.pieRef);
|
|
899
|
+
}
|
|
900
|
+
}, {
|
|
901
|
+
key: "render",
|
|
902
|
+
value: function() {
|
|
903
|
+
var t = this, i = this.props, o = i.hide, a = i.sectors, c = i.className, u = i.label, s = i.cx, f = i.cy, v = i.innerRadius, b = i.outerRadius, x = i.isAnimationActive, m = this.state.isAnimationFinished;
|
|
904
|
+
if (o || !a || !a.length || !V(s) || !V(f) || !V(v) || !V(b))
|
|
905
|
+
return null;
|
|
906
|
+
var l = L("recharts-pie", c);
|
|
907
|
+
return /* @__PURE__ */ d.createElement(j, {
|
|
908
|
+
tabIndex: this.props.rootTabIndex,
|
|
909
|
+
className: l,
|
|
910
|
+
ref: function(p) {
|
|
911
|
+
t.pieRef = p;
|
|
912
|
+
}
|
|
913
|
+
}, this.renderSectors(), u && this.renderLabels(a), Fe.renderCallByParent(this.props, null, !1), (!x || m) && ct.renderCallByParent(this.props, a, !1));
|
|
914
|
+
}
|
|
915
|
+
}], [{
|
|
916
|
+
key: "getDerivedStateFromProps",
|
|
917
|
+
value: function(t, i) {
|
|
918
|
+
return i.prevIsAnimationActive !== t.isAnimationActive ? {
|
|
919
|
+
prevIsAnimationActive: t.isAnimationActive,
|
|
920
|
+
prevAnimationId: t.animationId,
|
|
921
|
+
curSectors: t.sectors,
|
|
922
|
+
prevSectors: [],
|
|
923
|
+
isAnimationFinished: !0
|
|
924
|
+
} : t.isAnimationActive && t.animationId !== i.prevAnimationId ? {
|
|
925
|
+
prevAnimationId: t.animationId,
|
|
926
|
+
curSectors: t.sectors,
|
|
927
|
+
prevSectors: i.curSectors,
|
|
928
|
+
isAnimationFinished: !0
|
|
929
|
+
} : t.sectors !== i.curSectors ? {
|
|
930
|
+
curSectors: t.sectors,
|
|
931
|
+
isAnimationFinished: !0
|
|
932
|
+
} : null;
|
|
933
|
+
}
|
|
934
|
+
}, {
|
|
935
|
+
key: "getTextAnchor",
|
|
936
|
+
value: function(t, i) {
|
|
937
|
+
return t > i ? "start" : t < i ? "end" : "middle";
|
|
938
|
+
}
|
|
939
|
+
}, {
|
|
940
|
+
key: "renderLabelLineItem",
|
|
941
|
+
value: function(t, i, o) {
|
|
942
|
+
if (/* @__PURE__ */ d.isValidElement(t))
|
|
943
|
+
return /* @__PURE__ */ d.cloneElement(t, i);
|
|
944
|
+
if (C(t))
|
|
945
|
+
return t(i);
|
|
946
|
+
var a = L("recharts-pie-label-line", typeof t != "boolean" ? t.className : "");
|
|
947
|
+
return /* @__PURE__ */ d.createElement(nt, z({}, i, {
|
|
948
|
+
key: o,
|
|
949
|
+
type: "linear",
|
|
950
|
+
className: a
|
|
951
|
+
}));
|
|
952
|
+
}
|
|
953
|
+
}, {
|
|
954
|
+
key: "renderLabelItem",
|
|
955
|
+
value: function(t, i, o) {
|
|
956
|
+
if (/* @__PURE__ */ d.isValidElement(t))
|
|
957
|
+
return /* @__PURE__ */ d.cloneElement(t, i);
|
|
958
|
+
var a = o;
|
|
959
|
+
if (C(t) && (a = t(i), /* @__PURE__ */ d.isValidElement(a)))
|
|
960
|
+
return a;
|
|
961
|
+
var c = L("recharts-pie-label-text", typeof t != "boolean" && !C(t) ? t.className : "");
|
|
962
|
+
return /* @__PURE__ */ d.createElement(ge, z({}, i, {
|
|
963
|
+
alignmentBaseline: "middle",
|
|
964
|
+
className: c
|
|
965
|
+
}), a);
|
|
966
|
+
}
|
|
967
|
+
}]);
|
|
968
|
+
}(ye);
|
|
969
|
+
ne = E;
|
|
970
|
+
k(E, "displayName", "Pie");
|
|
971
|
+
k(E, "defaultProps", {
|
|
972
|
+
stroke: "#fff",
|
|
973
|
+
fill: "#808080",
|
|
974
|
+
legendType: "rect",
|
|
975
|
+
cx: "50%",
|
|
976
|
+
cy: "50%",
|
|
977
|
+
startAngle: 0,
|
|
978
|
+
endAngle: 360,
|
|
979
|
+
innerRadius: 0,
|
|
980
|
+
outerRadius: "80%",
|
|
981
|
+
paddingAngle: 0,
|
|
982
|
+
labelLine: !0,
|
|
983
|
+
hide: !1,
|
|
984
|
+
minAngle: 0,
|
|
985
|
+
isAnimationActive: !ut.isSsr,
|
|
986
|
+
animationBegin: 400,
|
|
987
|
+
animationDuration: 1500,
|
|
988
|
+
animationEasing: "ease",
|
|
989
|
+
nameKey: "name",
|
|
990
|
+
blendStroke: !1,
|
|
991
|
+
rootTabIndex: 0
|
|
992
|
+
});
|
|
993
|
+
k(E, "parseDeltaAngle", function(r, e) {
|
|
994
|
+
var n = re(e - r), t = Math.min(Math.abs(e - r), 360);
|
|
995
|
+
return n * t;
|
|
996
|
+
});
|
|
997
|
+
k(E, "getRealPieData", function(r) {
|
|
998
|
+
var e = r.data, n = r.children, t = O(r, !1), i = ft(n, Ke);
|
|
999
|
+
return e && e.length ? e.map(function(o, a) {
|
|
1000
|
+
return g(g(g({
|
|
1001
|
+
payload: o
|
|
1002
|
+
}, t), o), i && i[a] && i[a].props);
|
|
1003
|
+
}) : i && i.length ? i.map(function(o) {
|
|
1004
|
+
return g(g({}, t), o.props);
|
|
1005
|
+
}) : [];
|
|
1006
|
+
});
|
|
1007
|
+
k(E, "parseCoordinateOfPie", function(r, e) {
|
|
1008
|
+
var n = e.top, t = e.left, i = e.width, o = e.height, a = pt(i, o), c = t + te(r.cx, i, i / 2), u = n + te(r.cy, o, o / 2), s = te(r.innerRadius, a, 0), f = te(r.outerRadius, a, a * 0.8), v = r.maxRadius || Math.sqrt(i * i + o * o) / 2;
|
|
1009
|
+
return {
|
|
1010
|
+
cx: c,
|
|
1011
|
+
cy: u,
|
|
1012
|
+
innerRadius: s,
|
|
1013
|
+
outerRadius: f,
|
|
1014
|
+
maxRadius: v
|
|
1015
|
+
};
|
|
1016
|
+
});
|
|
1017
|
+
k(E, "getComposedData", function(r) {
|
|
1018
|
+
var e = r.item, n = r.offset, t = e.type.defaultProps !== void 0 ? g(g({}, e.type.defaultProps), e.props) : e.props, i = ne.getRealPieData(t);
|
|
1019
|
+
if (!i || !i.length)
|
|
1020
|
+
return null;
|
|
1021
|
+
var o = t.cornerRadius, a = t.startAngle, c = t.endAngle, u = t.paddingAngle, s = t.dataKey, f = t.nameKey, v = t.valueKey, b = t.tooltipType, x = Math.abs(t.minAngle), m = ne.parseCoordinateOfPie(t, n), l = ne.parseDeltaAngle(a, c), y = Math.abs(l), p = s;
|
|
1022
|
+
W(s) && W(v) ? (ke(!1, `Use "dataKey" to specify the value of pie,
|
|
1023
|
+
the props "valueKey" will be deprecated in 1.1.0`), p = "value") : W(s) && (ke(!1, `Use "dataKey" to specify the value of pie,
|
|
1024
|
+
the props "valueKey" will be deprecated in 1.1.0`), p = v);
|
|
1025
|
+
var A = i.filter(function(P) {
|
|
1026
|
+
return M(P, p, 0) !== 0;
|
|
1027
|
+
}).length, _ = (y >= 360 ? A : A - 1) * u, F = y - A * x - _, T = i.reduce(function(P, K) {
|
|
1028
|
+
var w = M(K, p, 0);
|
|
1029
|
+
return P + (V(w) ? w : 0);
|
|
1030
|
+
}, 0), N;
|
|
1031
|
+
if (T > 0) {
|
|
1032
|
+
var U;
|
|
1033
|
+
N = i.map(function(P, K) {
|
|
1034
|
+
var w = M(P, p, 0), Y = M(P, f, K), J = (V(w) ? w : 0) / T, I;
|
|
1035
|
+
K ? I = U.endAngle + re(l) * u * (w !== 0 ? 1 : 0) : I = a;
|
|
1036
|
+
var Ae = I + re(l) * ((w !== 0 ? x : 0) + J * F), xe = (I + Ae) / 2, Oe = (m.innerRadius + m.outerRadius) / 2, Ue = [{
|
|
1037
|
+
name: Y,
|
|
1038
|
+
value: w,
|
|
1039
|
+
payload: P,
|
|
1040
|
+
dataKey: p,
|
|
1041
|
+
type: b
|
|
1042
|
+
}], Qe = R(m.cx, m.cy, Oe, xe);
|
|
1043
|
+
return U = g(g(g({
|
|
1044
|
+
percent: J,
|
|
1045
|
+
cornerRadius: o,
|
|
1046
|
+
name: Y,
|
|
1047
|
+
tooltipPayload: Ue,
|
|
1048
|
+
midAngle: xe,
|
|
1049
|
+
middleRadius: Oe,
|
|
1050
|
+
tooltipPosition: Qe
|
|
1051
|
+
}, P), m), {}, {
|
|
1052
|
+
value: M(P, p),
|
|
1053
|
+
startAngle: I,
|
|
1054
|
+
endAngle: Ae,
|
|
1055
|
+
payload: P,
|
|
1056
|
+
paddingAngle: re(l) * u
|
|
1057
|
+
}), U;
|
|
1058
|
+
});
|
|
1059
|
+
}
|
|
1060
|
+
return g(g({}, m), {}, {
|
|
1061
|
+
sectors: N,
|
|
1062
|
+
data: i
|
|
1063
|
+
});
|
|
1064
|
+
});
|
|
1065
|
+
var ar = dt({
|
|
1066
|
+
chartName: "PieChart",
|
|
1067
|
+
GraphicalChild: E,
|
|
1068
|
+
validateTooltipEventTypes: ["item"],
|
|
1069
|
+
defaultTooltipEventType: "item",
|
|
1070
|
+
legendContent: "children",
|
|
1071
|
+
axisComponents: [{
|
|
1072
|
+
axisType: "angleAxis",
|
|
1073
|
+
AxisComp: ue
|
|
1074
|
+
}, {
|
|
1075
|
+
axisType: "radiusAxis",
|
|
1076
|
+
AxisComp: ce
|
|
1077
|
+
}],
|
|
1078
|
+
formatAxisMap: mt,
|
|
1079
|
+
defaultProps: {
|
|
1080
|
+
layout: "centric",
|
|
1081
|
+
startAngle: 0,
|
|
1082
|
+
endAngle: 360,
|
|
1083
|
+
cx: "50%",
|
|
1084
|
+
cy: "50%",
|
|
1085
|
+
innerRadius: 0,
|
|
1086
|
+
outerRadius: "80%"
|
|
1087
|
+
}
|
|
1088
|
+
});
|
|
1089
|
+
const or = Xe.base, sr = "pie-chart", He = ({
|
|
1090
|
+
id: r,
|
|
1091
|
+
className: e,
|
|
1092
|
+
data: n,
|
|
1093
|
+
title: t,
|
|
1094
|
+
valueKey: i,
|
|
1095
|
+
labelKey: o,
|
|
1096
|
+
colors: a,
|
|
1097
|
+
height: c,
|
|
1098
|
+
width: u,
|
|
1099
|
+
innerRadius: s,
|
|
1100
|
+
outerRadius: f,
|
|
1101
|
+
formatTotal: v,
|
|
1102
|
+
subtitleToCurrency: b,
|
|
1103
|
+
isPayOutChart: x
|
|
1104
|
+
}) => {
|
|
1105
|
+
const m = n.reduce((p, A) => p + A[i], 0), l = v ? v(m) : `${m}`, y = n.map((p) => ({
|
|
1106
|
+
...p,
|
|
1107
|
+
label: p[o],
|
|
1108
|
+
color: a[n.indexOf(p)],
|
|
1109
|
+
percentage: m === 0 ? 0 : (p[i] / m * 100).toFixed(0)
|
|
1110
|
+
}));
|
|
1111
|
+
return /* @__PURE__ */ ee(
|
|
1112
|
+
"div",
|
|
1113
|
+
{
|
|
1114
|
+
id: r,
|
|
1115
|
+
className: [
|
|
1116
|
+
or,
|
|
1117
|
+
sr,
|
|
1118
|
+
e
|
|
1119
|
+
].filter((p) => p).join(" "),
|
|
1120
|
+
children: [
|
|
1121
|
+
/* @__PURE__ */ S("div", { className: "chart-header", children: /* @__PURE__ */ S("h3", { children: t }) }),
|
|
1122
|
+
/* @__PURE__ */ ee("div", { className: "chart-content", children: [
|
|
1123
|
+
/* @__PURE__ */ S(vt, { width: u, height: c, children: /* @__PURE__ */ ee(ar, { children: [
|
|
1124
|
+
/* @__PURE__ */ S(
|
|
1125
|
+
E,
|
|
1126
|
+
{
|
|
1127
|
+
data: y,
|
|
1128
|
+
dataKey: i,
|
|
1129
|
+
nameKey: o,
|
|
1130
|
+
cx: "50%",
|
|
1131
|
+
cy: "50%",
|
|
1132
|
+
innerRadius: s,
|
|
1133
|
+
outerRadius: f,
|
|
1134
|
+
label: !1,
|
|
1135
|
+
paddingAngle: 0,
|
|
1136
|
+
children: y.map((p, A) => /* @__PURE__ */ S(
|
|
1137
|
+
Ke,
|
|
1138
|
+
{
|
|
1139
|
+
fill: a[A],
|
|
1140
|
+
strokeWidth: 0
|
|
1141
|
+
},
|
|
1142
|
+
p[o]
|
|
1143
|
+
))
|
|
1144
|
+
}
|
|
1145
|
+
),
|
|
1146
|
+
/* @__PURE__ */ S(
|
|
1147
|
+
ht,
|
|
1148
|
+
{
|
|
1149
|
+
content: /* @__PURE__ */ S(
|
|
1150
|
+
Je,
|
|
1151
|
+
{
|
|
1152
|
+
isDateValue: !1,
|
|
1153
|
+
isPieChart: !0,
|
|
1154
|
+
isPayOutChart: x
|
|
1155
|
+
}
|
|
1156
|
+
)
|
|
1157
|
+
}
|
|
1158
|
+
),
|
|
1159
|
+
/* @__PURE__ */ ee(
|
|
1160
|
+
"text",
|
|
1161
|
+
{
|
|
1162
|
+
x: "50%",
|
|
1163
|
+
y: "50%",
|
|
1164
|
+
textAnchor: "middle",
|
|
1165
|
+
dominantBaseline: "middle",
|
|
1166
|
+
style: {},
|
|
1167
|
+
children: [
|
|
1168
|
+
/* @__PURE__ */ S("tspan", { x: "50%", dy: "-1.2em", fontSize: "14", fill: "grey", children: "Total" }),
|
|
1169
|
+
/* @__PURE__ */ S("tspan", { x: "50%", dy: "1.2em", fill: "var(--heading)", fontSize: "22", children: l })
|
|
1170
|
+
]
|
|
1171
|
+
}
|
|
1172
|
+
)
|
|
1173
|
+
] }) }),
|
|
1174
|
+
/* @__PURE__ */ S(
|
|
1175
|
+
Ye,
|
|
1176
|
+
{
|
|
1177
|
+
colorsArray: a,
|
|
1178
|
+
yKeysArray: y,
|
|
1179
|
+
capitalizedLegend: !0,
|
|
1180
|
+
orientation: "vertical",
|
|
1181
|
+
getLegendItemTitle: (p) => p[o],
|
|
1182
|
+
getLegendItemSubtitle: (p) => p[i],
|
|
1183
|
+
subtitleToCurrency: b,
|
|
1184
|
+
isPayOutChart: x
|
|
1185
|
+
},
|
|
1186
|
+
r
|
|
1187
|
+
)
|
|
1188
|
+
] })
|
|
1189
|
+
]
|
|
1190
|
+
}
|
|
1191
|
+
);
|
|
1192
|
+
};
|
|
1193
|
+
He.propTypes = {
|
|
1194
|
+
id: h.string,
|
|
1195
|
+
className: h.string,
|
|
1196
|
+
data: h.arrayOf(h.shape({
|
|
1197
|
+
[h.string]: h.oneOfType([
|
|
1198
|
+
h.string,
|
|
1199
|
+
h.number
|
|
1200
|
+
])
|
|
1201
|
+
})).isRequired,
|
|
1202
|
+
title: h.string.isRequired,
|
|
1203
|
+
valueKey: h.string.isRequired,
|
|
1204
|
+
labelKey: h.string.isRequired,
|
|
1205
|
+
colors: h.arrayOf(h.string).isRequired,
|
|
1206
|
+
height: h.oneOfType([h.string, h.number]),
|
|
1207
|
+
width: h.oneOfType([h.string, h.number]),
|
|
1208
|
+
innerRadius: h.oneOfType([h.string, h.number]),
|
|
1209
|
+
outerRadius: h.oneOfType([h.string, h.number]),
|
|
1210
|
+
formatTotal: h.func,
|
|
1211
|
+
subtitleToCurrency: h.bool,
|
|
1212
|
+
isPayOutChart: h.bool
|
|
1213
|
+
};
|
|
1214
|
+
He.defaultProps = {
|
|
1215
|
+
id: void 0,
|
|
1216
|
+
className: void 0,
|
|
1217
|
+
width: "100%",
|
|
1218
|
+
height: 300,
|
|
1219
|
+
innerRadius: "50%",
|
|
1220
|
+
outerRadius: "100%",
|
|
1221
|
+
formatTotal: null,
|
|
1222
|
+
subtitleToCurrency: !1,
|
|
1223
|
+
isPayOutChart: !1
|
|
1224
|
+
};
|
|
1225
|
+
export {
|
|
1226
|
+
He as default
|
|
1227
|
+
};
|