@ntbjs/react-components 2.0.0-rc.3 → 2.0.0-rc.30
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/{esm/node_modules/@babel/runtime/helpers/esm/extends.js → build/_virtual/_rollupPluginBabelHelpers.js} +2 -1
- package/build/_virtual/_rollupPluginBabelHelpers.js.map +1 -0
- package/{esm/components → build}/data/Alert/Alert.js +28 -24
- package/build/data/Alert/Alert.js.map +1 -0
- package/build/data/Alert/Alert.styled.js +56 -0
- package/build/data/Alert/Alert.styled.js.map +1 -0
- package/build/data/Alert/index.js +2 -0
- package/build/data/Alert/index.js.map +1 -0
- package/{esm/components → build}/data/Badge/Badge.js +30 -32
- package/build/data/Badge/Badge.js.map +1 -0
- package/build/data/Badge/Badge.styled.js +133 -0
- package/build/data/Badge/Badge.styled.js.map +1 -0
- package/build/data/Badge/index.js +2 -0
- package/build/data/Badge/index.js.map +1 -0
- package/{esm/components → build}/data/Popover/Popover.js +31 -32
- package/build/data/Popover/Popover.js.map +1 -0
- package/{esm/components → build}/data/Popover/Popover.styled.js +40 -44
- package/build/data/Popover/Popover.styled.js.map +1 -0
- package/build/data/Popover/index.js +2 -0
- package/build/data/Popover/index.js.map +1 -0
- package/build/data/Tab/Tab.js +25 -0
- package/build/data/Tab/Tab.js.map +1 -0
- package/build/data/Tab/Tab.styled.js +13 -0
- package/build/data/Tab/Tab.styled.js.map +1 -0
- package/build/data/Tab/index.js +2 -0
- package/build/data/Tab/index.js.map +1 -0
- package/build/data/Tabs/Tabs.js +91 -0
- package/build/data/Tabs/Tabs.js.map +1 -0
- package/build/data/Tabs/Tabs.styled.js +74 -0
- package/build/data/Tabs/Tabs.styled.js.map +1 -0
- package/build/data/Tabs/index.js +2 -0
- package/build/data/Tabs/index.js.map +1 -0
- package/{esm/components → build}/data/Tooltip/Tooltip.js +17 -19
- package/build/data/Tooltip/Tooltip.js.map +1 -0
- package/build/data/Tooltip/Tooltip.styled.js +28 -0
- package/build/data/Tooltip/Tooltip.styled.js.map +1 -0
- package/build/data/Tooltip/index.js +2 -0
- package/build/data/Tooltip/index.js.map +1 -0
- package/build/data/VerificationStatusIcon/VerificationStatusIcon.js +36 -0
- package/build/data/VerificationStatusIcon/VerificationStatusIcon.js.map +1 -0
- package/{esm/components → build}/data/VerificationStatusIcon/VerificationStatusIcon.styled.js +18 -34
- package/build/data/VerificationStatusIcon/VerificationStatusIcon.styled.js.map +1 -0
- package/build/data/index.js +8 -0
- package/build/data/index.js.map +1 -0
- package/{esm → build}/hooks/useEventListner.js +5 -6
- package/build/hooks/useEventListner.js.map +1 -0
- package/build/hooks/useIsomorphicLayoutEffect.js +6 -0
- package/build/hooks/useIsomorphicLayoutEffect.js.map +1 -0
- package/{esm → build}/hooks/useOnClickOutside.js +2 -1
- package/build/hooks/useOnClickOutside.js.map +1 -0
- package/build/icons/add-circle.svg +3 -0
- package/build/icons/add.svg +3 -0
- package/build/icons/album.svg +3 -0
- package/build/icons/arrow-back.svg +4 -0
- package/{esm → build}/icons/arrow-back.svg.js +4 -4
- package/build/icons/arrow-back.svg.js.map +1 -0
- package/build/icons/arrow-drop-down.svg +4 -0
- package/build/icons/arrow-forward.svg +3 -0
- package/{esm → build}/icons/arrow-forward.svg.js +4 -4
- package/build/icons/arrow-forward.svg.js.map +1 -0
- package/build/icons/audio.svg +3 -0
- package/build/icons/bell.svg +3 -0
- package/build/icons/check-circle-filled.svg +3 -0
- package/build/icons/check-rectangle-filled.svg +3 -0
- package/{esm → build}/icons/check-rectangle-filled.svg.js +4 -4
- package/build/icons/check-rectangle-filled.svg.js.map +1 -0
- package/build/icons/check.svg +3 -0
- package/build/icons/clear-circle-filled.svg +14 -0
- package/build/icons/close.svg +4 -0
- package/{esm → build}/icons/close.svg.js +4 -4
- package/build/icons/close.svg.js.map +1 -0
- package/build/icons/corporate.svg +3 -0
- package/build/icons/delete-context-menu.svg +4 -0
- package/build/icons/delete.svg +3 -0
- package/build/icons/design-services.svg +4 -0
- package/build/icons/download.svg +3 -0
- package/build/icons/edit-note.svg +4 -0
- package/{esm → build}/icons/edit-note.svg.js +4 -4
- package/build/icons/edit-note.svg.js.map +1 -0
- package/build/icons/edit.svg +3 -0
- package/build/icons/expand-more.svg +4 -0
- package/{esm → build}/icons/expand-more.svg.js +4 -4
- package/build/icons/expand-more.svg.js.map +1 -0
- package/build/icons/file.svg +3 -0
- package/build/icons/ftp.svg +3 -0
- package/build/icons/gear.svg +3 -0
- package/build/icons/headset.svg +1 -0
- package/{esm → build}/icons/headset.svg.js +4 -4
- package/build/icons/headset.svg.js.map +1 -0
- package/build/icons/index.js +79 -0
- package/build/icons/layers.svg +3 -0
- package/{esm → build}/icons/layers.svg.js +4 -4
- package/build/icons/layers.svg.js.map +1 -0
- package/build/icons/library-add.svg +3 -0
- package/build/icons/link.svg +4 -0
- package/{esm → build}/icons/link.svg.js +4 -4
- package/build/icons/link.svg.js.map +1 -0
- package/build/icons/pdf.svg +3 -0
- package/build/icons/play.svg +3 -0
- package/{esm → build}/icons/play.svg.js +4 -4
- package/build/icons/play.svg.js.map +1 -0
- package/build/icons/remove-circle.svg +3 -0
- package/build/icons/search.svg +3 -0
- package/{esm → build}/icons/search.svg.js +4 -4
- package/build/icons/search.svg.js.map +1 -0
- package/build/icons/share.svg +3 -0
- package/build/icons/shopping_cart_add.svg +3 -0
- package/build/icons/star-filled.svg +3 -0
- package/{esm → build}/icons/star-filled.svg.js +4 -4
- package/build/icons/star-filled.svg.js.map +1 -0
- package/build/icons/star.svg +3 -0
- package/{esm → build}/icons/star.svg.js +4 -4
- package/build/icons/star.svg.js.map +1 -0
- package/build/icons/triangle-right.svg +4 -0
- package/{esm → build}/icons/triangle-right.svg.js +4 -4
- package/build/icons/triangle-right.svg.js.map +1 -0
- package/build/icons/verification.svg +3 -0
- package/{esm → build}/icons/verification.svg.js +4 -4
- package/build/icons/verification.svg.js.map +1 -0
- package/build/icons/warning-circle.svg +3 -0
- package/{esm → build}/icons/warning-circle.svg.js +4 -4
- package/build/icons/warning-circle.svg.js.map +1 -0
- package/build/icons/warning-triangle.svg +3 -0
- package/build/index.js +5 -0
- package/build/index.js.map +1 -0
- package/build/inputs/ActionButton/ActionButton.js +36 -0
- package/build/inputs/ActionButton/ActionButton.js.map +1 -0
- package/build/inputs/ActionButton/ActionButton.styled.js +55 -0
- package/build/inputs/ActionButton/ActionButton.styled.js.map +1 -0
- package/build/inputs/ActionButton/index.js +2 -0
- package/build/inputs/ActionButton/index.js.map +1 -0
- package/{esm/components → build}/inputs/Button/Button.js +57 -53
- package/build/inputs/Button/Button.js.map +1 -0
- package/build/inputs/Button/Button.styled.js +260 -0
- package/build/inputs/Button/Button.styled.js.map +1 -0
- package/build/inputs/Button/index.js +2 -0
- package/build/inputs/Button/index.js.map +1 -0
- package/{esm/components → build}/inputs/Checkbox/Checkbox.js +15 -16
- package/build/inputs/Checkbox/Checkbox.js.map +1 -0
- package/build/inputs/Checkbox/Checkbox.styled.js +122 -0
- package/build/inputs/Checkbox/Checkbox.styled.js.map +1 -0
- package/build/inputs/Checkbox/index.js +2 -0
- package/build/inputs/Checkbox/index.js.map +1 -0
- package/{esm/components → build}/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.js +61 -58
- package/build/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.js.map +1 -0
- package/build/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.styled.js +285 -0
- package/build/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.styled.js.map +1 -0
- package/build/inputs/CompactAutocompleteSelect/index.js +2 -0
- package/build/inputs/CompactAutocompleteSelect/index.js.map +1 -0
- package/{esm/components → build}/inputs/CompactStarRating/CompactStarRating.js +53 -50
- package/build/inputs/CompactStarRating/CompactStarRating.js.map +1 -0
- package/build/inputs/CompactStarRating/CompactStarRating.styled.js +217 -0
- package/build/inputs/CompactStarRating/CompactStarRating.styled.js.map +1 -0
- package/build/inputs/CompactStarRating/index.js +2 -0
- package/build/inputs/CompactStarRating/index.js.map +1 -0
- package/{esm/components → build}/inputs/CompactTextInput/CompactTextInput.js +58 -57
- package/build/inputs/CompactTextInput/CompactTextInput.js.map +1 -0
- package/build/inputs/CompactTextInput/CompactTextInput.styled.js +326 -0
- package/build/inputs/CompactTextInput/CompactTextInput.styled.js.map +1 -0
- package/build/inputs/CompactTextInput/index.js +2 -0
- package/build/inputs/CompactTextInput/index.js.map +1 -0
- package/{esm/components → build}/inputs/MultiLevelCheckbox/MultiLevelCheckbox.js +44 -84
- package/build/inputs/MultiLevelCheckbox/MultiLevelCheckbox.js.map +1 -0
- package/{esm/components → build}/inputs/MultiLevelCheckbox/MultiLevelCheckbox.styled.js +23 -32
- package/build/inputs/MultiLevelCheckbox/MultiLevelCheckbox.styled.js.map +1 -0
- package/build/inputs/MultiLevelCheckbox/index.js +3 -0
- package/build/inputs/MultiLevelCheckbox/index.js.map +1 -0
- package/build/inputs/MultiLevelCheckbox/types.js +27 -0
- package/build/inputs/MultiLevelCheckbox/types.js.map +1 -0
- package/{esm/components → build}/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.js +53 -50
- package/build/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.js.map +1 -0
- package/build/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.styled.js +93 -0
- package/build/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.styled.js.map +1 -0
- package/build/inputs/MultiLevelCheckboxSelect/index.js +2 -0
- package/build/inputs/MultiLevelCheckboxSelect/index.js.map +1 -0
- package/{esm/components → build}/inputs/MultiSelect/MultiSelect.js +51 -54
- package/build/inputs/MultiSelect/MultiSelect.js.map +1 -0
- package/build/inputs/MultiSelect/MultiSelect.styled.js +224 -0
- package/build/inputs/MultiSelect/MultiSelect.styled.js.map +1 -0
- package/build/inputs/MultiSelect/index.js +2 -0
- package/build/inputs/MultiSelect/index.js.map +1 -0
- package/build/inputs/Radio/Radio.js +60 -0
- package/build/inputs/Radio/Radio.js.map +1 -0
- package/{esm/components → build}/inputs/Radio/Radio.styled.js +20 -24
- package/build/inputs/Radio/Radio.styled.js.map +1 -0
- package/build/inputs/Radio/index.js +2 -0
- package/build/inputs/Radio/index.js.map +1 -0
- package/{esm/components → build}/inputs/Switch/Switch.js +11 -12
- package/build/inputs/Switch/Switch.js.map +1 -0
- package/build/inputs/Switch/Switch.styled.js +102 -0
- package/build/inputs/Switch/Switch.styled.js.map +1 -0
- package/build/inputs/Switch/index.js +2 -0
- package/build/inputs/Switch/index.js.map +1 -0
- package/{esm/components → build}/inputs/TextArea/TextArea.js +60 -64
- package/build/inputs/TextArea/TextArea.js.map +1 -0
- package/build/inputs/TextArea/TextArea.styled.js +439 -0
- package/build/inputs/TextArea/TextArea.styled.js.map +1 -0
- package/build/inputs/TextArea/index.js +2 -0
- package/build/inputs/TextArea/index.js.map +1 -0
- package/build/inputs/TextInput/TextInput.js +139 -0
- package/build/inputs/TextInput/TextInput.js.map +1 -0
- package/build/inputs/TextInput/TextInput.styled.js +231 -0
- package/build/inputs/TextInput/TextInput.styled.js.map +1 -0
- package/build/inputs/TextInput/index.js +2 -0
- package/build/inputs/TextInput/index.js.map +1 -0
- package/build/inputs/index.js +15 -0
- package/build/inputs/index.js.map +1 -0
- package/build/layout/InputGroup/InputGroup.js +20 -0
- package/build/layout/InputGroup/InputGroup.js.map +1 -0
- package/build/layout/InputGroup/InputGroup.styled.js +9 -0
- package/build/layout/InputGroup/InputGroup.styled.js.map +1 -0
- package/build/layout/SectionSeparator/SectionSeparator.js +23 -0
- package/build/layout/SectionSeparator/SectionSeparator.js.map +1 -0
- package/build/layout/SectionSeparator/SectionSeparator.styled.js +14 -0
- package/build/layout/SectionSeparator/SectionSeparator.styled.js.map +1 -0
- package/build/layout/SectionSeparator/index.js +2 -0
- package/build/layout/SectionSeparator/index.js.map +1 -0
- package/build/layout/index.js +3 -0
- package/build/layout/index.js.map +1 -0
- package/{esm/ssr → build}/ssr/index.js +1 -0
- package/build/ssr/index.js.map +1 -0
- package/build/styles/all.scss +3 -0
- package/build/styles/config.scss +38 -0
- package/build/styles/utils/colors.scss +15 -0
- package/build/styles/utils/colors.scss.js +4 -0
- package/build/styles/utils/colors.scss.js.map +1 -0
- package/build/styles/utils/theme.scss +33 -0
- package/{esm → build}/utils/dateTime.js +1 -0
- package/build/utils/dateTime.js.map +1 -0
- package/build/utils/defaultTheme.js +44 -0
- package/build/utils/defaultTheme.js.map +1 -0
- package/{esm/components → build}/widgets/AssetAction/AssetAction.js +22 -25
- package/build/widgets/AssetAction/AssetAction.js.map +1 -0
- package/build/widgets/AssetAction/AssetAction.styled.js +41 -0
- package/build/widgets/AssetAction/AssetAction.styled.js.map +1 -0
- package/build/widgets/AssetAction/index.js +2 -0
- package/build/widgets/AssetAction/index.js.map +1 -0
- package/build/widgets/AssetActionsBase/AssetActionsBase.js +29 -0
- package/build/widgets/AssetActionsBase/AssetActionsBase.js.map +1 -0
- package/build/widgets/AssetActionsBase/AssetActionsBase.styled.js +15 -0
- package/build/widgets/AssetActionsBase/AssetActionsBase.styled.js.map +1 -0
- package/build/widgets/AssetActionsBase/index.js +2 -0
- package/build/widgets/AssetActionsBase/index.js.map +1 -0
- package/{esm/components → build}/widgets/AssetGallery/AssetGallery.js +35 -34
- package/build/widgets/AssetGallery/AssetGallery.js.map +1 -0
- package/{esm/components → build}/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.js +65 -64
- package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.js.map +1 -0
- package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.styled.js +30 -0
- package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.styled.js.map +1 -0
- package/{esm/components → build}/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.js +111 -108
- package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.js.map +1 -0
- package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.styled.js +329 -0
- package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.styled.js.map +1 -0
- package/{esm/components → build}/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.js +131 -114
- package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.js.map +1 -0
- package/{esm/components → build}/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.styled.js +98 -120
- package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.styled.js.map +1 -0
- package/{esm/components → build}/widgets/AssetGallery/asset.propType.js +5 -4
- package/build/widgets/AssetGallery/asset.propType.js.map +1 -0
- package/build/widgets/AssetGallery/index.js +2 -0
- package/build/widgets/AssetGallery/index.js.map +1 -0
- package/build/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.js +44 -0
- package/build/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.js.map +1 -0
- package/build/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.styled.js +77 -0
- package/build/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.styled.js.map +1 -0
- package/build/widgets/AssetPreview/AssetPreviewTopBar/index.js +2 -0
- package/build/widgets/AssetPreview/AssetPreviewTopBar/index.js.map +1 -0
- package/build/widgets/ContextMenu/ContextMenu.js +22 -0
- package/build/widgets/ContextMenu/ContextMenu.js.map +1 -0
- package/build/widgets/ContextMenu/ContextMenu.styled.js +10 -0
- package/build/widgets/ContextMenu/ContextMenu.styled.js.map +1 -0
- package/build/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js +44 -0
- package/build/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js.map +1 -0
- package/build/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.styled.js +77 -0
- package/build/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.styled.js.map +1 -0
- package/build/widgets/ContextMenu/ContextMenuItem/index.js +2 -0
- package/build/widgets/ContextMenu/ContextMenuItem/index.js.map +1 -0
- package/build/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.js +22 -0
- package/build/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.js.map +1 -0
- package/{esm/components → build}/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.styled.js +5 -6
- package/build/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.styled.js.map +1 -0
- package/build/widgets/ContextMenu/ContextMenuItemsGroup/index.js +2 -0
- package/build/widgets/ContextMenu/ContextMenuItemsGroup/index.js.map +1 -0
- package/build/widgets/ContextMenu/index.js +2 -0
- package/build/widgets/ContextMenu/index.js.map +1 -0
- package/build/widgets/InfoCard/InfoCard.js +40 -0
- package/build/widgets/InfoCard/InfoCard.js.map +1 -0
- package/build/widgets/InfoCard/InfoCard.styled.js +92 -0
- package/build/widgets/InfoCard/InfoCard.styled.js.map +1 -0
- package/build/widgets/InfoCard/index.js +2 -0
- package/build/widgets/InfoCard/index.js.map +1 -0
- package/{esm/components → build}/widgets/Instructions/Instructions.js +60 -63
- package/build/widgets/Instructions/Instructions.js.map +1 -0
- package/build/widgets/Instructions/Instructions.styled.js +32 -0
- package/build/widgets/Instructions/Instructions.styled.js.map +1 -0
- package/build/widgets/Instructions/index.js +2 -0
- package/build/widgets/Instructions/index.js.map +1 -0
- package/build/widgets/ProgressBar/ProgressBar.js +72 -0
- package/build/widgets/ProgressBar/ProgressBar.js.map +1 -0
- package/build/widgets/ProgressBar/ProgressBar.styled.js +145 -0
- package/build/widgets/ProgressBar/ProgressBar.styled.js.map +1 -0
- package/build/widgets/ProgressBar/index.js +2 -0
- package/build/widgets/ProgressBar/index.js.map +1 -0
- package/build/widgets/SummaryCard/SummaryCard.js +92 -0
- package/build/widgets/SummaryCard/SummaryCard.js.map +1 -0
- package/build/widgets/SummaryCard/SummaryCard.styled.js +137 -0
- package/build/widgets/SummaryCard/SummaryCard.styled.js.map +1 -0
- package/build/widgets/SummaryCard/index.js +2 -0
- package/build/widgets/SummaryCard/index.js.map +1 -0
- package/build/widgets/index.js +12 -0
- package/build/widgets/index.js.map +1 -0
- package/package.json +49 -59
- package/styles/all.scss +3 -3
- package/styles/config.scss +1 -0
- package/styles/utils/colors.scss +4 -4
- package/styles/utils/theme.scss +0 -2
- package/.eslintrc +0 -19
- package/cjs/_virtual/_rollupPluginBabelHelpers.js +0 -84
- package/cjs/_virtual/index.js +0 -7
- package/cjs/_virtual/index2.js +0 -7
- package/cjs/_virtual/index3.js +0 -7
- package/cjs/_virtual/index4.js +0 -7
- package/cjs/_virtual/index5.js +0 -7
- package/cjs/_virtual/react-dom.development.js +0 -7
- package/cjs/_virtual/react-dom.production.js +0 -7
- package/cjs/_virtual/react-is.development.js +0 -7
- package/cjs/_virtual/react-is.development2.js +0 -7
- package/cjs/_virtual/react-is.production.min.js +0 -7
- package/cjs/_virtual/react-is.production.min2.js +0 -7
- package/cjs/_virtual/react.development.js +0 -7
- package/cjs/_virtual/react.production.js +0 -7
- package/cjs/components/data/Alert/Alert.js +0 -81
- package/cjs/components/data/Alert/Alert.styled.js +0 -72
- package/cjs/components/data/Alert/data/Alert/index.js +0 -9
- package/cjs/components/data/Badge/Badge.js +0 -93
- package/cjs/components/data/Badge/Badge.styled.js +0 -156
- package/cjs/components/data/Badge/data/Badge/index.js +0 -9
- package/cjs/components/data/Popover/Popover.js +0 -102
- package/cjs/components/data/Popover/Popover.styled.js +0 -159
- package/cjs/components/data/Popover/data/Popover/index.js +0 -9
- package/cjs/components/data/Tab/Tab.js +0 -31
- package/cjs/components/data/Tab/Tab.styled.js +0 -22
- package/cjs/components/data/Tab/data/Tab/index.js +0 -9
- package/cjs/components/data/Tabs/Tabs.js +0 -91
- package/cjs/components/data/Tabs/Tabs.styled.js +0 -97
- package/cjs/components/data/Tabs/data/Tabs/index.js +0 -9
- package/cjs/components/data/Tooltip/Tooltip.js +0 -50
- package/cjs/components/data/Tooltip/Tooltip.styled.js +0 -38
- package/cjs/components/data/Tooltip/data/Tooltip/index.js +0 -9
- package/cjs/components/data/VerificationStatusIcon/VerificationStatusIcon.js +0 -42
- package/cjs/components/data/VerificationStatusIcon/VerificationStatusIcon.styled.js +0 -79
- package/cjs/components/data/data/index.js +0 -21
- package/cjs/components/inputs/ActionButton/ActionButton.js +0 -42
- package/cjs/components/inputs/ActionButton/ActionButton.styled.js +0 -66
- package/cjs/components/inputs/ActionButton/inputs/ActionButton/index.js +0 -9
- package/cjs/components/inputs/Button/Button.js +0 -188
- package/cjs/components/inputs/Button/Button.styled.js +0 -294
- package/cjs/components/inputs/Button/inputs/Button/index.js +0 -9
- package/cjs/components/inputs/Checkbox/Checkbox.js +0 -102
- package/cjs/components/inputs/Checkbox/Checkbox.styled.js +0 -145
- package/cjs/components/inputs/Checkbox/inputs/Checkbox/index.js +0 -9
- package/cjs/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.js +0 -268
- package/cjs/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.styled.js +0 -352
- package/cjs/components/inputs/CompactAutocompleteSelect/inputs/CompactAutocompleteSelect/index.js +0 -9
- package/cjs/components/inputs/CompactStarRating/CompactStarRating.js +0 -178
- package/cjs/components/inputs/CompactStarRating/CompactStarRating.styled.js +0 -258
- package/cjs/components/inputs/CompactStarRating/inputs/CompactStarRating/index.js +0 -9
- package/cjs/components/inputs/CompactTextInput/CompactTextInput.js +0 -187
- package/cjs/components/inputs/CompactTextInput/CompactTextInput.styled.js +0 -352
- package/cjs/components/inputs/CompactTextInput/inputs/CompactTextInput/index.js +0 -9
- package/cjs/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.js +0 -253
- package/cjs/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.styled.js +0 -89
- package/cjs/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.js +0 -185
- package/cjs/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.styled.js +0 -122
- package/cjs/components/inputs/MultiSelect/MultiSelect.js +0 -251
- package/cjs/components/inputs/MultiSelect/MultiSelect.styled.js +0 -279
- package/cjs/components/inputs/MultiSelect/inputs/MultiSelect/index.js +0 -9
- package/cjs/components/inputs/Radio/Radio.js +0 -67
- package/cjs/components/inputs/Radio/Radio.styled.js +0 -93
- package/cjs/components/inputs/Radio/inputs/Radio/index.js +0 -9
- package/cjs/components/inputs/Switch/Switch.js +0 -69
- package/cjs/components/inputs/Switch/Switch.styled.js +0 -123
- package/cjs/components/inputs/Switch/inputs/Switch/index.js +0 -9
- package/cjs/components/inputs/TextArea/TextArea.js +0 -186
- package/cjs/components/inputs/TextArea/TextArea.styled.js +0 -455
- package/cjs/components/inputs/TextArea/inputs/TextArea/index.js +0 -9
- package/cjs/components/inputs/TextInput/TextInput.js +0 -147
- package/cjs/components/inputs/TextInput/TextInput.styled.js +0 -276
- package/cjs/components/inputs/TextInput/inputs/TextInput/index.js +0 -9
- package/cjs/components/inputs/inputs/index.js +0 -33
- package/cjs/components/layout/InputGroup/InputGroup.js +0 -26
- package/cjs/components/layout/InputGroup/InputGroup.styled.js +0 -18
- package/cjs/components/layout/InputGroup/layout/InputGroup/index.js +0 -9
- package/cjs/components/layout/SectionSeparator/SectionSeparator.js +0 -29
- package/cjs/components/layout/SectionSeparator/SectionSeparator.styled.js +0 -21
- package/cjs/components/layout/SectionSeparator/layout/SectionSeparator/index.js +0 -9
- package/cjs/components/layout/layout/index.js +0 -11
- package/cjs/components/widgets/AssetAction/AssetAction.js +0 -106
- package/cjs/components/widgets/AssetAction/AssetAction.styled.js +0 -58
- package/cjs/components/widgets/AssetActionsBase/AssetActionsBase.js +0 -35
- package/cjs/components/widgets/AssetActionsBase/AssetActionsBase.styled.js +0 -24
- package/cjs/components/widgets/AssetGallery/AssetGallery.js +0 -102
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.js +0 -392
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.styled.js +0 -43
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.js +0 -402
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.styled.js +0 -338
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.js +0 -396
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.styled.js +0 -328
- package/cjs/components/widgets/AssetGallery/asset.propType.js +0 -58
- package/cjs/components/widgets/AssetGallery/widgets/AssetGallery/index.js +0 -9
- package/cjs/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.js +0 -50
- package/cjs/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.styled.js +0 -96
- package/cjs/components/widgets/AssetPreview/AssetPreviewTopBar/widgets/AssetPreview/AssetPreviewTopBar/index.js +0 -9
- package/cjs/components/widgets/ContextMenu/ContextMenu.js +0 -28
- package/cjs/components/widgets/ContextMenu/ContextMenu.styled.js +0 -19
- package/cjs/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js +0 -50
- package/cjs/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.styled.js +0 -93
- package/cjs/components/widgets/ContextMenu/ContextMenuItem/widgets/ContextMenu/ContextMenuItem/index.js +0 -9
- package/cjs/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.js +0 -28
- package/cjs/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.styled.js +0 -30
- package/cjs/components/widgets/ContextMenu/ContextMenuItemsGroup/widgets/ContextMenu/ContextMenuItemsGroup/index.js +0 -9
- package/cjs/components/widgets/ContextMenu/widgets/ContextMenu/index.js +0 -9
- package/cjs/components/widgets/InfoCard/InfoCard.js +0 -39
- package/cjs/components/widgets/InfoCard/InfoCard.styled.js +0 -110
- package/cjs/components/widgets/InfoCard/widgets/InfoCard/index.js +0 -9
- package/cjs/components/widgets/Instructions/Instructions.js +0 -217
- package/cjs/components/widgets/Instructions/Instructions.styled.js +0 -47
- package/cjs/components/widgets/Instructions/widgets/Instructions/index.js +0 -9
- package/cjs/components/widgets/ProgressBar/ProgressBar.js +0 -58
- package/cjs/components/widgets/ProgressBar/ProgressBar.styled.js +0 -154
- package/cjs/components/widgets/ProgressBar/widgets/ProgressBar/index.js +0 -9
- package/cjs/components/widgets/SummaryCard/SummaryCard.js +0 -92
- package/cjs/components/widgets/SummaryCard/SummaryCard.styled.js +0 -142
- package/cjs/components/widgets/widgets/index.js +0 -25
- package/cjs/hooks/useEventListner.js +0 -26
- package/cjs/hooks/useIsomorphicLayoutEffect.js +0 -11
- package/cjs/hooks/useOnClickOutside.js +0 -17
- package/cjs/icons/arrow-back.svg.js +0 -20
- package/cjs/icons/arrow-forward.svg.js +0 -20
- package/cjs/icons/check-rectangle-filled.svg.js +0 -20
- package/cjs/icons/close.svg.js +0 -20
- package/cjs/icons/edit-note.svg.js +0 -20
- package/cjs/icons/expand-more.svg.js +0 -20
- package/cjs/icons/headset.svg.js +0 -20
- package/cjs/icons/layers.svg.js +0 -20
- package/cjs/icons/link.svg.js +0 -20
- package/cjs/icons/play.svg.js +0 -20
- package/cjs/icons/search.svg.js +0 -20
- package/cjs/icons/star-filled.svg.js +0 -20
- package/cjs/icons/star.svg.js +0 -20
- package/cjs/icons/triangle-right.svg.js +0 -20
- package/cjs/icons/verification.svg.js +0 -20
- package/cjs/icons/warning-circle.svg.js +0 -20
- package/cjs/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +0 -11
- package/cjs/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +0 -9
- package/cjs/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +0 -11
- package/cjs/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +0 -10
- package/cjs/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +0 -9
- package/cjs/node_modules/@babel/runtime/helpers/esm/createClass.js +0 -19
- package/cjs/node_modules/@babel/runtime/helpers/esm/createSuper.js +0 -22
- package/cjs/node_modules/@babel/runtime/helpers/esm/defineProperty.js +0 -16
- package/cjs/node_modules/@babel/runtime/helpers/esm/extends.js +0 -15
- package/cjs/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +0 -11
- package/cjs/node_modules/@babel/runtime/helpers/esm/inherits.js +0 -20
- package/cjs/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +0 -14
- package/cjs/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +0 -9
- package/cjs/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +0 -33
- package/cjs/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +0 -9
- package/cjs/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +0 -9
- package/cjs/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +0 -29
- package/cjs/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +0 -19
- package/cjs/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -15
- package/cjs/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +0 -14
- package/cjs/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -11
- package/cjs/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +0 -14
- package/cjs/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +0 -13
- package/cjs/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +0 -14
- package/cjs/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +0 -18
- package/cjs/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +0 -13
- package/cjs/node_modules/@babel/runtime/helpers/esm/typeof.js +0 -15
- package/cjs/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +0 -15
- package/cjs/node_modules/@emotion/cache/dist/emotion-cache.esm.js +0 -503
- package/cjs/node_modules/@emotion/hash/dist/emotion-hash.esm.js +0 -59
- package/cjs/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +0 -13
- package/cjs/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js +0 -158
- package/cjs/node_modules/@emotion/react/dist/emotion-react.esm.js +0 -66
- package/cjs/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +0 -240
- package/cjs/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +0 -144
- package/cjs/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +0 -56
- package/cjs/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js +0 -16
- package/cjs/node_modules/@emotion/utils/dist/emotion-utils.esm.js +0 -60
- package/cjs/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js +0 -20
- package/cjs/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.js +0 -907
- package/cjs/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.js +0 -374
- package/cjs/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs.js +0 -128
- package/cjs/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.js +0 -165
- package/cjs/node_modules/@restart/hooks/esm/useMergedRefs.js +0 -46
- package/cjs/node_modules/@restart/hooks/esm/useUpdateEffect.js +0 -41
- package/cjs/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +0 -24
- package/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js +0 -186
- package/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js +0 -22
- package/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +0 -13
- package/cjs/node_modules/memoize-one/dist/memoize-one.esm.js +0 -55
- package/cjs/node_modules/object-assign/index.js +0 -94
- package/cjs/node_modules/prop-types/checkPropTypes.js +0 -110
- package/cjs/node_modules/prop-types/factoryWithThrowingShims.js +0 -69
- package/cjs/node_modules/prop-types/factoryWithTypeCheckers.js +0 -621
- package/cjs/node_modules/prop-types/index.js +0 -33
- package/cjs/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -16
- package/cjs/node_modules/prop-types/lib/has.js +0 -7
- package/cjs/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +0 -186
- package/cjs/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +0 -22
- package/cjs/node_modules/prop-types/node_modules/react-is/index.js +0 -13
- package/cjs/node_modules/react/cjs/react.development.js +0 -1246
- package/cjs/node_modules/react/cjs/react.production.js +0 -552
- package/cjs/node_modules/react/index.js +0 -19
- package/cjs/node_modules/react-dom/cjs/react-dom.development.js +0 -432
- package/cjs/node_modules/react-dom/cjs/react-dom.production.js +0 -218
- package/cjs/node_modules/react-dom/index.js +0 -44
- package/cjs/node_modules/react-lazy-load-image-component/src/effects/opacity.css.js +0 -6
- package/cjs/node_modules/react-select/creatable/dist/react-select-creatable.esm.js +0 -23
- package/cjs/node_modules/react-select/dist/Select-aab027f3.esm.js +0 -2653
- package/cjs/node_modules/react-select/dist/index-641ee5b8.esm.js +0 -1426
- package/cjs/node_modules/react-select/dist/useCreatable-84008237.esm.js +0 -101
- package/cjs/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js +0 -78
- package/cjs/node_modules/style-inject/dist/style-inject.es.js +0 -32
- package/cjs/node_modules/stylis/src/Enum.js +0 -24
- package/cjs/node_modules/stylis/src/Middleware.js +0 -37
- package/cjs/node_modules/stylis/src/Parser.js +0 -201
- package/cjs/node_modules/stylis/src/Serializer.js +0 -43
- package/cjs/node_modules/stylis/src/Tokenizer.js +0 -243
- package/cjs/node_modules/stylis/src/Utility.js +0 -134
- package/cjs/node_modules/tippy.js/animations/shift-away-subtle.css.js +0 -6
- package/cjs/node_modules/tippy.js/dist/tippy.css.js +0 -6
- package/cjs/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js +0 -12
- package/cjs/ssr/ssr/index.js +0 -12
- package/cjs/styles/utils/colors.scss.js +0 -11
- package/cjs/utils/dateTime.js +0 -20
- package/cjs/utils/defaultTheme.js +0 -52
- package/doctor-storybook.log +0 -20
- package/esm/_virtual/_rollupPluginBabelHelpers.js +0 -74
- package/esm/_virtual/index.js +0 -3
- package/esm/_virtual/index2.js +0 -3
- package/esm/_virtual/index3.js +0 -3
- package/esm/_virtual/index4.js +0 -3
- package/esm/_virtual/index5.js +0 -3
- package/esm/_virtual/react-dom.development.js +0 -3
- package/esm/_virtual/react-dom.production.js +0 -3
- package/esm/_virtual/react-is.development.js +0 -3
- package/esm/_virtual/react-is.development2.js +0 -3
- package/esm/_virtual/react-is.production.min.js +0 -3
- package/esm/_virtual/react-is.production.min2.js +0 -3
- package/esm/_virtual/react.development.js +0 -3
- package/esm/_virtual/react.production.js +0 -3
- package/esm/components/data/Alert/Alert.styled.js +0 -63
- package/esm/components/data/Alert/data/Alert/index.js +0 -1
- package/esm/components/data/Badge/Badge.styled.js +0 -145
- package/esm/components/data/Badge/data/Badge/index.js +0 -1
- package/esm/components/data/Popover/data/Popover/index.js +0 -1
- package/esm/components/data/Tab/Tab.js +0 -27
- package/esm/components/data/Tab/Tab.styled.js +0 -14
- package/esm/components/data/Tab/data/Tab/index.js +0 -1
- package/esm/components/data/Tabs/Tabs.js +0 -87
- package/esm/components/data/Tabs/Tabs.styled.js +0 -85
- package/esm/components/data/Tabs/data/Tabs/index.js +0 -1
- package/esm/components/data/Tooltip/Tooltip.styled.js +0 -29
- package/esm/components/data/Tooltip/data/Tooltip/index.js +0 -1
- package/esm/components/data/VerificationStatusIcon/VerificationStatusIcon.js +0 -38
- package/esm/components/data/data/index.js +0 -7
- package/esm/components/inputs/ActionButton/ActionButton.js +0 -38
- package/esm/components/inputs/ActionButton/ActionButton.styled.js +0 -58
- package/esm/components/inputs/ActionButton/inputs/ActionButton/index.js +0 -1
- package/esm/components/inputs/Button/Button.styled.js +0 -277
- package/esm/components/inputs/Button/inputs/Button/index.js +0 -1
- package/esm/components/inputs/Checkbox/Checkbox.styled.js +0 -132
- package/esm/components/inputs/Checkbox/inputs/Checkbox/index.js +0 -1
- package/esm/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.styled.js +0 -324
- package/esm/components/inputs/CompactAutocompleteSelect/inputs/CompactAutocompleteSelect/index.js +0 -1
- package/esm/components/inputs/CompactStarRating/CompactStarRating.styled.js +0 -245
- package/esm/components/inputs/CompactStarRating/inputs/CompactStarRating/index.js +0 -1
- package/esm/components/inputs/CompactTextInput/CompactTextInput.styled.js +0 -335
- package/esm/components/inputs/CompactTextInput/inputs/CompactTextInput/index.js +0 -1
- package/esm/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.styled.js +0 -104
- package/esm/components/inputs/MultiSelect/MultiSelect.styled.js +0 -251
- package/esm/components/inputs/MultiSelect/inputs/MultiSelect/index.js +0 -1
- package/esm/components/inputs/Radio/Radio.js +0 -63
- package/esm/components/inputs/Radio/inputs/Radio/index.js +0 -1
- package/esm/components/inputs/Switch/Switch.styled.js +0 -110
- package/esm/components/inputs/Switch/inputs/Switch/index.js +0 -1
- package/esm/components/inputs/TextArea/TextArea.styled.js +0 -437
- package/esm/components/inputs/TextArea/inputs/TextArea/index.js +0 -1
- package/esm/components/inputs/TextInput/TextInput.js +0 -143
- package/esm/components/inputs/TextInput/TextInput.styled.js +0 -261
- package/esm/components/inputs/TextInput/inputs/TextInput/index.js +0 -1
- package/esm/components/inputs/inputs/index.js +0 -13
- package/esm/components/layout/InputGroup/InputGroup.js +0 -22
- package/esm/components/layout/InputGroup/InputGroup.styled.js +0 -10
- package/esm/components/layout/InputGroup/layout/InputGroup/index.js +0 -1
- package/esm/components/layout/SectionSeparator/SectionSeparator.js +0 -25
- package/esm/components/layout/SectionSeparator/SectionSeparator.styled.js +0 -13
- package/esm/components/layout/SectionSeparator/layout/SectionSeparator/index.js +0 -1
- package/esm/components/layout/layout/index.js +0 -2
- package/esm/components/widgets/AssetAction/AssetAction.styled.js +0 -46
- package/esm/components/widgets/AssetActionsBase/AssetActionsBase.js +0 -31
- package/esm/components/widgets/AssetActionsBase/AssetActionsBase.styled.js +0 -16
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.styled.js +0 -33
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.styled.js +0 -311
- package/esm/components/widgets/AssetGallery/widgets/AssetGallery/index.js +0 -1
- package/esm/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.js +0 -46
- package/esm/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.styled.js +0 -84
- package/esm/components/widgets/AssetPreview/AssetPreviewTopBar/widgets/AssetPreview/AssetPreviewTopBar/index.js +0 -1
- package/esm/components/widgets/ContextMenu/ContextMenu.js +0 -24
- package/esm/components/widgets/ContextMenu/ContextMenu.styled.js +0 -11
- package/esm/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js +0 -46
- package/esm/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.styled.js +0 -83
- package/esm/components/widgets/ContextMenu/ContextMenuItem/widgets/ContextMenu/ContextMenuItem/index.js +0 -1
- package/esm/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.js +0 -24
- package/esm/components/widgets/ContextMenu/ContextMenuItemsGroup/widgets/ContextMenu/ContextMenuItemsGroup/index.js +0 -1
- package/esm/components/widgets/ContextMenu/widgets/ContextMenu/index.js +0 -1
- package/esm/components/widgets/InfoCard/InfoCard.js +0 -35
- package/esm/components/widgets/InfoCard/InfoCard.styled.js +0 -94
- package/esm/components/widgets/InfoCard/widgets/InfoCard/index.js +0 -1
- package/esm/components/widgets/Instructions/Instructions.styled.js +0 -36
- package/esm/components/widgets/Instructions/widgets/Instructions/index.js +0 -1
- package/esm/components/widgets/ProgressBar/ProgressBar.js +0 -54
- package/esm/components/widgets/ProgressBar/ProgressBar.styled.js +0 -137
- package/esm/components/widgets/ProgressBar/widgets/ProgressBar/index.js +0 -1
- package/esm/components/widgets/SummaryCard/SummaryCard.js +0 -88
- package/esm/components/widgets/SummaryCard/SummaryCard.styled.js +0 -124
- package/esm/components/widgets/widgets/index.js +0 -9
- package/esm/hooks/useIsomorphicLayoutEffect.js +0 -7
- package/esm/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +0 -7
- package/esm/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +0 -5
- package/esm/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +0 -7
- package/esm/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +0 -6
- package/esm/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +0 -5
- package/esm/node_modules/@babel/runtime/helpers/esm/createClass.js +0 -15
- package/esm/node_modules/@babel/runtime/helpers/esm/createSuper.js +0 -18
- package/esm/node_modules/@babel/runtime/helpers/esm/defineProperty.js +0 -12
- package/esm/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +0 -7
- package/esm/node_modules/@babel/runtime/helpers/esm/inherits.js +0 -16
- package/esm/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +0 -10
- package/esm/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +0 -5
- package/esm/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +0 -29
- package/esm/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +0 -5
- package/esm/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +0 -5
- package/esm/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +0 -25
- package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +0 -15
- package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -11
- package/esm/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +0 -10
- package/esm/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -7
- package/esm/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +0 -10
- package/esm/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +0 -9
- package/esm/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +0 -10
- package/esm/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +0 -14
- package/esm/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +0 -9
- package/esm/node_modules/@babel/runtime/helpers/esm/typeof.js +0 -11
- package/esm/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +0 -11
- package/esm/node_modules/@emotion/cache/dist/emotion-cache.esm.js +0 -499
- package/esm/node_modules/@emotion/hash/dist/emotion-hash.esm.js +0 -55
- package/esm/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +0 -9
- package/esm/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js +0 -149
- package/esm/node_modules/@emotion/react/dist/emotion-react.esm.js +0 -56
- package/esm/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +0 -236
- package/esm/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +0 -140
- package/esm/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +0 -52
- package/esm/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js +0 -12
- package/esm/node_modules/@emotion/utils/dist/emotion-utils.esm.js +0 -54
- package/esm/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js +0 -16
- package/esm/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.js +0 -894
- package/esm/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.js +0 -370
- package/esm/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs.js +0 -110
- package/esm/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.js +0 -138
- package/esm/node_modules/@restart/hooks/esm/useMergedRefs.js +0 -41
- package/esm/node_modules/@restart/hooks/esm/useUpdateEffect.js +0 -37
- package/esm/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +0 -22
- package/esm/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js +0 -181
- package/esm/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js +0 -17
- package/esm/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +0 -11
- package/esm/node_modules/memoize-one/dist/memoize-one.esm.js +0 -51
- package/esm/node_modules/object-assign/index.js +0 -90
- package/esm/node_modules/prop-types/checkPropTypes.js +0 -106
- package/esm/node_modules/prop-types/factoryWithThrowingShims.js +0 -65
- package/esm/node_modules/prop-types/factoryWithTypeCheckers.js +0 -617
- package/esm/node_modules/prop-types/index.js +0 -29
- package/esm/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -12
- package/esm/node_modules/prop-types/lib/has.js +0 -3
- package/esm/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +0 -181
- package/esm/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +0 -17
- package/esm/node_modules/prop-types/node_modules/react-is/index.js +0 -11
- package/esm/node_modules/react/cjs/react.development.js +0 -1244
- package/esm/node_modules/react/cjs/react.production.js +0 -547
- package/esm/node_modules/react/index.js +0 -15
- package/esm/node_modules/react-dom/cjs/react-dom.development.js +0 -427
- package/esm/node_modules/react-dom/cjs/react-dom.production.js +0 -213
- package/esm/node_modules/react-dom/index.js +0 -42
- package/esm/node_modules/react-lazy-load-image-component/src/effects/opacity.css.js +0 -4
- package/esm/node_modules/react-select/creatable/dist/react-select-creatable.esm.js +0 -19
- package/esm/node_modules/react-select/dist/Select-aab027f3.esm.js +0 -2644
- package/esm/node_modules/react-select/dist/index-641ee5b8.esm.js +0 -1385
- package/esm/node_modules/react-select/dist/useCreatable-84008237.esm.js +0 -97
- package/esm/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js +0 -74
- package/esm/node_modules/style-inject/dist/style-inject.es.js +0 -28
- package/esm/node_modules/stylis/src/Enum.js +0 -12
- package/esm/node_modules/stylis/src/Middleware.js +0 -32
- package/esm/node_modules/stylis/src/Parser.js +0 -193
- package/esm/node_modules/stylis/src/Serializer.js +0 -38
- package/esm/node_modules/stylis/src/Tokenizer.js +0 -223
- package/esm/node_modules/stylis/src/Utility.js +0 -117
- package/esm/node_modules/tippy.js/animations/shift-away-subtle.css.js +0 -4
- package/esm/node_modules/tippy.js/dist/tippy.css.js +0 -4
- package/esm/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js +0 -8
- package/esm/styles/utils/colors.scss.js +0 -7
- package/esm/utils/defaultTheme.js +0 -47
- package/migration-storybook.log +0 -392
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import _objectSpread2 from '../../@babel/runtime/helpers/esm/objectSpread2.js';
|
|
2
|
-
import _toConsumableArray from '../../@babel/runtime/helpers/esm/toConsumableArray.js';
|
|
3
|
-
import _objectWithoutProperties from '../../@babel/runtime/helpers/esm/objectWithoutProperties.js';
|
|
4
|
-
import '../../react/index.js';
|
|
5
|
-
import { H as cleanValue, D as valueTernary } from './index-641ee5b8.esm.js';
|
|
6
|
-
import { g as getOptionValue$1, b as getOptionLabel$1 } from './Select-aab027f3.esm.js';
|
|
7
|
-
import { r as react } from '../../../_virtual/index.js';
|
|
8
|
-
|
|
9
|
-
var _excluded = ["allowCreateWhileLoading", "createOptionPosition", "formatCreateLabel", "isValidNewOption", "getNewOptionData", "onCreateOption", "options", "onChange"];
|
|
10
|
-
var compareOption = function compareOption() {
|
|
11
|
-
var inputValue = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
12
|
-
var option = arguments.length > 1 ? arguments[1] : undefined;
|
|
13
|
-
var accessors = arguments.length > 2 ? arguments[2] : undefined;
|
|
14
|
-
var candidate = String(inputValue).toLowerCase();
|
|
15
|
-
var optionValue = String(accessors.getOptionValue(option)).toLowerCase();
|
|
16
|
-
var optionLabel = String(accessors.getOptionLabel(option)).toLowerCase();
|
|
17
|
-
return optionValue === candidate || optionLabel === candidate;
|
|
18
|
-
};
|
|
19
|
-
var builtins = {
|
|
20
|
-
formatCreateLabel: function formatCreateLabel(inputValue) {
|
|
21
|
-
return "Create \"".concat(inputValue, "\"");
|
|
22
|
-
},
|
|
23
|
-
isValidNewOption: function isValidNewOption(inputValue, selectValue, selectOptions, accessors) {
|
|
24
|
-
return !(!inputValue || selectValue.some(function (option) {
|
|
25
|
-
return compareOption(inputValue, option, accessors);
|
|
26
|
-
}) || selectOptions.some(function (option) {
|
|
27
|
-
return compareOption(inputValue, option, accessors);
|
|
28
|
-
}));
|
|
29
|
-
},
|
|
30
|
-
getNewOptionData: function getNewOptionData(inputValue, optionLabel) {
|
|
31
|
-
return {
|
|
32
|
-
label: optionLabel,
|
|
33
|
-
value: inputValue,
|
|
34
|
-
__isNew__: true
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
function useCreatable(_ref) {
|
|
39
|
-
var _ref$allowCreateWhile = _ref.allowCreateWhileLoading,
|
|
40
|
-
allowCreateWhileLoading = _ref$allowCreateWhile === void 0 ? false : _ref$allowCreateWhile,
|
|
41
|
-
_ref$createOptionPosi = _ref.createOptionPosition,
|
|
42
|
-
createOptionPosition = _ref$createOptionPosi === void 0 ? 'last' : _ref$createOptionPosi,
|
|
43
|
-
_ref$formatCreateLabe = _ref.formatCreateLabel,
|
|
44
|
-
formatCreateLabel = _ref$formatCreateLabe === void 0 ? builtins.formatCreateLabel : _ref$formatCreateLabe,
|
|
45
|
-
_ref$isValidNewOption = _ref.isValidNewOption,
|
|
46
|
-
isValidNewOption = _ref$isValidNewOption === void 0 ? builtins.isValidNewOption : _ref$isValidNewOption,
|
|
47
|
-
_ref$getNewOptionData = _ref.getNewOptionData,
|
|
48
|
-
getNewOptionData = _ref$getNewOptionData === void 0 ? builtins.getNewOptionData : _ref$getNewOptionData,
|
|
49
|
-
onCreateOption = _ref.onCreateOption,
|
|
50
|
-
_ref$options = _ref.options,
|
|
51
|
-
propsOptions = _ref$options === void 0 ? [] : _ref$options,
|
|
52
|
-
propsOnChange = _ref.onChange,
|
|
53
|
-
restSelectProps = _objectWithoutProperties(_ref, _excluded);
|
|
54
|
-
var _restSelectProps$getO = restSelectProps.getOptionValue,
|
|
55
|
-
getOptionValue$1$1 = _restSelectProps$getO === void 0 ? getOptionValue$1 : _restSelectProps$getO,
|
|
56
|
-
_restSelectProps$getO2 = restSelectProps.getOptionLabel,
|
|
57
|
-
getOptionLabel$1$1 = _restSelectProps$getO2 === void 0 ? getOptionLabel$1 : _restSelectProps$getO2,
|
|
58
|
-
inputValue = restSelectProps.inputValue,
|
|
59
|
-
isLoading = restSelectProps.isLoading,
|
|
60
|
-
isMulti = restSelectProps.isMulti,
|
|
61
|
-
value = restSelectProps.value,
|
|
62
|
-
name = restSelectProps.name;
|
|
63
|
-
var newOption = react.exports.useMemo(function () {
|
|
64
|
-
return isValidNewOption(inputValue, cleanValue(value), propsOptions, {
|
|
65
|
-
getOptionValue: getOptionValue$1$1,
|
|
66
|
-
getOptionLabel: getOptionLabel$1$1
|
|
67
|
-
}) ? getNewOptionData(inputValue, formatCreateLabel(inputValue)) : undefined;
|
|
68
|
-
}, [formatCreateLabel, getNewOptionData, getOptionLabel$1$1, getOptionValue$1$1, inputValue, isValidNewOption, propsOptions, value]);
|
|
69
|
-
var options = react.exports.useMemo(function () {
|
|
70
|
-
return (allowCreateWhileLoading || !isLoading) && newOption ? createOptionPosition === 'first' ? [newOption].concat(_toConsumableArray(propsOptions)) : [].concat(_toConsumableArray(propsOptions), [newOption]) : propsOptions;
|
|
71
|
-
}, [allowCreateWhileLoading, createOptionPosition, isLoading, newOption, propsOptions]);
|
|
72
|
-
var onChange = react.exports.useCallback(function (newValue, actionMeta) {
|
|
73
|
-
if (actionMeta.action !== 'select-option') {
|
|
74
|
-
return propsOnChange(newValue, actionMeta);
|
|
75
|
-
}
|
|
76
|
-
var valueArray = Array.isArray(newValue) ? newValue : [newValue];
|
|
77
|
-
if (valueArray[valueArray.length - 1] === newOption) {
|
|
78
|
-
if (onCreateOption) onCreateOption(inputValue);else {
|
|
79
|
-
var newOptionData = getNewOptionData(inputValue, inputValue);
|
|
80
|
-
var newActionMeta = {
|
|
81
|
-
action: 'create-option',
|
|
82
|
-
name: name,
|
|
83
|
-
option: newOptionData
|
|
84
|
-
};
|
|
85
|
-
propsOnChange(valueTernary(isMulti, [].concat(_toConsumableArray(cleanValue(value)), [newOptionData]), newOptionData), newActionMeta);
|
|
86
|
-
}
|
|
87
|
-
return;
|
|
88
|
-
}
|
|
89
|
-
propsOnChange(newValue, actionMeta);
|
|
90
|
-
}, [getNewOptionData, inputValue, isMulti, name, newOption, onCreateOption, propsOnChange, value]);
|
|
91
|
-
return _objectSpread2(_objectSpread2({}, restSelectProps), {}, {
|
|
92
|
-
options: options,
|
|
93
|
-
onChange: onChange
|
|
94
|
-
});
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
export { useCreatable as u };
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import _objectSpread2 from '../../@babel/runtime/helpers/esm/objectSpread2.js';
|
|
2
|
-
import _slicedToArray from '../../@babel/runtime/helpers/esm/slicedToArray.js';
|
|
3
|
-
import _objectWithoutProperties from '../../@babel/runtime/helpers/esm/objectWithoutProperties.js';
|
|
4
|
-
import '../../react/index.js';
|
|
5
|
-
import { r as react } from '../../../_virtual/index.js';
|
|
6
|
-
|
|
7
|
-
var _excluded = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
|
|
8
|
-
function useStateManager(_ref) {
|
|
9
|
-
var _ref$defaultInputValu = _ref.defaultInputValue,
|
|
10
|
-
defaultInputValue = _ref$defaultInputValu === void 0 ? '' : _ref$defaultInputValu,
|
|
11
|
-
_ref$defaultMenuIsOpe = _ref.defaultMenuIsOpen,
|
|
12
|
-
defaultMenuIsOpen = _ref$defaultMenuIsOpe === void 0 ? false : _ref$defaultMenuIsOpe,
|
|
13
|
-
_ref$defaultValue = _ref.defaultValue,
|
|
14
|
-
defaultValue = _ref$defaultValue === void 0 ? null : _ref$defaultValue,
|
|
15
|
-
propsInputValue = _ref.inputValue,
|
|
16
|
-
propsMenuIsOpen = _ref.menuIsOpen,
|
|
17
|
-
propsOnChange = _ref.onChange,
|
|
18
|
-
propsOnInputChange = _ref.onInputChange,
|
|
19
|
-
propsOnMenuClose = _ref.onMenuClose,
|
|
20
|
-
propsOnMenuOpen = _ref.onMenuOpen,
|
|
21
|
-
propsValue = _ref.value,
|
|
22
|
-
restSelectProps = _objectWithoutProperties(_ref, _excluded);
|
|
23
|
-
var _useState = react.exports.useState(propsInputValue !== undefined ? propsInputValue : defaultInputValue),
|
|
24
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
25
|
-
stateInputValue = _useState2[0],
|
|
26
|
-
setStateInputValue = _useState2[1];
|
|
27
|
-
var _useState3 = react.exports.useState(propsMenuIsOpen !== undefined ? propsMenuIsOpen : defaultMenuIsOpen),
|
|
28
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
29
|
-
stateMenuIsOpen = _useState4[0],
|
|
30
|
-
setStateMenuIsOpen = _useState4[1];
|
|
31
|
-
var _useState5 = react.exports.useState(propsValue !== undefined ? propsValue : defaultValue),
|
|
32
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
33
|
-
stateValue = _useState6[0],
|
|
34
|
-
setStateValue = _useState6[1];
|
|
35
|
-
var onChange = react.exports.useCallback(function (value, actionMeta) {
|
|
36
|
-
if (typeof propsOnChange === 'function') {
|
|
37
|
-
propsOnChange(value, actionMeta);
|
|
38
|
-
}
|
|
39
|
-
setStateValue(value);
|
|
40
|
-
}, [propsOnChange]);
|
|
41
|
-
var onInputChange = react.exports.useCallback(function (value, actionMeta) {
|
|
42
|
-
var newValue;
|
|
43
|
-
if (typeof propsOnInputChange === 'function') {
|
|
44
|
-
newValue = propsOnInputChange(value, actionMeta);
|
|
45
|
-
}
|
|
46
|
-
setStateInputValue(newValue !== undefined ? newValue : value);
|
|
47
|
-
}, [propsOnInputChange]);
|
|
48
|
-
var onMenuOpen = react.exports.useCallback(function () {
|
|
49
|
-
if (typeof propsOnMenuOpen === 'function') {
|
|
50
|
-
propsOnMenuOpen();
|
|
51
|
-
}
|
|
52
|
-
setStateMenuIsOpen(true);
|
|
53
|
-
}, [propsOnMenuOpen]);
|
|
54
|
-
var onMenuClose = react.exports.useCallback(function () {
|
|
55
|
-
if (typeof propsOnMenuClose === 'function') {
|
|
56
|
-
propsOnMenuClose();
|
|
57
|
-
}
|
|
58
|
-
setStateMenuIsOpen(false);
|
|
59
|
-
}, [propsOnMenuClose]);
|
|
60
|
-
var inputValue = propsInputValue !== undefined ? propsInputValue : stateInputValue;
|
|
61
|
-
var menuIsOpen = propsMenuIsOpen !== undefined ? propsMenuIsOpen : stateMenuIsOpen;
|
|
62
|
-
var value = propsValue !== undefined ? propsValue : stateValue;
|
|
63
|
-
return _objectSpread2(_objectSpread2({}, restSelectProps), {}, {
|
|
64
|
-
inputValue: inputValue,
|
|
65
|
-
menuIsOpen: menuIsOpen,
|
|
66
|
-
onChange: onChange,
|
|
67
|
-
onInputChange: onInputChange,
|
|
68
|
-
onMenuClose: onMenuClose,
|
|
69
|
-
onMenuOpen: onMenuOpen,
|
|
70
|
-
value: value
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export { useStateManager as u };
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
function styleInject(css, ref) {
|
|
2
|
-
if ( ref === void 0 ) ref = {};
|
|
3
|
-
var insertAt = ref.insertAt;
|
|
4
|
-
|
|
5
|
-
if (!css || typeof document === 'undefined') { return; }
|
|
6
|
-
|
|
7
|
-
var head = document.head || document.getElementsByTagName('head')[0];
|
|
8
|
-
var style = document.createElement('style');
|
|
9
|
-
style.type = 'text/css';
|
|
10
|
-
|
|
11
|
-
if (insertAt === 'top') {
|
|
12
|
-
if (head.firstChild) {
|
|
13
|
-
head.insertBefore(style, head.firstChild);
|
|
14
|
-
} else {
|
|
15
|
-
head.appendChild(style);
|
|
16
|
-
}
|
|
17
|
-
} else {
|
|
18
|
-
head.appendChild(style);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
if (style.styleSheet) {
|
|
22
|
-
style.styleSheet.cssText = css;
|
|
23
|
-
} else {
|
|
24
|
-
style.appendChild(document.createTextNode(css));
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export { styleInject as default };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
var MS = '-ms-';
|
|
2
|
-
var MOZ = '-moz-';
|
|
3
|
-
var WEBKIT = '-webkit-';
|
|
4
|
-
|
|
5
|
-
var COMMENT = 'comm';
|
|
6
|
-
var RULESET = 'rule';
|
|
7
|
-
var DECLARATION = 'decl';
|
|
8
|
-
var IMPORT = '@import';
|
|
9
|
-
var KEYFRAMES = '@keyframes';
|
|
10
|
-
var LAYER = '@layer';
|
|
11
|
-
|
|
12
|
-
export { COMMENT, DECLARATION, IMPORT, KEYFRAMES, LAYER, MOZ, MS, RULESET, WEBKIT };
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { sizeof } from './Utility.js';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @param {function[]} collection
|
|
5
|
-
* @return {function}
|
|
6
|
-
*/
|
|
7
|
-
function middleware (collection) {
|
|
8
|
-
var length = sizeof(collection);
|
|
9
|
-
|
|
10
|
-
return function (element, index, children, callback) {
|
|
11
|
-
var output = '';
|
|
12
|
-
|
|
13
|
-
for (var i = 0; i < length; i++)
|
|
14
|
-
output += collection[i](element, index, children, callback) || '';
|
|
15
|
-
|
|
16
|
-
return output
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* @param {function} callback
|
|
22
|
-
* @return {function}
|
|
23
|
-
*/
|
|
24
|
-
function rulesheet (callback) {
|
|
25
|
-
return function (element) {
|
|
26
|
-
if (!element.root)
|
|
27
|
-
if (element = element.return)
|
|
28
|
-
callback(element);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export { middleware, rulesheet };
|
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
import { COMMENT, DECLARATION, RULESET } from './Enum.js';
|
|
2
|
-
import { strlen, append, charat, replace, indexof, sizeof, substr, abs, trim, from } from './Utility.js';
|
|
3
|
-
import { dealloc, alloc, next, peek, delimit, identifier, commenter, escaping, whitespace, node, char, prev, caret } from './Tokenizer.js';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* @param {string} value
|
|
7
|
-
* @return {object[]}
|
|
8
|
-
*/
|
|
9
|
-
function compile (value) {
|
|
10
|
-
return dealloc(parse('', null, null, null, [''], value = alloc(value), 0, [0], value))
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* @param {string} value
|
|
15
|
-
* @param {object} root
|
|
16
|
-
* @param {object?} parent
|
|
17
|
-
* @param {string[]} rule
|
|
18
|
-
* @param {string[]} rules
|
|
19
|
-
* @param {string[]} rulesets
|
|
20
|
-
* @param {number[]} pseudo
|
|
21
|
-
* @param {number[]} points
|
|
22
|
-
* @param {string[]} declarations
|
|
23
|
-
* @return {object}
|
|
24
|
-
*/
|
|
25
|
-
function parse (value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {
|
|
26
|
-
var index = 0;
|
|
27
|
-
var offset = 0;
|
|
28
|
-
var length = pseudo;
|
|
29
|
-
var atrule = 0;
|
|
30
|
-
var property = 0;
|
|
31
|
-
var previous = 0;
|
|
32
|
-
var variable = 1;
|
|
33
|
-
var scanning = 1;
|
|
34
|
-
var ampersand = 1;
|
|
35
|
-
var character = 0;
|
|
36
|
-
var type = '';
|
|
37
|
-
var props = rules;
|
|
38
|
-
var children = rulesets;
|
|
39
|
-
var reference = rule;
|
|
40
|
-
var characters = type;
|
|
41
|
-
|
|
42
|
-
while (scanning)
|
|
43
|
-
switch (previous = character, character = next()) {
|
|
44
|
-
// (
|
|
45
|
-
case 40:
|
|
46
|
-
if (previous != 108 && charat(characters, length - 1) == 58) {
|
|
47
|
-
if (indexof(characters += replace(delimit(character), '&', '&\f'), '&\f') != -1)
|
|
48
|
-
ampersand = -1;
|
|
49
|
-
break
|
|
50
|
-
}
|
|
51
|
-
// " ' [
|
|
52
|
-
case 34: case 39: case 91:
|
|
53
|
-
characters += delimit(character);
|
|
54
|
-
break
|
|
55
|
-
// \t \n \r \s
|
|
56
|
-
case 9: case 10: case 13: case 32:
|
|
57
|
-
characters += whitespace(previous);
|
|
58
|
-
break
|
|
59
|
-
// \
|
|
60
|
-
case 92:
|
|
61
|
-
characters += escaping(caret() - 1, 7);
|
|
62
|
-
continue
|
|
63
|
-
// /
|
|
64
|
-
case 47:
|
|
65
|
-
switch (peek()) {
|
|
66
|
-
case 42: case 47:
|
|
67
|
-
append(comment(commenter(next(), caret()), root, parent), declarations);
|
|
68
|
-
break
|
|
69
|
-
default:
|
|
70
|
-
characters += '/';
|
|
71
|
-
}
|
|
72
|
-
break
|
|
73
|
-
// {
|
|
74
|
-
case 123 * variable:
|
|
75
|
-
points[index++] = strlen(characters) * ampersand;
|
|
76
|
-
// } ; \0
|
|
77
|
-
case 125 * variable: case 59: case 0:
|
|
78
|
-
switch (character) {
|
|
79
|
-
// \0 }
|
|
80
|
-
case 0: case 125: scanning = 0;
|
|
81
|
-
// ;
|
|
82
|
-
case 59 + offset: if (ampersand == -1) characters = replace(characters, /\f/g, '');
|
|
83
|
-
if (property > 0 && (strlen(characters) - length))
|
|
84
|
-
append(property > 32 ? declaration(characters + ';', rule, parent, length - 1) : declaration(replace(characters, ' ', '') + ';', rule, parent, length - 2), declarations);
|
|
85
|
-
break
|
|
86
|
-
// @ ;
|
|
87
|
-
case 59: characters += ';';
|
|
88
|
-
// { rule/at-rule
|
|
89
|
-
default:
|
|
90
|
-
append(reference = ruleset(characters, root, parent, index, offset, rules, points, type, props = [], children = [], length), rulesets);
|
|
91
|
-
|
|
92
|
-
if (character === 123)
|
|
93
|
-
if (offset === 0)
|
|
94
|
-
parse(characters, root, reference, reference, props, rulesets, length, points, children);
|
|
95
|
-
else
|
|
96
|
-
switch (atrule === 99 && charat(characters, 3) === 110 ? 100 : atrule) {
|
|
97
|
-
// d l m s
|
|
98
|
-
case 100: case 108: case 109: case 115:
|
|
99
|
-
parse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length), children), rules, children, length, points, rule ? props : children);
|
|
100
|
-
break
|
|
101
|
-
default:
|
|
102
|
-
parse(characters, reference, reference, reference, [''], children, 0, points, children);
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
index = offset = property = 0, variable = ampersand = 1, type = characters = '', length = pseudo;
|
|
107
|
-
break
|
|
108
|
-
// :
|
|
109
|
-
case 58:
|
|
110
|
-
length = 1 + strlen(characters), property = previous;
|
|
111
|
-
default:
|
|
112
|
-
if (variable < 1)
|
|
113
|
-
if (character == 123)
|
|
114
|
-
--variable;
|
|
115
|
-
else if (character == 125 && variable++ == 0 && prev() == 125)
|
|
116
|
-
continue
|
|
117
|
-
|
|
118
|
-
switch (characters += from(character), character * variable) {
|
|
119
|
-
// &
|
|
120
|
-
case 38:
|
|
121
|
-
ampersand = offset > 0 ? 1 : (characters += '\f', -1);
|
|
122
|
-
break
|
|
123
|
-
// ,
|
|
124
|
-
case 44:
|
|
125
|
-
points[index++] = (strlen(characters) - 1) * ampersand, ampersand = 1;
|
|
126
|
-
break
|
|
127
|
-
// @
|
|
128
|
-
case 64:
|
|
129
|
-
// -
|
|
130
|
-
if (peek() === 45)
|
|
131
|
-
characters += delimit(next());
|
|
132
|
-
|
|
133
|
-
atrule = peek(), offset = length = strlen(type = characters += identifier(caret())), character++;
|
|
134
|
-
break
|
|
135
|
-
// -
|
|
136
|
-
case 45:
|
|
137
|
-
if (previous === 45 && strlen(characters) == 2)
|
|
138
|
-
variable = 0;
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
return rulesets
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
* @param {string} value
|
|
147
|
-
* @param {object} root
|
|
148
|
-
* @param {object?} parent
|
|
149
|
-
* @param {number} index
|
|
150
|
-
* @param {number} offset
|
|
151
|
-
* @param {string[]} rules
|
|
152
|
-
* @param {number[]} points
|
|
153
|
-
* @param {string} type
|
|
154
|
-
* @param {string[]} props
|
|
155
|
-
* @param {string[]} children
|
|
156
|
-
* @param {number} length
|
|
157
|
-
* @return {object}
|
|
158
|
-
*/
|
|
159
|
-
function ruleset (value, root, parent, index, offset, rules, points, type, props, children, length) {
|
|
160
|
-
var post = offset - 1;
|
|
161
|
-
var rule = offset === 0 ? rules : [''];
|
|
162
|
-
var size = sizeof(rule);
|
|
163
|
-
|
|
164
|
-
for (var i = 0, j = 0, k = 0; i < index; ++i)
|
|
165
|
-
for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size; ++x)
|
|
166
|
-
if (z = trim(j > 0 ? rule[x] + ' ' + y : replace(y, /&\f/g, rule[x])))
|
|
167
|
-
props[k++] = z;
|
|
168
|
-
|
|
169
|
-
return node(value, root, parent, offset === 0 ? RULESET : type, props, children, length)
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
/**
|
|
173
|
-
* @param {number} value
|
|
174
|
-
* @param {object} root
|
|
175
|
-
* @param {object?} parent
|
|
176
|
-
* @return {object}
|
|
177
|
-
*/
|
|
178
|
-
function comment (value, root, parent) {
|
|
179
|
-
return node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0)
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
/**
|
|
183
|
-
* @param {string} value
|
|
184
|
-
* @param {object} root
|
|
185
|
-
* @param {object?} parent
|
|
186
|
-
* @param {number} length
|
|
187
|
-
* @return {object}
|
|
188
|
-
*/
|
|
189
|
-
function declaration (value, root, parent, length) {
|
|
190
|
-
return node(value, root, parent, DECLARATION, substr(value, 0, length), substr(value, length + 1, -1), length)
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
export { comment, compile, declaration, parse, ruleset };
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { RULESET, KEYFRAMES, COMMENT, DECLARATION, IMPORT, LAYER } from './Enum.js';
|
|
2
|
-
import { sizeof, strlen } from './Utility.js';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* @param {object[]} children
|
|
6
|
-
* @param {function} callback
|
|
7
|
-
* @return {string}
|
|
8
|
-
*/
|
|
9
|
-
function serialize (children, callback) {
|
|
10
|
-
var output = '';
|
|
11
|
-
var length = sizeof(children);
|
|
12
|
-
|
|
13
|
-
for (var i = 0; i < length; i++)
|
|
14
|
-
output += callback(children[i], i, children, callback) || '';
|
|
15
|
-
|
|
16
|
-
return output
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* @param {object} element
|
|
21
|
-
* @param {number} index
|
|
22
|
-
* @param {object[]} children
|
|
23
|
-
* @param {function} callback
|
|
24
|
-
* @return {string}
|
|
25
|
-
*/
|
|
26
|
-
function stringify (element, index, children, callback) {
|
|
27
|
-
switch (element.type) {
|
|
28
|
-
case LAYER: if (element.children.length) break
|
|
29
|
-
case IMPORT: case DECLARATION: return element.return = element.return || element.value
|
|
30
|
-
case COMMENT: return ''
|
|
31
|
-
case KEYFRAMES: return element.return = element.value + '{' + serialize(element.children, callback) + '}'
|
|
32
|
-
case RULESET: element.value = element.props.join(',');
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
return strlen(children = serialize(element.children, callback)) ? element.return = element.value + '{' + children + '}' : ''
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export { serialize, stringify };
|
|
@@ -1,223 +0,0 @@
|
|
|
1
|
-
import { assign, charat, strlen, trim, from, substr } from './Utility.js';
|
|
2
|
-
|
|
3
|
-
var line = 1;
|
|
4
|
-
var column = 1;
|
|
5
|
-
var length = 0;
|
|
6
|
-
var position = 0;
|
|
7
|
-
var character = 0;
|
|
8
|
-
var characters = '';
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* @param {string} value
|
|
12
|
-
* @param {object | null} root
|
|
13
|
-
* @param {object | null} parent
|
|
14
|
-
* @param {string} type
|
|
15
|
-
* @param {string[] | string} props
|
|
16
|
-
* @param {object[] | string} children
|
|
17
|
-
* @param {number} length
|
|
18
|
-
*/
|
|
19
|
-
function node (value, root, parent, type, props, children, length) {
|
|
20
|
-
return {value: value, root: root, parent: parent, type: type, props: props, children: children, line: line, column: column, length: length, return: ''}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* @param {object} root
|
|
25
|
-
* @param {object} props
|
|
26
|
-
* @return {object}
|
|
27
|
-
*/
|
|
28
|
-
function copy (root, props) {
|
|
29
|
-
return assign(node('', null, null, '', null, null, 0), root, {length: -root.length}, props)
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* @return {number}
|
|
34
|
-
*/
|
|
35
|
-
function char () {
|
|
36
|
-
return character
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* @return {number}
|
|
41
|
-
*/
|
|
42
|
-
function prev () {
|
|
43
|
-
character = position > 0 ? charat(characters, --position) : 0;
|
|
44
|
-
|
|
45
|
-
if (column--, character === 10)
|
|
46
|
-
column = 1, line--;
|
|
47
|
-
|
|
48
|
-
return character
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* @return {number}
|
|
53
|
-
*/
|
|
54
|
-
function next () {
|
|
55
|
-
character = position < length ? charat(characters, position++) : 0;
|
|
56
|
-
|
|
57
|
-
if (column++, character === 10)
|
|
58
|
-
column = 1, line++;
|
|
59
|
-
|
|
60
|
-
return character
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* @return {number}
|
|
65
|
-
*/
|
|
66
|
-
function peek () {
|
|
67
|
-
return charat(characters, position)
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* @return {number}
|
|
72
|
-
*/
|
|
73
|
-
function caret () {
|
|
74
|
-
return position
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* @param {number} begin
|
|
79
|
-
* @param {number} end
|
|
80
|
-
* @return {string}
|
|
81
|
-
*/
|
|
82
|
-
function slice (begin, end) {
|
|
83
|
-
return substr(characters, begin, end)
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* @param {number} type
|
|
88
|
-
* @return {number}
|
|
89
|
-
*/
|
|
90
|
-
function token (type) {
|
|
91
|
-
switch (type) {
|
|
92
|
-
// \0 \t \n \r \s whitespace token
|
|
93
|
-
case 0: case 9: case 10: case 13: case 32:
|
|
94
|
-
return 5
|
|
95
|
-
// ! + , / > @ ~ isolate token
|
|
96
|
-
case 33: case 43: case 44: case 47: case 62: case 64: case 126:
|
|
97
|
-
// ; { } breakpoint token
|
|
98
|
-
case 59: case 123: case 125:
|
|
99
|
-
return 4
|
|
100
|
-
// : accompanied token
|
|
101
|
-
case 58:
|
|
102
|
-
return 3
|
|
103
|
-
// " ' ( [ opening delimit token
|
|
104
|
-
case 34: case 39: case 40: case 91:
|
|
105
|
-
return 2
|
|
106
|
-
// ) ] closing delimit token
|
|
107
|
-
case 41: case 93:
|
|
108
|
-
return 1
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
return 0
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* @param {string} value
|
|
116
|
-
* @return {any[]}
|
|
117
|
-
*/
|
|
118
|
-
function alloc (value) {
|
|
119
|
-
return line = column = 1, length = strlen(characters = value), position = 0, []
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
/**
|
|
123
|
-
* @param {any} value
|
|
124
|
-
* @return {any}
|
|
125
|
-
*/
|
|
126
|
-
function dealloc (value) {
|
|
127
|
-
return characters = '', value
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* @param {number} type
|
|
132
|
-
* @return {string}
|
|
133
|
-
*/
|
|
134
|
-
function delimit (type) {
|
|
135
|
-
return trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)))
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* @param {number} type
|
|
140
|
-
* @return {string}
|
|
141
|
-
*/
|
|
142
|
-
function whitespace (type) {
|
|
143
|
-
while (character = peek())
|
|
144
|
-
if (character < 33)
|
|
145
|
-
next();
|
|
146
|
-
else
|
|
147
|
-
break
|
|
148
|
-
|
|
149
|
-
return token(type) > 2 || token(character) > 3 ? '' : ' '
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
/**
|
|
153
|
-
* @param {number} index
|
|
154
|
-
* @param {number} count
|
|
155
|
-
* @return {string}
|
|
156
|
-
*/
|
|
157
|
-
function escaping (index, count) {
|
|
158
|
-
while (--count && next())
|
|
159
|
-
// not 0-9 A-F a-f
|
|
160
|
-
if (character < 48 || character > 102 || (character > 57 && character < 65) || (character > 70 && character < 97))
|
|
161
|
-
break
|
|
162
|
-
|
|
163
|
-
return slice(index, caret() + (count < 6 && peek() == 32 && next() == 32))
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
/**
|
|
167
|
-
* @param {number} type
|
|
168
|
-
* @return {number}
|
|
169
|
-
*/
|
|
170
|
-
function delimiter (type) {
|
|
171
|
-
while (next())
|
|
172
|
-
switch (character) {
|
|
173
|
-
// ] ) " '
|
|
174
|
-
case type:
|
|
175
|
-
return position
|
|
176
|
-
// " '
|
|
177
|
-
case 34: case 39:
|
|
178
|
-
if (type !== 34 && type !== 39)
|
|
179
|
-
delimiter(character);
|
|
180
|
-
break
|
|
181
|
-
// (
|
|
182
|
-
case 40:
|
|
183
|
-
if (type === 41)
|
|
184
|
-
delimiter(type);
|
|
185
|
-
break
|
|
186
|
-
// \
|
|
187
|
-
case 92:
|
|
188
|
-
next();
|
|
189
|
-
break
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
return position
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
/**
|
|
196
|
-
* @param {number} type
|
|
197
|
-
* @param {number} index
|
|
198
|
-
* @return {number}
|
|
199
|
-
*/
|
|
200
|
-
function commenter (type, index) {
|
|
201
|
-
while (next())
|
|
202
|
-
// //
|
|
203
|
-
if (type + character === 47 + 10)
|
|
204
|
-
break
|
|
205
|
-
// /*
|
|
206
|
-
else if (type + character === 42 + 42 && peek() === 47)
|
|
207
|
-
break
|
|
208
|
-
|
|
209
|
-
return '/*' + slice(index, position - 1) + '*' + from(type === 47 ? type : next())
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
/**
|
|
213
|
-
* @param {number} index
|
|
214
|
-
* @return {string}
|
|
215
|
-
*/
|
|
216
|
-
function identifier (index) {
|
|
217
|
-
while (!token(peek()))
|
|
218
|
-
next();
|
|
219
|
-
|
|
220
|
-
return slice(index, position)
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
export { alloc, caret, char, character, characters, column, commenter, copy, dealloc, delimit, delimiter, escaping, identifier, length, line, next, node, peek, position, prev, slice, token, whitespace };
|