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
|
@@ -98,7 +98,8 @@ function getAnchorStyles(props) {
|
|
|
98
98
|
return {};
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
|
-
}
|
|
101
|
+
} // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
102
|
+
|
|
102
103
|
|
|
103
104
|
export const StyledRoot = styled('div', props => {
|
|
104
105
|
return {
|
|
@@ -111,6 +112,7 @@ export const StyledRoot = styled('div', props => {
|
|
|
111
112
|
};
|
|
112
113
|
});
|
|
113
114
|
StyledRoot.displayName = "StyledRoot";
|
|
115
|
+
StyledRoot.displayName = 'StyledRoot';
|
|
114
116
|
export const StyledBackdrop = styled('div', props => {
|
|
115
117
|
const {
|
|
116
118
|
$animating,
|
|
@@ -139,6 +141,7 @@ export const StyledBackdrop = styled('div', props => {
|
|
|
139
141
|
};
|
|
140
142
|
});
|
|
141
143
|
StyledBackdrop.displayName = "StyledBackdrop";
|
|
144
|
+
StyledBackdrop.displayName = 'StyledBackdrop';
|
|
142
145
|
export const StyledDrawerContainer = styled('div', props => {
|
|
143
146
|
const {
|
|
144
147
|
$animating,
|
|
@@ -163,6 +166,7 @@ export const StyledDrawerContainer = styled('div', props => {
|
|
|
163
166
|
};
|
|
164
167
|
});
|
|
165
168
|
StyledDrawerContainer.displayName = "StyledDrawerContainer";
|
|
169
|
+
StyledDrawerContainer.displayName = 'StyledDrawerContainer';
|
|
166
170
|
export const StyledDrawerBody = styled('div', props => {
|
|
167
171
|
const {
|
|
168
172
|
$theme
|
|
@@ -178,6 +182,7 @@ export const StyledDrawerBody = styled('div', props => {
|
|
|
178
182
|
};
|
|
179
183
|
});
|
|
180
184
|
StyledDrawerBody.displayName = "StyledDrawerBody";
|
|
185
|
+
StyledDrawerBody.displayName = 'StyledDrawerBody';
|
|
181
186
|
export const StyledClose = styled('button', props => {
|
|
182
187
|
const {
|
|
183
188
|
$theme,
|
|
@@ -227,7 +232,9 @@ export const StyledClose = styled('button', props => {
|
|
|
227
232
|
};
|
|
228
233
|
});
|
|
229
234
|
StyledClose.displayName = "StyledClose";
|
|
235
|
+
StyledClose.displayName = 'StyledClose';
|
|
230
236
|
export const Hidden = styled('div', {
|
|
231
237
|
display: 'none'
|
|
232
238
|
});
|
|
233
|
-
Hidden.displayName = "Hidden";
|
|
239
|
+
Hidden.displayName = "Hidden";
|
|
240
|
+
Hidden.displayName = 'Hidden';
|
|
@@ -40,87 +40,91 @@ function FileUploader(props) {
|
|
|
40
40
|
const [SpinnerComponent, spinnerProps] = getOverrides(overrides.Spinner, Spinner);
|
|
41
41
|
const [ProgressBarComponent, progressBarProps] = getOverrides(overrides.ProgressBar, ProgressBar);
|
|
42
42
|
const afterFileDrop = !!(props.progressAmount || props.progressMessage || props.errorMessage);
|
|
43
|
-
return
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
43
|
+
return (
|
|
44
|
+
/*#__PURE__*/
|
|
45
|
+
// @ts-expect-error todo(flow->ts): dropzone api
|
|
46
|
+
React.createElement(Dropzone, _extends({}, props, {
|
|
47
|
+
disabled: props.disabled || afterFileDrop
|
|
48
|
+
}), renderProps => {
|
|
49
|
+
const {
|
|
50
|
+
getRootProps,
|
|
51
|
+
getInputProps,
|
|
52
|
+
open,
|
|
53
|
+
...styleProps
|
|
54
|
+
} = renderProps;
|
|
55
|
+
const prefixedStyledProps = prependStyleProps({ ...styleProps,
|
|
56
|
+
isDisabled: props.disabled,
|
|
57
|
+
afterFileDrop
|
|
58
|
+
});
|
|
59
|
+
const getRootPropsArgs = { ...(props.disableClick ? {
|
|
60
|
+
onClick: evt => evt.preventDefault()
|
|
61
|
+
} : {}),
|
|
62
|
+
tabIndex: -1
|
|
63
|
+
};
|
|
64
|
+
return /*#__PURE__*/React.createElement(LocaleContext.Consumer, null, locale => /*#__PURE__*/React.createElement(Root, _extends({
|
|
65
|
+
"data-baseweb": "file-uploader"
|
|
66
|
+
}, prefixedStyledProps, rootProps), /*#__PURE__*/React.createElement(FileDragAndDrop, _extends({}, getRootProps(getRootPropsArgs), prefixedStyledProps, fileDragAndDropProps), !afterFileDrop && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ContentMessage, _extends({}, prefixedStyledProps, contentMessageProps), locale.fileuploader.dropFilesToUpload), /*#__PURE__*/React.createElement(ContentSeparator, _extends({}, prefixedStyledProps, contentSeparatorProps), locale.fileuploader.or), /*#__PURE__*/React.createElement(ButtonComponent, _extends({
|
|
67
|
+
disabled: props.disabled,
|
|
68
|
+
kind: KIND.secondary,
|
|
69
|
+
shape: SHAPE.pill,
|
|
70
|
+
size: BUTTON_SIZE.compact,
|
|
71
|
+
onClick: open,
|
|
72
|
+
role: "button",
|
|
73
|
+
overrides: {
|
|
74
|
+
BaseButton: {
|
|
75
|
+
style: ({
|
|
76
|
+
$theme
|
|
77
|
+
}) => ({
|
|
78
|
+
marginTop: $theme.sizing.scale500
|
|
79
|
+
})
|
|
80
|
+
}
|
|
77
81
|
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
}
|
|
82
|
+
}, prefixedStyledProps, buttonProps), locale.fileuploader.browseFiles)), afterFileDrop && /*#__PURE__*/React.createElement(React.Fragment, null, typeof props.progressAmount === 'number' ? /*#__PURE__*/React.createElement(ProgressBarComponent, _extends({
|
|
83
|
+
value: props.progressAmount,
|
|
84
|
+
overrides: {
|
|
85
|
+
BarProgress: {
|
|
86
|
+
style: ({
|
|
87
|
+
$theme
|
|
88
|
+
}) => ({
|
|
89
|
+
backgroundColor: props.errorMessage ? $theme.colors.negative : $theme.colors.accent
|
|
90
|
+
})
|
|
91
|
+
}
|
|
88
92
|
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
marginBottom: theme.sizing.scale300
|
|
94
|
-
}
|
|
95
|
-
}, spinnerProps)), (props.errorMessage || props.progressMessage) && props.errorMessage ? /*#__PURE__*/React.createElement(ErrorMessage, _extends({}, prefixedStyledProps, errorMessageProps), props.errorMessage) : /*#__PURE__*/React.createElement(ContentMessage, _extends({}, prefixedStyledProps, contentMessageProps), props.progressMessage), props.errorMessage ? /*#__PURE__*/React.createElement(RetryButtonComponent, _extends({
|
|
96
|
-
kind: KIND.tertiary,
|
|
97
|
-
onClick: () => {
|
|
98
|
-
props.onRetry && props.onRetry();
|
|
99
|
-
},
|
|
100
|
-
"aria-invalid": Boolean(props.errorMessage),
|
|
101
|
-
"aria-describedby": props['aria-describedby'],
|
|
102
|
-
"aria-errormessage": props.errorMessage
|
|
103
|
-
}, retryButtonProps), locale.fileuploader.retry) : /*#__PURE__*/React.createElement(CancelButtonComponent, _extends({
|
|
104
|
-
kind: KIND.tertiary,
|
|
105
|
-
onClick: () => {
|
|
106
|
-
props.onCancel && props.onCancel();
|
|
107
|
-
},
|
|
108
|
-
"aria-describedby": props['aria-describedby'],
|
|
109
|
-
overrides: {
|
|
110
|
-
BaseButton: {
|
|
111
|
-
style: ({
|
|
112
|
-
$theme
|
|
113
|
-
}) => ({
|
|
114
|
-
color: $theme.colors.contentNegative
|
|
115
|
-
})
|
|
93
|
+
}, progressBarProps)) : props.errorMessage ? null : /*#__PURE__*/React.createElement(SpinnerComponent, _extends({
|
|
94
|
+
$size: SPINNER_SIZE.medium,
|
|
95
|
+
$style: {
|
|
96
|
+
marginBottom: theme.sizing.scale300
|
|
116
97
|
}
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
98
|
+
}, spinnerProps)), (props.errorMessage || props.progressMessage) && props.errorMessage ? /*#__PURE__*/React.createElement(ErrorMessage, _extends({}, prefixedStyledProps, errorMessageProps), props.errorMessage) : /*#__PURE__*/React.createElement(ContentMessage, _extends({}, prefixedStyledProps, contentMessageProps), props.progressMessage), props.errorMessage ? /*#__PURE__*/React.createElement(RetryButtonComponent, _extends({
|
|
99
|
+
kind: KIND.tertiary,
|
|
100
|
+
onClick: () => {
|
|
101
|
+
props.onRetry && props.onRetry();
|
|
102
|
+
},
|
|
103
|
+
"aria-invalid": Boolean(props.errorMessage),
|
|
104
|
+
"aria-describedby": props['aria-describedby'],
|
|
105
|
+
"aria-errormessage": props.errorMessage
|
|
106
|
+
}, retryButtonProps), locale.fileuploader.retry) : /*#__PURE__*/React.createElement(CancelButtonComponent, _extends({
|
|
107
|
+
kind: KIND.tertiary,
|
|
108
|
+
onClick: () => {
|
|
109
|
+
props.onCancel && props.onCancel();
|
|
110
|
+
},
|
|
111
|
+
"aria-describedby": props['aria-describedby'],
|
|
112
|
+
overrides: {
|
|
113
|
+
BaseButton: {
|
|
114
|
+
style: ({
|
|
115
|
+
$theme
|
|
116
|
+
}) => ({
|
|
117
|
+
color: $theme.colors.contentNegative
|
|
118
|
+
})
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}, cancelButtonProps), locale.fileuploader.cancel))), /*#__PURE__*/React.createElement(HiddenInput, _extends({
|
|
122
|
+
"aria-invalid": Boolean(props.errorMessage) || null,
|
|
123
|
+
"aria-describedby": props['aria-describedby'],
|
|
124
|
+
"aria-errormessage": props.errorMessage || null
|
|
125
|
+
}, getInputProps(), prefixedStyledProps, hiddenInputProps))));
|
|
126
|
+
})
|
|
127
|
+
);
|
|
124
128
|
}
|
|
125
129
|
|
|
126
130
|
FileUploader.defaultProps = {
|
|
@@ -39,6 +39,7 @@ export const StyledFileDragAndDrop = styled('div', props => {
|
|
|
39
39
|
};
|
|
40
40
|
});
|
|
41
41
|
StyledFileDragAndDrop.displayName = "StyledFileDragAndDrop";
|
|
42
|
+
StyledFileDragAndDrop.displayName = 'StyledFileDragAndDrop';
|
|
42
43
|
export const StyledContentMessage = styled('div', ({
|
|
43
44
|
$theme,
|
|
44
45
|
$afterFileDrop,
|
|
@@ -49,6 +50,7 @@ export const StyledContentMessage = styled('div', ({
|
|
|
49
50
|
marginBottom: $afterFileDrop ? $theme.sizing.scale100 : null
|
|
50
51
|
}));
|
|
51
52
|
StyledContentMessage.displayName = "StyledContentMessage";
|
|
53
|
+
StyledContentMessage.displayName = 'StyledContentMessage';
|
|
52
54
|
export const StyledContentSeparator = StyledContentMessage;
|
|
53
55
|
export const StyledErrorMessage = styled('div', props => ({ ...props.$theme.typography.LabelMedium,
|
|
54
56
|
color: props.$theme.colors.negative,
|
|
@@ -56,9 +58,12 @@ export const StyledErrorMessage = styled('div', props => ({ ...props.$theme.typo
|
|
|
56
58
|
marginBottom: props.$afterFileDrop ? props.$theme.sizing.scale100 : null
|
|
57
59
|
}));
|
|
58
60
|
StyledErrorMessage.displayName = "StyledErrorMessage";
|
|
61
|
+
StyledErrorMessage.displayName = 'StyledErrorMessage';
|
|
59
62
|
export const StyledRoot = styled('div', props => ({ ...props.$theme.typography.font300,
|
|
60
63
|
color: props.$theme.colors.fileUploaderMessageColor
|
|
61
64
|
}));
|
|
62
65
|
StyledRoot.displayName = "StyledRoot";
|
|
66
|
+
StyledRoot.displayName = 'StyledRoot';
|
|
63
67
|
export const StyledHiddenInput = styled('input', {});
|
|
64
|
-
StyledHiddenInput.displayName = "StyledHiddenInput";
|
|
68
|
+
StyledHiddenInput.displayName = "StyledHiddenInput";
|
|
69
|
+
StyledHiddenInput.displayName = 'StyledHiddenInput';
|
|
@@ -31,18 +31,16 @@ export const flexGridItemMediaQueryStyle = ({
|
|
|
31
31
|
// See https://github.com/uber/baseweb/pull/1748
|
|
32
32
|
width: `calc(${widthCalc} - .5px)`,
|
|
33
33
|
// Add colGap except at end of row
|
|
34
|
-
[marginDirection]: colGapQuantity && (
|
|
35
|
-
(itemIndex + 1) % colCount !== 0 ? colGap : 0),
|
|
34
|
+
[marginDirection]: colGapQuantity && ((itemIndex + 1) % colCount !== 0 ? colGap : 0),
|
|
36
35
|
// Add rowGap except at end of column
|
|
37
|
-
marginBottom: rowGapQuantity && (
|
|
38
|
-
~~(itemIndex / colCount) !== ~~((itemCount - 1) / colCount) ? rowGap : 0),
|
|
36
|
+
marginBottom: rowGapQuantity && (~~(itemIndex / colCount) !== ~~((itemCount - 1) / colCount) ? rowGap : 0),
|
|
39
37
|
// Add space to make up for missing columns if last row ends early
|
|
40
38
|
...(itemIndex === itemCount - 1 && (itemIndex + 1) % colCount !== 0 ? {
|
|
41
39
|
[marginDirection]: `calc(${colCount - itemIndex % colCount - 1} * (${colGap} + ${widthCalc}))`
|
|
42
40
|
} : {})
|
|
43
41
|
});
|
|
44
42
|
};
|
|
45
|
-
export
|
|
43
|
+
export function getResponsiveValue(responsive, i) {
|
|
46
44
|
if (!responsive) {
|
|
47
45
|
return null;
|
|
48
46
|
}
|
|
@@ -52,7 +50,7 @@ export const getResponsiveValue = (responsive, i) => {
|
|
|
52
50
|
}
|
|
53
51
|
|
|
54
52
|
return responsive[i] || responsive[responsive.length - 1];
|
|
55
|
-
}
|
|
53
|
+
}
|
|
56
54
|
export const flexGridItemStyle = ({
|
|
57
55
|
$flexGridColumnCount,
|
|
58
56
|
$flexGridColumnGap,
|
|
@@ -129,6 +127,7 @@ const FlexGridItem = ({
|
|
|
129
127
|
const blockOverrides = overrides ? mergeOverrides(flexGridItemOverrides, overrides) : flexGridItemOverrides;
|
|
130
128
|
return /*#__PURE__*/React.createElement(Block // coerced to any because of how react components are typed.
|
|
131
129
|
// cannot guarantee an html element
|
|
130
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
132
131
|
, _extends({
|
|
133
132
|
ref: forwardedRef,
|
|
134
133
|
as: as,
|
|
@@ -53,7 +53,10 @@ const FlexGrid = ({
|
|
|
53
53
|
}));
|
|
54
54
|
};
|
|
55
55
|
|
|
56
|
-
const FlexGridComponent = /*#__PURE__*/React.forwardRef((props, ref) =>
|
|
56
|
+
const FlexGridComponent = /*#__PURE__*/React.forwardRef((props, ref) =>
|
|
57
|
+
/*#__PURE__*/
|
|
58
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
59
|
+
React.createElement(FlexGrid, _extends({}, props, {
|
|
57
60
|
forwardedRef: ref
|
|
58
61
|
})));
|
|
59
62
|
FlexGridComponent.displayName = 'FlexGrid';
|
|
@@ -24,6 +24,7 @@ export const Label = styled('label', props => {
|
|
|
24
24
|
};
|
|
25
25
|
});
|
|
26
26
|
Label.displayName = "Label";
|
|
27
|
+
Label.displayName = 'Label';
|
|
27
28
|
export const LabelContainer = styled('span', ({
|
|
28
29
|
$theme: {
|
|
29
30
|
sizing
|
|
@@ -37,6 +38,7 @@ export const LabelContainer = styled('span', ({
|
|
|
37
38
|
marginLeft: 0
|
|
38
39
|
}));
|
|
39
40
|
LabelContainer.displayName = "LabelContainer";
|
|
41
|
+
LabelContainer.displayName = 'LabelContainer';
|
|
40
42
|
export const LabelEndEnhancer = styled('span', ({
|
|
41
43
|
$disabled,
|
|
42
44
|
$counterError,
|
|
@@ -50,6 +52,7 @@ export const LabelEndEnhancer = styled('span', ({
|
|
|
50
52
|
color: $counterError ? colors.negative400 : $disabled ? colors.contentSecondary : colors.contentPrimary
|
|
51
53
|
}));
|
|
52
54
|
LabelEndEnhancer.displayName = "LabelEndEnhancer";
|
|
55
|
+
LabelEndEnhancer.displayName = 'LabelEndEnhancer';
|
|
53
56
|
export const Caption = styled('div', props => {
|
|
54
57
|
const {
|
|
55
58
|
$error,
|
|
@@ -81,6 +84,7 @@ export const Caption = styled('div', props => {
|
|
|
81
84
|
};
|
|
82
85
|
});
|
|
83
86
|
Caption.displayName = "Caption";
|
|
87
|
+
Caption.displayName = 'Caption';
|
|
84
88
|
export const ControlContainer = styled('div', props => {
|
|
85
89
|
const {
|
|
86
90
|
$theme: {
|
|
@@ -92,4 +96,5 @@ export const ControlContainer = styled('div', props => {
|
|
|
92
96
|
marginBottom: sizing.scale600
|
|
93
97
|
};
|
|
94
98
|
});
|
|
95
|
-
ControlContainer.displayName = "ControlContainer";
|
|
99
|
+
ControlContainer.displayName = "ControlContainer";
|
|
100
|
+
ControlContainer.displayName = 'ControlContainer';
|
|
@@ -32,6 +32,7 @@ export const Root = styled('nav', props => {
|
|
|
32
32
|
};
|
|
33
33
|
});
|
|
34
34
|
Root.displayName = "Root";
|
|
35
|
+
Root.displayName = 'Root';
|
|
35
36
|
export const NavigationItem = styled('li', props => {
|
|
36
37
|
const {
|
|
37
38
|
$theme
|
|
@@ -47,6 +48,7 @@ export const NavigationItem = styled('li', props => {
|
|
|
47
48
|
};
|
|
48
49
|
});
|
|
49
50
|
NavigationItem.displayName = "NavigationItem";
|
|
51
|
+
NavigationItem.displayName = 'NavigationItem';
|
|
50
52
|
export const NavigationList = styled('ul', props => {
|
|
51
53
|
const {
|
|
52
54
|
$align,
|
|
@@ -80,4 +82,5 @@ export const NavigationList = styled('ul', props => {
|
|
|
80
82
|
marginRight: 0
|
|
81
83
|
};
|
|
82
84
|
});
|
|
83
|
-
NavigationList.displayName = "NavigationList";
|
|
85
|
+
NavigationList.displayName = "NavigationList";
|
|
86
|
+
NavigationList.displayName = 'NavigationList';
|
|
@@ -161,8 +161,10 @@ export const StyledBody = styled('div', props => {
|
|
|
161
161
|
};
|
|
162
162
|
});
|
|
163
163
|
StyledBody.displayName = "StyledBody";
|
|
164
|
+
StyledBody.displayName = 'StyledBody';
|
|
164
165
|
export const StyledArrow = styled('div', props => {
|
|
165
166
|
return { ...clampArrowStyle(props.$arrowOffset, props.$placement, props.$theme.colors.backgroundPrimary)
|
|
166
167
|
};
|
|
167
168
|
});
|
|
168
|
-
StyledArrow.displayName = "StyledArrow";
|
|
169
|
+
StyledArrow.displayName = "StyledArrow";
|
|
170
|
+
StyledArrow.displayName = 'StyledArrow';
|
package/es/helpers/overrides.js
CHANGED
|
@@ -6,15 +6,15 @@ Copyright (c) Uber Technologies, Inc.
|
|
|
6
6
|
This source code is licensed under the MIT license found in the
|
|
7
7
|
LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
-
|
|
10
|
-
/* eslint-disable cup/no-undef */
|
|
11
9
|
import * as React from 'react';
|
|
12
10
|
import { isValidElementType } from 'react-is';
|
|
13
11
|
import deepMerge from '../utils/deep-merge'; // Object -> any
|
|
12
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
14
13
|
|
|
15
14
|
/**
|
|
16
15
|
* Given an override argument, returns the component implementation override if it exists
|
|
17
16
|
*/
|
|
17
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
18
18
|
export function getOverride(_override) {
|
|
19
19
|
if (isValidElementType(_override)) {
|
|
20
20
|
return _override;
|
|
@@ -24,6 +24,7 @@ export function getOverride(_override) {
|
|
|
24
24
|
if (_override && typeof _override === 'object') {
|
|
25
25
|
// Remove this 'any' once this flow issue is fixed:
|
|
26
26
|
// https://github.com/facebook/flow/issues/6666
|
|
27
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
27
28
|
return _override.component;
|
|
28
29
|
} // null/undefined
|
|
29
30
|
|
|
@@ -61,11 +62,13 @@ export function getOverrideProps(_override) {
|
|
|
61
62
|
export function toObjectOverride(_override) {
|
|
62
63
|
if (isValidElementType(_override)) {
|
|
63
64
|
return {
|
|
65
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
64
66
|
component: _override
|
|
65
67
|
};
|
|
66
68
|
} // Flow can't figure out that typeof 'function' above will
|
|
67
69
|
// catch React.StatelessFunctionalComponent
|
|
68
70
|
// (probably related to https://github.com/facebook/flow/issues/6666)
|
|
71
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
69
72
|
|
|
70
73
|
|
|
71
74
|
return _override || {};
|
|
@@ -73,8 +76,11 @@ export function toObjectOverride(_override) {
|
|
|
73
76
|
/**
|
|
74
77
|
* Get a convenient override array that will always have [component, props]
|
|
75
78
|
*/
|
|
79
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
76
80
|
|
|
77
|
-
export function getOverrides(
|
|
81
|
+
export function getOverrides( // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
82
|
+
_override, // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
83
|
+
defaultComponent) {
|
|
78
84
|
const Component = getOverride(_override) || defaultComponent;
|
|
79
85
|
|
|
80
86
|
if (_override && typeof _override === 'object' && typeof _override.props === 'function') {
|
|
@@ -101,8 +107,6 @@ export function getOverrides(_override, defaultComponent) {
|
|
|
101
107
|
const props = getOverrideProps(_override);
|
|
102
108
|
return [Component, props];
|
|
103
109
|
}
|
|
104
|
-
/* flowlint unclear-type:error */
|
|
105
|
-
|
|
106
110
|
/**
|
|
107
111
|
* Merges two overrides objects – this is useful if you want to inject your own
|
|
108
112
|
* overrides into a child component, but also accept further overrides from
|
package/es/icon/build-icons.js
CHANGED
package/es/icon/index.js
CHANGED
|
@@ -5,7 +5,7 @@ This source code is licensed under the MIT license found in the
|
|
|
5
5
|
LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
export { default as Icon } from './icon';
|
|
8
|
-
export { Svg as StyledSvg } from './styled-components';
|
|
8
|
+
export { Svg as StyledSvg, getSvgStyles } from './styled-components';
|
|
9
9
|
export * from './icon-exports';
|
|
10
10
|
export * from './types';
|
|
11
11
|
/** @deprecated use StyledComponentArgs instead. To be removed in future versions.*/
|
|
@@ -4,6 +4,7 @@ Copyright (c) Uber Technologies, Inc.
|
|
|
4
4
|
This source code is licensed under the MIT license found in the
|
|
5
5
|
LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
7
8
|
export default function omitDollarPrefixedKeys(source) {
|
|
8
9
|
const result = {};
|
|
9
10
|
|
package/es/input/base-input.js
CHANGED
|
@@ -8,6 +8,7 @@ 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
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
11
12
|
|
|
12
13
|
/* global window */
|
|
13
14
|
import * as React from 'react';
|
|
@@ -51,21 +52,17 @@ class BaseInput extends React.Component {
|
|
|
51
52
|
});
|
|
52
53
|
|
|
53
54
|
_defineProperty(this, "onFocus", e => {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
this.props.onFocus(e);
|
|
59
|
-
}
|
|
55
|
+
this.setState({
|
|
56
|
+
isFocused: true
|
|
57
|
+
});
|
|
58
|
+
this.props.onFocus(e);
|
|
60
59
|
});
|
|
61
60
|
|
|
62
61
|
_defineProperty(this, "onBlur", e => {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
this.props.onBlur(e);
|
|
68
|
-
}
|
|
62
|
+
this.setState({
|
|
63
|
+
isFocused: false
|
|
64
|
+
});
|
|
65
|
+
this.props.onBlur(e);
|
|
69
66
|
});
|
|
70
67
|
|
|
71
68
|
_defineProperty(this, "handleFocusForMaskToggle", event => {
|
package/es/input/input.js
CHANGED
|
@@ -20,25 +20,21 @@ class Input extends React.Component {
|
|
|
20
20
|
super(...args);
|
|
21
21
|
|
|
22
22
|
_defineProperty(this, "state", {
|
|
23
|
-
isFocused: this.props.autoFocus
|
|
23
|
+
isFocused: this.props.autoFocus || false
|
|
24
24
|
});
|
|
25
25
|
|
|
26
26
|
_defineProperty(this, "onFocus", e => {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
this.props.onFocus(e);
|
|
32
|
-
}
|
|
27
|
+
this.setState({
|
|
28
|
+
isFocused: true
|
|
29
|
+
});
|
|
30
|
+
this.props.onFocus(e);
|
|
33
31
|
});
|
|
34
32
|
|
|
35
33
|
_defineProperty(this, "onBlur", e => {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
this.props.onBlur(e);
|
|
41
|
-
}
|
|
34
|
+
this.setState({
|
|
35
|
+
isFocused: false
|
|
36
|
+
});
|
|
37
|
+
this.props.onBlur(e);
|
|
42
38
|
});
|
|
43
39
|
}
|
|
44
40
|
|
package/es/input/masked-input.js
CHANGED
|
@@ -13,9 +13,13 @@ import { Input as StyledInput } from './styled-components';
|
|
|
13
13
|
const MaskOverride = /*#__PURE__*/React.forwardRef(({
|
|
14
14
|
// do nothing with these - we just don't want to pass it to the InputMask, as
|
|
15
15
|
// it does not have these properties
|
|
16
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
16
17
|
startEnhancer,
|
|
18
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
17
19
|
endEnhancer,
|
|
20
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
18
21
|
error,
|
|
22
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
19
23
|
positive,
|
|
20
24
|
// below are props that are used by the masked-input
|
|
21
25
|
onChange,
|
|
@@ -53,8 +57,11 @@ export default function MaskedInput({
|
|
|
53
57
|
} = {},
|
|
54
58
|
...restProps
|
|
55
59
|
}) {
|
|
56
|
-
|
|
57
|
-
let
|
|
60
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
61
|
+
let componentOverride = MaskOverride; // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
62
|
+
|
|
63
|
+
let propsOverride = {}; // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
64
|
+
|
|
58
65
|
let styleOverride = {};
|
|
59
66
|
|
|
60
67
|
if (typeof inputOverride === 'function') {
|