@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
|
@@ -9,7 +9,11 @@ import { INITIAL_STATE } from '../../truncateWithTooltip/TruncateWithTooltip';
|
|
|
9
9
|
var Value = function (props) {
|
|
10
10
|
var _a = props.overrides, overrides = _a === void 0 ? {} : _a, noTooltipOnTruncation = props.noTooltipOnTruncation, restProps = __rest(props, ["overrides", "noTooltipOnTruncation"]);
|
|
11
11
|
var _b = __read(useOverrides(overrides.SingleValue, StyledSingleValue), 2), SingleValue = _b[0], _c = _b[1], onMouseEnter = _c.onMouseEnter, onMouseLeave = _c.onMouseLeave, singleValueProps = __rest(_c, ["onMouseEnter", "onMouseLeave"]);
|
|
12
|
-
var _d = useTruncateWithTooltip(
|
|
12
|
+
var _d = useTruncateWithTooltip({
|
|
13
|
+
noTooltipOnTruncation: noTooltipOnTruncation,
|
|
14
|
+
onMouseEnter: onMouseEnter,
|
|
15
|
+
onMouseLeave: onMouseLeave,
|
|
16
|
+
}), mouseEventProps = _d.mouseEventProps, renderTooltip = _d.renderTooltip, elementRef = _d.elementRef;
|
|
13
17
|
var el = (_jsx(SingleValue, __assign({ ref: elementRef }, mouseEventProps, restProps, singleValueProps, { children: props.children })));
|
|
14
18
|
return renderTooltip ? (_jsx(StatefulTooltip, __assign({ initialState: INITIAL_STATE, content: _jsx(Box, __assign({ "data-testid": "tooltip", className: "max-w-2xl break-words" }, { children: props.children })), placement: "bottom", accessibilityType: "tooltip" }, mouseEventProps, { children: el }))) : (el);
|
|
15
19
|
};
|
|
@@ -59,7 +59,9 @@ var TimePicker = /** @class */ (function (_super) {
|
|
|
59
59
|
_this.handleChange(seconds);
|
|
60
60
|
};
|
|
61
61
|
_this.secondsToLabel = function (seconds, format, langCode) {
|
|
62
|
-
var
|
|
62
|
+
var hourMinute = _this.dateHelpers.secondsToHourMinute(seconds);
|
|
63
|
+
var hours = hourMinute[0];
|
|
64
|
+
var minutes = hourMinute[1];
|
|
63
65
|
var zeroPrefix = function (n) { return (n < 10 ? "0".concat(n) : n); };
|
|
64
66
|
if (format === '12') {
|
|
65
67
|
var isAfterNoon = seconds >= NOON;
|
|
@@ -87,7 +89,6 @@ var TimePicker = /** @class */ (function (_super) {
|
|
|
87
89
|
* Converts a time string, e.g. 10:00, to one or more possible TimePicker
|
|
88
90
|
* options representing that time.
|
|
89
91
|
*/
|
|
90
|
-
// eslint-disable-next-line max-statements -- function is required
|
|
91
92
|
_this.stringToOptions = function (str, format) {
|
|
92
93
|
if (format === void 0) { format = '12'; }
|
|
93
94
|
// leading zero is optional, AM/PM is optional
|
|
@@ -143,7 +144,8 @@ var TimePicker = /** @class */ (function (_super) {
|
|
|
143
144
|
return setSeconds(setMinutes(setHours(date, hours), minutes), seconds);
|
|
144
145
|
};
|
|
145
146
|
_this.getTimeWindowInSeconds = function () {
|
|
146
|
-
var _a = _this.props, min = _a.minTime, max = _a.maxTime
|
|
147
|
+
var _a = _this.props, min = _a.minTime, max = _a.maxTime;
|
|
148
|
+
var ignoreMinMaxDateComponent = _this.props.ignoreMinMaxDateComponent;
|
|
147
149
|
var dayStart = _this.setTime(_this.props.value, 0, 0, 0);
|
|
148
150
|
var dayEnd = _this.setTime(_this.props.value, 24, 0, 0);
|
|
149
151
|
if (!min || (_this.props.adapter.isBefore(min, dayStart) && !ignoreMinMaxDateComponent)) {
|
|
@@ -170,9 +172,8 @@ var TimePicker = /** @class */ (function (_super) {
|
|
|
170
172
|
end: (maxDate - midnightDate) / 1000,
|
|
171
173
|
};
|
|
172
174
|
};
|
|
173
|
-
// eslint-disable-next-line max-statements -- required for performing validation
|
|
174
175
|
_this.buildSteps = function () {
|
|
175
|
-
var _a = _this.props, _b = _a.step, step = _b === void 0 ? 900 : _b, timeRanges = _a.timeRanges,
|
|
176
|
+
var _a = _this.props, _b = _a.step, step = _b === void 0 ? 900 : _b, timeRanges = _a.timeRanges, _value = _a.value;
|
|
176
177
|
var timeWindow = _this.getTimeWindowInSeconds();
|
|
177
178
|
var stepCount = (timeWindow.end - timeWindow.start) / step;
|
|
178
179
|
if (process.env.NODE_ENV !== 'production' && stepCount > 500) {
|
|
@@ -263,11 +264,9 @@ var TimePicker = /** @class */ (function (_super) {
|
|
|
263
264
|
}
|
|
264
265
|
if (formatChanged || stepChanged || minTimeChange || maxTimeChange || timeRangesChanged) {
|
|
265
266
|
var steps = this.buildSteps();
|
|
266
|
-
// eslint-disable-next-line react/no-did-update-set-state -- baseui migration
|
|
267
267
|
this.setState({ steps: steps });
|
|
268
268
|
}
|
|
269
269
|
if (prevProps.value && !this.props.value) {
|
|
270
|
-
// eslint-disable-next-line react/no-did-update-set-state -- baseui migration
|
|
271
270
|
this.setState({ value: null });
|
|
272
271
|
}
|
|
273
272
|
};
|
|
@@ -2,7 +2,7 @@ import type { Override } from '../../overrides';
|
|
|
2
2
|
import type { Option } from '../select';
|
|
3
3
|
import type { Size } from '../input';
|
|
4
4
|
import type { DateIOAdapter } from '../datepicker/utils/types';
|
|
5
|
-
import { TimeRange } from '../datepicker/types';
|
|
5
|
+
import type { TimeRange } from '../datepicker/types';
|
|
6
6
|
export type TimePickerOverrides = {
|
|
7
7
|
Select?: Override<Record<string, any>>;
|
|
8
8
|
};
|
|
@@ -3,7 +3,7 @@ import { toggleIsExpanded } from './utils';
|
|
|
3
3
|
export { default as TreeView } from './tree-view';
|
|
4
4
|
export { default as StatefulTreeView } from './stateful-tree-view';
|
|
5
5
|
export * from './types';
|
|
6
|
-
export { StyledTreeItemList, StyledTreeItem, StyledItemContent, StyledIconContainer
|
|
6
|
+
export { StyledTreeItemList, StyledTreeItem, StyledItemContent, StyledIconContainer } from './styled-components';
|
|
7
7
|
export { default as TreeLabel } from './tree-label';
|
|
8
8
|
export { default as TreeLabelInteractable } from './tree-label-interactable';
|
|
9
9
|
export { toggleIsExpanded };
|
|
@@ -2,7 +2,7 @@ import { toggleIsExpanded } from './utils';
|
|
|
2
2
|
export { default as TreeView } from './tree-view';
|
|
3
3
|
export { default as StatefulTreeView } from './stateful-tree-view';
|
|
4
4
|
export * from './types';
|
|
5
|
-
export { StyledTreeItemList, StyledTreeItem, StyledItemContent, StyledIconContainer
|
|
5
|
+
export { StyledTreeItemList, StyledTreeItem, StyledItemContent, StyledIconContainer } from './styled-components';
|
|
6
6
|
export { default as TreeLabel } from './tree-label';
|
|
7
7
|
export { default as TreeLabelInteractable } from './tree-label-interactable';
|
|
8
8
|
export { toggleIsExpanded };
|
|
@@ -13,7 +13,7 @@ var TreeLabel = function (_a) {
|
|
|
13
13
|
$isFocusVisible: !!isFocusVisible,
|
|
14
14
|
$hasChildren: !!hasChildren,
|
|
15
15
|
};
|
|
16
|
-
var IconContainerOverride = overrides.IconContainer, ExpandIconOverride = overrides.ExpandIcon, CollapseIconOverride = overrides.CollapseIcon, LeafIconContainerOverride = overrides.LeafIconContainer,
|
|
16
|
+
var IconContainerOverride = overrides.IconContainer, ExpandIconOverride = overrides.ExpandIcon, CollapseIconOverride = overrides.CollapseIcon, LeafIconContainerOverride = overrides.LeafIconContainer, _LeafIconOverride = overrides.LeafIcon, TreeItemContentOverride = overrides.TreeItemContent;
|
|
17
17
|
var _c = __read(useOverrides(IconContainerOverride, StyledIconContainer), 2), IconContainer = _c[0], iconContainerProps = _c[1];
|
|
18
18
|
var _d = __read(useOverrides(ExpandIconOverride, ChevronRight), 2), Right = _d[0], RightProps = _d[1];
|
|
19
19
|
var _e = __read(useOverrides(CollapseIconOverride, ChevronDown), 2), CollapseIcon = _e[0], collpaseProps = _e[1];
|
|
@@ -46,7 +46,7 @@ var TreeNode = /** @class */ (function (_super) {
|
|
|
46
46
|
var _d = __read(getOverrides(TreeItemListOverride, StyledTreeItemList), 2), TreeItemList = _d[0], treeItemListProps = _d[1];
|
|
47
47
|
var _e = __read(getOverrides(TreeItemOverride, StyledTreeItem), 2), TreeItem = _e[0], treeItemProps = _e[1];
|
|
48
48
|
var _f = __read(getOverrides(TreeLabelOverride, StyledTreeLabel), 2), TreeLabel = _f[0], treeLabelProps = _f[1];
|
|
49
|
-
return (_jsxs(TreeItem, __assign({ role: "treeitem", ref: this.treeItemRef, "data-nodeid": getId(node), tabIndex: selectedNodeId === getId(node) ? 0 : -1, onKeyDown: function (e) { return onKeyDown && onKeyDown(e, node); }, onBlur: onBlur, onFocus: this.onFocus, "aria-expanded": isExpanded, "$isLeafNode": !hasChildren, "$node": node }, treeItemProps, { children: [_jsx(TreeLabel, __assign({ onClick: this.onToggle, node: node, hasChildren: hasChildren, isExpanded: isExpanded, isSelected: selectedNodeId === getId(node), isFocusVisible: isFocusVisible, label: label, overrides: overrides }, treeLabelProps)), children && (isExpanded || renderAll) && (_jsx(TreeItemList, __assign({ role: "group", "$indentGuides": !!indentGuides, "$isChildNode": true, "$expanded": !!isExpanded }, treeItemListProps, { children: children.map(function (childNode,
|
|
49
|
+
return (_jsxs(TreeItem, __assign({ role: "treeitem", ref: this.treeItemRef, "data-nodeid": getId(node), tabIndex: selectedNodeId === getId(node) ? 0 : -1, onKeyDown: function (e) { return onKeyDown && onKeyDown(e, node); }, onBlur: onBlur, onFocus: this.onFocus, "aria-expanded": isExpanded, "$isLeafNode": !hasChildren, "$node": node }, treeItemProps, { children: [_jsx(TreeLabel, __assign({ onClick: this.onToggle, node: node, hasChildren: hasChildren, isExpanded: isExpanded, isSelected: selectedNodeId === getId(node), isFocusVisible: isFocusVisible, label: label, overrides: overrides }, treeLabelProps)), children && (isExpanded || renderAll) && (_jsx(TreeItemList, __assign({ role: "group", "$indentGuides": !!indentGuides, "$isChildNode": true, "$expanded": !!isExpanded }, treeItemListProps, { children: children.map(function (childNode, _index) { return (_jsx(TreeNode, { indentGuides: !!indentGuides, renderAll: renderAll, node: childNode, getId: getId, onToggle: onToggle, overrides: overrides, selectedNodeId: selectedNodeId, onKeyDown: onKeyDown, onFocus: onFocus, onBlur: onBlur, addRef: addRef, removeRef: removeRef, isFocusVisible: isFocusVisible }, getId(childNode))); }) })))] })));
|
|
50
50
|
};
|
|
51
51
|
return TreeNode;
|
|
52
52
|
}(React.Component));
|
|
@@ -109,8 +109,7 @@ export default function TreeView(props) {
|
|
|
109
109
|
setSelectedNodeId(getId(data[0]));
|
|
110
110
|
}
|
|
111
111
|
};
|
|
112
|
-
|
|
113
|
-
var onBlur = function (event) {
|
|
112
|
+
var onBlur = function (_event) {
|
|
114
113
|
if (focusVisible) {
|
|
115
114
|
setFocusVisible(false);
|
|
116
115
|
}
|
|
@@ -30,9 +30,7 @@ export var getPrevId = function (nodes, nodeId, parentId, getId) {
|
|
|
30
30
|
if (i === 0) {
|
|
31
31
|
return parentId;
|
|
32
32
|
}
|
|
33
|
-
|
|
34
|
-
return getLastLeafId(nodes[i - 1], getId);
|
|
35
|
-
}
|
|
33
|
+
return getLastLeafId(nodes[i - 1], getId);
|
|
36
34
|
}
|
|
37
35
|
// @ts-ignore
|
|
38
36
|
if (nodes[i].isExpanded && nodes[i].children && nodes[i].children.length) {
|
|
@@ -75,12 +73,10 @@ export var getNextId = function (nodes, nodeId, closestOmmer, getId) {
|
|
|
75
73
|
// @ts-ignore
|
|
76
74
|
return getId(nodes[i].children[0]);
|
|
77
75
|
}
|
|
78
|
-
|
|
76
|
+
if (nodes[i + 1]) {
|
|
79
77
|
return getId(nodes[i + 1]);
|
|
80
78
|
}
|
|
81
|
-
|
|
82
|
-
return closestOmmer;
|
|
83
|
-
}
|
|
79
|
+
return closestOmmer;
|
|
84
80
|
}
|
|
85
81
|
// @ts-ignore
|
|
86
82
|
if (nodes[i].isExpanded && nodes[i].children && nodes[i].children.length) {
|
|
@@ -107,7 +107,7 @@ export function isFocusVisible(event) {
|
|
|
107
107
|
try {
|
|
108
108
|
return event.target.matches(':focus-visible');
|
|
109
109
|
}
|
|
110
|
-
catch (
|
|
110
|
+
catch (_a) {
|
|
111
111
|
// browsers not implementing :focus-visible will throw a SyntaxError
|
|
112
112
|
// we use our own heuristic for those browsers
|
|
113
113
|
// rethrow might be better if it's not the expected error but do we really
|
package/esm/box/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Override } from '../overrides';
|
|
2
|
-
import { SpacewebComponentProps } from '../types';
|
|
1
|
+
import type { Override } from '../overrides';
|
|
2
|
+
import type { SpacewebComponentProps } from '../types';
|
|
3
3
|
export type BoxProps = SpacewebComponentProps & {
|
|
4
4
|
overrides?: {
|
|
5
5
|
Box?: Override<Record<string, any>>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { BreadcrumbEllipsisProps } from './types';
|
|
1
|
+
import type { BreadcrumbEllipsisProps } from './types';
|
|
2
2
|
declare const BreadcrumbEllipsis: ({ focusBreadcrumbContainer, collapsedItems, collapsedItemsTooltip, }: BreadcrumbEllipsisProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default BreadcrumbEllipsis;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { BreadcrumbItemSharedProps, Enhancer } from './types';
|
|
2
|
+
import type { BreadcrumbItemSharedProps, Enhancer } from './types';
|
|
3
3
|
declare const BreadcrumbItem: React.ForwardRefExoticComponent<Omit<import("../link").LinkProps, "onClick"> & {
|
|
4
4
|
isLastChild?: boolean | undefined;
|
|
5
5
|
menuSeparator?: boolean | undefined;
|
|
@@ -7,7 +7,6 @@ import _noop from 'lodash/noop';
|
|
|
7
7
|
import { Typography } from '../typography';
|
|
8
8
|
import { Link } from '../link';
|
|
9
9
|
import BreadcrumbEllipsis from './breadcrumb-ellipsis';
|
|
10
|
-
// hooks
|
|
11
10
|
import { useOverrides, mergeOverrides } from '../overrides';
|
|
12
11
|
import { useStyle } from '../style';
|
|
13
12
|
// styles
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ReactElement } from 'react';
|
|
2
|
-
import { BreadcrumbProps } from './types';
|
|
2
|
+
import type { BreadcrumbProps } from './types';
|
|
3
3
|
declare const Breadcrumb: {
|
|
4
4
|
({ children, separator, gap, maxItems, className, style, overrides, }: BreadcrumbProps): ReactElement;
|
|
5
5
|
displayName: string;
|
|
@@ -11,6 +11,7 @@ import { useBreadcrumbWidths } from './hooks/useBreadCrumbWidths';
|
|
|
11
11
|
import { useLocale } from '../locale';
|
|
12
12
|
// styles
|
|
13
13
|
import { DEFAULT_SEPARATOR, StyledWrapper } from './styled-components';
|
|
14
|
+
import { Box } from '../box';
|
|
14
15
|
var Breadcrumb = function (_a) {
|
|
15
16
|
var children = _a.children, _b = _a.separator, separator = _b === void 0 ? DEFAULT_SEPARATOR : _b, _c = _a.gap, gap = _c === void 0 ? 4 : _c, maxItems = _a.maxItems, className = _a.className, style = _a.style, _d = _a.overrides, overrides = _d === void 0 ? {} : _d;
|
|
16
17
|
var breadCrumb = useLocale().breadCrumb;
|
|
@@ -49,7 +50,7 @@ var Breadcrumb = function (_a) {
|
|
|
49
50
|
var effectiveMaxItems = maxItems || (visibleItemsCount !== null && visibleItemsCount !== void 0 ? visibleItemsCount : 2);
|
|
50
51
|
return renderCondensedBreadcrumbs(Math.max(2, effectiveMaxItems));
|
|
51
52
|
};
|
|
52
|
-
return (_jsx(
|
|
53
|
+
return (_jsx(Box, __assign({ "$as": "nav", className: "w-full flex items-center justify-center" }, { children: _jsx(Root, __assign({ ref: containerRef, "data-testid": "breadcrumb-root", className: className, style: style, tabIndex: -1 }, sharedProps, rootProps, { children: renderBreadcrumbs() })) })));
|
|
53
54
|
};
|
|
54
55
|
Breadcrumb.displayName = 'Breadcrumb';
|
|
55
56
|
Breadcrumb.__standard = 'Component';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type React from 'react';
|
|
3
|
+
import type { Override } from '../overrides';
|
|
4
|
+
import type { LinkProps } from '../link';
|
|
5
|
+
import type { SpacewebComponentProps } from '../types';
|
|
5
6
|
export type Enhancer<SharedProps> = ReactNode | ((props: SharedProps) => ReactNode);
|
|
6
7
|
export type BreadcrumbItemSharedProps = {
|
|
7
8
|
$isLastChild?: boolean;
|
package/esm/button/Button.js
CHANGED
|
@@ -18,7 +18,7 @@ import { useContextualFormProps } from '../form-control/context';
|
|
|
18
18
|
import _omit from 'lodash/omit';
|
|
19
19
|
import { getPaddingStyleVariables } from './helpers';
|
|
20
20
|
var Button = forwardRef(function (props, ref) {
|
|
21
|
-
var _a = props.overrides, overrides = _a === void 0 ? {} : _a, className = props.className, style = props.style, _size = props.size, shape = props.shape, _b = props.variant, variant = _b === void 0 ? 'primary' : _b, _c = props.isLoading, isLoading = _c === void 0 ? false : _c, _intent = props.intent, isSelected = props.isSelected, children = props.children, tooltipContent = props.tooltipContent, _d = props.disabled, disabled = _d === void 0 ? false : _d, fullWidth = props.fullWidth, _e = props.animate, animate = _e === void 0 ? false : _e, dropdownContent = props.dropdownContent, onClick = props.onClick,
|
|
21
|
+
var _a = props.overrides, overrides = _a === void 0 ? {} : _a, className = props.className, style = props.style, _size = props.size, shape = props.shape, _b = props.variant, variant = _b === void 0 ? 'primary' : _b, _c = props.isLoading, isLoading = _c === void 0 ? false : _c, _intent = props.intent, isSelected = props.isSelected, children = props.children, tooltipContent = props.tooltipContent, _d = props.disabled, disabled = _d === void 0 ? false : _d, fullWidth = props.fullWidth, _e = props.animate, animate = _e === void 0 ? false : _e, dropdownContent = props.dropdownContent, onClick = props.onClick, _startEnhancer = props.startEnhancer, _endEnhancer = props.endEnhancer, href = props.href, type = props.type, restProps = __rest(props, ["overrides", "className", "style", "size", "shape", "variant", "isLoading", "intent", "isSelected", "children", "tooltipContent", "disabled", "fullWidth", "animate", "dropdownContent", "onClick", "startEnhancer", "endEnhancer", "href", "type"]);
|
|
22
22
|
var enhancerProps = _omit(props, ['className', 'style']);
|
|
23
23
|
var _f = __read(useState(false), 2), isFocusVisible = _f[0], setIsFocusVisible = _f[1];
|
|
24
24
|
var styleUtils = useStyle();
|
|
@@ -49,7 +49,7 @@ var Button = forwardRef(function (props, ref) {
|
|
|
49
49
|
setIsFocusVisible(true);
|
|
50
50
|
}
|
|
51
51
|
}, []);
|
|
52
|
-
var handleBlur = useCallback(function (
|
|
52
|
+
var handleBlur = useCallback(function (_event) {
|
|
53
53
|
if (isFocusVisible) {
|
|
54
54
|
setIsFocusVisible(false);
|
|
55
55
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { CitationButtonProps } from './types';
|
|
2
|
+
import type { CitationButtonProps } from './types';
|
|
3
3
|
declare const CitationButton: import("react").ForwardRefExoticComponent<CitationButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
4
4
|
export default CitationButton;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
import { ButtonProps, ButtonSharedProps } from './types';
|
|
3
|
-
import { StatefulPopoverProps } from '../popover/types';
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { ButtonProps, ButtonSharedProps } from './types';
|
|
3
|
+
import type { StatefulPopoverProps } from '../popover/types';
|
|
4
4
|
type DropdownEnhancerProps = {
|
|
5
5
|
dropdownContent: StatefulPopoverProps['content'];
|
|
6
6
|
overrides?: ButtonProps['overrides'];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { IconButtonProps } from './types';
|
|
2
|
+
import type { IconButtonProps } from './types';
|
|
3
3
|
declare const IconButton: import("react").ForwardRefExoticComponent<IconButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
4
4
|
export default IconButton;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { IconProps } from '../../icon';
|
|
3
|
-
import { ClassName } from '../../types';
|
|
2
|
+
import type { IconProps } from '../../icon';
|
|
3
|
+
import type { ClassName } from '../../types';
|
|
4
4
|
export declare const getBorderRadiiStyles: (utils: any, props: any) => string;
|
|
5
5
|
export declare const iconButtonStyles: ClassName;
|
|
6
6
|
export declare const renderIconButtonChild: (theme: any, size: any, child: React.ReactElement<IconProps>) => React.ReactElement<IconProps, string | React.JSXElementConstructor<any>> | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ButtonProps, ButtonSharedProps } from '../types';
|
|
2
|
-
import { Size } from '../../types';
|
|
3
|
-
import { StatefulTooltipProps } from '../../tooltip/types';
|
|
1
|
+
import type { ButtonProps, ButtonSharedProps } from '../types';
|
|
2
|
+
import type { Size } from '../../types';
|
|
3
|
+
import type { StatefulTooltipProps } from '../../tooltip/types';
|
|
4
4
|
type BaseIconButtonProps = Omit<ButtonProps, 'size'> & {
|
|
5
5
|
size?: Size;
|
|
6
6
|
bordered?: boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ClassName } from '../../types';
|
|
1
|
+
import type { ClassName } from '../../types';
|
|
2
2
|
export declare const iconTextButtonStyle: ClassName;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import cx from '../../classNames';
|
|
2
|
-
var getVariantStyles = function (
|
|
3
|
-
var
|
|
4
|
-
var $iconTextVariant = _b.$iconTextVariant, $isSelected = _b.$isSelected;
|
|
2
|
+
var getVariantStyles = function (_, _a) {
|
|
3
|
+
var $iconTextVariant = _a.$iconTextVariant, $isSelected = _a.$isSelected;
|
|
5
4
|
return $iconTextVariant === 'default'
|
|
6
5
|
? cx($isSelected ? 'spr-text-04 spr-icon-secondary' : 'spr-text-01', 'active:spr-text-04 bg-transparent')
|
|
7
6
|
: 'bg-transparent';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ComponentType } from 'react';
|
|
2
|
-
import { ButtonProps, ButtonSharedProps } from '../types';
|
|
3
|
-
import { IconProps } from '../../icon';
|
|
1
|
+
import type { ComponentType } from 'react';
|
|
2
|
+
import type { ButtonProps, ButtonSharedProps } from '../types';
|
|
3
|
+
import type { IconProps } from '../../icon';
|
|
4
4
|
export type Variant = 'default' | 'bulk';
|
|
5
5
|
export type IconTextButtonProps = Omit<ButtonProps, 'variant'> & {
|
|
6
6
|
icon?: ComponentType<React.PropsWithChildren<IconProps>>;
|
package/esm/button/helpers.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Size, StyleFn, StyleObject, StyleUtils } from '../types';
|
|
2
|
-
import { ButtonSharedProps, ButtonStyleParams } from './types';
|
|
3
|
-
import { Theme } from '@sprinklrjs/spaceweb-themes/types';
|
|
1
|
+
import type { Size, StyleFn, StyleObject, StyleUtils } from '../types';
|
|
2
|
+
import type { ButtonSharedProps, ButtonStyleParams } from './types';
|
|
3
|
+
import type { Theme } from '@sprinklrjs/spaceweb-themes/types';
|
|
4
4
|
/**
|
|
5
5
|
* className fns that we know will always return a string; used since we directly combine these in template literals
|
|
6
6
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ClassName, StyleFn } from '../types';
|
|
2
|
-
import { ButtonSharedProps } from './types';
|
|
1
|
+
import type { ClassName, StyleFn } from '../types';
|
|
2
|
+
import type { ButtonSharedProps } from './types';
|
|
3
3
|
export declare const getBorderRadiiStyles: ({ theme, px2rem }: {
|
|
4
4
|
theme: any;
|
|
5
5
|
px2rem: any;
|
package/esm/button/types.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Override } from '../overrides';
|
|
3
|
-
import { TooltipProps } from '../tooltip/types';
|
|
4
|
-
import { Intent, Variant, SpacewebComponentProps, Size } from '../types';
|
|
5
|
-
import {
|
|
6
|
-
import { StatefulPopoverProps } from '../popover/types';
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { Override } from '../overrides';
|
|
3
|
+
import type { TooltipProps } from '../tooltip/types';
|
|
4
|
+
import type { Intent, Variant, SpacewebComponentProps, Size } from '../types';
|
|
5
|
+
import type { StatefulPopoverProps } from '../popover/types';
|
|
7
6
|
export type Shape = 'default' | 'round' | 'square' | 'pill';
|
|
8
7
|
export type { Size };
|
|
9
8
|
export type ButtonSharedProps = {
|
|
@@ -43,7 +42,7 @@ export type ButtonProps = SpacewebComponentProps<{
|
|
|
43
42
|
disabled?: boolean;
|
|
44
43
|
fullWidth?: boolean;
|
|
45
44
|
autoFocus?: boolean;
|
|
46
|
-
role?: AriaRole | undefined;
|
|
45
|
+
role?: React.AriaRole | undefined;
|
|
47
46
|
href?: string;
|
|
48
47
|
target?: string;
|
|
49
48
|
rel?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ButtonSharedProps } from '../button';
|
|
1
|
+
import type { ButtonSharedProps } from '../button';
|
|
2
2
|
import type { ClassNameStyleFn } from '../types';
|
|
3
3
|
import type { ButtonGroupSharedProps } from './types';
|
|
4
|
-
import { StyleObject } from 'styletron-standard';
|
|
4
|
+
import type { StyleObject } from 'styletron-standard';
|
|
5
5
|
/** Get size dependent atomic classes for ButtonGroup */
|
|
6
6
|
export declare const getButtonGroupSizeClasses: ClassNameStyleFn<ButtonGroupSharedProps>;
|
|
7
7
|
/** Get size dependent atomic classes for child buttons of ButtonGroup */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { ClassName, StyleUtils } from '../types';
|
|
3
|
-
import { ButtonGroupChildProps, ButtonGroupProps } from './types';
|
|
4
|
-
import { ButtonSharedProps } from '../button';
|
|
2
|
+
import type { ClassName, StyleUtils } from '../types';
|
|
3
|
+
import type { ButtonGroupChildProps, ButtonGroupProps } from './types';
|
|
4
|
+
import type { ButtonSharedProps } from '../button';
|
|
5
5
|
export declare const StyledRoot: import("../style/styled").StyledComponent;
|
|
6
6
|
export declare const getButtonOverrides: (utils: StyleUtils, props: ButtonSharedProps) => ClassName;
|
|
7
7
|
export declare const renderButtonGroupChild: (buttonGroupProps: Omit<{
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Overrides, Override } from '../overrides';
|
|
3
|
-
import { Variant, Size, ClassName, SpacewebComponentProps, Intent } from '../types';
|
|
4
|
-
import { Variant as IconTextButtonVariant } from '../button/IconTextButton';
|
|
5
|
-
import { Shape, ButtonSharedProps } from '../button';
|
|
6
|
-
import { AriaRole } from 'react';
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { Overrides, Override } from '../overrides';
|
|
3
|
+
import type { Variant, Size, ClassName, SpacewebComponentProps, Intent } from '../types';
|
|
4
|
+
import type { Variant as IconTextButtonVariant } from '../button/IconTextButton';
|
|
5
|
+
import type { Shape, ButtonSharedProps } from '../button';
|
|
7
6
|
type ButtonGroupOverrides = {
|
|
8
7
|
Root?: Override<any>;
|
|
9
8
|
};
|
|
@@ -26,7 +25,7 @@ export type ButtonGroupProps = SpacewebComponentProps<{
|
|
|
26
25
|
intent?: Intent;
|
|
27
26
|
variant?: Variant | IconTextButtonVariant;
|
|
28
27
|
activateOnFocus?: boolean;
|
|
29
|
-
role?: AriaRole | undefined;
|
|
28
|
+
role?: React.AriaRole | undefined;
|
|
30
29
|
onFocus?: (event: React.FocusEvent<HTMLElement>) => void;
|
|
31
30
|
onBlur?: (event: React.FocusEvent<HTMLElement>) => void;
|
|
32
31
|
}>;
|
|
@@ -46,7 +45,7 @@ export type ButtonGroupChildProps = {
|
|
|
46
45
|
onKeyDown?: (event: React.KeyboardEvent<HTMLButtonElement>) => void;
|
|
47
46
|
tabIndex?: number;
|
|
48
47
|
'aria-selected'?: boolean;
|
|
49
|
-
role?: AriaRole;
|
|
48
|
+
role?: React.AriaRole;
|
|
50
49
|
};
|
|
51
50
|
export type StatefulButtonGroupProps = ButtonGroupProps & {
|
|
52
51
|
initialState?: number[];
|
package/esm/checkbox/checkbox.js
CHANGED
|
@@ -106,9 +106,7 @@ var Checkbox = function (_a) {
|
|
|
106
106
|
$outlineWidth: $outlineWidth,
|
|
107
107
|
$labelPlacement: labelPlacement,
|
|
108
108
|
};
|
|
109
|
-
var labelComp = children && (_jsx(Label, __assign({}, sharedProps, labelProps, { children: containsInteractiveElement ? (
|
|
110
|
-
// eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions -- prevents the event from bubbling up to the label and moving focus to the radio button
|
|
111
|
-
_jsx(Box, __assign({ onClick: function (e) { return e.preventDefault(); } }, { children: children }))) : (children) })));
|
|
109
|
+
var labelComp = children && (_jsx(Label, __assign({}, sharedProps, labelProps, { children: containsInteractiveElement ? _jsx(Box, __assign({ onClick: function (e) { return e.preventDefault(); } }, { children: children })) : children })));
|
|
112
110
|
var getCheckmarkIcon = function () {
|
|
113
111
|
if (isIndeterminate) {
|
|
114
112
|
return _jsx(Indeterminate, { size: size === 'medium' || size === 'large' ? 10 : 8 });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StatefulContainerProps } from '../types';
|
|
1
|
+
import type { StatefulContainerProps } from '../types';
|
|
2
2
|
import type { ChangeEvent, FocusEvent, MouseEvent } from 'react';
|
|
3
3
|
declare const useStatefulCheckbox: ({ initialState, stateReducer, onChange, onMouseEnter, onMouseLeave, onFocus, onBlur, ...restProps }: StatefulContainerProps) => {
|
|
4
4
|
checked: boolean | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { StyleUtils } from '../types';
|
|
2
|
-
import { SharedProps } from './types';
|
|
1
|
+
import type { StyleUtils } from '../types';
|
|
2
|
+
import type { SharedProps } from './types';
|
|
3
3
|
export declare const getCheckmarkBorderColor: (utils: StyleUtils, props: SharedProps) => string;
|
|
4
4
|
export declare const getCheckmarkBackgroundColor: (utils: StyleUtils, props: SharedProps) => string;
|
|
5
5
|
export declare const StyledRoot: import("../style").StyledComponent;
|
|
@@ -23,7 +23,7 @@ export var ColorPalette = memo(function (_a) {
|
|
|
23
23
|
var colorPalette = _colorPalette !== null && _colorPalette !== void 0 ? _colorPalette : defaultColorPalette;
|
|
24
24
|
var _b = __read(useOverrides(overrides === null || overrides === void 0 ? void 0 : overrides.Swatches, Grid), 2), Swatches = _b[0], swatchesProps = _b[1];
|
|
25
25
|
var _c = __read(useOverrides(overrides === null || overrides === void 0 ? void 0 : overrides.Swatch, DefaultSwatch), 2), Swatch = _c[0], swatchProps = _c[1];
|
|
26
|
-
return (_jsxs(Box, __assign({ className: "min-h-40" }, { children: [presets.map(function (preset,
|
|
26
|
+
return (_jsxs(Box, __assign({ className: "min-h-40" }, { children: [presets.map(function (preset, _index) {
|
|
27
27
|
var _a;
|
|
28
28
|
return ((_a = preset.colors) === null || _a === void 0 ? void 0 : _a.length) ? (_jsxs(Fragment, { children: [_jsx(Typography, __assign({ className: "spr-text-primary", variant: "body-md", weight: "semibold" }, { children: preset.label })), _jsx(Swatches, __assign({ className: "mb-4 mt-2", cols: SWATCHES_PER_ROW, colGap: 1, rowGap: 1 }, swatchesProps, { children: preset.colors.map(function (color) { return (_jsx(Swatch, __assign({ color: color, onChange: onChange, isSelected: selectedColor === color || (!selectedColor && color === RESET_COLOR) }, swatchProps, { className: ['w-6 h-6', swatchProps === null || swatchProps === void 0 ? void 0 : swatchProps.className] }), color)); }) }))] }, preset.label)) : null;
|
|
29
29
|
}), (colorPalette === null || colorPalette === void 0 ? void 0 : colorPalette.length) ? (_jsx(Swatches, __assign({ cols: SWATCHES_PER_ROW, colGap: 1, rowGap: 1 }, swatchesProps, { children: colorPalette.map(function (color) { return (_jsx(Swatch, __assign({ color: color, overrides: overrides, onChange: onChange, isSelected: selectedColor === color }, swatchProps, { className: ['w-6 h-6', swatchProps === null || swatchProps === void 0 ? void 0 : swatchProps.className] }), color)); }) }))) : null] })));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
import { ClassName, Styles } from '../types';
|
|
3
|
-
import { SwatchColor } from './types';
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { ClassName, Styles } from '../types';
|
|
3
|
+
import type { SwatchColor } from './types';
|
|
4
4
|
export type SwatchProps = {
|
|
5
5
|
color: SwatchColor;
|
|
6
6
|
isSelected: boolean;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Override } from '../overrides';
|
|
2
2
|
import type { ColorResult, RGBColor } from 'react-color';
|
|
3
|
-
import { GRADIENT_TYPE } from './constants';
|
|
3
|
+
import type { GRADIENT_TYPE } from './constants';
|
|
4
4
|
import type { SelectProps } from '../select';
|
|
5
5
|
import type { BoxProps } from '../box';
|
|
6
|
-
import { ReactElement } from 'react';
|
|
6
|
+
import type { ReactElement } from 'react';
|
|
7
7
|
export type ColorPickerOverrides = {
|
|
8
8
|
Root?: Override<Record<string, any>>;
|
|
9
9
|
Heading?: Override<Record<string, any>>;
|
package/esm/currency/types.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { CurrencyProps } from './types';
|
|
1
|
+
import type { CurrencyProps } from './types';
|
|
2
2
|
export declare const useCurrency: ({ value, currency, variant, currencyOptions, }: CurrencyProps) => string;
|
package/esm/currency/utils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NumberVariant } from '../utils/intlNumberFormatUtils/types';
|
|
1
|
+
import type { NumberVariant } from '../utils/intlNumberFormatUtils/types';
|
|
2
2
|
export declare const getFormattedCurrency: ({ value, locale, variant, currencyOptions, currency, }: {
|
|
3
3
|
value: number;
|
|
4
4
|
locale: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
2
|
import type { DateInputProps } from './types';
|
|
3
3
|
export declare const DateInput: {
|
|
4
4
|
({ adapter, formatString: _formatString, onChange, value: _value, locale, weekStartsOn, overrides, minDate: _minDate, maxDate: _maxDate, timeSelect, showTimezone, timezone, timezoneOptions, onFocus: _onFocus, onBlur: _onBlur, onKeyDown: _onKeyDown, placeholder, getTimeRangesForDate, onOpen, onClose, inputToDateParser, disableTimezoneSwitch, disableOutOfBoundaryDateAdaptation, ...restProps }: DateInputProps): ReactElement;
|