@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
|
@@ -16,6 +16,8 @@ var getIntentTextColor = function (_a, _b) {
|
|
|
16
16
|
return theme.spr.supportWarning;
|
|
17
17
|
case 'error':
|
|
18
18
|
return theme.spr.supportErrorText;
|
|
19
|
+
case 'ai':
|
|
20
|
+
return theme.spr.text01;
|
|
19
21
|
}
|
|
20
22
|
};
|
|
21
23
|
var getIntentColor = function (_a, _b) {
|
|
@@ -31,6 +33,8 @@ var getIntentColor = function (_a, _b) {
|
|
|
31
33
|
return theme.spr.supportWarning;
|
|
32
34
|
case 'error':
|
|
33
35
|
return theme.spr.supportError;
|
|
36
|
+
case 'ai':
|
|
37
|
+
return theme.spr.clrMagenta;
|
|
34
38
|
}
|
|
35
39
|
};
|
|
36
40
|
var getIntentHighlightColor = function (_a, _b) {
|
|
@@ -41,23 +45,49 @@ var getIntentHighlightColor = function (_a, _b) {
|
|
|
41
45
|
default:
|
|
42
46
|
return theme.spr.interactiveFocus;
|
|
43
47
|
case 'success':
|
|
44
|
-
return theme.spr.
|
|
48
|
+
return theme.spr.supportSuccess;
|
|
45
49
|
case 'warning':
|
|
46
|
-
return theme.spr.
|
|
50
|
+
return theme.spr.supportWarning;
|
|
47
51
|
case 'error':
|
|
48
|
-
return theme.spr.
|
|
52
|
+
return theme.spr.supportError;
|
|
53
|
+
case 'ai':
|
|
54
|
+
return theme.spr.clrViolet;
|
|
49
55
|
}
|
|
50
56
|
};
|
|
51
57
|
var getPrimaryHighlightColor = function (utils, props) { return ({
|
|
52
58
|
backgroundColor: getIntentHighlightColor(utils, props),
|
|
53
59
|
borderColor: getIntentHighlightColor(utils, props),
|
|
54
60
|
}); };
|
|
55
|
-
var getPrimaryHoverColor = function (_a) {
|
|
61
|
+
var getPrimaryHoverColor = function (_a, _b) {
|
|
56
62
|
var theme = _a.theme;
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
63
|
+
var $intent = _b.$intent;
|
|
64
|
+
switch ($intent) {
|
|
65
|
+
case 'ai':
|
|
66
|
+
return {
|
|
67
|
+
backgroundColor: theme.spr.clrFuschia,
|
|
68
|
+
borderColor: theme.spr.clrFuschia,
|
|
69
|
+
};
|
|
70
|
+
case 'default':
|
|
71
|
+
return {
|
|
72
|
+
backgroundColor: theme.spr.interactiveHover,
|
|
73
|
+
borderColor: theme.spr.interactiveHover,
|
|
74
|
+
};
|
|
75
|
+
default:
|
|
76
|
+
return {
|
|
77
|
+
backgroundColor: undefined,
|
|
78
|
+
borderColor: undefined,
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
var getTertiaryBorderColor = function (utils, props) {
|
|
83
|
+
var $intent = props.$intent;
|
|
84
|
+
var theme = utils.theme;
|
|
85
|
+
switch ($intent) {
|
|
86
|
+
case 'ai':
|
|
87
|
+
return theme.spr.border03;
|
|
88
|
+
default:
|
|
89
|
+
return getIntentColor(utils, props);
|
|
90
|
+
}
|
|
61
91
|
};
|
|
62
92
|
var getBorderRadiiStyles = function (_a, _b) {
|
|
63
93
|
var _c;
|
|
@@ -108,32 +138,187 @@ var getPaddingStyles = function (_a, _b) {
|
|
|
108
138
|
paddingRight: buttonPadding.paddingX,
|
|
109
139
|
};
|
|
110
140
|
};
|
|
141
|
+
var getBackground = function (_a, _b) {
|
|
142
|
+
var theme = _a.theme;
|
|
143
|
+
var $intent = _b.$intent;
|
|
144
|
+
switch ($intent) {
|
|
145
|
+
case 'ai':
|
|
146
|
+
return theme.ai.border01.background;
|
|
147
|
+
default:
|
|
148
|
+
return undefined;
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
var getActiveBackground = function (_a, _b) {
|
|
152
|
+
var theme = _a.theme;
|
|
153
|
+
var $intent = _b.$intent;
|
|
154
|
+
switch ($intent) {
|
|
155
|
+
case 'ai':
|
|
156
|
+
return "".concat(theme.ai.ui02, " padding-box, ").concat(theme.ai.ui01, " border-box");
|
|
157
|
+
default:
|
|
158
|
+
return undefined;
|
|
159
|
+
}
|
|
160
|
+
};
|
|
161
|
+
var getHoverColor = function (_a, _b) {
|
|
162
|
+
var theme = _a.theme;
|
|
163
|
+
var $intent = _b.$intent;
|
|
164
|
+
switch ($intent) {
|
|
165
|
+
case 'ai':
|
|
166
|
+
return theme.spr.textMagenta;
|
|
167
|
+
default:
|
|
168
|
+
return undefined;
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
var getActiveColor = function (_a, _b) {
|
|
172
|
+
var theme = _a.theme;
|
|
173
|
+
var $intent = _b.$intent;
|
|
174
|
+
switch ($intent) {
|
|
175
|
+
case 'ai':
|
|
176
|
+
return theme.spr.textMagenta;
|
|
177
|
+
default:
|
|
178
|
+
return undefined;
|
|
179
|
+
}
|
|
180
|
+
};
|
|
181
|
+
var getDisabledColor = function (_a, _b) {
|
|
182
|
+
var theme = _a.theme;
|
|
183
|
+
var $intent = _b.$intent, $variant = _b.$variant;
|
|
184
|
+
switch ($intent) {
|
|
185
|
+
case 'ai':
|
|
186
|
+
return theme.spr.textMagenta;
|
|
187
|
+
default:
|
|
188
|
+
return $variant === 'secondary' ? theme.spr.text03 : undefined;
|
|
189
|
+
}
|
|
190
|
+
};
|
|
191
|
+
var getHoverOpacity = function (_a) {
|
|
192
|
+
var $intent = _a.$intent;
|
|
193
|
+
switch ($intent) {
|
|
194
|
+
case 'ai':
|
|
195
|
+
case 'default':
|
|
196
|
+
return '1';
|
|
197
|
+
default:
|
|
198
|
+
return '0.8';
|
|
199
|
+
}
|
|
200
|
+
};
|
|
201
|
+
var getActiveOpacity = function (_a) {
|
|
202
|
+
var $intent = _a.$intent;
|
|
203
|
+
switch ($intent) {
|
|
204
|
+
case 'ai':
|
|
205
|
+
case 'default':
|
|
206
|
+
return '1';
|
|
207
|
+
default:
|
|
208
|
+
return '0.8';
|
|
209
|
+
}
|
|
210
|
+
};
|
|
211
|
+
var getDisabledOpacity = function (_a) {
|
|
212
|
+
var $intent = _a.$intent, $variant = _a.$variant;
|
|
213
|
+
switch ($intent) {
|
|
214
|
+
case 'ai':
|
|
215
|
+
return '0.2';
|
|
216
|
+
default:
|
|
217
|
+
// for secondary variant disabled state, we are using correct tokens instead of relying on opacity
|
|
218
|
+
return $variant === 'secondary' ? '1' : '0.6';
|
|
219
|
+
}
|
|
220
|
+
};
|
|
111
221
|
export var createButtonStyles = function (_a, _b) {
|
|
112
|
-
var color = _a.color, hoverColor = _a.hoverColor, activeColor = _a.activeColor, disabledColor = _a.disabledColor, backgroundColor = _a.backgroundColor, disabledBackgroundColor = _a.disabledBackgroundColor, hoverBackgroundColor = _a.hoverBackgroundColor, activeBackgroundColor = _a.activeBackgroundColor, borderColor = _a.borderColor, hoverBorderColor = _a.hoverBorderColor, activeBorderColor = _a.activeBorderColor, disabledBorderColor = _a.disabledBorderColor;
|
|
222
|
+
var color = _a.color, hoverColor = _a.hoverColor, activeColor = _a.activeColor, disabledColor = _a.disabledColor, backgroundColor = _a.backgroundColor, disabledBackgroundColor = _a.disabledBackgroundColor, hoverBackgroundColor = _a.hoverBackgroundColor, activeBackgroundColor = _a.activeBackgroundColor, borderColor = _a.borderColor, hoverBorderColor = _a.hoverBorderColor, activeBorderColor = _a.activeBorderColor, disabledBorderColor = _a.disabledBorderColor, background = _a.background, hoverBackground = _a.hoverBackground, activeBackground = _a.activeBackground, disabledBackground = _a.disabledBackground, hoverOpacity = _a.hoverOpacity, activeOpacity = _a.activeOpacity, disabledOpacity = _a.disabledOpacity;
|
|
113
223
|
var $disabled = _b.$disabled, $isSelected = _b.$isSelected, $isFocusVisible = _b.$isFocusVisible;
|
|
114
224
|
if ($disabled) {
|
|
115
225
|
return {
|
|
116
|
-
':disabled': __assign({ color: disabledColor !== null && disabledColor !== void 0 ? disabledColor : color, backgroundColor: disabledBackgroundColor !== null && disabledBackgroundColor !== void 0 ? disabledBackgroundColor : backgroundColor }, borderColorLonghand(disabledBorderColor !== null && disabledBorderColor !== void 0 ? disabledBorderColor : borderColor)),
|
|
226
|
+
':disabled': __assign(__assign(__assign({ color: disabledColor !== null && disabledColor !== void 0 ? disabledColor : color, backgroundColor: disabledBackgroundColor !== null && disabledBackgroundColor !== void 0 ? disabledBackgroundColor : backgroundColor }, (disabledOpacity && { opacity: disabledOpacity })), borderColorLonghand(disabledBorderColor !== null && disabledBorderColor !== void 0 ? disabledBorderColor : borderColor)), (disabledBackground && { background: disabledBackground })),
|
|
117
227
|
};
|
|
118
228
|
}
|
|
119
|
-
var hoverStyles = __assign(__assign(__assign({}, (hoverColor && { color: hoverColor })), (hoverBackgroundColor && { backgroundColor: hoverBackgroundColor })), (hoverBorderColor && borderColorLonghand(hoverBorderColor)));
|
|
120
|
-
var activeStyles = __assign(__assign(__assign({}, (activeColor && { color: activeColor })), (activeBackgroundColor && { backgroundColor: activeBackgroundColor })), (activeBorderColor && borderColorLonghand(activeBorderColor)));
|
|
121
|
-
return __assign(__assign(__assign(__assign(__assign({ color: color, backgroundColor: backgroundColor }, borderColorLonghand(borderColor)), ($isSelected && activeStyles)), { ':hover': hoverStyles }), ($isFocusVisible
|
|
229
|
+
var hoverStyles = __assign(__assign(__assign(__assign(__assign({}, (hoverColor && { color: hoverColor })), (hoverBackgroundColor && { backgroundColor: hoverBackgroundColor })), (hoverBorderColor && borderColorLonghand(hoverBorderColor))), (hoverOpacity && { opacity: hoverOpacity })), (hoverBackground && { background: hoverBackground }));
|
|
230
|
+
var activeStyles = __assign(__assign(__assign(__assign(__assign({}, (activeColor && { color: activeColor })), (activeBackgroundColor && { backgroundColor: activeBackgroundColor })), (activeBorderColor && borderColorLonghand(activeBorderColor))), (activeOpacity && { opacity: activeOpacity })), (activeBackground && { background: activeBackground }));
|
|
231
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({ color: color, backgroundColor: backgroundColor }, borderColorLonghand(borderColor)), (background && { background: background })), ($isSelected && activeStyles)), { ':hover': hoverStyles }), ($isFocusVisible
|
|
122
232
|
? {
|
|
123
233
|
':focus': hoverStyles,
|
|
124
234
|
}
|
|
125
235
|
: {})), { ':active': activeStyles });
|
|
126
236
|
};
|
|
237
|
+
export var getSprinklrAIAnimatedBorderStyles = function (utils, _a) {
|
|
238
|
+
var animate = _a.$animate;
|
|
239
|
+
var theme = utils.theme;
|
|
240
|
+
var beforeElementStyles = {
|
|
241
|
+
top: "".concat(-theme.borderWidth.default),
|
|
242
|
+
left: "".concat(-theme.borderWidth.default),
|
|
243
|
+
content: '""',
|
|
244
|
+
background: theme.ai.ui01,
|
|
245
|
+
position: 'absolute',
|
|
246
|
+
backgroundSize: '300% 300%',
|
|
247
|
+
zIndex: -1,
|
|
248
|
+
width: "calc(100% + ".concat(2 * parseFloat(theme.borderWidth.default), "px)"),
|
|
249
|
+
height: "calc(100% + ".concat(2 * parseFloat(theme.borderWidth.default), "px)"),
|
|
250
|
+
filter: 'blur(3px)',
|
|
251
|
+
animationDuration: '1000ms',
|
|
252
|
+
animationPlayState: animate ? 'running' : 'paused',
|
|
253
|
+
animationIterationCount: 'infinite',
|
|
254
|
+
animationName: {
|
|
255
|
+
'0%': {
|
|
256
|
+
backgroundPosition: '0% 50%',
|
|
257
|
+
},
|
|
258
|
+
'50%': {
|
|
259
|
+
backgroundPosition: '100% 50%',
|
|
260
|
+
},
|
|
261
|
+
'100%': {
|
|
262
|
+
backgroundPosition: '0% 50%',
|
|
263
|
+
},
|
|
264
|
+
},
|
|
265
|
+
};
|
|
266
|
+
var afterElementStyles = {
|
|
267
|
+
zIndex: -1,
|
|
268
|
+
content: '""',
|
|
269
|
+
top: '0px',
|
|
270
|
+
left: '0px',
|
|
271
|
+
position: 'absolute',
|
|
272
|
+
background: theme.spr.ui01,
|
|
273
|
+
width: '100%',
|
|
274
|
+
height: '100%',
|
|
275
|
+
};
|
|
276
|
+
return {
|
|
277
|
+
'::before': beforeElementStyles,
|
|
278
|
+
'::after': afterElementStyles,
|
|
279
|
+
};
|
|
280
|
+
};
|
|
281
|
+
export var getStylesWithAnimatedBorder = function (utils, props, initialStyles, borderRadiiStyles) {
|
|
282
|
+
var theme = utils.theme;
|
|
283
|
+
var afterElementBorderRadiiStyles = {
|
|
284
|
+
borderBottomLeftRadius: "calc(".concat(borderRadiiStyles.borderBottomLeftRadius, " - ").concat(theme.borderWidth.default, ")"),
|
|
285
|
+
borderBottomRightRadius: "calc(".concat(borderRadiiStyles.borderBottomRightRadius, " - ").concat(theme.borderWidth.default, ")"),
|
|
286
|
+
borderTopLeftRadius: "calc(".concat(borderRadiiStyles.borderTopLeftRadius, " - ").concat(theme.borderWidth.default, ")"),
|
|
287
|
+
borderTopRightRadius: "calc(".concat(borderRadiiStyles.borderTopRightRadius, " - ").concat(theme.borderWidth.default, ")"),
|
|
288
|
+
};
|
|
289
|
+
var isDisabled = props.$disabled, isFocused = props.$isFocusVisible;
|
|
290
|
+
var animatedBorderStyles = getSprinklrAIAnimatedBorderStyles(utils, props);
|
|
291
|
+
var hoverStyles = __assign(__assign({}, initialStyles === null || initialStyles === void 0 ? void 0 : initialStyles[':hover']), (!isDisabled && {
|
|
292
|
+
'::after': __assign(__assign({}, animatedBorderStyles === null || animatedBorderStyles === void 0 ? void 0 : animatedBorderStyles['::after']), afterElementBorderRadiiStyles),
|
|
293
|
+
'::before': __assign(__assign({}, animatedBorderStyles === null || animatedBorderStyles === void 0 ? void 0 : animatedBorderStyles['::before']), borderRadiiStyles),
|
|
294
|
+
}));
|
|
295
|
+
var activeStyles = __assign(__assign({}, initialStyles === null || initialStyles === void 0 ? void 0 : initialStyles[':active']), {
|
|
296
|
+
'::after': { content: 'none' },
|
|
297
|
+
'::before': { content: 'none' },
|
|
298
|
+
});
|
|
299
|
+
return __assign(__assign(__assign(__assign({}, initialStyles), { ':hover': hoverStyles }), (isFocused
|
|
300
|
+
? {
|
|
301
|
+
':focus': hoverStyles,
|
|
302
|
+
}
|
|
303
|
+
: {})), { ':active': activeStyles, position: 'relative', zIndex: 0 });
|
|
304
|
+
};
|
|
127
305
|
var getVariantStyles = function (utils, props) {
|
|
128
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6;
|
|
306
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27;
|
|
129
307
|
var theme = utils.theme;
|
|
130
|
-
var $variant = props.$variant, $
|
|
308
|
+
var $variant = props.$variant, $intent = props.$intent, $isIconButton = props.$isIconButton;
|
|
309
|
+
var isAiIntent = $intent === 'ai';
|
|
310
|
+
if (isAiIntent && $isIconButton)
|
|
311
|
+
return {};
|
|
312
|
+
var borderRadiiStyles = getBorderRadiiStyles(utils, props);
|
|
131
313
|
switch ($variant) {
|
|
132
314
|
case 'primary':
|
|
133
315
|
default: {
|
|
134
|
-
var
|
|
316
|
+
var _28 = getPrimaryHighlightColor(utils, props), activeBackgroundColor = _28.backgroundColor, activeBorderColor = _28.borderColor, _29 = getPrimaryHoverColor(utils, props), hoverBackgroundColor = _29.backgroundColor, hoverBorderColor = _29.borderColor;
|
|
135
317
|
var backgroundColor = getIntentColor(utils, props), color = theme.spr.text05, borderColor = getIntentColor(utils, props);
|
|
136
318
|
var primaryButtonTheme = ((_a = theme.button) === null || _a === void 0 ? void 0 : _a.primary) || {};
|
|
319
|
+
var hoverOpacity = getHoverOpacity(props);
|
|
320
|
+
var activeOpacity = getActiveOpacity(props);
|
|
321
|
+
var disabledOpacity = getDisabledOpacity(props);
|
|
137
322
|
var defaultIntentStyles = createButtonStyles({
|
|
138
323
|
color: (_b = primaryButtonTheme.color) !== null && _b !== void 0 ? _b : color,
|
|
139
324
|
backgroundColor: (_c = primaryButtonTheme.backgroundColor) !== null && _c !== void 0 ? _c : backgroundColor,
|
|
@@ -142,55 +327,108 @@ var getVariantStyles = function (utils, props) {
|
|
|
142
327
|
borderColor: (_f = primaryButtonTheme.borderColor) !== null && _f !== void 0 ? _f : borderColor,
|
|
143
328
|
hoverBorderColor: (_g = primaryButtonTheme.hoverBorderColor) !== null && _g !== void 0 ? _g : hoverBorderColor,
|
|
144
329
|
activeBorderColor: (_h = primaryButtonTheme.activeBorderColor) !== null && _h !== void 0 ? _h : activeBorderColor,
|
|
330
|
+
disabledOpacity: disabledOpacity,
|
|
145
331
|
}, props);
|
|
146
332
|
var intentStyles = createButtonStyles({
|
|
147
333
|
color: color,
|
|
148
334
|
backgroundColor: backgroundColor,
|
|
335
|
+
hoverBackgroundColor: hoverBackgroundColor,
|
|
336
|
+
activeBackgroundColor: activeBackgroundColor,
|
|
149
337
|
borderColor: borderColor,
|
|
150
338
|
hoverBorderColor: hoverBorderColor,
|
|
151
339
|
activeBorderColor: activeBorderColor,
|
|
340
|
+
hoverOpacity: hoverOpacity,
|
|
341
|
+
activeOpacity: activeOpacity,
|
|
342
|
+
disabledOpacity: disabledOpacity,
|
|
152
343
|
}, props);
|
|
153
344
|
return $intent === 'default'
|
|
154
345
|
? defaultIntentStyles
|
|
155
|
-
: __assign(__assign(
|
|
346
|
+
: __assign(__assign({}, intentStyles), (props.$isSelected && { opacity: '1' }));
|
|
156
347
|
}
|
|
157
348
|
case 'secondary': {
|
|
158
|
-
var
|
|
349
|
+
var _30 = theme.button.variantSecondary, color = _30.color, hoverBackgroundColor = _30.hoverBackgroundColor, activeBackgroundColor = _30.activeBackgroundColor;
|
|
350
|
+
var hoverColor = getHoverColor(utils, props);
|
|
351
|
+
var activeColor = getActiveColor(utils, props);
|
|
352
|
+
var disabledColor = getDisabledColor(utils, props);
|
|
353
|
+
var background = getBackground(utils, props);
|
|
354
|
+
var activeBackground = getActiveBackground(utils, props);
|
|
159
355
|
var secondaryButtonTheme = ((_j = theme.button) === null || _j === void 0 ? void 0 : _j.secondary) || {};
|
|
160
|
-
|
|
356
|
+
var disabledOpacity = getDisabledOpacity(props);
|
|
357
|
+
var borderColor = isAiIntent ? theme.borderColor.transparent : theme.spr.interactive02;
|
|
358
|
+
var hoverBorderColor = isAiIntent ? theme.borderColor.transparent : theme.spr.border06;
|
|
359
|
+
var activeBorderColor = isAiIntent ? theme.borderColor.transparent : theme.spr.interactive01;
|
|
360
|
+
var disabledBorderColor = isAiIntent ? theme.borderColor.transparent : theme.spr.border02;
|
|
361
|
+
var intentStyles = createButtonStyles({
|
|
161
362
|
color: (_k = secondaryButtonTheme.color) !== null && _k !== void 0 ? _k : color,
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
363
|
+
hoverColor: (_l = secondaryButtonTheme.color) !== null && _l !== void 0 ? _l : hoverColor,
|
|
364
|
+
activeColor: (_m = secondaryButtonTheme.activeColor) !== null && _m !== void 0 ? _m : activeColor,
|
|
365
|
+
disabledColor: (_o = secondaryButtonTheme.disabledColor) !== null && _o !== void 0 ? _o : disabledColor,
|
|
366
|
+
backgroundColor: (_p = secondaryButtonTheme.backgroundColor) !== null && _p !== void 0 ? _p : theme.spr.ui01,
|
|
367
|
+
hoverBackgroundColor: (_q = secondaryButtonTheme.hoverBackgroundColor) !== null && _q !== void 0 ? _q : hoverBackgroundColor,
|
|
368
|
+
activeBackgroundColor: (_r = secondaryButtonTheme.activeBackgroundColor) !== null && _r !== void 0 ? _r : activeBackgroundColor,
|
|
369
|
+
disabledBackgroundColor: (_s = secondaryButtonTheme.disabledBackgroundColor) !== null && _s !== void 0 ? _s : theme.spr.ui05,
|
|
370
|
+
borderColor: (_t = secondaryButtonTheme.borderColor) !== null && _t !== void 0 ? _t : borderColor,
|
|
371
|
+
hoverBorderColor: (_u = secondaryButtonTheme.hoverBorderColor) !== null && _u !== void 0 ? _u : hoverBorderColor,
|
|
372
|
+
activeBorderColor: (_v = secondaryButtonTheme.activeBorderColor) !== null && _v !== void 0 ? _v : activeBorderColor,
|
|
373
|
+
disabledBorderColor: (_w = secondaryButtonTheme.disabledBorderColor) !== null && _w !== void 0 ? _w : disabledBorderColor,
|
|
374
|
+
background: (_x = secondaryButtonTheme.background) !== null && _x !== void 0 ? _x : background,
|
|
375
|
+
hoverBackground: (_y = secondaryButtonTheme.hoverBackground) !== null && _y !== void 0 ? _y : background,
|
|
376
|
+
activeBackground: (_z = secondaryButtonTheme.activeBackground) !== null && _z !== void 0 ? _z : activeBackground,
|
|
377
|
+
disabledBackground: (_0 = secondaryButtonTheme.disabledBackground) !== null && _0 !== void 0 ? _0 : background,
|
|
378
|
+
disabledOpacity: (_1 = secondaryButtonTheme.disabledOpacity) !== null && _1 !== void 0 ? _1 : disabledOpacity,
|
|
171
379
|
}, props);
|
|
380
|
+
return isAiIntent ? getStylesWithAnimatedBorder(utils, props, intentStyles, borderRadiiStyles) : intentStyles;
|
|
172
381
|
}
|
|
173
382
|
case 'tertiary': {
|
|
174
|
-
var tertiaryButtonTheme = ((
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
383
|
+
var tertiaryButtonTheme = ((_2 = theme.button) === null || _2 === void 0 ? void 0 : _2.tertiary) || {};
|
|
384
|
+
var hoverColor = getHoverColor(utils, props);
|
|
385
|
+
var activeColor = getActiveColor(utils, props);
|
|
386
|
+
var disabledColor = getDisabledColor(utils, props);
|
|
387
|
+
var disabledOpacity = getDisabledOpacity(props);
|
|
388
|
+
var hoverBackground = getBackground(utils, props);
|
|
389
|
+
var activeBackground = getActiveBackground(utils, props);
|
|
390
|
+
var hoverBorderColor = isAiIntent ? theme.borderColor.transparent : undefined;
|
|
391
|
+
var activeBorderColor = isAiIntent ? theme.borderColor.transparent : undefined;
|
|
392
|
+
var intentStyles = createButtonStyles({
|
|
393
|
+
color: (_3 = tertiaryButtonTheme.color) !== null && _3 !== void 0 ? _3 : getIntentTextColor(utils, props),
|
|
394
|
+
hoverColor: (_4 = tertiaryButtonTheme.hoverColor) !== null && _4 !== void 0 ? _4 : hoverColor,
|
|
395
|
+
activeColor: (_5 = tertiaryButtonTheme.activeColor) !== null && _5 !== void 0 ? _5 : activeColor,
|
|
396
|
+
disabledColor: (_6 = tertiaryButtonTheme.disabledColor) !== null && _6 !== void 0 ? _6 : disabledColor,
|
|
397
|
+
backgroundColor: (_7 = tertiaryButtonTheme.backgroundColor) !== null && _7 !== void 0 ? _7 : theme.spr.ui01,
|
|
398
|
+
hoverBackgroundColor: (_8 = tertiaryButtonTheme.hoverBackgroundColor) !== null && _8 !== void 0 ? _8 : theme.spr.uiHover,
|
|
399
|
+
activeBackgroundColor: (_9 = tertiaryButtonTheme.activeBackgroundColor) !== null && _9 !== void 0 ? _9 : theme.spr.uiFocus,
|
|
400
|
+
borderColor: (_10 = tertiaryButtonTheme.borderColor) !== null && _10 !== void 0 ? _10 : getTertiaryBorderColor(utils, props),
|
|
401
|
+
hoverBorderColor: (_11 = tertiaryButtonTheme.hoverBorderColor) !== null && _11 !== void 0 ? _11 : hoverBorderColor,
|
|
402
|
+
activeBorderColor: (_12 = tertiaryButtonTheme.activeBorderColor) !== null && _12 !== void 0 ? _12 : activeBorderColor,
|
|
403
|
+
hoverBackground: (_13 = tertiaryButtonTheme.hoverBackground) !== null && _13 !== void 0 ? _13 : hoverBackground,
|
|
404
|
+
activeBackground: (_14 = tertiaryButtonTheme.activeBackground) !== null && _14 !== void 0 ? _14 : activeBackground,
|
|
405
|
+
disabledOpacity: (_15 = tertiaryButtonTheme.disabledOpacity) !== null && _15 !== void 0 ? _15 : disabledOpacity,
|
|
181
406
|
}, props);
|
|
407
|
+
return isAiIntent ? getStylesWithAnimatedBorder(utils, props, intentStyles, borderRadiiStyles) : intentStyles;
|
|
182
408
|
}
|
|
183
409
|
case 'minimal': {
|
|
184
|
-
var minimalButtonTheme = ((
|
|
185
|
-
var
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
410
|
+
var minimalButtonTheme = ((_16 = theme.button) === null || _16 === void 0 ? void 0 : _16.minimal) || {};
|
|
411
|
+
var hoverColor = getHoverColor(utils, props);
|
|
412
|
+
var activeColor = getActiveColor(utils, props);
|
|
413
|
+
var disabledColor = getDisabledColor(utils, props);
|
|
414
|
+
var hoverBackground = getBackground(utils, props);
|
|
415
|
+
var activeBackground = getActiveBackground(utils, props);
|
|
416
|
+
var disabledOpacity = getDisabledOpacity(props);
|
|
417
|
+
var intentStyles = createButtonStyles({
|
|
418
|
+
color: (_17 = minimalButtonTheme.color) !== null && _17 !== void 0 ? _17 : getIntentTextColor(utils, props),
|
|
419
|
+
hoverColor: (_18 = minimalButtonTheme.hoverColor) !== null && _18 !== void 0 ? _18 : hoverColor,
|
|
420
|
+
activeColor: (_19 = minimalButtonTheme.activeColor) !== null && _19 !== void 0 ? _19 : activeColor,
|
|
421
|
+
disabledColor: (_20 = minimalButtonTheme.disabledColor) !== null && _20 !== void 0 ? _20 : disabledColor,
|
|
422
|
+
backgroundColor: (_21 = minimalButtonTheme.backgroundColor) !== null && _21 !== void 0 ? _21 : 'transparent',
|
|
423
|
+
hoverBackgroundColor: (_22 = minimalButtonTheme.hoverBackgroundColor) !== null && _22 !== void 0 ? _22 : theme.spr.uiHover,
|
|
424
|
+
activeBackgroundColor: (_23 = minimalButtonTheme.activeBackgroundColor) !== null && _23 !== void 0 ? _23 : theme.spr.uiFocus,
|
|
425
|
+
borderColor: (_24 = minimalButtonTheme.borderColor) !== null && _24 !== void 0 ? _24 : 'transparent',
|
|
426
|
+
hoverBackground: (_25 = minimalButtonTheme.background) !== null && _25 !== void 0 ? _25 : hoverBackground,
|
|
427
|
+
activeBackground: (_26 = minimalButtonTheme.activeBackground) !== null && _26 !== void 0 ? _26 : activeBackground,
|
|
428
|
+
disabledOpacity: (_27 = minimalButtonTheme.disabledOpacity) !== null && _27 !== void 0 ? _27 : disabledOpacity,
|
|
191
429
|
}, props);
|
|
192
|
-
|
|
193
|
-
return
|
|
430
|
+
intentStyles.fontWeight = theme.fontWeight.normal;
|
|
431
|
+
return isAiIntent ? getStylesWithAnimatedBorder(utils, props, intentStyles, borderRadiiStyles) : intentStyles;
|
|
194
432
|
}
|
|
195
433
|
}
|
|
196
434
|
};
|
|
@@ -205,8 +443,6 @@ export var getButtonStyles = [
|
|
|
205
443
|
var theme = utils.theme;
|
|
206
444
|
return {
|
|
207
445
|
cursor: $disabled ? 'not-allowed' : 'pointer',
|
|
208
|
-
// for secondary variant disabled state, we are using correct tokens instead of relying on opacity
|
|
209
|
-
opacity: $disabled && $variant !== 'secondary' ? '0.6' : '1',
|
|
210
446
|
boxSizing: 'border-box',
|
|
211
447
|
outlineWidth: theme.borderWidth['0'],
|
|
212
448
|
};
|
|
@@ -225,3 +461,30 @@ export var StyledLoadingSpinnerContainer = styled('div', function (utils, props)
|
|
|
225
461
|
width: lineHeight,
|
|
226
462
|
};
|
|
227
463
|
});
|
|
464
|
+
// decides the color for 3/4 of the loader
|
|
465
|
+
export var getLoaderMajorColor = function (_a, _b) {
|
|
466
|
+
var theme = _a.theme;
|
|
467
|
+
var variant = _b.variant;
|
|
468
|
+
var majorTheme = theme.name.includes('light') ? theme.spr.border05 : theme.spr.border04;
|
|
469
|
+
if (variant === 'tertiary' || variant === 'minimal') {
|
|
470
|
+
majorTheme = theme.name.includes('light') ? theme.spr.border01 : theme.spr.border03;
|
|
471
|
+
}
|
|
472
|
+
return {
|
|
473
|
+
borderTopColor: majorTheme,
|
|
474
|
+
borderLeftColor: majorTheme,
|
|
475
|
+
borderRightColor: majorTheme,
|
|
476
|
+
};
|
|
477
|
+
};
|
|
478
|
+
// decides the color for 1/4 of the loader
|
|
479
|
+
export var getLoaderMinorColor = function (_a, _b) {
|
|
480
|
+
var theme = _a.theme;
|
|
481
|
+
var variant = _b.variant;
|
|
482
|
+
if (variant === 'primary') {
|
|
483
|
+
return {
|
|
484
|
+
borderBottomColor: theme.name.includes('light') ? theme.spr.focus01 : theme.spr.border05,
|
|
485
|
+
};
|
|
486
|
+
}
|
|
487
|
+
return {
|
|
488
|
+
borderBottomColor: theme.name.includes('light') ? theme.spr.focus01 : theme.spr.border06,
|
|
489
|
+
};
|
|
490
|
+
};
|
package/esm/button/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ButtonOverrides as BaseUIButtonOverrides, KIND } from 'baseui/button';
|
|
1
|
+
import { ButtonOverrides as BaseUIButtonOverrides, KIND, ButtonProps as BaseuiButtonProps } from '../baseui/button';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { Override, StyleOverride } from '../overrides';
|
|
4
|
-
import {
|
|
4
|
+
import { TooltipProps } from '../tooltip';
|
|
5
5
|
import { ClassName, Intent, Variant, SpacewebComponentProps, Size } from '../types';
|
|
6
6
|
import { ValueOf } from '../utility-types';
|
|
7
7
|
import { AriaRole } from 'react';
|
|
@@ -22,6 +22,8 @@ export declare type ButtonSharedProps = {
|
|
|
22
22
|
$variant?: Variant;
|
|
23
23
|
$fullWidth?: boolean;
|
|
24
24
|
$isFocusVisible?: boolean;
|
|
25
|
+
$isIconButton?: boolean;
|
|
26
|
+
$animate?: boolean;
|
|
25
27
|
};
|
|
26
28
|
export declare type ButtonProps = SpacewebComponentProps<{
|
|
27
29
|
$as?: React.ElementType;
|
|
@@ -33,6 +35,7 @@ export declare type ButtonProps = SpacewebComponentProps<{
|
|
|
33
35
|
intent?: Intent;
|
|
34
36
|
isLoading?: boolean;
|
|
35
37
|
isSelected?: boolean;
|
|
38
|
+
animate?: boolean;
|
|
36
39
|
disabled?: boolean;
|
|
37
40
|
fullWidth?: boolean;
|
|
38
41
|
autoFocus?: boolean;
|
|
@@ -41,12 +44,12 @@ export declare type ButtonProps = SpacewebComponentProps<{
|
|
|
41
44
|
target?: string;
|
|
42
45
|
rel?: string;
|
|
43
46
|
children?: React.ReactNode;
|
|
44
|
-
endEnhancer?:
|
|
47
|
+
endEnhancer?: BaseuiButtonProps['endEnhancer'];
|
|
45
48
|
onClick?: (event: React.MouseEvent<HTMLElement>) => any;
|
|
46
49
|
overrides?: ButtonOverrides;
|
|
47
|
-
startEnhancer?:
|
|
50
|
+
startEnhancer?: BaseuiButtonProps['startEnhancer'];
|
|
48
51
|
type?: 'submit' | 'reset' | 'button';
|
|
49
|
-
tooltipContent?:
|
|
52
|
+
tooltipContent?: TooltipProps['content'];
|
|
50
53
|
tabIndex?: number | undefined;
|
|
51
54
|
}>;
|
|
52
55
|
export declare type VariantAdapterProps = Record<Variant, ValueOf<typeof KIND>>;
|
|
@@ -47,13 +47,14 @@ export var getButtonGroupSizeTheme = function (theme, size, prop) {
|
|
|
47
47
|
((_b = buttonGroupButtonSizeMap[size || getDefaultSize(theme)]) === null || _b === void 0 ? void 0 : _b[prop]) ||
|
|
48
48
|
buttonGroupButtonSizeMap[getDefaultSize(theme)][prop];
|
|
49
49
|
};
|
|
50
|
-
export var StyledRoot = styled('div', 'inline-flex items-center', function (_a, _b) {
|
|
50
|
+
export var StyledRoot = styled('div', 'inline-flex px-0.5 items-center', function (_a, _b) {
|
|
51
51
|
var theme = _a.theme, px2rem = _a.px2rem;
|
|
52
52
|
var $size = _b.$size;
|
|
53
53
|
if (!isHyperSpaceUI(theme))
|
|
54
54
|
return {};
|
|
55
55
|
var containerBorderRadius = getButtonGroupSizeTheme(theme, $size, 'containerBorderRadius');
|
|
56
|
-
|
|
56
|
+
var paddingX = getButtonGroupSizeTheme(theme, $size, 'marginTop');
|
|
57
|
+
return __assign(__assign(__assign(__assign(__assign({ gap: px2rem(3), backgroundColor: theme.spr.ui01 }, borderStyle('solid')), borderColor(theme.spr.ui03)), borderWidth('1px')), borderRadius(containerBorderRadius)), { paddingLeft: paddingX, paddingRight: paddingX });
|
|
57
58
|
});
|
|
58
59
|
var isSelected = function (selected, index) { return (_isArray(selected) ? selected.includes(index) : selected === index); };
|
|
59
60
|
var isAnyButtonSelected = function (selected) { return (typeof selected === 'number' && selected >= 0) || Boolean(selected === null || selected === void 0 ? void 0 : selected.length); };
|
|
@@ -63,9 +64,7 @@ export var hyperspaceButtonOverrides = function (utils, props) {
|
|
|
63
64
|
var height = getButtonGroupSizeTheme(theme, $size, 'height');
|
|
64
65
|
var marginTop = getButtonGroupSizeTheme(theme, $size, 'marginTop');
|
|
65
66
|
var marginBottom = getButtonGroupSizeTheme(theme, $size, 'marginBottom');
|
|
66
|
-
return _merge(__assign(__assign(__assign(__assign(__assign(__assign({
|
|
67
|
-
// To keep all the buttons equidistant remove marginLeft from all buttons except the first one
|
|
68
|
-
marginLeft: $index === 0 ? px2rem(2) : '0px', marginRight: $index === $childrenCount - 1 ? px2rem(2) : px2rem(3), fontSize: px2rem(12), lineHeight: px2rem(16) }, borderRadius(px2rem(4))), (!$isIconButton
|
|
67
|
+
return _merge(__assign(__assign(__assign(__assign(__assign(__assign({ fontSize: px2rem(12), lineHeight: px2rem(16) }, borderRadius(px2rem(4))), (!$isIconButton
|
|
69
68
|
? {
|
|
70
69
|
paddingTop: px2rem(8),
|
|
71
70
|
paddingBottom: px2rem(8),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { Checkbox as BaseCheckbox, StatefulCheckbox as BaseStatefulCheckbox } from 'baseui/checkbox';
|
|
2
|
+
import type { Checkbox as BaseCheckbox, StatefulCheckbox as BaseStatefulCheckbox } from '../baseui/checkbox';
|
|
3
3
|
import { CheckboxProps, StatefulCheckboxProps } from './types';
|
|
4
4
|
declare type BaseuiAdaptedProps = React.ComponentProps<typeof BaseCheckbox> | React.ComponentProps<typeof BaseStatefulCheckbox>;
|
|
5
5
|
declare type SpacewebProps = CheckboxProps | StatefulCheckboxProps;
|
|
@@ -1,38 +1,42 @@
|
|
|
1
1
|
import { __assign, __rest } from "tslib";
|
|
2
2
|
import { add$props } from '../helpers';
|
|
3
|
-
import { useConvertOverrides } from '../helpers/baseui/useConvertOverrides';
|
|
4
3
|
import { getCheckmarkOverrides, getLabelOverrides, getRootOverrides } from './styled-components';
|
|
5
4
|
import { useContextualFormProps } from '../form-control/context';
|
|
6
5
|
import { useCombineRefObjects } from '../hooks/useCombinedRef';
|
|
6
|
+
import { mergeOverrides } from '../overrides';
|
|
7
|
+
import { useMemo } from 'react';
|
|
7
8
|
export default function useCheckboxAdapter(props) {
|
|
8
9
|
var _a = useContextualFormProps(props), size = _a.size, className = _a.className, style = _a.style, overrides = _a.overrides, intent = _a.intent, $outlineStyle = _a.$outlineStyle, $outlineColor = _a.$outlineColor, $outlineOffset = _a.$outlineOffset, $outlineWidth = _a.$outlineWidth, restProps = __rest(_a, ["size", "className", "style", "overrides", "intent", "$outlineStyle", "$outlineColor", "$outlineOffset", "$outlineWidth"]);
|
|
9
|
-
var convertedOverrides =
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
Checkmark: {
|
|
14
|
-
style: getCheckmarkOverrides,
|
|
15
|
-
props: add$props({ size: size, intent: intent, $outlineStyle: $outlineStyle, $outlineColor: $outlineColor, $outlineOffset: $outlineOffset, $outlineWidth: $outlineWidth }),
|
|
16
|
-
},
|
|
17
|
-
Label: {
|
|
18
|
-
style: getLabelOverrides,
|
|
19
|
-
props: add$props({ size: size }),
|
|
20
|
-
},
|
|
21
|
-
// SharedProps for switch component
|
|
22
|
-
Toggle: {
|
|
23
|
-
props: add$props({ size: size, intent: intent }),
|
|
24
|
-
},
|
|
25
|
-
ToggleTrack: {
|
|
26
|
-
props: add$props({ size: size, intent: intent }),
|
|
27
|
-
},
|
|
28
|
-
// https://prod-gitlab.sprinklr.com/sprinklr/frontend/spaceweb/-/issues/406 - baseui adds position absolute
|
|
29
|
-
Input: {
|
|
30
|
-
style: { position: 'static' },
|
|
31
|
-
props: {
|
|
32
|
-
'aria-required': restProps['aria-required'],
|
|
10
|
+
var convertedOverrides = useMemo(function () {
|
|
11
|
+
return mergeOverrides({
|
|
12
|
+
Root: {
|
|
13
|
+
style: [className, style, getRootOverrides],
|
|
33
14
|
},
|
|
34
|
-
|
|
35
|
-
|
|
15
|
+
Checkmark: {
|
|
16
|
+
style: getCheckmarkOverrides,
|
|
17
|
+
props: add$props({ size: size, intent: intent, $outlineStyle: $outlineStyle, $outlineColor: $outlineColor, $outlineOffset: $outlineOffset, $outlineWidth: $outlineWidth }),
|
|
18
|
+
},
|
|
19
|
+
Label: {
|
|
20
|
+
style: getLabelOverrides,
|
|
21
|
+
props: add$props({ size: size }),
|
|
22
|
+
},
|
|
23
|
+
// SharedProps for switch component
|
|
24
|
+
Toggle: {
|
|
25
|
+
props: add$props({ size: size, intent: intent }),
|
|
26
|
+
},
|
|
27
|
+
ToggleTrack: {
|
|
28
|
+
props: add$props({ size: size, intent: intent }),
|
|
29
|
+
},
|
|
30
|
+
// https://prod-gitlab.sprinklr.com/sprinklr/frontend/spaceweb/-/issues/406 - baseui adds position absolute
|
|
31
|
+
Input: {
|
|
32
|
+
style: { position: 'static' },
|
|
33
|
+
props: {
|
|
34
|
+
'aria-required': restProps['aria-required'],
|
|
35
|
+
'aria-checked': !!restProps.checked,
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
}, overrides);
|
|
39
|
+
}, [$outlineColor, $outlineOffset, $outlineStyle, $outlineWidth, className, intent, overrides, restProps, size, style]);
|
|
36
40
|
var inputRefObj = useCombineRefObjects(props.inputRef);
|
|
37
41
|
return __assign(__assign({}, restProps), { overrides: convertedOverrides, inputRef: inputRefObj, onMouseEnter: props.onMouseEnter, onMouseLeave: props.onMouseLeave, onFocus: props.onFocus, onBlur: props.onBlur });
|
|
38
42
|
}
|
package/esm/checkbox/checkbox.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { Checkbox as BaseCheckbox, StatefulCheckbox as BaseStatefulCheckbox } from 'baseui/checkbox';
|
|
3
|
+
import { Checkbox as BaseCheckbox, StatefulCheckbox as BaseStatefulCheckbox } from '../baseui/checkbox';
|
|
4
4
|
import useCheckboxAdapter from './basewebAdapters';
|
|
5
5
|
// @ts-ignore
|
|
6
6
|
BaseCheckbox.displayName = 'BaseUICheckbox';
|
package/esm/checkbox/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { Checkbox, StatefulCheckbox } from './checkbox';
|
|
2
|
-
export { StatefulContainer, StyledRoot, StyledCheckmark, StyledLabel, StyledInput, StyledToggle, StyledToggleTrack, } from 'baseui/checkbox';
|
|
3
|
-
export type { StateReducer, StatefulContainerProps, CheckboxOverrides, CheckboxState } from 'baseui/checkbox';
|
|
4
|
-
export { STATE_TYPE, STYLE_TYPE } from 'baseui/checkbox';
|
|
2
|
+
export { StatefulContainer, StyledRoot, StyledCheckmark, StyledLabel, StyledInput, StyledToggle, StyledToggleTrack, } from '../baseui/checkbox';
|
|
3
|
+
export type { StateReducer, StatefulContainerProps, CheckboxOverrides, CheckboxState } from '../baseui/checkbox';
|
|
4
|
+
export { STATE_TYPE, STYLE_TYPE } from '../baseui/checkbox';
|
|
5
5
|
export * from './types';
|
package/esm/checkbox/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { Checkbox, StatefulCheckbox } from './checkbox';
|
|
2
|
-
export { StatefulContainer, StyledRoot, StyledCheckmark, StyledLabel, StyledInput, StyledToggle, StyledToggleTrack, } from 'baseui/checkbox';
|
|
3
|
-
export { STATE_TYPE, STYLE_TYPE } from 'baseui/checkbox';
|
|
2
|
+
export { StatefulContainer, StyledRoot, StyledCheckmark, StyledLabel, StyledInput, StyledToggle, StyledToggleTrack, } from '../baseui/checkbox';
|
|
3
|
+
export { STATE_TYPE, STYLE_TYPE } from '../baseui/checkbox';
|
|
4
4
|
export * from './types';
|