@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,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;
|
|
@@ -15,7 +15,7 @@ var useHasMounted_1 = require("../hooks/useHasMounted");
|
|
|
15
15
|
var LAYERS_DEFAULT_ZINDEX = 9999;
|
|
16
16
|
function SpacewebProvider(props) {
|
|
17
17
|
var _a, _b;
|
|
18
|
-
var children = props.children, _c = props.layersZIndex, layersZIndex = _c === void 0 ? LAYERS_DEFAULT_ZINDEX : _c,
|
|
18
|
+
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;
|
|
19
19
|
var doc = (0, DocumentProvider_1.useDocument)();
|
|
20
20
|
var styleEngine = props.styleEngine || (0, styleEngine_1.getStyleEngine)(doc, nonce);
|
|
21
21
|
// TODO: This must be removed once baseui code exposes focusVisible from utils/index
|
package/stack/context.d.ts
CHANGED
package/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/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;
|
package/style/_buildUtils.d.ts
CHANGED
|
@@ -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/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/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];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @author Ivan Torres
|
|
3
3
|
*/
|
|
4
|
-
import { DeprecatedStyleAtom, RecursiveArray, StyleUtils } from '../types';
|
|
5
|
-
import { CSSProperties } from 'react';
|
|
4
|
+
import type { DeprecatedStyleAtom, RecursiveArray, StyleUtils } from '../types';
|
|
5
|
+
import type { CSSProperties } from 'react';
|
|
6
6
|
export declare const _parseStyleProp: (utils: StyleUtils, styletronCss: any, props: any, styles?: DeprecatedStyleAtom | RecursiveArray<DeprecatedStyleAtom>) => [string, CSSProperties, string];
|
package/style/_parseStyleProp.js
CHANGED
|
@@ -41,10 +41,11 @@ var resolveStyleObjects = function (flattenStyles, _a) {
|
|
|
41
41
|
}, ['', '']);
|
|
42
42
|
};
|
|
43
43
|
var _parseStyleProp = function (utils, styletronCss, props, styles) {
|
|
44
|
-
var flattenStyles = flattenDeep([styles])
|
|
44
|
+
var flattenStyles = flattenDeep([styles]);
|
|
45
|
+
var isStringsArray = true, // determines if all the arguments are string in the styles
|
|
45
46
|
inlineStyles = true; // determines if all the arguments are CssProp objects in the styles
|
|
46
47
|
var inlineStylesObj = {}; // merged object of all the style objects in the arguments
|
|
47
|
-
flattenStyles.forEach(function (_styleArg,
|
|
48
|
+
flattenStyles.forEach(function (_styleArg, _index) {
|
|
48
49
|
var styleArg = _styleArg;
|
|
49
50
|
if (typeof styleArg === 'function') {
|
|
50
51
|
styleArg = styleArg(utils, props);
|
package/style/_px2rem.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { StyledComponent, Tag } from './styled';
|
|
2
|
-
import { CSSVariables, CSSVariablesStyleFn, ClassName } from '../types';
|
|
2
|
+
import type { CSSVariables, CSSVariablesStyleFn, ClassName } from '../types';
|
|
3
3
|
type StyledFunc = (ComponentOrTag: Tag, cssVariables: CSSVariables | CSSVariablesStyleFn, ...args: ClassName[]) => StyledComponent;
|
|
4
4
|
declare const styledWithCssVariables: StyledFunc;
|
|
5
5
|
export default styledWithCssVariables;
|
package/style/styled.d.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* @author Ivan Torres
|
|
3
3
|
*/
|
|
4
4
|
import * as React from 'react';
|
|
5
|
-
import { ForwardRefExoticComponent, PropsWithoutRef, RefAttributes } from 'react';
|
|
6
|
-
import { ClassName } from '../types';
|
|
5
|
+
import type { ForwardRefExoticComponent, PropsWithoutRef, RefAttributes } from 'react';
|
|
6
|
+
import type { ClassName } from '../types';
|
|
7
7
|
export type Tag = keyof JSX.IntrinsicElements | React.ComponentType<React.PropsWithChildren<any>>;
|
|
8
8
|
type StyledFunc = (ComponentOrTag: Tag, ...args: ClassName[]) => StyledComponent;
|
|
9
9
|
export type StyledComponent = ForwardRefExoticComponent<PropsWithoutRef<any> & RefAttributes<HTMLElement | React.ComponentClass>>;
|
package/style/styled.js
CHANGED
|
@@ -24,7 +24,7 @@ var styled = function (ComponentOrTag) {
|
|
|
24
24
|
var ctx = (0, theme_1.useTheme)();
|
|
25
25
|
var debugCssInJs = ctx.debugCssInJs;
|
|
26
26
|
var _a = tslib_1.__read((0, useMemoizedStyletron_1.default)(), 1), styletronCSS = _a[0];
|
|
27
|
-
var _b = props.className, className = _b === void 0 ? '' : _b, style = props.style,
|
|
27
|
+
var _b = props.className, className = _b === void 0 ? '' : _b, style = props.style, _sx = props.sx, $className = props.$className, $style = props.$style, ownProps = tslib_1.__rest(props, ["className", "style", "sx", "$className", "$style"]);
|
|
28
28
|
var Component = props.$as || ComponentOrTag;
|
|
29
29
|
// NOTE: prepend previously generated classes by styletron, this can happen
|
|
30
30
|
// when re-styling a component built with `styled` or `className` added
|
|
@@ -5,13 +5,13 @@ var styletron_react_1 = require("styletron-react");
|
|
|
5
5
|
var react_1 = require("react");
|
|
6
6
|
var useLatest_1 = require("../hooks/useLatest");
|
|
7
7
|
var context_1 = require("../theme/context");
|
|
8
|
-
var
|
|
8
|
+
var _identity = function (x) { return x; };
|
|
9
9
|
/**
|
|
10
10
|
* styletron returns new `styletronCSS` function each time the hook is called. This hook memorizes the css function and returns same reference every time.
|
|
11
11
|
*/
|
|
12
12
|
var useMemoizedStyletron = function () {
|
|
13
13
|
var _a = tslib_1.__read((0, styletron_react_1.useStyletron)(), 1), styletronCSS = _a[0];
|
|
14
|
-
var
|
|
14
|
+
var _ctx = (0, context_1.useTheme)();
|
|
15
15
|
var cssRef = (0, useLatest_1.useLatest)(styletronCSS);
|
|
16
16
|
var css = (0, react_1.useCallback)(function (arg) { return cssRef.current(arg); }, [cssRef]);
|
|
17
17
|
return [css];
|
package/style/useStyle.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PropsWithChildren, ReactElement } from 'react';
|
|
2
|
-
import { StandardEngine, Sheet, KeyframesObject } from '../types';
|
|
1
|
+
import type { PropsWithChildren, ReactElement } from 'react';
|
|
2
|
+
import type { StandardEngine, Sheet, KeyframesObject } from '../types';
|
|
3
3
|
export type ProviderProps = {
|
|
4
4
|
styleEngine?: StandardEngine;
|
|
5
5
|
debug?: boolean;
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.appendCacheContainer = exports.deprecatedRenderKeyframes = exports.getStylesheetsHtml = exports.getStylesheets = exports.StyleProvider = exports.getStyleEngine = exports.hydrate = exports.isServer = exports.SPACEWEB_STYLE_CONTAINER_ID = exports.SPACEWEB_STYLE_PREFIX = void 0;
|
|
4
4
|
var tslib_1 = require("tslib");
|
|
5
5
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
|
-
/* eslint @typescript-eslint/no-use-before-define: 0 */
|
|
7
6
|
var react_1 = require("react");
|
|
8
7
|
var styletron_engine_atomic_1 = require("styletron-engine-atomic");
|
|
9
8
|
var styletron_react_1 = require("styletron-react");
|
package/switch/switch.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
import { SwitchProps, StatefulSwitchProps } from './types';
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { SwitchProps, StatefulSwitchProps } from './types';
|
|
3
3
|
export declare const Switch: {
|
|
4
|
-
({ style, ...restProps }: SwitchProps): ReactElement;
|
|
4
|
+
({ style: _style, ...restProps }: SwitchProps): ReactElement;
|
|
5
5
|
displayName: string;
|
|
6
6
|
};
|
|
7
7
|
export declare const StatefulSwitch: {
|
package/switch/switch.js
CHANGED
|
@@ -6,7 +6,7 @@ var jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
6
6
|
var checkbox_1 = require("../checkbox");
|
|
7
7
|
var useStatefulCheckbox_1 = tslib_1.__importDefault(require("../checkbox/hooks/useStatefulCheckbox"));
|
|
8
8
|
var Switch = function (_a) {
|
|
9
|
-
var
|
|
9
|
+
var _style = _a.style, restProps = tslib_1.__rest(_a, ["style"]);
|
|
10
10
|
return ((0, jsx_runtime_1.jsx)(checkbox_1.Checkbox, tslib_1.__assign({ "data-spaceweb": "switch", checkmarkType: checkbox_1.STYLE_TYPE.toggle, labelPlacement: "right" }, restProps)));
|
|
11
11
|
};
|
|
12
12
|
exports.Switch = Switch;
|
package/tabs/contexts.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Key } from 'react';
|
|
2
|
-
import { ChangEventHandler, TabListProps } from './types';
|
|
1
|
+
import type { Key } from 'react';
|
|
2
|
+
import type { ChangEventHandler, TabListProps } from './types';
|
|
3
3
|
export declare const StatefulTabsContext: import("react").Context<{
|
|
4
4
|
activeTabId: Key;
|
|
5
5
|
onChange: ChangEventHandler;
|
package/tabs/helpers.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { position } from './types';
|
|
1
|
+
import type { position } from './types';
|
|
2
2
|
export declare const resetStyles = "border-transparent outline-none";
|
|
3
3
|
export declare const baseTabClasses = "spr-text-primary cursor-pointer border-solid border-t-0 border-l-0 border-r-0 border-b-0 focus-visible:spr-link focus-visible:-outline-offset-2";
|
|
4
4
|
export declare const isVertical: ($position?: position) => boolean;
|
package/tabs/scroll-button.d.ts
CHANGED
package/tabs/stateful-tabs.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PropsWithChildren, ReactElement } from 'react';
|
|
2
|
-
import { StatefulTabProps } from './types';
|
|
1
|
+
import type { PropsWithChildren, ReactElement } from 'react';
|
|
2
|
+
import type { StatefulTabProps } from './types';
|
|
3
3
|
declare const StatefulTabs: {
|
|
4
4
|
({ defaultActiveTabId, children, onChange, }: PropsWithChildren<StatefulTabProps>): ReactElement;
|
|
5
5
|
displayName: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SharedPropsTabs } from './types';
|
|
2
|
-
import { ClassName, Styles } from '../types';
|
|
1
|
+
import type { SharedPropsTabs } from './types';
|
|
2
|
+
import type { ClassName, Styles } from '../types';
|
|
3
3
|
export declare const tabsStyles: (_: any, { $variant, $position }: SharedPropsTabs) => string;
|
|
4
4
|
export declare const tabStyle: ClassName;
|
|
5
5
|
export declare const tabUnderlineStyles: Styles;
|
package/tabs/tab-list.d.ts
CHANGED
package/tabs/tab.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
import { TabProps } from './types';
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { TabProps } from './types';
|
|
3
3
|
declare const _default: import("react").MemoExoticComponent<{
|
|
4
4
|
(props: TabProps): ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
5
5
|
displayName: string;
|
package/tabs/tabs-panel.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
import { TabsPanelProps } from './types';
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { TabsPanelProps } from './types';
|
|
3
3
|
declare const TabsPanel: {
|
|
4
4
|
(props: TabsPanelProps): ReactElement | null;
|
|
5
5
|
displayName: string;
|
package/tabs/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Override } from '../overrides';
|
|
3
|
-
import { SpacewebComponentProps } from '../types';
|
|
4
|
-
import { TooltipProps } from '../tooltip';
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { Override } from '../overrides';
|
|
3
|
+
import type { SpacewebComponentProps } from '../types';
|
|
4
|
+
import type { TooltipProps } from '../tooltip';
|
|
5
5
|
export type position = 'top' | 'left' | 'right';
|
|
6
6
|
export type variant = 'default' | 'flap' | 'deprecated';
|
|
7
7
|
export type Layout = 'vertical' | 'horizontal';
|
package/tag/constants.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Theme } from '@sprinklrjs/spaceweb-themes/types';
|
|
1
|
+
import type { Theme } from '@sprinklrjs/spaceweb-themes/types';
|
|
2
2
|
export declare const TAG_INTENT_TO_BG_COLOR: {
|
|
3
3
|
readonly info: (theme: Theme) => "#0E3386" | "#D3E8FF";
|
|
4
4
|
readonly review: (theme: Theme) => "#8A3700" | "#FFDFCA";
|
package/tag/status-tag.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ReactElement } from 'react';
|
|
2
|
-
import { Override } from '../overrides';
|
|
2
|
+
import type { Override } from '../overrides';
|
|
3
3
|
import type { TagProps, Intent } from './types';
|
|
4
4
|
type StatusTagProps = Omit<TagProps, 'appearance' | 'intent' | 'variant'> & {
|
|
5
5
|
intent?: Intent | 'review';
|
package/tag/tag.js
CHANGED
|
@@ -59,10 +59,14 @@ var Tag = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
59
59
|
$appearance: appearance,
|
|
60
60
|
$addHoverStyles: clickable || $isFocusVisible,
|
|
61
61
|
};
|
|
62
|
-
var
|
|
62
|
+
var _titleText = title || (0, utils_1.getTextFromChildren)(children);
|
|
63
63
|
var clearableIconSize = (0, utils_1.getTagSizeTheme)(theme, size).clearableIconSize;
|
|
64
64
|
var actionIconButtonOverrides = (0, utils_1.getActionIconButtonOverrides)(size);
|
|
65
|
-
var _s = (0, useTruncateWithTooltip_1.useTruncateWithTooltip)(
|
|
65
|
+
var _s = (0, useTruncateWithTooltip_1.useTruncateWithTooltip)({
|
|
66
|
+
noTooltipOnTruncation: noTooltipOnTruncation,
|
|
67
|
+
onMouseEnter: onMouseEnter,
|
|
68
|
+
onMouseLeave: onMouseLeave,
|
|
69
|
+
}), mouseEventProps = _s.mouseEventProps, renderTooltip = _s.renderTooltip, elementRef = _s.elementRef;
|
|
66
70
|
var textElement = ((0, jsx_runtime_1.jsx)(Text, tslib_1.__assign({ ref: elementRef }, sharedProps, textProps, { children: children })));
|
|
67
71
|
return ((0, jsx_runtime_1.jsxs)(Root, tslib_1.__assign({ ref: ref, "data-spaceweb": "tag", role: clickable ? 'button' : null, tabIndex: clickable ? 0 : null, onFocus: onFocus, onBlur: onBlur, onClick: onClick, onKeyDown: handleKeyDown }, sharedProps, restProps, rootProps, { className: [className, rootProps === null || rootProps === void 0 ? void 0 : rootProps.className] }, { children: [startEnhancer && ((0, jsx_runtime_1.jsx)(StartEnhancer, tslib_1.__assign({}, sharedProps, startEnhancerProps, { children: typeof startEnhancer === 'function' ? startEnhancer(sharedProps) : startEnhancer }))), (0, jsx_runtime_1.jsx)(tooltip_1.StatefulTooltip, tslib_1.__assign({ content: renderTooltip ? ((0, jsx_runtime_1.jsx)(box_1.Box, tslib_1.__assign({ "data-testid": "tooltip", className: "max-w-2xl break-words" }, { children: props.children }))) : null, size: "50vw", placement: "bottom", onMouseEnterDelay: 0, onMouseLeaveDelay: 0, accessibilityType: "tooltip" }, mouseEventProps, { children: textElement })), closeable ? ((0, jsx_runtime_1.jsx)(Action, tslib_1.__assign({ "aria-hidden": true, role: "presentation", onClick: onActionClick }, sharedProps, (0, omit_1.default)(actionProps, 'tabIndex'), { children: (0, jsx_runtime_1.jsx)(base_button_1.BaseButton, tslib_1.__assign({ type: "button", className: [
|
|
68
72
|
'hover:spr-bg-quaternary hover:border border-solid spr-border-quaternary hover:spr-text-primary color-[--sw-color]',
|
package/tag/utils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { Theme } from '@sprinklrjs/spaceweb-themes/types';
|
|
2
|
+
import type { Theme } from '@sprinklrjs/spaceweb-themes/types';
|
|
3
3
|
export declare const getActionIconButtonOverrides: (size: any) => "h-3.5 w-3.5 rounded-2" | "h-4 w-4 rounded-3" | "h-4.5 w-4.5 rounded-3" | "h-6 w-6 rounded-4";
|
|
4
4
|
export declare function getTextFromChildren(children: React.ReactNode): string | null;
|
|
5
5
|
export declare const getDefaultTagSize: (theme: Theme) => 'xxxs' | 'sm' | 'lg';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Direction, ThemeModule } from '@sprinklrjs/spaceweb-themes/types';
|
|
2
|
-
import { StyleUtils } from '../../types';
|
|
1
|
+
import type { Direction, ThemeModule } from '@sprinklrjs/spaceweb-themes/types';
|
|
2
|
+
import type { StyleUtils } from '../../types';
|
|
3
3
|
type Breakpoint = [string, string];
|
|
4
4
|
type ScreenList = {
|
|
5
5
|
[name: string]: string;
|
package/textarea/textarea.js
CHANGED
|
@@ -14,7 +14,7 @@ var noop_1 = tslib_1.__importDefault(require("lodash/noop"));
|
|
|
14
14
|
var themeHelpers_1 = require("../helpers/themeHelpers");
|
|
15
15
|
var style_1 = require("../style");
|
|
16
16
|
var Textarea = function (_a) {
|
|
17
|
-
var _b = _a.autoFocus, autoFocus = _b === void 0 ? false : _b, _c = _a.disabled, disabled = _c === void 0 ? false : _c, _d = _a.readOnly, readOnly = _d === void 0 ? false : _d,
|
|
17
|
+
var _b = _a.autoFocus, autoFocus = _b === void 0 ? false : _b, _c = _a.disabled, disabled = _c === void 0 ? false : _c, _d = _a.readOnly, readOnly = _d === void 0 ? false : _d, _f = _a.onBlur, onBlur = _f === void 0 ? noop_1.default : _f, _g = _a.onFocus, onFocus = _g === void 0 ? noop_1.default : _g, _h = _a.overrides, overrides = _h === void 0 ? {} : _h, _j = _a.required, required = _j === void 0 ? false : _j, _rows = _a.rows, style = _a.style, className = _a.className, resize = _a.resize, _size = _a.size, _inputRef = _a.inputRef, props = tslib_1.__rest(_a, ["autoFocus", "disabled", "readOnly", "onBlur", "onFocus", "overrides", "required", "rows", "style", "className", "resize", "size", "inputRef"]);
|
|
18
18
|
var inputRef = (0, useAutoFocus_1.default)({ autoFocus: autoFocus, inputRef: _inputRef });
|
|
19
19
|
(0, useAutoSizeTextarea_1.default)({
|
|
20
20
|
value: props.value,
|
|
@@ -23,11 +23,11 @@ var Textarea = function (_a) {
|
|
|
23
23
|
});
|
|
24
24
|
var theme = (0, style_1.useStyle)().theme;
|
|
25
25
|
var size = _size !== null && _size !== void 0 ? _size : (0, themeHelpers_1.getDefaultSize)(theme);
|
|
26
|
-
var
|
|
26
|
+
var _k = (0, context_1.useContextualFormProps)(props), _l = _k.variant, variant = _l === void 0 ? 'default' : _l, _intent = _k.intent, _m = _k.autoSize, autoSize = _m === void 0 ? false : _m, restProps = tslib_1.__rest(_k, ["variant", "intent", "autoSize"]);
|
|
27
27
|
var maxCharLimit = restProps.maxCharLimit, value = restProps.value;
|
|
28
28
|
var intent = typeof value === 'string' && value.length > (maxCharLimit !== null && maxCharLimit !== void 0 ? maxCharLimit : Infinity) ? 'error' : _intent;
|
|
29
29
|
var rows = _rows !== null && _rows !== void 0 ? _rows : (autoSize ? 1 : 3);
|
|
30
|
-
var
|
|
30
|
+
var _o = tslib_1.__read((0, react_1.useState)(autoFocus), 2), isFocused = _o[0], setIsFocused = _o[1];
|
|
31
31
|
var sharedProps = (0, react_1.useMemo)(function () { return (0, helpers_1.add$props)({ size: size, variant: variant, intent: intent, autoSize: autoSize, resize: resize }); }, [size, variant, intent, autoSize, resize]);
|
|
32
32
|
var handleFocus = (0, react_1.useCallback)(function (e) {
|
|
33
33
|
setIsFocused(true);
|
|
@@ -37,12 +37,12 @@ var Textarea = function (_a) {
|
|
|
37
37
|
setIsFocused(false);
|
|
38
38
|
onBlur(e);
|
|
39
39
|
}, [onBlur]);
|
|
40
|
-
var handleContainerClick = (0, react_1.useCallback)(function (
|
|
40
|
+
var handleContainerClick = (0, react_1.useCallback)(function (_e) {
|
|
41
41
|
var _a;
|
|
42
42
|
(_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
43
43
|
setIsFocused(true);
|
|
44
44
|
}, [inputRef]);
|
|
45
|
-
var
|
|
45
|
+
var _p = tslib_1.__read((0, overrides_1.useOverrides)(overrides === null || overrides === void 0 ? void 0 : overrides.Root, styled_components_1.StyledTextAreaRoot), 2), Root = _p[0], rootProps = _p[1];
|
|
46
46
|
var inputOverrides = (0, react_1.useMemo)(function () {
|
|
47
47
|
return (0, overrides_1.mergeOverrides)({
|
|
48
48
|
InputContainer: {
|
package/textarea/types.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { Ref } from 'react';
|
|
2
|
-
import { InputVariant, FocusPosition, BaseInputProps, StatefulContainerProps } from '../input';
|
|
3
|
-
import { Intent, SpacewebComponentProps } from '../types';
|
|
4
|
-
import { Override } from '../overrides';
|
|
1
|
+
import type { Ref } from 'react';
|
|
2
|
+
import type { InputVariant, FocusPosition, BaseInputProps, StatefulContainerProps, ENHANCER_POSITION, Adjoined, InputSize } from '../input';
|
|
3
|
+
import type { Intent, SpacewebComponentProps } from '../types';
|
|
4
|
+
import type { Override } from '../overrides';
|
|
5
5
|
import type { Properties } from 'csstype';
|
|
6
|
-
import type { ENHANCER_POSITION, Adjoined, InputSize } from '../input';
|
|
7
6
|
export type BaseTextareaProps = BaseInputProps<HTMLTextAreaElement>;
|
|
8
7
|
export type TextareaProps = SpacewebComponentProps<Omit<BaseTextareaProps, 'size' | 'overrides' | 'autoFocus' | 'inputRef'>> & {
|
|
9
8
|
resize?: Properties['resize'];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { TextareaProps } from './types';
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { TextareaProps } from './types';
|
|
3
3
|
declare const useAutoSizeTextarea: ({ value, inputRef, autoSize, }: {
|
|
4
4
|
value: TextareaProps['value'];
|
|
5
5
|
inputRef: React.RefObject<HTMLTextAreaElement>;
|
package/theme/Provider.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PropsWithChildren, ReactElement } from 'react';
|
|
2
|
-
import { ThemeProviderT } from './types';
|
|
1
|
+
import type { PropsWithChildren, ReactElement } from 'react';
|
|
2
|
+
import type { ThemeProviderT } from './types';
|
|
3
3
|
import type { Density } from '@sprinklrjs/spaceweb-themes/types';
|
|
4
4
|
type Props = PropsWithChildren<{
|
|
5
5
|
theme?: ThemeProviderT;
|
package/theme/context.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ThemeContext } from '../types';
|
|
2
|
+
import type { ThemeContext } from '../types';
|
|
3
3
|
export declare const themeContext: import("react").Context<ThemeContext>;
|
|
4
4
|
export declare const useTheme: () => ThemeContext;
|
|
5
5
|
export declare const ThemeConsumer: import("react").Consumer<ThemeContext>;
|
package/theme/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
import { TimePickerProps } from './types';
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { TimePickerProps } from './types';
|
|
3
3
|
export declare const TimePicker: {
|
|
4
4
|
(props: TimePickerProps): ReactElement;
|
|
5
5
|
__standard: string;
|
package/time-picker/types.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Intent, Styles } from '../types';
|
|
2
|
-
import { Override } from '../overrides/types';
|
|
3
|
-
import { SharedProps, Size } from '../select/types';
|
|
4
|
-
import { TimePickerProps as BaseTimePickerProps, TimePickerOverrides as BaseTimePickerOverrides } from '../baseui/timepicker';
|
|
5
|
-
import { DateIOAdapter } from '../baseui/datepicker/utils/types';
|
|
1
|
+
import type { Intent, Styles } from '../types';
|
|
2
|
+
import type { Override } from '../overrides/types';
|
|
3
|
+
import type { SharedProps, Size } from '../select/types';
|
|
4
|
+
import type { TimePickerProps as BaseTimePickerProps, TimePickerOverrides as BaseTimePickerOverrides } from '../baseui/timepicker';
|
|
5
|
+
import type { DateIOAdapter } from '../baseui/datepicker/utils/types';
|
|
6
6
|
export type TimePickerOverrides = {
|
|
7
7
|
[key in keyof BaseTimePickerOverrides]?: Override<SharedProps>;
|
|
8
8
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
import { RangeSelectorProps } from './types';
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { RangeSelectorProps } from './types';
|
|
3
3
|
declare const _default: import("react").MemoExoticComponent<{
|
|
4
4
|
({ timeRange, preset, onChange, formatString, footerContent, hidePresetSearch, ...props }: RangeSelectorProps): ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
5
5
|
displayName: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
import { TimeRangeListProps } from './types';
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { TimeRangeListProps } from './types';
|
|
3
3
|
declare const _default: import("react").MemoExoticComponent<{
|
|
4
4
|
({ onChange, timeRange, preset, timeRangePresets, overrides, hidePresetSearch, }: TimeRangeListProps): ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
5
5
|
displayName: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
import { TimeRangePickerProps } from './types';
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { TimeRangePickerProps } from './types';
|
|
3
3
|
export declare const TimeRangePicker: {
|
|
4
4
|
({ adapter, onSubmit, timezone: _timezone, value, formatDisplayValue, timeRangePresets, overrides, timeSelect, peekNextMonth, excludeDates, filterDate, minDate, maxDate, formatString, placeholder, onClose, onChange, showTimezoneInSummary, clearable, onClear, showFullDateInSummary, autoSizeInput, preset, startOpen, fixedHeight, monthsShown, weekStartsOn, disableTimezone, displayVariant, timezoneOptions, hidePresetSearch, ...props }: TimeRangePickerProps): ReactElement;
|
|
5
5
|
__standard: string;
|
|
@@ -26,6 +26,7 @@ var TimeRangePicker = function (_a) {
|
|
|
26
26
|
var _b = _a.adapter, adapter = _b === void 0 ? date_fns_adapter_1.default : _b, onSubmit = _a.onSubmit, _timezone = _a.timezone, value = _a.value, formatDisplayValue = _a.formatDisplayValue, timeRangePresets = _a.timeRangePresets, overrides = _a.overrides, timeSelect = _a.timeSelect, peekNextMonth = _a.peekNextMonth, excludeDates = _a.excludeDates, filterDate = _a.filterDate, minDate = _a.minDate, maxDate = _a.maxDate, _c = _a.formatString, formatString = _c === void 0 ? constants_1.DEFAULT_FORMAT_STRING : _c, _d = _a.placeholder, placeholder = _d === void 0 ? "".concat(formatString, "-").concat(formatString).toLowerCase() : _d, onClose = _a.onClose, onChange = _a.onChange, showTimezoneInSummary = _a.showTimezoneInSummary, clearable = _a.clearable, onClear = _a.onClear, showFullDateInSummary = _a.showFullDateInSummary, autoSizeInput = _a.autoSizeInput, preset = _a.preset, _e = _a.startOpen, startOpen = _e === void 0 ? false : _e, fixedHeight = _a.fixedHeight, _f = _a.monthsShown, monthsShown = _f === void 0 ? 2 : _f, weekStartsOn = _a.weekStartsOn, _g = _a.disableTimezone, disableTimezone = _g === void 0 ? false : _g, _h = _a.displayVariant, displayVariant = _h === void 0 ? 'default' : _h, timezoneOptions = _a.timezoneOptions, _j = _a.hidePresetSearch, hidePresetSearch = _j === void 0 ? false : _j, props = tslib_1.__rest(_a, ["adapter", "onSubmit", "timezone", "value", "formatDisplayValue", "timeRangePresets", "overrides", "timeSelect", "peekNextMonth", "excludeDates", "filterDate", "minDate", "maxDate", "formatString", "placeholder", "onClose", "onChange", "showTimezoneInSummary", "clearable", "onClear", "showFullDateInSummary", "autoSizeInput", "preset", "startOpen", "fixedHeight", "monthsShown", "weekStartsOn", "disableTimezone", "displayVariant", "timezoneOptions", "hidePresetSearch"]);
|
|
27
27
|
if (__DEV__) {
|
|
28
28
|
if (disableTimezone && _timezone) {
|
|
29
|
+
// eslint-disable-next-line no-console -- debug logging
|
|
29
30
|
console.warn('[spaceweb] timezone can not be passed to the TimeRangePicker when disableTimezone is true');
|
|
30
31
|
}
|
|
31
32
|
}
|
|
@@ -100,7 +101,7 @@ var TimeRangePicker = function (_a) {
|
|
|
100
101
|
displayVariant,
|
|
101
102
|
]);
|
|
102
103
|
var handleSubmit = (0, react_1.useCallback)(
|
|
103
|
-
// eslint-disable-next-line
|
|
104
|
+
// eslint-disable-next-line @typescript-eslint/no-shadow -- used within function only
|
|
104
105
|
function (_a) {
|
|
105
106
|
var _b, _c, _d;
|
|
106
107
|
var timeRange = _a.timeRange, preset = _a.preset, timezone = _a.timezone;
|
|
@@ -3,7 +3,7 @@ import type { DatepickerOverrides, FormatString, StatelessDatePickerProps } from
|
|
|
3
3
|
import type { Override } from '../overrides';
|
|
4
4
|
import type { Option } from '../baseui/select';
|
|
5
5
|
import type { Timezone, TimezonePickerOverrides } from '../time-zone-picker/types';
|
|
6
|
-
import { ClassName, Styles } from '../types';
|
|
6
|
+
import type { ClassName, Styles } from '../types';
|
|
7
7
|
export type { FormatString } from '../date-picker';
|
|
8
8
|
export type TimeRangePreset = {
|
|
9
9
|
id: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import DateHelpers from '../baseui/datepicker/utils/date-helpers';
|
|
2
|
-
import { Locale } from '../locale';
|
|
2
|
+
import type { Locale } from '../locale';
|
|
3
3
|
import type { FormatSummaryValueOptions, TimeRangePreset } from './types';
|
|
4
|
-
import { Timezone } from '../time-zone-picker/types';
|
|
4
|
+
import type { Timezone } from '../time-zone-picker/types';
|
|
5
5
|
export declare const getSelectedTimeRange: (selectedTimeRange: string | undefined, timeRangeOptions: Array<TimeRangePreset>) => TimeRangePreset | undefined;
|
|
6
6
|
/**
|
|
7
7
|
@param date: Date object or epoch in source timezone
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
import { TimezonePickerProps } from './types';
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { TimezonePickerProps } from './types';
|
|
3
3
|
export declare const TimezonePicker: {
|
|
4
4
|
(props: TimezonePickerProps): ReactElement;
|
|
5
5
|
__standard: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import type { ClassName, Intent, Styles } from '../types';
|
|
3
3
|
import type { SharedProps, Size, Option } from '../select/types';
|
|
4
|
-
import { Override } from '../overrides';
|
|
4
|
+
import type { Override } from '../overrides';
|
|
5
5
|
export type TimezonePickerOverrides = {
|
|
6
6
|
Select?: Override<SharedProps>;
|
|
7
7
|
};
|