@sprinklrjs/spaceweb 14.11.4 → 14.12.0
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/asyncSelect/asyncSelect.d.ts +2 -2
- package/asyncSelect/asyncSelect.js +1 -1
- package/asyncSelect/groupedAsyncSelect.d.ts +1 -1
- package/asyncSelect/groupedAsyncSelect.js +1 -1
- package/asyncSelect/hooks/useAsyncOptions.d.ts +1 -1
- package/asyncSelect/hooks/useAsyncOptions.js +4 -5
- package/asyncSelect/hooks/useAsyncSelect.d.ts +1 -1
- package/asyncSelect/hooks/useAsyncSelectAdapter.d.ts +1 -1
- package/asyncSelect/hooks/useBaseAsyncSelect.js +1 -1
- package/asyncSelect/hooks/useCreateOption.d.ts +2 -2
- package/asyncSelect/hooks/useCreateOption.js +3 -6
- package/asyncSelect/hooks/useGroupAsyncSelectAdapter.d.ts +3 -3
- package/asyncSelect/hooks/useGroupedAsyncSelect.d.ts +1 -1
- package/asyncSelect/hooks/useInputChangeHandler.d.ts +2 -2
- package/asyncSelect/hooks/useResolveSelectedOptions.d.ts +3 -3
- package/asyncSelect/hooks/useResolveSelectedOptions.js +2 -4
- package/asyncSelect/types.d.ts +5 -6
- package/asyncSelect/utils/defaultCreateOption.d.ts +1 -1
- package/avatar/avatar.d.ts +2 -2
- package/avatar/components/grid-variant.d.ts +2 -2
- package/avatar/components/grid-variant.js +0 -1
- package/avatar/components/linear-variant.js +0 -2
- package/avatar/constants.d.ts +1 -1
- package/avatar/hooks/useAvatarGroupChildren.d.ts +2 -2
- package/avatar/hooks/useAvatarGroupChildren.js +0 -1
- package/avatar/styled-component.d.ts +1 -1
- package/avatar/styled-component.js +1 -3
- package/avatar/types.d.ts +2 -2
- package/avatar/useAvatarColor.js +0 -1
- package/avatar/utils/avatarGroupHelpers.d.ts +1 -1
- package/avatar/utils/cleanupDisplayName.js +2 -2
- package/badge/badge.d.ts +2 -2
- package/badge/types.d.ts +2 -2
- package/banner/banner.d.ts +1 -1
- package/banner/banner.js +2 -2
- package/banner/types.d.ts +3 -3
- package/base-button/styled-components.d.ts +1 -1
- package/base-button/types.d.ts +3 -3
- package/baseui/accordion/panel.js +1 -3
- package/baseui/accordion/stateful-panel-container.js +1 -2
- package/baseui/accordion/stateless-accordion.js +4 -6
- package/baseui/datepicker/calendar-header.js +2 -4
- package/baseui/datepicker/calendar.d.ts +1 -1
- package/baseui/datepicker/calendar.js +2 -3
- package/baseui/datepicker/day.d.ts +1 -1
- package/baseui/datepicker/day.js +1 -1
- package/baseui/datepicker/styled-components.js +1 -1
- package/baseui/datepicker/utils/date-helpers.js +4 -4
- package/baseui/datepicker/utils/index.js +7 -12
- package/baseui/helpers/overrides.d.ts +2 -2
- package/baseui/helpers/overrides.js +4 -7
- package/baseui/layer/layer.js +2 -1
- package/baseui/layer/layers-manager.js +2 -1
- package/baseui/layer/tether.js +1 -0
- package/baseui/layer/types.d.ts +1 -1
- package/baseui/modal/close-icon.js +9 -1
- package/baseui/modal/modal.d.ts +3 -3
- package/baseui/modal/modal.js +6 -8
- package/baseui/popover/popover.js +3 -4
- package/baseui/popover/stateful-container.js +1 -1
- package/baseui/popover/utils.js +1 -3
- package/baseui/select/autosize-input.d.ts +1 -1
- package/baseui/select/autosize-input.js +1 -1
- package/baseui/select/dropdown.js +1 -1
- package/baseui/select/select-component.d.ts +3 -4
- package/baseui/select/select-component.js +15 -10
- package/baseui/select/stateful-select-container.js +4 -8
- package/baseui/select/types.d.ts +4 -5
- package/baseui/select/utils/index.js +2 -6
- package/baseui/select/value.js +5 -1
- package/baseui/timepicker/timepicker.js +6 -7
- package/baseui/timepicker/types.d.ts +1 -1
- package/baseui/tree-view/index.d.ts +1 -1
- package/baseui/tree-view/tree-label-interactable.d.ts +1 -1
- package/baseui/tree-view/tree-label.js +1 -1
- package/baseui/tree-view/tree-node.js +1 -1
- package/baseui/tree-view/tree-view.js +1 -2
- package/baseui/tree-view/utils.js +3 -7
- package/baseui/utils/focusVisible.js +1 -1
- package/box/types.d.ts +2 -2
- package/breadcrumb/breadcrumb-ellipsis.d.ts +1 -1
- package/breadcrumb/breadcrumb-item.d.ts +1 -1
- package/breadcrumb/breadcrumb-item.js +0 -1
- package/breadcrumb/breadcrumb.d.ts +1 -1
- package/breadcrumb/breadcrumb.js +2 -1
- package/breadcrumb/types.d.ts +5 -4
- package/button/Button.js +2 -2
- package/button/CitationButton/CitationButton.d.ts +1 -1
- package/button/CitationButton/types.d.ts +1 -1
- package/button/DropdownEnhancer.d.ts +3 -3
- package/button/DropdownEnhancer.js +0 -1
- package/button/IconButton/IconButton.d.ts +1 -1
- package/button/IconButton/styled-components.d.ts +2 -2
- package/button/IconButton/types.d.ts +3 -3
- package/button/IconTextButton/styled-components.d.ts +1 -1
- package/button/IconTextButton/styled-components.js +2 -3
- package/button/IconTextButton/types.d.ts +3 -3
- package/button/button-enhancers.d.ts +1 -1
- package/button/helpers.d.ts +3 -3
- package/button/styled-components.d.ts +2 -2
- package/button/types.d.ts +6 -7
- package/button-group/ButtonGroup.d.ts +1 -1
- package/button-group/helpers.d.ts +2 -2
- package/button-group/styled-components.d.ts +3 -3
- package/button-group/types.d.ts +7 -8
- package/checkbox/checkbox.js +1 -3
- package/checkbox/hooks/useStatefulCheckbox.d.ts +1 -1
- package/checkbox/styled-components.d.ts +2 -2
- package/color-picker/ColorPalette.d.ts +1 -1
- package/color-picker/ColorPalette.js +1 -1
- package/color-picker/Swatch.d.ts +3 -3
- package/color-picker/types.d.ts +2 -2
- package/container/ContainerProps.d.ts +1 -1
- package/currency/Currency.d.ts +1 -1
- package/currency/constants.d.ts +1 -1
- package/currency/types.d.ts +1 -1
- package/currency/useCurrency.d.ts +1 -1
- package/currency/utils.d.ts +1 -1
- package/date-input/DateInput.d.ts +1 -1
- package/date-input/types.d.ts +5 -5
- package/date-picker/Calendar.d.ts +2 -2
- package/date-picker/DateInput.js +1 -1
- package/date-picker/DatePicker.d.ts +2 -2
- package/date-picker/StatelessDatePicker.js +1 -1
- package/date-picker/TimeInput.d.ts +3 -3
- package/date-picker/TimezoneDisplay.d.ts +1 -1
- package/date-picker/stateful-container.d.ts +2 -2
- package/date-picker/stateful-container.js +1 -1
- package/date-picker/styled-components.d.ts +2 -2
- package/date-picker/styled-components.js +1 -1
- package/date-picker/types.d.ts +6 -6
- package/date-picker/utils.js +0 -3
- package/date-time/DateTime.d.ts +1 -1
- package/date-time/types.d.ts +1 -1
- package/date-time/useDateTime.d.ts +1 -1
- package/esm/ClientOnly.d.ts +1 -1
- package/esm/asyncSelect/asyncSelect.d.ts +2 -2
- package/esm/asyncSelect/asyncSelect.js +1 -1
- package/esm/asyncSelect/groupedAsyncSelect.d.ts +1 -1
- package/esm/asyncSelect/groupedAsyncSelect.js +1 -1
- package/esm/asyncSelect/hooks/useAsyncOptions.d.ts +1 -1
- package/esm/asyncSelect/hooks/useAsyncOptions.js +4 -5
- package/esm/asyncSelect/hooks/useAsyncSelect.d.ts +1 -1
- package/esm/asyncSelect/hooks/useAsyncSelectAdapter.d.ts +1 -1
- package/esm/asyncSelect/hooks/useBaseAsyncSelect.js +1 -1
- package/esm/asyncSelect/hooks/useCreateOption.d.ts +2 -2
- package/esm/asyncSelect/hooks/useCreateOption.js +3 -6
- package/esm/asyncSelect/hooks/useGroupAsyncSelectAdapter.d.ts +3 -3
- package/esm/asyncSelect/hooks/useGroupedAsyncSelect.d.ts +1 -1
- package/esm/asyncSelect/hooks/useInputChangeHandler.d.ts +2 -2
- package/esm/asyncSelect/hooks/useResolveSelectedOptions.d.ts +3 -3
- package/esm/asyncSelect/hooks/useResolveSelectedOptions.js +2 -4
- package/esm/asyncSelect/types.d.ts +5 -6
- package/esm/asyncSelect/utils/defaultCreateOption.d.ts +1 -1
- package/esm/avatar/avatar.d.ts +2 -2
- package/esm/avatar/components/grid-variant.d.ts +2 -2
- package/esm/avatar/components/grid-variant.js +0 -1
- package/esm/avatar/components/linear-variant.js +0 -2
- package/esm/avatar/constants.d.ts +1 -1
- package/esm/avatar/hooks/useAvatarGroupChildren.d.ts +2 -2
- package/esm/avatar/hooks/useAvatarGroupChildren.js +0 -1
- package/esm/avatar/styled-component.d.ts +1 -1
- package/esm/avatar/styled-component.js +1 -3
- package/esm/avatar/types.d.ts +2 -2
- package/esm/avatar/useAvatarColor.js +0 -1
- package/esm/avatar/utils/avatarGroupHelpers.d.ts +1 -1
- package/esm/avatar/utils/cleanupDisplayName.js +2 -2
- package/esm/badge/badge.d.ts +2 -2
- package/esm/badge/types.d.ts +2 -2
- package/esm/banner/banner.d.ts +1 -1
- package/esm/banner/banner.js +2 -2
- package/esm/banner/types.d.ts +3 -3
- package/esm/base-button/styled-components.d.ts +1 -1
- package/esm/base-button/types.d.ts +3 -3
- package/esm/baseui/accordion/panel.js +1 -3
- package/esm/baseui/accordion/stateful-panel-container.js +1 -2
- package/esm/baseui/accordion/stateless-accordion.js +4 -6
- package/esm/baseui/datepicker/calendar-header.js +2 -4
- package/esm/baseui/datepicker/calendar.d.ts +1 -1
- package/esm/baseui/datepicker/calendar.js +2 -3
- package/esm/baseui/datepicker/day.d.ts +1 -1
- package/esm/baseui/datepicker/day.js +1 -1
- package/esm/baseui/datepicker/styled-components.js +1 -1
- package/esm/baseui/datepicker/utils/date-helpers.js +4 -4
- package/esm/baseui/datepicker/utils/index.js +7 -12
- package/esm/baseui/helpers/overrides.d.ts +2 -2
- package/esm/baseui/helpers/overrides.js +4 -7
- package/esm/baseui/layer/layer.js +2 -1
- package/esm/baseui/layer/layers-manager.js +2 -1
- package/esm/baseui/layer/tether.js +1 -0
- package/esm/baseui/layer/types.d.ts +1 -1
- package/esm/baseui/modal/close-icon.js +9 -1
- package/esm/baseui/modal/modal.d.ts +3 -3
- package/esm/baseui/modal/modal.js +6 -8
- package/esm/baseui/popover/popover.js +3 -4
- package/esm/baseui/popover/stateful-container.js +1 -1
- package/esm/baseui/popover/utils.js +1 -3
- package/esm/baseui/select/autosize-input.d.ts +1 -1
- package/esm/baseui/select/autosize-input.js +1 -1
- package/esm/baseui/select/dropdown.js +1 -1
- package/esm/baseui/select/select-component.d.ts +3 -4
- package/esm/baseui/select/select-component.js +15 -10
- package/esm/baseui/select/stateful-select-container.js +4 -8
- package/esm/baseui/select/types.d.ts +4 -5
- package/esm/baseui/select/utils/index.js +2 -6
- package/esm/baseui/select/value.js +5 -1
- package/esm/baseui/timepicker/timepicker.js +6 -7
- package/esm/baseui/timepicker/types.d.ts +1 -1
- package/esm/baseui/tree-view/index.d.ts +1 -1
- package/esm/baseui/tree-view/index.js +1 -1
- package/esm/baseui/tree-view/tree-label-interactable.d.ts +1 -1
- package/esm/baseui/tree-view/tree-label.js +1 -1
- package/esm/baseui/tree-view/tree-node.js +1 -1
- package/esm/baseui/tree-view/tree-view.js +1 -2
- package/esm/baseui/tree-view/utils.js +3 -7
- package/esm/baseui/utils/focusVisible.js +1 -1
- package/esm/box/types.d.ts +2 -2
- package/esm/breadcrumb/breadcrumb-ellipsis.d.ts +1 -1
- package/esm/breadcrumb/breadcrumb-item.d.ts +1 -1
- package/esm/breadcrumb/breadcrumb-item.js +0 -1
- package/esm/breadcrumb/breadcrumb.d.ts +1 -1
- package/esm/breadcrumb/breadcrumb.js +2 -1
- package/esm/breadcrumb/types.d.ts +5 -4
- package/esm/button/Button.js +2 -2
- package/esm/button/CitationButton/CitationButton.d.ts +1 -1
- package/esm/button/CitationButton/types.d.ts +1 -1
- package/esm/button/DropdownEnhancer.d.ts +3 -3
- package/esm/button/DropdownEnhancer.js +0 -1
- package/esm/button/IconButton/IconButton.d.ts +1 -1
- package/esm/button/IconButton/styled-components.d.ts +2 -2
- package/esm/button/IconButton/types.d.ts +3 -3
- package/esm/button/IconTextButton/styled-components.d.ts +1 -1
- package/esm/button/IconTextButton/styled-components.js +2 -3
- package/esm/button/IconTextButton/types.d.ts +3 -3
- package/esm/button/button-enhancers.d.ts +1 -1
- package/esm/button/helpers.d.ts +3 -3
- package/esm/button/styled-components.d.ts +2 -2
- package/esm/button/types.d.ts +6 -7
- package/esm/button-group/ButtonGroup.d.ts +1 -1
- package/esm/button-group/helpers.d.ts +2 -2
- package/esm/button-group/styled-components.d.ts +3 -3
- package/esm/button-group/types.d.ts +7 -8
- package/esm/checkbox/checkbox.js +1 -3
- package/esm/checkbox/hooks/useStatefulCheckbox.d.ts +1 -1
- package/esm/checkbox/styled-components.d.ts +2 -2
- package/esm/color-picker/ColorPalette.d.ts +1 -1
- package/esm/color-picker/ColorPalette.js +1 -1
- package/esm/color-picker/Swatch.d.ts +3 -3
- package/esm/color-picker/types.d.ts +2 -2
- package/esm/container/ContainerProps.d.ts +1 -1
- package/esm/currency/Currency.d.ts +1 -1
- package/esm/currency/constants.d.ts +1 -1
- package/esm/currency/types.d.ts +1 -1
- package/esm/currency/useCurrency.d.ts +1 -1
- package/esm/currency/utils.d.ts +1 -1
- package/esm/date-input/DateInput.d.ts +1 -1
- package/esm/date-input/types.d.ts +5 -5
- package/esm/date-picker/Calendar.d.ts +2 -2
- package/esm/date-picker/DateInput.js +1 -1
- package/esm/date-picker/DatePicker.d.ts +2 -2
- package/esm/date-picker/StatelessDatePicker.js +1 -1
- package/esm/date-picker/TimeInput.d.ts +3 -3
- package/esm/date-picker/TimezoneDisplay.d.ts +1 -1
- package/esm/date-picker/stateful-container.d.ts +2 -2
- package/esm/date-picker/stateful-container.js +1 -1
- package/esm/date-picker/styled-components.d.ts +2 -2
- package/esm/date-picker/styled-components.js +1 -1
- package/esm/date-picker/types.d.ts +6 -6
- package/esm/date-picker/utils.js +0 -3
- package/esm/date-time/DateTime.d.ts +1 -1
- package/esm/date-time/types.d.ts +1 -1
- package/esm/date-time/useDateTime.d.ts +1 -1
- package/esm/form-control/context.d.ts +1 -1
- package/esm/form-control/form-control.d.ts +1 -1
- package/esm/form-control/form-control.js +1 -1
- package/esm/form-control/info-icon.d.ts +6 -5
- package/esm/form-control/info-icon.js +0 -1
- package/esm/form-control/styled-component.js +2 -1
- package/esm/form-control/types.d.ts +3 -4
- package/esm/grid/Col.d.ts +2 -2
- package/esm/grid/Grid.d.ts +2 -2
- package/esm/grid/Grid.js +0 -3
- package/esm/grid/index.d.ts +1 -1
- package/esm/grid/types.d.ts +1 -1
- package/esm/helpers/ClearIconButton.d.ts +3 -3
- package/esm/helpers/ClearIconButton.js +1 -1
- package/esm/helpers/commonStyles.js +2 -3
- package/esm/helpers/intentHelper.d.ts +1 -1
- package/esm/helpers/longHandHelpers.d.ts +1 -1
- package/esm/helpers/themeHelpers.d.ts +2 -2
- package/esm/hooks/useAutoFocus.d.ts +2 -2
- package/esm/hooks/useAutoFocus.js +1 -0
- package/esm/hooks/useDebouncedEventHandler.d.ts +1 -1
- package/esm/hooks/useDebouncedEventHandler.js +0 -3
- package/esm/hooks/useHover.d.ts +1 -1
- package/esm/hooks/useMatchMedia.js +3 -2
- package/esm/hooks/useSVGAnimation.d.ts +2 -2
- package/esm/hooks/useTabsKeyboardNavigation.d.ts +1 -1
- package/esm/hooks/useTabsKeyboardNavigation.js +0 -1
- package/esm/hooks/useTransitionState.js +0 -1
- package/esm/icon/components/alert-solid.d.ts +1 -1
- package/esm/icon/components/alert-warning.d.ts +1 -1
- package/esm/icon/components/alert.d.ts +1 -1
- package/esm/icon/components/calendar-solid.d.ts +1 -1
- package/esm/icon/components/chevron-down-solid.d.ts +1 -1
- package/esm/icon/components/chevron-down.d.ts +1 -1
- package/esm/icon/components/chevron-left.d.ts +1 -1
- package/esm/icon/components/chevron-right.d.ts +1 -1
- package/esm/icon/components/clock-icon.d.ts +1 -1
- package/esm/icon/components/close.d.ts +1 -1
- package/esm/icon/components/delete-solid.d.ts +1 -1
- package/esm/icon/components/error-clr.d.ts +1 -1
- package/esm/icon/components/error.d.ts +1 -1
- package/esm/icon/components/form.d.ts +1 -1
- package/esm/icon/components/imagePreview.d.ts +1 -1
- package/esm/icon/components/info-circle.d.ts +1 -1
- package/esm/icon/components/info-solid.d.ts +2 -2
- package/esm/icon/components/info.d.ts +1 -1
- package/esm/icon/components/no-video.d.ts +1 -1
- package/esm/icon/components/noPreview.d.ts +1 -1
- package/esm/icon/components/options.d.ts +1 -1
- package/esm/icon/components/overview.d.ts +1 -1
- package/esm/icon/components/play-video.d.ts +1 -1
- package/esm/icon/components/reset-color.d.ts +1 -1
- package/esm/icon/components/search.d.ts +1 -1
- package/esm/icon/components/subtract.d.ts +1 -1
- package/esm/icon/components/tick.d.ts +1 -1
- package/esm/icon/components/tickCircle-solid.d.ts +1 -1
- package/esm/icon/components/timezone.d.ts +1 -1
- package/esm/icon/components/transparentBackground.d.ts +1 -1
- package/esm/icon/components/user.d.ts +1 -1
- package/esm/icon/components/video-non-playable.d.ts +1 -1
- package/esm/icon/components/warning-solid.d.ts +1 -1
- package/esm/icon/icon.d.ts +1 -1
- package/esm/icon/types.d.ts +3 -3
- package/esm/image/defaultFallbackImg.d.ts +2 -2
- package/esm/image/types.d.ts +3 -3
- package/esm/input/InputContainer.d.ts +1 -1
- package/esm/input/base-input.d.ts +2 -2
- package/esm/input/base-input.js +2 -2
- package/esm/input/masked-input.js +5 -5
- package/esm/input/neutral400Hex.d.ts +1 -1
- package/esm/input/number/NumberInput.d.ts +1 -1
- package/esm/input/number/StatefulNumberInput.d.ts +1 -1
- package/esm/input/number/base-input.d.ts +1 -1
- package/esm/input/useStatefulInput.d.ts +1 -2
- package/esm/layer/LayersManager.d.ts +1 -1
- package/esm/link/styled-components.d.ts +2 -2
- package/esm/link/types.d.ts +1 -1
- package/esm/list/avatar-list-item.d.ts +3 -3
- package/esm/list/list-item-text.d.ts +1 -1
- package/esm/list/list-item.d.ts +1 -1
- package/esm/list/styled-component.js +1 -1
- package/esm/loader/types.d.ts +3 -3
- package/esm/locale/context.d.ts +1 -1
- package/esm/locale/en_US.d.ts +1 -1
- package/esm/menu/nested-menu-context.d.ts +2 -2
- package/esm/menu/useItemContainerEventHandlers.d.ts +1 -1
- package/esm/modal/adapter.d.ts +3 -3
- package/esm/modal/modal-footer.d.ts +2 -2
- package/esm/modal/overrides.d.ts +3 -3
- package/esm/number/Number.d.ts +1 -1
- package/esm/number/constants.d.ts +1 -1
- package/esm/number/types.d.ts +1 -1
- package/esm/number/useNumber.d.ts +1 -1
- package/esm/overrides/mergeOverrides.d.ts +1 -1
- package/esm/overrides/types.d.ts +3 -3
- package/esm/overrides/useOverrides.d.ts +2 -2
- package/esm/payment-card/icons/amex.js +9 -1
- package/esm/payment-card/icons/dinersclub.js +9 -1
- package/esm/payment-card/icons/discover.js +9 -1
- package/esm/payment-card/icons/elo.js +9 -1
- package/esm/payment-card/icons/generic.js +9 -1
- package/esm/payment-card/icons/jcb.js +9 -1
- package/esm/payment-card/icons/maestro.js +9 -1
- package/esm/payment-card/icons/mastercard.js +9 -1
- package/esm/payment-card/icons/uatp.js +9 -1
- package/esm/payment-card/icons/unionpay.js +9 -1
- package/esm/payment-card/icons/visa.js +9 -1
- package/esm/payment-card/paymentCard.js +1 -1
- package/esm/payment-card/types.d.ts +4 -4
- package/esm/phone-input/country-select-container.d.ts +1 -1
- package/esm/phone-input/country-select.d.ts +1 -1
- package/esm/phone-input/default-props.d.ts +2 -2
- package/esm/phone-input/dial-code.d.ts +1 -1
- package/esm/phone-input/phone-input.d.ts +1 -1
- package/esm/phone-input/stateful-phone-input.d.ts +2 -2
- package/esm/phone-input/stateful-phone-input.js +2 -2
- package/esm/phone-input/types.d.ts +5 -5
- package/esm/phone-input/useStatefulPhoneInput.d.ts +1 -1
- package/esm/phone-input/utils.d.ts +2 -2
- package/esm/popover/PopoverEnhancer.d.ts +6 -6
- package/esm/popover/PopoverEnhancer.js +11 -9
- package/esm/popover/adapter.d.ts +2 -2
- package/esm/popover/hooks.d.ts +1 -1
- package/esm/popover/overrides.d.ts +2 -2
- package/esm/popover/stateful-popover.d.ts +1 -1
- package/esm/popover/utils.d.ts +1 -1
- package/esm/progress/circular/styled-component.d.ts +1 -1
- package/esm/progress/circular/types.d.ts +2 -2
- package/esm/progress/helper.d.ts +2 -2
- package/esm/progress/linear/ProgressSegment.js +1 -1
- package/esm/progress/linear/types.d.ts +2 -2
- package/esm/progress/types.d.ts +1 -1
- package/esm/progressSteps/progress-steps.d.ts +1 -1
- package/esm/progressSteps/step.d.ts +1 -1
- package/esm/progressSteps/styled-components.d.ts +1 -1
- package/esm/progressSteps/types.d.ts +1 -1
- package/esm/radio/radio.js +2 -1
- package/esm/radio/radiogroup.js +1 -1
- package/esm/radio/space-radio-context.d.ts +2 -2
- package/esm/radio/styled-components.d.ts +2 -2
- package/esm/radio/types.d.ts +5 -5
- package/esm/search/search.d.ts +3 -3
- package/esm/search/stateful-search.d.ts +2 -2
- package/esm/search/styled-components.d.ts +1 -1
- package/esm/search/types.d.ts +2 -2
- package/esm/select/SelectIdsContext.d.ts +1 -1
- package/esm/select/adaptor.d.ts +2 -2
- package/esm/select/base-select.js +4 -4
- package/esm/select/default-props.d.ts +1 -1
- package/esm/select/grouped-select.d.ts +2 -2
- package/esm/select/grouped-select.js +0 -1
- package/esm/select/mobileSelect/AdaptedCSSTransition/AdaptedCSSTransition.d.ts +1 -1
- package/esm/select/mobileSelect/AdaptedCSSTransition/types.d.ts +2 -2
- package/esm/select/mobileSelect/Backdrop.d.ts +1 -1
- package/esm/select/mobileSelect/MobileSelect.d.ts +1 -1
- package/esm/select/mobileSelect/MobileSheet.d.ts +1 -1
- package/esm/select/mobileSelect/hooks/usePauseBodyScrollEffect.d.ts +1 -1
- package/esm/select/mobileSelect/hooks/useSwipeableSheetStyles.d.ts +1 -1
- package/esm/select/mobileSelect/hooks/useSwipeableSheetStyles.js +2 -2
- package/esm/select/mobileSelect/hooks/useTransitionStyles.d.ts +1 -1
- package/esm/select/multi-value.d.ts +1 -1
- package/esm/select/multi-value.js +1 -1
- package/esm/select/no-results-message.d.ts +2 -2
- package/esm/select/overlaySelect/hooks/useControlRef.d.ts +1 -1
- package/esm/select/overlaySelect/hooks/usePopover.d.ts +1 -1
- package/esm/select/overrides.d.ts +3 -3
- package/esm/select/overrides.js +3 -2
- package/esm/select/select-variants.d.ts +1 -1
- package/esm/select/selectMenuAdapter/SelectMenuAdapter.js +2 -1
- package/esm/select/stateful-select.d.ts +1 -1
- package/esm/select/styled-component.js +1 -3
- package/esm/select/utils/adapt-select-value.d.ts +1 -1
- package/esm/select/utils/default-create-option.d.ts +1 -1
- package/esm/select/utils/hidden-element.d.ts +1 -1
- package/esm/select/utils/hidden-element.js +2 -1
- package/esm/select/utils/merge-options.d.ts +1 -1
- package/esm/slider/slider.js +13 -7
- package/esm/slider/stateful-slider-container.d.ts +1 -1
- package/esm/slider/stateful-slider-container.js +4 -4
- package/esm/slider/stateful-slider.d.ts +2 -2
- package/esm/slider/styled-components.d.ts +1 -1
- package/esm/slider/styled-components.js +27 -3
- package/esm/slider/types.d.ts +2 -2
- package/esm/snackbar/constants.d.ts +3 -3
- package/esm/snackbar/snackbarContext.d.ts +1 -1
- package/esm/snackbar/types.d.ts +1 -1
- package/esm/snackbar/useSnackbar.d.ts +2 -2
- package/esm/spaceConsumer/SpaceConsumer.d.ts +2 -2
- package/esm/spacewebProvider/AiIconLinearGradients.js +3 -1
- package/esm/spacewebProvider/CustomBaseProvider.d.ts +1 -1
- package/esm/spacewebProvider/DocumentProvider.d.ts +1 -1
- package/esm/spacewebProvider/SpacewebProvider.d.ts +4 -4
- package/esm/spacewebProvider/SpacewebProvider.js +1 -1
- package/esm/stack/context.d.ts +1 -1
- package/esm/stack/stack.d.ts +1 -1
- package/esm/stack/types.d.ts +2 -2
- package/esm/style/_buildUtils.d.ts +1 -1
- package/esm/style/_css.d.ts +1 -1
- package/esm/style/_cssParseStyle.d.ts +1 -1
- package/esm/style/_getStyle.d.ts +1 -1
- package/esm/style/_getStyleWithProps.d.ts +1 -1
- package/esm/style/_parseClassName.d.ts +1 -1
- package/esm/style/_parseStyleProp.d.ts +2 -2
- package/esm/style/_parseStyleProp.js +3 -2
- package/esm/style/_px2rem.d.ts +1 -1
- package/esm/style/styled-with-css-variables.d.ts +1 -1
- package/esm/style/styled.d.ts +2 -2
- package/esm/style/styled.js +1 -1
- package/esm/style/useMemoizedStyletron.js +2 -2
- package/esm/style/useStyle.d.ts +1 -1
- package/esm/styleEngine/styleEngine.d.ts +2 -2
- package/esm/styleEngine/styleEngine.js +0 -1
- package/esm/switch/switch.d.ts +3 -3
- package/esm/switch/switch.js +1 -1
- package/esm/tabs/contexts.d.ts +2 -2
- package/esm/tabs/helpers.d.ts +1 -1
- package/esm/tabs/scroll-button.d.ts +1 -1
- package/esm/tabs/stateful-tabs.d.ts +2 -2
- package/esm/tabs/styled-components.d.ts +2 -2
- package/esm/tabs/tab-list.d.ts +1 -1
- package/esm/tabs/tab.d.ts +2 -2
- package/esm/tabs/tabs-panel.d.ts +2 -2
- package/esm/tabs/types.d.ts +4 -4
- package/esm/tag/constants.d.ts +1 -1
- package/esm/tag/status-tag.d.ts +1 -1
- package/esm/tag/tag.js +6 -2
- package/esm/tag/utils.d.ts +1 -1
- package/esm/test-utils/test-provider/TestProvider.d.ts +1 -1
- package/esm/test-utils/test-provider/helpers.d.ts +2 -2
- package/esm/test-utils/test-provider/testableThemes.d.ts +1 -1
- package/esm/textarea/textarea.js +5 -5
- package/esm/textarea/types.d.ts +4 -5
- package/esm/textarea/useAutoSizeTextarea.d.ts +2 -2
- package/esm/theme/Provider.d.ts +2 -2
- package/esm/theme/context.d.ts +1 -1
- package/esm/theme/types.d.ts +1 -1
- package/esm/time-picker/TimePicker.d.ts +2 -2
- package/esm/time-picker/types.d.ts +5 -5
- package/esm/time-range-picker/RangeSelector.d.ts +2 -2
- package/esm/time-range-picker/TimeRangeList.d.ts +2 -2
- package/esm/time-range-picker/TimeRangePicker.d.ts +2 -2
- package/esm/time-range-picker/TimeRangePicker.js +2 -1
- package/esm/time-range-picker/TimezonePicker.d.ts +1 -1
- package/esm/time-range-picker/types.d.ts +1 -1
- package/esm/time-range-picker/utils.d.ts +2 -2
- package/esm/time-zone-picker/TimezonePicker.d.ts +2 -2
- package/esm/time-zone-picker/types.d.ts +1 -1
- package/esm/tooltip/disabled-tooltip-container.d.ts +1 -1
- package/esm/tooltip/overrides.d.ts +2 -2
- package/esm/tooltip/stateful-tooltip-container.d.ts +1 -1
- package/esm/tooltip/stateful-tooltip.d.ts +2 -2
- package/esm/tooltip/tooltip.d.ts +2 -2
- package/esm/tooltip/types.d.ts +5 -5
- package/esm/transitions/collapse/collapse.d.ts +2 -2
- package/esm/transitions/collapse/types.d.ts +2 -2
- package/esm/transitions/fade/fade.d.ts +2 -2
- package/esm/transitions/fade/types.d.ts +2 -2
- package/esm/transitions/grow/grow.d.ts +2 -2
- package/esm/transitions/grow/types.d.ts +2 -2
- package/esm/transitions/transition/SwitchTransition.d.ts +2 -2
- package/esm/transitions/transition/transition.d.ts +2 -2
- package/esm/transitions/transition/types.d.ts +5 -4
- package/esm/truncateWithTooltip/TruncateWithTooltip.d.ts +1 -1
- package/esm/truncateWithTooltip/TruncateWithTooltip.js +6 -5
- package/esm/truncateWithTooltip/hooks/useTruncateWithTooltip.d.ts +7 -2
- package/esm/truncateWithTooltip/hooks/useTruncateWithTooltip.js +9 -9
- package/esm/types.d.ts +5 -5
- package/esm/typography/Typography.d.ts +1 -1
- package/esm/typography/types.d.ts +4 -4
- package/esm/utils/intlNumberFormatUtils/index.d.ts +1 -1
- package/esm/utils/intlNumberFormatUtils/index.js +1 -1
- package/esm/video/DefaultFallbackImg.d.ts +2 -2
- package/esm/video/Video.js +0 -1
- package/esm/video/types.d.ts +4 -5
- package/form-control/context.d.ts +1 -1
- package/form-control/form-control.d.ts +1 -1
- package/form-control/form-control.js +1 -1
- package/form-control/info-icon.d.ts +6 -5
- package/form-control/info-icon.js +0 -1
- package/form-control/styled-component.js +2 -1
- package/form-control/types.d.ts +3 -4
- package/grid/Col.d.ts +2 -2
- package/grid/Grid.d.ts +2 -2
- package/grid/Grid.js +0 -3
- package/grid/index.d.ts +1 -1
- package/grid/types.d.ts +1 -1
- package/helpers/ClearIconButton.d.ts +3 -3
- package/helpers/ClearIconButton.js +1 -1
- package/helpers/commonStyles.js +2 -3
- package/helpers/intentHelper.d.ts +1 -1
- package/helpers/longHandHelpers.d.ts +1 -1
- package/helpers/themeHelpers.d.ts +2 -2
- package/hooks/useAutoFocus.d.ts +2 -2
- package/hooks/useAutoFocus.js +1 -0
- package/hooks/useDebouncedEventHandler.d.ts +1 -1
- package/hooks/useDebouncedEventHandler.js +0 -3
- package/hooks/useHover.d.ts +1 -1
- package/hooks/useMatchMedia.js +3 -2
- package/hooks/useSVGAnimation.d.ts +2 -2
- package/hooks/useTabsKeyboardNavigation.d.ts +1 -1
- package/hooks/useTabsKeyboardNavigation.js +0 -1
- package/hooks/useTransitionState.js +0 -1
- package/icon/components/alert-solid.d.ts +1 -1
- package/icon/components/alert-warning.d.ts +1 -1
- package/icon/components/alert.d.ts +1 -1
- package/icon/components/calendar-solid.d.ts +1 -1
- package/icon/components/chevron-down-solid.d.ts +1 -1
- package/icon/components/chevron-down.d.ts +1 -1
- package/icon/components/chevron-left.d.ts +1 -1
- package/icon/components/chevron-right.d.ts +1 -1
- package/icon/components/clock-icon.d.ts +1 -1
- package/icon/components/close.d.ts +1 -1
- package/icon/components/delete-solid.d.ts +1 -1
- package/icon/components/error-clr.d.ts +1 -1
- package/icon/components/error.d.ts +1 -1
- package/icon/components/form.d.ts +1 -1
- package/icon/components/imagePreview.d.ts +1 -1
- package/icon/components/info-circle.d.ts +1 -1
- package/icon/components/info-solid.d.ts +2 -2
- package/icon/components/info.d.ts +1 -1
- package/icon/components/no-video.d.ts +1 -1
- package/icon/components/noPreview.d.ts +1 -1
- package/icon/components/options.d.ts +1 -1
- package/icon/components/overview.d.ts +1 -1
- package/icon/components/play-video.d.ts +1 -1
- package/icon/components/reset-color.d.ts +1 -1
- package/icon/components/search.d.ts +1 -1
- package/icon/components/subtract.d.ts +1 -1
- package/icon/components/tick.d.ts +1 -1
- package/icon/components/tickCircle-solid.d.ts +1 -1
- package/icon/components/timezone.d.ts +1 -1
- package/icon/components/transparentBackground.d.ts +1 -1
- package/icon/components/user.d.ts +1 -1
- package/icon/components/video-non-playable.d.ts +1 -1
- package/icon/components/warning-solid.d.ts +1 -1
- package/icon/icon.d.ts +1 -1
- package/icon/types.d.ts +3 -3
- package/image/defaultFallbackImg.d.ts +2 -2
- package/image/types.d.ts +3 -3
- package/input/InputContainer.d.ts +1 -1
- package/input/base-input.d.ts +2 -2
- package/input/base-input.js +2 -2
- package/input/masked-input.js +5 -5
- package/input/neutral400Hex.d.ts +1 -1
- package/input/number/NumberInput.d.ts +1 -1
- package/input/number/StatefulNumberInput.d.ts +1 -1
- package/input/number/base-input.d.ts +1 -1
- package/input/useStatefulInput.d.ts +1 -2
- package/layer/LayersManager.d.ts +1 -1
- package/link/styled-components.d.ts +2 -2
- package/link/types.d.ts +1 -1
- package/list/avatar-list-item.d.ts +3 -3
- package/list/list-item-text.d.ts +1 -1
- package/list/list-item.d.ts +1 -1
- package/list/styled-component.js +1 -1
- package/loader/types.d.ts +3 -3
- package/locale/context.d.ts +1 -1
- package/locale/en_US.d.ts +1 -1
- package/menu/nested-menu-context.d.ts +2 -2
- package/menu/useItemContainerEventHandlers.d.ts +1 -1
- package/modal/adapter.d.ts +3 -3
- package/modal/modal-footer.d.ts +2 -2
- package/modal/overrides.d.ts +3 -3
- package/number/Number.d.ts +1 -1
- package/number/constants.d.ts +1 -1
- package/number/types.d.ts +1 -1
- package/number/useNumber.d.ts +1 -1
- package/overrides/mergeOverrides.d.ts +1 -1
- package/overrides/types.d.ts +3 -3
- package/overrides/useOverrides.d.ts +2 -2
- package/package.json +2 -2
- package/payment-card/icons/amex.js +9 -1
- package/payment-card/icons/dinersclub.js +9 -1
- package/payment-card/icons/discover.js +9 -1
- package/payment-card/icons/elo.js +9 -1
- package/payment-card/icons/generic.js +9 -1
- package/payment-card/icons/jcb.js +9 -1
- package/payment-card/icons/maestro.js +9 -1
- package/payment-card/icons/mastercard.js +9 -1
- package/payment-card/icons/uatp.js +9 -1
- package/payment-card/icons/unionpay.js +9 -1
- package/payment-card/icons/visa.js +9 -1
- package/payment-card/paymentCard.js +1 -1
- package/payment-card/types.d.ts +4 -4
- package/phone-input/country-select-container.d.ts +1 -1
- package/phone-input/country-select.d.ts +1 -1
- package/phone-input/default-props.d.ts +2 -2
- package/phone-input/dial-code.d.ts +1 -1
- package/phone-input/phone-input.d.ts +1 -1
- package/phone-input/stateful-phone-input.d.ts +2 -2
- package/phone-input/stateful-phone-input.js +1 -1
- package/phone-input/types.d.ts +5 -5
- package/phone-input/useStatefulPhoneInput.d.ts +1 -1
- package/phone-input/utils.d.ts +2 -2
- package/popover/PopoverEnhancer.d.ts +6 -6
- package/popover/PopoverEnhancer.js +10 -8
- package/popover/adapter.d.ts +2 -2
- package/popover/hooks.d.ts +1 -1
- package/popover/overrides.d.ts +2 -2
- package/popover/stateful-popover.d.ts +1 -1
- package/popover/utils.d.ts +1 -1
- package/progress/circular/styled-component.d.ts +1 -1
- package/progress/circular/types.d.ts +2 -2
- package/progress/helper.d.ts +2 -2
- package/progress/linear/ProgressSegment.js +1 -1
- package/progress/linear/types.d.ts +2 -2
- package/progress/types.d.ts +1 -1
- package/progressSteps/progress-steps.d.ts +1 -1
- package/progressSteps/step.d.ts +1 -1
- package/progressSteps/styled-components.d.ts +1 -1
- package/progressSteps/types.d.ts +1 -1
- package/radio/radio.js +2 -1
- package/radio/radiogroup.js +1 -1
- package/radio/space-radio-context.d.ts +2 -2
- package/radio/styled-components.d.ts +2 -2
- package/radio/types.d.ts +5 -5
- package/search/search.d.ts +3 -3
- package/search/stateful-search.d.ts +2 -2
- package/search/styled-components.d.ts +1 -1
- package/search/types.d.ts +2 -2
- package/select/SelectIdsContext.d.ts +1 -1
- package/select/adaptor.d.ts +2 -2
- package/select/base-select.js +4 -4
- package/select/default-props.d.ts +1 -1
- package/select/grouped-select.d.ts +2 -2
- package/select/grouped-select.js +0 -1
- package/select/mobileSelect/AdaptedCSSTransition/AdaptedCSSTransition.d.ts +1 -1
- package/select/mobileSelect/AdaptedCSSTransition/types.d.ts +2 -2
- package/select/mobileSelect/Backdrop.d.ts +1 -1
- package/select/mobileSelect/MobileSelect.d.ts +1 -1
- package/select/mobileSelect/MobileSheet.d.ts +1 -1
- package/select/mobileSelect/hooks/usePauseBodyScrollEffect.d.ts +1 -1
- package/select/mobileSelect/hooks/useSwipeableSheetStyles.d.ts +1 -1
- package/select/mobileSelect/hooks/useSwipeableSheetStyles.js +2 -2
- package/select/mobileSelect/hooks/useTransitionStyles.d.ts +1 -1
- package/select/multi-value.d.ts +1 -1
- package/select/multi-value.js +1 -1
- package/select/no-results-message.d.ts +2 -2
- package/select/overlaySelect/hooks/useControlRef.d.ts +1 -1
- package/select/overlaySelect/hooks/usePopover.d.ts +1 -1
- package/select/overrides.d.ts +3 -3
- package/select/overrides.js +3 -2
- package/select/select-variants.d.ts +1 -1
- package/select/selectMenuAdapter/SelectMenuAdapter.js +2 -1
- package/select/stateful-select.d.ts +1 -1
- package/select/styled-component.js +1 -3
- package/select/utils/adapt-select-value.d.ts +1 -1
- package/select/utils/default-create-option.d.ts +1 -1
- package/select/utils/hidden-element.d.ts +1 -1
- package/select/utils/hidden-element.js +2 -1
- package/select/utils/merge-options.d.ts +1 -1
- package/slider/slider.js +13 -7
- package/slider/stateful-slider-container.d.ts +1 -1
- package/slider/stateful-slider-container.js +4 -4
- package/slider/stateful-slider.d.ts +2 -2
- package/slider/styled-components.d.ts +1 -1
- package/slider/styled-components.js +27 -3
- package/slider/types.d.ts +2 -2
- package/snackbar/constants.d.ts +3 -3
- package/snackbar/snackbarContext.d.ts +1 -1
- package/snackbar/types.d.ts +1 -1
- package/snackbar/useSnackbar.d.ts +2 -2
- package/spaceConsumer/SpaceConsumer.d.ts +2 -2
- package/spacewebProvider/AiIconLinearGradients.js +3 -1
- package/spacewebProvider/CustomBaseProvider.d.ts +1 -1
- package/spacewebProvider/DocumentProvider.d.ts +1 -1
- package/spacewebProvider/SpacewebProvider.d.ts +4 -4
- package/spacewebProvider/SpacewebProvider.js +1 -1
- package/stack/context.d.ts +1 -1
- package/stack/stack.d.ts +1 -1
- package/stack/types.d.ts +2 -2
- package/style/_buildUtils.d.ts +1 -1
- package/style/_css.d.ts +1 -1
- package/style/_cssParseStyle.d.ts +1 -1
- package/style/_getStyle.d.ts +1 -1
- package/style/_getStyleWithProps.d.ts +1 -1
- package/style/_parseClassName.d.ts +1 -1
- package/style/_parseStyleProp.d.ts +2 -2
- package/style/_parseStyleProp.js +3 -2
- package/style/_px2rem.d.ts +1 -1
- package/style/styled-with-css-variables.d.ts +1 -1
- package/style/styled.d.ts +2 -2
- package/style/styled.js +1 -1
- package/style/useMemoizedStyletron.js +2 -2
- package/style/useStyle.d.ts +1 -1
- package/styleEngine/styleEngine.d.ts +2 -2
- package/styleEngine/styleEngine.js +0 -1
- package/switch/switch.d.ts +3 -3
- package/switch/switch.js +1 -1
- package/tabs/contexts.d.ts +2 -2
- package/tabs/helpers.d.ts +1 -1
- package/tabs/scroll-button.d.ts +1 -1
- package/tabs/stateful-tabs.d.ts +2 -2
- package/tabs/styled-components.d.ts +2 -2
- package/tabs/tab-list.d.ts +1 -1
- package/tabs/tab.d.ts +2 -2
- package/tabs/tabs-panel.d.ts +2 -2
- package/tabs/types.d.ts +4 -4
- package/tag/constants.d.ts +1 -1
- package/tag/status-tag.d.ts +1 -1
- package/tag/tag.js +6 -2
- package/tag/utils.d.ts +1 -1
- package/test-utils/test-provider/TestProvider.d.ts +1 -1
- package/test-utils/test-provider/helpers.d.ts +2 -2
- package/test-utils/test-provider/testableThemes.d.ts +1 -1
- package/textarea/textarea.js +5 -5
- package/textarea/types.d.ts +4 -5
- package/textarea/useAutoSizeTextarea.d.ts +2 -2
- package/theme/Provider.d.ts +2 -2
- package/theme/context.d.ts +1 -1
- package/theme/types.d.ts +1 -1
- package/time-picker/TimePicker.d.ts +2 -2
- package/time-picker/types.d.ts +5 -5
- package/time-range-picker/RangeSelector.d.ts +2 -2
- package/time-range-picker/TimeRangeList.d.ts +2 -2
- package/time-range-picker/TimeRangePicker.d.ts +2 -2
- package/time-range-picker/TimeRangePicker.js +2 -1
- package/time-range-picker/TimezonePicker.d.ts +1 -1
- package/time-range-picker/types.d.ts +1 -1
- package/time-range-picker/utils.d.ts +2 -2
- package/time-zone-picker/TimezonePicker.d.ts +2 -2
- package/time-zone-picker/types.d.ts +1 -1
- package/tooltip/disabled-tooltip-container.d.ts +1 -1
- package/tooltip/overrides.d.ts +2 -2
- package/tooltip/stateful-tooltip-container.d.ts +1 -1
- package/tooltip/stateful-tooltip.d.ts +2 -2
- package/tooltip/tooltip.d.ts +2 -2
- package/tooltip/types.d.ts +5 -5
- package/transitions/collapse/collapse.d.ts +2 -2
- package/transitions/collapse/types.d.ts +2 -2
- package/transitions/fade/fade.d.ts +2 -2
- package/transitions/fade/types.d.ts +2 -2
- package/transitions/grow/grow.d.ts +2 -2
- package/transitions/grow/types.d.ts +2 -2
- package/transitions/transition/SwitchTransition.d.ts +2 -2
- package/transitions/transition/transition.d.ts +2 -2
- package/transitions/transition/types.d.ts +5 -4
- package/truncateWithTooltip/TruncateWithTooltip.d.ts +1 -1
- package/truncateWithTooltip/TruncateWithTooltip.js +6 -5
- package/truncateWithTooltip/hooks/useTruncateWithTooltip.d.ts +7 -2
- package/truncateWithTooltip/hooks/useTruncateWithTooltip.js +9 -9
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types.d.ts +5 -5
- package/typography/Typography.d.ts +1 -1
- package/typography/types.d.ts +4 -4
- package/utils/intlNumberFormatUtils/index.d.ts +1 -1
- package/utils/intlNumberFormatUtils/index.js +1 -1
- package/video/DefaultFallbackImg.d.ts +2 -2
- package/video/Video.js +0 -1
- package/video/types.d.ts +4 -5
|
@@ -54,7 +54,7 @@ var BaseSelect = /** @class */ (function (_super) {
|
|
|
54
54
|
// FIXME: Remove use of any
|
|
55
55
|
function () {
|
|
56
56
|
var _a;
|
|
57
|
-
var _b = _this.props, valueKey = _b.valueKey, labelKey = _b.labelKey, value = _b.value, multi = _b.multi, overrides = _b.overrides, noResultsMsg = _b.noResultsMsg, noResultsConfig = _b.noResultsConfig,
|
|
57
|
+
var _b = _this.props, valueKey = _b.valueKey, labelKey = _b.labelKey, value = _b.value, multi = _b.multi, overrides = _b.overrides, noResultsMsg = _b.noResultsMsg, noResultsConfig = _b.noResultsConfig, _options = _b.options, className = _b.className, style = _b.style, intent = _b.intent, size = _b.size, disabled = _b.disabled, captureScroll = _b.captureScroll, placement = _b.placement, popoverMinWidth = _b.popoverMinWidth, _searchable = _b.searchable, virtual = _b.virtual, getActionsElement = _b.getActionsElement, ignoreBoundary = _b.ignoreBoundary, clearAsOption = _b.clearAsOption, selectOnTab = _b.selectOnTab;
|
|
58
58
|
var hasEnhancerButton = hasStartEnhancerButton(_this.props) || hasEndEnhancerButton(_this.props);
|
|
59
59
|
return {
|
|
60
60
|
Root: {
|
|
@@ -198,7 +198,7 @@ var BaseSelect = /** @class */ (function (_super) {
|
|
|
198
198
|
* */
|
|
199
199
|
_this.getOptions = memoizeOne(function (locale, createdOptions, options, shouldPrependClearOption) {
|
|
200
200
|
var _a;
|
|
201
|
-
var _b = _this.props, valueKey = _b.valueKey, labelKey = _b.labelKey, clearAsOptionLabel = _b.clearAsOptionLabel,
|
|
201
|
+
var _b = _this.props, valueKey = _b.valueKey, labelKey = _b.labelKey, clearAsOptionLabel = _b.clearAsOptionLabel, _multi = _b.multi;
|
|
202
202
|
var optionArr = _this.getMemoizedNormalizedOptions(valueKey, options, createdOptions);
|
|
203
203
|
if (shouldPrependClearOption) {
|
|
204
204
|
optionArr = __spreadArray([
|
|
@@ -236,12 +236,12 @@ var BaseSelect = /** @class */ (function (_super) {
|
|
|
236
236
|
(_a = _this.props) === null || _a === void 0 ? void 0 : _a.onBlur(e);
|
|
237
237
|
};
|
|
238
238
|
_this.handleChange = function (params) { return __awaiter(_this, void 0, void 0, function () {
|
|
239
|
-
var _a,
|
|
239
|
+
var _a, _options, _b, onChange, value, creatable, valueKey, multi, newCreatedOptions, newCreatedValues, mergedValue, returnValue;
|
|
240
240
|
var _this = this;
|
|
241
241
|
return __generator(this, function (_c) {
|
|
242
242
|
switch (_c.label) {
|
|
243
243
|
case 0:
|
|
244
|
-
_a = this.props,
|
|
244
|
+
_a = this.props, _options = _a.options, _b = _a.onChange, onChange = _b === void 0 ? _noop : _b, value = _a.value, creatable = _a.creatable, valueKey = _a.valueKey, multi = _a.multi;
|
|
245
245
|
if (params.value.length > 0) {
|
|
246
246
|
this.lastSelectedValue = params.value;
|
|
247
247
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
import { GroupedSelectProps } from './types';
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { GroupedSelectProps } from './types';
|
|
3
3
|
export declare const GroupedSelect: (props: GroupedSelectProps) => ReactElement;
|
|
@@ -3,7 +3,6 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
3
3
|
// Components
|
|
4
4
|
import Select from './select';
|
|
5
5
|
import { CollapsibleSelectMenu } from './selectMenuAdapter/CollapsibleSelectMenu';
|
|
6
|
-
// Hooks, Utils
|
|
7
6
|
import { useMemo } from 'react';
|
|
8
7
|
import { mergeOverrides } from '../overrides';
|
|
9
8
|
import { useLocale } from '../locale';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TRANSITION_TYPES } from './constants';
|
|
2
|
-
export type TransitionType = typeof TRANSITION_TYPES[keyof typeof TRANSITION_TYPES];
|
|
1
|
+
import type { TRANSITION_TYPES } from './constants';
|
|
2
|
+
export type TransitionType = (typeof TRANSITION_TYPES)[keyof typeof TRANSITION_TYPES];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { ClassName } from '../../types';
|
|
2
|
+
import type { ClassName } from '../../types';
|
|
3
3
|
export declare const Backdrop: React.MemoExoticComponent<({ onHide, show, backdropKey, className, }: {
|
|
4
4
|
onHide: (e: React.MouseEvent) => void;
|
|
5
5
|
show: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { Styles, ClassName } from '../../../types';
|
|
2
|
+
import type { Styles, ClassName } from '../../../types';
|
|
3
3
|
export declare const useSwipeableSheetStyles: ({ swipeThreshold, handleDismiss, dismissTimeout, }: {
|
|
4
4
|
swipeThreshold: number;
|
|
5
5
|
handleDismiss?: (() => void) | undefined;
|
|
@@ -7,8 +7,8 @@ export var useSwipeableSheetStyles = function (_a) {
|
|
|
7
7
|
var initialPositionRef = React.useRef(0);
|
|
8
8
|
var _c = __read(React.useState('0px'), 2), swipedArea = _c[0], setSwipedArea = _c[1];
|
|
9
9
|
var onSwipeStart = React.useCallback(function (e) {
|
|
10
|
-
var
|
|
11
|
-
initialPositionRef.current =
|
|
10
|
+
var initialPosition = getTouches(e).clientY;
|
|
11
|
+
initialPositionRef.current = initialPosition;
|
|
12
12
|
}, []);
|
|
13
13
|
var onSwipe = React.useCallback(function (e) {
|
|
14
14
|
var change = getTouches(e).clientY - initialPositionRef.current;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TransitionType } from '../AdaptedCSSTransition/types';
|
|
1
|
+
import type { TransitionType } from '../AdaptedCSSTransition/types';
|
|
2
2
|
export declare const useTransitionStyles: (transitionType: TransitionType) => Record<string, any>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { TagProps } from '../tag';
|
|
2
|
+
import { type TagProps } from '../tag';
|
|
3
3
|
declare const MultiValue: React.ForwardRefExoticComponent<Omit<TagProps, "overrides"> & import("./types").SharedProps & {
|
|
4
4
|
$isContainerFocused?: boolean | undefined;
|
|
5
5
|
$valueByIdMap: Record<string, Readonly<{
|
|
@@ -11,7 +11,7 @@ import { CLEARABLE_KEY, LOADING_KEY } from './constants';
|
|
|
11
11
|
import useCombinedRefs from '../hooks/useCombinedRef';
|
|
12
12
|
var MultiValue = React.forwardRef(function (props, ref) {
|
|
13
13
|
var _a, _b, _c;
|
|
14
|
-
var _d = props.overrides, overrides = _d === void 0 ? {} : _d, onActionClick = props.onActionClick, value = props.value, selectSize = props.selectSize, $disabled = props.$disabled, $valueByIdMap = props.$valueByIdMap, $valueKey = props.$valueKey, $size = props.$size, $isContainerFocused = props.$isContainerFocused, restProps = __rest(props, ["overrides", "onActionClick", "value", "selectSize", "$disabled", "$valueByIdMap", "$valueKey", "$size", "$isContainerFocused"]);
|
|
14
|
+
var _d = props.overrides, overrides = _d === void 0 ? {} : _d, onActionClick = props.onActionClick, value = props.value, selectSize = props.selectSize, $disabled = props.$disabled, $valueByIdMap = props.$valueByIdMap, $valueKey = props.$valueKey, _$size = props.$size, _$isContainerFocused = props.$isContainerFocused, restProps = __rest(props, ["overrides", "onActionClick", "value", "selectSize", "$disabled", "$valueByIdMap", "$valueKey", "$size", "$isContainerFocused"]);
|
|
15
15
|
var _e = __read(useOverrides(overrides.Tag, Tag), 2), TagComponent = _e[0], tagProps = _e[1];
|
|
16
16
|
var theme = useStyle().theme;
|
|
17
17
|
var tagRef = useRef();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MouseEvent, ReactElement } from 'react';
|
|
2
|
-
import { IconProps } from '../icon';
|
|
1
|
+
import type { MouseEvent, ReactElement } from 'react';
|
|
2
|
+
import type { IconProps } from '../icon';
|
|
3
3
|
export type NoResultsMessageProps = {
|
|
4
4
|
id?: string;
|
|
5
5
|
titleMessage: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { ClassName, ClassNameStyleFn, Styles } from '../types';
|
|
3
|
-
import { SharedProps } from './types';
|
|
4
|
-
export declare const SelectArrow: ({ $isOpen, title, overrides, ...restProps }: {
|
|
2
|
+
import type { ClassName, ClassNameStyleFn, Styles } from '../types';
|
|
3
|
+
import type { SharedProps } from './types';
|
|
4
|
+
export declare const SelectArrow: ({ $isOpen, title, overrides: _overrides, ...restProps }: {
|
|
5
5
|
[x: string]: any;
|
|
6
6
|
$isOpen: any;
|
|
7
7
|
title: any;
|
package/esm/select/overrides.js
CHANGED
|
@@ -8,6 +8,7 @@ import { StyledTombstone } from '../helpers/StyledTombstone';
|
|
|
8
8
|
import { useStyle } from '../style';
|
|
9
9
|
import { inputCVA } from '../input/cvaConfigs';
|
|
10
10
|
import { controlContainerCVA } from './cvaConfigs';
|
|
11
|
+
import { Box } from '../box';
|
|
11
12
|
var selectBorderColor = function (_, _a) {
|
|
12
13
|
var _b = _a.$intent, $intent = _b === void 0 ? 'default' : _b, $isPseudoFocused = _a.$isPseudoFocused, $isFocused = _a.$isFocused, $disabled = _a.$disabled;
|
|
13
14
|
switch ($intent) {
|
|
@@ -30,7 +31,7 @@ var selectBorderColor = function (_, _a) {
|
|
|
30
31
|
};
|
|
31
32
|
// Removing 'overrides' injected by baseweb
|
|
32
33
|
export var SelectArrow = function (_a) {
|
|
33
|
-
var $isOpen = _a.$isOpen, title = _a.title,
|
|
34
|
+
var $isOpen = _a.$isOpen, title = _a.title, _overrides = _a.overrides, restProps = __rest(_a, ["$isOpen", "title", "overrides"]);
|
|
34
35
|
return (_jsx(ChevronDown, __assign({ title: title, "$isOpen": $isOpen }, restProps, { className: [
|
|
35
36
|
'transition-transform duration-200 cursor-pointer',
|
|
36
37
|
(restProps === null || restProps === void 0 ? void 0 : restProps.size) === 'small' || (restProps === null || restProps === void 0 ? void 0 : restProps.size) === 'medium' ? 'h-3 w-3 m-1.5' : 'h-2.5 w-2.5 ml-1',
|
|
@@ -156,7 +157,7 @@ export var getValueTypography = [
|
|
|
156
157
|
// BaseSelect wil render this Popover component with DropdownContainer as content and ControlContainer as children/target
|
|
157
158
|
export var OverlaySelectPopoverOverride = function (_a) {
|
|
158
159
|
var content = _a.content, inputContainer = _a.children, closePopover = _a.closePopover, setStickySentinelRef = _a.setStickySentinelRef;
|
|
159
|
-
return (_jsxs(_Fragment, { children: [_jsx(
|
|
160
|
+
return (_jsxs(_Fragment, { children: [_jsx(Box, { ref: setStickySentinelRef }), inputContainer, typeof content === 'function' ? content({ closeMenu: closePopover }) : content] }));
|
|
160
161
|
};
|
|
161
162
|
export var SingleValueTombstone = function (_a) {
|
|
162
163
|
var $selectSize = _a.$selectSize;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { SelectProps } from './types';
|
|
2
|
+
import type { SelectProps } from './types';
|
|
3
3
|
export declare function MultiSelect(props: SelectProps): React.ReactElement;
|
|
4
4
|
export declare function SingleSelect(props: SelectProps): React.ReactElement;
|
|
@@ -57,7 +57,8 @@ var SelectMenuAdapter = function (props) {
|
|
|
57
57
|
ListItemText: mergedOverrides.ListItemText,
|
|
58
58
|
Checkbox: mergedOverrides.Checkbox,
|
|
59
59
|
}); }, [mergedOverrides.ListItemText, mergedOverrides.MenuItem, mergedOverrides.Checkbox]);
|
|
60
|
-
var currentCount = 0
|
|
60
|
+
var currentCount = 0;
|
|
61
|
+
var totalCount = normalizeOptions(groupedItems).length;
|
|
61
62
|
var itemsToRender = _flatten(Object.keys(removeUngroupedIfEmpty(groupedItems)).map(function (itemGroup, index) {
|
|
62
63
|
var itemsInGroup = groupedItems[itemGroup];
|
|
63
64
|
var menuItems = itemsInGroup.flatMap(function (item) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { StatefulSelectProps } from './types';
|
|
2
|
+
import type { StatefulSelectProps } from './types';
|
|
3
3
|
declare function StatefulSelect({ overrides, onChange, ...restProps }: StatefulSelectProps): React.ReactElement;
|
|
4
4
|
declare namespace StatefulSelect {
|
|
5
5
|
var defaultProps: {
|
|
@@ -70,9 +70,7 @@ var InputContainer = function (_a) {
|
|
|
70
70
|
? cloneElement(Children.only(props.children), __assign({ onFocus: function () { var _a; return (_a = containerRef.current) === null || _a === void 0 ? void 0 : _a.focus(); } }, ($value && $value.length > 0 ? {} : { placeholder: placeholder !== null && placeholder !== void 0 ? placeholder : locale.select.selectPlaceholder })))
|
|
71
71
|
: null }))] }));
|
|
72
72
|
}
|
|
73
|
-
|
|
74
|
-
return _jsx(StyledInputContainer, __assign({}, props, { "$selectSize": size }));
|
|
75
|
-
}
|
|
73
|
+
return _jsx(StyledInputContainer, __assign({}, props, { "$selectSize": size }));
|
|
76
74
|
};
|
|
77
75
|
var Input = forwardRef(function (_a, ref) {
|
|
78
76
|
var _b;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Option, Id, Value } from '../types';
|
|
1
|
+
import type { Option, Id, Value } from '../types';
|
|
2
2
|
export declare const adaptSelectValue: (optionsIdMap: Record<Id, Option>, value?: ReadonlyArray<Option | Id>) => Value | undefined;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { Box } from '../../box';
|
|
3
4
|
var HiddenElement = function (_a) {
|
|
4
5
|
var id = _a.id, children = _a.children;
|
|
5
|
-
return (_jsx(
|
|
6
|
+
return (_jsx(Box, __assign({ id: id, style: {
|
|
6
7
|
border: 0,
|
|
7
8
|
clip: 'rect(0 0 0 0)',
|
|
8
9
|
height: '0px',
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Options, Value } from '../types';
|
|
1
|
+
import type { Options, Value } from '../types';
|
|
2
2
|
export declare function mergeOptions(valueKey: string, options1?: Options, options2?: Options): Value;
|
package/esm/slider/slider.js
CHANGED
|
@@ -83,18 +83,24 @@ var Slider = function (_a) {
|
|
|
83
83
|
}, renderThumb: function (_a) {
|
|
84
84
|
var props = _a.props, index = _a.index, isDragged = _a.isDragged;
|
|
85
85
|
var displayLabel = persistentThumb || ((hoveredThumbIndex === index || isDragged) && !disabled);
|
|
86
|
+
var thumbHoverShadowColor;
|
|
87
|
+
if (value.length > 2) {
|
|
88
|
+
thumbHoverShadowColor = addOpacity(thumbColors[index], '0.1');
|
|
89
|
+
}
|
|
90
|
+
else if (primaryIntentColor) {
|
|
91
|
+
thumbHoverShadowColor = addOpacity(primaryIntentColor, '0.1');
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
thumbHoverShadowColor = getThumbBoxShadow({ theme: theme }, sharedProps, addOpacity(theme.spr.interactiveHover, '0.33'));
|
|
95
|
+
}
|
|
86
96
|
// In SSR, Thumbs are not properly positioned, hence hiding thumbs on server render.
|
|
87
97
|
// Refer https://github.com/tajo/react-range/issues/67#issuecomment-591703422
|
|
88
98
|
// Thumb is made ClientOnly to avoid Hydration mismatch error
|
|
89
99
|
return (_jsxs(Thumb, __assign({}, props, { "data-thumbIndex": index, onMouseEnter: function () { return setHoveredThumbIndex(index); }, onMouseLeave: function () { return setHoveredThumbIndex(-1); }, "$thumbIndex": index, "$isDragged": isDragged, style: __assign(__assign({ '--sw-bg-color': value.length > 2 ? thumbColors[index] : primaryIntentColor !== null && primaryIntentColor !== void 0 ? primaryIntentColor : intentColor(styleUtils, sharedProps), '--sw-bg-color-hover': value.length > 2
|
|
90
|
-
?
|
|
91
|
-
:
|
|
100
|
+
? thumbColors[index]
|
|
101
|
+
: primaryIntentColor !== null && primaryIntentColor !== void 0 ? primaryIntentColor : intentColor(styleUtils, sharedProps, theme.spr.interactiveHover), '--sw-shadow': isFocusVisible && focusedThumbIndex === index
|
|
92
102
|
? "0 0 0 3px ".concat(theme.spr.focus01)
|
|
93
|
-
: '0 1px 4px rgba(0, 0, 0, 0.12)', '--sw-shadow-hover': "0px 0px 0px 4px ".concat(
|
|
94
|
-
? addOpacity(thumbColors[index], '0.1')
|
|
95
|
-
: secondaryIntentColor !== null && secondaryIntentColor !== void 0 ? secondaryIntentColor : getThumbBoxShadow({ theme: theme }, sharedProps, addOpacity(theme.spr.interactiveHover, '0.33'))), '--sw-shadow-focus': "0px 0px 0px 4px ".concat(value.length > 2
|
|
96
|
-
? addOpacity(thumbColors[index], '0.1')
|
|
97
|
-
: secondaryIntentColor !== null && secondaryIntentColor !== void 0 ? secondaryIntentColor : getThumbBoxShadow({ theme: theme }, sharedProps, addOpacity(theme.spr.interactiveHover, '0.33'))) }, props.style), { zIndex: 'unset' }) }, sharedProps, thumbProps, { "$isFocusVisible": isFocusVisible && focusedThumbIndex === index }, { children: [displayLabel && (_jsx(ThumbValue, __assign({ "$thumbIndex": index, "$isDragged": isDragged }, sharedProps, thumbValueProps, { children: valueToLabel(value[index]) }))), displayLabel && (_jsx(InnerThumb, __assign({ "$thumbIndex": index, "$isDragged": isDragged }, sharedProps, innerThumbProps)))] })));
|
|
103
|
+
: '0 1px 4px rgba(0, 0, 0, 0.12)', '--sw-shadow-hover': "0px 0px 0px 4px ".concat(thumbHoverShadowColor), '--sw-shadow-focus': "0px 0px 0px 4px ".concat(thumbHoverShadowColor) }, props.style), { zIndex: 'unset' }) }, sharedProps, thumbProps, { "$isFocusVisible": isFocusVisible && focusedThumbIndex === index }, { children: [displayLabel && (_jsx(ThumbValue, __assign({ "$thumbIndex": index, "$isDragged": isDragged }, sharedProps, thumbValueProps, { children: valueToLabel(value[index]) }))), displayLabel && (_jsx(InnerThumb, __assign({ "$thumbIndex": index, "$isDragged": isDragged }, sharedProps, innerThumbProps)))] })));
|
|
98
104
|
} }, (marks
|
|
99
105
|
? {
|
|
100
106
|
renderMark: function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { StatefulContainerProps } from './types';
|
|
3
|
-
declare const StatefulSliderContainer: ({ children, initialState, stateReducer, max, min, step, onChange, onFinalChange, ...restProps }: StatefulContainerProps) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
3
|
+
declare const StatefulSliderContainer: ({ children, initialState, stateReducer, max, min, step: _step, onChange, onFinalChange, ...restProps }: StatefulContainerProps) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
4
4
|
export default StatefulSliderContainer;
|
|
@@ -4,14 +4,14 @@ import { STATE_CHANGE_TYPE } from './constants';
|
|
|
4
4
|
import _noop from 'lodash/noop';
|
|
5
5
|
var defaultStateReducer = function (type, nextState) { return nextState; };
|
|
6
6
|
var StatefulSliderContainer = function (_a) {
|
|
7
|
-
var children = _a.children, initialState = _a.initialState, _b = _a.stateReducer, stateReducer = _b === void 0 ? defaultStateReducer : _b, _c = _a.max, max = _c === void 0 ? 100 : _c, _d = _a.min, min = _d === void 0 ? 1 : _d, _e = _a.step,
|
|
7
|
+
var children = _a.children, initialState = _a.initialState, _b = _a.stateReducer, stateReducer = _b === void 0 ? defaultStateReducer : _b, _c = _a.max, max = _c === void 0 ? 100 : _c, _d = _a.min, min = _d === void 0 ? 1 : _d, _e = _a.step, _step = _e === void 0 ? 1 : _e, _f = _a.onChange, onChange = _f === void 0 ? _noop : _f, _g = _a.onFinalChange, onFinalChange = _g === void 0 ? _noop : _g, restProps = __rest(_a, ["children", "initialState", "stateReducer", "max", "min", "step", "onChange", "onFinalChange"]);
|
|
8
8
|
var _h = __read(useState(initialState && Array.isArray(initialState.value) ? initialState.value : [Math.round((max - min) / 2) + min]), 2), value = _h[0], setValue = _h[1];
|
|
9
9
|
var internalSetState = useCallback(function (type, _a) {
|
|
10
|
-
var
|
|
11
|
-
var nextState = { value:
|
|
10
|
+
var nextValue = _a.value;
|
|
11
|
+
var nextState = { value: nextValue };
|
|
12
12
|
var newState = stateReducer(type, nextState, { value: value });
|
|
13
13
|
setValue(newState.value);
|
|
14
|
-
}, [stateReducer]);
|
|
14
|
+
}, [stateReducer, value]);
|
|
15
15
|
var handleOnChange = useCallback(function (params) {
|
|
16
16
|
internalSetState(STATE_CHANGE_TYPE.change, params);
|
|
17
17
|
return onChange(__assign({}, params));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
import { StatefulSliderProps } from './types';
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { StatefulSliderProps } from './types';
|
|
3
3
|
declare const StatefulSlider: {
|
|
4
4
|
(props: StatefulSliderProps): ReactElement;
|
|
5
5
|
displayName: string;
|
|
@@ -73,11 +73,35 @@ export var getInnerTrackBackgroundColor = function (utils, _a) {
|
|
|
73
73
|
}
|
|
74
74
|
return background;
|
|
75
75
|
};
|
|
76
|
+
var STOP_INDICATOR_RADIUS = 2;
|
|
77
|
+
var STOP_INDICATOR_MARGIN = 1;
|
|
78
|
+
var getStopIndicatorBackground = function (_a, _b) {
|
|
79
|
+
var theme = _a.theme, isRTL = _a.isRTL;
|
|
80
|
+
var $value = _b.$value;
|
|
81
|
+
var center = "".concat(STOP_INDICATOR_MARGIN + STOP_INDICATOR_RADIUS, "px");
|
|
82
|
+
var inlineStart = isRTL ? "calc(100% - ".concat(center, ")") : center;
|
|
83
|
+
var inlineEnd = isRTL ? center : "calc(100% - ".concat(center, ")");
|
|
84
|
+
var getGradient = function (position) {
|
|
85
|
+
return "radial-gradient(circle at ".concat(position, " 50%, ").concat(theme.spr.bgInverse, " 0 ").concat(STOP_INDICATOR_RADIUS, "px, transparent ").concat(STOP_INDICATOR_RADIUS, "px)");
|
|
86
|
+
};
|
|
87
|
+
if ($value.length === 1)
|
|
88
|
+
return getGradient(inlineEnd);
|
|
89
|
+
if ($value.length === 2)
|
|
90
|
+
return "".concat(getGradient(inlineEnd), ", ").concat(getGradient(inlineStart));
|
|
91
|
+
return '';
|
|
92
|
+
};
|
|
93
|
+
var getTrackBackgroundImage = function (utils, sharedProps) {
|
|
94
|
+
var stopIndicators = getStopIndicatorBackground(utils, sharedProps);
|
|
95
|
+
var innerTrackBackground = getInnerTrackBackgroundColor(utils, sharedProps);
|
|
96
|
+
return stopIndicators ? "".concat(stopIndicators, ", ").concat(innerTrackBackground) : innerTrackBackground;
|
|
97
|
+
};
|
|
76
98
|
export var StyledInnerTrack = styledWithCssVariables('div', function (styleUtils, sharedProps) { return ({
|
|
77
|
-
'--sw-bg-image':
|
|
78
|
-
}); }, 'w-full self-center rounded-20 h-1 bg-image-[--sw-bg-image]', function (_, _a) {
|
|
99
|
+
'--sw-bg-image': getTrackBackgroundImage(styleUtils, sharedProps),
|
|
100
|
+
}); }, 'w-full self-center rounded-20 h-1.5 bg-image-[--sw-bg-image] forced-colors:border-1', function (_, _a) {
|
|
79
101
|
var $disabled = _a.$disabled;
|
|
80
|
-
return $disabled
|
|
102
|
+
return $disabled
|
|
103
|
+
? 'cursor-not-allowed opacity-33 forced-colors:opacity-100 forced-colors:border-disabled'
|
|
104
|
+
: 'opacity-100 cursor-inherit';
|
|
81
105
|
});
|
|
82
106
|
StyledInnerTrack.displayName = 'StyledInnerTrack';
|
|
83
107
|
export var StyledThumb = styled('div', 'flex items-center justify-center h-4 w-4 rounded-full forced-colors:border-1 bg-[--sw-bg-color] shadow-[--sw-shadow]', function (_, _a) {
|
package/esm/slider/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Intent, SpacewebComponentProps } from '../types';
|
|
2
|
-
import { Override } from '../overrides';
|
|
1
|
+
import type { Intent, SpacewebComponentProps } from '../types';
|
|
2
|
+
import type { Override } from '../overrides';
|
|
3
3
|
import type { ReactElement, ReactNode } from 'react';
|
|
4
4
|
import type { STATE_CHANGE_TYPE } from './constants';
|
|
5
5
|
export type Params = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { IconProps } from '../icon';
|
|
3
|
-
import { Intent } from './types';
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { IconProps } from '../icon';
|
|
3
|
+
import type { Intent } from './types';
|
|
4
4
|
export declare const TRANSITION_DURATION = 1000;
|
|
5
5
|
export declare const INTENT_TO_ICON: Record<Intent, React.ComponentType<React.PropsWithChildren<IconProps>>>;
|
|
6
6
|
export declare const INTENT_TO_ROLE: Record<Intent, string>;
|
package/esm/snackbar/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { Override } from '../overrides';
|
|
2
|
+
import type { Override } from '../overrides';
|
|
3
3
|
export type Intent = 'success' | 'error' | 'warning' | 'delete';
|
|
4
4
|
export type HideReason = 'timeout' | 'clickaway' | 'manualClose' | 'messageChange';
|
|
5
5
|
export type Placement = 'topLeft' | 'top' | 'topRight' | 'bottomLeft' | 'bottom' | 'bottomRight';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MutableRefObject, ReactNode } from 'react';
|
|
2
|
-
import { HideReason, Intent, SnackbarOverrides } from './types';
|
|
1
|
+
import type { MutableRefObject, ReactNode } from 'react';
|
|
2
|
+
import type { HideReason, Intent, SnackbarOverrides } from './types';
|
|
3
3
|
type UseSnackbarParams = {
|
|
4
4
|
autoHide: boolean;
|
|
5
5
|
autoHideDuration: number;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @author Ivan Torres
|
|
3
3
|
*/
|
|
4
|
-
import { ReactElement } from 'react';
|
|
5
|
-
import { StyleObject, StyleUtils } from '../types';
|
|
4
|
+
import type { ReactElement } from 'react';
|
|
5
|
+
import type { StyleObject, StyleUtils } from '../types';
|
|
6
6
|
type Props = {
|
|
7
7
|
children: (styleUtils: StyleUtils & {
|
|
8
8
|
styletronCSS: (style: StyleObject) => string;
|
|
@@ -4,6 +4,8 @@ import { useStyle } from '../style';
|
|
|
4
4
|
import { accessibilityStyles } from '../helpers/commonStyles';
|
|
5
5
|
var AiIconLinearGradients = function () {
|
|
6
6
|
var _a = useStyle(), theme = _a.theme, deprecatedAIThemeEnabled = _a.deprecatedAIThemeEnabled;
|
|
7
|
-
return (
|
|
7
|
+
return (
|
|
8
|
+
// eslint-disable-next-line react/forbid-elements -- gradient defs svg is not a spaceweb layout surface
|
|
9
|
+
_jsx("svg", __assign({ style: accessibilityStyles }, { children: _jsx("defs", { children: theme.name.includes('light') ? (_jsxs("linearGradient", __assign({ id: "aiGradientID", x1: "10.065", y1: "-152.894", x2: ".289", y2: "-163.48", gradientTransform: "matrix(1 0 0 -1 0 -149.213)", gradientUnits: "userSpaceOnUse" }, { children: [_jsx("stop", { offset: "0", stopColor: deprecatedAIThemeEnabled ? '#de46e1' : theme.spr.text01 }), _jsx("stop", { offset: ".487", stopColor: deprecatedAIThemeEnabled ? '#8e43ff' : theme.spr.text01 }), _jsx("stop", { offset: "1", stopColor: deprecatedAIThemeEnabled ? '#0e61f6' : theme.spr.text01 })] }))) : (_jsxs("linearGradient", __assign({ id: "aiGradientID", x1: "8.96", y1: "2.66", x2: "-2.87898", y2: "15.0443", gradientUnits: "userSpaceOnUse" }, { children: [_jsx("stop", { stopColor: deprecatedAIThemeEnabled ? '#DE46E1' : theme.spr.text01 }), _jsx("stop", { offset: "0.486707", stopColor: deprecatedAIThemeEnabled ? '#8E43FF' : theme.spr.text01 }), _jsx("stop", { offset: "1", stopColor: deprecatedAIThemeEnabled ? '#0E61F6' : theme.spr.text01 })] }))) }) })));
|
|
8
10
|
};
|
|
9
11
|
export default AiIconLinearGradients;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PropsWithChildren, ReactElement } from 'react';
|
|
1
|
+
import type { PropsWithChildren, ReactElement } from 'react';
|
|
2
2
|
export declare const DocumentContext: import("react").Context<Document | undefined>;
|
|
3
3
|
export declare const DocumentProvider: {
|
|
4
4
|
(props: PropsWithChildren<{
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ReactElement, ReactNode } from 'react';
|
|
1
|
+
import type { ReactElement, ReactNode } from 'react';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { StandardEngine } from 'styletron-standard';
|
|
4
|
-
import { Direction, ThemeModule } from '@sprinklrjs/spaceweb-themes/types';
|
|
5
|
-
import { Override } from '../overrides';
|
|
3
|
+
import type { StandardEngine } from 'styletron-standard';
|
|
4
|
+
import type { Direction, ThemeModule } from '@sprinklrjs/spaceweb-themes/types';
|
|
5
|
+
import type { Override } from '../overrides';
|
|
6
6
|
import { LocaleProvider } from '../locale';
|
|
7
7
|
export type Props = {
|
|
8
8
|
children: ReactNode;
|
|
@@ -13,7 +13,7 @@ import { useHasMounted } from '../hooks/useHasMounted';
|
|
|
13
13
|
var LAYERS_DEFAULT_ZINDEX = 9999;
|
|
14
14
|
function SpacewebProvider(props) {
|
|
15
15
|
var _a, _b;
|
|
16
|
-
var children = props.children, _c = props.layersZIndex, layersZIndex = _c === void 0 ? LAYERS_DEFAULT_ZINDEX : _c,
|
|
16
|
+
var children = props.children, _c = props.layersZIndex, layersZIndex = _c === void 0 ? LAYERS_DEFAULT_ZINDEX : _c, theme = props.theme, locale = props.locale, _d = props.debug, debug = _d === void 0 ? false : _d, density = props.density, langCode = props.langCode, _e = props.debugCssInJs, debugCssInJs = _e === void 0 ? false : _e, nonce = props.nonce;
|
|
17
17
|
var doc = useDocument();
|
|
18
18
|
var styleEngine = props.styleEngine || getStyleEngine(doc, nonce);
|
|
19
19
|
// TODO: This must be removed once baseui code exposes focusVisible from utils/index
|
package/esm/stack/context.d.ts
CHANGED
package/esm/stack/stack.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { ClassName } from '../types';
|
|
2
|
+
import type { ClassName } from '../types';
|
|
3
3
|
declare const Stack: React.ForwardRefExoticComponent<Omit<React.AllHTMLAttributes<HTMLElement>, "className" | "style"> & {
|
|
4
4
|
$as?: React.ElementType | undefined;
|
|
5
5
|
className?: ClassName;
|
package/esm/stack/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SpacewebComponentProps } from '../types';
|
|
2
|
-
import { Override } from '../overrides';
|
|
1
|
+
import type { SpacewebComponentProps } from '../types';
|
|
2
|
+
import type { Override } from '../overrides';
|
|
3
3
|
type Direction = 'horizontal' | 'vertical';
|
|
4
4
|
type StackConfig = {
|
|
5
5
|
direction?: Direction;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StyleUtils, ThemeContext, StyleObject } from '../types';
|
|
1
|
+
import type { StyleUtils, ThemeContext, StyleObject } from '../types';
|
|
2
2
|
type StyletronCSS = (arg: StyleObject) => string;
|
|
3
3
|
declare const _default: (_ctx: ThemeContext, styletronCSS: StyletronCSS) => StyleUtils;
|
|
4
4
|
export default _default;
|
package/esm/style/_css.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @author Ivan Torres
|
|
3
3
|
*/
|
|
4
|
-
import { Styles, StyleUtils, StyleObject } from '../types';
|
|
4
|
+
import type { Styles, StyleUtils, StyleObject } from '../types';
|
|
5
5
|
declare const _css: (utils: StyleUtils, styletronCSS: (arg: StyleObject) => string, ...args: Styles[]) => string;
|
|
6
6
|
export default _css;
|
package/esm/style/_getStyle.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @author Ivan Torres
|
|
3
3
|
*/
|
|
4
|
-
import { Styles, StyleUtils, StyleObject } from '../types';
|
|
4
|
+
import type { Styles, StyleUtils, StyleObject } from '../types';
|
|
5
5
|
declare const _getStyle: (utils: StyleUtils, ...args: Styles[]) => StyleObject;
|
|
6
6
|
export default _getStyle;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @author Ivan Torres
|
|
3
3
|
*/
|
|
4
|
-
import { Styles, StyleUtils, StyleObject } from '../types';
|
|
4
|
+
import type { Styles, StyleUtils, StyleObject } from '../types';
|
|
5
5
|
declare const _getStyleWithProps: (utils: StyleUtils, props: any, ...args: Styles[]) => StyleObject;
|
|
6
6
|
export default _getStyleWithProps;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @author Ivan Torres
|
|
3
3
|
*/
|
|
4
|
-
import { DeprecatedStyleAtom, StyleUtils, RecursiveArray } from '../types';
|
|
4
|
+
import type { DeprecatedStyleAtom, StyleUtils, RecursiveArray } from '../types';
|
|
5
5
|
export declare const _parseClassName: (utils: StyleUtils, styletronCss: any, props: any, className: DeprecatedStyleAtom | RecursiveArray<DeprecatedStyleAtom>) => [string, string];
|