baseui 12.0.0 → 12.1.0
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 +5 -1
- 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 +5 -1
- 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/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 +1 -0
- 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 -12
- 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 +4 -2
- 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/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 +5 -1
- 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/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 +1 -0
- 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 -12
- 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 +4 -2
- 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/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/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/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 +9 -11
- 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 -12
- package/popover/popover.js.flow +2 -12
- 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.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 +1 -1
- 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 +4 -2
- package/textarea/types.d.ts +6 -5
- package/textarea/types.js.flow +3 -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/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
|
@@ -24,6 +24,7 @@ const StyledTableElement = styled('div', ({
|
|
|
24
24
|
};
|
|
25
25
|
});
|
|
26
26
|
StyledTableElement.displayName = "StyledTableElement";
|
|
27
|
+
StyledTableElement.displayName = 'StyledTableElement';
|
|
27
28
|
export const StyledTable = withWrapper(StyledTableElement, StyledComponent => function StyledTable(props) {
|
|
28
29
|
return /*#__PURE__*/React.createElement(StyledComponent, _extends({
|
|
29
30
|
"data-baseweb": "table-custom",
|
|
@@ -43,6 +44,7 @@ const StyledHeadElement = styled('div', ({
|
|
|
43
44
|
};
|
|
44
45
|
});
|
|
45
46
|
StyledHeadElement.displayName = "StyledHeadElement";
|
|
47
|
+
StyledHeadElement.displayName = 'StyledHeadElement';
|
|
46
48
|
export const StyledHead = withWrapper(StyledHeadElement, StyledComponent => function StyledHead(props) {
|
|
47
49
|
return /*#__PURE__*/React.createElement(StyledComponent, _extends({
|
|
48
50
|
role: "row"
|
|
@@ -73,6 +75,7 @@ const StyledHeadCellElement = styled('div', ({
|
|
|
73
75
|
};
|
|
74
76
|
});
|
|
75
77
|
StyledHeadCellElement.displayName = "StyledHeadCellElement";
|
|
78
|
+
StyledHeadCellElement.displayName = 'StyledHeadCellElement';
|
|
76
79
|
export const StyledHeadCell = withWrapper(StyledHeadCellElement, StyledComponent => function StyledHeadCell(props) {
|
|
77
80
|
return /*#__PURE__*/React.createElement(StyledComponent, _extends({
|
|
78
81
|
role: "columnheader"
|
|
@@ -100,6 +103,7 @@ export const StyledSortableLabel = styled('button', ({
|
|
|
100
103
|
};
|
|
101
104
|
});
|
|
102
105
|
StyledSortableLabel.displayName = "StyledSortableLabel";
|
|
106
|
+
StyledSortableLabel.displayName = 'StyledSortableLabel';
|
|
103
107
|
const StyledBodyElement = styled('div', ({
|
|
104
108
|
$width
|
|
105
109
|
}) => {
|
|
@@ -112,6 +116,7 @@ const StyledBodyElement = styled('div', ({
|
|
|
112
116
|
};
|
|
113
117
|
});
|
|
114
118
|
StyledBodyElement.displayName = "StyledBodyElement";
|
|
119
|
+
StyledBodyElement.displayName = 'StyledBodyElement';
|
|
115
120
|
export const StyledBody = withWrapper(StyledBodyElement, StyledComponent => function StyledBody(props) {
|
|
116
121
|
return /*#__PURE__*/React.createElement(StyledComponent, _extends({
|
|
117
122
|
role: "rowgroup"
|
|
@@ -122,6 +127,7 @@ const StyledRowElement = styled('div', {
|
|
|
122
127
|
alignItems: 'center'
|
|
123
128
|
});
|
|
124
129
|
StyledRowElement.displayName = "StyledRowElement";
|
|
130
|
+
StyledRowElement.displayName = 'StyledRowElement';
|
|
125
131
|
export const StyledRow = withWrapper(StyledRowElement, StyledComponent => function StyledRow(props) {
|
|
126
132
|
return /*#__PURE__*/React.createElement(StyledComponent, _extends({
|
|
127
133
|
role: "row"
|
|
@@ -143,6 +149,7 @@ const StyledCellElement = styled('div', ({
|
|
|
143
149
|
};
|
|
144
150
|
});
|
|
145
151
|
StyledCellElement.displayName = "StyledCellElement";
|
|
152
|
+
StyledCellElement.displayName = 'StyledCellElement';
|
|
146
153
|
export const StyledCell = withWrapper(StyledCellElement, StyledComponent => function StyledCell(props) {
|
|
147
154
|
return /*#__PURE__*/React.createElement(StyledComponent, _extends({
|
|
148
155
|
role: "gridcell"
|
|
@@ -187,6 +194,7 @@ export const StyledFilterButton = styled('button', props => {
|
|
|
187
194
|
};
|
|
188
195
|
});
|
|
189
196
|
StyledFilterButton.displayName = "StyledFilterButton";
|
|
197
|
+
StyledFilterButton.displayName = 'StyledFilterButton';
|
|
190
198
|
export const StyledFilterContent = styled('div', ({
|
|
191
199
|
$theme
|
|
192
200
|
}) => ({ ...expandBorderStyles($theme.borders.border300),
|
|
@@ -199,6 +207,7 @@ export const StyledFilterContent = styled('div', ({
|
|
|
199
207
|
overflow: 'auto'
|
|
200
208
|
}));
|
|
201
209
|
StyledFilterContent.displayName = "StyledFilterContent";
|
|
210
|
+
StyledFilterContent.displayName = 'StyledFilterContent';
|
|
202
211
|
export const StyledFilterHeading = styled('div', ({
|
|
203
212
|
$theme
|
|
204
213
|
}) => ({ ...$theme.typography.font250,
|
|
@@ -209,6 +218,7 @@ export const StyledFilterHeading = styled('div', ({
|
|
|
209
218
|
paddingLeft: $theme.sizing.scale600
|
|
210
219
|
}));
|
|
211
220
|
StyledFilterHeading.displayName = "StyledFilterHeading";
|
|
221
|
+
StyledFilterHeading.displayName = 'StyledFilterHeading';
|
|
212
222
|
export const StyledFilterFooter = styled('div', ({
|
|
213
223
|
$theme
|
|
214
224
|
}) => ({
|
|
@@ -222,6 +232,7 @@ export const StyledFilterFooter = styled('div', ({
|
|
|
222
232
|
minWidth: '216px'
|
|
223
233
|
}));
|
|
224
234
|
StyledFilterFooter.displayName = "StyledFilterFooter";
|
|
235
|
+
StyledFilterFooter.displayName = 'StyledFilterFooter';
|
|
225
236
|
export const StyledAction = styled('button', ({
|
|
226
237
|
$theme
|
|
227
238
|
}) => {
|
|
@@ -243,4 +254,5 @@ export const StyledAction = styled('button', ({
|
|
|
243
254
|
}
|
|
244
255
|
};
|
|
245
256
|
});
|
|
246
|
-
StyledAction.displayName = "StyledAction";
|
|
257
|
+
StyledAction.displayName = "StyledAction";
|
|
258
|
+
StyledAction.displayName = 'StyledAction';
|
|
@@ -20,6 +20,7 @@ const StyledTableElement = withStyle(FlexStyledTable, props => {
|
|
|
20
20
|
};
|
|
21
21
|
});
|
|
22
22
|
StyledTableElement.displayName = "StyledTableElement";
|
|
23
|
+
StyledTableElement.displayName = 'StyledTableElement';
|
|
23
24
|
export const StyledTable = withWrapper(StyledTableElement, StyledComponent => function StyledTable(props) {
|
|
24
25
|
return /*#__PURE__*/React.createElement(StyledComponent, _extends({
|
|
25
26
|
"data-baseweb": "table-grid"
|
|
@@ -44,6 +45,7 @@ export const StyledHeadCell = withStyle(FlexStyledHeadCell, ({
|
|
|
44
45
|
};
|
|
45
46
|
});
|
|
46
47
|
StyledHeadCell.displayName = "StyledHeadCell";
|
|
48
|
+
StyledHeadCell.displayName = 'StyledHeadCell';
|
|
47
49
|
export const StyledBodyCell = withStyle(FlexStyledBodyCell, props => {
|
|
48
50
|
return {
|
|
49
51
|
display: 'block',
|
|
@@ -56,4 +58,5 @@ export const StyledBodyCell = withStyle(FlexStyledBodyCell, props => {
|
|
|
56
58
|
}
|
|
57
59
|
};
|
|
58
60
|
});
|
|
59
|
-
StyledBodyCell.displayName = "StyledBodyCell";
|
|
61
|
+
StyledBodyCell.displayName = "StyledBodyCell";
|
|
62
|
+
StyledBodyCell.displayName = 'StyledBodyCell';
|
|
@@ -41,6 +41,8 @@ export const StyledRoot = styled('div', ({
|
|
|
41
41
|
};
|
|
42
42
|
});
|
|
43
43
|
StyledRoot.displayName = "StyledRoot";
|
|
44
|
+
StyledRoot.displayName = 'StyledRoot';
|
|
45
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
44
46
|
export const StyledTable = styled('table', ({
|
|
45
47
|
$theme,
|
|
46
48
|
$width
|
|
@@ -53,18 +55,23 @@ export const StyledTable = styled('table', ({
|
|
|
53
55
|
};
|
|
54
56
|
});
|
|
55
57
|
StyledTable.displayName = "StyledTable";
|
|
58
|
+
StyledTable.displayName = 'StyledTable'; // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
59
|
+
|
|
56
60
|
export const StyledTableHead = styled('thead', ({
|
|
57
61
|
$theme
|
|
58
62
|
}) => {
|
|
59
63
|
return {};
|
|
60
64
|
});
|
|
61
65
|
StyledTableHead.displayName = "StyledTableHead";
|
|
66
|
+
StyledTableHead.displayName = 'StyledTableHead'; // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
67
|
+
|
|
62
68
|
export const StyledTableHeadRow = styled('tr', ({
|
|
63
69
|
$theme
|
|
64
70
|
}) => {
|
|
65
71
|
return {};
|
|
66
72
|
});
|
|
67
73
|
StyledTableHeadRow.displayName = "StyledTableHeadRow";
|
|
74
|
+
StyledTableHeadRow.displayName = 'StyledTableHeadRow';
|
|
68
75
|
export const StyledTableHeadCell = styled('th', ({
|
|
69
76
|
$theme,
|
|
70
77
|
$size,
|
|
@@ -84,7 +91,6 @@ export const StyledTableHeadCell = styled('th', ({
|
|
|
84
91
|
backgroundColor: $theme.colors.tableHeadBackgroundColor,
|
|
85
92
|
color: $theme.colors.contentPrimary,
|
|
86
93
|
textAlign: $theme.direction === 'rtl' || $isNumeric ? 'right' : 'left',
|
|
87
|
-
verticalAlign: 'top',
|
|
88
94
|
whiteSpace: 'nowrap',
|
|
89
95
|
zIndex: 1,
|
|
90
96
|
...($divider === DIVIDER.clean ? {} : {
|
|
@@ -100,6 +106,7 @@ export const StyledTableHeadCell = styled('th', ({
|
|
|
100
106
|
};
|
|
101
107
|
});
|
|
102
108
|
StyledTableHeadCell.displayName = "StyledTableHeadCell";
|
|
109
|
+
StyledTableHeadCell.displayName = 'StyledTableHeadCell';
|
|
103
110
|
export const StyledTableHeadCellSortable = withStyle(StyledTableHeadCell, ({
|
|
104
111
|
$theme,
|
|
105
112
|
$isFocusVisible
|
|
@@ -118,6 +125,7 @@ export const StyledTableHeadCellSortable = withStyle(StyledTableHeadCell, ({
|
|
|
118
125
|
};
|
|
119
126
|
});
|
|
120
127
|
StyledTableHeadCellSortable.displayName = "StyledTableHeadCellSortable";
|
|
128
|
+
StyledTableHeadCellSortable.displayName = 'StyledTableHeadCellSortable';
|
|
121
129
|
export const StyledSortIconContainer = styled('span', ({
|
|
122
130
|
$theme
|
|
123
131
|
}) => {
|
|
@@ -129,9 +137,10 @@ export const StyledSortIconContainer = styled('span', ({
|
|
|
129
137
|
right: $theme.sizing.scale500,
|
|
130
138
|
transform: 'translateY(-50%)'
|
|
131
139
|
};
|
|
132
|
-
});
|
|
133
|
-
|
|
140
|
+
});
|
|
134
141
|
StyledSortIconContainer.displayName = "StyledSortIconContainer";
|
|
142
|
+
StyledSortIconContainer.displayName = 'StyledSortIconContainer'; // No longer used, but will maintain for some time to support existing usage
|
|
143
|
+
|
|
135
144
|
export const StyledSortAscIcon = styled(ChevronUp, ({
|
|
136
145
|
$theme
|
|
137
146
|
}) => {
|
|
@@ -143,6 +152,7 @@ export const StyledSortAscIcon = styled(ChevronUp, ({
|
|
|
143
152
|
};
|
|
144
153
|
});
|
|
145
154
|
StyledSortAscIcon.displayName = "StyledSortAscIcon";
|
|
155
|
+
StyledSortAscIcon.displayName = 'StyledSortAscIcon';
|
|
146
156
|
export const StyledSortDescIcon = styled(ChevronDown, ({
|
|
147
157
|
$theme
|
|
148
158
|
}) => {
|
|
@@ -154,6 +164,7 @@ export const StyledSortDescIcon = styled(ChevronDown, ({
|
|
|
154
164
|
};
|
|
155
165
|
});
|
|
156
166
|
StyledSortDescIcon.displayName = "StyledSortDescIcon";
|
|
167
|
+
StyledSortDescIcon.displayName = 'StyledSortDescIcon';
|
|
157
168
|
export const StyledSortNoneIcon = styled(Blank, ({
|
|
158
169
|
$theme
|
|
159
170
|
}) => {
|
|
@@ -165,12 +176,15 @@ export const StyledSortNoneIcon = styled(Blank, ({
|
|
|
165
176
|
};
|
|
166
177
|
});
|
|
167
178
|
StyledSortNoneIcon.displayName = "StyledSortNoneIcon";
|
|
179
|
+
StyledSortNoneIcon.displayName = 'StyledSortNoneIcon'; // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
180
|
+
|
|
168
181
|
export const StyledTableBody = styled('tbody', ({
|
|
169
182
|
$theme
|
|
170
183
|
}) => {
|
|
171
184
|
return {};
|
|
172
185
|
});
|
|
173
186
|
StyledTableBody.displayName = "StyledTableBody";
|
|
187
|
+
StyledTableBody.displayName = 'StyledTableBody';
|
|
174
188
|
export const StyledTableBodyRow = styled('tr', ({
|
|
175
189
|
$theme
|
|
176
190
|
}) => {
|
|
@@ -181,6 +195,7 @@ export const StyledTableBodyRow = styled('tr', ({
|
|
|
181
195
|
};
|
|
182
196
|
});
|
|
183
197
|
StyledTableBodyRow.displayName = "StyledTableBodyRow";
|
|
198
|
+
StyledTableBodyRow.displayName = 'StyledTableBodyRow';
|
|
184
199
|
export const StyledTableBodyCell = styled('td', ({
|
|
185
200
|
$theme,
|
|
186
201
|
$size,
|
|
@@ -212,6 +227,7 @@ export const StyledTableBodyCell = styled('td', ({
|
|
|
212
227
|
};
|
|
213
228
|
});
|
|
214
229
|
StyledTableBodyCell.displayName = "StyledTableBodyCell";
|
|
230
|
+
StyledTableBodyCell.displayName = 'StyledTableBodyCell';
|
|
215
231
|
export const StyledTableLoadingMessage = styled('div', ({
|
|
216
232
|
$theme
|
|
217
233
|
}) => {
|
|
@@ -221,4 +237,5 @@ export const StyledTableLoadingMessage = styled('div', ({
|
|
|
221
237
|
};
|
|
222
238
|
});
|
|
223
239
|
StyledTableLoadingMessage.displayName = "StyledTableLoadingMessage";
|
|
240
|
+
StyledTableLoadingMessage.displayName = 'StyledTableLoadingMessage';
|
|
224
241
|
export const StyledTableEmptyMessage = StyledTableLoadingMessage;
|
package/es/tabs/stateful-tabs.js
CHANGED
|
@@ -16,6 +16,7 @@ export const Root = styled('div', props => {
|
|
|
16
16
|
};
|
|
17
17
|
});
|
|
18
18
|
Root.displayName = "Root";
|
|
19
|
+
Root.displayName = 'Root';
|
|
19
20
|
export const Tab = styled('div', props => {
|
|
20
21
|
const {
|
|
21
22
|
$disabled,
|
|
@@ -58,6 +59,7 @@ export const Tab = styled('div', props => {
|
|
|
58
59
|
return style;
|
|
59
60
|
});
|
|
60
61
|
Tab.displayName = "Tab";
|
|
62
|
+
Tab.displayName = 'Tab';
|
|
61
63
|
export const TabBar = styled('div', props => {
|
|
62
64
|
const {
|
|
63
65
|
$orientation,
|
|
@@ -75,6 +77,7 @@ export const TabBar = styled('div', props => {
|
|
|
75
77
|
};
|
|
76
78
|
});
|
|
77
79
|
TabBar.displayName = "TabBar";
|
|
80
|
+
TabBar.displayName = 'TabBar';
|
|
78
81
|
export const TabContent = styled('div', props => {
|
|
79
82
|
const {
|
|
80
83
|
$active,
|
|
@@ -91,4 +94,5 @@ export const TabContent = styled('div', props => {
|
|
|
91
94
|
paddingBottom: sizing.scale500
|
|
92
95
|
};
|
|
93
96
|
});
|
|
94
|
-
TabContent.displayName = "TabContent";
|
|
97
|
+
TabContent.displayName = "TabContent";
|
|
98
|
+
TabContent.displayName = 'TabContent';
|
package/es/tabs/tabs.js
CHANGED
|
@@ -31,7 +31,8 @@ export default class Tabs extends React.Component {
|
|
|
31
31
|
orientation,
|
|
32
32
|
children,
|
|
33
33
|
overrides = {}
|
|
34
|
-
} = this.props;
|
|
34
|
+
} = this.props; // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
35
|
+
|
|
35
36
|
const tabs = React.Children.map(children, (child, index) => {
|
|
36
37
|
if (!child) return;
|
|
37
38
|
const key = child.key || String(index);
|
|
@@ -64,7 +65,8 @@ export default class Tabs extends React.Component {
|
|
|
64
65
|
const {
|
|
65
66
|
TabContent: TabContentOverride
|
|
66
67
|
} = overrides;
|
|
67
|
-
const [TabContent, tabContentProps] = getOverrides(TabContentOverride, StyledTabContent);
|
|
68
|
+
const [TabContent, tabContentProps] = getOverrides(TabContentOverride, StyledTabContent); // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
69
|
+
|
|
68
70
|
const tabs = React.Children.map(children, (child, index) => {
|
|
69
71
|
if (!child) return;
|
|
70
72
|
const key = child.key || String(index);
|
|
@@ -24,6 +24,15 @@ export const StyledRoot = styled('div', ({
|
|
|
24
24
|
return style;
|
|
25
25
|
});
|
|
26
26
|
StyledRoot.displayName = "StyledRoot";
|
|
27
|
+
StyledRoot.displayName = 'StyledRoot';
|
|
28
|
+
export const StyledTabBar = styled('div', ({
|
|
29
|
+
$hasEndEnhancer,
|
|
30
|
+
$orientation
|
|
31
|
+
}) => $hasEndEnhancer || !isHorizontal($orientation) ? {
|
|
32
|
+
display: 'flex'
|
|
33
|
+
} : {});
|
|
34
|
+
StyledTabBar.displayName = "StyledTabBar";
|
|
35
|
+
StyledTabBar.displayName = 'StyledTabBar';
|
|
27
36
|
export const StyledTabList = styled('div', ({
|
|
28
37
|
$theme,
|
|
29
38
|
$fill = FILL.intrinsic,
|
|
@@ -32,7 +41,8 @@ export const StyledTabList = styled('div', ({
|
|
|
32
41
|
const style = {
|
|
33
42
|
position: 'relative',
|
|
34
43
|
display: 'flex',
|
|
35
|
-
flexWrap: 'nowrap'
|
|
44
|
+
flexWrap: 'nowrap',
|
|
45
|
+
flexGrow: 1
|
|
36
46
|
};
|
|
37
47
|
|
|
38
48
|
if (isHorizontal($orientation)) {
|
|
@@ -68,11 +78,13 @@ export const StyledTabList = styled('div', ({
|
|
|
68
78
|
return style;
|
|
69
79
|
});
|
|
70
80
|
StyledTabList.displayName = "StyledTabList";
|
|
81
|
+
StyledTabList.displayName = 'StyledTabList';
|
|
71
82
|
export const StyledTab = styled('button', ({
|
|
72
83
|
$theme,
|
|
73
84
|
$orientation = ORIENTATION.horizontal,
|
|
74
85
|
$fill = FILL.intrinsic,
|
|
75
86
|
$focusVisible = false,
|
|
87
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
76
88
|
$isActive = false
|
|
77
89
|
}) => {
|
|
78
90
|
const style = {
|
|
@@ -135,6 +147,20 @@ export const StyledTab = styled('button', ({
|
|
|
135
147
|
return style;
|
|
136
148
|
});
|
|
137
149
|
StyledTab.displayName = "StyledTab";
|
|
150
|
+
StyledTab.displayName = 'StyledTab';
|
|
151
|
+
export const StyledEndEnhancerContainer = styled('div', ({
|
|
152
|
+
$theme
|
|
153
|
+
}) => {
|
|
154
|
+
const marginDirection = $theme.direction === 'rtl' ? 'marginRight' : 'marginLeft';
|
|
155
|
+
return {
|
|
156
|
+
display: 'flex',
|
|
157
|
+
alignItems: 'center',
|
|
158
|
+
justifyContent: 'flex-end',
|
|
159
|
+
[marginDirection]: $theme.sizing.scale600
|
|
160
|
+
};
|
|
161
|
+
});
|
|
162
|
+
StyledEndEnhancerContainer.displayName = "StyledEndEnhancerContainer";
|
|
163
|
+
StyledEndEnhancerContainer.displayName = 'StyledEndEnhancerContainer';
|
|
138
164
|
export const StyledArtworkContainer = styled('div', ({
|
|
139
165
|
$theme,
|
|
140
166
|
$orientation = ORIENTATION.horizontal
|
|
@@ -152,6 +178,7 @@ export const StyledArtworkContainer = styled('div', ({
|
|
|
152
178
|
return style;
|
|
153
179
|
});
|
|
154
180
|
StyledArtworkContainer.displayName = "StyledArtworkContainer";
|
|
181
|
+
StyledArtworkContainer.displayName = 'StyledArtworkContainer';
|
|
155
182
|
export const StyledTabBorder = styled('div', ({
|
|
156
183
|
$theme,
|
|
157
184
|
$orientation = ORIENTATION.horizontal
|
|
@@ -170,6 +197,7 @@ export const StyledTabBorder = styled('div', ({
|
|
|
170
197
|
return style;
|
|
171
198
|
});
|
|
172
199
|
StyledTabBorder.displayName = "StyledTabBorder";
|
|
200
|
+
StyledTabBorder.displayName = 'StyledTabBorder';
|
|
173
201
|
export const StyledTabHighlight = styled('div', ({
|
|
174
202
|
$theme,
|
|
175
203
|
$orientation = ORIENTATION.horizontal,
|
|
@@ -210,6 +238,7 @@ export const StyledTabHighlight = styled('div', ({
|
|
|
210
238
|
return style;
|
|
211
239
|
});
|
|
212
240
|
StyledTabHighlight.displayName = "StyledTabHighlight";
|
|
241
|
+
StyledTabHighlight.displayName = 'StyledTabHighlight';
|
|
213
242
|
export const StyledTabPanel = styled('div', ({
|
|
214
243
|
$theme,
|
|
215
244
|
$pad = true
|
|
@@ -229,4 +258,5 @@ export const StyledTabPanel = styled('div', ({
|
|
|
229
258
|
|
|
230
259
|
return style;
|
|
231
260
|
});
|
|
232
|
-
StyledTabPanel.displayName = "StyledTabPanel";
|
|
261
|
+
StyledTabPanel.displayName = "StyledTabPanel";
|
|
262
|
+
StyledTabPanel.displayName = 'StyledTabPanel';
|
package/es/tabs-motion/tab.js
CHANGED
|
@@ -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-unused-vars
|
|
7
8
|
export function Tab(props) {
|
|
8
9
|
return null;
|
|
9
10
|
}
|
package/es/tabs-motion/tabs.js
CHANGED
|
@@ -9,12 +9,13 @@ LICENSE file in the root directory of this source tree.
|
|
|
9
9
|
|
|
10
10
|
/* global window */
|
|
11
11
|
import * as React from 'react';
|
|
12
|
+
import * as ReactIs from 'react-is';
|
|
12
13
|
import { useUID } from 'react-uid';
|
|
13
14
|
import { useStyletron } from '../styles';
|
|
14
15
|
import { getOverrides } from '../helpers/overrides';
|
|
15
16
|
import { isFocusVisible, forkFocus, forkBlur } from '../utils/focusVisible';
|
|
16
17
|
import { ORIENTATION, FILL } from './constants';
|
|
17
|
-
import { StyledRoot, StyledTabList, StyledTab, StyledArtworkContainer, StyledTabHighlight, StyledTabBorder, StyledTabPanel } from './styled-components';
|
|
18
|
+
import { StyledRoot, StyledTabList, StyledTab, StyledArtworkContainer, StyledTabHighlight, StyledTabBorder, StyledTabPanel, StyledEndEnhancerContainer, StyledTabBar } from './styled-components';
|
|
18
19
|
import { getTabId, getTabPanelId, isVertical, isHorizontal, isRTL } from './utils';
|
|
19
20
|
const KEYBOARD_ACTION = {
|
|
20
21
|
next: 'next',
|
|
@@ -78,6 +79,20 @@ const scrollParentToCentreTarget = targetNode => {
|
|
|
78
79
|
targetNode.parentNode.scroll(target.x, target.y);
|
|
79
80
|
};
|
|
80
81
|
|
|
82
|
+
function RenderEnhancer({
|
|
83
|
+
Enhancer
|
|
84
|
+
}) {
|
|
85
|
+
if (typeof Enhancer === 'string') {
|
|
86
|
+
return Enhancer;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
if (ReactIs.isValidElementType(Enhancer)) {
|
|
90
|
+
return /*#__PURE__*/React.createElement(Enhancer, null);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return Enhancer;
|
|
94
|
+
}
|
|
95
|
+
|
|
81
96
|
export function Tabs({
|
|
82
97
|
activeKey = '0',
|
|
83
98
|
disabled = false,
|
|
@@ -88,7 +103,8 @@ export function Tabs({
|
|
|
88
103
|
orientation = ORIENTATION.horizontal,
|
|
89
104
|
overrides = {},
|
|
90
105
|
renderAll = false,
|
|
91
|
-
uid: customUid = null
|
|
106
|
+
uid: customUid = null,
|
|
107
|
+
endEnhancer
|
|
92
108
|
}) {
|
|
93
109
|
// Create unique id prefix for this tabs component
|
|
94
110
|
const generatedUid = useUID();
|
|
@@ -103,7 +119,8 @@ export function Tabs({
|
|
|
103
119
|
const [Root, RootProps] = getOverrides(RootOverrides, StyledRoot);
|
|
104
120
|
const [TabList, TabListProps] = getOverrides(TabListOverrides, StyledTabList);
|
|
105
121
|
const [TabHighlight, TabHighlightProps] = getOverrides(TabHighlightOverrides, StyledTabHighlight);
|
|
106
|
-
const [TabBorder, TabBorderProps] = getOverrides(TabBorderOverrides, StyledTabBorder);
|
|
122
|
+
const [TabBorder, TabBorderProps] = getOverrides(TabBorderOverrides, StyledTabBorder);
|
|
123
|
+
const [EndEnhancerContainer, endEnhancerContainerProps] = getOverrides(overrides.EndEnhancerContainer, StyledEndEnhancerContainer); // Count key updates
|
|
107
124
|
// We disable a few things until after first mount:
|
|
108
125
|
// - the highlight animation, avoiding an initial slide-in
|
|
109
126
|
// - smooth scrolling active tab into view
|
|
@@ -196,7 +213,10 @@ export function Tabs({
|
|
|
196
213
|
}
|
|
197
214
|
}
|
|
198
215
|
}, [orientation, theme.direction]);
|
|
199
|
-
return /*#__PURE__*/React.createElement(Root, _extends({}, sharedStylingProps, RootProps), /*#__PURE__*/React.createElement(
|
|
216
|
+
return /*#__PURE__*/React.createElement(Root, _extends({}, sharedStylingProps, RootProps), /*#__PURE__*/React.createElement(StyledTabBar, {
|
|
217
|
+
$hasEndEnhancer: Boolean(endEnhancer),
|
|
218
|
+
$orientation: orientation
|
|
219
|
+
}, /*#__PURE__*/React.createElement(TabList, _extends({
|
|
200
220
|
"data-baseweb": "tab-list",
|
|
201
221
|
role: "tablist",
|
|
202
222
|
"aria-orientation": orientation
|
|
@@ -224,7 +244,11 @@ export function Tabs({
|
|
|
224
244
|
$animate: keyUpdated > 1,
|
|
225
245
|
"aria-hidden": "true",
|
|
226
246
|
role: "presentation"
|
|
227
|
-
}, sharedStylingProps, TabHighlightProps))), /*#__PURE__*/React.createElement(
|
|
247
|
+
}, sharedStylingProps, TabHighlightProps))), orientation === ORIENTATION.horizontal && endEnhancer !== null && endEnhancer !== undefined && /*#__PURE__*/React.createElement(EndEnhancerContainer, _extends({}, endEnhancerContainerProps, {
|
|
248
|
+
$orientation: orientation
|
|
249
|
+
}), /*#__PURE__*/React.createElement(RenderEnhancer, {
|
|
250
|
+
Enhancer: endEnhancer
|
|
251
|
+
}))), /*#__PURE__*/React.createElement(TabBorder, _extends({
|
|
228
252
|
"data-baseweb": "tab-border",
|
|
229
253
|
"aria-hidden": "true",
|
|
230
254
|
role: "presentation"
|
|
@@ -314,7 +338,8 @@ function InternalTab({
|
|
|
314
338
|
setFocusVisible(true);
|
|
315
339
|
}
|
|
316
340
|
}, []);
|
|
317
|
-
const handleBlur = React.useCallback(
|
|
341
|
+
const handleBlur = React.useCallback( // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
342
|
+
event => {
|
|
318
343
|
if (focusVisible !== false) {
|
|
319
344
|
setFocusVisible(false);
|
|
320
345
|
}
|