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
|
@@ -54,6 +54,7 @@ function ProgressBarRounded({
|
|
|
54
54
|
setPathLength(pathRef.current.getTotalLength());
|
|
55
55
|
}
|
|
56
56
|
}, []); // Animation
|
|
57
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
57
58
|
|
|
58
59
|
const animationFrameRef = React.useRef();
|
|
59
60
|
const [pathProgress, setPathProgress] = React.useState(0);
|
|
@@ -16,7 +16,8 @@ function getBarHeight(size) {
|
|
|
16
16
|
[SIZE.medium]: '4px',
|
|
17
17
|
[SIZE.large]: '8px'
|
|
18
18
|
}[size];
|
|
19
|
-
}
|
|
19
|
+
} // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
20
|
+
|
|
20
21
|
|
|
21
22
|
export const StyledRoot = styled('div', props => {
|
|
22
23
|
return {
|
|
@@ -24,6 +25,7 @@ export const StyledRoot = styled('div', props => {
|
|
|
24
25
|
};
|
|
25
26
|
});
|
|
26
27
|
StyledRoot.displayName = "StyledRoot";
|
|
28
|
+
StyledRoot.displayName = 'StyledRoot';
|
|
27
29
|
export const StyledBarContainer = styled('div', props => {
|
|
28
30
|
const {
|
|
29
31
|
$theme
|
|
@@ -40,6 +42,7 @@ export const StyledBarContainer = styled('div', props => {
|
|
|
40
42
|
};
|
|
41
43
|
});
|
|
42
44
|
StyledBarContainer.displayName = "StyledBarContainer";
|
|
45
|
+
StyledBarContainer.displayName = 'StyledBarContainer';
|
|
43
46
|
export const StyledBar = styled('div', props => {
|
|
44
47
|
const {
|
|
45
48
|
$theme,
|
|
@@ -70,6 +73,7 @@ export const StyledBar = styled('div', props => {
|
|
|
70
73
|
};
|
|
71
74
|
});
|
|
72
75
|
StyledBar.displayName = "StyledBar";
|
|
76
|
+
StyledBar.displayName = 'StyledBar';
|
|
73
77
|
export const StyledBarProgress = styled('div', props => {
|
|
74
78
|
const {
|
|
75
79
|
$theme,
|
|
@@ -151,6 +155,7 @@ export const StyledBarProgress = styled('div', props => {
|
|
|
151
155
|
};
|
|
152
156
|
});
|
|
153
157
|
StyledBarProgress.displayName = "StyledBarProgress";
|
|
158
|
+
StyledBarProgress.displayName = 'StyledBarProgress';
|
|
154
159
|
export const StyledInfiniteBar = styled('div', props => {
|
|
155
160
|
const {
|
|
156
161
|
$theme,
|
|
@@ -217,6 +222,7 @@ export const StyledInfiniteBar = styled('div', props => {
|
|
|
217
222
|
};
|
|
218
223
|
});
|
|
219
224
|
StyledInfiniteBar.displayName = "StyledInfiniteBar";
|
|
225
|
+
StyledInfiniteBar.displayName = 'StyledInfiniteBar';
|
|
220
226
|
export const StyledLabel = styled('div', props => {
|
|
221
227
|
return {
|
|
222
228
|
textAlign: 'center',
|
|
@@ -225,6 +231,7 @@ export const StyledLabel = styled('div', props => {
|
|
|
225
231
|
};
|
|
226
232
|
});
|
|
227
233
|
StyledLabel.displayName = "StyledLabel";
|
|
234
|
+
StyledLabel.displayName = 'StyledLabel';
|
|
228
235
|
const PROGRESS_BAR_ROUNDED_SIZES = {
|
|
229
236
|
[SIZE.large]: {
|
|
230
237
|
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',
|
|
@@ -262,6 +269,7 @@ export const StyledProgressBarRoundedRoot = styled('div', ({
|
|
|
262
269
|
};
|
|
263
270
|
});
|
|
264
271
|
StyledProgressBarRoundedRoot.displayName = "StyledProgressBarRoundedRoot";
|
|
272
|
+
StyledProgressBarRoundedRoot.displayName = 'StyledProgressBarRoundedRoot';
|
|
265
273
|
|
|
266
274
|
const _StyledProgressBarRoundedSvg = styled('svg', ({
|
|
267
275
|
$size
|
|
@@ -275,6 +283,7 @@ const _StyledProgressBarRoundedSvg = styled('svg', ({
|
|
|
275
283
|
});
|
|
276
284
|
|
|
277
285
|
_StyledProgressBarRoundedSvg.displayName = "_StyledProgressBarRoundedSvg";
|
|
286
|
+
_StyledProgressBarRoundedSvg.displayName = '_StyledProgressBarRoundedSvg';
|
|
278
287
|
export const StyledProgressBarRoundedSvg = withWrapper(_StyledProgressBarRoundedSvg, Styled => function StyledProgressBarRoundedSvg(props) {
|
|
279
288
|
return /*#__PURE__*/React.createElement(Styled, _extends({
|
|
280
289
|
viewBox: `0 0 ${PROGRESS_BAR_ROUNDED_SIZES[props.$size].width} ${PROGRESS_BAR_ROUNDED_SIZES[props.$size].height}`,
|
|
@@ -293,6 +302,7 @@ const _StyledProgressBarRoundedTrackBackground = styled('path', ({
|
|
|
293
302
|
});
|
|
294
303
|
|
|
295
304
|
_StyledProgressBarRoundedTrackBackground.displayName = "_StyledProgressBarRoundedTrackBackground";
|
|
305
|
+
_StyledProgressBarRoundedTrackBackground.displayName = '_StyledProgressBarRoundedTrackBackground';
|
|
296
306
|
export const StyledProgressBarRoundedTrackBackground = withWrapper(_StyledProgressBarRoundedTrackBackground, Styled => function StyledProgressBarRoundedSvg(props) {
|
|
297
307
|
return /*#__PURE__*/React.createElement(Styled, _extends({
|
|
298
308
|
d: PROGRESS_BAR_ROUNDED_SIZES[props.$size].d
|
|
@@ -316,6 +326,7 @@ const _StyledProgressBarRoundedTrackForeground = styled('path', ({
|
|
|
316
326
|
});
|
|
317
327
|
|
|
318
328
|
_StyledProgressBarRoundedTrackForeground.displayName = "_StyledProgressBarRoundedTrackForeground";
|
|
329
|
+
_StyledProgressBarRoundedTrackForeground.displayName = '_StyledProgressBarRoundedTrackForeground';
|
|
319
330
|
export const StyledProgressBarRoundedTrackForeground = withWrapper(_StyledProgressBarRoundedTrackForeground, Styled => function StyledProgressBarRoundedSvg(props) {
|
|
320
331
|
return /*#__PURE__*/React.createElement(Styled, _extends({
|
|
321
332
|
d: PROGRESS_BAR_ROUNDED_SIZES[props.$size].d
|
|
@@ -330,4 +341,5 @@ export const StyledProgressBarRoundedText = styled('div', ({
|
|
|
330
341
|
...$theme.typography[PROGRESS_BAR_ROUNDED_SIZES[$size].typography]
|
|
331
342
|
};
|
|
332
343
|
});
|
|
333
|
-
StyledProgressBarRoundedText.displayName = "StyledProgressBarRoundedText";
|
|
344
|
+
StyledProgressBarRoundedText.displayName = "StyledProgressBarRoundedText";
|
|
345
|
+
StyledProgressBarRoundedText.displayName = 'StyledProgressBarRoundedText';
|
|
@@ -16,7 +16,8 @@ function ProgressSteps({
|
|
|
16
16
|
children
|
|
17
17
|
}) {
|
|
18
18
|
const [Root, rootProps] = getOverrides(overrides.Root, StyledProgressSteps);
|
|
19
|
-
const numChildren = React.Children.count(children);
|
|
19
|
+
const numChildren = React.Children.count(children); // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
20
|
+
|
|
20
21
|
const modifiedChildren = React.Children.map(children, (child, index) => {
|
|
21
22
|
if (!child) return;
|
|
22
23
|
const childOverrides = child.props.overrides || {};
|
|
@@ -19,6 +19,8 @@ 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
|
+
|
|
22
24
|
export const StyledStep = styled('li', ({
|
|
23
25
|
$theme
|
|
24
26
|
}) => {
|
|
@@ -29,7 +31,9 @@ export const StyledStep = styled('li', ({
|
|
|
29
31
|
};
|
|
30
32
|
});
|
|
31
33
|
StyledStep.displayName = "StyledStep";
|
|
32
|
-
|
|
34
|
+
StyledStep.displayName = 'StyledStep';
|
|
35
|
+
export const StyledIconContainer = styled('div', // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
36
|
+
({
|
|
33
37
|
$theme,
|
|
34
38
|
$isActive,
|
|
35
39
|
$isCompleted,
|
|
@@ -70,11 +74,11 @@ export const StyledIconContainer = styled('div', ({
|
|
|
70
74
|
};
|
|
71
75
|
});
|
|
72
76
|
StyledIconContainer.displayName = "StyledIconContainer";
|
|
77
|
+
StyledIconContainer.displayName = 'StyledIconContainer';
|
|
73
78
|
export const StyledIcon = styled('div', ({
|
|
74
79
|
$theme,
|
|
75
80
|
$isActive,
|
|
76
|
-
$isCompleted
|
|
77
|
-
$disabled
|
|
81
|
+
$isCompleted
|
|
78
82
|
}) => {
|
|
79
83
|
let currentColor = $theme.colors.mono400;
|
|
80
84
|
let size = $theme.sizing.scale300;
|
|
@@ -106,6 +110,7 @@ export const StyledIcon = styled('div', ({
|
|
|
106
110
|
};
|
|
107
111
|
});
|
|
108
112
|
StyledIcon.displayName = "StyledIcon";
|
|
113
|
+
StyledIcon.displayName = 'StyledIcon';
|
|
109
114
|
export const StyledInnerIcon = styled('div', ({
|
|
110
115
|
$theme
|
|
111
116
|
}) => {
|
|
@@ -122,6 +127,7 @@ export const StyledInnerIcon = styled('div', ({
|
|
|
122
127
|
};
|
|
123
128
|
});
|
|
124
129
|
StyledInnerIcon.displayName = "StyledInnerIcon";
|
|
130
|
+
StyledInnerIcon.displayName = 'StyledInnerIcon';
|
|
125
131
|
export const StyledContent = styled('div', ({
|
|
126
132
|
$theme
|
|
127
133
|
}) => {
|
|
@@ -131,6 +137,7 @@ export const StyledContent = styled('div', ({
|
|
|
131
137
|
};
|
|
132
138
|
});
|
|
133
139
|
StyledContent.displayName = "StyledContent";
|
|
140
|
+
StyledContent.displayName = 'StyledContent';
|
|
134
141
|
export const StyledContentTitle = styled('div', ({
|
|
135
142
|
$theme,
|
|
136
143
|
$isActive,
|
|
@@ -152,6 +159,7 @@ export const StyledContentTitle = styled('div', ({
|
|
|
152
159
|
};
|
|
153
160
|
});
|
|
154
161
|
StyledContentTitle.displayName = "StyledContentTitle";
|
|
162
|
+
StyledContentTitle.displayName = 'StyledContentTitle';
|
|
155
163
|
export const StyledContentTail = styled('div', ({
|
|
156
164
|
$theme,
|
|
157
165
|
$isCompleted,
|
|
@@ -184,6 +192,7 @@ export const StyledContentTail = styled('div', ({
|
|
|
184
192
|
};
|
|
185
193
|
});
|
|
186
194
|
StyledContentTail.displayName = "StyledContentTail";
|
|
195
|
+
StyledContentTail.displayName = 'StyledContentTail';
|
|
187
196
|
export const StyledContentDescription = styled('div', ({
|
|
188
197
|
$theme
|
|
189
198
|
}) => {
|
|
@@ -192,9 +201,8 @@ export const StyledContentDescription = styled('div', ({
|
|
|
192
201
|
};
|
|
193
202
|
});
|
|
194
203
|
StyledContentDescription.displayName = "StyledContentDescription";
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
}) => {
|
|
204
|
+
StyledContentDescription.displayName = 'StyledContentDescription';
|
|
205
|
+
export const StyledNumberStep = styled('li', () => {
|
|
198
206
|
return {
|
|
199
207
|
listStyleType: 'none',
|
|
200
208
|
position: 'relative',
|
|
@@ -202,11 +210,11 @@ export const StyledNumberStep = styled('li', ({
|
|
|
202
210
|
};
|
|
203
211
|
});
|
|
204
212
|
StyledNumberStep.displayName = "StyledNumberStep";
|
|
213
|
+
StyledNumberStep.displayName = 'StyledNumberStep';
|
|
205
214
|
export const StyledNumberIcon = styled('div', ({
|
|
206
215
|
$theme,
|
|
207
216
|
$isActive,
|
|
208
|
-
$isCompleted
|
|
209
|
-
$disabled
|
|
217
|
+
$isCompleted
|
|
210
218
|
}) => {
|
|
211
219
|
let backgroundColor = $theme.colors.mono400;
|
|
212
220
|
let color = $theme.colors.contentStateDisabled;
|
|
@@ -247,11 +255,10 @@ export const StyledNumberIcon = styled('div', ({
|
|
|
247
255
|
};
|
|
248
256
|
});
|
|
249
257
|
StyledNumberIcon.displayName = "StyledNumberIcon";
|
|
258
|
+
StyledNumberIcon.displayName = 'StyledNumberIcon';
|
|
250
259
|
export const StyledNumberContentTail = styled('div', ({
|
|
251
260
|
$theme,
|
|
252
|
-
$
|
|
253
|
-
$isCompleted,
|
|
254
|
-
$disabled
|
|
261
|
+
$isCompleted
|
|
255
262
|
}) => {
|
|
256
263
|
let currentColor = $theme.colors.mono300;
|
|
257
264
|
let size = $theme.sizing.scale950;
|
|
@@ -276,4 +283,5 @@ export const StyledNumberContentTail = styled('div', ({
|
|
|
276
283
|
display: 'inline-block'
|
|
277
284
|
};
|
|
278
285
|
});
|
|
279
|
-
StyledNumberContentTail.displayName = "StyledNumberContentTail";
|
|
286
|
+
StyledNumberContentTail.displayName = "StyledNumberContentTail";
|
|
287
|
+
StyledNumberContentTail.displayName = 'StyledNumberContentTail';
|
|
@@ -48,10 +48,13 @@ class StatefulRadioGroupContainer extends React.Component {
|
|
|
48
48
|
|
|
49
49
|
render() {
|
|
50
50
|
const {
|
|
51
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
51
52
|
children = childProps => null,
|
|
52
53
|
// eslint-disable-line no-unused-vars
|
|
54
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
53
55
|
initialState,
|
|
54
56
|
// eslint-disable-line no-unused-vars
|
|
57
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
55
58
|
stateReducer,
|
|
56
59
|
// eslint-disable-line no-unused-vars
|
|
57
60
|
...restProps
|
|
@@ -161,6 +161,7 @@ export const RadioGroupRoot = styled('div', props => {
|
|
|
161
161
|
};
|
|
162
162
|
});
|
|
163
163
|
RadioGroupRoot.displayName = "RadioGroupRoot";
|
|
164
|
+
RadioGroupRoot.displayName = 'RadioGroupRoot';
|
|
164
165
|
export const Root = styled('label', props => {
|
|
165
166
|
const {
|
|
166
167
|
$disabled,
|
|
@@ -185,6 +186,7 @@ export const Root = styled('label', props => {
|
|
|
185
186
|
};
|
|
186
187
|
});
|
|
187
188
|
Root.displayName = "Root";
|
|
189
|
+
Root.displayName = 'Root';
|
|
188
190
|
export const RadioMarkInner = styled('div', props => {
|
|
189
191
|
const {
|
|
190
192
|
animation,
|
|
@@ -203,6 +205,7 @@ export const RadioMarkInner = styled('div', props => {
|
|
|
203
205
|
};
|
|
204
206
|
});
|
|
205
207
|
RadioMarkInner.displayName = "RadioMarkInner";
|
|
208
|
+
RadioMarkInner.displayName = 'RadioMarkInner';
|
|
206
209
|
export const RadioMarkOuter = styled('div', props => {
|
|
207
210
|
const {
|
|
208
211
|
animation,
|
|
@@ -232,6 +235,7 @@ export const RadioMarkOuter = styled('div', props => {
|
|
|
232
235
|
};
|
|
233
236
|
});
|
|
234
237
|
RadioMarkOuter.displayName = "RadioMarkOuter";
|
|
238
|
+
RadioMarkOuter.displayName = 'RadioMarkOuter';
|
|
235
239
|
export const Label = styled('div', props => {
|
|
236
240
|
const {
|
|
237
241
|
$theme: {
|
|
@@ -244,9 +248,10 @@ export const Label = styled('div', props => {
|
|
|
244
248
|
color: getLabelColor(props),
|
|
245
249
|
...typography.LabelMedium
|
|
246
250
|
};
|
|
247
|
-
});
|
|
248
|
-
|
|
251
|
+
});
|
|
249
252
|
Label.displayName = "Label";
|
|
253
|
+
Label.displayName = 'Label'; // tricky style for focus event cause display: none doesn't work
|
|
254
|
+
|
|
250
255
|
export const Input = styled('input', {
|
|
251
256
|
width: 0,
|
|
252
257
|
height: 0,
|
|
@@ -262,6 +267,7 @@ export const Input = styled('input', {
|
|
|
262
267
|
position: 'absolute'
|
|
263
268
|
});
|
|
264
269
|
Input.displayName = "Input";
|
|
270
|
+
Input.displayName = 'Input';
|
|
265
271
|
export const Description = styled('div', props => {
|
|
266
272
|
const {
|
|
267
273
|
$theme,
|
|
@@ -278,4 +284,5 @@ export const Description = styled('div', props => {
|
|
|
278
284
|
maxWidth: '240px'
|
|
279
285
|
};
|
|
280
286
|
});
|
|
281
|
-
Description.displayName = "Description";
|
|
287
|
+
Description.displayName = "Description";
|
|
288
|
+
Description.displayName = 'Description';
|
|
@@ -79,7 +79,8 @@ 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"
|
|
82
|
+
role: "radio" // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
83
|
+
,
|
|
83
84
|
ref: starRef,
|
|
84
85
|
tabIndex: isFocusable ? '0' : '-1',
|
|
85
86
|
"aria-setsize": 5,
|
package/es/rating/star-rating.js
CHANGED
|
@@ -81,7 +81,8 @@ 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"
|
|
84
|
+
title: "rating" // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
85
|
+
,
|
|
85
86
|
ref: starRef,
|
|
86
87
|
tabIndex: isFocusable ? '0' : '-1',
|
|
87
88
|
"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 const StyledRoot = styled('ul', ({
|
|
10
11
|
$theme
|
|
11
12
|
}) => {
|
|
@@ -25,6 +26,7 @@ export const StyledRoot = styled('ul', ({
|
|
|
25
26
|
};
|
|
26
27
|
});
|
|
27
28
|
StyledRoot.displayName = "StyledRoot";
|
|
29
|
+
StyledRoot.displayName = 'StyledRoot';
|
|
28
30
|
export const StyledStar = styled('li', ({
|
|
29
31
|
$theme,
|
|
30
32
|
$isActive,
|
|
@@ -89,6 +91,7 @@ export const StyledStar = styled('li', ({
|
|
|
89
91
|
return styles;
|
|
90
92
|
});
|
|
91
93
|
StyledStar.displayName = "StyledStar";
|
|
94
|
+
StyledStar.displayName = 'StyledStar';
|
|
92
95
|
export const StyledEmoticon = styled('li', ({
|
|
93
96
|
$theme,
|
|
94
97
|
$isActive,
|
|
@@ -129,4 +132,5 @@ export const StyledEmoticon = styled('li', ({
|
|
|
129
132
|
};
|
|
130
133
|
return styles;
|
|
131
134
|
});
|
|
132
|
-
StyledEmoticon.displayName = "StyledEmoticon";
|
|
135
|
+
StyledEmoticon.displayName = "StyledEmoticon";
|
|
136
|
+
StyledEmoticon.displayName = 'StyledEmoticon';
|
|
@@ -8,8 +8,6 @@ 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 */
|
|
13
11
|
import * as React from 'react';
|
|
14
12
|
import { StyledInput, StyledInputSizer } from './styled-components';
|
|
15
13
|
import { getOverrides } from '../helpers/overrides';
|
|
@@ -33,7 +31,8 @@ export default class AutosizeInput extends React.Component {
|
|
|
33
31
|
componentDidMount() {
|
|
34
32
|
this.mounted = true;
|
|
35
33
|
this.updateInputWidth();
|
|
36
|
-
}
|
|
34
|
+
} // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
35
|
+
|
|
37
36
|
|
|
38
37
|
componentDidUpdate(prevProps, prevState) {
|
|
39
38
|
this.updateInputWidth();
|
package/es/select/dropdown.js
CHANGED
|
@@ -116,7 +116,8 @@ export default class SelectDropdown extends React.Component {
|
|
|
116
116
|
$type: type,
|
|
117
117
|
$width: width
|
|
118
118
|
};
|
|
119
|
-
}
|
|
119
|
+
} // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
120
|
+
|
|
120
121
|
|
|
121
122
|
render() {
|
|
122
123
|
// TODO(#185) Add no-results and loading states to menu
|
package/es/select/multi-value.js
CHANGED
|
@@ -8,7 +8,8 @@ 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';
|
|
11
|
+
import { Tag, VARIANT as TAG_VARIANT } from '../tag'; // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
12
|
+
|
|
12
13
|
export default function MultiValue(props) {
|
|
13
14
|
const {
|
|
14
15
|
overrides = {},
|
|
@@ -8,15 +8,13 @@ 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 */
|
|
13
11
|
import * as React from 'react';
|
|
14
12
|
import { getOverrides, mergeOverrides } from '../helpers/overrides';
|
|
15
13
|
import DeleteAlt from '../icon/delete-alt';
|
|
16
14
|
import TriangleDownIcon from '../icon/triangle-down';
|
|
17
15
|
import SearchIconComponent from '../icon/search';
|
|
18
16
|
import { LocaleContext } from '../locale';
|
|
19
|
-
import { Popover, PLACEMENT } from '../popover';
|
|
17
|
+
import { Popover, PLACEMENT, ACCESSIBILITY_TYPE } from '../popover';
|
|
20
18
|
import { UIDConsumer } from 'react-uid';
|
|
21
19
|
import AutosizeInput from './autosize-input';
|
|
22
20
|
import { TYPE, STATE_CHANGE_TYPE, SIZE } from './constants';
|
|
@@ -35,6 +33,7 @@ const isLeftClick = event => event.button !== null && event.button !== undefined
|
|
|
35
33
|
|
|
36
34
|
const containsNode = (parent, child) => {
|
|
37
35
|
if (typeof document !== 'undefined') {
|
|
36
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
38
37
|
return child && parent && parent.contains(child);
|
|
39
38
|
}
|
|
40
39
|
};
|
|
@@ -694,7 +693,7 @@ class Select extends React.Component {
|
|
|
694
693
|
}, "Loading"));
|
|
695
694
|
}
|
|
696
695
|
|
|
697
|
-
renderValue(valueArray
|
|
696
|
+
renderValue(valueArray) {
|
|
698
697
|
const {
|
|
699
698
|
overrides = {}
|
|
700
699
|
} = this.props;
|
|
@@ -751,13 +750,10 @@ class Select extends React.Component {
|
|
|
751
750
|
|
|
752
751
|
if (!this.props.searchable) {
|
|
753
752
|
return /*#__PURE__*/React.createElement(InputContainer, _extends({
|
|
754
|
-
role: "listbox",
|
|
755
753
|
"aria-activedescendant": this.state.activeDescendant,
|
|
756
|
-
"aria-expanded": isOpen,
|
|
757
754
|
"aria-describedby": this.props['aria-describedby'],
|
|
758
755
|
"aria-errormessage": this.props['aria-errormessage'],
|
|
759
756
|
"aria-disabled": this.props.disabled,
|
|
760
|
-
"aria-label": label,
|
|
761
757
|
"aria-labelledby": this.props['aria-labelledby'],
|
|
762
758
|
"aria-owns": this.state.isOpen ? listboxId : null,
|
|
763
759
|
"aria-required": this.props.required || null,
|
|
@@ -811,7 +807,8 @@ class Select extends React.Component {
|
|
|
811
807
|
|
|
812
808
|
if (!this.props.clearable || this.props.disabled || this.props.isLoading || !isValueEntered) {
|
|
813
809
|
return;
|
|
814
|
-
}
|
|
810
|
+
} // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
811
|
+
|
|
815
812
|
|
|
816
813
|
const {
|
|
817
814
|
$size,
|
|
@@ -840,7 +837,8 @@ class Select extends React.Component {
|
|
|
840
837
|
renderArrow() {
|
|
841
838
|
if (this.props.type !== TYPE.select) {
|
|
842
839
|
return null;
|
|
843
|
-
}
|
|
840
|
+
} // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
841
|
+
|
|
844
842
|
|
|
845
843
|
const {
|
|
846
844
|
$size,
|
|
@@ -997,11 +995,13 @@ class Select extends React.Component {
|
|
|
997
995
|
// apply the ref to the Root component below it would be overwritten before the popover
|
|
998
996
|
// renders it. Using this strategy, we will get a ref to the popover, then reuse its
|
|
999
997
|
// anchorRef so we can check if clicks are on the select component or not.
|
|
998
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1000
999
|
, _extends({
|
|
1001
1000
|
innerRef: ref => {
|
|
1002
1001
|
if (!ref) return;
|
|
1003
1002
|
this.anchor = ref.anchorRef;
|
|
1004
1003
|
},
|
|
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
|
|
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))))));
|
|
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 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;
|
|
@@ -36,8 +36,10 @@ class StatefulSelectContainer extends React.Component {
|
|
|
36
36
|
render() {
|
|
37
37
|
const {
|
|
38
38
|
children,
|
|
39
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
39
40
|
initialState,
|
|
40
41
|
// eslint-disable-line no-unused-vars
|
|
42
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
41
43
|
stateReducer,
|
|
42
44
|
// eslint-disable-line no-unused-vars
|
|
43
45
|
...restProps
|