baseui 0.0.0-alpha-3479e57 → 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/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/user-menu.js +1 -1
- package/aspect-ratio-box/aspect-ratio-box.js +1 -3
- package/avatar/styled-components.js +1 -4
- package/badge/styled-components.js +7 -12
- package/banner/styled-components.js +11 -21
- package/banner/types.d.ts +11 -12
- package/banner/types.js.flow +11 -13
- package/block/block.js +1 -3
- package/block/styled-components.js +1 -2
- package/breadcrumbs/styled-components.js +1 -5
- package/button/styled-components.js +0 -5
- 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/card/images.d.ts +1 -1
- package/card/styled-components.js +4 -11
- package/checkbox/styled-components.js +3 -9
- package/combobox/combobox.js +71 -78
- package/combobox/styled-components.js +1 -5
- 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 +1 -2
- package/data-table/stateful-container.js +1 -2
- package/data-table/stateful-data-table.js +4 -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/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/utils/date-helpers.js +1 -2
- package/datepicker/utils/index.js +1 -2
- package/divider/styled-components.js +3 -4
- package/dnd-list/stateful-list-container.js +0 -1
- package/dnd-list/styled-components.js +0 -7
- 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/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 +2 -7
- package/es/banner/styled-components.js +2 -12
- package/es/block/block.js +1 -3
- package/es/block/styled-components.js +1 -2
- package/es/breadcrumbs/styled-components.js +1 -5
- package/es/button/button.js +0 -8
- package/es/button/styled-components.js +0 -5
- 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/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 +3 -9
- 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 +1 -2
- 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/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/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/omit-dollar-prefixed-keys.js +0 -1
- package/es/icon/styled-components.js +1 -2
- package/es/input/base-input.js +0 -1
- package/es/input/masked-input.js +2 -9
- package/es/input/stateful-container.js +0 -1
- package/es/input/styled-components.js +5 -10
- 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 -15
- 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/menu.js +3 -7
- package/es/menu/option-profile.js +0 -1
- package/es/menu/stateful-container.js +0 -10
- package/es/menu/styled-components.js +2 -15
- 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 +12 -9
- 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/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 +1 -16
- 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 +2 -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 +1 -9
- package/es/tabs-motion/tab.js +0 -1
- package/es/tabs-motion/tabs.js +1 -2
- package/es/tag/styled-components.js +1 -32
- package/es/tag/tag.js +2 -6
- package/es/textarea/styled-components.js +1 -4
- package/es/themes/shared/typography.js +10 -10
- 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 +2 -7
- package/esm/banner/styled-components.js +2 -12
- package/esm/block/block.js +1 -3
- package/esm/block/styled-components.js +1 -2
- package/esm/breadcrumbs/styled-components.js +1 -5
- package/esm/button/styled-components.js +0 -5
- 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/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 +3 -9
- 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 +1 -2
- 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/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/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/omit-dollar-prefixed-keys.js +0 -1
- package/esm/icon/styled-components.js +1 -2
- package/esm/input/base-input.js +0 -1
- package/esm/input/masked-input.js +2 -5
- package/esm/input/stateful-container.js +0 -1
- package/esm/input/styled-components.js +5 -10
- 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 -15
- 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/menu.js +3 -6
- package/esm/menu/option-profile.js +0 -1
- package/esm/menu/stateful-container.js +0 -1
- package/esm/menu/styled-components.js +6 -20
- 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 +12 -9
- 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/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 +1 -16
- 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 +2 -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 +1 -8
- package/esm/tabs-motion/tab.js +0 -1
- package/esm/tabs-motion/tabs.js +1 -2
- package/esm/tag/styled-components.js +1 -5
- package/esm/tag/tag.js +2 -4
- package/esm/textarea/styled-components.js +1 -4
- package/esm/themes/shared/typography.js +10 -10
- 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/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/form-control/styled-components.js +1 -6
- package/header-navigation/styled-components.js +1 -4
- package/helper/styled-components.js +1 -3
- package/helpers/overrides.js +3 -8
- package/helpers/overrides.js.flow +1 -1
- package/icon/build-icons.js +2 -0
- package/icon/build-icons.js.flow +1 -0
- package/icon/omit-dollar-prefixed-keys.js +0 -1
- package/icon/styled-components.js +1 -2
- package/input/masked-input.js +2 -5
- package/input/stateful-container.js +0 -1
- package/input/styled-components.js +5 -10
- 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 +0 -21
- package/layer/types.js.flow +1 -22
- package/layout-grid/styled-components.js +0 -3
- 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 -15
- package/locale/es_AR.js +1 -3
- package/locale/index.js +1 -4
- 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 +1 -29
- package/map-marker/types.js.flow +0 -34
- package/menu/menu.js +3 -6
- package/menu/option-profile.js +0 -1
- package/menu/stateful-container.js +0 -1
- package/menu/styled-components.js +6 -20
- package/modal/modal.js +4 -4
- package/modal/modal.js.flow +3 -1
- package/modal/styled-components.js +1 -8
- package/package.json +11 -9
- package/pagination/stateful-container.js +0 -1
- package/pagination/stateful-pagination.js +0 -1
- package/pagination/styled-components.js +1 -4
- 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/pin-code/styled-components.js +1 -4
- package/popover/popover.js +12 -9
- package/popover/popover.js.flow +12 -2
- package/popover/styled-components.js +9 -12
- package/progress-bar/progressbar-rounded.js +0 -1
- package/progress-bar/styled-components.js +2 -14
- package/progress-steps/progress-steps.js +1 -2
- package/progress-steps/styled-components.js +19 -28
- package/radio/styled-components.js +3 -10
- 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/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 +1 -16
- 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/skeleton/styled-components.js +1 -3
- package/slider/slider.js +2 -4
- package/slider/styled-components.js +0 -9
- package/snackbar/snackbar-element.js +0 -1
- package/snackbar/styled-components.js +1 -9
- package/spinner/styled-components.js +1 -2
- package/styles/__mocks__/styled.js +3 -8
- package/styles/styled.js +6 -7
- package/table/styled-components.js +1 -13
- package/table-grid/styled-components.js +1 -4
- package/table-semantic/styled-components.js +2 -20
- package/tabs/stateful-tabs.js +0 -1
- package/tabs/styled-components.js +1 -5
- package/tabs/tabs.js +2 -4
- package/tabs-motion/styled-components.js +1 -8
- package/tabs-motion/tab.js +0 -1
- package/tabs-motion/tabs.js +1 -2
- package/tag/styled-components.js +1 -5
- package/tag/tag.js +2 -4
- package/textarea/styled-components.js +1 -4
- package/themes/shared/typography.js +10 -10
- package/themes/shared/typography.js.flow +10 -10
- package/toast/styled-components.js +1 -5
- package/toast/toaster.js.flow +1 -1
- 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/types/globals.d.js +1 -14
- package/utils/deep-merge.js +6 -0
- package/utils/deprecated-component.js +0 -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 -112
- 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 -166
- 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 -182
- 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
|
@@ -19,7 +19,6 @@ var Action = (0, _styles.styled)('div', function (_ref) {
|
|
|
19
19
|
});
|
|
20
20
|
exports.Action = Action;
|
|
21
21
|
Action.displayName = "Action";
|
|
22
|
-
Action.displayName = 'Action';
|
|
23
22
|
var Body = (0, _styles.styled)('div', function (_ref2) {
|
|
24
23
|
var $theme = _ref2.$theme;
|
|
25
24
|
return _objectSpread({
|
|
@@ -29,7 +28,6 @@ var Body = (0, _styles.styled)('div', function (_ref2) {
|
|
|
29
28
|
});
|
|
30
29
|
exports.Body = Body;
|
|
31
30
|
Body.displayName = "Body";
|
|
32
|
-
Body.displayName = 'Body';
|
|
33
31
|
var Contents = (0, _styles.styled)('div', function (_ref3) {
|
|
34
32
|
var $theme = _ref3.$theme;
|
|
35
33
|
return {
|
|
@@ -41,7 +39,6 @@ var Contents = (0, _styles.styled)('div', function (_ref3) {
|
|
|
41
39
|
});
|
|
42
40
|
exports.Contents = Contents;
|
|
43
41
|
Contents.displayName = "Contents";
|
|
44
|
-
Contents.displayName = 'Contents';
|
|
45
42
|
var HeaderImage = (0, _styles.styled)('img', function (_ref4) {
|
|
46
43
|
var $theme = _ref4.$theme;
|
|
47
44
|
return {
|
|
@@ -50,12 +47,11 @@ var HeaderImage = (0, _styles.styled)('img', function (_ref4) {
|
|
|
50
47
|
objectFit: 'contain',
|
|
51
48
|
maxWidth: '100%'
|
|
52
49
|
};
|
|
53
|
-
});
|
|
54
|
-
exports.HeaderImage = HeaderImage;
|
|
55
|
-
HeaderImage.displayName = "HeaderImage";
|
|
56
|
-
HeaderImage.displayName = 'HeaderImage'; // by using the section tag, we can keep the h1 for the title
|
|
50
|
+
}); // by using the section tag, we can keep the h1 for the title
|
|
57
51
|
// https://html.spec.whatwg.org/multipage/sections.html#headings-and-sections
|
|
58
52
|
|
|
53
|
+
exports.HeaderImage = HeaderImage;
|
|
54
|
+
HeaderImage.displayName = "HeaderImage";
|
|
59
55
|
var Root = (0, _styles.styled)('section', function (_ref5) {
|
|
60
56
|
var $theme = _ref5.$theme;
|
|
61
57
|
return {
|
|
@@ -81,7 +77,6 @@ var Root = (0, _styles.styled)('section', function (_ref5) {
|
|
|
81
77
|
});
|
|
82
78
|
exports.Root = Root;
|
|
83
79
|
Root.displayName = "Root";
|
|
84
|
-
Root.displayName = 'Root';
|
|
85
80
|
var Thumbnail = (0, _styles.styled)('img', function (_ref6) {
|
|
86
81
|
var $theme = _ref6.$theme;
|
|
87
82
|
return _objectSpread(_objectSpread({
|
|
@@ -99,7 +94,6 @@ var Thumbnail = (0, _styles.styled)('img', function (_ref6) {
|
|
|
99
94
|
});
|
|
100
95
|
exports.Thumbnail = Thumbnail;
|
|
101
96
|
Thumbnail.displayName = "Thumbnail";
|
|
102
|
-
Thumbnail.displayName = 'Thumbnail';
|
|
103
97
|
var Title = (0, _styles.styled)('h1', function (_ref7) {
|
|
104
98
|
var $theme = _ref7.$theme;
|
|
105
99
|
return _objectSpread(_objectSpread({}, $theme.typography.HeadingSmall), {}, {
|
|
@@ -115,5 +109,4 @@ var Title = (0, _styles.styled)('h1', function (_ref7) {
|
|
|
115
109
|
});
|
|
116
110
|
});
|
|
117
111
|
exports.Title = Title;
|
|
118
|
-
Title.displayName = "Title";
|
|
119
|
-
Title.displayName = 'Title';
|
|
112
|
+
Title.displayName = "Title";
|
|
@@ -142,7 +142,6 @@ var Root = (0, _styles.styled)('label', function (props) {
|
|
|
142
142
|
});
|
|
143
143
|
exports.Root = Root;
|
|
144
144
|
Root.displayName = "Root";
|
|
145
|
-
Root.displayName = 'Root';
|
|
146
145
|
var Checkmark = (0, _styles.styled)('span', function (props) {
|
|
147
146
|
var $checked = props.$checked,
|
|
148
147
|
$disabled = props.$disabled,
|
|
@@ -199,7 +198,6 @@ var Checkmark = (0, _styles.styled)('span', function (props) {
|
|
|
199
198
|
});
|
|
200
199
|
exports.Checkmark = Checkmark;
|
|
201
200
|
Checkmark.displayName = "Checkmark";
|
|
202
|
-
Checkmark.displayName = 'Checkmark';
|
|
203
201
|
var Label = (0, _styles.styled)('div', function (props) {
|
|
204
202
|
var $theme = props.$theme;
|
|
205
203
|
var typography = $theme.typography;
|
|
@@ -210,11 +208,10 @@ var Label = (0, _styles.styled)('div', function (props) {
|
|
|
210
208
|
}, typography.LabelMedium), {}, {
|
|
211
209
|
lineHeight: '24px'
|
|
212
210
|
});
|
|
213
|
-
});
|
|
211
|
+
}); // tricky style for focus event cause display: none doesn't work
|
|
212
|
+
|
|
214
213
|
exports.Label = Label;
|
|
215
214
|
Label.displayName = "Label";
|
|
216
|
-
Label.displayName = 'Label'; // tricky style for focus event cause display: none doesn't work
|
|
217
|
-
|
|
218
215
|
var Input = (0, _styles.styled)('input', {
|
|
219
216
|
opacity: 0,
|
|
220
217
|
width: 0,
|
|
@@ -226,7 +223,6 @@ var Input = (0, _styles.styled)('input', {
|
|
|
226
223
|
});
|
|
227
224
|
exports.Input = Input;
|
|
228
225
|
Input.displayName = "Input";
|
|
229
|
-
Input.displayName = 'Input';
|
|
230
226
|
var Toggle = (0, _styles.styled)('div', function (props) {
|
|
231
227
|
var backgroundColor = props.$theme.colors.toggleFill;
|
|
232
228
|
|
|
@@ -254,7 +250,6 @@ var Toggle = (0, _styles.styled)('div', function (props) {
|
|
|
254
250
|
});
|
|
255
251
|
exports.Toggle = Toggle;
|
|
256
252
|
Toggle.displayName = "Toggle";
|
|
257
|
-
Toggle.displayName = 'Toggle';
|
|
258
253
|
var ToggleTrack = (0, _styles.styled)('div', function (props) {
|
|
259
254
|
var backgroundColor = props.$theme.colors.toggleTrackFill;
|
|
260
255
|
|
|
@@ -281,5 +276,4 @@ var ToggleTrack = (0, _styles.styled)('div', function (props) {
|
|
|
281
276
|
};
|
|
282
277
|
});
|
|
283
278
|
exports.ToggleTrack = ToggleTrack;
|
|
284
|
-
ToggleTrack.displayName = "ToggleTrack";
|
|
285
|
-
ToggleTrack.displayName = 'ToggleTrack';
|
|
279
|
+
ToggleTrack.displayName = "ToggleTrack";
|
package/combobox/combobox.js
CHANGED
|
@@ -215,7 +215,6 @@ function Combobox(props) {
|
|
|
215
215
|
if (listboxRef.current && event.relatedTarget && // NOTE(chase): Contains method expects a Node type, but relatedTarget is
|
|
216
216
|
// EventTarget which is a super type of Node. Passing an EventTarget seems
|
|
217
217
|
// to work fine, assuming the flow type is too strict.
|
|
218
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
219
218
|
listboxRef.current.contains(event.relatedTarget)) {
|
|
220
219
|
return;
|
|
221
220
|
}
|
|
@@ -308,84 +307,78 @@ function Combobox(props) {
|
|
|
308
307
|
popoverOverrides = _getOverrides12$$over === void 0 ? {} : _getOverrides12$$over,
|
|
309
308
|
restPopoverProps = _objectWithoutProperties(_getOverrides12$, _excluded2);
|
|
310
309
|
|
|
311
|
-
return (
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
310
|
+
return /*#__PURE__*/React.createElement(Root, _extends({
|
|
311
|
+
ref: rootRef
|
|
312
|
+
}, 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
|
|
313
|
+
// the ListBox, but we can just disable autoFocus (as ListBox / ListItem should not be focusable) (and input is also not autoFocused).
|
|
314
|
+
// Select Component does the same thing
|
|
315
|
+
, _extends({
|
|
316
|
+
autoFocus: false,
|
|
317
|
+
isOpen: isOpen,
|
|
318
|
+
overrides: popoverOverrides,
|
|
319
|
+
placement: _popover.PLACEMENT.bottomLeft,
|
|
320
|
+
onClick: handleInputClick,
|
|
321
|
+
content: /*#__PURE__*/React.createElement(ListBox // TabIndex attribute exists to exclude option clicks from triggering onBlur event actions.
|
|
319
322
|
, _extends({
|
|
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
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
onFocus: handleFocus,
|
|
380
|
-
onKeyDown: handleKeyDown,
|
|
381
|
-
overrides: inputOverrides,
|
|
382
|
-
positive: positive,
|
|
383
|
-
size: size,
|
|
384
|
-
value: tempValue ? tempValue : value
|
|
385
|
-
}, isOpen ? {
|
|
386
|
-
'aria-controls': listboxId
|
|
387
|
-
} : {}, restInputProps)))))
|
|
388
|
-
);
|
|
323
|
+
tabIndex: "-1",
|
|
324
|
+
id: listboxId,
|
|
325
|
+
ref: listboxRef,
|
|
326
|
+
role: "listbox",
|
|
327
|
+
"aria-label": listBoxLabel,
|
|
328
|
+
$width: listboxWidth
|
|
329
|
+
}, listBoxProps), options.map(function (option, index) {
|
|
330
|
+
var isSelected = selectionIndex === index;
|
|
331
|
+
var ReplacementNode = mapOptionToNode;
|
|
332
|
+
return (
|
|
333
|
+
/*#__PURE__*/
|
|
334
|
+
// List items are not focusable, therefore will never trigger a key event from it.
|
|
335
|
+
// Secondly, key events are handled from the input element.
|
|
336
|
+
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
337
|
+
React.createElement(ListItem, _extends({
|
|
338
|
+
"aria-selected": isSelected,
|
|
339
|
+
id: isSelected ? activeDescendantId : null,
|
|
340
|
+
key: index,
|
|
341
|
+
onClick: function onClick() {
|
|
342
|
+
return handleOptionClick(index);
|
|
343
|
+
},
|
|
344
|
+
ref: isSelected ? selectedOptionRef : null,
|
|
345
|
+
role: "option",
|
|
346
|
+
$isSelected: isSelected,
|
|
347
|
+
$size: size
|
|
348
|
+
}, listItemProps), ReplacementNode ? /*#__PURE__*/React.createElement(ReplacementNode, {
|
|
349
|
+
isSelected: isSelected,
|
|
350
|
+
option: option
|
|
351
|
+
}) : mapOptionToString(option))
|
|
352
|
+
);
|
|
353
|
+
}))
|
|
354
|
+
}, restPopoverProps), /*#__PURE__*/React.createElement(InputContainer, _extends({
|
|
355
|
+
"aria-expanded": isOpen,
|
|
356
|
+
"aria-haspopup": "listbox",
|
|
357
|
+
"aria-owns": listboxId // a11y linter implements the older 1.0 spec, suppressing to use updated 1.1
|
|
358
|
+
// https://github.com/A11yance/aria-query/issues/43
|
|
359
|
+
// https://github.com/evcohen/eslint-plugin-jsx-a11y/issues/442
|
|
360
|
+
// eslint-disable-next-line jsx-a11y/role-has-required-aria-props
|
|
361
|
+
,
|
|
362
|
+
role: "combobox"
|
|
363
|
+
}, inputContainerProps), /*#__PURE__*/React.createElement(OverriddenInput, _extends({
|
|
364
|
+
inputRef: handleInputRef,
|
|
365
|
+
"aria-activedescendant": isOpen && selectionIndex >= 0 ? activeDescendantId : undefined,
|
|
366
|
+
"aria-autocomplete": "list",
|
|
367
|
+
disabled: disabled,
|
|
368
|
+
error: error,
|
|
369
|
+
name: name,
|
|
370
|
+
id: id,
|
|
371
|
+
onBlur: handleBlur,
|
|
372
|
+
onChange: handleInputChange,
|
|
373
|
+
onFocus: handleFocus,
|
|
374
|
+
onKeyDown: handleKeyDown,
|
|
375
|
+
overrides: inputOverrides,
|
|
376
|
+
positive: positive,
|
|
377
|
+
size: size,
|
|
378
|
+
value: tempValue ? tempValue : value
|
|
379
|
+
}, isOpen ? {
|
|
380
|
+
'aria-controls': listboxId
|
|
381
|
+
} : {}, restInputProps)))));
|
|
389
382
|
}
|
|
390
383
|
|
|
391
384
|
var _default = Combobox;
|
|
@@ -18,11 +18,9 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
18
18
|
var StyledRoot = (0, _styles.styled)('div', {});
|
|
19
19
|
exports.StyledRoot = StyledRoot;
|
|
20
20
|
StyledRoot.displayName = "StyledRoot";
|
|
21
|
-
StyledRoot.displayName = 'StyledRoot';
|
|
22
21
|
var StyledInputContainer = (0, _styles.styled)('div', {});
|
|
23
22
|
exports.StyledInputContainer = StyledInputContainer;
|
|
24
23
|
StyledInputContainer.displayName = "StyledInputContainer";
|
|
25
|
-
StyledInputContainer.displayName = 'StyledInputContainer';
|
|
26
24
|
var StyledListBox = (0, _styles.styled)('ul', function (_ref) {
|
|
27
25
|
var $theme = _ref.$theme,
|
|
28
26
|
$width = _ref.$width;
|
|
@@ -39,7 +37,6 @@ var StyledListBox = (0, _styles.styled)('ul', function (_ref) {
|
|
|
39
37
|
});
|
|
40
38
|
exports.StyledListBox = StyledListBox;
|
|
41
39
|
StyledListBox.displayName = "StyledListBox";
|
|
42
|
-
StyledListBox.displayName = 'StyledListBox';
|
|
43
40
|
|
|
44
41
|
function buildStylesForSize(size, theme) {
|
|
45
42
|
var paddingDir = theme.direction === 'rtl' ? 'paddingRight' : 'paddingLeft';
|
|
@@ -84,5 +81,4 @@ var StyledListItem = (0, _styles.styled)('li', function (_ref2) {
|
|
|
84
81
|
});
|
|
85
82
|
});
|
|
86
83
|
exports.StyledListItem = StyledListItem;
|
|
87
|
-
StyledListItem.displayName = "StyledListItem";
|
|
88
|
-
StyledListItem.displayName = 'StyledListItem';
|
|
84
|
+
StyledListItem.displayName = "StyledListItem";
|
|
@@ -37,7 +37,6 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
37
37
|
|
|
38
38
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
39
39
|
|
|
40
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
41
40
|
function AnchorFilter(props) {
|
|
42
41
|
return /*#__PURE__*/React.createElement("div", null, "not implemented for anchor column");
|
|
43
42
|
}
|
|
@@ -63,9 +62,7 @@ function AnchorCell(props) {
|
|
|
63
62
|
function AnchorColumn(options) {
|
|
64
63
|
return (0, _column.default)({
|
|
65
64
|
kind: _constants.COLUMNS.ANCHOR,
|
|
66
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
67
65
|
buildFilter: function buildFilter(params) {
|
|
68
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
69
66
|
return function (data) {
|
|
70
67
|
return true;
|
|
71
68
|
};
|
|
@@ -264,8 +264,7 @@ function DatetimeFilter(props) {
|
|
|
264
264
|
var _React$useState7 = React.useState([initialState.categoricalOperator]),
|
|
265
265
|
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
266
266
|
categoricalOperator = _React$useState8[0],
|
|
267
|
-
setCategoricalOperator = _React$useState8[1];
|
|
268
|
-
|
|
267
|
+
setCategoricalOperator = _React$useState8[1];
|
|
269
268
|
|
|
270
269
|
var _React$useState9 = React.useState(initialState.rangeDates.length ? initialState.rangeDates : [new Date(datesSorted[0]), new Date(datesSorted[datesSorted.length - 1])]),
|
|
271
270
|
_React$useState10 = _slicedToArray(_React$useState9, 2),
|
|
@@ -306,7 +305,6 @@ function DatetimeFilter(props) {
|
|
|
306
305
|
},
|
|
307
306
|
onApply: function onApply() {
|
|
308
307
|
if (isRange) {
|
|
309
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
310
308
|
var op = rangeOperator[0].id;
|
|
311
309
|
var description = '';
|
|
312
310
|
|
|
@@ -338,7 +336,6 @@ function DatetimeFilter(props) {
|
|
|
338
336
|
}
|
|
339
337
|
|
|
340
338
|
if (isCategorical) {
|
|
341
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
342
339
|
var _op = categoricalOperator[0].id;
|
|
343
340
|
var selection = [];
|
|
344
341
|
var operatorLocaleLabelKey = '';
|
|
@@ -431,8 +428,7 @@ function DatetimeFilter(props) {
|
|
|
431
428
|
value: rangeOperator,
|
|
432
429
|
onChange: function onChange(params) {
|
|
433
430
|
return setRangeOperator(params.value);
|
|
434
|
-
}
|
|
435
|
-
,
|
|
431
|
+
},
|
|
436
432
|
mountNode: mountNode.current,
|
|
437
433
|
options: RANGE_OPERATIONS.map(function (op) {
|
|
438
434
|
return {
|
|
@@ -446,8 +442,7 @@ function DatetimeFilter(props) {
|
|
|
446
442
|
className: css({
|
|
447
443
|
paddingTop: theme.sizing.scale600
|
|
448
444
|
})
|
|
449
|
-
}, (rangeOperator[0].id === _constants.DATETIME_OPERATIONS.RANGE_DATETIME || rangeOperator[0].id === _constants.DATETIME_OPERATIONS.RANGE_DATE) && /*#__PURE__*/React.createElement(_datepicker.Datepicker
|
|
450
|
-
, {
|
|
445
|
+
}, (rangeOperator[0].id === _constants.DATETIME_OPERATIONS.RANGE_DATETIME || rangeOperator[0].id === _constants.DATETIME_OPERATIONS.RANGE_DATE) && /*#__PURE__*/React.createElement(_datepicker.Datepicker, {
|
|
451
446
|
mountNode: mountNode.current,
|
|
452
447
|
value: rangeDates,
|
|
453
448
|
onChange: function onChange(_ref2) {
|
|
@@ -518,8 +513,7 @@ function DatetimeFilter(props) {
|
|
|
518
513
|
label: locale.datatable[op.localeLabelKey],
|
|
519
514
|
id: op.id
|
|
520
515
|
};
|
|
521
|
-
})
|
|
522
|
-
,
|
|
516
|
+
}),
|
|
523
517
|
mountNode: mountNode.current,
|
|
524
518
|
size: "compact",
|
|
525
519
|
clearable: false
|
|
@@ -103,7 +103,6 @@ function validateInput(input) {
|
|
|
103
103
|
var bisect = (0, _d2.bisector)(function (d) {
|
|
104
104
|
return d.x0;
|
|
105
105
|
});
|
|
106
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
107
106
|
var Histogram = /*#__PURE__*/React.memo(function Histogram(_ref) {
|
|
108
107
|
var data = _ref.data,
|
|
109
108
|
lower = _ref.lower,
|
|
@@ -412,7 +411,6 @@ function NumericalFilter(props) {
|
|
|
412
411
|
$thumbIndex = _ref4.$thumbIndex;
|
|
413
412
|
return /*#__PURE__*/React.createElement(React.Fragment, null, $value[$thumbIndex]);
|
|
414
413
|
},
|
|
415
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
416
414
|
TickBar: function TickBar(_ref5) {
|
|
417
415
|
var $min = _ref5.$min,
|
|
418
416
|
$max = _ref5.$max;
|
|
@@ -432,7 +430,9 @@ function NumericalFilter(props) {
|
|
|
432
430
|
}
|
|
433
431
|
},
|
|
434
432
|
InnerTrack: {
|
|
435
|
-
style: function style() {
|
|
433
|
+
style: function style(_ref6) {
|
|
434
|
+
var $theme = _ref6.$theme;
|
|
435
|
+
|
|
436
436
|
if (!isRange) {
|
|
437
437
|
return {
|
|
438
438
|
// For range selection we use the color as is, but when selecting the single value,
|
|
@@ -542,7 +542,7 @@ var defaultOptions = {
|
|
|
542
542
|
sortable: true,
|
|
543
543
|
filterable: true,
|
|
544
544
|
format: _constants.NUMERICAL_FORMATS.DEFAULT,
|
|
545
|
-
highlight: function () {
|
|
545
|
+
highlight: function (n) {
|
|
546
546
|
return false;
|
|
547
547
|
},
|
|
548
548
|
precision: 0
|
|
@@ -37,7 +37,6 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
37
37
|
|
|
38
38
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
39
39
|
|
|
40
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
41
40
|
function StringFilter(props) {
|
|
42
41
|
return /*#__PURE__*/React.createElement("div", null, "not implemented for string column");
|
|
43
42
|
}
|
|
@@ -64,9 +63,7 @@ function StringColumn(options) {
|
|
|
64
63
|
return (0, _column.default)({
|
|
65
64
|
kind: _constants.COLUMNS.STRING,
|
|
66
65
|
cellBlockAlign: options.cellBlockAlign,
|
|
67
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
68
66
|
buildFilter: function buildFilter(params) {
|
|
69
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
70
67
|
return function (data) {
|
|
71
68
|
return true;
|
|
72
69
|
};
|
package/data-table/column.js
CHANGED
|
@@ -11,8 +11,6 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _checkbox = require("../checkbox");
|
|
13
13
|
|
|
14
|
-
var _locale = require("../locale");
|
|
15
|
-
|
|
16
14
|
var _styles = require("../styles");
|
|
17
15
|
|
|
18
16
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -52,10 +50,8 @@ function Column(options) {
|
|
|
52
50
|
maxWidth: options.maxWidth,
|
|
53
51
|
minWidth: options.minWidth,
|
|
54
52
|
// todo(flow->ts) add proper type annotation
|
|
55
|
-
// eslint-disable-next-line
|
|
53
|
+
// eslint-disable-next-line react/display-name
|
|
56
54
|
renderCell: /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
57
|
-
var locale = React.useContext(_locale.LocaleContext);
|
|
58
|
-
|
|
59
55
|
var _useStyletron = (0, _styles.useStyletron)(),
|
|
60
56
|
_useStyletron2 = _slicedToArray(_useStyletron, 2),
|
|
61
57
|
css = _useStyletron2[0],
|
|
@@ -94,7 +90,6 @@ function Column(options) {
|
|
|
94
90
|
paddingRight: theme.sizing.scale300
|
|
95
91
|
})
|
|
96
92
|
}, /*#__PURE__*/React.createElement(_checkbox.Checkbox, {
|
|
97
|
-
"aria-label": locale.datatable.selectRow,
|
|
98
93
|
onChange: props.onSelect,
|
|
99
94
|
checked: props.isSelected,
|
|
100
95
|
overrides: {
|
package/data-table/data-table.js
CHANGED
|
@@ -197,8 +197,7 @@ function Header(props) {
|
|
|
197
197
|
var _React$useState3 = React.useState(0),
|
|
198
198
|
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
199
199
|
endResizePos = _React$useState4[0],
|
|
200
|
-
setEndResizePos = _React$useState4[1];
|
|
201
|
-
|
|
200
|
+
setEndResizePos = _React$useState4[1];
|
|
202
201
|
|
|
203
202
|
var headerCellRef = React.useRef(null);
|
|
204
203
|
var RULER_OFFSET = 2;
|
|
@@ -242,8 +241,7 @@ function Header(props) {
|
|
|
242
241
|
}
|
|
243
242
|
}
|
|
244
243
|
}
|
|
245
|
-
}
|
|
246
|
-
|
|
244
|
+
}
|
|
247
245
|
|
|
248
246
|
function handleMouseUp(event) {
|
|
249
247
|
props.onResize(props.index, endResizePos - startResizePos);
|
|
@@ -806,13 +804,15 @@ function DataTable(_ref2) {
|
|
|
806
804
|
}
|
|
807
805
|
|
|
808
806
|
result.push(gridProps.width - sum(result) - scrollbarWidth);
|
|
809
|
-
resetAfterColumnIndex(0);
|
|
810
807
|
return result;
|
|
811
808
|
}
|
|
812
809
|
}
|
|
813
810
|
|
|
814
811
|
return resizedWidths;
|
|
815
812
|
}, [gridRef, measuredWidths, resizeDeltas, browserScrollbarWidth, rows.length, columns]);
|
|
813
|
+
React.useEffect(function () {
|
|
814
|
+
resetAfterColumnIndex(0);
|
|
815
|
+
}, [normalizedWidths]);
|
|
816
816
|
var isSelectable = batchActions ? !!batchActions.length : false;
|
|
817
817
|
var isSelectedAll = React.useMemo(function () {
|
|
818
818
|
if (!selectedRowIds) {
|
|
@@ -960,8 +960,7 @@ function DataTable(_ref2) {
|
|
|
960
960
|
tableHeight: height,
|
|
961
961
|
widths: normalizedWidths
|
|
962
962
|
}
|
|
963
|
-
}, /*#__PURE__*/React.createElement(_reactWindow.VariableSizeGrid
|
|
964
|
-
, {
|
|
963
|
+
}, /*#__PURE__*/React.createElement(_reactWindow.VariableSizeGrid, {
|
|
965
964
|
ref: setGridRef,
|
|
966
965
|
overscanRowCount: 10,
|
|
967
966
|
overscanColumnCount: 5,
|
|
@@ -98,8 +98,7 @@ function Options(props) {
|
|
|
98
98
|
if ((0, _focusVisible.isFocusVisible)(event)) {
|
|
99
99
|
setFocusVisible(true);
|
|
100
100
|
}
|
|
101
|
-
};
|
|
102
|
-
|
|
101
|
+
};
|
|
103
102
|
|
|
104
103
|
var handleBlur = function handleBlur(event) {
|
|
105
104
|
if (focusVisible !== false) {
|
|
@@ -11,8 +11,6 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _checkbox = require("../checkbox");
|
|
13
13
|
|
|
14
|
-
var _locale = require("../locale");
|
|
15
|
-
|
|
16
14
|
var _styles = require("../styles");
|
|
17
15
|
|
|
18
16
|
var _chevronDown = _interopRequireDefault(require("../icon/chevron-down"));
|
|
@@ -48,8 +46,6 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
48
46
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
49
47
|
|
|
50
48
|
var HeaderCell = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
51
|
-
var locale = React.useContext(_locale.LocaleContext);
|
|
52
|
-
|
|
53
49
|
var _useStyletron = (0, _styles.useStyletron)(),
|
|
54
50
|
_useStyletron2 = _slicedToArray(_useStyletron, 2),
|
|
55
51
|
css = _useStyletron2[0],
|
|
@@ -68,7 +64,7 @@ var HeaderCell = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
68
64
|
}
|
|
69
65
|
};
|
|
70
66
|
|
|
71
|
-
var handleBlur = function handleBlur() {
|
|
67
|
+
var handleBlur = function handleBlur(event) {
|
|
72
68
|
if (focusVisible !== false) {
|
|
73
69
|
setFocusVisible(false);
|
|
74
70
|
}
|
|
@@ -77,64 +73,59 @@ var HeaderCell = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
77
73
|
var backgroundColor = props.isHovered ? theme.colors.backgroundSecondary : theme.colors.backgroundPrimary;
|
|
78
74
|
return /*#__PURE__*/React.createElement("div", {
|
|
79
75
|
ref: ref,
|
|
76
|
+
role: "button",
|
|
77
|
+
tabIndex: 0,
|
|
80
78
|
className: css(_objectSpread(_objectSpread({}, theme.typography.font350), {}, {
|
|
81
79
|
alignItems: 'center',
|
|
82
80
|
backgroundColor: backgroundColor,
|
|
81
|
+
boxSizing: 'border-box',
|
|
83
82
|
color: theme.colors.contentPrimary,
|
|
83
|
+
cursor: props.sortable ? 'pointer' : null,
|
|
84
84
|
display: props.isMeasured ? 'inline-flex' : 'flex',
|
|
85
85
|
flexGrow: 1,
|
|
86
86
|
height: '100%',
|
|
87
|
-
paddingLeft: theme.sizing.scale500
|
|
88
|
-
|
|
87
|
+
paddingLeft: theme.sizing.scale500,
|
|
88
|
+
paddingRight: theme.sizing.scale500,
|
|
89
|
+
flexWrap: 'nowrap',
|
|
90
|
+
whiteSpace: 'nowrap',
|
|
91
|
+
outline: focusVisible ? "3px solid ".concat(theme.colors.accent) : 'none',
|
|
92
|
+
outlineOffset: '-3px'
|
|
93
|
+
})),
|
|
94
|
+
onMouseEnter: props.onMouseEnter,
|
|
95
|
+
onMouseLeave: props.onMouseLeave,
|
|
96
|
+
onKeyUp: function onKeyUp(event) {
|
|
97
|
+
if (event.key === 'Enter') {
|
|
98
|
+
props.onSort(props.index);
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
onClick: function onClick(event) {
|
|
102
|
+
// Avoid column sort if select-all checkbox click.
|
|
103
|
+
if (checkboxRef.current && checkboxRef.current.contains(event.target)) {
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
if (props.sortable) {
|
|
108
|
+
props.onSort(props.index);
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
onFocus: handleFocus,
|
|
112
|
+
onBlur: handleBlur
|
|
89
113
|
}, props.isSelectable && /*#__PURE__*/React.createElement("span", {
|
|
90
114
|
className: css({
|
|
91
115
|
paddingRight: theme.sizing.scale300
|
|
92
116
|
}),
|
|
93
117
|
ref: checkboxRef
|
|
94
118
|
}, /*#__PURE__*/React.createElement(_checkbox.Checkbox, {
|
|
95
|
-
onChange: function onChange() {
|
|
119
|
+
onChange: function onChange(e) {
|
|
96
120
|
if (props.isSelectedAll || props.isSelectedIndeterminate) {
|
|
97
121
|
props.onSelectNone();
|
|
98
122
|
} else {
|
|
99
123
|
props.onSelectAll();
|
|
100
124
|
}
|
|
101
125
|
},
|
|
102
|
-
"aria-label": locale.datatable.selectAllRows,
|
|
103
126
|
checked: props.isSelectedAll || props.isSelectedIndeterminate,
|
|
104
127
|
isIndeterminate: props.isSelectedIndeterminate
|
|
105
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
106
|
-
className: css({
|
|
107
|
-
alignItems: 'center',
|
|
108
|
-
backgroundColor: 'transparent',
|
|
109
|
-
border: 'none',
|
|
110
|
-
boxSizing: 'border-box',
|
|
111
|
-
cursor: props.sortable ? 'pointer' : null,
|
|
112
|
-
display: 'flex',
|
|
113
|
-
flexGrow: 1,
|
|
114
|
-
height: '100%',
|
|
115
|
-
outline: focusVisible ? "3px solid ".concat(theme.colors.accent) : 'none',
|
|
116
|
-
outlineOffset: '-3px',
|
|
117
|
-
// paddingLeft: theme.sizing.scale500,
|
|
118
|
-
paddingRight: theme.sizing.scale500,
|
|
119
|
-
whiteSpace: 'nowrap'
|
|
120
|
-
}),
|
|
121
|
-
onMouseEnter: props.onMouseEnter,
|
|
122
|
-
onMouseLeave: props.onMouseLeave,
|
|
123
|
-
onKeyUp: function onKeyUp(event) {
|
|
124
|
-
if (event.key === 'Enter') {
|
|
125
|
-
props.onSort(props.index);
|
|
126
|
-
}
|
|
127
|
-
},
|
|
128
|
-
onClick: function onClick() {
|
|
129
|
-
if (props.sortable) {
|
|
130
|
-
props.onSort(props.index);
|
|
131
|
-
}
|
|
132
|
-
},
|
|
133
|
-
onFocus: handleFocus,
|
|
134
|
-
onBlur: handleBlur,
|
|
135
|
-
role: "button",
|
|
136
|
-
tabIndex: 0
|
|
137
|
-
}, props.title, /*#__PURE__*/React.createElement("div", {
|
|
128
|
+
})), props.title, /*#__PURE__*/React.createElement("div", {
|
|
138
129
|
className: css({
|
|
139
130
|
position: 'relative',
|
|
140
131
|
width: '100%',
|
|
@@ -153,7 +144,7 @@ var HeaderCell = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
153
144
|
color: props.sortDirection ? theme.colors.contentPrimary : theme.colors.contentSecondary
|
|
154
145
|
}), (props.sortDirection === _constants.SORT_DIRECTIONS.ASC || !props.sortDirection) && /*#__PURE__*/React.createElement(_chevronUp.default, {
|
|
155
146
|
color: props.sortDirection ? theme.colors.contentPrimary : theme.colors.contentSecondary
|
|
156
|
-
}))))
|
|
147
|
+
}))));
|
|
157
148
|
});
|
|
158
149
|
HeaderCell.displayName = 'HeaderCell';
|
|
159
150
|
var _default = HeaderCell;
|