@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
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Override } from '../../overrides';
|
|
2
|
-
import { TimingFunction, TransitionProps } from '../transition';
|
|
1
|
+
import type { Override } from '../../overrides';
|
|
2
|
+
import type { TimingFunction, TransitionProps } from '../transition';
|
|
3
3
|
export type GrowOverrides = {
|
|
4
4
|
Container?: Override<any>;
|
|
5
5
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
import { SwitchTransitionProps } from 'react-transition-group/SwitchTransition';
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { SwitchTransitionProps } from 'react-transition-group/SwitchTransition';
|
|
3
3
|
declare const SwitchTransitionWrapper: (props: SwitchTransitionProps) => ReactElement;
|
|
4
4
|
export default SwitchTransitionWrapper;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
import { TransitionProps } from './types';
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { TransitionProps } from './types';
|
|
3
3
|
declare const Transition: {
|
|
4
4
|
({ visible, children, duration, overrides, containerRef, style, className, onEnter, onExit, animationStyles, disableExitTransition, disableEnterTransition, enableAppearTransition, ...restProps }: TransitionProps): ReactElement;
|
|
5
5
|
displayName: string;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import type { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
import type React from 'react';
|
|
3
|
+
import type { Override } from '../../overrides';
|
|
4
|
+
import type CSS from 'csstype';
|
|
5
|
+
import type { SpacewebComponentProps } from '../../types';
|
|
5
6
|
export type AnimationStatus = 'entered' | 'entering' | 'exited' | 'exiting';
|
|
6
7
|
export type Duration = {
|
|
7
8
|
enter: number;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { __assign, __read } from "tslib";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
// Libraries
|
|
4
3
|
import { memo } from 'react';
|
|
5
4
|
// Hooks
|
|
6
5
|
import { useStyle } from '../style';
|
|
@@ -13,12 +12,14 @@ export var INITIAL_STATE = { isOpen: true };
|
|
|
13
12
|
var TruncateWithTooltip = memo(function (_a) {
|
|
14
13
|
var children = _a.children, _b = _a.maskWidth, maskWidth = _b === void 0 ? 1.6 : _b, tooltipClassName = _a.tooltipClassName, prefixEl = _a.prefixEl, suffixEl = _a.suffixEl, overrides = _a.overrides, _c = _a.truncationType, truncationType = _c === void 0 ? 'ellipsis' : _c, maxLines = _a.maxLines, maxWidth = _a.maxWidth, className = _a.className, _d = _a.noTooltipOnTruncation, noTooltipOnTruncation = _d === void 0 ? false : _d;
|
|
15
14
|
var _e = __read(useOverrides(overrides === null || overrides === void 0 ? void 0 : overrides.Tooltip, StatefulTooltip), 2), TooltipComponent = _e[0], tooltipProps = _e[1];
|
|
16
|
-
var _f = useTruncateWithTooltip(
|
|
15
|
+
var _f = useTruncateWithTooltip({
|
|
16
|
+
onMouseEnterDelay: tooltipProps.onMouseEnterDelay,
|
|
17
|
+
}), mouseEventProps = _f.mouseEventProps, renderTooltip = _f.renderTooltip, elementRef = _f.elementRef;
|
|
17
18
|
var isRTL = useStyle().isRTL;
|
|
18
19
|
var isTruncationEllipsis = truncationType === 'ellipsis';
|
|
19
20
|
var shouldRenderTooltipOnTruncation = renderTooltip && !noTooltipOnTruncation;
|
|
20
21
|
var contentEl = (_jsx(Box, __assign({ ref: elementRef,
|
|
21
|
-
// @ts-ignore
|
|
22
|
+
// @ts-ignore -- CSS custom property not in CSSProperties
|
|
22
23
|
style: { '--sw-webkit-line-clamp': maxLines }, className: isTruncationEllipsis
|
|
23
24
|
? // webkit-line-clamp-[--sw-webkit-line-clamp] overrides the webkit-line-clamp property from line-clamp-1
|
|
24
25
|
[maxLines ? ['line-clamp-1 whitespace-normal webkit-line-clamp-[--sw-webkit-line-clamp]'] : 'truncate']
|
|
@@ -31,13 +32,13 @@ var TruncateWithTooltip = memo(function (_a) {
|
|
|
31
32
|
className,
|
|
32
33
|
maxWidth ? 'max-w-[--sw-max-width]' : '',
|
|
33
34
|
],
|
|
34
|
-
// @ts-ignore
|
|
35
|
+
// @ts-ignore -- CSS custom property not in CSSProperties
|
|
35
36
|
style: { '--sw-max-width': "".concat(maxWidth, "rem") } }, mouseEventProps, { children: [prefixEl, contentEl, suffixEl] })));
|
|
36
37
|
return shouldRenderTooltipOnTruncation ? wrapWithTooltip(bodyEl_1) : bodyEl_1;
|
|
37
38
|
}
|
|
38
39
|
var bodyEl = (_jsxs(Box, { children: [prefixEl, contentEl, suffixEl] }));
|
|
39
40
|
return (_jsx(Box, __assign({ "data-testid": "content", className: ['w-full', className, maxWidth ? 'max-w-[--sw-max-width]' : ''], style: {
|
|
40
|
-
// @ts-ignore
|
|
41
|
+
// @ts-ignore -- CSS custom property not in CSSProperties
|
|
41
42
|
'--sw-max-width': "".concat(maxWidth, "rem"),
|
|
42
43
|
maskImage: "linear-gradient(".concat(isRTL ? '-90deg' : '90deg', ", #000 0%, #000 calc(100% - ").concat(maskWidth, "rem), transparent)"),
|
|
43
44
|
} }, mouseEventProps, { children: shouldRenderTooltipOnTruncation ? wrapWithTooltip(bodyEl) : bodyEl })));
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
import { RefObject, MouseEventHandler } from 'react';
|
|
2
|
-
export declare const useTruncateWithTooltip: (noTooltipOnTruncation
|
|
1
|
+
import type { RefObject, MouseEventHandler } from 'react';
|
|
2
|
+
export declare const useTruncateWithTooltip: ({ noTooltipOnTruncation, onMouseEnter, onMouseLeave, onMouseEnterDelay, }?: {
|
|
3
|
+
noTooltipOnTruncation?: boolean | undefined;
|
|
4
|
+
onMouseEnter?: MouseEventHandler | undefined;
|
|
5
|
+
onMouseLeave?: MouseEventHandler | undefined;
|
|
6
|
+
onMouseEnterDelay?: number | undefined;
|
|
7
|
+
}) => {
|
|
3
8
|
mouseEventProps: {
|
|
4
9
|
onMouseEnter?: MouseEventHandler | undefined;
|
|
5
10
|
onMouseLeave?: MouseEventHandler | undefined;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { __read } from "tslib";
|
|
2
2
|
import { useState, useCallback, useRef } from 'react';
|
|
3
|
-
var
|
|
4
|
-
export var useTruncateWithTooltip = function (
|
|
5
|
-
|
|
6
|
-
var
|
|
3
|
+
var DEFAULT_DELAY = 200;
|
|
4
|
+
export var useTruncateWithTooltip = function (_a) {
|
|
5
|
+
var _b = _a === void 0 ? {} : _a, noTooltipOnTruncation = _b.noTooltipOnTruncation, onMouseEnter = _b.onMouseEnter, onMouseLeave = _b.onMouseLeave, _c = _b.onMouseEnterDelay, onMouseEnterDelay = _c === void 0 ? DEFAULT_DELAY : _c;
|
|
6
|
+
var _d = __read(useState(false), 2), renderTooltip = _d[0], setRenderTooltip = _d[1];
|
|
7
7
|
var timeoutRef = useRef();
|
|
8
8
|
var elementRef = useRef(null);
|
|
9
9
|
var handleOnMouseEnter = useCallback(function (e) {
|
|
@@ -12,20 +12,20 @@ export var useTruncateWithTooltip = function (noTooltipOnTruncation, onMouseEnte
|
|
|
12
12
|
return;
|
|
13
13
|
}
|
|
14
14
|
var _a = elementRef.current, scrollWidth = _a.scrollWidth, clientWidth = _a.clientWidth, scrollHeight = _a.scrollHeight, clientHeight = _a.clientHeight;
|
|
15
|
-
// Added + 2 to
|
|
15
|
+
// Added + 2 to accommodate different font styles and slight line height issues
|
|
16
16
|
if (scrollWidth > clientWidth || scrollHeight > clientHeight + 2) {
|
|
17
17
|
setRenderTooltip(true);
|
|
18
18
|
}
|
|
19
19
|
else {
|
|
20
20
|
setRenderTooltip(false);
|
|
21
21
|
}
|
|
22
|
-
},
|
|
23
|
-
onMouseEnter
|
|
24
|
-
}, [onMouseEnter]);
|
|
22
|
+
}, onMouseEnterDelay);
|
|
23
|
+
onMouseEnter === null || onMouseEnter === void 0 ? void 0 : onMouseEnter(e);
|
|
24
|
+
}, [onMouseEnter, onMouseEnterDelay]);
|
|
25
25
|
var handleOnMouseLeave = useCallback(function (e) {
|
|
26
26
|
clearTimeout(timeoutRef.current);
|
|
27
27
|
setRenderTooltip(false);
|
|
28
|
-
onMouseLeave
|
|
28
|
+
onMouseLeave === null || onMouseLeave === void 0 ? void 0 : onMouseLeave(e);
|
|
29
29
|
}, [onMouseLeave]);
|
|
30
30
|
return {
|
|
31
31
|
mouseEventProps: {
|
package/esm/types.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { AllHTMLAttributes, CSSProperties, ElementType, ReactNode } from 'react';
|
|
2
|
-
import { StyleObject as StyletronStyleObject } from 'styletron-react';
|
|
3
|
-
import { KeyframesObject as StyletronKeyframesObject, StandardEngine as StyletronStandardEngine } from 'styletron-standard';
|
|
4
|
-
import { Direction, Theme, ThemeClassNames } from '@sprinklrjs/spaceweb-themes/types';
|
|
5
|
-
import rtlCSSJS from 'rtl-css-js';
|
|
1
|
+
import type { AllHTMLAttributes, CSSProperties, ElementType, ReactNode } from 'react';
|
|
2
|
+
import type { StyleObject as StyletronStyleObject } from 'styletron-react';
|
|
3
|
+
import type { KeyframesObject as StyletronKeyframesObject, StandardEngine as StyletronStandardEngine } from 'styletron-standard';
|
|
4
|
+
import type { Direction, Theme, ThemeClassNames } from '@sprinklrjs/spaceweb-themes/types';
|
|
5
|
+
import type rtlCSSJS from 'rtl-css-js';
|
|
6
6
|
export type StyleObject = StyletronStyleObject;
|
|
7
7
|
export type StandardEngine = StyletronStandardEngine;
|
|
8
8
|
export type KeyframesObject = StyletronKeyframesObject;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { TruncateWithTooltipProps } from '../truncateWithTooltip';
|
|
2
|
+
import type { TruncateWithTooltipProps } from '../truncateWithTooltip';
|
|
3
3
|
declare const Typography: import("react").ForwardRefExoticComponent<Omit<import("react").AllHTMLAttributes<HTMLElement>, "className" | "style"> & {
|
|
4
4
|
$as?: import("react").ElementType | undefined;
|
|
5
5
|
className?: import("..").ClassName;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { SpacewebComponentProps } from '../types';
|
|
3
|
-
import { Override } from '../overrides';
|
|
4
|
-
import { TruncateWithTooltipProps } from '../truncateWithTooltip';
|
|
1
|
+
import type { PropsWithChildren } from 'react';
|
|
2
|
+
import type { SpacewebComponentProps } from '../types';
|
|
3
|
+
import type { Override } from '../overrides';
|
|
4
|
+
import type { TruncateWithTooltipProps } from '../truncateWithTooltip';
|
|
5
5
|
type TypographyBodyHeaderVariants = 'display' | 'heading-1' | 'heading-2' | 'heading-3' | 'heading-4' | 'heading-5' | 'heading-6' | 'heading-7' | 'body-lg' | 'body-md' | 'body-sm' | 'body-xs';
|
|
6
6
|
/**
|
|
7
7
|
* @deprecated Prefer TypographyBodyHeaderVariants
|
|
@@ -33,6 +33,6 @@ export var getFormattedNumber = function (_a) {
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
return Intl.NumberFormat(locale, __assign({ minimumFractionDigits: 0, maximumFractionDigits: maximumFractionDigits,
|
|
36
|
-
// @ts-ignore --
|
|
36
|
+
// @ts-ignore -- Intl.NumberFormatOptions.notation missing from current TS lib DOM types
|
|
37
37
|
notation: notation }, numberOptions)).format(value);
|
|
38
38
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
import { DefaultFallbackProps } from '../image/types';
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { DefaultFallbackProps } from '../image/types';
|
|
3
3
|
declare const DefaultFallbackImg: ({ width, height, iconSize, overrides, isValidVideo, }: DefaultFallbackProps) => ReactElement;
|
|
4
4
|
export default DefaultFallbackImg;
|
package/esm/video/Video.js
CHANGED
|
@@ -10,7 +10,6 @@ import Play from '../icon/components/play-video';
|
|
|
10
10
|
import VideoDisabled from '../icon/components/video-non-playable';
|
|
11
11
|
import { Image as SWImage } from '../image';
|
|
12
12
|
import { Box } from '../box';
|
|
13
|
-
// hooks
|
|
14
13
|
import { useOverrides, mergeOverrides } from '../overrides';
|
|
15
14
|
// utils
|
|
16
15
|
import styled from '../style/styled';
|
package/esm/video/types.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import { SpacewebComponentProps } from '../types';
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { Override } from '../overrides';
|
|
3
|
+
import type { SpacewebComponentProps } from '../types';
|
|
5
4
|
export type VideoOverrides = {
|
|
6
5
|
Root?: Override<{}>;
|
|
7
6
|
Video?: Override<{}>;
|
|
@@ -11,7 +10,7 @@ export type VideoOverrides = {
|
|
|
11
10
|
FallbackImg?: Override<{}>;
|
|
12
11
|
};
|
|
13
12
|
export type VideoProps = SpacewebComponentProps<React.VideoHTMLAttributes<HTMLVideoElement>> & {
|
|
14
|
-
children?: ReactNode;
|
|
13
|
+
children?: React.ReactNode;
|
|
15
14
|
disabled?: boolean;
|
|
16
15
|
height?: number;
|
|
17
16
|
overrides?: VideoOverrides;
|
|
@@ -71,7 +71,7 @@ var FormControl = (0, react_2.forwardRef)(function (_a, ref) {
|
|
|
71
71
|
_a[a11yErrorMessageId] = intentMessageNode,
|
|
72
72
|
_a[a11yDisabledTooltipId] = shouldShowDisabledTooltip,
|
|
73
73
|
_a));
|
|
74
|
-
var childElement = React.cloneElement(child, tslib_1.__assign(tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({ key: key, id: a11yFieldId, 'aria-invalid': invalidInput }, (invalidInput ? { 'aria-errormessage': error ? a11yErrorMessageId : a11yCaptionId } : {})), { 'aria-labelledby': a11yLabelId }), (ariaDescribedBy ? { 'aria-describedby': ariaDescribedBy } : {})), { 'aria-required': required ? 'true' : 'false', size: onlyChildProps.size || size, disabled: onlyChildProps.disabled || disabled, required: onlyChildProps.required || required }));
|
|
74
|
+
var childElement = React.cloneElement(child, tslib_1.__assign(tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({ key: key, id: a11yFieldId, 'aria-invalid': invalidInput }, (invalidInput ? { 'aria-errormessage': error ? a11yErrorMessageId : a11yCaptionId } : {})), (label ? { 'aria-labelledby': a11yLabelId } : {})), (ariaDescribedBy ? { 'aria-describedby': ariaDescribedBy } : {})), { 'aria-required': required ? 'true' : 'false', size: onlyChildProps.size || size, disabled: onlyChildProps.disabled || disabled, required: onlyChildProps.required || required }));
|
|
75
75
|
return shouldShowDisabledTooltip ? ((0, jsx_runtime_1.jsx)(DisabledTooltip, tslib_1.__assign({ content: disabledTooltip }, disabledTooltipProps, { children: (0, jsx_runtime_1.jsx)(box_1.Box, tslib_1.__assign({ className: "inline-block w-full" }, { children: childElement })) }), "disabled-tooltip-".concat(key))) : (childElement);
|
|
76
76
|
}),
|
|
77
77
|
captionMessage ? ((0, jsx_runtime_1.jsx)(Caption, tslib_1.__assign({ "data-spaceweb": "form-control-caption", id: a11yCaptionId }, sharedProps, captionProps, { children: renderWithIcon(intent, captionMessage) }))) : null,
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { TooltipProps } from '../tooltip';
|
|
4
|
+
import type { IconProps } from '../icon';
|
|
5
|
+
import type { ClassName } from '../types';
|
|
6
|
+
import type { FormControlOverrides } from '@sprinklrjs/spaceweb/form-control/types';
|
|
6
7
|
type InfoIconOverrides = {
|
|
7
8
|
SubTextTooltip?: FormControlOverrides['SubTextTooltip'];
|
|
8
9
|
InfoIconContainer?: FormControlOverrides['InfoIconContainer'];
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
var tslib_1 = require("tslib");
|
|
4
4
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
// components
|
|
6
5
|
var tooltip_1 = require("../tooltip");
|
|
7
6
|
var alert_warning_1 = tslib_1.__importDefault(require("../icon/components/alert-warning"));
|
|
8
7
|
var overrides_1 = require("../overrides");
|
|
@@ -5,6 +5,7 @@ var tslib_1 = require("tslib");
|
|
|
5
5
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
6
|
var themeHelpers_1 = require("../helpers/themeHelpers");
|
|
7
7
|
var style_1 = require("../style");
|
|
8
|
+
var box_1 = require("../box");
|
|
8
9
|
var getIntentColor = function (_a, _b) {
|
|
9
10
|
var theme = _a.theme;
|
|
10
11
|
var $intent = _b.$intent;
|
|
@@ -32,7 +33,7 @@ exports.InternalStyledInfoIconContainer = (0, style_1.styled)('div', commonIconC
|
|
|
32
33
|
exports.InternalStyledInfoIconContainer.__standard = 'Ignore';
|
|
33
34
|
exports.DeprecatedStyledInfoIconContainer = (0, style_1.styled)('div', commonIconContainerClasses, 'spr-ui-03 ml-1 h-3 w-3');
|
|
34
35
|
exports.DeprecatedStyledInfoIconContainer.__standard = 'Ignore';
|
|
35
|
-
var RequiredDot = function (props) { return (0, jsx_runtime_1.jsx)(
|
|
36
|
+
var RequiredDot = function (props) { return ((0, jsx_runtime_1.jsx)(box_1.Box, tslib_1.__assign({ "$as": "span" }, props, { children: "*" }))); };
|
|
36
37
|
exports.StyledRequiredDot = (0, style_1.styled)(RequiredDot, 'spr-text-error shrink-0 text-14 font-400 leading-150');
|
|
37
38
|
exports.StyledRequiredDot.__standard = 'Ignore';
|
|
38
39
|
exports.StyledRoot = (0, style_1.styled)('div', 'flex', function (utils, _a) {
|
package/form-control/types.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
1
|
+
import type * as React from 'react';
|
|
2
2
|
import type { Override } from '../overrides';
|
|
3
|
-
import { ClassName, Intent, Styles } from '../types';
|
|
4
|
-
import { ElementType } from 'react';
|
|
3
|
+
import type { ClassName, Intent, Styles } from '../types';
|
|
5
4
|
export type layout = 'vertical' | 'horizontal' | 'inline';
|
|
6
5
|
export type Size = 'small' | 'medium';
|
|
7
6
|
export type FormControlOverrides = {
|
|
@@ -40,7 +39,7 @@ export type FormControlProps = {
|
|
|
40
39
|
required?: boolean;
|
|
41
40
|
intent?: Intent;
|
|
42
41
|
disabledTooltip?: React.ReactNode;
|
|
43
|
-
$as?: ElementType;
|
|
42
|
+
$as?: React.ElementType;
|
|
44
43
|
className?: ClassName;
|
|
45
44
|
style?: Styles;
|
|
46
45
|
};
|
package/grid/Col.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PropsWithChildren, ReactElement } from 'react';
|
|
2
|
-
import { ColProps } from './types';
|
|
1
|
+
import type { PropsWithChildren, ReactElement } from 'react';
|
|
2
|
+
import type { ColProps } from './types';
|
|
3
3
|
export declare const Col: {
|
|
4
4
|
(props: PropsWithChildren<ColProps>): ReactElement;
|
|
5
5
|
displayName: string;
|
package/grid/Grid.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @author Ivan Torres
|
|
3
3
|
*/
|
|
4
|
-
import { ReactNode } from 'react';
|
|
5
|
-
import { GridProps } from './types';
|
|
4
|
+
import type { ReactNode } from 'react';
|
|
5
|
+
import type { GridProps } from './types';
|
|
6
6
|
export type Props = GridProps & {
|
|
7
7
|
children?: ReactNode | ReactNode[];
|
|
8
8
|
};
|
package/grid/Grid.js
CHANGED
|
@@ -3,9 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Grid = void 0;
|
|
4
4
|
var tslib_1 = require("tslib");
|
|
5
5
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
|
-
/**
|
|
7
|
-
* @author Ivan Torres
|
|
8
|
-
*/
|
|
9
6
|
var react_1 = require("react");
|
|
10
7
|
var box_1 = require("../box");
|
|
11
8
|
var useStyle_1 = tslib_1.__importDefault(require("../style/useStyle"));
|
package/grid/index.d.ts
CHANGED
package/grid/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { IconButtonProps } from '../button/IconButton';
|
|
3
|
-
import { SharedProps } from '../select/types';
|
|
4
|
-
declare const ClearIconButton: ({ size, $size, $isOpen, ...props }: IconButtonProps & Pick<SharedProps, '$size' | '$isOpen'>) => React.ReactElement;
|
|
2
|
+
import type { IconButtonProps } from '../button/IconButton';
|
|
3
|
+
import type { SharedProps } from '../select/types';
|
|
4
|
+
declare const ClearIconButton: ({ size, $size: _$size, $isOpen: _$isOpen, ...props }: IconButtonProps & Pick<SharedProps, '$size' | '$isOpen'>) => React.ReactElement;
|
|
5
5
|
export default ClearIconButton;
|
|
@@ -6,7 +6,7 @@ var IconButton_1 = tslib_1.__importDefault(require("../button/IconButton"));
|
|
|
6
6
|
var close_1 = tslib_1.__importDefault(require("../icon/components/close"));
|
|
7
7
|
var locale_1 = require("../locale");
|
|
8
8
|
var ClearIconButton = function (_a) {
|
|
9
|
-
var size = _a.size, $size = _a.$size, $isOpen = _a.$isOpen, props = tslib_1.__rest(_a, ["size", "$size", "$isOpen"]);
|
|
9
|
+
var size = _a.size, _$size = _a.$size, _$isOpen = _a.$isOpen, props = tslib_1.__rest(_a, ["size", "$size", "$isOpen"]);
|
|
10
10
|
var locale = (0, locale_1.useLocale)();
|
|
11
11
|
var isDeprecatedSize = size !== 'small' && size !== 'medium';
|
|
12
12
|
return ((0, jsx_runtime_1.jsx)(IconButton_1.default, tslib_1.__assign({ "aria-label": locale.input.clearAriaLabel }, props, { size: isDeprecatedSize ? undefined : 'small', overrides: isDeprecatedSize
|
package/helpers/commonStyles.js
CHANGED
|
@@ -19,9 +19,8 @@ var chevronStyles = function (_a, _b) {
|
|
|
19
19
|
return styles;
|
|
20
20
|
};
|
|
21
21
|
exports.chevronStyles = chevronStyles;
|
|
22
|
-
var chevronClassNames = function (
|
|
23
|
-
var
|
|
24
|
-
var $isOpen = _b.$isOpen;
|
|
22
|
+
var chevronClassNames = function (_, _a) {
|
|
23
|
+
var $isOpen = _a.$isOpen;
|
|
25
24
|
return "h-2.5 w-2.5 transition-transform duration-200 ml-1 cursor-pointer ".concat($isOpen ? 'spr-icon-04 rotate-180' : 'spr-icon-01');
|
|
26
25
|
};
|
|
27
26
|
exports.chevronClassNames = chevronClassNames;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Properties } from 'csstype';
|
|
1
|
+
import type { Properties } from 'csstype';
|
|
2
2
|
export declare const borderRadius: (value: any) => Properties;
|
|
3
3
|
export declare const borderWidth: (value: any) => Properties;
|
|
4
4
|
export declare const borderStyle: (value: any) => Properties;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Theme } from '@sprinklrjs/spaceweb-themes/types';
|
|
2
|
-
import { Size } from '../types';
|
|
1
|
+
import type { Theme } from '@sprinklrjs/spaceweb-themes/types';
|
|
2
|
+
import type { Size } from '../types';
|
|
3
3
|
export declare const isDarkTheme: (theme: any) => boolean;
|
|
4
4
|
export declare const getComponentTheme: (theme: Theme, componentName: string) => any;
|
|
5
5
|
export declare const getDeprecatedComponentTheme: (theme: Theme, componentName: string) => any;
|
package/hooks/useAutoFocus.d.ts
CHANGED
package/hooks/useAutoFocus.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Created by Aneree on 10/12/20.
|
|
3
3
|
*/
|
|
4
|
-
import { ReactEventHandler } from 'react';
|
|
4
|
+
import type { ReactEventHandler } from 'react';
|
|
5
5
|
declare const useDebouncedEventHandler: <EH extends ReactEventHandler>(func: EH, defaultHandler?: EH | undefined, debounceInterval?: number) => (event: Parameters<EH>[0]) => void;
|
|
6
6
|
export { useDebouncedEventHandler };
|
|
@@ -2,9 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.useDebouncedEventHandler = void 0;
|
|
4
4
|
var tslib_1 = require("tslib");
|
|
5
|
-
/**
|
|
6
|
-
* Created by Aneree on 10/12/20.
|
|
7
|
-
*/
|
|
8
5
|
var react_1 = require("react");
|
|
9
6
|
var debounce_1 = tslib_1.__importDefault(require("lodash/debounce"));
|
|
10
7
|
var useLatest_1 = require("./useLatest");
|
package/hooks/useHover.d.ts
CHANGED
package/hooks/useMatchMedia.js
CHANGED
|
@@ -14,6 +14,7 @@ var getInitialState = function (query, defaultState) {
|
|
|
14
14
|
}
|
|
15
15
|
// A default value has not been provided, and you are rendering on the server, warn of a possible hydration mismatch when defaulting to false.
|
|
16
16
|
if (process.env.NODE_ENV !== 'production') {
|
|
17
|
+
// eslint-disable-next-line no-console -- debug logging
|
|
17
18
|
console.warn('`useMedia` When server side rendering, defaultState should be defined to prevent a hydration mismatches.');
|
|
18
19
|
}
|
|
19
20
|
return false;
|
|
@@ -34,7 +35,7 @@ var useMedia = function (query, defaultState) {
|
|
|
34
35
|
mediaQueryList.addEventListener('change', onChange);
|
|
35
36
|
}
|
|
36
37
|
else {
|
|
37
|
-
// @ts-ignore -- Safari
|
|
38
|
+
// @ts-ignore -- Safari MediaQueryList still exposes addListener, not addEventListener
|
|
38
39
|
mediaQueryList.addListener(onChange);
|
|
39
40
|
}
|
|
40
41
|
setState(mediaQueryList.matches);
|
|
@@ -44,7 +45,7 @@ var useMedia = function (query, defaultState) {
|
|
|
44
45
|
mediaQueryList.removeEventListener('change', onChange);
|
|
45
46
|
}
|
|
46
47
|
else {
|
|
47
|
-
// @ts-ignore -- Safari
|
|
48
|
+
// @ts-ignore -- Safari MediaQueryList still exposes removeListener, not removeEventListener
|
|
48
49
|
mediaQueryList.removeListener(onChange);
|
|
49
50
|
}
|
|
50
51
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MouseEventHandler } from 'react';
|
|
2
|
-
import { AnimationType } from '../icon';
|
|
1
|
+
import type { MouseEventHandler } from 'react';
|
|
2
|
+
import type { AnimationType } from '../icon';
|
|
3
3
|
type Params<T extends {
|
|
4
4
|
animate?: AnimationType | boolean;
|
|
5
5
|
}> = Omit<T, 'animate' | 'onMouseEnter' | 'onMouseLeave'> & {
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.useTransitionState = void 0;
|
|
4
4
|
var tslib_1 = require("tslib");
|
|
5
5
|
var react_1 = require("react");
|
|
6
|
-
// eslint-disable-next-line arrow-parens
|
|
7
6
|
var useTransitionState = function () {
|
|
8
7
|
var params = [];
|
|
9
8
|
for (var _i = 0; _i < arguments.length; _i++) {
|