baseui 12.0.0 → 12.1.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/accordion/accordion.js +4 -2
- package/accordion/accordion.js.flow +1 -1
- package/accordion/panel.js +3 -2
- package/accordion/stateful-panel-container.js +1 -0
- package/accordion/styled-components.js +8 -1
- package/accordion/types.d.ts +2 -2
- package/app-nav-bar/app-nav-bar.js +4 -2
- package/app-nav-bar/mobile-menu.js +2 -1
- package/app-nav-bar/styled-components.js +19 -1
- package/app-nav-bar/types.d.ts +2 -2
- package/app-nav-bar/user-menu.js +1 -1
- package/aspect-ratio-box/aspect-ratio-box-body.d.ts +1 -1
- package/aspect-ratio-box/aspect-ratio-box.js +3 -1
- package/aspect-ratio-box/types.d.ts +1 -1
- package/avatar/styled-components.js +4 -1
- package/badge/styled-components.js +16 -11
- package/badge/styled-components.js.flow +4 -4
- package/badge/types.d.ts +2 -2
- package/banner/index.d.ts +1 -1
- package/banner/styled-components.js +25 -12
- package/banner/types.d.ts +15 -15
- package/banner/types.js.flow +13 -11
- package/block/block.js +3 -1
- package/block/styled-components.js +2 -1
- package/block/types.d.ts +3 -4
- package/breadcrumbs/styled-components.js +7 -2
- package/button/styled-components.js +7 -0
- package/button/styled-components.js.flow +2 -0
- package/button/types.d.ts +4 -5
- package/button-group/stateful-button-group.js +1 -0
- package/button-group/stateful-container.js +3 -1
- package/button-group/styled-components.js +2 -1
- package/button-group/types.d.ts +4 -5
- package/card/styled-components.js +11 -4
- package/checkbox/styled-components.js +10 -4
- package/checkbox/styled-components.js.flow +1 -1
- package/checkbox/types.d.ts +36 -37
- package/combobox/combobox.js +78 -71
- package/combobox/styled-components.js +5 -1
- package/combobox/types.d.ts +4 -5
- package/data-table/column-anchor.js +3 -0
- package/data-table/column-datetime.js +10 -4
- package/data-table/column-numerical.js +4 -4
- package/data-table/column-string.js +3 -0
- package/data-table/column.js +6 -1
- package/data-table/data-table.js +6 -3
- package/data-table/filter-menu.js +2 -1
- package/data-table/header-cell.js +43 -34
- package/data-table/locale.d.ts +4 -0
- package/data-table/locale.js +3 -1
- package/data-table/locale.js.flow +5 -0
- package/data-table/measure-column-widths.js +5 -4
- package/data-table/stateful-container.js +2 -1
- package/data-table/stateful-data-table.js +4 -4
- package/data-table/types.d.ts +4 -5
- package/datepicker/calendar-header.js +1 -0
- package/datepicker/calendar.js +2 -0
- package/datepicker/datepicker.js +2 -0
- package/datepicker/day.js +2 -1
- package/datepicker/index.d.ts +1 -1
- package/datepicker/index.js +7 -0
- package/datepicker/index.js.flow +1 -1
- package/datepicker/stateful-calendar.js +7 -3
- package/datepicker/stateful-container.js +2 -0
- package/datepicker/stateful-datepicker.js +9 -4
- package/datepicker/styled-components.js +27 -4
- package/datepicker/types.d.ts +2 -2
- package/datepicker/utils/date-helpers.js +2 -1
- package/datepicker/utils/index.js +2 -1
- package/divider/styled-components.js +4 -3
- package/divider/types.d.ts +1 -1
- package/dnd-list/stateful-list-container.js +1 -0
- package/dnd-list/styled-components.js +7 -0
- package/dnd-list/types.d.ts +2 -2
- package/drawer/constants.js +1 -0
- package/drawer/drawer.js +2 -3
- package/drawer/drawer.js.flow +1 -3
- package/drawer/styled-components.js +9 -2
- package/drawer/types.d.ts +2 -2
- package/es/accordion/accordion.js +3 -3
- package/es/accordion/panel.js +3 -2
- package/es/accordion/stateful-panel-container.js +1 -0
- package/es/accordion/styled-components.js +8 -1
- package/es/app-nav-bar/app-nav-bar.js +6 -2
- package/es/app-nav-bar/mobile-menu.js +4 -2
- package/es/app-nav-bar/styled-components.js +19 -1
- package/es/app-nav-bar/user-menu.js +1 -1
- package/es/aspect-ratio-box/aspect-ratio-box.js +3 -1
- package/es/avatar/styled-components.js +4 -1
- package/es/badge/styled-components.js +11 -6
- package/es/banner/styled-components.js +16 -3
- package/es/block/block.js +3 -1
- package/es/block/styled-components.js +2 -1
- package/es/breadcrumbs/styled-components.js +7 -2
- package/es/button/button.js +8 -0
- package/es/button/styled-components.js +7 -0
- package/es/button-group/stateful-button-group.js +1 -0
- package/es/button-group/stateful-container.js +3 -1
- package/es/button-group/styled-components.js +2 -1
- package/es/card/index.js +2 -1
- package/es/card/styled-components.js +12 -4
- package/es/checkbox/index.js +1 -0
- package/es/checkbox/stateful-checkbox-container.js +3 -0
- package/es/checkbox/styled-components.js +10 -4
- package/es/combobox/combobox.js +76 -69
- package/es/combobox/styled-components.js +5 -1
- package/es/data-table/column-anchor.js +3 -0
- package/es/data-table/column-datetime.js +12 -5
- package/es/data-table/column-numerical.js +5 -4
- package/es/data-table/column-string.js +3 -0
- package/es/data-table/column.js +4 -1
- package/es/data-table/data-table.js +6 -3
- package/es/data-table/filter-menu.js +2 -1
- package/es/data-table/header-cell.js +41 -34
- package/es/data-table/locale.js +3 -1
- package/es/data-table/measure-column-widths.js +5 -4
- package/es/data-table/stateful-container.js +2 -1
- package/es/data-table/stateful-data-table.js +4 -4
- package/es/datepicker/calendar-header.js +1 -0
- package/es/datepicker/calendar.js +2 -0
- package/es/datepicker/datepicker.js +3 -1
- package/es/datepicker/day.js +2 -1
- package/es/datepicker/index.js +1 -1
- package/es/datepicker/stateful-calendar.js +4 -1
- package/es/datepicker/stateful-container.js +2 -0
- package/es/datepicker/stateful-datepicker.js +5 -1
- package/es/datepicker/styled-components.js +26 -3
- package/es/datepicker/utils/date-helpers.js +2 -1
- package/es/datepicker/utils/index.js +2 -1
- package/es/divider/styled-components.js +3 -2
- package/es/dnd-list/stateful-list-container.js +1 -0
- package/es/dnd-list/styled-components.js +7 -0
- package/es/drawer/constants.js +1 -0
- package/es/drawer/drawer.js +2 -5
- package/es/drawer/styled-components.js +9 -2
- package/es/file-uploader/file-uploader.js +82 -78
- package/es/file-uploader/styled-components.js +6 -1
- package/es/flex-grid/flex-grid-item.js +5 -6
- package/es/flex-grid/flex-grid.js +4 -1
- package/es/form-control/styled-components.js +6 -1
- package/es/header-navigation/styled-components.js +4 -1
- package/es/helper/styled-components.js +3 -1
- package/es/helpers/overrides.js +9 -5
- package/es/icon/build-icons.js +0 -2
- package/es/icon/index.js +1 -1
- package/es/icon/omit-dollar-prefixed-keys.js +1 -0
- package/es/icon/styled-components.js +2 -1
- package/es/input/base-input.js +9 -12
- package/es/input/input.js +9 -13
- package/es/input/masked-input.js +9 -2
- package/es/input/stateful-container.js +1 -0
- package/es/input/styled-components.js +18 -7
- package/es/input/utils.js +2 -0
- package/es/layer/layer.js +24 -0
- package/es/layer/layers-manager.js +91 -1
- package/es/layout-grid/styled-components.js +3 -0
- package/es/link/index.js +2 -1
- package/es/link/styled-components.js +2 -1
- package/es/list/list-heading.js +21 -17
- package/es/list/list-item.js +2 -1
- package/es/list/styled-components.js +17 -1
- package/es/locale/es_AR.js +3 -1
- package/es/locale/index.js +2 -1
- package/es/locale/tr_TR.js +3 -1
- package/es/map-marker/constants.js +14 -0
- package/es/map-marker/fixed-marker.js +1 -0
- package/es/map-marker/index.js +2 -1
- package/es/map-marker/location-puck.js +142 -0
- package/es/map-marker/pin-head.js +1 -0
- package/es/map-marker/styled-components.js +86 -2
- package/es/menu/index.js +1 -1
- package/es/menu/menu.js +14 -4
- package/es/menu/option-profile.js +1 -0
- package/es/menu/stateful-container.js +10 -0
- package/es/menu/styled-components.js +32 -2
- package/es/message-card/constants.js +19 -0
- package/es/message-card/index.js +10 -0
- package/es/message-card/message-card.js +114 -0
- package/es/message-card/styled-components.js +108 -0
- package/es/message-card/types.js +1 -0
- package/es/message-card/utils.js +27 -0
- package/es/modal/modal.js +4 -6
- package/es/modal/styled-components.js +8 -1
- package/es/pagination/stateful-container.js +1 -0
- package/es/pagination/stateful-pagination.js +1 -0
- package/es/pagination/styled-components.js +4 -1
- package/es/payment-card/styled-components.js +2 -1
- package/es/phone-input/base-country-picker.js +3 -1
- package/es/phone-input/country-select-dropdown.js +1 -0
- package/es/phone-input/styled-components.js +15 -4
- package/es/pin-code/styled-components.js +4 -1
- package/es/popover/popover.js +9 -11
- package/es/popover/stateful-container.js +4 -1
- package/es/popover/styled-components.js +9 -4
- package/es/progress-bar/progressbar-rounded.js +1 -0
- package/es/progress-bar/styled-components.js +14 -2
- package/es/progress-steps/progress-steps.js +2 -1
- package/es/progress-steps/styled-components.js +20 -12
- package/es/radio/stateful-radiogroup-container.js +3 -0
- package/es/radio/styled-components.js +10 -3
- package/es/rating/emoticon-rating.js +2 -1
- package/es/rating/star-rating.js +2 -1
- package/es/rating/styled-components.js +5 -1
- package/es/select/autosize-input.js +2 -3
- package/es/select/default-props.js +1 -1
- package/es/select/dropdown.js +2 -1
- package/es/select/multi-value.js +2 -1
- package/es/select/select-component.js +10 -10
- package/es/select/single-select.js +2 -2
- package/es/select/stateful-select-container.js +2 -0
- package/es/select/styled-components.js +33 -6
- package/es/select/value.js +3 -4
- package/es/side-navigation/index.js +2 -1
- package/es/side-navigation/nav-item.js +1 -0
- package/es/side-navigation/nav.js +1 -1
- package/es/side-navigation/stateful-container.js +1 -0
- package/es/side-navigation/styled-components.js +8 -2
- package/es/skeleton/styled-components.js +3 -1
- package/es/slider/slider.js +4 -2
- package/es/slider/stateful-slider-container.js +2 -0
- package/es/slider/styled-components.js +9 -0
- package/es/snackbar/snackbar-element.js +1 -0
- package/es/snackbar/styled-components.js +9 -1
- package/es/spinner/styled-components.js +2 -1
- package/es/styles/__mocks__/styled.js +8 -5
- package/es/styles/styled.js +7 -6
- package/es/table/index.js +2 -1
- package/es/table/styled-components.js +13 -1
- package/es/table-grid/styled-components.js +4 -1
- package/es/table-semantic/styled-components.js +20 -3
- package/es/tabs/stateful-tabs.js +1 -0
- package/es/tabs/styled-components.js +5 -1
- package/es/tabs/tabs.js +4 -2
- package/es/tabs-motion/styled-components.js +32 -2
- package/es/tabs-motion/tab.js +1 -0
- package/es/tabs-motion/tabs.js +31 -6
- package/es/tag/styled-components.js +32 -1
- package/es/tag/tag.js +6 -2
- package/es/textarea/styled-components.js +20 -12
- package/es/textarea/textarea.js +13 -15
- package/es/themes/dark-theme/color-component-tokens.js +1 -1
- package/es/themes/light-theme/color-component-tokens.js +1 -1
- package/es/themes/move-theme/typography.js +36 -0
- package/es/themes/shared/borders.js +8 -3
- package/es/themes/shared/typography.js +10 -10
- package/es/timezonepicker/timezone-picker.js +5 -1
- package/es/timezonepicker/tzdata.js +1 -1
- package/es/timezonepicker/update-tzdata.js +11 -6
- package/es/toast/styled-components.js +5 -1
- package/es/toast/toaster.js +0 -2
- package/es/tokens/colors.js +24 -0
- package/es/tooltip/styled-components.js +4 -1
- package/es/tree-view/index.js +2 -1
- package/es/tree-view/styled-components.js +7 -1
- package/es/tree-view/tree-view.js +3 -1
- package/es/types/globals.d.js +12 -0
- package/es/utils/deep-merge.js +0 -5
- package/es/utils/deprecated-component.js +1 -0
- package/es/utils/focusVisible.js +4 -2
- package/esm/accordion/accordion.js +4 -4
- package/esm/accordion/panel.js +3 -2
- package/esm/accordion/stateful-panel-container.js +1 -0
- package/esm/accordion/styled-components.js +8 -1
- package/esm/app-nav-bar/app-nav-bar.js +4 -2
- package/esm/app-nav-bar/mobile-menu.js +4 -2
- package/esm/app-nav-bar/styled-components.js +19 -1
- package/esm/app-nav-bar/user-menu.js +1 -1
- package/esm/aspect-ratio-box/aspect-ratio-box.js +3 -1
- package/esm/avatar/styled-components.js +4 -1
- package/esm/badge/styled-components.js +11 -6
- package/esm/banner/styled-components.js +16 -3
- package/esm/block/block.js +3 -1
- package/esm/block/styled-components.js +2 -1
- package/esm/breadcrumbs/styled-components.js +7 -2
- package/esm/button/styled-components.js +7 -0
- package/esm/button-group/stateful-button-group.js +1 -0
- package/esm/button-group/stateful-container.js +3 -1
- package/esm/button-group/styled-components.js +2 -1
- package/esm/card/index.js +2 -1
- package/esm/card/styled-components.js +12 -4
- package/esm/checkbox/index.js +1 -0
- package/esm/checkbox/styled-components.js +10 -4
- package/esm/combobox/combobox.js +78 -71
- package/esm/combobox/styled-components.js +5 -1
- package/esm/data-table/column-anchor.js +3 -0
- package/esm/data-table/column-datetime.js +12 -5
- package/esm/data-table/column-numerical.js +4 -4
- package/esm/data-table/column-string.js +3 -0
- package/esm/data-table/column.js +5 -1
- package/esm/data-table/data-table.js +6 -3
- package/esm/data-table/filter-menu.js +2 -1
- package/esm/data-table/header-cell.js +42 -34
- package/esm/data-table/locale.js +3 -1
- package/esm/data-table/measure-column-widths.js +5 -4
- package/esm/data-table/stateful-container.js +2 -1
- package/esm/data-table/stateful-data-table.js +4 -4
- package/esm/datepicker/calendar-header.js +1 -0
- package/esm/datepicker/calendar.js +2 -0
- package/esm/datepicker/datepicker.js +3 -1
- package/esm/datepicker/day.js +2 -1
- package/esm/datepicker/index.js +1 -1
- package/esm/datepicker/stateful-calendar.js +7 -3
- package/esm/datepicker/stateful-container.js +2 -0
- package/esm/datepicker/stateful-datepicker.js +9 -4
- package/esm/datepicker/styled-components.js +26 -3
- package/esm/datepicker/utils/date-helpers.js +2 -1
- package/esm/datepicker/utils/index.js +2 -1
- package/esm/divider/styled-components.js +3 -2
- package/esm/dnd-list/stateful-list-container.js +1 -0
- package/esm/dnd-list/styled-components.js +7 -0
- package/esm/drawer/constants.js +1 -0
- package/esm/drawer/drawer.js +2 -5
- package/esm/drawer/styled-components.js +9 -2
- package/esm/file-uploader/file-uploader.js +87 -83
- package/esm/file-uploader/styled-components.js +6 -1
- package/esm/flex-grid/flex-grid-item.js +4 -5
- package/esm/flex-grid/flex-grid.js +7 -3
- package/esm/form-control/styled-components.js +6 -1
- package/esm/header-navigation/styled-components.js +4 -1
- package/esm/helper/styled-components.js +3 -1
- package/esm/helpers/overrides.js +9 -5
- package/esm/icon/build-icons.js +0 -2
- package/esm/icon/index.js +1 -1
- package/esm/icon/omit-dollar-prefixed-keys.js +1 -0
- package/esm/icon/styled-components.js +2 -1
- package/esm/input/base-input.js +9 -12
- package/esm/input/input.js +9 -13
- package/esm/input/masked-input.js +5 -2
- package/esm/input/stateful-container.js +1 -0
- package/esm/input/styled-components.js +18 -7
- package/esm/input/utils.js +2 -0
- package/esm/layer/layer.js +24 -0
- package/esm/layer/layers-manager.js +97 -1
- package/esm/layout-grid/styled-components.js +3 -0
- package/esm/link/index.js +2 -1
- package/esm/link/styled-components.js +2 -1
- package/esm/list/list-heading.js +21 -17
- package/esm/list/list-item.js +2 -1
- package/esm/list/styled-components.js +17 -1
- package/esm/locale/es_AR.js +3 -1
- package/esm/locale/index.js +4 -1
- package/esm/locale/tr_TR.js +3 -1
- package/esm/map-marker/constants.js +12 -2
- package/esm/map-marker/index.js +2 -1
- package/esm/map-marker/location-puck.js +199 -0
- package/esm/map-marker/styled-components.js +82 -2
- package/esm/menu/index.js +1 -1
- package/esm/menu/menu.js +16 -4
- package/esm/menu/option-profile.js +1 -0
- package/esm/menu/stateful-container.js +1 -0
- package/esm/menu/styled-components.js +38 -6
- package/esm/message-card/constants.js +20 -0
- package/esm/message-card/index.js +10 -0
- package/esm/message-card/message-card.js +168 -0
- package/esm/message-card/styled-components.js +116 -0
- package/esm/message-card/types.js +1 -0
- package/esm/message-card/utils.js +26 -0
- package/esm/modal/modal.js +4 -6
- package/esm/modal/styled-components.js +8 -1
- package/esm/pagination/stateful-container.js +1 -0
- package/esm/pagination/stateful-pagination.js +1 -0
- package/esm/pagination/styled-components.js +4 -1
- package/esm/payment-card/styled-components.js +2 -1
- package/esm/phone-input/base-country-picker.js +3 -1
- package/esm/phone-input/country-select-dropdown.js +1 -0
- package/esm/phone-input/styled-components.js +20 -8
- package/esm/pin-code/styled-components.js +4 -1
- package/esm/popover/popover.js +9 -11
- package/esm/popover/stateful-container.js +4 -1
- package/esm/popover/styled-components.js +9 -4
- package/esm/progress-bar/progressbar-rounded.js +1 -0
- package/esm/progress-bar/styled-components.js +14 -2
- package/esm/progress-steps/progress-steps.js +2 -1
- package/esm/progress-steps/styled-components.js +28 -19
- package/esm/radio/styled-components.js +10 -3
- package/esm/rating/emoticon-rating.js +2 -1
- package/esm/rating/star-rating.js +2 -1
- package/esm/rating/styled-components.js +5 -1
- package/esm/select/autosize-input.js +2 -3
- package/esm/select/default-props.js +1 -1
- package/esm/select/dropdown.js +2 -1
- package/esm/select/multi-value.js +2 -1
- package/esm/select/select-component.js +10 -10
- package/esm/select/single-select.js +2 -2
- package/esm/select/styled-components.js +33 -6
- package/esm/select/value.js +3 -4
- package/esm/side-navigation/index.js +2 -1
- package/esm/side-navigation/nav-item.js +1 -0
- package/esm/side-navigation/nav.js +1 -1
- package/esm/side-navigation/stateful-container.js +1 -0
- package/esm/side-navigation/styled-components.js +13 -6
- package/esm/skeleton/styled-components.js +3 -1
- package/esm/slider/slider.js +4 -2
- package/esm/slider/styled-components.js +9 -0
- package/esm/snackbar/snackbar-element.js +1 -0
- package/esm/snackbar/styled-components.js +9 -1
- package/esm/spinner/styled-components.js +2 -1
- package/esm/styles/__mocks__/styled.js +8 -5
- package/esm/styles/styled.js +7 -6
- package/esm/table/index.js +2 -1
- package/esm/table/styled-components.js +13 -1
- package/esm/table-grid/styled-components.js +4 -1
- package/esm/table-semantic/styled-components.js +20 -3
- package/esm/tabs/stateful-tabs.js +1 -0
- package/esm/tabs/styled-components.js +5 -1
- package/esm/tabs/tabs.js +4 -2
- package/esm/tabs-motion/styled-components.js +68 -40
- package/esm/tabs-motion/tab.js +1 -0
- package/esm/tabs-motion/tabs.js +87 -58
- package/esm/tag/styled-components.js +5 -1
- package/esm/tag/tag.js +4 -2
- package/esm/textarea/styled-components.js +11 -6
- package/esm/textarea/textarea.js +13 -15
- package/esm/themes/dark-theme/color-component-tokens.js +1 -1
- package/esm/themes/light-theme/color-component-tokens.js +1 -1
- package/esm/themes/move-theme/typography.js +36 -0
- package/esm/themes/shared/borders.js +8 -3
- package/esm/themes/shared/typography.js +10 -10
- package/esm/timezonepicker/timezone-picker.js +6 -2
- package/esm/timezonepicker/tzdata.js +1 -1
- package/esm/timezonepicker/update-tzdata.js +51 -39
- package/esm/toast/styled-components.js +5 -1
- package/esm/toast/toaster.js +0 -2
- package/esm/tokens/colors.js +24 -0
- package/esm/tooltip/styled-components.js +4 -1
- package/esm/tree-view/index.js +2 -1
- package/esm/tree-view/styled-components.js +7 -1
- package/esm/tree-view/tree-view.js +3 -1
- package/esm/types/globals.d.js +12 -0
- package/esm/utils/deep-merge.js +0 -5
- package/esm/utils/deprecated-component.js +1 -0
- package/esm/utils/focusVisible.js +4 -2
- package/file-uploader/file-uploader.js +87 -83
- package/file-uploader/styled-components.js +6 -1
- package/flex-grid/flex-grid-item.d.ts +1 -1
- package/flex-grid/flex-grid-item.js +6 -8
- package/flex-grid/flex-grid.js +7 -3
- package/flex-grid/types.d.ts +1 -1
- package/form-control/styled-components.js +6 -1
- package/form-control/types.d.ts +1 -1
- package/header-navigation/styled-components.js +4 -1
- package/heading/types.d.ts +1 -1
- package/helper/styled-components.js +3 -1
- package/helpers/overrides.js +8 -3
- package/helpers/overrides.js.flow +1 -1
- package/helpers/types.d.ts +1 -1
- package/icon/build-icons.js +0 -2
- package/icon/build-icons.js.flow +0 -1
- package/icon/index.d.ts +1 -1
- package/icon/index.js +8 -1
- package/icon/index.js.flow +1 -1
- package/icon/omit-dollar-prefixed-keys.js +1 -0
- package/icon/styled-components.js +2 -1
- package/icon/types.d.ts +1 -1
- package/input/base-input.js +8 -12
- package/input/base-input.js.flow +4 -8
- package/input/input.js +9 -13
- package/input/input.js.flow +5 -9
- package/input/masked-input.js +5 -2
- package/input/stateful-container.js +1 -0
- package/input/styled-components.js +18 -7
- package/input/styled-components.js.flow +9 -2
- package/input/types.d.ts +16 -14
- package/input/types.js.flow +3 -0
- package/input/utils.js +2 -0
- package/layer/layer.js +24 -0
- package/layer/layer.js.flow +25 -0
- package/layer/layers-manager.d.ts +8 -0
- package/layer/layers-manager.js +97 -1
- package/layer/layers-manager.js.flow +84 -1
- package/layer/types.d.ts +23 -2
- package/layer/types.js.flow +22 -1
- package/layout-grid/styled-components.js +3 -0
- package/layout-grid/types.d.ts +2 -2
- package/link/index.js +2 -1
- package/link/styled-components.js +2 -1
- package/list/list-heading.js +21 -17
- package/list/list-item.js +2 -1
- package/list/styled-components.js +17 -1
- package/list/types.d.ts +2 -2
- package/locale/en_US.d.ts +1 -1
- package/locale/es_AR.d.ts +1 -1
- package/locale/es_AR.js +3 -1
- package/locale/index.js +4 -1
- package/locale/tr_TR.d.ts +1 -1
- package/locale/tr_TR.js +3 -1
- package/map-marker/constants.d.ts +14 -0
- package/map-marker/constants.js +16 -3
- package/map-marker/constants.js.flow +17 -0
- package/map-marker/index.d.ts +2 -1
- package/map-marker/index.js +24 -1
- package/map-marker/index.js.flow +5 -3
- package/map-marker/location-puck.d.ts +4 -0
- package/map-marker/location-puck.js +211 -0
- package/map-marker/location-puck.js.flow +18 -0
- package/map-marker/styled-components.d.ts +17 -1
- package/map-marker/styled-components.js +88 -2
- package/map-marker/styled-components.js.flow +58 -0
- package/map-marker/types.d.ts +33 -5
- package/map-marker/types.js.flow +37 -3
- package/menu/index.d.ts +2 -3
- package/menu/index.js +8 -1
- package/menu/index.js.flow +1 -0
- package/menu/menu.js +15 -3
- package/menu/menu.js.flow +11 -1
- package/menu/option-profile.js +1 -0
- package/menu/stateful-container.js +1 -0
- package/menu/styled-components.d.ts +1 -0
- package/menu/styled-components.js +40 -7
- package/menu/styled-components.js.flow +13 -0
- package/menu/types.d.ts +13 -13
- package/menu/types.js.flow +1 -0
- package/message-card/constants.d.ts +12 -0
- package/message-card/constants.js +25 -0
- package/message-card/index.d.ts +4 -0
- package/message-card/index.js +60 -0
- package/message-card/index.js.flow +72 -0
- package/message-card/message-card.d.ts +4 -0
- package/message-card/message-card.js +184 -0
- package/message-card/package.json +4 -0
- package/message-card/styled-components.d.ts +14 -0
- package/message-card/styled-components.js +124 -0
- package/message-card/types.d.ts +27 -0
- package/message-card/types.js +5 -0
- package/message-card/utils.d.ts +1 -0
- package/message-card/utils.js +36 -0
- package/modal/modal.js +4 -4
- package/modal/modal.js.flow +1 -3
- package/modal/styled-components.js +8 -1
- package/modal/types.d.ts +2 -2
- package/package.json +10 -12
- package/pagination/stateful-container.js +1 -0
- package/pagination/stateful-pagination.js +1 -0
- package/pagination/styled-components.js +4 -1
- package/pagination/types.d.ts +2 -2
- package/payment-card/styled-components.js +2 -1
- package/phone-input/base-country-picker.js +3 -1
- package/phone-input/country-select-dropdown.js +1 -0
- package/phone-input/styled-components.js +21 -9
- package/phone-input/types.d.ts +5 -6
- package/pin-code/styled-components.js +4 -1
- package/pin-code/types.d.ts +2 -2
- package/popover/popover.js +9 -11
- package/popover/popover.js.flow +2 -12
- package/popover/stateful-container.js +5 -1
- package/popover/styled-components.js +12 -9
- package/popover/types.d.ts +2 -2
- package/progress-bar/progressbar-rounded.js +1 -0
- package/progress-bar/styled-components.d.ts +4 -1
- package/progress-bar/styled-components.js +14 -2
- package/progress-bar/types.d.ts +2 -2
- package/progress-steps/progress-steps.js +2 -1
- package/progress-steps/styled-components.js +28 -19
- package/radio/styled-components.js +10 -3
- package/radio/types.d.ts +19 -20
- package/rating/emoticon-rating.js +2 -1
- package/rating/star-rating.js +2 -1
- package/rating/styled-components.js +5 -1
- package/select/autosize-input.js +2 -1
- package/select/autosize-input.js.flow +1 -1
- package/select/default-props.js +1 -1
- package/select/dropdown.js +2 -1
- package/select/multi-value.js +1 -0
- package/select/select-component.d.ts +1 -1
- package/select/select-component.js +9 -7
- package/select/select-component.js.flow +1 -1
- package/select/single-select.d.ts +2 -2
- package/select/single-select.js +2 -2
- package/select/styled-components.js +33 -6
- package/select/styled-components.js.flow +25 -5
- package/select/types.d.ts +5 -6
- package/select/value.js +2 -3
- package/side-navigation/nav-item.js +1 -0
- package/side-navigation/nav.js +1 -1
- package/side-navigation/stateful-container.js +1 -0
- package/side-navigation/styled-components.js +13 -6
- package/side-navigation/types.d.ts +4 -4
- package/skeleton/styled-components.js +3 -1
- package/slider/slider.js +4 -2
- package/slider/styled-components.js +9 -0
- package/slider/types.d.ts +1 -1
- package/snackbar/snackbar-element.js +1 -0
- package/snackbar/styled-components.js +9 -1
- package/snackbar/types.d.ts +3 -4
- package/spinner/styled-components.js +2 -1
- package/spinner/types.d.ts +1 -1
- package/styles/__mocks__/styled.js +8 -3
- package/styles/styled.d.ts +1 -1
- package/styles/styled.js +7 -6
- package/table/styled-components.js +13 -1
- package/table/types.d.ts +2 -2
- package/table-grid/styled-components.js +4 -1
- package/table-semantic/styled-components.js +20 -3
- package/table-semantic/types.d.ts +2 -2
- package/tabs/stateful-tabs.js +1 -0
- package/tabs/styled-components.js +5 -1
- package/tabs/tabs.js +4 -2
- package/tabs/types.d.ts +2 -2
- package/tabs-motion/styled-components.d.ts +5 -0
- package/tabs-motion/styled-components.js +71 -41
- package/tabs-motion/styled-components.js.flow +21 -0
- package/tabs-motion/tab.js +1 -0
- package/tabs-motion/tabs.d.ts +1 -1
- package/tabs-motion/tabs.js +87 -57
- package/tabs-motion/tabs.js.flow +69 -38
- package/tabs-motion/types.d.ts +5 -2
- package/tabs-motion/types.js.flow +3 -0
- package/tabs-motion/utils.d.ts +1 -1
- package/tag/styled-components.js +5 -1
- package/tag/tag.js +4 -2
- package/tag/types.d.ts +4 -5
- package/textarea/styled-components.js +11 -6
- package/textarea/textarea.js +13 -15
- package/textarea/textarea.js.flow +5 -9
- package/textarea/types.d.ts +6 -5
- package/textarea/types.js.flow +3 -1
- package/themes/dark-theme/color-component-tokens.js +1 -1
- package/themes/dark-theme/color-component-tokens.js.flow +1 -1
- package/themes/light-theme/color-component-tokens.js +1 -1
- package/themes/light-theme/color-component-tokens.js.flow +1 -1
- package/themes/move-theme/typography.d.ts +36 -0
- package/themes/move-theme/typography.js +36 -0
- package/themes/move-theme/typography.js.flow +12 -0
- package/themes/shared/borders.js +8 -3
- package/themes/shared/borders.js.flow +7 -3
- package/themes/shared/typography.js +10 -10
- package/themes/shared/typography.js.flow +10 -10
- package/themes/types.d.ts +3 -0
- package/themes/types.js.flow +3 -0
- package/timezonepicker/timezone-picker.js +6 -2
- package/timezonepicker/types.d.ts +1 -0
- package/timezonepicker/types.js.flow +1 -0
- package/timezonepicker/tzdata.js +1 -1
- package/timezonepicker/update-tzdata.js +51 -39
- package/toast/styled-components.js +5 -1
- package/toast/toaster.js.flow +1 -1
- package/toast/types.d.ts +2 -2
- package/tokens/colors.js +24 -0
- package/tokens/colors.js.flow +27 -0
- package/tokens/types.d.ts +24 -0
- package/tokens/types.js.flow +27 -0
- package/tooltip/styled-components.js +4 -1
- package/tree-view/styled-components.js +7 -1
- package/tree-view/tree-view.js +3 -1
- package/tree-view/types.d.ts +3 -4
- package/types/globals.d.js +14 -1
- package/utils/deep-merge.js +0 -6
- package/utils/deprecated-component.js +1 -0
- package/utils/focusVisible.d.ts +1 -1
- package/utils/focusVisible.js +4 -2
- package/card/images.d.ts +0 -2
- package/card/images.js +0 -17
- package/card/images.js.flow +0 -18
- package/es/card/images.js +0 -8
- package/esm/card/images.js +0 -8
package/esm/popover/popover.js
CHANGED
|
@@ -169,13 +169,11 @@ var PopoverInner = /*#__PURE__*/function (_React$Component) {
|
|
|
169
169
|
var popper = _this.popperRef.current;
|
|
170
170
|
var anchor = _this.anchorRef.current; // Ignore document click if it came from popover or anchor
|
|
171
171
|
|
|
172
|
-
if (!popper || popper === target ||
|
|
173
|
-
target instanceof Node && popper.contains(target)) {
|
|
172
|
+
if (!popper || popper === target || target instanceof Node && popper.contains(target)) {
|
|
174
173
|
return;
|
|
175
174
|
}
|
|
176
175
|
|
|
177
|
-
if (!anchor || anchor === target ||
|
|
178
|
-
target instanceof Node && popper.contains(target)) {
|
|
176
|
+
if (!anchor || anchor === target || target instanceof Node && popper.contains(target)) {
|
|
179
177
|
return;
|
|
180
178
|
}
|
|
181
179
|
|
|
@@ -199,7 +197,7 @@ var PopoverInner = /*#__PURE__*/function (_React$Component) {
|
|
|
199
197
|
value: function componentDidUpdate(prevProps, prevState) {
|
|
200
198
|
this.init(prevProps, prevState);
|
|
201
199
|
|
|
202
|
-
if (this.props.autoFocus && !this.state.autoFocusAfterPositioning && this.popperRef.current !== null && this.popperRef.current.getBoundingClientRect().top > 0) {
|
|
200
|
+
if (this.props.accessibilityType !== ACCESSIBILITY_TYPE.tooltip && this.props.autoFocus && !this.state.autoFocusAfterPositioning && this.popperRef.current !== null && this.popperRef.current.getBoundingClientRect().top > 0) {
|
|
203
201
|
this.setState({
|
|
204
202
|
autoFocusAfterPositioning: true
|
|
205
203
|
});
|
|
@@ -331,10 +329,6 @@ var PopoverInner = /*#__PURE__*/function (_React$Component) {
|
|
|
331
329
|
value: function getAnchorProps() {
|
|
332
330
|
var isOpen = this.props.isOpen;
|
|
333
331
|
var anchorProps = {
|
|
334
|
-
'aria-haspopup': true,
|
|
335
|
-
'aria-expanded': isOpen ? true : false,
|
|
336
|
-
// @ts-expect-error todo(flow->ts): should it be here?
|
|
337
|
-
key: 'popover-anchor',
|
|
338
332
|
ref: this.anchorRef
|
|
339
333
|
};
|
|
340
334
|
var popoverId = this.getPopoverIdAttr();
|
|
@@ -342,6 +336,8 @@ var PopoverInner = /*#__PURE__*/function (_React$Component) {
|
|
|
342
336
|
if (this.isAccessibilityTypeMenu()) {
|
|
343
337
|
var relationAttr = this.isClickTrigger() ? 'aria-controls' : 'aria-owns';
|
|
344
338
|
anchorProps[relationAttr] = isOpen ? popoverId : null;
|
|
339
|
+
anchorProps['aria-haspopup'] = true;
|
|
340
|
+
anchorProps['aria-expanded'] = Boolean(isOpen);
|
|
345
341
|
} else if (this.isAccessibilityTypeTooltip()) {
|
|
346
342
|
anchorProps.id = this.getAnchorIdAttr();
|
|
347
343
|
anchorProps['aria-describedby'] = isOpen ? popoverId : null;
|
|
@@ -433,7 +429,9 @@ var PopoverInner = /*#__PURE__*/function (_React$Component) {
|
|
|
433
429
|
return /*#__PURE__*/React.cloneElement(anchor, anchorProps);
|
|
434
430
|
}
|
|
435
431
|
|
|
436
|
-
return /*#__PURE__*/React.createElement("span",
|
|
432
|
+
return /*#__PURE__*/React.createElement("span", _extends({
|
|
433
|
+
key: "popover-anchor"
|
|
434
|
+
}, anchorProps), anchor);
|
|
437
435
|
}
|
|
438
436
|
}, {
|
|
439
437
|
key: "renderPopover",
|
|
@@ -509,7 +507,7 @@ var PopoverInner = /*#__PURE__*/function (_React$Component) {
|
|
|
509
507
|
popperOptions: _objectSpread(_objectSpread({}, defaultPopperOptions), this.props.popperOptions),
|
|
510
508
|
onPopperUpdate: this.onPopperUpdate,
|
|
511
509
|
placement: this.state.placement
|
|
512
|
-
}, this.props.focusLock ? /*#__PURE__*/React.createElement(FocusLock, {
|
|
510
|
+
}, this.props.focusLock && this.props.accessibilityType !== ACCESSIBILITY_TYPE.tooltip ? /*#__PURE__*/React.createElement(FocusLock, {
|
|
513
511
|
disabled: !this.props.focusLock,
|
|
514
512
|
noFocusGuards: false // see popover-focus-loop.scenario.js for why hover cannot return focus
|
|
515
513
|
,
|
|
@@ -34,6 +34,7 @@ LICENSE file in the root directory of this source tree.
|
|
|
34
34
|
*/
|
|
35
35
|
import * as React from 'react';
|
|
36
36
|
import { ACCESSIBILITY_TYPE, PLACEMENT, STATE_CHANGE_TYPE, TRIGGER_TYPE, POPOVER_MARGIN } from './constants';
|
|
37
|
+
import { isFocusVisible } from '../utils/focusVisible';
|
|
37
38
|
|
|
38
39
|
var defaultStateReducer = function defaultStateReducer(type, nextState) {
|
|
39
40
|
return nextState;
|
|
@@ -96,7 +97,9 @@ var StatefulContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
96
97
|
_this.props.onFocus(e);
|
|
97
98
|
}
|
|
98
99
|
|
|
99
|
-
|
|
100
|
+
if (isFocusVisible(e)) {
|
|
101
|
+
_this.open();
|
|
102
|
+
}
|
|
100
103
|
});
|
|
101
104
|
|
|
102
105
|
_defineProperty(_assertThisInitialized(_this), "onMouseEnter", function (e) {
|
|
@@ -58,11 +58,12 @@ export function getBodyStyles(props) {
|
|
|
58
58
|
} : {});
|
|
59
59
|
}
|
|
60
60
|
export var Body = styled('div', getBodyStyles);
|
|
61
|
+
Body.displayName = "Body";
|
|
62
|
+
Body.displayName = 'Body';
|
|
61
63
|
/**
|
|
62
64
|
* Arrow shown between the popover and the anchor element
|
|
63
65
|
*/
|
|
64
66
|
|
|
65
|
-
Body.displayName = "Body";
|
|
66
67
|
export function getArrowStyles(props) {
|
|
67
68
|
var $arrowOffset = props.$arrowOffset,
|
|
68
69
|
$placement = props.$placement,
|
|
@@ -77,6 +78,8 @@ export function getArrowStyles(props) {
|
|
|
77
78
|
}, getArrowPositionStyles($arrowOffset, $placement));
|
|
78
79
|
}
|
|
79
80
|
export var Arrow = styled('div', getArrowStyles);
|
|
81
|
+
Arrow.displayName = "Arrow";
|
|
82
|
+
Arrow.displayName = 'Arrow';
|
|
80
83
|
/**
|
|
81
84
|
* Extra div that holds the popover content. This extra element
|
|
82
85
|
* is needed for the arrow–the arrow is just a 45deg rotated div,
|
|
@@ -84,7 +87,6 @@ export var Arrow = styled('div', getArrowStyles);
|
|
|
84
87
|
* clips the part of the arrow that extends into the popover.
|
|
85
88
|
*/
|
|
86
89
|
|
|
87
|
-
Arrow.displayName = "Arrow";
|
|
88
90
|
export function getInnerStyles(_ref) {
|
|
89
91
|
var $theme = _ref.$theme;
|
|
90
92
|
return {
|
|
@@ -98,13 +100,14 @@ export function getInnerStyles(_ref) {
|
|
|
98
100
|
};
|
|
99
101
|
}
|
|
100
102
|
export var Inner = styled('div', getInnerStyles);
|
|
103
|
+
Inner.displayName = "Inner";
|
|
104
|
+
Inner.displayName = 'Inner';
|
|
101
105
|
/**
|
|
102
106
|
* A drop-in component that provides the recommended padding
|
|
103
107
|
* for popovers. Mostly a convenience for users so they don't
|
|
104
108
|
* have to define this themselves.
|
|
105
109
|
*/
|
|
106
110
|
|
|
107
|
-
Inner.displayName = "Inner";
|
|
108
111
|
export var Padding = styled('div', {
|
|
109
112
|
paddingLeft: '12px',
|
|
110
113
|
paddingTop: '12px',
|
|
@@ -112,7 +115,9 @@ export var Padding = styled('div', {
|
|
|
112
115
|
paddingBottom: '12px'
|
|
113
116
|
});
|
|
114
117
|
Padding.displayName = "Padding";
|
|
118
|
+
Padding.displayName = 'Padding';
|
|
115
119
|
export var Hidden = styled('div', {
|
|
116
120
|
display: 'none'
|
|
117
121
|
});
|
|
118
|
-
Hidden.displayName = "Hidden";
|
|
122
|
+
Hidden.displayName = "Hidden";
|
|
123
|
+
Hidden.displayName = 'Hidden';
|
|
@@ -22,7 +22,8 @@ function getBarHeight(size) {
|
|
|
22
22
|
var _SIZE$small$SIZE$medi;
|
|
23
23
|
|
|
24
24
|
return (_SIZE$small$SIZE$medi = {}, _defineProperty(_SIZE$small$SIZE$medi, SIZE.small, '2px'), _defineProperty(_SIZE$small$SIZE$medi, SIZE.medium, '4px'), _defineProperty(_SIZE$small$SIZE$medi, SIZE.large, '8px'), _SIZE$small$SIZE$medi)[size];
|
|
25
|
-
}
|
|
25
|
+
} // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
26
|
+
|
|
26
27
|
|
|
27
28
|
export var StyledRoot = styled('div', function (props) {
|
|
28
29
|
return {
|
|
@@ -30,6 +31,7 @@ export var StyledRoot = styled('div', function (props) {
|
|
|
30
31
|
};
|
|
31
32
|
});
|
|
32
33
|
StyledRoot.displayName = "StyledRoot";
|
|
34
|
+
StyledRoot.displayName = 'StyledRoot';
|
|
33
35
|
export var StyledBarContainer = styled('div', function (props) {
|
|
34
36
|
var $theme = props.$theme;
|
|
35
37
|
var sizing = $theme.sizing;
|
|
@@ -42,6 +44,7 @@ export var StyledBarContainer = styled('div', function (props) {
|
|
|
42
44
|
};
|
|
43
45
|
});
|
|
44
46
|
StyledBarContainer.displayName = "StyledBarContainer";
|
|
47
|
+
StyledBarContainer.displayName = 'StyledBarContainer';
|
|
45
48
|
export var StyledBar = styled('div', function (props) {
|
|
46
49
|
var $theme = props.$theme,
|
|
47
50
|
$size = props.$size,
|
|
@@ -67,6 +70,7 @@ export var StyledBar = styled('div', function (props) {
|
|
|
67
70
|
});
|
|
68
71
|
});
|
|
69
72
|
StyledBar.displayName = "StyledBar";
|
|
73
|
+
StyledBar.displayName = 'StyledBar';
|
|
70
74
|
export var StyledBarProgress = styled('div', function (props) {
|
|
71
75
|
var $theme = props.$theme,
|
|
72
76
|
$value = props.$value,
|
|
@@ -144,6 +148,7 @@ export var StyledBarProgress = styled('div', function (props) {
|
|
|
144
148
|
}, $steps > 1 ? stepAnimationStyles : animationStyles);
|
|
145
149
|
});
|
|
146
150
|
StyledBarProgress.displayName = "StyledBarProgress";
|
|
151
|
+
StyledBarProgress.displayName = 'StyledBarProgress';
|
|
147
152
|
export var StyledInfiniteBar = styled('div', function (props) {
|
|
148
153
|
var $theme = props.$theme,
|
|
149
154
|
_props$$isLeft = props.$isLeft,
|
|
@@ -207,6 +212,7 @@ export var StyledInfiniteBar = styled('div', function (props) {
|
|
|
207
212
|
}, animationStyles);
|
|
208
213
|
});
|
|
209
214
|
StyledInfiniteBar.displayName = "StyledInfiniteBar";
|
|
215
|
+
StyledInfiniteBar.displayName = 'StyledInfiniteBar';
|
|
210
216
|
export var StyledLabel = styled('div', function (props) {
|
|
211
217
|
return _objectSpread(_objectSpread({
|
|
212
218
|
textAlign: 'center'
|
|
@@ -215,6 +221,7 @@ export var StyledLabel = styled('div', function (props) {
|
|
|
215
221
|
});
|
|
216
222
|
});
|
|
217
223
|
StyledLabel.displayName = "StyledLabel";
|
|
224
|
+
StyledLabel.displayName = 'StyledLabel';
|
|
218
225
|
var PROGRESS_BAR_ROUNDED_SIZES = (_PROGRESS_BAR_ROUNDED = {}, _defineProperty(_PROGRESS_BAR_ROUNDED, SIZE.large, {
|
|
219
226
|
d: 'M47.5 4H71.5529C82.2933 4 91 12.9543 91 24C91 35.0457 82.2933 44 71.5529 44H23.4471C12.7067 44 4 35.0457 4 24C4 12.9543 12.7067 4 23.4471 4H47.5195',
|
|
220
227
|
width: 95,
|
|
@@ -247,6 +254,7 @@ export var StyledProgressBarRoundedRoot = styled('div', function (_ref) {
|
|
|
247
254
|
};
|
|
248
255
|
});
|
|
249
256
|
StyledProgressBarRoundedRoot.displayName = "StyledProgressBarRoundedRoot";
|
|
257
|
+
StyledProgressBarRoundedRoot.displayName = 'StyledProgressBarRoundedRoot';
|
|
250
258
|
|
|
251
259
|
var _StyledProgressBarRoundedSvg = styled('svg', function (_ref2) {
|
|
252
260
|
var $size = _ref2.$size;
|
|
@@ -259,6 +267,7 @@ var _StyledProgressBarRoundedSvg = styled('svg', function (_ref2) {
|
|
|
259
267
|
});
|
|
260
268
|
|
|
261
269
|
_StyledProgressBarRoundedSvg.displayName = "_StyledProgressBarRoundedSvg";
|
|
270
|
+
_StyledProgressBarRoundedSvg.displayName = '_StyledProgressBarRoundedSvg';
|
|
262
271
|
export var StyledProgressBarRoundedSvg = withWrapper(_StyledProgressBarRoundedSvg, function (Styled) {
|
|
263
272
|
return function StyledProgressBarRoundedSvg(props) {
|
|
264
273
|
return /*#__PURE__*/React.createElement(Styled, _extends({
|
|
@@ -278,6 +287,7 @@ var _StyledProgressBarRoundedTrackBackground = styled('path', function (_ref3) {
|
|
|
278
287
|
});
|
|
279
288
|
|
|
280
289
|
_StyledProgressBarRoundedTrackBackground.displayName = "_StyledProgressBarRoundedTrackBackground";
|
|
290
|
+
_StyledProgressBarRoundedTrackBackground.displayName = '_StyledProgressBarRoundedTrackBackground';
|
|
281
291
|
export var StyledProgressBarRoundedTrackBackground = withWrapper(_StyledProgressBarRoundedTrackBackground, function (Styled) {
|
|
282
292
|
return function StyledProgressBarRoundedSvg(props) {
|
|
283
293
|
return /*#__PURE__*/React.createElement(Styled, _extends({
|
|
@@ -302,6 +312,7 @@ var _StyledProgressBarRoundedTrackForeground = styled('path', function (_ref4) {
|
|
|
302
312
|
});
|
|
303
313
|
|
|
304
314
|
_StyledProgressBarRoundedTrackForeground.displayName = "_StyledProgressBarRoundedTrackForeground";
|
|
315
|
+
_StyledProgressBarRoundedTrackForeground.displayName = '_StyledProgressBarRoundedTrackForeground';
|
|
305
316
|
export var StyledProgressBarRoundedTrackForeground = withWrapper(_StyledProgressBarRoundedTrackForeground, function (Styled) {
|
|
306
317
|
return function StyledProgressBarRoundedSvg(props) {
|
|
307
318
|
return /*#__PURE__*/React.createElement(Styled, _extends({
|
|
@@ -316,4 +327,5 @@ export var StyledProgressBarRoundedText = styled('div', function (_ref5) {
|
|
|
316
327
|
color: $theme.colors.contentPrimary
|
|
317
328
|
}, $theme.typography[PROGRESS_BAR_ROUNDED_SIZES[$size].typography]);
|
|
318
329
|
});
|
|
319
|
-
StyledProgressBarRoundedText.displayName = "StyledProgressBarRoundedText";
|
|
330
|
+
StyledProgressBarRoundedText.displayName = "StyledProgressBarRoundedText";
|
|
331
|
+
StyledProgressBarRoundedText.displayName = 'StyledProgressBarRoundedText';
|
|
@@ -39,7 +39,8 @@ function ProgressSteps(_ref) {
|
|
|
39
39
|
Root = _getOverrides2[0],
|
|
40
40
|
rootProps = _getOverrides2[1];
|
|
41
41
|
|
|
42
|
-
var numChildren = React.Children.count(children);
|
|
42
|
+
var numChildren = React.Children.count(children); // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
43
|
+
|
|
43
44
|
var modifiedChildren = React.Children.map(children, function (child, index) {
|
|
44
45
|
if (!child) return;
|
|
45
46
|
var childOverrides = child.props.overrides || {};
|
|
@@ -24,6 +24,8 @@ export var StyledProgressSteps = styled('ol', function (_ref) {
|
|
|
24
24
|
};
|
|
25
25
|
});
|
|
26
26
|
StyledProgressSteps.displayName = "StyledProgressSteps";
|
|
27
|
+
StyledProgressSteps.displayName = 'StyledProgressSteps'; // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
28
|
+
|
|
27
29
|
export var StyledStep = styled('li', function (_ref2) {
|
|
28
30
|
var $theme = _ref2.$theme;
|
|
29
31
|
return {
|
|
@@ -33,7 +35,9 @@ export var StyledStep = styled('li', function (_ref2) {
|
|
|
33
35
|
};
|
|
34
36
|
});
|
|
35
37
|
StyledStep.displayName = "StyledStep";
|
|
36
|
-
|
|
38
|
+
StyledStep.displayName = 'StyledStep';
|
|
39
|
+
export var StyledIconContainer = styled('div', // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
40
|
+
function (_ref3) {
|
|
37
41
|
var $theme = _ref3.$theme,
|
|
38
42
|
$isActive = _ref3.$isActive,
|
|
39
43
|
$isCompleted = _ref3.$isCompleted,
|
|
@@ -75,11 +79,11 @@ export var StyledIconContainer = styled('div', function (_ref3) {
|
|
|
75
79
|
};
|
|
76
80
|
});
|
|
77
81
|
StyledIconContainer.displayName = "StyledIconContainer";
|
|
82
|
+
StyledIconContainer.displayName = 'StyledIconContainer';
|
|
78
83
|
export var StyledIcon = styled('div', function (_ref5) {
|
|
79
84
|
var $theme = _ref5.$theme,
|
|
80
85
|
$isActive = _ref5.$isActive,
|
|
81
|
-
$isCompleted = _ref5.$isCompleted
|
|
82
|
-
$disabled = _ref5.$disabled;
|
|
86
|
+
$isCompleted = _ref5.$isCompleted;
|
|
83
87
|
var currentColor = $theme.colors.mono400;
|
|
84
88
|
var size = $theme.sizing.scale300;
|
|
85
89
|
|
|
@@ -110,6 +114,7 @@ export var StyledIcon = styled('div', function (_ref5) {
|
|
|
110
114
|
};
|
|
111
115
|
});
|
|
112
116
|
StyledIcon.displayName = "StyledIcon";
|
|
117
|
+
StyledIcon.displayName = 'StyledIcon';
|
|
113
118
|
export var StyledInnerIcon = styled('div', function (_ref6) {
|
|
114
119
|
var $theme = _ref6.$theme;
|
|
115
120
|
return {
|
|
@@ -125,12 +130,14 @@ export var StyledInnerIcon = styled('div', function (_ref6) {
|
|
|
125
130
|
};
|
|
126
131
|
});
|
|
127
132
|
StyledInnerIcon.displayName = "StyledInnerIcon";
|
|
133
|
+
StyledInnerIcon.displayName = 'StyledInnerIcon';
|
|
128
134
|
export var StyledContent = styled('div', function (_ref7) {
|
|
129
135
|
var $theme = _ref7.$theme;
|
|
130
136
|
var marginDir = $theme.direction === 'rtl' ? 'marginRight' : 'marginLeft';
|
|
131
137
|
return _defineProperty({}, marginDir, $theme.sizing.scale1600);
|
|
132
138
|
});
|
|
133
139
|
StyledContent.displayName = "StyledContent";
|
|
140
|
+
StyledContent.displayName = 'StyledContent';
|
|
134
141
|
export var StyledContentTitle = styled('div', function (_ref9) {
|
|
135
142
|
var $theme = _ref9.$theme,
|
|
136
143
|
$isActive = _ref9.$isActive,
|
|
@@ -151,6 +158,7 @@ export var StyledContentTitle = styled('div', function (_ref9) {
|
|
|
151
158
|
});
|
|
152
159
|
});
|
|
153
160
|
StyledContentTitle.displayName = "StyledContentTitle";
|
|
161
|
+
StyledContentTitle.displayName = 'StyledContentTitle';
|
|
154
162
|
export var StyledContentTail = styled('div', function (_ref10) {
|
|
155
163
|
var _ref11;
|
|
156
164
|
|
|
@@ -176,6 +184,7 @@ export var StyledContentTail = styled('div', function (_ref10) {
|
|
|
176
184
|
}, _defineProperty(_ref11, dir, '31px'), _defineProperty(_ref11, "top", 0), _defineProperty(_ref11, "height", "calc(100% + ".concat($theme.sizing.scale500, ")")), _defineProperty(_ref11, "marginBottom", 0), _defineProperty(_ref11, "width", $theme.sizing.scale0), _defineProperty(_ref11, "marginTop", "calc(".concat(titlePad, " + (").concat(font.lineHeight, " + ").concat(size, ") / 2)")), _defineProperty(_ref11, "display", 'inline-block'), _defineProperty(_ref11, "backgroundColor", currentColor), _ref11;
|
|
177
185
|
});
|
|
178
186
|
StyledContentTail.displayName = "StyledContentTail";
|
|
187
|
+
StyledContentTail.displayName = 'StyledContentTail';
|
|
179
188
|
export var StyledContentDescription = styled('div', function (_ref12) {
|
|
180
189
|
var $theme = _ref12.$theme;
|
|
181
190
|
return {
|
|
@@ -183,8 +192,8 @@ export var StyledContentDescription = styled('div', function (_ref12) {
|
|
|
183
192
|
};
|
|
184
193
|
});
|
|
185
194
|
StyledContentDescription.displayName = "StyledContentDescription";
|
|
186
|
-
|
|
187
|
-
|
|
195
|
+
StyledContentDescription.displayName = 'StyledContentDescription';
|
|
196
|
+
export var StyledNumberStep = styled('li', function () {
|
|
188
197
|
return {
|
|
189
198
|
listStyleType: 'none',
|
|
190
199
|
position: 'relative',
|
|
@@ -192,11 +201,11 @@ export var StyledNumberStep = styled('li', function (_ref13) {
|
|
|
192
201
|
};
|
|
193
202
|
});
|
|
194
203
|
StyledNumberStep.displayName = "StyledNumberStep";
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
$
|
|
199
|
-
$
|
|
204
|
+
StyledNumberStep.displayName = 'StyledNumberStep';
|
|
205
|
+
export var StyledNumberIcon = styled('div', function (_ref13) {
|
|
206
|
+
var $theme = _ref13.$theme,
|
|
207
|
+
$isActive = _ref13.$isActive,
|
|
208
|
+
$isCompleted = _ref13.$isCompleted;
|
|
200
209
|
var backgroundColor = $theme.colors.mono400;
|
|
201
210
|
var color = $theme.colors.contentStateDisabled;
|
|
202
211
|
var size = $theme.sizing.scale950;
|
|
@@ -235,13 +244,12 @@ export var StyledNumberIcon = styled('div', function (_ref14) {
|
|
|
235
244
|
}, font);
|
|
236
245
|
});
|
|
237
246
|
StyledNumberIcon.displayName = "StyledNumberIcon";
|
|
238
|
-
|
|
239
|
-
|
|
247
|
+
StyledNumberIcon.displayName = 'StyledNumberIcon';
|
|
248
|
+
export var StyledNumberContentTail = styled('div', function (_ref14) {
|
|
249
|
+
var _ref15;
|
|
240
250
|
|
|
241
|
-
var $theme =
|
|
242
|
-
$
|
|
243
|
-
$isCompleted = _ref15.$isCompleted,
|
|
244
|
-
$disabled = _ref15.$disabled;
|
|
251
|
+
var $theme = _ref14.$theme,
|
|
252
|
+
$isCompleted = _ref14.$isCompleted;
|
|
245
253
|
var currentColor = $theme.colors.mono300;
|
|
246
254
|
var size = $theme.sizing.scale950;
|
|
247
255
|
var titleFont = $theme.typography.LabelMedium;
|
|
@@ -253,8 +261,9 @@ export var StyledNumberContentTail = styled('div', function (_ref15) {
|
|
|
253
261
|
|
|
254
262
|
var marginTop = "calc(".concat(titlePad, " + ").concat(size, " + (").concat(titleFont.lineHeight, " - ").concat(size, ") / 2)");
|
|
255
263
|
var dir = $theme.direction === 'rtl' ? 'right' : 'left';
|
|
256
|
-
return
|
|
264
|
+
return _ref15 = {
|
|
257
265
|
position: 'absolute'
|
|
258
|
-
}, _defineProperty(
|
|
266
|
+
}, _defineProperty(_ref15, dir, '31px'), _defineProperty(_ref15, "top", 0), _defineProperty(_ref15, "height", "calc(100% - ".concat($theme.sizing.scale500, ")")), _defineProperty(_ref15, "paddingBottom", 0), _defineProperty(_ref15, "marginTop", marginTop), _defineProperty(_ref15, "width", $theme.sizing.scale0), _defineProperty(_ref15, "backgroundColor", currentColor), _defineProperty(_ref15, "display", 'inline-block'), _ref15;
|
|
259
267
|
});
|
|
260
|
-
StyledNumberContentTail.displayName = "StyledNumberContentTail";
|
|
268
|
+
StyledNumberContentTail.displayName = "StyledNumberContentTail";
|
|
269
|
+
StyledNumberContentTail.displayName = 'StyledNumberContentTail';
|
|
@@ -148,6 +148,7 @@ export var RadioGroupRoot = styled('div', function (props) {
|
|
|
148
148
|
};
|
|
149
149
|
});
|
|
150
150
|
RadioGroupRoot.displayName = "RadioGroupRoot";
|
|
151
|
+
RadioGroupRoot.displayName = 'RadioGroupRoot';
|
|
151
152
|
export var Root = styled('label', function (props) {
|
|
152
153
|
var _ref2;
|
|
153
154
|
|
|
@@ -168,6 +169,7 @@ export var Root = styled('label', function (props) {
|
|
|
168
169
|
}, _defineProperty(_ref2, "margin".concat(marginAfter), isHorizontal ? sizing.scale200 : null), _defineProperty(_ref2, "marginBottom", $hasDescription && !isHorizontal ? null : sizing.scale200), _ref2;
|
|
169
170
|
});
|
|
170
171
|
Root.displayName = "Root";
|
|
172
|
+
Root.displayName = 'Root';
|
|
171
173
|
export var RadioMarkInner = styled('div', function (props) {
|
|
172
174
|
var _props$$theme = props.$theme,
|
|
173
175
|
animation = _props$$theme.animation,
|
|
@@ -185,6 +187,7 @@ export var RadioMarkInner = styled('div', function (props) {
|
|
|
185
187
|
};
|
|
186
188
|
});
|
|
187
189
|
RadioMarkInner.displayName = "RadioMarkInner";
|
|
190
|
+
RadioMarkInner.displayName = 'RadioMarkInner';
|
|
188
191
|
export var RadioMarkOuter = styled('div', function (props) {
|
|
189
192
|
var _props$$theme2 = props.$theme,
|
|
190
193
|
animation = _props$$theme2.animation,
|
|
@@ -213,6 +216,7 @@ export var RadioMarkOuter = styled('div', function (props) {
|
|
|
213
216
|
};
|
|
214
217
|
});
|
|
215
218
|
RadioMarkOuter.displayName = "RadioMarkOuter";
|
|
219
|
+
RadioMarkOuter.displayName = 'RadioMarkOuter';
|
|
216
220
|
export var Label = styled('div', function (props) {
|
|
217
221
|
var typography = props.$theme.typography;
|
|
218
222
|
return _objectSpread(_objectSpread({
|
|
@@ -220,9 +224,10 @@ export var Label = styled('div', function (props) {
|
|
|
220
224
|
}, getLabelPadding(props)), {}, {
|
|
221
225
|
color: getLabelColor(props)
|
|
222
226
|
}, typography.LabelMedium);
|
|
223
|
-
});
|
|
224
|
-
|
|
227
|
+
});
|
|
225
228
|
Label.displayName = "Label";
|
|
229
|
+
Label.displayName = 'Label'; // tricky style for focus event cause display: none doesn't work
|
|
230
|
+
|
|
226
231
|
export var Input = styled('input', {
|
|
227
232
|
width: 0,
|
|
228
233
|
height: 0,
|
|
@@ -238,6 +243,7 @@ export var Input = styled('input', {
|
|
|
238
243
|
position: 'absolute'
|
|
239
244
|
});
|
|
240
245
|
Input.displayName = "Input";
|
|
246
|
+
Input.displayName = 'Input';
|
|
241
247
|
export var Description = styled('div', function (props) {
|
|
242
248
|
var _objectSpread2;
|
|
243
249
|
|
|
@@ -251,4 +257,5 @@ export var Description = styled('div', function (props) {
|
|
|
251
257
|
cursor: 'auto'
|
|
252
258
|
}, _defineProperty(_objectSpread2, "margin".concat(marginBefore), $align === 'horizontal' ? null : $theme.sizing.scale900), _defineProperty(_objectSpread2, "margin".concat(marginAfter), isHorizontal ? $theme.sizing.scale200 : null), _defineProperty(_objectSpread2, "maxWidth", '240px'), _objectSpread2));
|
|
253
259
|
});
|
|
254
|
-
Description.displayName = "Description";
|
|
260
|
+
Description.displayName = "Description";
|
|
261
|
+
Description.displayName = 'Description';
|
|
@@ -130,7 +130,8 @@ var EmoticonRating = /*#__PURE__*/function (_React$Component) {
|
|
|
130
130
|
refs.push(starRef);
|
|
131
131
|
ratings.push( /*#__PURE__*/React.createElement(Emoticon, _extends({
|
|
132
132
|
key: x,
|
|
133
|
-
role: "radio"
|
|
133
|
+
role: "radio" // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
134
|
+
,
|
|
134
135
|
ref: starRef,
|
|
135
136
|
tabIndex: isFocusable ? '0' : '-1',
|
|
136
137
|
"aria-setsize": 5,
|
|
@@ -132,7 +132,8 @@ var StarRating = /*#__PURE__*/function (_React$Component) {
|
|
|
132
132
|
ratings.push( /*#__PURE__*/React.createElement(Star, _extends({
|
|
133
133
|
key: x,
|
|
134
134
|
role: "radio",
|
|
135
|
-
title: "rating"
|
|
135
|
+
title: "rating" // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
136
|
+
,
|
|
136
137
|
ref: starRef,
|
|
137
138
|
tabIndex: isFocusable ? '0' : '-1',
|
|
138
139
|
"aria-setsize": numItems,
|
|
@@ -6,6 +6,7 @@ LICENSE file in the root directory of this source tree.
|
|
|
6
6
|
*/
|
|
7
7
|
import { styled } from '../styles';
|
|
8
8
|
import { starSVG, angryRatingSVG, sadRatingSVG, neutralRatingSVG, happyRatingSVG, veryHappyRatingSVG } from './svg-icons';
|
|
9
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
9
10
|
export var StyledRoot = styled('ul', function (_ref) {
|
|
10
11
|
var $theme = _ref.$theme;
|
|
11
12
|
return {
|
|
@@ -24,6 +25,7 @@ export var StyledRoot = styled('ul', function (_ref) {
|
|
|
24
25
|
};
|
|
25
26
|
});
|
|
26
27
|
StyledRoot.displayName = "StyledRoot";
|
|
28
|
+
StyledRoot.displayName = 'StyledRoot';
|
|
27
29
|
export var StyledStar = styled('li', function (_ref2) {
|
|
28
30
|
var $theme = _ref2.$theme,
|
|
29
31
|
$isActive = _ref2.$isActive,
|
|
@@ -87,6 +89,7 @@ export var StyledStar = styled('li', function (_ref2) {
|
|
|
87
89
|
return styles;
|
|
88
90
|
});
|
|
89
91
|
StyledStar.displayName = "StyledStar";
|
|
92
|
+
StyledStar.displayName = 'StyledStar';
|
|
90
93
|
export var StyledEmoticon = styled('li', function (_ref3) {
|
|
91
94
|
var $theme = _ref3.$theme,
|
|
92
95
|
$isActive = _ref3.$isActive,
|
|
@@ -127,4 +130,5 @@ export var StyledEmoticon = styled('li', function (_ref3) {
|
|
|
127
130
|
};
|
|
128
131
|
return styles;
|
|
129
132
|
});
|
|
130
|
-
StyledEmoticon.displayName = "StyledEmoticon";
|
|
133
|
+
StyledEmoticon.displayName = "StyledEmoticon";
|
|
134
|
+
StyledEmoticon.displayName = 'StyledEmoticon';
|
|
@@ -52,8 +52,6 @@ Copyright (c) Uber Technologies, Inc.
|
|
|
52
52
|
This source code is licensed under the MIT license found in the
|
|
53
53
|
LICENSE file in the root directory of this source tree.
|
|
54
54
|
*/
|
|
55
|
-
|
|
56
|
-
/* eslint-disable cup/no-undef */
|
|
57
55
|
import * as React from 'react';
|
|
58
56
|
import { StyledInput, StyledInputSizer } from './styled-components';
|
|
59
57
|
import { getOverrides } from '../helpers/overrides';
|
|
@@ -94,7 +92,8 @@ var AutosizeInput = /*#__PURE__*/function (_React$Component) {
|
|
|
94
92
|
value: function componentDidMount() {
|
|
95
93
|
this.mounted = true;
|
|
96
94
|
this.updateInputWidth();
|
|
97
|
-
}
|
|
95
|
+
} // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
96
|
+
|
|
98
97
|
}, {
|
|
99
98
|
key: "componentDidUpdate",
|
|
100
99
|
value: function componentDidUpdate(prevProps, prevState) {
|
package/esm/select/dropdown.js
CHANGED
|
@@ -26,7 +26,8 @@ LICENSE file in the root directory of this source tree.
|
|
|
26
26
|
*/
|
|
27
27
|
import * as React from 'react';
|
|
28
28
|
import { getOverrides } from '../helpers/overrides';
|
|
29
|
-
import { Tag, VARIANT as TAG_VARIANT } from '../tag';
|
|
29
|
+
import { Tag, VARIANT as TAG_VARIANT } from '../tag'; // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
30
|
+
|
|
30
31
|
export default function MultiValue(props) {
|
|
31
32
|
var _props$overrides = props.overrides,
|
|
32
33
|
overrides = _props$overrides === void 0 ? {} : _props$overrides,
|
|
@@ -57,15 +57,13 @@ Copyright (c) Uber Technologies, Inc.
|
|
|
57
57
|
This source code is licensed under the MIT license found in the
|
|
58
58
|
LICENSE file in the root directory of this source tree.
|
|
59
59
|
*/
|
|
60
|
-
|
|
61
|
-
/* eslint-disable cup/no-undef */
|
|
62
60
|
import * as React from 'react';
|
|
63
61
|
import { getOverrides, mergeOverrides } from '../helpers/overrides';
|
|
64
62
|
import DeleteAlt from '../icon/delete-alt';
|
|
65
63
|
import TriangleDownIcon from '../icon/triangle-down';
|
|
66
64
|
import SearchIconComponent from '../icon/search';
|
|
67
65
|
import { LocaleContext } from '../locale';
|
|
68
|
-
import { Popover, PLACEMENT } from '../popover';
|
|
66
|
+
import { Popover, PLACEMENT, ACCESSIBILITY_TYPE } from '../popover';
|
|
69
67
|
import { UIDConsumer } from 'react-uid';
|
|
70
68
|
import AutosizeInput from './autosize-input';
|
|
71
69
|
import { TYPE, STATE_CHANGE_TYPE, SIZE } from './constants';
|
|
@@ -88,6 +86,7 @@ var isLeftClick = function isLeftClick(event) {
|
|
|
88
86
|
|
|
89
87
|
var containsNode = function containsNode(parent, child) {
|
|
90
88
|
if (typeof document !== 'undefined') {
|
|
89
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
91
90
|
return child && parent && parent.contains(child);
|
|
92
91
|
}
|
|
93
92
|
};
|
|
@@ -819,7 +818,7 @@ var Select = /*#__PURE__*/function (_React$Component) {
|
|
|
819
818
|
}
|
|
820
819
|
}, {
|
|
821
820
|
key: "renderValue",
|
|
822
|
-
value: function renderValue(valueArray
|
|
821
|
+
value: function renderValue(valueArray) {
|
|
823
822
|
var _this4 = this;
|
|
824
823
|
|
|
825
824
|
var _this$props$overrides2 = this.props.overrides,
|
|
@@ -888,13 +887,10 @@ var Select = /*#__PURE__*/function (_React$Component) {
|
|
|
888
887
|
|
|
889
888
|
if (!this.props.searchable) {
|
|
890
889
|
return /*#__PURE__*/React.createElement(InputContainer, _extends({
|
|
891
|
-
role: "listbox",
|
|
892
890
|
"aria-activedescendant": this.state.activeDescendant,
|
|
893
|
-
"aria-expanded": isOpen,
|
|
894
891
|
"aria-describedby": this.props['aria-describedby'],
|
|
895
892
|
"aria-errormessage": this.props['aria-errormessage'],
|
|
896
893
|
"aria-disabled": this.props.disabled,
|
|
897
|
-
"aria-label": label,
|
|
898
894
|
"aria-labelledby": this.props['aria-labelledby'],
|
|
899
895
|
"aria-owns": this.state.isOpen ? listboxId : null,
|
|
900
896
|
"aria-required": this.props.required || null,
|
|
@@ -951,7 +947,8 @@ var Select = /*#__PURE__*/function (_React$Component) {
|
|
|
951
947
|
|
|
952
948
|
if (!this.props.clearable || this.props.disabled || this.props.isLoading || !isValueEntered) {
|
|
953
949
|
return;
|
|
954
|
-
}
|
|
950
|
+
} // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
951
|
+
|
|
955
952
|
|
|
956
953
|
var _this$getSharedProps = this.getSharedProps(),
|
|
957
954
|
$size = _this$getSharedProps.$size,
|
|
@@ -982,7 +979,8 @@ var Select = /*#__PURE__*/function (_React$Component) {
|
|
|
982
979
|
|
|
983
980
|
if (this.props.type !== TYPE.select) {
|
|
984
981
|
return null;
|
|
985
|
-
}
|
|
982
|
+
} // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
983
|
+
|
|
986
984
|
|
|
987
985
|
var _this$getSharedProps2 = this.getSharedProps(),
|
|
988
986
|
$size = _this$getSharedProps2.$size,
|
|
@@ -1180,11 +1178,13 @@ var Select = /*#__PURE__*/function (_React$Component) {
|
|
|
1180
1178
|
// apply the ref to the Root component below it would be overwritten before the popover
|
|
1181
1179
|
// renders it. Using this strategy, we will get a ref to the popover, then reuse its
|
|
1182
1180
|
// anchorRef so we can check if clicks are on the select component or not.
|
|
1181
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1183
1182
|
, _extends({
|
|
1184
1183
|
innerRef: function innerRef(ref) {
|
|
1185
1184
|
if (!ref) return;
|
|
1186
1185
|
_this7.anchor = ref.anchorRef;
|
|
1187
1186
|
},
|
|
1187
|
+
accessibilityType: ACCESSIBILITY_TYPE.none,
|
|
1188
1188
|
autoFocus: false,
|
|
1189
1189
|
focusLock: false,
|
|
1190
1190
|
mountNode: _this7.props.mountNode,
|
|
@@ -1231,7 +1231,7 @@ var Select = /*#__PURE__*/function (_React$Component) {
|
|
|
1231
1231
|
onTouchEnd: _this7.handleTouchEnd,
|
|
1232
1232
|
onTouchMove: _this7.handleTouchMove,
|
|
1233
1233
|
onTouchStart: _this7.handleTouchStart
|
|
1234
|
-
}, sharedProps, controlContainerProps), type === TYPE.search ? _this7.renderSearch() : null, /*#__PURE__*/React.createElement(ValueContainer, _extends({}, sharedProps, valueContainerProps), _this7.renderValue(valueArray
|
|
1234
|
+
}, sharedProps, controlContainerProps), type === TYPE.search ? _this7.renderSearch() : null, /*#__PURE__*/React.createElement(ValueContainer, _extends({}, sharedProps, valueContainerProps), _this7.renderValue(valueArray), _this7.renderInput(listboxId), _this7.shouldShowPlaceholder() ? /*#__PURE__*/React.createElement(Placeholder, _extends({}, sharedProps, placeholderProps), typeof _this7.props.placeholder !== 'undefined' ? _this7.props.placeholder : locale.select.placeholder) : null), /*#__PURE__*/React.createElement(IconsContainer, _extends({}, sharedProps, iconsContainerProps), _this7.renderLoading(), _this7.renderClear(), type === TYPE.select ? _this7.renderArrow() : null))));
|
|
1235
1235
|
});
|
|
1236
1236
|
});
|
|
1237
1237
|
}
|
|
@@ -10,11 +10,11 @@ import * as React from 'react';
|
|
|
10
10
|
import SelectComponent from './select-component';
|
|
11
11
|
import Value from './value';
|
|
12
12
|
|
|
13
|
-
function
|
|
13
|
+
function SingleSelect(props) {
|
|
14
14
|
return /*#__PURE__*/React.createElement(SelectComponent, _extends({}, props, {
|
|
15
15
|
multi: false,
|
|
16
16
|
valueComponent: Value
|
|
17
17
|
}));
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
export default
|
|
20
|
+
export default SingleSelect;
|