@hazelcast/ui 3.0.1-canary.0 → 3.0.1-canary.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/lib/components/Alert.js +50 -116
- package/lib/components/Alert.js.map +1 -1
- package/lib/components/Alert.module.scss +141 -0
- package/lib/components/AppHeader/AppHeader.js +17 -39
- package/lib/components/AppHeader/AppHeader.js.map +1 -1
- package/lib/components/AppHeader/AppHeader.module.scss +29 -0
- package/lib/components/AppHeader/AppHeaderLogo/AppHeaderLogo.js +7 -24
- package/lib/components/AppHeader/AppHeaderLogo/AppHeaderLogo.js.map +1 -1
- package/lib/components/AppHeader/AppHeaderLogo/AppHeaderLogo.module.scss +29 -0
- package/lib/components/AppHeader/AppHeaderLogo/index.js +2 -8
- package/lib/components/AppHeader/AppHeaderLogo/index.js.map +1 -1
- package/lib/components/AppHeader/AppHeaderMenu/AppHeaderMenu.js +14 -46
- package/lib/components/AppHeader/AppHeaderMenu/AppHeaderMenu.js.map +1 -1
- package/lib/components/AppHeader/AppHeaderMenu/AppHeaderMenu.module.scss +20 -0
- package/lib/components/AppHeader/AppHeaderMenu/index.js +2 -8
- package/lib/components/AppHeader/AppHeaderMenu/index.js.map +1 -1
- package/lib/components/AppHeader/EnvironmentBadge/EnvironmentBadge.js +9 -19
- package/lib/components/AppHeader/EnvironmentBadge/EnvironmentBadge.js.map +1 -1
- package/lib/components/AppHeader/EnvironmentBadge/EnvironmentBadge.module.scss +13 -0
- package/lib/components/AppHeader/EnvironmentBadge/index.js +2 -8
- package/lib/components/AppHeader/EnvironmentBadge/index.js.map +1 -1
- package/lib/components/AppHeader/SelectCluster/SelectCluster.js +32 -72
- package/lib/components/AppHeader/SelectCluster/SelectCluster.js.map +1 -1
- package/lib/components/AppHeader/SelectCluster/SelectCluster.module.scss +101 -0
- package/lib/components/AppHeader/SelectCluster/index.js +2 -8
- package/lib/components/AppHeader/SelectCluster/index.js.map +1 -1
- package/lib/components/AppHeader/index.js +2 -8
- package/lib/components/AppHeader/index.js.map +1 -1
- package/lib/components/AppSidebar/AppSidebar.js +30 -56
- package/lib/components/AppSidebar/AppSidebar.js.map +1 -1
- package/lib/components/AppSidebar/AppSidebar.module.scss +66 -0
- package/lib/components/AppSidebar/AppSidebarFavoriteButton/AppSidebarFavoriteButton.js +21 -37
- package/lib/components/AppSidebar/AppSidebarFavoriteButton/AppSidebarFavoriteButton.js.map +1 -1
- package/lib/components/AppSidebar/AppSidebarFavoriteButton/AppSidebarFavoriteButton.module.scss +16 -0
- package/lib/components/AppSidebar/AppSidebarFavoriteButton/index.js +2 -8
- package/lib/components/AppSidebar/AppSidebarFavoriteButton/index.js.map +1 -1
- package/lib/components/AppSidebar/AppSidebarFavorites/AppSidebarFavorites.js +10 -31
- package/lib/components/AppSidebar/AppSidebarFavorites/AppSidebarFavorites.js.map +1 -1
- package/lib/components/AppSidebar/AppSidebarFavorites/AppSidebarFavorites.module.scss +13 -0
- package/lib/components/AppSidebar/AppSidebarFavorites/index.js +2 -8
- package/lib/components/AppSidebar/AppSidebarFavorites/index.js.map +1 -1
- package/lib/components/AppSidebar/AppSidebarItem/AppSidebarItem.js +22 -77
- package/lib/components/AppSidebar/AppSidebarItem/AppSidebarItem.js.map +1 -1
- package/lib/components/AppSidebar/AppSidebarItem/AppSidebarItem.module.scss +92 -0
- package/lib/components/AppSidebar/AppSidebarItem/index.js +2 -8
- package/lib/components/AppSidebar/AppSidebarItem/index.js.map +1 -1
- package/lib/components/AppSidebar/AppSidebarMenuItemCounter/AppSidebarMenuItemCounter.js +6 -17
- package/lib/components/AppSidebar/AppSidebarMenuItemCounter/AppSidebarMenuItemCounter.js.map +1 -1
- package/lib/components/AppSidebar/AppSidebarMenuItemCounter/AppSidebarMenuItemCounter.module.scss +24 -0
- package/lib/components/AppSidebar/AppSidebarMenuItemCounter/index.js +2 -8
- package/lib/components/AppSidebar/AppSidebarMenuItemCounter/index.js.map +1 -1
- package/lib/components/AppSidebar/AppSidebarSection/AppSidebarSection.js +14 -39
- package/lib/components/AppSidebar/AppSidebarSection/AppSidebarSection.js.map +1 -1
- package/lib/components/AppSidebar/AppSidebarSection/AppSidebarSection.module.scss +58 -0
- package/lib/components/AppSidebar/AppSidebarSection/AppSidebarSectionExpandable.js +53 -94
- package/lib/components/AppSidebar/AppSidebarSection/AppSidebarSectionExpandable.js.map +1 -1
- package/lib/components/AppSidebar/AppSidebarSection/appSidebarSectionContext.js +3 -8
- package/lib/components/AppSidebar/AppSidebarSection/appSidebarSectionContext.js.map +1 -1
- package/lib/components/AppSidebar/AppSidebarSection/index.js +2 -8
- package/lib/components/AppSidebar/AppSidebarSection/index.js.map +1 -1
- package/lib/components/AppSidebar/appSidebarContext.js +9 -14
- package/lib/components/AppSidebar/appSidebarContext.js.map +1 -1
- package/lib/components/AppSidebar/index.js +6 -16
- package/lib/components/AppSidebar/index.js.map +1 -1
- package/lib/components/AutocompleteField.js +154 -229
- package/lib/components/AutocompleteField.js.map +1 -1
- package/lib/components/AutocompleteField.module.scss +164 -0
- package/lib/components/AutocompleteFieldFormik.js +18 -41
- package/lib/components/AutocompleteFieldFormik.js.map +1 -1
- package/lib/components/Badge.js +42 -66
- package/lib/components/Badge.js.map +1 -1
- package/lib/components/Badge.module.scss +55 -0
- package/lib/components/Button.js +42 -115
- package/lib/components/Button.js.map +1 -1
- package/lib/components/Button.module.scss +329 -0
- package/lib/components/Calendar/Calendar.js +23 -77
- package/lib/components/Calendar/Calendar.js.map +1 -1
- package/lib/components/Calendar/Calendar.module.scss +185 -0
- package/lib/components/Calendar/CalendarRange.js +12 -60
- package/lib/components/Calendar/CalendarRange.js.map +1 -1
- package/lib/components/Calendar/CalendarRange.module.scss +21 -0
- package/lib/components/Calendar/components/CalendarHeader.js +12 -35
- package/lib/components/Calendar/components/CalendarHeader.js.map +1 -1
- package/lib/components/Calendar/components/CalendarInput.js +9 -39
- package/lib/components/Calendar/components/CalendarInput.js.map +1 -1
- package/lib/components/Calendar/components/CalendarTime.js +66 -104
- package/lib/components/Calendar/components/CalendarTime.js.map +1 -1
- package/lib/components/Calendar/components/CalendarTime.module.scss +72 -0
- package/lib/components/Calendar/helpers/consts.js +100 -8
- package/lib/components/Calendar/helpers/consts.js.map +1 -1
- package/lib/components/Card.js +14 -60
- package/lib/components/Card.js.map +1 -1
- package/lib/components/Card.module.scss +92 -0
- package/lib/components/Carousel.js +27 -60
- package/lib/components/Carousel.js.map +1 -1
- package/lib/components/Carousel.module.scss +43 -0
- package/lib/components/CenteredLoader.js +6 -18
- package/lib/components/CenteredLoader.js.map +1 -1
- package/lib/components/CenteredLoader.module.scss +11 -0
- package/lib/components/Checkbox.js +26 -87
- package/lib/components/Checkbox.js.map +1 -1
- package/lib/components/Checkbox.module.scss +106 -0
- package/lib/components/CheckboxFormik.js +16 -37
- package/lib/components/CheckboxFormik.js.map +1 -1
- package/lib/components/CircularProgressBar.js +27 -78
- package/lib/components/CircularProgressBar.js.map +1 -1
- package/lib/components/CircularProgressBar.module.scss +37 -0
- package/lib/components/ContextMenu.js +60 -86
- package/lib/components/ContextMenu.js.map +1 -1
- package/lib/components/ContextMenu.module.scss +37 -0
- package/lib/components/Dialog.js +30 -50
- package/lib/components/Dialog.js.map +1 -1
- package/lib/components/Dialog.module.scss +62 -0
- package/lib/components/EmptyState.js +20 -66
- package/lib/components/EmptyState.js.map +1 -1
- package/lib/components/EmptyState.module.scss +87 -0
- package/lib/components/Error.js +7 -28
- package/lib/components/Error.js.map +1 -1
- package/lib/components/Error.module.scss +12 -0
- package/lib/components/FieldHeader.js +14 -43
- package/lib/components/FieldHeader.js.map +1 -1
- package/lib/components/FieldHeader.module.scss +20 -0
- package/lib/components/Help.js +13 -42
- package/lib/components/Help.js.map +1 -1
- package/lib/components/Help.module.scss +9 -0
- package/lib/components/Icon.js +25 -48
- package/lib/components/Icon.js.map +1 -1
- package/lib/components/Icon.module.scss +33 -0
- package/lib/components/IconButton.js +23 -81
- package/lib/components/IconButton.js.map +1 -1
- package/lib/components/IconButton.module.scss +59 -0
- package/lib/components/InteractiveList.js +41 -115
- package/lib/components/InteractiveList.js.map +1 -1
- package/lib/components/InteractiveList.module.scss +72 -0
- package/lib/components/InteractiveListFormik.js +81 -110
- package/lib/components/InteractiveListFormik.js.map +1 -1
- package/lib/components/Label.js +5 -20
- package/lib/components/Label.js.map +1 -1
- package/lib/components/Label.module.scss +12 -0
- package/lib/components/Link.js +31 -59
- package/lib/components/Link.js.map +1 -1
- package/lib/components/Link.module.scss +64 -0
- package/lib/components/Loader.js +23 -82
- package/lib/components/Loader.js.map +1 -1
- package/lib/components/Loader.module.scss +74 -0
- package/lib/components/Modal.js +26 -93
- package/lib/components/Modal.js.map +1 -1
- package/lib/components/Modal.module.scss +109 -0
- package/lib/components/Notification.js +37 -75
- package/lib/components/Notification.js.map +1 -1
- package/lib/components/Notification.module.scss +97 -0
- package/lib/components/NumberBadge.js +7 -18
- package/lib/components/NumberBadge.js.map +1 -1
- package/lib/components/NumberBadge.module.scss +13 -0
- package/lib/components/NumberField.js +140 -181
- package/lib/components/NumberField.js.map +1 -1
- package/lib/components/NumberField.module.scss +76 -0
- package/lib/components/NumberFieldFormik.js +49 -69
- package/lib/components/NumberFieldFormik.js.map +1 -1
- package/lib/components/Overlay.js +29 -92
- package/lib/components/Overlay.js.map +1 -1
- package/lib/components/Overlay.module.scss +108 -0
- package/lib/components/Pagination.js +91 -198
- package/lib/components/Pagination.js.map +1 -1
- package/lib/components/Pagination.module.scss +117 -0
- package/lib/components/PasswordField.js +25 -61
- package/lib/components/PasswordField.js.map +1 -1
- package/lib/components/PasswordField.module.scss +26 -0
- package/lib/components/PasswordFieldFormik.js +16 -37
- package/lib/components/PasswordFieldFormik.js.map +1 -1
- package/lib/components/Popover.js +67 -85
- package/lib/components/Popover.js.map +1 -1
- package/lib/components/Popover.module.scss +12 -0
- package/lib/components/Radio.js +26 -67
- package/lib/components/Radio.js.map +1 -1
- package/lib/components/Radio.module.scss +112 -0
- package/lib/components/RadioFormik.js +11 -26
- package/lib/components/RadioFormik.js.map +1 -1
- package/lib/components/RadioGroup.js +18 -51
- package/lib/components/RadioGroup.js.map +1 -1
- package/lib/components/RadioGroup.module.scss +21 -0
- package/lib/components/RadioGroupContext.js +3 -10
- package/lib/components/RadioGroupContext.js.map +1 -1
- package/lib/components/RadioGroupFormik.js +16 -34
- package/lib/components/RadioGroupFormik.js.map +1 -1
- package/lib/components/SegmentedControl.js +9 -43
- package/lib/components/SegmentedControl.js.map +1 -1
- package/lib/components/SegmentedControl.module.scss +81 -0
- package/lib/components/SegmentedControlFormik.js +12 -30
- package/lib/components/SegmentedControlFormik.js.map +1 -1
- package/lib/components/Select/CheckableSelectField.js +74 -178
- package/lib/components/Select/CheckableSelectField.js.map +1 -1
- package/lib/components/Select/CheckableSelectField.module.scss +100 -0
- package/lib/components/Select/CheckableSelectFieldFormik.js +18 -41
- package/lib/components/Select/CheckableSelectFieldFormik.js.map +1 -1
- package/lib/components/Select/Common.js +44 -87
- package/lib/components/Select/Common.js.map +1 -1
- package/lib/components/Select/Common.module.scss +69 -0
- package/lib/components/Select/MultiSelectField.js +107 -187
- package/lib/components/Select/MultiSelectField.js.map +1 -1
- package/lib/components/Select/MultiSelectField.module.scss +72 -0
- package/lib/components/Select/MultiSelectFieldFormik.js +18 -41
- package/lib/components/Select/MultiSelectFieldFormik.js.map +1 -1
- package/lib/components/Select/SelectField.js +100 -169
- package/lib/components/Select/SelectField.js.map +1 -1
- package/lib/components/Select/SelectField.module.scss +194 -0
- package/lib/components/Select/SelectFieldFormik.js +18 -38
- package/lib/components/Select/SelectFieldFormik.js.map +1 -1
- package/lib/components/Select/helpers.js +25 -30
- package/lib/components/Select/helpers.js.map +1 -1
- package/lib/components/Select/index.js +8 -21
- package/lib/components/Select/index.js.map +1 -1
- package/lib/components/SimpleTable.js +13 -36
- package/lib/components/SimpleTable.js.map +1 -1
- package/lib/components/SimpleTable.module.scss +28 -0
- package/lib/components/Slider.js +173 -294
- package/lib/components/Slider.js.map +1 -1
- package/lib/components/Slider.module.scss +277 -0
- package/lib/components/SliderFormik.js +13 -30
- package/lib/components/SliderFormik.js.map +1 -1
- package/lib/components/Table/Cell.js +58 -111
- package/lib/components/Table/Cell.js.map +1 -1
- package/lib/components/Table/Cell.module.scss +61 -0
- package/lib/components/Table/CellWrapper.js +27 -44
- package/lib/components/Table/CellWrapper.js.map +1 -1
- package/lib/components/Table/EnhancedRenderers.js +12 -31
- package/lib/components/Table/EnhancedRenderers.js.map +1 -1
- package/lib/components/Table/Header.js +92 -141
- package/lib/components/Table/Header.js.map +1 -1
- package/lib/components/Table/Header.module.scss +128 -0
- package/lib/components/Table/Row.js +22 -77
- package/lib/components/Table/Row.js.map +1 -1
- package/lib/components/Table/Row.module.scss +59 -0
- package/lib/components/Table/Table.js +245 -456
- package/lib/components/Table/Table.js.map +1 -1
- package/lib/components/Table/Table.module.scss +31 -0
- package/lib/components/Table/TableContent.js +57 -129
- package/lib/components/Table/TableContent.js.map +1 -1
- package/lib/components/Table/TableContent.module.scss +21 -0
- package/lib/components/Table/constants.js +3 -8
- package/lib/components/Table/constants.js.map +1 -1
- package/lib/components/Table/features/columnsSelection/CellCopyablePopover.js +12 -39
- package/lib/components/Table/features/columnsSelection/CellCopyablePopover.js.map +1 -1
- package/lib/components/Table/features/columnsSelection/CellCopyablePopover.module.scss +12 -0
- package/lib/components/Table/features/columnsSelection/ContextMenu/ContextMenu.js +16 -23
- package/lib/components/Table/features/columnsSelection/ContextMenu/ContextMenu.js.map +1 -1
- package/lib/components/Table/features/columnsSelection/ContextMenu/ContextMenu.module.scss +6 -0
- package/lib/components/Table/features/columnsSelection/ContextMenu/index.js +2 -8
- package/lib/components/Table/features/columnsSelection/ContextMenu/index.js.map +1 -1
- package/lib/components/Table/features/columnsSelection/columnsSelection.js +68 -76
- package/lib/components/Table/features/columnsSelection/columnsSelection.js.map +1 -1
- package/lib/components/Table/features/columnsSelection/helpers.js +22 -28
- package/lib/components/Table/features/columnsSelection/helpers.js.map +1 -1
- package/lib/components/Table/features/columnsSelection/index.js +5 -16
- package/lib/components/Table/features/columnsSelection/index.js.map +1 -1
- package/lib/components/Table/helpers.js +9 -17
- package/lib/components/Table/helpers.js.map +1 -1
- package/lib/components/Table/tableTypes.js +2 -3
- package/lib/components/Table/tableTypes.js.map +1 -1
- package/lib/components/Table/useTrackTableState.js +29 -43
- package/lib/components/Table/useTrackTableState.js.map +1 -1
- package/lib/components/Table/utils.js +111 -176
- package/lib/components/Table/utils.js.map +1 -1
- package/lib/components/Tabs/Tab.js +27 -61
- package/lib/components/Tabs/Tab.js.map +1 -1
- package/lib/components/Tabs/Tab.module.scss +58 -0
- package/lib/components/Tabs/TabContext.js +26 -51
- package/lib/components/Tabs/TabContext.js.map +1 -1
- package/lib/components/Tabs/TabList.js +49 -62
- package/lib/components/Tabs/TabList.js.map +1 -1
- package/lib/components/Tabs/TabList.module.scss +3 -0
- package/lib/components/Tabs/TabPanel.js +9 -29
- package/lib/components/Tabs/TabPanel.js.map +1 -1
- package/lib/components/Tabs/TabPanel.module.scss +7 -0
- package/lib/components/Tabs/index.js +5 -20
- package/lib/components/Tabs/index.js.map +1 -1
- package/lib/components/Terminal.js +108 -179
- package/lib/components/Terminal.js.map +1 -1
- package/lib/components/Terminal.module.scss +109 -0
- package/lib/components/TextArea.js +24 -79
- package/lib/components/TextArea.js.map +1 -1
- package/lib/components/TextArea.module.scss +144 -0
- package/lib/components/TextAreaFormik.js +10 -26
- package/lib/components/TextAreaFormik.js.map +1 -1
- package/lib/components/TextField.js +48 -154
- package/lib/components/TextField.js.map +1 -1
- package/lib/components/TextField.module.scss +209 -0
- package/lib/components/TextFieldFormik.js +22 -46
- package/lib/components/TextFieldFormik.js.map +1 -1
- package/lib/components/TimeField.js +14 -62
- package/lib/components/TimeField.js.map +1 -1
- package/lib/components/TimeField.module.scss +4 -0
- package/lib/components/TimeFieldFormik.js +10 -26
- package/lib/components/TimeFieldFormik.js.map +1 -1
- package/lib/components/Toast.js +44 -79
- package/lib/components/Toast.js.map +1 -1
- package/lib/components/Toast.module.scss +53 -0
- package/lib/components/Toggle.js +21 -71
- package/lib/components/Toggle.js.map +1 -1
- package/lib/components/Toggle.module.scss +175 -0
- package/lib/components/ToggleFormik.js +11 -27
- package/lib/components/ToggleFormik.js.map +1 -1
- package/lib/components/Tooltip.js +39 -79
- package/lib/components/Tooltip.js.map +1 -1
- package/lib/components/Tooltip.module.scss +44 -0
- package/lib/components/TruncatedText.js +22 -49
- package/lib/components/TruncatedText.js.map +1 -1
- package/lib/components/TruncatedText.module.scss +9 -0
- package/lib/helpers/array.js +17 -26
- package/lib/helpers/array.js.map +1 -1
- package/lib/helpers/escapeHtml.js +6 -10
- package/lib/helpers/escapeHtml.js.map +1 -1
- package/lib/helpers/forms.js +14 -20
- package/lib/helpers/forms.js.map +1 -1
- package/lib/helpers/math.js +6 -10
- package/lib/helpers/math.js.map +1 -1
- package/lib/helpers/types.js +2 -6
- package/lib/helpers/types.js.map +1 -1
- package/lib/hooks/index.js +7 -17
- package/lib/hooks/index.js.map +1 -1
- package/lib/hooks/useCloseOnResize.js +12 -17
- package/lib/hooks/useCloseOnResize.js.map +1 -1
- package/lib/hooks/useDeepCompareMemo.js +7 -12
- package/lib/hooks/useDeepCompareMemo.js.map +1 -1
- package/lib/hooks/useDeepEqual.js +9 -14
- package/lib/hooks/useDeepEqual.js.map +1 -1
- package/lib/hooks/useDimensions.js +15 -26
- package/lib/hooks/useDimensions.js.map +1 -1
- package/lib/hooks/useIsMounted.js +11 -16
- package/lib/hooks/useIsMounted.js.map +1 -1
- package/lib/hooks/useOnClickOutside.js +32 -41
- package/lib/hooks/useOnClickOutside.js.map +1 -1
- package/lib/hooks/useOpenCloseState.js +13 -18
- package/lib/hooks/useOpenCloseState.js.map +1 -1
- package/lib/hooks/usePagination.js +60 -64
- package/lib/hooks/usePagination.js.map +1 -1
- package/lib/hooks/usePersistedState.js +33 -35
- package/lib/hooks/usePersistedState.js.map +1 -1
- package/lib/hooks/usePrevious.js +8 -13
- package/lib/hooks/usePrevious.js.map +1 -1
- package/lib/hooks/useRefValue.js +8 -13
- package/lib/hooks/useRefValue.js.map +1 -1
- package/lib/icons/Cluster.js +7 -44
- package/lib/icons/Cluster.js.map +1 -1
- package/lib/icons/Compare.js +7 -46
- package/lib/icons/Compare.js.map +1 -1
- package/lib/icons/Compute.js +7 -43
- package/lib/icons/Compute.js.map +1 -1
- package/lib/icons/Folder.js +4 -25
- package/lib/icons/Folder.js.map +1 -1
- package/lib/icons/PlusCircle.js +6 -37
- package/lib/icons/PlusCircle.js.map +1 -1
- package/lib/icons/Streaming.js +8 -45
- package/lib/icons/Streaming.js.map +1 -1
- package/lib/index.js +71 -178
- package/lib/index.js.map +1 -1
- package/lib/services/logger.js +75 -85
- package/lib/services/logger.js.map +1 -1
- package/lib/services/time.js +14 -18
- package/lib/services/time.js.map +1 -1
- package/lib/test-helpers/index.d.ts +3 -0
- package/lib/test-helpers/index.js +4 -0
- package/lib/test-helpers/index.js.map +1 -0
- package/lib/test-helpers/render.d.ts +10 -0
- package/lib/test-helpers/render.js +24 -0
- package/lib/test-helpers/render.js.map +1 -0
- package/lib/test-helpers/time.d.ts +1 -0
- package/lib/test-helpers/time.js +2 -0
- package/lib/test-helpers/time.js.map +1 -0
- package/lib/test-helpers/utils.d.ts +5 -0
- package/lib/test-helpers/utils.js +11 -0
- package/lib/test-helpers/utils.js.map +1 -0
- package/lib/types.js +2 -3
- package/lib/types.js.map +1 -1
- package/lib/utils/formik.js +7 -12
- package/lib/utils/formik.js.map +1 -1
- package/lib/utils/keyboard.js +3 -8
- package/lib/utils/keyboard.js.map +1 -1
- package/lib/utils/portal.js +14 -19
- package/lib/utils/portal.js.map +1 -1
- package/lib/utils/ssr.js +2 -6
- package/lib/utils/ssr.js.map +1 -1
- package/lib/utils/types.js +2 -3
- package/lib/utils/types.js.map +1 -1
- package/package.json +3 -2
- package/lib/components/Alert.module.scss.js +0 -8
- package/lib/components/Alert.module.scss.js.map +0 -1
- package/lib/components/AppHeader/AppHeader.module.scss.js +0 -8
- package/lib/components/AppHeader/AppHeader.module.scss.js.map +0 -1
- package/lib/components/AppHeader/AppHeaderLogo/AppHeaderLogo.module.scss.js +0 -8
- package/lib/components/AppHeader/AppHeaderLogo/AppHeaderLogo.module.scss.js.map +0 -1
- package/lib/components/AppHeader/AppHeaderMenu/AppHeaderMenu.module.scss.js +0 -8
- package/lib/components/AppHeader/AppHeaderMenu/AppHeaderMenu.module.scss.js.map +0 -1
- package/lib/components/AppHeader/EnvironmentBadge/EnvironmentBadge.module.scss.js +0 -8
- package/lib/components/AppHeader/EnvironmentBadge/EnvironmentBadge.module.scss.js.map +0 -1
- package/lib/components/AppHeader/SelectCluster/SelectCluster.module.scss.js +0 -8
- package/lib/components/AppHeader/SelectCluster/SelectCluster.module.scss.js.map +0 -1
- package/lib/components/AppSidebar/AppSidebar.module.scss.js +0 -8
- package/lib/components/AppSidebar/AppSidebar.module.scss.js.map +0 -1
- package/lib/components/AppSidebar/AppSidebarFavoriteButton/AppSidebarFavoriteButton.module.scss.js +0 -8
- package/lib/components/AppSidebar/AppSidebarFavoriteButton/AppSidebarFavoriteButton.module.scss.js.map +0 -1
- package/lib/components/AppSidebar/AppSidebarFavorites/AppSidebarFavorites.module.scss.js +0 -8
- package/lib/components/AppSidebar/AppSidebarFavorites/AppSidebarFavorites.module.scss.js.map +0 -1
- package/lib/components/AppSidebar/AppSidebarItem/AppSidebarItem.module.scss.js +0 -8
- package/lib/components/AppSidebar/AppSidebarItem/AppSidebarItem.module.scss.js.map +0 -1
- package/lib/components/AppSidebar/AppSidebarMenuItemCounter/AppSidebarMenuItemCounter.module.scss.js +0 -8
- package/lib/components/AppSidebar/AppSidebarMenuItemCounter/AppSidebarMenuItemCounter.module.scss.js.map +0 -1
- package/lib/components/AppSidebar/AppSidebarSection/AppSidebarSection.module.scss.js +0 -8
- package/lib/components/AppSidebar/AppSidebarSection/AppSidebarSection.module.scss.js.map +0 -1
- package/lib/components/AutocompleteField.module.scss.js +0 -8
- package/lib/components/AutocompleteField.module.scss.js.map +0 -1
- package/lib/components/Badge.module.scss.js +0 -8
- package/lib/components/Badge.module.scss.js.map +0 -1
- package/lib/components/Button.module.scss.js +0 -8
- package/lib/components/Button.module.scss.js.map +0 -1
- package/lib/components/Calendar/Calendar.module.scss.js +0 -8
- package/lib/components/Calendar/Calendar.module.scss.js.map +0 -1
- package/lib/components/Calendar/CalendarRange.module.scss.js +0 -8
- package/lib/components/Calendar/CalendarRange.module.scss.js.map +0 -1
- package/lib/components/Calendar/components/CalendarTime.module.scss.js +0 -8
- package/lib/components/Calendar/components/CalendarTime.module.scss.js.map +0 -1
- package/lib/components/Card.module.scss.js +0 -8
- package/lib/components/Card.module.scss.js.map +0 -1
- package/lib/components/Carousel.module.scss.js +0 -8
- package/lib/components/Carousel.module.scss.js.map +0 -1
- package/lib/components/CenteredLoader.module.scss.js +0 -8
- package/lib/components/CenteredLoader.module.scss.js.map +0 -1
- package/lib/components/Checkbox.module.scss.js +0 -8
- package/lib/components/Checkbox.module.scss.js.map +0 -1
- package/lib/components/CircularProgressBar.module.scss.js +0 -8
- package/lib/components/CircularProgressBar.module.scss.js.map +0 -1
- package/lib/components/ContextMenu.module.scss.js +0 -8
- package/lib/components/ContextMenu.module.scss.js.map +0 -1
- package/lib/components/Dialog.module.scss.js +0 -8
- package/lib/components/Dialog.module.scss.js.map +0 -1
- package/lib/components/EmptyState.module.scss.js +0 -8
- package/lib/components/EmptyState.module.scss.js.map +0 -1
- package/lib/components/Error.module.scss.js +0 -8
- package/lib/components/Error.module.scss.js.map +0 -1
- package/lib/components/FieldHeader.module.scss.js +0 -8
- package/lib/components/FieldHeader.module.scss.js.map +0 -1
- package/lib/components/Help.module.scss.js +0 -8
- package/lib/components/Help.module.scss.js.map +0 -1
- package/lib/components/Icon.module.scss.js +0 -8
- package/lib/components/Icon.module.scss.js.map +0 -1
- package/lib/components/IconButton.module.scss.js +0 -8
- package/lib/components/IconButton.module.scss.js.map +0 -1
- package/lib/components/InteractiveList.module.scss.js +0 -8
- package/lib/components/InteractiveList.module.scss.js.map +0 -1
- package/lib/components/Label.module.scss.js +0 -8
- package/lib/components/Label.module.scss.js.map +0 -1
- package/lib/components/Link.module.scss.js +0 -8
- package/lib/components/Link.module.scss.js.map +0 -1
- package/lib/components/Loader.module.scss.js +0 -8
- package/lib/components/Loader.module.scss.js.map +0 -1
- package/lib/components/Modal.module.scss.js +0 -8
- package/lib/components/Modal.module.scss.js.map +0 -1
- package/lib/components/Notification.module.scss.js +0 -8
- package/lib/components/Notification.module.scss.js.map +0 -1
- package/lib/components/NumberBadge.module.scss.js +0 -8
- package/lib/components/NumberBadge.module.scss.js.map +0 -1
- package/lib/components/NumberField.module.scss.js +0 -8
- package/lib/components/NumberField.module.scss.js.map +0 -1
- package/lib/components/Overlay.module.scss.js +0 -8
- package/lib/components/Overlay.module.scss.js.map +0 -1
- package/lib/components/Pagination.module.scss.js +0 -8
- package/lib/components/Pagination.module.scss.js.map +0 -1
- package/lib/components/PasswordField.module.scss.js +0 -8
- package/lib/components/PasswordField.module.scss.js.map +0 -1
- package/lib/components/Popover.module.scss.js +0 -8
- package/lib/components/Popover.module.scss.js.map +0 -1
- package/lib/components/Radio.module.scss.js +0 -8
- package/lib/components/Radio.module.scss.js.map +0 -1
- package/lib/components/RadioGroup.module.scss.js +0 -8
- package/lib/components/RadioGroup.module.scss.js.map +0 -1
- package/lib/components/SegmentedControl.module.scss.js +0 -8
- package/lib/components/SegmentedControl.module.scss.js.map +0 -1
- package/lib/components/Select/CheckableSelectField.module.scss.js +0 -8
- package/lib/components/Select/CheckableSelectField.module.scss.js.map +0 -1
- package/lib/components/Select/Common.module.scss.js +0 -8
- package/lib/components/Select/Common.module.scss.js.map +0 -1
- package/lib/components/Select/MultiSelectField.module.scss.js +0 -8
- package/lib/components/Select/MultiSelectField.module.scss.js.map +0 -1
- package/lib/components/Select/SelectField.module.scss.js +0 -8
- package/lib/components/Select/SelectField.module.scss.js.map +0 -1
- package/lib/components/SimpleTable.module.scss.js +0 -8
- package/lib/components/SimpleTable.module.scss.js.map +0 -1
- package/lib/components/Slider.module.scss.js +0 -8
- package/lib/components/Slider.module.scss.js.map +0 -1
- package/lib/components/Table/Cell.module.scss.js +0 -8
- package/lib/components/Table/Cell.module.scss.js.map +0 -1
- package/lib/components/Table/Header.module.scss.js +0 -8
- package/lib/components/Table/Header.module.scss.js.map +0 -1
- package/lib/components/Table/Row.module.scss.js +0 -8
- package/lib/components/Table/Row.module.scss.js.map +0 -1
- package/lib/components/Table/Table.module.scss.js +0 -8
- package/lib/components/Table/Table.module.scss.js.map +0 -1
- package/lib/components/Table/TableContent.module.scss.js +0 -8
- package/lib/components/Table/TableContent.module.scss.js.map +0 -1
- package/lib/components/Table/features/columnsSelection/CellCopyablePopover.module.scss.js +0 -8
- package/lib/components/Table/features/columnsSelection/CellCopyablePopover.module.scss.js.map +0 -1
- package/lib/components/Table/features/columnsSelection/ContextMenu/ContextMenu.module.scss.js +0 -8
- package/lib/components/Table/features/columnsSelection/ContextMenu/ContextMenu.module.scss.js.map +0 -1
- package/lib/components/Tabs/Tab.module.scss.js +0 -8
- package/lib/components/Tabs/Tab.module.scss.js.map +0 -1
- package/lib/components/Tabs/TabList.module.scss.js +0 -8
- package/lib/components/Tabs/TabList.module.scss.js.map +0 -1
- package/lib/components/Tabs/TabPanel.module.scss.js +0 -8
- package/lib/components/Tabs/TabPanel.module.scss.js.map +0 -1
- package/lib/components/Terminal.module.scss.js +0 -8
- package/lib/components/Terminal.module.scss.js.map +0 -1
- package/lib/components/TextArea.module.scss.js +0 -8
- package/lib/components/TextArea.module.scss.js.map +0 -1
- package/lib/components/TextField.module.scss.js +0 -8
- package/lib/components/TextField.module.scss.js.map +0 -1
- package/lib/components/TimeField.module.scss.js +0 -8
- package/lib/components/TimeField.module.scss.js.map +0 -1
- package/lib/components/Toast.module.scss.js +0 -8
- package/lib/components/Toast.module.scss.js.map +0 -1
- package/lib/components/Toggle.module.scss.js +0 -8
- package/lib/components/Toggle.module.scss.js.map +0 -1
- package/lib/components/Tooltip.module.scss.js +0 -8
- package/lib/components/Tooltip.module.scss.js.map +0 -1
- package/lib/components/TruncatedText.module.scss.js +0 -8
- package/lib/components/TruncatedText.module.scss.js.map +0 -1
- package/lib/styles/constants/export.module.scss.js +0 -8
- package/lib/styles/constants/export.module.scss.js.map +0 -1
- package/lib/styles.css +0 -1
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
@use '../../styles/constants' as c;
|
|
2
|
+
@use '../../styles/helpers' as h;
|
|
3
|
+
|
|
4
|
+
.container {
|
|
5
|
+
// Match TextField
|
|
6
|
+
@include c.typographyBodySmall;
|
|
7
|
+
|
|
8
|
+
color: c.$colorText;
|
|
9
|
+
padding: c.$grid * 5;
|
|
10
|
+
background-color: c.$colorNeutralWhite;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.input {
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: row;
|
|
16
|
+
align-items: stretch;
|
|
17
|
+
margin: 0;
|
|
18
|
+
margin-bottom: c.$grid * 3;
|
|
19
|
+
|
|
20
|
+
> input {
|
|
21
|
+
flex: 1 1 auto;
|
|
22
|
+
min-width: 0;
|
|
23
|
+
border: none;
|
|
24
|
+
border-bottom: c.$outlineWidth solid c.$colorNeutral;
|
|
25
|
+
padding: 0;
|
|
26
|
+
|
|
27
|
+
// Align input bottom line with the icon
|
|
28
|
+
margin-bottom: c.$grid;
|
|
29
|
+
outline: none;
|
|
30
|
+
background-color: transparent;
|
|
31
|
+
color: c.$colorText;
|
|
32
|
+
box-sizing: border-box;
|
|
33
|
+
font-size: inherit;
|
|
34
|
+
line-height: inherit;
|
|
35
|
+
letter-spacing: inherit;
|
|
36
|
+
|
|
37
|
+
&.blank {
|
|
38
|
+
border-bottom-color: transparent;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&:hover,
|
|
42
|
+
&.hover {
|
|
43
|
+
border-bottom-color: c.$colorText;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&:focus-visible,
|
|
47
|
+
&.focus {
|
|
48
|
+
// Do not remove outline for high-contrast modes
|
|
49
|
+
// https://stackoverflow.com/a/52616313
|
|
50
|
+
outline: transparent solid c.$outlineWidth;
|
|
51
|
+
border-bottom-color: c.$colorAccessibilityOutline;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&:disabled {
|
|
55
|
+
color: c.$colorTextSecondary;
|
|
56
|
+
background-color: transparent;
|
|
57
|
+
border-bottom-color: c.$colorNeutral;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&:read-only {
|
|
61
|
+
border-bottom-color: c.$colorNeutral;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.welcome {
|
|
67
|
+
@include c.typographyBodySmall('bold');
|
|
68
|
+
|
|
69
|
+
margin: 0;
|
|
70
|
+
margin-bottom: c.$grid * 5;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.commandRes {
|
|
74
|
+
color: c.$colorSuccessDarkest;
|
|
75
|
+
margin: 0;
|
|
76
|
+
margin-bottom: c.$grid * 3;
|
|
77
|
+
|
|
78
|
+
> p {
|
|
79
|
+
margin: 0;
|
|
80
|
+
margin-bottom: c.$grid;
|
|
81
|
+
white-space: break-spaces;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.commandError {
|
|
86
|
+
color: c.$colorErrorDark;
|
|
87
|
+
margin: 0;
|
|
88
|
+
margin-bottom: c.$grid * 3;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.loading {
|
|
92
|
+
margin: 0;
|
|
93
|
+
margin-bottom: c.$grid * 3;
|
|
94
|
+
position: relative;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.loadingA11yText {
|
|
98
|
+
@include h.visuallyHidden;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.terminalIcon {
|
|
102
|
+
margin-right: c.$grid * 3;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.prompt {
|
|
106
|
+
@include c.typographyBodySmall('bold');
|
|
107
|
+
|
|
108
|
+
margin-right: c.$grid;
|
|
109
|
+
}
|
|
@@ -1,80 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
required,
|
|
25
|
-
resizable = true,
|
|
26
|
-
helperText,
|
|
27
|
-
size = 'medium',
|
|
28
|
-
'data-test': dataTest = 'textarea',
|
|
29
|
-
...htmlAttrs
|
|
30
|
-
} = props;
|
|
31
|
-
const id = reactUid.useUID();
|
|
32
|
-
const textareaRef = React.useRef(null);
|
|
33
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
34
|
-
"data-test": dataTest,
|
|
35
|
-
className: cn(TextArea_module.default.container, {
|
|
36
|
-
[TextArea_module.default.disabled]: disabled,
|
|
37
|
-
[TextArea_module.default.hasError]: error,
|
|
38
|
-
[TextArea_module.default.withError]: 'error' in props
|
|
39
|
-
}, className)
|
|
40
|
-
}, /*#__PURE__*/React.createElement(components_FieldHeader.FieldHeader, {
|
|
41
|
-
"data-test": dataTest,
|
|
42
|
-
label: label,
|
|
43
|
-
id: id,
|
|
44
|
-
helperText: helperText,
|
|
45
|
-
labelClassName: labelClassName,
|
|
46
|
-
size: size
|
|
47
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
48
|
-
className: TextArea_module.default.textAreaContainer
|
|
49
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
50
|
-
className: TextArea_module.default.textAreaWrapper
|
|
51
|
-
}, /*#__PURE__*/React.createElement("textarea", {
|
|
52
|
-
ref: textareaRef,
|
|
53
|
-
"aria-invalid": !!error,
|
|
54
|
-
"aria-required": required,
|
|
55
|
-
"aria-errormessage": error && components_Error.errorId(id),
|
|
56
|
-
id: id,
|
|
57
|
-
className: cn({
|
|
58
|
-
[TextArea_module.default.notResizable]: !resizable
|
|
59
|
-
}, textareaClassName),
|
|
60
|
-
placeholder: placeholder,
|
|
61
|
-
name: name,
|
|
62
|
-
onBlur: onBlur,
|
|
63
|
-
onChange: onChange,
|
|
64
|
-
required: required,
|
|
65
|
-
value: value !== null && value !== void 0 ? value : '',
|
|
66
|
-
disabled: disabled,
|
|
67
|
-
...htmlAttrs
|
|
68
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
69
|
-
className: TextArea_module.default.borderOverlay
|
|
70
|
-
}))), /*#__PURE__*/React.createElement(components_Error.Error, {
|
|
71
|
-
"data-test": `${dataTest}-error`,
|
|
72
|
-
truncated: true,
|
|
73
|
-
error: error,
|
|
74
|
-
className: cn(TextArea_module.default.errorContainer, errorClassName),
|
|
75
|
-
inputId: id
|
|
76
|
-
}));
|
|
1
|
+
import React, { useRef } from 'react';
|
|
2
|
+
import cn from 'classnames';
|
|
3
|
+
import { useUID } from 'react-uid';
|
|
4
|
+
import { Error, errorId } from './Error';
|
|
5
|
+
import { FieldHeader } from './FieldHeader';
|
|
6
|
+
import styles from './TextArea.module.scss';
|
|
7
|
+
export const TextArea = (props) => {
|
|
8
|
+
const { error, label, name, onBlur, onChange, placeholder, value, disabled, className, labelClassName, textareaClassName, errorClassName, required, resizable = true, helperText, size = 'medium', 'data-test': dataTest = 'textarea', ...htmlAttrs } = props;
|
|
9
|
+
const id = useUID();
|
|
10
|
+
const textareaRef = useRef(null);
|
|
11
|
+
return (React.createElement("div", { "data-test": dataTest, className: cn(styles.container, {
|
|
12
|
+
[styles.disabled]: disabled,
|
|
13
|
+
[styles.hasError]: error,
|
|
14
|
+
[styles.withError]: 'error' in props,
|
|
15
|
+
}, className) },
|
|
16
|
+
React.createElement(FieldHeader, { "data-test": dataTest, label: label, id: id, helperText: helperText, labelClassName: labelClassName, size: size }),
|
|
17
|
+
React.createElement("div", { className: styles.textAreaContainer },
|
|
18
|
+
React.createElement("div", { className: styles.textAreaWrapper },
|
|
19
|
+
React.createElement("textarea", { ref: textareaRef, "aria-invalid": !!error, "aria-required": required, "aria-errormessage": error && errorId(id), id: id, className: cn({
|
|
20
|
+
[styles.notResizable]: !resizable,
|
|
21
|
+
}, textareaClassName), placeholder: placeholder, name: name, onBlur: onBlur, onChange: onChange, required: required, value: value !== null && value !== void 0 ? value : '', disabled: disabled, ...htmlAttrs }),
|
|
22
|
+
React.createElement("div", { className: styles.borderOverlay }))),
|
|
23
|
+
React.createElement(Error, { "data-test": `${dataTest}-error`, truncated: true, error: error, className: cn(styles.errorContainer, errorClassName), inputId: id })));
|
|
77
24
|
};
|
|
78
|
-
|
|
79
|
-
exports.TextArea = TextArea;
|
|
80
|
-
//# sourceMappingURL=TextArea.js.map
|
|
25
|
+
//# sourceMappingURL=TextArea.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextArea.js","sources":["../../src/components/TextArea.tsx"],"
|
|
1
|
+
{"version":3,"file":"TextArea.js","sourceRoot":"","sources":["../../src/components/TextArea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAA+B,MAAM,EAAE,MAAM,OAAO,CAAA;AAClE,OAAO,EAAE,MAAM,YAAY,CAAA;AAC3B,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAGlC,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AACxC,OAAO,EAAE,WAAW,EAAoB,MAAM,eAAe,CAAA;AAE7D,OAAO,MAAM,MAAM,wBAAwB,CAAA;AAsB3C,MAAM,CAAC,MAAM,QAAQ,GAAsB,CAAC,KAAK,EAAE,EAAE;IACnD,MAAM,EACJ,KAAK,EACL,KAAK,EACL,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,WAAW,EACX,KAAK,EACL,QAAQ,EACR,SAAS,EACT,cAAc,EACd,iBAAiB,EACjB,cAAc,EACd,QAAQ,EACR,SAAS,GAAG,IAAI,EAChB,UAAU,EACV,IAAI,GAAG,QAAQ,EACf,WAAW,EAAE,QAAQ,GAAG,UAAU,EAClC,GAAG,SAAS,EACb,GAAG,KAAK,CAAA;IACT,MAAM,EAAE,GAAG,MAAM,EAAE,CAAA;IACnB,MAAM,WAAW,GAAG,MAAM,CAAsB,IAAI,CAAC,CAAA;IAErD,OAAO,CACL,0CACa,QAAQ,EACnB,SAAS,EAAE,EAAE,CACX,MAAM,CAAC,SAAS,EAChB;YACE,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,QAAQ;YAC3B,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,KAAK;YACxB,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,OAAO,IAAI,KAAK;SACrC,EACD,SAAS,CACV;QAED,oBAAC,WAAW,iBAAY,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,UAAU,EAAE,cAAc,EAAE,cAAc,EAAE,IAAI,EAAE,IAAI,GAAI;QAC9H,6BAAK,SAAS,EAAE,MAAM,CAAC,iBAAiB;YACtC,6BAAK,SAAS,EAAE,MAAM,CAAC,eAAe;gBACpC,kCACE,GAAG,EAAE,WAAW,kBACF,CAAC,CAAC,KAAK,mBACN,QAAQ,uBACJ,KAAK,IAAI,OAAO,CAAC,EAAE,CAAC,EACvC,EAAE,EAAE,EAAE,EACN,SAAS,EAAE,EAAE,CACX;wBACE,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,CAAC,SAAS;qBAClC,EACD,iBAAiB,CAClB,EACD,WAAW,EAAE,WAAW,EACxB,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,EAAE,EAClB,QAAQ,EAAE,QAAQ,KACd,SAAS,GACb;gBACF,6BAAK,SAAS,EAAE,MAAM,CAAC,aAAa,GAAI,CACpC,CACF;QACN,oBAAC,KAAK,iBAAY,GAAG,QAAQ,QAAQ,EAAE,SAAS,QAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,cAAc,EAAE,cAAc,CAAC,EAAE,OAAO,EAAE,EAAE,GAAI,CAChI,CACP,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
@use '../../styles/constants' as c;
|
|
2
|
+
@use '../../styles/helpers' as h;
|
|
3
|
+
|
|
4
|
+
// Why is it so complex? Why do we need .borderOverlay?
|
|
5
|
+
// Ideally, we would have used native `border` for every style: hover, error, focus.
|
|
6
|
+
// Since our focus outline is thicker than the native border, we cannot use the native border for focus styles.
|
|
7
|
+
// Say, the initial border is 1px. For focus you make it 2px.
|
|
8
|
+
// As result, it shifts the content inside. Not nice UX at all.
|
|
9
|
+
// To work around that in other places, we do not change the thickness of the border on focus.
|
|
10
|
+
// Instead we add a 1px inset box-shadow which adds ups to the border and gives us the desired 2px outline on focus.
|
|
11
|
+
// Back to the textarea. As you can see it is supposed to have rounded corners. So we use border-radius.
|
|
12
|
+
// Ideally, we would have used border-radius on the textarea itself
|
|
13
|
+
// and applied the same technique with the inset box-shadow.
|
|
14
|
+
// Guess what? Chrome does not apply border-radius to the scrollbar inside of the textarea.
|
|
15
|
+
// Next step is to add a wrapping div to the textarea, and apply the border-radius,
|
|
16
|
+
// the border itself and the inset box-shadow there.
|
|
17
|
+
// Now the inset box-shadow is rendered under the textarea,
|
|
18
|
+
// so the scrollbar is rendered on top of it and the textarea text as well.
|
|
19
|
+
// At least it makes sense. After all, it is a shadow. It is supposed to decorate, not overlap and override.
|
|
20
|
+
// Let's go deeper down the rabbit hole.
|
|
21
|
+
// We add the wrapping div and add the border-radius there, but we do not add the border itself.
|
|
22
|
+
// Instead we make the wrapping div relative.
|
|
23
|
+
// Next, we add an absolute child div. We add the border with the inset box-shadow to that div,
|
|
24
|
+
// so it is rendered on top of the textarea.
|
|
25
|
+
// Finally, we add textarea:focus styling to support IE11 that does not play nice with :focus-within.
|
|
26
|
+
|
|
27
|
+
.container {
|
|
28
|
+
@include c.typographyBodySmall;
|
|
29
|
+
|
|
30
|
+
color: c.$colorText;
|
|
31
|
+
box-sizing: border-box;
|
|
32
|
+
|
|
33
|
+
.label {
|
|
34
|
+
display: block;
|
|
35
|
+
margin-bottom: c.$grid;
|
|
36
|
+
|
|
37
|
+
&.small {
|
|
38
|
+
@include c.typographyBodySmall;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.helperText {
|
|
43
|
+
display: block;
|
|
44
|
+
margin: 2 * c.$grid 0 0 c.$grid;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.textAreaContainer {
|
|
48
|
+
display: flex;
|
|
49
|
+
flex-direction: row;
|
|
50
|
+
align-items: flex-start;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.borderOverlay {
|
|
54
|
+
position: absolute;
|
|
55
|
+
display: block;
|
|
56
|
+
top: 0;
|
|
57
|
+
left: 0;
|
|
58
|
+
height: 100%;
|
|
59
|
+
width: 100%;
|
|
60
|
+
pointer-events: none;
|
|
61
|
+
z-index: c.$zIndex100;
|
|
62
|
+
border-radius: c.$borderRadius;
|
|
63
|
+
border: c.$borderWidth solid c.$colorNeutralLight;
|
|
64
|
+
box-sizing: border-box;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.textAreaWrapper {
|
|
68
|
+
position: relative;
|
|
69
|
+
width: 100%;
|
|
70
|
+
border-radius: c.$borderRadius;
|
|
71
|
+
overflow: hidden;
|
|
72
|
+
box-sizing: border-box;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
textarea {
|
|
76
|
+
display: block;
|
|
77
|
+
padding: c.$grid * 2 c.$grid * 3;
|
|
78
|
+
border: none;
|
|
79
|
+
box-sizing: border-box;
|
|
80
|
+
width: 100%;
|
|
81
|
+
font-family: inherit;
|
|
82
|
+
font-weight: inherit;
|
|
83
|
+
font-size: inherit;
|
|
84
|
+
line-height: inherit;
|
|
85
|
+
letter-spacing: inherit;
|
|
86
|
+
color: inherit;
|
|
87
|
+
background-color: c.$colorOverlayBackground;
|
|
88
|
+
/* doiuse-disable css-resize */
|
|
89
|
+
resize: vertical;
|
|
90
|
+
/* doiuse-enable css-resize */
|
|
91
|
+
|
|
92
|
+
// Note: Resize is not supported by IE11, it's presence does no harm though
|
|
93
|
+
&.notResizable {
|
|
94
|
+
/* doiuse-disable css-resize */
|
|
95
|
+
resize: none;
|
|
96
|
+
/* doiuse-enable css-resize */
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
&::placeholder {
|
|
100
|
+
color: c.$colorTextSecondary;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
&.hover .textAreaWrapper,
|
|
105
|
+
.textAreaWrapper:hover {
|
|
106
|
+
.borderOverlay {
|
|
107
|
+
border-color: c.$colorPrimary;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&.disabled {
|
|
112
|
+
.textAreaWrapper {
|
|
113
|
+
color: c.$colorTextSecondary;
|
|
114
|
+
background-color: c.$colorNeutral;
|
|
115
|
+
|
|
116
|
+
.borderOverlay {
|
|
117
|
+
border-color: c.$colorNeutralLight;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
&.hasError {
|
|
123
|
+
.textAreaWrapper .borderOverlay {
|
|
124
|
+
border-color: c.$colorError;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
label {
|
|
128
|
+
color: c.$colorError;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
textarea:focus {
|
|
133
|
+
// Do not remove outline for high-contrast modes
|
|
134
|
+
// https://stackoverflow.com/a/52616313
|
|
135
|
+
outline: transparent solid c.$outlineWidth;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
&.focus .textAreaWrapper .borderOverlay,
|
|
139
|
+
.textAreaWrapper textarea:focus + .borderOverlay {
|
|
140
|
+
@include h.outlineFormField;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
@include h.withError;
|
|
@@ -1,27 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
...props
|
|
11
|
-
}) => {
|
|
12
|
-
const [field, meta] = formik.useField({
|
|
13
|
-
name,
|
|
14
|
-
validate
|
|
15
|
-
});
|
|
16
|
-
return /*#__PURE__*/React.createElement(components_TextArea.TextArea, {
|
|
17
|
-
...props,
|
|
18
|
-
name: name,
|
|
19
|
-
value: field.value,
|
|
20
|
-
onChange: field.onChange,
|
|
21
|
-
onBlur: field.onBlur,
|
|
22
|
-
error: meta.touched || meta.initialError === meta.error ? meta.error : undefined
|
|
23
|
-
});
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { useField } from 'formik';
|
|
3
|
+
import { TextArea } from './TextArea';
|
|
4
|
+
export const TextAreaFormik = ({ name, validate, ...props }) => {
|
|
5
|
+
const [field, meta] = useField({
|
|
6
|
+
name,
|
|
7
|
+
validate,
|
|
8
|
+
});
|
|
9
|
+
return (React.createElement(TextArea, { ...props, name: name, value: field.value, onChange: field.onChange, onBlur: field.onBlur, error: meta.touched || meta.initialError === meta.error ? meta.error : undefined }));
|
|
24
10
|
};
|
|
25
|
-
|
|
26
|
-
exports.TextAreaFormik = TextAreaFormik;
|
|
27
|
-
//# sourceMappingURL=TextAreaFormik.js.map
|
|
11
|
+
//# sourceMappingURL=TextAreaFormik.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextAreaFormik.js","sources":["../../src/components/TextAreaFormik.tsx"],"
|
|
1
|
+
{"version":3,"file":"TextAreaFormik.js","sourceRoot":"","sources":["../../src/components/TextAreaFormik.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuB,MAAM,OAAO,CAAA;AAC3C,OAAO,EAAkB,QAAQ,EAAE,MAAM,QAAQ,CAAA;AAEjD,OAAO,EAAE,QAAQ,EAAsB,MAAM,YAAY,CAAA;AAQzD,MAAM,CAAC,MAAM,cAAc,GAAG,CAAmB,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,KAAK,EAA0B,EAAgB,EAAE;IACrH,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,QAAQ,CAAqB;QACjD,IAAI;QACJ,QAAQ;KACT,CAAC,CAAA;IAEF,OAAO,CACL,oBAAC,QAAQ,OACH,KAAK,EACT,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,MAAM,EAAE,KAAK,CAAC,MAAM,EACpB,KAAK,EAAE,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,YAAY,KAAK,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,GAChF,CACH,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -1,19 +1,16 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var React = require('react');
|
|
4
|
-
var cn = require('classnames');
|
|
5
|
-
var reactFeather = require('react-feather');
|
|
6
|
-
var reactUid = require('react-uid');
|
|
7
|
-
var mergeRefs = require('react-merge-refs');
|
|
8
|
-
var helpers_forms = require('../helpers/forms.js');
|
|
9
|
-
var components_Icon = require('./Icon.js');
|
|
10
|
-
var components_Error = require('./Error.js');
|
|
11
|
-
var components_FieldHeader = require('./FieldHeader.js');
|
|
12
|
-
var components_Help = require('./Help.js');
|
|
13
|
-
var components_IconButton = require('./IconButton.js');
|
|
14
|
-
var TextField_module = require('./TextField.module.scss.js');
|
|
15
|
-
|
|
16
1
|
// https://zeroheight.com/11d0e6dac/p/316944-text-field
|
|
2
|
+
import React, { forwardRef, useRef, } from 'react';
|
|
3
|
+
import cn from 'classnames';
|
|
4
|
+
import { X } from 'react-feather';
|
|
5
|
+
import { useUID } from 'react-uid';
|
|
6
|
+
import mergeRefs from 'react-merge-refs';
|
|
7
|
+
import { triggerNativeInputChange } from '../helpers/forms';
|
|
8
|
+
import { Icon } from './Icon';
|
|
9
|
+
import { Error, errorId } from './Error';
|
|
10
|
+
import { FieldHeader } from './FieldHeader';
|
|
11
|
+
import { helpTooltipId } from './Help';
|
|
12
|
+
import { IconButton } from './IconButton';
|
|
13
|
+
import styles from './TextField.module.scss';
|
|
17
14
|
/**
|
|
18
15
|
* ### Purpose
|
|
19
16
|
* Forms require input from users. When you only need basic information, use text fields to gather exactly what you need.
|
|
@@ -29,143 +26,40 @@ var TextField_module = require('./TextField.module.scss.js');
|
|
|
29
26
|
* Use a text input when the expected user input is a single line of text.
|
|
30
27
|
*/
|
|
31
28
|
const TextFieldInternal = (props, ref) => {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
clearable,
|
|
66
|
-
iconSize = size,
|
|
67
|
-
errorTooltipPlacement = 'top',
|
|
68
|
-
children,
|
|
69
|
-
containerRef,
|
|
70
|
-
...htmlAttrs
|
|
71
|
-
} = props;
|
|
72
|
-
const autoId = reactUid.useUID();
|
|
73
|
-
const id = explicitId !== null && explicitId !== void 0 ? explicitId : autoId;
|
|
74
|
-
const inputRef = React.useRef(null);
|
|
75
|
-
const isNotEmpty = value !== undefined && (typeof value === 'string' ? value.length > 0 : true);
|
|
76
|
-
const mergedRef = ref ? mergeRefs([ref, inputRef]) : inputRef;
|
|
77
|
-
const handleClear = () => {
|
|
78
|
-
if (inputRef.current) {
|
|
79
|
-
helpers_forms.triggerNativeInputChange('', inputRef.current);
|
|
80
|
-
}
|
|
81
|
-
};
|
|
82
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
83
|
-
"data-test": dataTest,
|
|
84
|
-
className: cn(TextField_module.default.container, {
|
|
85
|
-
[TextField_module.default.withError]: 'error' in props,
|
|
86
|
-
[TextField_module.default.small]: size === 'small',
|
|
87
|
-
[TextField_module.default.large]: size === 'large',
|
|
88
|
-
[TextField_module.default.disabled]: disabled,
|
|
89
|
-
[TextField_module.default.hasError]: error,
|
|
90
|
-
[TextField_module.default.withIcon]: inputIcon,
|
|
91
|
-
[TextField_module.default.empty]: value === undefined
|
|
92
|
-
}, className)
|
|
93
|
-
}, /*#__PURE__*/React.createElement(components_FieldHeader.FieldHeader, {
|
|
94
|
-
id: id,
|
|
95
|
-
size: size,
|
|
96
|
-
label: label,
|
|
97
|
-
variant: variant,
|
|
98
|
-
helperText: helperText,
|
|
99
|
-
showAriaLabel: showAriaLabel,
|
|
100
|
-
labelClassName: labelClassName,
|
|
101
|
-
"data-test": `${dataTest}-header`,
|
|
102
|
-
helperTextTooltipWordBreak: helperTextTooltipWordBreak
|
|
103
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
104
|
-
className: TextField_module.default.inputBlock
|
|
105
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
106
|
-
ref: containerRef,
|
|
107
|
-
className: cn(TextField_module.default.inputContainer, inputContainerClassName)
|
|
108
|
-
}, /*#__PURE__*/React.createElement("input", {
|
|
109
|
-
type: type,
|
|
110
|
-
id: id,
|
|
111
|
-
ref: mergedRef,
|
|
112
|
-
value: value !== null && value !== void 0 ? value : '',
|
|
113
|
-
name: name,
|
|
114
|
-
onChange: onChange,
|
|
115
|
-
onBlur: onBlur,
|
|
116
|
-
onFocus: onFocus,
|
|
117
|
-
readOnly: readOnly,
|
|
118
|
-
onKeyDown: onKeyDown,
|
|
119
|
-
onClick: onClick,
|
|
120
|
-
"aria-label": showAriaLabel ? ariaLabel || label : undefined,
|
|
121
|
-
"aria-invalid": !!error,
|
|
122
|
-
"aria-required": required,
|
|
123
|
-
"aria-describedby": helperText && components_Help.helpTooltipId(id),
|
|
124
|
-
"aria-errormessage": error && components_Error.errorId(id),
|
|
125
|
-
disabled: disabled,
|
|
126
|
-
placeholder: placeholder,
|
|
127
|
-
className: cn(inputClassName, {
|
|
128
|
-
[TextField_module.default.trailingIcon]: inputTrailingIcon
|
|
129
|
-
}),
|
|
130
|
-
...htmlAttrs
|
|
131
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
132
|
-
className: cn(TextField_module.default.borderOverlay, inputBorderOverlayClassName)
|
|
133
|
-
}), inputIcon && (/*#__PURE__*/React.createElement(components_Icon.Icon, {
|
|
134
|
-
icon: inputIcon,
|
|
135
|
-
ariaLabel: label,
|
|
136
|
-
containerClassName: cn(TextField_module.default.inputIconContainer, TextField_module.default.inputLeftIconContainer),
|
|
137
|
-
className: TextField_module.default.inputIcon,
|
|
138
|
-
size: "small"
|
|
139
|
-
})), clearable && !disabled && isNotEmpty && (/*#__PURE__*/React.createElement(components_IconButton.IconButton, {
|
|
140
|
-
icon: reactFeather.X,
|
|
141
|
-
size: size,
|
|
142
|
-
ariaLabel: "Clear field",
|
|
143
|
-
onClick: handleClear,
|
|
144
|
-
className: TextField_module.default.clearButton,
|
|
145
|
-
"data-test": dataTest ? `${dataTest}-clear` : undefined
|
|
146
|
-
})), inputContainerChild, inputTrailingIcon && inputTrailingIconLabel && (/*#__PURE__*/React.createElement(components_Icon.Icon, {
|
|
147
|
-
icon: inputTrailingIcon,
|
|
148
|
-
ariaLabel: inputTrailingIconLabel,
|
|
149
|
-
containerClassName: cn(TextField_module.default.inputIconContainer, TextField_module.default.inputTrailingIconContainer),
|
|
150
|
-
className: TextField_module.default.inputIconTrailing,
|
|
151
|
-
size: iconSize
|
|
152
|
-
}))), children), /*#__PURE__*/React.createElement(components_Error.Error, {
|
|
153
|
-
truncated: true,
|
|
154
|
-
inputId: id,
|
|
155
|
-
error: error,
|
|
156
|
-
"data-test": `${dataTest}-error`,
|
|
157
|
-
tooltipPlacement: errorTooltipPlacement,
|
|
158
|
-
className: cn(TextField_module.default.errorContainer, errorClassName)
|
|
159
|
-
}));
|
|
29
|
+
const { 'data-test': dataTest = 'text-field', ariaLabel, className, disabled, error, errorClassName, helperText, helperTextTooltipWordBreak, id: explicitId, inputClassName, inputContainerChild, inputContainerClassName, inputBorderOverlayClassName, inputIcon, inputTrailingIcon, inputTrailingIconLabel, label, labelClassName, showAriaLabel = false, name, size = 'medium', variant = 'primary', onBlur, onFocus, onChange, onKeyDown, placeholder, required, type = 'text', value, readOnly, onClick, clearable, iconSize = size, errorTooltipPlacement = 'top', children, containerRef, ...htmlAttrs } = props;
|
|
30
|
+
const autoId = useUID();
|
|
31
|
+
const id = explicitId !== null && explicitId !== void 0 ? explicitId : autoId;
|
|
32
|
+
const inputRef = useRef(null);
|
|
33
|
+
const isNotEmpty = value !== undefined && (typeof value === 'string' ? value.length > 0 : true);
|
|
34
|
+
const mergedRef = ref ? mergeRefs([ref, inputRef]) : inputRef;
|
|
35
|
+
const handleClear = () => {
|
|
36
|
+
if (inputRef.current) {
|
|
37
|
+
triggerNativeInputChange('', inputRef.current);
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
return (React.createElement("div", { "data-test": dataTest, className: cn(styles.container, {
|
|
41
|
+
[styles.withError]: 'error' in props,
|
|
42
|
+
[styles.small]: size === 'small',
|
|
43
|
+
[styles.large]: size === 'large',
|
|
44
|
+
[styles.disabled]: disabled,
|
|
45
|
+
[styles.hasError]: error,
|
|
46
|
+
[styles.withIcon]: inputIcon,
|
|
47
|
+
[styles.empty]: value === undefined,
|
|
48
|
+
}, className) },
|
|
49
|
+
React.createElement(FieldHeader, { id: id, size: size, label: label, variant: variant, helperText: helperText, showAriaLabel: showAriaLabel, labelClassName: labelClassName, "data-test": `${dataTest}-header`, helperTextTooltipWordBreak: helperTextTooltipWordBreak }),
|
|
50
|
+
React.createElement("div", { className: styles.inputBlock },
|
|
51
|
+
React.createElement("div", { ref: containerRef, className: cn(styles.inputContainer, inputContainerClassName) },
|
|
52
|
+
React.createElement("input", { type: type, id: id, ref: mergedRef, value: value !== null && value !== void 0 ? value : '', name: name, onChange: onChange, onBlur: onBlur, onFocus: onFocus, readOnly: readOnly, onKeyDown: onKeyDown, onClick: onClick, "aria-label": showAriaLabel ? ariaLabel || label : undefined, "aria-invalid": !!error, "aria-required": required, "aria-describedby": helperText && helpTooltipId(id), "aria-errormessage": error && errorId(id), disabled: disabled, placeholder: placeholder, className: cn(inputClassName, {
|
|
53
|
+
[styles.trailingIcon]: inputTrailingIcon,
|
|
54
|
+
}), ...htmlAttrs }),
|
|
55
|
+
React.createElement("div", { className: cn(styles.borderOverlay, inputBorderOverlayClassName) }),
|
|
56
|
+
inputIcon && (React.createElement(Icon, { icon: inputIcon, ariaLabel: label, containerClassName: cn(styles.inputIconContainer, styles.inputLeftIconContainer), className: styles.inputIcon, size: "small" })),
|
|
57
|
+
clearable && !disabled && isNotEmpty && (React.createElement(IconButton, { icon: X, size: size, ariaLabel: "Clear field", onClick: handleClear, className: styles.clearButton, "data-test": dataTest ? `${dataTest}-clear` : undefined })),
|
|
58
|
+
inputContainerChild,
|
|
59
|
+
inputTrailingIcon && inputTrailingIconLabel && (React.createElement(Icon, { icon: inputTrailingIcon, ariaLabel: inputTrailingIconLabel, containerClassName: cn(styles.inputIconContainer, styles.inputTrailingIconContainer), className: styles.inputIconTrailing, size: iconSize }))),
|
|
60
|
+
children),
|
|
61
|
+
React.createElement(Error, { truncated: true, inputId: id, error: error, "data-test": `${dataTest}-error`, tooltipPlacement: errorTooltipPlacement, className: cn(styles.errorContainer, errorClassName) })));
|
|
160
62
|
};
|
|
161
|
-
const TextFieldWithRef =
|
|
162
|
-
const TextField = ({
|
|
163
|
-
|
|
164
|
-
...props
|
|
165
|
-
}) => (/*#__PURE__*/React.createElement(TextFieldWithRef, {
|
|
166
|
-
ref: mRef,
|
|
167
|
-
...props
|
|
168
|
-
}));
|
|
169
|
-
|
|
170
|
-
exports.TextField = TextField;
|
|
171
|
-
//# sourceMappingURL=TextField.js.map
|
|
63
|
+
const TextFieldWithRef = forwardRef(TextFieldInternal);
|
|
64
|
+
export const TextField = ({ mRef, ...props }) => (React.createElement(TextFieldWithRef, { ref: mRef, ...props }));
|
|
65
|
+
//# sourceMappingURL=TextField.js.map
|