@sprinklrjs/spaceweb 12.33.2 → 14.11.3
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/ClientOnly.d.ts +1 -1
- package/ClientOnly.js +2 -2
- package/__patches/apply.js +13 -0
- package/__patches/data.json +4 -0
- package/a11y/LiveAnnouncer.d.ts +18 -0
- package/a11y/LiveAnnouncer.js +116 -0
- package/a11y/StatusMessage.d.ts +6 -0
- package/a11y/StatusMessage.js +17 -0
- package/a11y/index.d.ts +3 -0
- package/a11y/index.js +9 -0
- package/a11y/types.d.ts +23 -0
- package/allComponentsAndUtilities.d.ts +1 -0
- package/allComponentsAndUtilities.js +57 -56
- package/asyncSelect/asyncSelect.d.ts +5 -5
- package/asyncSelect/asyncSelect.js +4 -51
- package/asyncSelect/groupedAsyncSelect.d.ts +4 -4
- package/asyncSelect/groupedAsyncSelect.js +5 -36
- package/asyncSelect/helpers.d.ts +18 -9
- package/asyncSelect/helpers.js +21 -10
- package/asyncSelect/hooks/useAsyncOptionHandlers.d.ts +13 -15
- package/asyncSelect/hooks/useAsyncOptionHandlers.js +78 -69
- package/asyncSelect/hooks/useAsyncOptions.d.ts +31 -0
- package/asyncSelect/hooks/useAsyncOptions.js +49 -0
- package/asyncSelect/hooks/useAsyncSelect.d.ts +541 -9
- package/asyncSelect/hooks/useAsyncSelect.js +12 -187
- package/asyncSelect/hooks/useAsyncSelectAdapter.d.ts +14 -0
- package/asyncSelect/hooks/useAsyncSelectAdapter.js +58 -0
- package/asyncSelect/hooks/useBaseAsyncSelect.d.ts +17 -0
- package/asyncSelect/hooks/useBaseAsyncSelect.js +270 -0
- package/asyncSelect/hooks/useCreateOption.d.ts +10 -0
- package/asyncSelect/hooks/useCreateOption.js +44 -0
- package/asyncSelect/hooks/useGroupAsyncSelectAdapter.d.ts +13 -0
- package/asyncSelect/hooks/useGroupAsyncSelectAdapter.js +28 -0
- package/asyncSelect/hooks/useGroupedAsyncSelect.d.ts +444 -0
- package/asyncSelect/hooks/useGroupedAsyncSelect.js +31 -0
- package/asyncSelect/hooks/useInputChangeHandler.d.ts +2 -2
- package/asyncSelect/hooks/useInputChangeHandler.js +1 -2
- package/asyncSelect/hooks/useResolveSelectedOptions.js +16 -13
- package/asyncSelect/index.d.ts +8 -2
- package/asyncSelect/index.js +14 -3
- package/asyncSelect/locale.d.ts +1 -0
- package/asyncSelect/types.d.ts +26 -15
- package/asyncSelect/utils/defaultAsyncSelectFilterOptions.d.ts +2 -0
- package/asyncSelect/utils/defaultAsyncSelectFilterOptions.js +7 -0
- package/asyncSelect/utils/defaultCreateOption.d.ts +5 -0
- package/asyncSelect/utils/defaultCreateOption.js +12 -0
- package/avatar/avatar-group.d.ts +14 -3
- package/avatar/avatar-group.js +7 -45
- package/avatar/avatar.d.ts +4 -1
- package/avatar/avatar.js +35 -19
- package/avatar/components/grid-variant.d.ts +10 -0
- package/avatar/components/grid-variant.js +64 -0
- package/avatar/components/linear-variant.d.ts +3 -0
- package/avatar/components/linear-variant.js +33 -0
- package/avatar/constants.d.ts +47 -0
- package/avatar/constants.js +52 -1
- package/avatar/hooks/useAvatarGroupChildren.d.ts +13 -0
- package/avatar/hooks/useAvatarGroupChildren.js +53 -0
- package/avatar/index.d.ts +2 -2
- package/avatar/index.js +2 -1
- package/avatar/styled-component.d.ts +4 -32
- package/avatar/styled-component.js +27 -29
- package/avatar/types.d.ts +22 -18
- package/avatar/useAvatarColor.js +1 -1
- package/avatar/utils/avatarGroupHelpers.d.ts +13 -0
- package/avatar/utils/avatarGroupHelpers.js +43 -0
- package/avatar/utils/index.d.ts +2 -0
- package/avatar/utils/index.js +8 -0
- package/badge/badge.d.ts +4 -1
- package/badge/badge.js +41 -5
- package/badge/cvaConfigs.d.ts +1 -0
- package/badge/cvaConfigs.js +65 -0
- package/badge/styled-component.d.ts +4 -2
- package/badge/styled-component.js +5 -57
- package/badge/types.d.ts +8 -6
- package/banner/banner-item.d.ts +3 -3
- package/banner/banner-item.js +3 -3
- package/banner/banner.d.ts +3 -18
- package/banner/banner.js +58 -41
- package/banner/cvaConfig.d.ts +2 -0
- package/banner/cvaConfig.js +41 -0
- package/banner/locale.d.ts +6 -1
- package/banner/styled-component.d.ts +7 -6
- package/banner/styled-component.js +21 -33
- package/banner/types.d.ts +19 -6
- package/base-button/BaseButton.d.ts +8 -5
- package/base-button/BaseButton.js +21 -10
- package/base-button/styled-components.d.ts +3 -3
- package/base-button/styled-components.js +4 -4
- package/base-button/types.d.ts +9 -1
- package/baseui/accordion/accordion.d.ts +1 -1
- package/baseui/accordion/accordion.js +9 -9
- package/baseui/accordion/index.d.ts +1 -1
- package/baseui/accordion/index.js +6 -6
- package/baseui/accordion/locale.d.ts +1 -1
- package/baseui/accordion/panel.js +23 -21
- package/baseui/accordion/stateful-panel-container.js +5 -5
- package/baseui/accordion/stateful-panel.js +4 -4
- package/baseui/accordion/stateless-accordion.js +8 -8
- package/baseui/accordion/styled-components.d.ts +7 -7
- package/baseui/accordion/styled-components.js +17 -6
- package/baseui/accordion/types.d.ts +32 -32
- package/baseui/datepicker/calendar-header.d.ts +3 -8
- package/baseui/datepicker/calendar-header.js +43 -49
- package/baseui/datepicker/calendar.d.ts +3 -56
- package/baseui/datepicker/calendar.js +82 -212
- package/baseui/datepicker/day.d.ts +19 -12
- package/baseui/datepicker/day.js +61 -57
- package/baseui/datepicker/index.d.ts +1 -1
- package/baseui/datepicker/index.js +4 -4
- package/baseui/datepicker/locale.d.ts +1 -1
- package/baseui/datepicker/month.d.ts +8 -5
- package/baseui/datepicker/month.js +52 -22
- package/baseui/datepicker/styled-components.d.ts +18 -19
- package/baseui/datepicker/styled-components.js +100 -143
- package/baseui/datepicker/types.d.ts +78 -60
- package/baseui/datepicker/utils/calendar-header-helpers.d.ts +3 -3
- package/baseui/datepicker/utils/calendar-header-helpers.js +1 -1
- package/baseui/datepicker/utils/date-fns-adapter.js +1 -1
- package/baseui/datepicker/utils/date-helpers.d.ts +2 -0
- package/baseui/datepicker/utils/date-helpers.js +37 -74
- package/baseui/datepicker/utils/index.d.ts +2 -1
- package/baseui/datepicker/utils/index.js +2 -2
- package/baseui/datepicker/utils/types.d.ts +7 -7
- package/baseui/datepicker/week.d.ts +7 -6
- package/baseui/datepicker/week.js +18 -18
- package/baseui/header-navigation/header-navigation.js +6 -6
- package/baseui/header-navigation/index.js +2 -2
- package/baseui/header-navigation/styled-components.d.ts +3 -3
- package/baseui/header-navigation/styled-components.js +5 -1
- package/baseui/header-navigation/types.d.ts +4 -4
- package/baseui/helpers/index.js +1 -1
- package/baseui/helpers/overrides.d.ts +15 -37
- package/baseui/helpers/overrides.js +21 -104
- package/baseui/helpers/types.d.ts +2 -2
- package/baseui/input/index.d.ts +0 -6
- package/baseui/input/index.js +2 -20
- package/baseui/input/types.d.ts +33 -45
- package/baseui/layer/index.js +4 -4
- package/baseui/layer/layer.js +9 -14
- package/baseui/layer/layers-manager.js +19 -16
- package/baseui/layer/tether.d.ts +2 -1
- package/baseui/layer/tether.js +21 -16
- package/baseui/layer/types.d.ts +23 -19
- package/baseui/menu/index.js +1 -1
- package/baseui/menu/types.d.ts +57 -58
- package/baseui/modal/close-icon.js +1 -1
- package/baseui/modal/constants.d.ts +1 -0
- package/baseui/modal/constants.js +2 -1
- package/baseui/modal/focus-once.d.ts +1 -1
- package/baseui/modal/focus-once.js +2 -2
- package/baseui/modal/index.d.ts +2 -2
- package/baseui/modal/index.js +6 -7
- package/baseui/modal/locale.d.ts +1 -1
- package/baseui/modal/modal.js +32 -27
- package/baseui/modal/styled-components.d.ts +4 -5
- package/baseui/modal/styled-components.js +17 -58
- package/baseui/modal/types.d.ts +18 -18
- package/baseui/modal/utils.d.ts +1 -0
- package/baseui/modal/utils.js +6 -0
- package/baseui/popover/index.js +4 -4
- package/baseui/popover/popover.js +56 -28
- package/baseui/popover/stateful-container.d.ts +5 -3
- package/baseui/popover/stateful-container.js +34 -12
- package/baseui/popover/stateful-popover.js +4 -4
- package/baseui/popover/styled-components.d.ts +6 -16
- package/baseui/popover/styled-components.js +57 -45
- package/baseui/popover/types.d.ts +36 -29
- package/baseui/popover/utils.d.ts +1 -0
- package/baseui/popover/utils.js +16 -14
- package/baseui/select/autosize-input.d.ts +1 -1
- package/baseui/select/autosize-input.js +9 -10
- package/baseui/select/constants.d.ts +3 -0
- package/baseui/select/constants.js +4 -1
- package/baseui/select/default-props.d.ts +8 -19
- package/baseui/select/default-props.js +2 -1
- package/baseui/select/dropdown.d.ts +2 -2
- package/baseui/select/dropdown.js +60 -48
- package/baseui/select/index.d.ts +3 -3
- package/baseui/select/index.js +14 -12
- package/baseui/select/locale.d.ts +1 -1
- package/baseui/select/multi-select.js +3 -3
- package/baseui/select/multi-value.d.ts +3 -1
- package/baseui/select/multi-value.js +8 -7
- package/baseui/select/select-component.d.ts +41 -43
- package/baseui/select/select-component.js +397 -158
- package/baseui/select/select.js +4 -4
- package/baseui/select/single-select.js +3 -3
- package/baseui/select/stateful-select-container.js +5 -5
- package/baseui/select/stateful-select.d.ts +8 -19
- package/baseui/select/stateful-select.js +4 -4
- package/baseui/select/styled-components.d.ts +15 -14
- package/baseui/select/styled-components.js +33 -64
- package/baseui/select/types.d.ts +103 -59
- package/baseui/select/utils/default-filter-options.d.ts +18 -3
- package/baseui/select/utils/default-filter-options.js +25 -13
- package/baseui/select/utils/index.js +1 -1
- package/baseui/select/value.d.ts +2 -1
- package/baseui/select/value.js +12 -7
- package/baseui/timepicker/index.js +2 -2
- package/baseui/timepicker/timepicker.d.ts +5 -4
- package/baseui/timepicker/timepicker.js +110 -50
- package/baseui/timepicker/types.d.ts +8 -6
- package/baseui/tree-view/index.d.ts +1 -1
- package/baseui/tree-view/index.js +5 -5
- package/baseui/tree-view/stateful-container.d.ts +1 -1
- package/baseui/tree-view/stateful-container.js +5 -5
- package/baseui/tree-view/stateful-tree-view.js +3 -3
- package/baseui/tree-view/styled-components.d.ts +6 -6
- package/baseui/tree-view/styled-components.js +14 -15
- package/baseui/tree-view/tree-label-interactable.d.ts +2 -2
- package/baseui/tree-view/tree-label-interactable.js +5 -5
- package/baseui/tree-view/tree-label.js +10 -10
- package/baseui/tree-view/tree-node.js +11 -10
- package/baseui/tree-view/tree-view.js +9 -9
- package/baseui/tree-view/types.d.ts +20 -20
- package/baseui/tree-view/utils.js +1 -1
- package/baseui/utils/react-18.js +1 -1
- package/box/Box.d.ts +3 -3
- package/box/Box.js +3 -3
- package/box/index.js +2 -2
- package/box/types.d.ts +1 -1
- package/breadcrumb/breadcrumb-ellipsis.d.ts +3 -0
- package/breadcrumb/breadcrumb-ellipsis.js +21 -0
- package/breadcrumb/breadcrumb-item.d.ts +23 -5
- package/breadcrumb/breadcrumb-item.js +33 -14
- package/breadcrumb/breadcrumb.d.ts +3 -1
- package/breadcrumb/breadcrumb.js +46 -17
- package/breadcrumb/hooks/useBreadCrumbWidths.d.ts +8 -0
- package/breadcrumb/hooks/useBreadCrumbWidths.js +49 -0
- package/breadcrumb/styled-components.d.ts +5 -5
- package/breadcrumb/styled-components.js +5 -11
- package/breadcrumb/types.d.ts +17 -5
- package/breadcrumb/utils/calculateVisibleItems.d.ts +2 -0
- package/breadcrumb/utils/calculateVisibleItems.js +22 -0
- package/button/Button.d.ts +17 -18
- package/button/Button.js +97 -59
- package/button/CitationButton/CitationButton.d.ts +4 -0
- package/button/CitationButton/CitationButton.js +13 -0
- package/button/CitationButton/index.d.ts +3 -0
- package/button/CitationButton/index.js +6 -0
- package/button/CitationButton/types.d.ts +3 -0
- package/button/DropdownEnhancer.d.ts +17 -0
- package/button/DropdownEnhancer.js +47 -0
- package/button/IconButton/IconButton.js +40 -15
- package/button/IconButton/index.js +2 -2
- package/button/IconButton/styled-components.d.ts +3 -3
- package/button/IconButton/styled-components.js +138 -79
- package/button/IconButton/types.d.ts +6 -6
- package/button/IconTextButton/IconTextButton.js +5 -6
- package/button/IconTextButton/index.js +2 -2
- package/button/IconTextButton/styled-components.d.ts +2 -3
- package/button/IconTextButton/styled-components.js +11 -39
- package/button/IconTextButton/types.d.ts +3 -3
- package/button/button-enhancers.d.ts +34 -0
- package/button/button-enhancers.js +24 -0
- package/button/helpers.d.ts +47 -0
- package/button/helpers.js +360 -0
- package/button/index.d.ts +5 -1
- package/button/index.js +7 -6
- package/button/styled-components.d.ts +14 -43
- package/button/styled-components.js +134 -457
- package/button/types.d.ts +43 -19
- package/button-group/ButtonGroup.d.ts +10 -6
- package/button-group/ButtonGroup.js +34 -8
- package/button-group/StatefulButtonGroup.d.ts +9 -5
- package/button-group/StatefulButtonGroup.js +8 -8
- package/button-group/helpers.d.ts +14 -0
- package/button-group/helpers.js +79 -0
- package/button-group/styled-components.d.ts +15 -44
- package/button-group/styled-components.js +112 -113
- package/button-group/types.d.ts +29 -7
- package/checkbox/checkbox.d.ts +5 -8
- package/checkbox/checkbox.js +138 -17
- package/checkbox/constants.d.ts +13 -0
- package/checkbox/constants.js +16 -0
- package/checkbox/hooks/useStatefulCheckbox.d.ts +14 -0
- package/checkbox/hooks/useStatefulCheckbox.js +33 -0
- package/checkbox/index.d.ts +4 -4
- package/checkbox/index.js +15 -15
- package/checkbox/stateful-checkbox.js +12 -0
- package/checkbox/styled-components.d.ts +11 -4
- package/checkbox/styled-components.js +169 -94
- package/checkbox/types.d.ts +70 -18
- package/col/index.js +1 -1
- package/color-picker/ColorPalette.d.ts +4 -3
- package/color-picker/ColorPalette.js +19 -13
- package/color-picker/ColorPicker.d.ts +11 -3
- package/color-picker/ColorPicker.js +63 -43
- package/color-picker/ColorSelector.d.ts +3 -2
- package/color-picker/ColorSelector.js +36 -18
- package/color-picker/CustomColorSelector.d.ts +10 -3
- package/color-picker/CustomColorSelector.js +126 -21
- package/color-picker/GradientColorPicker.d.ts +3 -5
- package/color-picker/GradientColorPicker.js +54 -44
- package/color-picker/Swatch.d.ts +7 -8
- package/color-picker/Swatch.js +14 -27
- package/color-picker/adaptiveThemeColor.d.ts +31 -0
- package/color-picker/adaptiveThemeColor.js +85 -0
- package/color-picker/colors.d.ts +2 -1
- package/color-picker/colors.js +24 -23
- package/color-picker/constants.d.ts +1 -0
- package/color-picker/constants.js +2 -1
- package/color-picker/index.d.ts +8 -3
- package/color-picker/index.js +15 -1
- package/color-picker/locale.d.ts +7 -1
- package/color-picker/styled-component.d.ts +1 -1
- package/color-picker/styled-component.js +1 -1
- package/color-picker/types.d.ts +73 -29
- package/color-picker/utils.d.ts +12 -16
- package/color-picker/utils.js +34 -20
- package/container/ContainerProps.d.ts +1 -1
- package/currency/Currency.d.ts +4 -1
- package/currency/Currency.js +2 -1
- package/currency/index.js +2 -2
- package/currency/types.d.ts +1 -1
- package/currency/utils.js +1 -1
- package/date-input/DateInput.d.ts +5 -2
- package/date-input/DateInput.js +159 -53
- package/date-input/constants.d.ts +0 -24
- package/date-input/constants.js +1 -25
- package/date-input/index.d.ts +1 -0
- package/date-input/index.js +7 -2
- package/date-input/types.d.ts +7 -11
- package/date-input/utils.d.ts +14 -1
- package/date-input/utils.js +31 -63
- package/date-picker/Calendar.d.ts +4 -1
- package/date-picker/Calendar.js +61 -71
- package/date-picker/DateInput.d.ts +11 -4
- package/date-picker/DateInput.js +107 -73
- package/date-picker/DatePicker.d.ts +4 -1
- package/date-picker/DatePicker.js +3 -2
- package/date-picker/DatePickerContent.d.ts +13 -9
- package/date-picker/DatePickerContent.js +107 -57
- package/date-picker/DatePickerInput.d.ts +16 -3
- package/date-picker/DatePickerInput.js +55 -56
- package/date-picker/DateTimeContainer.d.ts +7 -5
- package/date-picker/DateTimeContainer.js +15 -25
- package/date-picker/InputFieldIcon.d.ts +14 -0
- package/date-picker/InputFieldIcon.js +21 -0
- package/date-picker/StatelessDatePicker.d.ts +2 -2
- package/date-picker/StatelessDatePicker.js +39 -38
- package/date-picker/TimeInput.d.ts +6 -2
- package/date-picker/TimeInput.js +14 -9
- package/date-picker/TimezoneDisplay.d.ts +5 -0
- package/date-picker/TimezoneDisplay.js +20 -0
- package/date-picker/constants.d.ts +12 -0
- package/date-picker/constants.js +7 -1
- package/date-picker/index.d.ts +2 -1
- package/date-picker/index.js +6 -6
- package/date-picker/locale.d.ts +13 -1
- package/date-picker/stateful-container.js +24 -14
- package/date-picker/styled-components.d.ts +8 -7
- package/date-picker/styled-components.js +92 -51
- package/date-picker/types.d.ts +20 -13
- package/date-picker/useDatePickerState.d.ts +1 -1
- package/date-picker/useDatePickerState.js +1 -1
- package/date-picker/utils.d.ts +12 -4
- package/date-picker/utils.js +39 -7
- package/date-time/DateTime.d.ts +4 -1
- package/date-time/DateTime.js +2 -1
- package/date-time/index.js +1 -1
- package/date-time/types.d.ts +1 -1
- package/date-time/useDateTime.js +1 -1
- package/esm/ClientOnly.d.ts +1 -1
- package/esm/ClientOnly.js +1 -1
- package/esm/__patches/apply.js +11 -0
- package/esm/__patches/data.json +4 -0
- package/esm/a11y/LiveAnnouncer.d.ts +18 -0
- package/esm/a11y/LiveAnnouncer.js +110 -0
- package/esm/a11y/StatusMessage.d.ts +6 -0
- package/esm/a11y/StatusMessage.js +13 -0
- package/esm/a11y/index.d.ts +3 -0
- package/esm/a11y/index.js +2 -0
- package/esm/a11y/types.d.ts +23 -0
- package/esm/allComponentsAndUtilities.d.ts +1 -0
- package/esm/allComponentsAndUtilities.js +2 -0
- package/esm/asyncSelect/asyncSelect.d.ts +5 -5
- package/esm/asyncSelect/asyncSelect.js +5 -53
- package/esm/asyncSelect/groupedAsyncSelect.d.ts +4 -4
- package/esm/asyncSelect/groupedAsyncSelect.js +5 -36
- package/esm/asyncSelect/helpers.d.ts +18 -9
- package/esm/asyncSelect/helpers.js +18 -7
- package/esm/asyncSelect/hooks/useAsyncOptionHandlers.d.ts +13 -15
- package/esm/asyncSelect/hooks/useAsyncOptionHandlers.js +73 -64
- package/esm/asyncSelect/hooks/useAsyncOptions.d.ts +31 -0
- package/esm/asyncSelect/hooks/useAsyncOptions.js +45 -0
- package/esm/asyncSelect/hooks/useAsyncSelect.d.ts +541 -9
- package/esm/asyncSelect/hooks/useAsyncSelect.js +15 -190
- package/esm/asyncSelect/hooks/useAsyncSelectAdapter.d.ts +14 -0
- package/esm/asyncSelect/hooks/useAsyncSelectAdapter.js +54 -0
- package/esm/asyncSelect/hooks/useBaseAsyncSelect.d.ts +17 -0
- package/esm/asyncSelect/hooks/useBaseAsyncSelect.js +266 -0
- package/esm/asyncSelect/hooks/useCreateOption.d.ts +10 -0
- package/esm/asyncSelect/hooks/useCreateOption.js +40 -0
- package/esm/asyncSelect/hooks/useGroupAsyncSelectAdapter.d.ts +13 -0
- package/esm/asyncSelect/hooks/useGroupAsyncSelectAdapter.js +24 -0
- package/esm/asyncSelect/hooks/useGroupedAsyncSelect.d.ts +444 -0
- package/esm/asyncSelect/hooks/useGroupedAsyncSelect.js +27 -0
- package/esm/asyncSelect/hooks/useInputChangeHandler.d.ts +2 -2
- package/esm/asyncSelect/hooks/useInputChangeHandler.js +1 -2
- package/esm/asyncSelect/hooks/useResolveSelectedOptions.js +11 -8
- package/esm/asyncSelect/index.d.ts +8 -2
- package/esm/asyncSelect/index.js +6 -1
- package/esm/asyncSelect/locale.d.ts +1 -0
- package/esm/asyncSelect/types.d.ts +26 -15
- package/esm/asyncSelect/utils/defaultAsyncSelectFilterOptions.d.ts +2 -0
- package/esm/asyncSelect/utils/defaultAsyncSelectFilterOptions.js +3 -0
- package/esm/asyncSelect/utils/defaultCreateOption.d.ts +5 -0
- package/esm/asyncSelect/utils/defaultCreateOption.js +7 -0
- package/esm/avatar/avatar-group.d.ts +14 -3
- package/esm/avatar/avatar-group.js +8 -46
- package/esm/avatar/avatar.d.ts +4 -1
- package/esm/avatar/avatar.js +28 -12
- package/esm/avatar/components/grid-variant.d.ts +10 -0
- package/esm/avatar/components/grid-variant.js +60 -0
- package/esm/avatar/components/linear-variant.d.ts +3 -0
- package/esm/avatar/components/linear-variant.js +31 -0
- package/esm/avatar/constants.d.ts +47 -0
- package/esm/avatar/constants.js +51 -0
- package/esm/avatar/hooks/useAvatarGroupChildren.d.ts +13 -0
- package/esm/avatar/hooks/useAvatarGroupChildren.js +48 -0
- package/esm/avatar/index.d.ts +2 -2
- package/esm/avatar/index.js +1 -1
- package/esm/avatar/styled-component.d.ts +4 -32
- package/esm/avatar/styled-component.js +23 -29
- package/esm/avatar/types.d.ts +22 -18
- package/esm/avatar/useAvatarColor.js +1 -1
- package/esm/avatar/utils/avatarGroupHelpers.d.ts +13 -0
- package/esm/avatar/utils/avatarGroupHelpers.js +38 -0
- package/esm/avatar/utils/index.d.ts +2 -0
- package/esm/avatar/utils/index.js +2 -0
- package/esm/badge/badge.d.ts +4 -1
- package/esm/badge/badge.js +42 -6
- package/esm/badge/cvaConfigs.d.ts +1 -0
- package/esm/badge/cvaConfigs.js +62 -0
- package/esm/badge/styled-component.d.ts +4 -2
- package/esm/badge/styled-component.js +4 -57
- package/esm/badge/types.d.ts +8 -6
- package/esm/banner/banner-item.d.ts +3 -3
- package/esm/banner/banner-item.js +1 -1
- package/esm/banner/banner.d.ts +3 -18
- package/esm/banner/banner.js +56 -39
- package/esm/banner/cvaConfig.d.ts +2 -0
- package/esm/banner/cvaConfig.js +38 -0
- package/esm/banner/locale.d.ts +6 -1
- package/esm/banner/styled-component.d.ts +7 -6
- package/esm/banner/styled-component.js +20 -32
- package/esm/banner/types.d.ts +19 -6
- package/esm/base-button/BaseButton.d.ts +8 -5
- package/esm/base-button/BaseButton.js +22 -11
- package/esm/base-button/styled-components.d.ts +3 -3
- package/esm/base-button/styled-components.js +3 -3
- package/esm/base-button/types.d.ts +9 -1
- package/esm/baseui/accordion/accordion.d.ts +1 -1
- package/esm/baseui/accordion/accordion.js +2 -2
- package/esm/baseui/accordion/index.d.ts +1 -1
- package/esm/baseui/accordion/locale.d.ts +1 -1
- package/esm/baseui/accordion/panel.js +16 -14
- package/esm/baseui/accordion/stateful-panel.js +1 -1
- package/esm/baseui/accordion/stateless-accordion.js +4 -4
- package/esm/baseui/accordion/styled-components.d.ts +7 -7
- package/esm/baseui/accordion/styled-components.js +17 -6
- package/esm/baseui/accordion/types.d.ts +32 -32
- package/esm/baseui/datepicker/calendar-header.d.ts +3 -8
- package/esm/baseui/datepicker/calendar-header.js +24 -30
- package/esm/baseui/datepicker/calendar.d.ts +3 -56
- package/esm/baseui/datepicker/calendar.js +70 -201
- package/esm/baseui/datepicker/day.d.ts +19 -12
- package/esm/baseui/datepicker/day.js +54 -50
- package/esm/baseui/datepicker/index.d.ts +1 -1
- package/esm/baseui/datepicker/locale.d.ts +1 -1
- package/esm/baseui/datepicker/month.d.ts +8 -5
- package/esm/baseui/datepicker/month.js +46 -16
- package/esm/baseui/datepicker/styled-components.d.ts +18 -19
- package/esm/baseui/datepicker/styled-components.js +96 -139
- package/esm/baseui/datepicker/types.d.ts +78 -60
- package/esm/baseui/datepicker/utils/calendar-header-helpers.d.ts +3 -3
- package/esm/baseui/datepicker/utils/date-helpers.d.ts +2 -0
- package/esm/baseui/datepicker/utils/date-helpers.js +35 -72
- package/esm/baseui/datepicker/utils/index.d.ts +2 -1
- package/esm/baseui/datepicker/utils/types.d.ts +7 -7
- package/esm/baseui/datepicker/week.d.ts +7 -6
- package/esm/baseui/datepicker/week.js +13 -13
- package/esm/baseui/header-navigation/header-navigation.js +2 -2
- package/esm/baseui/header-navigation/styled-components.d.ts +3 -3
- package/esm/baseui/header-navigation/styled-components.js +5 -1
- package/esm/baseui/header-navigation/types.d.ts +4 -4
- package/esm/baseui/helpers/overrides.d.ts +15 -37
- package/esm/baseui/helpers/overrides.js +20 -97
- package/esm/baseui/helpers/types.d.ts +2 -2
- package/esm/baseui/input/index.d.ts +0 -6
- package/esm/baseui/input/index.js +0 -7
- package/esm/baseui/input/types.d.ts +33 -45
- package/esm/baseui/layer/layer.js +6 -11
- package/esm/baseui/layer/layers-manager.js +9 -6
- package/esm/baseui/layer/tether.d.ts +2 -1
- package/esm/baseui/layer/tether.js +17 -12
- package/esm/baseui/layer/types.d.ts +23 -19
- package/esm/baseui/menu/types.d.ts +57 -58
- package/esm/baseui/modal/close-icon.js +1 -1
- package/esm/baseui/modal/constants.d.ts +1 -0
- package/esm/baseui/modal/constants.js +1 -0
- package/esm/baseui/modal/focus-once.d.ts +1 -1
- package/esm/baseui/modal/index.d.ts +2 -2
- package/esm/baseui/modal/index.js +2 -2
- package/esm/baseui/modal/locale.d.ts +1 -1
- package/esm/baseui/modal/modal.js +28 -23
- package/esm/baseui/modal/styled-components.d.ts +4 -5
- package/esm/baseui/modal/styled-components.js +17 -58
- package/esm/baseui/modal/types.d.ts +18 -18
- package/esm/baseui/modal/utils.d.ts +1 -0
- package/esm/baseui/modal/utils.js +2 -0
- package/esm/baseui/popover/popover.js +53 -25
- package/esm/baseui/popover/stateful-container.d.ts +5 -3
- package/esm/baseui/popover/stateful-container.js +31 -9
- package/esm/baseui/popover/stateful-popover.js +1 -1
- package/esm/baseui/popover/styled-components.d.ts +6 -16
- package/esm/baseui/popover/styled-components.js +58 -44
- package/esm/baseui/popover/types.d.ts +36 -29
- package/esm/baseui/popover/utils.d.ts +1 -0
- package/esm/baseui/popover/utils.js +10 -9
- package/esm/baseui/select/autosize-input.d.ts +1 -1
- package/esm/baseui/select/autosize-input.js +4 -5
- package/esm/baseui/select/constants.d.ts +3 -0
- package/esm/baseui/select/constants.js +3 -0
- package/esm/baseui/select/default-props.d.ts +8 -19
- package/esm/baseui/select/default-props.js +1 -0
- package/esm/baseui/select/dropdown.d.ts +2 -2
- package/esm/baseui/select/dropdown.js +60 -48
- package/esm/baseui/select/index.d.ts +3 -3
- package/esm/baseui/select/index.js +1 -1
- package/esm/baseui/select/locale.d.ts +1 -1
- package/esm/baseui/select/multi-select.js +1 -1
- package/esm/baseui/select/multi-value.d.ts +3 -1
- package/esm/baseui/select/multi-value.js +7 -5
- package/esm/baseui/select/select-component.d.ts +41 -43
- package/esm/baseui/select/select-component.js +376 -138
- package/esm/baseui/select/select.js +1 -1
- package/esm/baseui/select/single-select.js +1 -1
- package/esm/baseui/select/stateful-select.d.ts +8 -19
- package/esm/baseui/select/stateful-select.js +1 -1
- package/esm/baseui/select/styled-components.d.ts +15 -14
- package/esm/baseui/select/styled-components.js +32 -63
- package/esm/baseui/select/types.d.ts +103 -59
- package/esm/baseui/select/utils/default-filter-options.d.ts +18 -3
- package/esm/baseui/select/utils/default-filter-options.js +22 -12
- package/esm/baseui/select/value.d.ts +2 -1
- package/esm/baseui/select/value.js +13 -7
- package/esm/baseui/timepicker/timepicker.d.ts +5 -4
- package/esm/baseui/timepicker/timepicker.js +103 -45
- package/esm/baseui/timepicker/types.d.ts +8 -6
- package/esm/baseui/tree-view/index.d.ts +1 -1
- package/esm/baseui/tree-view/stateful-container.d.ts +1 -1
- package/esm/baseui/tree-view/stateful-tree-view.js +1 -1
- package/esm/baseui/tree-view/styled-components.d.ts +6 -6
- package/esm/baseui/tree-view/styled-components.js +13 -15
- package/esm/baseui/tree-view/tree-label-interactable.d.ts +2 -2
- package/esm/baseui/tree-view/tree-label-interactable.js +4 -4
- package/esm/baseui/tree-view/tree-label.js +7 -7
- package/esm/baseui/tree-view/tree-node.js +9 -8
- package/esm/baseui/tree-view/tree-view.js +7 -7
- package/esm/baseui/tree-view/types.d.ts +20 -20
- package/esm/box/Box.d.ts +3 -3
- package/esm/box/Box.js +1 -1
- package/esm/box/types.d.ts +1 -1
- package/esm/breadcrumb/breadcrumb-ellipsis.d.ts +3 -0
- package/esm/breadcrumb/breadcrumb-ellipsis.js +19 -0
- package/esm/breadcrumb/breadcrumb-item.d.ts +23 -5
- package/esm/breadcrumb/breadcrumb-item.js +32 -13
- package/esm/breadcrumb/breadcrumb.d.ts +3 -1
- package/esm/breadcrumb/breadcrumb.js +45 -16
- package/esm/breadcrumb/hooks/useBreadCrumbWidths.d.ts +8 -0
- package/esm/breadcrumb/hooks/useBreadCrumbWidths.js +45 -0
- package/esm/breadcrumb/styled-components.d.ts +5 -5
- package/esm/breadcrumb/styled-components.js +4 -10
- package/esm/breadcrumb/types.d.ts +17 -5
- package/esm/breadcrumb/utils/calculateVisibleItems.d.ts +2 -0
- package/esm/breadcrumb/utils/calculateVisibleItems.js +18 -0
- package/esm/button/Button.d.ts +17 -18
- package/esm/button/Button.js +99 -61
- package/esm/button/CitationButton/CitationButton.d.ts +4 -0
- package/esm/button/CitationButton/CitationButton.js +11 -0
- package/esm/button/CitationButton/index.d.ts +3 -0
- package/esm/button/CitationButton/index.js +3 -0
- package/esm/button/CitationButton/types.d.ts +3 -0
- package/esm/button/DropdownEnhancer.d.ts +17 -0
- package/esm/button/DropdownEnhancer.js +45 -0
- package/esm/button/IconButton/IconButton.js +41 -16
- package/esm/button/IconButton/styled-components.d.ts +3 -3
- package/esm/button/IconButton/styled-components.js +140 -80
- package/esm/button/IconButton/types.d.ts +6 -6
- package/esm/button/IconTextButton/IconTextButton.js +4 -5
- package/esm/button/IconTextButton/styled-components.d.ts +2 -3
- package/esm/button/IconTextButton/styled-components.js +10 -39
- package/esm/button/IconTextButton/types.d.ts +3 -3
- package/esm/button/button-enhancers.d.ts +34 -0
- package/esm/button/button-enhancers.js +22 -0
- package/esm/button/helpers.d.ts +47 -0
- package/esm/button/helpers.js +335 -0
- package/esm/button/index.d.ts +5 -1
- package/esm/button/index.js +2 -1
- package/esm/button/styled-components.d.ts +14 -43
- package/esm/button/styled-components.js +136 -458
- package/esm/button/types.d.ts +43 -19
- package/esm/button-group/ButtonGroup.d.ts +10 -6
- package/esm/button-group/ButtonGroup.js +33 -7
- package/esm/button-group/StatefulButtonGroup.d.ts +9 -5
- package/esm/button-group/StatefulButtonGroup.js +6 -6
- package/esm/button-group/helpers.d.ts +14 -0
- package/esm/button-group/helpers.js +72 -0
- package/esm/button-group/styled-components.d.ts +15 -44
- package/esm/button-group/styled-components.js +107 -107
- package/esm/button-group/types.d.ts +29 -7
- package/esm/checkbox/checkbox.d.ts +5 -8
- package/esm/checkbox/checkbox.js +139 -15
- package/esm/checkbox/constants.d.ts +13 -0
- package/esm/checkbox/constants.js +13 -0
- package/esm/checkbox/hooks/useStatefulCheckbox.d.ts +14 -0
- package/esm/checkbox/hooks/useStatefulCheckbox.js +31 -0
- package/esm/checkbox/index.d.ts +4 -4
- package/esm/checkbox/index.js +4 -3
- package/esm/checkbox/stateful-checkbox.js +10 -0
- package/esm/checkbox/styled-components.d.ts +11 -4
- package/esm/checkbox/styled-components.js +164 -90
- package/esm/checkbox/types.d.ts +70 -18
- package/esm/color-picker/ColorPalette.d.ts +4 -3
- package/esm/color-picker/ColorPalette.js +20 -14
- package/esm/color-picker/ColorPicker.d.ts +11 -3
- package/esm/color-picker/ColorPicker.js +58 -39
- package/esm/color-picker/ColorSelector.d.ts +3 -2
- package/esm/color-picker/ColorSelector.js +35 -17
- package/esm/color-picker/CustomColorSelector.d.ts +10 -3
- package/esm/color-picker/CustomColorSelector.js +127 -23
- package/esm/color-picker/GradientColorPicker.d.ts +3 -5
- package/esm/color-picker/GradientColorPicker.js +56 -46
- package/esm/color-picker/Swatch.d.ts +7 -8
- package/esm/color-picker/Swatch.js +16 -29
- package/esm/color-picker/adaptiveThemeColor.d.ts +31 -0
- package/esm/color-picker/adaptiveThemeColor.js +79 -0
- package/esm/color-picker/colors.d.ts +2 -1
- package/esm/color-picker/colors.js +23 -22
- package/esm/color-picker/constants.d.ts +1 -0
- package/esm/color-picker/constants.js +1 -0
- package/esm/color-picker/index.d.ts +8 -3
- package/esm/color-picker/index.js +6 -2
- package/esm/color-picker/locale.d.ts +7 -1
- package/esm/color-picker/styled-component.d.ts +1 -1
- package/esm/color-picker/styled-component.js +1 -1
- package/esm/color-picker/types.d.ts +73 -29
- package/esm/color-picker/utils.d.ts +12 -16
- package/esm/color-picker/utils.js +32 -19
- package/esm/container/ContainerProps.d.ts +1 -1
- package/esm/currency/Currency.d.ts +4 -1
- package/esm/currency/Currency.js +2 -1
- package/esm/currency/types.d.ts +1 -1
- package/esm/date-input/DateInput.d.ts +5 -2
- package/esm/date-input/DateInput.js +162 -56
- package/esm/date-input/constants.d.ts +0 -24
- package/esm/date-input/constants.js +0 -24
- package/esm/date-input/index.d.ts +1 -0
- package/esm/date-input/index.js +1 -0
- package/esm/date-input/types.d.ts +7 -11
- package/esm/date-input/utils.d.ts +14 -1
- package/esm/date-input/utils.js +28 -64
- package/esm/date-picker/Calendar.d.ts +4 -1
- package/esm/date-picker/Calendar.js +56 -66
- package/esm/date-picker/DateInput.d.ts +11 -4
- package/esm/date-picker/DateInput.js +104 -71
- package/esm/date-picker/DatePicker.d.ts +4 -1
- package/esm/date-picker/DatePicker.js +2 -1
- package/esm/date-picker/DatePickerContent.d.ts +13 -9
- package/esm/date-picker/DatePickerContent.js +107 -56
- package/esm/date-picker/DatePickerInput.d.ts +16 -3
- package/esm/date-picker/DatePickerInput.js +47 -51
- package/esm/date-picker/DateTimeContainer.d.ts +7 -5
- package/esm/date-picker/DateTimeContainer.js +10 -20
- package/esm/date-picker/InputFieldIcon.d.ts +14 -0
- package/esm/date-picker/InputFieldIcon.js +16 -0
- package/esm/date-picker/StatelessDatePicker.d.ts +2 -2
- package/esm/date-picker/StatelessDatePicker.js +34 -33
- package/esm/date-picker/TimeInput.d.ts +6 -2
- package/esm/date-picker/TimeInput.js +10 -5
- package/esm/date-picker/TimezoneDisplay.d.ts +5 -0
- package/esm/date-picker/TimezoneDisplay.js +17 -0
- package/esm/date-picker/constants.d.ts +12 -0
- package/esm/date-picker/constants.js +6 -0
- package/esm/date-picker/index.d.ts +2 -1
- package/esm/date-picker/index.js +2 -1
- package/esm/date-picker/locale.d.ts +13 -1
- package/esm/date-picker/stateful-container.js +17 -7
- package/esm/date-picker/styled-components.d.ts +8 -7
- package/esm/date-picker/styled-components.js +82 -43
- package/esm/date-picker/types.d.ts +20 -13
- package/esm/date-picker/useDatePickerState.d.ts +1 -1
- package/esm/date-picker/utils.d.ts +12 -4
- package/esm/date-picker/utils.js +30 -1
- package/esm/date-time/DateTime.d.ts +4 -1
- package/esm/date-time/DateTime.js +2 -1
- package/esm/date-time/types.d.ts +1 -1
- package/esm/form-control/context.d.ts +1 -1
- package/esm/form-control/context.js +3 -2
- package/esm/form-control/form-control.js +57 -40
- package/esm/form-control/index.d.ts +5 -2
- package/esm/form-control/index.js +4 -1
- package/esm/form-control/info-icon.d.ts +18 -0
- package/esm/form-control/info-icon.js +14 -0
- package/esm/form-control/styled-component.d.ts +14 -8
- package/esm/form-control/styled-component.js +33 -24
- package/esm/form-control/types.d.ts +17 -9
- package/esm/grid/Col.d.ts +0 -3
- package/esm/grid/Col.js +34 -27
- package/esm/grid/Grid.d.ts +5 -5
- package/esm/grid/Grid.js +47 -30
- package/esm/grid/types.d.ts +5 -5
- package/esm/grid/utils.d.ts +1 -1
- package/esm/grid/utils.js +0 -1
- package/esm/helpers/ClearIconButton.js +11 -12
- package/esm/helpers/StyledTombstone.js +1 -16
- package/esm/helpers/colors.d.ts +19 -0
- package/esm/helpers/colors.js +95 -0
- package/esm/helpers/commonStyles.d.ts +7 -3
- package/esm/helpers/commonStyles.js +15 -5
- package/esm/helpers/deepMerge.d.ts +2 -0
- package/esm/helpers/deepMerge.js +30 -0
- package/esm/helpers/index.d.ts +4 -3
- package/esm/helpers/index.js +13 -19
- package/esm/helpers/intentHelper.d.ts +3 -4
- package/esm/helpers/intentHelper.js +3 -1
- package/esm/helpers/longHandHelpers.d.ts +7 -7
- package/esm/helpers/longHandHelpers.js +24 -24
- package/esm/helpers/themeHelpers.d.ts +3 -0
- package/esm/helpers/themeHelpers.js +15 -1
- package/esm/hooks/useAutoFocus.d.ts +3 -3
- package/esm/hooks/useCombinedRef.d.ts +2 -2
- package/esm/hooks/useDebouncedEventHandler.d.ts +1 -1
- package/esm/hooks/useFocusVisible.d.ts +1 -1
- package/esm/hooks/useHover.d.ts +5 -0
- package/esm/hooks/useHover.js +15 -0
- package/esm/hooks/useKeyPressListener.d.ts +7 -0
- package/esm/hooks/useKeyPressListener.js +18 -0
- package/esm/hooks/useLatestCallback.d.ts +1 -0
- package/esm/hooks/useLatestCallback.js +13 -0
- package/esm/hooks/useMatchMedia.d.ts +1 -1
- package/esm/hooks/useMatchMedia.js +3 -1
- package/esm/hooks/useMeasure.d.ts +3 -3
- package/esm/hooks/useSVGAnimation.d.ts +13 -0
- package/esm/hooks/useSVGAnimation.js +30 -0
- package/esm/hooks/useScrollCapture.d.ts +1 -1
- package/esm/hooks/useTabsKeyboardNavigation.d.ts +1 -1
- package/esm/hooks/useTabsKeyboardNavigation.js +5 -8
- package/esm/hooks/useTransitionState.d.ts +1 -1
- package/esm/hooks/useVisibilityToggle.d.ts +7 -0
- package/esm/hooks/useVisibilityToggle.js +19 -0
- package/esm/icon/components/alert-solid.js +1 -1
- package/esm/icon/components/alert-warning.d.ts +3 -0
- package/esm/icon/components/alert-warning.js +8 -0
- package/esm/icon/components/alert.js +1 -1
- package/esm/icon/components/calendar-solid.js +1 -1
- package/esm/icon/components/chevron-down-solid.d.ts +3 -0
- package/esm/icon/components/chevron-down-solid.js +8 -0
- package/esm/icon/components/chevron-down.js +1 -1
- package/esm/icon/components/chevron-left.js +1 -1
- package/esm/icon/components/chevron-right.js +1 -1
- package/esm/icon/components/clock-icon.d.ts +3 -0
- package/esm/icon/components/clock-icon.js +8 -0
- package/esm/icon/components/close.js +1 -1
- package/esm/icon/components/delete-solid.d.ts +3 -0
- package/esm/icon/components/delete-solid.js +8 -0
- package/esm/icon/components/error-clr.js +1 -1
- package/esm/icon/components/error.js +1 -1
- package/esm/icon/components/form.d.ts +3 -0
- package/esm/icon/components/form.js +8 -0
- package/esm/icon/components/imagePreview.js +1 -1
- package/esm/icon/components/info-circle.d.ts +3 -0
- package/esm/icon/components/info-circle.js +8 -0
- package/esm/icon/components/info-solid.d.ts +3 -0
- package/esm/icon/components/info-solid.js +6 -0
- package/esm/icon/components/info.js +1 -1
- package/esm/icon/components/no-video.d.ts +3 -0
- package/esm/icon/components/no-video.js +6 -0
- package/esm/icon/components/noPreview.js +1 -1
- package/esm/icon/components/options.d.ts +3 -0
- package/esm/icon/components/options.js +8 -0
- package/esm/icon/components/overview.js +1 -1
- package/esm/icon/components/play-video.js +2 -2
- package/esm/icon/components/reset-color.js +1 -1
- package/esm/icon/components/search.js +1 -1
- package/esm/icon/components/subtract.d.ts +3 -0
- package/esm/icon/components/subtract.js +8 -0
- package/esm/icon/components/tick.js +1 -1
- package/esm/icon/components/tickCircle-solid.js +1 -1
- package/esm/icon/components/timezone.d.ts +3 -0
- package/esm/icon/components/timezone.js +8 -0
- package/esm/icon/components/transparentBackground.d.ts +3 -0
- package/esm/icon/components/transparentBackground.js +8 -0
- package/esm/icon/components/user.js +1 -1
- package/esm/icon/components/video-non-playable.js +1 -1
- package/esm/icon/components/warning-solid.d.ts +3 -0
- package/esm/icon/components/warning-solid.js +8 -0
- package/esm/icon/constants.d.ts +2 -2
- package/esm/icon/icon.js +10 -5
- package/esm/icon/styled-components.d.ts +1 -1
- package/esm/icon/styled-components.js +1 -9
- package/esm/icon/types.d.ts +5 -3
- package/esm/image/Image.d.ts +5 -5
- package/esm/image/Image.js +10 -9
- package/esm/image/defaultFallbackImg.d.ts +1 -0
- package/esm/image/defaultFallbackImg.js +11 -3
- package/esm/image/index.d.ts +2 -1
- package/esm/image/index.js +1 -0
- package/esm/image/types.d.ts +4 -3
- package/esm/input/InputContainer.d.ts +13 -11
- package/esm/input/InputContainer.js +8 -8
- package/esm/input/base-input.d.ts +4 -0
- package/esm/input/base-input.js +155 -0
- package/esm/input/constants.d.ts +16 -0
- package/esm/input/constants.js +16 -0
- package/esm/input/cvaConfigs.d.ts +12 -0
- package/esm/input/cvaConfigs.js +135 -0
- package/esm/input/enhancer-button.d.ts +24 -0
- package/esm/input/enhancer-button.js +58 -0
- package/esm/input/index.d.ts +10 -4
- package/esm/input/index.js +8 -3
- package/esm/input/input.d.ts +5 -12
- package/esm/input/input.js +106 -25
- package/esm/input/masked-input.d.ts +9 -0
- package/esm/input/masked-input.js +45 -0
- package/esm/input/neutral400Hex.d.ts +10 -0
- package/esm/input/neutral400Hex.js +10 -0
- package/esm/input/number/NumberInput.d.ts +10 -0
- package/esm/input/number/NumberInput.js +61 -0
- package/esm/input/number/NumberScroll.d.ts +16 -0
- package/esm/input/number/NumberScroll.js +22 -0
- package/esm/input/number/StatefulNumberInput.d.ts +6 -0
- package/esm/input/number/StatefulNumberInput.js +9 -0
- package/esm/input/number/base-input.d.ts +55 -0
- package/esm/input/number/base-input.js +26 -0
- package/esm/input/number/constants.d.ts +5 -0
- package/esm/input/number/constants.js +18 -0
- package/esm/input/number/utils.d.ts +18 -0
- package/esm/input/number/utils.js +67 -0
- package/esm/input/stateful-input.d.ts +7 -0
- package/esm/input/stateful-input.js +14 -0
- package/esm/input/styled-components.d.ts +28 -5
- package/esm/input/styled-components.js +123 -113
- package/esm/input/types.d.ts +138 -27
- package/esm/input/useStatefulInput.d.ts +8 -0
- package/esm/input/useStatefulInput.js +20 -0
- package/esm/layer/LayersManager.d.ts +1 -1
- package/esm/layer/LayersManager.js +1 -1
- package/esm/layer/index.d.ts +2 -0
- package/esm/layer/index.js +2 -0
- package/esm/layer/useLayersContextValue.js +7 -4
- package/esm/link/link.d.ts +3 -3
- package/esm/link/link.js +2 -1
- package/esm/link/styled-components.d.ts +3 -0
- package/esm/link/styled-components.js +11 -9
- package/esm/link/types.d.ts +1 -1
- package/esm/list/avatar-list-item.d.ts +1 -1
- package/esm/list/avatar-list-item.js +4 -2
- package/esm/list/constants.d.ts +2 -0
- package/esm/list/constants.js +2 -0
- package/esm/list/cvaConfigs.d.ts +9 -0
- package/esm/list/cvaConfigs.js +75 -0
- package/esm/list/divider.d.ts +3 -3
- package/esm/list/divider.js +2 -2
- package/esm/list/index.d.ts +1 -0
- package/esm/list/index.js +1 -0
- package/esm/list/list-item-text.js +1 -1
- package/esm/list/list-item.d.ts +3 -3
- package/esm/list/list-item.js +4 -3
- package/esm/list/list.d.ts +5 -3
- package/esm/list/list.js +30 -16
- package/esm/list/styled-component.d.ts +17 -9
- package/esm/list/styled-component.js +44 -67
- package/esm/list/types.d.ts +16 -11
- package/esm/list/utils.d.ts +5 -1
- package/esm/list/utils.js +15 -0
- package/esm/loader/constants.d.ts +2 -0
- package/esm/loader/constants.js +2 -0
- package/esm/loader/index.d.ts +2 -1
- package/esm/loader/index.js +2 -1
- package/esm/loader/loader.d.ts +20 -4
- package/esm/loader/loader.js +28 -21
- package/esm/loader/styled-component.d.ts +8 -6
- package/esm/loader/styled-component.js +37 -99
- package/esm/loader/types.d.ts +10 -8
- package/esm/locale/context.d.ts +1 -1
- package/esm/locale/context.js +5 -5
- package/esm/locale/en_US.js +50 -2
- package/esm/locale/types.d.ts +15 -2
- package/esm/menu/ActionsIconButton.d.ts +8 -0
- package/esm/menu/ActionsIconButton.js +8 -0
- package/esm/menu/MenuContext.d.ts +3 -1
- package/esm/menu/MenuContext.js +4 -3
- package/esm/menu/StatefulSubMenu.d.ts +111 -0
- package/esm/menu/StatefulSubMenu.js +14 -0
- package/esm/menu/SubMenu.d.ts +113 -0
- package/esm/menu/SubMenu.js +53 -0
- package/esm/menu/helpers.d.ts +6 -3
- package/esm/menu/helpers.js +30 -4
- package/esm/menu/index.d.ts +5 -1
- package/esm/menu/index.js +4 -0
- package/esm/menu/menu-item.d.ts +16 -12
- package/esm/menu/menu-item.js +114 -33
- package/esm/menu/menu.d.ts +11 -5
- package/esm/menu/menu.js +17 -10
- package/esm/menu/nested-menu-context.js +4 -3
- package/esm/menu/types.d.ts +51 -17
- package/esm/menu/useItemContainerEventHandlers.d.ts +1 -1
- package/esm/menu/useKeyboardNavigation.d.ts +9 -6
- package/esm/menu/useKeyboardNavigation.js +171 -19
- package/esm/menu/useStatefulMenu.d.ts +6 -4
- package/esm/menu/useStatefulMenu.js +3 -1
- package/esm/menu/useStatefulSubmenu.d.ts +9 -0
- package/esm/menu/useStatefulSubmenu.js +39 -0
- package/esm/modal/ModalContext.d.ts +11 -0
- package/esm/modal/ModalContext.js +10 -0
- package/esm/modal/adapter.js +4 -0
- package/esm/modal/index.d.ts +3 -3
- package/esm/modal/index.js +2 -2
- package/esm/modal/modal-footer.js +1 -1
- package/esm/modal/modal-header.d.ts +3 -3
- package/esm/modal/modal-header.js +20 -4
- package/esm/modal/modal.d.ts +13 -4
- package/esm/modal/modal.js +68 -12
- package/esm/modal/overrides.d.ts +4 -6
- package/esm/modal/overrides.js +29 -30
- package/esm/modal/styled-components.d.ts +7 -7
- package/esm/modal/styled-components.js +9 -16
- package/esm/modal/types.d.ts +27 -10
- package/esm/number/Number.d.ts +4 -1
- package/esm/number/Number.js +2 -1
- package/esm/number/types.d.ts +1 -1
- package/esm/overrides/mergeOverrides.d.ts +1 -1
- package/esm/overrides/mergeOverrides.js +17 -0
- package/esm/overrides/types.d.ts +8 -4
- package/esm/payment-card/custom-cards.config.js +12 -0
- package/esm/payment-card/cvaConfigs.d.ts +1 -0
- package/esm/payment-card/cvaConfigs.js +18 -0
- package/esm/payment-card/icons/amex.js +7 -0
- package/esm/payment-card/icons/dinersclub.js +7 -0
- package/esm/payment-card/icons/discover.js +7 -0
- package/esm/payment-card/icons/elo.js +7 -0
- package/esm/payment-card/icons/generic.js +7 -0
- package/esm/payment-card/icons/jcb.js +7 -0
- package/esm/payment-card/icons/maestro.js +7 -0
- package/esm/payment-card/icons/mastercard.js +7 -0
- package/esm/payment-card/icons/uatp.js +7 -0
- package/esm/payment-card/icons/unionpay.js +7 -0
- package/esm/payment-card/icons/visa.js +7 -0
- package/esm/payment-card/index.d.ts +3 -2
- package/esm/payment-card/index.js +3 -2
- package/esm/payment-card/paymentCard.d.ts +5 -8
- package/esm/payment-card/paymentCard.js +78 -17
- package/esm/payment-card/stateful-payment-card.d.ts +6 -0
- package/esm/payment-card/stateful-payment-card.js +14 -0
- package/esm/payment-card/styled-components.d.ts +1 -3
- package/esm/payment-card/styled-components.js +19 -27
- package/esm/payment-card/types.d.ts +10 -8
- package/esm/payment-card/utils.d.ts +3 -0
- package/esm/payment-card/utils.js +37 -0
- package/esm/phone-input/country-select-container.js +2 -2
- package/esm/phone-input/country-select.js +14 -12
- package/esm/phone-input/cvaConfigs.d.ts +5 -0
- package/esm/phone-input/cvaConfigs.js +49 -0
- package/esm/phone-input/dial-code.js +3 -5
- package/esm/phone-input/flag-container.d.ts +1 -1
- package/esm/phone-input/flag-container.js +8 -2
- package/esm/phone-input/index.d.ts +1 -1
- package/esm/phone-input/index.js +1 -1
- package/esm/phone-input/locale.d.ts +1 -1
- package/esm/phone-input/phone-input.d.ts +1 -0
- package/esm/phone-input/phone-input.js +8 -5
- package/esm/phone-input/stateful-phone-input.js +3 -2
- package/esm/phone-input/styled-components.d.ts +6 -21
- package/esm/phone-input/styled-components.js +34 -34
- package/esm/phone-input/types.d.ts +15 -16
- package/esm/phone-input/useStatefulPhoneInput.d.ts +29 -0
- package/esm/phone-input/useStatefulPhoneInput.js +21 -0
- package/esm/phone-input/utils.d.ts +1 -1
- package/esm/popover/PopoverEnhancer.d.ts +15 -0
- package/esm/popover/PopoverEnhancer.js +57 -0
- package/esm/popover/hooks.d.ts +1 -11
- package/esm/popover/hooks.js +0 -16
- package/esm/popover/overrides.d.ts +5 -4
- package/esm/popover/overrides.js +55 -30
- package/esm/popover/popover.d.ts +1 -0
- package/esm/popover/popover.js +26 -12
- package/esm/popover/stateful-popover.js +1 -1
- package/esm/popover/styled-components.js +1 -13
- package/esm/popover/types.d.ts +16 -9
- package/esm/progress/circular/CircularProgress.d.ts +6 -3
- package/esm/progress/circular/CircularProgress.js +38 -11
- package/esm/progress/circular/styled-component.d.ts +26 -12
- package/esm/progress/circular/styled-component.js +19 -82
- package/esm/progress/circular/types.d.ts +2 -2
- package/esm/progress/linear/LinearProgress.d.ts +6 -3
- package/esm/progress/linear/LinearProgress.js +11 -4
- package/esm/progress/linear/ProgressSegment.d.ts +1 -1
- package/esm/progress/linear/ProgressSegment.js +15 -6
- package/esm/progress/linear/styled-component.d.ts +4 -14
- package/esm/progress/linear/styled-component.js +9 -64
- package/esm/progress/linear/types.d.ts +3 -3
- package/esm/progress/types.d.ts +4 -5
- package/esm/progressSteps/constants.d.ts +7 -0
- package/esm/progressSteps/constants.js +7 -0
- package/esm/progressSteps/index.d.ts +5 -0
- package/esm/progressSteps/index.js +5 -0
- package/esm/progressSteps/progress-steps.d.ts +7 -0
- package/esm/progressSteps/progress-steps.js +49 -0
- package/esm/progressSteps/step.d.ts +7 -0
- package/esm/progressSteps/step.js +37 -0
- package/esm/progressSteps/styled-components.d.ts +12 -0
- package/esm/progressSteps/styled-components.js +161 -0
- package/esm/progressSteps/types.d.ts +87 -0
- package/esm/radio/constants.js +7 -0
- package/esm/radio/cvaConfigs.d.ts +6 -0
- package/esm/radio/cvaConfigs.js +149 -0
- package/esm/radio/hooks/useStatefulRadioGroup.d.ts +9 -0
- package/esm/radio/hooks/useStatefulRadioGroup.js +23 -0
- package/esm/radio/index.d.ts +5 -2
- package/esm/radio/index.js +5 -2
- package/esm/radio/radio.d.ts +5 -8
- package/esm/radio/radio.js +103 -22
- package/esm/radio/radiogroup.d.ts +7 -0
- package/esm/radio/radiogroup.js +64 -0
- package/esm/radio/space-radio-context.d.ts +7 -0
- package/esm/radio/space-radio-context.js +5 -0
- package/esm/radio/stateful-radiogroup.js +10 -0
- package/esm/radio/styled-components.d.ts +11 -6
- package/esm/radio/styled-components.js +43 -124
- package/esm/radio/types.d.ts +107 -19
- package/esm/search/cvaConfigs.d.ts +1 -0
- package/esm/search/cvaConfigs.js +53 -0
- package/esm/search/search.d.ts +2 -1
- package/esm/search/search.js +44 -22
- package/esm/search/stateful-search.js +1 -1
- package/esm/search/styled-components.d.ts +3 -3
- package/esm/search/styled-components.js +53 -79
- package/esm/search/types.d.ts +18 -9
- package/esm/select/SelectIdsContext.d.ts +17 -0
- package/esm/select/SelectIdsContext.js +27 -0
- package/esm/select/base-select.d.ts +23 -19
- package/esm/select/base-select.js +134 -68
- package/esm/select/constants.d.ts +3 -2
- package/esm/select/constants.js +1 -2
- package/esm/select/cvaConfigs.d.ts +2 -0
- package/esm/select/cvaConfigs.js +42 -0
- package/esm/select/default-props.d.ts +2 -1
- package/esm/select/default-props.js +1 -1
- package/esm/select/enhancer-button.d.ts +10 -0
- package/esm/select/enhancer-button.js +26 -0
- package/esm/select/grouped-select.d.ts +3 -0
- package/esm/select/grouped-select.js +28 -0
- package/esm/select/index.d.ts +14 -7
- package/esm/select/index.js +9 -3
- package/esm/select/locale.d.ts +6 -1
- package/esm/select/mobileSelect/AdaptedCSSTransition/AdaptedCSSTransition.js +1 -1
- package/esm/select/mobileSelect/AdaptedCSSTransition/types.d.ts +1 -1
- package/esm/select/mobileSelect/Backdrop.d.ts +3 -1
- package/esm/select/mobileSelect/Backdrop.js +2 -2
- package/esm/select/mobileSelect/MobileSelect.js +5 -3
- package/esm/select/mobileSelect/MobileSheet.d.ts +4 -3
- package/esm/select/mobileSelect/MobileSheet.js +8 -14
- package/esm/select/mobileSelect/SwipeableTargetArea.js +1 -4
- package/esm/select/mobileSelect/hooks/useKeyboardViewportShiftOffset.js +5 -2
- package/esm/select/mobileSelect/hooks/useSwipeableSheetStyles.d.ts +2 -1
- package/esm/select/mobileSelect/hooks/useSwipeableSheetStyles.js +6 -4
- package/esm/select/mobileSelect/hooks/useTransitionStyles.js +8 -0
- package/esm/select/mobileSelect/overrides.d.ts +15 -2
- package/esm/select/mobileSelect/overrides.js +30 -10
- package/esm/select/multi-value.d.ts +46 -2
- package/esm/select/multi-value.js +75 -21
- package/esm/select/nested-select.d.ts +92 -0
- package/esm/select/nested-select.js +76 -0
- package/esm/select/no-results-message.d.ts +15 -0
- package/esm/select/no-results-message.js +12 -0
- package/esm/select/overlaySelect/OverlaySelect.d.ts +2 -2
- package/esm/select/overlaySelect/OverlaySelect.js +9 -6
- package/esm/select/overlaySelect/hooks/useControlRef.d.ts +1 -1
- package/esm/select/overlaySelect/hooks/useOverlaySelectOverrides.d.ts +2 -6
- package/esm/select/overlaySelect/hooks/useOverlaySelectOverrides.js +83 -27
- package/esm/select/overrides.d.ts +16 -13
- package/esm/select/overrides.js +136 -53
- package/esm/select/select-variants.js +2 -2
- package/esm/select/select.d.ts +4 -3
- package/esm/select/select.js +15 -4
- package/esm/select/selectMenuAdapter/CollapsibleSelectMenu.d.ts +37 -22
- package/esm/select/selectMenuAdapter/CollapsibleSelectMenu.js +86 -40
- package/esm/select/selectMenuAdapter/NestedSelectMenuAdapter.d.ts +4 -0
- package/esm/select/selectMenuAdapter/NestedSelectMenuAdapter.js +84 -0
- package/esm/select/selectMenuAdapter/SelectMenuAdapter.d.ts +3 -3
- package/esm/select/selectMenuAdapter/SelectMenuAdapter.js +13 -8
- package/esm/select/selectMenuAdapter/SelectMenuItem.d.ts +48 -8
- package/esm/select/selectMenuAdapter/SelectMenuItem.js +24 -11
- package/esm/select/selectMenuAdapter/hooks/useGetExpandedGroup.d.ts +4 -2
- package/esm/select/selectMenuAdapter/hooks/useGetExpandedGroup.js +37 -10
- package/esm/select/selectMenuAdapter/types.d.ts +15 -12
- package/esm/select/stateful-select.d.ts +2 -1
- package/esm/select/stateful-select.js +2 -2
- package/esm/select/styled-component.d.ts +20 -18
- package/esm/select/styled-component.js +60 -72
- package/esm/select/types.d.ts +67 -30
- package/esm/select/utils/adapt-select-value.d.ts +2 -0
- package/esm/select/utils/adapt-select-value.js +12 -0
- package/esm/select/utils/hidden-element.js +1 -1
- package/esm/select/utils/test-utils.d.ts +1 -1
- package/esm/singleton/createSingletonContext.d.ts +5 -0
- package/esm/singleton/createSingletonContext.js +17 -0
- package/esm/slider/constants.js +4 -0
- package/esm/slider/mark.d.ts +3 -12
- package/esm/slider/mark.js +5 -2
- package/esm/slider/slider.d.ts +4 -4
- package/esm/slider/slider.js +100 -69
- package/esm/slider/stateful-slider-container.d.ts +4 -7
- package/esm/slider/stateful-slider-container.js +24 -10
- package/esm/slider/stateful-slider.js +1 -1
- package/esm/slider/styled-components.d.ts +24 -7
- package/esm/slider/styled-components.js +107 -73
- package/esm/slider/types.d.ts +50 -16
- package/esm/snackbar/Snackbar.d.ts +6 -3
- package/esm/snackbar/Snackbar.js +33 -17
- package/esm/snackbar/constants.d.ts +1 -0
- package/esm/snackbar/constants.js +12 -3
- package/esm/snackbar/snackbarContext.d.ts +12 -0
- package/esm/snackbar/snackbarContext.js +23 -0
- package/esm/snackbar/styled-component.d.ts +31 -7
- package/esm/snackbar/styled-component.js +64 -64
- package/esm/snackbar/types.d.ts +18 -17
- package/esm/snackbar/useSnackbar.d.ts +7 -4
- package/esm/snackbar/useSnackbar.js +13 -4
- package/esm/spaceConsumer/SpaceConsumer.d.ts +5 -3
- package/esm/spaceConsumer/SpaceConsumer.js +4 -1
- package/esm/spacewebProvider/AiIconLinearGradients.js +2 -2
- package/esm/spacewebProvider/CustomBaseProvider.js +1 -1
- package/esm/spacewebProvider/DocumentProvider.d.ts +1 -0
- package/esm/spacewebProvider/DocumentProvider.js +6 -3
- package/esm/spacewebProvider/SpacewebProvider.d.ts +4 -1
- package/esm/spacewebProvider/SpacewebProvider.js +8 -6
- package/esm/spacewebProvider/index.d.ts +1 -0
- package/esm/spacewebProvider/index.js +1 -0
- package/esm/stack/context.d.ts +10 -6
- package/esm/stack/context.js +7 -2
- package/esm/stack/stack-item.d.ts +3 -3
- package/esm/stack/stack-item.js +14 -11
- package/esm/stack/stack.d.ts +5 -5
- package/esm/stack/stack.js +36 -26
- package/esm/stack/types.d.ts +4 -4
- package/esm/style/_buildUtils.d.ts +1 -1
- package/esm/style/_buildUtils.js +5 -3
- package/esm/style/_css.js +2 -2
- package/esm/style/_cssParseStyle.d.ts +19 -0
- package/esm/style/_cssParseStyle.js +74 -0
- package/esm/style/_getStyle.js +2 -2
- package/esm/style/_getStyleWithProps.js +2 -2
- package/esm/style/_parseClassName.d.ts +5 -0
- package/esm/style/_parseClassName.js +30 -0
- package/esm/style/_parseStyleProp.d.ts +6 -0
- package/esm/style/_parseStyleProp.js +71 -0
- package/esm/style/_px2rem.d.ts +1 -1
- package/esm/style/_px2rem.js +1 -1
- package/esm/style/customTwMerge.d.ts +1 -0
- package/esm/style/customTwMerge.js +286 -0
- package/esm/style/cvaWrapper.d.ts +12 -0
- package/esm/style/cvaWrapper.js +14 -0
- package/esm/style/index.d.ts +3 -0
- package/esm/style/index.js +2 -0
- package/esm/style/styled-with-css-variables.d.ts +5 -0
- package/esm/style/styled-with-css-variables.js +18 -0
- package/esm/style/styled.d.ts +5 -5
- package/esm/style/styled.js +19 -9
- package/esm/style/useMemoizedStyletron.js +1 -3
- package/esm/styleEngine/styleEngine.d.ts +6 -4
- package/esm/styleEngine/styleEngine.js +12 -4
- package/esm/switch/index.d.ts +1 -1
- package/esm/switch/index.js +1 -1
- package/esm/switch/switch.d.ts +2 -1
- package/esm/switch/switch.js +8 -11
- package/esm/switch/types.d.ts +1 -25
- package/esm/tabs/contexts.js +5 -5
- package/esm/tabs/helpers.d.ts +3 -4
- package/esm/tabs/helpers.js +2 -5
- package/esm/tabs/hooks/useScrollableTabs.d.ts +14 -0
- package/esm/tabs/hooks/useScrollableTabs.js +91 -0
- package/esm/tabs/index.d.ts +2 -0
- package/esm/tabs/index.js +2 -0
- package/esm/tabs/scroll-button.d.ts +13 -0
- package/esm/tabs/scroll-button.js +22 -0
- package/esm/tabs/stateful-tabs.d.ts +1 -0
- package/esm/tabs/stateful-tabs.js +2 -1
- package/esm/tabs/styled-components.d.ts +8 -10
- package/esm/tabs/styled-components.js +76 -22
- package/esm/tabs/tab-list.d.ts +1 -2
- package/esm/tabs/tab-list.js +37 -17
- package/esm/tabs/tab.d.ts +1 -0
- package/esm/tabs/tab.js +9 -9
- package/esm/tabs/tabs-panel.js +1 -1
- package/esm/tabs/types.d.ts +33 -12
- package/esm/tag/avatar-tag.d.ts +2 -2
- package/esm/tag/avatar-tag.js +10 -11
- package/esm/tag/constants.d.ts +13 -0
- package/esm/tag/constants.js +14 -0
- package/esm/tag/cvaConfigs.d.ts +5 -0
- package/esm/tag/cvaConfigs.js +221 -0
- package/esm/tag/index.d.ts +2 -1
- package/esm/tag/index.js +1 -0
- package/esm/tag/status-tag.d.ts +12 -0
- package/esm/tag/status-tag.js +26 -0
- package/esm/tag/styled-components.d.ts +5 -4
- package/esm/tag/styled-components.js +25 -48
- package/esm/tag/tag.d.ts +31 -2
- package/esm/tag/tag.js +34 -19
- package/esm/tag/types.d.ts +29 -9
- package/esm/tag/utils.d.ts +16 -30
- package/esm/tag/utils.js +30 -30
- package/esm/test-utils/helper.d.ts +2 -0
- package/esm/test-utils/helper.js +19 -0
- package/esm/test-utils/index.d.ts +1 -0
- package/esm/test-utils/index.js +1 -0
- package/esm/test-utils/test-provider/TestProvider.d.ts +11 -4
- package/esm/test-utils/test-provider/TestProvider.js +18 -4
- package/esm/test-utils/test-provider/helpers.d.ts +2 -2
- package/esm/test-utils/test-provider/testableThemes.d.ts +0 -2
- package/esm/test-utils/test-provider/testableThemes.js +0 -4
- package/esm/textarea/cvaConfig.d.ts +3 -0
- package/esm/textarea/cvaConfig.js +79 -0
- package/esm/textarea/index.d.ts +4 -2
- package/esm/textarea/index.js +4 -2
- package/esm/textarea/stateful-textarea.js +9 -0
- package/esm/textarea/styled-components.d.ts +3 -11
- package/esm/textarea/styled-components.js +36 -14
- package/esm/textarea/textarea.d.ts +5 -9
- package/esm/textarea/textarea.js +54 -24
- package/esm/textarea/types.d.ts +29 -13
- package/esm/textarea/useAutoSizeTextarea.d.ts +1 -1
- package/esm/textarea/useAutoSizeTextarea.js +0 -1
- package/esm/theme/Provider.d.ts +1 -1
- package/esm/theme/Provider.js +3 -3
- package/esm/theme/context.js +3 -2
- package/esm/theme/types.d.ts +2 -2
- package/esm/time-picker/TimePicker.d.ts +4 -1
- package/esm/time-picker/TimePicker.js +4 -2
- package/esm/time-picker/types.d.ts +2 -2
- package/esm/time-range-picker/RangeSelector.d.ts +1 -1
- package/esm/time-range-picker/RangeSelector.js +5 -5
- package/esm/time-range-picker/RangeSelectorContainer.d.ts +3 -3
- package/esm/time-range-picker/RangeSelectorContainer.js +53 -34
- package/esm/time-range-picker/TimeRangeList.d.ts +1 -1
- package/esm/time-range-picker/TimeRangeList.js +29 -19
- package/esm/time-range-picker/TimeRangePicker.d.ts +4 -1
- package/esm/time-range-picker/TimeRangePicker.js +68 -28
- package/esm/time-range-picker/TimezonePicker.d.ts +9 -3
- package/esm/time-range-picker/TimezonePicker.js +12 -22
- package/esm/time-range-picker/getSystemTzName.d.ts +1 -0
- package/esm/time-range-picker/getSystemTzName.js +13 -0
- package/esm/time-range-picker/index.d.ts +2 -0
- package/esm/time-range-picker/index.js +2 -0
- package/esm/time-range-picker/locale.d.ts +7 -1
- package/esm/time-range-picker/styled-component.js +1 -1
- package/esm/time-range-picker/types.d.ts +31 -22
- package/esm/time-range-picker/utils.d.ts +34 -11
- package/esm/time-range-picker/utils.js +142 -95
- package/esm/time-zone-picker/TimezonePicker.d.ts +4 -1
- package/esm/time-zone-picker/TimezonePicker.js +10 -38
- package/esm/time-zone-picker/contants.d.ts +3 -0
- package/esm/time-zone-picker/contants.js +3 -0
- package/esm/time-zone-picker/deprecatedtzdata.d.ts +1 -0
- package/esm/time-zone-picker/deprecatedtzdata.js +45 -0
- package/esm/time-zone-picker/index.d.ts +1 -0
- package/esm/time-zone-picker/index.js +1 -0
- package/esm/time-zone-picker/types.d.ts +15 -10
- package/esm/time-zone-picker/tzAbbreviationsData.d.ts +554 -0
- package/esm/time-zone-picker/tzAbbreviationsData.js +554 -0
- package/esm/time-zone-picker/tzdata.d.ts +1 -0
- package/esm/time-zone-picker/tzdata.js +419 -0
- package/esm/time-zone-picker/utils.d.ts +9 -2
- package/esm/time-zone-picker/utils.js +69 -27
- package/esm/tooltip/actionable-tooltip.d.ts +5 -0
- package/esm/tooltip/actionable-tooltip.js +21 -0
- package/esm/tooltip/default-props.d.ts +2 -0
- package/esm/tooltip/default-props.js +15 -0
- package/esm/tooltip/disabled-tooltip-container.d.ts +35 -16
- package/esm/tooltip/disabled-tooltip-container.js +3 -3
- package/esm/tooltip/index.d.ts +2 -2
- package/esm/tooltip/index.js +1 -1
- package/esm/tooltip/overrides.d.ts +3 -4
- package/esm/tooltip/overrides.js +19 -52
- package/esm/tooltip/stateful-tooltip-container.d.ts +34 -15
- package/esm/tooltip/stateful-tooltip-container.js +3 -3
- package/esm/tooltip/stateful-tooltip.d.ts +32 -13
- package/esm/tooltip/stateful-tooltip.js +2 -2
- package/esm/tooltip/styled-component.d.ts +0 -1
- package/esm/tooltip/styled-component.js +2 -2
- package/esm/tooltip/tooltip.d.ts +1 -0
- package/esm/tooltip/tooltip.js +32 -13
- package/esm/tooltip/types.d.ts +27 -15
- package/esm/transitions/collapse/collapse.d.ts +1 -1
- package/esm/transitions/collapse/collapse.js +12 -6
- package/esm/transitions/collapse/index.d.ts +2 -2
- package/esm/transitions/collapse/styled-components.d.ts +6 -1
- package/esm/transitions/collapse/styled-components.js +11 -21
- package/esm/transitions/collapse/types.d.ts +4 -4
- package/esm/transitions/fade/fade.d.ts +1 -1
- package/esm/transitions/fade/fade.js +19 -17
- package/esm/transitions/fade/types.d.ts +2 -2
- package/esm/transitions/grow/grow.d.ts +1 -1
- package/esm/transitions/grow/grow.js +20 -20
- package/esm/transitions/grow/types.d.ts +2 -2
- package/esm/transitions/transition/SwitchTransition.d.ts +4 -0
- package/esm/transitions/transition/SwitchTransition.js +12 -0
- package/esm/transitions/transition/index.d.ts +1 -0
- package/esm/transitions/transition/index.js +1 -0
- package/esm/transitions/transition/styled-component.d.ts +1 -1
- package/esm/transitions/transition/styled-component.js +4 -13
- package/esm/transitions/transition/transition.d.ts +1 -1
- package/esm/transitions/transition/transition.js +4 -2
- package/esm/transitions/transition/transitionGroup.js +1 -1
- package/esm/transitions/transition/types.d.ts +11 -9
- package/esm/truncateWithTooltip/TruncateWithTooltip.d.ts +4 -1
- package/esm/truncateWithTooltip/TruncateWithTooltip.js +34 -7
- package/esm/truncateWithTooltip/hooks/useTruncateWithTooltip.d.ts +6 -4
- package/esm/truncateWithTooltip/hooks/useTruncateWithTooltip.js +19 -7
- package/esm/truncateWithTooltip/types.d.ts +13 -8
- package/esm/type-utils.d.ts +2 -0
- package/esm/types.d.ts +40 -23
- package/esm/typings.d.ts +16 -0
- package/esm/typography/Typography.d.ts +6 -4
- package/esm/typography/Typography.js +16 -4
- package/esm/typography/constants.d.ts +71 -9
- package/esm/typography/constants.js +74 -9
- package/esm/typography/index.d.ts +1 -1
- package/esm/typography/index.js +1 -1
- package/esm/typography/styled-components.d.ts +1 -1
- package/esm/typography/styled-components.js +30 -16
- package/esm/typography/types.d.ts +28 -3
- package/esm/utility-types/index.d.ts +1 -1
- package/esm/utils/generalUtils.d.ts +2 -0
- package/esm/utils/generalUtils.js +12 -0
- package/esm/utils/intlNumberFormatUtils/types.d.ts +5 -5
- package/esm/video/DefaultFallbackImg.d.ts +4 -0
- package/esm/video/DefaultFallbackImg.js +16 -0
- package/esm/video/Video.d.ts +4 -4
- package/esm/video/Video.js +31 -17
- package/esm/video/index.d.ts +1 -0
- package/esm/video/index.js +1 -0
- package/esm/video/types.d.ts +5 -4
- package/form-control/context.d.ts +1 -1
- package/form-control/context.js +3 -2
- package/form-control/form-control.js +60 -43
- package/form-control/index.d.ts +5 -2
- package/form-control/index.js +8 -2
- package/form-control/info-icon.d.ts +18 -0
- package/form-control/info-icon.js +16 -0
- package/form-control/styled-component.d.ts +14 -8
- package/form-control/styled-component.js +34 -24
- package/form-control/types.d.ts +17 -9
- package/grid/Col.d.ts +0 -3
- package/grid/Col.js +34 -27
- package/grid/Grid.d.ts +5 -5
- package/grid/Grid.js +48 -31
- package/grid/types.d.ts +5 -5
- package/grid/utils.d.ts +1 -1
- package/grid/utils.js +4 -5
- package/helpers/ClearIconButton.js +14 -15
- package/helpers/StyledTombstone.js +2 -17
- package/helpers/colors.d.ts +19 -0
- package/helpers/colors.js +106 -0
- package/helpers/commonStyles.d.ts +7 -3
- package/helpers/commonStyles.js +19 -7
- package/helpers/deepMerge.d.ts +2 -0
- package/helpers/deepMerge.js +32 -0
- package/helpers/index.d.ts +4 -3
- package/helpers/index.js +15 -21
- package/helpers/intentHelper.d.ts +3 -4
- package/helpers/intentHelper.js +3 -1
- package/helpers/longHandHelpers.d.ts +7 -7
- package/helpers/longHandHelpers.js +24 -24
- package/helpers/themeHelpers.d.ts +3 -0
- package/helpers/themeHelpers.js +21 -3
- package/helpers/typography.js +1 -1
- package/hooks/useAutoFocus.d.ts +3 -3
- package/hooks/useCombinedHandler.js +2 -2
- package/hooks/useCombinedRef.d.ts +2 -2
- package/hooks/useCombinedRef.js +3 -3
- package/hooks/useDebouncedEventHandler.d.ts +1 -1
- package/hooks/useDebouncedEventHandler.js +2 -2
- package/hooks/useFocusVisible.d.ts +1 -1
- package/hooks/useFocusVisible.js +2 -2
- package/hooks/useHasMounted.js +1 -1
- package/hooks/useHover.d.ts +5 -0
- package/hooks/useHover.js +19 -0
- package/hooks/useIsMobileDevice.js +1 -1
- package/hooks/useKeyPressListener.d.ts +7 -0
- package/hooks/useKeyPressListener.js +22 -0
- package/hooks/useLatestCallback.d.ts +1 -0
- package/hooks/useLatestCallback.js +17 -0
- package/hooks/useMatchMedia.d.ts +1 -1
- package/hooks/useMatchMedia.js +4 -2
- package/hooks/useMeasure.d.ts +3 -3
- package/hooks/useMeasure.js +3 -3
- package/hooks/useSVGAnimation.d.ts +13 -0
- package/hooks/useSVGAnimation.js +34 -0
- package/hooks/useScrollCapture.d.ts +1 -1
- package/hooks/useScrollCapture.js +1 -1
- package/hooks/useStickyElement.js +3 -3
- package/hooks/useTabsKeyboardNavigation.d.ts +1 -1
- package/hooks/useTabsKeyboardNavigation.js +5 -8
- package/hooks/useTransitionState.d.ts +1 -1
- package/hooks/useTransitionState.js +1 -1
- package/hooks/useUniqueId.js +1 -1
- package/hooks/useVisibilityToggle.d.ts +7 -0
- package/hooks/useVisibilityToggle.js +22 -0
- package/icon/components/alert-solid.js +2 -2
- package/icon/components/alert-warning.d.ts +3 -0
- package/icon/components/alert-warning.js +11 -0
- package/icon/components/alert.js +2 -2
- package/icon/components/calendar-solid.js +2 -2
- package/icon/components/chevron-down-solid.d.ts +3 -0
- package/icon/components/chevron-down-solid.js +11 -0
- package/icon/components/chevron-down.js +2 -2
- package/icon/components/chevron-left.js +2 -2
- package/icon/components/chevron-right.js +2 -2
- package/icon/components/clock-icon.d.ts +3 -0
- package/icon/components/clock-icon.js +11 -0
- package/icon/components/close.js +2 -2
- package/icon/components/delete-solid.d.ts +3 -0
- package/icon/components/delete-solid.js +11 -0
- package/icon/components/error-clr.js +2 -2
- package/icon/components/error.js +2 -2
- package/icon/components/form.d.ts +3 -0
- package/icon/components/form.js +11 -0
- package/icon/components/imagePreview.js +2 -2
- package/icon/components/info-circle.d.ts +3 -0
- package/icon/components/info-circle.js +11 -0
- package/icon/components/info-solid.d.ts +3 -0
- package/icon/components/info-solid.js +9 -0
- package/icon/components/info.js +2 -2
- package/icon/components/no-video.d.ts +3 -0
- package/icon/components/no-video.js +9 -0
- package/icon/components/noPreview.js +2 -2
- package/icon/components/options.d.ts +3 -0
- package/icon/components/options.js +11 -0
- package/icon/components/overview.js +2 -2
- package/icon/components/play-video.js +2 -2
- package/icon/components/reset-color.js +2 -2
- package/icon/components/search.js +2 -2
- package/icon/components/subtract.d.ts +3 -0
- package/icon/components/subtract.js +11 -0
- package/icon/components/tick.js +2 -2
- package/icon/components/tickCircle-solid.js +2 -2
- package/icon/components/timezone.d.ts +3 -0
- package/icon/components/timezone.js +11 -0
- package/icon/components/transparentBackground.d.ts +3 -0
- package/icon/components/transparentBackground.js +11 -0
- package/icon/components/user.js +2 -2
- package/icon/components/video-non-playable.js +2 -2
- package/icon/components/warning-solid.d.ts +3 -0
- package/icon/components/warning-solid.js +11 -0
- package/icon/constants.d.ts +2 -2
- package/icon/icon.js +10 -5
- package/icon/index.js +2 -2
- package/icon/styled-components.d.ts +1 -1
- package/icon/styled-components.js +1 -9
- package/icon/types.d.ts +5 -3
- package/image/Image.d.ts +5 -5
- package/image/Image.js +16 -15
- package/image/defaultFallbackImg.d.ts +1 -0
- package/image/defaultFallbackImg.js +14 -5
- package/image/index.d.ts +2 -1
- package/image/index.js +3 -1
- package/image/types.d.ts +4 -3
- package/index.js +4 -4
- package/input/InputContainer.d.ts +13 -11
- package/input/InputContainer.js +7 -8
- package/input/base-input.d.ts +4 -0
- package/input/base-input.js +157 -0
- package/input/constants.d.ts +16 -0
- package/input/constants.js +19 -0
- package/input/cvaConfigs.d.ts +12 -0
- package/input/cvaConfigs.js +138 -0
- package/input/enhancer-button.d.ts +24 -0
- package/input/enhancer-button.js +66 -0
- package/input/index.d.ts +10 -4
- package/input/index.js +25 -18
- package/input/input.d.ts +5 -12
- package/input/input.js +105 -28
- package/input/masked-input.d.ts +9 -0
- package/input/masked-input.js +48 -0
- package/input/neutral400Hex.d.ts +10 -0
- package/input/neutral400Hex.js +14 -0
- package/input/number/NumberInput.d.ts +10 -0
- package/input/number/NumberInput.js +65 -0
- package/input/number/NumberScroll.d.ts +16 -0
- package/input/number/NumberScroll.js +25 -0
- package/input/number/StatefulNumberInput.d.ts +6 -0
- package/input/number/StatefulNumberInput.js +13 -0
- package/input/number/base-input.d.ts +55 -0
- package/input/number/base-input.js +29 -0
- package/input/number/constants.d.ts +5 -0
- package/input/number/constants.js +21 -0
- package/input/number/utils.d.ts +18 -0
- package/input/number/utils.js +74 -0
- package/input/stateful-input.d.ts +7 -0
- package/input/stateful-input.js +17 -0
- package/input/styled-components.d.ts +28 -5
- package/input/styled-components.js +124 -113
- package/input/types.d.ts +138 -27
- package/input/useStatefulInput.d.ts +8 -0
- package/input/useStatefulInput.js +22 -0
- package/layer/LayersManager.d.ts +1 -1
- package/layer/LayersManager.js +3 -3
- package/layer/index.d.ts +2 -0
- package/layer/index.js +5 -1
- package/layer/useLayersContextValue.js +8 -5
- package/link/index.js +2 -2
- package/link/link.d.ts +3 -3
- package/link/link.js +2 -1
- package/link/styled-components.d.ts +3 -0
- package/link/styled-components.js +16 -13
- package/link/types.d.ts +1 -1
- package/list/avatar-list-item.d.ts +1 -1
- package/list/avatar-list-item.js +7 -5
- package/list/constants.d.ts +2 -0
- package/list/constants.js +5 -0
- package/list/cvaConfigs.d.ts +9 -0
- package/list/cvaConfigs.js +78 -0
- package/list/divider.d.ts +3 -3
- package/list/divider.js +7 -7
- package/list/index.d.ts +1 -0
- package/list/index.js +4 -1
- package/list/list-item-text.js +4 -4
- package/list/list-item.d.ts +3 -3
- package/list/list-item.js +12 -11
- package/list/list.d.ts +5 -3
- package/list/list.js +30 -16
- package/list/styled-component.d.ts +17 -9
- package/list/styled-component.js +45 -67
- package/list/types.d.ts +16 -11
- package/list/utils.d.ts +5 -1
- package/list/utils.js +17 -1
- package/loader/constants.d.ts +2 -0
- package/loader/constants.js +5 -0
- package/loader/index.d.ts +2 -1
- package/loader/index.js +4 -3
- package/loader/loader.d.ts +20 -4
- package/loader/loader.js +31 -25
- package/loader/styled-component.d.ts +8 -6
- package/loader/styled-component.js +38 -99
- package/loader/types.d.ts +10 -8
- package/locale/context.d.ts +1 -1
- package/locale/context.js +5 -5
- package/locale/en_US.js +50 -2
- package/locale/types.d.ts +15 -2
- package/menu/ActionsIconButton.d.ts +8 -0
- package/menu/ActionsIconButton.js +10 -0
- package/menu/MenuContext.d.ts +3 -1
- package/menu/MenuContext.js +3 -2
- package/menu/StatefulSubMenu.d.ts +111 -0
- package/menu/StatefulSubMenu.js +17 -0
- package/menu/SubMenu.d.ts +113 -0
- package/menu/SubMenu.js +56 -0
- package/menu/helpers.d.ts +6 -3
- package/menu/helpers.js +32 -5
- package/menu/index.d.ts +5 -1
- package/menu/index.js +9 -1
- package/menu/menu-item.d.ts +16 -12
- package/menu/menu-item.js +123 -42
- package/menu/menu.d.ts +11 -5
- package/menu/menu.js +19 -12
- package/menu/nested-menu-context.js +4 -3
- package/menu/types.d.ts +51 -17
- package/menu/useItemContainerEventHandlers.d.ts +1 -1
- package/menu/useItemContainerEventHandlers.js +1 -1
- package/menu/useKeyboardNavigation.d.ts +9 -6
- package/menu/useKeyboardNavigation.js +174 -22
- package/menu/useStatefulMenu.d.ts +6 -4
- package/menu/useStatefulMenu.js +4 -2
- package/menu/useStatefulSubmenu.d.ts +9 -0
- package/menu/useStatefulSubmenu.js +41 -0
- package/modal/ModalContext.d.ts +11 -0
- package/modal/ModalContext.js +14 -0
- package/modal/adapter.js +4 -0
- package/modal/index.d.ts +3 -3
- package/modal/index.js +2 -2
- package/modal/modal-footer.js +2 -2
- package/modal/modal-header.d.ts +3 -3
- package/modal/modal-header.js +19 -3
- package/modal/modal.d.ts +13 -4
- package/modal/modal.js +69 -12
- package/modal/overrides.d.ts +4 -6
- package/modal/overrides.js +29 -30
- package/modal/styled-components.d.ts +7 -7
- package/modal/styled-components.js +10 -17
- package/modal/types.d.ts +27 -10
- package/number/Number.d.ts +4 -1
- package/number/Number.js +2 -1
- package/number/index.js +2 -2
- package/number/types.d.ts +1 -1
- package/overrides/index.js +1 -1
- package/overrides/mergeOverrides.d.ts +1 -1
- package/overrides/mergeOverrides.js +21 -4
- package/overrides/types.d.ts +8 -4
- package/package.json +28 -46
- package/payment-card/custom-cards.config.js +15 -0
- package/payment-card/cvaConfigs.d.ts +1 -0
- package/payment-card/cvaConfigs.js +21 -0
- package/payment-card/icons/amex.js +9 -0
- package/payment-card/icons/dinersclub.js +9 -0
- package/payment-card/icons/discover.js +9 -0
- package/payment-card/icons/elo.js +9 -0
- package/payment-card/icons/generic.js +9 -0
- package/payment-card/icons/jcb.js +9 -0
- package/payment-card/icons/maestro.js +9 -0
- package/payment-card/icons/mastercard.js +9 -0
- package/payment-card/icons/uatp.js +9 -0
- package/payment-card/icons/unionpay.js +9 -0
- package/payment-card/icons/visa.js +9 -0
- package/payment-card/index.d.ts +3 -2
- package/payment-card/index.js +7 -7
- package/payment-card/paymentCard.d.ts +5 -8
- package/payment-card/paymentCard.js +78 -20
- package/payment-card/stateful-payment-card.d.ts +6 -0
- package/payment-card/stateful-payment-card.js +17 -0
- package/payment-card/styled-components.d.ts +1 -3
- package/payment-card/styled-components.js +19 -28
- package/payment-card/types.d.ts +10 -8
- package/payment-card/utils.d.ts +3 -0
- package/payment-card/utils.js +44 -0
- package/phone-input/country-select-container.js +7 -7
- package/phone-input/country-select.js +20 -18
- package/phone-input/cvaConfigs.d.ts +5 -0
- package/phone-input/cvaConfigs.js +52 -0
- package/phone-input/dial-code.js +3 -5
- package/phone-input/flag-container.d.ts +1 -1
- package/phone-input/flag-container.js +10 -4
- package/phone-input/index.d.ts +1 -1
- package/phone-input/index.js +6 -5
- package/phone-input/locale.d.ts +1 -1
- package/phone-input/phone-input.d.ts +1 -0
- package/phone-input/phone-input.js +13 -10
- package/phone-input/stateful-phone-input.js +6 -5
- package/phone-input/styled-components.d.ts +6 -21
- package/phone-input/styled-components.js +36 -37
- package/phone-input/types.d.ts +15 -16
- package/phone-input/useStatefulPhoneInput.d.ts +29 -0
- package/phone-input/useStatefulPhoneInput.js +23 -0
- package/phone-input/utils.d.ts +1 -1
- package/phone-input/utils.js +3 -3
- package/popover/PopoverEnhancer.d.ts +15 -0
- package/popover/PopoverEnhancer.js +60 -0
- package/popover/hooks.d.ts +1 -11
- package/popover/hooks.js +1 -18
- package/popover/overrides.d.ts +5 -4
- package/popover/overrides.js +57 -33
- package/popover/popover.d.ts +1 -0
- package/popover/popover.js +29 -15
- package/popover/stateful-popover.js +3 -3
- package/popover/styled-components.js +2 -14
- package/popover/types.d.ts +16 -9
- package/popover/utils.js +1 -1
- package/progress/circular/CircularProgress.d.ts +6 -3
- package/progress/circular/CircularProgress.js +37 -10
- package/progress/circular/index.js +1 -1
- package/progress/circular/styled-component.d.ts +26 -12
- package/progress/circular/styled-component.js +20 -82
- package/progress/circular/types.d.ts +2 -2
- package/progress/index.js +5 -5
- package/progress/linear/LinearProgress.d.ts +6 -3
- package/progress/linear/LinearProgress.js +14 -7
- package/progress/linear/ProgressSegment.d.ts +1 -1
- package/progress/linear/ProgressSegment.js +13 -4
- package/progress/linear/index.js +3 -3
- package/progress/linear/styled-component.d.ts +4 -14
- package/progress/linear/styled-component.js +10 -66
- package/progress/linear/types.d.ts +3 -3
- package/progress/types.d.ts +4 -5
- package/progressSteps/constants.d.ts +7 -0
- package/progressSteps/constants.js +10 -0
- package/progressSteps/index.d.ts +5 -0
- package/progressSteps/index.js +11 -0
- package/progressSteps/progress-steps.d.ts +7 -0
- package/progressSteps/progress-steps.js +51 -0
- package/progressSteps/step.d.ts +7 -0
- package/progressSteps/step.js +39 -0
- package/progressSteps/styled-components.d.ts +12 -0
- package/progressSteps/styled-components.js +166 -0
- package/progressSteps/types.d.ts +87 -0
- package/radio/constants.js +10 -0
- package/radio/cvaConfigs.d.ts +6 -0
- package/radio/cvaConfigs.js +152 -0
- package/radio/hooks/useStatefulRadioGroup.d.ts +9 -0
- package/radio/hooks/useStatefulRadioGroup.js +25 -0
- package/radio/index.d.ts +5 -2
- package/radio/index.js +18 -15
- package/radio/radio.d.ts +5 -8
- package/radio/radio.js +101 -23
- package/radio/radiogroup.d.ts +7 -0
- package/radio/radiogroup.js +66 -0
- package/radio/space-radio-context.d.ts +7 -0
- package/radio/space-radio-context.js +8 -0
- package/radio/stateful-radiogroup.js +12 -0
- package/radio/styled-components.d.ts +11 -6
- package/radio/styled-components.js +44 -127
- package/radio/types.d.ts +107 -19
- package/search/cvaConfigs.d.ts +1 -0
- package/search/cvaConfigs.js +56 -0
- package/search/index.js +1 -1
- package/search/search.d.ts +2 -1
- package/search/search.js +48 -26
- package/search/stateful-search.js +3 -3
- package/search/styled-components.d.ts +3 -3
- package/search/styled-components.js +54 -80
- package/search/types.d.ts +18 -9
- package/select/SelectIdsContext.d.ts +17 -0
- package/select/SelectIdsContext.js +32 -0
- package/select/base-select.d.ts +23 -19
- package/select/base-select.js +151 -85
- package/select/constants.d.ts +3 -2
- package/select/constants.js +1 -2
- package/select/cvaConfigs.d.ts +2 -0
- package/select/cvaConfigs.js +45 -0
- package/select/default-props.d.ts +2 -1
- package/select/default-props.js +2 -2
- package/select/enhancer-button.d.ts +10 -0
- package/select/enhancer-button.js +32 -0
- package/select/grouped-select.d.ts +3 -0
- package/select/grouped-select.js +32 -0
- package/select/index.d.ts +14 -7
- package/select/index.js +19 -2
- package/select/locale.d.ts +6 -1
- package/select/mobileSelect/AdaptedCSSTransition/AdaptedCSSTransition.js +2 -2
- package/select/mobileSelect/AdaptedCSSTransition/types.d.ts +1 -1
- package/select/mobileSelect/Backdrop.d.ts +3 -1
- package/select/mobileSelect/Backdrop.js +4 -4
- package/select/mobileSelect/MobileSelect.js +12 -10
- package/select/mobileSelect/MobileSheet.d.ts +4 -3
- package/select/mobileSelect/MobileSheet.js +16 -22
- package/select/mobileSelect/SwipeableTargetArea.js +1 -4
- package/select/mobileSelect/hooks/useKeyboardViewportShiftOffset.js +7 -4
- package/select/mobileSelect/hooks/usePauseBodyScrollEffect.js +1 -1
- package/select/mobileSelect/hooks/useSwipeableSheetStyles.d.ts +2 -1
- package/select/mobileSelect/hooks/useSwipeableSheetStyles.js +9 -7
- package/select/mobileSelect/hooks/useTransitionStyles.js +9 -1
- package/select/mobileSelect/overrides.d.ts +15 -2
- package/select/mobileSelect/overrides.js +37 -16
- package/select/multi-value.d.ts +46 -2
- package/select/multi-value.js +72 -19
- package/select/nested-select.d.ts +92 -0
- package/select/nested-select.js +79 -0
- package/select/no-results-message.d.ts +15 -0
- package/select/no-results-message.js +16 -0
- package/select/overlaySelect/OverlaySelect.d.ts +2 -2
- package/select/overlaySelect/OverlaySelect.js +21 -18
- package/select/overlaySelect/hooks/useControlRef.d.ts +1 -1
- package/select/overlaySelect/hooks/useOverlaySelectOverrides.d.ts +2 -6
- package/select/overlaySelect/hooks/useOverlaySelectOverrides.js +90 -34
- package/select/overlaySelect/hooks/usePopover.js +1 -1
- package/select/overrides.d.ts +16 -13
- package/select/overrides.js +137 -55
- package/select/select-variants.js +3 -3
- package/select/select.d.ts +4 -3
- package/select/select.js +18 -7
- package/select/selectMenuAdapter/CollapsibleSelectMenu.d.ts +37 -22
- package/select/selectMenuAdapter/CollapsibleSelectMenu.js +89 -43
- package/select/selectMenuAdapter/NestedSelectMenuAdapter.d.ts +4 -0
- package/select/selectMenuAdapter/NestedSelectMenuAdapter.js +86 -0
- package/select/selectMenuAdapter/SelectMenuAdapter.d.ts +3 -3
- package/select/selectMenuAdapter/SelectMenuAdapter.js +23 -18
- package/select/selectMenuAdapter/SelectMenuItem.d.ts +48 -8
- package/select/selectMenuAdapter/SelectMenuItem.js +29 -16
- package/select/selectMenuAdapter/hooks/useGetExpandedGroup.d.ts +4 -2
- package/select/selectMenuAdapter/hooks/useGetExpandedGroup.js +37 -10
- package/select/selectMenuAdapter/index.js +1 -1
- package/select/selectMenuAdapter/types.d.ts +15 -12
- package/select/stateful-select.d.ts +2 -1
- package/select/stateful-select.js +7 -7
- package/select/styled-component.d.ts +20 -18
- package/select/styled-component.js +74 -87
- package/select/types.d.ts +67 -30
- package/select/utils/adapt-select-value.d.ts +2 -0
- package/select/utils/adapt-select-value.js +16 -0
- package/select/utils/default-create-option.js +1 -1
- package/select/utils/default-filter-options.js +2 -2
- package/select/utils/hidden-element.js +2 -2
- package/select/utils/merge-options.js +1 -1
- package/select/utils/test-utils.d.ts +1 -1
- package/singleton/createSingletonContext.d.ts +5 -0
- package/singleton/createSingletonContext.js +21 -0
- package/slider/constants.js +7 -0
- package/slider/index.js +4 -4
- package/slider/mark.d.ts +3 -12
- package/slider/mark.js +8 -5
- package/slider/slider.d.ts +4 -4
- package/slider/slider.js +97 -66
- package/slider/stateful-slider-container.d.ts +4 -7
- package/slider/stateful-slider-container.js +23 -9
- package/slider/stateful-slider.js +3 -3
- package/slider/styled-components.d.ts +24 -7
- package/slider/styled-components.js +110 -73
- package/slider/types.d.ts +50 -16
- package/snackbar/Snackbar.d.ts +6 -3
- package/snackbar/Snackbar.js +41 -25
- package/snackbar/constants.d.ts +1 -0
- package/snackbar/constants.js +15 -6
- package/snackbar/index.js +2 -2
- package/snackbar/snackbarContext.d.ts +12 -0
- package/snackbar/snackbarContext.js +28 -0
- package/snackbar/styled-component.d.ts +31 -7
- package/snackbar/styled-component.js +67 -66
- package/snackbar/types.d.ts +18 -17
- package/snackbar/useSnackbar.d.ts +7 -4
- package/snackbar/useSnackbar.js +16 -7
- package/spaceConsumer/SpaceConsumer.d.ts +5 -3
- package/spaceConsumer/SpaceConsumer.js +4 -2
- package/spacewebProvider/AiIconLinearGradients.js +2 -2
- package/spacewebProvider/CustomBaseProvider.js +1 -1
- package/spacewebProvider/DocumentProvider.d.ts +1 -0
- package/spacewebProvider/DocumentProvider.js +6 -3
- package/spacewebProvider/SpacewebProvider.d.ts +4 -1
- package/spacewebProvider/SpacewebProvider.js +12 -10
- package/spacewebProvider/index.d.ts +1 -0
- package/spacewebProvider/index.js +5 -3
- package/stack/context.d.ts +10 -6
- package/stack/context.js +6 -1
- package/stack/index.js +3 -3
- package/stack/stack-item.d.ts +3 -3
- package/stack/stack-item.js +13 -10
- package/stack/stack.d.ts +5 -5
- package/stack/stack.js +40 -30
- package/stack/types.d.ts +4 -4
- package/style/_buildUtils.d.ts +1 -1
- package/style/_buildUtils.js +8 -6
- package/style/_css.js +3 -3
- package/style/_cssParseStyle.d.ts +19 -0
- package/style/_cssParseStyle.js +77 -0
- package/style/_getStyle.js +2 -2
- package/style/_getStyleWithProps.js +2 -2
- package/style/_parseClassName.d.ts +5 -0
- package/style/_parseClassName.js +34 -0
- package/style/_parseStyleProp.d.ts +6 -0
- package/style/_parseStyleProp.js +75 -0
- package/style/_px2rem.d.ts +1 -1
- package/style/_px2rem.js +1 -1
- package/style/customTwMerge.d.ts +1 -0
- package/style/customTwMerge.js +289 -0
- package/style/cvaWrapper.d.ts +12 -0
- package/style/cvaWrapper.js +18 -0
- package/style/index.d.ts +3 -0
- package/style/index.js +5 -1
- package/style/styled-with-css-variables.d.ts +5 -0
- package/style/styled-with-css-variables.js +20 -0
- package/style/styled.d.ts +5 -5
- package/style/styled.js +22 -12
- package/style/useMemoizedStyletron.js +2 -4
- package/style/useStyle.js +3 -3
- package/styleEngine/index.js +1 -1
- package/styleEngine/styleEngine.d.ts +6 -4
- package/styleEngine/styleEngine.js +14 -5
- package/switch/index.d.ts +1 -1
- package/switch/index.js +3 -4
- package/switch/switch.d.ts +2 -1
- package/switch/switch.js +7 -10
- package/switch/types.d.ts +1 -25
- package/tabs/contexts.js +5 -5
- package/tabs/helpers.d.ts +3 -4
- package/tabs/helpers.js +2 -6
- package/tabs/hooks/useScrollableTabs.d.ts +14 -0
- package/tabs/hooks/useScrollableTabs.js +95 -0
- package/tabs/index.d.ts +2 -0
- package/tabs/index.js +9 -5
- package/tabs/scroll-button.d.ts +13 -0
- package/tabs/scroll-button.js +24 -0
- package/tabs/stateful-tabs.d.ts +1 -0
- package/tabs/stateful-tabs.js +3 -2
- package/tabs/styled-components.d.ts +8 -10
- package/tabs/styled-components.js +79 -25
- package/tabs/tab-list.d.ts +1 -2
- package/tabs/tab-list.js +34 -14
- package/tabs/tab.d.ts +1 -0
- package/tabs/tab.js +9 -9
- package/tabs/tabs-panel.js +3 -3
- package/tabs/types.d.ts +33 -12
- package/tag/avatar-tag.d.ts +2 -2
- package/tag/avatar-tag.js +10 -11
- package/tag/constants.d.ts +13 -0
- package/tag/constants.js +17 -0
- package/tag/cvaConfigs.d.ts +5 -0
- package/tag/cvaConfigs.js +224 -0
- package/tag/index.d.ts +2 -1
- package/tag/index.js +3 -1
- package/tag/status-tag.d.ts +12 -0
- package/tag/status-tag.js +28 -0
- package/tag/styled-components.d.ts +5 -4
- package/tag/styled-components.js +25 -48
- package/tag/tag.d.ts +31 -2
- package/tag/tag.js +35 -20
- package/tag/types.d.ts +29 -9
- package/tag/utils.d.ts +16 -30
- package/tag/utils.js +33 -32
- package/test-utils/helper.d.ts +2 -0
- package/test-utils/helper.js +24 -0
- package/test-utils/index.d.ts +1 -0
- package/test-utils/index.js +5 -0
- package/test-utils/test-provider/TestProvider.d.ts +11 -4
- package/test-utils/test-provider/TestProvider.js +18 -4
- package/test-utils/test-provider/helpers.d.ts +2 -2
- package/test-utils/test-provider/helpers.js +5 -5
- package/test-utils/test-provider/testableThemes.d.ts +0 -2
- package/test-utils/test-provider/testableThemes.js +5 -9
- package/textarea/cvaConfig.d.ts +3 -0
- package/textarea/cvaConfig.js +82 -0
- package/textarea/index.d.ts +4 -2
- package/textarea/index.js +10 -9
- package/textarea/stateful-textarea.js +12 -0
- package/textarea/styled-components.d.ts +3 -11
- package/textarea/styled-components.js +36 -14
- package/textarea/textarea.d.ts +5 -9
- package/textarea/textarea.js +55 -28
- package/textarea/types.d.ts +29 -13
- package/textarea/useAutoSizeTextarea.d.ts +1 -1
- package/textarea/useAutoSizeTextarea.js +0 -1
- package/theme/Provider.d.ts +1 -1
- package/theme/Provider.js +5 -5
- package/theme/context.js +3 -2
- package/theme/index.js +3 -3
- package/theme/types.d.ts +2 -2
- package/time-picker/TimePicker.d.ts +4 -1
- package/time-picker/TimePicker.js +6 -4
- package/time-picker/types.d.ts +2 -2
- package/time-range-picker/RangeSelector.d.ts +1 -1
- package/time-range-picker/RangeSelector.js +10 -10
- package/time-range-picker/RangeSelectorContainer.d.ts +3 -3
- package/time-range-picker/RangeSelectorContainer.js +59 -40
- package/time-range-picker/TimeRangeList.d.ts +1 -1
- package/time-range-picker/TimeRangeList.js +28 -18
- package/time-range-picker/TimeRangePicker.d.ts +4 -1
- package/time-range-picker/TimeRangePicker.js +75 -35
- package/time-range-picker/TimezonePicker.d.ts +9 -3
- package/time-range-picker/TimezonePicker.js +9 -19
- package/time-range-picker/getSystemTzName.d.ts +1 -0
- package/time-range-picker/getSystemTzName.js +17 -0
- package/time-range-picker/index.d.ts +2 -0
- package/time-range-picker/index.js +5 -1
- package/time-range-picker/locale.d.ts +7 -1
- package/time-range-picker/styled-component.js +2 -2
- package/time-range-picker/types.d.ts +31 -22
- package/time-range-picker/utils.d.ts +34 -11
- package/time-range-picker/utils.js +155 -108
- package/time-zone-picker/TimezonePicker.d.ts +4 -1
- package/time-zone-picker/TimezonePicker.js +8 -36
- package/time-zone-picker/contants.d.ts +3 -0
- package/time-zone-picker/contants.js +6 -0
- package/time-zone-picker/deprecatedtzdata.d.ts +1 -0
- package/time-zone-picker/deprecatedtzdata.js +48 -0
- package/time-zone-picker/index.d.ts +1 -0
- package/time-zone-picker/index.js +4 -2
- package/time-zone-picker/types.d.ts +15 -10
- package/time-zone-picker/tzAbbreviationsData.d.ts +554 -0
- package/time-zone-picker/tzAbbreviationsData.js +557 -0
- package/time-zone-picker/tzdata.d.ts +1 -0
- package/time-zone-picker/tzdata.js +422 -0
- package/time-zone-picker/utils.d.ts +9 -2
- package/time-zone-picker/utils.js +71 -28
- package/tooltip/actionable-tooltip.d.ts +5 -0
- package/tooltip/actionable-tooltip.js +23 -0
- package/tooltip/default-props.d.ts +2 -0
- package/tooltip/default-props.js +18 -0
- package/tooltip/disabled-tooltip-container.d.ts +35 -16
- package/tooltip/disabled-tooltip-container.js +8 -8
- package/tooltip/index.d.ts +2 -2
- package/tooltip/index.js +3 -5
- package/tooltip/overrides.d.ts +3 -4
- package/tooltip/overrides.js +19 -53
- package/tooltip/stateful-tooltip-container.d.ts +34 -15
- package/tooltip/stateful-tooltip-container.js +3 -3
- package/tooltip/stateful-tooltip.d.ts +32 -13
- package/tooltip/stateful-tooltip.js +6 -6
- package/tooltip/styled-component.d.ts +0 -1
- package/tooltip/styled-component.js +4 -7
- package/tooltip/tooltip.d.ts +1 -0
- package/tooltip/tooltip.js +36 -17
- package/tooltip/types.d.ts +27 -15
- package/transitions/collapse/collapse.d.ts +1 -1
- package/transitions/collapse/collapse.js +16 -10
- package/transitions/collapse/index.d.ts +2 -2
- package/transitions/collapse/styled-components.d.ts +6 -1
- package/transitions/collapse/styled-components.js +13 -22
- package/transitions/collapse/types.d.ts +4 -4
- package/transitions/fade/fade.d.ts +1 -1
- package/transitions/fade/fade.js +19 -17
- package/transitions/fade/types.d.ts +2 -2
- package/transitions/grow/grow.d.ts +1 -1
- package/transitions/grow/grow.js +20 -20
- package/transitions/grow/types.d.ts +2 -2
- package/transitions/transition/SwitchTransition.d.ts +4 -0
- package/transitions/transition/SwitchTransition.js +14 -0
- package/transitions/transition/index.d.ts +1 -0
- package/transitions/transition/index.js +3 -1
- package/transitions/transition/styled-component.d.ts +1 -1
- package/transitions/transition/styled-component.js +4 -13
- package/transitions/transition/transition.d.ts +1 -1
- package/transitions/transition/transition.js +9 -7
- package/transitions/transition/transitionGroup.js +3 -3
- package/transitions/transition/types.d.ts +11 -9
- package/truncateWithTooltip/TruncateWithTooltip.d.ts +4 -1
- package/truncateWithTooltip/TruncateWithTooltip.js +35 -7
- package/truncateWithTooltip/hooks/useTruncateWithTooltip.d.ts +6 -4
- package/truncateWithTooltip/hooks/useTruncateWithTooltip.js +20 -8
- package/truncateWithTooltip/types.d.ts +13 -8
- package/tsconfig.build.tsbuildinfo +1 -0
- package/type-utils.d.ts +2 -0
- package/types.d.ts +40 -23
- package/typings.d.ts +16 -0
- package/typography/Typography.d.ts +6 -4
- package/typography/Typography.js +17 -5
- package/typography/constants.d.ts +71 -9
- package/typography/constants.js +75 -10
- package/typography/index.d.ts +1 -1
- package/typography/index.js +5 -2
- package/typography/styled-components.d.ts +1 -1
- package/typography/styled-components.js +29 -15
- package/typography/types.d.ts +28 -3
- package/utility-types/index.d.ts +1 -1
- package/utils/generalUtils.d.ts +2 -0
- package/utils/generalUtils.js +16 -0
- package/utils/intlNumberFormatUtils/index.js +1 -1
- package/utils/intlNumberFormatUtils/types.d.ts +5 -5
- package/video/DefaultFallbackImg.d.ts +4 -0
- package/video/DefaultFallbackImg.js +18 -0
- package/video/Video.d.ts +4 -4
- package/video/Video.js +38 -24
- package/video/index.d.ts +1 -0
- package/video/index.js +3 -1
- package/video/types.d.ts +5 -4
- package/asyncSelect/package.json +0 -4
- package/avatar/package.json +0 -4
- package/badge/package.json +0 -4
- package/banner/package.json +0 -4
- package/base-button/package.json +0 -4
- package/baseui/button/button-internals.d.ts +0 -2
- package/baseui/button/button-internals.js +0 -38
- package/baseui/button/button.d.ts +0 -10
- package/baseui/button/button.js +0 -96
- package/baseui/button/constants.d.ts +0 -18
- package/baseui/button/constants.js +0 -27
- package/baseui/button/default-props.d.ts +0 -9
- package/baseui/button/default-props.js +0 -19
- package/baseui/button/index.d.ts +0 -7
- package/baseui/button/index.js +0 -20
- package/baseui/button/styled-components.d.ts +0 -5
- package/baseui/button/styled-components.js +0 -72
- package/baseui/button/types.d.ts +0 -47
- package/baseui/button/utils.d.ts +0 -2
- package/baseui/button/utils.js +0 -16
- package/baseui/card/styled-components.d.ts +0 -0
- package/baseui/card/styled-components.js +0 -0
- package/baseui/checkbox/checkbox.d.ts +0 -23
- package/baseui/checkbox/checkbox.js +0 -144
- package/baseui/checkbox/constants.d.ts +0 -14
- package/baseui/checkbox/constants.js +0 -26
- package/baseui/checkbox/index.d.ts +0 -6
- package/baseui/checkbox/index.js +0 -31
- package/baseui/checkbox/stateful-checkbox-container.d.ts +0 -15
- package/baseui/checkbox/stateful-checkbox-container.js +0 -80
- package/baseui/checkbox/stateful-checkbox.js +0 -14
- package/baseui/checkbox/styled-components.d.ts +0 -6
- package/baseui/checkbox/styled-components.js +0 -51
- package/baseui/checkbox/types.d.ts +0 -160
- package/baseui/index.d.ts +0 -1
- package/baseui/index.js +0 -12
- package/baseui/input/base-input.d.ts +0 -64
- package/baseui/input/base-input.js +0 -249
- package/baseui/input/input.d.ts +0 -33
- package/baseui/input/input.js +0 -100
- package/baseui/input/masked-input.d.ts +0 -8
- package/baseui/input/masked-input.js +0 -56
- package/baseui/input/stateful-container.d.ts +0 -16
- package/baseui/input/stateful-container.js +0 -42
- package/baseui/input/stateful-input.d.ts +0 -2
- package/baseui/input/stateful-input.js +0 -10
- package/baseui/input/styled-components.d.ts +0 -15
- package/baseui/input/styled-components.js +0 -47
- package/baseui/input/utils.d.ts +0 -2
- package/baseui/input/utils.js +0 -21
- package/baseui/locale/en_US.d.ts +0 -3
- package/baseui/locale/en_US.js +0 -26
- package/baseui/locale/es_AR.d.ts +0 -3
- package/baseui/locale/es_AR.js +0 -128
- package/baseui/locale/index.d.ts +0 -26
- package/baseui/locale/index.js +0 -26
- package/baseui/locale/tr_TR.d.ts +0 -3
- package/baseui/locale/tr_TR.js +0 -124
- package/baseui/locale/types.d.ts +0 -10
- package/baseui/menu/styled-components.d.ts +0 -0
- package/baseui/menu/styled-components.js +0 -0
- package/baseui/modal/modal-button.d.ts +0 -5
- package/baseui/modal/modal-button.js +0 -34
- package/baseui/package.json +0 -4
- package/baseui/payment-card/custom-cards.config.js +0 -24
- package/baseui/payment-card/icons/amex.js +0 -9
- package/baseui/payment-card/icons/dinersclub.js +0 -9
- package/baseui/payment-card/icons/discover.js +0 -9
- package/baseui/payment-card/icons/elo.js +0 -9
- package/baseui/payment-card/icons/generic.js +0 -9
- package/baseui/payment-card/icons/jcb.js +0 -9
- package/baseui/payment-card/icons/maestro.js +0 -9
- package/baseui/payment-card/icons/mastercard.js +0 -9
- package/baseui/payment-card/icons/uatp.js +0 -9
- package/baseui/payment-card/icons/unionpay.js +0 -9
- package/baseui/payment-card/icons/visa.js +0 -9
- package/baseui/payment-card/index.d.ts +0 -7
- package/baseui/payment-card/index.js +0 -24
- package/baseui/payment-card/payment-card.d.ts +0 -24
- package/baseui/payment-card/payment-card.js +0 -113
- package/baseui/payment-card/stateful-payment-card.d.ts +0 -2
- package/baseui/payment-card/stateful-payment-card.js +0 -10
- package/baseui/payment-card/styled-components.d.ts +0 -1
- package/baseui/payment-card/styled-components.js +0 -12
- package/baseui/payment-card/types.d.ts +0 -11
- package/baseui/payment-card/utils.d.ts +0 -3
- package/baseui/payment-card/utils.js +0 -50
- package/baseui/progress-bar/styled-components.d.ts +0 -0
- package/baseui/progress-bar/styled-components.js +0 -0
- package/baseui/radio/constants.js +0 -18
- package/baseui/radio/index.d.ts +0 -7
- package/baseui/radio/index.js +0 -30
- package/baseui/radio/radio.d.ts +0 -33
- package/baseui/radio/radio.js +0 -106
- package/baseui/radio/radiogroup.d.ts +0 -14
- package/baseui/radio/radiogroup.js +0 -84
- package/baseui/radio/stateful-radiogroup-container.d.ts +0 -11
- package/baseui/radio/stateful-radiogroup-container.js +0 -58
- package/baseui/radio/stateful-radiogroup.js +0 -15
- package/baseui/radio/styled-components.d.ts +0 -7
- package/baseui/radio/styled-components.js +0 -53
- package/baseui/radio/types.d.ts +0 -169
- package/baseui/radio/types.js +0 -2
- package/baseui/slider/constants.js +0 -13
- package/baseui/slider/index.d.ts +0 -8
- package/baseui/slider/index.js +0 -22
- package/baseui/slider/slider.d.ts +0 -3
- package/baseui/slider/slider.js +0 -100
- package/baseui/slider/stateful-slider-container.d.ts +0 -23
- package/baseui/slider/stateful-slider-container.js +0 -59
- package/baseui/slider/stateful-slider.d.ts +0 -2
- package/baseui/slider/stateful-slider.js +0 -10
- package/baseui/slider/styled-components.d.ts +0 -9
- package/baseui/slider/styled-components.js +0 -58
- package/baseui/slider/types.d.ts +0 -74
- package/baseui/slider/types.js +0 -2
- package/baseui/spinner/styled-components.d.ts +0 -0
- package/baseui/spinner/styled-components.js +0 -0
- package/baseui/table-semantic/constants.d.ts +0 -11
- package/baseui/table-semantic/constants.js +0 -20
- package/baseui/table-semantic/index.d.ts +0 -4
- package/baseui/table-semantic/index.js +0 -29
- package/baseui/table-semantic/styled-components.d.ts +0 -11
- package/baseui/table-semantic/styled-components.js +0 -42
- package/baseui/table-semantic/table-builder-column.d.ts +0 -4
- package/baseui/table-semantic/table-builder-column.js +0 -18
- package/baseui/table-semantic/table-builder.d.ts +0 -17
- package/baseui/table-semantic/table-builder.js +0 -81
- package/baseui/table-semantic/table.d.ts +0 -10
- package/baseui/table-semantic/table.js +0 -45
- package/baseui/table-semantic/types.d.ts +0 -66
- package/baseui/table-semantic/types.js +0 -2
- package/baseui/textarea/constants.d.ts +0 -1
- package/baseui/textarea/constants.js +0 -13
- package/baseui/textarea/index.d.ts +0 -6
- package/baseui/textarea/index.js +0 -24
- package/baseui/textarea/stateful-container.d.ts +0 -2
- package/baseui/textarea/stateful-container.js +0 -10
- package/baseui/textarea/stateful-textarea.js +0 -12
- package/baseui/textarea/styled-components.d.ts +0 -3
- package/baseui/textarea/styled-components.js +0 -19
- package/baseui/textarea/textarea.d.ts +0 -32
- package/baseui/textarea/textarea.js +0 -63
- package/baseui/textarea/types.d.ts +0 -44
- package/baseui/textarea/types.js +0 -2
- package/baseui/tooltip/constants.d.ts +0 -1
- package/baseui/tooltip/constants.js +0 -14
- package/baseui/tooltip/default-props.d.ts +0 -3
- package/baseui/tooltip/default-props.js +0 -24
- package/baseui/tooltip/index.d.ts +0 -6
- package/baseui/tooltip/index.js +0 -29
- package/baseui/tooltip/stateful-tooltip-container.d.ts +0 -7
- package/baseui/tooltip/stateful-tooltip-container.js +0 -25
- package/baseui/tooltip/stateful-tooltip.d.ts +0 -6
- package/baseui/tooltip/stateful-tooltip.js +0 -12
- package/baseui/tooltip/styled-components.d.ts +0 -14
- package/baseui/tooltip/styled-components.js +0 -33
- package/baseui/tooltip/tooltip.d.ts +0 -7
- package/baseui/tooltip/tooltip.js +0 -33
- package/baseui/tooltip/types.d.ts +0 -8
- package/baseui/tooltip/types.js +0 -2
- package/baseui/utils/deep-merge.d.ts +0 -1
- package/baseui/utils/deep-merge.js +0 -40
- package/box/package.json +0 -4
- package/breadcrumb/package.json +0 -4
- package/button/basewebAdapter.d.ts +0 -33
- package/button/basewebAdapter.js +0 -12
- package/button/package.json +0 -4
- package/button-group/package.json +0 -4
- package/checkbox/basewebAdapters.d.ts +0 -7
- package/checkbox/basewebAdapters.js +0 -45
- package/checkbox/package.json +0 -4
- package/classNames/package.json +0 -4
- package/col/package.json +0 -4
- package/color-picker/getContrastRatio.d.ts +0 -1
- package/color-picker/getContrastRatio.js +0 -23
- package/color-picker/package.json +0 -4
- package/container/package.json +0 -4
- package/currency/package.json +0 -4
- package/date-input/package.json +0 -4
- package/date-input/styled-components.d.ts +0 -4
- package/date-input/styled-components.js +0 -18
- package/date-picker/package.json +0 -4
- package/date-time/package.json +0 -4
- package/esm/baseui/button/button-internals.d.ts +0 -2
- package/esm/baseui/button/button-internals.js +0 -35
- package/esm/baseui/button/button.d.ts +0 -10
- package/esm/baseui/button/button.js +0 -94
- package/esm/baseui/button/constants.d.ts +0 -18
- package/esm/baseui/button/constants.js +0 -24
- package/esm/baseui/button/default-props.d.ts +0 -9
- package/esm/baseui/button/default-props.js +0 -16
- package/esm/baseui/button/index.d.ts +0 -7
- package/esm/baseui/button/index.js +0 -7
- package/esm/baseui/button/styled-components.d.ts +0 -5
- package/esm/baseui/button/styled-components.js +0 -69
- package/esm/baseui/button/types.d.ts +0 -47
- package/esm/baseui/button/utils.d.ts +0 -2
- package/esm/baseui/button/utils.js +0 -12
- package/esm/baseui/card/styled-components.d.ts +0 -0
- package/esm/baseui/card/styled-components.js +0 -0
- package/esm/baseui/checkbox/checkbox.d.ts +0 -23
- package/esm/baseui/checkbox/checkbox.js +0 -142
- package/esm/baseui/checkbox/constants.d.ts +0 -14
- package/esm/baseui/checkbox/constants.js +0 -23
- package/esm/baseui/checkbox/index.d.ts +0 -6
- package/esm/baseui/checkbox/index.js +0 -15
- package/esm/baseui/checkbox/stateful-checkbox-container.d.ts +0 -15
- package/esm/baseui/checkbox/stateful-checkbox-container.js +0 -78
- package/esm/baseui/checkbox/stateful-checkbox.js +0 -12
- package/esm/baseui/checkbox/styled-components.d.ts +0 -6
- package/esm/baseui/checkbox/styled-components.js +0 -48
- package/esm/baseui/checkbox/types.d.ts +0 -160
- package/esm/baseui/index.d.ts +0 -1
- package/esm/baseui/index.js +0 -7
- package/esm/baseui/input/base-input.d.ts +0 -64
- package/esm/baseui/input/base-input.js +0 -247
- package/esm/baseui/input/input.d.ts +0 -33
- package/esm/baseui/input/input.js +0 -96
- package/esm/baseui/input/masked-input.d.ts +0 -8
- package/esm/baseui/input/masked-input.js +0 -53
- package/esm/baseui/input/stateful-container.d.ts +0 -16
- package/esm/baseui/input/stateful-container.js +0 -40
- package/esm/baseui/input/stateful-input.d.ts +0 -2
- package/esm/baseui/input/stateful-input.js +0 -7
- package/esm/baseui/input/styled-components.d.ts +0 -15
- package/esm/baseui/input/styled-components.js +0 -41
- package/esm/baseui/input/utils.d.ts +0 -2
- package/esm/baseui/input/utils.js +0 -17
- package/esm/baseui/locale/en_US.d.ts +0 -3
- package/esm/baseui/locale/en_US.js +0 -23
- package/esm/baseui/locale/es_AR.d.ts +0 -3
- package/esm/baseui/locale/es_AR.js +0 -126
- package/esm/baseui/locale/index.d.ts +0 -26
- package/esm/baseui/locale/index.js +0 -23
- package/esm/baseui/locale/tr_TR.d.ts +0 -3
- package/esm/baseui/locale/tr_TR.js +0 -122
- package/esm/baseui/locale/types.d.ts +0 -10
- package/esm/baseui/menu/styled-components.d.ts +0 -0
- package/esm/baseui/menu/styled-components.js +0 -0
- package/esm/baseui/modal/modal-button.d.ts +0 -5
- package/esm/baseui/modal/modal-button.js +0 -32
- package/esm/baseui/payment-card/custom-cards.config.js +0 -21
- package/esm/baseui/payment-card/icons/amex.js +0 -7
- package/esm/baseui/payment-card/icons/dinersclub.js +0 -7
- package/esm/baseui/payment-card/icons/discover.js +0 -7
- package/esm/baseui/payment-card/icons/elo.js +0 -7
- package/esm/baseui/payment-card/icons/generic.js +0 -7
- package/esm/baseui/payment-card/icons/jcb.js +0 -7
- package/esm/baseui/payment-card/icons/maestro.js +0 -7
- package/esm/baseui/payment-card/icons/mastercard.js +0 -7
- package/esm/baseui/payment-card/icons/uatp.js +0 -7
- package/esm/baseui/payment-card/icons/unionpay.js +0 -7
- package/esm/baseui/payment-card/icons/visa.js +0 -7
- package/esm/baseui/payment-card/index.d.ts +0 -7
- package/esm/baseui/payment-card/index.js +0 -14
- package/esm/baseui/payment-card/payment-card.d.ts +0 -24
- package/esm/baseui/payment-card/payment-card.js +0 -111
- package/esm/baseui/payment-card/stateful-payment-card.d.ts +0 -2
- package/esm/baseui/payment-card/stateful-payment-card.js +0 -7
- package/esm/baseui/payment-card/styled-components.d.ts +0 -1
- package/esm/baseui/payment-card/styled-components.js +0 -9
- package/esm/baseui/payment-card/types.d.ts +0 -11
- package/esm/baseui/payment-card/utils.d.ts +0 -3
- package/esm/baseui/payment-card/utils.js +0 -43
- package/esm/baseui/progress-bar/styled-components.d.ts +0 -0
- package/esm/baseui/progress-bar/styled-components.js +0 -0
- package/esm/baseui/radio/constants.js +0 -15
- package/esm/baseui/radio/index.d.ts +0 -7
- package/esm/baseui/radio/index.js +0 -14
- package/esm/baseui/radio/radio.d.ts +0 -33
- package/esm/baseui/radio/radio.js +0 -104
- package/esm/baseui/radio/radiogroup.d.ts +0 -14
- package/esm/baseui/radio/radiogroup.js +0 -82
- package/esm/baseui/radio/stateful-radiogroup-container.d.ts +0 -11
- package/esm/baseui/radio/stateful-radiogroup-container.js +0 -56
- package/esm/baseui/radio/stateful-radiogroup.js +0 -13
- package/esm/baseui/radio/styled-components.d.ts +0 -7
- package/esm/baseui/radio/styled-components.js +0 -50
- package/esm/baseui/radio/types.d.ts +0 -169
- package/esm/baseui/slider/constants.js +0 -10
- package/esm/baseui/slider/index.d.ts +0 -8
- package/esm/baseui/slider/index.js +0 -6
- package/esm/baseui/slider/slider.d.ts +0 -3
- package/esm/baseui/slider/slider.js +0 -98
- package/esm/baseui/slider/stateful-slider-container.d.ts +0 -23
- package/esm/baseui/slider/stateful-slider-container.js +0 -57
- package/esm/baseui/slider/stateful-slider.d.ts +0 -2
- package/esm/baseui/slider/stateful-slider.js +0 -7
- package/esm/baseui/slider/styled-components.d.ts +0 -9
- package/esm/baseui/slider/styled-components.js +0 -55
- package/esm/baseui/slider/types.d.ts +0 -74
- package/esm/baseui/spinner/styled-components.d.ts +0 -0
- package/esm/baseui/spinner/styled-components.js +0 -0
- package/esm/baseui/table-semantic/constants.d.ts +0 -11
- package/esm/baseui/table-semantic/constants.js +0 -17
- package/esm/baseui/table-semantic/index.d.ts +0 -4
- package/esm/baseui/table-semantic/index.js +0 -12
- package/esm/baseui/table-semantic/styled-components.d.ts +0 -11
- package/esm/baseui/table-semantic/styled-components.js +0 -39
- package/esm/baseui/table-semantic/table-builder-column.d.ts +0 -4
- package/esm/baseui/table-semantic/table-builder-column.js +0 -16
- package/esm/baseui/table-semantic/table-builder.d.ts +0 -17
- package/esm/baseui/table-semantic/table-builder.js +0 -79
- package/esm/baseui/table-semantic/table.d.ts +0 -10
- package/esm/baseui/table-semantic/table.js +0 -43
- package/esm/baseui/table-semantic/types.d.ts +0 -66
- package/esm/baseui/table-semantic/types.js +0 -1
- package/esm/baseui/textarea/constants.d.ts +0 -1
- package/esm/baseui/textarea/constants.js +0 -7
- package/esm/baseui/textarea/index.d.ts +0 -6
- package/esm/baseui/textarea/index.js +0 -13
- package/esm/baseui/textarea/stateful-container.d.ts +0 -2
- package/esm/baseui/textarea/stateful-container.js +0 -8
- package/esm/baseui/textarea/stateful-textarea.js +0 -9
- package/esm/baseui/textarea/styled-components.d.ts +0 -3
- package/esm/baseui/textarea/styled-components.js +0 -16
- package/esm/baseui/textarea/textarea.d.ts +0 -32
- package/esm/baseui/textarea/textarea.js +0 -61
- package/esm/baseui/textarea/types.d.ts +0 -44
- package/esm/baseui/textarea/types.js +0 -1
- package/esm/baseui/tooltip/constants.d.ts +0 -1
- package/esm/baseui/tooltip/constants.js +0 -7
- package/esm/baseui/tooltip/default-props.d.ts +0 -3
- package/esm/baseui/tooltip/default-props.js +0 -22
- package/esm/baseui/tooltip/index.d.ts +0 -6
- package/esm/baseui/tooltip/index.js +0 -15
- package/esm/baseui/tooltip/stateful-tooltip-container.d.ts +0 -7
- package/esm/baseui/tooltip/stateful-tooltip-container.js +0 -23
- package/esm/baseui/tooltip/stateful-tooltip.d.ts +0 -6
- package/esm/baseui/tooltip/stateful-tooltip.js +0 -10
- package/esm/baseui/tooltip/styled-components.d.ts +0 -14
- package/esm/baseui/tooltip/styled-components.js +0 -30
- package/esm/baseui/tooltip/tooltip.d.ts +0 -7
- package/esm/baseui/tooltip/tooltip.js +0 -31
- package/esm/baseui/tooltip/types.d.ts +0 -8
- package/esm/baseui/tooltip/types.js +0 -1
- package/esm/baseui/utils/deep-merge.d.ts +0 -1
- package/esm/baseui/utils/deep-merge.js +0 -37
- package/esm/button/basewebAdapter.d.ts +0 -33
- package/esm/button/basewebAdapter.js +0 -10
- package/esm/checkbox/basewebAdapters.d.ts +0 -7
- package/esm/checkbox/basewebAdapters.js +0 -42
- package/esm/color-picker/getContrastRatio.d.ts +0 -1
- package/esm/color-picker/getContrastRatio.js +0 -19
- package/esm/date-input/styled-components.d.ts +0 -4
- package/esm/date-input/styled-components.js +0 -15
- package/esm/icon/components/error-solid.d.ts +0 -3
- package/esm/icon/components/error-solid.js +0 -8
- package/esm/input/basewebAdapters.d.ts +0 -7
- package/esm/input/basewebAdapters.js +0 -63
- package/esm/payment-card/basewebAdapters.d.ts +0 -9
- package/esm/payment-card/basewebAdapters.js +0 -45
- package/esm/phone-input/stateful-phone-input-container.d.ts +0 -4
- package/esm/phone-input/stateful-phone-input-container.js +0 -20
- package/esm/popover/PopoverEnahncer.d.ts +0 -15
- package/esm/popover/PopoverEnahncer.js +0 -57
- package/esm/popover/useFoucsLock.d.ts +0 -6
- package/esm/popover/useFoucsLock.js +0 -9
- package/esm/radio/basewebAdapters.d.ts +0 -13
- package/esm/radio/basewebAdapters.js +0 -53
- package/esm/setupTests.d.ts +0 -1
- package/esm/setupTests.js +0 -21
- package/esm/style/__fixtures__/utilities-dark.fixture.d.ts +0 -4407
- package/esm/style/__fixtures__/utilities-dark.fixture.js +0 -4409
- package/esm/style/_parseStyle.d.ts +0 -19
- package/esm/style/_parseStyle.js +0 -73
- package/esm/switch/__test__/switch.spec.d.ts +0 -1
- package/esm/switch/__test__/switch.spec.js +0 -107
- package/esm/switch/basewebAdapter.d.ts +0 -5
- package/esm/switch/basewebAdapter.js +0 -18
- package/esm/switch/styled-components.d.ts +0 -5
- package/esm/switch/styled-components.js +0 -73
- package/esm/tag/intentStyles.d.ts +0 -8
- package/esm/tag/intentStyles.js +0 -111
- package/esm/textarea/basewebAdapters.d.ts +0 -3
- package/esm/textarea/basewebAdapters.js +0 -34
- package/form-control/package.json +0 -4
- package/grid/package.json +0 -4
- package/helpers/package.json +0 -4
- package/hooks/package.json +0 -4
- package/icon/components/error-solid.d.ts +0 -3
- package/icon/components/error-solid.js +0 -11
- package/icon/package.json +0 -4
- package/image/package.json +0 -4
- package/input/basewebAdapters.d.ts +0 -7
- package/input/basewebAdapters.js +0 -65
- package/input/package.json +0 -4
- package/layer/package.json +0 -4
- package/link/package.json +0 -4
- package/list/package.json +0 -4
- package/loader/package.json +0 -4
- package/locale/package.json +0 -4
- package/menu/package.json +0 -4
- package/modal/package.json +0 -4
- package/number/package.json +0 -4
- package/overrides/package.json +0 -4
- package/payment-card/basewebAdapters.d.ts +0 -9
- package/payment-card/basewebAdapters.js +0 -47
- package/payment-card/package.json +0 -4
- package/phone-input/package.json +0 -4
- package/phone-input/stateful-phone-input-container.d.ts +0 -4
- package/phone-input/stateful-phone-input-container.js +0 -22
- package/popover/PopoverEnahncer.d.ts +0 -15
- package/popover/PopoverEnahncer.js +0 -60
- package/popover/package.json +0 -4
- package/popover/useFoucsLock.d.ts +0 -6
- package/popover/useFoucsLock.js +0 -13
- package/progress/package.json +0 -4
- package/radio/basewebAdapters.d.ts +0 -13
- package/radio/basewebAdapters.js +0 -58
- package/radio/package.json +0 -4
- package/search/package.json +0 -4
- package/select/package.json +0 -4
- package/setupTests.d.ts +0 -1
- package/setupTests.js +0 -24
- package/slider/package.json +0 -4
- package/snackbar/package.json +0 -4
- package/spaceConsumer/package.json +0 -4
- package/spacewebProvider/package.json +0 -4
- package/stack/package.json +0 -4
- package/style/__fixtures__/utilities-dark.fixture.d.ts +0 -4407
- package/style/__fixtures__/utilities-dark.fixture.js +0 -4409
- package/style/_parseStyle.d.ts +0 -19
- package/style/_parseStyle.js +0 -76
- package/style/package.json +0 -4
- package/styleEngine/package.json +0 -4
- package/switch/__test__/switch.spec.d.ts +0 -1
- package/switch/__test__/switch.spec.js +0 -109
- package/switch/basewebAdapter.d.ts +0 -5
- package/switch/basewebAdapter.js +0 -22
- package/switch/package.json +0 -4
- package/switch/styled-components.d.ts +0 -5
- package/switch/styled-components.js +0 -79
- package/tabs/package.json +0 -4
- package/tag/intentStyles.d.ts +0 -8
- package/tag/intentStyles.js +0 -115
- package/tag/package.json +0 -4
- package/test-utils/package.json +0 -4
- package/textarea/basewebAdapters.d.ts +0 -3
- package/textarea/basewebAdapters.js +0 -36
- package/textarea/package.json +0 -4
- package/theme/package.json +0 -4
- package/time-picker/package.json +0 -4
- package/time-range-picker/package.json +0 -4
- package/time-zone-picker/package.json +0 -4
- package/tooltip/package.json +0 -4
- package/transitions/package.json +0 -4
- package/truncateWithTooltip/package.json +0 -4
- package/tsconfig.tsbuildinfo +0 -1
- package/typography/package.json +0 -4
- package/utility-types/package.json +0 -4
- package/utils/package.json +0 -4
- package/video/package.json +0 -4
- /package/{esm/baseui/button/types.js → __patches/apply.d.ts} +0 -0
- /package/{baseui/button → a11y}/types.js +0 -0
- /package/{baseui/checkbox → button/CitationButton}/types.js +0 -0
- /package/{baseui/checkbox → checkbox}/stateful-checkbox.d.ts +0 -0
- /package/esm/{baseui/checkbox/types.js → __patches/apply.d.ts} +0 -0
- /package/esm/{baseui/locale → a11y}/types.js +0 -0
- /package/esm/{baseui/payment-card → button/CitationButton}/types.js +0 -0
- /package/esm/{baseui/checkbox → checkbox}/stateful-checkbox.d.ts +0 -0
- /package/{baseui → esm}/payment-card/custom-cards.config.d.ts +0 -0
- /package/{baseui → esm}/payment-card/icons/amex.d.ts +0 -0
- /package/{baseui → esm}/payment-card/icons/dinersclub.d.ts +0 -0
- /package/{baseui → esm}/payment-card/icons/discover.d.ts +0 -0
- /package/{baseui → esm}/payment-card/icons/elo.d.ts +0 -0
- /package/{baseui → esm}/payment-card/icons/generic.d.ts +0 -0
- /package/{baseui → esm}/payment-card/icons/jcb.d.ts +0 -0
- /package/{baseui → esm}/payment-card/icons/maestro.d.ts +0 -0
- /package/{baseui → esm}/payment-card/icons/mastercard.d.ts +0 -0
- /package/{baseui → esm}/payment-card/icons/uatp.d.ts +0 -0
- /package/{baseui → esm}/payment-card/icons/unionpay.d.ts +0 -0
- /package/{baseui → esm}/payment-card/icons/visa.d.ts +0 -0
- /package/esm/{baseui/radio → progressSteps}/types.js +0 -0
- /package/{baseui → esm}/radio/constants.d.ts +0 -0
- /package/{baseui → esm}/radio/stateful-radiogroup.d.ts +0 -0
- /package/{baseui → esm}/slider/constants.d.ts +0 -0
- /package/{baseui → esm}/textarea/stateful-textarea.d.ts +0 -0
- /package/esm/{baseui/slider/types.js → type-utils.js} +0 -0
- /package/{esm/baseui/payment-card → payment-card}/custom-cards.config.d.ts +0 -0
- /package/{esm/baseui/payment-card → payment-card}/icons/amex.d.ts +0 -0
- /package/{esm/baseui/payment-card → payment-card}/icons/dinersclub.d.ts +0 -0
- /package/{esm/baseui/payment-card → payment-card}/icons/discover.d.ts +0 -0
- /package/{esm/baseui/payment-card → payment-card}/icons/elo.d.ts +0 -0
- /package/{esm/baseui/payment-card → payment-card}/icons/generic.d.ts +0 -0
- /package/{esm/baseui/payment-card → payment-card}/icons/jcb.d.ts +0 -0
- /package/{esm/baseui/payment-card → payment-card}/icons/maestro.d.ts +0 -0
- /package/{esm/baseui/payment-card → payment-card}/icons/mastercard.d.ts +0 -0
- /package/{esm/baseui/payment-card → payment-card}/icons/uatp.d.ts +0 -0
- /package/{esm/baseui/payment-card → payment-card}/icons/unionpay.d.ts +0 -0
- /package/{esm/baseui/payment-card → payment-card}/icons/visa.d.ts +0 -0
- /package/{baseui/locale → progressSteps}/types.js +0 -0
- /package/{esm/baseui/radio → radio}/constants.d.ts +0 -0
- /package/{esm/baseui/radio → radio}/stateful-radiogroup.d.ts +0 -0
- /package/{esm/baseui/slider → slider}/constants.d.ts +0 -0
- /package/{esm/baseui/textarea → textarea}/stateful-textarea.d.ts +0 -0
- /package/{baseui/payment-card/types.js → type-utils.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getValueLabel = exports.getOptionLabel = void 0;
|
|
4
4
|
var tslib_1 = require("tslib");
|
|
5
5
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
6
|
/*
|
|
@@ -9,25 +9,28 @@ Copyright (c) Uber Technologies, Inc.
|
|
|
9
9
|
This source code is licensed under the MIT license found in the
|
|
10
10
|
LICENSE file in the root directory of this source tree.
|
|
11
11
|
*/
|
|
12
|
-
var
|
|
13
|
-
var memoize_one_1 =
|
|
14
|
-
var overrides_1 = require("
|
|
15
|
-
var locale_1 = require("../locale");
|
|
12
|
+
var react_1 = require("react");
|
|
13
|
+
var memoize_one_1 = tslib_1.__importDefault(require("memoize-one"));
|
|
14
|
+
var overrides_1 = require("../../overrides");
|
|
16
15
|
var popover_1 = require("../popover");
|
|
17
|
-
var
|
|
18
|
-
var autosize_input_1 = (0, tslib_1.__importDefault)(require("./autosize-input"));
|
|
16
|
+
var autosize_input_1 = tslib_1.__importDefault(require("./autosize-input"));
|
|
19
17
|
var constants_1 = require("./constants");
|
|
20
|
-
var default_props_1 =
|
|
21
|
-
var dropdown_1 =
|
|
18
|
+
var default_props_1 = tslib_1.__importDefault(require("./default-props"));
|
|
19
|
+
var dropdown_1 = tslib_1.__importDefault(require("./dropdown"));
|
|
22
20
|
var styled_components_1 = require("./styled-components");
|
|
21
|
+
var styled_components_2 = require("../../input/styled-components");
|
|
22
|
+
var constants_2 = require("../../input/constants");
|
|
23
23
|
var utils_1 = require("./utils");
|
|
24
24
|
var spacewebProvider_1 = require("../../spacewebProvider");
|
|
25
|
-
var locale_2 = (0, tslib_1.__importDefault)(require("./locale"));
|
|
26
25
|
var helpers_1 = require("../../helpers");
|
|
26
|
+
var popover_2 = require("../../popover");
|
|
27
|
+
var list_1 = require("../../list");
|
|
28
|
+
var SelectIdsContext_1 = require("../../select/SelectIdsContext");
|
|
27
29
|
var __DEV__ = process.env.NODE_ENV !== 'production';
|
|
28
30
|
function Noop() {
|
|
29
31
|
return null;
|
|
30
32
|
}
|
|
33
|
+
var isEnhancer = function (enhancer) { return Boolean(enhancer || enhancer === 0); };
|
|
31
34
|
var isClick = function (event) { return event.type === 'click'; };
|
|
32
35
|
var isLeftClick = function (event) { return event.button !== null && event.button !== undefined && event.button === 0; };
|
|
33
36
|
var containsNode = function (parent, child) {
|
|
@@ -36,31 +39,30 @@ var containsNode = function (parent, child) {
|
|
|
36
39
|
}
|
|
37
40
|
return undefined;
|
|
38
41
|
};
|
|
39
|
-
function
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
return true;
|
|
46
|
-
}
|
|
47
|
-
if (target.tagName)
|
|
48
|
-
target = target.parentElement;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
return false;
|
|
42
|
+
function getOptionLabel(_a, _b) {
|
|
43
|
+
var option = _a.option;
|
|
44
|
+
var selectLocale = _b.selectLocale, labelKey = _b.labelKey;
|
|
45
|
+
return option.isCreatable
|
|
46
|
+
? "".concat(selectLocale === null || selectLocale === void 0 ? void 0 : selectLocale.create, " \u201C").concat(labelKey && option[labelKey], "\u201D")
|
|
47
|
+
: labelKey && option[labelKey];
|
|
52
48
|
}
|
|
53
|
-
exports.
|
|
49
|
+
exports.getOptionLabel = getOptionLabel;
|
|
50
|
+
function getValueLabel(_a, _b) {
|
|
51
|
+
var option = _a.option;
|
|
52
|
+
var labelKey = _b.labelKey;
|
|
53
|
+
return labelKey && option[labelKey];
|
|
54
|
+
}
|
|
55
|
+
exports.getValueLabel = getValueLabel;
|
|
54
56
|
var Select = /** @class */ (function (_super) {
|
|
55
|
-
|
|
57
|
+
tslib_1.__extends(Select, _super);
|
|
56
58
|
function Select() {
|
|
57
59
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
58
60
|
// anchor is a ref that refers to the outermost element rendered when the dropdown menu is not
|
|
59
61
|
// open. This is required so that we can check if clicks are on/off the anchor element.
|
|
60
|
-
_this.anchor =
|
|
62
|
+
_this.anchor = (0, react_1.createRef)();
|
|
61
63
|
// dropdown is a ref that refers to the popover element. This is required so that we can check if
|
|
62
64
|
// clicks are on/off the dropdown element.
|
|
63
|
-
_this.dropdown =
|
|
65
|
+
_this.dropdown = (0, react_1.createRef)();
|
|
64
66
|
// the select components can accept an array of options or an object where properties are optgroups
|
|
65
67
|
// and values are arrays of options. this class property is constructed and updated in a normalized
|
|
66
68
|
// shape where optgroup titles are stored on the option in the __optgroup field.
|
|
@@ -71,8 +73,28 @@ var Select = /** @class */ (function (_super) {
|
|
|
71
73
|
isFocused: false,
|
|
72
74
|
isOpen: _this.props.startOpen || false,
|
|
73
75
|
isPseudoFocused: false,
|
|
76
|
+
currentValueTagIdx: -1,
|
|
77
|
+
focusedExtraValueTagIdx: -1,
|
|
78
|
+
isExtraValuePopoverOpen: false,
|
|
79
|
+
isContainerFocused: false,
|
|
74
80
|
};
|
|
75
81
|
_this.isItMounted = false;
|
|
82
|
+
_this.getLimitTagsValue = function () {
|
|
83
|
+
if (_this.props.expandLimitTagsOnFocus && _this.state.isFocused) {
|
|
84
|
+
return Number(Infinity);
|
|
85
|
+
}
|
|
86
|
+
return _this.props.limitTags;
|
|
87
|
+
};
|
|
88
|
+
_this.getRenderedTagsCount = function () {
|
|
89
|
+
if (!_this.props.value) {
|
|
90
|
+
return 0;
|
|
91
|
+
}
|
|
92
|
+
var limitTags = _this.getLimitTagsValue();
|
|
93
|
+
if (limitTags && limitTags > 0 && _this.props.value.length > limitTags) {
|
|
94
|
+
return limitTags + 1;
|
|
95
|
+
}
|
|
96
|
+
return _this.props.value.length;
|
|
97
|
+
};
|
|
76
98
|
// Handle touch outside on mobile to dismiss menu, ensures that the
|
|
77
99
|
// touch target is not within the anchor DOM node.
|
|
78
100
|
_this.handleTouchOutside = function (event) {
|
|
@@ -124,13 +146,6 @@ var Select = /** @class */ (function (_super) {
|
|
|
124
146
|
}
|
|
125
147
|
return;
|
|
126
148
|
}
|
|
127
|
-
// Ensures that interactive elements within the Select component do not trigger the outer click
|
|
128
|
-
// handler. For example, after an option is selected clicks on the 'clear' icon call here. We
|
|
129
|
-
// should ignore those events. This comes after case where click is on input element, so that
|
|
130
|
-
// those are handled on their own.
|
|
131
|
-
if (_this.input && isInteractive(event.target, _this.input)) {
|
|
132
|
-
return;
|
|
133
|
-
}
|
|
134
149
|
// For the simple case where clicking on the Select does not allow for providing
|
|
135
150
|
// text input to filter the dropdown options.
|
|
136
151
|
if (!_this.props.searchable) {
|
|
@@ -198,12 +213,13 @@ var Select = /** @class */ (function (_super) {
|
|
|
198
213
|
_this.props.onBlur(event);
|
|
199
214
|
}
|
|
200
215
|
if (_this.isItMounted) {
|
|
201
|
-
_this.setState({
|
|
216
|
+
_this.setState(function (lastState) { return ({
|
|
202
217
|
isFocused: false,
|
|
203
218
|
isOpen: false,
|
|
204
219
|
isPseudoFocused: false,
|
|
205
|
-
inputValue: _this.props.onBlurResetsInput ? '' :
|
|
206
|
-
|
|
220
|
+
inputValue: _this.props.onBlurResetsInput ? '' : lastState.inputValue,
|
|
221
|
+
currentValueTagIdx: -1,
|
|
222
|
+
}); });
|
|
207
223
|
}
|
|
208
224
|
};
|
|
209
225
|
_this.handleClickOutside = function (event) {
|
|
@@ -233,22 +249,75 @@ var Select = /** @class */ (function (_super) {
|
|
|
233
249
|
if (_this.props.disabled)
|
|
234
250
|
return;
|
|
235
251
|
switch (event.key) {
|
|
252
|
+
case 'ArrowLeft':
|
|
253
|
+
if (_this.props.value && _this.props.multi && _this.state.inputValue === '') {
|
|
254
|
+
event.preventDefault();
|
|
255
|
+
_this.closeMenu();
|
|
256
|
+
if (_this.state.currentValueTagIdx === -1 && _this.state.isFocused) {
|
|
257
|
+
_this.setState(function (preState) { return ({
|
|
258
|
+
currentValueTagIdx: _this.getRenderedTagsCount() - 1,
|
|
259
|
+
}); });
|
|
260
|
+
}
|
|
261
|
+
else if (_this.state.currentValueTagIdx > 0) {
|
|
262
|
+
_this.setState(function (preState) { return ({
|
|
263
|
+
currentValueTagIdx: preState.currentValueTagIdx - 1,
|
|
264
|
+
}); });
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
break;
|
|
268
|
+
case 'ArrowRight':
|
|
269
|
+
if (_this.props.value &&
|
|
270
|
+
_this.props.multi &&
|
|
271
|
+
_this.state.inputValue === '' &&
|
|
272
|
+
_this.state.currentValueTagIdx !== -1) {
|
|
273
|
+
event.preventDefault();
|
|
274
|
+
_this.closeMenu();
|
|
275
|
+
if (_this.state.currentValueTagIdx >= _this.getRenderedTagsCount() - 1) {
|
|
276
|
+
// on the last tag without limit tag
|
|
277
|
+
_this.focus();
|
|
278
|
+
}
|
|
279
|
+
else {
|
|
280
|
+
// intermediate tag
|
|
281
|
+
_this.setState(function (preState) { return ({
|
|
282
|
+
currentValueTagIdx: preState.currentValueTagIdx + 1,
|
|
283
|
+
}); });
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
break;
|
|
236
287
|
case 'Backspace': // 8
|
|
237
288
|
if (!_this.state.inputValue && _this.props.backspaceRemoves) {
|
|
238
|
-
|
|
239
|
-
|
|
289
|
+
if (!_this.props.multi) {
|
|
290
|
+
event.preventDefault();
|
|
291
|
+
_this.backspaceValue();
|
|
292
|
+
}
|
|
293
|
+
else if (_this.state.currentValueTagIdx === -1) {
|
|
294
|
+
event.preventDefault();
|
|
295
|
+
_this.backspaceValue();
|
|
296
|
+
}
|
|
240
297
|
}
|
|
241
298
|
break;
|
|
242
|
-
case 'Tab':
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
}
|
|
299
|
+
case 'Tab': {
|
|
300
|
+
//9
|
|
301
|
+
if (_this.state.currentValueTagIdx !== -1) {
|
|
302
|
+
_this.setState(function (prevState) { return ({
|
|
303
|
+
currentValueTagIdx: -1,
|
|
304
|
+
}); });
|
|
305
|
+
}
|
|
306
|
+
else {
|
|
307
|
+
_this.setState(function (prevState) { return ({
|
|
308
|
+
isPseudoFocused: false,
|
|
309
|
+
isFocused: false,
|
|
310
|
+
isOpen: false,
|
|
311
|
+
inputValue: !_this.props.onCloseResetsInput || !_this.props.onBlurResetsInput ? prevState.inputValue : '',
|
|
312
|
+
}); });
|
|
313
|
+
}
|
|
249
314
|
break;
|
|
315
|
+
}
|
|
250
316
|
case 'Escape': // 27
|
|
251
|
-
if (!_this.state.isOpen &&
|
|
317
|
+
if (!_this.state.isOpen &&
|
|
318
|
+
_this.props.clearable &&
|
|
319
|
+
_this.props.escapeClearsValue &&
|
|
320
|
+
!_this.state.isExtraValuePopoverOpen) {
|
|
252
321
|
_this.clearValue(event);
|
|
253
322
|
_this.setState({ isFocused: false, isPseudoFocused: false });
|
|
254
323
|
}
|
|
@@ -262,18 +331,36 @@ var Select = /** @class */ (function (_super) {
|
|
|
262
331
|
_this.setState({ isOpen: true });
|
|
263
332
|
}
|
|
264
333
|
break;
|
|
265
|
-
case 'ArrowUp':
|
|
334
|
+
case 'ArrowUp': {
|
|
335
|
+
// 38
|
|
266
336
|
event.preventDefault();
|
|
267
|
-
|
|
337
|
+
var limitTags_1 = _this.getLimitTagsValue();
|
|
338
|
+
if (_this.state.isExtraValuePopoverOpen && limitTags_1) {
|
|
339
|
+
var value_1 = _this.props.value;
|
|
340
|
+
_this.setState(function (prev) { return (tslib_1.__assign(tslib_1.__assign({}, prev), { focusedExtraValueTagIdx: prev.focusedExtraValueTagIdx === 0
|
|
341
|
+
? (value_1 || []).length - limitTags_1 - 1
|
|
342
|
+
: prev.focusedExtraValueTagIdx - 1 })); });
|
|
343
|
+
}
|
|
344
|
+
else if (!_this.state.isOpen) {
|
|
268
345
|
_this.setState({ isOpen: true });
|
|
269
346
|
}
|
|
270
347
|
break;
|
|
271
|
-
|
|
348
|
+
}
|
|
349
|
+
case 'ArrowDown': {
|
|
350
|
+
// 40
|
|
272
351
|
event.preventDefault();
|
|
273
|
-
|
|
352
|
+
var limitTags_2 = _this.getLimitTagsValue();
|
|
353
|
+
if (_this.state.isExtraValuePopoverOpen && limitTags_2) {
|
|
354
|
+
var value_2 = _this.props.value;
|
|
355
|
+
_this.setState(function (prev) { return (tslib_1.__assign(tslib_1.__assign({}, prev), { focusedExtraValueTagIdx: prev.focusedExtraValueTagIdx === (value_2 || []).length - limitTags_2 - 1
|
|
356
|
+
? 0
|
|
357
|
+
: prev.focusedExtraValueTagIdx + 1 })); });
|
|
358
|
+
}
|
|
359
|
+
else if (!_this.state.isOpen) {
|
|
274
360
|
_this.setState({ isOpen: true });
|
|
275
361
|
}
|
|
276
362
|
break;
|
|
363
|
+
}
|
|
277
364
|
case 'PageUp': // 33
|
|
278
365
|
event.preventDefault();
|
|
279
366
|
if (!_this.state.isOpen) {
|
|
@@ -314,16 +401,12 @@ var Select = /** @class */ (function (_super) {
|
|
|
314
401
|
break;
|
|
315
402
|
}
|
|
316
403
|
};
|
|
317
|
-
_this.getOptionLabel = function (
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
};
|
|
323
|
-
_this.getValueLabel = function (_a) {
|
|
324
|
-
var option = _a.option;
|
|
325
|
-
return _this.props.labelKey && option[_this.props.labelKey];
|
|
326
|
-
};
|
|
404
|
+
_this.getOptionLabel = function (optionData, props) { return getOptionLabel(optionData, props); };
|
|
405
|
+
_this.getValueLabel = function (optionData, props) { return getValueLabel(optionData, props); };
|
|
406
|
+
_this.getMemoizedOptionsMap = (0, memoize_one_1.default)(function (options, valueKey) {
|
|
407
|
+
var normalizedOptions = _this.getMemoizedNormalizedOptions(options);
|
|
408
|
+
return new Map(normalizedOptions.map(function (option) { return [String(option[valueKey]), option]; }));
|
|
409
|
+
});
|
|
327
410
|
_this.handleActiveDescendantChange = function (id) {
|
|
328
411
|
if (id) {
|
|
329
412
|
_this.setState({ activeDescendant: id });
|
|
@@ -338,7 +421,6 @@ var Select = /** @class */ (function (_super) {
|
|
|
338
421
|
_this.props.inputRef(input);
|
|
339
422
|
}
|
|
340
423
|
else if (_this.props.inputRef) {
|
|
341
|
-
// @ts-expect-error todo(flow->ts) MutableRefObject
|
|
342
424
|
_this.props.inputRef.current = input;
|
|
343
425
|
}
|
|
344
426
|
if (_this.props.controlRef && typeof _this.props.controlRef === 'function') {
|
|
@@ -347,6 +429,7 @@ var Select = /** @class */ (function (_super) {
|
|
|
347
429
|
}
|
|
348
430
|
};
|
|
349
431
|
_this.selectValue = function (_a) {
|
|
432
|
+
var _b, _c;
|
|
350
433
|
var item = _a.item;
|
|
351
434
|
if (item.disabled) {
|
|
352
435
|
return;
|
|
@@ -354,13 +437,15 @@ var Select = /** @class */ (function (_super) {
|
|
|
354
437
|
_this.justSelected = true;
|
|
355
438
|
// NOTE: we add/set the value in a callback to make sure the
|
|
356
439
|
// input value is empty to avoid styling issues in Chrome
|
|
357
|
-
var
|
|
440
|
+
var closeOnSelect = (_b = item.__closeOnSelect) !== null && _b !== void 0 ? _b : _this.props.closeOnSelect;
|
|
441
|
+
var onSelectResetsInput = (_c = item.__onSelectResetsInput) !== null && _c !== void 0 ? _c : _this.props.onSelectResetsInput;
|
|
442
|
+
var updatedValue = onSelectResetsInput ? '' : _this.state.inputValue;
|
|
358
443
|
if (_this.props.multi) {
|
|
359
444
|
if (item[constants_1.SELECT_ALL_ID]) {
|
|
360
445
|
var filteredOptionsWithoutSelectAllAndCreate_1 = _this.options.filter(function (val) { return !val[constants_1.SELECT_ALL_ID] && !(val === null || val === void 0 ? void 0 : val.isCreatable) && !val.disabled; });
|
|
361
446
|
_this.setState({
|
|
362
447
|
inputValue: updatedValue,
|
|
363
|
-
isOpen: !
|
|
448
|
+
isOpen: !closeOnSelect,
|
|
364
449
|
}, function () {
|
|
365
450
|
var valueArray = _this.props.value || [];
|
|
366
451
|
var valueKey = _this.props.valueKey;
|
|
@@ -386,10 +471,36 @@ var Select = /** @class */ (function (_super) {
|
|
|
386
471
|
}
|
|
387
472
|
});
|
|
388
473
|
}
|
|
474
|
+
else if (item[constants_1.GROUP_SELECT_ALL_ID]) {
|
|
475
|
+
var options_1 = _this.options;
|
|
476
|
+
_this.setState({
|
|
477
|
+
inputValue: updatedValue,
|
|
478
|
+
isOpen: !closeOnSelect,
|
|
479
|
+
}, function () {
|
|
480
|
+
var _a;
|
|
481
|
+
var valueArray = _this.props.value || [];
|
|
482
|
+
var valueKey = _this.props.valueKey;
|
|
483
|
+
var selectedValueSet = new Set(valueArray === null || valueArray === void 0 ? void 0 : valueArray.map(function (val) { return val[valueKey]; }));
|
|
484
|
+
var groupSelectAllChecked = item.selected;
|
|
485
|
+
var groupId = item[valueKey];
|
|
486
|
+
var groupOptions = (_a = options_1.filter(function (_a) {
|
|
487
|
+
var __optgroup = _a.__optgroup;
|
|
488
|
+
return __optgroup === groupId;
|
|
489
|
+
})) !== null && _a !== void 0 ? _a : [];
|
|
490
|
+
if (groupSelectAllChecked) {
|
|
491
|
+
var toBeRemovedGroupOptions_1 = new Set(groupOptions.map(function (opt) { return opt[valueKey]; }));
|
|
492
|
+
_this.setValue(valueArray === null || valueArray === void 0 ? void 0 : valueArray.filter(function (val) { return !toBeRemovedGroupOptions_1.has(val[valueKey]); }), undefined, constants_1.STATE_CHANGE_TYPE.select);
|
|
493
|
+
}
|
|
494
|
+
else {
|
|
495
|
+
var toBeSelectedGroupOptions = groupOptions.filter(function (opt) { return !selectedValueSet.has(opt[valueKey]) && !opt.disabled; });
|
|
496
|
+
_this.setValue(valueArray === null || valueArray === void 0 ? void 0 : valueArray.concat(toBeSelectedGroupOptions), undefined, constants_1.STATE_CHANGE_TYPE.groupSelectAll);
|
|
497
|
+
}
|
|
498
|
+
});
|
|
499
|
+
}
|
|
389
500
|
else {
|
|
390
501
|
_this.setState({
|
|
391
502
|
inputValue: updatedValue,
|
|
392
|
-
isOpen: !
|
|
503
|
+
isOpen: !closeOnSelect,
|
|
393
504
|
}, function () {
|
|
394
505
|
var valueArray = _this.props.value || [];
|
|
395
506
|
if (valueArray.some(function (i) { return _this.props.valueKey && i[_this.props.valueKey] === item[_this.props.valueKey]; })) {
|
|
@@ -405,7 +516,7 @@ var Select = /** @class */ (function (_super) {
|
|
|
405
516
|
_this.focus();
|
|
406
517
|
_this.setState({
|
|
407
518
|
inputValue: updatedValue,
|
|
408
|
-
isOpen: !
|
|
519
|
+
isOpen: !closeOnSelect,
|
|
409
520
|
isFocused: true,
|
|
410
521
|
isPseudoFocused: false,
|
|
411
522
|
}, function () {
|
|
@@ -414,7 +525,7 @@ var Select = /** @class */ (function (_super) {
|
|
|
414
525
|
}
|
|
415
526
|
};
|
|
416
527
|
_this.addValue = function (item) {
|
|
417
|
-
var valueArray =
|
|
528
|
+
var valueArray = tslib_1.__spreadArray([], tslib_1.__read((_this.props.value || [])), false);
|
|
418
529
|
_this.setValue(valueArray.concat(item), item, constants_1.STATE_CHANGE_TYPE.select);
|
|
419
530
|
};
|
|
420
531
|
_this.backspaceValue = function () {
|
|
@@ -425,34 +536,71 @@ var Select = /** @class */ (function (_super) {
|
|
|
425
536
|
}
|
|
426
537
|
var valueLength = ((_a = _this.props.value) === null || _a === void 0 ? void 0 : _a.length) || 0;
|
|
427
538
|
var renderLabel = _this.props.getValueLabel || _this.getValueLabel;
|
|
428
|
-
var labelForInput = renderLabel({ option: item, index: valueLength - 1 });
|
|
539
|
+
var labelForInput = renderLabel({ option: item, index: valueLength - 1 }, _this.props);
|
|
429
540
|
// label might not be a string, it might be a Node of another kind.
|
|
430
541
|
if (!_this.props.backspaceClearsInputValue && typeof labelForInput === 'string') {
|
|
431
|
-
var
|
|
432
|
-
_this.setState({
|
|
433
|
-
|
|
434
|
-
|
|
542
|
+
var remainingInput_1 = labelForInput.slice(0, -1);
|
|
543
|
+
_this.setState(function (_a) {
|
|
544
|
+
var currentValueTagIdx = _a.currentValueTagIdx;
|
|
545
|
+
return ({
|
|
546
|
+
inputValue: remainingInput_1,
|
|
547
|
+
isOpen: true,
|
|
548
|
+
currentValueTagIdx: currentValueTagIdx === -1 ? -1 : currentValueTagIdx - 1,
|
|
549
|
+
});
|
|
435
550
|
});
|
|
436
551
|
}
|
|
437
552
|
};
|
|
438
553
|
_this.popValue = function () {
|
|
439
|
-
var valueArray =
|
|
554
|
+
var valueArray = tslib_1.__spreadArray([], tslib_1.__read((_this.props.value || [])), false);
|
|
440
555
|
var valueLength = valueArray.length;
|
|
441
556
|
if (!valueLength)
|
|
442
|
-
return;
|
|
557
|
+
return undefined;
|
|
443
558
|
if (valueArray[valueLength - 1].clearableValue === false)
|
|
444
|
-
return;
|
|
559
|
+
return undefined;
|
|
445
560
|
var item = valueArray.pop();
|
|
446
561
|
_this.setValue(valueArray, item, constants_1.STATE_CHANGE_TYPE.remove);
|
|
447
562
|
return item;
|
|
448
563
|
};
|
|
449
564
|
_this.removeValue = function (item) {
|
|
450
|
-
var valueArray =
|
|
565
|
+
var valueArray = tslib_1.__spreadArray([], tslib_1.__read((_this.props.value || [])), false);
|
|
451
566
|
var valueArrayFiltered = !Array.isArray(item)
|
|
452
567
|
? valueArray.filter(function (i) { return _this.props.valueKey && i[_this.props.valueKey] !== item[_this.props.valueKey]; })
|
|
453
568
|
: valueArray.filter(function (i) { return !item.some(function (itemObj) { return _this.props.valueKey && itemObj[_this.props.valueKey] === i[_this.props.valueKey]; }); });
|
|
454
569
|
_this.setValue(valueArrayFiltered, item, constants_1.STATE_CHANGE_TYPE.remove);
|
|
455
|
-
|
|
570
|
+
// in case of multi select, and the value is removed via unchecking the item in dropdown, focus should remain on input.
|
|
571
|
+
if (!_this.props.multi || _this.state.isOpen) {
|
|
572
|
+
_this.focus();
|
|
573
|
+
}
|
|
574
|
+
else {
|
|
575
|
+
var limitTags_3 = _this.getLimitTagsValue();
|
|
576
|
+
_this.setState(function (_a) {
|
|
577
|
+
var _currentValueTagIdx = _a.currentValueTagIdx;
|
|
578
|
+
if (limitTags_3 && limitTags_3 > 0 && valueArrayFiltered.length > limitTags_3 && _currentValueTagIdx === limitTags_3) {
|
|
579
|
+
// deleted from the popover
|
|
580
|
+
return {
|
|
581
|
+
currentValueTagIdx: _currentValueTagIdx,
|
|
582
|
+
};
|
|
583
|
+
}
|
|
584
|
+
if (_currentValueTagIdx === valueArrayFiltered.length) {
|
|
585
|
+
// deleted last value
|
|
586
|
+
if (valueArrayFiltered.length === 0) {
|
|
587
|
+
// no more values left
|
|
588
|
+
_this.focus();
|
|
589
|
+
return {
|
|
590
|
+
currentValueTagIdx: 1,
|
|
591
|
+
};
|
|
592
|
+
}
|
|
593
|
+
// move to previous value
|
|
594
|
+
return {
|
|
595
|
+
currentValueTagIdx: _currentValueTagIdx - 1,
|
|
596
|
+
};
|
|
597
|
+
}
|
|
598
|
+
// move to next value
|
|
599
|
+
return {
|
|
600
|
+
currentValueTagIdx: _currentValueTagIdx,
|
|
601
|
+
};
|
|
602
|
+
});
|
|
603
|
+
}
|
|
456
604
|
};
|
|
457
605
|
_this.clearValue = function (event) {
|
|
458
606
|
if (isClick(event) && !isLeftClick(event))
|
|
@@ -501,32 +649,40 @@ var Select = /** @class */ (function (_super) {
|
|
|
501
649
|
};
|
|
502
650
|
Select.prototype.componentDidUpdate = function (prevProps, prevState) {
|
|
503
651
|
var _this = this;
|
|
652
|
+
var _a, _b;
|
|
504
653
|
if (!spacewebProvider_1.isServer) {
|
|
505
654
|
if (prevState.isOpen !== this.state.isOpen) {
|
|
506
655
|
if (this.state.isOpen) {
|
|
507
656
|
this.props.onOpen && this.props.onOpen();
|
|
508
|
-
|
|
657
|
+
(_a = this.props.ownerDocument) === null || _a === void 0 ? void 0 : _a.addEventListener('touchstart', this.handleTouchOutside);
|
|
509
658
|
}
|
|
510
659
|
else {
|
|
511
660
|
this.props.onClose && this.props.onClose();
|
|
512
|
-
|
|
661
|
+
(_b = this.props.ownerDocument) === null || _b === void 0 ? void 0 : _b.removeEventListener('touchstart', this.handleTouchOutside);
|
|
513
662
|
}
|
|
514
663
|
}
|
|
515
664
|
if (!prevState.isFocused && this.state.isFocused) {
|
|
516
|
-
setTimeout(function () { return
|
|
665
|
+
setTimeout(function () { var _a; return (_a = _this.props.ownerDocument) === null || _a === void 0 ? void 0 : _a.addEventListener('click', _this.handleClickOutside); }, 0);
|
|
666
|
+
}
|
|
667
|
+
if (prevState.isFocused && !this.state.isFocused) {
|
|
668
|
+
setTimeout(function () { var _a; return (_a = _this.props.ownerDocument) === null || _a === void 0 ? void 0 : _a.removeEventListener('click', _this.handleClickOutside); }, 0);
|
|
517
669
|
}
|
|
518
670
|
}
|
|
519
671
|
};
|
|
520
672
|
Select.prototype.componentWillUnmount = function () {
|
|
673
|
+
var _a, _b;
|
|
521
674
|
if (!spacewebProvider_1.isServer) {
|
|
522
|
-
|
|
523
|
-
|
|
675
|
+
(_a = this.props.ownerDocument) === null || _a === void 0 ? void 0 : _a.removeEventListener('touchstart', this.handleTouchOutside);
|
|
676
|
+
(_b = this.props.ownerDocument) === null || _b === void 0 ? void 0 : _b.removeEventListener('click', this.handleClickOutside);
|
|
524
677
|
}
|
|
525
678
|
this.isItMounted = false;
|
|
526
679
|
};
|
|
527
680
|
Select.prototype.focus = function () {
|
|
528
681
|
if (!this.input)
|
|
529
682
|
return;
|
|
683
|
+
this.setState({
|
|
684
|
+
currentValueTagIdx: -1,
|
|
685
|
+
});
|
|
530
686
|
this.input.focus();
|
|
531
687
|
};
|
|
532
688
|
Select.prototype.handleDropdownOpen = function (nextOpenState) {
|
|
@@ -548,18 +704,19 @@ var Select = /** @class */ (function (_super) {
|
|
|
548
704
|
(_a = this.input) === null || _a === void 0 ? void 0 : _a.blur();
|
|
549
705
|
};
|
|
550
706
|
Select.prototype.closeMenu = function () {
|
|
707
|
+
var _this = this;
|
|
551
708
|
if (this.props.onCloseResetsInput) {
|
|
552
|
-
this.setState({
|
|
709
|
+
this.setState(function (lastState) { return ({
|
|
553
710
|
inputValue: '',
|
|
554
711
|
isOpen: false,
|
|
555
|
-
isPseudoFocused:
|
|
556
|
-
});
|
|
712
|
+
isPseudoFocused: lastState.isFocused && !_this.props.multi,
|
|
713
|
+
}); });
|
|
557
714
|
}
|
|
558
715
|
else {
|
|
559
|
-
this.setState({
|
|
716
|
+
this.setState(function (lastState) { return ({
|
|
560
717
|
isOpen: false,
|
|
561
|
-
isPseudoFocused:
|
|
562
|
-
});
|
|
718
|
+
isPseudoFocused: lastState.isFocused && !_this.props.multi,
|
|
719
|
+
}); });
|
|
563
720
|
}
|
|
564
721
|
};
|
|
565
722
|
/**
|
|
@@ -567,12 +724,16 @@ var Select = /** @class */ (function (_super) {
|
|
|
567
724
|
*/
|
|
568
725
|
Select.prototype.getValueArray = function (value) {
|
|
569
726
|
var _this = this;
|
|
727
|
+
var arrValue = value;
|
|
570
728
|
if (!Array.isArray(value)) {
|
|
571
729
|
if (value === null || value === undefined)
|
|
572
730
|
return [];
|
|
573
|
-
|
|
731
|
+
arrValue = [value];
|
|
574
732
|
}
|
|
575
|
-
|
|
733
|
+
if (!this.props.options)
|
|
734
|
+
return tslib_1.__spreadArray([], tslib_1.__read(arrValue), false);
|
|
735
|
+
var optionsMap = this.getMemoizedOptionsMap(this.props.options, this.props.valueKey);
|
|
736
|
+
return arrValue.map(function (val) { var _a; return (_a = optionsMap.get(String(val[_this.props.valueKey]))) !== null && _a !== void 0 ? _a : val; });
|
|
576
737
|
};
|
|
577
738
|
Select.prototype.setValue = function (value, option, type) {
|
|
578
739
|
if (this.props.onChange) {
|
|
@@ -583,48 +744,106 @@ var Select = /** @class */ (function (_super) {
|
|
|
583
744
|
});
|
|
584
745
|
}
|
|
585
746
|
};
|
|
747
|
+
Select.prototype.removeValueAndFocus = function (item) {
|
|
748
|
+
this.removeValue(item);
|
|
749
|
+
this.focus();
|
|
750
|
+
};
|
|
586
751
|
Select.prototype.renderLoading = function () {
|
|
587
752
|
if (!this.props.isLoading)
|
|
588
|
-
return;
|
|
753
|
+
return undefined;
|
|
589
754
|
var _a = this.props.overrides, overrides = _a === void 0 ? {} : _a;
|
|
590
|
-
var _b =
|
|
591
|
-
return ((0, jsx_runtime_1.jsx)(LoadingIndicator,
|
|
755
|
+
var _b = tslib_1.__read((0, overrides_1.getOverrides)(overrides.LoadingIndicator, function () { return null; }), 2), LoadingIndicator = _b[0], loadingIndicatorProps = _b[1];
|
|
756
|
+
return ((0, jsx_runtime_1.jsx)(LoadingIndicator, tslib_1.__assign({ role: "status" }, loadingIndicatorProps, { children: (0, jsx_runtime_1.jsx)("span", tslib_1.__assign({ style: {
|
|
592
757
|
position: 'absolute',
|
|
593
758
|
width: '1px',
|
|
594
759
|
height: '1px',
|
|
595
|
-
padding:
|
|
760
|
+
padding: '0px',
|
|
596
761
|
margin: '-1px',
|
|
597
762
|
overflow: 'hidden',
|
|
598
763
|
clip: 'rect(0,0,0,0)',
|
|
599
764
|
whiteSpace: 'nowrap',
|
|
600
|
-
border:
|
|
601
|
-
} }, { children: "Loading" })
|
|
765
|
+
border: '0px',
|
|
766
|
+
} }, { children: "Loading" })) })));
|
|
602
767
|
};
|
|
603
|
-
Select.prototype.
|
|
768
|
+
Select.prototype.renderExtraValueTag = function (valueArray, remainingTagsCount) {
|
|
604
769
|
var _this = this;
|
|
605
770
|
var _a = this.props.overrides, overrides = _a === void 0 ? {} : _a;
|
|
606
771
|
var sharedProps = this.getSharedProps();
|
|
607
772
|
var renderLabel = this.props.getValueLabel || this.getValueLabel;
|
|
608
773
|
var Value = this.props.valueComponent || Noop;
|
|
774
|
+
var _b = tslib_1.__read((0, overrides_1.getOverrides)(overrides.ExtraTagPopover, popover_2.StatefulPopover), 2), ExtraTagPopover = _b[0], extraTagPopoverProps = _b[1];
|
|
775
|
+
var _c = tslib_1.__read((0, overrides_1.getOverrides)(overrides.ExtraTagPopoverList, list_1.List), 2), ExtraTagPopoverList = _c[0], extraTagPopoverListProps = _c[1];
|
|
776
|
+
var _d = tslib_1.__read((0, overrides_1.getOverrides)(overrides.ExtraTagPopoverListItem, list_1.ListItem), 2), ExtraTagPopoverListItem = _d[0], extraTagPopoverListItemProps = _d[1];
|
|
777
|
+
var onExtraValuePopoverClose = function () {
|
|
778
|
+
_this.setState({
|
|
779
|
+
isExtraValuePopoverOpen: false,
|
|
780
|
+
focusedExtraValueTagIdx: -1,
|
|
781
|
+
});
|
|
782
|
+
_this.focus();
|
|
783
|
+
};
|
|
784
|
+
return ((0, jsx_runtime_1.jsx)(ExtraTagPopover, tslib_1.__assign({ viewportAsBoundary: true, placement: "bottom", onOpen: function () {
|
|
785
|
+
_this.setState({
|
|
786
|
+
isExtraValuePopoverOpen: true,
|
|
787
|
+
focusedExtraValueTagIdx: 0,
|
|
788
|
+
});
|
|
789
|
+
}, returnFocus: false, focusLock: false, autoFocus: false, onClose: onExtraValuePopoverClose, content: function () { return ((0, jsx_runtime_1.jsx)(ExtraTagPopoverList, tslib_1.__assign({ virtual: true, className: "p-0 m-1 overflow-y-auto min-w-47.5 max-h-75" }, extraTagPopoverListProps, { children: valueArray.map(function (value, i) {
|
|
790
|
+
var disabled = sharedProps.$disabled || value.clearableValue === false;
|
|
791
|
+
return ((0, jsx_runtime_1.jsx)(ExtraTagPopoverListItem, tslib_1.__assign({ className: "p-0" }, extraTagPopoverListItemProps, { children: (0, jsx_runtime_1.jsx)(Value, tslib_1.__assign({ value: value, removeValue: function (e) {
|
|
792
|
+
_this.removeValue(value);
|
|
793
|
+
// manually invoking onExtraValuePopoverClose to reset state
|
|
794
|
+
// as ExtraTag item will unmount as soon as we remove all the values from it
|
|
795
|
+
if (valueArray.length === 1) {
|
|
796
|
+
onExtraValuePopoverClose();
|
|
797
|
+
}
|
|
798
|
+
// if not stopped, backspace event will be handled by select as well.
|
|
799
|
+
// which might remove pop last item from select.
|
|
800
|
+
e.stopPropagation();
|
|
801
|
+
}, disabled: disabled, overrides: { Tag: overrides.Tag, MultiValue: overrides.MultiValue }, tabIndex: 0 }, sharedProps, { "$disabled": disabled, ref: i === _this.state.focusedExtraValueTagIdx
|
|
802
|
+
? function (valueEl) {
|
|
803
|
+
valueEl === null || valueEl === void 0 ? void 0 : valueEl.focus();
|
|
804
|
+
}
|
|
805
|
+
: undefined }, { children: renderLabel({ option: value, index: i }, _this.props) }), "value-".concat(i, "-").concat(_this.props.valueKey && value[_this.props.valueKey])) }), "value-".concat(i, "-").concat(_this.props.valueKey && value[_this.props.valueKey])));
|
|
806
|
+
}) }))); } }, extraTagPopoverProps, { children: (0, jsx_runtime_1.jsx)(Value, tslib_1.__assign({ value: { label: remainingTagsCount, id: '#extra', clearableValue: false }, overrides: { Tag: overrides.Tag, MultiValue: overrides.MultiValue } }, sharedProps, { "$disabled": true, ref: this.props.value && this.getLimitTagsValue() && this.state.currentValueTagIdx === this.getLimitTagsValue()
|
|
807
|
+
? function (valueEl) {
|
|
808
|
+
valueEl === null || valueEl === void 0 ? void 0 : valueEl.focus();
|
|
809
|
+
}
|
|
810
|
+
: undefined }, { children: "+ ".concat(remainingTagsCount) })) })));
|
|
811
|
+
};
|
|
812
|
+
Select.prototype.renderValue = function (valueArray) {
|
|
813
|
+
var _this = this;
|
|
814
|
+
var _a;
|
|
815
|
+
var _b = this.props.overrides, overrides = _b === void 0 ? {} : _b;
|
|
816
|
+
var sharedProps = this.getSharedProps();
|
|
817
|
+
var renderLabel = this.props.getValueLabel || this.getValueLabel;
|
|
818
|
+
var Value = this.props.valueComponent || Noop;
|
|
609
819
|
if (!valueArray.length) {
|
|
610
820
|
return null;
|
|
611
821
|
}
|
|
612
822
|
if (this.props.multi) {
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
823
|
+
var limitTags = (_a = this.getLimitTagsValue()) !== null && _a !== void 0 ? _a : Number(Infinity);
|
|
824
|
+
var _limitTag = limitTags < 0 ? Number(Infinity) : limitTags;
|
|
825
|
+
var remainingTagsCount = valueArray.length - _limitTag;
|
|
826
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [valueArray.slice(0, _limitTag).map(function (value, i) {
|
|
827
|
+
var disabled = sharedProps.$disabled || value.clearableValue === false;
|
|
828
|
+
return ((0, jsx_runtime_1.jsx)(Value, tslib_1.__assign({ value: value, removeValue: function () { return _this.removeValueAndFocus(value); }, disabled: disabled, overrides: { Tag: overrides.Tag, MultiValue: overrides.MultiValue } }, sharedProps, { "$disabled": disabled, noTooltipOnTruncation: _this.props.noTooltipOnTruncation,
|
|
829
|
+
//react calls ref function whenever we pass it and not just on mount
|
|
830
|
+
ref: i === _this.state.currentValueTagIdx
|
|
831
|
+
? function (valueEl) {
|
|
832
|
+
valueEl === null || valueEl === void 0 ? void 0 : valueEl.focus();
|
|
833
|
+
}
|
|
834
|
+
: undefined }, { children: renderLabel({ option: value, index: i }, _this.props) }), "value-".concat(i, "-").concat(_this.props.valueKey && value[_this.props.valueKey])));
|
|
835
|
+
}), remainingTagsCount > 0 ? this.renderExtraValueTag(valueArray.slice(_limitTag), remainingTagsCount) : null] }));
|
|
617
836
|
}
|
|
618
837
|
if (this.shouldShowValue()) {
|
|
619
|
-
return ((0, jsx_runtime_1.jsx)(Value,
|
|
838
|
+
return ((0, jsx_runtime_1.jsx)(Value, tslib_1.__assign({ value: this.props.valueKey && valueArray[0][this.props.valueKey], disabled: this.props.disabled, overrides: { SingleValue: overrides.SingleValue }, noTooltipOnTruncation: this.props.noTooltipOnTruncation }, sharedProps, { children: renderLabel({ option: valueArray[0] }, this.props) })));
|
|
620
839
|
}
|
|
621
840
|
return null;
|
|
622
841
|
};
|
|
623
|
-
Select.prototype.renderInput = function (listboxId) {
|
|
842
|
+
Select.prototype.renderInput = function (listboxId, ariaDescribedByIDs) {
|
|
624
843
|
var _this = this;
|
|
625
|
-
var _a;
|
|
626
|
-
var
|
|
627
|
-
var
|
|
844
|
+
var _a, _b, _c, _d, _e;
|
|
845
|
+
var _f = this.props.overrides, overrides = _f === void 0 ? {} : _f;
|
|
846
|
+
var _g = tslib_1.__read((0, overrides_1.getOverrides)(overrides.InputContainer, styled_components_1.StyledInputContainer), 2), InputContainer = _g[0], inputContainerProps = _g[1];
|
|
628
847
|
var sharedProps = this.getSharedProps();
|
|
629
848
|
var isOpen = this.state.isOpen;
|
|
630
849
|
var selected = this.getValueArray(this.props.value || [])
|
|
@@ -632,22 +851,19 @@ var Select = /** @class */ (function (_super) {
|
|
|
632
851
|
.join(', ');
|
|
633
852
|
var selectedLabel = selected.length ? "Selected ".concat(selected, ". ") : '';
|
|
634
853
|
var label = "".concat(selectedLabel).concat(this.props['aria-label'] || '');
|
|
854
|
+
var ariaDescribedBy = "".concat((_a = this.props['aria-describedby']) !== null && _a !== void 0 ? _a : '', " ").concat(ariaDescribedByIDs !== null && ariaDescribedByIDs !== void 0 ? ariaDescribedByIDs : '');
|
|
635
855
|
if (!this.props.searchable) {
|
|
636
|
-
return ((0, jsx_runtime_1.jsx)(InputContainer,
|
|
856
|
+
return ((0, jsx_runtime_1.jsx)(InputContainer, tslib_1.__assign({ onFocus: this.handleInputFocus, tabIndex: this.props.disabled ? null : 0 }, sharedProps, inputContainerProps, { children: (0, jsx_runtime_1.jsx)("input", tslib_1.__assign({ "aria-hidden": true, id: this.props.id || undefined, ref: this.handleInputRef, style: {
|
|
637
857
|
opacity: 0,
|
|
638
|
-
width:
|
|
858
|
+
width: '0px',
|
|
639
859
|
overflow: 'hidden',
|
|
640
860
|
border: 'none',
|
|
641
|
-
padding:
|
|
642
|
-
}, tabIndex: -1 }, (overrides.Input
|
|
643
|
-
? overrides.Input.props
|
|
644
|
-
|
|
645
|
-
// @ts-ignore
|
|
646
|
-
(0, helpers_1.omit$props)(overrides.Input.props)
|
|
647
|
-
: {}
|
|
648
|
-
: {})), void 0) }), void 0));
|
|
861
|
+
padding: '0px',
|
|
862
|
+
}, disabled: this.props.disabled, tabIndex: -1, "aria-activedescendant": (_b = this.state.activeDescendant) !== null && _b !== void 0 ? _b : undefined, "aria-describedby": ariaDescribedBy, "aria-errormessage": (_c = this.props['aria-errormessage']) !== null && _c !== void 0 ? _c : undefined, "aria-labelledby": (_d = this.props['aria-labelledby']) !== null && _d !== void 0 ? _d : undefined, "aria-disabled": this.props.disabled, "aria-owns": this.state.isOpen ? listboxId : undefined, "aria-required": this.props.required || undefined }, (overrides.Input && typeof overrides.Input === 'object' && overrides.Input.props
|
|
863
|
+
? (0, helpers_1.omit$props)(overrides.Input.props)
|
|
864
|
+
: {}))) })));
|
|
649
865
|
}
|
|
650
|
-
return ((0, jsx_runtime_1.jsx)(InputContainer,
|
|
866
|
+
return ((0, jsx_runtime_1.jsx)(InputContainer, tslib_1.__assign({}, sharedProps, inputContainerProps, { children: (0, jsx_runtime_1.jsx)(autosize_input_1.default, tslib_1.__assign({ "aria-activedescendant": this.state.activeDescendant, "aria-autocomplete": "list", "aria-controls": this.state.isOpen ? listboxId : null, "aria-describedby": ariaDescribedBy, "aria-errormessage": this.props['aria-errormessage'], "aria-disabled": this.props.disabled || null, "aria-expanded": isOpen, "aria-haspopup": "listbox", "aria-label": label, "aria-labelledby": this.props['aria-labelledby'], "aria-required": this.props.required || null, disabled: this.props.disabled || null, id: this.props.id || null, inputRef: this.handleInputRef, onChange: this.handleInputChange, onFocus: this.handleInputFocus, overrides: { Input: overrides.Input }, required: (this.props.required && !((_e = this.props.value) === null || _e === void 0 ? void 0 : _e.length)) || null, role: "combobox", value: this.state.inputValue, tabIndex: 0 }, sharedProps)) })));
|
|
651
867
|
};
|
|
652
868
|
Select.prototype.renderClear = function () {
|
|
653
869
|
var _a;
|
|
@@ -655,9 +871,9 @@ var Select = /** @class */ (function (_super) {
|
|
|
655
871
|
if (!this.props.clearable || this.props.disabled || this.props.isLoading || !isValueEntered) {
|
|
656
872
|
return null;
|
|
657
873
|
}
|
|
658
|
-
var _b = this.getSharedProps(), $size = _b.$size, sharedProps =
|
|
874
|
+
var _b = this.getSharedProps(), $size = _b.$size, sharedProps = tslib_1.__rest(_b, ["$size"]);
|
|
659
875
|
var _c = this.props.overrides, overrides = _c === void 0 ? {} : _c;
|
|
660
|
-
var _d =
|
|
876
|
+
var _d = tslib_1.__read((0, overrides_1.getOverrides)(overrides.ClearIcon, function () { return null; }), 2), ClearIcon = _d[0], clearIconProps = _d[1];
|
|
661
877
|
var ariaLabel = this.props.multi ? 'Clear all' : 'Clear value';
|
|
662
878
|
var sizes = (_a = {},
|
|
663
879
|
_a[constants_1.SIZE.mini] = 15,
|
|
@@ -665,47 +881,38 @@ var Select = /** @class */ (function (_super) {
|
|
|
665
881
|
_a[constants_1.SIZE.default] = 18,
|
|
666
882
|
_a[constants_1.SIZE.large] = 22,
|
|
667
883
|
_a);
|
|
668
|
-
return ((0, jsx_runtime_1.jsx)(ClearIcon,
|
|
884
|
+
return ((0, jsx_runtime_1.jsx)(ClearIcon, tslib_1.__assign({ title: ariaLabel, "aria-label": ariaLabel, onClick: this.clearValue, role: "button", tabIndex: this.state.isContainerFocused ? 0 : -1, size: sizes[this.props.size] || sizes[constants_1.SIZE.default] }, sharedProps, clearIconProps)));
|
|
669
885
|
};
|
|
670
886
|
Select.prototype.renderArrow = function () {
|
|
671
887
|
var _a;
|
|
672
888
|
if (this.props.type !== constants_1.TYPE.select) {
|
|
673
889
|
return null;
|
|
674
890
|
}
|
|
675
|
-
var _b = this.getSharedProps(), $size = _b.$size, sharedProps =
|
|
891
|
+
var _b = this.getSharedProps(), $size = _b.$size, sharedProps = tslib_1.__rest(_b, ["$size"]);
|
|
676
892
|
var _c = this.props.overrides, overrides = _c === void 0 ? {} : _c;
|
|
677
|
-
var _d =
|
|
678
|
-
selectArrowProps.overrides = (0, overrides_1.mergeOverrides)({
|
|
679
|
-
Svg: {
|
|
680
|
-
style: function (_a) {
|
|
681
|
-
var $theme = _a.$theme, $disabled = _a.$disabled;
|
|
682
|
-
return ({
|
|
683
|
-
color: $disabled ? $theme.colors.inputTextDisabled : $theme.colors.contentPrimary,
|
|
684
|
-
});
|
|
685
|
-
},
|
|
686
|
-
},
|
|
687
|
-
}, selectArrowProps.overrides);
|
|
893
|
+
var _d = tslib_1.__read((0, overrides_1.getOverrides)(overrides.SelectArrow, function () { return null; }), 2), SelectArrow = _d[0], selectArrowProps = _d[1];
|
|
688
894
|
var sizes = (_a = {},
|
|
689
895
|
_a[constants_1.SIZE.mini] = 16,
|
|
690
896
|
_a[constants_1.SIZE.compact] = 16,
|
|
691
897
|
_a[constants_1.SIZE.default] = 20,
|
|
692
898
|
_a[constants_1.SIZE.large] = 24,
|
|
693
899
|
_a);
|
|
694
|
-
return ((0, jsx_runtime_1.jsx)(SelectArrow,
|
|
900
|
+
return ((0, jsx_runtime_1.jsx)(SelectArrow, tslib_1.__assign({ size: (this.props.size && sizes[this.props.size]) || sizes[constants_1.SIZE.default], title: "open" }, sharedProps, selectArrowProps)));
|
|
695
901
|
};
|
|
696
902
|
Select.prototype.renderSearch = function () {
|
|
697
903
|
if (this.props.type !== constants_1.TYPE.search) {
|
|
698
904
|
return null;
|
|
699
905
|
}
|
|
700
906
|
var _a = this.props.overrides, overrides = _a === void 0 ? {} : _a;
|
|
701
|
-
var _b =
|
|
702
|
-
var _c =
|
|
907
|
+
var _b = tslib_1.__read((0, overrides_1.getOverrides)(overrides.SearchIconContainer, styled_components_1.StyledSearchIconContainer), 2), SearchIconContainer = _b[0], searchIconContainerProps = _b[1];
|
|
908
|
+
var _c = tslib_1.__read((0, overrides_1.getOverrides)(overrides.SearchIcon, function () { return null; }), 2), SearchIcon = _c[0], searchIconProps = _c[1];
|
|
703
909
|
var sharedProps = this.getSharedProps();
|
|
704
|
-
return ((0, jsx_runtime_1.jsx)(SearchIconContainer,
|
|
910
|
+
return ((0, jsx_runtime_1.jsx)(SearchIconContainer, tslib_1.__assign({}, sharedProps, searchIconContainerProps, { children: (0, jsx_runtime_1.jsx)(SearchIcon, tslib_1.__assign({ size: 16, title: "search" }, sharedProps, searchIconProps)) })));
|
|
705
911
|
};
|
|
706
912
|
Select.prototype.filterOptions = function (excludeOptions, filterValue, options) {
|
|
707
913
|
var _a, _b;
|
|
708
914
|
var _this = this;
|
|
915
|
+
var _c;
|
|
709
916
|
if (filterValue === void 0) { filterValue = this.state.inputValue.trim(); }
|
|
710
917
|
if (options === void 0) { options = this.props.options; }
|
|
711
918
|
var filteredOptions = this.getMemoizedNormalizedOptions(options);
|
|
@@ -716,15 +923,18 @@ var Select = /** @class */ (function (_super) {
|
|
|
716
923
|
labelKey: this.props.labelKey || '',
|
|
717
924
|
});
|
|
718
925
|
}
|
|
926
|
+
var countDisabledOptions = Array.isArray(filteredOptions)
|
|
927
|
+
? filteredOptions.reduce(function (acc, opt) { return (opt.disabled ? acc + 1 : acc); }, 0)
|
|
928
|
+
: 0;
|
|
719
929
|
if (this.props.multi) {
|
|
720
930
|
if (!this.props.hideSelectAll && filteredOptions.length > 0) {
|
|
721
|
-
filteredOptions =
|
|
931
|
+
filteredOptions = tslib_1.__spreadArray([
|
|
722
932
|
(_a = {},
|
|
723
933
|
_a[this.props.valueKey] = constants_1.SELECT_ALL_ID,
|
|
724
|
-
_a[this.props.labelKey] = "".concat(
|
|
934
|
+
_a[this.props.labelKey] = "".concat((_c = this.props.selectLocale) === null || _c === void 0 ? void 0 : _c.selectAllLabel, " ").concat(this.props.__selectAllShouldReturnAllOptions ? '' : "(".concat(filteredOptions.length - countDisabledOptions, ")")),
|
|
725
935
|
_a[constants_1.SELECT_ALL_ID] = true,
|
|
726
936
|
_a)
|
|
727
|
-
],
|
|
937
|
+
], tslib_1.__read(filteredOptions), false);
|
|
728
938
|
}
|
|
729
939
|
}
|
|
730
940
|
// can user create a new option + there's no exact match already
|
|
@@ -749,13 +959,14 @@ var Select = /** @class */ (function (_super) {
|
|
|
749
959
|
return filteredOptions;
|
|
750
960
|
};
|
|
751
961
|
Select.prototype.getSharedProps = function () {
|
|
752
|
-
var _a = this.props, clearable = _a.clearable, creatable = _a.creatable, disabled = _a.disabled, error = _a.error, positive = _a.positive, isLoading = _a.isLoading, multi = _a.multi, required = _a.required, size = _a.size, searchable = _a.searchable, type = _a.type, value = _a.value;
|
|
962
|
+
var _a = this.props, clearable = _a.clearable, creatable = _a.creatable, disabled = _a.disabled, error = _a.error, intent = _a.intent, positive = _a.positive, isLoading = _a.isLoading, multi = _a.multi, required = _a.required, size = _a.size, searchable = _a.searchable, type = _a.type, value = _a.value;
|
|
753
963
|
var _b = this.state, isOpen = _b.isOpen, isFocused = _b.isFocused, isPseudoFocused = _b.isPseudoFocused;
|
|
754
964
|
return {
|
|
755
965
|
$clearable: clearable,
|
|
756
966
|
$creatable: creatable,
|
|
757
967
|
$disabled: disabled,
|
|
758
968
|
$error: error,
|
|
969
|
+
$intent: intent,
|
|
759
970
|
$positive: positive,
|
|
760
971
|
$isFocused: isFocused,
|
|
761
972
|
$isLoading: isLoading,
|
|
@@ -767,25 +978,40 @@ var Select = /** @class */ (function (_super) {
|
|
|
767
978
|
$size: size,
|
|
768
979
|
$type: type,
|
|
769
980
|
$isEmpty: !this.getValueArray(value || []).length,
|
|
981
|
+
$limitTags: this.getLimitTagsValue(),
|
|
770
982
|
};
|
|
771
983
|
};
|
|
772
984
|
Select.prototype.render = function () {
|
|
773
985
|
var _this = this;
|
|
774
986
|
var _a;
|
|
775
|
-
var _b = this.props, _c = _b.overrides, overrides = _c === void 0 ? {} : _c, type = _b.type, multi = _b.multi, noResultsMsg = _b.noResultsMsg, value = _b.value, filterOutSelected = _b.filterOutSelected, __selectAllSelected = _b.__selectAllSelected, __selectAllShouldReturnAllOptions = _b.__selectAllShouldReturnAllOptions;
|
|
987
|
+
var _b = this.props, _c = _b.overrides, overrides = _c === void 0 ? {} : _c, type = _b.type, multi = _b.multi, noResultsMsg = _b.noResultsMsg, value = _b.value, filterOutSelected = _b.filterOutSelected, __selectAllSelected = _b.__selectAllSelected, __selectAllShouldReturnAllOptions = _b.__selectAllShouldReturnAllOptions, startEnhancer = _b.startEnhancer, endEnhancer = _b.endEnhancer;
|
|
776
988
|
if (__DEV__) {
|
|
777
989
|
// value may be nullish, only warn if value is defined
|
|
778
990
|
if (value && !Array.isArray(value)) {
|
|
779
991
|
console.warn('The Select component expects an array as the value prop. For more information, please visit the docs at https://baseweb.design/components/select/');
|
|
780
992
|
}
|
|
781
993
|
}
|
|
782
|
-
var _d =
|
|
783
|
-
var _e =
|
|
784
|
-
var _f =
|
|
785
|
-
var _g =
|
|
786
|
-
var _h =
|
|
787
|
-
var _j =
|
|
994
|
+
var _d = tslib_1.__read((0, overrides_1.getOverrides)(overrides.Root, styled_components_1.StyledRoot), 2), Root = _d[0], rootProps = _d[1];
|
|
995
|
+
var _e = tslib_1.__read((0, overrides_1.getOverrides)(overrides.ControlContainer, styled_components_1.StyledControlContainer), 2), ControlContainer = _e[0], controlContainerProps = _e[1];
|
|
996
|
+
var _f = tslib_1.__read((0, overrides_1.getOverrides)(overrides.StartEnhancer, styled_components_2.StyledInputEnhancer), 2), StartEnhancer = _f[0], startEnhancerProps = _f[1];
|
|
997
|
+
var _g = tslib_1.__read((0, overrides_1.getOverrides)(overrides.EndEnhancer, styled_components_2.StyledInputEnhancer), 2), EndEnhancer = _g[0], endEnhancerProps = _g[1];
|
|
998
|
+
var _h = tslib_1.__read((0, overrides_1.getOverrides)(overrides.ValueContainer, styled_components_1.StyledValueContainer), 2), ValueContainer = _h[0], valueContainerProps = _h[1];
|
|
999
|
+
var _j = tslib_1.__read((0, overrides_1.getOverrides)(overrides.IconsContainer, styled_components_1.StyledIconsContainer), 2), IconsContainer = _j[0], iconsContainerProps = _j[1];
|
|
1000
|
+
var _k = tslib_1.__read((0, overrides_1.getOverrides)(overrides.Popover, popover_1.Popover), 2), PopoverOverride = _k[0], popoverProps = _k[1];
|
|
1001
|
+
var _l = tslib_1.__read((0, overrides_1.getOverrides)(overrides.Placeholder, styled_components_1.StyledPlaceholder), 2), Placeholder = _l[0], placeholderProps = _l[1];
|
|
788
1002
|
var sharedProps = this.getSharedProps();
|
|
1003
|
+
var startEnhancerVisible = isEnhancer(startEnhancer);
|
|
1004
|
+
var endEnhancerVisible = isEnhancer(endEnhancer);
|
|
1005
|
+
var hasEnhancer = startEnhancerVisible || endEnhancerVisible;
|
|
1006
|
+
var rootClassName = hasEnhancer ? ['flex items-stretch w-full', rootProps.className] : rootProps.className;
|
|
1007
|
+
var controlContainerClassName = hasEnhancer
|
|
1008
|
+
? [
|
|
1009
|
+
'flex-1 min-w-0 w-auto',
|
|
1010
|
+
startEnhancerVisible ? 'rounded-l-0' : '',
|
|
1011
|
+
endEnhancerVisible ? 'rounded-r-0' : '',
|
|
1012
|
+
controlContainerProps.className,
|
|
1013
|
+
]
|
|
1014
|
+
: controlContainerProps.className;
|
|
789
1015
|
var valueArray = this.getValueArray(value || []);
|
|
790
1016
|
this.options = this.filterOptions(multi && filterOutSelected ? valueArray : null, (_a = this.props.__inputValue) !== null && _a !== void 0 ? _a : this.state.inputValue.trim(), this.props.options);
|
|
791
1017
|
var options = this.options;
|
|
@@ -799,12 +1025,15 @@ var Select = /** @class */ (function (_super) {
|
|
|
799
1025
|
console.warn('[Select] `error` and `positive` are both set to `true`. `error` will take precedence but this may not be what you want.');
|
|
800
1026
|
}
|
|
801
1027
|
}
|
|
802
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
1028
|
+
return ((0, jsx_runtime_1.jsx)(SelectIdsContext_1.SelectIdsProvider, tslib_1.__assign({ listboxId: this.props.listboxId, menuDescriptionId: this.props.menuDescriptionId, noResultsId: this.props.noResultsId }, { children: function (_a) {
|
|
1029
|
+
var _b;
|
|
1030
|
+
var noResultsId = _a.noResultsId, menuDescriptionId = _a.menuDescriptionId, listboxId = _a.listboxId;
|
|
1031
|
+
return ((0, jsx_runtime_1.jsx)(PopoverOverride
|
|
803
1032
|
// Popover does not provide ability to forward refs through, and if we were to simply
|
|
804
1033
|
// apply the ref to the Root component below it would be overwritten before the popover
|
|
805
1034
|
// renders it. Using this strategy, we will get a ref to the popover, then reuse its
|
|
806
1035
|
// anchorRef so we can check if clicks are on the select component or not.
|
|
807
|
-
,
|
|
1036
|
+
, tslib_1.__assign({
|
|
808
1037
|
// Popover does not provide ability to forward refs through, and if we were to simply
|
|
809
1038
|
// apply the ref to the Root component below it would be overwritten before the popover
|
|
810
1039
|
// renders it. Using this strategy, we will get a ref to the popover, then reuse its
|
|
@@ -813,12 +1042,13 @@ var Select = /** @class */ (function (_super) {
|
|
|
813
1042
|
if (!ref)
|
|
814
1043
|
return;
|
|
815
1044
|
_this.anchor = ref.anchorRef;
|
|
816
|
-
}, accessibilityType: popover_1.ACCESSIBILITY_TYPE.none, autoFocus: false, focusLock: false, mountNode: _this.props.mountNode, onEsc: function () { return _this.closeMenu(); }, isOpen: isOpen, popoverMargin: 0, content: function () {
|
|
1045
|
+
}, accessibilityType: popover_1.ACCESSIBILITY_TYPE.none, autoFocus: false, focusLock: false, mountNode: _this.props.mountNode, onEsc: function () { return _this.closeMenu(); }, isOpen: isOpen, popoverMargin: 0, content: function (params) {
|
|
817
1046
|
var dropdownProps = {
|
|
818
1047
|
error: _this.props.error || false,
|
|
819
1048
|
positive: _this.props.positive,
|
|
820
|
-
getOptionLabel:
|
|
821
|
-
|
|
1049
|
+
getOptionLabel: function (optionState) {
|
|
1050
|
+
return (_this.props.getOptionLabel || _this.getOptionLabel)(optionState, _this.props);
|
|
1051
|
+
},
|
|
822
1052
|
isLoading: _this.props.isLoading || false,
|
|
823
1053
|
labelKey: _this.props.labelKey || '',
|
|
824
1054
|
maxDropdownHeight: _this.props.maxDropdownHeight || '',
|
|
@@ -828,7 +1058,6 @@ var Select = /** @class */ (function (_super) {
|
|
|
828
1058
|
onItemSelect: _this.selectValue,
|
|
829
1059
|
selectAllChecked: selectAllChecked,
|
|
830
1060
|
options: options,
|
|
831
|
-
overrides: overrides,
|
|
832
1061
|
required: _this.props.required || false,
|
|
833
1062
|
searchable: _this.props.searchable || true,
|
|
834
1063
|
size: _this.props.size || 'default',
|
|
@@ -837,13 +1066,23 @@ var Select = /** @class */ (function (_super) {
|
|
|
837
1066
|
valueKey: _this.props.valueKey || '',
|
|
838
1067
|
width: _this.anchor.current ? _this.anchor.current.clientWidth : null,
|
|
839
1068
|
keyboardControlNode: _this.anchor,
|
|
1069
|
+
closeMenu: (params === null || params === void 0 ? void 0 : params.closeMenu) || _this.closeMenu.bind(_this),
|
|
1070
|
+
dropdownFooter: _this.props.dropdownFooter,
|
|
1071
|
+
overrides: overrides,
|
|
1072
|
+
id: listboxId,
|
|
840
1073
|
};
|
|
841
|
-
return (0, jsx_runtime_1.jsx)(dropdown_1.default,
|
|
842
|
-
}, placement: popover_1.PLACEMENT.bottom }, popoverProps, {
|
|
843
|
-
|
|
844
|
-
|
|
1074
|
+
return (0, jsx_runtime_1.jsx)(dropdown_1.default, tslib_1.__assign({}, dropdownProps));
|
|
1075
|
+
}, placement: popover_1.PLACEMENT.bottom }, popoverProps, { overrides: (0, overrides_1.mergeOverrides)({ Inner: { props: { ref: _this.dropdown } } }, popoverProps === null || popoverProps === void 0 ? void 0 : popoverProps.overrides) }, { children: (0, jsx_runtime_1.jsxs)(Root, tslib_1.__assign({ "data-baseweb": "select" }, sharedProps, rootProps, { className: rootClassName, onFocus: function (e) {
|
|
1076
|
+
_this.setState({ isContainerFocused: true });
|
|
1077
|
+
typeof rootProps.onFocus === 'function' && rootProps.onFocus(e);
|
|
1078
|
+
}, onBlur: function (e) {
|
|
1079
|
+
_this.setState({ isContainerFocused: false });
|
|
1080
|
+
_this.handleBlur(e);
|
|
1081
|
+
typeof rootProps.onBlur === 'function' && rootProps.onBlur(e);
|
|
1082
|
+
} }, { children: [isEnhancer(startEnhancer) && ((0, jsx_runtime_1.jsx)(StartEnhancer, tslib_1.__assign({}, sharedProps, startEnhancerProps, { "$position": constants_2.ENHANCER_POSITION.start, "$isStart": true }, { children: typeof startEnhancer === 'function' ? startEnhancer(sharedProps) : startEnhancer }))), (0, jsx_runtime_1.jsxs)(ControlContainer, tslib_1.__assign({ onKeyDown: _this.handleKeyDown, onClick: _this.handleClick, onTouchEnd: _this.handleTouchEnd, onTouchMove: _this.handleTouchMove, onTouchStart: _this.handleTouchStart }, sharedProps, controlContainerProps, { className: controlContainerClassName, "aria-describedby": "".concat((_b = controlContainerProps['aria-describedby']) !== null && _b !== void 0 ? _b : '', " ").concat(noResultsId, " ").concat(menuDescriptionId).trim() }, { children: [type === constants_1.TYPE.search ? _this.renderSearch() : null, (0, jsx_runtime_1.jsxs)(ValueContainer, tslib_1.__assign({}, sharedProps, valueContainerProps, { children: [_this.renderValue(valueArray), _this.renderInput(listboxId, [noResultsId, menuDescriptionId].join(' ')), _this.shouldShowPlaceholder() ? ((0, jsx_runtime_1.jsx)(Placeholder, tslib_1.__assign({}, sharedProps, placeholderProps, { children: _this.props.placeholder }))) : null] })), (0, jsx_runtime_1.jsxs)(IconsContainer, tslib_1.__assign({}, sharedProps, iconsContainerProps, { children: [_this.renderLoading(), _this.renderClear(), type === constants_1.TYPE.select ? _this.renderArrow() : null] }))] })), isEnhancer(endEnhancer) && ((0, jsx_runtime_1.jsx)(EndEnhancer, tslib_1.__assign({}, sharedProps, endEnhancerProps, { "$position": constants_2.ENHANCER_POSITION.end, "$isStart": false }, { children: typeof endEnhancer === 'function' ? endEnhancer(sharedProps) : endEnhancer })))] })) })));
|
|
1083
|
+
} })));
|
|
845
1084
|
};
|
|
846
1085
|
Select.defaultProps = default_props_1.default;
|
|
847
1086
|
return Select;
|
|
848
|
-
}(
|
|
1087
|
+
}(react_1.Component));
|
|
849
1088
|
exports.default = Select;
|