baseui 0.0.0-alpha-8ab2335 → 0.0.0-alpha-e79754d
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 +2 -4
- package/accordion/accordion.js.flow +1 -1
- package/accordion/panel.js +2 -3
- package/accordion/stateful-panel-container.js +0 -1
- package/accordion/styled-components.js +1 -8
- package/accordion/types.d.ts +2 -2
- package/app-nav-bar/app-nav-bar.js +2 -4
- package/app-nav-bar/mobile-menu.js +1 -2
- package/app-nav-bar/styled-components.js +1 -19
- 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 +1 -3
- package/aspect-ratio-box/types.d.ts +1 -1
- package/avatar/styled-components.js +1 -4
- package/badge/styled-components.js +11 -16
- 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 +12 -25
- package/banner/types.d.ts +15 -15
- package/banner/types.js.flow +11 -13
- package/block/block.js +1 -3
- package/block/styled-components.js +1 -2
- package/block/types.d.ts +4 -3
- package/breadcrumbs/styled-components.js +2 -7
- package/button/styled-components.js +0 -7
- package/button/styled-components.js.flow +0 -2
- package/button/types.d.ts +5 -4
- package/button-group/stateful-button-group.js +0 -1
- package/button-group/stateful-container.js +1 -3
- package/button-group/styled-components.js +1 -2
- package/button-group/types.d.ts +5 -4
- package/card/images.d.ts +2 -0
- package/card/images.js +17 -0
- package/card/images.js.flow +18 -0
- package/card/styled-components.js +4 -11
- package/checkbox/styled-components.js +4 -10
- package/checkbox/styled-components.js.flow +1 -1
- package/checkbox/types.d.ts +37 -36
- package/combobox/combobox.js +71 -78
- package/combobox/styled-components.js +1 -5
- package/combobox/types.d.ts +5 -4
- package/data-table/column-anchor.js +0 -3
- package/data-table/column-datetime.js +4 -10
- package/data-table/column-numerical.js +4 -4
- package/data-table/column-string.js +0 -3
- package/data-table/column.js +1 -6
- package/data-table/data-table.js +6 -7
- package/data-table/filter-menu.js +1 -2
- package/data-table/header-cell.js +34 -43
- package/data-table/locale.d.ts +0 -4
- package/data-table/locale.js +1 -3
- package/data-table/locale.js.flow +0 -5
- package/data-table/measure-column-widths.js +4 -5
- package/data-table/stateful-container.js +1 -2
- package/data-table/stateful-data-table.js +4 -4
- package/data-table/types.d.ts +5 -4
- package/datepicker/calendar-header.js +0 -1
- package/datepicker/calendar.js +0 -2
- package/datepicker/datepicker.js +0 -2
- package/datepicker/day.js +1 -2
- package/datepicker/index.d.ts +1 -1
- package/datepicker/index.js +0 -7
- package/datepicker/index.js.flow +1 -1
- package/datepicker/stateful-calendar.js +3 -7
- package/datepicker/stateful-container.js +0 -2
- package/datepicker/stateful-datepicker.js +4 -9
- package/datepicker/styled-components.js +4 -27
- package/datepicker/types.d.ts +2 -2
- package/datepicker/utils/date-helpers.js +1 -2
- package/datepicker/utils/index.js +1 -2
- package/divider/styled-components.js +3 -4
- package/divider/types.d.ts +1 -1
- package/dnd-list/stateful-list-container.js +0 -1
- package/dnd-list/styled-components.js +0 -7
- package/dnd-list/types.d.ts +2 -2
- package/drawer/constants.js +0 -1
- package/drawer/drawer.js +3 -2
- package/drawer/drawer.js.flow +3 -1
- package/drawer/styled-components.js +2 -9
- package/drawer/types.d.ts +2 -2
- package/es/accordion/accordion.js +3 -3
- package/es/accordion/panel.js +2 -3
- package/es/accordion/stateful-panel-container.js +0 -1
- package/es/accordion/styled-components.js +1 -8
- package/es/app-nav-bar/app-nav-bar.js +2 -6
- package/es/app-nav-bar/mobile-menu.js +2 -4
- package/es/app-nav-bar/styled-components.js +1 -19
- package/es/app-nav-bar/user-menu.js +1 -1
- package/es/aspect-ratio-box/aspect-ratio-box.js +1 -3
- package/es/avatar/styled-components.js +1 -4
- package/es/badge/styled-components.js +6 -11
- package/es/banner/styled-components.js +3 -16
- package/es/block/block.js +1 -3
- package/es/block/styled-components.js +1 -2
- package/es/breadcrumbs/styled-components.js +2 -7
- package/es/button/button.js +0 -8
- package/es/button/styled-components.js +0 -7
- package/es/button-group/stateful-button-group.js +0 -1
- package/es/button-group/stateful-container.js +1 -3
- package/es/button-group/styled-components.js +1 -2
- package/es/card/images.js +8 -0
- package/es/card/index.js +1 -2
- package/es/card/styled-components.js +4 -12
- package/es/checkbox/index.js +0 -1
- package/es/checkbox/stateful-checkbox-container.js +0 -3
- package/es/checkbox/styled-components.js +4 -10
- package/es/combobox/combobox.js +69 -76
- package/es/combobox/styled-components.js +1 -5
- package/es/data-table/column-anchor.js +0 -3
- package/es/data-table/column-datetime.js +5 -12
- package/es/data-table/column-numerical.js +4 -5
- package/es/data-table/column-string.js +0 -3
- package/es/data-table/column.js +1 -4
- package/es/data-table/data-table.js +6 -7
- package/es/data-table/filter-menu.js +1 -2
- package/es/data-table/header-cell.js +34 -41
- package/es/data-table/locale.js +1 -3
- package/es/data-table/measure-column-widths.js +4 -5
- package/es/data-table/stateful-container.js +1 -2
- package/es/data-table/stateful-data-table.js +4 -4
- package/es/datepicker/calendar-header.js +0 -1
- package/es/datepicker/calendar.js +0 -2
- package/es/datepicker/datepicker.js +1 -3
- package/es/datepicker/day.js +1 -2
- package/es/datepicker/index.js +1 -1
- package/es/datepicker/stateful-calendar.js +1 -4
- package/es/datepicker/stateful-container.js +0 -2
- package/es/datepicker/stateful-datepicker.js +1 -5
- package/es/datepicker/styled-components.js +3 -26
- package/es/datepicker/utils/date-helpers.js +1 -2
- package/es/datepicker/utils/index.js +1 -2
- package/es/divider/styled-components.js +2 -3
- package/es/dnd-list/stateful-list-container.js +0 -1
- package/es/dnd-list/styled-components.js +0 -7
- package/es/drawer/constants.js +0 -1
- package/es/drawer/drawer.js +5 -2
- package/es/drawer/styled-components.js +2 -9
- package/es/file-uploader/file-uploader.js +78 -82
- package/es/file-uploader/styled-components.js +1 -6
- package/es/flex-grid/flex-grid-item.js +6 -5
- package/es/flex-grid/flex-grid.js +1 -4
- package/es/form-control/styled-components.js +1 -6
- package/es/header-navigation/styled-components.js +1 -4
- package/es/helper/styled-components.js +1 -3
- package/es/helpers/overrides.js +5 -9
- package/es/icon/build-icons.js +2 -0
- package/es/icon/index.js +1 -1
- package/es/icon/omit-dollar-prefixed-keys.js +0 -1
- package/es/icon/styled-components.js +1 -2
- package/es/input/base-input.js +12 -9
- package/es/input/input.js +13 -9
- package/es/input/masked-input.js +2 -9
- package/es/input/stateful-container.js +0 -1
- package/es/input/styled-components.js +7 -18
- package/es/input/utils.js +0 -2
- package/es/layer/layer.js +0 -24
- package/es/layer/layers-manager.js +1 -91
- package/es/layout-grid/styled-components.js +0 -3
- package/es/link/index.js +1 -2
- package/es/link/styled-components.js +1 -2
- package/es/list/list-heading.js +17 -21
- package/es/list/list-item.js +1 -2
- package/es/list/styled-components.js +1 -17
- package/es/locale/es_AR.js +1 -3
- package/es/locale/index.js +1 -2
- package/es/locale/tr_TR.js +1 -3
- package/es/map-marker/constants.js +0 -14
- package/es/map-marker/fixed-marker.js +0 -1
- package/es/map-marker/index.js +1 -2
- package/es/map-marker/pin-head.js +0 -1
- package/es/map-marker/styled-components.js +2 -86
- package/es/menu/index.js +1 -1
- package/es/menu/menu.js +4 -14
- package/es/menu/option-profile.js +0 -1
- package/es/menu/stateful-container.js +0 -10
- package/es/menu/styled-components.js +2 -32
- package/es/modal/modal.js +6 -4
- package/es/modal/styled-components.js +1 -8
- package/es/pagination/stateful-container.js +0 -1
- package/es/pagination/stateful-pagination.js +0 -1
- package/es/pagination/styled-components.js +1 -4
- package/es/payment-card/styled-components.js +1 -2
- package/es/phone-input/base-country-picker.js +1 -3
- package/es/phone-input/country-select-dropdown.js +0 -1
- package/es/phone-input/styled-components.js +4 -15
- package/es/pin-code/styled-components.js +1 -4
- package/es/popover/popover.js +11 -9
- package/es/popover/stateful-container.js +1 -4
- package/es/popover/styled-components.js +4 -9
- package/es/progress-bar/progressbar-rounded.js +0 -1
- package/es/progress-bar/styled-components.js +2 -14
- package/es/progress-steps/progress-steps.js +1 -2
- package/es/progress-steps/styled-components.js +12 -20
- package/es/radio/stateful-radiogroup-container.js +0 -3
- package/es/radio/styled-components.js +3 -10
- package/es/rating/emoticon-rating.js +1 -2
- package/es/rating/star-rating.js +1 -2
- package/es/rating/styled-components.js +1 -5
- package/es/select/autosize-input.js +3 -2
- package/es/select/default-props.js +1 -1
- package/es/select/dropdown.js +1 -2
- package/es/select/multi-value.js +1 -2
- package/es/select/select-component.js +10 -10
- package/es/select/single-select.js +2 -2
- package/es/select/stateful-select-container.js +0 -2
- package/es/select/styled-components.js +6 -33
- package/es/select/value.js +4 -3
- package/es/side-navigation/index.js +1 -2
- package/es/side-navigation/nav-item.js +0 -1
- package/es/side-navigation/nav.js +1 -1
- package/es/side-navigation/stateful-container.js +0 -1
- package/es/side-navigation/styled-components.js +2 -8
- package/es/skeleton/styled-components.js +1 -3
- package/es/slider/slider.js +2 -4
- package/es/slider/stateful-slider-container.js +0 -2
- package/es/slider/styled-components.js +0 -9
- package/es/snackbar/snackbar-element.js +0 -1
- package/es/snackbar/styled-components.js +1 -9
- package/es/spinner/styled-components.js +1 -2
- package/es/styles/__mocks__/styled.js +5 -8
- package/es/styles/styled.js +6 -7
- package/es/table/index.js +1 -2
- package/es/table/styled-components.js +1 -13
- package/es/table-grid/styled-components.js +1 -4
- package/es/table-semantic/styled-components.js +3 -20
- package/es/tabs/stateful-tabs.js +0 -1
- package/es/tabs/styled-components.js +1 -5
- package/es/tabs/tabs.js +2 -4
- package/es/tabs-motion/styled-components.js +2 -32
- package/es/tabs-motion/tab.js +0 -1
- package/es/tabs-motion/tabs.js +6 -31
- package/es/tag/styled-components.js +1 -32
- package/es/tag/tag.js +2 -6
- package/es/textarea/styled-components.js +12 -20
- package/es/textarea/textarea.js +15 -13
- package/es/themes/dark-theme/color-component-tokens.js +1 -1
- package/es/themes/light-theme/color-component-tokens.js +1 -1
- package/es/themes/move-theme/typography.js +0 -36
- package/es/themes/shared/borders.js +3 -8
- package/es/themes/shared/typography.js +10 -10
- package/es/timezonepicker/timezone-picker.js +1 -5
- package/es/timezonepicker/tzdata.js +1 -1
- package/es/timezonepicker/update-tzdata.js +6 -11
- package/es/toast/styled-components.js +1 -5
- package/es/toast/toaster.js +2 -0
- package/es/tokens/colors.js +0 -24
- package/es/tooltip/styled-components.js +1 -4
- package/es/tree-view/index.js +1 -2
- package/es/tree-view/styled-components.js +1 -7
- package/es/tree-view/tree-view.js +1 -3
- package/es/types/globals.d.js +0 -12
- package/es/utils/deep-merge.js +5 -0
- package/es/utils/deprecated-component.js +0 -1
- package/es/utils/focusVisible.js +2 -4
- package/esm/accordion/accordion.js +4 -4
- package/esm/accordion/panel.js +2 -3
- package/esm/accordion/stateful-panel-container.js +0 -1
- package/esm/accordion/styled-components.js +1 -8
- package/esm/app-nav-bar/app-nav-bar.js +2 -4
- package/esm/app-nav-bar/mobile-menu.js +2 -4
- package/esm/app-nav-bar/styled-components.js +1 -19
- package/esm/app-nav-bar/user-menu.js +1 -1
- package/esm/aspect-ratio-box/aspect-ratio-box.js +1 -3
- package/esm/avatar/styled-components.js +1 -4
- package/esm/badge/styled-components.js +6 -11
- package/esm/banner/styled-components.js +3 -16
- package/esm/block/block.js +1 -3
- package/esm/block/styled-components.js +1 -2
- package/esm/breadcrumbs/styled-components.js +2 -7
- package/esm/button/styled-components.js +0 -7
- package/esm/button-group/stateful-button-group.js +0 -1
- package/esm/button-group/stateful-container.js +1 -3
- package/esm/button-group/styled-components.js +1 -2
- package/esm/card/images.js +8 -0
- package/esm/card/index.js +1 -2
- package/esm/card/styled-components.js +4 -12
- package/esm/checkbox/index.js +0 -1
- package/esm/checkbox/styled-components.js +4 -10
- package/esm/combobox/combobox.js +71 -78
- package/esm/combobox/styled-components.js +1 -5
- package/esm/data-table/column-anchor.js +0 -3
- package/esm/data-table/column-datetime.js +5 -12
- package/esm/data-table/column-numerical.js +4 -4
- package/esm/data-table/column-string.js +0 -3
- package/esm/data-table/column.js +1 -5
- package/esm/data-table/data-table.js +6 -7
- package/esm/data-table/filter-menu.js +1 -2
- package/esm/data-table/header-cell.js +34 -42
- package/esm/data-table/locale.js +1 -3
- package/esm/data-table/measure-column-widths.js +4 -5
- package/esm/data-table/stateful-container.js +1 -2
- package/esm/data-table/stateful-data-table.js +4 -4
- package/esm/datepicker/calendar-header.js +0 -1
- package/esm/datepicker/calendar.js +0 -2
- package/esm/datepicker/datepicker.js +1 -3
- package/esm/datepicker/day.js +1 -2
- package/esm/datepicker/index.js +1 -1
- package/esm/datepicker/stateful-calendar.js +3 -7
- package/esm/datepicker/stateful-container.js +0 -2
- package/esm/datepicker/stateful-datepicker.js +4 -9
- package/esm/datepicker/styled-components.js +3 -26
- package/esm/datepicker/utils/date-helpers.js +1 -2
- package/esm/datepicker/utils/index.js +1 -2
- package/esm/divider/styled-components.js +2 -3
- package/esm/dnd-list/stateful-list-container.js +0 -1
- package/esm/dnd-list/styled-components.js +0 -7
- package/esm/drawer/constants.js +0 -1
- package/esm/drawer/drawer.js +5 -2
- package/esm/drawer/styled-components.js +2 -9
- package/esm/file-uploader/file-uploader.js +83 -87
- package/esm/file-uploader/styled-components.js +1 -6
- package/esm/flex-grid/flex-grid-item.js +5 -4
- package/esm/flex-grid/flex-grid.js +3 -7
- package/esm/form-control/styled-components.js +1 -6
- package/esm/header-navigation/styled-components.js +1 -4
- package/esm/helper/styled-components.js +1 -3
- package/esm/helpers/overrides.js +5 -9
- package/esm/icon/build-icons.js +2 -0
- package/esm/icon/index.js +1 -1
- package/esm/icon/omit-dollar-prefixed-keys.js +0 -1
- package/esm/icon/styled-components.js +1 -2
- package/esm/input/base-input.js +12 -9
- package/esm/input/input.js +13 -9
- package/esm/input/masked-input.js +2 -5
- package/esm/input/stateful-container.js +0 -1
- package/esm/input/styled-components.js +7 -18
- package/esm/input/utils.js +0 -2
- package/esm/layer/layer.js +0 -24
- package/esm/layer/layers-manager.js +1 -97
- package/esm/layout-grid/styled-components.js +0 -3
- package/esm/link/index.js +1 -2
- package/esm/link/styled-components.js +1 -2
- package/esm/list/list-heading.js +17 -21
- package/esm/list/list-item.js +1 -2
- package/esm/list/styled-components.js +1 -17
- package/esm/locale/es_AR.js +1 -3
- package/esm/locale/index.js +1 -4
- package/esm/locale/tr_TR.js +1 -3
- package/esm/map-marker/constants.js +2 -12
- package/esm/map-marker/index.js +1 -2
- package/esm/map-marker/styled-components.js +2 -82
- package/esm/menu/index.js +1 -1
- package/esm/menu/menu.js +4 -16
- package/esm/menu/option-profile.js +0 -1
- package/esm/menu/stateful-container.js +0 -1
- package/esm/menu/styled-components.js +6 -38
- package/esm/modal/modal.js +6 -4
- package/esm/modal/styled-components.js +1 -8
- package/esm/pagination/stateful-container.js +0 -1
- package/esm/pagination/stateful-pagination.js +0 -1
- package/esm/pagination/styled-components.js +1 -4
- package/esm/payment-card/styled-components.js +1 -2
- package/esm/phone-input/base-country-picker.js +1 -3
- package/esm/phone-input/country-select-dropdown.js +0 -1
- package/esm/phone-input/styled-components.js +8 -20
- package/esm/pin-code/styled-components.js +1 -4
- package/esm/popover/popover.js +11 -9
- package/esm/popover/stateful-container.js +1 -4
- package/esm/popover/styled-components.js +4 -9
- package/esm/progress-bar/progressbar-rounded.js +0 -1
- package/esm/progress-bar/styled-components.js +2 -14
- package/esm/progress-steps/progress-steps.js +1 -2
- package/esm/progress-steps/styled-components.js +19 -28
- package/esm/radio/styled-components.js +3 -10
- package/esm/rating/emoticon-rating.js +1 -2
- package/esm/rating/star-rating.js +1 -2
- package/esm/rating/styled-components.js +1 -5
- package/esm/select/autosize-input.js +3 -2
- package/esm/select/default-props.js +1 -1
- package/esm/select/dropdown.js +1 -2
- package/esm/select/multi-value.js +1 -2
- package/esm/select/select-component.js +10 -10
- package/esm/select/single-select.js +2 -2
- package/esm/select/styled-components.js +6 -33
- package/esm/select/value.js +4 -3
- package/esm/side-navigation/index.js +1 -2
- package/esm/side-navigation/nav-item.js +0 -1
- package/esm/side-navigation/nav.js +1 -1
- package/esm/side-navigation/stateful-container.js +0 -1
- package/esm/side-navigation/styled-components.js +6 -13
- package/esm/skeleton/styled-components.js +1 -3
- package/esm/slider/slider.js +2 -4
- package/esm/slider/styled-components.js +0 -9
- package/esm/snackbar/snackbar-element.js +0 -1
- package/esm/snackbar/styled-components.js +1 -9
- package/esm/spinner/styled-components.js +1 -2
- package/esm/styles/__mocks__/styled.js +5 -8
- package/esm/styles/styled.js +6 -7
- package/esm/table/index.js +1 -2
- package/esm/table/styled-components.js +1 -13
- package/esm/table-grid/styled-components.js +1 -4
- package/esm/table-semantic/styled-components.js +3 -20
- package/esm/tabs/stateful-tabs.js +0 -1
- package/esm/tabs/styled-components.js +1 -5
- package/esm/tabs/tabs.js +2 -4
- package/esm/tabs-motion/styled-components.js +40 -68
- package/esm/tabs-motion/tab.js +0 -1
- package/esm/tabs-motion/tabs.js +58 -87
- package/esm/tag/styled-components.js +1 -5
- package/esm/tag/tag.js +2 -4
- package/esm/textarea/styled-components.js +6 -11
- package/esm/textarea/textarea.js +15 -13
- package/esm/themes/dark-theme/color-component-tokens.js +1 -1
- package/esm/themes/light-theme/color-component-tokens.js +1 -1
- package/esm/themes/move-theme/typography.js +0 -36
- package/esm/themes/shared/borders.js +3 -8
- package/esm/themes/shared/typography.js +10 -10
- package/esm/timezonepicker/timezone-picker.js +2 -6
- package/esm/timezonepicker/tzdata.js +1 -1
- package/esm/timezonepicker/update-tzdata.js +39 -51
- package/esm/toast/styled-components.js +1 -5
- package/esm/toast/toaster.js +2 -0
- package/esm/tokens/colors.js +0 -24
- package/esm/tooltip/styled-components.js +1 -4
- package/esm/tree-view/index.js +1 -2
- package/esm/tree-view/styled-components.js +1 -7
- package/esm/tree-view/tree-view.js +1 -3
- package/esm/types/globals.d.js +0 -12
- package/esm/utils/deep-merge.js +5 -0
- package/esm/utils/deprecated-component.js +0 -1
- package/esm/utils/focusVisible.js +2 -4
- package/file-uploader/file-uploader.js +83 -87
- package/file-uploader/styled-components.js +1 -6
- package/flex-grid/flex-grid-item.d.ts +1 -1
- package/flex-grid/flex-grid-item.js +8 -6
- package/flex-grid/flex-grid.js +3 -7
- package/flex-grid/types.d.ts +1 -1
- package/form-control/styled-components.js +1 -6
- package/form-control/types.d.ts +1 -1
- package/header-navigation/styled-components.js +1 -4
- package/heading/types.d.ts +1 -1
- package/helper/styled-components.js +1 -3
- package/helpers/overrides.js +3 -8
- package/helpers/overrides.js.flow +1 -1
- package/helpers/types.d.ts +1 -1
- package/icon/build-icons.js +2 -0
- package/icon/build-icons.js.flow +1 -0
- package/icon/index.d.ts +1 -1
- package/icon/index.js +1 -8
- package/icon/index.js.flow +1 -1
- package/icon/omit-dollar-prefixed-keys.js +0 -1
- package/icon/styled-components.js +1 -2
- package/icon/types.d.ts +1 -1
- package/input/base-input.js +12 -8
- package/input/base-input.js.flow +8 -4
- package/input/input.js +13 -9
- package/input/input.js.flow +9 -5
- package/input/masked-input.js +2 -5
- package/input/stateful-container.js +0 -1
- package/input/styled-components.js +7 -18
- package/input/styled-components.js.flow +2 -9
- package/input/types.d.ts +14 -16
- package/input/types.js.flow +0 -3
- package/input/utils.js +0 -2
- package/layer/layer.js +0 -24
- package/layer/layer.js.flow +0 -25
- package/layer/layers-manager.d.ts +0 -8
- package/layer/layers-manager.js +1 -97
- package/layer/layers-manager.js.flow +1 -84
- package/layer/types.d.ts +2 -23
- package/layer/types.js.flow +1 -22
- package/layout-grid/styled-components.js +0 -3
- package/layout-grid/types.d.ts +2 -2
- package/link/index.js +1 -2
- package/link/styled-components.js +1 -2
- package/list/list-heading.js +17 -21
- package/list/list-item.js +1 -2
- package/list/styled-components.js +1 -17
- 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 +1 -3
- package/locale/index.js +1 -4
- package/locale/tr_TR.d.ts +1 -1
- package/locale/tr_TR.js +1 -3
- package/map-marker/constants.d.ts +0 -14
- package/map-marker/constants.js +3 -16
- package/map-marker/constants.js.flow +0 -17
- package/map-marker/index.d.ts +1 -2
- package/map-marker/index.js +1 -24
- package/map-marker/index.js.flow +3 -5
- package/map-marker/styled-components.d.ts +1 -17
- package/map-marker/styled-components.js +2 -88
- package/map-marker/styled-components.js.flow +0 -58
- package/map-marker/types.d.ts +5 -33
- package/map-marker/types.js.flow +3 -37
- package/menu/index.d.ts +3 -2
- package/menu/index.js +1 -8
- package/menu/index.js.flow +0 -1
- package/menu/menu.js +3 -15
- package/menu/menu.js.flow +1 -11
- package/menu/option-profile.js +0 -1
- package/menu/stateful-container.js +0 -1
- package/menu/styled-components.d.ts +0 -1
- package/menu/styled-components.js +7 -40
- package/menu/styled-components.js.flow +0 -13
- package/menu/types.d.ts +13 -13
- package/menu/types.js.flow +0 -1
- package/modal/modal.js +4 -4
- package/modal/modal.js.flow +3 -1
- package/modal/styled-components.js +1 -8
- package/modal/types.d.ts +2 -2
- package/package.json +12 -10
- package/pagination/stateful-container.js +0 -1
- package/pagination/stateful-pagination.js +0 -1
- package/pagination/styled-components.js +1 -4
- package/pagination/types.d.ts +2 -2
- package/payment-card/styled-components.js +1 -2
- package/phone-input/base-country-picker.js +1 -3
- package/phone-input/country-select-dropdown.js +0 -1
- package/phone-input/styled-components.js +9 -21
- package/phone-input/types.d.ts +6 -5
- package/pin-code/styled-components.js +1 -4
- package/pin-code/types.d.ts +2 -2
- package/popover/popover.js +11 -9
- package/popover/popover.js.flow +12 -2
- package/popover/stateful-container.js +1 -5
- package/popover/styled-components.js +9 -12
- package/popover/types.d.ts +2 -2
- package/progress-bar/progressbar-rounded.js +0 -1
- package/progress-bar/styled-components.d.ts +1 -4
- package/progress-bar/styled-components.js +2 -14
- package/progress-bar/types.d.ts +2 -2
- package/progress-steps/progress-steps.js +1 -2
- package/progress-steps/styled-components.js +19 -28
- package/radio/styled-components.js +3 -10
- package/radio/types.d.ts +20 -19
- package/rating/emoticon-rating.js +1 -2
- package/rating/star-rating.js +1 -2
- package/rating/styled-components.js +1 -5
- package/select/autosize-input.js +1 -2
- package/select/autosize-input.js.flow +1 -1
- package/select/default-props.js +1 -1
- package/select/dropdown.js +1 -2
- package/select/multi-value.js +0 -1
- package/select/select-component.d.ts +1 -1
- package/select/select-component.js +7 -9
- 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 +6 -33
- package/select/styled-components.js.flow +5 -25
- package/select/types.d.ts +6 -5
- package/select/value.js +3 -2
- package/side-navigation/nav-item.js +0 -1
- package/side-navigation/nav.js +1 -1
- package/side-navigation/stateful-container.js +0 -1
- package/side-navigation/styled-components.js +6 -13
- package/side-navigation/types.d.ts +4 -4
- package/skeleton/styled-components.js +1 -3
- package/slider/slider.js +2 -4
- package/slider/styled-components.js +0 -9
- package/slider/types.d.ts +1 -1
- package/snackbar/snackbar-element.js +0 -1
- package/snackbar/styled-components.js +1 -9
- package/snackbar/types.d.ts +4 -3
- package/spinner/styled-components.js +1 -2
- package/spinner/types.d.ts +1 -1
- package/styles/__mocks__/styled.js +3 -8
- package/styles/styled.d.ts +1 -1
- package/styles/styled.js +6 -7
- package/table/styled-components.js +1 -13
- package/table/types.d.ts +2 -2
- package/table-grid/styled-components.js +1 -4
- package/table-semantic/styled-components.js +3 -20
- package/table-semantic/types.d.ts +2 -2
- package/tabs/stateful-tabs.js +0 -1
- package/tabs/styled-components.js +1 -5
- package/tabs/tabs.js +2 -4
- package/tabs/types.d.ts +2 -2
- package/tabs-motion/styled-components.d.ts +0 -5
- package/tabs-motion/styled-components.js +41 -71
- package/tabs-motion/styled-components.js.flow +0 -21
- package/tabs-motion/tab.js +0 -1
- package/tabs-motion/tabs.d.ts +1 -1
- package/tabs-motion/tabs.js +57 -87
- package/tabs-motion/tabs.js.flow +38 -69
- package/tabs-motion/types.d.ts +2 -5
- package/tabs-motion/types.js.flow +0 -3
- package/tabs-motion/utils.d.ts +1 -1
- package/tag/styled-components.js +1 -5
- package/tag/tag.js +2 -4
- package/tag/types.d.ts +5 -4
- package/textarea/styled-components.js +6 -11
- package/textarea/textarea.js +15 -13
- package/textarea/textarea.js.flow +9 -5
- package/textarea/types.d.ts +5 -6
- package/textarea/types.js.flow +1 -3
- package/themes/dark-theme/color-component-tokens.js +1 -1
- package/themes/dark-theme/color-component-tokens.js.flow +1 -1
- package/themes/light-theme/color-component-tokens.js +1 -1
- package/themes/light-theme/color-component-tokens.js.flow +1 -1
- package/themes/move-theme/typography.d.ts +0 -36
- package/themes/move-theme/typography.js +0 -36
- package/themes/move-theme/typography.js.flow +0 -12
- package/themes/shared/borders.js +3 -8
- package/themes/shared/borders.js.flow +3 -7
- package/themes/shared/typography.js +10 -10
- package/themes/shared/typography.js.flow +10 -10
- package/themes/types.d.ts +0 -3
- package/themes/types.js.flow +0 -3
- package/timezonepicker/timezone-picker.js +2 -6
- package/timezonepicker/types.d.ts +0 -1
- package/timezonepicker/types.js.flow +0 -1
- package/timezonepicker/tzdata.js +1 -1
- package/timezonepicker/update-tzdata.js +39 -51
- package/toast/styled-components.js +1 -5
- package/toast/toaster.js.flow +1 -1
- package/toast/types.d.ts +2 -2
- package/tokens/colors.js +0 -24
- package/tokens/colors.js.flow +0 -27
- package/tokens/types.d.ts +0 -24
- package/tokens/types.js.flow +0 -27
- package/tooltip/styled-components.js +1 -4
- package/tree-view/styled-components.js +1 -7
- package/tree-view/tree-view.js +1 -3
- package/tree-view/types.d.ts +4 -3
- package/types/globals.d.js +1 -14
- package/utils/deep-merge.js +6 -0
- package/utils/deprecated-component.js +0 -1
- package/utils/focusVisible.d.ts +1 -1
- package/utils/focusVisible.js +2 -4
- package/es/map-marker/location-puck.js +0 -142
- package/es/message-card/constants.js +0 -19
- package/es/message-card/index.js +0 -10
- package/es/message-card/message-card.js +0 -114
- package/es/message-card/styled-components.js +0 -108
- package/es/message-card/types.js +0 -1
- package/es/message-card/utils.js +0 -27
- package/esm/map-marker/location-puck.js +0 -199
- package/esm/message-card/constants.js +0 -20
- package/esm/message-card/index.js +0 -10
- package/esm/message-card/message-card.js +0 -168
- package/esm/message-card/styled-components.js +0 -116
- package/esm/message-card/types.js +0 -1
- package/esm/message-card/utils.js +0 -26
- package/map-marker/location-puck.d.ts +0 -4
- package/map-marker/location-puck.js +0 -211
- package/map-marker/location-puck.js.flow +0 -18
- package/message-card/constants.d.ts +0 -12
- package/message-card/constants.js +0 -25
- package/message-card/index.d.ts +0 -4
- package/message-card/index.js +0 -60
- package/message-card/index.js.flow +0 -72
- package/message-card/message-card.d.ts +0 -4
- package/message-card/message-card.js +0 -184
- package/message-card/package.json +0 -4
- package/message-card/styled-components.d.ts +0 -14
- package/message-card/styled-components.js +0 -124
- package/message-card/types.d.ts +0 -27
- package/message-card/types.js +0 -5
- package/message-card/utils.d.ts +0 -1
- package/message-card/utils.js +0 -36
package/tabs-motion/tabs.js
CHANGED
|
@@ -9,8 +9,6 @@ exports.Tabs = Tabs;
|
|
|
9
9
|
|
|
10
10
|
var React = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
-
var ReactIs = _interopRequireWildcard(require("react-is"));
|
|
13
|
-
|
|
14
12
|
var _reactUid = require("react-uid");
|
|
15
13
|
|
|
16
14
|
var _styles = require("../styles");
|
|
@@ -126,40 +124,25 @@ var scrollParentToCentreTarget = function scrollParentToCentreTarget(targetNode)
|
|
|
126
124
|
targetNode.parentNode.scroll(target.x, target.y);
|
|
127
125
|
};
|
|
128
126
|
|
|
129
|
-
function
|
|
130
|
-
var
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
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;
|
|
127
|
+
function Tabs(_ref) {
|
|
128
|
+
var _ref$activeKey = _ref.activeKey,
|
|
129
|
+
activeKey = _ref$activeKey === void 0 ? '0' : _ref$activeKey,
|
|
130
|
+
_ref$disabled = _ref.disabled,
|
|
131
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
132
|
+
children = _ref.children,
|
|
133
|
+
_ref$fill = _ref.fill,
|
|
134
|
+
fill = _ref$fill === void 0 ? _constants.FILL.intrinsic : _ref$fill,
|
|
135
|
+
_ref$activateOnFocus = _ref.activateOnFocus,
|
|
136
|
+
activateOnFocus = _ref$activateOnFocus === void 0 ? true : _ref$activateOnFocus,
|
|
137
|
+
onChange = _ref.onChange,
|
|
138
|
+
_ref$orientation = _ref.orientation,
|
|
139
|
+
orientation = _ref$orientation === void 0 ? _constants.ORIENTATION.horizontal : _ref$orientation,
|
|
140
|
+
_ref$overrides = _ref.overrides,
|
|
141
|
+
overrides = _ref$overrides === void 0 ? {} : _ref$overrides,
|
|
142
|
+
_ref$renderAll = _ref.renderAll,
|
|
143
|
+
renderAll = _ref$renderAll === void 0 ? false : _ref$renderAll,
|
|
144
|
+
_ref$uid = _ref.uid,
|
|
145
|
+
customUid = _ref$uid === void 0 ? null : _ref$uid;
|
|
163
146
|
// Create unique id prefix for this tabs component
|
|
164
147
|
var generatedUid = (0, _reactUid.useUID)();
|
|
165
148
|
var uid = customUid || generatedUid; // Unpack overrides
|
|
@@ -187,12 +170,7 @@ function Tabs(_ref2) {
|
|
|
187
170
|
var _getOverrides7 = (0, _overrides.getOverrides)(TabBorderOverrides, _styledComponents.StyledTabBorder),
|
|
188
171
|
_getOverrides8 = _slicedToArray(_getOverrides7, 2),
|
|
189
172
|
TabBorder = _getOverrides8[0],
|
|
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
|
|
173
|
+
TabBorderProps = _getOverrides8[1]; // Count key updates
|
|
196
174
|
// We disable a few things until after first mount:
|
|
197
175
|
// - the highlight animation, avoiding an initial slide-in
|
|
198
176
|
// - smooth scrolling active tab into view
|
|
@@ -298,10 +276,7 @@ function Tabs(_ref2) {
|
|
|
298
276
|
}
|
|
299
277
|
}
|
|
300
278
|
}, [orientation, theme.direction]);
|
|
301
|
-
return /*#__PURE__*/React.createElement(Root, _extends({}, sharedStylingProps, RootProps), /*#__PURE__*/React.createElement(
|
|
302
|
-
$hasEndEnhancer: Boolean(endEnhancer),
|
|
303
|
-
$orientation: orientation
|
|
304
|
-
}, /*#__PURE__*/React.createElement(TabList, _extends({
|
|
279
|
+
return /*#__PURE__*/React.createElement(Root, _extends({}, sharedStylingProps, RootProps), /*#__PURE__*/React.createElement(TabList, _extends({
|
|
305
280
|
"data-baseweb": "tab-list",
|
|
306
281
|
role: "tablist",
|
|
307
282
|
"aria-orientation": orientation
|
|
@@ -329,11 +304,7 @@ function Tabs(_ref2) {
|
|
|
329
304
|
$animate: keyUpdated > 1,
|
|
330
305
|
"aria-hidden": "true",
|
|
331
306
|
role: "presentation"
|
|
332
|
-
}, sharedStylingProps, TabHighlightProps))),
|
|
333
|
-
$orientation: orientation
|
|
334
|
-
}), /*#__PURE__*/React.createElement(RenderEnhancer, {
|
|
335
|
-
Enhancer: endEnhancer
|
|
336
|
-
}))), /*#__PURE__*/React.createElement(TabBorder, _extends({
|
|
307
|
+
}, sharedStylingProps, TabHighlightProps))), /*#__PURE__*/React.createElement(TabBorder, _extends({
|
|
337
308
|
"data-baseweb": "tab-border",
|
|
338
309
|
"aria-hidden": "true",
|
|
339
310
|
role: "presentation"
|
|
@@ -350,20 +321,20 @@ function Tabs(_ref2) {
|
|
|
350
321
|
}));
|
|
351
322
|
}
|
|
352
323
|
|
|
353
|
-
function InternalTab(
|
|
354
|
-
var childKey =
|
|
355
|
-
childIndex =
|
|
356
|
-
activeKey =
|
|
357
|
-
orientation =
|
|
358
|
-
activeTabRef =
|
|
359
|
-
updateHighlight =
|
|
360
|
-
parseKeyDown =
|
|
361
|
-
activateOnFocus =
|
|
362
|
-
uid =
|
|
363
|
-
disabled =
|
|
364
|
-
sharedStylingProps =
|
|
365
|
-
onChange =
|
|
366
|
-
props = _objectWithoutProperties(
|
|
324
|
+
function InternalTab(_ref2) {
|
|
325
|
+
var childKey = _ref2.childKey,
|
|
326
|
+
childIndex = _ref2.childIndex,
|
|
327
|
+
activeKey = _ref2.activeKey,
|
|
328
|
+
orientation = _ref2.orientation,
|
|
329
|
+
activeTabRef = _ref2.activeTabRef,
|
|
330
|
+
updateHighlight = _ref2.updateHighlight,
|
|
331
|
+
parseKeyDown = _ref2.parseKeyDown,
|
|
332
|
+
activateOnFocus = _ref2.activateOnFocus,
|
|
333
|
+
uid = _ref2.uid,
|
|
334
|
+
disabled = _ref2.disabled,
|
|
335
|
+
sharedStylingProps = _ref2.sharedStylingProps,
|
|
336
|
+
onChange = _ref2.onChange,
|
|
337
|
+
props = _objectWithoutProperties(_ref2, _excluded);
|
|
367
338
|
|
|
368
339
|
var key = childKey || String(childIndex);
|
|
369
340
|
var isActive = key == activeKey;
|
|
@@ -414,15 +385,15 @@ function InternalTab(_ref3) {
|
|
|
414
385
|
var TabOverrides = overrides.Tab,
|
|
415
386
|
ArtworkContainerOverrides = overrides.ArtworkContainer;
|
|
416
387
|
|
|
417
|
-
var
|
|
418
|
-
|
|
419
|
-
Tab =
|
|
420
|
-
TabProps =
|
|
388
|
+
var _getOverrides9 = (0, _overrides.getOverrides)(TabOverrides, _styledComponents.StyledTab),
|
|
389
|
+
_getOverrides10 = _slicedToArray(_getOverrides9, 2),
|
|
390
|
+
Tab = _getOverrides10[0],
|
|
391
|
+
TabProps = _getOverrides10[1];
|
|
421
392
|
|
|
422
|
-
var
|
|
423
|
-
|
|
424
|
-
ArtworkContainer =
|
|
425
|
-
ArtworkContainerProps =
|
|
393
|
+
var _getOverrides11 = (0, _overrides.getOverrides)(ArtworkContainerOverrides, _styledComponents.StyledArtworkContainer),
|
|
394
|
+
_getOverrides12 = _slicedToArray(_getOverrides11, 2),
|
|
395
|
+
ArtworkContainer = _getOverrides12[0],
|
|
396
|
+
ArtworkContainerProps = _getOverrides12[1]; // Keyboard focus styling
|
|
426
397
|
|
|
427
398
|
|
|
428
399
|
var _React$useState5 = React.useState(false),
|
|
@@ -435,8 +406,7 @@ function InternalTab(_ref3) {
|
|
|
435
406
|
setFocusVisible(true);
|
|
436
407
|
}
|
|
437
408
|
}, []);
|
|
438
|
-
var handleBlur = React.useCallback(
|
|
439
|
-
function (event) {
|
|
409
|
+
var handleBlur = React.useCallback(function (event) {
|
|
440
410
|
if (focusVisible !== false) {
|
|
441
411
|
setFocusVisible(false);
|
|
442
412
|
}
|
|
@@ -522,14 +492,14 @@ function InternalTab(_ref3) {
|
|
|
522
492
|
})) : null, title ? title : key);
|
|
523
493
|
}
|
|
524
494
|
|
|
525
|
-
function InternalTabPanel(
|
|
526
|
-
var childKey =
|
|
527
|
-
childIndex =
|
|
528
|
-
activeKey =
|
|
529
|
-
uid =
|
|
530
|
-
sharedStylingProps =
|
|
531
|
-
renderAll =
|
|
532
|
-
props = _objectWithoutProperties(
|
|
495
|
+
function InternalTabPanel(_ref3) {
|
|
496
|
+
var childKey = _ref3.childKey,
|
|
497
|
+
childIndex = _ref3.childIndex,
|
|
498
|
+
activeKey = _ref3.activeKey,
|
|
499
|
+
uid = _ref3.uid,
|
|
500
|
+
sharedStylingProps = _ref3.sharedStylingProps,
|
|
501
|
+
renderAll = _ref3.renderAll,
|
|
502
|
+
props = _objectWithoutProperties(_ref3, _excluded3);
|
|
533
503
|
|
|
534
504
|
var key = childKey || String(childIndex);
|
|
535
505
|
var isActive = key == activeKey;
|
|
@@ -538,10 +508,10 @@ function InternalTabPanel(_ref4) {
|
|
|
538
508
|
children = props.children;
|
|
539
509
|
var TabPanelOverrides = overrides.TabPanel;
|
|
540
510
|
|
|
541
|
-
var
|
|
542
|
-
|
|
543
|
-
TabPanel =
|
|
544
|
-
TabPanelProps =
|
|
511
|
+
var _getOverrides13 = (0, _overrides.getOverrides)(TabPanelOverrides, _styledComponents.StyledTabPanel),
|
|
512
|
+
_getOverrides14 = _slicedToArray(_getOverrides13, 2),
|
|
513
|
+
TabPanel = _getOverrides14[0],
|
|
514
|
+
TabPanelProps = _getOverrides14[1];
|
|
545
515
|
|
|
546
516
|
return /*#__PURE__*/React.createElement(TabPanel, _extends({
|
|
547
517
|
"data-baseweb": "tab-panel",
|
package/tabs-motion/tabs.js.flow
CHANGED
|
@@ -10,7 +10,6 @@ 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';
|
|
14
13
|
import { useUID } from 'react-uid';
|
|
15
14
|
import { useStyletron } from '../styles/index.js';
|
|
16
15
|
import { getOverrides } from '../helpers/overrides.js';
|
|
@@ -24,8 +23,6 @@ import {
|
|
|
24
23
|
StyledTabHighlight,
|
|
25
24
|
StyledTabBorder,
|
|
26
25
|
StyledTabPanel,
|
|
27
|
-
StyledEndEnhancerContainer,
|
|
28
|
-
StyledTabBar,
|
|
29
26
|
} from './styled-components.js';
|
|
30
27
|
import { getTabId, getTabPanelId, isVertical, isHorizontal, isRTL } from './utils.js';
|
|
31
28
|
|
|
@@ -91,18 +88,6 @@ const scrollParentToCentreTarget = (targetNode) => {
|
|
|
91
88
|
targetNode.parentNode.scroll(target.x, target.y);
|
|
92
89
|
};
|
|
93
90
|
|
|
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
|
-
|
|
106
91
|
export function Tabs({
|
|
107
92
|
activeKey = '0',
|
|
108
93
|
disabled = false,
|
|
@@ -114,7 +99,6 @@ export function Tabs({
|
|
|
114
99
|
overrides = {},
|
|
115
100
|
renderAll = false,
|
|
116
101
|
uid: customUid = null,
|
|
117
|
-
endEnhancer,
|
|
118
102
|
}: TabsPropsT) {
|
|
119
103
|
// Create unique id prefix for this tabs component
|
|
120
104
|
const generatedUid = useUID();
|
|
@@ -131,10 +115,6 @@ export function Tabs({
|
|
|
131
115
|
const [TabList, TabListProps] = getOverrides(TabListOverrides, StyledTabList);
|
|
132
116
|
const [TabHighlight, TabHighlightProps] = getOverrides(TabHighlightOverrides, StyledTabHighlight);
|
|
133
117
|
const [TabBorder, TabBorderProps] = getOverrides(TabBorderOverrides, StyledTabBorder);
|
|
134
|
-
const [EndEnhancerContainer, endEnhancerContainerProps] = getOverrides(
|
|
135
|
-
overrides.EndEnhancerContainer,
|
|
136
|
-
StyledEndEnhancerContainer
|
|
137
|
-
);
|
|
138
118
|
|
|
139
119
|
// Count key updates
|
|
140
120
|
// We disable a few things until after first mount:
|
|
@@ -236,56 +216,45 @@ export function Tabs({
|
|
|
236
216
|
|
|
237
217
|
return (
|
|
238
218
|
<Root {...sharedStylingProps} {...RootProps}>
|
|
239
|
-
<
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
219
|
+
<TabList
|
|
220
|
+
data-baseweb="tab-list"
|
|
221
|
+
role="tablist"
|
|
222
|
+
aria-orientation={orientation}
|
|
223
|
+
{...sharedStylingProps}
|
|
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"
|
|
244
254
|
{...sharedStylingProps}
|
|
245
|
-
{...
|
|
246
|
-
|
|
247
|
-
|
|
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
|
-
|
|
255
|
+
{...TabHighlightProps}
|
|
256
|
+
/>
|
|
257
|
+
</TabList>
|
|
289
258
|
<TabBorder
|
|
290
259
|
data-baseweb="tab-border"
|
|
291
260
|
aria-hidden="true"
|
package/tabs-motion/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { 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,8 +10,6 @@ export declare type TabsOverrides = {
|
|
|
10
10
|
TabList?: Override;
|
|
11
11
|
TabHighlight?: Override;
|
|
12
12
|
TabBorder?: Override;
|
|
13
|
-
EndEnhancerContainer?: Override;
|
|
14
|
-
StyledTabBar?: Override;
|
|
15
13
|
};
|
|
16
14
|
export declare type TabOverrides = {
|
|
17
15
|
Tab?: Override;
|
|
@@ -40,7 +38,6 @@ export declare type TabsProps = {
|
|
|
40
38
|
overrides?: TabsOverrides;
|
|
41
39
|
renderAll?: boolean;
|
|
42
40
|
uid?: string;
|
|
43
|
-
endEnhancer?: React.ReactNode;
|
|
44
41
|
};
|
|
45
42
|
export declare type StatefulTabsProps = {
|
|
46
43
|
initialState?: StatefulTabsState;
|
|
@@ -22,8 +22,6 @@ export type TabsOverridesT = {
|
|
|
22
22
|
TabList?: OverrideT,
|
|
23
23
|
TabHighlight?: OverrideT,
|
|
24
24
|
TabBorder?: OverrideT,
|
|
25
|
-
EndEnhancerContainer?: OverrideT,
|
|
26
|
-
StyledTabBar?: OverrideT,
|
|
27
25
|
};
|
|
28
26
|
|
|
29
27
|
export type TabOverridesT = {
|
|
@@ -59,7 +57,6 @@ export type TabsPropsT = {|
|
|
|
59
57
|
overrides?: TabsOverridesT,
|
|
60
58
|
renderAll?: boolean,
|
|
61
59
|
uid?: string,
|
|
62
|
-
endEnhancer?: React.Node | React.AbstractComponent<{}>,
|
|
63
60
|
|};
|
|
64
61
|
|
|
65
62
|
export type StatefulTabsPropsT = {|
|
package/tabs-motion/utils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * 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,7 +290,6 @@ var Action = (0, _styles.styled)('span', function (props) {
|
|
|
290
290
|
});
|
|
291
291
|
exports.Action = Action;
|
|
292
292
|
Action.displayName = "Action";
|
|
293
|
-
Action.displayName = 'Action';
|
|
294
293
|
var StartEnhancerContainer = (0, _styles.styled)('div', function (_ref2) {
|
|
295
294
|
var $theme = _ref2.$theme,
|
|
296
295
|
_ref2$$size = _ref2.$size,
|
|
@@ -311,7 +310,6 @@ var StartEnhancerContainer = (0, _styles.styled)('div', function (_ref2) {
|
|
|
311
310
|
});
|
|
312
311
|
exports.StartEnhancerContainer = StartEnhancerContainer;
|
|
313
312
|
StartEnhancerContainer.displayName = "StartEnhancerContainer";
|
|
314
|
-
StartEnhancerContainer.displayName = 'StartEnhancerContainer';
|
|
315
313
|
var Text = (0, _styles.styled)('span', function (props) {
|
|
316
314
|
var $theme = props.$theme;
|
|
317
315
|
return {
|
|
@@ -324,7 +322,6 @@ var Text = (0, _styles.styled)('span', function (props) {
|
|
|
324
322
|
});
|
|
325
323
|
exports.Text = Text;
|
|
326
324
|
Text.displayName = "Text";
|
|
327
|
-
Text.displayName = 'Text';
|
|
328
325
|
var Root = (0, _styles.styled)('span', function (props) {
|
|
329
326
|
var _SIZE$small$SIZE$medi2, _SIZE$small$SIZE$medi3, _SIZE$small$SIZE$medi4;
|
|
330
327
|
|
|
@@ -391,5 +388,4 @@ var Root = (0, _styles.styled)('span', function (props) {
|
|
|
391
388
|
});
|
|
392
389
|
});
|
|
393
390
|
exports.Root = Root;
|
|
394
|
-
Root.displayName = "Root";
|
|
395
|
-
Root.displayName = 'Root';
|
|
391
|
+
Root.displayName = "Root";
|
package/tag/tag.js
CHANGED
|
@@ -92,8 +92,7 @@ var Tag = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
92
92
|
if ((0, _focusVisible.isFocusVisible)(event)) {
|
|
93
93
|
setFocusVisible(true);
|
|
94
94
|
}
|
|
95
|
-
}
|
|
96
|
-
|
|
95
|
+
}
|
|
97
96
|
|
|
98
97
|
function handleBlur(event) {
|
|
99
98
|
if (focusVisible !== false) {
|
|
@@ -176,8 +175,7 @@ var Tag = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
176
175
|
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
|
|
177
176
|
|
|
178
177
|
var StartEnhancer = startEnhancer;
|
|
179
|
-
return /*#__PURE__*/React.createElement(Root
|
|
180
|
-
, _extends({
|
|
178
|
+
return /*#__PURE__*/React.createElement(Root, _extends({
|
|
181
179
|
ref: ref,
|
|
182
180
|
"data-baseweb": "tag",
|
|
183
181
|
"aria-label": isButton && closeable ? "".concat(typeof children === 'string' ? "".concat(children, ", ") : '', "close by backspace") : null,
|
package/tag/types.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import type { Override } from '../helpers/overrides';
|
|
3
|
+
import type { ReactNode } from 'react';
|
|
3
4
|
export declare const TagKind: Readonly<{
|
|
4
5
|
readonly custom: "custom";
|
|
5
6
|
readonly neutral: "neutral";
|
|
@@ -52,15 +53,15 @@ export declare type TagProps = {
|
|
|
52
53
|
/** Defines tags look. Set it to one of VARIANT[key] values. Defaults to VARIANT.light */
|
|
53
54
|
variant?: TagVariant;
|
|
54
55
|
/** Component or String value for label of tag. Default is empty string. */
|
|
55
|
-
children?:
|
|
56
|
+
children?: ReactNode;
|
|
56
57
|
/** The color theme to be applied to a Tag. Default is `KIND.primary`. */
|
|
57
58
|
color?: string;
|
|
58
59
|
/** Text to display in native OS tooltip on long hover. */
|
|
59
60
|
title?: string;
|
|
60
61
|
/** onClick handler for the action button element. */
|
|
61
|
-
onActionClick?: (e: Event, children?:
|
|
62
|
+
onActionClick?: (e: Event, children?: ReactNode) => unknown;
|
|
62
63
|
/** keydown handler for the action button element. */
|
|
63
|
-
onActionKeyDown?: (e: Event, children?:
|
|
64
|
+
onActionKeyDown?: (e: Event, children?: ReactNode) => unknown;
|
|
64
65
|
/** onClick handler for the tag. Passing an onClick handler also makes the tag clickable. */
|
|
65
66
|
onClick?: null | ((event: Event) => unknown);
|
|
66
67
|
/** onkeydown handler for the tag. */
|
|
@@ -16,30 +16,25 @@ 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
|
|
19
|
+
return (0, _styledComponents.getRootStyles)(_objectSpread(_objectSpread({
|
|
20
20
|
$positive: false
|
|
21
21
|
}, props), {}, {
|
|
22
22
|
$hasIconTrailing: false
|
|
23
|
-
}))
|
|
24
|
-
width: props.$resize ? 'fit-content' : '100%'
|
|
25
|
-
});
|
|
23
|
+
}));
|
|
26
24
|
});
|
|
27
25
|
exports.StyledTextAreaRoot = StyledTextAreaRoot;
|
|
28
26
|
StyledTextAreaRoot.displayName = "StyledTextAreaRoot";
|
|
29
|
-
StyledTextAreaRoot.displayName = 'StyledTextAreaRoot';
|
|
30
27
|
var StyledTextareaContainer = (0, _styles.styled)('div', function (props) {
|
|
31
|
-
return (0, _styledComponents.getInputContainerStyles)(_objectSpread({
|
|
28
|
+
return _objectSpread({}, (0, _styledComponents.getInputContainerStyles)(_objectSpread({
|
|
32
29
|
$positive: false
|
|
33
|
-
}, props));
|
|
30
|
+
}, props)));
|
|
34
31
|
});
|
|
35
32
|
exports.StyledTextareaContainer = StyledTextareaContainer;
|
|
36
33
|
StyledTextareaContainer.displayName = "StyledTextareaContainer";
|
|
37
|
-
StyledTextareaContainer.displayName = 'StyledTextareaContainer';
|
|
38
34
|
var StyledTextarea = (0, _styles.styled)('textarea', function (props) {
|
|
39
35
|
return _objectSpread(_objectSpread({}, (0, _styledComponents.getInputStyles)(props)), {}, {
|
|
40
|
-
resize:
|
|
36
|
+
resize: 'none'
|
|
41
37
|
});
|
|
42
38
|
});
|
|
43
39
|
exports.StyledTextarea = StyledTextarea;
|
|
44
|
-
StyledTextarea.displayName = "StyledTextarea";
|
|
45
|
-
StyledTextarea.displayName = 'StyledTextarea';
|
|
40
|
+
StyledTextarea.displayName = "StyledTextarea";
|
package/textarea/textarea.js
CHANGED
|
@@ -72,23 +72,27 @@ var Textarea = /*#__PURE__*/function (_React$Component) {
|
|
|
72
72
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
73
73
|
|
|
74
74
|
_defineProperty(_assertThisInitialized(_this), "state", {
|
|
75
|
-
isFocused: _this.props.autoFocus || false
|
|
75
|
+
isFocused: _this.props.autoFocus && !_this.props.readOnly || false
|
|
76
76
|
});
|
|
77
77
|
|
|
78
78
|
_defineProperty(_assertThisInitialized(_this), "onFocus", function (e) {
|
|
79
|
-
_this.
|
|
80
|
-
|
|
81
|
-
|
|
79
|
+
if (!_this.props.readOnly) {
|
|
80
|
+
_this.setState({
|
|
81
|
+
isFocused: true
|
|
82
|
+
});
|
|
82
83
|
|
|
83
|
-
|
|
84
|
+
_this.props.onFocus(e);
|
|
85
|
+
}
|
|
84
86
|
});
|
|
85
87
|
|
|
86
88
|
_defineProperty(_assertThisInitialized(_this), "onBlur", function (e) {
|
|
87
|
-
_this.
|
|
88
|
-
|
|
89
|
-
|
|
89
|
+
if (!_this.props.readOnly) {
|
|
90
|
+
_this.setState({
|
|
91
|
+
isFocused: false
|
|
92
|
+
});
|
|
90
93
|
|
|
91
|
-
|
|
94
|
+
_this.props.onBlur(e);
|
|
95
|
+
}
|
|
92
96
|
});
|
|
93
97
|
|
|
94
98
|
return _this;
|
|
@@ -120,14 +124,12 @@ var Textarea = /*#__PURE__*/function (_React$Component) {
|
|
|
120
124
|
$disabled: this.props.disabled,
|
|
121
125
|
$error: this.props.error,
|
|
122
126
|
$positive: this.props.positive,
|
|
123
|
-
$required: this.props.required
|
|
124
|
-
$resize: this.props.resize
|
|
127
|
+
$required: this.props.required
|
|
125
128
|
}, rootProps), /*#__PURE__*/React.createElement(_input.BaseInput, _extends({}, this.props, {
|
|
126
129
|
type: _input.CUSTOM_INPUT_TYPE.textarea,
|
|
127
130
|
overrides: inputOverrides,
|
|
128
131
|
onFocus: this.onFocus,
|
|
129
|
-
onBlur: this.onBlur
|
|
130
|
-
resize: this.props.resize
|
|
132
|
+
onBlur: this.onBlur
|
|
131
133
|
})));
|
|
132
134
|
}
|
|
133
135
|
}]);
|
|
@@ -36,17 +36,21 @@ class Textarea extends React.Component<TextareaPropsT, { isFocused: boolean }> {
|
|
|
36
36
|
};
|
|
37
37
|
|
|
38
38
|
state = {
|
|
39
|
-
isFocused: this.props.autoFocus || false,
|
|
39
|
+
isFocused: (this.props.autoFocus && !this.props.readOnly) || false,
|
|
40
40
|
};
|
|
41
41
|
|
|
42
42
|
onFocus = (e: SyntheticFocusEvent<HTMLTextAreaElement>) => {
|
|
43
|
-
this.
|
|
44
|
-
|
|
43
|
+
if (!this.props.readOnly) {
|
|
44
|
+
this.setState({ isFocused: true });
|
|
45
|
+
this.props.onFocus(e);
|
|
46
|
+
}
|
|
45
47
|
};
|
|
46
48
|
|
|
47
49
|
onBlur = (e: SyntheticFocusEvent<HTMLTextAreaElement>) => {
|
|
48
|
-
this.
|
|
49
|
-
|
|
50
|
+
if (!this.props.readOnly) {
|
|
51
|
+
this.setState({ isFocused: false });
|
|
52
|
+
this.props.onBlur(e);
|
|
53
|
+
}
|
|
50
54
|
};
|
|
51
55
|
|
|
52
56
|
render() {
|
package/textarea/types.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { Properties } from 'csstype';
|
|
1
|
+
import * as React from 'react';
|
|
3
2
|
import type { Override } from '../helpers/overrides';
|
|
4
|
-
import type { BaseInputProps, StateReducer, State
|
|
5
|
-
|
|
3
|
+
import type { BaseInputProps, StateReducer, State } from '../input';
|
|
4
|
+
import { ADJOINED, SIZE } from '../input';
|
|
5
|
+
import type { SyntheticEvent } from 'react';
|
|
6
|
+
declare type SyntheticTextareaEvent = SyntheticEvent<HTMLTextAreaElement>;
|
|
6
7
|
export declare type Size = keyof typeof SIZE;
|
|
7
8
|
export declare type SharedStyleProps = {
|
|
8
9
|
$adjoined: keyof typeof ADJOINED;
|
|
@@ -12,7 +13,6 @@ export declare type SharedStyleProps = {
|
|
|
12
13
|
$isReadOnly?: boolean;
|
|
13
14
|
$positive?: boolean;
|
|
14
15
|
$required?: boolean;
|
|
15
|
-
$resize?: Properties['resize'];
|
|
16
16
|
$size: Size;
|
|
17
17
|
};
|
|
18
18
|
declare type BaseTextAreaProps = BaseInputProps<HTMLTextAreaElement>;
|
|
@@ -21,7 +21,6 @@ export declare type TextareaOverrides = {
|
|
|
21
21
|
} & BaseTextAreaProps['overrides'];
|
|
22
22
|
export declare type TextareaProps = {
|
|
23
23
|
overrides?: TextareaOverrides;
|
|
24
|
-
resize?: Properties['resize'];
|
|
25
24
|
/** Sets the size and number of visible text lines
|
|
26
25
|
of the textarea element. */
|
|
27
26
|
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
|
+
|
|
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,7 +23,6 @@ export type SharedStylePropsT = {
|
|
|
23
23
|
$isReadOnly: boolean,
|
|
24
24
|
$positive?: boolean,
|
|
25
25
|
$required: boolean,
|
|
26
|
-
$resize?: Property$Resize,
|
|
27
26
|
$size: SizeT,
|
|
28
27
|
};
|
|
29
28
|
|
|
@@ -37,7 +36,6 @@ export type TextareaOverridesT = {
|
|
|
37
36
|
export type TextareaPropsT = {
|
|
38
37
|
...BaseTextAreaPropsT,
|
|
39
38
|
overrides?: TextareaOverridesT,
|
|
40
|
-
resize?: Property$Resize,
|
|
41
39
|
/** Sets the size and number of visible text lines
|
|
42
40
|
of the textarea element. */
|
|
43
41
|
rows?: number,
|