@ntbjs/react-components 2.0.14 → 3.0.0-rc.1
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/build/data/Alert/Alert.js +18 -33
- package/build/data/Alert/Alert.js.map +1 -1
- package/build/data/Alert/Alert.styled.js +9 -47
- package/build/data/Alert/Alert.styled.js.map +1 -1
- package/build/data/Badge/Badge.js +36 -61
- package/build/data/Badge/Badge.js.map +1 -1
- package/build/data/Badge/Badge.styled.js +21 -70
- package/build/data/Badge/Badge.styled.js.map +1 -1
- package/build/data/Popover/Popover.js +125 -71
- package/build/data/Popover/Popover.js.map +1 -1
- package/build/data/Popover/Popover.styled.js +10 -140
- package/build/data/Popover/Popover.styled.js.map +1 -1
- package/build/data/SeverityBadge/SeverityBadge.js +13 -22
- package/build/data/SeverityBadge/SeverityBadge.js.map +1 -1
- package/build/data/SeverityBadge/index.js +2 -0
- package/build/data/SeverityBadge/index.js.map +1 -0
- package/build/data/Tab/Tab.js +7 -13
- package/build/data/Tab/Tab.js.map +1 -1
- package/build/data/Tab/Tab.styled.js +4 -7
- package/build/data/Tab/Tab.styled.js.map +1 -1
- package/build/data/Tabs/Tabs.js +30 -32
- package/build/data/Tabs/Tabs.js.map +1 -1
- package/build/data/Tabs/Tabs.styled.js +21 -57
- package/build/data/Tabs/Tabs.styled.js.map +1 -1
- package/build/data/Tooltip/Tooltip.js +102 -33
- package/build/data/Tooltip/Tooltip.js.map +1 -1
- package/build/data/Tooltip/Tooltip.styled.js +9 -22
- package/build/data/Tooltip/Tooltip.styled.js.map +1 -1
- package/build/data/VerificationStatusIcon/VerificationStatusIcon.js +16 -23
- package/build/data/VerificationStatusIcon/VerificationStatusIcon.js.map +1 -1
- package/build/data/VerificationStatusIcon/VerificationStatusIcon.styled.js +13 -31
- package/build/data/VerificationStatusIcon/VerificationStatusIcon.styled.js.map +1 -1
- package/build/data/VerificationStatusIcon/index.js +2 -0
- package/build/data/VerificationStatusIcon/index.js.map +1 -0
- package/build/data/_shared/FloatingArrow.styled.js +30 -0
- package/build/data/_shared/FloatingArrow.styled.js.map +1 -0
- package/build/hooks/useEventListner.js.map +1 -1
- package/build/hooks/useFloatingPopover.js +187 -0
- package/build/hooks/useFloatingPopover.js.map +1 -0
- package/build/hooks/useIsomorphicLayoutEffect.js.map +1 -1
- package/build/hooks/useOnClickOutside.js.map +1 -1
- package/build/hooks/useTooltipAutoShow.js.map +1 -1
- package/build/icons/arrow-back.svg.js +3 -3
- package/build/icons/arrow-back.svg.js.map +1 -1
- package/build/icons/arrow-forward.svg.js +4 -4
- package/build/icons/arrow-forward.svg.js.map +1 -1
- package/build/icons/check-rectangle-filled.svg.js +3 -3
- package/build/icons/check-rectangle-filled.svg.js.map +1 -1
- package/build/icons/close.svg.js +3 -3
- package/build/icons/close.svg.js.map +1 -1
- package/build/icons/edit-note.svg.js +3 -3
- package/build/icons/edit-note.svg.js.map +1 -1
- package/build/icons/expand-more.svg.js +3 -3
- package/build/icons/expand-more.svg.js.map +1 -1
- package/build/icons/headset.svg.js +3 -3
- package/build/icons/headset.svg.js.map +1 -1
- package/build/icons/layers.svg.js +3 -3
- package/build/icons/layers.svg.js.map +1 -1
- package/build/icons/link.svg.js +3 -3
- package/build/icons/link.svg.js.map +1 -1
- package/build/icons/play.svg.js +3 -3
- package/build/icons/play.svg.js.map +1 -1
- package/build/icons/search.svg.js +3 -3
- package/build/icons/search.svg.js.map +1 -1
- package/build/icons/star-filled.svg.js +3 -3
- package/build/icons/star-filled.svg.js.map +1 -1
- package/build/icons/star.svg.js +3 -3
- package/build/icons/star.svg.js.map +1 -1
- package/build/icons/triangle-right.svg.js +3 -3
- package/build/icons/triangle-right.svg.js.map +1 -1
- package/build/icons/verification.svg.js +3 -3
- package/build/icons/verification.svg.js.map +1 -1
- package/build/icons/warning-circle.svg.js +3 -3
- package/build/icons/warning-circle.svg.js.map +1 -1
- package/build/inputs/ActionButton/ActionButton.js +11 -22
- package/build/inputs/ActionButton/ActionButton.js.map +1 -1
- package/build/inputs/ActionButton/ActionButton.styled.js +5 -54
- package/build/inputs/ActionButton/ActionButton.styled.js.map +1 -1
- package/build/inputs/Button/Button.js +125 -121
- package/build/inputs/Button/Button.js.map +1 -1
- package/build/inputs/Button/Button.styled.js +42 -260
- package/build/inputs/Button/Button.styled.js.map +1 -1
- package/build/inputs/Checkbox/Checkbox.js +45 -61
- package/build/inputs/Checkbox/Checkbox.js.map +1 -1
- package/build/inputs/Checkbox/Checkbox.styled.js +24 -153
- package/build/inputs/Checkbox/Checkbox.styled.js.map +1 -1
- package/build/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.js +106 -111
- package/build/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.js.map +1 -1
- package/build/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.styled.js +88 -273
- package/build/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.styled.js.map +1 -1
- package/build/inputs/CompactStarRating/CompactStarRating.js +56 -77
- package/build/inputs/CompactStarRating/CompactStarRating.js.map +1 -1
- package/build/inputs/CompactStarRating/CompactStarRating.styled.js +32 -211
- package/build/inputs/CompactStarRating/CompactStarRating.styled.js.map +1 -1
- package/build/inputs/CompactTextInput/CompactTextInput.js +86 -105
- package/build/inputs/CompactTextInput/CompactTextInput.js.map +1 -1
- package/build/inputs/CompactTextInput/CompactTextInput.styled.js +55 -258
- package/build/inputs/CompactTextInput/CompactTextInput.styled.js.map +1 -1
- package/build/inputs/MultiLevelCheckbox/MultiLevelCheckbox.js +70 -77
- package/build/inputs/MultiLevelCheckbox/MultiLevelCheckbox.js.map +1 -1
- package/build/inputs/MultiLevelCheckbox/MultiLevelCheckbox.styled.js +28 -60
- package/build/inputs/MultiLevelCheckbox/MultiLevelCheckbox.styled.js.map +1 -1
- package/build/inputs/MultiLevelCheckbox/types.js +12 -12
- package/build/inputs/MultiLevelCheckbox/types.js.map +1 -1
- package/build/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.js +69 -73
- package/build/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.js.map +1 -1
- package/build/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.styled.js +44 -87
- package/build/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.styled.js.map +1 -1
- package/build/inputs/MultiSelect/MultiSelect.js +69 -79
- package/build/inputs/MultiSelect/MultiSelect.js.map +1 -1
- package/build/inputs/MultiSelect/MultiSelect.styled.js +70 -76
- package/build/inputs/MultiSelect/MultiSelect.styled.js.map +1 -1
- package/build/inputs/Radio/Radio.js +20 -33
- package/build/inputs/Radio/Radio.js.map +1 -1
- package/build/inputs/Radio/Radio.styled.js +15 -96
- package/build/inputs/Radio/Radio.styled.js.map +1 -1
- package/build/inputs/Switch/Switch.js +28 -40
- package/build/inputs/Switch/Switch.js.map +1 -1
- package/build/inputs/Switch/Switch.styled.js +24 -94
- package/build/inputs/Switch/Switch.styled.js.map +1 -1
- package/build/inputs/TextArea/TextArea.js +98 -123
- package/build/inputs/TextArea/TextArea.js.map +1 -1
- package/build/inputs/TextArea/TextArea.styled.js +64 -379
- package/build/inputs/TextArea/TextArea.styled.js.map +1 -1
- package/build/inputs/TextInput/TextInput.js +59 -79
- package/build/inputs/TextInput/TextInput.js.map +1 -1
- package/build/inputs/TextInput/TextInput.styled.js +33 -224
- package/build/inputs/TextInput/TextInput.styled.js.map +1 -1
- package/build/layout/InputGroup/InputGroup.js +6 -9
- package/build/layout/InputGroup/InputGroup.js.map +1 -1
- package/build/layout/InputGroup/InputGroup.styled.js +4 -3
- package/build/layout/InputGroup/InputGroup.styled.js.map +1 -1
- package/build/layout/InputGroup/index.js +2 -0
- package/build/layout/InputGroup/index.js.map +1 -0
- package/build/layout/SectionSeparator/SectionSeparator.js +5 -9
- package/build/layout/SectionSeparator/SectionSeparator.js.map +1 -1
- package/build/layout/SectionSeparator/SectionSeparator.styled.js +4 -8
- package/build/layout/SectionSeparator/SectionSeparator.styled.js.map +1 -1
- package/build/styles/utils/colors-export.d.ts +73 -0
- package/build/styles/utils/colors-export.js.map +1 -1
- package/build/utils/dateTime.js.map +1 -1
- package/build/utils/defaultTheme.js +14 -28
- package/build/utils/defaultTheme.js.map +1 -1
- package/build/utils/getElementRef.js +14 -0
- package/build/utils/getElementRef.js.map +1 -0
- package/build/utils/parseTrigger.js +16 -0
- package/build/utils/parseTrigger.js.map +1 -0
- package/build/widgets/AssetAction/AssetAction.js +26 -33
- package/build/widgets/AssetAction/AssetAction.js.map +1 -1
- package/build/widgets/AssetAction/AssetAction.styled.js +20 -34
- package/build/widgets/AssetAction/AssetAction.styled.js.map +1 -1
- package/build/widgets/AssetActionsBase/AssetActionsBase.js +8 -13
- package/build/widgets/AssetActionsBase/AssetActionsBase.js.map +1 -1
- package/build/widgets/AssetActionsBase/AssetActionsBase.styled.js +4 -9
- package/build/widgets/AssetActionsBase/AssetActionsBase.styled.js.map +1 -1
- package/build/widgets/AssetGallery/AssetGallery.js +15 -40
- package/build/widgets/AssetGallery/AssetGallery.js.map +1 -1
- package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.js +55 -70
- package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.js.map +1 -1
- package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.styled.js +12 -24
- package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.styled.js.map +1 -1
- package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.js +146 -122
- package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.js.map +1 -1
- package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.styled.js +99 -286
- package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.styled.js.map +1 -1
- package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.js +170 -125
- package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.js.map +1 -1
- package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.styled.js +135 -364
- package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.styled.js.map +1 -1
- package/build/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.js +20 -21
- package/build/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.js.map +1 -1
- package/build/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.styled.js +20 -71
- package/build/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.styled.js.map +1 -1
- package/build/widgets/ContextMenu/ContextMenu.js +12 -11
- package/build/widgets/ContextMenu/ContextMenu.js.map +1 -1
- package/build/widgets/ContextMenu/ContextMenu.styled.js +4 -4
- package/build/widgets/ContextMenu/ContextMenu.styled.js.map +1 -1
- package/build/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js +17 -25
- package/build/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js.map +1 -1
- package/build/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.styled.js +16 -71
- package/build/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.styled.js.map +1 -1
- package/build/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.js +7 -11
- package/build/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.js.map +1 -1
- package/build/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.styled.js +4 -11
- package/build/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.styled.js.map +1 -1
- package/build/widgets/InfoCard/InfoCard.js +26 -21
- package/build/widgets/InfoCard/InfoCard.js.map +1 -1
- package/build/widgets/InfoCard/InfoCard.styled.js +36 -84
- package/build/widgets/InfoCard/InfoCard.styled.js.map +1 -1
- package/build/widgets/InstructionSeverityDisplay/InstructionSeverityDisplay.js +28 -34
- package/build/widgets/InstructionSeverityDisplay/InstructionSeverityDisplay.js.map +1 -1
- package/build/widgets/InstructionSeverityDisplay/InstructionSeverityDisplay.styled.js +21 -57
- package/build/widgets/InstructionSeverityDisplay/InstructionSeverityDisplay.styled.js.map +1 -1
- package/build/widgets/InstructionSeverityDisplay/index.js +2 -0
- package/build/widgets/InstructionSeverityDisplay/index.js.map +1 -0
- package/build/widgets/Instructions/Instructions.js +53 -95
- package/build/widgets/Instructions/Instructions.js.map +1 -1
- package/build/widgets/Instructions/Instructions.styled.js +27 -26
- package/build/widgets/Instructions/Instructions.styled.js.map +1 -1
- package/build/widgets/ProgressBar/ProgressBar.js +39 -37
- package/build/widgets/ProgressBar/ProgressBar.js.map +1 -1
- package/build/widgets/ProgressBar/ProgressBar.styled.js +56 -125
- package/build/widgets/ProgressBar/ProgressBar.styled.js.map +1 -1
- package/build/widgets/SummaryCard/SummaryCard.js +55 -64
- package/build/widgets/SummaryCard/SummaryCard.js.map +1 -1
- package/build/widgets/SummaryCard/SummaryCard.styled.js +51 -106
- package/build/widgets/SummaryCard/SummaryCard.styled.js.map +1 -1
- package/package.json +77 -36
- package/styles/utils/colors-export.d.ts +73 -0
- package/types/components/data/Alert/Alert.d.ts +76 -0
- package/types/components/data/Alert/Alert.styled.d.ts +83 -0
- package/types/components/data/Alert/index.d.ts +1 -0
- package/types/components/data/Badge/Badge.d.ts +128 -0
- package/types/components/data/Badge/Badge.styled.d.ts +132 -0
- package/types/components/data/Badge/index.d.ts +1 -0
- package/types/components/data/Popover/Popover.d.ts +205 -0
- package/types/components/data/Popover/Popover.styled.d.ts +15 -0
- package/types/components/data/Popover/index.d.ts +1 -0
- package/types/components/data/SeverityBadge/SeverityBadge.d.ts +72 -0
- package/types/components/data/SeverityBadge/index.d.ts +1 -0
- package/types/components/data/Tab/Tab.d.ts +27 -0
- package/types/components/data/Tab/Tab.styled.d.ts +1 -0
- package/types/components/data/Tab/index.d.ts +1 -0
- package/types/components/data/Tabs/Tabs.d.ts +111 -0
- package/types/components/data/Tabs/Tabs.styled.d.ts +42 -0
- package/types/components/data/Tabs/index.d.ts +1 -0
- package/types/components/data/Tooltip/Tooltip.d.ts +134 -0
- package/types/components/data/Tooltip/Tooltip.styled.d.ts +8 -0
- package/types/components/data/Tooltip/index.d.ts +1 -0
- package/types/components/data/VerificationStatusIcon/VerificationStatusIcon.d.ts +35 -0
- package/types/components/data/VerificationStatusIcon/VerificationStatusIcon.styled.d.ts +46 -0
- package/types/components/data/VerificationStatusIcon/index.d.ts +1 -0
- package/types/components/data/_shared/FloatingArrow.styled.d.ts +129 -0
- package/types/components/data/index.d.ts +8 -0
- package/types/components/index.d.ts +3 -0
- package/types/components/inputs/ActionButton/ActionButton.d.ts +55 -0
- package/types/components/inputs/ActionButton/ActionButton.styled.d.ts +34 -0
- package/types/components/inputs/ActionButton/index.d.ts +1 -0
- package/types/components/inputs/Button/Button.d.ts +82 -0
- package/types/components/inputs/Button/Button.styled.d.ts +102 -0
- package/types/components/inputs/Button/index.d.ts +1 -0
- package/types/components/inputs/Checkbox/Checkbox.d.ts +92 -0
- package/types/components/inputs/Checkbox/Checkbox.styled.d.ts +33 -0
- package/types/components/inputs/Checkbox/index.d.ts +1 -0
- package/types/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.d.ts +242 -0
- package/types/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.styled.d.ts +157 -0
- package/types/components/inputs/CompactAutocompleteSelect/index.d.ts +1 -0
- package/types/components/inputs/CompactStarRating/CompactStarRating.d.ts +96 -0
- package/types/components/inputs/CompactStarRating/CompactStarRating.styled.d.ts +86 -0
- package/types/components/inputs/CompactStarRating/index.d.ts +1 -0
- package/types/components/inputs/CompactTextInput/CompactTextInput.d.ts +116 -0
- package/types/components/inputs/CompactTextInput/CompactTextInput.styled.d.ts +70 -0
- package/types/components/inputs/CompactTextInput/index.d.ts +1 -0
- package/types/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.d.ts +41 -0
- package/types/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.styled.d.ts +21 -0
- package/types/components/inputs/MultiLevelCheckbox/index.d.ts +2 -0
- package/types/components/inputs/MultiLevelCheckbox/types.d.ts +72 -0
- package/types/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.d.ts +44 -0
- package/types/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.styled.d.ts +11 -0
- package/types/components/inputs/MultiLevelCheckboxSelect/index.d.ts +1 -0
- package/types/components/inputs/MultiSelect/MultiSelect.d.ts +172 -0
- package/types/components/inputs/MultiSelect/MultiSelect.styled.d.ts +99 -0
- package/types/components/inputs/MultiSelect/index.d.ts +1 -0
- package/types/components/inputs/Radio/Radio.d.ts +65 -0
- package/types/components/inputs/Radio/Radio.styled.d.ts +11 -0
- package/types/components/inputs/Radio/index.d.ts +1 -0
- package/types/components/inputs/Switch/Switch.d.ts +62 -0
- package/types/components/inputs/Switch/Switch.styled.d.ts +20 -0
- package/types/components/inputs/Switch/index.d.ts +1 -0
- package/types/components/inputs/TextArea/TextArea.d.ts +124 -0
- package/types/components/inputs/TextArea/TextArea.styled.d.ts +95 -0
- package/types/components/inputs/TextArea/index.d.ts +1 -0
- package/types/components/inputs/TextInput/TextInput.d.ts +109 -0
- package/types/components/inputs/TextInput/TextInput.styled.d.ts +43 -0
- package/types/components/inputs/TextInput/index.d.ts +1 -0
- package/types/components/inputs/index.d.ts +13 -0
- package/types/components/layout/InputGroup/InputGroup.d.ts +31 -0
- package/types/components/layout/InputGroup/InputGroup.styled.d.ts +1 -0
- package/types/components/layout/InputGroup/index.d.ts +1 -0
- package/types/components/layout/SectionSeparator/SectionSeparator.d.ts +28 -0
- package/types/components/layout/SectionSeparator/SectionSeparator.styled.d.ts +14 -0
- package/types/components/layout/SectionSeparator/index.d.ts +1 -0
- package/types/components/layout/index.d.ts +2 -0
- package/types/components/widgets/AssetAction/AssetAction.d.ts +16 -0
- package/types/components/widgets/AssetAction/AssetAction.styled.d.ts +20 -0
- package/types/components/widgets/AssetAction/index.d.ts +1 -0
- package/types/components/widgets/AssetActionsBase/AssetActionsBase.d.ts +25 -0
- package/types/components/widgets/AssetActionsBase/AssetActionsBase.styled.d.ts +1 -0
- package/types/components/widgets/AssetActionsBase/index.d.ts +1 -0
- package/types/components/widgets/AssetGallery/AssetGallery.d.ts +170 -0
- package/types/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.d.ts +88 -0
- package/types/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.styled.d.ts +3 -0
- package/types/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.d.ts +3 -0
- package/types/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.styled.d.ts +100 -0
- package/types/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.d.ts +2 -0
- package/types/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.styled.d.ts +85 -0
- package/types/components/widgets/AssetGallery/asset.types.d.ts +446 -0
- package/types/components/widgets/AssetGallery/index.d.ts +1 -0
- package/types/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.d.ts +60 -0
- package/types/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.styled.d.ts +35 -0
- package/types/components/widgets/AssetPreview/AssetPreviewTopBar/index.d.ts +1 -0
- package/types/components/widgets/ContextMenu/ContextMenu.d.ts +134 -0
- package/types/components/widgets/ContextMenu/ContextMenu.styled.d.ts +1 -0
- package/types/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.d.ts +45 -0
- package/types/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.styled.d.ts +26 -0
- package/types/components/widgets/ContextMenu/ContextMenuItem/index.d.ts +1 -0
- package/types/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.d.ts +41 -0
- package/types/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.styled.d.ts +1 -0
- package/types/components/widgets/ContextMenu/ContextMenuItemsGroup/index.d.ts +1 -0
- package/types/components/widgets/ContextMenu/index.d.ts +1 -0
- package/types/components/widgets/InfoCard/InfoCard.d.ts +33 -0
- package/types/components/widgets/InfoCard/InfoCard.styled.d.ts +45 -0
- package/types/components/widgets/InfoCard/index.d.ts +1 -0
- package/types/components/widgets/InstructionSeverityDisplay/InstructionSeverityDisplay.d.ts +46 -0
- package/types/components/widgets/InstructionSeverityDisplay/InstructionSeverityDisplay.styled.d.ts +40 -0
- package/types/components/widgets/InstructionSeverityDisplay/index.d.ts +1 -0
- package/types/components/widgets/Instructions/Instructions.d.ts +156 -0
- package/types/components/widgets/Instructions/Instructions.styled.d.ts +26 -0
- package/types/components/widgets/Instructions/index.d.ts +1 -0
- package/types/components/widgets/ProgressBar/ProgressBar.d.ts +30 -0
- package/types/components/widgets/ProgressBar/ProgressBar.styled.d.ts +78 -0
- package/types/components/widgets/ProgressBar/index.d.ts +1 -0
- package/types/components/widgets/SummaryCard/SummaryCard.d.ts +83 -0
- package/types/components/widgets/SummaryCard/SummaryCard.styled.d.ts +68 -0
- package/types/components/widgets/SummaryCard/index.d.ts +1 -0
- package/types/components/widgets/index.d.ts +11 -0
- package/types/hooks/useElementSize.d.ts +25 -0
- package/types/hooks/useEventListner.d.ts +46 -0
- package/types/hooks/useFloatingPopover.d.ts +242 -0
- package/types/hooks/useIsomorphicLayoutEffect.d.ts +26 -0
- package/types/hooks/useOnClickOutside.d.ts +31 -0
- package/types/hooks/useTooltipAutoShow.d.ts +80 -0
- package/types/icons/index.d.ts +41 -0
- package/types/ssr/index.d.ts +1 -0
- package/types/styles/utils/colors-export.d.ts +73 -0
- package/types/utils/dateTime.d.ts +13 -0
- package/types/utils/defaultTheme.d.ts +174 -0
- package/types/utils/getElementRef.d.ts +21 -0
- package/types/utils/parseTrigger.d.ts +92 -0
- package/build/_virtual/_rollupPluginBabelHelpers.js +0 -12
- package/build/_virtual/_rollupPluginBabelHelpers.js.map +0 -1
- package/build/widgets/AssetGallery/asset.propType.js +0 -56
- package/build/widgets/AssetGallery/asset.propType.js.map +0 -1
|
@@ -1,191 +1,47 @@
|
|
|
1
1
|
import styled, { keyframes, css } from 'styled-components';
|
|
2
2
|
import { applyDefaultTheme } from '../../utils/defaultTheme.js';
|
|
3
3
|
|
|
4
|
-
const fadeInCheck = keyframes
|
|
5
|
-
|
|
6
|
-
opacity: 0
|
|
7
|
-
}
|
|
8
|
-
to {
|
|
9
|
-
opacity: 1
|
|
10
|
-
}
|
|
11
|
-
`;
|
|
12
|
-
const fadeOutCheck = keyframes`
|
|
13
|
-
from {
|
|
14
|
-
opacity: 1
|
|
15
|
-
}
|
|
16
|
-
to {
|
|
17
|
-
opacity: 0
|
|
18
|
-
}
|
|
19
|
-
`;
|
|
20
|
-
const activeLabel = css`
|
|
21
|
-
font-size: 0.75rem;
|
|
22
|
-
padding: 0 3px;
|
|
23
|
-
top: -7px;
|
|
24
|
-
letter-spacing: 0.03em;
|
|
25
|
-
left: 8px !important;
|
|
26
|
-
opacity: 1 !important;
|
|
27
|
-
`;
|
|
4
|
+
const fadeInCheck = keyframes(["from{opacity:0}to{opacity:1}"]);
|
|
5
|
+
const activeLabel = css(["font-size:0.75rem;padding:0 3px;top:-7px;letter-spacing:0.03em;left:8px !important;opacity:1 !important;"]);
|
|
28
6
|
const shouldForwardProp = prop => {
|
|
29
7
|
return prop !== 'theme' && !prop.startsWith('$');
|
|
30
8
|
};
|
|
31
9
|
const TextAreaContainter = styled.div.withConfig({
|
|
32
10
|
shouldForwardProp
|
|
33
|
-
}).attrs(applyDefaultTheme)
|
|
34
|
-
|
|
35
|
-
|
|
11
|
+
}).attrs(applyDefaultTheme).withConfig({
|
|
12
|
+
displayName: "TextAreastyled__TextAreaContainter",
|
|
13
|
+
componentId: "sc-1ymvc76-0"
|
|
14
|
+
})(["display:flex;"]);
|
|
36
15
|
const Label = styled.label.withConfig({
|
|
37
16
|
shouldForwardProp
|
|
38
|
-
}).attrs(applyDefaultTheme)
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
line-height: 1rem;
|
|
43
|
-
height: 19px;
|
|
44
|
-
display: flex;
|
|
45
|
-
justify-content: space-between;
|
|
46
|
-
align-items: center;
|
|
47
|
-
padding-top: 13px;
|
|
48
|
-
${props => props.disabled && css`
|
|
49
|
-
cursor: not-allowed;
|
|
50
|
-
`}
|
|
51
|
-
`;
|
|
17
|
+
}).attrs(applyDefaultTheme).withConfig({
|
|
18
|
+
displayName: "TextAreastyled__Label",
|
|
19
|
+
componentId: "sc-1ymvc76-1"
|
|
20
|
+
})(["", ";flex-basis:33.33%;font-size:0.875rem;line-height:1rem;height:19px;display:flex;justify-content:space-between;align-items:center;padding-top:13px;", ""], props => props.theme.themeProp('color', props.theme.getColor('white'), props.theme.getColor('gray-700')), props => props.disabled && css(["cursor:not-allowed;"]));
|
|
52
21
|
const InputIconContainer = styled.div.withConfig({
|
|
53
22
|
shouldForwardProp
|
|
54
|
-
}).attrs(applyDefaultTheme)
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
border-bottom-right-radius: 3px;
|
|
59
|
-
display: flex;
|
|
60
|
-
align-items: flex-start;
|
|
61
|
-
|
|
62
|
-
position: absolute;
|
|
63
|
-
right: 15px;
|
|
64
|
-
top: 10px;
|
|
65
|
-
bottom: 0;
|
|
66
|
-
> .smallPadingIcon {
|
|
67
|
-
padding: 4px;
|
|
68
|
-
width: 15px;
|
|
69
|
-
height: 15px;
|
|
70
|
-
border-radius: 5px;
|
|
71
|
-
opacity: 1;
|
|
72
|
-
margin-top: -5px;
|
|
73
|
-
${props => props.theme.themeProp('background-color', props.theme.getColor('gray-900'), props.theme.getColor('gray-300'), '!important')}
|
|
74
|
-
}
|
|
75
|
-
svg {
|
|
76
|
-
width: 15px;
|
|
77
|
-
opacity: 0.7;
|
|
78
|
-
transition: opacity 250ms;
|
|
79
|
-
|
|
80
|
-
${props => props.disabled && css`
|
|
81
|
-
display: none;
|
|
82
|
-
`}
|
|
83
|
-
}
|
|
84
|
-
`;
|
|
23
|
+
}).attrs(applyDefaultTheme).withConfig({
|
|
24
|
+
displayName: "TextAreastyled__InputIconContainer",
|
|
25
|
+
componentId: "sc-1ymvc76-2"
|
|
26
|
+
})(["opacity:0;pointer-events:none;border-top-right-radius:3px;border-bottom-right-radius:3px;display:flex;align-items:flex-start;position:absolute;right:15px;top:10px;bottom:0;> .smallPadingIcon{padding:4px;width:15px;height:15px;border-radius:5px;opacity:1;margin-top:-5px;", "}svg{width:15px;opacity:0.7;transition:opacity 250ms;", "}"], props => props.theme.themeProp('background-color', props.theme.getColor('gray-900'), props.theme.getColor('gray-300'), '!important'), props => props.disabled && css(["display:none;"]));
|
|
85
27
|
const TextInputField = styled.textarea.withConfig({
|
|
86
28
|
shouldForwardProp
|
|
87
|
-
}).attrs(applyDefaultTheme)
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
border-radius: 3px;
|
|
92
|
-
padding: 5px 10px;
|
|
93
|
-
resize: vertical;
|
|
94
|
-
z-index: 0;
|
|
95
|
-
box-sizing: border-box;
|
|
96
|
-
appearance: none;
|
|
97
|
-
border: 1px solid;
|
|
98
|
-
transition:
|
|
99
|
-
height 550ms ease-in-out,
|
|
100
|
-
border-color 350ms,
|
|
101
|
-
background 350ms;
|
|
102
|
-
|
|
103
|
-
${props => props.theme.themeProp('color', props.theme.getColor('gray-100'), props.theme.getColor('gray-900'))}
|
|
104
|
-
|
|
105
|
-
${props => props.$borderRadius && css`
|
|
106
|
-
border-radius: ${props.$borderRadius}px;
|
|
107
|
-
`}
|
|
108
|
-
|
|
109
|
-
${props => {
|
|
29
|
+
}).attrs(applyDefaultTheme).withConfig({
|
|
30
|
+
displayName: "TextAreastyled__TextInputField",
|
|
31
|
+
componentId: "sc-1ymvc76-3"
|
|
32
|
+
})(["width:100%;font-family:inherit;font-size:0.875rem;border-radius:3px;padding:5px 10px;resize:vertical;z-index:0;box-sizing:border-box;appearance:none;border:1px solid;transition:height 550ms ease-in-out,border-color 350ms,background 350ms;", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " &&:hover:not(:focus){", " ", " ", " & + ", "{opacity:1;", "}}&::placeholder{", "}", ";&:focus::placeholder{", "}&&:focus{outline:none;", "}&&:not(:hover):not(:focus){", " ", " ", "}"], props => props.theme.themeProp('color', props.theme.getColor('gray-100'), props.theme.getColor('gray-900')), props => props.$borderRadius && css(["border-radius:", "px;"], props.$borderRadius), props => {
|
|
110
33
|
if (props.$type === 'error') {
|
|
111
|
-
return css
|
|
112
|
-
${props.theme.themeProp('color', 'white', 'black')}
|
|
113
|
-
${props.theme.themeProp('background', '#7f1b1b', '#FBEAE6')}
|
|
114
|
-
${props.theme.themeProp('border-color', '#7f1b1b', '#FBEAE6')}
|
|
115
|
-
`;
|
|
34
|
+
return css(["", " ", " ", ""], props.theme.themeProp('color', 'white', 'black'), props.theme.themeProp('background', '#7f1b1b', '#FBEAE6'), props.theme.themeProp('border-color', '#7f1b1b', '#FBEAE6'));
|
|
116
35
|
} else if (props.$type === 'warning') {
|
|
117
|
-
return css
|
|
118
|
-
${props.theme.themeProp('color', 'white', 'black')}
|
|
119
|
-
${props.theme.themeProp('background', '#634E01', '#FFFDE8')}
|
|
120
|
-
${props.theme.themeProp('border-color', '#634E01', '#FFFDE8')}
|
|
121
|
-
`;
|
|
36
|
+
return css(["", " ", " ", ""], props.theme.themeProp('color', 'white', 'black'), props.theme.themeProp('background', '#634E01', '#FFFDE8'), props.theme.themeProp('border-color', '#634E01', '#FFFDE8'));
|
|
122
37
|
} else if (props.$type === 'error-border') {
|
|
123
|
-
return css
|
|
124
|
-
${props.theme.themeProp('color', props.theme.getColor('gray-100'), props.theme.getColor('gray-900'))}
|
|
125
|
-
${props.theme.themeProp('background', props.theme.getColor('gray-900'), props.theme.getColor('white'))}
|
|
126
|
-
${props.theme.themeProp('border-color', props.theme.getColor('red-200'), props.theme.getColor('red-500'))}
|
|
127
|
-
`;
|
|
38
|
+
return css(["", " ", " ", ""], props.theme.themeProp('color', props.theme.getColor('gray-100'), props.theme.getColor('gray-900')), props.theme.themeProp('background', props.theme.getColor('gray-900'), props.theme.getColor('white')), props.theme.themeProp('border-color', props.theme.getColor('red-200'), props.theme.getColor('red-500')));
|
|
128
39
|
} else if (props.$type === 'warning-border') {
|
|
129
|
-
return css
|
|
130
|
-
${props.theme.themeProp('color', props.theme.getColor('gray-100'), props.theme.getColor('gray-900'))}
|
|
131
|
-
${props.theme.themeProp('background', props.theme.getColor('gray-900'), props.theme.getColor('white'))}
|
|
132
|
-
${props.theme.themeProp('border-color', props.theme.getColor('red-200'), props.theme.getColor('orange-500'))}
|
|
133
|
-
`;
|
|
40
|
+
return css(["", " ", " ", ""], props.theme.themeProp('color', props.theme.getColor('gray-100'), props.theme.getColor('gray-900')), props.theme.themeProp('background', props.theme.getColor('gray-900'), props.theme.getColor('white')), props.theme.themeProp('border-color', props.theme.getColor('red-200'), props.theme.getColor('orange-500')));
|
|
134
41
|
} else {
|
|
135
|
-
return css
|
|
136
|
-
${props.theme.themeProp('color', props.theme.getColor('gray-100'), props.theme.getColor('gray-900'))}
|
|
137
|
-
${props.theme.themeProp('background', props.theme.getColor('gray-900'), props.theme.getColor('white'))}
|
|
138
|
-
${props.theme.themeProp('border-color', props.theme.getColor('gray-500'), props.theme.getColor('gray-400'))}
|
|
139
|
-
`;
|
|
42
|
+
return css(["", " ", " ", ""], props.theme.themeProp('color', props.theme.getColor('gray-100'), props.theme.getColor('gray-900')), props.theme.themeProp('background', props.theme.getColor('gray-900'), props.theme.getColor('white')), props.theme.themeProp('border-color', props.theme.getColor('gray-500'), props.theme.getColor('gray-400')));
|
|
140
43
|
}
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
${props => props.readOnly && css`
|
|
145
|
-
cursor: default;
|
|
146
|
-
border-color: transparent !important;
|
|
147
|
-
padding: 12px 10px;
|
|
148
|
-
`}
|
|
149
|
-
|
|
150
|
-
${props => props.disabled && css`
|
|
151
|
-
cursor: not-allowed;
|
|
152
|
-
`}
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
${props => props.$noBorder && !props.$type && css`
|
|
156
|
-
${props => props.theme.themeProp('border-color', props.theme.getColor('gray-900'), props.theme.getColor('white'))}
|
|
157
|
-
`}
|
|
158
|
-
|
|
159
|
-
${props => props.$noBorder && props.$type === 'warning' && css`
|
|
160
|
-
${props => props.theme.themeProp('border-color', '#634E01', '#FFFDE8')}
|
|
161
|
-
`}
|
|
162
|
-
|
|
163
|
-
${props => props.$noBorder && props.$type === 'error' && css`
|
|
164
|
-
${props => props.theme.themeProp('border-color', '#7f1b1b', '#FBEAE6')}
|
|
165
|
-
`}
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
${props => props.padding === 'small' && css`
|
|
169
|
-
padding: 5px 10px;
|
|
170
|
-
`}
|
|
171
|
-
|
|
172
|
-
${props => props.padding === 'medium' && css`
|
|
173
|
-
padding: 13px 15px;
|
|
174
|
-
`}
|
|
175
|
-
|
|
176
|
-
${props => props.padding === 'large' && css`
|
|
177
|
-
padding: 15px 55px;
|
|
178
|
-
`}
|
|
179
|
-
|
|
180
|
-
${props => props.$hasIcon && css`
|
|
181
|
-
padding-left: 55px;
|
|
182
|
-
padding-right: 35px;
|
|
183
|
-
padding-top: 13.5px;
|
|
184
|
-
`}
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
&&:hover:not(:focus) {
|
|
188
|
-
${props => {
|
|
44
|
+
}, props => props.readOnly && css(["cursor:default;border-color:transparent !important;padding:12px 10px;"]), props => props.disabled && css(["cursor:not-allowed;"]), props => props.$noBorder && !props.$type && css(["", ""], props => props.theme.themeProp('border-color', props.theme.getColor('gray-900'), props.theme.getColor('white'))), props => props.$noBorder && props.$type === 'warning' && css(["", ""], props => props.theme.themeProp('border-color', '#634E01', '#FFFDE8')), props => props.$noBorder && props.$type === 'error' && css(["", ""], props => props.theme.themeProp('border-color', '#7f1b1b', '#FBEAE6')), props => props.padding === 'small' && css(["padding:5px 10px;"]), props => props.padding === 'medium' && css(["padding:13px 15px;"]), props => props.padding === 'large' && css(["padding:15px 55px;"]), props => props.$hasIcon && css(["padding-left:55px;padding-right:35px;padding-top:13.5px;"]), props => {
|
|
189
45
|
if (props.disabled) {
|
|
190
46
|
return '';
|
|
191
47
|
}
|
|
@@ -205,59 +61,19 @@ const TextInputField = styled.textarea.withConfig({
|
|
|
205
61
|
return props.theme.themeProp('background', props.theme.getColor('gray-700'), props.theme.getColor('gray-100'));
|
|
206
62
|
}
|
|
207
63
|
return '';
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
${props => props.$edit && props.theme.themeProp('border-color', props.theme.getColor('gray-700'), props.theme.getColor('gray-100'))}
|
|
211
|
-
|
|
212
|
-
${props => props.$noBorder && !props.readOnly && props.$type !== 'warning' && props.$type !== 'error' ? props.theme.themeProp('background', props.theme.getColor('gray-700'), props.theme.getColor('gray-100')) : ''}
|
|
213
|
-
|
|
214
|
-
& + ${InputIconContainer} {
|
|
215
|
-
opacity: 1;
|
|
216
|
-
${props => props.$type === 'success' && css`
|
|
217
|
-
opacity: 0;
|
|
218
|
-
`}
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
&::placeholder {
|
|
223
|
-
${props => {
|
|
64
|
+
}, props => props.$edit && props.theme.themeProp('border-color', props.theme.getColor('gray-700'), props.theme.getColor('gray-100')), props => props.$noBorder && !props.readOnly && props.$type !== 'warning' && props.$type !== 'error' ? props.theme.themeProp('background', props.theme.getColor('gray-700'), props.theme.getColor('gray-100')) : '', InputIconContainer, props => props.$type === 'success' && css(["opacity:0;"]), props => {
|
|
224
65
|
if (props.$type === 'error' || props.$type === 'warning') {
|
|
225
|
-
return css
|
|
226
|
-
color: ${props.theme.getColor('gray-400')};
|
|
227
|
-
opacity: 0.9;
|
|
228
|
-
`;
|
|
66
|
+
return css(["color:", ";opacity:0.9;"], props.theme.getColor('gray-400'));
|
|
229
67
|
} else {
|
|
230
|
-
return css
|
|
231
|
-
${props.theme.themeProp('color', props.theme.getColor('gray-400'), props.theme.getColor('gray-500'))}
|
|
232
|
-
opacity: 0.6;
|
|
233
|
-
`;
|
|
68
|
+
return css(["", " opacity:0.6;"], props.theme.themeProp('color', props.theme.getColor('gray-400'), props.theme.getColor('gray-500')));
|
|
234
69
|
}
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
${props => props.theme.themeProp('color', props.theme.getColor('gray-300'), props.theme.getColor('gray-600'))};
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
&:focus::placeholder {
|
|
243
|
-
${props => {
|
|
70
|
+
}, props => props.theme.themeProp('color', props.theme.getColor('gray-300'), props.theme.getColor('gray-600')), props => {
|
|
244
71
|
if (props.$type === 'warning' || props.$type === 'error') {
|
|
245
|
-
return css
|
|
246
|
-
color: ${props.theme.getColor('gray-500')} !important;
|
|
247
|
-
opacity: 0.8 !important;
|
|
248
|
-
`;
|
|
72
|
+
return css(["color:", " !important;opacity:0.8 !important;"], props.theme.getColor('gray-500'));
|
|
249
73
|
} else {
|
|
250
|
-
return css
|
|
251
|
-
${props.theme.themeProp('color', props.theme.getColor('gray-300'), props.theme.getColor('gray-600'))}
|
|
252
|
-
`;
|
|
74
|
+
return css(["", ""], props.theme.themeProp('color', props.theme.getColor('gray-300'), props.theme.getColor('gray-600')));
|
|
253
75
|
}
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
&&:focus {
|
|
258
|
-
outline: none;
|
|
259
|
-
|
|
260
|
-
${props => {
|
|
76
|
+
}, props => {
|
|
261
77
|
if (props.readOnly) {
|
|
262
78
|
if (props.$type === 'error') {
|
|
263
79
|
return props.theme.themeProp('background', '#7f1b1b', '#FBEAE6');
|
|
@@ -267,28 +83,13 @@ const TextInputField = styled.textarea.withConfig({
|
|
|
267
83
|
return '';
|
|
268
84
|
}
|
|
269
85
|
if (props.$type === 'error') {
|
|
270
|
-
return css
|
|
271
|
-
${props.theme.themeProp('border-color', '#D83018', '#D83018')}
|
|
272
|
-
${props.theme.themeProp('background', 'white', 'white')}
|
|
273
|
-
${props.theme.themeProp('color', 'black', 'black')}
|
|
274
|
-
`;
|
|
86
|
+
return css(["", " ", " ", ""], props.theme.themeProp('border-color', '#D83018', '#D83018'), props.theme.themeProp('background', 'white', 'white'), props.theme.themeProp('color', 'black', 'black'));
|
|
275
87
|
} else if (props.$type === 'warning') {
|
|
276
|
-
return css
|
|
277
|
-
${props.theme.themeProp('border-color', '#F4E21E', '#F4E21E')}
|
|
278
|
-
${props.theme.themeProp('background', 'white', 'white')}
|
|
279
|
-
${props.theme.themeProp('color', 'black', 'black')}
|
|
280
|
-
`;
|
|
88
|
+
return css(["", " ", " ", ""], props.theme.themeProp('border-color', '#F4E21E', '#F4E21E'), props.theme.themeProp('background', 'white', 'white'), props.theme.themeProp('color', 'black', 'black'));
|
|
281
89
|
} else {
|
|
282
|
-
return css
|
|
283
|
-
border-color: ${props.theme.getColor('gray-600')};
|
|
284
|
-
${props.theme.themeProp('background', props.theme.getColor('gray-700'), props.theme.getColor('gray-100'))}
|
|
285
|
-
`;
|
|
90
|
+
return css(["border-color:", ";", ""], props.theme.getColor('gray-600'), props.theme.themeProp('background', props.theme.getColor('gray-700'), props.theme.getColor('gray-100')));
|
|
286
91
|
}
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
&&:not(:hover):not(:focus) {
|
|
291
|
-
${props => {
|
|
92
|
+
}, props => {
|
|
292
93
|
if (props.$edit) {
|
|
293
94
|
if (props.$type === 'error') {
|
|
294
95
|
return props.theme.themeProp('background', '#7f1b1b', '#FEE2E2');
|
|
@@ -298,165 +99,49 @@ const TextInputField = styled.textarea.withConfig({
|
|
|
298
99
|
return props.theme.themeProp('background', 'rgba(39,39,42, 0.7)', 'rgba(244,244,245, 0.3)');
|
|
299
100
|
}
|
|
300
101
|
}
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
${props => props.$edit && props.theme.themeProp('border-color', 'rgba(39,39,42, 0.7)', 'rgba(228,228,231, 0.3)')}
|
|
304
|
-
|
|
305
|
-
${props => props.$noBorder && props.$edit && css`
|
|
306
|
-
${props => props.theme.themeProp('border-color', '#27272A', 'rgba(244,244,245, 0.3)')}
|
|
307
|
-
`}
|
|
308
|
-
}
|
|
309
|
-
`;
|
|
102
|
+
}, props => props.$edit && props.theme.themeProp('border-color', 'rgba(39,39,42, 0.7)', 'rgba(228,228,231, 0.3)'), props => props.$noBorder && props.$edit && css(["", ""], props => props.theme.themeProp('border-color', '#27272A', 'rgba(244,244,245, 0.3)')));
|
|
310
103
|
const TextInputLabel = styled.label.withConfig({
|
|
311
104
|
shouldForwardProp
|
|
312
|
-
}).attrs(applyDefaultTheme)
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
line-height: 1.2;
|
|
317
|
-
font-size: 0.875rem;
|
|
318
|
-
transition: all 150ms;
|
|
319
|
-
margin-botton: 50px;
|
|
320
|
-
|
|
321
|
-
${props => props.theme.themeProp('color', props.theme.getColor('white'), props.theme.getColor('gray-700'))};
|
|
322
|
-
|
|
323
|
-
${props => props.theme.themeProp('opacity', 0.6, 0.5)}
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
${props => props.theme.themeProp('background', `linear-gradient(0deg, ${props.theme.getColor('gray-900')} calc(50% + 1px), transparent 50%)`, `linear-gradient(0deg, ${props.theme.getColor('white')} calc(50% + 1px), transparent 50%)`)}
|
|
327
|
-
|
|
328
|
-
${props => !props.$inputIsEmpty && css`
|
|
329
|
-
${activeLabel}
|
|
330
|
-
`}
|
|
331
|
-
|
|
332
|
-
${props => props.$hasPlaceholder && css`
|
|
333
|
-
${activeLabel};
|
|
334
|
-
`}
|
|
335
|
-
content: "";
|
|
336
|
-
|
|
337
|
-
${props => props.$hasIcon && css`
|
|
338
|
-
left: 55px;
|
|
339
|
-
`}
|
|
340
|
-
`;
|
|
105
|
+
}).attrs(applyDefaultTheme).withConfig({
|
|
106
|
+
displayName: "TextAreastyled__TextInputLabel",
|
|
107
|
+
componentId: "sc-1ymvc76-4"
|
|
108
|
+
})(["position:absolute;top:13px;left:11px;line-height:1.2;font-size:0.875rem;transition:all 150ms;margin-botton:50px;", ";", " ", " ", " ", " content:\"\";", ""], props => props.theme.themeProp('color', props.theme.getColor('white'), props.theme.getColor('gray-700')), props => props.theme.themeProp('opacity', 0.6, 0.5), props => props.theme.themeProp('background', `linear-gradient(0deg, ${props.theme.getColor('gray-900')} calc(50% + 1px), transparent 50%)`, `linear-gradient(0deg, ${props.theme.getColor('white')} calc(50% + 1px), transparent 50%)`), props => !props.$inputIsEmpty && css(["", ""], activeLabel), props => props.$hasPlaceholder && css(["", ";"], activeLabel), props => props.$hasIcon && css(["left:55px;"]));
|
|
341
109
|
const TextInputFieldIcon = styled.div.withConfig({
|
|
342
110
|
shouldForwardProp
|
|
343
|
-
}).attrs(applyDefaultTheme)
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
height: 2.625rem;
|
|
348
|
-
display: flex;
|
|
349
|
-
padding: 0 10px;
|
|
350
|
-
|
|
351
|
-
svg {
|
|
352
|
-
width: 15px;
|
|
353
|
-
opacity: 0.6;
|
|
354
|
-
transition: opacity 250ms;
|
|
355
|
-
}
|
|
356
|
-
`;
|
|
111
|
+
}).attrs(applyDefaultTheme).withConfig({
|
|
112
|
+
displayName: "TextAreastyled__TextInputFieldIcon",
|
|
113
|
+
componentId: "sc-1ymvc76-5"
|
|
114
|
+
})(["position:absolute;top:0;left:0;height:2.625rem;display:flex;padding:0 10px;svg{width:15px;opacity:0.6;transition:opacity 250ms;}"]);
|
|
357
115
|
const TextInputFieldIconAlert = styled.div.withConfig({
|
|
358
116
|
shouldForwardProp
|
|
359
|
-
}).attrs(applyDefaultTheme)
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
padding: 0 10px 0 30px;
|
|
364
|
-
opacity: 0.6;
|
|
365
|
-
transition: opacity 250ms;
|
|
366
|
-
${props => props.$type === 'warning' && props.theme.themeProp('color', '#EAB308', '#2F2402')}
|
|
367
|
-
svg {
|
|
368
|
-
margin-top: 12px;
|
|
369
|
-
width: 15px;
|
|
370
|
-
}
|
|
371
|
-
`;
|
|
117
|
+
}).attrs(applyDefaultTheme).withConfig({
|
|
118
|
+
displayName: "TextAreastyled__TextInputFieldIconAlert",
|
|
119
|
+
componentId: "sc-1ymvc76-6"
|
|
120
|
+
})(["position:absolute;top:2.8px;display:flex;padding:0 10px 0 30px;opacity:0.6;transition:opacity 250ms;", " svg{margin-top:12px;width:15px;}"], props => props.$type === 'warning' && props.theme.themeProp('color', '#EAB308', '#2F2402'));
|
|
372
121
|
const TextInput = styled.div.withConfig({
|
|
373
122
|
shouldForwardProp
|
|
374
|
-
}).attrs(applyDefaultTheme)
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
${props => props.disabled && css`
|
|
379
|
-
opacity: 0.5;
|
|
380
|
-
|
|
381
|
-
> * {
|
|
382
|
-
cursor: not-allowed;
|
|
383
|
-
}
|
|
384
|
-
`}
|
|
385
|
-
|
|
386
|
-
&:focus-within {
|
|
387
|
-
${TextInputLabel} {
|
|
388
|
-
${activeLabel};
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
${TextInputFieldIcon} {
|
|
392
|
-
svg {
|
|
393
|
-
opacity: 1;
|
|
394
|
-
}
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
${TextInputField}:not(:placeholder-shown) + ${TextInputLabel} {
|
|
399
|
-
${activeLabel};
|
|
400
|
-
${props => props.$type === 'error' && props.theme.themeProp('color', props.theme.getColor('red-200'), props.theme.getColor('red-500'))}
|
|
401
|
-
}
|
|
402
|
-
`;
|
|
123
|
+
}).attrs(applyDefaultTheme).withConfig({
|
|
124
|
+
displayName: "TextAreastyled__TextInput",
|
|
125
|
+
componentId: "sc-1ymvc76-7"
|
|
126
|
+
})(["position:relative;flex-basis:", ";", " &:focus-within{", "{", ";}", "{svg{opacity:1;}}}", ":not(:placeholder-shown) + ", "{", ";", "}"], props => props.$fieldLabel ? '66.66%' : '100%', props => props.disabled && css(["opacity:0.5;> *{cursor:not-allowed;}"]), TextInputLabel, activeLabel, TextInputFieldIcon, TextInputField, TextInputLabel, activeLabel, props => props.$type === 'error' && props.theme.themeProp('color', props.theme.getColor('red-200'), props.theme.getColor('red-500')));
|
|
403
127
|
const Description = styled.div.withConfig({
|
|
404
128
|
shouldForwardProp
|
|
405
|
-
}).attrs(applyDefaultTheme)
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
line-height: 1.333;
|
|
410
|
-
|
|
411
|
-
${props => props.theme.themeProp('color', props.theme.getColor('gray-400'), props.theme.getColor('gray-500'))};
|
|
412
|
-
|
|
413
|
-
${props => (props.$type === 'warning-border' || props.$type === 'warning') && css`
|
|
414
|
-
${props.theme.themeProp('color', props.theme.getColor('red-200'), props.theme.getColor('orange-500'))}
|
|
415
|
-
`}
|
|
416
|
-
|
|
417
|
-
${props => (props.$type === 'error-border' || props.$type === 'error') && css`
|
|
418
|
-
${props.theme.themeProp('color', props.theme.getColor('red-200'), props.theme.getColor('red-500'))}
|
|
419
|
-
`}
|
|
420
|
-
`;
|
|
129
|
+
}).attrs(applyDefaultTheme).withConfig({
|
|
130
|
+
displayName: "TextAreastyled__Description",
|
|
131
|
+
componentId: "sc-1ymvc76-8"
|
|
132
|
+
})(["margin:8px 0 0 0;padding:0 0.6875rem;font-size:0.75rem;line-height:1.333;", ";", " ", ""], props => props.theme.themeProp('color', props.theme.getColor('gray-400'), props.theme.getColor('gray-500')), props => (props.$type === 'warning-border' || props.$type === 'warning') && css(["", ""], props.theme.themeProp('color', props.theme.getColor('red-200'), props.theme.getColor('orange-500'))), props => (props.$type === 'error-border' || props.$type === 'error') && css(["", ""], props.theme.themeProp('color', props.theme.getColor('red-200'), props.theme.getColor('red-500'))));
|
|
421
133
|
const SuccessContainer = styled.div.withConfig({
|
|
422
134
|
shouldForwardProp
|
|
423
|
-
}).attrs(applyDefaultTheme)
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
animation: ${props => props.$fadeIn ? fadeOutCheck : fadeInCheck} 0.5s ease-in-out;
|
|
428
|
-
transition: opacity 0.5s ease-in-out;
|
|
429
|
-
position: absolute;
|
|
430
|
-
margin-top: -35px;
|
|
431
|
-
margin-left: 5px;
|
|
432
|
-
width: 15px;
|
|
433
|
-
height: 15px;
|
|
434
|
-
padding: 5px;
|
|
435
|
-
${props => props.theme.themeProp('color', props.theme.getColor('gray-300'), props.theme.getColor('gray-500'))}
|
|
436
|
-
|
|
437
|
-
> svg {
|
|
438
|
-
width: 15px;
|
|
439
|
-
}
|
|
440
|
-
`;
|
|
135
|
+
}).attrs(applyDefaultTheme).withConfig({
|
|
136
|
+
displayName: "TextAreastyled__SuccessContainer",
|
|
137
|
+
componentId: "sc-1ymvc76-9"
|
|
138
|
+
})(["opacity:1;pointer-events:none;animation:", " 0.5s ease-in-out;transition:opacity 0.5s ease-in-out;position:absolute;margin-top:-35px;margin-left:5px;width:15px;height:15px;padding:5px;", " > svg{width:15px;}"], fadeInCheck, props => props.theme.themeProp('color', props.theme.getColor('gray-300'), props.theme.getColor('gray-500')));
|
|
441
139
|
const SuccessContainerLabel = styled.div.withConfig({
|
|
442
140
|
shouldForwardProp
|
|
443
|
-
}).attrs(applyDefaultTheme)
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
animation: ${props => props.$fadeIn ? fadeOutCheck : fadeInCheck} 0.5s ease-in-out;
|
|
448
|
-
transition: opacity 0.5s ease-in-out;
|
|
449
|
-
margin-right: 5px;
|
|
450
|
-
margin-top: -7px;
|
|
451
|
-
width: 15px;
|
|
452
|
-
height: 15px;
|
|
453
|
-
padding: 5px;
|
|
454
|
-
${props => props.theme.themeProp('color', props.theme.getColor('gray-300'), props.theme.getColor('gray-500'))}
|
|
455
|
-
|
|
456
|
-
> svg {
|
|
457
|
-
width: 13px;
|
|
458
|
-
}
|
|
459
|
-
`;
|
|
141
|
+
}).attrs(applyDefaultTheme).withConfig({
|
|
142
|
+
displayName: "TextAreastyled__SuccessContainerLabel",
|
|
143
|
+
componentId: "sc-1ymvc76-10"
|
|
144
|
+
})(["opacity:1;pointer-events:none;animation:", " 0.5s ease-in-out;transition:opacity 0.5s ease-in-out;margin-right:5px;margin-top:-7px;width:15px;height:15px;padding:5px;", " > svg{width:13px;}"], fadeInCheck, props => props.theme.themeProp('color', props.theme.getColor('gray-300'), props.theme.getColor('gray-500')));
|
|
460
145
|
|
|
461
146
|
export { Description, InputIconContainer, Label, SuccessContainer, SuccessContainerLabel, TextAreaContainter, TextInput, TextInputField, TextInputFieldIcon, TextInputFieldIconAlert, TextInputLabel };
|
|
462
147
|
//# sourceMappingURL=TextArea.styled.js.map
|