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
package/tabs-motion/tabs.js
CHANGED
|
@@ -9,6 +9,8 @@ exports.Tabs = Tabs;
|
|
|
9
9
|
|
|
10
10
|
var React = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
+
var ReactIs = _interopRequireWildcard(require("react-is"));
|
|
13
|
+
|
|
12
14
|
var _reactUid = require("react-uid");
|
|
13
15
|
|
|
14
16
|
var _styles = require("../styles");
|
|
@@ -124,25 +126,40 @@ var scrollParentToCentreTarget = function scrollParentToCentreTarget(targetNode)
|
|
|
124
126
|
targetNode.parentNode.scroll(target.x, target.y);
|
|
125
127
|
};
|
|
126
128
|
|
|
127
|
-
function
|
|
128
|
-
var
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
129
|
+
function RenderEnhancer(_ref) {
|
|
130
|
+
var Enhancer = _ref.Enhancer;
|
|
131
|
+
|
|
132
|
+
if (typeof Enhancer === 'string') {
|
|
133
|
+
return Enhancer;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
if (ReactIs.isValidElementType(Enhancer)) {
|
|
137
|
+
return /*#__PURE__*/React.createElement(Enhancer, null);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
return Enhancer;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
function Tabs(_ref2) {
|
|
144
|
+
var _ref2$activeKey = _ref2.activeKey,
|
|
145
|
+
activeKey = _ref2$activeKey === void 0 ? '0' : _ref2$activeKey,
|
|
146
|
+
_ref2$disabled = _ref2.disabled,
|
|
147
|
+
disabled = _ref2$disabled === void 0 ? false : _ref2$disabled,
|
|
148
|
+
children = _ref2.children,
|
|
149
|
+
_ref2$fill = _ref2.fill,
|
|
150
|
+
fill = _ref2$fill === void 0 ? _constants.FILL.intrinsic : _ref2$fill,
|
|
151
|
+
_ref2$activateOnFocus = _ref2.activateOnFocus,
|
|
152
|
+
activateOnFocus = _ref2$activateOnFocus === void 0 ? true : _ref2$activateOnFocus,
|
|
153
|
+
onChange = _ref2.onChange,
|
|
154
|
+
_ref2$orientation = _ref2.orientation,
|
|
155
|
+
orientation = _ref2$orientation === void 0 ? _constants.ORIENTATION.horizontal : _ref2$orientation,
|
|
156
|
+
_ref2$overrides = _ref2.overrides,
|
|
157
|
+
overrides = _ref2$overrides === void 0 ? {} : _ref2$overrides,
|
|
158
|
+
_ref2$renderAll = _ref2.renderAll,
|
|
159
|
+
renderAll = _ref2$renderAll === void 0 ? false : _ref2$renderAll,
|
|
160
|
+
_ref2$uid = _ref2.uid,
|
|
161
|
+
customUid = _ref2$uid === void 0 ? null : _ref2$uid,
|
|
162
|
+
endEnhancer = _ref2.endEnhancer;
|
|
146
163
|
// Create unique id prefix for this tabs component
|
|
147
164
|
var generatedUid = (0, _reactUid.useUID)();
|
|
148
165
|
var uid = customUid || generatedUid; // Unpack overrides
|
|
@@ -170,7 +187,12 @@ function Tabs(_ref) {
|
|
|
170
187
|
var _getOverrides7 = (0, _overrides.getOverrides)(TabBorderOverrides, _styledComponents.StyledTabBorder),
|
|
171
188
|
_getOverrides8 = _slicedToArray(_getOverrides7, 2),
|
|
172
189
|
TabBorder = _getOverrides8[0],
|
|
173
|
-
TabBorderProps = _getOverrides8[1];
|
|
190
|
+
TabBorderProps = _getOverrides8[1];
|
|
191
|
+
|
|
192
|
+
var _getOverrides9 = (0, _overrides.getOverrides)(overrides.EndEnhancerContainer, _styledComponents.StyledEndEnhancerContainer),
|
|
193
|
+
_getOverrides10 = _slicedToArray(_getOverrides9, 2),
|
|
194
|
+
EndEnhancerContainer = _getOverrides10[0],
|
|
195
|
+
endEnhancerContainerProps = _getOverrides10[1]; // Count key updates
|
|
174
196
|
// We disable a few things until after first mount:
|
|
175
197
|
// - the highlight animation, avoiding an initial slide-in
|
|
176
198
|
// - smooth scrolling active tab into view
|
|
@@ -276,7 +298,10 @@ function Tabs(_ref) {
|
|
|
276
298
|
}
|
|
277
299
|
}
|
|
278
300
|
}, [orientation, theme.direction]);
|
|
279
|
-
return /*#__PURE__*/React.createElement(Root, _extends({}, sharedStylingProps, RootProps), /*#__PURE__*/React.createElement(
|
|
301
|
+
return /*#__PURE__*/React.createElement(Root, _extends({}, sharedStylingProps, RootProps), /*#__PURE__*/React.createElement(_styledComponents.StyledTabBar, {
|
|
302
|
+
$hasEndEnhancer: Boolean(endEnhancer),
|
|
303
|
+
$orientation: orientation
|
|
304
|
+
}, /*#__PURE__*/React.createElement(TabList, _extends({
|
|
280
305
|
"data-baseweb": "tab-list",
|
|
281
306
|
role: "tablist",
|
|
282
307
|
"aria-orientation": orientation
|
|
@@ -304,7 +329,11 @@ function Tabs(_ref) {
|
|
|
304
329
|
$animate: keyUpdated > 1,
|
|
305
330
|
"aria-hidden": "true",
|
|
306
331
|
role: "presentation"
|
|
307
|
-
}, sharedStylingProps, TabHighlightProps))), /*#__PURE__*/React.createElement(
|
|
332
|
+
}, sharedStylingProps, TabHighlightProps))), orientation === _constants.ORIENTATION.horizontal && endEnhancer !== null && endEnhancer !== undefined && /*#__PURE__*/React.createElement(EndEnhancerContainer, _extends({}, endEnhancerContainerProps, {
|
|
333
|
+
$orientation: orientation
|
|
334
|
+
}), /*#__PURE__*/React.createElement(RenderEnhancer, {
|
|
335
|
+
Enhancer: endEnhancer
|
|
336
|
+
}))), /*#__PURE__*/React.createElement(TabBorder, _extends({
|
|
308
337
|
"data-baseweb": "tab-border",
|
|
309
338
|
"aria-hidden": "true",
|
|
310
339
|
role: "presentation"
|
|
@@ -321,20 +350,20 @@ function Tabs(_ref) {
|
|
|
321
350
|
}));
|
|
322
351
|
}
|
|
323
352
|
|
|
324
|
-
function InternalTab(
|
|
325
|
-
var childKey =
|
|
326
|
-
childIndex =
|
|
327
|
-
activeKey =
|
|
328
|
-
orientation =
|
|
329
|
-
activeTabRef =
|
|
330
|
-
updateHighlight =
|
|
331
|
-
parseKeyDown =
|
|
332
|
-
activateOnFocus =
|
|
333
|
-
uid =
|
|
334
|
-
disabled =
|
|
335
|
-
sharedStylingProps =
|
|
336
|
-
onChange =
|
|
337
|
-
props = _objectWithoutProperties(
|
|
353
|
+
function InternalTab(_ref3) {
|
|
354
|
+
var childKey = _ref3.childKey,
|
|
355
|
+
childIndex = _ref3.childIndex,
|
|
356
|
+
activeKey = _ref3.activeKey,
|
|
357
|
+
orientation = _ref3.orientation,
|
|
358
|
+
activeTabRef = _ref3.activeTabRef,
|
|
359
|
+
updateHighlight = _ref3.updateHighlight,
|
|
360
|
+
parseKeyDown = _ref3.parseKeyDown,
|
|
361
|
+
activateOnFocus = _ref3.activateOnFocus,
|
|
362
|
+
uid = _ref3.uid,
|
|
363
|
+
disabled = _ref3.disabled,
|
|
364
|
+
sharedStylingProps = _ref3.sharedStylingProps,
|
|
365
|
+
onChange = _ref3.onChange,
|
|
366
|
+
props = _objectWithoutProperties(_ref3, _excluded);
|
|
338
367
|
|
|
339
368
|
var key = childKey || String(childIndex);
|
|
340
369
|
var isActive = key == activeKey;
|
|
@@ -385,15 +414,15 @@ function InternalTab(_ref2) {
|
|
|
385
414
|
var TabOverrides = overrides.Tab,
|
|
386
415
|
ArtworkContainerOverrides = overrides.ArtworkContainer;
|
|
387
416
|
|
|
388
|
-
var
|
|
389
|
-
_getOverrides10 = _slicedToArray(_getOverrides9, 2),
|
|
390
|
-
Tab = _getOverrides10[0],
|
|
391
|
-
TabProps = _getOverrides10[1];
|
|
392
|
-
|
|
393
|
-
var _getOverrides11 = (0, _overrides.getOverrides)(ArtworkContainerOverrides, _styledComponents.StyledArtworkContainer),
|
|
417
|
+
var _getOverrides11 = (0, _overrides.getOverrides)(TabOverrides, _styledComponents.StyledTab),
|
|
394
418
|
_getOverrides12 = _slicedToArray(_getOverrides11, 2),
|
|
395
|
-
|
|
396
|
-
|
|
419
|
+
Tab = _getOverrides12[0],
|
|
420
|
+
TabProps = _getOverrides12[1];
|
|
421
|
+
|
|
422
|
+
var _getOverrides13 = (0, _overrides.getOverrides)(ArtworkContainerOverrides, _styledComponents.StyledArtworkContainer),
|
|
423
|
+
_getOverrides14 = _slicedToArray(_getOverrides13, 2),
|
|
424
|
+
ArtworkContainer = _getOverrides14[0],
|
|
425
|
+
ArtworkContainerProps = _getOverrides14[1]; // Keyboard focus styling
|
|
397
426
|
|
|
398
427
|
|
|
399
428
|
var _React$useState5 = React.useState(false),
|
|
@@ -406,7 +435,8 @@ function InternalTab(_ref2) {
|
|
|
406
435
|
setFocusVisible(true);
|
|
407
436
|
}
|
|
408
437
|
}, []);
|
|
409
|
-
var handleBlur = React.useCallback(
|
|
438
|
+
var handleBlur = React.useCallback( // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
439
|
+
function (event) {
|
|
410
440
|
if (focusVisible !== false) {
|
|
411
441
|
setFocusVisible(false);
|
|
412
442
|
}
|
|
@@ -492,14 +522,14 @@ function InternalTab(_ref2) {
|
|
|
492
522
|
})) : null, title ? title : key);
|
|
493
523
|
}
|
|
494
524
|
|
|
495
|
-
function InternalTabPanel(
|
|
496
|
-
var childKey =
|
|
497
|
-
childIndex =
|
|
498
|
-
activeKey =
|
|
499
|
-
uid =
|
|
500
|
-
sharedStylingProps =
|
|
501
|
-
renderAll =
|
|
502
|
-
props = _objectWithoutProperties(
|
|
525
|
+
function InternalTabPanel(_ref4) {
|
|
526
|
+
var childKey = _ref4.childKey,
|
|
527
|
+
childIndex = _ref4.childIndex,
|
|
528
|
+
activeKey = _ref4.activeKey,
|
|
529
|
+
uid = _ref4.uid,
|
|
530
|
+
sharedStylingProps = _ref4.sharedStylingProps,
|
|
531
|
+
renderAll = _ref4.renderAll,
|
|
532
|
+
props = _objectWithoutProperties(_ref4, _excluded3);
|
|
503
533
|
|
|
504
534
|
var key = childKey || String(childIndex);
|
|
505
535
|
var isActive = key == activeKey;
|
|
@@ -508,10 +538,10 @@ function InternalTabPanel(_ref3) {
|
|
|
508
538
|
children = props.children;
|
|
509
539
|
var TabPanelOverrides = overrides.TabPanel;
|
|
510
540
|
|
|
511
|
-
var
|
|
512
|
-
|
|
513
|
-
TabPanel =
|
|
514
|
-
TabPanelProps =
|
|
541
|
+
var _getOverrides15 = (0, _overrides.getOverrides)(TabPanelOverrides, _styledComponents.StyledTabPanel),
|
|
542
|
+
_getOverrides16 = _slicedToArray(_getOverrides15, 2),
|
|
543
|
+
TabPanel = _getOverrides16[0],
|
|
544
|
+
TabPanelProps = _getOverrides16[1];
|
|
515
545
|
|
|
516
546
|
return /*#__PURE__*/React.createElement(TabPanel, _extends({
|
|
517
547
|
"data-baseweb": "tab-panel",
|
package/tabs-motion/tabs.js.flow
CHANGED
|
@@ -10,6 +10,7 @@ LICENSE file in the root directory of this source tree.
|
|
|
10
10
|
/* global window */
|
|
11
11
|
|
|
12
12
|
import * as React from 'react';
|
|
13
|
+
import * as ReactIs from 'react-is';
|
|
13
14
|
import { useUID } from 'react-uid';
|
|
14
15
|
import { useStyletron } from '../styles/index.js';
|
|
15
16
|
import { getOverrides } from '../helpers/overrides.js';
|
|
@@ -23,6 +24,8 @@ import {
|
|
|
23
24
|
StyledTabHighlight,
|
|
24
25
|
StyledTabBorder,
|
|
25
26
|
StyledTabPanel,
|
|
27
|
+
StyledEndEnhancerContainer,
|
|
28
|
+
StyledTabBar,
|
|
26
29
|
} from './styled-components.js';
|
|
27
30
|
import { getTabId, getTabPanelId, isVertical, isHorizontal, isRTL } from './utils.js';
|
|
28
31
|
|
|
@@ -88,6 +91,18 @@ const scrollParentToCentreTarget = (targetNode) => {
|
|
|
88
91
|
targetNode.parentNode.scroll(target.x, target.y);
|
|
89
92
|
};
|
|
90
93
|
|
|
94
|
+
function RenderEnhancer({ Enhancer }) {
|
|
95
|
+
if (typeof Enhancer === 'string') {
|
|
96
|
+
return Enhancer;
|
|
97
|
+
}
|
|
98
|
+
if (ReactIs.isValidElementType(Enhancer)) {
|
|
99
|
+
// $FlowFixMe
|
|
100
|
+
return <Enhancer />;
|
|
101
|
+
}
|
|
102
|
+
// $FlowFixMe
|
|
103
|
+
return Enhancer;
|
|
104
|
+
}
|
|
105
|
+
|
|
91
106
|
export function Tabs({
|
|
92
107
|
activeKey = '0',
|
|
93
108
|
disabled = false,
|
|
@@ -99,6 +114,7 @@ export function Tabs({
|
|
|
99
114
|
overrides = {},
|
|
100
115
|
renderAll = false,
|
|
101
116
|
uid: customUid = null,
|
|
117
|
+
endEnhancer,
|
|
102
118
|
}: TabsPropsT) {
|
|
103
119
|
// Create unique id prefix for this tabs component
|
|
104
120
|
const generatedUid = useUID();
|
|
@@ -115,6 +131,10 @@ export function Tabs({
|
|
|
115
131
|
const [TabList, TabListProps] = getOverrides(TabListOverrides, StyledTabList);
|
|
116
132
|
const [TabHighlight, TabHighlightProps] = getOverrides(TabHighlightOverrides, StyledTabHighlight);
|
|
117
133
|
const [TabBorder, TabBorderProps] = getOverrides(TabBorderOverrides, StyledTabBorder);
|
|
134
|
+
const [EndEnhancerContainer, endEnhancerContainerProps] = getOverrides(
|
|
135
|
+
overrides.EndEnhancerContainer,
|
|
136
|
+
StyledEndEnhancerContainer
|
|
137
|
+
);
|
|
118
138
|
|
|
119
139
|
// Count key updates
|
|
120
140
|
// We disable a few things until after first mount:
|
|
@@ -216,45 +236,56 @@ export function Tabs({
|
|
|
216
236
|
|
|
217
237
|
return (
|
|
218
238
|
<Root {...sharedStylingProps} {...RootProps}>
|
|
219
|
-
<
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
{...TabListProps}
|
|
225
|
-
>
|
|
226
|
-
{React.Children.map(children, (child, index) => {
|
|
227
|
-
if (!child) return;
|
|
228
|
-
return (
|
|
229
|
-
<InternalTab
|
|
230
|
-
childKey={child.key}
|
|
231
|
-
childIndex={index}
|
|
232
|
-
activeKey={activeKey}
|
|
233
|
-
orientation={orientation}
|
|
234
|
-
activeTabRef={activeTabRef}
|
|
235
|
-
updateHighlight={updateHighlight}
|
|
236
|
-
parseKeyDown={parseKeyDown}
|
|
237
|
-
activateOnFocus={activateOnFocus}
|
|
238
|
-
uid={uid}
|
|
239
|
-
disabled={disabled}
|
|
240
|
-
sharedStylingProps={sharedStylingProps}
|
|
241
|
-
onChange={onChange}
|
|
242
|
-
{...child.props}
|
|
243
|
-
/>
|
|
244
|
-
);
|
|
245
|
-
})}
|
|
246
|
-
<TabHighlight
|
|
247
|
-
data-baseweb="tab-highlight"
|
|
248
|
-
$length={highlightLayout.length}
|
|
249
|
-
$distance={highlightLayout.distance}
|
|
250
|
-
// This avoids the tab sliding in from the side on mount
|
|
251
|
-
$animate={keyUpdated > 1}
|
|
252
|
-
aria-hidden="true"
|
|
253
|
-
role="presentation"
|
|
239
|
+
<StyledTabBar $hasEndEnhancer={Boolean(endEnhancer)} $orientation={orientation}>
|
|
240
|
+
<TabList
|
|
241
|
+
data-baseweb="tab-list"
|
|
242
|
+
role="tablist"
|
|
243
|
+
aria-orientation={orientation}
|
|
254
244
|
{...sharedStylingProps}
|
|
255
|
-
{...
|
|
256
|
-
|
|
257
|
-
|
|
245
|
+
{...TabListProps}
|
|
246
|
+
>
|
|
247
|
+
{React.Children.map(children, (child, index) => {
|
|
248
|
+
if (!child) return;
|
|
249
|
+
return (
|
|
250
|
+
<InternalTab
|
|
251
|
+
childKey={child.key}
|
|
252
|
+
childIndex={index}
|
|
253
|
+
activeKey={activeKey}
|
|
254
|
+
orientation={orientation}
|
|
255
|
+
activeTabRef={activeTabRef}
|
|
256
|
+
updateHighlight={updateHighlight}
|
|
257
|
+
parseKeyDown={parseKeyDown}
|
|
258
|
+
activateOnFocus={activateOnFocus}
|
|
259
|
+
uid={uid}
|
|
260
|
+
disabled={disabled}
|
|
261
|
+
sharedStylingProps={sharedStylingProps}
|
|
262
|
+
onChange={onChange}
|
|
263
|
+
{...child.props}
|
|
264
|
+
/>
|
|
265
|
+
);
|
|
266
|
+
})}
|
|
267
|
+
<TabHighlight
|
|
268
|
+
data-baseweb="tab-highlight"
|
|
269
|
+
$length={highlightLayout.length}
|
|
270
|
+
$distance={highlightLayout.distance}
|
|
271
|
+
// This avoids the tab sliding in from the side on mount
|
|
272
|
+
$animate={keyUpdated > 1}
|
|
273
|
+
aria-hidden="true"
|
|
274
|
+
role="presentation"
|
|
275
|
+
{...sharedStylingProps}
|
|
276
|
+
{...TabHighlightProps}
|
|
277
|
+
/>
|
|
278
|
+
</TabList>
|
|
279
|
+
|
|
280
|
+
{orientation === ORIENTATION.horizontal &&
|
|
281
|
+
endEnhancer !== null &&
|
|
282
|
+
endEnhancer !== undefined && (
|
|
283
|
+
<EndEnhancerContainer {...endEnhancerContainerProps} $orientation={orientation}>
|
|
284
|
+
<RenderEnhancer Enhancer={endEnhancer} />
|
|
285
|
+
</EndEnhancerContainer>
|
|
286
|
+
)}
|
|
287
|
+
</StyledTabBar>
|
|
288
|
+
|
|
258
289
|
<TabBorder
|
|
259
290
|
data-baseweb="tab-border"
|
|
260
291
|
aria-hidden="true"
|
package/tabs-motion/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ORIENTATION, FILL, STATE_CHANGE_TYPE } from './constants';
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { ORIENTATION, FILL, STATE_CHANGE_TYPE } from './constants';
|
|
3
3
|
import type { Override } from '../helpers/overrides';
|
|
4
4
|
import type { IconProps } from '../icon';
|
|
5
5
|
export declare type Orientation = typeof ORIENTATION[keyof typeof ORIENTATION];
|
|
@@ -10,6 +10,8 @@ export declare type TabsOverrides = {
|
|
|
10
10
|
TabList?: Override;
|
|
11
11
|
TabHighlight?: Override;
|
|
12
12
|
TabBorder?: Override;
|
|
13
|
+
EndEnhancerContainer?: Override;
|
|
14
|
+
StyledTabBar?: Override;
|
|
13
15
|
};
|
|
14
16
|
export declare type TabOverrides = {
|
|
15
17
|
Tab?: Override;
|
|
@@ -38,6 +40,7 @@ export declare type TabsProps = {
|
|
|
38
40
|
overrides?: TabsOverrides;
|
|
39
41
|
renderAll?: boolean;
|
|
40
42
|
uid?: string;
|
|
43
|
+
endEnhancer?: React.ReactNode;
|
|
41
44
|
};
|
|
42
45
|
export declare type StatefulTabsProps = {
|
|
43
46
|
initialState?: StatefulTabsState;
|
|
@@ -22,6 +22,8 @@ export type TabsOverridesT = {
|
|
|
22
22
|
TabList?: OverrideT,
|
|
23
23
|
TabHighlight?: OverrideT,
|
|
24
24
|
TabBorder?: OverrideT,
|
|
25
|
+
EndEnhancerContainer?: OverrideT,
|
|
26
|
+
StyledTabBar?: OverrideT,
|
|
25
27
|
};
|
|
26
28
|
|
|
27
29
|
export type TabOverridesT = {
|
|
@@ -57,6 +59,7 @@ export type TabsPropsT = {|
|
|
|
57
59
|
overrides?: TabsOverridesT,
|
|
58
60
|
renderAll?: boolean,
|
|
59
61
|
uid?: string,
|
|
62
|
+
endEnhancer?: React.Node | React.AbstractComponent<{}>,
|
|
60
63
|
|};
|
|
61
64
|
|
|
62
65
|
export type StatefulTabsPropsT = {|
|
package/tabs-motion/utils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
1
|
+
import type * as React from 'react';
|
|
2
2
|
import type { Fill, Orientation } from './types';
|
|
3
3
|
export declare const getTabId: (uid: string, key: React.Key) => string;
|
|
4
4
|
export declare const getTabPanelId: (uid: string, key: React.Key) => string;
|
package/tag/styled-components.js
CHANGED
|
@@ -290,6 +290,7 @@ var Action = (0, _styles.styled)('span', function (props) {
|
|
|
290
290
|
});
|
|
291
291
|
exports.Action = Action;
|
|
292
292
|
Action.displayName = "Action";
|
|
293
|
+
Action.displayName = 'Action';
|
|
293
294
|
var StartEnhancerContainer = (0, _styles.styled)('div', function (_ref2) {
|
|
294
295
|
var $theme = _ref2.$theme,
|
|
295
296
|
_ref2$$size = _ref2.$size,
|
|
@@ -310,6 +311,7 @@ var StartEnhancerContainer = (0, _styles.styled)('div', function (_ref2) {
|
|
|
310
311
|
});
|
|
311
312
|
exports.StartEnhancerContainer = StartEnhancerContainer;
|
|
312
313
|
StartEnhancerContainer.displayName = "StartEnhancerContainer";
|
|
314
|
+
StartEnhancerContainer.displayName = 'StartEnhancerContainer';
|
|
313
315
|
var Text = (0, _styles.styled)('span', function (props) {
|
|
314
316
|
var $theme = props.$theme;
|
|
315
317
|
return {
|
|
@@ -322,6 +324,7 @@ var Text = (0, _styles.styled)('span', function (props) {
|
|
|
322
324
|
});
|
|
323
325
|
exports.Text = Text;
|
|
324
326
|
Text.displayName = "Text";
|
|
327
|
+
Text.displayName = 'Text';
|
|
325
328
|
var Root = (0, _styles.styled)('span', function (props) {
|
|
326
329
|
var _SIZE$small$SIZE$medi2, _SIZE$small$SIZE$medi3, _SIZE$small$SIZE$medi4;
|
|
327
330
|
|
|
@@ -388,4 +391,5 @@ var Root = (0, _styles.styled)('span', function (props) {
|
|
|
388
391
|
});
|
|
389
392
|
});
|
|
390
393
|
exports.Root = Root;
|
|
391
|
-
Root.displayName = "Root";
|
|
394
|
+
Root.displayName = "Root";
|
|
395
|
+
Root.displayName = 'Root';
|
package/tag/tag.js
CHANGED
|
@@ -92,7 +92,8 @@ var Tag = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
92
92
|
if ((0, _focusVisible.isFocusVisible)(event)) {
|
|
93
93
|
setFocusVisible(true);
|
|
94
94
|
}
|
|
95
|
-
}
|
|
95
|
+
} // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
96
|
+
|
|
96
97
|
|
|
97
98
|
function handleBlur(event) {
|
|
98
99
|
if (focusVisible !== false) {
|
|
@@ -175,7 +176,8 @@ var Tag = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
175
176
|
var actionSize = (_SIZE$small$SIZE$medi = {}, _defineProperty(_SIZE$small$SIZE$medi, _constants.SIZE.small, 12), _defineProperty(_SIZE$small$SIZE$medi, _constants.SIZE.medium, 16), _defineProperty(_SIZE$small$SIZE$medi, _constants.SIZE.large, 20), _SIZE$small$SIZE$medi)[size]; // Capitalize for JSX
|
|
176
177
|
|
|
177
178
|
var StartEnhancer = startEnhancer;
|
|
178
|
-
return /*#__PURE__*/React.createElement(Root
|
|
179
|
+
return /*#__PURE__*/React.createElement(Root // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
180
|
+
, _extends({
|
|
179
181
|
ref: ref,
|
|
180
182
|
"data-baseweb": "tag",
|
|
181
183
|
"aria-label": isButton && closeable ? "".concat(typeof children === 'string' ? "".concat(children, ", ") : '', "close by backspace") : null,
|
package/tag/types.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
1
|
+
import type * as React from 'react';
|
|
2
2
|
import type { Override } from '../helpers/overrides';
|
|
3
|
-
import type { ReactNode } from 'react';
|
|
4
3
|
export declare const TagKind: Readonly<{
|
|
5
4
|
readonly custom: "custom";
|
|
6
5
|
readonly neutral: "neutral";
|
|
@@ -53,15 +52,15 @@ export declare type TagProps = {
|
|
|
53
52
|
/** Defines tags look. Set it to one of VARIANT[key] values. Defaults to VARIANT.light */
|
|
54
53
|
variant?: TagVariant;
|
|
55
54
|
/** Component or String value for label of tag. Default is empty string. */
|
|
56
|
-
children?: ReactNode;
|
|
55
|
+
children?: React.ReactNode;
|
|
57
56
|
/** The color theme to be applied to a Tag. Default is `KIND.primary`. */
|
|
58
57
|
color?: string;
|
|
59
58
|
/** Text to display in native OS tooltip on long hover. */
|
|
60
59
|
title?: string;
|
|
61
60
|
/** onClick handler for the action button element. */
|
|
62
|
-
onActionClick?: (e: Event, children?: ReactNode) => unknown;
|
|
61
|
+
onActionClick?: (e: Event, children?: React.ReactNode) => unknown;
|
|
63
62
|
/** keydown handler for the action button element. */
|
|
64
|
-
onActionKeyDown?: (e: Event, children?: ReactNode) => unknown;
|
|
63
|
+
onActionKeyDown?: (e: Event, children?: React.ReactNode) => unknown;
|
|
65
64
|
/** onClick handler for the tag. Passing an onClick handler also makes the tag clickable. */
|
|
66
65
|
onClick?: null | ((event: Event) => unknown);
|
|
67
66
|
/** onkeydown handler for the tag. */
|
|
@@ -16,25 +16,30 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
16
16
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
17
17
|
|
|
18
18
|
var StyledTextAreaRoot = (0, _styles.styled)('div', function (props) {
|
|
19
|
-
return (0, _styledComponents.getRootStyles)(_objectSpread(_objectSpread({
|
|
19
|
+
return _objectSpread(_objectSpread({}, (0, _styledComponents.getRootStyles)(_objectSpread(_objectSpread({
|
|
20
20
|
$positive: false
|
|
21
21
|
}, props), {}, {
|
|
22
22
|
$hasIconTrailing: false
|
|
23
|
-
}))
|
|
23
|
+
}))), {}, {
|
|
24
|
+
width: props.$resize ? 'fit-content' : '100%'
|
|
25
|
+
});
|
|
24
26
|
});
|
|
25
27
|
exports.StyledTextAreaRoot = StyledTextAreaRoot;
|
|
26
28
|
StyledTextAreaRoot.displayName = "StyledTextAreaRoot";
|
|
29
|
+
StyledTextAreaRoot.displayName = 'StyledTextAreaRoot';
|
|
27
30
|
var StyledTextareaContainer = (0, _styles.styled)('div', function (props) {
|
|
28
|
-
return
|
|
31
|
+
return (0, _styledComponents.getInputContainerStyles)(_objectSpread({
|
|
29
32
|
$positive: false
|
|
30
|
-
}, props))
|
|
33
|
+
}, props));
|
|
31
34
|
});
|
|
32
35
|
exports.StyledTextareaContainer = StyledTextareaContainer;
|
|
33
36
|
StyledTextareaContainer.displayName = "StyledTextareaContainer";
|
|
37
|
+
StyledTextareaContainer.displayName = 'StyledTextareaContainer';
|
|
34
38
|
var StyledTextarea = (0, _styles.styled)('textarea', function (props) {
|
|
35
39
|
return _objectSpread(_objectSpread({}, (0, _styledComponents.getInputStyles)(props)), {}, {
|
|
36
|
-
resize: 'none'
|
|
40
|
+
resize: props.$resize || 'none'
|
|
37
41
|
});
|
|
38
42
|
});
|
|
39
43
|
exports.StyledTextarea = StyledTextarea;
|
|
40
|
-
StyledTextarea.displayName = "StyledTextarea";
|
|
44
|
+
StyledTextarea.displayName = "StyledTextarea";
|
|
45
|
+
StyledTextarea.displayName = 'StyledTextarea';
|
package/textarea/textarea.js
CHANGED
|
@@ -124,12 +124,14 @@ var Textarea = /*#__PURE__*/function (_React$Component) {
|
|
|
124
124
|
$disabled: this.props.disabled,
|
|
125
125
|
$error: this.props.error,
|
|
126
126
|
$positive: this.props.positive,
|
|
127
|
-
$required: this.props.required
|
|
127
|
+
$required: this.props.required,
|
|
128
|
+
$resize: this.props.resize
|
|
128
129
|
}, rootProps), /*#__PURE__*/React.createElement(_input.BaseInput, _extends({}, this.props, {
|
|
129
130
|
type: _input.CUSTOM_INPUT_TYPE.textarea,
|
|
130
131
|
overrides: inputOverrides,
|
|
131
132
|
onFocus: this.onFocus,
|
|
132
|
-
onBlur: this.onBlur
|
|
133
|
+
onBlur: this.onBlur,
|
|
134
|
+
resize: this.props.resize
|
|
133
135
|
})));
|
|
134
136
|
}
|
|
135
137
|
}]);
|
package/textarea/types.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { Properties } from 'csstype';
|
|
2
3
|
import type { Override } from '../helpers/overrides';
|
|
3
|
-
import type { BaseInputProps, StateReducer, State } from '../input';
|
|
4
|
-
|
|
5
|
-
import type { SyntheticEvent } from 'react';
|
|
6
|
-
declare type SyntheticTextareaEvent = SyntheticEvent<HTMLTextAreaElement>;
|
|
4
|
+
import type { BaseInputProps, StateReducer, State, ADJOINED, SIZE } from '../input';
|
|
5
|
+
declare type SyntheticTextareaEvent = React.SyntheticEvent<HTMLTextAreaElement>;
|
|
7
6
|
export declare type Size = keyof typeof SIZE;
|
|
8
7
|
export declare type SharedStyleProps = {
|
|
9
8
|
$adjoined: keyof typeof ADJOINED;
|
|
@@ -13,6 +12,7 @@ export declare type SharedStyleProps = {
|
|
|
13
12
|
$isReadOnly?: boolean;
|
|
14
13
|
$positive?: boolean;
|
|
15
14
|
$required?: boolean;
|
|
15
|
+
$resize?: Properties['resize'];
|
|
16
16
|
$size: Size;
|
|
17
17
|
};
|
|
18
18
|
declare type BaseTextAreaProps = BaseInputProps<HTMLTextAreaElement>;
|
|
@@ -21,6 +21,7 @@ export declare type TextareaOverrides = {
|
|
|
21
21
|
} & BaseTextAreaProps['overrides'];
|
|
22
22
|
export declare type TextareaProps = {
|
|
23
23
|
overrides?: TextareaOverrides;
|
|
24
|
+
resize?: Properties['resize'];
|
|
24
25
|
/** Sets the size and number of visible text lines
|
|
25
26
|
of the textarea element. */
|
|
26
27
|
rows?: number;
|
package/textarea/types.js.flow
CHANGED
|
@@ -6,7 +6,7 @@ LICENSE file in the root directory of this source tree.
|
|
|
6
6
|
*/
|
|
7
7
|
// @flow
|
|
8
8
|
import * as React from 'react';
|
|
9
|
-
|
|
9
|
+
import type { Property$Resize } from 'csstype';
|
|
10
10
|
import type { OverrideT } from '../helpers/overrides.js';
|
|
11
11
|
import type { BaseInputPropsT, StateReducerT, StateT } from '../input/types.js';
|
|
12
12
|
import { ADJOINED, SIZE } from '../input/constants.js';
|
|
@@ -23,6 +23,7 @@ export type SharedStylePropsT = {
|
|
|
23
23
|
$isReadOnly: boolean,
|
|
24
24
|
$positive?: boolean,
|
|
25
25
|
$required: boolean,
|
|
26
|
+
$resize?: Property$Resize,
|
|
26
27
|
$size: SizeT,
|
|
27
28
|
};
|
|
28
29
|
|
|
@@ -36,6 +37,7 @@ export type TextareaOverridesT = {
|
|
|
36
37
|
export type TextareaPropsT = {
|
|
37
38
|
...BaseTextAreaPropsT,
|
|
38
39
|
overrides?: TextareaOverridesT,
|
|
40
|
+
resize?: Property$Resize,
|
|
39
41
|
/** Sets the size and number of visible text lines
|
|
40
42
|
of the textarea element. */
|
|
41
43
|
rows?: number,
|
|
@@ -13,6 +13,24 @@ export declare const typography: {
|
|
|
13
13
|
font1150: {
|
|
14
14
|
fontFamily: string;
|
|
15
15
|
};
|
|
16
|
+
font1050: {
|
|
17
|
+
fontFamily: string;
|
|
18
|
+
};
|
|
19
|
+
font950: {
|
|
20
|
+
fontFamily: string;
|
|
21
|
+
};
|
|
22
|
+
font850: {
|
|
23
|
+
fontFamily: string;
|
|
24
|
+
};
|
|
25
|
+
font750: {
|
|
26
|
+
fontFamily: string;
|
|
27
|
+
};
|
|
28
|
+
font650: {
|
|
29
|
+
fontFamily: string;
|
|
30
|
+
};
|
|
31
|
+
font550: {
|
|
32
|
+
fontFamily: string;
|
|
33
|
+
};
|
|
16
34
|
DisplayLarge: {
|
|
17
35
|
fontFamily: string;
|
|
18
36
|
};
|
|
@@ -25,6 +43,24 @@ export declare const typography: {
|
|
|
25
43
|
DisplayXSmall: {
|
|
26
44
|
fontFamily: string;
|
|
27
45
|
};
|
|
46
|
+
HeadingXXLarge: {
|
|
47
|
+
fontFamily: string;
|
|
48
|
+
};
|
|
49
|
+
HeadingXLarge: {
|
|
50
|
+
fontFamily: string;
|
|
51
|
+
};
|
|
52
|
+
HeadingLarge: {
|
|
53
|
+
fontFamily: string;
|
|
54
|
+
};
|
|
55
|
+
HeadingMedium: {
|
|
56
|
+
fontFamily: string;
|
|
57
|
+
};
|
|
58
|
+
HeadingSmall: {
|
|
59
|
+
fontFamily: string;
|
|
60
|
+
};
|
|
61
|
+
HeadingXSmall: {
|
|
62
|
+
fontFamily: string;
|
|
63
|
+
};
|
|
28
64
|
MonoParagraphXSmall: {
|
|
29
65
|
fontFamily: string;
|
|
30
66
|
};
|