@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
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { __assign, __rest } from "tslib";
|
|
2
|
-
import { useConvertOverrides } from '../helpers/baseui/useConvertOverrides';
|
|
3
2
|
import { add$props } from '../helpers';
|
|
4
3
|
import { borderRadius, borderStyle, padding } from '../helpers/longHandHelpers';
|
|
5
4
|
import { getInputContainerStyles, getInputStyles, getEnhancerStyles } from './styled-components';
|
|
@@ -9,52 +8,56 @@ import { useDebouncedEventHandler } from '../hooks/useDebouncedEventHandler';
|
|
|
9
8
|
import _noop from 'lodash/noop';
|
|
10
9
|
import { useStyle } from '../style';
|
|
11
10
|
import { getDefaultSize } from '../helpers/themeHelpers';
|
|
11
|
+
import { mergeOverrides } from '../overrides';
|
|
12
|
+
import { useMemo } from 'react';
|
|
12
13
|
var useInputBasewebAdapter = function (props) {
|
|
13
14
|
var _a = useContextualFormProps(props), _size = _a.size, variant = _a.variant, className = _a.className, style = _a.style, intent = _a.intent, overrides = _a.overrides, onChange = _a.onChange, debouncedOnChange = _a.debouncedOnChange, debounceInterval = _a.debounceInterval, restProps = __rest(_a, ["size", "variant", "className", "style", "intent", "overrides", "onChange", "debouncedOnChange", "debounceInterval"]);
|
|
14
15
|
var theme = useStyle().theme;
|
|
15
16
|
var size = _size !== null && _size !== void 0 ? _size : getDefaultSize(theme);
|
|
16
17
|
var handleChange = useDebouncedEventHandler(debouncedOnChange !== null && debouncedOnChange !== void 0 ? debouncedOnChange : _noop, onChange, debounceInterval || 200);
|
|
17
|
-
var sharedProps = add$props({ size: size, variant: variant, intent: intent });
|
|
18
|
-
var convertedOverrides =
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
18
|
+
var sharedProps = useMemo(function () { return add$props({ size: size, variant: variant, intent: intent }); }, [intent, size, variant]);
|
|
19
|
+
var convertedOverrides = useMemo(function () {
|
|
20
|
+
return mergeOverrides({
|
|
21
|
+
Root: {
|
|
22
|
+
style: [
|
|
23
|
+
__assign(__assign(__assign({ backgroundColor: 'transparent' }, borderStyle('none')), padding(0)), borderRadius(0)),
|
|
24
|
+
className,
|
|
25
|
+
style,
|
|
26
|
+
],
|
|
27
|
+
props: sharedProps,
|
|
28
|
+
},
|
|
29
|
+
InputContainer: {
|
|
30
|
+
style: getInputContainerStyles,
|
|
31
|
+
props: sharedProps,
|
|
32
|
+
},
|
|
33
|
+
Input: {
|
|
34
|
+
style: [
|
|
35
|
+
getInputStyles,
|
|
36
|
+
borderRadius('inherit'),
|
|
37
|
+
// To remove the spin buttons on input field with type number
|
|
38
|
+
props.type === 'number'
|
|
39
|
+
? {
|
|
40
|
+
'::-webkit-inner-spin-button': { '-webkit-appearance': 'none' },
|
|
41
|
+
'::-webkit-outer-spin-button': { '-webkit-appearance': 'none' },
|
|
42
|
+
'-moz-appearance': 'textfield',
|
|
43
|
+
}
|
|
44
|
+
: {},
|
|
45
|
+
],
|
|
46
|
+
props: __assign(__assign({}, sharedProps), { 'aria-required': restProps['aria-required'] }),
|
|
47
|
+
},
|
|
48
|
+
StartEnhancer: {
|
|
49
|
+
style: getEnhancerStyles,
|
|
50
|
+
props: add$props({ isStart: true, intent: intent, variant: variant }),
|
|
51
|
+
},
|
|
52
|
+
EndEnhancer: {
|
|
53
|
+
style: getEnhancerStyles,
|
|
54
|
+
props: add$props({ isStart: false, intent: intent, variant: variant }),
|
|
55
|
+
},
|
|
56
|
+
ClearIcon: {
|
|
57
|
+
component: ClearIconButton,
|
|
58
|
+
},
|
|
59
|
+
}, overrides);
|
|
60
|
+
}, [className, style, sharedProps, props.type, restProps['aria-required'], intent, variant, overrides]);
|
|
58
61
|
return __assign(__assign({}, restProps), { onChange: handleChange, overrides: convertedOverrides });
|
|
59
62
|
};
|
|
60
63
|
export default useInputBasewebAdapter;
|
package/esm/input/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export { StatefulContainer, StyledRoot, StyledInputEnhancer, StyledStartEnhancer, StyledEndEnhancer, StyledInputContainer, StyledInput, STATE_CHANGE_TYPE, ADJOINED, CUSTOM_INPUT_TYPE, } from 'baseui/input';
|
|
2
|
-
export type { BaseInput, BaseInputOverrides, BaseInputProps, State, InternalState, StatefulContainerProps, } from 'baseui/input';
|
|
3
|
-
export { ENHANCER_POSITION } from 'baseui/input/constants';
|
|
1
|
+
export { StatefulContainer, StyledRoot, StyledInputEnhancer, StyledStartEnhancer, StyledEndEnhancer, StyledInputContainer, StyledInput, STATE_CHANGE_TYPE, ADJOINED, CUSTOM_INPUT_TYPE, } from '../baseui/input';
|
|
2
|
+
export type { BaseInput, BaseInputOverrides, BaseInputProps, State, InternalState, StatefulContainerProps, } from '../baseui/input';
|
|
3
|
+
export { ENHANCER_POSITION } from '../baseui/input/constants';
|
|
4
4
|
export { Input, StatefulInput, MaskedInput } from './input';
|
|
5
5
|
export * from './types';
|
|
6
|
+
export { InputContainer } from './InputContainer';
|
package/esm/input/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export { StatefulContainer, StyledRoot, StyledInputEnhancer, StyledStartEnhancer, StyledEndEnhancer, StyledInputContainer, StyledInput, STATE_CHANGE_TYPE, ADJOINED, CUSTOM_INPUT_TYPE, } from 'baseui/input';
|
|
2
|
-
export { ENHANCER_POSITION } from 'baseui/input/constants';
|
|
1
|
+
export { StatefulContainer, StyledRoot, StyledInputEnhancer, StyledStartEnhancer, StyledEndEnhancer, StyledInputContainer, StyledInput, STATE_CHANGE_TYPE, ADJOINED, CUSTOM_INPUT_TYPE, } from '../baseui/input';
|
|
2
|
+
export { ENHANCER_POSITION } from '../baseui/input/constants';
|
|
3
3
|
export { Input, StatefulInput, MaskedInput } from './input';
|
|
4
4
|
export * from './types';
|
|
5
|
+
export { InputContainer } from './InputContainer';
|
package/esm/input/input.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __assign, __rest } from "tslib";
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { Input as BaseInput, StatefulInput as BaseStatefulInput, MaskedInput as BaseMaskedInput } from 'baseui/input';
|
|
3
|
+
import { Input as BaseInput, StatefulInput as BaseStatefulInput, MaskedInput as BaseMaskedInput, } from '../baseui/input';
|
|
4
4
|
import useInputBasewebAdapter from './basewebAdapters';
|
|
5
5
|
import useAutoFocus from '../hooks/useAutoFocus';
|
|
6
6
|
// @ts-ignore
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
|
-
import { ADJOINED } from 'baseui/input';
|
|
2
|
+
import { ADJOINED } from '../baseui/input';
|
|
3
3
|
import { getComponentSizeTheme, getDefaultSize } from '../helpers/themeHelpers';
|
|
4
4
|
import { borderWidth, borderColor, borderStyle, borderRadius } from '../helpers/longHandHelpers';
|
|
5
5
|
import { intentColor } from '../helpers/intentHelper';
|
package/esm/input/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Ref, ChangeEvent } from 'react';
|
|
2
|
-
import { InputProps as BaseInputProps, StatefulInputProps as BaseStatefulInputProps, SharedProps as BaseSharedProps, InputOverrides as BaseUIInputOverrides } from 'baseui/input';
|
|
2
|
+
import { InputProps as BaseInputProps, StatefulInputProps as BaseStatefulInputProps, SharedProps as BaseSharedProps, InputOverrides as BaseUIInputOverrides } from '../baseui/input';
|
|
3
3
|
import { SpacewebComponentProps, Intent } from '../types';
|
|
4
4
|
import { Override } from '../overrides';
|
|
5
5
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { LayersContext } from 'baseui/layer';
|
|
3
|
+
import { LayersContext } from '../baseui/layer';
|
|
4
4
|
import { useMemo } from 'react';
|
|
5
5
|
import { useDocument } from '../spacewebProvider/DocumentProvider';
|
|
6
6
|
import { LAYERS_DEFAULT_ZINDEX } from './constants';
|
|
@@ -15,6 +15,8 @@ var LayersManager = function (_a) {
|
|
|
15
15
|
var _a, _b;
|
|
16
16
|
return (__assign(__assign({}, ctxValue), { host: (_a = hostToOverride !== null && hostToOverride !== void 0 ? hostToOverride : ctxValue.host) !== null && _a !== void 0 ? _a : defaultHostContainer, zIndex: (_b = zIndexToOverride !== null && zIndexToOverride !== void 0 ? zIndexToOverride : ctxValue.zIndex) !== null && _b !== void 0 ? _b : LAYERS_DEFAULT_ZINDEX }));
|
|
17
17
|
}, [ctxValue, hostToOverride, zIndexToOverride, defaultHostContainer]);
|
|
18
|
+
// TODO :- To remove this ts error
|
|
19
|
+
// @ts-ignore
|
|
18
20
|
return _jsx(LayersContext.Provider, __assign({ value: value }, { children: children }), void 0);
|
|
19
21
|
};
|
|
20
22
|
export default LayersManager;
|
|
@@ -1,16 +1,37 @@
|
|
|
1
1
|
import { __assign, __read, __spreadArray } from "tslib";
|
|
2
2
|
import { useCallback, useContext, useEffect, useMemo } from 'react';
|
|
3
|
-
import { LayersContext } from 'baseui/layer';
|
|
3
|
+
import { LayersContext } from '../baseui/layer';
|
|
4
4
|
import { useDocument } from '../spacewebProvider/DocumentProvider';
|
|
5
5
|
var handlersInitialized = false;
|
|
6
6
|
var docClickHandlers = [];
|
|
7
7
|
var escapeKeyHandlers = [];
|
|
8
|
+
var keyUpHandlers = [];
|
|
9
|
+
var keyDownHandlers = [];
|
|
10
|
+
var keyPressHandlers = [];
|
|
8
11
|
var addEscapeHandler = function (escapeKeyHandler) {
|
|
9
12
|
escapeKeyHandlers.push(escapeKeyHandler);
|
|
10
13
|
};
|
|
11
14
|
var removeEscapeHandler = function (escapeKeyHandler) {
|
|
12
15
|
escapeKeyHandlers = escapeKeyHandlers.filter(function (handler) { return handler !== escapeKeyHandler; });
|
|
13
16
|
};
|
|
17
|
+
var addKeyUpHandler = function (keyUpHandler) {
|
|
18
|
+
keyUpHandlers.push(keyUpHandler);
|
|
19
|
+
};
|
|
20
|
+
var removeKeyUpHandler = function (keyUpHandler) {
|
|
21
|
+
keyUpHandlers = keyUpHandlers.filter(function (handler) { return handler !== keyUpHandler; });
|
|
22
|
+
};
|
|
23
|
+
var addKeyDownHandler = function (keyDownHandler) {
|
|
24
|
+
keyDownHandlers.push(keyDownHandler);
|
|
25
|
+
};
|
|
26
|
+
var removeKeyDownHandler = function (keyDownHandler) {
|
|
27
|
+
keyDownHandlers = keyDownHandlers.filter(function (handler) { return handler !== keyDownHandler; });
|
|
28
|
+
};
|
|
29
|
+
var addKeyPressHandler = function (keyPressHandler) {
|
|
30
|
+
keyPressHandlers.push(keyPressHandler);
|
|
31
|
+
};
|
|
32
|
+
var removeKeyPressHandler = function (keyPressHandler) {
|
|
33
|
+
keyPressHandlers = keyPressHandlers.filter(function (handler) { return handler !== keyPressHandler; });
|
|
34
|
+
};
|
|
14
35
|
var addDocClickHandler = function (docClickHandler) {
|
|
15
36
|
docClickHandlers.push(docClickHandler);
|
|
16
37
|
};
|
|
@@ -21,6 +42,9 @@ var resetHandlers = function () {
|
|
|
21
42
|
handlersInitialized = false;
|
|
22
43
|
docClickHandlers = [];
|
|
23
44
|
escapeKeyHandlers = [];
|
|
45
|
+
keyUpHandlers = [];
|
|
46
|
+
keyPressHandlers = [];
|
|
47
|
+
keyDownHandlers = [];
|
|
24
48
|
};
|
|
25
49
|
var useLayersContextValue = function () {
|
|
26
50
|
var ctxValue = useContext(LayersContext);
|
|
@@ -35,21 +59,42 @@ var useLayersContextValue = function () {
|
|
|
35
59
|
escapeKeyHandler(event);
|
|
36
60
|
}
|
|
37
61
|
}
|
|
62
|
+
var keyUpKeyHandler = keyUpHandlers[keyUpHandlers.length - 1];
|
|
63
|
+
if (keyUpKeyHandler) {
|
|
64
|
+
keyUpKeyHandler(event);
|
|
65
|
+
}
|
|
66
|
+
}, []);
|
|
67
|
+
var onKeyPress = useCallback(function (event) {
|
|
68
|
+
var keyPressHandler = keyPressHandlers[keyPressHandlers.length - 1];
|
|
69
|
+
if (keyPressHandler) {
|
|
70
|
+
keyPressHandler(event);
|
|
71
|
+
}
|
|
72
|
+
}, []);
|
|
73
|
+
var onKeyDown = useCallback(function (event) {
|
|
74
|
+
var keyDownHandler = keyDownHandlers[keyDownHandlers.length - 1];
|
|
75
|
+
if (keyDownHandler) {
|
|
76
|
+
keyDownHandler(event);
|
|
77
|
+
}
|
|
38
78
|
}, []);
|
|
39
79
|
useEffect(function () {
|
|
40
80
|
if (handlersInitialized)
|
|
41
81
|
return undefined;
|
|
42
82
|
doc === null || doc === void 0 ? void 0 : doc.addEventListener('keyup', onKeyUp);
|
|
83
|
+
doc === null || doc === void 0 ? void 0 : doc.addEventListener('keypress', onKeyPress);
|
|
84
|
+
doc === null || doc === void 0 ? void 0 : doc.addEventListener('keydown', onKeyDown);
|
|
43
85
|
// using mousedown event so that callback runs before events on children inside of the layer
|
|
44
86
|
doc === null || doc === void 0 ? void 0 : doc.addEventListener('mousedown', onDocumentClick);
|
|
45
87
|
handlersInitialized = true;
|
|
46
88
|
return function () {
|
|
47
89
|
doc === null || doc === void 0 ? void 0 : doc.removeEventListener('keyup', onKeyUp);
|
|
90
|
+
doc === null || doc === void 0 ? void 0 : doc.removeEventListener('keypress', onKeyPress);
|
|
91
|
+
doc === null || doc === void 0 ? void 0 : doc.removeEventListener('keydown', onKeyDown);
|
|
48
92
|
doc === null || doc === void 0 ? void 0 : doc.removeEventListener('mousedown', onDocumentClick);
|
|
49
93
|
resetHandlers();
|
|
50
94
|
};
|
|
51
|
-
}, [doc, onDocumentClick, onKeyUp]);
|
|
95
|
+
}, [doc, onDocumentClick, onKeyDown, onKeyPress, onKeyUp]);
|
|
52
96
|
var contextValues = ctxValue && typeof ctxValue === 'object' ? Object.values(ctxValue) : [];
|
|
53
|
-
|
|
97
|
+
// @ts-ignore
|
|
98
|
+
return useMemo(function () { return (__assign(__assign({}, ctxValue), { addKeyDownHandler: addKeyDownHandler, removeKeyDownHandler: removeKeyDownHandler, addKeyPressHandler: addKeyPressHandler, removeKeyPressHandler: removeKeyPressHandler, addKeyUpHandler: addKeyUpHandler, removeKeyUpHandler: removeKeyUpHandler, addEscapeHandler: addEscapeHandler, removeEscapeHandler: removeEscapeHandler, addDocClickHandler: addDocClickHandler, removeDocClickHandler: removeDocClickHandler })); }, __spreadArray([], __read(contextValues), false));
|
|
54
99
|
};
|
|
55
100
|
export default useLayersContextValue;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ListItemTextProps } from './types';
|
|
3
|
-
declare const ListItemText: ({ overrides, children, secondary }: ListItemTextProps) => JSX.Element;
|
|
2
|
+
declare const ListItemText: ({ overrides, children, secondary }: ListItemTextProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default ListItemText;
|
package/esm/list/list-item.d.ts
CHANGED
|
@@ -22,6 +22,6 @@ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponen
|
|
|
22
22
|
} | undefined;
|
|
23
23
|
selected?: boolean | undefined;
|
|
24
24
|
startEnhancer?: Enhancer<ListItemSharedProps>;
|
|
25
|
-
tooltipContent?: React.ReactNode | import("baseui/popover").StatefulContentRenderProp;
|
|
25
|
+
tooltipContent?: React.ReactNode | import("../baseui/popover").StatefulContentRenderProp;
|
|
26
26
|
} & React.RefAttributes<HTMLElement>>>;
|
|
27
27
|
export default _default;
|
package/esm/list/list-item.js
CHANGED
|
@@ -48,7 +48,7 @@ var ListItem = React.forwardRef(function (_a, ref) {
|
|
|
48
48
|
};
|
|
49
49
|
var _r = __read(useOverrides(overrides === null || overrides === void 0 ? void 0 : overrides.StatefulTooltip, DefaultStatefulTooltip), 2), StatefulTooltip = _r[0], statefulTooltipProps = _r[1];
|
|
50
50
|
var listEl = (_jsxs(Root, __assign({ "data-spaceweb": "list-item", role: "listitem", ref: combinedRef, tabIndex: tabIndex, "aria-disabled": disabled, "$as": $as, onClick: disabled ? _noop : onClick, onKeyDown: handleKeyDown, "data-highlighted": highlighted }, sharedProps, restProps, rootProps, useFocusVisibleProps, { children: [startEnhancer && (_jsx(StartEnhancer, __assign({}, sharedProps, startEnhancerProps, { children: renderEnhancer(startEnhancer) }), void 0)), _jsx(ChildContainer, __assign({}, sharedProps, childContainerProps, { children: children }), void 0), endEnhancer && (_jsx(EndEnhancer, __assign({}, sharedProps, endEnhancerProps, { children: renderEnhancer(endEnhancer) }), void 0))] }), void 0));
|
|
51
|
-
return tooltipContent ? (_jsx(StatefulTooltip, __assign({ placement: "bottom", content: tooltipContent }, statefulTooltipProps, { children: listEl }), void 0)) : (listEl);
|
|
51
|
+
return tooltipContent ? (_jsx(StatefulTooltip, __assign({ placement: "bottom", content: tooltipContent, viewportAsBoundary: true }, statefulTooltipProps, { children: listEl }), void 0)) : (listEl);
|
|
52
52
|
});
|
|
53
53
|
ListItem.displayName = 'ListItem';
|
|
54
54
|
export default React.memo(ListItem);
|
package/esm/loader/loader.d.ts
CHANGED
|
@@ -2,5 +2,7 @@
|
|
|
2
2
|
import { LoaderProps } from './types';
|
|
3
3
|
export declare const DEFAULT_SIZE = 16;
|
|
4
4
|
export declare const DEFAULT_DELAY = 0;
|
|
5
|
-
declare const Loader: import("react").ForwardRefExoticComponent<LoaderProps &
|
|
5
|
+
declare const Loader: import("react").ForwardRefExoticComponent<LoaderProps & {
|
|
6
|
+
children?: import("react").ReactNode;
|
|
7
|
+
} & import("react").RefAttributes<HTMLElement>>;
|
|
6
8
|
export default Loader;
|
package/esm/loader/loader.js
CHANGED
|
@@ -1,20 +1,29 @@
|
|
|
1
1
|
import { __assign, __read, __rest } from "tslib";
|
|
2
2
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { forwardRef, useEffect, useState } from 'react';
|
|
4
|
+
import _times from 'lodash/times';
|
|
4
5
|
import { isTypographyNode } from '../helpers/typography';
|
|
5
6
|
import { useOverrides } from '../overrides';
|
|
6
7
|
import { Typography } from '../typography';
|
|
7
|
-
import { StyledBeatLoader, StyledBeatLoaderBall, StyledClipLoader, StyledRoot } from './styled-component';
|
|
8
|
+
import { StyledSpinner, StyledSpinnerStick, StyledBeatLoader, StyledBeatLoaderBall, StyledClipLoader, StyledRoot, } from './styled-component';
|
|
8
9
|
export var DEFAULT_SIZE = 16;
|
|
9
10
|
export var DEFAULT_DELAY = 0;
|
|
10
11
|
var Loader = forwardRef(function (_a, ref) {
|
|
11
12
|
var _b = _a.delay, delay = _b === void 0 ? DEFAULT_DELAY : _b, loadingContent = _a.loadingContent, _c = _a.variant, variant = _c === void 0 ? 'beat' : _c, _d = _a.size, size = _d === void 0 ? DEFAULT_SIZE : _d, overrides = _a.overrides, restProps = __rest(_a, ["delay", "loadingContent", "variant", "size", "overrides"]);
|
|
12
13
|
// should be visible from start if delay is 0
|
|
13
14
|
var _e = __read(useState(!delay), 2), visible = _e[0], updateVisibleState = _e[1];
|
|
15
|
+
var LoaderComponent;
|
|
16
|
+
if (variant === 'beat')
|
|
17
|
+
LoaderComponent = StyledBeatLoader;
|
|
18
|
+
else if (variant === 'clip')
|
|
19
|
+
LoaderComponent = StyledClipLoader;
|
|
20
|
+
else
|
|
21
|
+
LoaderComponent = StyledSpinner;
|
|
14
22
|
var _f = __read(useOverrides(overrides === null || overrides === void 0 ? void 0 : overrides.Root, StyledRoot), 2), Root = _f[0], rootProps = _f[1];
|
|
15
23
|
var _g = __read(useOverrides(overrides === null || overrides === void 0 ? void 0 : overrides.Text, Typography), 2), Text = _g[0], textProps = _g[1];
|
|
16
|
-
var _h = __read(useOverrides(overrides === null || overrides === void 0 ? void 0 : overrides.Loader,
|
|
24
|
+
var _h = __read(useOverrides(overrides === null || overrides === void 0 ? void 0 : overrides.Loader, LoaderComponent), 2), LoaderInternal = _h[0], loaderProps = _h[1];
|
|
17
25
|
var _j = __read(useOverrides(overrides === null || overrides === void 0 ? void 0 : overrides.BeatLoaderBall, StyledBeatLoaderBall), 2), BeatLoaderBall = _j[0], beatLoaderBallProps = _j[1];
|
|
26
|
+
var _k = __read(useOverrides(overrides === null || overrides === void 0 ? void 0 : overrides.SpinnerStick, StyledSpinnerStick), 2), SpinnerStick = _k[0], spinnerStickProps = _k[1];
|
|
18
27
|
useEffect(function () {
|
|
19
28
|
var delayTimer;
|
|
20
29
|
if (delay) {
|
|
@@ -32,7 +41,7 @@ var Loader = forwardRef(function (_a, ref) {
|
|
|
32
41
|
? loadingContent
|
|
33
42
|
: loadingContent && (_jsx(Text, __assign({ variant: "bs3" }, sharedProps, textProps, { className: [textProps.className, 'spr-text-02 mt-1'] }, { children: loadingContent }), void 0));
|
|
34
43
|
// todo: aria-label localization
|
|
35
|
-
return visible ? (_jsxs(Root, __assign({ "data-spaceweb": "loader", "data-testid": "loader" }, sharedProps, restProps, rootProps, { ref: ref }, { children: [
|
|
44
|
+
return visible ? (_jsxs(Root, __assign({ "data-spaceweb": "loader", "data-testid": "loader" }, sharedProps, restProps, rootProps, { ref: ref }, { children: [_jsxs(LoaderInternal, __assign({ "aria-label": "Loading", role: "progressbar", "aria-busy": true }, sharedProps, loaderProps, { children: [variant === 'beat' && (_jsxs(_Fragment, { children: [_jsx(BeatLoaderBall, __assign({}, sharedProps, { "$index": 1 }, beatLoaderBallProps), void 0), _jsx(BeatLoaderBall, __assign({}, sharedProps, { "$index": 2 }, beatLoaderBallProps), void 0), _jsx(BeatLoaderBall, __assign({}, sharedProps, { "$index": 3 }, beatLoaderBallProps), void 0)] }, void 0)), variant === 'spinner' && (_jsx(_Fragment, { children: _times(8).map(function (index) { return (_jsx(SpinnerStick, __assign({}, sharedProps, { "$index": index + 1 }, spinnerStickProps), index)); }) }, void 0))] }), void 0), content] }), void 0)) : null;
|
|
36
45
|
});
|
|
37
46
|
Loader.displayName = 'Loader';
|
|
38
47
|
export default Loader;
|
|
@@ -2,3 +2,5 @@ export declare const StyledRoot: import("../style/styled").StyledComponent;
|
|
|
2
2
|
export declare const StyledClipLoader: import("../style/styled").StyledComponent;
|
|
3
3
|
export declare const StyledBeatLoader: import("../style/styled").StyledComponent;
|
|
4
4
|
export declare const StyledBeatLoaderBall: import("../style/styled").StyledComponent;
|
|
5
|
+
export declare const StyledSpinner: import("../style/styled").StyledComponent;
|
|
6
|
+
export declare const StyledSpinnerStick: import("../style/styled").StyledComponent;
|
|
@@ -56,3 +56,64 @@ export var StyledBeatLoaderBall = styled('div', 'spr-tooltip-01 rounded-full inl
|
|
|
56
56
|
marginRight: px2rem(2),
|
|
57
57
|
};
|
|
58
58
|
});
|
|
59
|
+
var spinnerAnimationStyles = function (_, _a) {
|
|
60
|
+
var $index = _a.$index;
|
|
61
|
+
return ({
|
|
62
|
+
animationDuration: '1000ms',
|
|
63
|
+
animationDelay: "".concat($index * 125, "ms"),
|
|
64
|
+
animationIterationCount: 'infinite',
|
|
65
|
+
animationTimingFunction: 'step-start',
|
|
66
|
+
// @ts-ignore animationName can be an object https://www.styletron.org/concepts/#keyframes
|
|
67
|
+
animationName: {
|
|
68
|
+
'10%': {
|
|
69
|
+
opacity: 0.125,
|
|
70
|
+
},
|
|
71
|
+
'100%': {
|
|
72
|
+
opacity: 1,
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
});
|
|
76
|
+
};
|
|
77
|
+
var spinnerStyles = function (utils, props) {
|
|
78
|
+
var px2rem = utils.px2rem;
|
|
79
|
+
var $size = props.$size, index = props.$index;
|
|
80
|
+
var radius = $size / 2;
|
|
81
|
+
var stickHeight = radius / 2;
|
|
82
|
+
var stickWidth = radius / 4;
|
|
83
|
+
var stickHeightOffset = stickHeight / 2;
|
|
84
|
+
var stickWidthOffset = stickWidth / 2;
|
|
85
|
+
// Adjust the baseRadius to be the radius minus the stick width
|
|
86
|
+
var baseRadius = radius - stickWidth;
|
|
87
|
+
// Calculate the angle in degrees
|
|
88
|
+
var angle = (index - 1) * 45;
|
|
89
|
+
// Calculate the x and y offsets based on the adjusted baseRadius
|
|
90
|
+
var yOffset = Math.sin((Math.PI * angle) / 180) * baseRadius;
|
|
91
|
+
var xOffset = Math.cos((Math.PI * angle) / 180) * baseRadius;
|
|
92
|
+
return {
|
|
93
|
+
top: px2rem(radius + yOffset - stickHeightOffset),
|
|
94
|
+
left: px2rem(radius + xOffset - stickWidthOffset),
|
|
95
|
+
transform: "rotate(".concat(angle + 90, "deg)"),
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
export var StyledSpinner = styled('div', function (utils, props) {
|
|
99
|
+
var px2rem = utils.px2rem;
|
|
100
|
+
var $size = props.$size;
|
|
101
|
+
return {
|
|
102
|
+
height: px2rem($size),
|
|
103
|
+
width: px2rem($size),
|
|
104
|
+
position: 'relative',
|
|
105
|
+
};
|
|
106
|
+
});
|
|
107
|
+
export var StyledSpinnerStick = styled('div', 'box-border spr-tooltip-01', spinnerStyles, spinnerAnimationStyles, function (utils, props) {
|
|
108
|
+
var px2rem = utils.px2rem;
|
|
109
|
+
var $size = props.$size;
|
|
110
|
+
var radius = $size / 2;
|
|
111
|
+
var stickHeight = radius / 2;
|
|
112
|
+
var stickWidth = radius / 4;
|
|
113
|
+
return {
|
|
114
|
+
height: px2rem(stickHeight),
|
|
115
|
+
width: px2rem(stickWidth),
|
|
116
|
+
borderRadius: px2rem(16),
|
|
117
|
+
position: 'absolute',
|
|
118
|
+
};
|
|
119
|
+
});
|
package/esm/loader/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Override } from '../overrides';
|
|
3
3
|
import { ClassName } from '../types';
|
|
4
|
-
export declare type Variant = 'clip' | 'beat';
|
|
4
|
+
export declare type Variant = 'clip' | 'beat' | 'spinner';
|
|
5
5
|
export declare type SharedProps = {
|
|
6
6
|
$variant: Variant;
|
|
7
7
|
$hasLoadingContent: boolean;
|
|
@@ -19,5 +19,6 @@ export declare type LoaderProps = {
|
|
|
19
19
|
Text?: Override<SharedProps & Record<string, any>>;
|
|
20
20
|
Loader?: Override<SharedProps & Record<string, any>>;
|
|
21
21
|
BeatLoaderBall?: Override<SharedProps & Record<string, any>>;
|
|
22
|
+
SpinnerStick?: Override<SharedProps & Record<string, any>>;
|
|
22
23
|
};
|
|
23
24
|
};
|
package/esm/locale/context.d.ts
CHANGED
package/esm/locale/en_US.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
export var DEFAULT_LOCALE = {
|
|
2
2
|
colorPicker: {
|
|
3
3
|
resetButtonLabel: 'Reset Color',
|
|
4
|
+
colorLibraryLabel: 'Color Library',
|
|
5
|
+
solidColorLabel: 'Solid Color',
|
|
6
|
+
gradientColorLabel: 'Gradient Color',
|
|
7
|
+
selectColorLabel: 'Select Color',
|
|
4
8
|
},
|
|
5
9
|
select: {
|
|
6
10
|
noResultsMsg: 'No Results',
|
|
@@ -9,6 +13,7 @@ export var DEFAULT_LOCALE = {
|
|
|
9
13
|
selectPlaceholder: 'Select...',
|
|
10
14
|
clearOptionLabel: 'Unassign',
|
|
11
15
|
selectedValuesPrefix: 'Selected ${values}.',
|
|
16
|
+
collapsibleMenuDescription: 'You are currently using a collapsible grouped menu. To move to next group press Shift and down arrow. To move to previous group press Shift and up arrow.',
|
|
12
17
|
},
|
|
13
18
|
asyncSelect: {
|
|
14
19
|
searchingText: 'Searching',
|
package/esm/locale/types.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { TimeRangePickerLocale } from '../time-range-picker';
|
|
2
|
-
import { SelectLocale } from '../select';
|
|
3
|
-
import { AsyncSelectLocale } from '../asyncSelect';
|
|
4
|
-
import { PhoneInputLocale } from '../phone-input';
|
|
5
|
-
import { DatePickerLocale } from '../date-picker/locale';
|
|
6
|
-
import { BannerLocale } from '../banner';
|
|
7
|
-
import { ColorPickerLocale } from '../color-picker/locale';
|
|
1
|
+
import type { TimeRangePickerLocale } from '../time-range-picker/locale';
|
|
2
|
+
import type { SelectLocale } from '../select/locale';
|
|
3
|
+
import type { AsyncSelectLocale } from '../asyncSelect/locale';
|
|
4
|
+
import type { PhoneInputLocale } from '../phone-input/locale';
|
|
5
|
+
import type { DatePickerLocale } from '../date-picker/locale';
|
|
6
|
+
import type { BannerLocale } from '../banner/locale';
|
|
7
|
+
import type { ColorPickerLocale } from '../color-picker/locale';
|
|
8
8
|
export declare type Locale = {
|
|
9
9
|
select: SelectLocale;
|
|
10
10
|
colorPicker: ColorPickerLocale;
|
package/esm/menu/helpers.d.ts
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
import { Reducer } from './types';
|
|
1
|
+
import { Reducer, TraversalFunction } from './types';
|
|
2
|
+
export declare const nextItem: TraversalFunction;
|
|
3
|
+
export declare const prevItem: TraversalFunction;
|
|
2
4
|
/**
|
|
3
5
|
* Checks if given item can be highlighted
|
|
4
6
|
*/
|
|
5
7
|
export declare const canHighlightItem: (item?: HTMLElement | null | undefined) => boolean;
|
|
8
|
+
/**
|
|
9
|
+
* https://github.com/mui-org/material-ui/blob/master/packages/material-ui/src/MenuList/MenuList.js
|
|
10
|
+
* Get index of next element which is not disabled
|
|
11
|
+
*/
|
|
12
|
+
export declare const getNextItemIndexToHighlight: (highlightedItem: HTMLElement | null, parentContainer: HTMLElement, traversalFunction: TraversalFunction) => HTMLElement | null;
|
|
6
13
|
export declare const getFirstHighlightableElement: (listItemsContainerRef: HTMLElement) => {
|
|
7
14
|
firstHighlightableItem: HTMLElement | null;
|
|
8
15
|
firstSelectedItem: HTMLElement | null;
|
package/esm/menu/helpers.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
var nextItem = function (highlightedItem, parentContainer) {
|
|
1
|
+
export var nextItem = function (highlightedItem, parentContainer) {
|
|
2
2
|
var _a;
|
|
3
3
|
if (highlightedItem) {
|
|
4
4
|
return ((_a = highlightedItem === null || highlightedItem === void 0 ? void 0 : highlightedItem.nextElementSibling) !== null && _a !== void 0 ? _a : highlightedItem);
|
|
5
5
|
}
|
|
6
|
-
return parentContainer.firstElementChild;
|
|
6
|
+
return parentContainer === null || parentContainer === void 0 ? void 0 : parentContainer.firstElementChild;
|
|
7
7
|
};
|
|
8
|
-
var prevItem = function (highlightedItem) { var _a; return ((_a = highlightedItem === null || highlightedItem === void 0 ? void 0 : highlightedItem.previousElementSibling) !== null && _a !== void 0 ? _a : highlightedItem); };
|
|
8
|
+
export var prevItem = function (highlightedItem) { var _a; return ((_a = highlightedItem === null || highlightedItem === void 0 ? void 0 : highlightedItem.previousElementSibling) !== null && _a !== void 0 ? _a : highlightedItem); };
|
|
9
9
|
/**
|
|
10
10
|
* Checks if given item can be highlighted
|
|
11
11
|
*/
|
|
@@ -14,7 +14,7 @@ export var canHighlightItem = function (item) { return (item === null || item ==
|
|
|
14
14
|
* https://github.com/mui-org/material-ui/blob/master/packages/material-ui/src/MenuList/MenuList.js
|
|
15
15
|
* Get index of next element which is not disabled
|
|
16
16
|
*/
|
|
17
|
-
var getNextItemIndexToHighlight = function (highlightedItem, parentContainer, traversalFunction) {
|
|
17
|
+
export var getNextItemIndexToHighlight = function (highlightedItem, parentContainer, traversalFunction) {
|
|
18
18
|
var previousItem = highlightedItem, nextHighlightableItem = traversalFunction(highlightedItem, parentContainer);
|
|
19
19
|
while (previousItem !== nextHighlightableItem) {
|
|
20
20
|
if (!canHighlightItem(nextHighlightableItem)) {
|
package/esm/menu/menu-item.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<import("../list").ListItemProps, "
|
|
2
|
+
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<import("../list").ListItemProps, "onMouseEnter" | "onMouseLeave" | "overrides"> & {
|
|
3
3
|
getChildMenu?: (() => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null) | undefined;
|
|
4
4
|
onMouseEnter?: (() => void) | undefined;
|
|
5
5
|
onMouseLeave?: (() => void) | undefined;
|
|
@@ -27,9 +27,9 @@ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponen
|
|
|
27
27
|
} | undefined;
|
|
28
28
|
selected?: boolean | undefined;
|
|
29
29
|
startEnhancer?: import("../list/types").Enhancer<import("../list").ListItemSharedProps>;
|
|
30
|
-
tooltipContent?: React.ReactNode | import("baseui/popover").StatefulContentRenderProp;
|
|
30
|
+
tooltipContent?: React.ReactNode | import("../baseui/popover").StatefulContentRenderProp;
|
|
31
31
|
} & Record<string, any>> | undefined;
|
|
32
|
-
Popover?: import("../overrides").Override<Omit<import("baseui/popover").PopoverProps, "children" | "overrides" | "
|
|
32
|
+
Popover?: import("../overrides").Override<Omit<import("../baseui/popover").PopoverProps, "children" | "overrides" | "placement" | "triggerType"> & {
|
|
33
33
|
overrides?: ({
|
|
34
34
|
Body?: import("../overrides").Override<any> | undefined;
|
|
35
35
|
Arrow?: import("../overrides").Override<any> | undefined;
|
package/esm/menu/menu-item.js
CHANGED
|
@@ -24,10 +24,14 @@ var listItemOverrides = {
|
|
|
24
24
|
var getStyle = _a.getStyle, theme = _a.theme;
|
|
25
25
|
var $disabled = _b.$disabled, $highlighted = _b.$highlighted, $selected = _b.$selected, $outlined = _b.$outlined;
|
|
26
26
|
var hoverBackgroundColor = getComponentTheme(theme, 'list').hoverBackgroundColor;
|
|
27
|
-
return getStyle(cx({ 'outline-01
|
|
27
|
+
return getStyle(cx({ 'outline-01': $outlined }), {
|
|
28
28
|
backgroundColor: $highlighted || $selected ? hoverBackgroundColor : 'none',
|
|
29
29
|
cursor: $disabled ? 'not-allowed' : 'pointer',
|
|
30
|
-
}
|
|
30
|
+
}, $outlined
|
|
31
|
+
? {
|
|
32
|
+
outlineOffset: '-2px',
|
|
33
|
+
}
|
|
34
|
+
: {});
|
|
31
35
|
},
|
|
32
36
|
},
|
|
33
37
|
},
|
package/esm/modal/adapter.d.ts
CHANGED
package/esm/modal/adapter.js
CHANGED
package/esm/modal/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { default as Modal } from './modal';
|
|
2
2
|
export { default as ModalHeader } from './modal-header';
|
|
3
3
|
export { default as ModalFooter } from './modal-footer';
|
|
4
|
-
export { FocusOnce } from 'baseui/modal';
|
|
4
|
+
export { FocusOnce } from '../baseui/modal';
|
|
5
5
|
export { ModalBody, StyledRoot, StyledClose, StyledDialog, StyledDialogContainer, StyledModal, } from './styled-components';
|
|
6
6
|
export type { SharedProps, ModalProps, ModalState, Size, Role, } from './types';
|
|
7
7
|
export { CLOSE_SOURCE } from './types';
|
package/esm/modal/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { default as Modal } from './modal';
|
|
2
2
|
export { default as ModalHeader } from './modal-header';
|
|
3
3
|
export { default as ModalFooter } from './modal-footer';
|
|
4
|
-
export { FocusOnce } from 'baseui/modal';
|
|
4
|
+
export { FocusOnce } from '../baseui/modal';
|
|
5
5
|
export { ModalBody, StyledRoot, StyledClose, StyledDialog, StyledDialogContainer, StyledModal, } from './styled-components';
|
|
6
6
|
export { CLOSE_SOURCE } from './types';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { ModalFooterProps } from './types';
|
|
3
3
|
declare const ModalFooter: {
|
|
4
|
-
(props: ModalFooterProps): ReactElement;
|
|
4
|
+
({ noBorder, ...props }: ModalFooterProps): ReactElement;
|
|
5
5
|
displayName: string;
|
|
6
6
|
};
|
|
7
7
|
export default ModalFooter;
|