@sprinklrjs/spaceweb 12.14.4 → 12.33.2
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 +6 -0
- package/ClientOnly.js +19 -0
- package/allComponentsAndUtilities.d.ts +4 -1
- package/allComponentsAndUtilities.js +6 -2
- package/asyncSelect/asyncSelect.d.ts +1 -1
- package/asyncSelect/asyncSelect.js +5 -3
- package/asyncSelect/groupedAsyncSelect.d.ts +1 -1
- package/asyncSelect/groupedAsyncSelect.js +5 -2
- package/asyncSelect/helpers.d.ts +3 -2
- package/asyncSelect/helpers.js +4 -2
- package/asyncSelect/hooks/useAsyncOptionHandlers.d.ts +3 -2
- package/asyncSelect/hooks/useAsyncOptionHandlers.js +18 -8
- package/asyncSelect/hooks/useAsyncSelect.js +30 -16
- package/asyncSelect/hooks/useResolveSelectedOptions.d.ts +2 -1
- package/asyncSelect/hooks/useResolveSelectedOptions.js +3 -2
- package/asyncSelect/types.d.ts +1 -6
- package/avatar/avatar.js +19 -15
- package/avatar/styled-component.js +22 -10
- package/avatar/types.d.ts +1 -0
- package/badge/types.d.ts +1 -1
- package/banner/banner.js +3 -2
- package/banner/styled-component.js +1 -1
- package/baseui/accordion/accordion.d.ts +14 -0
- package/baseui/accordion/accordion.js +154 -0
- package/baseui/accordion/constants.d.ts +3 -0
- package/baseui/accordion/constants.js +12 -0
- package/baseui/accordion/index.d.ts +12 -0
- package/baseui/accordion/index.js +28 -0
- package/baseui/accordion/locale.d.ts +9 -0
- package/baseui/accordion/locale.js +7 -0
- package/baseui/accordion/panel.d.ts +17 -0
- package/baseui/accordion/panel.js +111 -0
- package/baseui/accordion/stateful-panel-container.d.ts +18 -0
- package/baseui/accordion/stateful-panel-container.js +44 -0
- package/baseui/accordion/stateful-panel.d.ts +2 -0
- package/baseui/accordion/stateful-panel.js +11 -0
- package/baseui/accordion/stateless-accordion.d.ts +3 -0
- package/baseui/accordion/stateless-accordion.js +59 -0
- package/baseui/accordion/styled-components.d.ts +10 -0
- package/baseui/accordion/styled-components.js +57 -0
- package/baseui/accordion/types.d.ts +143 -0
- package/baseui/accordion/types.js +8 -0
- package/baseui/button/button-internals.d.ts +2 -0
- package/baseui/button/button-internals.js +38 -0
- package/baseui/button/button.d.ts +10 -0
- package/baseui/button/button.js +96 -0
- package/baseui/button/constants.d.ts +18 -0
- package/baseui/button/constants.js +27 -0
- package/baseui/button/default-props.d.ts +9 -0
- package/baseui/button/default-props.js +19 -0
- package/baseui/button/index.d.ts +7 -0
- package/baseui/button/index.js +20 -0
- package/baseui/button/styled-components.d.ts +5 -0
- package/baseui/button/styled-components.js +72 -0
- package/baseui/button/types.d.ts +47 -0
- package/baseui/button/types.js +2 -0
- package/baseui/button/utils.d.ts +2 -0
- package/baseui/button/utils.js +16 -0
- package/baseui/card/styled-components.d.ts +0 -0
- package/baseui/card/styled-components.js +0 -0
- package/baseui/checkbox/checkbox.d.ts +23 -0
- package/baseui/checkbox/checkbox.js +144 -0
- package/baseui/checkbox/constants.d.ts +14 -0
- package/baseui/checkbox/constants.js +26 -0
- package/baseui/checkbox/index.d.ts +6 -0
- package/baseui/checkbox/index.js +31 -0
- package/baseui/checkbox/stateful-checkbox-container.d.ts +15 -0
- package/baseui/checkbox/stateful-checkbox-container.js +80 -0
- package/baseui/checkbox/stateful-checkbox.d.ts +6 -0
- package/baseui/checkbox/stateful-checkbox.js +14 -0
- package/baseui/checkbox/styled-components.d.ts +6 -0
- package/baseui/checkbox/styled-components.js +51 -0
- package/baseui/checkbox/types.d.ts +160 -0
- package/baseui/checkbox/types.js +2 -0
- package/baseui/datepicker/calendar-header.d.ts +61 -0
- package/baseui/datepicker/calendar-header.js +368 -0
- package/baseui/datepicker/calendar.d.ts +56 -0
- package/baseui/datepicker/calendar.js +534 -0
- package/baseui/datepicker/constants.d.ts +30 -0
- package/baseui/datepicker/constants.js +39 -0
- package/baseui/datepicker/day.d.ts +87 -0
- package/baseui/datepicker/day.js +348 -0
- package/baseui/datepicker/index.d.ts +10 -0
- package/baseui/datepicker/index.js +26 -0
- package/baseui/datepicker/locale.d.ts +65 -0
- package/baseui/datepicker/locale.js +35 -0
- package/baseui/datepicker/month.d.ts +32 -0
- package/baseui/datepicker/month.js +91 -0
- package/baseui/datepicker/styled-components.d.ts +25 -0
- package/baseui/datepicker/styled-components.js +287 -0
- package/baseui/datepicker/types.d.ts +354 -0
- package/baseui/datepicker/types.js +2 -0
- package/baseui/datepicker/utils/calendar-header-helpers.d.ts +12 -0
- package/baseui/datepicker/utils/calendar-header-helpers.js +35 -0
- package/baseui/datepicker/utils/date-fns-adapter.d.ts +3 -0
- package/baseui/datepicker/utils/date-fns-adapter.js +13 -0
- package/baseui/datepicker/utils/date-helpers.d.ts +98 -0
- package/baseui/datepicker/utils/date-helpers.js +366 -0
- package/baseui/datepicker/utils/day-state.d.ts +20 -0
- package/baseui/datepicker/utils/day-state.js +34 -0
- package/baseui/datepicker/utils/index.d.ts +67 -0
- package/baseui/datepicker/utils/index.js +81 -0
- package/baseui/datepicker/utils/types.d.ts +69 -0
- package/baseui/datepicker/utils/types.js +2 -0
- package/baseui/datepicker/week.d.ts +21 -0
- package/baseui/datepicker/week.js +61 -0
- package/baseui/header-navigation/constants.d.ts +5 -0
- package/baseui/header-navigation/constants.js +14 -0
- package/baseui/header-navigation/examples-icons.d.ts +1 -0
- package/baseui/header-navigation/examples-icons.js +14 -0
- package/baseui/header-navigation/header-navigation.d.ts +9 -0
- package/baseui/header-navigation/header-navigation.js +29 -0
- package/baseui/header-navigation/index.d.ts +4 -0
- package/baseui/header-navigation/index.js +20 -0
- package/baseui/header-navigation/styled-components.d.ts +3 -0
- package/baseui/header-navigation/styled-components.js +33 -0
- package/baseui/header-navigation/types.d.ts +8 -0
- package/baseui/header-navigation/types.js +2 -0
- package/baseui/helpers/i18n-interpolation.d.ts +3 -0
- package/baseui/helpers/i18n-interpolation.js +17 -0
- package/baseui/helpers/index.d.ts +1 -0
- package/baseui/helpers/index.js +4 -0
- package/baseui/helpers/overrides.d.ts +63 -0
- package/baseui/helpers/overrides.js +171 -0
- package/baseui/helpers/types.d.ts +7 -0
- package/baseui/helpers/types.js +2 -0
- package/baseui/index.d.ts +1 -0
- package/baseui/index.js +12 -0
- package/baseui/input/base-input.d.ts +64 -0
- package/baseui/input/base-input.js +249 -0
- package/baseui/input/constants.d.ts +22 -0
- package/baseui/input/constants.js +31 -0
- package/baseui/input/index.d.ts +8 -0
- package/baseui/input/index.js +28 -0
- package/baseui/input/input.d.ts +33 -0
- package/baseui/input/input.js +100 -0
- package/baseui/input/masked-input.d.ts +8 -0
- package/baseui/input/masked-input.js +56 -0
- package/baseui/input/stateful-container.d.ts +16 -0
- package/baseui/input/stateful-container.js +42 -0
- package/baseui/input/stateful-input.d.ts +2 -0
- package/baseui/input/stateful-input.js +10 -0
- package/baseui/input/styled-components.d.ts +15 -0
- package/baseui/input/styled-components.js +47 -0
- package/baseui/input/types.d.ts +170 -0
- package/baseui/input/types.js +2 -0
- package/baseui/input/utils.d.ts +2 -0
- package/baseui/input/utils.js +21 -0
- package/baseui/layer/constants.d.ts +15 -0
- package/baseui/layer/constants.js +24 -0
- package/baseui/layer/index.d.ts +5 -0
- package/baseui/layer/index.js +20 -0
- package/baseui/layer/layer.d.ts +2 -0
- package/baseui/layer/layer.js +162 -0
- package/baseui/layer/layers-manager.d.ts +28 -0
- package/baseui/layer/layers-manager.js +171 -0
- package/baseui/layer/tether.d.ts +30 -0
- package/baseui/layer/tether.js +163 -0
- package/baseui/layer/types.d.ts +148 -0
- package/baseui/layer/types.js +2 -0
- package/baseui/layer/utils.d.ts +6 -0
- package/baseui/layer/utils.js +17 -0
- package/baseui/locale/en_US.d.ts +3 -0
- package/baseui/locale/en_US.js +26 -0
- package/baseui/locale/es_AR.d.ts +3 -0
- package/baseui/locale/es_AR.js +128 -0
- package/baseui/locale/index.d.ts +26 -0
- package/baseui/locale/index.js +26 -0
- package/baseui/locale/tr_TR.d.ts +3 -0
- package/baseui/locale/tr_TR.js +124 -0
- package/baseui/locale/types.d.ts +10 -0
- package/baseui/locale/types.js +2 -0
- package/baseui/menu/constants.d.ts +27 -0
- package/baseui/menu/constants.js +36 -0
- package/baseui/menu/index.d.ts +1 -0
- package/baseui/menu/index.js +10 -0
- package/baseui/menu/styled-components.d.ts +0 -0
- package/baseui/menu/styled-components.js +0 -0
- package/baseui/menu/types.d.ts +284 -0
- package/baseui/menu/types.js +2 -0
- package/baseui/modal/close-icon.d.ts +1 -0
- package/baseui/modal/close-icon.js +10 -0
- package/baseui/modal/constants.d.ts +19 -0
- package/baseui/modal/constants.js +28 -0
- package/baseui/modal/focus-once.d.ts +10 -0
- package/baseui/modal/focus-once.js +21 -0
- package/baseui/modal/index.d.ts +7 -0
- package/baseui/modal/index.js +26 -0
- package/baseui/modal/locale.d.ts +7 -0
- package/baseui/modal/locale.js +6 -0
- package/baseui/modal/modal-button.d.ts +5 -0
- package/baseui/modal/modal-button.js +34 -0
- package/baseui/modal/modal.d.ts +41 -0
- package/baseui/modal/modal.js +239 -0
- package/baseui/modal/styled-components.d.ts +5 -0
- package/baseui/modal/styled-components.js +75 -0
- package/baseui/modal/types.d.ts +74 -0
- package/baseui/modal/types.js +2 -0
- package/baseui/package.json +4 -0
- package/baseui/payment-card/custom-cards.config.d.ts +11 -0
- package/baseui/payment-card/custom-cards.config.js +24 -0
- package/baseui/payment-card/icons/amex.d.ts +4 -0
- package/baseui/payment-card/icons/amex.js +9 -0
- package/baseui/payment-card/icons/dinersclub.d.ts +4 -0
- package/baseui/payment-card/icons/dinersclub.js +9 -0
- package/baseui/payment-card/icons/discover.d.ts +4 -0
- package/baseui/payment-card/icons/discover.js +9 -0
- package/baseui/payment-card/icons/elo.d.ts +4 -0
- package/baseui/payment-card/icons/elo.js +9 -0
- package/baseui/payment-card/icons/generic.d.ts +4 -0
- package/baseui/payment-card/icons/generic.js +9 -0
- package/baseui/payment-card/icons/jcb.d.ts +4 -0
- package/baseui/payment-card/icons/jcb.js +9 -0
- package/baseui/payment-card/icons/maestro.d.ts +4 -0
- package/baseui/payment-card/icons/maestro.js +9 -0
- package/baseui/payment-card/icons/mastercard.d.ts +4 -0
- package/baseui/payment-card/icons/mastercard.js +9 -0
- package/baseui/payment-card/icons/uatp.d.ts +4 -0
- package/baseui/payment-card/icons/uatp.js +9 -0
- package/baseui/payment-card/icons/unionpay.d.ts +4 -0
- package/baseui/payment-card/icons/unionpay.js +9 -0
- package/baseui/payment-card/icons/visa.d.ts +4 -0
- package/baseui/payment-card/icons/visa.js +9 -0
- package/baseui/payment-card/index.d.ts +7 -0
- package/baseui/payment-card/index.js +24 -0
- package/baseui/payment-card/payment-card.d.ts +24 -0
- package/baseui/payment-card/payment-card.js +113 -0
- package/baseui/payment-card/stateful-payment-card.d.ts +2 -0
- package/baseui/payment-card/stateful-payment-card.js +10 -0
- package/baseui/payment-card/styled-components.d.ts +1 -0
- package/baseui/payment-card/styled-components.js +12 -0
- package/baseui/payment-card/types.d.ts +11 -0
- package/baseui/payment-card/types.js +2 -0
- package/baseui/payment-card/utils.d.ts +3 -0
- package/baseui/payment-card/utils.js +50 -0
- package/baseui/popover/constants.d.ts +45 -0
- package/baseui/popover/constants.js +54 -0
- package/baseui/popover/default-props.d.ts +3 -0
- package/baseui/popover/default-props.js +26 -0
- package/baseui/popover/index.d.ts +6 -0
- package/baseui/popover/index.js +32 -0
- package/baseui/popover/popover.d.ts +15 -0
- package/baseui/popover/popover.js +370 -0
- package/baseui/popover/stateful-container.d.ts +32 -0
- package/baseui/popover/stateful-container.js +174 -0
- package/baseui/popover/stateful-popover.d.ts +19 -0
- package/baseui/popover/stateful-popover.js +27 -0
- package/baseui/popover/styled-components.d.ts +27 -0
- package/baseui/popover/styled-components.js +74 -0
- package/baseui/popover/types.d.ts +165 -0
- package/baseui/popover/types.js +2 -0
- package/baseui/popover/utils.d.ts +47 -0
- package/baseui/popover/utils.js +127 -0
- package/baseui/progress-bar/styled-components.d.ts +0 -0
- package/baseui/progress-bar/styled-components.js +0 -0
- package/baseui/radio/constants.d.ts +7 -0
- package/baseui/radio/constants.js +18 -0
- package/baseui/radio/index.d.ts +7 -0
- package/baseui/radio/index.js +30 -0
- package/baseui/radio/radio.d.ts +33 -0
- package/baseui/radio/radio.js +106 -0
- package/baseui/radio/radiogroup.d.ts +14 -0
- package/baseui/radio/radiogroup.js +84 -0
- package/baseui/radio/stateful-radiogroup-container.d.ts +11 -0
- package/baseui/radio/stateful-radiogroup-container.js +58 -0
- package/baseui/radio/stateful-radiogroup.d.ts +6 -0
- package/baseui/radio/stateful-radiogroup.js +15 -0
- package/baseui/radio/styled-components.d.ts +7 -0
- package/baseui/radio/styled-components.js +53 -0
- package/baseui/radio/types.d.ts +169 -0
- package/baseui/radio/types.js +2 -0
- package/baseui/select/autosize-input.d.ts +24 -0
- package/baseui/select/autosize-input.js +67 -0
- package/baseui/select/constants.d.ts +13 -0
- package/baseui/select/constants.js +23 -0
- package/baseui/select/default-props.d.ts +72 -0
- package/baseui/select/default-props.js +66 -0
- package/baseui/select/dropdown.d.ts +21 -0
- package/baseui/select/dropdown.js +138 -0
- package/baseui/select/index.d.ts +19 -0
- package/baseui/select/index.js +47 -0
- package/baseui/select/locale.d.ts +8 -0
- package/baseui/select/locale.js +10 -0
- package/baseui/select/multi-select.d.ts +3 -0
- package/baseui/select/multi-select.js +10 -0
- package/baseui/select/multi-value.d.ts +1 -0
- package/baseui/select/multi-value.js +12 -0
- package/baseui/select/select-component.d.ts +179 -0
- package/baseui/select/select-component.js +849 -0
- package/baseui/select/select.d.ts +4 -0
- package/baseui/select/select.js +11 -0
- package/baseui/select/single-select.d.ts +3 -0
- package/baseui/select/single-select.js +10 -0
- package/baseui/select/stateful-select-container.d.ts +19 -0
- package/baseui/select/stateful-select-container.js +48 -0
- package/baseui/select/stateful-select.d.ts +76 -0
- package/baseui/select/stateful-select.js +12 -0
- package/baseui/select/styled-components.d.ts +16 -0
- package/baseui/select/styled-components.js +98 -0
- package/baseui/select/types.d.ts +290 -0
- package/baseui/select/types.js +2 -0
- package/baseui/select/utils/default-filter-options.d.ts +23 -0
- package/baseui/select/utils/default-filter-options.js +54 -0
- package/baseui/select/utils/index.d.ts +3 -0
- package/baseui/select/utils/index.js +39 -0
- package/baseui/select/value.d.ts +1 -0
- package/baseui/select/value.js +13 -0
- package/baseui/slider/constants.d.ts +4 -0
- package/baseui/slider/constants.js +13 -0
- package/baseui/slider/index.d.ts +8 -0
- package/baseui/slider/index.js +22 -0
- package/baseui/slider/slider.d.ts +3 -0
- package/baseui/slider/slider.js +100 -0
- package/baseui/slider/stateful-slider-container.d.ts +23 -0
- package/baseui/slider/stateful-slider-container.js +59 -0
- package/baseui/slider/stateful-slider.d.ts +2 -0
- package/baseui/slider/stateful-slider.js +10 -0
- package/baseui/slider/styled-components.d.ts +9 -0
- package/baseui/slider/styled-components.js +58 -0
- package/baseui/slider/types.d.ts +74 -0
- package/baseui/slider/types.js +2 -0
- package/baseui/spinner/styled-components.d.ts +0 -0
- package/baseui/spinner/styled-components.js +0 -0
- package/baseui/table-semantic/constants.d.ts +11 -0
- package/baseui/table-semantic/constants.js +20 -0
- package/baseui/table-semantic/index.d.ts +4 -0
- package/baseui/table-semantic/index.js +29 -0
- package/baseui/table-semantic/styled-components.d.ts +11 -0
- package/baseui/table-semantic/styled-components.js +42 -0
- package/baseui/table-semantic/table-builder-column.d.ts +4 -0
- package/baseui/table-semantic/table-builder-column.js +18 -0
- package/baseui/table-semantic/table-builder.d.ts +17 -0
- package/baseui/table-semantic/table-builder.js +81 -0
- package/baseui/table-semantic/table.d.ts +10 -0
- package/baseui/table-semantic/table.js +45 -0
- package/baseui/table-semantic/types.d.ts +66 -0
- package/baseui/table-semantic/types.js +2 -0
- package/baseui/textarea/constants.d.ts +1 -0
- package/baseui/textarea/constants.js +13 -0
- package/baseui/textarea/index.d.ts +6 -0
- package/baseui/textarea/index.js +24 -0
- package/baseui/textarea/stateful-container.d.ts +2 -0
- package/baseui/textarea/stateful-container.js +10 -0
- package/baseui/textarea/stateful-textarea.d.ts +2 -0
- package/baseui/textarea/stateful-textarea.js +12 -0
- package/baseui/textarea/styled-components.d.ts +3 -0
- package/baseui/textarea/styled-components.js +19 -0
- package/baseui/textarea/textarea.d.ts +32 -0
- package/baseui/textarea/textarea.js +63 -0
- package/baseui/textarea/types.d.ts +44 -0
- package/baseui/textarea/types.js +2 -0
- package/baseui/timepicker/index.d.ts +2 -0
- package/baseui/timepicker/index.js +14 -0
- package/baseui/timepicker/timepicker.d.ts +34 -0
- package/baseui/timepicker/timepicker.js +260 -0
- package/baseui/timepicker/types.d.ts +54 -0
- package/baseui/timepicker/types.js +2 -0
- package/baseui/tooltip/constants.d.ts +1 -0
- package/baseui/tooltip/constants.js +14 -0
- package/baseui/tooltip/default-props.d.ts +3 -0
- package/baseui/tooltip/default-props.js +24 -0
- package/baseui/tooltip/index.d.ts +6 -0
- package/baseui/tooltip/index.js +29 -0
- package/baseui/tooltip/stateful-tooltip-container.d.ts +7 -0
- package/baseui/tooltip/stateful-tooltip-container.js +25 -0
- package/baseui/tooltip/stateful-tooltip.d.ts +6 -0
- package/baseui/tooltip/stateful-tooltip.js +12 -0
- package/baseui/tooltip/styled-components.d.ts +14 -0
- package/baseui/tooltip/styled-components.js +33 -0
- package/baseui/tooltip/tooltip.d.ts +7 -0
- package/baseui/tooltip/tooltip.js +33 -0
- package/baseui/tooltip/types.d.ts +8 -0
- package/baseui/tooltip/types.js +2 -0
- package/baseui/tree-view/index.d.ts +11 -0
- package/baseui/tree-view/index.js +20 -0
- package/baseui/tree-view/stateful-container.d.ts +11 -0
- package/baseui/tree-view/stateful-container.js +70 -0
- package/baseui/tree-view/stateful-tree-view.d.ts +2 -0
- package/baseui/tree-view/stateful-tree-view.js +10 -0
- package/baseui/tree-view/styled-components.d.ts +6 -0
- package/baseui/tree-view/styled-components.js +41 -0
- package/baseui/tree-view/tree-label-interactable.d.ts +8 -0
- package/baseui/tree-view/tree-label-interactable.js +20 -0
- package/baseui/tree-view/tree-label.d.ts +4 -0
- package/baseui/tree-view/tree-label.js +28 -0
- package/baseui/tree-view/tree-node.d.ts +11 -0
- package/baseui/tree-view/tree-node.js +54 -0
- package/baseui/tree-view/tree-view.d.ts +2 -0
- package/baseui/tree-view/tree-view.js +129 -0
- package/baseui/tree-view/types.d.ts +67 -0
- package/baseui/tree-view/types.js +2 -0
- package/baseui/tree-view/utils.d.ts +11 -0
- package/baseui/tree-view/utils.js +194 -0
- package/baseui/utils/create-event.d.ts +1 -0
- package/baseui/utils/create-event.js +14 -0
- package/baseui/utils/deep-merge.d.ts +1 -0
- package/baseui/utils/deep-merge.js +40 -0
- package/baseui/utils/focusVisible.d.ts +10 -0
- package/baseui/utils/focusVisible.js +169 -0
- package/baseui/utils/index.d.ts +0 -0
- package/baseui/utils/index.js +0 -0
- package/baseui/utils/react-18.d.ts +1 -0
- package/baseui/utils/react-18.js +14 -0
- package/breadcrumb/breadcrumb-item.d.ts +1 -2
- package/breadcrumb/breadcrumb.d.ts +1 -2
- package/breadcrumb/styled-components.d.ts +1 -2
- package/button/Button.d.ts +4 -3
- package/button/Button.js +25 -15
- package/button/IconButton/IconButton.js +7 -1
- package/button/IconButton/styled-components.d.ts +1 -0
- package/button/IconButton/styled-components.js +46 -13
- package/button/IconTextButton/IconTextButton.d.ts +1 -1
- package/button/IconTextButton/types.d.ts +1 -1
- package/button/basewebAdapter.d.ts +8 -7
- package/button/basewebAdapter.js +1 -1
- package/button/index.d.ts +1 -1
- package/button/index.js +1 -1
- package/button/styled-components.d.ts +27 -2
- package/button/styled-components.js +314 -47
- package/button/types.d.ts +8 -5
- package/button-group/styled-components.js +4 -5
- package/checkbox/basewebAdapters.d.ts +1 -1
- package/checkbox/basewebAdapters.js +31 -27
- package/checkbox/checkbox.js +1 -1
- package/checkbox/index.d.ts +3 -3
- package/checkbox/index.js +2 -2
- package/checkbox/styled-components.js +52 -15
- package/checkbox/types.d.ts +4 -3
- package/color-picker/ColorPalette.d.ts +2 -2
- package/color-picker/ColorPalette.js +7 -6
- package/color-picker/ColorPicker.d.ts +1 -1
- package/color-picker/ColorPicker.js +41 -6
- package/color-picker/ColorSelector.d.ts +6 -0
- package/color-picker/ColorSelector.js +33 -0
- package/color-picker/CustomColorSelector.d.ts +3 -0
- package/color-picker/CustomColorSelector.js +41 -0
- package/color-picker/GradientColorPicker.d.ts +6 -0
- package/color-picker/GradientColorPicker.js +68 -0
- package/color-picker/Swatch.js +3 -5
- package/color-picker/colors.d.ts +2 -0
- package/color-picker/colors.js +26 -1
- package/color-picker/constants.d.ts +13 -0
- package/color-picker/constants.js +12 -0
- package/color-picker/locale.d.ts +4 -0
- package/color-picker/types.d.ts +50 -1
- package/color-picker/utils.d.ts +17 -0
- package/color-picker/utils.js +39 -0
- package/date-input/DateInput.d.ts +1 -1
- package/date-input/DateInput.js +96 -85
- package/date-input/constants.d.ts +28 -0
- package/date-input/constants.js +31 -0
- package/date-input/index.d.ts +1 -0
- package/date-input/index.js +3 -1
- package/date-input/types.d.ts +13 -4
- package/date-input/utils.d.ts +2 -0
- package/date-input/utils.js +77 -0
- package/date-picker/Calendar.d.ts +4 -9
- package/date-picker/Calendar.js +112 -121
- package/date-picker/DateInput.d.ts +2 -2
- package/date-picker/DateInput.js +29 -45
- package/date-picker/DatePickerContent.js +8 -27
- package/date-picker/DateTimeContainer.d.ts +2 -2
- package/date-picker/DateTimeContainer.js +16 -10
- package/date-picker/StatelessDatePicker.js +5 -17
- package/date-picker/TimeInput.d.ts +2 -2
- package/date-picker/TimeInput.js +1 -1
- package/date-picker/index.d.ts +1 -1
- package/date-picker/index.js +1 -1
- package/date-picker/stateful-container.d.ts +1 -1
- package/date-picker/stateful-container.js +1 -1
- package/date-picker/styled-components.js +9 -6
- package/date-picker/types.d.ts +2 -1
- package/date-picker/utils.d.ts +2 -2
- package/date-picker/utils.js +3 -3
- package/esm/ClientOnly.d.ts +6 -0
- package/esm/ClientOnly.js +15 -0
- package/esm/allComponentsAndUtilities.d.ts +4 -1
- package/esm/allComponentsAndUtilities.js +8 -2
- package/esm/asyncSelect/asyncSelect.d.ts +1 -1
- package/esm/asyncSelect/asyncSelect.js +6 -4
- package/esm/asyncSelect/groupedAsyncSelect.d.ts +1 -1
- package/esm/asyncSelect/groupedAsyncSelect.js +5 -2
- package/esm/asyncSelect/helpers.d.ts +3 -2
- package/esm/asyncSelect/helpers.js +4 -2
- package/esm/asyncSelect/hooks/useAsyncOptionHandlers.d.ts +3 -2
- package/esm/asyncSelect/hooks/useAsyncOptionHandlers.js +19 -9
- package/esm/asyncSelect/hooks/useAsyncSelect.js +30 -16
- package/esm/asyncSelect/hooks/useResolveSelectedOptions.d.ts +2 -1
- package/esm/asyncSelect/hooks/useResolveSelectedOptions.js +3 -2
- package/esm/asyncSelect/types.d.ts +1 -6
- package/esm/avatar/avatar.js +19 -15
- package/esm/avatar/styled-component.js +22 -10
- package/esm/avatar/types.d.ts +1 -0
- package/esm/badge/types.d.ts +1 -1
- package/esm/banner/banner.js +3 -2
- package/esm/banner/styled-component.js +1 -1
- package/esm/baseui/accordion/accordion.d.ts +14 -0
- package/esm/baseui/accordion/accordion.js +152 -0
- package/esm/baseui/accordion/constants.d.ts +3 -0
- package/esm/baseui/accordion/constants.js +9 -0
- package/esm/baseui/accordion/index.d.ts +12 -0
- package/esm/baseui/accordion/index.js +11 -0
- package/esm/baseui/accordion/locale.d.ts +9 -0
- package/esm/baseui/accordion/locale.js +5 -0
- package/esm/baseui/accordion/panel.d.ts +17 -0
- package/esm/baseui/accordion/panel.js +109 -0
- package/esm/baseui/accordion/stateful-panel-container.d.ts +18 -0
- package/esm/baseui/accordion/stateful-panel-container.js +42 -0
- package/esm/baseui/accordion/stateful-panel.d.ts +2 -0
- package/esm/baseui/accordion/stateful-panel.js +8 -0
- package/esm/baseui/accordion/stateless-accordion.d.ts +3 -0
- package/esm/baseui/accordion/stateless-accordion.js +57 -0
- package/esm/baseui/accordion/styled-components.d.ts +10 -0
- package/esm/baseui/accordion/styled-components.js +54 -0
- package/esm/baseui/accordion/types.d.ts +143 -0
- package/esm/baseui/accordion/types.js +7 -0
- package/esm/baseui/button/button-internals.d.ts +2 -0
- package/esm/baseui/button/button-internals.js +35 -0
- package/esm/baseui/button/button.d.ts +10 -0
- package/esm/baseui/button/button.js +94 -0
- package/esm/baseui/button/constants.d.ts +18 -0
- package/esm/baseui/button/constants.js +24 -0
- package/esm/baseui/button/default-props.d.ts +9 -0
- package/esm/baseui/button/default-props.js +16 -0
- package/esm/baseui/button/index.d.ts +7 -0
- package/esm/baseui/button/index.js +7 -0
- package/esm/baseui/button/styled-components.d.ts +5 -0
- package/esm/baseui/button/styled-components.js +69 -0
- package/esm/baseui/button/types.d.ts +47 -0
- package/esm/baseui/button/types.js +1 -0
- package/esm/baseui/button/utils.d.ts +2 -0
- package/esm/baseui/button/utils.js +12 -0
- package/esm/baseui/card/styled-components.d.ts +0 -0
- package/esm/baseui/card/styled-components.js +0 -0
- package/esm/baseui/checkbox/checkbox.d.ts +23 -0
- package/esm/baseui/checkbox/checkbox.js +142 -0
- package/esm/baseui/checkbox/constants.d.ts +14 -0
- package/esm/baseui/checkbox/constants.js +23 -0
- package/esm/baseui/checkbox/index.d.ts +6 -0
- package/esm/baseui/checkbox/index.js +15 -0
- package/esm/baseui/checkbox/stateful-checkbox-container.d.ts +15 -0
- package/esm/baseui/checkbox/stateful-checkbox-container.js +78 -0
- package/esm/baseui/checkbox/stateful-checkbox.d.ts +6 -0
- package/esm/baseui/checkbox/stateful-checkbox.js +12 -0
- package/esm/baseui/checkbox/styled-components.d.ts +6 -0
- package/esm/baseui/checkbox/styled-components.js +48 -0
- package/esm/baseui/checkbox/types.d.ts +160 -0
- package/esm/baseui/checkbox/types.js +1 -0
- package/esm/baseui/datepicker/calendar-header.d.ts +61 -0
- package/esm/baseui/datepicker/calendar-header.js +366 -0
- package/esm/baseui/datepicker/calendar.d.ts +56 -0
- package/esm/baseui/datepicker/calendar.js +532 -0
- package/esm/baseui/datepicker/constants.d.ts +30 -0
- package/esm/baseui/datepicker/constants.js +36 -0
- package/esm/baseui/datepicker/day.d.ts +87 -0
- package/esm/baseui/datepicker/day.js +346 -0
- package/esm/baseui/datepicker/index.d.ts +10 -0
- package/esm/baseui/datepicker/index.js +16 -0
- package/esm/baseui/datepicker/locale.d.ts +65 -0
- package/esm/baseui/datepicker/locale.js +33 -0
- package/esm/baseui/datepicker/month.d.ts +32 -0
- package/esm/baseui/datepicker/month.js +89 -0
- package/esm/baseui/datepicker/styled-components.d.ts +25 -0
- package/esm/baseui/datepicker/styled-components.js +284 -0
- package/esm/baseui/datepicker/types.d.ts +354 -0
- package/esm/baseui/datepicker/types.js +1 -0
- package/esm/baseui/datepicker/utils/calendar-header-helpers.d.ts +12 -0
- package/esm/baseui/datepicker/utils/calendar-header-helpers.js +30 -0
- package/esm/baseui/datepicker/utils/date-fns-adapter.d.ts +3 -0
- package/esm/baseui/datepicker/utils/date-fns-adapter.js +10 -0
- package/esm/baseui/datepicker/utils/date-helpers.d.ts +98 -0
- package/esm/baseui/datepicker/utils/date-helpers.js +364 -0
- package/esm/baseui/datepicker/utils/day-state.d.ts +20 -0
- package/esm/baseui/datepicker/utils/day-state.js +31 -0
- package/esm/baseui/datepicker/utils/index.d.ts +67 -0
- package/esm/baseui/datepicker/utils/index.js +76 -0
- package/esm/baseui/datepicker/utils/types.d.ts +69 -0
- package/esm/baseui/datepicker/utils/types.js +1 -0
- package/esm/baseui/datepicker/week.d.ts +21 -0
- package/esm/baseui/datepicker/week.js +59 -0
- package/esm/baseui/header-navigation/constants.d.ts +5 -0
- package/esm/baseui/header-navigation/constants.js +11 -0
- package/esm/baseui/header-navigation/examples-icons.d.ts +1 -0
- package/esm/baseui/header-navigation/examples-icons.js +10 -0
- package/esm/baseui/header-navigation/header-navigation.d.ts +9 -0
- package/esm/baseui/header-navigation/header-navigation.js +27 -0
- package/esm/baseui/header-navigation/index.d.ts +4 -0
- package/esm/baseui/header-navigation/index.js +11 -0
- package/esm/baseui/header-navigation/styled-components.d.ts +3 -0
- package/esm/baseui/header-navigation/styled-components.js +30 -0
- package/esm/baseui/header-navigation/types.d.ts +8 -0
- package/esm/baseui/header-navigation/types.js +1 -0
- package/esm/baseui/helpers/i18n-interpolation.d.ts +3 -0
- package/esm/baseui/helpers/i18n-interpolation.js +14 -0
- package/esm/baseui/helpers/index.d.ts +1 -0
- package/esm/baseui/helpers/index.js +1 -0
- package/esm/baseui/helpers/overrides.d.ts +63 -0
- package/esm/baseui/helpers/overrides.js +160 -0
- package/esm/baseui/helpers/types.d.ts +7 -0
- package/esm/baseui/helpers/types.js +1 -0
- package/esm/baseui/index.d.ts +1 -0
- package/esm/baseui/index.js +7 -0
- package/esm/baseui/input/base-input.d.ts +64 -0
- package/esm/baseui/input/base-input.js +247 -0
- package/esm/baseui/input/constants.d.ts +22 -0
- package/esm/baseui/input/constants.js +28 -0
- package/esm/baseui/input/index.d.ts +8 -0
- package/esm/baseui/input/index.js +9 -0
- package/esm/baseui/input/input.d.ts +33 -0
- package/esm/baseui/input/input.js +96 -0
- package/esm/baseui/input/masked-input.d.ts +8 -0
- package/esm/baseui/input/masked-input.js +53 -0
- package/esm/baseui/input/stateful-container.d.ts +16 -0
- package/esm/baseui/input/stateful-container.js +40 -0
- package/esm/baseui/input/stateful-input.d.ts +2 -0
- package/esm/baseui/input/stateful-input.js +7 -0
- package/esm/baseui/input/styled-components.d.ts +15 -0
- package/esm/baseui/input/styled-components.js +41 -0
- package/esm/baseui/input/types.d.ts +170 -0
- package/esm/baseui/input/types.js +1 -0
- package/esm/baseui/input/utils.d.ts +2 -0
- package/esm/baseui/input/utils.js +17 -0
- package/esm/baseui/layer/constants.d.ts +15 -0
- package/esm/baseui/layer/constants.js +21 -0
- package/esm/baseui/layer/index.d.ts +5 -0
- package/esm/baseui/layer/index.js +11 -0
- package/esm/baseui/layer/layer.d.ts +2 -0
- package/esm/baseui/layer/layer.js +159 -0
- package/esm/baseui/layer/layers-manager.d.ts +28 -0
- package/esm/baseui/layer/layers-manager.js +168 -0
- package/esm/baseui/layer/tether.d.ts +30 -0
- package/esm/baseui/layer/tether.js +161 -0
- package/esm/baseui/layer/types.d.ts +148 -0
- package/esm/baseui/layer/types.js +1 -0
- package/esm/baseui/layer/utils.d.ts +6 -0
- package/esm/baseui/layer/utils.js +12 -0
- package/esm/baseui/locale/en_US.d.ts +3 -0
- package/esm/baseui/locale/en_US.js +23 -0
- package/esm/baseui/locale/es_AR.d.ts +3 -0
- package/esm/baseui/locale/es_AR.js +126 -0
- package/esm/baseui/locale/index.d.ts +26 -0
- package/esm/baseui/locale/index.js +23 -0
- package/esm/baseui/locale/tr_TR.d.ts +3 -0
- package/esm/baseui/locale/tr_TR.js +122 -0
- package/esm/baseui/locale/types.d.ts +10 -0
- package/esm/baseui/locale/types.js +1 -0
- package/esm/baseui/menu/constants.d.ts +27 -0
- package/esm/baseui/menu/constants.js +33 -0
- package/esm/baseui/menu/index.d.ts +1 -0
- package/esm/baseui/menu/index.js +7 -0
- package/esm/baseui/menu/styled-components.d.ts +0 -0
- package/esm/baseui/menu/styled-components.js +0 -0
- package/esm/baseui/menu/types.d.ts +284 -0
- package/esm/baseui/menu/types.js +1 -0
- package/esm/baseui/modal/close-icon.d.ts +1 -0
- package/esm/baseui/modal/close-icon.js +6 -0
- package/esm/baseui/modal/constants.d.ts +19 -0
- package/esm/baseui/modal/constants.js +25 -0
- package/esm/baseui/modal/focus-once.d.ts +10 -0
- package/esm/baseui/modal/focus-once.js +18 -0
- package/esm/baseui/modal/index.d.ts +7 -0
- package/esm/baseui/modal/index.js +12 -0
- package/esm/baseui/modal/locale.d.ts +7 -0
- package/esm/baseui/modal/locale.js +4 -0
- package/esm/baseui/modal/modal-button.d.ts +5 -0
- package/esm/baseui/modal/modal-button.js +32 -0
- package/esm/baseui/modal/modal.d.ts +41 -0
- package/esm/baseui/modal/modal.js +237 -0
- package/esm/baseui/modal/styled-components.d.ts +5 -0
- package/esm/baseui/modal/styled-components.js +72 -0
- package/esm/baseui/modal/types.d.ts +74 -0
- package/esm/baseui/modal/types.js +1 -0
- package/esm/baseui/payment-card/custom-cards.config.d.ts +11 -0
- package/esm/baseui/payment-card/custom-cards.config.js +21 -0
- package/esm/baseui/payment-card/icons/amex.d.ts +4 -0
- package/esm/baseui/payment-card/icons/amex.js +7 -0
- package/esm/baseui/payment-card/icons/dinersclub.d.ts +4 -0
- package/esm/baseui/payment-card/icons/dinersclub.js +7 -0
- package/esm/baseui/payment-card/icons/discover.d.ts +4 -0
- package/esm/baseui/payment-card/icons/discover.js +7 -0
- package/esm/baseui/payment-card/icons/elo.d.ts +4 -0
- package/esm/baseui/payment-card/icons/elo.js +7 -0
- package/esm/baseui/payment-card/icons/generic.d.ts +4 -0
- package/esm/baseui/payment-card/icons/generic.js +7 -0
- package/esm/baseui/payment-card/icons/jcb.d.ts +4 -0
- package/esm/baseui/payment-card/icons/jcb.js +7 -0
- package/esm/baseui/payment-card/icons/maestro.d.ts +4 -0
- package/esm/baseui/payment-card/icons/maestro.js +7 -0
- package/esm/baseui/payment-card/icons/mastercard.d.ts +4 -0
- package/esm/baseui/payment-card/icons/mastercard.js +7 -0
- package/esm/baseui/payment-card/icons/uatp.d.ts +4 -0
- package/esm/baseui/payment-card/icons/uatp.js +7 -0
- package/esm/baseui/payment-card/icons/unionpay.d.ts +4 -0
- package/esm/baseui/payment-card/icons/unionpay.js +7 -0
- package/esm/baseui/payment-card/icons/visa.d.ts +4 -0
- package/esm/baseui/payment-card/icons/visa.js +7 -0
- package/esm/baseui/payment-card/index.d.ts +7 -0
- package/esm/baseui/payment-card/index.js +14 -0
- package/esm/baseui/payment-card/payment-card.d.ts +24 -0
- package/esm/baseui/payment-card/payment-card.js +111 -0
- package/esm/baseui/payment-card/stateful-payment-card.d.ts +2 -0
- package/esm/baseui/payment-card/stateful-payment-card.js +7 -0
- package/esm/baseui/payment-card/styled-components.d.ts +1 -0
- package/esm/baseui/payment-card/styled-components.js +9 -0
- package/esm/baseui/payment-card/types.d.ts +11 -0
- package/esm/baseui/payment-card/types.js +1 -0
- package/esm/baseui/payment-card/utils.d.ts +3 -0
- package/esm/baseui/payment-card/utils.js +43 -0
- package/esm/baseui/popover/constants.d.ts +45 -0
- package/esm/baseui/popover/constants.js +51 -0
- package/esm/baseui/popover/default-props.d.ts +3 -0
- package/esm/baseui/popover/default-props.js +24 -0
- package/esm/baseui/popover/index.d.ts +6 -0
- package/esm/baseui/popover/index.js +15 -0
- package/esm/baseui/popover/popover.d.ts +15 -0
- package/esm/baseui/popover/popover.js +368 -0
- package/esm/baseui/popover/stateful-container.d.ts +32 -0
- package/esm/baseui/popover/stateful-container.js +172 -0
- package/esm/baseui/popover/stateful-popover.d.ts +19 -0
- package/esm/baseui/popover/stateful-popover.js +25 -0
- package/esm/baseui/popover/styled-components.d.ts +27 -0
- package/esm/baseui/popover/styled-components.js +68 -0
- package/esm/baseui/popover/types.d.ts +165 -0
- package/esm/baseui/popover/types.js +1 -0
- package/esm/baseui/popover/utils.d.ts +47 -0
- package/esm/baseui/popover/utils.js +115 -0
- package/esm/baseui/progress-bar/styled-components.d.ts +0 -0
- package/esm/baseui/progress-bar/styled-components.js +0 -0
- package/esm/baseui/radio/constants.d.ts +7 -0
- package/esm/baseui/radio/constants.js +15 -0
- package/esm/baseui/radio/index.d.ts +7 -0
- package/esm/baseui/radio/index.js +14 -0
- package/esm/baseui/radio/radio.d.ts +33 -0
- package/esm/baseui/radio/radio.js +104 -0
- package/esm/baseui/radio/radiogroup.d.ts +14 -0
- package/esm/baseui/radio/radiogroup.js +82 -0
- package/esm/baseui/radio/stateful-radiogroup-container.d.ts +11 -0
- package/esm/baseui/radio/stateful-radiogroup-container.js +56 -0
- package/esm/baseui/radio/stateful-radiogroup.d.ts +6 -0
- package/esm/baseui/radio/stateful-radiogroup.js +13 -0
- package/esm/baseui/radio/styled-components.d.ts +7 -0
- package/esm/baseui/radio/styled-components.js +50 -0
- package/esm/baseui/radio/types.d.ts +169 -0
- package/esm/baseui/radio/types.js +1 -0
- package/esm/baseui/select/autosize-input.d.ts +24 -0
- package/esm/baseui/select/autosize-input.js +65 -0
- package/esm/baseui/select/constants.d.ts +13 -0
- package/esm/baseui/select/constants.js +19 -0
- package/esm/baseui/select/default-props.d.ts +72 -0
- package/esm/baseui/select/default-props.js +63 -0
- package/esm/baseui/select/dropdown.d.ts +21 -0
- package/esm/baseui/select/dropdown.js +136 -0
- package/esm/baseui/select/index.d.ts +19 -0
- package/esm/baseui/select/index.js +14 -0
- package/esm/baseui/select/locale.d.ts +8 -0
- package/esm/baseui/select/locale.js +8 -0
- package/esm/baseui/select/multi-select.d.ts +3 -0
- package/esm/baseui/select/multi-select.js +8 -0
- package/esm/baseui/select/multi-value.d.ts +1 -0
- package/esm/baseui/select/multi-value.js +9 -0
- package/esm/baseui/select/select-component.d.ts +179 -0
- package/esm/baseui/select/select-component.js +845 -0
- package/esm/baseui/select/select.d.ts +4 -0
- package/esm/baseui/select/select.js +9 -0
- package/esm/baseui/select/single-select.d.ts +3 -0
- package/esm/baseui/select/single-select.js +8 -0
- package/esm/baseui/select/stateful-select-container.d.ts +19 -0
- package/esm/baseui/select/stateful-select-container.js +46 -0
- package/esm/baseui/select/stateful-select.d.ts +76 -0
- package/esm/baseui/select/stateful-select.js +9 -0
- package/esm/baseui/select/styled-components.d.ts +16 -0
- package/esm/baseui/select/styled-components.js +93 -0
- package/esm/baseui/select/types.d.ts +290 -0
- package/esm/baseui/select/types.js +1 -0
- package/esm/baseui/select/utils/default-filter-options.d.ts +23 -0
- package/esm/baseui/select/utils/default-filter-options.js +52 -0
- package/esm/baseui/select/utils/index.d.ts +3 -0
- package/esm/baseui/select/utils/index.js +34 -0
- package/esm/baseui/select/value.d.ts +1 -0
- package/esm/baseui/select/value.js +10 -0
- package/esm/baseui/slider/constants.d.ts +4 -0
- package/esm/baseui/slider/constants.js +10 -0
- package/esm/baseui/slider/index.d.ts +8 -0
- package/esm/baseui/slider/index.js +6 -0
- package/esm/baseui/slider/slider.d.ts +3 -0
- package/esm/baseui/slider/slider.js +98 -0
- package/esm/baseui/slider/stateful-slider-container.d.ts +23 -0
- package/esm/baseui/slider/stateful-slider-container.js +57 -0
- package/esm/baseui/slider/stateful-slider.d.ts +2 -0
- package/esm/baseui/slider/stateful-slider.js +7 -0
- package/esm/baseui/slider/styled-components.d.ts +9 -0
- package/esm/baseui/slider/styled-components.js +55 -0
- package/esm/baseui/slider/types.d.ts +74 -0
- package/esm/baseui/slider/types.js +1 -0
- package/esm/baseui/spinner/styled-components.d.ts +0 -0
- package/esm/baseui/spinner/styled-components.js +0 -0
- package/esm/baseui/table-semantic/constants.d.ts +11 -0
- package/esm/baseui/table-semantic/constants.js +17 -0
- package/esm/baseui/table-semantic/index.d.ts +4 -0
- package/esm/baseui/table-semantic/index.js +12 -0
- package/esm/baseui/table-semantic/styled-components.d.ts +11 -0
- package/esm/baseui/table-semantic/styled-components.js +39 -0
- package/esm/baseui/table-semantic/table-builder-column.d.ts +4 -0
- package/esm/baseui/table-semantic/table-builder-column.js +16 -0
- package/esm/baseui/table-semantic/table-builder.d.ts +17 -0
- package/esm/baseui/table-semantic/table-builder.js +79 -0
- package/esm/baseui/table-semantic/table.d.ts +10 -0
- package/esm/baseui/table-semantic/table.js +43 -0
- package/esm/baseui/table-semantic/types.d.ts +66 -0
- package/esm/baseui/table-semantic/types.js +1 -0
- package/esm/baseui/textarea/constants.d.ts +1 -0
- package/esm/baseui/textarea/constants.js +7 -0
- package/esm/baseui/textarea/index.d.ts +6 -0
- package/esm/baseui/textarea/index.js +13 -0
- package/esm/baseui/textarea/stateful-container.d.ts +2 -0
- package/esm/baseui/textarea/stateful-container.js +8 -0
- package/esm/baseui/textarea/stateful-textarea.d.ts +2 -0
- package/esm/baseui/textarea/stateful-textarea.js +9 -0
- package/esm/baseui/textarea/styled-components.d.ts +3 -0
- package/esm/baseui/textarea/styled-components.js +16 -0
- package/esm/baseui/textarea/textarea.d.ts +32 -0
- package/esm/baseui/textarea/textarea.js +61 -0
- package/esm/baseui/textarea/types.d.ts +44 -0
- package/esm/baseui/textarea/types.js +1 -0
- package/esm/baseui/timepicker/index.d.ts +2 -0
- package/esm/baseui/timepicker/index.js +9 -0
- package/esm/baseui/timepicker/timepicker.d.ts +34 -0
- package/esm/baseui/timepicker/timepicker.js +258 -0
- package/esm/baseui/timepicker/types.d.ts +54 -0
- package/esm/baseui/timepicker/types.js +1 -0
- package/esm/baseui/tooltip/constants.d.ts +1 -0
- package/esm/baseui/tooltip/constants.js +7 -0
- package/esm/baseui/tooltip/default-props.d.ts +3 -0
- package/esm/baseui/tooltip/default-props.js +22 -0
- package/esm/baseui/tooltip/index.d.ts +6 -0
- package/esm/baseui/tooltip/index.js +15 -0
- package/esm/baseui/tooltip/stateful-tooltip-container.d.ts +7 -0
- package/esm/baseui/tooltip/stateful-tooltip-container.js +23 -0
- package/esm/baseui/tooltip/stateful-tooltip.d.ts +6 -0
- package/esm/baseui/tooltip/stateful-tooltip.js +10 -0
- package/esm/baseui/tooltip/styled-components.d.ts +14 -0
- package/esm/baseui/tooltip/styled-components.js +30 -0
- package/esm/baseui/tooltip/tooltip.d.ts +7 -0
- package/esm/baseui/tooltip/tooltip.js +31 -0
- package/esm/baseui/tooltip/types.d.ts +8 -0
- package/esm/baseui/tooltip/types.js +1 -0
- package/esm/baseui/tree-view/index.d.ts +11 -0
- package/esm/baseui/tree-view/index.js +8 -0
- package/esm/baseui/tree-view/stateful-container.d.ts +11 -0
- package/esm/baseui/tree-view/stateful-container.js +68 -0
- package/esm/baseui/tree-view/stateful-tree-view.d.ts +2 -0
- package/esm/baseui/tree-view/stateful-tree-view.js +7 -0
- package/esm/baseui/tree-view/styled-components.d.ts +6 -0
- package/esm/baseui/tree-view/styled-components.js +38 -0
- package/esm/baseui/tree-view/tree-label-interactable.d.ts +8 -0
- package/esm/baseui/tree-view/tree-label-interactable.js +18 -0
- package/esm/baseui/tree-view/tree-label.d.ts +4 -0
- package/esm/baseui/tree-view/tree-label.js +26 -0
- package/esm/baseui/tree-view/tree-node.d.ts +11 -0
- package/esm/baseui/tree-view/tree-node.js +52 -0
- package/esm/baseui/tree-view/tree-view.d.ts +2 -0
- package/esm/baseui/tree-view/tree-view.js +126 -0
- package/esm/baseui/tree-view/types.d.ts +67 -0
- package/esm/baseui/tree-view/types.js +1 -0
- package/esm/baseui/tree-view/utils.d.ts +11 -0
- package/esm/baseui/tree-view/utils.js +181 -0
- package/esm/baseui/utils/create-event.d.ts +1 -0
- package/esm/baseui/utils/create-event.js +11 -0
- package/esm/baseui/utils/deep-merge.d.ts +1 -0
- package/esm/baseui/utils/deep-merge.js +37 -0
- package/esm/baseui/utils/focusVisible.d.ts +10 -0
- package/esm/baseui/utils/focusVisible.js +160 -0
- package/esm/baseui/utils/index.d.ts +0 -0
- package/esm/baseui/utils/index.js +0 -0
- package/esm/baseui/utils/react-18.d.ts +1 -0
- package/esm/baseui/utils/react-18.js +9 -0
- package/esm/breadcrumb/breadcrumb-item.d.ts +1 -2
- package/esm/breadcrumb/breadcrumb.d.ts +1 -2
- package/esm/breadcrumb/styled-components.d.ts +1 -2
- package/esm/button/Button.d.ts +4 -3
- package/esm/button/Button.js +26 -16
- package/esm/button/IconButton/IconButton.js +7 -1
- package/esm/button/IconButton/styled-components.d.ts +1 -0
- package/esm/button/IconButton/styled-components.js +45 -13
- package/esm/button/IconTextButton/IconTextButton.d.ts +1 -1
- package/esm/button/IconTextButton/types.d.ts +1 -1
- package/esm/button/basewebAdapter.d.ts +8 -7
- package/esm/button/basewebAdapter.js +1 -1
- package/esm/button/index.d.ts +1 -1
- package/esm/button/index.js +1 -1
- package/esm/button/styled-components.d.ts +27 -2
- package/esm/button/styled-components.js +309 -46
- package/esm/button/types.d.ts +8 -5
- package/esm/button-group/styled-components.js +4 -5
- package/esm/checkbox/basewebAdapters.d.ts +1 -1
- package/esm/checkbox/basewebAdapters.js +31 -27
- package/esm/checkbox/checkbox.js +1 -1
- package/esm/checkbox/index.d.ts +3 -3
- package/esm/checkbox/index.js +2 -2
- package/esm/checkbox/styled-components.js +52 -15
- package/esm/checkbox/types.d.ts +4 -3
- package/esm/color-picker/ColorPalette.d.ts +2 -2
- package/esm/color-picker/ColorPalette.js +9 -7
- package/esm/color-picker/ColorPicker.d.ts +1 -1
- package/esm/color-picker/ColorPicker.js +42 -7
- package/esm/color-picker/ColorSelector.d.ts +6 -0
- package/esm/color-picker/ColorSelector.js +30 -0
- package/esm/color-picker/CustomColorSelector.d.ts +3 -0
- package/esm/color-picker/CustomColorSelector.js +38 -0
- package/esm/color-picker/GradientColorPicker.d.ts +6 -0
- package/esm/color-picker/GradientColorPicker.js +66 -0
- package/esm/color-picker/Swatch.js +3 -5
- package/esm/color-picker/colors.d.ts +2 -0
- package/esm/color-picker/colors.js +24 -0
- package/esm/color-picker/constants.d.ts +13 -0
- package/esm/color-picker/constants.js +9 -0
- package/esm/color-picker/locale.d.ts +4 -0
- package/esm/color-picker/types.d.ts +50 -1
- package/esm/color-picker/utils.d.ts +17 -0
- package/esm/color-picker/utils.js +33 -0
- package/esm/date-input/DateInput.d.ts +1 -1
- package/esm/date-input/DateInput.js +98 -87
- package/esm/date-input/constants.d.ts +28 -0
- package/esm/date-input/constants.js +28 -0
- package/esm/date-input/index.d.ts +1 -0
- package/esm/date-input/index.js +1 -0
- package/esm/date-input/types.d.ts +13 -4
- package/esm/date-input/utils.d.ts +2 -0
- package/esm/date-input/utils.js +72 -0
- package/esm/date-picker/Calendar.d.ts +4 -9
- package/esm/date-picker/Calendar.js +110 -119
- package/esm/date-picker/DateInput.d.ts +2 -2
- package/esm/date-picker/DateInput.js +30 -46
- package/esm/date-picker/DatePickerContent.js +9 -28
- package/esm/date-picker/DateTimeContainer.d.ts +2 -2
- package/esm/date-picker/DateTimeContainer.js +16 -10
- package/esm/date-picker/StatelessDatePicker.js +4 -16
- package/esm/date-picker/TimeInput.d.ts +2 -2
- package/esm/date-picker/TimeInput.js +1 -1
- package/esm/date-picker/index.d.ts +1 -1
- package/esm/date-picker/index.js +1 -1
- package/esm/date-picker/stateful-container.d.ts +1 -1
- package/esm/date-picker/stateful-container.js +1 -1
- package/esm/date-picker/styled-components.js +9 -6
- package/esm/date-picker/types.d.ts +2 -1
- package/esm/date-picker/utils.d.ts +2 -2
- package/esm/date-picker/utils.js +3 -3
- package/esm/form-control/form-control.js +7 -6
- package/esm/form-control/types.d.ts +5 -3
- package/esm/grid/Col.js +30 -20
- package/esm/helpers/commonStyles.d.ts +1 -0
- package/esm/helpers/commonStyles.js +13 -0
- package/esm/helpers/styletron.d.ts +0 -23
- package/esm/helpers/styletron.js +0 -13
- package/esm/hooks/useFocusVisible.js +1 -1
- package/esm/hooks/useHasMounted.d.ts +2 -0
- package/esm/hooks/useHasMounted.js +11 -0
- package/esm/hooks/usePreferredReducedMotion.d.ts +2 -0
- package/esm/hooks/usePreferredReducedMotion.js +9 -0
- package/esm/hooks/useTransitionState.d.ts +4 -0
- package/esm/hooks/useTransitionState.js +21 -0
- package/esm/hooks/useUniqueId.d.ts +4 -1
- package/esm/hooks/useUniqueId.js +7 -5
- package/esm/icon/components/noPreview.d.ts +3 -0
- package/esm/icon/components/noPreview.js +8 -0
- package/esm/icon/components/overview.d.ts +3 -0
- package/esm/icon/components/overview.js +8 -0
- package/esm/icon/constants.d.ts +4 -0
- package/esm/icon/constants.js +4 -0
- package/esm/icon/icon.d.ts +1 -1
- package/esm/icon/icon.js +3 -2
- package/esm/icon/types.d.ts +3 -0
- package/esm/input/InputContainer.d.ts +12 -0
- package/esm/input/InputContainer.js +18 -0
- package/esm/input/basewebAdapters.d.ts +2 -2
- package/esm/input/basewebAdapters.js +45 -42
- package/esm/input/index.d.ts +4 -3
- package/esm/input/index.js +3 -2
- package/esm/input/input.js +1 -1
- package/esm/input/styled-components.js +1 -1
- package/esm/input/types.d.ts +1 -1
- package/esm/layer/LayersManager.js +3 -1
- package/esm/layer/useLayersContextValue.d.ts +1 -1
- package/esm/layer/useLayersContextValue.js +48 -3
- package/esm/list/list-item-text.d.ts +1 -2
- package/esm/list/list-item.d.ts +1 -1
- package/esm/list/list-item.js +1 -1
- package/esm/loader/loader.d.ts +3 -1
- package/esm/loader/loader.js +12 -3
- package/esm/loader/styled-component.d.ts +2 -0
- package/esm/loader/styled-component.js +61 -0
- package/esm/loader/types.d.ts +2 -1
- package/esm/locale/context.d.ts +1 -1
- package/esm/locale/en_US.js +5 -0
- package/esm/locale/types.d.ts +7 -7
- package/esm/menu/helpers.d.ts +8 -1
- package/esm/menu/helpers.js +4 -4
- package/esm/menu/menu-item.d.ts +3 -3
- package/esm/menu/menu-item.js +6 -2
- package/esm/modal/adapter.d.ts +1 -1
- package/esm/modal/adapter.js +1 -1
- package/esm/modal/index.d.ts +1 -1
- package/esm/modal/index.js +1 -1
- package/esm/modal/modal-footer.d.ts +1 -1
- package/esm/modal/modal-footer.js +4 -3
- package/esm/modal/modal.js +16 -13
- package/esm/modal/overrides.js +6 -13
- package/esm/modal/styled-components.d.ts +2 -2
- package/esm/modal/styled-components.js +3 -12
- package/esm/modal/types.d.ts +3 -3
- package/esm/modal/types.js +1 -1
- package/esm/overrides/useOverrides.js +1 -1
- package/esm/payment-card/basewebAdapters.d.ts +1 -1
- package/esm/payment-card/basewebAdapters.js +2 -2
- package/esm/payment-card/index.d.ts +1 -1
- package/esm/payment-card/index.js +1 -1
- package/esm/payment-card/paymentCard.js +1 -1
- package/esm/payment-card/types.d.ts +1 -1
- package/esm/phone-input/styled-components.d.ts +1 -1
- package/esm/phone-input/styled-components.js +5 -13
- package/esm/phone-input/types.d.ts +1 -1
- package/esm/popover/PopoverEnahncer.d.ts +1 -1
- package/esm/popover/adapter.d.ts +1 -1
- package/esm/popover/adapter.js +1 -1
- package/esm/popover/hooks.d.ts +1 -1
- package/esm/popover/index.d.ts +1 -1
- package/esm/popover/index.js +1 -1
- package/esm/popover/popover.d.ts +1 -1
- package/esm/popover/popover.js +16 -12
- package/esm/popover/stateful-popover.js +1 -1
- package/esm/popover/styled-components.d.ts +1 -1
- package/esm/popover/styled-components.js +1 -1
- package/esm/popover/types.d.ts +5 -5
- package/esm/popover/types.js +2 -2
- package/esm/radio/basewebAdapters.d.ts +1 -1
- package/esm/radio/basewebAdapters.js +33 -29
- package/esm/radio/index.d.ts +1 -1
- package/esm/radio/index.js +1 -1
- package/esm/radio/radio.js +1 -1
- package/esm/radio/styled-components.js +2 -2
- package/esm/radio/types.d.ts +1 -2
- package/esm/select/adaptor.d.ts +1 -1
- package/esm/select/adaptor.js +1 -1
- package/esm/select/base-select.d.ts +6 -7
- package/esm/select/base-select.js +23 -67
- package/esm/select/constants.d.ts +1 -1
- package/esm/select/constants.js +2 -2
- package/esm/select/index.d.ts +2 -2
- package/esm/select/index.js +1 -1
- package/esm/select/locale.d.ts +1 -0
- package/esm/select/mobileSelect/MobileSelect.js +9 -2
- package/esm/select/mobileSelect/MobileSheet.js +1 -1
- package/esm/select/mobileSelect/overrides.d.ts +1 -1
- package/esm/select/overlaySelect/OverlaySelect.d.ts +2 -1
- package/esm/select/overlaySelect/OverlaySelect.js +38 -8
- package/esm/select/overlaySelect/hooks/useControlRef.d.ts +1 -1
- package/esm/select/overlaySelect/hooks/useOverlaySelectOverrides.d.ts +1 -4
- package/esm/select/overlaySelect/hooks/useOverlaySelectOverrides.js +2 -8
- package/esm/select/overrides.d.ts +2 -2
- package/esm/select/select.d.ts +4 -4
- package/esm/select/select.js +0 -3
- package/esm/select/selectMenuAdapter/CollapsibleSelectMenu.d.ts +14 -13
- package/esm/select/selectMenuAdapter/CollapsibleSelectMenu.js +43 -12
- package/esm/select/selectMenuAdapter/SelectMenuAdapter.js +1 -1
- package/esm/select/selectMenuAdapter/SelectMenuItem.d.ts +3 -3
- package/esm/select/selectMenuAdapter/hooks/useGetExpandedGroup.d.ts +1 -1
- package/esm/select/selectMenuAdapter/hooks/useGetExpandedGroup.js +3 -2
- package/esm/select/selectMenuAdapter/types.d.ts +3 -1
- package/esm/select/stateful-select.d.ts +4 -4
- package/esm/select/stateful-select.js +1 -1
- package/esm/select/styled-component.d.ts +6 -6
- package/esm/select/styled-component.js +21 -16
- package/esm/select/types.d.ts +5 -14
- package/esm/select/types.js +2 -1
- package/esm/select/utils/default-create-option.d.ts +5 -0
- package/esm/select/utils/default-create-option.js +6 -0
- package/esm/select/utils/default-filter-options.d.ts +1 -1
- package/esm/select/utils/default-filter-options.js +1 -1
- package/esm/select/utils/merge-options.js +1 -1
- package/esm/slider/mark.d.ts +3 -3
- package/esm/slider/slider.js +12 -7
- package/esm/slider/stateful-slider-container.js +1 -1
- package/esm/slider/types.d.ts +1 -1
- package/esm/snackbar/Snackbar.js +2 -2
- package/esm/snackbar/constants.d.ts +1 -1
- package/esm/snackbar/useSnackbar.js +16 -7
- package/esm/spacewebProvider/AiIconLinearGradients.d.ts +2 -0
- package/esm/spacewebProvider/AiIconLinearGradients.js +9 -0
- package/esm/spacewebProvider/CustomBaseProvider.d.ts +2 -11
- package/esm/spacewebProvider/CustomBaseProvider.js +4 -12
- package/esm/spacewebProvider/SpacewebProvider.js +8 -6
- package/esm/style/styled.d.ts +1 -1
- package/esm/style/useMemoizedStyletron.d.ts +2 -1
- package/esm/style/useMemoizedStyletron.js +3 -3
- package/esm/switch/index.d.ts +1 -1
- package/esm/switch/index.js +1 -1
- package/esm/switch/styled-components.js +0 -2
- package/esm/switch/switch.js +1 -1
- package/esm/switch/types.d.ts +1 -1
- package/esm/tabs/contexts.d.ts +2 -2
- package/esm/tabs/styled-components.d.ts +1 -1
- package/esm/tabs/tab-list.js +2 -1
- package/esm/tag/intentStyles.d.ts +5 -1
- package/esm/tag/intentStyles.js +31 -5
- package/esm/tag/styled-components.js +5 -4
- package/esm/tag/tag.js +3 -7
- package/esm/tag/types.d.ts +1 -1
- package/esm/textarea/basewebAdapters.js +17 -15
- package/esm/textarea/index.d.ts +1 -1
- package/esm/textarea/index.js +1 -1
- package/esm/textarea/styled-components.d.ts +1 -1
- package/esm/textarea/textarea.js +1 -1
- package/esm/textarea/types.d.ts +1 -1
- package/esm/theme/Provider.js +4 -10
- package/esm/time-picker/TimePicker.js +15 -12
- package/esm/time-picker/types.d.ts +2 -2
- package/esm/time-range-picker/RangeSelector.js +7 -11
- package/esm/time-range-picker/RangeSelectorContainer.js +2 -2
- package/esm/time-range-picker/TimeRangeList.js +1 -1
- package/esm/time-range-picker/TimeRangePicker.js +9 -3
- package/esm/time-range-picker/constants.d.ts +0 -2
- package/esm/time-range-picker/constants.js +0 -2
- package/esm/time-range-picker/types.d.ts +1 -2
- package/esm/time-range-picker/utils.d.ts +2 -6
- package/esm/time-range-picker/utils.js +5 -16
- package/esm/tooltip/disabled-tooltip-container.d.ts +2 -1
- package/esm/tooltip/disabled-tooltip-container.js +1 -1
- package/esm/tooltip/overrides.js +10 -4
- package/esm/tooltip/stateful-tooltip-container.d.ts +2 -1
- package/esm/tooltip/stateful-tooltip-container.js +1 -1
- package/esm/tooltip/stateful-tooltip.d.ts +2 -1
- package/esm/tooltip/stateful-tooltip.js +3 -5
- package/esm/tooltip/styled-component.d.ts +1 -1
- package/esm/tooltip/styled-component.js +1 -1
- package/esm/tooltip/tooltip.d.ts +1 -1
- package/esm/tooltip/tooltip.js +17 -13
- package/esm/tooltip/types.d.ts +8 -4
- package/esm/transitions/collapse/collapse.d.ts +7 -0
- package/esm/transitions/collapse/collapse.js +64 -0
- package/esm/transitions/collapse/index.d.ts +3 -0
- package/esm/transitions/collapse/index.js +1 -0
- package/esm/transitions/collapse/styled-components.d.ts +1 -0
- package/esm/transitions/collapse/styled-components.js +23 -0
- package/esm/transitions/collapse/types.d.ts +19 -0
- package/esm/transitions/collapse/types.js +1 -0
- package/esm/transitions/fade/fade.d.ts +7 -0
- package/esm/transitions/fade/fade.js +27 -0
- package/esm/transitions/fade/index.d.ts +3 -0
- package/esm/transitions/fade/index.js +1 -0
- package/esm/transitions/fade/types.d.ts +10 -0
- package/esm/transitions/fade/types.js +1 -0
- package/esm/transitions/grow/grow.d.ts +7 -0
- package/esm/transitions/grow/grow.js +30 -0
- package/esm/transitions/grow/index.d.ts +3 -0
- package/esm/transitions/grow/index.js +1 -0
- package/esm/transitions/grow/types.d.ts +9 -0
- package/esm/transitions/grow/types.js +1 -0
- package/esm/transitions/transition/constants.d.ts +6 -0
- package/esm/transitions/transition/constants.js +6 -0
- package/esm/transitions/transition/helperFunction.d.ts +1 -0
- package/esm/transitions/transition/helperFunction.js +5 -0
- package/esm/transitions/transition/index.d.ts +4 -0
- package/esm/transitions/transition/index.js +3 -0
- package/esm/transitions/transition/styled-component.d.ts +1 -0
- package/esm/transitions/transition/styled-component.js +24 -0
- package/esm/transitions/transition/transition.d.ts +7 -0
- package/esm/transitions/transition/transition.js +34 -0
- package/esm/transitions/transition/transitionGroup.d.ts +4 -0
- package/esm/transitions/transition/transitionGroup.js +11 -0
- package/esm/transitions/transition/types.d.ts +40 -0
- package/esm/transitions/transition/types.js +1 -0
- package/esm/truncateWithTooltip/TruncateWithTooltip.d.ts +4 -0
- package/esm/truncateWithTooltip/TruncateWithTooltip.js +20 -0
- package/esm/truncateWithTooltip/hooks/useTruncateWithTooltip.d.ts +7 -0
- package/esm/truncateWithTooltip/hooks/useTruncateWithTooltip.js +26 -0
- package/esm/truncateWithTooltip/index.d.ts +2 -0
- package/esm/truncateWithTooltip/index.js +1 -0
- package/esm/truncateWithTooltip/types.d.ts +20 -0
- package/esm/truncateWithTooltip/types.js +1 -0
- package/esm/types.d.ts +2 -5
- package/esm/typography/Typography.d.ts +6 -0
- package/esm/typography/Typography.js +8 -3
- package/esm/typography/types.d.ts +7 -1
- package/esm/utils/intlNumberFormatUtils/index.js +3 -1
- package/esm/video/Video.js +3 -2
- package/esm/video/types.d.ts +1 -0
- package/form-control/form-control.js +7 -6
- package/form-control/types.d.ts +5 -3
- package/grid/Col.js +29 -19
- package/helpers/commonStyles.d.ts +1 -0
- package/helpers/commonStyles.js +14 -1
- package/helpers/styletron.d.ts +0 -23
- package/helpers/styletron.js +0 -16
- package/hooks/useFocusVisible.js +1 -1
- package/hooks/useHasMounted.d.ts +2 -0
- package/hooks/useHasMounted.js +14 -0
- package/hooks/usePreferredReducedMotion.d.ts +2 -0
- package/hooks/usePreferredReducedMotion.js +11 -0
- package/hooks/useTransitionState.d.ts +4 -0
- package/hooks/useTransitionState.js +25 -0
- package/hooks/useUniqueId.d.ts +4 -1
- package/hooks/useUniqueId.js +9 -7
- package/icon/components/noPreview.d.ts +3 -0
- package/icon/components/noPreview.js +11 -0
- package/icon/components/overview.d.ts +3 -0
- package/icon/components/overview.js +11 -0
- package/icon/constants.d.ts +4 -0
- package/icon/constants.js +7 -0
- package/icon/icon.d.ts +1 -1
- package/icon/icon.js +3 -2
- package/icon/types.d.ts +3 -0
- package/input/InputContainer.d.ts +12 -0
- package/input/InputContainer.js +22 -0
- package/input/basewebAdapters.d.ts +2 -2
- package/input/basewebAdapters.js +45 -42
- package/input/index.d.ts +4 -3
- package/input/index.js +5 -3
- package/input/input.js +1 -1
- package/input/styled-components.js +1 -1
- package/input/types.d.ts +1 -1
- package/layer/LayersManager.js +3 -1
- package/layer/useLayersContextValue.d.ts +1 -1
- package/layer/useLayersContextValue.js +48 -3
- package/list/list-item-text.d.ts +1 -2
- package/list/list-item.d.ts +1 -1
- package/list/list-item.js +1 -1
- package/loader/loader.d.ts +3 -1
- package/loader/loader.js +11 -2
- package/loader/styled-component.d.ts +2 -0
- package/loader/styled-component.js +62 -1
- package/loader/types.d.ts +2 -1
- package/locale/context.d.ts +1 -1
- package/locale/en_US.js +5 -0
- package/locale/types.d.ts +7 -7
- package/menu/helpers.d.ts +8 -1
- package/menu/helpers.js +7 -4
- package/menu/menu-item.d.ts +3 -3
- package/menu/menu-item.js +6 -2
- package/modal/adapter.d.ts +1 -1
- package/modal/adapter.js +1 -1
- package/modal/index.d.ts +1 -1
- package/modal/index.js +1 -1
- package/modal/modal-footer.d.ts +1 -1
- package/modal/modal-footer.js +3 -2
- package/modal/modal.js +16 -13
- package/modal/overrides.js +6 -13
- package/modal/styled-components.d.ts +2 -2
- package/modal/styled-components.js +3 -13
- package/modal/types.d.ts +3 -3
- package/modal/types.js +1 -1
- package/overrides/useOverrides.js +1 -1
- package/package.json +31 -15
- package/payment-card/basewebAdapters.d.ts +1 -1
- package/payment-card/basewebAdapters.js +2 -2
- package/payment-card/index.d.ts +1 -1
- package/payment-card/index.js +1 -1
- package/payment-card/paymentCard.js +1 -1
- package/payment-card/types.d.ts +1 -1
- package/phone-input/styled-components.d.ts +1 -1
- package/phone-input/styled-components.js +5 -13
- package/phone-input/types.d.ts +1 -1
- package/popover/PopoverEnahncer.d.ts +1 -1
- package/popover/adapter.d.ts +1 -1
- package/popover/adapter.js +1 -1
- package/popover/hooks.d.ts +1 -1
- package/popover/index.d.ts +1 -1
- package/popover/index.js +1 -1
- package/popover/popover.d.ts +1 -1
- package/popover/popover.js +15 -11
- package/popover/stateful-popover.js +1 -1
- package/popover/styled-components.d.ts +1 -1
- package/popover/styled-components.js +1 -1
- package/popover/types.d.ts +5 -5
- package/popover/types.js +2 -2
- package/radio/basewebAdapters.d.ts +1 -1
- package/radio/basewebAdapters.js +32 -28
- package/radio/index.d.ts +1 -1
- package/radio/index.js +1 -1
- package/radio/radio.js +1 -1
- package/radio/styled-components.js +2 -2
- package/radio/types.d.ts +1 -2
- package/select/adaptor.d.ts +1 -1
- package/select/adaptor.js +1 -1
- package/select/base-select.d.ts +6 -7
- package/select/base-select.js +35 -79
- package/select/constants.d.ts +1 -1
- package/select/constants.js +2 -2
- package/select/index.d.ts +2 -2
- package/select/index.js +1 -1
- package/select/locale.d.ts +1 -0
- package/select/mobileSelect/MobileSelect.js +9 -2
- package/select/mobileSelect/MobileSheet.js +1 -1
- package/select/mobileSelect/overrides.d.ts +1 -1
- package/select/overlaySelect/OverlaySelect.d.ts +2 -1
- package/select/overlaySelect/OverlaySelect.js +35 -5
- package/select/overlaySelect/hooks/useControlRef.d.ts +1 -1
- package/select/overlaySelect/hooks/useOverlaySelectOverrides.d.ts +1 -4
- package/select/overlaySelect/hooks/useOverlaySelectOverrides.js +2 -8
- package/select/overrides.d.ts +2 -2
- package/select/select.d.ts +4 -4
- package/select/select.js +0 -3
- package/select/selectMenuAdapter/CollapsibleSelectMenu.d.ts +14 -13
- package/select/selectMenuAdapter/CollapsibleSelectMenu.js +42 -11
- package/select/selectMenuAdapter/SelectMenuAdapter.js +1 -1
- package/select/selectMenuAdapter/SelectMenuItem.d.ts +3 -3
- package/select/selectMenuAdapter/hooks/useGetExpandedGroup.d.ts +1 -1
- package/select/selectMenuAdapter/hooks/useGetExpandedGroup.js +3 -2
- package/select/selectMenuAdapter/types.d.ts +3 -1
- package/select/stateful-select.d.ts +4 -4
- package/select/stateful-select.js +1 -1
- package/select/styled-component.d.ts +6 -6
- package/select/styled-component.js +21 -16
- package/select/types.d.ts +5 -14
- package/select/types.js +3 -2
- package/select/utils/default-create-option.d.ts +5 -0
- package/select/utils/default-create-option.js +11 -0
- package/select/utils/default-filter-options.d.ts +1 -1
- package/select/utils/default-filter-options.js +1 -1
- package/select/utils/merge-options.js +1 -1
- package/slider/mark.d.ts +3 -3
- package/slider/slider.js +12 -7
- package/slider/stateful-slider-container.js +1 -1
- package/slider/types.d.ts +1 -1
- package/snackbar/Snackbar.js +2 -2
- package/snackbar/constants.d.ts +1 -1
- package/snackbar/useSnackbar.js +16 -7
- package/spacewebProvider/AiIconLinearGradients.d.ts +2 -0
- package/spacewebProvider/AiIconLinearGradients.js +11 -0
- package/spacewebProvider/CustomBaseProvider.d.ts +2 -11
- package/spacewebProvider/CustomBaseProvider.js +4 -12
- package/spacewebProvider/SpacewebProvider.js +8 -6
- package/style/styled.d.ts +1 -1
- package/style/useMemoizedStyletron.d.ts +2 -1
- package/style/useMemoizedStyletron.js +3 -3
- package/switch/index.d.ts +1 -1
- package/switch/index.js +1 -1
- package/switch/styled-components.js +0 -2
- package/switch/switch.js +1 -1
- package/switch/types.d.ts +1 -1
- package/tabs/contexts.d.ts +2 -2
- package/tabs/styled-components.d.ts +1 -1
- package/tabs/tab-list.js +2 -1
- package/tag/intentStyles.d.ts +5 -1
- package/tag/intentStyles.js +31 -5
- package/tag/styled-components.js +5 -4
- package/tag/tag.js +3 -7
- package/tag/types.d.ts +1 -1
- package/textarea/basewebAdapters.js +17 -15
- package/textarea/index.d.ts +1 -1
- package/textarea/index.js +1 -1
- package/textarea/styled-components.d.ts +1 -1
- package/textarea/textarea.js +1 -1
- package/textarea/types.d.ts +1 -1
- package/theme/Provider.js +2 -8
- package/time-picker/TimePicker.js +15 -12
- package/time-picker/types.d.ts +2 -2
- package/time-range-picker/RangeSelector.js +5 -9
- package/time-range-picker/RangeSelectorContainer.js +2 -2
- package/time-range-picker/TimeRangeList.js +1 -1
- package/time-range-picker/TimeRangePicker.js +9 -3
- package/time-range-picker/constants.d.ts +0 -2
- package/time-range-picker/constants.js +1 -3
- package/time-range-picker/types.d.ts +1 -2
- package/time-range-picker/utils.d.ts +2 -6
- package/time-range-picker/utils.js +5 -17
- package/tooltip/disabled-tooltip-container.d.ts +2 -1
- package/tooltip/disabled-tooltip-container.js +1 -1
- package/tooltip/overrides.js +10 -4
- package/tooltip/stateful-tooltip-container.d.ts +2 -1
- package/tooltip/stateful-tooltip-container.js +1 -1
- package/tooltip/stateful-tooltip.d.ts +2 -1
- package/tooltip/stateful-tooltip.js +3 -5
- package/tooltip/styled-component.d.ts +1 -1
- package/tooltip/styled-component.js +1 -1
- package/tooltip/tooltip.d.ts +1 -1
- package/tooltip/tooltip.js +16 -12
- package/tooltip/types.d.ts +8 -4
- package/transitions/collapse/collapse.d.ts +7 -0
- package/transitions/collapse/collapse.js +66 -0
- package/transitions/collapse/index.d.ts +3 -0
- package/transitions/collapse/index.js +8 -0
- package/transitions/collapse/styled-components.d.ts +1 -0
- package/transitions/collapse/styled-components.js +26 -0
- package/transitions/collapse/types.d.ts +19 -0
- package/transitions/collapse/types.js +2 -0
- package/transitions/fade/fade.d.ts +7 -0
- package/transitions/fade/fade.js +29 -0
- package/transitions/fade/index.d.ts +3 -0
- package/transitions/fade/index.js +8 -0
- package/transitions/fade/types.d.ts +10 -0
- package/transitions/fade/types.js +2 -0
- package/transitions/grow/grow.d.ts +7 -0
- package/transitions/grow/grow.js +32 -0
- package/transitions/grow/index.d.ts +3 -0
- package/transitions/grow/index.js +8 -0
- package/transitions/grow/types.d.ts +9 -0
- package/transitions/grow/types.js +2 -0
- package/transitions/package.json +4 -0
- package/transitions/transition/constants.d.ts +6 -0
- package/transitions/transition/constants.js +9 -0
- package/transitions/transition/helperFunction.d.ts +1 -0
- package/transitions/transition/helperFunction.js +9 -0
- package/transitions/transition/index.d.ts +4 -0
- package/transitions/transition/index.js +15 -0
- package/transitions/transition/styled-component.d.ts +1 -0
- package/transitions/transition/styled-component.js +27 -0
- package/transitions/transition/transition.d.ts +7 -0
- package/transitions/transition/transition.js +36 -0
- package/transitions/transition/transitionGroup.d.ts +4 -0
- package/transitions/transition/transitionGroup.js +13 -0
- package/transitions/transition/types.d.ts +40 -0
- package/transitions/transition/types.js +2 -0
- package/truncateWithTooltip/TruncateWithTooltip.d.ts +4 -0
- package/truncateWithTooltip/TruncateWithTooltip.js +22 -0
- package/truncateWithTooltip/hooks/useTruncateWithTooltip.d.ts +7 -0
- package/truncateWithTooltip/hooks/useTruncateWithTooltip.js +30 -0
- package/truncateWithTooltip/index.d.ts +2 -0
- package/truncateWithTooltip/index.js +8 -0
- package/truncateWithTooltip/package.json +4 -0
- package/truncateWithTooltip/types.d.ts +20 -0
- package/truncateWithTooltip/types.js +2 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/types.d.ts +2 -5
- package/typography/Typography.d.ts +6 -0
- package/typography/Typography.js +7 -2
- package/typography/types.d.ts +7 -1
- package/utils/intlNumberFormatUtils/index.js +3 -1
- package/video/Video.js +3 -2
- package/video/types.d.ts +1 -0
- package/date-input/Before.d.ts +0 -19
- package/date-input/Before.js +0 -27
- package/date-input/CalendarIconButton.d.ts +0 -3
- package/date-input/CalendarIconButton.js +0 -16
- package/esm/date-input/Before.d.ts +0 -19
- package/esm/date-input/Before.js +0 -23
- package/esm/date-input/CalendarIconButton.d.ts +0 -3
- package/esm/date-input/CalendarIconButton.js +0 -12
- package/esm/helpers/baseui/useConvertOverrides.d.ts +0 -15
- package/esm/helpers/baseui/useConvertOverrides.js +0 -35
- package/esm/helpers/baseui/withThemeOverride.d.ts +0 -9
- package/esm/helpers/baseui/withThemeOverride.js +0 -21
- package/esm/style/__mocks__/CSS.mock.d.ts +0 -10
- package/esm/style/__mocks__/CSS.mock.js +0 -9
- package/esm/style/__mocks__/UseStyle.mock.d.ts +0 -10
- package/esm/style/__mocks__/UseStyle.mock.js +0 -8
- package/esm/themes/dark-theme.d.ts +0 -6
- package/esm/themes/dark-theme.js +0 -9
- package/esm/themes/index.d.ts +0 -10
- package/esm/themes/index.js +0 -18
- package/esm/themes/light-theme.d.ts +0 -6
- package/esm/themes/light-theme.js +0 -9
- package/esm/themes/responsive-theme.d.ts +0 -20
- package/esm/themes/responsive-theme.js +0 -19
- package/esm/themes/shared.d.ts +0 -4
- package/esm/themes/shared.js +0 -4
- package/helpers/baseui/useConvertOverrides.d.ts +0 -15
- package/helpers/baseui/useConvertOverrides.js +0 -40
- package/helpers/baseui/withThemeOverride.d.ts +0 -9
- package/helpers/baseui/withThemeOverride.js +0 -23
- package/style/__mocks__/CSS.mock.d.ts +0 -10
- package/style/__mocks__/CSS.mock.js +0 -11
- package/style/__mocks__/UseStyle.mock.d.ts +0 -10
- package/style/__mocks__/UseStyle.mock.js +0 -11
- package/themes/dark-theme.d.ts +0 -6
- package/themes/dark-theme.js +0 -12
- package/themes/index.d.ts +0 -10
- package/themes/index.js +0 -23
- package/themes/light-theme.d.ts +0 -6
- package/themes/light-theme.js +0 -12
- package/themes/package.json +0 -4
- package/themes/responsive-theme.d.ts +0 -20
- package/themes/responsive-theme.js +0 -23
- package/themes/shared.d.ts +0 -4
- package/themes/shared.js +0 -7
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var tslib_1 = require("tslib");
|
|
4
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
var UnionPay = function (_a) {
|
|
6
|
+
var size = _a.size;
|
|
7
|
+
return ((0, jsx_runtime_1.jsxs)("svg", (0, tslib_1.__assign)({ width: size, height: size, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: [(0, jsx_runtime_1.jsx)("path", { d: "M1 4V20H9.5L13.12 4H1Z", fill: "#D0112B" }, void 0), (0, jsx_runtime_1.jsx)("path", { d: "M9.85999 4L6.23999 20H16.5L20.12 4H9.85999Z", fill: "#002857" }, void 0), (0, jsx_runtime_1.jsx)("path", { d: "M22.9999 4H17.7599L14.1399 20H22.9999V4Z", fill: "#007178" }, void 0), (0, jsx_runtime_1.jsx)("path", { d: "M18.0499 12.52C17.9699 12.52 17.9299 12.5 17.9299 12.45L17.9199 12.1899H17.2199C16.9999 12.1899 16.3199 12.21 16.1799 12.25C16.0099 12.29 15.8399 12.42 15.8399 12.42L15.9099 12.1899H15.2499L15.1099 12.65L14.4199 14.92H14.2999L14.1699 15.35H15.4799L15.4399 15.49H16.0799L16.1199 15.35H16.2999L16.4399 14.89H16.2599L16.9399 12.65H17.1599L17.2299 12.42L17.2399 12.6801C17.2299 12.8401 17.3599 12.98 17.6799 12.96H18.0599L18.1899 12.53H18.0499V12.52ZM15.6199 14.9H15.0999L15.2499 14.4H15.7699L15.6199 14.9ZM15.9199 13.9301C15.9199 13.9301 15.7599 13.95 15.6499 13.97C15.5399 14 15.3399 14.1 15.3399 14.1L15.5199 13.5H16.0399L15.9199 13.9301ZM16.1699 13.0699C16.1699 13.0699 16.0099 13.08 15.8999 13.11C15.7899 13.14 15.5999 13.23 15.5999 13.23L15.7699 12.66H16.2899L16.1699 13.0699Z", fill: "white" }, void 0), (0, jsx_runtime_1.jsx)("path", { d: "M17.32 14.24H16.65L16.76 13.86H17.52L17.63 13.51H16.88L17.01 13.08H19.11L18.98 13.51H18.28L18.17 13.86H18.88L18.76 14.24H18L17.86 14.4H18.17L18.25 14.88C18.26 14.93 18.26 14.96 18.27 14.98C18.29 15 18.38 15.01 18.43 15.01H18.52L18.38 15.48H18.14C18.1 15.48 18.05 15.48 17.97 15.47C17.9 15.46 17.85 15.42 17.8 15.4C17.76 15.38 17.69 15.33 17.68 15.24L17.61 14.76L17.26 15.23C17.15 15.38 17 15.5 16.75 15.5H16.27L16.4 15.08H16.59C16.64 15.08 16.69 15.06 16.73 15.04C16.77 15.03 16.8 15.01 16.83 14.95L17.32 14.24Z", fill: "white" }, void 0), (0, jsx_runtime_1.jsx)("path", { d: "M10.0001 13.1899H11.7701L11.6401 13.61H10.9301L10.8201 13.97H11.5401L11.4101 14.41H10.6901L10.5101 15C10.4901 15.06 10.6801 15.0699 10.7501 15.0699L11.1101 15.02L10.9601 15.5H10.1401C10.0701 15.5 10.0301 15.49 9.95011 15.47C9.88011 15.45 9.85011 15.42 9.82011 15.38C9.79011 15.33 9.74011 15.2899 9.78011 15.1899L10.0101 14.42H9.61011L9.74011 13.98H10.1401L10.2501 13.62H9.85011L10.0001 13.1899Z", fill: "white" }, void 0), (0, jsx_runtime_1.jsx)("path", { d: "M11.1899 12.4301H11.9199L11.7899 12.87H10.7999L10.6899 12.96C10.6399 13 10.6299 12.99 10.5699 13.02C10.5099 13.05 10.3999 13.1 10.2399 13.1H9.91992L10.0499 12.6801H10.1499C10.2299 12.6801 10.2899 12.67 10.3099 12.66C10.3399 12.64 10.3799 12.59 10.4199 12.52L10.5999 12.1899H11.3199L11.1899 12.4301Z", fill: "white" }, void 0), (0, jsx_runtime_1.jsx)("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12.5801 13.16C12.5801 13.16 12.7801 12.98 13.1201 12.92C13.2001 12.91 13.6801 12.91 13.6801 12.91L13.7501 12.67H12.7301L12.5801 13.16ZM13.5401 13.34H12.5301L12.4701 13.54H13.3501C13.4501 13.53 13.4701 13.54 13.4801 13.54L13.5401 13.34ZM12.2301 12.2H12.8501L12.7601 12.51C12.7601 12.51 12.9601 12.35 13.0901 12.3C13.2301 12.25 13.5301 12.2 13.5301 12.2L14.5301 12.1899L14.1901 13.33C14.1301 13.52 14.0701 13.65 14.0201 13.71C13.9801 13.77 13.9401 13.82 13.8501 13.87C13.7701 13.92 13.6901 13.94 13.6201 13.95C13.5501 13.95 13.4501 13.96 13.3101 13.96H12.3501L12.0801 14.86C12.0501 14.95 12.0401 14.99 12.0601 15.02C12.0701 15.04 12.1101 15.0601 12.1501 15.0601L12.5801 15.02L12.4301 15.51H11.9601C11.8101 15.51 11.7001 15.51 11.6201 15.5C11.5501 15.49 11.4701 15.5 11.4201 15.46C11.3801 15.42 11.3101 15.3699 11.3101 15.3199C11.3101 15.2699 11.3401 15.19 11.3701 15.08L12.2301 12.2Z", fill: "white" }, void 0), (0, jsx_runtime_1.jsx)("path", { d: "M14.0301 14.03L13.9701 14.3C13.9501 14.39 13.9201 14.45 13.8601 14.5C13.7901 14.56 13.7101 14.62 13.5301 14.62L13.1901 14.63V14.9399C13.1901 15.0299 13.2101 15.02 13.2201 15.03C13.2401 15.05 13.2501 15.0501 13.2601 15.0601L13.3701 15.05L13.7001 15.03L13.5601 15.48H13.1801C12.9201 15.48 12.7201 15.47 12.6601 15.42C12.6001 15.38 12.5901 15.33 12.5901 15.24L12.6101 14.04H13.2101L13.2001 14.29H13.3401C13.3901 14.29 13.4201 14.29 13.4401 14.27C13.4601 14.26 13.4701 14.24 13.4801 14.21L13.5401 14.02H14.0301V14.03Z", fill: "white" }, void 0), (0, jsx_runtime_1.jsx)("path", { d: "M5.46996 8.01001C5.44996 8.11001 5.05996 9.88001 5.05996 9.89001C4.97996 10.25 4.91996 10.51 4.70996 10.67C4.58996 10.77 4.45996 10.8101 4.29996 10.8101C4.04996 10.8101 3.89996 10.68 3.86996 10.45V10.37L3.94996 9.89001C3.94996 9.89001 4.34996 8.27006 4.42996 8.06006C4.42996 8.05006 4.42996 8.04004 4.43996 8.04004C3.64996 8.05004 3.50996 8.04003 3.49996 8.03003C3.48996 8.05003 3.47996 8.15002 3.47996 8.15002L3.06996 9.96997L3.02996 10.12L2.95996 10.63C2.95996 10.78 2.98996 10.9 3.04996 11.01C3.23996 11.34 3.76996 11.39 4.07996 11.39C4.46996 11.39 4.83996 11.31 5.08996 11.16C5.51996 10.91 5.62996 10.51 5.72996 10.16L5.77996 9.97998C5.77996 9.97998 6.19996 8.29996 6.26996 8.07996C6.26996 8.06996 6.26996 8.06006 6.27996 8.06006C5.68996 8.03006 5.51996 8.02001 5.46996 8.01001Z", fill: "white" }, void 0), (0, jsx_runtime_1.jsx)("path", { d: "M7.76994 11.35C7.48994 11.35 7.38994 11.35 7.06994 11.36L7.05994 11.34C7.08994 11.22 7.11994 11.09 7.14994 10.97L7.18994 10.8C7.24994 10.54 7.30994 10.23 7.31994 10.14C7.32994 10.08 7.34994 9.93994 7.17994 9.93994C7.10994 9.93994 7.03994 9.97001 6.96994 10.01C6.92994 10.15 6.84994 10.55 6.80994 10.72C6.72994 11.1 6.71994 11.14 6.68994 11.33L6.66994 11.36C6.37994 11.36 6.27994 11.36 5.94994 11.37L5.93994 11.34C5.98994 11.12 6.04994 10.89 6.09994 10.66C6.23994 10.05 6.26994 9.82001 6.30994 9.51001L6.33994 9.48999C6.65994 9.43999 6.73994 9.43999 7.08994 9.35999L7.11994 9.39001L7.06994 9.57996C7.12994 9.53996 7.18994 9.50998 7.24994 9.47998C7.40994 9.39998 7.59994 9.37 7.69994 9.37C7.84994 9.37 8.01994 9.40997 8.08994 9.58997C8.15994 9.74997 8.10994 9.93995 8.02994 10.3199L7.98994 10.52C7.89994 10.95 7.88994 11.0199 7.83994 11.3199L7.76994 11.35Z", fill: "white" }, void 0), (0, jsx_runtime_1.jsx)("path", { d: "M8.9099 11.35C8.7399 11.35 8.6299 11.35 8.5299 11.35C8.4199 11.35 8.3199 11.36 8.1699 11.36L8.1599 11.35L8.1499 11.34C8.1899 11.18 8.2199 11.1199 8.2399 11.0699C8.2599 11.0099 8.2799 10.96 8.3199 10.79C8.3699 10.58 8.3999 10.43 8.4199 10.3C8.4399 10.17 8.4599 10.0699 8.4699 9.93994L8.4799 9.93005L8.4899 9.92004C8.6599 9.90004 8.7599 9.87999 8.8699 9.85999C8.9799 9.84999 9.0899 9.82004 9.2599 9.79004L9.2699 9.80005V9.81995C9.2399 9.94995 9.2099 10.08 9.1699 10.22C9.1399 10.35 9.1099 10.49 9.0799 10.62C9.0199 10.9 8.9899 11.01 8.9799 11.08C8.9699 11.15 8.9599 11.19 8.9399 11.34L8.9199 11.35H8.9099Z", fill: "white" }, void 0), (0, jsx_runtime_1.jsx)("path", { d: "M10.68 10.35C10.67 10.42 10.6 10.6901 10.52 10.8101C10.46 10.8901 10.39 10.95 10.31 10.95C10.29 10.95 10.15 10.95 10.15 10.74C10.15 10.64 10.17 10.54 10.19 10.42C10.26 10.1 10.35 9.81995 10.57 9.81995C10.75 9.82995 10.76 10.03 10.68 10.35ZM11.41 10.38C11.51 9.95 11.43 9.75 11.34 9.63C11.19 9.44 10.94 9.38 10.67 9.38C10.51 9.38 10.13 9.40004 9.82995 9.67004C9.61995 9.87004 9.51995 10.14 9.45995 10.39C9.39995 10.65 9.32995 11.13 9.76995 11.3C9.89995 11.36 10.1 11.37 10.22 11.37C10.54 11.37 10.86 11.28 11.11 11.02C11.3 10.83 11.38 10.51 11.41 10.38Z", fill: "white" }, void 0), (0, jsx_runtime_1.jsx)("path", { d: "M18.6699 9.41003C18.3199 9.47003 18.2299 9.49004 17.8899 9.54004L17.8599 9.56006C17.8599 9.59006 17.8499 9.62001 17.8499 9.64001C17.7999 9.55001 17.7199 9.47994 17.6099 9.43994C17.4599 9.37994 17.1099 9.45998 16.8099 9.72998C16.5999 9.92998 16.4999 10.19 16.4399 10.45C16.3799 10.71 16.3099 11.18 16.7399 11.35C16.8799 11.41 16.9999 11.43 17.1299 11.42C17.2599 11.41 17.3899 11.34 17.4999 11.25C17.4899 11.29 17.4799 11.33 17.4699 11.37L17.4899 11.4C17.7999 11.39 17.8999 11.39 18.2299 11.39L18.2599 11.37C18.3099 11.08 18.3599 10.8 18.4799 10.25C18.5399 9.98 18.5999 9.71996 18.6699 9.45996V9.41003ZM17.5599 10.85C17.4999 10.93 17.3699 10.98 17.2899 10.98C17.2699 10.98 17.1299 10.98 17.1299 10.78C17.1299 10.68 17.1499 10.58 17.1799 10.46C17.2499 10.14 17.3399 9.87 17.5599 9.87C17.6999 9.87 17.7699 10.01 17.7499 10.24C17.7399 10.29 17.7299 10.34 17.7199 10.4C17.6999 10.5 17.6699 10.5899 17.6499 10.6899C17.6199 10.7499 17.5899 10.81 17.5599 10.85Z", fill: "white" }, void 0), (0, jsx_runtime_1.jsx)("path", { d: "M13.32 11.35C13.04 11.35 12.94 11.35 12.62 11.36L12.61 11.34C12.64 11.22 12.67 11.09 12.7 10.97L12.74 10.8C12.8 10.54 12.86 10.23 12.87 10.14C12.88 10.08 12.9 9.93994 12.74 9.93994C12.67 9.93994 12.6 9.97001 12.53 10.01C12.49 10.15 12.41 10.55 12.37 10.72C12.29 11.1 12.29 11.14 12.25 11.33L12.23 11.36C11.94 11.36 11.84 11.36 11.51 11.37L11.5 11.34C11.55 11.12 11.61 10.89 11.66 10.66C11.8 10.05 11.83 9.82001 11.87 9.51001L11.89 9.48999C12.21 9.43999 12.29 9.43999 12.64 9.35999L12.67 9.39001L12.62 9.57996C12.68 9.53996 12.74 9.50998 12.79 9.47998C12.95 9.39998 13.14 9.37 13.24 9.37C13.39 9.37 13.56 9.40997 13.63 9.58997C13.69 9.74997 13.65 9.93995 13.56 10.3199L13.52 10.52C13.43 10.95 13.41 11.0199 13.37 11.3199L13.32 11.35Z", fill: "white" }, void 0), (0, jsx_runtime_1.jsx)("path", { d: "M15.74 8H15.51C14.91 8.01 14.66 8.00999 14.57 7.98999C14.56 8.02999 14.55 8.10999 14.55 8.10999L14.33 9.10999C14.33 9.10999 13.81 11.24 13.79 11.34C14.32 11.33 14.53 11.33 14.62 11.34C14.64 11.24 14.76 10.64 14.76 10.64C14.76 10.64 14.86 10.1999 14.87 10.1899C14.87 10.1899 14.9 10.14 14.94 10.13H14.99C15.44 10.13 15.96 10.13 16.36 9.82996C16.63 9.62996 16.82 9.32996 16.9 8.95996C16.92 8.86996 16.94 8.76003 16.94 8.66003C16.94 8.52003 16.91 8.38002 16.83 8.27002C16.62 8.01002 16.21 8.01 15.74 8ZM16.04 9.05005C15.99 9.27005 15.85 9.46005 15.66 9.55005C15.51 9.63005 15.32 9.63 15.13 9.63H15L15.01 9.57996L15.24 8.57996L15.25 8.53003V8.48999L15.34 8.5C15.34 8.5 15.81 8.54004 15.82 8.54004C16.01 8.62004 16.09 8.80005 16.04 9.05005Z", fill: "white" }, void 0), (0, jsx_runtime_1.jsx)("path", { d: "M9.20998 9.62995C9.38998 9.49995 9.41998 9.31992 9.25998 9.22992C9.09998 9.13992 8.82998 9.16998 8.63998 9.28998C8.44998 9.41998 8.42998 9.58988 8.58998 9.68988C8.74998 9.78988 9.02998 9.75995 9.20998 9.62995Z", fill: "white" }, void 0), (0, jsx_runtime_1.jsx)("path", { d: "M20.99 9.40002L20.9599 9.37C20.6199 9.44 20.55 9.44999 20.24 9.48999L20.2199 9.51001V9.52002V9.51001C19.9799 10.05 19.9899 9.93999 19.7999 10.36C19.7999 10.34 19.7999 10.3301 19.7999 10.3101L19.75 9.38L19.7199 9.34998C19.3599 9.41998 19.35 9.42997 19.02 9.46997L18.99 9.48999C18.99 9.49999 18.9899 9.51003 18.9799 9.53003C19.0199 9.74003 19.0099 9.70003 19.0499 10.03C19.0699 10.19 19.1 10.36 19.12 10.52C19.15 10.79 19.1699 10.93 19.2099 11.34C18.9899 11.71 18.9299 11.8501 18.7199 12.1801L18.57 12.42C18.55 12.45 18.54 12.46 18.51 12.47C18.49 12.48 18.45 12.48 18.41 12.48H18.33L18.2 12.9L18.6299 12.91C18.8799 12.91 19.0399 12.79 19.1299 12.63L19.4 12.17L19.43 12.14C19.6 11.78 20.99 9.40002 20.99 9.40002Z", fill: "white" }, void 0)] }), void 0));
|
|
8
|
+
};
|
|
9
|
+
exports.default = UnionPay;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var tslib_1 = require("tslib");
|
|
4
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
var Visa = function (_a) {
|
|
6
|
+
var size = _a.size;
|
|
7
|
+
return ((0, jsx_runtime_1.jsxs)("svg", (0, tslib_1.__assign)({ width: size, height: size, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: [(0, jsx_runtime_1.jsx)("path", { d: "M23 4H1V20H23V4Z", fill: "#16216B" }, void 0), (0, jsx_runtime_1.jsx)("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12.98 14.5C11.99 14.5 11.34 14.21 10.87 13.95L11.53 13.01C11.95 13.23 12.28 13.48 13.04 13.48C13.28 13.48 13.52 13.42 13.65 13.21C13.84 12.9 13.61 12.73 13.06 12.45L12.79 12.29C11.98 11.78 11.63 11.3 12.01 10.45C12.25 9.90995 12.9 9.5 13.95 9.5C14.68 9.5 15.37 9.78996 15.76 10.08L15 10.91C14.61 10.62 14.29 10.47 13.92 10.47C13.63 10.47 13.4 10.57 13.32 10.72C13.17 10.99 13.37 11.17 13.79 11.41L14.11 11.6C15.09 12.17 15.32 12.77 15.08 13.33C14.67 14.28 13.84 14.5 12.98 14.5ZM18.62 11.5601C18.6 11.2101 18.59 10.7299 18.62 10.4399H18.6C18.52 10.6799 17.47 12.78 17.47 12.78H18.69L18.62 11.5601ZM18.78 14.36L18.74 13.65H17L16.64 14.36H15.12L17.87 9.60999H19.73L20.2 14.36H18.78ZM7.93 9.60999L6.67 11.63C6.35 12.16 6.16 12.43 6.07 12.76H6.06C6.08 12.34 6.02 11.82 6.01 11.52L5.87 9.60999H3.52L3.5 9.73999C4.1 9.73999 4.46 10.02 4.56 10.59L5.02 14.37H6.47L9.39 9.60999H7.93ZM8.55 14.36L10.11 9.59998H11.51L9.95 14.36H8.55Z", fill: "#fff" }, void 0)] }), void 0));
|
|
8
|
+
};
|
|
9
|
+
exports.default = Visa;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { default as StatefulPaymentCard } from './stateful-payment-card';
|
|
2
|
+
export { StatefulContainer } from '../input';
|
|
3
|
+
export { default as PaymentCard } from './payment-card';
|
|
4
|
+
export { default as valid } from 'card-validator';
|
|
5
|
+
export { SIZE } from '../input';
|
|
6
|
+
export { IconWrapper as StyledIconWrapper } from './styled-components';
|
|
7
|
+
export * from './types';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StyledIconWrapper = exports.SIZE = exports.valid = exports.PaymentCard = exports.StatefulContainer = exports.StatefulPaymentCard = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
/*
|
|
6
|
+
Copyright (c) Uber Technologies, Inc.
|
|
7
|
+
|
|
8
|
+
This source code is licensed under the MIT license found in the
|
|
9
|
+
LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/
|
|
11
|
+
var stateful_payment_card_1 = require("./stateful-payment-card");
|
|
12
|
+
Object.defineProperty(exports, "StatefulPaymentCard", { enumerable: true, get: function () { return (0, tslib_1.__importDefault)(stateful_payment_card_1).default; } });
|
|
13
|
+
var input_1 = require("../input");
|
|
14
|
+
Object.defineProperty(exports, "StatefulContainer", { enumerable: true, get: function () { return input_1.StatefulContainer; } });
|
|
15
|
+
var payment_card_1 = require("./payment-card");
|
|
16
|
+
Object.defineProperty(exports, "PaymentCard", { enumerable: true, get: function () { return (0, tslib_1.__importDefault)(payment_card_1).default; } });
|
|
17
|
+
var card_validator_1 = require("card-validator");
|
|
18
|
+
Object.defineProperty(exports, "valid", { enumerable: true, get: function () { return (0, tslib_1.__importDefault)(card_validator_1).default; } });
|
|
19
|
+
var input_2 = require("../input");
|
|
20
|
+
Object.defineProperty(exports, "SIZE", { enumerable: true, get: function () { return input_2.SIZE; } });
|
|
21
|
+
// Styled elements
|
|
22
|
+
var styled_components_1 = require("./styled-components");
|
|
23
|
+
Object.defineProperty(exports, "StyledIconWrapper", { enumerable: true, get: function () { return styled_components_1.IconWrapper; } });
|
|
24
|
+
(0, tslib_1.__exportStar)(require("./types"), exports);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { PaymentCardProps } from './types';
|
|
3
|
+
declare class PaymentCard extends React.Component<PaymentCardProps> {
|
|
4
|
+
static defaultProps: {
|
|
5
|
+
autoComplete: string;
|
|
6
|
+
autoFocus: boolean;
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
name: string;
|
|
9
|
+
error: boolean;
|
|
10
|
+
onBlur: () => void;
|
|
11
|
+
onFocus: () => void;
|
|
12
|
+
overrides: {};
|
|
13
|
+
required: boolean;
|
|
14
|
+
size: string;
|
|
15
|
+
startEnhancer: null;
|
|
16
|
+
endEnhancer: null;
|
|
17
|
+
};
|
|
18
|
+
caretPosition: number;
|
|
19
|
+
inRef: HTMLInputElement | HTMLTextAreaElement | null;
|
|
20
|
+
constructor(props: PaymentCardProps);
|
|
21
|
+
componentDidUpdate(prevProps: PaymentCardProps): void;
|
|
22
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
}
|
|
24
|
+
export default PaymentCard;
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var tslib_1 = require("tslib");
|
|
4
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
/*
|
|
6
|
+
Copyright (c) Uber Technologies, Inc.
|
|
7
|
+
|
|
8
|
+
This source code is licensed under the MIT license found in the
|
|
9
|
+
LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/
|
|
11
|
+
var React = (0, tslib_1.__importStar)(require("react"));
|
|
12
|
+
var valid = (0, tslib_1.__importStar)(require("card-validator"));
|
|
13
|
+
var utils_1 = require("./utils");
|
|
14
|
+
var overrides_1 = require("../helpers/overrides");
|
|
15
|
+
var input_1 = require("../input");
|
|
16
|
+
var amex_1 = (0, tslib_1.__importDefault)(require("./icons/amex"));
|
|
17
|
+
var dinersclub_1 = (0, tslib_1.__importDefault)(require("./icons/dinersclub"));
|
|
18
|
+
var discover_1 = (0, tslib_1.__importDefault)(require("./icons/discover"));
|
|
19
|
+
var elo_1 = (0, tslib_1.__importDefault)(require("./icons/elo"));
|
|
20
|
+
var generic_1 = (0, tslib_1.__importDefault)(require("./icons/generic"));
|
|
21
|
+
var jcb_1 = (0, tslib_1.__importDefault)(require("./icons/jcb"));
|
|
22
|
+
var maestro_1 = (0, tslib_1.__importDefault)(require("./icons/maestro"));
|
|
23
|
+
var mastercard_1 = (0, tslib_1.__importDefault)(require("./icons/mastercard"));
|
|
24
|
+
var unionpay_1 = (0, tslib_1.__importDefault)(require("./icons/unionpay"));
|
|
25
|
+
var visa_1 = (0, tslib_1.__importDefault)(require("./icons/visa"));
|
|
26
|
+
var uatp_1 = (0, tslib_1.__importDefault)(require("./icons/uatp"));
|
|
27
|
+
var styled_components_1 = require("./styled-components");
|
|
28
|
+
var custom_cards_config_1 = require("./custom-cards.config");
|
|
29
|
+
var CardTypeToComponent = {
|
|
30
|
+
visa: visa_1.default,
|
|
31
|
+
mastercard: mastercard_1.default,
|
|
32
|
+
'american-express': amex_1.default,
|
|
33
|
+
'diners-club': dinersclub_1.default,
|
|
34
|
+
discover: discover_1.default,
|
|
35
|
+
jcb: jcb_1.default,
|
|
36
|
+
unionpay: unionpay_1.default,
|
|
37
|
+
maestro: maestro_1.default,
|
|
38
|
+
elo: elo_1.default,
|
|
39
|
+
generic: generic_1.default,
|
|
40
|
+
uatp: uatp_1.default,
|
|
41
|
+
};
|
|
42
|
+
var PaymentCard = /** @class */ (function (_super) {
|
|
43
|
+
(0, tslib_1.__extends)(PaymentCard, _super);
|
|
44
|
+
function PaymentCard(props) {
|
|
45
|
+
var _this = _super.call(this, props) || this;
|
|
46
|
+
_this.caretPosition = 0;
|
|
47
|
+
_this.inRef = null;
|
|
48
|
+
// For adding new custom card type, add card config to custom-cards.config.js
|
|
49
|
+
custom_cards_config_1.CUSTOM_CARDS_CONFIGURATION.forEach(function (cardTypeConfig) { return valid.creditCardType.addCard(cardTypeConfig); });
|
|
50
|
+
return _this;
|
|
51
|
+
}
|
|
52
|
+
PaymentCard.prototype.componentDidUpdate = function (prevProps) {
|
|
53
|
+
if (this.inRef && prevProps.value !== this.props.value) {
|
|
54
|
+
this.inRef.setSelectionRange(this.caretPosition, this.caretPosition);
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
PaymentCard.prototype.render = function () {
|
|
58
|
+
var _this = this;
|
|
59
|
+
var _a = this.props, _b = _a.overrides, overrides = _b === void 0 ? {} : _b, _c = _a.size, size = _c === void 0 ? input_1.SIZE.default : _c, onChange = _a.onChange, value = _a.value, _d = _a["aria-label"], ariaLabel = _d === void 0 ? 'Please enter a debit or credit card number.' : _d, restProps = (0, tslib_1.__rest)(_a, ["overrides", "size", "onChange", "value", 'aria-label']);
|
|
60
|
+
var IconWrapperOverride = overrides.IconWrapper, restOverrides = (0, tslib_1.__rest)(overrides, ["IconWrapper"]);
|
|
61
|
+
var _e = (0, tslib_1.__read)((0, overrides_1.getOverrides)(IconWrapperOverride, styled_components_1.IconWrapper), 2), IconWrapper = _e[0], iconWrapperProps = _e[1];
|
|
62
|
+
// todo(flow->ts): maybe incorrect typecast, should it be `${value}`?
|
|
63
|
+
var validatedValue = valid.number(value);
|
|
64
|
+
var gaps = [];
|
|
65
|
+
var type = undefined;
|
|
66
|
+
if (validatedValue.card) {
|
|
67
|
+
gaps = validatedValue.card.gaps || [];
|
|
68
|
+
type = validatedValue.card.type;
|
|
69
|
+
}
|
|
70
|
+
// @ts-ignore
|
|
71
|
+
var getBeforeComponent = function () {
|
|
72
|
+
var _a;
|
|
73
|
+
var iconSize = (_a = {},
|
|
74
|
+
_a[input_1.SIZE.mini] = '16pz',
|
|
75
|
+
_a[input_1.SIZE.compact] = '24px',
|
|
76
|
+
_a[input_1.SIZE.default] = '32px',
|
|
77
|
+
_a[input_1.SIZE.large] = '40px',
|
|
78
|
+
_a);
|
|
79
|
+
return function () { return ((0, jsx_runtime_1.jsx)(IconWrapper, (0, tslib_1.__assign)({ "$size": size }, iconWrapperProps, { children: React.createElement(CardTypeToComponent[type || 'generic'] || generic_1.default, {
|
|
80
|
+
size: iconSize[size],
|
|
81
|
+
}) }), void 0)); };
|
|
82
|
+
};
|
|
83
|
+
return ((0, jsx_runtime_1.jsx)(input_1.Input, (0, tslib_1.__assign)({ size: size, "aria-label": ariaLabel, "data-baseweb": "payment-card-input", inputMode: "numeric", overrides: Object.freeze((0, tslib_1.__assign)((0, tslib_1.__assign)({}, restOverrides), { Before: getBeforeComponent() })), onChange: function (e) {
|
|
84
|
+
var _a = (0, tslib_1.__read)((0, utils_1.getCaretPosition)(e.target.value, _this.props.value ? String(_this.props.value) : '',
|
|
85
|
+
// @ts-ignore
|
|
86
|
+
e.target.selectionStart), 2), position = _a[0], value = _a[1];
|
|
87
|
+
// @ts-expect-error todo(flow->ts): looks dangerous
|
|
88
|
+
_this.caretPosition = position;
|
|
89
|
+
_this.inRef = e.target;
|
|
90
|
+
// @ts-expect-error todo(flow->ts): looks dangerous
|
|
91
|
+
e.target.value = value;
|
|
92
|
+
onChange && onChange(e);
|
|
93
|
+
}, value: (0, utils_1.addGaps)(gaps, String(value) || '') }, restProps), void 0));
|
|
94
|
+
};
|
|
95
|
+
PaymentCard.defaultProps = {
|
|
96
|
+
autoComplete: 'cc-number',
|
|
97
|
+
autoFocus: false,
|
|
98
|
+
disabled: false,
|
|
99
|
+
name: '',
|
|
100
|
+
error: false,
|
|
101
|
+
onBlur: function () { },
|
|
102
|
+
onFocus: function () { },
|
|
103
|
+
overrides: {},
|
|
104
|
+
required: false,
|
|
105
|
+
size: 'default',
|
|
106
|
+
// @ts-ignore
|
|
107
|
+
startEnhancer: null,
|
|
108
|
+
// @ts-ignore
|
|
109
|
+
endEnhancer: null,
|
|
110
|
+
};
|
|
111
|
+
return PaymentCard;
|
|
112
|
+
}(React.Component));
|
|
113
|
+
exports.default = PaymentCard;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var tslib_1 = require("tslib");
|
|
4
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
var stateful_container_1 = (0, tslib_1.__importDefault)(require("../input/stateful-container"));
|
|
6
|
+
var payment_card_1 = (0, tslib_1.__importDefault)(require("./payment-card"));
|
|
7
|
+
function StatefulPaymentCard(props) {
|
|
8
|
+
return ((0, jsx_runtime_1.jsx)(stateful_container_1.default, (0, tslib_1.__assign)({}, props, { children: function (childrenProps) { return (0, jsx_runtime_1.jsx)(payment_card_1.default, (0, tslib_1.__assign)({}, childrenProps), void 0); } }), void 0));
|
|
9
|
+
}
|
|
10
|
+
exports.default = StatefulPaymentCard;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const IconWrapper: import("../../style/styled").StyledComponent;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IconWrapper = void 0;
|
|
4
|
+
/*
|
|
5
|
+
Copyright (c) Uber Technologies, Inc.
|
|
6
|
+
|
|
7
|
+
This source code is licensed under the MIT license found in the
|
|
8
|
+
LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/
|
|
10
|
+
var style_1 = require("../../style");
|
|
11
|
+
exports.IconWrapper = (0, style_1.styled)('div', 'flex items-center h-full');
|
|
12
|
+
exports.IconWrapper.displayName = 'IconWrapper';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { InputOverrides, InputProps, StInputPropsDiff } from '../input';
|
|
2
|
+
import type { Override } from '../helpers/overrides';
|
|
3
|
+
export declare type PaymentCardOverrides = {
|
|
4
|
+
IconWrapper?: Override;
|
|
5
|
+
} & InputOverrides;
|
|
6
|
+
export declare type PaymentCardProps = {
|
|
7
|
+
overrides: PaymentCardOverrides;
|
|
8
|
+
} & InputProps;
|
|
9
|
+
export declare type StatefulPaymentCardProps = {
|
|
10
|
+
overrides?: PaymentCardOverrides;
|
|
11
|
+
} & StInputPropsDiff;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getCaretPosition = exports.sanitizeNumber = exports.addGaps = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
/*
|
|
6
|
+
Copyright (c) Uber Technologies, Inc.
|
|
7
|
+
|
|
8
|
+
This source code is licensed under the MIT license found in the
|
|
9
|
+
LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/
|
|
11
|
+
var valid = (0, tslib_1.__importStar)(require("card-validator"));
|
|
12
|
+
var addGaps = function (gaps, value) {
|
|
13
|
+
return gaps.reduce(function (prev, gap, index) { return "".concat(prev.slice(0, gap + index), " ").concat(prev.slice(gap + index)).trim(); }, "".concat(value));
|
|
14
|
+
};
|
|
15
|
+
exports.addGaps = addGaps;
|
|
16
|
+
var sanitizeNumber = function (input) {
|
|
17
|
+
var number = input.replace(/[^0-9]/gi, '');
|
|
18
|
+
var validatedValue = valid.number(number);
|
|
19
|
+
if (validatedValue.card && Array.isArray(validatedValue.card.lengths)) {
|
|
20
|
+
return number.slice(0, validatedValue.card.lengths[validatedValue.card.lengths.length - 1]);
|
|
21
|
+
}
|
|
22
|
+
// CC number NEVER can have more than 19 digits
|
|
23
|
+
return number.slice(0, 19);
|
|
24
|
+
};
|
|
25
|
+
exports.sanitizeNumber = sanitizeNumber;
|
|
26
|
+
var getCaretPosition = function (value, prevValue, position) {
|
|
27
|
+
var cleanValue = (0, exports.sanitizeNumber)(value);
|
|
28
|
+
var validatedValue = valid.number(cleanValue);
|
|
29
|
+
// skipping over a gap
|
|
30
|
+
if (validatedValue.card && Array.isArray(validatedValue.card.gaps)) {
|
|
31
|
+
var gaps = validatedValue.card.gaps;
|
|
32
|
+
var valueWithGaps = (0, exports.addGaps)(gaps, cleanValue);
|
|
33
|
+
if (cleanValue.length > prevValue.length && valueWithGaps[position - 1] === ' ') {
|
|
34
|
+
return [position + 1, cleanValue];
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
// deleting a gap
|
|
38
|
+
var prevValidatedValue = valid.number(prevValue);
|
|
39
|
+
if (prevValidatedValue.card && Array.isArray(prevValidatedValue.card.gaps)) {
|
|
40
|
+
var gaps = prevValidatedValue.card.gaps;
|
|
41
|
+
var valueWithGaps = (0, exports.addGaps)(gaps, prevValue);
|
|
42
|
+
if (prevValue === cleanValue && valueWithGaps.length > value.length) {
|
|
43
|
+
var newValue = valueWithGaps.slice(0, position - 1) + valueWithGaps.slice(position);
|
|
44
|
+
return [position - 1, (0, exports.sanitizeNumber)(newValue)];
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
// change without crossing a gap
|
|
48
|
+
return [position, cleanValue];
|
|
49
|
+
};
|
|
50
|
+
exports.getCaretPosition = getCaretPosition;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export declare const PLACEMENT: {
|
|
2
|
+
readonly auto: "auto";
|
|
3
|
+
readonly topLeft: "topLeft";
|
|
4
|
+
readonly top: "top";
|
|
5
|
+
readonly topRight: "topRight";
|
|
6
|
+
readonly rightTop: "rightTop";
|
|
7
|
+
readonly right: "right";
|
|
8
|
+
readonly rightBottom: "rightBottom";
|
|
9
|
+
readonly bottomRight: "bottomRight";
|
|
10
|
+
readonly bottom: "bottom";
|
|
11
|
+
readonly bottomLeft: "bottomLeft";
|
|
12
|
+
readonly leftBottom: "leftBottom";
|
|
13
|
+
readonly left: "left";
|
|
14
|
+
readonly leftTop: "leftTop";
|
|
15
|
+
};
|
|
16
|
+
export declare const TRIGGER_TYPE: {
|
|
17
|
+
readonly click: "click";
|
|
18
|
+
readonly hover: "hover";
|
|
19
|
+
};
|
|
20
|
+
export declare const STATE_CHANGE_TYPE: {
|
|
21
|
+
readonly open: "open";
|
|
22
|
+
readonly close: "close";
|
|
23
|
+
};
|
|
24
|
+
export declare const ACCESSIBILITY_TYPE: {
|
|
25
|
+
readonly none: "none";
|
|
26
|
+
readonly menu: "menu";
|
|
27
|
+
readonly tooltip: "tooltip";
|
|
28
|
+
};
|
|
29
|
+
export declare const POPOVER_MARGIN = 8;
|
|
30
|
+
export declare const ARROW_SIZE = 6;
|
|
31
|
+
export declare const ANIMATE_OUT_TIME = 0;
|
|
32
|
+
export declare const ANIMATE_IN_TIME = 20;
|
|
33
|
+
/**
|
|
34
|
+
* Since we use a 45-degree rotated div to render the arrow, the
|
|
35
|
+
* width/height of this div is different than the arrow size itself
|
|
36
|
+
*
|
|
37
|
+
* The arrow size is essentially half the diagonal of the rotated div,
|
|
38
|
+
* using pythagorean theorem:
|
|
39
|
+
* width^2 + height^2 = (arrow_size * 2)^2
|
|
40
|
+
* In this case width = height so:
|
|
41
|
+
* 2 * width^2 = (arrow_size * 2)^2
|
|
42
|
+
* Simplifies to:
|
|
43
|
+
* width = √((arrow_size * 2)^2 / 2)
|
|
44
|
+
*/
|
|
45
|
+
export declare const ARROW_WIDTH: number;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ARROW_WIDTH = exports.ANIMATE_IN_TIME = exports.ANIMATE_OUT_TIME = exports.ARROW_SIZE = exports.POPOVER_MARGIN = exports.ACCESSIBILITY_TYPE = exports.STATE_CHANGE_TYPE = exports.TRIGGER_TYPE = exports.PLACEMENT = void 0;
|
|
4
|
+
/*
|
|
5
|
+
Copyright (c) Uber Technologies, Inc.
|
|
6
|
+
|
|
7
|
+
This source code is licensed under the MIT license found in the
|
|
8
|
+
LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/
|
|
10
|
+
exports.PLACEMENT = {
|
|
11
|
+
auto: 'auto',
|
|
12
|
+
topLeft: 'topLeft',
|
|
13
|
+
top: 'top',
|
|
14
|
+
topRight: 'topRight',
|
|
15
|
+
rightTop: 'rightTop',
|
|
16
|
+
right: 'right',
|
|
17
|
+
rightBottom: 'rightBottom',
|
|
18
|
+
bottomRight: 'bottomRight',
|
|
19
|
+
bottom: 'bottom',
|
|
20
|
+
bottomLeft: 'bottomLeft',
|
|
21
|
+
leftBottom: 'leftBottom',
|
|
22
|
+
left: 'left',
|
|
23
|
+
leftTop: 'leftTop',
|
|
24
|
+
};
|
|
25
|
+
exports.TRIGGER_TYPE = {
|
|
26
|
+
click: 'click',
|
|
27
|
+
hover: 'hover',
|
|
28
|
+
};
|
|
29
|
+
exports.STATE_CHANGE_TYPE = {
|
|
30
|
+
open: 'open',
|
|
31
|
+
close: 'close',
|
|
32
|
+
};
|
|
33
|
+
exports.ACCESSIBILITY_TYPE = {
|
|
34
|
+
none: 'none',
|
|
35
|
+
menu: 'menu',
|
|
36
|
+
tooltip: 'tooltip',
|
|
37
|
+
};
|
|
38
|
+
exports.POPOVER_MARGIN = 8;
|
|
39
|
+
exports.ARROW_SIZE = 6;
|
|
40
|
+
exports.ANIMATE_OUT_TIME = 0;
|
|
41
|
+
exports.ANIMATE_IN_TIME = 20;
|
|
42
|
+
/**
|
|
43
|
+
* Since we use a 45-degree rotated div to render the arrow, the
|
|
44
|
+
* width/height of this div is different than the arrow size itself
|
|
45
|
+
*
|
|
46
|
+
* The arrow size is essentially half the diagonal of the rotated div,
|
|
47
|
+
* using pythagorean theorem:
|
|
48
|
+
* width^2 + height^2 = (arrow_size * 2)^2
|
|
49
|
+
* In this case width = height so:
|
|
50
|
+
* 2 * width^2 = (arrow_size * 2)^2
|
|
51
|
+
* Simplifies to:
|
|
52
|
+
* width = √((arrow_size * 2)^2 / 2)
|
|
53
|
+
*/
|
|
54
|
+
exports.ARROW_WIDTH = Math.ceil(Math.sqrt(Math.pow((exports.ARROW_SIZE * 2), 2) / 2));
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/*
|
|
4
|
+
Copyright (c) Uber Technologies, Inc.
|
|
5
|
+
|
|
6
|
+
This source code is licensed under the MIT license found in the
|
|
7
|
+
LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
var constants_1 = require("./constants");
|
|
10
|
+
var baseDefaultProps = {
|
|
11
|
+
accessibilityType: constants_1.ACCESSIBILITY_TYPE.menu,
|
|
12
|
+
focusLock: false,
|
|
13
|
+
autoFocus: true,
|
|
14
|
+
returnFocus: true,
|
|
15
|
+
// Remove the `ignoreBoundary` prop in the next major version
|
|
16
|
+
// and have it replaced with the TetherBehavior props overrides
|
|
17
|
+
ignoreBoundary: false,
|
|
18
|
+
overrides: {},
|
|
19
|
+
onMouseEnterDelay: 200,
|
|
20
|
+
onMouseLeaveDelay: 200,
|
|
21
|
+
placement: constants_1.PLACEMENT.auto,
|
|
22
|
+
showArrow: false,
|
|
23
|
+
triggerType: constants_1.TRIGGER_TYPE.click,
|
|
24
|
+
renderAll: false,
|
|
25
|
+
};
|
|
26
|
+
exports.default = baseDefaultProps;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default as StatefulPopover } from './stateful-popover';
|
|
2
|
+
export { default as StatefulContainer } from './stateful-container';
|
|
3
|
+
export { default as Popover } from './popover';
|
|
4
|
+
export { ACCESSIBILITY_TYPE, PLACEMENT, TRIGGER_TYPE, STATE_CHANGE_TYPE, ANIMATE_IN_TIME, ANIMATE_OUT_TIME, } from './constants';
|
|
5
|
+
export { Arrow as StyledArrow, Body as StyledBody, Inner as StyledInner, Padding as StyledPadding, } from './styled-components';
|
|
6
|
+
export * from './types';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StyledPadding = exports.StyledInner = exports.StyledBody = exports.StyledArrow = exports.ANIMATE_OUT_TIME = exports.ANIMATE_IN_TIME = exports.STATE_CHANGE_TYPE = exports.TRIGGER_TYPE = exports.PLACEMENT = exports.ACCESSIBILITY_TYPE = exports.Popover = exports.StatefulContainer = exports.StatefulPopover = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
/*
|
|
6
|
+
Copyright (c) Uber Technologies, Inc.
|
|
7
|
+
|
|
8
|
+
This source code is licensed under the MIT license found in the
|
|
9
|
+
LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/
|
|
11
|
+
var stateful_popover_1 = require("./stateful-popover");
|
|
12
|
+
Object.defineProperty(exports, "StatefulPopover", { enumerable: true, get: function () { return (0, tslib_1.__importDefault)(stateful_popover_1).default; } });
|
|
13
|
+
var stateful_container_1 = require("./stateful-container");
|
|
14
|
+
Object.defineProperty(exports, "StatefulContainer", { enumerable: true, get: function () { return (0, tslib_1.__importDefault)(stateful_container_1).default; } });
|
|
15
|
+
var popover_1 = require("./popover");
|
|
16
|
+
Object.defineProperty(exports, "Popover", { enumerable: true, get: function () { return (0, tslib_1.__importDefault)(popover_1).default; } });
|
|
17
|
+
// Constants
|
|
18
|
+
var constants_1 = require("./constants");
|
|
19
|
+
Object.defineProperty(exports, "ACCESSIBILITY_TYPE", { enumerable: true, get: function () { return constants_1.ACCESSIBILITY_TYPE; } });
|
|
20
|
+
Object.defineProperty(exports, "PLACEMENT", { enumerable: true, get: function () { return constants_1.PLACEMENT; } });
|
|
21
|
+
Object.defineProperty(exports, "TRIGGER_TYPE", { enumerable: true, get: function () { return constants_1.TRIGGER_TYPE; } });
|
|
22
|
+
Object.defineProperty(exports, "STATE_CHANGE_TYPE", { enumerable: true, get: function () { return constants_1.STATE_CHANGE_TYPE; } });
|
|
23
|
+
Object.defineProperty(exports, "ANIMATE_IN_TIME", { enumerable: true, get: function () { return constants_1.ANIMATE_IN_TIME; } });
|
|
24
|
+
Object.defineProperty(exports, "ANIMATE_OUT_TIME", { enumerable: true, get: function () { return constants_1.ANIMATE_OUT_TIME; } });
|
|
25
|
+
// Styled elements
|
|
26
|
+
var styled_components_1 = require("./styled-components");
|
|
27
|
+
Object.defineProperty(exports, "StyledArrow", { enumerable: true, get: function () { return styled_components_1.Arrow; } });
|
|
28
|
+
Object.defineProperty(exports, "StyledBody", { enumerable: true, get: function () { return styled_components_1.Body; } });
|
|
29
|
+
Object.defineProperty(exports, "StyledInner", { enumerable: true, get: function () { return styled_components_1.Inner; } });
|
|
30
|
+
Object.defineProperty(exports, "StyledPadding", { enumerable: true, get: function () { return styled_components_1.Padding; } });
|
|
31
|
+
// Flow
|
|
32
|
+
(0, tslib_1.__exportStar)(require("./types"), exports);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { PopoverProps } from './types';
|
|
3
|
+
declare const Popover: {
|
|
4
|
+
(props: import("./types").BasePopoverProps & {
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
content: React.ReactNode | import("./types").ContentRenderProp;
|
|
7
|
+
isOpen: boolean;
|
|
8
|
+
onClickOutside?: ((event: MouseEvent) => unknown) | undefined;
|
|
9
|
+
onEsc?: (() => unknown) | undefined;
|
|
10
|
+
} & {
|
|
11
|
+
innerRef?: React.Ref<HTMLElement> | undefined;
|
|
12
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
defaultProps: Partial<import("./types").BasePopoverProps>;
|
|
14
|
+
};
|
|
15
|
+
export default Popover;
|