@ntbjs/react-components 2.0.14 → 3.0.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +34 -0
- 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 +54 -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 +84 -36
- package/styles/utils/colors-export.d.ts +54 -0
- package/types/components/data/Alert/Alert.d.ts +76 -0
- package/types/components/data/Alert/Alert.styled.d.ts +52 -0
- package/types/components/data/Alert/index.d.ts +1 -0
- package/types/components/data/Badge/Badge.d.ts +120 -0
- package/types/components/data/Badge/Badge.styled.d.ts +33 -0
- package/types/components/data/Badge/index.d.ts +1 -0
- package/types/components/data/Popover/Popover.d.ts +116 -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 +14 -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 +26 -0
- package/types/components/data/Tabs/index.d.ts +1 -0
- package/types/components/data/Tooltip/Tooltip.d.ts +88 -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 +27 -0
- package/types/components/data/VerificationStatusIcon/index.d.ts +1 -0
- package/types/components/data/_shared/FloatingArrow.styled.d.ts +29 -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 +16 -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 +60 -0
- package/types/components/inputs/Button/index.d.ts +1 -0
- package/types/components/inputs/Checkbox/Checkbox.d.ts +83 -0
- package/types/components/inputs/Checkbox/Checkbox.styled.d.ts +29 -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 +104 -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 +34 -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 +42 -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 +13 -0
- package/types/components/inputs/MultiLevelCheckbox/index.d.ts +2 -0
- package/types/components/inputs/MultiLevelCheckbox/types.d.ts +29 -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 +115 -0
- package/types/components/inputs/MultiSelect/MultiSelect.styled.d.ts +34 -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 +16 -0
- package/types/components/inputs/Switch/index.d.ts +1 -0
- package/types/components/inputs/TextArea/TextArea.d.ts +120 -0
- package/types/components/inputs/TextArea/TextArea.styled.d.ts +93 -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 +7 -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 +15 -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 +76 -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 +52 -0
- package/types/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.d.ts +2 -0
- package/types/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.styled.d.ts +49 -0
- package/types/components/widgets/AssetGallery/asset.types.d.ts +329 -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 +21 -0
- package/types/components/widgets/AssetPreview/AssetPreviewTopBar/index.d.ts +1 -0
- package/types/components/widgets/ContextMenu/ContextMenu.d.ts +118 -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 +18 -0
- package/types/components/widgets/ContextMenu/ContextMenuItem/index.d.ts +1 -0
- package/types/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.d.ts +23 -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 +28 -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 +30 -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 +14 -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 +41 -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 +29 -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 +14 -0
- package/types/hooks/useEventListner.d.ts +14 -0
- package/types/hooks/useFloatingPopover.d.ts +161 -0
- package/types/hooks/useIsomorphicLayoutEffect.d.ts +3 -0
- package/types/hooks/useOnClickOutside.d.ts +13 -0
- package/types/hooks/useTooltipAutoShow.d.ts +31 -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 +54 -0
- package/types/utils/dateTime.d.ts +8 -0
- package/types/utils/defaultTheme.d.ts +95 -0
- package/types/utils/getElementRef.d.ts +2 -0
- package/types/utils/parseTrigger.d.ts +22 -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
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import * as S from './CompactAutocompleteSelect.styled';
|
|
3
|
+
export type CompactAutocompleteSelectOwnProps = {
|
|
4
|
+
/**
|
|
5
|
+
* The label of the input field – leave `undefined` to hide the label
|
|
6
|
+
*/
|
|
7
|
+
label?: string;
|
|
8
|
+
/**
|
|
9
|
+
* The placeholder of the input. Text to be displayed on the input element when the component is enabled and not focused – e.g. "Search categories..."
|
|
10
|
+
*/
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
/**
|
|
13
|
+
* `Array` of `objects` that populate the select menu. This is only needed
|
|
14
|
+
* when asynchronous option fetching with the `loadOptions` prop is not used.
|
|
15
|
+
*
|
|
16
|
+
* **Note:**
|
|
17
|
+
* <br />This will be overridden by the `loadOptions` prop if both props are set.
|
|
18
|
+
*/
|
|
19
|
+
availableOptions?: any[];
|
|
20
|
+
/**
|
|
21
|
+
* `Array` of `objects` containing the selected options.
|
|
22
|
+
*/
|
|
23
|
+
selectedOption?: any;
|
|
24
|
+
/**
|
|
25
|
+
* Function with a `Promise` returning filtered options.
|
|
26
|
+
*
|
|
27
|
+
* See [Asynchronous fetching/filtering with pagination](#asynchronous-fetchingfiltering-with-pagination)
|
|
28
|
+
* for details.
|
|
29
|
+
*
|
|
30
|
+
* **Note:**
|
|
31
|
+
* <br />This will override the `availableOptions` prop if both props are set.
|
|
32
|
+
*/
|
|
33
|
+
loadOptions?: (...args: any[]) => any;
|
|
34
|
+
/**
|
|
35
|
+
* Function for custom "Loading..." message while waiting for the first page
|
|
36
|
+
* from `loadOptions` to resolve. Defaults to "Loading..." if no function is provided.
|
|
37
|
+
*/
|
|
38
|
+
loadingMessageFunc?: (...args: any[]) => any;
|
|
39
|
+
/**
|
|
40
|
+
* Callback function for formatting the message displayed in the dropdown when there
|
|
41
|
+
* are no matching options, and the user has permission to create new options.
|
|
42
|
+
* The callback function will be given the current input value as an argument.
|
|
43
|
+
*/
|
|
44
|
+
createNewOptionMessageFunc?: (...args: any[]) => any;
|
|
45
|
+
/**
|
|
46
|
+
* If the list of options is empty, or if the current input value doesn't match
|
|
47
|
+
* any of the available options and the user doesn't have permission to add options,
|
|
48
|
+
* this function will be called and passed the current input value as an argument.
|
|
49
|
+
*/
|
|
50
|
+
noOptionsMessageFunc?: (...args: any[]) => any;
|
|
51
|
+
/**
|
|
52
|
+
* Whether the value is read only
|
|
53
|
+
*/
|
|
54
|
+
readOnly?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Displays a grey background to show that value is editable
|
|
57
|
+
*/
|
|
58
|
+
edit?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Whether the component is hidden or visible.
|
|
61
|
+
*/
|
|
62
|
+
hidden?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* There is an error present – 'error be prioritized over warnings if both are set to 'true'.
|
|
65
|
+
*/
|
|
66
|
+
error?: boolean | string;
|
|
67
|
+
/**
|
|
68
|
+
* There is a warning present.
|
|
69
|
+
*/
|
|
70
|
+
warning?: boolean | string;
|
|
71
|
+
/**
|
|
72
|
+
* Callback function for sending updates to the backend whenever the selected values are updated.
|
|
73
|
+
* See [Update handling](#update-handling) for details.
|
|
74
|
+
*/
|
|
75
|
+
onUpdateCallback?: (...args: any[]) => any;
|
|
76
|
+
/**
|
|
77
|
+
* Whether the user have permission to create new options
|
|
78
|
+
*/
|
|
79
|
+
creatable?: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Whether the multi-select should be disabled.
|
|
82
|
+
* The user will not be able to trigger the on-click effect of the selected options.
|
|
83
|
+
*/
|
|
84
|
+
disabled?: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* Define the type based on error, warning, loading and success.
|
|
87
|
+
*/
|
|
88
|
+
type?: '' | 'error' | 'warning' | 'instructions-warning' | 'loading' | 'success';
|
|
89
|
+
/**
|
|
90
|
+
* Description ToolTip text.
|
|
91
|
+
*/
|
|
92
|
+
descriptionToolTip?: string;
|
|
93
|
+
/**
|
|
94
|
+
* Icon element – E.g: `icon={<Spinner />}`
|
|
95
|
+
*/
|
|
96
|
+
loadingIcon?: React.ReactElement<any>;
|
|
97
|
+
/**
|
|
98
|
+
* Icon element – E.g: `icon={<Check />}`
|
|
99
|
+
*/
|
|
100
|
+
successIcon?: React.ReactElement<any>;
|
|
101
|
+
};
|
|
102
|
+
export type CompactAutocompleteSelectProps = Omit<React.ComponentPropsWithoutRef<typeof S.AsyncCreatableAutocompleteSelect>, keyof CompactAutocompleteSelectOwnProps> & CompactAutocompleteSelectOwnProps;
|
|
103
|
+
/**
|
|
104
|
+
* Select input control with autocomplete, async and creatable support.
|
|
105
|
+
*
|
|
106
|
+
* This control allows users to search through a predefined set of options, asynchronously load additional options,
|
|
107
|
+
* and even create new options on-the-fly. It combines the benefits of autocomplete functionality,
|
|
108
|
+
* asynchronous data fetching, and creatable option support.
|
|
109
|
+
*
|
|
110
|
+
* The component uses [react-select](https://react-select.com/) for the main select functionality,
|
|
111
|
+
* with [react-select-async-paginate](https://www.npmjs.com/package/react-select-async-paginate) for pagination.
|
|
112
|
+
*
|
|
113
|
+
* <br /> ### Import
|
|
114
|
+
*
|
|
115
|
+
* ``` js
|
|
116
|
+
* import { CompactAutocompleteSelect } from '@ntbjs/react-components/inputs'
|
|
117
|
+
* // or
|
|
118
|
+
* import CompactAutocompleteSelect from '@ntbjs/react-components/inputs/CompactAutocompleteSelect'
|
|
119
|
+
* ```
|
|
120
|
+
*
|
|
121
|
+
* <br /> ## Option `object` format
|
|
122
|
+
* Options are represented by an `Array` of `objects` with the following format:
|
|
123
|
+
*
|
|
124
|
+
* ``` js
|
|
125
|
+
* {
|
|
126
|
+
* value: "Example",
|
|
127
|
+
* label: "Example"
|
|
128
|
+
* }
|
|
129
|
+
* ```
|
|
130
|
+
* The `label` is what will visible to the end-user. Whether `value` and `label`
|
|
131
|
+
* should be different will depend on your use-case, but they are not required to.
|
|
132
|
+
*
|
|
133
|
+
* <br /> ## Update handling
|
|
134
|
+
* Changes from the end-user to the selected/available options can be handled with a callback function
|
|
135
|
+
* passed through the `onUpdateCallback` prop, which is triggered any time the selected values change.
|
|
136
|
+
*
|
|
137
|
+
* The callback function will be passed two arguments:
|
|
138
|
+
* * `action: string`
|
|
139
|
+
* * `updatedOption: object`
|
|
140
|
+
*
|
|
141
|
+
* <br />#### `action`
|
|
142
|
+
* A `string` indicating what kind of update was made.
|
|
143
|
+
*
|
|
144
|
+
* The possible values of `action` are:
|
|
145
|
+
* * `create-option`: an option that didn't exist in the original list of available options were added
|
|
146
|
+
* * `select-option`: an option was selected
|
|
147
|
+
* * `deselect-option`: an option was de-selected by clicking the X in the dropdown menu
|
|
148
|
+
* * `remove-value`: an option was de-selected by clicking the X on the option label/box
|
|
149
|
+
* * `pop-value`: an option was de-selected with backspace
|
|
150
|
+
* * `clear`: all options were de-selected by clicking the clear indicator (not currently in use)
|
|
151
|
+
*
|
|
152
|
+
* <br />#### `updatedOption`
|
|
153
|
+
* Option `object`of the updated option:
|
|
154
|
+
*
|
|
155
|
+
* In addition to the default `value` and `label` keys, an `__isNew__` flag will be present if the option was
|
|
156
|
+
* not part of the original list of available options, i.e. created by the user in the current "session".
|
|
157
|
+
* This is the case regardless of whether the list is provided through `availableOptions` or
|
|
158
|
+
* asynchronously through `loadOptions`.
|
|
159
|
+
*
|
|
160
|
+
*
|
|
161
|
+
* <br />## Asynchronous fetching/filtering with pagination
|
|
162
|
+
* The list of available options can be fetched and filtered asynchronously with a `Promise`
|
|
163
|
+
* passed through the `loadOptions` prop.
|
|
164
|
+
*
|
|
165
|
+
* It will be passed two arguments:
|
|
166
|
+
*
|
|
167
|
+
* * `inputValue: string`: current input value/search
|
|
168
|
+
* * `prevOptions: Array`: previously loaded options for the current search
|
|
169
|
+
*
|
|
170
|
+
* The function is triggered and the first page is fetched when the dropdown menu opens.
|
|
171
|
+
* Whenever the user scrolls down to the bottom of the list, `loadOptions` will
|
|
172
|
+
* be triggered again to fetch the next page.
|
|
173
|
+
*
|
|
174
|
+
* The `Promise` should return an `object` with the following keys:
|
|
175
|
+
*
|
|
176
|
+
* ``` js
|
|
177
|
+
* {
|
|
178
|
+
* options: Array,
|
|
179
|
+
* hasMore: boolean
|
|
180
|
+
* }
|
|
181
|
+
* ```
|
|
182
|
+
*
|
|
183
|
+
* `options` should contain the current page of options. It will be concatenated to the previous
|
|
184
|
+
* set of options automatically. The `hasMore` flag indicates whether there is another page to be fetched.
|
|
185
|
+
*
|
|
186
|
+
* **Example:**
|
|
187
|
+
*
|
|
188
|
+
* ``` js
|
|
189
|
+
*
|
|
190
|
+
* const availableOptions = [
|
|
191
|
+
* { value: "Example 1", label: "Example 1" },
|
|
192
|
+
* ...
|
|
193
|
+
* { value: "Example N", label: "Example N" }
|
|
194
|
+
* ];
|
|
195
|
+
*
|
|
196
|
+
* const filterOptions = inputValue => {
|
|
197
|
+
* return availableOptions.filter(option => {
|
|
198
|
+
* return option.label.toLowerCase().includes(inputValue.toLowerCase());
|
|
199
|
+
* });
|
|
200
|
+
* };
|
|
201
|
+
*
|
|
202
|
+
* const loadOptionsFunc = (inputValue, prevOptions) => {
|
|
203
|
+
* const currentLength = prevOptions.length;
|
|
204
|
+
* const pageLength = 10;
|
|
205
|
+
*
|
|
206
|
+
* let filteredOptions;
|
|
207
|
+
*
|
|
208
|
+
* if (inputValue) {
|
|
209
|
+
* filteredOptions = filterOptions(inputValue);
|
|
210
|
+
* } else {
|
|
211
|
+
* filteredOptions = availableOptions;
|
|
212
|
+
* }
|
|
213
|
+
*
|
|
214
|
+
* const hasMore = filteredOptions.length > currentLength + pageLength;
|
|
215
|
+
* const slicedOptions = filteredOptions.slice(currentLength, currentLength + pageLength);
|
|
216
|
+
*
|
|
217
|
+
* return {
|
|
218
|
+
* options: slicedOptions,
|
|
219
|
+
* hasMore
|
|
220
|
+
* };
|
|
221
|
+
* };
|
|
222
|
+
*
|
|
223
|
+
* const loadOptions = (inputValue, prevOptions) => {
|
|
224
|
+
* return new Promise(resolve => {
|
|
225
|
+
* resolve(loadOptionsFunc(inputValue, prevOptions));
|
|
226
|
+
* });
|
|
227
|
+
* };
|
|
228
|
+
* ```
|
|
229
|
+
*
|
|
230
|
+
* While waiting for the `Promise` to resolve, the component will be in a loading state.
|
|
231
|
+
* The loading state is showcased in the "Primary With Fetching Timeout" Story.
|
|
232
|
+
*
|
|
233
|
+
* <br />#### Without asynchronous fetching/filtering
|
|
234
|
+
* If you wish to not use asynchronous fetching/filtering, leave the `loadOptions` prop undefined
|
|
235
|
+
* and pass the `Array` of all available options to the `availableOptions` prop instead.
|
|
236
|
+
* The component will use the built-in filtering on `label` from `react-select`, and the options
|
|
237
|
+
* will not be paginated.
|
|
238
|
+
*
|
|
239
|
+
* <br />
|
|
240
|
+
*/
|
|
241
|
+
declare const CompactAutocompleteSelect: React.ForwardRefExoticComponent<CompactAutocompleteSelectProps & React.RefAttributes<any>>;
|
|
242
|
+
export default CompactAutocompleteSelect;
|
package/types/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.styled.d.ts
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import Select from 'react-select';
|
|
3
|
+
import { AsyncPaginate } from 'react-select-async-paginate';
|
|
4
|
+
import CreatableSelect from 'react-select/creatable';
|
|
5
|
+
import type { PartialNtbTheme } from '../../../utils/defaultTheme';
|
|
6
|
+
/**
|
|
7
|
+
* `CompactAutocompleteSelect.tsx`'s `type` prop, verbatim from its
|
|
8
|
+
* `PropTypes.oneOf(['', 'error', 'warning', 'instructions-warning', 'loading', 'success'])`,
|
|
9
|
+
* carried WITHOUT a `$` to `Control`, `ValueContainer` and `Placeholder` — see
|
|
10
|
+
* `ControlStyleProps` for why that is not a DOM leak here.
|
|
11
|
+
*
|
|
12
|
+
* Closed on purpose: the templates below compare against this value 14 times, so a
|
|
13
|
+
* mistyped state name is TS2367 rather than a branch that silently never fires. `''` is a
|
|
14
|
+
* member because the component defaults `type = ''`.
|
|
15
|
+
*/
|
|
16
|
+
type CompactAutocompleteSelectType = '' | 'error' | 'warning' | 'instructions-warning' | 'loading' | 'success';
|
|
17
|
+
/**
|
|
18
|
+
* The `theme` prop of every `styled(<react-select component>)` in this file — 14 of them.
|
|
19
|
+
*
|
|
20
|
+
* `theme` is the one prop name that both styled-components and react-select claim.
|
|
21
|
+
* react-select types it `ThemeConfig = Theme | ((t: Theme) => Theme)` and its `Theme`
|
|
22
|
+
* REQUIRES `borderRadius`, which `NtbTheme` does not have, so `.attrs(applyDefaultTheme)`
|
|
23
|
+
* — return type `{ theme: NtbTheme }` — was unassignable at all 14 sites, each reporting
|
|
24
|
+
* the same last line:
|
|
25
|
+
*
|
|
26
|
+
* TS2345 … Types of property 'theme' are incompatible.
|
|
27
|
+
* Property 'borderRadius' is missing in type 'NtbTheme' but required in type 'Theme'.
|
|
28
|
+
*
|
|
29
|
+
* Declaring `theme` in the `.attrs<P>()` generic fixes it because the generic is applied
|
|
30
|
+
* as `Substitute<OuterProps, P> = FastOmit<OuterProps, keyof P> & P`, i.e. it REPLACES
|
|
31
|
+
* react-select's declaration rather than intersecting with it. That is the truth about
|
|
32
|
+
* this boundary: react-select's `getTheme()` is `{ ...its defaultTheme, ...props.theme }`,
|
|
33
|
+
* so our `colors`/`spacing` win — which is why `ThemeColors`/`ThemeSpacing` in
|
|
34
|
+
* `utils/defaultTheme.ts` carry react-select's member names — and `borderRadius` falls
|
|
35
|
+
* through to react-select's own `4`. `NtbTheme` is deliberately a PARTIAL override of
|
|
36
|
+
* react-select's theme. Do NOT add `borderRadius` to `NtbTheme` to "fix" this: that hands
|
|
37
|
+
* react-select a border radius it does not get today, which is a render change.
|
|
38
|
+
*
|
|
39
|
+
* `MultiSelect.styled.ts` carries the same interface for the same reason.
|
|
40
|
+
*/
|
|
41
|
+
interface SelectThemeProp {
|
|
42
|
+
/** A partial override merged over `defaultTheme` by `applyDefaultTheme`. */
|
|
43
|
+
theme?: PartialNtbTheme;
|
|
44
|
+
}
|
|
45
|
+
declare const AsyncCreatableSelectPaginate: import("react-select-async-paginate").WithAsyncPaginateType;
|
|
46
|
+
type SelectWrapper<C extends React.ComponentType<any>> = React.ComponentType<Omit<React.ComponentProps<C>, keyof SelectWrapperStyleProps> & SelectWrapperStyleProps>;
|
|
47
|
+
type AsyncCreatablePaginateWrapper = SelectWrapper<typeof AsyncCreatableSelectPaginate>;
|
|
48
|
+
export interface SelectWrapperStyleProps extends SelectThemeProp {
|
|
49
|
+
/** `!isEmpty(label)` — narrows the control to 66.66% so the label gets the other third. */
|
|
50
|
+
$hasLabel?: boolean;
|
|
51
|
+
/** `disabled` — unused; fix (repoint to `isDisabled`) changes rendered CSS. */
|
|
52
|
+
disabled?: boolean;
|
|
53
|
+
}
|
|
54
|
+
interface DisabledStyleProps {
|
|
55
|
+
/** `disabled` — dims and blocks the pointer. Leaks to DOM. */
|
|
56
|
+
disabled?: boolean;
|
|
57
|
+
}
|
|
58
|
+
export declare const CompactAutocompleteSelect: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>, DisabledStyleProps>, never>> & string;
|
|
59
|
+
export declare const Label: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, React.DetailedHTMLProps<React.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>>, DisabledStyleProps>, never>> & string;
|
|
60
|
+
export declare const InputContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>, never>, never>> & string;
|
|
61
|
+
export declare const SuccessContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>, never>, never>> & string;
|
|
62
|
+
export declare const AsyncCreatableAutocompleteSelect: AsyncCreatablePaginateWrapper;
|
|
63
|
+
export declare const AsyncAutocompleteSelect: SelectWrapper<typeof AsyncPaginate>;
|
|
64
|
+
export declare const AutocompletSelect: SelectWrapper<typeof Select>;
|
|
65
|
+
export declare const AutocompletCreatableSelect: SelectWrapper<typeof CreatableSelect>;
|
|
66
|
+
interface ControlStyleProps extends SelectThemeProp {
|
|
67
|
+
/** `edit` (`PropTypes.bool`) — grey "this is editable" background. */
|
|
68
|
+
edit?: boolean;
|
|
69
|
+
/** `type` — see `CompactAutocompleteSelectType`. Branched on 11 times below. */
|
|
70
|
+
type?: CompactAutocompleteSelectType;
|
|
71
|
+
}
|
|
72
|
+
export declare const Control: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("react-select").ControlProps<unknown, boolean, import("react-select").GroupBase<unknown>>, import("react-select").ControlProps<unknown, boolean, import("react-select").GroupBase<unknown>>>, ControlStyleProps>, never>> & string & Omit<(<Option_1, IsMulti_1 extends boolean, Group_1 extends import("react-select").GroupBase<Option_1>>(props: import("react-select").ControlProps<Option_1, IsMulti_1, Group_1>) => import("@emotion/react").jsx.JSX.Element), keyof React.Component<any, {}, any>>;
|
|
73
|
+
export declare const Option: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("react-select").OptionProps<unknown, boolean, import("react-select").GroupBase<unknown>>, import("react-select").OptionProps<unknown, boolean, import("react-select").GroupBase<unknown>>>, SelectThemeProp>, never>> & string & Omit<(<Option_16, IsMulti_16 extends boolean, Group_16 extends import("react-select").GroupBase<Option_16>>(props: import("react-select").OptionProps<Option_16, IsMulti_16, Group_16>) => import("@emotion/react").jsx.JSX.Element), keyof React.Component<any, {}, any>>;
|
|
74
|
+
/**
|
|
75
|
+
* `CompactAutocompleteSelect.tsx` passes `<S.Placeholder className="select-placeholder"
|
|
76
|
+
* type={type} …>` (tsx line 225). Same non-`$`-but-not-leaking situation as `Control`.
|
|
77
|
+
*/
|
|
78
|
+
interface PlaceholderStyleProps extends SelectThemeProp {
|
|
79
|
+
/** `type` — dims the placeholder for the `error` and `warning` states only. */
|
|
80
|
+
type?: CompactAutocompleteSelectType;
|
|
81
|
+
}
|
|
82
|
+
export declare const Placeholder: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("react-select").PlaceholderProps<unknown, boolean, import("react-select").GroupBase<unknown>>, import("react-select").PlaceholderProps<unknown, boolean, import("react-select").GroupBase<unknown>>>, PlaceholderStyleProps>, never>> & string & Omit<(<Option_17, IsMulti_17 extends boolean, Group_17 extends import("react-select").GroupBase<Option_17>>(props: import("react-select").PlaceholderProps<Option_17, IsMulti_17, Group_17>) => import("@emotion/react").jsx.JSX.Element), keyof React.Component<any, {}, any>>;
|
|
83
|
+
export declare const SingleValue: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("react-select").SingleValueProps<unknown, boolean, import("react-select").GroupBase<unknown>>, import("react-select").SingleValueProps<unknown, boolean, import("react-select").GroupBase<unknown>>>, SelectThemeProp>, never>> & string & Omit<(<Option_19, IsMulti_19 extends boolean, Group_19 extends import("react-select").GroupBase<Option_19>>(props: import("react-select").SingleValueProps<Option_19, IsMulti_19, Group_19>) => import("@emotion/react").jsx.JSX.Element), keyof React.Component<any, {}, any>>;
|
|
84
|
+
export declare const Input: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("react-select").InputProps<unknown, boolean, import("react-select").GroupBase<unknown>>, import("react-select").InputProps<unknown, boolean, import("react-select").GroupBase<unknown>>>, SelectThemeProp>, never>> & string & Omit<(<Option_7, IsMulti_7 extends boolean, Group_7 extends import("react-select").GroupBase<Option_7>>(props: import("react-select").InputProps<Option_7, IsMulti_7, Group_7>) => import("@emotion/react").jsx.JSX.Element), keyof React.Component<any, {}, any>>;
|
|
85
|
+
export declare const Menu: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("react-select").MenuProps<unknown, boolean, import("react-select").GroupBase<unknown>>, import("react-select").MenuProps<unknown, boolean, import("react-select").GroupBase<unknown>>>, SelectThemeProp>, never>> & string & Omit<(<Option_9, IsMulti_9 extends boolean, Group_9 extends import("react-select").GroupBase<Option_9>>(props: import("react-select").MenuProps<Option_9, IsMulti_9, Group_9>) => import("@emotion/react").jsx.JSX.Element), keyof React.Component<any, {}, any>>;
|
|
86
|
+
export declare const ValueContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("react-select").ValueContainerProps<unknown, boolean, import("react-select").GroupBase<unknown>>, import("react-select").ValueContainerProps<unknown, boolean, import("react-select").GroupBase<unknown>>>, SelectThemeProp>, never>> & string & Omit<(<Option_20, IsMulti_20 extends boolean, Group_20 extends import("react-select").GroupBase<Option_20>>(props: import("react-select").ValueContainerProps<Option_20, IsMulti_20, Group_20>) => import("@emotion/react").jsx.JSX.Element), keyof React.Component<any, {}, any>>;
|
|
87
|
+
export declare const ClearIndicator: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("react-select").ClearIndicatorProps<unknown, boolean, import("react-select").GroupBase<unknown>>, import("react-select").ClearIndicatorProps<unknown, boolean, import("react-select").GroupBase<unknown>>>, SelectThemeProp>, never>> & string & Omit<(<Option, IsMulti extends boolean, Group extends import("react-select").GroupBase<Option>>(props: import("react-select").ClearIndicatorProps<Option, IsMulti, Group>) => import("@emotion/react").jsx.JSX.Element), keyof React.Component<any, {}, any>>;
|
|
88
|
+
export declare const DropdownIndicator: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("react-select").DropdownIndicatorProps<unknown, boolean, import("react-select").GroupBase<unknown>>, import("react-select").DropdownIndicatorProps<unknown, boolean, import("react-select").GroupBase<unknown>>>, SelectThemeProp>, never>> & string & Omit<(<Option_2, IsMulti_2 extends boolean, Group_2 extends import("react-select").GroupBase<Option_2>>(props: import("react-select").DropdownIndicatorProps<Option_2, IsMulti_2, Group_2>) => import("@emotion/react").jsx.JSX.Element), keyof React.Component<any, {}, any>>;
|
|
89
|
+
export declare const DropdownIndicatorIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<React.SVGProps<SVGSVGElement> & {
|
|
90
|
+
title?: string;
|
|
91
|
+
}, React.SVGProps<SVGSVGElement> & {
|
|
92
|
+
title?: string;
|
|
93
|
+
}>, never>, never>> & string & Omit<React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
|
|
94
|
+
title?: string;
|
|
95
|
+
}>, keyof React.Component<any, {}, any>>;
|
|
96
|
+
export declare const ClearIndicatorIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<React.SVGProps<SVGSVGElement> & {
|
|
97
|
+
title?: string;
|
|
98
|
+
}, React.SVGProps<SVGSVGElement> & {
|
|
99
|
+
title?: string;
|
|
100
|
+
}>, never>, never>> & string & Omit<React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
|
|
101
|
+
title?: string;
|
|
102
|
+
}>, keyof React.Component<any, {}, any>>;
|
|
103
|
+
export declare const IndicatorSeparator: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("react-select").IndicatorSeparatorProps<unknown, boolean, import("react-select").GroupBase<unknown>>, import("react-select").IndicatorSeparatorProps<unknown, boolean, import("react-select").GroupBase<unknown>>>, SelectThemeProp>, never>> & string & Omit<(<Option_6, IsMulti_6 extends boolean, Group_6 extends import("react-select").GroupBase<Option_6>>(props: import("react-select").IndicatorSeparatorProps<Option_6, IsMulti_6, Group_6>) => import("@emotion/react").jsx.JSX.Element), keyof React.Component<any, {}, any>>;
|
|
104
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './CompactAutocompleteSelect';
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type CompactStarRatingOwnProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Whether the star rating is read-only
|
|
5
|
+
*/
|
|
6
|
+
readOnly?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Whether the star rating is disabled
|
|
9
|
+
*/
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Displays a grey background to show that the star rating is editable
|
|
13
|
+
*/
|
|
14
|
+
edit?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Rating value (0-5)
|
|
17
|
+
*/
|
|
18
|
+
value?: number;
|
|
19
|
+
/**
|
|
20
|
+
* Define the type based on error, warning, loading and success.
|
|
21
|
+
*/
|
|
22
|
+
type?: '' | 'error' | 'warning' | 'loading' | 'success';
|
|
23
|
+
/**
|
|
24
|
+
* Default rating value
|
|
25
|
+
*/
|
|
26
|
+
defaultValue?: number;
|
|
27
|
+
/**
|
|
28
|
+
* Compact star rating label
|
|
29
|
+
*/
|
|
30
|
+
label?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Name of the text area (used when sending form data)
|
|
33
|
+
*/
|
|
34
|
+
name?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Icon element – E.g: `icon={<StarIcon />}`
|
|
37
|
+
*/
|
|
38
|
+
icon?: React.ReactElement<any>;
|
|
39
|
+
/**
|
|
40
|
+
* Filled icon element – E.g: `icon={<StarIcon />}`
|
|
41
|
+
*/
|
|
42
|
+
iconFill?: React.ReactElement<any>;
|
|
43
|
+
/**
|
|
44
|
+
* Max number of stars: 5
|
|
45
|
+
*/
|
|
46
|
+
max?: number;
|
|
47
|
+
/**
|
|
48
|
+
* View Compact Star Rating component when no values have been assigned
|
|
49
|
+
*/
|
|
50
|
+
viewEmpty?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Optional callback function for `onChange`
|
|
53
|
+
*/
|
|
54
|
+
onChange?: (...args: any[]) => any;
|
|
55
|
+
/**
|
|
56
|
+
* Optional callback function for `onBlur`
|
|
57
|
+
*/
|
|
58
|
+
onBlur?: (...args: any[]) => any;
|
|
59
|
+
/**
|
|
60
|
+
* Whether the component is hidden or visible.
|
|
61
|
+
*/
|
|
62
|
+
hidden?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Icon element – E.g: `icon={<Spinner />}`
|
|
65
|
+
*/
|
|
66
|
+
loadingIcon?: React.ReactElement<any>;
|
|
67
|
+
/**
|
|
68
|
+
* Icon element – E.g: `icon={<Check />}`
|
|
69
|
+
*/
|
|
70
|
+
successIcon?: React.ReactElement<any>;
|
|
71
|
+
/**
|
|
72
|
+
* Description ToolTip text.
|
|
73
|
+
*/
|
|
74
|
+
descriptionToolTip?: string;
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* A compact star rating.
|
|
78
|
+
*
|
|
79
|
+
* To remove a rating (i.e. show 0 stars), click the first star to give a 1-star rating, and then click the first star again.
|
|
80
|
+
*
|
|
81
|
+
* ### Import
|
|
82
|
+
*
|
|
83
|
+
* ``` js
|
|
84
|
+
* import { CompactStarRating } from '@ntbjs/react-components/inputs'
|
|
85
|
+
* // or
|
|
86
|
+
* import CompactStarRating from '@ntbjs/react-components/inputs/CompactStarRating'
|
|
87
|
+
* ```
|
|
88
|
+
* ### Values
|
|
89
|
+
* Pass default value as a prop (`defaultValue`) into the component: 0 or state value.
|
|
90
|
+
* ```
|
|
91
|
+
*/
|
|
92
|
+
declare const CompactStarRating: React.ForwardRefExoticComponent<Omit<Omit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>, {
|
|
93
|
+
readOnly?: boolean;
|
|
94
|
+
disabled?: boolean;
|
|
95
|
+
}>, never>, "ref">, keyof CompactStarRatingOwnProps> & CompactStarRatingOwnProps & React.RefAttributes<any>>;
|
|
96
|
+
export default CompactStarRating;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
type CompactStarRatingType = '' | 'error' | 'warning' | 'loading' | 'success';
|
|
2
|
+
export declare const CompactStarRating: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>, {
|
|
3
|
+
/** `readOnly` — `PropTypes.bool`. Leaks to the DOM; see above. */
|
|
4
|
+
readOnly?: boolean;
|
|
5
|
+
/** `disabled` — `PropTypes.bool`. Leaks to the DOM; see above. */
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
}>, never>> & string;
|
|
8
|
+
export declare const labelWidth: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>, {
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
}>, never>> & string;
|
|
11
|
+
export declare const SuccessContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>, never>, never>> & string;
|
|
12
|
+
interface StarsWidthStyleProps {
|
|
13
|
+
/** `edit` — `PropTypes.bool`. Shows the editable-affordance background. */
|
|
14
|
+
$edit?: boolean;
|
|
15
|
+
/** `type` — see `CompactStarRatingType`. Leaks to DOM; defect not fixed. */
|
|
16
|
+
type?: CompactStarRatingType;
|
|
17
|
+
/** `readOnly` — `PropTypes.bool`. Leaks to the DOM the same way. */
|
|
18
|
+
readOnly?: boolean;
|
|
19
|
+
/** `success` — unused prop, declared for weak-type assignment compatibility. */
|
|
20
|
+
success?: boolean;
|
|
21
|
+
}
|
|
22
|
+
export declare const starsWidth: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>, StarsWidthStyleProps>, never>> & string;
|
|
23
|
+
interface StarStyleProps {
|
|
24
|
+
/** `hover && key + 1 <= tempRating` — derived in the component, so `boolean`. */
|
|
25
|
+
$hover?: boolean;
|
|
26
|
+
/** `readOnly` — `PropTypes.bool`. Leaks to DOM; defect not fixed. */
|
|
27
|
+
readOnly?: boolean;
|
|
28
|
+
}
|
|
29
|
+
export declare const Star: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>>, StarStyleProps>, never>> & string;
|
|
30
|
+
export declare const StarFill: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>>, StarStyleProps>, never>> & string;
|
|
31
|
+
export declare const CheckIconContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>, {
|
|
32
|
+
type?: CompactStarRatingType;
|
|
33
|
+
}>, never>> & string;
|
|
34
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './CompactStarRating';
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type CompactTextInputOwnProps = {
|
|
3
|
+
/**
|
|
4
|
+
* The label of the input field - leave `undefined` to hide the label
|
|
5
|
+
*/
|
|
6
|
+
label?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Displays a light green background to show that an action was successful.
|
|
9
|
+
*/
|
|
10
|
+
success?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* The input type - eg. `text`, `number`
|
|
13
|
+
*/
|
|
14
|
+
inputType?: string;
|
|
15
|
+
/**
|
|
16
|
+
* The input name
|
|
17
|
+
*/
|
|
18
|
+
name?: string;
|
|
19
|
+
/**
|
|
20
|
+
* The default value of the input - creates an uncontrolled input
|
|
21
|
+
*/
|
|
22
|
+
defaultValue?: string;
|
|
23
|
+
/**
|
|
24
|
+
* The value of the input - creates a controlled input
|
|
25
|
+
*/
|
|
26
|
+
value?: string;
|
|
27
|
+
/**
|
|
28
|
+
* The placeholder of the input
|
|
29
|
+
*/
|
|
30
|
+
placeholder?: string;
|
|
31
|
+
/**
|
|
32
|
+
* A URL associated with the input value. Creates a clickable link that accepts full or relative URL
|
|
33
|
+
*/
|
|
34
|
+
link?: string;
|
|
35
|
+
/**
|
|
36
|
+
* The target for the link. Only applies when the field is in read-only mode
|
|
37
|
+
*/
|
|
38
|
+
linkTarget?: '_self' | '_blank' | '_parent' | '_top';
|
|
39
|
+
/**
|
|
40
|
+
* Whether the link has a onClick event.
|
|
41
|
+
*/
|
|
42
|
+
linkHandler?: (...args: any[]) => any;
|
|
43
|
+
/**
|
|
44
|
+
* Whether the handler should preceed the link behavior.
|
|
45
|
+
*/
|
|
46
|
+
activeLinkHandler?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Whether to auto select the entire value when the input is focused – does also work when the field is in read-only mode
|
|
49
|
+
*/
|
|
50
|
+
autoSelect?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Whether the value is read only
|
|
53
|
+
*/
|
|
54
|
+
readOnly?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Whether the value is disabled
|
|
57
|
+
*/
|
|
58
|
+
disabled?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Displays a grey background to show that value is editable
|
|
61
|
+
*/
|
|
62
|
+
edit?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* There is a warning present.
|
|
65
|
+
*/
|
|
66
|
+
warning?: boolean | string;
|
|
67
|
+
/**
|
|
68
|
+
* Whether to bold the input content - Slightly increases the font size and font weight of the input value
|
|
69
|
+
*/
|
|
70
|
+
bold?: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* Whether the component is hidden or visible.
|
|
73
|
+
*/
|
|
74
|
+
hidden?: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* Callback for `onChange`
|
|
77
|
+
*/
|
|
78
|
+
onChange?: (...args: any[]) => any;
|
|
79
|
+
/**
|
|
80
|
+
* Callback for `onFocus`
|
|
81
|
+
*/
|
|
82
|
+
onFocus?: (...args: any[]) => any;
|
|
83
|
+
/**
|
|
84
|
+
* Callback for `onBlur`
|
|
85
|
+
*/
|
|
86
|
+
onBlur?: (...args: any[]) => any;
|
|
87
|
+
/**
|
|
88
|
+
* Define the type based on error, warning, loading and success.
|
|
89
|
+
*/
|
|
90
|
+
type?: '' | 'error' | 'warning' | 'loading' | 'success';
|
|
91
|
+
/**
|
|
92
|
+
* Description ToolTip text.
|
|
93
|
+
*/
|
|
94
|
+
descriptionToolTip?: string;
|
|
95
|
+
/**
|
|
96
|
+
* Icon element – E.g: `icon={<Spinner />}`
|
|
97
|
+
*/
|
|
98
|
+
loadingIcon?: React.ReactElement<any>;
|
|
99
|
+
/**
|
|
100
|
+
* Icon element – E.g: `icon={<Check />}`
|
|
101
|
+
*/
|
|
102
|
+
successIcon?: React.ReactElement<any>;
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* Compact text inputs let users enter and edit text in the UI in a compact way. They typically appear in forms or displays of metadata.
|
|
106
|
+
*
|
|
107
|
+
* ### Import
|
|
108
|
+
*
|
|
109
|
+
* ``` js
|
|
110
|
+
* import { CompactTextInput } from '@ntbjs/react-components/inputs'
|
|
111
|
+
* // or
|
|
112
|
+
* import CompactTextInput from '@ntbjs/react-components/inputs/CompactTextInput'
|
|
113
|
+
* ```
|
|
114
|
+
*/
|
|
115
|
+
declare const CompactTextInput: React.ForwardRefExoticComponent<Omit<Omit<import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>, never>, never>, "ref">, keyof CompactTextInputOwnProps> & CompactTextInputOwnProps & React.RefAttributes<any>>;
|
|
116
|
+
export default CompactTextInput;
|