@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
package/ClientOnly.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Created by Aneree on 03/11/20.
|
|
3
3
|
*/
|
|
4
|
-
import { ReactElement } from 'react';
|
|
5
|
-
import { AsyncSelectProps } from './types';
|
|
4
|
+
import type { ReactElement } from 'react';
|
|
5
|
+
import type { AsyncSelectProps } from './types';
|
|
6
6
|
export declare const AsyncSelect: {
|
|
7
7
|
(props: AsyncSelectProps): ReactElement;
|
|
8
8
|
__standard: string;
|
|
@@ -6,7 +6,7 @@ var jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
6
6
|
var select_1 = require("../select");
|
|
7
7
|
var useAsyncSelect_1 = require("./hooks/useAsyncSelect");
|
|
8
8
|
var AsyncSelect = function (props) {
|
|
9
|
-
var _a = (0, useAsyncSelect_1.useAsyncSelect)(props),
|
|
9
|
+
var _a = (0, useAsyncSelect_1.useAsyncSelect)(props), _groupConfigWithCount = _a.groupConfigWithCount, _resetAsyncSelectPagination = _a.resetAsyncSelectPagination, _updateOptions = _a.updateOptions, _updateResultCountMap = _a.updateResultCountMap, selectProps = tslib_1.__rest(_a, ["groupConfigWithCount", "resetAsyncSelectPagination", "updateOptions", "updateResultCountMap"]);
|
|
10
10
|
return (0, jsx_runtime_1.jsx)(select_1.Select, tslib_1.__assign({}, selectProps));
|
|
11
11
|
};
|
|
12
12
|
exports.AsyncSelect = AsyncSelect;
|
|
@@ -6,7 +6,7 @@ var jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
6
6
|
var select_1 = require("../select");
|
|
7
7
|
var useGroupedAsyncSelect_1 = require("./hooks/useGroupedAsyncSelect");
|
|
8
8
|
var GroupedAsyncSelect = function (props) {
|
|
9
|
-
var _a = (0, useGroupedAsyncSelect_1.useGroupedAsyncSelect)(props),
|
|
9
|
+
var _a = (0, useGroupedAsyncSelect_1.useGroupedAsyncSelect)(props), _groupConfigWithCount = _a.groupConfigWithCount, _resetAsyncSelectPagination = _a.resetAsyncSelectPagination, _updateOptions = _a.updateOptions, _updateResultCountMap = _a.updateResultCountMap, selectProps = tslib_1.__rest(_a, ["groupConfigWithCount", "resetAsyncSelectPagination", "updateOptions", "updateResultCountMap"]);
|
|
10
10
|
return (0, jsx_runtime_1.jsx)(select_1.Select, tslib_1.__assign({}, selectProps));
|
|
11
11
|
};
|
|
12
12
|
exports.GroupedAsyncSelect = GroupedAsyncSelect;
|
|
@@ -13,7 +13,7 @@ type UseAsyncOptionsArgs = {
|
|
|
13
13
|
loadOnMount?: boolean;
|
|
14
14
|
refetchOnGroupConfigChange?: boolean;
|
|
15
15
|
};
|
|
16
|
-
export declare const useAsyncOptions: ({ loadOptions, loadOnMount, refetchOnGroupConfigChange, groupConfig, minimumInput,
|
|
16
|
+
export declare const useAsyncOptions: ({ loadOptions, loadOnMount, refetchOnGroupConfigChange, groupConfig, minimumInput, paginationBuffer, setOptions, selectedOptions, moveSelectedOptionsToTop, }: UseAsyncOptionsArgs) => {
|
|
17
17
|
onPaginate: (event: import("react").UIEvent<HTMLElement, UIEvent>, itemGroup?: string) => void;
|
|
18
18
|
onInputChange: ({ value }: import("../types").CustomInputEvent) => void;
|
|
19
19
|
groupConfigWithCount: {
|
|
@@ -6,12 +6,11 @@ var react_1 = require("react");
|
|
|
6
6
|
//hooks
|
|
7
7
|
var useLatest_1 = require("../../hooks/useLatest");
|
|
8
8
|
var useAsyncOptionHandlers_1 = require("./useAsyncOptionHandlers");
|
|
9
|
-
var default_props_1 = tslib_1.__importDefault(require("../../select/default-props"));
|
|
10
9
|
var useAsyncOptions = function (_a) {
|
|
11
|
-
var loadOptions = _a.loadOptions, _b = _a.loadOnMount, loadOnMount = _b === void 0 ? true : _b, _c = _a.refetchOnGroupConfigChange, refetchOnGroupConfigChange = _c === void 0 ? false : _c, groupConfig = _a.groupConfig, _d = _a.minimumInput, minimumInput = _d === void 0 ? 0 : _d,
|
|
10
|
+
var loadOptions = _a.loadOptions, _b = _a.loadOnMount, loadOnMount = _b === void 0 ? true : _b, _c = _a.refetchOnGroupConfigChange, refetchOnGroupConfigChange = _c === void 0 ? false : _c, groupConfig = _a.groupConfig, _d = _a.minimumInput, minimumInput = _d === void 0 ? 0 : _d, paginationBuffer = _a.paginationBuffer, setOptions = _a.setOptions, selectedOptions = _a.selectedOptions, moveSelectedOptionsToTop = _a.moveSelectedOptionsToTop;
|
|
12
11
|
var loadOnMountRef = (0, useLatest_1.useLatest)(loadOnMount);
|
|
13
|
-
var
|
|
14
|
-
var
|
|
12
|
+
var _e = tslib_1.__read((0, react_1.useState)(loadOnMount), 2), isLoading = _e[0], setIsLoading = _e[1];
|
|
13
|
+
var _f = (0, useAsyncOptionHandlers_1.useAsyncOptionHandlers)({
|
|
15
14
|
isLoading: isLoading,
|
|
16
15
|
setOptions: setOptions,
|
|
17
16
|
loadOptions: loadOptions,
|
|
@@ -22,7 +21,7 @@ var useAsyncOptions = function (_a) {
|
|
|
22
21
|
selectedOptions: selectedOptions,
|
|
23
22
|
moveSelectedOptionsToTop: moveSelectedOptionsToTop,
|
|
24
23
|
refetchOnGroupConfigChange: refetchOnGroupConfigChange,
|
|
25
|
-
}), fetchOptions =
|
|
24
|
+
}), fetchOptions = _f.fetchOptions, onPaginate = _f.onPaginate, onInputChange = _f.onInputChange, resultCountMap = _f.resultCountMap, setResultCountMap = _f.setResultCountMap, resetAsyncSelectPagination = _f.resetAsyncSelectPagination, isSearchPending = _f.isSearchPending;
|
|
26
25
|
/******************************************* HANDLING FETCH ON MOUNT ************************************************/
|
|
27
26
|
(0, react_1.useEffect)(function () {
|
|
28
27
|
if (loadOnMountRef.current) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { AsyncSelectProps } from '../types';
|
|
2
|
+
import type { AsyncSelectProps } from '../types';
|
|
3
3
|
export declare const useAsyncSelect: ({ loadOptions, initialOptions, resolveSelectedOptions, value, hideSelectAll, ...restProps }: AsyncSelectProps) => {
|
|
4
4
|
hideSelectAll: boolean;
|
|
5
5
|
children?: import("react").ReactNode | ((args: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AsyncSelectProps, GroupedAsyncSelectProps } from '../types';
|
|
1
|
+
import type { AsyncSelectProps, GroupedAsyncSelectProps } from '../types';
|
|
2
2
|
type useAsyncSelectAdpaterProps = {
|
|
3
3
|
loadOptions: AsyncSelectProps['loadOptions'];
|
|
4
4
|
resolveSelectedOptions: AsyncSelectProps['resolveSelectedOptions'];
|
|
@@ -55,7 +55,7 @@ var useBaseAsyncSelect = function (params) {
|
|
|
55
55
|
loadedOptions = _a.sent();
|
|
56
56
|
groupedOptions = {};
|
|
57
57
|
loadedOptions.groups.forEach(function (_a) {
|
|
58
|
-
var _options = _a.options,
|
|
58
|
+
var _options = _a.options, _complete = _a.complete, group = _a.group, _count = _a.count;
|
|
59
59
|
groupedOptions[group] = _options;
|
|
60
60
|
});
|
|
61
61
|
setAllOptionsMap &&
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Options } from '../../baseui/select';
|
|
2
|
-
import { AsyncSelectProps, SetStateFunc } from '../types';
|
|
1
|
+
import type { Options } from '../../baseui/select';
|
|
2
|
+
import type { AsyncSelectProps, SetStateFunc } from '../types';
|
|
3
3
|
export declare const useCreateOption: ({ createOption: propsCreateOption, labelKey, valueKey, setIsLoading, }: {
|
|
4
4
|
createOption?: AsyncSelectProps['createOption'];
|
|
5
5
|
labelKey: string;
|
|
@@ -9,7 +9,7 @@ var helpers_1 = require("../helpers");
|
|
|
9
9
|
var useCreateOption = function (_a) {
|
|
10
10
|
var propsCreateOption = _a.createOption, labelKey = _a.labelKey, valueKey = _a.valueKey, setIsLoading = _a.setIsLoading;
|
|
11
11
|
var createOption = (0, react_1.useCallback)(function (label) { return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
12
|
-
var createdOptions
|
|
12
|
+
var createdOptions;
|
|
13
13
|
var _a;
|
|
14
14
|
return tslib_1.__generator(this, function (_b) {
|
|
15
15
|
switch (_b.label) {
|
|
@@ -19,7 +19,7 @@ var useCreateOption = function (_a) {
|
|
|
19
19
|
}
|
|
20
20
|
_b.label = 1;
|
|
21
21
|
case 1:
|
|
22
|
-
_b.trys.push([1, 3, 4
|
|
22
|
+
_b.trys.push([1, , 3, 4]);
|
|
23
23
|
setIsLoading(true);
|
|
24
24
|
return [4 /*yield*/, propsCreateOption(label)];
|
|
25
25
|
case 2:
|
|
@@ -30,12 +30,9 @@ var useCreateOption = function (_a) {
|
|
|
30
30
|
}));
|
|
31
31
|
return [2 /*return*/, createdOptions];
|
|
32
32
|
case 3:
|
|
33
|
-
err_1 = _b.sent();
|
|
34
|
-
throw err_1;
|
|
35
|
-
case 4:
|
|
36
33
|
setIsLoading(false);
|
|
37
34
|
return [7 /*endfinally*/];
|
|
38
|
-
case
|
|
35
|
+
case 4: return [2 /*return*/];
|
|
39
36
|
}
|
|
40
37
|
});
|
|
41
38
|
}); }, [labelKey, propsCreateOption, setIsLoading, valueKey]);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Locale } from '../../locale';
|
|
2
|
-
import { GroupedAsyncSelectProps } from '../types';
|
|
3
|
-
import { UseAsyncSelectParams } from './useBaseAsyncSelect';
|
|
1
|
+
import type { Locale } from '../../locale';
|
|
2
|
+
import type { GroupedAsyncSelectProps } from '../types';
|
|
3
|
+
import type { UseAsyncSelectParams } from './useBaseAsyncSelect';
|
|
4
4
|
type useGroupAsyncSelectAdapterProps = {
|
|
5
5
|
onChange: GroupedAsyncSelectProps['onChange'];
|
|
6
6
|
valueKey: GroupedAsyncSelectProps['valueKey'];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { GroupedAsyncSelectProps } from '../types';
|
|
2
|
+
import type { GroupedAsyncSelectProps } from '../types';
|
|
3
3
|
export declare const useGroupedAsyncSelect: ({ onChange, showSelectAll, selectAllSelected, selectOnTab, ...restProps }: GroupedAsyncSelectProps) => {
|
|
4
4
|
'aria-label': string;
|
|
5
5
|
scrollContainer?: "menuContainer" | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { AsyncSelectProps } from '../types';
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { AsyncSelectProps } from '../types';
|
|
3
3
|
type InputEventHandler = React.FormEventHandler<HTMLInputElement>;
|
|
4
4
|
type OnInputChange = AsyncSelectProps['onInputChange'];
|
|
5
5
|
interface UseInputChangeHandlerArgs {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Created by Aneree on 15/01/21.
|
|
3
3
|
*/
|
|
4
|
-
import { MutableRefObject } from 'react';
|
|
5
|
-
import { Option } from '../../select';
|
|
6
|
-
import { AllOptionsMap, GroupedOptions, GroupedValue, Id, SetStateFunc } from '../types';
|
|
4
|
+
import type { MutableRefObject } from 'react';
|
|
5
|
+
import type { Option } from '../../select';
|
|
6
|
+
import type { AllOptionsMap, GroupedOptions, GroupedValue, Id, SetStateFunc } from '../types';
|
|
7
7
|
interface UseResolveSelectedOptionsArgs {
|
|
8
8
|
groupedValue?: GroupedValue;
|
|
9
9
|
valueKey: string;
|
|
@@ -2,9 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.useResolveSelectedOptions = void 0;
|
|
4
4
|
var tslib_1 = require("tslib");
|
|
5
|
-
/**
|
|
6
|
-
* Created by Aneree on 15/01/21.
|
|
7
|
-
*/
|
|
8
5
|
var react_1 = require("react");
|
|
9
6
|
var forEach_1 = tslib_1.__importDefault(require("lodash/forEach"));
|
|
10
7
|
var isEmpty_1 = tslib_1.__importDefault(require("lodash/isEmpty"));
|
|
@@ -25,7 +22,8 @@ var useResolveSelectedOptions = function (_a) {
|
|
|
25
22
|
if (!shouldCalculateUnresolvedValues) {
|
|
26
23
|
return;
|
|
27
24
|
}
|
|
28
|
-
var unresolvedGroupedValueKeys = {}
|
|
25
|
+
var unresolvedGroupedValueKeys = {};
|
|
26
|
+
var hasUnresolvedValues = false;
|
|
29
27
|
(0, forEach_1.default)(groupedValue, function (values, groupId) {
|
|
30
28
|
unresolvedGroupedValueKeys[groupId] = (values !== null && values !== void 0 ? values : [])
|
|
31
29
|
.map(function (valueObjOrId) { return ((0, isObject_1.default)(valueObjOrId) ? valueObjOrId[valueKey] : valueObjOrId); })
|
package/asyncSelect/types.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Created by Aneree on 03/11/20.
|
|
3
3
|
*/
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
export type SetStateFunc<S> = Dispatch<SetStateAction<S>>;
|
|
4
|
+
import type * as React from 'react';
|
|
5
|
+
import type { Id, OnChangeParams, Option, SelectProps, Value } from '../select/types';
|
|
6
|
+
import type { Merge, SimpleUnionOmit } from '../type-utils';
|
|
7
|
+
export type SetStateFunc<S> = React.Dispatch<React.SetStateAction<S>>;
|
|
9
8
|
export type AllOptionsMap = Record<Id, Option>;
|
|
10
9
|
export type GroupedOptions = Record<string, Array<Option>>;
|
|
11
10
|
export type LoadOptions = (input: string, groupFilters: {
|
|
@@ -22,7 +21,7 @@ export type LoadOptions = (input: string, groupFilters: {
|
|
|
22
21
|
export type AsyncSelectValue = Array<Id | Option> | Value;
|
|
23
22
|
type BaseAsyncSelectProps = Merge<SimpleUnionOmit<SelectProps, 'isLoading' | 'scrollContainer'>, {
|
|
24
23
|
paginationBuffer?: number;
|
|
25
|
-
searchingText?: ReactNode;
|
|
24
|
+
searchingText?: React.ReactNode;
|
|
26
25
|
minimumInput?: number;
|
|
27
26
|
debounceInterval?: number;
|
|
28
27
|
loadOnFocus?: boolean;
|
package/avatar/avatar.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
import { AvatarProps } from '../types';
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { AvatarProps } from '../types';
|
|
3
3
|
export declare const GridAvatarCell: ({ index, childrenToRender, totalChildren, avatarSizeInPixels, }: {
|
|
4
4
|
index: number;
|
|
5
5
|
childrenToRender: ReactElement<AvatarProps>[];
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.GridAvatarCell = void 0;
|
|
4
4
|
var tslib_1 = require("tslib");
|
|
5
5
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
|
-
// libs
|
|
7
6
|
var react_1 = require("react");
|
|
8
7
|
// components
|
|
9
8
|
var grid_1 = require("../../grid");
|
|
@@ -2,11 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
var tslib_1 = require("tslib");
|
|
4
4
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
// libs
|
|
6
5
|
var react_1 = require("react");
|
|
7
6
|
// components
|
|
8
7
|
var styled_component_1 = require("../styled-component");
|
|
9
|
-
// utils
|
|
10
8
|
var overrides_1 = require("../../overrides");
|
|
11
9
|
// constants
|
|
12
10
|
var constants_1 = require("../constants");
|
package/avatar/constants.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactElement, ReactNode } from 'react';
|
|
2
|
-
import { AvatarGroupOverrides, AvatarProps, Size } from '../types';
|
|
1
|
+
import type { ReactElement, ReactNode } from 'react';
|
|
2
|
+
import type { AvatarGroupOverrides, AvatarProps, Size } from '../types';
|
|
3
3
|
export declare const getFontSize: (size: number | Size) => string;
|
|
4
4
|
export declare const useAvatarGroupChildren: ({ children, max, overrides, size, variant, }: {
|
|
5
5
|
children: ReactNode;
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.useAvatarGroupChildren = exports.getFontSize = void 0;
|
|
4
4
|
var tslib_1 = require("tslib");
|
|
5
5
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
|
-
// libs
|
|
7
6
|
var react_1 = require("react");
|
|
8
7
|
// hooks
|
|
9
8
|
var style_1 = require("../../style");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Size } from './types';
|
|
1
|
+
import type { Size } from './types';
|
|
2
2
|
export declare const getAvatarSize: (size: Size | number) => string;
|
|
3
3
|
export declare const getAvatarBorderRadius: (size: Size | undefined) => string;
|
|
4
4
|
export declare const getFontSize: (size: number | Size, isSingleLetterInitial: boolean) => string;
|
|
@@ -18,9 +18,7 @@ var getFontSize = function (size, isSingleLetterInitial) {
|
|
|
18
18
|
if (isSingleLetterInitial) {
|
|
19
19
|
return _size > 17 ? "".concat(Math.max(13, _size * 0.6), "px") : "".concat(_size * 0.75, "px");
|
|
20
20
|
}
|
|
21
|
-
|
|
22
|
-
return "".concat(_size / 2, "px");
|
|
23
|
-
}
|
|
21
|
+
return "".concat(_size / 2, "px");
|
|
24
22
|
};
|
|
25
23
|
exports.getFontSize = getFontSize;
|
|
26
24
|
exports.StyledAvatarGroup = (0, styled_1.default)('div', 'flex');
|
package/avatar/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { Override } from '../overrides';
|
|
3
|
-
import { SpacewebComponentProps } from '../types';
|
|
2
|
+
import type { Override } from '../overrides';
|
|
3
|
+
import type { SpacewebComponentProps } from '../types';
|
|
4
4
|
export type Shape = 'circle' | 'rectangle';
|
|
5
5
|
export type Spacing = 'sm' | 'md' | 'none' | 'lg';
|
|
6
6
|
/** @deprecated */
|
package/avatar/useAvatarColor.js
CHANGED
|
@@ -13,7 +13,6 @@ var getRandomBgColor = function () {
|
|
|
13
13
|
//NOTE: Hash logic based on https://werxltd.com/wp/2010/05/13/javascript-implementation-of-javas-string-hashcode-method/
|
|
14
14
|
var getColorForName = function (name) {
|
|
15
15
|
var hash = 0;
|
|
16
|
-
// eslint-disable-next-line no-plusplus
|
|
17
16
|
for (var i = 0; i < name.length; i++) {
|
|
18
17
|
var chr = name.charCodeAt(i);
|
|
19
18
|
hash = (hash << 5) - hash + chr; // eslint-disable-line no-bitwise
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.cleanupDisplayName = void 0;
|
|
4
|
-
var UNWANTED_ENCLOSURES_REGEX = /[
|
|
4
|
+
var UNWANTED_ENCLOSURES_REGEX = /[[({][^\]})]*[\])}]/g;
|
|
5
5
|
/**
|
|
6
6
|
* Regular expression matching special ASCII characters except space, plus some unicode special characters.
|
|
7
7
|
* Applies after unwanted enclosures have been removed
|
|
8
8
|
*/
|
|
9
|
-
var UNWANTED_CHARS_REGEX = /[\0-\u001F
|
|
9
|
+
var UNWANTED_CHARS_REGEX = /[\0-\u001F!-/:-@[-`{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g;
|
|
10
10
|
/** Regular expression matching one or more spaces. */
|
|
11
11
|
var MULTIPLE_WHITESPACES_REGEX = /\s+/g;
|
|
12
12
|
var cleanupDisplayName = function (displayName) {
|
package/badge/badge.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PropsWithChildren, ReactElement } from 'react';
|
|
2
|
-
import { BadgeProps } from './types';
|
|
1
|
+
import type { PropsWithChildren, ReactElement } from 'react';
|
|
2
|
+
import type { BadgeProps } from './types';
|
|
3
3
|
declare const Badge: {
|
|
4
4
|
({ children, overrides, content, size, intent, horizontalPosition, verticalPosition, overlap, }: PropsWithChildren<BadgeProps>): ReactElement;
|
|
5
5
|
__standard: string;
|
package/badge/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Override } from '../overrides/types';
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { Override } from '../overrides/types';
|
|
3
3
|
export type Intent = 'success' | 'error' | 'warning' | 'neutral' | 'info';
|
|
4
4
|
export type Overlap = 'circle' | 'rectangle';
|
|
5
5
|
export type Size = 'sm' | 'lg' | 'small' | 'medium' | 'large';
|
package/banner/banner.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { BannerProps } from './types';
|
|
2
|
+
import type { BannerProps } from './types';
|
|
3
3
|
declare const _default: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<BannerProps & import("react").RefAttributes<HTMLElement>>>;
|
|
4
4
|
export default _default;
|
package/banner/banner.js
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
var tslib_1 = require("tslib");
|
|
4
4
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
// libs
|
|
6
5
|
var react_1 = require("react");
|
|
7
6
|
var noop_1 = tslib_1.__importDefault(require("lodash/noop"));
|
|
8
7
|
// components
|
|
@@ -28,6 +27,7 @@ var themeHelpers_1 = require("../helpers/themeHelpers");
|
|
|
28
27
|
// constants
|
|
29
28
|
var styled_components_1 = require("../link/styled-components");
|
|
30
29
|
var cvaConfig_1 = require("./cvaConfig");
|
|
30
|
+
var box_1 = require("../box");
|
|
31
31
|
var intentToIconMap = {
|
|
32
32
|
error: { BaseIcon: alert_solid_1.default },
|
|
33
33
|
warning: { BaseIcon: warning_solid_1.default },
|
|
@@ -66,7 +66,7 @@ var Banner = (0, react_1.forwardRef)(function (_a, ref) {
|
|
|
66
66
|
var sharedProps = (0, helpers_1.add$props)({ intent: intent, collapsible: collapsible, closeable: closeable, show: show, hasDescription: hasDescription });
|
|
67
67
|
var label = show ? locale.banner.toggleButtonHideLabel : locale.banner.toggleButtonShowLabel;
|
|
68
68
|
var ariaLabel = show ? locale.banner.toggleButtonHideAriaLabel : locale.banner.toggleButtonShowAriaLabel;
|
|
69
|
-
var bannerEl = ((0, jsx_runtime_1.jsxs)(Root, tslib_1.__assign({ "data-spaceweb": "banner", "data-testid": "banner", intent: intent, collapsible: collapsible }, sharedProps, restProps, rootProps, { style: [style, rootProps === null || rootProps === void 0 ? void 0 : rootProps.style], className: [className, rootProps === null || rootProps === void 0 ? void 0 : rootProps.className], ref: ref }, { children: [(0, jsx_runtime_1.jsx)(
|
|
69
|
+
var bannerEl = ((0, jsx_runtime_1.jsxs)(Root, tslib_1.__assign({ "data-spaceweb": "banner", "data-testid": "banner", intent: intent, collapsible: collapsible }, sharedProps, restProps, rootProps, { style: [style, rootProps === null || rootProps === void 0 ? void 0 : rootProps.style], className: [className, rootProps === null || rootProps === void 0 ? void 0 : rootProps.className], ref: ref }, { children: [(0, jsx_runtime_1.jsx)(box_1.Box, { ref: setStickySentinelRef }), (0, jsx_runtime_1.jsxs)(HeaderContainer, tslib_1.__assign({}, sharedProps, headerContainerProps, { "$sticky": isSticky }, { children: [(0, jsx_runtime_1.jsxs)(TitleContainer, tslib_1.__assign({}, sharedProps, titleContainerProps, { children: [(0, jsx_runtime_1.jsx)(HeaderIcon, tslib_1.__assign({ intent: intent }, headerIconProps, { className: ['self-start', hasDescription ? 'mt-0.5' : 'mt-1', headerIconProps === null || headerIconProps === void 0 ? void 0 : headerIconProps.className] })), (0, jsx_runtime_1.jsxs)(HeaderTitle, tslib_1.__assign({}, sharedProps, headerTitleProps, { children: [title || null, description || null] }))] })), (0, jsx_runtime_1.jsxs)(HeaderEndContainer, tslib_1.__assign({}, sharedProps, headerEndContainerProps, { children: [titleEndEnhancer || null, collapsible ? ((0, jsx_runtime_1.jsx)(ToggleButton, tslib_1.__assign({ "data-testid": "banner-toggle-button", className: [styled_components_1.linkStyles, 'h-6', toggleButtonProps === null || toggleButtonProps === void 0 ? void 0 : toggleButtonProps.className], label: label, "aria-label": ariaLabel, onClick: function () { return setShow(!show); } }, sharedProps, toggleButtonProps, { children: (0, jsx_runtime_1.jsx)(typography_1.Typography, tslib_1.__assign({ variant: "body-12" }, { children: label })) }))) : null, closeable ? ((0, jsx_runtime_1.jsx)(CloseButton, tslib_1.__assign({ type: "button", tooltipContent: locale.banner.closeIconTooltipContent, size: "small", shape: "square", onClick: onClose }, sharedProps, closeButtonProps, { children: (0, jsx_runtime_1.jsx)(close_1.default, { size: 12 }) }))) : null] }))] })), title && children ? ((0, jsx_runtime_1.jsx)(collapse_1.Collapse, tslib_1.__assign({ unmountOnExit: true, visible: show }, { children: (0, jsx_runtime_1.jsx)(BannerItemContainer, tslib_1.__assign({ "$as": $as, role: $as === 'ol' || $as === 'ul' ? 'list' : role, "$maxHeight": maxItemContainerHeight }, sharedProps, bannerItemContainerProps, { style: [{ '--sw-max-height': maxItemContainerHeight }, bannerItemContainerProps.style] }, { children: children })) }))) : null] })));
|
|
70
70
|
return closeable ? ((0, jsx_runtime_1.jsx)(collapse_1.Collapse, tslib_1.__assign({ className: "w-full", visible: visible }, { children: bannerEl }))) : (bannerEl);
|
|
71
71
|
});
|
|
72
72
|
Banner.displayName = 'Banner';
|
package/banner/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Override } from '../overrides/types';
|
|
2
|
-
import { SpacewebComponentProps } from '../types';
|
|
3
|
-
import { MouseEvent, ReactNode } from 'react';
|
|
1
|
+
import type { Override } from '../overrides/types';
|
|
2
|
+
import type { SpacewebComponentProps } from '../types';
|
|
3
|
+
import type { MouseEvent, ReactNode } from 'react';
|
|
4
4
|
export type BannerIntent = 'error' | 'warning' | 'success' | 'info';
|
|
5
5
|
export type BannerProps = Omit<SpacewebComponentProps, 'title'> & {
|
|
6
6
|
intent?: BannerIntent;
|
package/base-button/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { SpacewebComponentProps } from '../types';
|
|
2
|
-
import { Override } from '../overrides';
|
|
3
|
-
import { TooltipProps } from '../tooltip/types';
|
|
1
|
+
import type { SpacewebComponentProps } from '../types';
|
|
2
|
+
import type { Override } from '../overrides';
|
|
3
|
+
import type { TooltipProps } from '../tooltip/types';
|
|
4
4
|
export type BaseButtonOverrides = {
|
|
5
5
|
StatefulTooltip?: Override<Record<string, any>>;
|
|
6
6
|
};
|
|
@@ -30,9 +30,7 @@ ref) {
|
|
|
30
30
|
setLocalState(tslib_1.__assign(tslib_1.__assign({}, localState), { isFocusVisible: true }));
|
|
31
31
|
}
|
|
32
32
|
}, [localState]);
|
|
33
|
-
var handleBlur = React.useCallback(
|
|
34
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
35
|
-
function (event) {
|
|
33
|
+
var handleBlur = React.useCallback(function (_event) {
|
|
36
34
|
if (localState.isFocusVisible) {
|
|
37
35
|
setLocalState(tslib_1.__assign(tslib_1.__assign({}, localState), { isFocusVisible: false }));
|
|
38
36
|
}
|
|
@@ -30,8 +30,7 @@ var StatefulPanelContainer = /** @class */ (function (_super) {
|
|
|
30
30
|
this.setState(function (prevState) { return (stateReducer ? stateReducer(type, changes, prevState) : changes); });
|
|
31
31
|
};
|
|
32
32
|
StatefulPanelContainer.prototype.render = function () {
|
|
33
|
-
|
|
34
|
-
var _a = this.props, children = _a.children, initialState = _a.initialState, stateReducer = _a.stateReducer, restProps = tslib_1.__rest(_a, ["children", "initialState", "stateReducer"]);
|
|
33
|
+
var _a = this.props, _children = _a.children, _initialState = _a.initialState, _stateReducer = _a.stateReducer, restProps = tslib_1.__rest(_a, ["children", "initialState", "stateReducer"]);
|
|
35
34
|
return this.props.children(tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, restProps), this.state), { onChange: this.onChange }));
|
|
36
35
|
};
|
|
37
36
|
StatefulPanelContainer.defaultProps = {
|
|
@@ -39,13 +39,11 @@ function StatelessAccordion(_a) {
|
|
|
39
39
|
next = [key];
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
+
else if (expanded.includes(key)) {
|
|
43
|
+
next = expanded.filter(function (k) { return k !== key; });
|
|
44
|
+
}
|
|
42
45
|
else {
|
|
43
|
-
|
|
44
|
-
next = expanded.filter(function (k) { return k !== key; });
|
|
45
|
-
}
|
|
46
|
-
else {
|
|
47
|
-
next = tslib_1.__spreadArray(tslib_1.__spreadArray([], tslib_1.__read(expanded), false), [key], false);
|
|
48
|
-
}
|
|
46
|
+
next = tslib_1.__spreadArray(tslib_1.__spreadArray([], tslib_1.__read(expanded), false), [key], false);
|
|
49
47
|
}
|
|
50
48
|
// @ts-ignore
|
|
51
49
|
onChange({ key: key, expanded: next });
|
|
@@ -145,10 +145,8 @@ var CalendarHeader = /** @class */ (function (_super) {
|
|
|
145
145
|
var isLastMonth = order === monthsShown - 1;
|
|
146
146
|
return !isLastMonth;
|
|
147
147
|
}
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
return !isFirstMonth;
|
|
151
|
-
}
|
|
148
|
+
var isFirstMonth = order === 0;
|
|
149
|
+
return !isFirstMonth;
|
|
152
150
|
}
|
|
153
151
|
return false;
|
|
154
152
|
};
|
|
@@ -19,6 +19,7 @@ var date_helpers_1 = tslib_1.__importDefault(require("./utils/date-helpers"));
|
|
|
19
19
|
var overrides_1 = require("../../overrides");
|
|
20
20
|
var constants_1 = require("./constants");
|
|
21
21
|
var spacewebProvider_1 = require("../../spacewebProvider");
|
|
22
|
+
var box_1 = require("../../box");
|
|
22
23
|
var BaseCalendar = /** @class */ (function (_super) {
|
|
23
24
|
tslib_1.__extends(BaseCalendar, _super);
|
|
24
25
|
function BaseCalendar(props) {
|
|
@@ -263,7 +264,7 @@ var BaseCalendar = /** @class */ (function (_super) {
|
|
|
263
264
|
}, role: "grid", "aria-multiselectable": _this.props.range || null, onKeyDown: _this.onKeyDown }, calendarContainerProps, { "$density": _this.props.density }, { children: (0, jsx_runtime_1.jsx)(month_1.default, { adapter: _this.props.adapter, date: monthDate, dateLabel: _this.props.dateLabel, density: _this.props.density, excludeDates: _this.props.excludeDates, filterDate: _this.props.filterDate, getTimeRangesForDate: _this.props.getTimeRangesForDate, highlightedDate: _this.state.highlightedDate, includeDates: _this.props.includeDates, focusedCalendar: _this.state.focused, range: _this.props.range, locale: _this.props.locale, maxDate: _this.props.maxDate, minDate: _this.props.minDate, month: _this.dateHelpers.getMonth(_this.state.date), onDayBlur: _this.blurCalendar, onDayFocus: _this.onDayFocus, onDayClick: _this.props.onDayClick, onDayMouseOver: _this.onDayMouseOver, onDayMouseLeave: _this.onDayMouseLeave, onChange: _this.handleDateChange, overrides: overrides, value: _this.props.value, peekNextMonth: _this.props.peekNextMonth, fixedHeight: _this.props.fixedHeight, hasLockedBehavior: !!_this.props.hasLockedBehavior, selectedInput: _this.props.selectedInput }) }), monthKey));
|
|
264
265
|
monthList.push(
|
|
265
266
|
// @ts-ignore
|
|
266
|
-
(0, jsx_runtime_1.jsx)(
|
|
267
|
+
(0, jsx_runtime_1.jsx)(box_1.Box, tslib_1.__assign({ className: "grow" }, { children: monthSubComponents }), "month-component-".concat(i)));
|
|
267
268
|
}
|
|
268
269
|
return ((0, jsx_runtime_1.jsx)(MonthContainer, tslib_1.__assign({ "$orientation": orientation }, monthContainerProps, { children: monthList })));
|
|
269
270
|
};
|
|
@@ -307,7 +308,6 @@ var BaseCalendar = /** @class */ (function (_super) {
|
|
|
307
308
|
BaseCalendar.prototype.componentDidUpdate = function (prevProps) {
|
|
308
309
|
if (this.props.highlightedDate &&
|
|
309
310
|
!this.dateHelpers.isSameDay(this.props.highlightedDate, prevProps.highlightedDate)) {
|
|
310
|
-
// eslint-disable-next-line react/no-did-update-set-state -- baseui migration
|
|
311
311
|
this.setState({
|
|
312
312
|
date: this.props.highlightedDate,
|
|
313
313
|
});
|
|
@@ -318,7 +318,6 @@ var BaseCalendar = /** @class */ (function (_super) {
|
|
|
318
318
|
if (prevProps.value !== this.props.value) {
|
|
319
319
|
var nextDate = this.getDateInView();
|
|
320
320
|
if (!this.isInView(nextDate)) {
|
|
321
|
-
// eslint-disable-next-line react/no-did-update-set-state -- baseui migration
|
|
322
321
|
this.setState({
|
|
323
322
|
date: nextDate,
|
|
324
323
|
});
|
|
@@ -26,7 +26,7 @@ export default class Day<T = Date> extends React.Component<DayProps<T>, DayState
|
|
|
26
26
|
dateHelpers: DateHelpers<T>;
|
|
27
27
|
constructor(props: DayProps<T>);
|
|
28
28
|
componentDidMount(): void;
|
|
29
|
-
componentDidUpdate(
|
|
29
|
+
componentDidUpdate(_prevProps: DayProps<T>): void;
|
|
30
30
|
getDateProp: () => T;
|
|
31
31
|
getMonthProp: () => number;
|
|
32
32
|
/**
|
package/baseui/datepicker/day.js
CHANGED
|
@@ -175,7 +175,7 @@ var Day = /** @class */ (function (_super) {
|
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
177
|
};
|
|
178
|
-
Day.prototype.componentDidUpdate = function (
|
|
178
|
+
Day.prototype.componentDidUpdate = function (_prevProps) {
|
|
179
179
|
if (this.dayElm && this.props.focusedCalendar) {
|
|
180
180
|
if (this.props.highlighted || (!this.props.highlightedDate && this.isSelected())) {
|
|
181
181
|
this.dayElm.focus();
|
|
@@ -212,7 +212,7 @@ exports.StyledDay = (0, style_1.styled)('div', 'spr-text-01 box-border relative
|
|
|
212
212
|
// @ts-ignore -- CSS-in-JS -- This is never getting fixed
|
|
213
213
|
function (_a, props) {
|
|
214
214
|
var theme = _a.theme;
|
|
215
|
-
var $disabled = props.$disabled, $peekNextMonth = props.$peekNextMonth, $range = props.$range, $outsideMonth = props.$outsideMonth, $outsideMonthWithinRange = props.$outsideMonthWithinRange, $hasDateLabel = props
|
|
215
|
+
var $disabled = props.$disabled, $peekNextMonth = props.$peekNextMonth, $range = props.$range, $outsideMonth = props.$outsideMonth, $outsideMonthWithinRange = props.$outsideMonthWithinRange, _$hasDateLabel = props._$hasDateLabel, $density = props.$density, $hasLockedBehavior = props.$hasLockedBehavior, $selectedInput = props.$selectedInput, $value = props.$value;
|
|
216
216
|
var code = (0, day_state_1.default)(props);
|
|
217
217
|
var _b = tslib_1.__read(Array.isArray($value) ? $value : [$value, null], 2), startDate = _b[0], endDate = _b[1];
|
|
218
218
|
var oppositeInputIsPopulated = $selectedInput === constants_1.INPUT_ROLE.startDate
|