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/esm/tabs/tabs.js
CHANGED
|
@@ -78,7 +78,8 @@ var Tabs = /*#__PURE__*/function (_React$Component) {
|
|
|
78
78
|
orientation = _this$props.orientation,
|
|
79
79
|
children = _this$props.children,
|
|
80
80
|
_this$props$overrides = _this$props.overrides,
|
|
81
|
-
overrides = _this$props$overrides === void 0 ? {} : _this$props$overrides;
|
|
81
|
+
overrides = _this$props$overrides === void 0 ? {} : _this$props$overrides; // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
82
|
+
|
|
82
83
|
var tabs = React.Children.map(children, function (child, index) {
|
|
83
84
|
if (!child) return;
|
|
84
85
|
var key = child.key || String(index);
|
|
@@ -116,7 +117,8 @@ var Tabs = /*#__PURE__*/function (_React$Component) {
|
|
|
116
117
|
var _getOverrides = getOverrides(TabContentOverride, StyledTabContent),
|
|
117
118
|
_getOverrides2 = _slicedToArray(_getOverrides, 2),
|
|
118
119
|
TabContent = _getOverrides2[0],
|
|
119
|
-
tabContentProps = _getOverrides2[1];
|
|
120
|
+
tabContentProps = _getOverrides2[1]; // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
121
|
+
|
|
120
122
|
|
|
121
123
|
var tabs = React.Children.map(children, function (child, index) {
|
|
122
124
|
if (!child) return;
|
|
@@ -30,16 +30,27 @@ export var StyledRoot = styled('div', function (_ref) {
|
|
|
30
30
|
return style;
|
|
31
31
|
});
|
|
32
32
|
StyledRoot.displayName = "StyledRoot";
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
$
|
|
37
|
-
|
|
38
|
-
|
|
33
|
+
StyledRoot.displayName = 'StyledRoot';
|
|
34
|
+
export var StyledTabBar = styled('div', function (_ref2) {
|
|
35
|
+
var $hasEndEnhancer = _ref2.$hasEndEnhancer,
|
|
36
|
+
$orientation = _ref2.$orientation;
|
|
37
|
+
return $hasEndEnhancer || !isHorizontal($orientation) ? {
|
|
38
|
+
display: 'flex'
|
|
39
|
+
} : {};
|
|
40
|
+
});
|
|
41
|
+
StyledTabBar.displayName = "StyledTabBar";
|
|
42
|
+
StyledTabBar.displayName = 'StyledTabBar';
|
|
43
|
+
export var StyledTabList = styled('div', function (_ref3) {
|
|
44
|
+
var $theme = _ref3.$theme,
|
|
45
|
+
_ref3$$fill = _ref3.$fill,
|
|
46
|
+
$fill = _ref3$$fill === void 0 ? FILL.intrinsic : _ref3$$fill,
|
|
47
|
+
_ref3$$orientation = _ref3.$orientation,
|
|
48
|
+
$orientation = _ref3$$orientation === void 0 ? ORIENTATION.horizontal : _ref3$$orientation;
|
|
39
49
|
var style = {
|
|
40
50
|
position: 'relative',
|
|
41
51
|
display: 'flex',
|
|
42
|
-
flexWrap: 'nowrap'
|
|
52
|
+
flexWrap: 'nowrap',
|
|
53
|
+
flexGrow: 1
|
|
43
54
|
};
|
|
44
55
|
|
|
45
56
|
if (isHorizontal($orientation)) {
|
|
@@ -75,16 +86,17 @@ export var StyledTabList = styled('div', function (_ref2) {
|
|
|
75
86
|
return style;
|
|
76
87
|
});
|
|
77
88
|
StyledTabList.displayName = "StyledTabList";
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
89
|
+
StyledTabList.displayName = 'StyledTabList';
|
|
90
|
+
export var StyledTab = styled('button', function (_ref4) {
|
|
91
|
+
var $theme = _ref4.$theme,
|
|
92
|
+
_ref4$$orientation = _ref4.$orientation,
|
|
93
|
+
$orientation = _ref4$$orientation === void 0 ? ORIENTATION.horizontal : _ref4$$orientation,
|
|
94
|
+
_ref4$$fill = _ref4.$fill,
|
|
95
|
+
$fill = _ref4$$fill === void 0 ? FILL.intrinsic : _ref4$$fill,
|
|
96
|
+
_ref4$$focusVisible = _ref4.$focusVisible,
|
|
97
|
+
$focusVisible = _ref4$$focusVisible === void 0 ? false : _ref4$$focusVisible,
|
|
98
|
+
_ref4$$isActive = _ref4.$isActive,
|
|
99
|
+
$isActive = _ref4$$isActive === void 0 ? false : _ref4$$isActive;
|
|
88
100
|
|
|
89
101
|
var style = _objectSpread({
|
|
90
102
|
cursor: 'pointer',
|
|
@@ -145,10 +157,22 @@ export var StyledTab = styled('button', function (_ref3) {
|
|
|
145
157
|
return style;
|
|
146
158
|
});
|
|
147
159
|
StyledTab.displayName = "StyledTab";
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
160
|
+
StyledTab.displayName = 'StyledTab';
|
|
161
|
+
export var StyledEndEnhancerContainer = styled('div', function (_ref5) {
|
|
162
|
+
var $theme = _ref5.$theme;
|
|
163
|
+
var marginDirection = $theme.direction === 'rtl' ? 'marginRight' : 'marginLeft';
|
|
164
|
+
return _defineProperty({
|
|
165
|
+
display: 'flex',
|
|
166
|
+
alignItems: 'center',
|
|
167
|
+
justifyContent: 'flex-end'
|
|
168
|
+
}, marginDirection, $theme.sizing.scale600);
|
|
169
|
+
});
|
|
170
|
+
StyledEndEnhancerContainer.displayName = "StyledEndEnhancerContainer";
|
|
171
|
+
StyledEndEnhancerContainer.displayName = 'StyledEndEnhancerContainer';
|
|
172
|
+
export var StyledArtworkContainer = styled('div', function (_ref7) {
|
|
173
|
+
var $theme = _ref7.$theme,
|
|
174
|
+
_ref7$$orientation = _ref7.$orientation,
|
|
175
|
+
$orientation = _ref7$$orientation === void 0 ? ORIENTATION.horizontal : _ref7$$orientation;
|
|
152
176
|
var style = {
|
|
153
177
|
display: 'flex'
|
|
154
178
|
};
|
|
@@ -162,10 +186,11 @@ export var StyledArtworkContainer = styled('div', function (_ref4) {
|
|
|
162
186
|
return style;
|
|
163
187
|
});
|
|
164
188
|
StyledArtworkContainer.displayName = "StyledArtworkContainer";
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
189
|
+
StyledArtworkContainer.displayName = 'StyledArtworkContainer';
|
|
190
|
+
export var StyledTabBorder = styled('div', function (_ref8) {
|
|
191
|
+
var $theme = _ref8.$theme,
|
|
192
|
+
_ref8$$orientation = _ref8.$orientation,
|
|
193
|
+
$orientation = _ref8$$orientation === void 0 ? ORIENTATION.horizontal : _ref8$$orientation;
|
|
169
194
|
var style = {
|
|
170
195
|
backgroundColor: $theme.colors.borderOpaque,
|
|
171
196
|
position: 'relative'
|
|
@@ -180,16 +205,17 @@ export var StyledTabBorder = styled('div', function (_ref5) {
|
|
|
180
205
|
return style;
|
|
181
206
|
});
|
|
182
207
|
StyledTabBorder.displayName = "StyledTabBorder";
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
208
|
+
StyledTabBorder.displayName = 'StyledTabBorder';
|
|
209
|
+
export var StyledTabHighlight = styled('div', function (_ref9) {
|
|
210
|
+
var $theme = _ref9.$theme,
|
|
211
|
+
_ref9$$orientation = _ref9.$orientation,
|
|
212
|
+
$orientation = _ref9$$orientation === void 0 ? ORIENTATION.horizontal : _ref9$$orientation,
|
|
213
|
+
_ref9$$length = _ref9.$length,
|
|
214
|
+
$length = _ref9$$length === void 0 ? 0 : _ref9$$length,
|
|
215
|
+
_ref9$$distance = _ref9.$distance,
|
|
216
|
+
$distance = _ref9$$distance === void 0 ? 0 : _ref9$$distance,
|
|
217
|
+
_ref9$$animate = _ref9.$animate,
|
|
218
|
+
$animate = _ref9$$animate === void 0 ? false : _ref9$$animate;
|
|
193
219
|
var style = {
|
|
194
220
|
backgroundColor: $theme.colors.borderSelected,
|
|
195
221
|
position: 'absolute',
|
|
@@ -223,10 +249,11 @@ export var StyledTabHighlight = styled('div', function (_ref6) {
|
|
|
223
249
|
return style;
|
|
224
250
|
});
|
|
225
251
|
StyledTabHighlight.displayName = "StyledTabHighlight";
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
252
|
+
StyledTabHighlight.displayName = 'StyledTabHighlight';
|
|
253
|
+
export var StyledTabPanel = styled('div', function (_ref10) {
|
|
254
|
+
var $theme = _ref10.$theme,
|
|
255
|
+
_ref10$$pad = _ref10.$pad,
|
|
256
|
+
$pad = _ref10$$pad === void 0 ? true : _ref10$$pad;
|
|
230
257
|
var style = {
|
|
231
258
|
flexGrow: 1,
|
|
232
259
|
// only used in vertical orientation
|
|
@@ -242,4 +269,5 @@ export var StyledTabPanel = styled('div', function (_ref7) {
|
|
|
242
269
|
|
|
243
270
|
return style;
|
|
244
271
|
});
|
|
245
|
-
StyledTabPanel.displayName = "StyledTabPanel";
|
|
272
|
+
StyledTabPanel.displayName = "StyledTabPanel";
|
|
273
|
+
StyledTabPanel.displayName = 'StyledTabPanel';
|
package/esm/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/esm/tabs-motion/tabs.js
CHANGED
|
@@ -43,12 +43,13 @@ LICENSE file in the root directory of this source tree.
|
|
|
43
43
|
|
|
44
44
|
/* global window */
|
|
45
45
|
import * as React from 'react';
|
|
46
|
+
import * as ReactIs from 'react-is';
|
|
46
47
|
import { useUID } from 'react-uid';
|
|
47
48
|
import { useStyletron } from '../styles';
|
|
48
49
|
import { getOverrides } from '../helpers/overrides';
|
|
49
50
|
import { isFocusVisible, forkFocus, forkBlur } from '../utils/focusVisible';
|
|
50
51
|
import { ORIENTATION, FILL } from './constants';
|
|
51
|
-
import { StyledRoot, StyledTabList, StyledTab, StyledArtworkContainer, StyledTabHighlight, StyledTabBorder, StyledTabPanel } from './styled-components';
|
|
52
|
+
import { StyledRoot, StyledTabList, StyledTab, StyledArtworkContainer, StyledTabHighlight, StyledTabBorder, StyledTabPanel, StyledEndEnhancerContainer, StyledTabBar } from './styled-components';
|
|
52
53
|
import { getTabId, getTabPanelId, isVertical, isHorizontal, isRTL } from './utils';
|
|
53
54
|
var KEYBOARD_ACTION = {
|
|
54
55
|
next: 'next',
|
|
@@ -111,25 +112,40 @@ var scrollParentToCentreTarget = function scrollParentToCentreTarget(targetNode)
|
|
|
111
112
|
targetNode.parentNode.scroll(target.x, target.y);
|
|
112
113
|
};
|
|
113
114
|
|
|
114
|
-
|
|
115
|
-
var
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
115
|
+
function RenderEnhancer(_ref) {
|
|
116
|
+
var Enhancer = _ref.Enhancer;
|
|
117
|
+
|
|
118
|
+
if (typeof Enhancer === 'string') {
|
|
119
|
+
return Enhancer;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
if (ReactIs.isValidElementType(Enhancer)) {
|
|
123
|
+
return /*#__PURE__*/React.createElement(Enhancer, null);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
return Enhancer;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export function Tabs(_ref2) {
|
|
130
|
+
var _ref2$activeKey = _ref2.activeKey,
|
|
131
|
+
activeKey = _ref2$activeKey === void 0 ? '0' : _ref2$activeKey,
|
|
132
|
+
_ref2$disabled = _ref2.disabled,
|
|
133
|
+
disabled = _ref2$disabled === void 0 ? false : _ref2$disabled,
|
|
134
|
+
children = _ref2.children,
|
|
135
|
+
_ref2$fill = _ref2.fill,
|
|
136
|
+
fill = _ref2$fill === void 0 ? FILL.intrinsic : _ref2$fill,
|
|
137
|
+
_ref2$activateOnFocus = _ref2.activateOnFocus,
|
|
138
|
+
activateOnFocus = _ref2$activateOnFocus === void 0 ? true : _ref2$activateOnFocus,
|
|
139
|
+
onChange = _ref2.onChange,
|
|
140
|
+
_ref2$orientation = _ref2.orientation,
|
|
141
|
+
orientation = _ref2$orientation === void 0 ? ORIENTATION.horizontal : _ref2$orientation,
|
|
142
|
+
_ref2$overrides = _ref2.overrides,
|
|
143
|
+
overrides = _ref2$overrides === void 0 ? {} : _ref2$overrides,
|
|
144
|
+
_ref2$renderAll = _ref2.renderAll,
|
|
145
|
+
renderAll = _ref2$renderAll === void 0 ? false : _ref2$renderAll,
|
|
146
|
+
_ref2$uid = _ref2.uid,
|
|
147
|
+
customUid = _ref2$uid === void 0 ? null : _ref2$uid,
|
|
148
|
+
endEnhancer = _ref2.endEnhancer;
|
|
133
149
|
// Create unique id prefix for this tabs component
|
|
134
150
|
var generatedUid = useUID();
|
|
135
151
|
var uid = customUid || generatedUid; // Unpack overrides
|
|
@@ -157,7 +173,12 @@ export function Tabs(_ref) {
|
|
|
157
173
|
var _getOverrides7 = getOverrides(TabBorderOverrides, StyledTabBorder),
|
|
158
174
|
_getOverrides8 = _slicedToArray(_getOverrides7, 2),
|
|
159
175
|
TabBorder = _getOverrides8[0],
|
|
160
|
-
TabBorderProps = _getOverrides8[1];
|
|
176
|
+
TabBorderProps = _getOverrides8[1];
|
|
177
|
+
|
|
178
|
+
var _getOverrides9 = getOverrides(overrides.EndEnhancerContainer, StyledEndEnhancerContainer),
|
|
179
|
+
_getOverrides10 = _slicedToArray(_getOverrides9, 2),
|
|
180
|
+
EndEnhancerContainer = _getOverrides10[0],
|
|
181
|
+
endEnhancerContainerProps = _getOverrides10[1]; // Count key updates
|
|
161
182
|
// We disable a few things until after first mount:
|
|
162
183
|
// - the highlight animation, avoiding an initial slide-in
|
|
163
184
|
// - smooth scrolling active tab into view
|
|
@@ -263,7 +284,10 @@ export function Tabs(_ref) {
|
|
|
263
284
|
}
|
|
264
285
|
}
|
|
265
286
|
}, [orientation, theme.direction]);
|
|
266
|
-
return /*#__PURE__*/React.createElement(Root, _extends({}, sharedStylingProps, RootProps), /*#__PURE__*/React.createElement(
|
|
287
|
+
return /*#__PURE__*/React.createElement(Root, _extends({}, sharedStylingProps, RootProps), /*#__PURE__*/React.createElement(StyledTabBar, {
|
|
288
|
+
$hasEndEnhancer: Boolean(endEnhancer),
|
|
289
|
+
$orientation: orientation
|
|
290
|
+
}, /*#__PURE__*/React.createElement(TabList, _extends({
|
|
267
291
|
"data-baseweb": "tab-list",
|
|
268
292
|
role: "tablist",
|
|
269
293
|
"aria-orientation": orientation
|
|
@@ -291,7 +315,11 @@ export function Tabs(_ref) {
|
|
|
291
315
|
$animate: keyUpdated > 1,
|
|
292
316
|
"aria-hidden": "true",
|
|
293
317
|
role: "presentation"
|
|
294
|
-
}, sharedStylingProps, TabHighlightProps))), /*#__PURE__*/React.createElement(
|
|
318
|
+
}, sharedStylingProps, TabHighlightProps))), orientation === ORIENTATION.horizontal && endEnhancer !== null && endEnhancer !== undefined && /*#__PURE__*/React.createElement(EndEnhancerContainer, _extends({}, endEnhancerContainerProps, {
|
|
319
|
+
$orientation: orientation
|
|
320
|
+
}), /*#__PURE__*/React.createElement(RenderEnhancer, {
|
|
321
|
+
Enhancer: endEnhancer
|
|
322
|
+
}))), /*#__PURE__*/React.createElement(TabBorder, _extends({
|
|
295
323
|
"data-baseweb": "tab-border",
|
|
296
324
|
"aria-hidden": "true",
|
|
297
325
|
role: "presentation"
|
|
@@ -308,20 +336,20 @@ export function Tabs(_ref) {
|
|
|
308
336
|
}));
|
|
309
337
|
}
|
|
310
338
|
|
|
311
|
-
function InternalTab(
|
|
312
|
-
var childKey =
|
|
313
|
-
childIndex =
|
|
314
|
-
activeKey =
|
|
315
|
-
orientation =
|
|
316
|
-
activeTabRef =
|
|
317
|
-
updateHighlight =
|
|
318
|
-
parseKeyDown =
|
|
319
|
-
activateOnFocus =
|
|
320
|
-
uid =
|
|
321
|
-
disabled =
|
|
322
|
-
sharedStylingProps =
|
|
323
|
-
onChange =
|
|
324
|
-
props = _objectWithoutProperties(
|
|
339
|
+
function InternalTab(_ref3) {
|
|
340
|
+
var childKey = _ref3.childKey,
|
|
341
|
+
childIndex = _ref3.childIndex,
|
|
342
|
+
activeKey = _ref3.activeKey,
|
|
343
|
+
orientation = _ref3.orientation,
|
|
344
|
+
activeTabRef = _ref3.activeTabRef,
|
|
345
|
+
updateHighlight = _ref3.updateHighlight,
|
|
346
|
+
parseKeyDown = _ref3.parseKeyDown,
|
|
347
|
+
activateOnFocus = _ref3.activateOnFocus,
|
|
348
|
+
uid = _ref3.uid,
|
|
349
|
+
disabled = _ref3.disabled,
|
|
350
|
+
sharedStylingProps = _ref3.sharedStylingProps,
|
|
351
|
+
onChange = _ref3.onChange,
|
|
352
|
+
props = _objectWithoutProperties(_ref3, _excluded);
|
|
325
353
|
|
|
326
354
|
var key = childKey || String(childIndex);
|
|
327
355
|
var isActive = key == activeKey;
|
|
@@ -372,15 +400,15 @@ function InternalTab(_ref2) {
|
|
|
372
400
|
var TabOverrides = overrides.Tab,
|
|
373
401
|
ArtworkContainerOverrides = overrides.ArtworkContainer;
|
|
374
402
|
|
|
375
|
-
var
|
|
376
|
-
_getOverrides10 = _slicedToArray(_getOverrides9, 2),
|
|
377
|
-
Tab = _getOverrides10[0],
|
|
378
|
-
TabProps = _getOverrides10[1];
|
|
379
|
-
|
|
380
|
-
var _getOverrides11 = getOverrides(ArtworkContainerOverrides, StyledArtworkContainer),
|
|
403
|
+
var _getOverrides11 = getOverrides(TabOverrides, StyledTab),
|
|
381
404
|
_getOverrides12 = _slicedToArray(_getOverrides11, 2),
|
|
382
|
-
|
|
383
|
-
|
|
405
|
+
Tab = _getOverrides12[0],
|
|
406
|
+
TabProps = _getOverrides12[1];
|
|
407
|
+
|
|
408
|
+
var _getOverrides13 = getOverrides(ArtworkContainerOverrides, StyledArtworkContainer),
|
|
409
|
+
_getOverrides14 = _slicedToArray(_getOverrides13, 2),
|
|
410
|
+
ArtworkContainer = _getOverrides14[0],
|
|
411
|
+
ArtworkContainerProps = _getOverrides14[1]; // Keyboard focus styling
|
|
384
412
|
|
|
385
413
|
|
|
386
414
|
var _React$useState5 = React.useState(false),
|
|
@@ -393,7 +421,8 @@ function InternalTab(_ref2) {
|
|
|
393
421
|
setFocusVisible(true);
|
|
394
422
|
}
|
|
395
423
|
}, []);
|
|
396
|
-
var handleBlur = React.useCallback(
|
|
424
|
+
var handleBlur = React.useCallback( // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
425
|
+
function (event) {
|
|
397
426
|
if (focusVisible !== false) {
|
|
398
427
|
setFocusVisible(false);
|
|
399
428
|
}
|
|
@@ -479,14 +508,14 @@ function InternalTab(_ref2) {
|
|
|
479
508
|
})) : null, title ? title : key);
|
|
480
509
|
}
|
|
481
510
|
|
|
482
|
-
function InternalTabPanel(
|
|
483
|
-
var childKey =
|
|
484
|
-
childIndex =
|
|
485
|
-
activeKey =
|
|
486
|
-
uid =
|
|
487
|
-
sharedStylingProps =
|
|
488
|
-
renderAll =
|
|
489
|
-
props = _objectWithoutProperties(
|
|
511
|
+
function InternalTabPanel(_ref4) {
|
|
512
|
+
var childKey = _ref4.childKey,
|
|
513
|
+
childIndex = _ref4.childIndex,
|
|
514
|
+
activeKey = _ref4.activeKey,
|
|
515
|
+
uid = _ref4.uid,
|
|
516
|
+
sharedStylingProps = _ref4.sharedStylingProps,
|
|
517
|
+
renderAll = _ref4.renderAll,
|
|
518
|
+
props = _objectWithoutProperties(_ref4, _excluded3);
|
|
490
519
|
|
|
491
520
|
var key = childKey || String(childIndex);
|
|
492
521
|
var isActive = key == activeKey;
|
|
@@ -495,10 +524,10 @@ function InternalTabPanel(_ref3) {
|
|
|
495
524
|
children = props.children;
|
|
496
525
|
var TabPanelOverrides = overrides.TabPanel;
|
|
497
526
|
|
|
498
|
-
var
|
|
499
|
-
|
|
500
|
-
TabPanel =
|
|
501
|
-
TabPanelProps =
|
|
527
|
+
var _getOverrides15 = getOverrides(TabPanelOverrides, StyledTabPanel),
|
|
528
|
+
_getOverrides16 = _slicedToArray(_getOverrides15, 2),
|
|
529
|
+
TabPanel = _getOverrides16[0],
|
|
530
|
+
TabPanelProps = _getOverrides16[1];
|
|
502
531
|
|
|
503
532
|
return /*#__PURE__*/React.createElement(TabPanel, _extends({
|
|
504
533
|
"data-baseweb": "tab-panel",
|
|
@@ -279,6 +279,7 @@ export var Action = styled('span', function (props) {
|
|
|
279
279
|
}, _defineProperty(_ref, bottomRadiusDir, $theme.borders.useRoundedCorners ? $theme.borders.radius400 : 0), _defineProperty(_ref, topRadiusDir, $theme.borders.useRoundedCorners ? $theme.borders.radius400 : 0), _defineProperty(_ref, "cursor", $disabled ? 'not-allowed' : 'pointer'), _defineProperty(_ref, "display", 'flex'), _defineProperty(_ref, marginDir, (_SIZE$small$SIZE$medi = {}, _defineProperty(_SIZE$small$SIZE$medi, SIZE.small, '8px'), _defineProperty(_SIZE$small$SIZE$medi, SIZE.medium, '12px'), _defineProperty(_SIZE$small$SIZE$medi, SIZE.large, '16px'), _SIZE$small$SIZE$medi)[$size]), _defineProperty(_ref, "outline", 'none'), _defineProperty(_ref, "transitionProperty", 'all'), _defineProperty(_ref, "transitionDuration", 'background-color'), _defineProperty(_ref, "transitionTimingFunction", $theme.animation.easeOutCurve), _ref;
|
|
280
280
|
});
|
|
281
281
|
Action.displayName = "Action";
|
|
282
|
+
Action.displayName = 'Action';
|
|
282
283
|
export var StartEnhancerContainer = styled('div', function (_ref2) {
|
|
283
284
|
var $theme = _ref2.$theme,
|
|
284
285
|
_ref2$$size = _ref2.$size,
|
|
@@ -298,6 +299,7 @@ export var StartEnhancerContainer = styled('div', function (_ref2) {
|
|
|
298
299
|
}, paddingDir, paddingMagnitude);
|
|
299
300
|
});
|
|
300
301
|
StartEnhancerContainer.displayName = "StartEnhancerContainer";
|
|
302
|
+
StartEnhancerContainer.displayName = 'StartEnhancerContainer';
|
|
301
303
|
export var Text = styled('span', function (props) {
|
|
302
304
|
var $theme = props.$theme;
|
|
303
305
|
return {
|
|
@@ -309,6 +311,7 @@ export var Text = styled('span', function (props) {
|
|
|
309
311
|
};
|
|
310
312
|
});
|
|
311
313
|
Text.displayName = "Text";
|
|
314
|
+
Text.displayName = 'Text';
|
|
312
315
|
export var Root = styled('span', function (props) {
|
|
313
316
|
var _SIZE$small$SIZE$medi2, _SIZE$small$SIZE$medi3, _SIZE$small$SIZE$medi4;
|
|
314
317
|
|
|
@@ -374,4 +377,5 @@ export var Root = styled('span', function (props) {
|
|
|
374
377
|
}
|
|
375
378
|
});
|
|
376
379
|
});
|
|
377
|
-
Root.displayName = "Root";
|
|
380
|
+
Root.displayName = "Root";
|
|
381
|
+
Root.displayName = 'Root';
|
package/esm/tag/tag.js
CHANGED
|
@@ -77,7 +77,8 @@ var Tag = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
77
77
|
if (isFocusVisible(event)) {
|
|
78
78
|
setFocusVisible(true);
|
|
79
79
|
}
|
|
80
|
-
}
|
|
80
|
+
} // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
81
|
+
|
|
81
82
|
|
|
82
83
|
function handleBlur(event) {
|
|
83
84
|
if (focusVisible !== false) {
|
|
@@ -160,7 +161,8 @@ var Tag = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
160
161
|
var actionSize = (_SIZE$small$SIZE$medi = {}, _defineProperty(_SIZE$small$SIZE$medi, SIZE.small, 12), _defineProperty(_SIZE$small$SIZE$medi, SIZE.medium, 16), _defineProperty(_SIZE$small$SIZE$medi, SIZE.large, 20), _SIZE$small$SIZE$medi)[size]; // Capitalize for JSX
|
|
161
162
|
|
|
162
163
|
var StartEnhancer = startEnhancer;
|
|
163
|
-
return /*#__PURE__*/React.createElement(Root
|
|
164
|
+
return /*#__PURE__*/React.createElement(Root // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
165
|
+
, _extends({
|
|
164
166
|
ref: ref,
|
|
165
167
|
"data-baseweb": "tag",
|
|
166
168
|
"aria-label": isButton && closeable ? "".concat(typeof children === 'string' ? "".concat(children, ", ") : '', "close by backspace") : null,
|
|
@@ -13,22 +13,27 @@ LICENSE file in the root directory of this source tree.
|
|
|
13
13
|
import { styled } from '../styles';
|
|
14
14
|
import { getInputStyles, getInputContainerStyles, getRootStyles } from '../input/styled-components';
|
|
15
15
|
export var StyledTextAreaRoot = styled('div', function (props) {
|
|
16
|
-
return getRootStyles(_objectSpread(_objectSpread({
|
|
16
|
+
return _objectSpread(_objectSpread({}, getRootStyles(_objectSpread(_objectSpread({
|
|
17
17
|
$positive: false
|
|
18
18
|
}, props), {}, {
|
|
19
19
|
$hasIconTrailing: false
|
|
20
|
-
}))
|
|
20
|
+
}))), {}, {
|
|
21
|
+
width: props.$resize ? 'fit-content' : '100%'
|
|
22
|
+
});
|
|
21
23
|
});
|
|
22
24
|
StyledTextAreaRoot.displayName = "StyledTextAreaRoot";
|
|
25
|
+
StyledTextAreaRoot.displayName = 'StyledTextAreaRoot';
|
|
23
26
|
export var StyledTextareaContainer = styled('div', function (props) {
|
|
24
|
-
return
|
|
27
|
+
return getInputContainerStyles(_objectSpread({
|
|
25
28
|
$positive: false
|
|
26
|
-
}, props))
|
|
29
|
+
}, props));
|
|
27
30
|
});
|
|
28
31
|
StyledTextareaContainer.displayName = "StyledTextareaContainer";
|
|
32
|
+
StyledTextareaContainer.displayName = 'StyledTextareaContainer';
|
|
29
33
|
export var StyledTextarea = styled('textarea', function (props) {
|
|
30
34
|
return _objectSpread(_objectSpread({}, getInputStyles(props)), {}, {
|
|
31
|
-
resize: 'none'
|
|
35
|
+
resize: props.$resize || 'none'
|
|
32
36
|
});
|
|
33
37
|
});
|
|
34
|
-
StyledTextarea.displayName = "StyledTextarea";
|
|
38
|
+
StyledTextarea.displayName = "StyledTextarea";
|
|
39
|
+
StyledTextarea.displayName = 'StyledTextarea';
|
package/esm/textarea/textarea.js
CHANGED
|
@@ -116,12 +116,14 @@ var Textarea = /*#__PURE__*/function (_React$Component) {
|
|
|
116
116
|
$disabled: this.props.disabled,
|
|
117
117
|
$error: this.props.error,
|
|
118
118
|
$positive: this.props.positive,
|
|
119
|
-
$required: this.props.required
|
|
119
|
+
$required: this.props.required,
|
|
120
|
+
$resize: this.props.resize
|
|
120
121
|
}, rootProps), /*#__PURE__*/React.createElement(BaseInput, _extends({}, this.props, {
|
|
121
122
|
type: CUSTOM_INPUT_TYPE.textarea,
|
|
122
123
|
overrides: inputOverrides,
|
|
123
124
|
onFocus: this.onFocus,
|
|
124
|
-
onBlur: this.onBlur
|
|
125
|
+
onBlur: this.onBlur,
|
|
126
|
+
resize: this.props.resize
|
|
125
127
|
})));
|
|
126
128
|
}
|
|
127
129
|
}]);
|
|
@@ -22,6 +22,24 @@ export var typography = {
|
|
|
22
22
|
font1150: {
|
|
23
23
|
fontFamily: secondaryFontFamily
|
|
24
24
|
},
|
|
25
|
+
font1050: {
|
|
26
|
+
fontFamily: secondaryFontFamily
|
|
27
|
+
},
|
|
28
|
+
font950: {
|
|
29
|
+
fontFamily: secondaryFontFamily
|
|
30
|
+
},
|
|
31
|
+
font850: {
|
|
32
|
+
fontFamily: secondaryFontFamily
|
|
33
|
+
},
|
|
34
|
+
font750: {
|
|
35
|
+
fontFamily: secondaryFontFamily
|
|
36
|
+
},
|
|
37
|
+
font650: {
|
|
38
|
+
fontFamily: secondaryFontFamily
|
|
39
|
+
},
|
|
40
|
+
font550: {
|
|
41
|
+
fontFamily: secondaryFontFamily
|
|
42
|
+
},
|
|
25
43
|
DisplayLarge: {
|
|
26
44
|
fontFamily: secondaryFontFamily
|
|
27
45
|
},
|
|
@@ -34,6 +52,24 @@ export var typography = {
|
|
|
34
52
|
DisplayXSmall: {
|
|
35
53
|
fontFamily: secondaryFontFamily
|
|
36
54
|
},
|
|
55
|
+
HeadingXXLarge: {
|
|
56
|
+
fontFamily: secondaryFontFamily
|
|
57
|
+
},
|
|
58
|
+
HeadingXLarge: {
|
|
59
|
+
fontFamily: secondaryFontFamily
|
|
60
|
+
},
|
|
61
|
+
HeadingLarge: {
|
|
62
|
+
fontFamily: secondaryFontFamily
|
|
63
|
+
},
|
|
64
|
+
HeadingMedium: {
|
|
65
|
+
fontFamily: secondaryFontFamily
|
|
66
|
+
},
|
|
67
|
+
HeadingSmall: {
|
|
68
|
+
fontFamily: secondaryFontFamily
|
|
69
|
+
},
|
|
70
|
+
HeadingXSmall: {
|
|
71
|
+
fontFamily: secondaryFontFamily
|
|
72
|
+
},
|
|
37
73
|
MonoParagraphXSmall: {
|
|
38
74
|
fontFamily: monoFontFamily
|
|
39
75
|
},
|
|
@@ -47,13 +47,18 @@ var borders = {
|
|
|
47
47
|
useRoundedCorners: true,
|
|
48
48
|
|
|
49
49
|
/** Button, ButtonGroup */
|
|
50
|
+
buttonBorderRadiusMini: '4px',
|
|
50
51
|
buttonBorderRadius: '8px',
|
|
51
52
|
|
|
52
|
-
/**
|
|
53
|
-
|
|
53
|
+
/** Checkbox */
|
|
54
|
+
checkboxBorderRadius: '0px',
|
|
55
|
+
|
|
56
|
+
/** Input, Select, Textarea */
|
|
57
|
+
inputBorderRadiusMini: '4px',
|
|
58
|
+
inputBorderRadius: '8px',
|
|
54
59
|
|
|
55
60
|
/** Popover, Menu, Tooltip */
|
|
56
|
-
popoverBorderRadius: '
|
|
61
|
+
popoverBorderRadius: '8px',
|
|
57
62
|
|
|
58
63
|
/** Card, Datepicker, Modal, Toast, Notification */
|
|
59
64
|
surfaceBorderRadius: '0px',
|
|
@@ -67,61 +67,61 @@ export default (function () {
|
|
|
67
67
|
var font550 = {
|
|
68
68
|
fontFamily: fontTokens.primaryFontFamily,
|
|
69
69
|
fontSize: '20px',
|
|
70
|
-
fontWeight:
|
|
70
|
+
fontWeight: 700,
|
|
71
71
|
lineHeight: '28px'
|
|
72
72
|
};
|
|
73
73
|
var font650 = {
|
|
74
74
|
fontFamily: fontTokens.primaryFontFamily,
|
|
75
75
|
fontSize: '24px',
|
|
76
|
-
fontWeight:
|
|
76
|
+
fontWeight: 700,
|
|
77
77
|
lineHeight: '32px'
|
|
78
78
|
};
|
|
79
79
|
var font750 = {
|
|
80
80
|
fontFamily: fontTokens.primaryFontFamily,
|
|
81
81
|
fontSize: '28px',
|
|
82
|
-
fontWeight:
|
|
82
|
+
fontWeight: 700,
|
|
83
83
|
lineHeight: '36px'
|
|
84
84
|
};
|
|
85
85
|
var font850 = {
|
|
86
86
|
fontFamily: fontTokens.primaryFontFamily,
|
|
87
87
|
fontSize: '32px',
|
|
88
|
-
fontWeight:
|
|
88
|
+
fontWeight: 700,
|
|
89
89
|
lineHeight: '40px'
|
|
90
90
|
};
|
|
91
91
|
var font950 = {
|
|
92
92
|
fontFamily: fontTokens.primaryFontFamily,
|
|
93
93
|
fontSize: '36px',
|
|
94
|
-
fontWeight:
|
|
94
|
+
fontWeight: 700,
|
|
95
95
|
lineHeight: '44px'
|
|
96
96
|
};
|
|
97
97
|
var font1050 = {
|
|
98
98
|
fontFamily: fontTokens.primaryFontFamily,
|
|
99
99
|
fontSize: '40px',
|
|
100
|
-
fontWeight:
|
|
100
|
+
fontWeight: 700,
|
|
101
101
|
lineHeight: '52px'
|
|
102
102
|
};
|
|
103
103
|
var font1150 = {
|
|
104
104
|
fontFamily: fontTokens.primaryFontFamily,
|
|
105
105
|
fontSize: '36px',
|
|
106
|
-
fontWeight:
|
|
106
|
+
fontWeight: 700,
|
|
107
107
|
lineHeight: '44px'
|
|
108
108
|
};
|
|
109
109
|
var font1250 = {
|
|
110
110
|
fontFamily: fontTokens.primaryFontFamily,
|
|
111
111
|
fontSize: '44px',
|
|
112
|
-
fontWeight:
|
|
112
|
+
fontWeight: 700,
|
|
113
113
|
lineHeight: '52px'
|
|
114
114
|
};
|
|
115
115
|
var font1350 = {
|
|
116
116
|
fontFamily: fontTokens.primaryFontFamily,
|
|
117
117
|
fontSize: '52px',
|
|
118
|
-
fontWeight:
|
|
118
|
+
fontWeight: 700,
|
|
119
119
|
lineHeight: '64px'
|
|
120
120
|
};
|
|
121
121
|
var font1450 = {
|
|
122
122
|
fontFamily: fontTokens.primaryFontFamily,
|
|
123
123
|
fontSize: '96px',
|
|
124
|
-
fontWeight:
|
|
124
|
+
fontWeight: 700,
|
|
125
125
|
lineHeight: '112px'
|
|
126
126
|
};
|
|
127
127
|
return {
|