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/esm/card/index.js
CHANGED
|
@@ -7,5 +7,4 @@ LICENSE file in the root directory of this source tree.
|
|
|
7
7
|
export { default as Card, hasThumbnail } from './card';
|
|
8
8
|
export { Action as StyledAction, Body as StyledBody, Contents as StyledContents, HeaderImage as StyledHeaderImage, Thumbnail as StyledThumbnail, Title as StyledTitle, Root as StyledRoot, Root as StyledWrapper } from './styled-components';
|
|
9
9
|
export * from './types';
|
|
10
|
-
/** @deprecated To be removed in future versions */
|
|
11
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10
|
+
/** @deprecated To be removed in future versions */
|
|
@@ -10,14 +10,12 @@ Copyright (c) Uber Technologies, Inc.
|
|
|
10
10
|
This source code is licensed under the MIT license found in the
|
|
11
11
|
LICENSE file in the root directory of this source tree.
|
|
12
12
|
*/
|
|
13
|
-
import { styled, expandBorderStyles } from '../styles';
|
|
14
|
-
|
|
13
|
+
import { styled, expandBorderStyles } from '../styles';
|
|
15
14
|
export var Action = styled('div', function (_ref) {
|
|
16
15
|
var $theme = _ref.$theme;
|
|
17
16
|
return _objectSpread({}, $theme.typography.LabelMedium);
|
|
18
17
|
});
|
|
19
18
|
Action.displayName = "Action";
|
|
20
|
-
Action.displayName = 'Action';
|
|
21
19
|
export var Body = styled('div', function (_ref2) {
|
|
22
20
|
var $theme = _ref2.$theme;
|
|
23
21
|
return _objectSpread({
|
|
@@ -26,7 +24,6 @@ export var Body = styled('div', function (_ref2) {
|
|
|
26
24
|
}, $theme.typography.ParagraphMedium);
|
|
27
25
|
});
|
|
28
26
|
Body.displayName = "Body";
|
|
29
|
-
Body.displayName = 'Body';
|
|
30
27
|
export var Contents = styled('div', function (_ref3) {
|
|
31
28
|
var $theme = _ref3.$theme;
|
|
32
29
|
return {
|
|
@@ -37,7 +34,6 @@ export var Contents = styled('div', function (_ref3) {
|
|
|
37
34
|
};
|
|
38
35
|
});
|
|
39
36
|
Contents.displayName = "Contents";
|
|
40
|
-
Contents.displayName = 'Contents';
|
|
41
37
|
export var HeaderImage = styled('img', function (_ref4) {
|
|
42
38
|
var $theme = _ref4.$theme;
|
|
43
39
|
return {
|
|
@@ -46,11 +42,10 @@ export var HeaderImage = styled('img', function (_ref4) {
|
|
|
46
42
|
objectFit: 'contain',
|
|
47
43
|
maxWidth: '100%'
|
|
48
44
|
};
|
|
49
|
-
});
|
|
50
|
-
HeaderImage.displayName = "HeaderImage";
|
|
51
|
-
HeaderImage.displayName = 'HeaderImage'; // by using the section tag, we can keep the h1 for the title
|
|
45
|
+
}); // by using the section tag, we can keep the h1 for the title
|
|
52
46
|
// https://html.spec.whatwg.org/multipage/sections.html#headings-and-sections
|
|
53
47
|
|
|
48
|
+
HeaderImage.displayName = "HeaderImage";
|
|
54
49
|
export var Root = styled('section', function (_ref5) {
|
|
55
50
|
var $theme = _ref5.$theme;
|
|
56
51
|
return {
|
|
@@ -75,7 +70,6 @@ export var Root = styled('section', function (_ref5) {
|
|
|
75
70
|
};
|
|
76
71
|
});
|
|
77
72
|
Root.displayName = "Root";
|
|
78
|
-
Root.displayName = 'Root';
|
|
79
73
|
export var Thumbnail = styled('img', function (_ref6) {
|
|
80
74
|
var $theme = _ref6.$theme;
|
|
81
75
|
return _objectSpread(_objectSpread({
|
|
@@ -92,7 +86,6 @@ export var Thumbnail = styled('img', function (_ref6) {
|
|
|
92
86
|
});
|
|
93
87
|
});
|
|
94
88
|
Thumbnail.displayName = "Thumbnail";
|
|
95
|
-
Thumbnail.displayName = 'Thumbnail';
|
|
96
89
|
export var Title = styled('h1', function (_ref7) {
|
|
97
90
|
var $theme = _ref7.$theme;
|
|
98
91
|
return _objectSpread(_objectSpread({}, $theme.typography.HeadingSmall), {}, {
|
|
@@ -107,5 +100,4 @@ export var Title = styled('h1', function (_ref7) {
|
|
|
107
100
|
paddingBottom: 0
|
|
108
101
|
});
|
|
109
102
|
});
|
|
110
|
-
Title.displayName = "Title";
|
|
111
|
-
Title.displayName = 'Title';
|
|
103
|
+
Title.displayName = "Title";
|
package/esm/checkbox/index.js
CHANGED
|
@@ -4,7 +4,6 @@ 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
|
|
8
7
|
export { default as StatefulCheckbox } from './stateful-checkbox';
|
|
9
8
|
export { default as StatefulContainer } from './stateful-checkbox-container';
|
|
10
9
|
export { default as Checkbox } from './checkbox'; // Styled elements
|
|
@@ -140,7 +140,6 @@ export var Root = styled('label', function (props) {
|
|
|
140
140
|
};
|
|
141
141
|
});
|
|
142
142
|
Root.displayName = "Root";
|
|
143
|
-
Root.displayName = 'Root';
|
|
144
143
|
export var Checkmark = styled('span', function (props) {
|
|
145
144
|
var $checked = props.$checked,
|
|
146
145
|
$disabled = props.$disabled,
|
|
@@ -153,7 +152,7 @@ export var Checkmark = styled('span', function (props) {
|
|
|
153
152
|
var tickColor = $disabled ? $theme.colors.tickMarkFillDisabled : $error ? $theme.colors.tickMarkFillError : $theme.colors.tickMarkFill;
|
|
154
153
|
var indeterminate = encodeURIComponent("\n <svg width=\"14\" height=\"4\" viewBox=\"0 0 14 4\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M14 0.5H0V3.5H14V0.5Z\" fill=\"".concat(tickColor, "\"/>\n </svg>\n "));
|
|
155
154
|
var check = encodeURIComponent("\n <svg width=\"17\" height=\"13\" viewBox=\"0 0 17 13\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M6.50002 12.6L0.400024 6.60002L2.60002 4.40002L6.50002 8.40002L13.9 0.900024L16.1 3.10002L6.50002 12.6Z\" fill=\"".concat(tickColor, "\"/>\n </svg>\n "));
|
|
156
|
-
var borderRadius = $theme.borders.
|
|
155
|
+
var borderRadius = $theme.borders.inputBorderRadius;
|
|
157
156
|
var borderColor = getBorderColor(props);
|
|
158
157
|
return {
|
|
159
158
|
flex: '0 0 auto',
|
|
@@ -196,7 +195,6 @@ export var Checkmark = styled('span', function (props) {
|
|
|
196
195
|
};
|
|
197
196
|
});
|
|
198
197
|
Checkmark.displayName = "Checkmark";
|
|
199
|
-
Checkmark.displayName = 'Checkmark';
|
|
200
198
|
export var Label = styled('div', function (props) {
|
|
201
199
|
var $theme = props.$theme;
|
|
202
200
|
var typography = $theme.typography;
|
|
@@ -207,10 +205,9 @@ export var Label = styled('div', function (props) {
|
|
|
207
205
|
}, typography.LabelMedium), {}, {
|
|
208
206
|
lineHeight: '24px'
|
|
209
207
|
});
|
|
210
|
-
});
|
|
211
|
-
Label.displayName = "Label";
|
|
212
|
-
Label.displayName = 'Label'; // tricky style for focus event cause display: none doesn't work
|
|
208
|
+
}); // tricky style for focus event cause display: none doesn't work
|
|
213
209
|
|
|
210
|
+
Label.displayName = "Label";
|
|
214
211
|
export var Input = styled('input', {
|
|
215
212
|
opacity: 0,
|
|
216
213
|
width: 0,
|
|
@@ -221,7 +218,6 @@ export var Input = styled('input', {
|
|
|
221
218
|
position: 'absolute'
|
|
222
219
|
});
|
|
223
220
|
Input.displayName = "Input";
|
|
224
|
-
Input.displayName = 'Input';
|
|
225
221
|
export var Toggle = styled('div', function (props) {
|
|
226
222
|
var backgroundColor = props.$theme.colors.toggleFill;
|
|
227
223
|
|
|
@@ -248,7 +244,6 @@ export var Toggle = styled('div', function (props) {
|
|
|
248
244
|
};
|
|
249
245
|
});
|
|
250
246
|
Toggle.displayName = "Toggle";
|
|
251
|
-
Toggle.displayName = 'Toggle';
|
|
252
247
|
export var ToggleTrack = styled('div', function (props) {
|
|
253
248
|
var backgroundColor = props.$theme.colors.toggleTrackFill;
|
|
254
249
|
|
|
@@ -274,5 +269,4 @@ export var ToggleTrack = styled('div', function (props) {
|
|
|
274
269
|
width: props.$theme.sizing.scale1000
|
|
275
270
|
};
|
|
276
271
|
});
|
|
277
|
-
ToggleTrack.displayName = "ToggleTrack";
|
|
278
|
-
ToggleTrack.displayName = 'ToggleTrack';
|
|
272
|
+
ToggleTrack.displayName = "ToggleTrack";
|
package/esm/combobox/combobox.js
CHANGED
|
@@ -201,7 +201,6 @@ function Combobox(props) {
|
|
|
201
201
|
if (listboxRef.current && event.relatedTarget && // NOTE(chase): Contains method expects a Node type, but relatedTarget is
|
|
202
202
|
// EventTarget which is a super type of Node. Passing an EventTarget seems
|
|
203
203
|
// to work fine, assuming the flow type is too strict.
|
|
204
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
205
204
|
listboxRef.current.contains(event.relatedTarget)) {
|
|
206
205
|
return;
|
|
207
206
|
}
|
|
@@ -294,84 +293,78 @@ function Combobox(props) {
|
|
|
294
293
|
popoverOverrides = _getOverrides12$$over === void 0 ? {} : _getOverrides12$$over,
|
|
295
294
|
restPopoverProps = _objectWithoutProperties(_getOverrides12$, _excluded2);
|
|
296
295
|
|
|
297
|
-
return (
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
296
|
+
return /*#__PURE__*/React.createElement(Root, _extends({
|
|
297
|
+
ref: rootRef
|
|
298
|
+
}, rootProps), /*#__PURE__*/React.createElement(OverriddenPopover // React-focus-lock used in Popover used to skip non-tabbable elements (`tabIndex=-1`) elements for focus, we had ListBox with tabIndex to disable focus on
|
|
299
|
+
// the ListBox, but we can just disable autoFocus (as ListBox / ListItem should not be focusable) (and input is also not autoFocused).
|
|
300
|
+
// Select Component does the same thing
|
|
301
|
+
, _extends({
|
|
302
|
+
autoFocus: false,
|
|
303
|
+
isOpen: isOpen,
|
|
304
|
+
overrides: popoverOverrides,
|
|
305
|
+
placement: PLACEMENT.bottomLeft,
|
|
306
|
+
onClick: handleInputClick,
|
|
307
|
+
content: /*#__PURE__*/React.createElement(ListBox // TabIndex attribute exists to exclude option clicks from triggering onBlur event actions.
|
|
305
308
|
, _extends({
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
onFocus: handleFocus,
|
|
366
|
-
onKeyDown: handleKeyDown,
|
|
367
|
-
overrides: inputOverrides,
|
|
368
|
-
positive: positive,
|
|
369
|
-
size: size,
|
|
370
|
-
value: tempValue ? tempValue : value
|
|
371
|
-
}, isOpen ? {
|
|
372
|
-
'aria-controls': listboxId
|
|
373
|
-
} : {}, restInputProps)))))
|
|
374
|
-
);
|
|
309
|
+
tabIndex: "-1",
|
|
310
|
+
id: listboxId,
|
|
311
|
+
ref: listboxRef,
|
|
312
|
+
role: "listbox",
|
|
313
|
+
"aria-label": listBoxLabel,
|
|
314
|
+
$width: listboxWidth
|
|
315
|
+
}, listBoxProps), options.map(function (option, index) {
|
|
316
|
+
var isSelected = selectionIndex === index;
|
|
317
|
+
var ReplacementNode = mapOptionToNode;
|
|
318
|
+
return (
|
|
319
|
+
/*#__PURE__*/
|
|
320
|
+
// List items are not focusable, therefore will never trigger a key event from it.
|
|
321
|
+
// Secondly, key events are handled from the input element.
|
|
322
|
+
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
323
|
+
React.createElement(ListItem, _extends({
|
|
324
|
+
"aria-selected": isSelected,
|
|
325
|
+
id: isSelected ? activeDescendantId : null,
|
|
326
|
+
key: index,
|
|
327
|
+
onClick: function onClick() {
|
|
328
|
+
return handleOptionClick(index);
|
|
329
|
+
},
|
|
330
|
+
ref: isSelected ? selectedOptionRef : null,
|
|
331
|
+
role: "option",
|
|
332
|
+
$isSelected: isSelected,
|
|
333
|
+
$size: size
|
|
334
|
+
}, listItemProps), ReplacementNode ? /*#__PURE__*/React.createElement(ReplacementNode, {
|
|
335
|
+
isSelected: isSelected,
|
|
336
|
+
option: option
|
|
337
|
+
}) : mapOptionToString(option))
|
|
338
|
+
);
|
|
339
|
+
}))
|
|
340
|
+
}, restPopoverProps), /*#__PURE__*/React.createElement(InputContainer, _extends({
|
|
341
|
+
"aria-expanded": isOpen,
|
|
342
|
+
"aria-haspopup": "listbox",
|
|
343
|
+
"aria-owns": listboxId // a11y linter implements the older 1.0 spec, suppressing to use updated 1.1
|
|
344
|
+
// https://github.com/A11yance/aria-query/issues/43
|
|
345
|
+
// https://github.com/evcohen/eslint-plugin-jsx-a11y/issues/442
|
|
346
|
+
// eslint-disable-next-line jsx-a11y/role-has-required-aria-props
|
|
347
|
+
,
|
|
348
|
+
role: "combobox"
|
|
349
|
+
}, inputContainerProps), /*#__PURE__*/React.createElement(OverriddenInput, _extends({
|
|
350
|
+
inputRef: handleInputRef,
|
|
351
|
+
"aria-activedescendant": isOpen && selectionIndex >= 0 ? activeDescendantId : undefined,
|
|
352
|
+
"aria-autocomplete": "list",
|
|
353
|
+
disabled: disabled,
|
|
354
|
+
error: error,
|
|
355
|
+
name: name,
|
|
356
|
+
id: id,
|
|
357
|
+
onBlur: handleBlur,
|
|
358
|
+
onChange: handleInputChange,
|
|
359
|
+
onFocus: handleFocus,
|
|
360
|
+
onKeyDown: handleKeyDown,
|
|
361
|
+
overrides: inputOverrides,
|
|
362
|
+
positive: positive,
|
|
363
|
+
size: size,
|
|
364
|
+
value: tempValue ? tempValue : value
|
|
365
|
+
}, isOpen ? {
|
|
366
|
+
'aria-controls': listboxId
|
|
367
|
+
} : {}, restInputProps)))));
|
|
375
368
|
}
|
|
376
369
|
|
|
377
370
|
export default Combobox;
|
|
@@ -14,10 +14,8 @@ import { SIZE } from '../input';
|
|
|
14
14
|
import { styled } from '../styles';
|
|
15
15
|
export var StyledRoot = styled('div', {});
|
|
16
16
|
StyledRoot.displayName = "StyledRoot";
|
|
17
|
-
StyledRoot.displayName = 'StyledRoot';
|
|
18
17
|
export var StyledInputContainer = styled('div', {});
|
|
19
18
|
StyledInputContainer.displayName = "StyledInputContainer";
|
|
20
|
-
StyledInputContainer.displayName = 'StyledInputContainer';
|
|
21
19
|
export var StyledListBox = styled('ul', function (_ref) {
|
|
22
20
|
var $theme = _ref.$theme,
|
|
23
21
|
$width = _ref.$width;
|
|
@@ -33,7 +31,6 @@ export var StyledListBox = styled('ul', function (_ref) {
|
|
|
33
31
|
};
|
|
34
32
|
});
|
|
35
33
|
StyledListBox.displayName = "StyledListBox";
|
|
36
|
-
StyledListBox.displayName = 'StyledListBox';
|
|
37
34
|
|
|
38
35
|
function buildStylesForSize(size, theme) {
|
|
39
36
|
var paddingDir = theme.direction === 'rtl' ? 'paddingRight' : 'paddingLeft';
|
|
@@ -77,5 +74,4 @@ export var StyledListItem = styled('li', function (_ref2) {
|
|
|
77
74
|
}
|
|
78
75
|
});
|
|
79
76
|
});
|
|
80
|
-
StyledListItem.displayName = "StyledListItem";
|
|
81
|
-
StyledListItem.displayName = 'StyledListItem';
|
|
77
|
+
StyledListItem.displayName = "StyledListItem";
|
|
@@ -24,7 +24,6 @@ import { useStyletron } from '../styles';
|
|
|
24
24
|
import Column from './column';
|
|
25
25
|
import { COLUMNS } from './constants';
|
|
26
26
|
|
|
27
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
28
27
|
function AnchorFilter(props) {
|
|
29
28
|
return /*#__PURE__*/React.createElement("div", null, "not implemented for anchor column");
|
|
30
29
|
}
|
|
@@ -50,9 +49,7 @@ function AnchorCell(props) {
|
|
|
50
49
|
function AnchorColumn(options) {
|
|
51
50
|
return Column({
|
|
52
51
|
kind: COLUMNS.ANCHOR,
|
|
53
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
54
52
|
buildFilter: function buildFilter(params) {
|
|
55
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
56
53
|
return function (data) {
|
|
57
54
|
return true;
|
|
58
55
|
};
|
|
@@ -53,8 +53,7 @@ import { Select } from '../select';
|
|
|
53
53
|
import Column from './column';
|
|
54
54
|
import { COLUMNS, DATETIME_OPERATIONS } from './constants';
|
|
55
55
|
import FilterShell from './filter-shell';
|
|
56
|
-
import { LocaleContext } from '../locale';
|
|
57
|
-
|
|
56
|
+
import { LocaleContext } from '../locale';
|
|
58
57
|
var DATE_FORMAT = 'MM-dd-yyyy';
|
|
59
58
|
var MASK = '99-99-9999 - 99-99-9999';
|
|
60
59
|
var TIME_FORMAT = 'HH:mm ss:SS';
|
|
@@ -234,8 +233,7 @@ function DatetimeFilter(props) {
|
|
|
234
233
|
var _React$useState7 = React.useState([initialState.categoricalOperator]),
|
|
235
234
|
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
236
235
|
categoricalOperator = _React$useState8[0],
|
|
237
|
-
setCategoricalOperator = _React$useState8[1];
|
|
238
|
-
|
|
236
|
+
setCategoricalOperator = _React$useState8[1];
|
|
239
237
|
|
|
240
238
|
var _React$useState9 = React.useState(initialState.rangeDates.length ? initialState.rangeDates : [new Date(datesSorted[0]), new Date(datesSorted[datesSorted.length - 1])]),
|
|
241
239
|
_React$useState10 = _slicedToArray(_React$useState9, 2),
|
|
@@ -276,7 +274,6 @@ function DatetimeFilter(props) {
|
|
|
276
274
|
},
|
|
277
275
|
onApply: function onApply() {
|
|
278
276
|
if (isRange) {
|
|
279
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
280
277
|
var op = rangeOperator[0].id;
|
|
281
278
|
var description = '';
|
|
282
279
|
|
|
@@ -308,7 +305,6 @@ function DatetimeFilter(props) {
|
|
|
308
305
|
}
|
|
309
306
|
|
|
310
307
|
if (isCategorical) {
|
|
311
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
312
308
|
var _op = categoricalOperator[0].id;
|
|
313
309
|
var selection = [];
|
|
314
310
|
var operatorLocaleLabelKey = '';
|
|
@@ -401,8 +397,7 @@ function DatetimeFilter(props) {
|
|
|
401
397
|
value: rangeOperator,
|
|
402
398
|
onChange: function onChange(params) {
|
|
403
399
|
return setRangeOperator(params.value);
|
|
404
|
-
}
|
|
405
|
-
,
|
|
400
|
+
},
|
|
406
401
|
mountNode: mountNode.current,
|
|
407
402
|
options: RANGE_OPERATIONS.map(function (op) {
|
|
408
403
|
return {
|
|
@@ -416,8 +411,7 @@ function DatetimeFilter(props) {
|
|
|
416
411
|
className: css({
|
|
417
412
|
paddingTop: theme.sizing.scale600
|
|
418
413
|
})
|
|
419
|
-
}, (rangeOperator[0].id === DATETIME_OPERATIONS.RANGE_DATETIME || rangeOperator[0].id === DATETIME_OPERATIONS.RANGE_DATE) && /*#__PURE__*/React.createElement(Datepicker
|
|
420
|
-
, {
|
|
414
|
+
}, (rangeOperator[0].id === DATETIME_OPERATIONS.RANGE_DATETIME || rangeOperator[0].id === DATETIME_OPERATIONS.RANGE_DATE) && /*#__PURE__*/React.createElement(Datepicker, {
|
|
421
415
|
mountNode: mountNode.current,
|
|
422
416
|
value: rangeDates,
|
|
423
417
|
onChange: function onChange(_ref2) {
|
|
@@ -488,8 +482,7 @@ function DatetimeFilter(props) {
|
|
|
488
482
|
label: locale.datatable[op.localeLabelKey],
|
|
489
483
|
id: op.id
|
|
490
484
|
};
|
|
491
|
-
})
|
|
492
|
-
,
|
|
485
|
+
}),
|
|
493
486
|
mountNode: mountNode.current,
|
|
494
487
|
size: "compact",
|
|
495
488
|
clearable: false
|
|
@@ -84,7 +84,6 @@ function validateInput(input) {
|
|
|
84
84
|
var bisect = bisector(function (d) {
|
|
85
85
|
return d.x0;
|
|
86
86
|
});
|
|
87
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
88
87
|
var Histogram = /*#__PURE__*/React.memo(function Histogram(_ref) {
|
|
89
88
|
var data = _ref.data,
|
|
90
89
|
lower = _ref.lower,
|
|
@@ -393,7 +392,6 @@ function NumericalFilter(props) {
|
|
|
393
392
|
$thumbIndex = _ref4.$thumbIndex;
|
|
394
393
|
return /*#__PURE__*/React.createElement(React.Fragment, null, $value[$thumbIndex]);
|
|
395
394
|
},
|
|
396
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
397
395
|
TickBar: function TickBar(_ref5) {
|
|
398
396
|
var $min = _ref5.$min,
|
|
399
397
|
$max = _ref5.$max;
|
|
@@ -413,7 +411,9 @@ function NumericalFilter(props) {
|
|
|
413
411
|
}
|
|
414
412
|
},
|
|
415
413
|
InnerTrack: {
|
|
416
|
-
style: function style() {
|
|
414
|
+
style: function style(_ref6) {
|
|
415
|
+
var $theme = _ref6.$theme;
|
|
416
|
+
|
|
417
417
|
if (!isRange) {
|
|
418
418
|
return {
|
|
419
419
|
// For range selection we use the color as is, but when selecting the single value,
|
|
@@ -523,7 +523,7 @@ var defaultOptions = {
|
|
|
523
523
|
sortable: true,
|
|
524
524
|
filterable: true,
|
|
525
525
|
format: NUMERICAL_FORMATS.DEFAULT,
|
|
526
|
-
highlight: function () {
|
|
526
|
+
highlight: function (n) {
|
|
527
527
|
return false;
|
|
528
528
|
},
|
|
529
529
|
precision: 0
|
|
@@ -24,7 +24,6 @@ import Column from './column';
|
|
|
24
24
|
import { COLUMNS } from './constants';
|
|
25
25
|
import { HighlightCellText } from './text-search';
|
|
26
26
|
|
|
27
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
28
27
|
function StringFilter(props) {
|
|
29
28
|
return /*#__PURE__*/React.createElement("div", null, "not implemented for string column");
|
|
30
29
|
}
|
|
@@ -51,9 +50,7 @@ function StringColumn(options) {
|
|
|
51
50
|
return Column({
|
|
52
51
|
kind: COLUMNS.STRING,
|
|
53
52
|
cellBlockAlign: options.cellBlockAlign,
|
|
54
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
55
53
|
buildFilter: function buildFilter(params) {
|
|
56
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
57
54
|
return function (data) {
|
|
58
55
|
return true;
|
|
59
56
|
};
|
package/esm/data-table/column.js
CHANGED
|
@@ -24,7 +24,6 @@ LICENSE file in the root directory of this source tree.
|
|
|
24
24
|
*/
|
|
25
25
|
import * as React from 'react';
|
|
26
26
|
import { Checkbox } from '../checkbox';
|
|
27
|
-
import { LocaleContext } from '../locale';
|
|
28
27
|
import { useStyletron } from '../styles';
|
|
29
28
|
|
|
30
29
|
function Column(options) {
|
|
@@ -42,10 +41,8 @@ function Column(options) {
|
|
|
42
41
|
maxWidth: options.maxWidth,
|
|
43
42
|
minWidth: options.minWidth,
|
|
44
43
|
// todo(flow->ts) add proper type annotation
|
|
45
|
-
// eslint-disable-next-line
|
|
44
|
+
// eslint-disable-next-line react/display-name
|
|
46
45
|
renderCell: /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
47
|
-
var locale = React.useContext(LocaleContext);
|
|
48
|
-
|
|
49
46
|
var _useStyletron = useStyletron(),
|
|
50
47
|
_useStyletron2 = _slicedToArray(_useStyletron, 2),
|
|
51
48
|
css = _useStyletron2[0],
|
|
@@ -84,7 +81,6 @@ function Column(options) {
|
|
|
84
81
|
paddingRight: theme.sizing.scale300
|
|
85
82
|
})
|
|
86
83
|
}, /*#__PURE__*/React.createElement(Checkbox, {
|
|
87
|
-
"aria-label": locale.datatable.selectRow,
|
|
88
84
|
onChange: props.onSelect,
|
|
89
85
|
checked: props.isSelected,
|
|
90
86
|
overrides: {
|
|
@@ -178,8 +178,7 @@ function Header(props) {
|
|
|
178
178
|
var _React$useState3 = React.useState(0),
|
|
179
179
|
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
180
180
|
endResizePos = _React$useState4[0],
|
|
181
|
-
setEndResizePos = _React$useState4[1];
|
|
182
|
-
|
|
181
|
+
setEndResizePos = _React$useState4[1];
|
|
183
182
|
|
|
184
183
|
var headerCellRef = React.useRef(null);
|
|
185
184
|
var RULER_OFFSET = 2;
|
|
@@ -223,8 +222,7 @@ function Header(props) {
|
|
|
223
222
|
}
|
|
224
223
|
}
|
|
225
224
|
}
|
|
226
|
-
}
|
|
227
|
-
|
|
225
|
+
}
|
|
228
226
|
|
|
229
227
|
function handleMouseUp(event) {
|
|
230
228
|
props.onResize(props.index, endResizePos - startResizePos);
|
|
@@ -787,13 +785,15 @@ export function DataTable(_ref2) {
|
|
|
787
785
|
}
|
|
788
786
|
|
|
789
787
|
result.push(gridProps.width - sum(result) - scrollbarWidth);
|
|
790
|
-
resetAfterColumnIndex(0);
|
|
791
788
|
return result;
|
|
792
789
|
}
|
|
793
790
|
}
|
|
794
791
|
|
|
795
792
|
return resizedWidths;
|
|
796
793
|
}, [gridRef, measuredWidths, resizeDeltas, browserScrollbarWidth, rows.length, columns]);
|
|
794
|
+
React.useEffect(function () {
|
|
795
|
+
resetAfterColumnIndex(0);
|
|
796
|
+
}, [normalizedWidths]);
|
|
797
797
|
var isSelectable = batchActions ? !!batchActions.length : false;
|
|
798
798
|
var isSelectedAll = React.useMemo(function () {
|
|
799
799
|
if (!selectedRowIds) {
|
|
@@ -941,8 +941,7 @@ export function DataTable(_ref2) {
|
|
|
941
941
|
tableHeight: height,
|
|
942
942
|
widths: normalizedWidths
|
|
943
943
|
}
|
|
944
|
-
}, /*#__PURE__*/React.createElement(VariableSizeGrid
|
|
945
|
-
, {
|
|
944
|
+
}, /*#__PURE__*/React.createElement(VariableSizeGrid, {
|
|
946
945
|
ref: setGridRef,
|
|
947
946
|
overscanRowCount: 10,
|
|
948
947
|
overscanColumnCount: 5,
|