baseui 0.0.0-alpha-3479e57 → 0.0.0-alpha-e79754d
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 +2 -4
- package/accordion/accordion.js.flow +1 -1
- package/accordion/panel.js +2 -3
- package/accordion/stateful-panel-container.js +0 -1
- package/accordion/styled-components.js +1 -8
- package/app-nav-bar/app-nav-bar.js +2 -4
- package/app-nav-bar/mobile-menu.js +1 -2
- package/app-nav-bar/styled-components.js +1 -19
- package/app-nav-bar/user-menu.js +1 -1
- package/aspect-ratio-box/aspect-ratio-box.js +1 -3
- package/avatar/styled-components.js +1 -4
- package/badge/styled-components.js +7 -12
- package/banner/styled-components.js +11 -21
- package/banner/types.d.ts +11 -12
- package/banner/types.js.flow +11 -13
- package/block/block.js +1 -3
- package/block/styled-components.js +1 -2
- package/breadcrumbs/styled-components.js +1 -5
- package/button/styled-components.js +0 -5
- package/button-group/stateful-button-group.js +0 -1
- package/button-group/stateful-container.js +1 -3
- package/button-group/styled-components.js +1 -2
- package/card/images.d.ts +1 -1
- package/card/styled-components.js +4 -11
- package/checkbox/styled-components.js +3 -9
- package/combobox/combobox.js +71 -78
- package/combobox/styled-components.js +1 -5
- package/data-table/column-anchor.js +0 -3
- package/data-table/column-datetime.js +4 -10
- package/data-table/column-numerical.js +4 -4
- package/data-table/column-string.js +0 -3
- package/data-table/column.js +1 -6
- package/data-table/data-table.js +6 -7
- package/data-table/filter-menu.js +1 -2
- package/data-table/header-cell.js +34 -43
- package/data-table/locale.d.ts +0 -4
- package/data-table/locale.js +1 -3
- package/data-table/locale.js.flow +0 -5
- package/data-table/measure-column-widths.js +1 -2
- package/data-table/stateful-container.js +1 -2
- package/data-table/stateful-data-table.js +4 -4
- package/datepicker/calendar-header.js +0 -1
- package/datepicker/calendar.js +0 -2
- package/datepicker/datepicker.js +0 -2
- package/datepicker/day.js +1 -2
- package/datepicker/stateful-calendar.js +3 -7
- package/datepicker/stateful-container.js +0 -2
- package/datepicker/stateful-datepicker.js +4 -9
- package/datepicker/styled-components.js +4 -27
- package/datepicker/utils/date-helpers.js +1 -2
- package/datepicker/utils/index.js +1 -2
- package/divider/styled-components.js +3 -4
- package/dnd-list/stateful-list-container.js +0 -1
- package/dnd-list/styled-components.js +0 -7
- package/drawer/constants.js +0 -1
- package/drawer/drawer.js +3 -2
- package/drawer/drawer.js.flow +3 -1
- package/drawer/styled-components.js +2 -9
- package/es/accordion/accordion.js +3 -3
- package/es/accordion/panel.js +2 -3
- package/es/accordion/stateful-panel-container.js +0 -1
- package/es/accordion/styled-components.js +1 -8
- package/es/app-nav-bar/app-nav-bar.js +2 -6
- package/es/app-nav-bar/mobile-menu.js +2 -4
- package/es/app-nav-bar/styled-components.js +1 -19
- package/es/app-nav-bar/user-menu.js +1 -1
- package/es/aspect-ratio-box/aspect-ratio-box.js +1 -3
- package/es/avatar/styled-components.js +1 -4
- package/es/badge/styled-components.js +2 -7
- package/es/banner/styled-components.js +2 -12
- package/es/block/block.js +1 -3
- package/es/block/styled-components.js +1 -2
- package/es/breadcrumbs/styled-components.js +1 -5
- package/es/button/button.js +0 -8
- package/es/button/styled-components.js +0 -5
- package/es/button-group/stateful-button-group.js +0 -1
- package/es/button-group/stateful-container.js +1 -3
- package/es/button-group/styled-components.js +1 -2
- package/es/card/index.js +1 -2
- package/es/card/styled-components.js +4 -12
- package/es/checkbox/index.js +0 -1
- package/es/checkbox/stateful-checkbox-container.js +0 -3
- package/es/checkbox/styled-components.js +3 -9
- package/es/combobox/combobox.js +69 -76
- package/es/combobox/styled-components.js +1 -5
- package/es/data-table/column-anchor.js +0 -3
- package/es/data-table/column-datetime.js +5 -12
- package/es/data-table/column-numerical.js +4 -5
- package/es/data-table/column-string.js +0 -3
- package/es/data-table/column.js +1 -4
- package/es/data-table/data-table.js +6 -7
- package/es/data-table/filter-menu.js +1 -2
- package/es/data-table/header-cell.js +34 -41
- package/es/data-table/locale.js +1 -3
- package/es/data-table/measure-column-widths.js +1 -2
- package/es/data-table/stateful-container.js +1 -2
- package/es/data-table/stateful-data-table.js +4 -4
- package/es/datepicker/calendar-header.js +0 -1
- package/es/datepicker/calendar.js +0 -2
- package/es/datepicker/datepicker.js +1 -3
- package/es/datepicker/day.js +1 -2
- package/es/datepicker/stateful-calendar.js +1 -4
- package/es/datepicker/stateful-container.js +0 -2
- package/es/datepicker/stateful-datepicker.js +1 -5
- package/es/datepicker/styled-components.js +3 -26
- package/es/datepicker/utils/date-helpers.js +1 -2
- package/es/datepicker/utils/index.js +1 -2
- package/es/divider/styled-components.js +2 -3
- package/es/dnd-list/stateful-list-container.js +0 -1
- package/es/dnd-list/styled-components.js +0 -7
- package/es/drawer/constants.js +0 -1
- package/es/drawer/drawer.js +5 -2
- package/es/drawer/styled-components.js +2 -9
- package/es/file-uploader/styled-components.js +1 -6
- package/es/flex-grid/flex-grid-item.js +6 -5
- package/es/flex-grid/flex-grid.js +1 -4
- package/es/form-control/styled-components.js +1 -6
- package/es/header-navigation/styled-components.js +1 -4
- package/es/helper/styled-components.js +1 -3
- package/es/helpers/overrides.js +5 -9
- package/es/icon/build-icons.js +2 -0
- package/es/icon/omit-dollar-prefixed-keys.js +0 -1
- package/es/icon/styled-components.js +1 -2
- package/es/input/base-input.js +0 -1
- package/es/input/masked-input.js +2 -9
- package/es/input/stateful-container.js +0 -1
- package/es/input/styled-components.js +5 -10
- package/es/layer/layer.js +0 -24
- package/es/layer/layers-manager.js +1 -91
- package/es/layout-grid/styled-components.js +0 -3
- package/es/link/index.js +1 -2
- package/es/link/styled-components.js +1 -2
- package/es/list/list-heading.js +17 -21
- package/es/list/list-item.js +1 -2
- package/es/list/styled-components.js +1 -15
- package/es/locale/es_AR.js +1 -3
- package/es/locale/index.js +1 -2
- package/es/locale/tr_TR.js +1 -3
- package/es/map-marker/constants.js +0 -14
- package/es/map-marker/fixed-marker.js +0 -1
- package/es/map-marker/index.js +1 -2
- package/es/map-marker/pin-head.js +0 -1
- package/es/map-marker/styled-components.js +2 -86
- package/es/menu/menu.js +3 -7
- package/es/menu/option-profile.js +0 -1
- package/es/menu/stateful-container.js +0 -10
- package/es/menu/styled-components.js +2 -15
- package/es/modal/modal.js +6 -4
- package/es/modal/styled-components.js +1 -8
- package/es/pagination/stateful-container.js +0 -1
- package/es/pagination/stateful-pagination.js +0 -1
- package/es/pagination/styled-components.js +1 -4
- package/es/payment-card/styled-components.js +1 -2
- package/es/phone-input/base-country-picker.js +1 -3
- package/es/phone-input/country-select-dropdown.js +0 -1
- package/es/phone-input/styled-components.js +4 -15
- package/es/pin-code/styled-components.js +1 -4
- package/es/popover/popover.js +12 -9
- package/es/popover/styled-components.js +4 -9
- package/es/progress-bar/progressbar-rounded.js +0 -1
- package/es/progress-bar/styled-components.js +2 -14
- package/es/progress-steps/progress-steps.js +1 -2
- package/es/progress-steps/styled-components.js +12 -20
- package/es/radio/stateful-radiogroup-container.js +0 -3
- package/es/radio/styled-components.js +3 -10
- package/es/rating/emoticon-rating.js +1 -2
- package/es/rating/star-rating.js +1 -2
- package/es/rating/styled-components.js +1 -5
- package/es/select/autosize-input.js +3 -2
- package/es/select/dropdown.js +1 -2
- package/es/select/multi-value.js +1 -2
- package/es/select/select-component.js +10 -10
- package/es/select/single-select.js +2 -2
- package/es/select/stateful-select-container.js +0 -2
- package/es/select/styled-components.js +1 -16
- package/es/select/value.js +4 -3
- package/es/side-navigation/index.js +1 -2
- package/es/side-navigation/nav-item.js +0 -1
- package/es/side-navigation/nav.js +1 -1
- package/es/side-navigation/stateful-container.js +0 -1
- package/es/side-navigation/styled-components.js +2 -8
- package/es/skeleton/styled-components.js +1 -3
- package/es/slider/slider.js +2 -4
- package/es/slider/stateful-slider-container.js +0 -2
- package/es/slider/styled-components.js +0 -9
- package/es/snackbar/snackbar-element.js +0 -1
- package/es/snackbar/styled-components.js +1 -9
- package/es/spinner/styled-components.js +1 -2
- package/es/styles/__mocks__/styled.js +5 -8
- package/es/styles/styled.js +6 -7
- package/es/table/index.js +1 -2
- package/es/table/styled-components.js +1 -13
- package/es/table-grid/styled-components.js +1 -4
- package/es/table-semantic/styled-components.js +2 -20
- package/es/tabs/stateful-tabs.js +0 -1
- package/es/tabs/styled-components.js +1 -5
- package/es/tabs/tabs.js +2 -4
- package/es/tabs-motion/styled-components.js +1 -9
- package/es/tabs-motion/tab.js +0 -1
- package/es/tabs-motion/tabs.js +1 -2
- package/es/tag/styled-components.js +1 -32
- package/es/tag/tag.js +2 -6
- package/es/textarea/styled-components.js +1 -4
- package/es/themes/shared/typography.js +10 -10
- package/es/toast/styled-components.js +1 -5
- package/es/toast/toaster.js +2 -0
- package/es/tokens/colors.js +0 -24
- package/es/tooltip/styled-components.js +1 -4
- package/es/tree-view/index.js +1 -2
- package/es/tree-view/styled-components.js +1 -7
- package/es/tree-view/tree-view.js +1 -3
- package/es/types/globals.d.js +0 -12
- package/es/utils/deep-merge.js +5 -0
- package/es/utils/deprecated-component.js +0 -1
- package/es/utils/focusVisible.js +2 -4
- package/esm/accordion/accordion.js +4 -4
- package/esm/accordion/panel.js +2 -3
- package/esm/accordion/stateful-panel-container.js +0 -1
- package/esm/accordion/styled-components.js +1 -8
- package/esm/app-nav-bar/app-nav-bar.js +2 -4
- package/esm/app-nav-bar/mobile-menu.js +2 -4
- package/esm/app-nav-bar/styled-components.js +1 -19
- package/esm/app-nav-bar/user-menu.js +1 -1
- package/esm/aspect-ratio-box/aspect-ratio-box.js +1 -3
- package/esm/avatar/styled-components.js +1 -4
- package/esm/badge/styled-components.js +2 -7
- package/esm/banner/styled-components.js +2 -12
- package/esm/block/block.js +1 -3
- package/esm/block/styled-components.js +1 -2
- package/esm/breadcrumbs/styled-components.js +1 -5
- package/esm/button/styled-components.js +0 -5
- package/esm/button-group/stateful-button-group.js +0 -1
- package/esm/button-group/stateful-container.js +1 -3
- package/esm/button-group/styled-components.js +1 -2
- package/esm/card/index.js +1 -2
- package/esm/card/styled-components.js +4 -12
- package/esm/checkbox/index.js +0 -1
- package/esm/checkbox/styled-components.js +3 -9
- package/esm/combobox/combobox.js +71 -78
- package/esm/combobox/styled-components.js +1 -5
- package/esm/data-table/column-anchor.js +0 -3
- package/esm/data-table/column-datetime.js +5 -12
- package/esm/data-table/column-numerical.js +4 -4
- package/esm/data-table/column-string.js +0 -3
- package/esm/data-table/column.js +1 -5
- package/esm/data-table/data-table.js +6 -7
- package/esm/data-table/filter-menu.js +1 -2
- package/esm/data-table/header-cell.js +34 -42
- package/esm/data-table/locale.js +1 -3
- package/esm/data-table/measure-column-widths.js +1 -2
- package/esm/data-table/stateful-container.js +1 -2
- package/esm/data-table/stateful-data-table.js +4 -4
- package/esm/datepicker/calendar-header.js +0 -1
- package/esm/datepicker/calendar.js +0 -2
- package/esm/datepicker/datepicker.js +1 -3
- package/esm/datepicker/day.js +1 -2
- package/esm/datepicker/stateful-calendar.js +3 -7
- package/esm/datepicker/stateful-container.js +0 -2
- package/esm/datepicker/stateful-datepicker.js +4 -9
- package/esm/datepicker/styled-components.js +3 -26
- package/esm/datepicker/utils/date-helpers.js +1 -2
- package/esm/datepicker/utils/index.js +1 -2
- package/esm/divider/styled-components.js +2 -3
- package/esm/dnd-list/stateful-list-container.js +0 -1
- package/esm/dnd-list/styled-components.js +0 -7
- package/esm/drawer/constants.js +0 -1
- package/esm/drawer/drawer.js +5 -2
- package/esm/drawer/styled-components.js +2 -9
- package/esm/file-uploader/styled-components.js +1 -6
- package/esm/flex-grid/flex-grid-item.js +5 -4
- package/esm/flex-grid/flex-grid.js +3 -7
- package/esm/form-control/styled-components.js +1 -6
- package/esm/header-navigation/styled-components.js +1 -4
- package/esm/helper/styled-components.js +1 -3
- package/esm/helpers/overrides.js +5 -9
- package/esm/icon/build-icons.js +2 -0
- package/esm/icon/omit-dollar-prefixed-keys.js +0 -1
- package/esm/icon/styled-components.js +1 -2
- package/esm/input/base-input.js +0 -1
- package/esm/input/masked-input.js +2 -5
- package/esm/input/stateful-container.js +0 -1
- package/esm/input/styled-components.js +5 -10
- package/esm/layer/layer.js +0 -24
- package/esm/layer/layers-manager.js +1 -97
- package/esm/layout-grid/styled-components.js +0 -3
- package/esm/link/index.js +1 -2
- package/esm/link/styled-components.js +1 -2
- package/esm/list/list-heading.js +17 -21
- package/esm/list/list-item.js +1 -2
- package/esm/list/styled-components.js +1 -15
- package/esm/locale/es_AR.js +1 -3
- package/esm/locale/index.js +1 -4
- package/esm/locale/tr_TR.js +1 -3
- package/esm/map-marker/constants.js +2 -12
- package/esm/map-marker/index.js +1 -2
- package/esm/map-marker/styled-components.js +2 -82
- package/esm/menu/menu.js +3 -6
- package/esm/menu/option-profile.js +0 -1
- package/esm/menu/stateful-container.js +0 -1
- package/esm/menu/styled-components.js +6 -20
- package/esm/modal/modal.js +6 -4
- package/esm/modal/styled-components.js +1 -8
- package/esm/pagination/stateful-container.js +0 -1
- package/esm/pagination/stateful-pagination.js +0 -1
- package/esm/pagination/styled-components.js +1 -4
- package/esm/payment-card/styled-components.js +1 -2
- package/esm/phone-input/base-country-picker.js +1 -3
- package/esm/phone-input/country-select-dropdown.js +0 -1
- package/esm/phone-input/styled-components.js +8 -20
- package/esm/pin-code/styled-components.js +1 -4
- package/esm/popover/popover.js +12 -9
- package/esm/popover/styled-components.js +4 -9
- package/esm/progress-bar/progressbar-rounded.js +0 -1
- package/esm/progress-bar/styled-components.js +2 -14
- package/esm/progress-steps/progress-steps.js +1 -2
- package/esm/progress-steps/styled-components.js +19 -28
- package/esm/radio/styled-components.js +3 -10
- package/esm/rating/emoticon-rating.js +1 -2
- package/esm/rating/star-rating.js +1 -2
- package/esm/rating/styled-components.js +1 -5
- package/esm/select/autosize-input.js +3 -2
- package/esm/select/dropdown.js +1 -2
- package/esm/select/multi-value.js +1 -2
- package/esm/select/select-component.js +10 -10
- package/esm/select/single-select.js +2 -2
- package/esm/select/styled-components.js +1 -16
- package/esm/select/value.js +4 -3
- package/esm/side-navigation/index.js +1 -2
- package/esm/side-navigation/nav-item.js +0 -1
- package/esm/side-navigation/nav.js +1 -1
- package/esm/side-navigation/stateful-container.js +0 -1
- package/esm/side-navigation/styled-components.js +6 -13
- package/esm/skeleton/styled-components.js +1 -3
- package/esm/slider/slider.js +2 -4
- package/esm/slider/styled-components.js +0 -9
- package/esm/snackbar/snackbar-element.js +0 -1
- package/esm/snackbar/styled-components.js +1 -9
- package/esm/spinner/styled-components.js +1 -2
- package/esm/styles/__mocks__/styled.js +5 -8
- package/esm/styles/styled.js +6 -7
- package/esm/table/index.js +1 -2
- package/esm/table/styled-components.js +1 -13
- package/esm/table-grid/styled-components.js +1 -4
- package/esm/table-semantic/styled-components.js +2 -20
- package/esm/tabs/stateful-tabs.js +0 -1
- package/esm/tabs/styled-components.js +1 -5
- package/esm/tabs/tabs.js +2 -4
- package/esm/tabs-motion/styled-components.js +1 -8
- package/esm/tabs-motion/tab.js +0 -1
- package/esm/tabs-motion/tabs.js +1 -2
- package/esm/tag/styled-components.js +1 -5
- package/esm/tag/tag.js +2 -4
- package/esm/textarea/styled-components.js +1 -4
- package/esm/themes/shared/typography.js +10 -10
- package/esm/toast/styled-components.js +1 -5
- package/esm/toast/toaster.js +2 -0
- package/esm/tokens/colors.js +0 -24
- package/esm/tooltip/styled-components.js +1 -4
- package/esm/tree-view/index.js +1 -2
- package/esm/tree-view/styled-components.js +1 -7
- package/esm/tree-view/tree-view.js +1 -3
- package/esm/types/globals.d.js +0 -12
- package/esm/utils/deep-merge.js +5 -0
- package/esm/utils/deprecated-component.js +0 -1
- package/esm/utils/focusVisible.js +2 -4
- package/file-uploader/styled-components.js +1 -6
- package/flex-grid/flex-grid-item.d.ts +1 -1
- package/flex-grid/flex-grid-item.js +8 -6
- package/flex-grid/flex-grid.js +3 -7
- package/form-control/styled-components.js +1 -6
- package/header-navigation/styled-components.js +1 -4
- package/helper/styled-components.js +1 -3
- package/helpers/overrides.js +3 -8
- package/helpers/overrides.js.flow +1 -1
- package/icon/build-icons.js +2 -0
- package/icon/build-icons.js.flow +1 -0
- package/icon/omit-dollar-prefixed-keys.js +0 -1
- package/icon/styled-components.js +1 -2
- package/input/masked-input.js +2 -5
- package/input/stateful-container.js +0 -1
- package/input/styled-components.js +5 -10
- package/layer/layer.js +0 -24
- package/layer/layer.js.flow +0 -25
- package/layer/layers-manager.d.ts +0 -8
- package/layer/layers-manager.js +1 -97
- package/layer/layers-manager.js.flow +1 -84
- package/layer/types.d.ts +0 -21
- package/layer/types.js.flow +1 -22
- package/layout-grid/styled-components.js +0 -3
- package/link/index.js +1 -2
- package/link/styled-components.js +1 -2
- package/list/list-heading.js +17 -21
- package/list/list-item.js +1 -2
- package/list/styled-components.js +1 -15
- package/locale/es_AR.js +1 -3
- package/locale/index.js +1 -4
- package/locale/tr_TR.js +1 -3
- package/map-marker/constants.d.ts +0 -14
- package/map-marker/constants.js +3 -16
- package/map-marker/constants.js.flow +0 -17
- package/map-marker/index.d.ts +1 -2
- package/map-marker/index.js +1 -24
- package/map-marker/index.js.flow +3 -5
- package/map-marker/styled-components.d.ts +1 -17
- package/map-marker/styled-components.js +2 -88
- package/map-marker/styled-components.js.flow +0 -58
- package/map-marker/types.d.ts +1 -29
- package/map-marker/types.js.flow +0 -34
- package/menu/menu.js +3 -6
- package/menu/option-profile.js +0 -1
- package/menu/stateful-container.js +0 -1
- package/menu/styled-components.js +6 -20
- package/modal/modal.js +4 -4
- package/modal/modal.js.flow +3 -1
- package/modal/styled-components.js +1 -8
- package/package.json +11 -9
- package/pagination/stateful-container.js +0 -1
- package/pagination/stateful-pagination.js +0 -1
- package/pagination/styled-components.js +1 -4
- package/payment-card/styled-components.js +1 -2
- package/phone-input/base-country-picker.js +1 -3
- package/phone-input/country-select-dropdown.js +0 -1
- package/phone-input/styled-components.js +9 -21
- package/pin-code/styled-components.js +1 -4
- package/popover/popover.js +12 -9
- package/popover/popover.js.flow +12 -2
- package/popover/styled-components.js +9 -12
- package/progress-bar/progressbar-rounded.js +0 -1
- package/progress-bar/styled-components.js +2 -14
- package/progress-steps/progress-steps.js +1 -2
- package/progress-steps/styled-components.js +19 -28
- package/radio/styled-components.js +3 -10
- package/rating/emoticon-rating.js +1 -2
- package/rating/star-rating.js +1 -2
- package/rating/styled-components.js +1 -5
- package/select/autosize-input.js +1 -2
- package/select/autosize-input.js.flow +1 -1
- package/select/dropdown.js +1 -2
- package/select/multi-value.js +0 -1
- package/select/select-component.d.ts +1 -1
- package/select/select-component.js +7 -9
- 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 +1 -16
- package/select/value.js +3 -2
- package/side-navigation/nav-item.js +0 -1
- package/side-navigation/nav.js +1 -1
- package/side-navigation/stateful-container.js +0 -1
- package/side-navigation/styled-components.js +6 -13
- package/skeleton/styled-components.js +1 -3
- package/slider/slider.js +2 -4
- package/slider/styled-components.js +0 -9
- package/snackbar/snackbar-element.js +0 -1
- package/snackbar/styled-components.js +1 -9
- package/spinner/styled-components.js +1 -2
- package/styles/__mocks__/styled.js +3 -8
- package/styles/styled.js +6 -7
- package/table/styled-components.js +1 -13
- package/table-grid/styled-components.js +1 -4
- package/table-semantic/styled-components.js +2 -20
- package/tabs/stateful-tabs.js +0 -1
- package/tabs/styled-components.js +1 -5
- package/tabs/tabs.js +2 -4
- package/tabs-motion/styled-components.js +1 -8
- package/tabs-motion/tab.js +0 -1
- package/tabs-motion/tabs.js +1 -2
- package/tag/styled-components.js +1 -5
- package/tag/tag.js +2 -4
- package/textarea/styled-components.js +1 -4
- package/themes/shared/typography.js +10 -10
- package/themes/shared/typography.js.flow +10 -10
- package/toast/styled-components.js +1 -5
- package/toast/toaster.js.flow +1 -1
- package/tokens/colors.js +0 -24
- package/tokens/colors.js.flow +0 -27
- package/tokens/types.d.ts +0 -24
- package/tokens/types.js.flow +0 -27
- package/tooltip/styled-components.js +1 -4
- package/tree-view/styled-components.js +1 -7
- package/tree-view/tree-view.js +1 -3
- package/types/globals.d.js +1 -14
- package/utils/deep-merge.js +6 -0
- package/utils/deprecated-component.js +0 -1
- package/utils/focusVisible.js +2 -4
- package/es/map-marker/location-puck.js +0 -142
- package/es/message-card/constants.js +0 -19
- package/es/message-card/index.js +0 -10
- package/es/message-card/message-card.js +0 -112
- package/es/message-card/styled-components.js +0 -108
- package/es/message-card/types.js +0 -1
- package/es/message-card/utils.js +0 -27
- package/esm/map-marker/location-puck.js +0 -199
- package/esm/message-card/constants.js +0 -20
- package/esm/message-card/index.js +0 -10
- package/esm/message-card/message-card.js +0 -166
- package/esm/message-card/styled-components.js +0 -116
- package/esm/message-card/types.js +0 -1
- package/esm/message-card/utils.js +0 -26
- package/map-marker/location-puck.d.ts +0 -4
- package/map-marker/location-puck.js +0 -211
- package/map-marker/location-puck.js.flow +0 -18
- package/message-card/constants.d.ts +0 -12
- package/message-card/constants.js +0 -25
- package/message-card/index.d.ts +0 -4
- package/message-card/index.js +0 -60
- package/message-card/index.js.flow +0 -72
- package/message-card/message-card.d.ts +0 -4
- package/message-card/message-card.js +0 -182
- package/message-card/package.json +0 -4
- package/message-card/styled-components.d.ts +0 -14
- package/message-card/styled-components.js +0 -124
- package/message-card/types.d.ts +0 -27
- package/message-card/types.js +0 -5
- package/message-card/utils.d.ts +0 -1
- package/message-card/utils.js +0 -36
package/es/popover/popover.js
CHANGED
|
@@ -128,11 +128,13 @@ class PopoverInner extends React.Component {
|
|
|
128
128
|
const popper = this.popperRef.current;
|
|
129
129
|
const anchor = this.anchorRef.current; // Ignore document click if it came from popover or anchor
|
|
130
130
|
|
|
131
|
-
if (!popper || popper === target ||
|
|
131
|
+
if (!popper || popper === target || // eslint-disable-next-line cup/no-undef
|
|
132
|
+
target instanceof Node && popper.contains(target)) {
|
|
132
133
|
return;
|
|
133
134
|
}
|
|
134
135
|
|
|
135
|
-
if (!anchor || anchor === target ||
|
|
136
|
+
if (!anchor || anchor === target || // eslint-disable-next-line cup/no-undef
|
|
137
|
+
target instanceof Node && popper.contains(target)) {
|
|
136
138
|
return;
|
|
137
139
|
}
|
|
138
140
|
|
|
@@ -151,7 +153,7 @@ class PopoverInner extends React.Component {
|
|
|
151
153
|
componentDidUpdate(prevProps, prevState) {
|
|
152
154
|
this.init(prevProps, prevState);
|
|
153
155
|
|
|
154
|
-
if (this.props.
|
|
156
|
+
if (this.props.autoFocus && !this.state.autoFocusAfterPositioning && this.popperRef.current !== null && this.popperRef.current.getBoundingClientRect().top > 0) {
|
|
155
157
|
this.setState({
|
|
156
158
|
autoFocusAfterPositioning: true
|
|
157
159
|
});
|
|
@@ -270,6 +272,10 @@ class PopoverInner extends React.Component {
|
|
|
270
272
|
isOpen
|
|
271
273
|
} = this.props;
|
|
272
274
|
const anchorProps = {
|
|
275
|
+
'aria-haspopup': true,
|
|
276
|
+
'aria-expanded': isOpen ? true : false,
|
|
277
|
+
// @ts-expect-error todo(flow->ts): should it be here?
|
|
278
|
+
key: 'popover-anchor',
|
|
273
279
|
ref: this.anchorRef
|
|
274
280
|
};
|
|
275
281
|
const popoverId = this.getPopoverIdAttr();
|
|
@@ -277,8 +283,6 @@ class PopoverInner extends React.Component {
|
|
|
277
283
|
if (this.isAccessibilityTypeMenu()) {
|
|
278
284
|
const relationAttr = this.isClickTrigger() ? 'aria-controls' : 'aria-owns';
|
|
279
285
|
anchorProps[relationAttr] = isOpen ? popoverId : null;
|
|
280
|
-
anchorProps['aria-haspopup'] = true;
|
|
281
|
-
anchorProps['aria-expanded'] = Boolean(isOpen);
|
|
282
286
|
} else if (this.isAccessibilityTypeTooltip()) {
|
|
283
287
|
anchorProps.id = this.getAnchorIdAttr();
|
|
284
288
|
anchorProps['aria-describedby'] = isOpen ? popoverId : null;
|
|
@@ -305,6 +309,7 @@ class PopoverInner extends React.Component {
|
|
|
305
309
|
bodyProps.id = popoverId;
|
|
306
310
|
} else if (this.isAccessibilityTypeTooltip()) {
|
|
307
311
|
bodyProps.id = popoverId;
|
|
312
|
+
bodyProps.role = 'tooltip';
|
|
308
313
|
}
|
|
309
314
|
|
|
310
315
|
if (this.isHoverTrigger()) {
|
|
@@ -368,9 +373,7 @@ class PopoverInner extends React.Component {
|
|
|
368
373
|
return /*#__PURE__*/React.cloneElement(anchor, anchorProps);
|
|
369
374
|
}
|
|
370
375
|
|
|
371
|
-
return /*#__PURE__*/React.createElement("span",
|
|
372
|
-
key: "popover-anchor"
|
|
373
|
-
}, anchorProps), anchor);
|
|
376
|
+
return /*#__PURE__*/React.createElement("span", anchorProps, anchor);
|
|
374
377
|
}
|
|
375
378
|
|
|
376
379
|
renderPopover(renderedContent) {
|
|
@@ -443,7 +446,7 @@ class PopoverInner extends React.Component {
|
|
|
443
446
|
},
|
|
444
447
|
onPopperUpdate: this.onPopperUpdate,
|
|
445
448
|
placement: this.state.placement
|
|
446
|
-
}, this.props.focusLock
|
|
449
|
+
}, this.props.focusLock ? /*#__PURE__*/React.createElement(FocusLock, {
|
|
447
450
|
disabled: !this.props.focusLock,
|
|
448
451
|
noFocusGuards: false // see popover-focus-loop.scenario.js for why hover cannot return focus
|
|
449
452
|
,
|
|
@@ -56,12 +56,11 @@ export function getBodyStyles(props) {
|
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
58
|
export const Body = styled('div', getBodyStyles);
|
|
59
|
-
Body.displayName = "Body";
|
|
60
|
-
Body.displayName = 'Body';
|
|
61
59
|
/**
|
|
62
60
|
* Arrow shown between the popover and the anchor element
|
|
63
61
|
*/
|
|
64
62
|
|
|
63
|
+
Body.displayName = "Body";
|
|
65
64
|
export function getArrowStyles(props) {
|
|
66
65
|
const {
|
|
67
66
|
$arrowOffset,
|
|
@@ -79,8 +78,6 @@ export function getArrowStyles(props) {
|
|
|
79
78
|
};
|
|
80
79
|
}
|
|
81
80
|
export const Arrow = styled('div', getArrowStyles);
|
|
82
|
-
Arrow.displayName = "Arrow";
|
|
83
|
-
Arrow.displayName = 'Arrow';
|
|
84
81
|
/**
|
|
85
82
|
* Extra div that holds the popover content. This extra element
|
|
86
83
|
* is needed for the arrow–the arrow is just a 45deg rotated div,
|
|
@@ -88,6 +85,7 @@ Arrow.displayName = 'Arrow';
|
|
|
88
85
|
* clips the part of the arrow that extends into the popover.
|
|
89
86
|
*/
|
|
90
87
|
|
|
88
|
+
Arrow.displayName = "Arrow";
|
|
91
89
|
export function getInnerStyles({
|
|
92
90
|
$theme
|
|
93
91
|
}) {
|
|
@@ -102,14 +100,13 @@ export function getInnerStyles({
|
|
|
102
100
|
};
|
|
103
101
|
}
|
|
104
102
|
export const Inner = styled('div', getInnerStyles);
|
|
105
|
-
Inner.displayName = "Inner";
|
|
106
|
-
Inner.displayName = 'Inner';
|
|
107
103
|
/**
|
|
108
104
|
* A drop-in component that provides the recommended padding
|
|
109
105
|
* for popovers. Mostly a convenience for users so they don't
|
|
110
106
|
* have to define this themselves.
|
|
111
107
|
*/
|
|
112
108
|
|
|
109
|
+
Inner.displayName = "Inner";
|
|
113
110
|
export const Padding = styled('div', {
|
|
114
111
|
paddingLeft: '12px',
|
|
115
112
|
paddingTop: '12px',
|
|
@@ -117,9 +114,7 @@ export const Padding = styled('div', {
|
|
|
117
114
|
paddingBottom: '12px'
|
|
118
115
|
});
|
|
119
116
|
Padding.displayName = "Padding";
|
|
120
|
-
Padding.displayName = 'Padding';
|
|
121
117
|
export const Hidden = styled('div', {
|
|
122
118
|
display: 'none'
|
|
123
119
|
});
|
|
124
|
-
Hidden.displayName = "Hidden";
|
|
125
|
-
Hidden.displayName = 'Hidden';
|
|
120
|
+
Hidden.displayName = "Hidden";
|
|
@@ -54,7 +54,6 @@ function ProgressBarRounded({
|
|
|
54
54
|
setPathLength(pathRef.current.getTotalLength());
|
|
55
55
|
}
|
|
56
56
|
}, []); // Animation
|
|
57
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
58
57
|
|
|
59
58
|
const animationFrameRef = React.useRef();
|
|
60
59
|
const [pathProgress, setPathProgress] = React.useState(0);
|
|
@@ -16,8 +16,7 @@ function getBarHeight(size) {
|
|
|
16
16
|
[SIZE.medium]: '4px',
|
|
17
17
|
[SIZE.large]: '8px'
|
|
18
18
|
}[size];
|
|
19
|
-
}
|
|
20
|
-
|
|
19
|
+
}
|
|
21
20
|
|
|
22
21
|
export const StyledRoot = styled('div', props => {
|
|
23
22
|
return {
|
|
@@ -25,7 +24,6 @@ export const StyledRoot = styled('div', props => {
|
|
|
25
24
|
};
|
|
26
25
|
});
|
|
27
26
|
StyledRoot.displayName = "StyledRoot";
|
|
28
|
-
StyledRoot.displayName = 'StyledRoot';
|
|
29
27
|
export const StyledBarContainer = styled('div', props => {
|
|
30
28
|
const {
|
|
31
29
|
$theme
|
|
@@ -42,7 +40,6 @@ export const StyledBarContainer = styled('div', props => {
|
|
|
42
40
|
};
|
|
43
41
|
});
|
|
44
42
|
StyledBarContainer.displayName = "StyledBarContainer";
|
|
45
|
-
StyledBarContainer.displayName = 'StyledBarContainer';
|
|
46
43
|
export const StyledBar = styled('div', props => {
|
|
47
44
|
const {
|
|
48
45
|
$theme,
|
|
@@ -73,7 +70,6 @@ export const StyledBar = styled('div', props => {
|
|
|
73
70
|
};
|
|
74
71
|
});
|
|
75
72
|
StyledBar.displayName = "StyledBar";
|
|
76
|
-
StyledBar.displayName = 'StyledBar';
|
|
77
73
|
export const StyledBarProgress = styled('div', props => {
|
|
78
74
|
const {
|
|
79
75
|
$theme,
|
|
@@ -155,7 +151,6 @@ export const StyledBarProgress = styled('div', props => {
|
|
|
155
151
|
};
|
|
156
152
|
});
|
|
157
153
|
StyledBarProgress.displayName = "StyledBarProgress";
|
|
158
|
-
StyledBarProgress.displayName = 'StyledBarProgress';
|
|
159
154
|
export const StyledInfiniteBar = styled('div', props => {
|
|
160
155
|
const {
|
|
161
156
|
$theme,
|
|
@@ -222,7 +217,6 @@ export const StyledInfiniteBar = styled('div', props => {
|
|
|
222
217
|
};
|
|
223
218
|
});
|
|
224
219
|
StyledInfiniteBar.displayName = "StyledInfiniteBar";
|
|
225
|
-
StyledInfiniteBar.displayName = 'StyledInfiniteBar';
|
|
226
220
|
export const StyledLabel = styled('div', props => {
|
|
227
221
|
return {
|
|
228
222
|
textAlign: 'center',
|
|
@@ -231,7 +225,6 @@ export const StyledLabel = styled('div', props => {
|
|
|
231
225
|
};
|
|
232
226
|
});
|
|
233
227
|
StyledLabel.displayName = "StyledLabel";
|
|
234
|
-
StyledLabel.displayName = 'StyledLabel';
|
|
235
228
|
const PROGRESS_BAR_ROUNDED_SIZES = {
|
|
236
229
|
[SIZE.large]: {
|
|
237
230
|
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',
|
|
@@ -269,7 +262,6 @@ export const StyledProgressBarRoundedRoot = styled('div', ({
|
|
|
269
262
|
};
|
|
270
263
|
});
|
|
271
264
|
StyledProgressBarRoundedRoot.displayName = "StyledProgressBarRoundedRoot";
|
|
272
|
-
StyledProgressBarRoundedRoot.displayName = 'StyledProgressBarRoundedRoot';
|
|
273
265
|
|
|
274
266
|
const _StyledProgressBarRoundedSvg = styled('svg', ({
|
|
275
267
|
$size
|
|
@@ -283,7 +275,6 @@ const _StyledProgressBarRoundedSvg = styled('svg', ({
|
|
|
283
275
|
});
|
|
284
276
|
|
|
285
277
|
_StyledProgressBarRoundedSvg.displayName = "_StyledProgressBarRoundedSvg";
|
|
286
|
-
_StyledProgressBarRoundedSvg.displayName = '_StyledProgressBarRoundedSvg';
|
|
287
278
|
export const StyledProgressBarRoundedSvg = withWrapper(_StyledProgressBarRoundedSvg, Styled => function StyledProgressBarRoundedSvg(props) {
|
|
288
279
|
return /*#__PURE__*/React.createElement(Styled, _extends({
|
|
289
280
|
viewBox: `0 0 ${PROGRESS_BAR_ROUNDED_SIZES[props.$size].width} ${PROGRESS_BAR_ROUNDED_SIZES[props.$size].height}`,
|
|
@@ -302,7 +293,6 @@ const _StyledProgressBarRoundedTrackBackground = styled('path', ({
|
|
|
302
293
|
});
|
|
303
294
|
|
|
304
295
|
_StyledProgressBarRoundedTrackBackground.displayName = "_StyledProgressBarRoundedTrackBackground";
|
|
305
|
-
_StyledProgressBarRoundedTrackBackground.displayName = '_StyledProgressBarRoundedTrackBackground';
|
|
306
296
|
export const StyledProgressBarRoundedTrackBackground = withWrapper(_StyledProgressBarRoundedTrackBackground, Styled => function StyledProgressBarRoundedSvg(props) {
|
|
307
297
|
return /*#__PURE__*/React.createElement(Styled, _extends({
|
|
308
298
|
d: PROGRESS_BAR_ROUNDED_SIZES[props.$size].d
|
|
@@ -326,7 +316,6 @@ const _StyledProgressBarRoundedTrackForeground = styled('path', ({
|
|
|
326
316
|
});
|
|
327
317
|
|
|
328
318
|
_StyledProgressBarRoundedTrackForeground.displayName = "_StyledProgressBarRoundedTrackForeground";
|
|
329
|
-
_StyledProgressBarRoundedTrackForeground.displayName = '_StyledProgressBarRoundedTrackForeground';
|
|
330
319
|
export const StyledProgressBarRoundedTrackForeground = withWrapper(_StyledProgressBarRoundedTrackForeground, Styled => function StyledProgressBarRoundedSvg(props) {
|
|
331
320
|
return /*#__PURE__*/React.createElement(Styled, _extends({
|
|
332
321
|
d: PROGRESS_BAR_ROUNDED_SIZES[props.$size].d
|
|
@@ -341,5 +330,4 @@ export const StyledProgressBarRoundedText = styled('div', ({
|
|
|
341
330
|
...$theme.typography[PROGRESS_BAR_ROUNDED_SIZES[$size].typography]
|
|
342
331
|
};
|
|
343
332
|
});
|
|
344
|
-
StyledProgressBarRoundedText.displayName = "StyledProgressBarRoundedText";
|
|
345
|
-
StyledProgressBarRoundedText.displayName = 'StyledProgressBarRoundedText';
|
|
333
|
+
StyledProgressBarRoundedText.displayName = "StyledProgressBarRoundedText";
|
|
@@ -16,8 +16,7 @@ function ProgressSteps({
|
|
|
16
16
|
children
|
|
17
17
|
}) {
|
|
18
18
|
const [Root, rootProps] = getOverrides(overrides.Root, StyledProgressSteps);
|
|
19
|
-
const numChildren = React.Children.count(children);
|
|
20
|
-
|
|
19
|
+
const numChildren = React.Children.count(children);
|
|
21
20
|
const modifiedChildren = React.Children.map(children, (child, index) => {
|
|
22
21
|
if (!child) return;
|
|
23
22
|
const childOverrides = child.props.overrides || {};
|
|
@@ -19,8 +19,6 @@ export const StyledProgressSteps = styled('ol', ({
|
|
|
19
19
|
};
|
|
20
20
|
});
|
|
21
21
|
StyledProgressSteps.displayName = "StyledProgressSteps";
|
|
22
|
-
StyledProgressSteps.displayName = 'StyledProgressSteps'; // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
23
|
-
|
|
24
22
|
export const StyledStep = styled('li', ({
|
|
25
23
|
$theme
|
|
26
24
|
}) => {
|
|
@@ -31,9 +29,7 @@ export const StyledStep = styled('li', ({
|
|
|
31
29
|
};
|
|
32
30
|
});
|
|
33
31
|
StyledStep.displayName = "StyledStep";
|
|
34
|
-
|
|
35
|
-
export const StyledIconContainer = styled('div', // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
36
|
-
({
|
|
32
|
+
export const StyledIconContainer = styled('div', ({
|
|
37
33
|
$theme,
|
|
38
34
|
$isActive,
|
|
39
35
|
$isCompleted,
|
|
@@ -74,11 +70,11 @@ export const StyledIconContainer = styled('div', // eslint-disable-next-line @ty
|
|
|
74
70
|
};
|
|
75
71
|
});
|
|
76
72
|
StyledIconContainer.displayName = "StyledIconContainer";
|
|
77
|
-
StyledIconContainer.displayName = 'StyledIconContainer';
|
|
78
73
|
export const StyledIcon = styled('div', ({
|
|
79
74
|
$theme,
|
|
80
75
|
$isActive,
|
|
81
|
-
$isCompleted
|
|
76
|
+
$isCompleted,
|
|
77
|
+
$disabled
|
|
82
78
|
}) => {
|
|
83
79
|
let currentColor = $theme.colors.mono400;
|
|
84
80
|
let size = $theme.sizing.scale300;
|
|
@@ -110,7 +106,6 @@ export const StyledIcon = styled('div', ({
|
|
|
110
106
|
};
|
|
111
107
|
});
|
|
112
108
|
StyledIcon.displayName = "StyledIcon";
|
|
113
|
-
StyledIcon.displayName = 'StyledIcon';
|
|
114
109
|
export const StyledInnerIcon = styled('div', ({
|
|
115
110
|
$theme
|
|
116
111
|
}) => {
|
|
@@ -127,7 +122,6 @@ export const StyledInnerIcon = styled('div', ({
|
|
|
127
122
|
};
|
|
128
123
|
});
|
|
129
124
|
StyledInnerIcon.displayName = "StyledInnerIcon";
|
|
130
|
-
StyledInnerIcon.displayName = 'StyledInnerIcon';
|
|
131
125
|
export const StyledContent = styled('div', ({
|
|
132
126
|
$theme
|
|
133
127
|
}) => {
|
|
@@ -137,7 +131,6 @@ export const StyledContent = styled('div', ({
|
|
|
137
131
|
};
|
|
138
132
|
});
|
|
139
133
|
StyledContent.displayName = "StyledContent";
|
|
140
|
-
StyledContent.displayName = 'StyledContent';
|
|
141
134
|
export const StyledContentTitle = styled('div', ({
|
|
142
135
|
$theme,
|
|
143
136
|
$isActive,
|
|
@@ -159,7 +152,6 @@ export const StyledContentTitle = styled('div', ({
|
|
|
159
152
|
};
|
|
160
153
|
});
|
|
161
154
|
StyledContentTitle.displayName = "StyledContentTitle";
|
|
162
|
-
StyledContentTitle.displayName = 'StyledContentTitle';
|
|
163
155
|
export const StyledContentTail = styled('div', ({
|
|
164
156
|
$theme,
|
|
165
157
|
$isCompleted,
|
|
@@ -192,7 +184,6 @@ export const StyledContentTail = styled('div', ({
|
|
|
192
184
|
};
|
|
193
185
|
});
|
|
194
186
|
StyledContentTail.displayName = "StyledContentTail";
|
|
195
|
-
StyledContentTail.displayName = 'StyledContentTail';
|
|
196
187
|
export const StyledContentDescription = styled('div', ({
|
|
197
188
|
$theme
|
|
198
189
|
}) => {
|
|
@@ -201,8 +192,9 @@ export const StyledContentDescription = styled('div', ({
|
|
|
201
192
|
};
|
|
202
193
|
});
|
|
203
194
|
StyledContentDescription.displayName = "StyledContentDescription";
|
|
204
|
-
|
|
205
|
-
|
|
195
|
+
export const StyledNumberStep = styled('li', ({
|
|
196
|
+
$theme
|
|
197
|
+
}) => {
|
|
206
198
|
return {
|
|
207
199
|
listStyleType: 'none',
|
|
208
200
|
position: 'relative',
|
|
@@ -210,11 +202,11 @@ export const StyledNumberStep = styled('li', () => {
|
|
|
210
202
|
};
|
|
211
203
|
});
|
|
212
204
|
StyledNumberStep.displayName = "StyledNumberStep";
|
|
213
|
-
StyledNumberStep.displayName = 'StyledNumberStep';
|
|
214
205
|
export const StyledNumberIcon = styled('div', ({
|
|
215
206
|
$theme,
|
|
216
207
|
$isActive,
|
|
217
|
-
$isCompleted
|
|
208
|
+
$isCompleted,
|
|
209
|
+
$disabled
|
|
218
210
|
}) => {
|
|
219
211
|
let backgroundColor = $theme.colors.mono400;
|
|
220
212
|
let color = $theme.colors.contentStateDisabled;
|
|
@@ -255,10 +247,11 @@ export const StyledNumberIcon = styled('div', ({
|
|
|
255
247
|
};
|
|
256
248
|
});
|
|
257
249
|
StyledNumberIcon.displayName = "StyledNumberIcon";
|
|
258
|
-
StyledNumberIcon.displayName = 'StyledNumberIcon';
|
|
259
250
|
export const StyledNumberContentTail = styled('div', ({
|
|
260
251
|
$theme,
|
|
261
|
-
$
|
|
252
|
+
$isActive,
|
|
253
|
+
$isCompleted,
|
|
254
|
+
$disabled
|
|
262
255
|
}) => {
|
|
263
256
|
let currentColor = $theme.colors.mono300;
|
|
264
257
|
let size = $theme.sizing.scale950;
|
|
@@ -283,5 +276,4 @@ export const StyledNumberContentTail = styled('div', ({
|
|
|
283
276
|
display: 'inline-block'
|
|
284
277
|
};
|
|
285
278
|
});
|
|
286
|
-
StyledNumberContentTail.displayName = "StyledNumberContentTail";
|
|
287
|
-
StyledNumberContentTail.displayName = 'StyledNumberContentTail';
|
|
279
|
+
StyledNumberContentTail.displayName = "StyledNumberContentTail";
|
|
@@ -48,13 +48,10 @@ class StatefulRadioGroupContainer extends React.Component {
|
|
|
48
48
|
|
|
49
49
|
render() {
|
|
50
50
|
const {
|
|
51
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
52
51
|
children = childProps => null,
|
|
53
52
|
// eslint-disable-line no-unused-vars
|
|
54
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
55
53
|
initialState,
|
|
56
54
|
// eslint-disable-line no-unused-vars
|
|
57
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
58
55
|
stateReducer,
|
|
59
56
|
// eslint-disable-line no-unused-vars
|
|
60
57
|
...restProps
|
|
@@ -161,7 +161,6 @@ export const RadioGroupRoot = styled('div', props => {
|
|
|
161
161
|
};
|
|
162
162
|
});
|
|
163
163
|
RadioGroupRoot.displayName = "RadioGroupRoot";
|
|
164
|
-
RadioGroupRoot.displayName = 'RadioGroupRoot';
|
|
165
164
|
export const Root = styled('label', props => {
|
|
166
165
|
const {
|
|
167
166
|
$disabled,
|
|
@@ -186,7 +185,6 @@ export const Root = styled('label', props => {
|
|
|
186
185
|
};
|
|
187
186
|
});
|
|
188
187
|
Root.displayName = "Root";
|
|
189
|
-
Root.displayName = 'Root';
|
|
190
188
|
export const RadioMarkInner = styled('div', props => {
|
|
191
189
|
const {
|
|
192
190
|
animation,
|
|
@@ -205,7 +203,6 @@ export const RadioMarkInner = styled('div', props => {
|
|
|
205
203
|
};
|
|
206
204
|
});
|
|
207
205
|
RadioMarkInner.displayName = "RadioMarkInner";
|
|
208
|
-
RadioMarkInner.displayName = 'RadioMarkInner';
|
|
209
206
|
export const RadioMarkOuter = styled('div', props => {
|
|
210
207
|
const {
|
|
211
208
|
animation,
|
|
@@ -235,7 +232,6 @@ export const RadioMarkOuter = styled('div', props => {
|
|
|
235
232
|
};
|
|
236
233
|
});
|
|
237
234
|
RadioMarkOuter.displayName = "RadioMarkOuter";
|
|
238
|
-
RadioMarkOuter.displayName = 'RadioMarkOuter';
|
|
239
235
|
export const Label = styled('div', props => {
|
|
240
236
|
const {
|
|
241
237
|
$theme: {
|
|
@@ -248,10 +244,9 @@ export const Label = styled('div', props => {
|
|
|
248
244
|
color: getLabelColor(props),
|
|
249
245
|
...typography.LabelMedium
|
|
250
246
|
};
|
|
251
|
-
});
|
|
252
|
-
Label.displayName = "Label";
|
|
253
|
-
Label.displayName = 'Label'; // tricky style for focus event cause display: none doesn't work
|
|
247
|
+
}); // tricky style for focus event cause display: none doesn't work
|
|
254
248
|
|
|
249
|
+
Label.displayName = "Label";
|
|
255
250
|
export const Input = styled('input', {
|
|
256
251
|
width: 0,
|
|
257
252
|
height: 0,
|
|
@@ -267,7 +262,6 @@ export const Input = styled('input', {
|
|
|
267
262
|
position: 'absolute'
|
|
268
263
|
});
|
|
269
264
|
Input.displayName = "Input";
|
|
270
|
-
Input.displayName = 'Input';
|
|
271
265
|
export const Description = styled('div', props => {
|
|
272
266
|
const {
|
|
273
267
|
$theme,
|
|
@@ -284,5 +278,4 @@ export const Description = styled('div', props => {
|
|
|
284
278
|
maxWidth: '240px'
|
|
285
279
|
};
|
|
286
280
|
});
|
|
287
|
-
Description.displayName = "Description";
|
|
288
|
-
Description.displayName = 'Description';
|
|
281
|
+
Description.displayName = "Description";
|
|
@@ -79,8 +79,7 @@ class EmoticonRating extends React.Component {
|
|
|
79
79
|
refs.push(starRef);
|
|
80
80
|
ratings.push( /*#__PURE__*/React.createElement(Emoticon, _extends({
|
|
81
81
|
key: x,
|
|
82
|
-
role: "radio"
|
|
83
|
-
,
|
|
82
|
+
role: "radio",
|
|
84
83
|
ref: starRef,
|
|
85
84
|
tabIndex: isFocusable ? '0' : '-1',
|
|
86
85
|
"aria-setsize": 5,
|
package/es/rating/star-rating.js
CHANGED
|
@@ -81,8 +81,7 @@ class StarRating extends React.Component {
|
|
|
81
81
|
ratings.push( /*#__PURE__*/React.createElement(Star, _extends({
|
|
82
82
|
key: x,
|
|
83
83
|
role: "radio",
|
|
84
|
-
title: "rating"
|
|
85
|
-
,
|
|
84
|
+
title: "rating",
|
|
86
85
|
ref: starRef,
|
|
87
86
|
tabIndex: isFocusable ? '0' : '-1',
|
|
88
87
|
"aria-setsize": numItems,
|
|
@@ -6,7 +6,6 @@ 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
|
|
10
9
|
export const StyledRoot = styled('ul', ({
|
|
11
10
|
$theme
|
|
12
11
|
}) => {
|
|
@@ -26,7 +25,6 @@ export const StyledRoot = styled('ul', ({
|
|
|
26
25
|
};
|
|
27
26
|
});
|
|
28
27
|
StyledRoot.displayName = "StyledRoot";
|
|
29
|
-
StyledRoot.displayName = 'StyledRoot';
|
|
30
28
|
export const StyledStar = styled('li', ({
|
|
31
29
|
$theme,
|
|
32
30
|
$isActive,
|
|
@@ -91,7 +89,6 @@ export const StyledStar = styled('li', ({
|
|
|
91
89
|
return styles;
|
|
92
90
|
});
|
|
93
91
|
StyledStar.displayName = "StyledStar";
|
|
94
|
-
StyledStar.displayName = 'StyledStar';
|
|
95
92
|
export const StyledEmoticon = styled('li', ({
|
|
96
93
|
$theme,
|
|
97
94
|
$isActive,
|
|
@@ -132,5 +129,4 @@ export const StyledEmoticon = styled('li', ({
|
|
|
132
129
|
};
|
|
133
130
|
return styles;
|
|
134
131
|
});
|
|
135
|
-
StyledEmoticon.displayName = "StyledEmoticon";
|
|
136
|
-
StyledEmoticon.displayName = 'StyledEmoticon';
|
|
132
|
+
StyledEmoticon.displayName = "StyledEmoticon";
|
|
@@ -8,6 +8,8 @@ Copyright (c) Uber Technologies, Inc.
|
|
|
8
8
|
This source code is licensed under the MIT license found in the
|
|
9
9
|
LICENSE file in the root directory of this source tree.
|
|
10
10
|
*/
|
|
11
|
+
|
|
12
|
+
/* eslint-disable cup/no-undef */
|
|
11
13
|
import * as React from 'react';
|
|
12
14
|
import { StyledInput, StyledInputSizer } from './styled-components';
|
|
13
15
|
import { getOverrides } from '../helpers/overrides';
|
|
@@ -31,8 +33,7 @@ export default class AutosizeInput extends React.Component {
|
|
|
31
33
|
componentDidMount() {
|
|
32
34
|
this.mounted = true;
|
|
33
35
|
this.updateInputWidth();
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
+
}
|
|
36
37
|
|
|
37
38
|
componentDidUpdate(prevProps, prevState) {
|
|
38
39
|
this.updateInputWidth();
|
package/es/select/dropdown.js
CHANGED
|
@@ -116,8 +116,7 @@ export default class SelectDropdown extends React.Component {
|
|
|
116
116
|
$type: type,
|
|
117
117
|
$width: width
|
|
118
118
|
};
|
|
119
|
-
}
|
|
120
|
-
|
|
119
|
+
}
|
|
121
120
|
|
|
122
121
|
render() {
|
|
123
122
|
// TODO(#185) Add no-results and loading states to menu
|
package/es/select/multi-value.js
CHANGED
|
@@ -8,8 +8,7 @@ LICENSE file in the root directory of this source tree.
|
|
|
8
8
|
*/
|
|
9
9
|
import * as React from 'react';
|
|
10
10
|
import { getOverrides } from '../helpers/overrides';
|
|
11
|
-
import { Tag, VARIANT as TAG_VARIANT } from '../tag';
|
|
12
|
-
|
|
11
|
+
import { Tag, VARIANT as TAG_VARIANT } from '../tag';
|
|
13
12
|
export default function MultiValue(props) {
|
|
14
13
|
const {
|
|
15
14
|
overrides = {},
|
|
@@ -8,13 +8,15 @@ Copyright (c) Uber Technologies, Inc.
|
|
|
8
8
|
This source code is licensed under the MIT license found in the
|
|
9
9
|
LICENSE file in the root directory of this source tree.
|
|
10
10
|
*/
|
|
11
|
+
|
|
12
|
+
/* eslint-disable cup/no-undef */
|
|
11
13
|
import * as React from 'react';
|
|
12
14
|
import { getOverrides, mergeOverrides } from '../helpers/overrides';
|
|
13
15
|
import DeleteAlt from '../icon/delete-alt';
|
|
14
16
|
import TriangleDownIcon from '../icon/triangle-down';
|
|
15
17
|
import SearchIconComponent from '../icon/search';
|
|
16
18
|
import { LocaleContext } from '../locale';
|
|
17
|
-
import { Popover, PLACEMENT
|
|
19
|
+
import { Popover, PLACEMENT } from '../popover';
|
|
18
20
|
import { UIDConsumer } from 'react-uid';
|
|
19
21
|
import AutosizeInput from './autosize-input';
|
|
20
22
|
import { TYPE, STATE_CHANGE_TYPE, SIZE } from './constants';
|
|
@@ -33,7 +35,6 @@ const isLeftClick = event => event.button !== null && event.button !== undefined
|
|
|
33
35
|
|
|
34
36
|
const containsNode = (parent, child) => {
|
|
35
37
|
if (typeof document !== 'undefined') {
|
|
36
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
37
38
|
return child && parent && parent.contains(child);
|
|
38
39
|
}
|
|
39
40
|
};
|
|
@@ -693,7 +694,7 @@ class Select extends React.Component {
|
|
|
693
694
|
}, "Loading"));
|
|
694
695
|
}
|
|
695
696
|
|
|
696
|
-
renderValue(valueArray) {
|
|
697
|
+
renderValue(valueArray, isOpen, locale) {
|
|
697
698
|
const {
|
|
698
699
|
overrides = {}
|
|
699
700
|
} = this.props;
|
|
@@ -750,10 +751,13 @@ class Select extends React.Component {
|
|
|
750
751
|
|
|
751
752
|
if (!this.props.searchable) {
|
|
752
753
|
return /*#__PURE__*/React.createElement(InputContainer, _extends({
|
|
754
|
+
role: "listbox",
|
|
753
755
|
"aria-activedescendant": this.state.activeDescendant,
|
|
756
|
+
"aria-expanded": isOpen,
|
|
754
757
|
"aria-describedby": this.props['aria-describedby'],
|
|
755
758
|
"aria-errormessage": this.props['aria-errormessage'],
|
|
756
759
|
"aria-disabled": this.props.disabled,
|
|
760
|
+
"aria-label": label,
|
|
757
761
|
"aria-labelledby": this.props['aria-labelledby'],
|
|
758
762
|
"aria-owns": this.state.isOpen ? listboxId : null,
|
|
759
763
|
"aria-required": this.props.required || null,
|
|
@@ -807,8 +811,7 @@ class Select extends React.Component {
|
|
|
807
811
|
|
|
808
812
|
if (!this.props.clearable || this.props.disabled || this.props.isLoading || !isValueEntered) {
|
|
809
813
|
return;
|
|
810
|
-
}
|
|
811
|
-
|
|
814
|
+
}
|
|
812
815
|
|
|
813
816
|
const {
|
|
814
817
|
$size,
|
|
@@ -837,8 +840,7 @@ class Select extends React.Component {
|
|
|
837
840
|
renderArrow() {
|
|
838
841
|
if (this.props.type !== TYPE.select) {
|
|
839
842
|
return null;
|
|
840
|
-
}
|
|
841
|
-
|
|
843
|
+
}
|
|
842
844
|
|
|
843
845
|
const {
|
|
844
846
|
$size,
|
|
@@ -995,13 +997,11 @@ class Select extends React.Component {
|
|
|
995
997
|
// apply the ref to the Root component below it would be overwritten before the popover
|
|
996
998
|
// renders it. Using this strategy, we will get a ref to the popover, then reuse its
|
|
997
999
|
// anchorRef so we can check if clicks are on the select component or not.
|
|
998
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
999
1000
|
, _extends({
|
|
1000
1001
|
innerRef: ref => {
|
|
1001
1002
|
if (!ref) return;
|
|
1002
1003
|
this.anchor = ref.anchorRef;
|
|
1003
1004
|
},
|
|
1004
|
-
accessibilityType: ACCESSIBILITY_TYPE.none,
|
|
1005
1005
|
autoFocus: false,
|
|
1006
1006
|
focusLock: false,
|
|
1007
1007
|
mountNode: this.props.mountNode,
|
|
@@ -1046,7 +1046,7 @@ class Select extends React.Component {
|
|
|
1046
1046
|
onTouchEnd: this.handleTouchEnd,
|
|
1047
1047
|
onTouchMove: this.handleTouchMove,
|
|
1048
1048
|
onTouchStart: this.handleTouchStart
|
|
1049
|
-
}, sharedProps, controlContainerProps), type === TYPE.search ? this.renderSearch() : null, /*#__PURE__*/React.createElement(ValueContainer, _extends({}, sharedProps, valueContainerProps), this.renderValue(valueArray), this.renderInput(listboxId), this.shouldShowPlaceholder() ? /*#__PURE__*/React.createElement(Placeholder, _extends({}, sharedProps, placeholderProps), typeof this.props.placeholder !== 'undefined' ? this.props.placeholder : locale.select.placeholder) : null), /*#__PURE__*/React.createElement(IconsContainer, _extends({}, sharedProps, iconsContainerProps), this.renderLoading(), this.renderClear(), type === TYPE.select ? this.renderArrow() : null))))));
|
|
1049
|
+
}, sharedProps, controlContainerProps), type === TYPE.search ? this.renderSearch() : null, /*#__PURE__*/React.createElement(ValueContainer, _extends({}, sharedProps, valueContainerProps), this.renderValue(valueArray, isOpen, locale), this.renderInput(listboxId), this.shouldShowPlaceholder() ? /*#__PURE__*/React.createElement(Placeholder, _extends({}, sharedProps, placeholderProps), typeof this.props.placeholder !== 'undefined' ? this.props.placeholder : locale.select.placeholder) : null), /*#__PURE__*/React.createElement(IconsContainer, _extends({}, sharedProps, iconsContainerProps), this.renderLoading(), this.renderClear(), type === TYPE.select ? this.renderArrow() : null))))));
|
|
1050
1050
|
}
|
|
1051
1051
|
|
|
1052
1052
|
}
|
|
@@ -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 MultiSelect(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 MultiSelect;
|
|
@@ -36,10 +36,8 @@ class StatefulSelectContainer extends React.Component {
|
|
|
36
36
|
render() {
|
|
37
37
|
const {
|
|
38
38
|
children,
|
|
39
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
40
39
|
initialState,
|
|
41
40
|
// eslint-disable-line no-unused-vars
|
|
42
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
43
41
|
stateReducer,
|
|
44
42
|
// eslint-disable-line no-unused-vars
|
|
45
43
|
...restProps
|