baseui 12.0.0 → 12.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/accordion.js +4 -2
- package/accordion/accordion.js.flow +1 -1
- package/accordion/panel.js +3 -2
- package/accordion/stateful-panel-container.js +1 -0
- package/accordion/styled-components.js +8 -1
- package/accordion/types.d.ts +2 -2
- package/app-nav-bar/app-nav-bar.js +4 -2
- package/app-nav-bar/mobile-menu.js +2 -1
- package/app-nav-bar/styled-components.js +19 -1
- package/app-nav-bar/types.d.ts +2 -2
- package/app-nav-bar/user-menu.js +1 -1
- package/aspect-ratio-box/aspect-ratio-box-body.d.ts +1 -1
- package/aspect-ratio-box/aspect-ratio-box.js +3 -1
- package/aspect-ratio-box/types.d.ts +1 -1
- package/avatar/styled-components.js +4 -1
- package/badge/styled-components.js +16 -11
- package/badge/styled-components.js.flow +4 -4
- package/badge/types.d.ts +2 -2
- package/banner/index.d.ts +1 -1
- package/banner/styled-components.js +25 -12
- package/banner/types.d.ts +15 -15
- package/banner/types.js.flow +13 -11
- package/block/block.js +3 -1
- package/block/styled-components.js +2 -1
- package/block/types.d.ts +3 -4
- package/breadcrumbs/styled-components.js +7 -2
- package/button/styled-components.js +7 -0
- package/button/styled-components.js.flow +2 -0
- package/button/types.d.ts +4 -5
- package/button-group/stateful-button-group.js +1 -0
- package/button-group/stateful-container.js +3 -1
- package/button-group/styled-components.js +2 -1
- package/button-group/types.d.ts +4 -5
- package/card/styled-components.js +11 -4
- package/checkbox/styled-components.js +10 -4
- package/checkbox/styled-components.js.flow +1 -1
- package/checkbox/types.d.ts +36 -37
- package/combobox/combobox.js +78 -71
- package/combobox/styled-components.js +5 -1
- package/combobox/types.d.ts +4 -5
- package/data-table/column-anchor.js +3 -0
- package/data-table/column-datetime.js +10 -4
- package/data-table/column-numerical.js +4 -4
- package/data-table/column-string.js +3 -0
- package/data-table/column.js +6 -1
- package/data-table/data-table.js +6 -3
- package/data-table/filter-menu.js +2 -1
- package/data-table/header-cell.js +43 -34
- package/data-table/locale.d.ts +4 -0
- package/data-table/locale.js +3 -1
- package/data-table/locale.js.flow +5 -0
- package/data-table/measure-column-widths.js +5 -4
- package/data-table/stateful-container.js +2 -1
- package/data-table/stateful-data-table.js +4 -4
- package/data-table/types.d.ts +4 -5
- package/datepicker/calendar-header.js +1 -0
- package/datepicker/calendar.js +2 -0
- package/datepicker/datepicker.js +2 -0
- package/datepicker/day.js +2 -1
- package/datepicker/index.d.ts +1 -1
- package/datepicker/index.js +7 -0
- package/datepicker/index.js.flow +1 -1
- package/datepicker/stateful-calendar.js +7 -3
- package/datepicker/stateful-container.js +2 -0
- package/datepicker/stateful-datepicker.js +9 -4
- package/datepicker/styled-components.js +27 -4
- package/datepicker/types.d.ts +2 -2
- package/datepicker/utils/date-helpers.js +2 -1
- package/datepicker/utils/index.js +2 -1
- package/divider/styled-components.js +4 -3
- package/divider/types.d.ts +1 -1
- package/dnd-list/stateful-list-container.js +1 -0
- package/dnd-list/styled-components.js +7 -0
- package/dnd-list/types.d.ts +2 -2
- package/drawer/constants.js +1 -0
- package/drawer/drawer.js +2 -3
- package/drawer/drawer.js.flow +1 -3
- package/drawer/styled-components.js +9 -2
- package/drawer/types.d.ts +2 -2
- package/es/accordion/accordion.js +3 -3
- package/es/accordion/panel.js +3 -2
- package/es/accordion/stateful-panel-container.js +1 -0
- package/es/accordion/styled-components.js +8 -1
- package/es/app-nav-bar/app-nav-bar.js +6 -2
- package/es/app-nav-bar/mobile-menu.js +4 -2
- package/es/app-nav-bar/styled-components.js +19 -1
- package/es/app-nav-bar/user-menu.js +1 -1
- package/es/aspect-ratio-box/aspect-ratio-box.js +3 -1
- package/es/avatar/styled-components.js +4 -1
- package/es/badge/styled-components.js +11 -6
- package/es/banner/styled-components.js +16 -3
- package/es/block/block.js +3 -1
- package/es/block/styled-components.js +2 -1
- package/es/breadcrumbs/styled-components.js +7 -2
- package/es/button/button.js +8 -0
- package/es/button/styled-components.js +7 -0
- package/es/button-group/stateful-button-group.js +1 -0
- package/es/button-group/stateful-container.js +3 -1
- package/es/button-group/styled-components.js +2 -1
- package/es/card/index.js +2 -1
- package/es/card/styled-components.js +12 -4
- package/es/checkbox/index.js +1 -0
- package/es/checkbox/stateful-checkbox-container.js +3 -0
- package/es/checkbox/styled-components.js +10 -4
- package/es/combobox/combobox.js +76 -69
- package/es/combobox/styled-components.js +5 -1
- package/es/data-table/column-anchor.js +3 -0
- package/es/data-table/column-datetime.js +12 -5
- package/es/data-table/column-numerical.js +5 -4
- package/es/data-table/column-string.js +3 -0
- package/es/data-table/column.js +4 -1
- package/es/data-table/data-table.js +6 -3
- package/es/data-table/filter-menu.js +2 -1
- package/es/data-table/header-cell.js +41 -34
- package/es/data-table/locale.js +3 -1
- package/es/data-table/measure-column-widths.js +5 -4
- package/es/data-table/stateful-container.js +2 -1
- package/es/data-table/stateful-data-table.js +4 -4
- package/es/datepicker/calendar-header.js +1 -0
- package/es/datepicker/calendar.js +2 -0
- package/es/datepicker/datepicker.js +3 -1
- package/es/datepicker/day.js +2 -1
- package/es/datepicker/index.js +1 -1
- package/es/datepicker/stateful-calendar.js +4 -1
- package/es/datepicker/stateful-container.js +2 -0
- package/es/datepicker/stateful-datepicker.js +5 -1
- package/es/datepicker/styled-components.js +26 -3
- package/es/datepicker/utils/date-helpers.js +2 -1
- package/es/datepicker/utils/index.js +2 -1
- package/es/divider/styled-components.js +3 -2
- package/es/dnd-list/stateful-list-container.js +1 -0
- package/es/dnd-list/styled-components.js +7 -0
- package/es/drawer/constants.js +1 -0
- package/es/drawer/drawer.js +2 -5
- package/es/drawer/styled-components.js +9 -2
- package/es/file-uploader/file-uploader.js +82 -78
- package/es/file-uploader/styled-components.js +6 -1
- package/es/flex-grid/flex-grid-item.js +5 -6
- package/es/flex-grid/flex-grid.js +4 -1
- package/es/form-control/styled-components.js +6 -1
- package/es/header-navigation/styled-components.js +4 -1
- package/es/helper/styled-components.js +3 -1
- package/es/helpers/overrides.js +9 -5
- package/es/icon/build-icons.js +0 -2
- package/es/icon/index.js +1 -1
- package/es/icon/omit-dollar-prefixed-keys.js +1 -0
- package/es/icon/styled-components.js +2 -1
- package/es/input/base-input.js +9 -12
- package/es/input/input.js +9 -13
- package/es/input/masked-input.js +9 -2
- package/es/input/stateful-container.js +1 -0
- package/es/input/styled-components.js +18 -7
- package/es/input/utils.js +2 -0
- package/es/layer/layer.js +24 -0
- package/es/layer/layers-manager.js +91 -1
- package/es/layout-grid/styled-components.js +3 -0
- package/es/link/index.js +2 -1
- package/es/link/styled-components.js +2 -1
- package/es/list/list-heading.js +21 -17
- package/es/list/list-item.js +2 -1
- package/es/list/styled-components.js +17 -1
- package/es/locale/es_AR.js +3 -1
- package/es/locale/index.js +2 -1
- package/es/locale/tr_TR.js +3 -1
- package/es/map-marker/constants.js +14 -0
- package/es/map-marker/fixed-marker.js +1 -0
- package/es/map-marker/index.js +2 -1
- package/es/map-marker/location-puck.js +142 -0
- package/es/map-marker/pin-head.js +1 -0
- package/es/map-marker/styled-components.js +86 -2
- package/es/menu/index.js +1 -1
- package/es/menu/menu.js +14 -4
- package/es/menu/option-profile.js +1 -0
- package/es/menu/stateful-container.js +10 -0
- package/es/menu/styled-components.js +32 -2
- package/es/message-card/constants.js +19 -0
- package/es/message-card/index.js +10 -0
- package/es/message-card/message-card.js +114 -0
- package/es/message-card/styled-components.js +108 -0
- package/es/message-card/types.js +1 -0
- package/es/message-card/utils.js +27 -0
- package/es/modal/modal.js +4 -6
- package/es/modal/styled-components.js +8 -1
- package/es/pagination/stateful-container.js +1 -0
- package/es/pagination/stateful-pagination.js +1 -0
- package/es/pagination/styled-components.js +4 -1
- package/es/payment-card/styled-components.js +2 -1
- package/es/phone-input/base-country-picker.js +3 -1
- package/es/phone-input/country-select-dropdown.js +1 -0
- package/es/phone-input/styled-components.js +15 -4
- package/es/pin-code/styled-components.js +4 -1
- package/es/popover/popover.js +9 -11
- package/es/popover/stateful-container.js +4 -1
- package/es/popover/styled-components.js +9 -4
- package/es/progress-bar/progressbar-rounded.js +1 -0
- package/es/progress-bar/styled-components.js +14 -2
- package/es/progress-steps/progress-steps.js +2 -1
- package/es/progress-steps/styled-components.js +20 -12
- package/es/radio/stateful-radiogroup-container.js +3 -0
- package/es/radio/styled-components.js +10 -3
- package/es/rating/emoticon-rating.js +2 -1
- package/es/rating/star-rating.js +2 -1
- package/es/rating/styled-components.js +5 -1
- package/es/select/autosize-input.js +2 -3
- package/es/select/default-props.js +1 -1
- package/es/select/dropdown.js +2 -1
- package/es/select/multi-value.js +2 -1
- package/es/select/select-component.js +10 -10
- package/es/select/single-select.js +2 -2
- package/es/select/stateful-select-container.js +2 -0
- package/es/select/styled-components.js +33 -6
- package/es/select/value.js +3 -4
- package/es/side-navigation/index.js +2 -1
- package/es/side-navigation/nav-item.js +1 -0
- package/es/side-navigation/nav.js +1 -1
- package/es/side-navigation/stateful-container.js +1 -0
- package/es/side-navigation/styled-components.js +8 -2
- package/es/skeleton/styled-components.js +3 -1
- package/es/slider/slider.js +4 -2
- package/es/slider/stateful-slider-container.js +2 -0
- package/es/slider/styled-components.js +9 -0
- package/es/snackbar/snackbar-element.js +1 -0
- package/es/snackbar/styled-components.js +9 -1
- package/es/spinner/styled-components.js +2 -1
- package/es/styles/__mocks__/styled.js +8 -5
- package/es/styles/styled.js +7 -6
- package/es/table/index.js +2 -1
- package/es/table/styled-components.js +13 -1
- package/es/table-grid/styled-components.js +4 -1
- package/es/table-semantic/styled-components.js +20 -3
- package/es/tabs/stateful-tabs.js +1 -0
- package/es/tabs/styled-components.js +5 -1
- package/es/tabs/tabs.js +4 -2
- package/es/tabs-motion/styled-components.js +32 -2
- package/es/tabs-motion/tab.js +1 -0
- package/es/tabs-motion/tabs.js +31 -6
- package/es/tag/styled-components.js +32 -1
- package/es/tag/tag.js +6 -2
- package/es/textarea/styled-components.js +20 -12
- package/es/textarea/textarea.js +13 -15
- 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 +36 -0
- package/es/themes/shared/borders.js +8 -3
- package/es/themes/shared/typography.js +10 -10
- package/es/timezonepicker/timezone-picker.js +5 -1
- package/es/timezonepicker/tzdata.js +1 -1
- package/es/timezonepicker/update-tzdata.js +11 -6
- package/es/toast/styled-components.js +5 -1
- package/es/toast/toaster.js +0 -2
- package/es/tokens/colors.js +24 -0
- package/es/tooltip/styled-components.js +4 -1
- package/es/tree-view/index.js +2 -1
- package/es/tree-view/styled-components.js +7 -1
- package/es/tree-view/tree-view.js +3 -1
- package/es/types/globals.d.js +12 -0
- package/es/utils/deep-merge.js +0 -5
- package/es/utils/deprecated-component.js +1 -0
- package/es/utils/focusVisible.js +4 -2
- package/esm/accordion/accordion.js +4 -4
- package/esm/accordion/panel.js +3 -2
- package/esm/accordion/stateful-panel-container.js +1 -0
- package/esm/accordion/styled-components.js +8 -1
- package/esm/app-nav-bar/app-nav-bar.js +4 -2
- package/esm/app-nav-bar/mobile-menu.js +4 -2
- package/esm/app-nav-bar/styled-components.js +19 -1
- package/esm/app-nav-bar/user-menu.js +1 -1
- package/esm/aspect-ratio-box/aspect-ratio-box.js +3 -1
- package/esm/avatar/styled-components.js +4 -1
- package/esm/badge/styled-components.js +11 -6
- package/esm/banner/styled-components.js +16 -3
- package/esm/block/block.js +3 -1
- package/esm/block/styled-components.js +2 -1
- package/esm/breadcrumbs/styled-components.js +7 -2
- package/esm/button/styled-components.js +7 -0
- package/esm/button-group/stateful-button-group.js +1 -0
- package/esm/button-group/stateful-container.js +3 -1
- package/esm/button-group/styled-components.js +2 -1
- package/esm/card/index.js +2 -1
- package/esm/card/styled-components.js +12 -4
- package/esm/checkbox/index.js +1 -0
- package/esm/checkbox/styled-components.js +10 -4
- package/esm/combobox/combobox.js +78 -71
- package/esm/combobox/styled-components.js +5 -1
- package/esm/data-table/column-anchor.js +3 -0
- package/esm/data-table/column-datetime.js +12 -5
- package/esm/data-table/column-numerical.js +4 -4
- package/esm/data-table/column-string.js +3 -0
- package/esm/data-table/column.js +5 -1
- package/esm/data-table/data-table.js +6 -3
- package/esm/data-table/filter-menu.js +2 -1
- package/esm/data-table/header-cell.js +42 -34
- package/esm/data-table/locale.js +3 -1
- package/esm/data-table/measure-column-widths.js +5 -4
- package/esm/data-table/stateful-container.js +2 -1
- package/esm/data-table/stateful-data-table.js +4 -4
- package/esm/datepicker/calendar-header.js +1 -0
- package/esm/datepicker/calendar.js +2 -0
- package/esm/datepicker/datepicker.js +3 -1
- package/esm/datepicker/day.js +2 -1
- package/esm/datepicker/index.js +1 -1
- package/esm/datepicker/stateful-calendar.js +7 -3
- package/esm/datepicker/stateful-container.js +2 -0
- package/esm/datepicker/stateful-datepicker.js +9 -4
- package/esm/datepicker/styled-components.js +26 -3
- package/esm/datepicker/utils/date-helpers.js +2 -1
- package/esm/datepicker/utils/index.js +2 -1
- package/esm/divider/styled-components.js +3 -2
- package/esm/dnd-list/stateful-list-container.js +1 -0
- package/esm/dnd-list/styled-components.js +7 -0
- package/esm/drawer/constants.js +1 -0
- package/esm/drawer/drawer.js +2 -5
- package/esm/drawer/styled-components.js +9 -2
- package/esm/file-uploader/file-uploader.js +87 -83
- package/esm/file-uploader/styled-components.js +6 -1
- package/esm/flex-grid/flex-grid-item.js +4 -5
- package/esm/flex-grid/flex-grid.js +7 -3
- package/esm/form-control/styled-components.js +6 -1
- package/esm/header-navigation/styled-components.js +4 -1
- package/esm/helper/styled-components.js +3 -1
- package/esm/helpers/overrides.js +9 -5
- package/esm/icon/build-icons.js +0 -2
- package/esm/icon/index.js +1 -1
- package/esm/icon/omit-dollar-prefixed-keys.js +1 -0
- package/esm/icon/styled-components.js +2 -1
- package/esm/input/base-input.js +9 -12
- package/esm/input/input.js +9 -13
- package/esm/input/masked-input.js +5 -2
- package/esm/input/stateful-container.js +1 -0
- package/esm/input/styled-components.js +18 -7
- package/esm/input/utils.js +2 -0
- package/esm/layer/layer.js +24 -0
- package/esm/layer/layers-manager.js +97 -1
- package/esm/layout-grid/styled-components.js +3 -0
- package/esm/link/index.js +2 -1
- package/esm/link/styled-components.js +2 -1
- package/esm/list/list-heading.js +21 -17
- package/esm/list/list-item.js +2 -1
- package/esm/list/styled-components.js +17 -1
- package/esm/locale/es_AR.js +3 -1
- package/esm/locale/index.js +4 -1
- package/esm/locale/tr_TR.js +3 -1
- package/esm/map-marker/constants.js +12 -2
- package/esm/map-marker/index.js +2 -1
- package/esm/map-marker/location-puck.js +199 -0
- package/esm/map-marker/styled-components.js +82 -2
- package/esm/menu/index.js +1 -1
- package/esm/menu/menu.js +16 -4
- package/esm/menu/option-profile.js +1 -0
- package/esm/menu/stateful-container.js +1 -0
- package/esm/menu/styled-components.js +38 -6
- package/esm/message-card/constants.js +20 -0
- package/esm/message-card/index.js +10 -0
- package/esm/message-card/message-card.js +168 -0
- package/esm/message-card/styled-components.js +116 -0
- package/esm/message-card/types.js +1 -0
- package/esm/message-card/utils.js +26 -0
- package/esm/modal/modal.js +4 -6
- package/esm/modal/styled-components.js +8 -1
- package/esm/pagination/stateful-container.js +1 -0
- package/esm/pagination/stateful-pagination.js +1 -0
- package/esm/pagination/styled-components.js +4 -1
- package/esm/payment-card/styled-components.js +2 -1
- package/esm/phone-input/base-country-picker.js +3 -1
- package/esm/phone-input/country-select-dropdown.js +1 -0
- package/esm/phone-input/styled-components.js +20 -8
- package/esm/pin-code/styled-components.js +4 -1
- package/esm/popover/popover.js +9 -11
- package/esm/popover/stateful-container.js +4 -1
- package/esm/popover/styled-components.js +9 -4
- package/esm/progress-bar/progressbar-rounded.js +1 -0
- package/esm/progress-bar/styled-components.js +14 -2
- package/esm/progress-steps/progress-steps.js +2 -1
- package/esm/progress-steps/styled-components.js +28 -19
- package/esm/radio/styled-components.js +10 -3
- package/esm/rating/emoticon-rating.js +2 -1
- package/esm/rating/star-rating.js +2 -1
- package/esm/rating/styled-components.js +5 -1
- package/esm/select/autosize-input.js +2 -3
- package/esm/select/default-props.js +1 -1
- package/esm/select/dropdown.js +2 -1
- package/esm/select/multi-value.js +2 -1
- package/esm/select/select-component.js +10 -10
- package/esm/select/single-select.js +2 -2
- package/esm/select/styled-components.js +33 -6
- package/esm/select/value.js +3 -4
- package/esm/side-navigation/index.js +2 -1
- package/esm/side-navigation/nav-item.js +1 -0
- package/esm/side-navigation/nav.js +1 -1
- package/esm/side-navigation/stateful-container.js +1 -0
- package/esm/side-navigation/styled-components.js +13 -6
- package/esm/skeleton/styled-components.js +3 -1
- package/esm/slider/slider.js +4 -2
- package/esm/slider/styled-components.js +9 -0
- package/esm/snackbar/snackbar-element.js +1 -0
- package/esm/snackbar/styled-components.js +9 -1
- package/esm/spinner/styled-components.js +2 -1
- package/esm/styles/__mocks__/styled.js +8 -5
- package/esm/styles/styled.js +7 -6
- package/esm/table/index.js +2 -1
- package/esm/table/styled-components.js +13 -1
- package/esm/table-grid/styled-components.js +4 -1
- package/esm/table-semantic/styled-components.js +20 -3
- package/esm/tabs/stateful-tabs.js +1 -0
- package/esm/tabs/styled-components.js +5 -1
- package/esm/tabs/tabs.js +4 -2
- package/esm/tabs-motion/styled-components.js +68 -40
- package/esm/tabs-motion/tab.js +1 -0
- package/esm/tabs-motion/tabs.js +87 -58
- package/esm/tag/styled-components.js +5 -1
- package/esm/tag/tag.js +4 -2
- package/esm/textarea/styled-components.js +11 -6
- package/esm/textarea/textarea.js +13 -15
- 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 +36 -0
- package/esm/themes/shared/borders.js +8 -3
- package/esm/themes/shared/typography.js +10 -10
- package/esm/timezonepicker/timezone-picker.js +6 -2
- package/esm/timezonepicker/tzdata.js +1 -1
- package/esm/timezonepicker/update-tzdata.js +51 -39
- package/esm/toast/styled-components.js +5 -1
- package/esm/toast/toaster.js +0 -2
- package/esm/tokens/colors.js +24 -0
- package/esm/tooltip/styled-components.js +4 -1
- package/esm/tree-view/index.js +2 -1
- package/esm/tree-view/styled-components.js +7 -1
- package/esm/tree-view/tree-view.js +3 -1
- package/esm/types/globals.d.js +12 -0
- package/esm/utils/deep-merge.js +0 -5
- package/esm/utils/deprecated-component.js +1 -0
- package/esm/utils/focusVisible.js +4 -2
- package/file-uploader/file-uploader.js +87 -83
- package/file-uploader/styled-components.js +6 -1
- package/flex-grid/flex-grid-item.d.ts +1 -1
- package/flex-grid/flex-grid-item.js +6 -8
- package/flex-grid/flex-grid.js +7 -3
- package/flex-grid/types.d.ts +1 -1
- package/form-control/styled-components.js +6 -1
- package/form-control/types.d.ts +1 -1
- package/header-navigation/styled-components.js +4 -1
- package/heading/types.d.ts +1 -1
- package/helper/styled-components.js +3 -1
- package/helpers/overrides.js +8 -3
- package/helpers/overrides.js.flow +1 -1
- package/helpers/types.d.ts +1 -1
- package/icon/build-icons.js +0 -2
- package/icon/build-icons.js.flow +0 -1
- package/icon/index.d.ts +1 -1
- package/icon/index.js +8 -1
- package/icon/index.js.flow +1 -1
- package/icon/omit-dollar-prefixed-keys.js +1 -0
- package/icon/styled-components.js +2 -1
- package/icon/types.d.ts +1 -1
- package/input/base-input.js +8 -12
- package/input/base-input.js.flow +4 -8
- package/input/input.js +9 -13
- package/input/input.js.flow +5 -9
- package/input/masked-input.js +5 -2
- package/input/stateful-container.js +1 -0
- package/input/styled-components.js +18 -7
- package/input/styled-components.js.flow +9 -2
- package/input/types.d.ts +16 -14
- package/input/types.js.flow +3 -0
- package/input/utils.js +2 -0
- package/layer/layer.js +24 -0
- package/layer/layer.js.flow +25 -0
- package/layer/layers-manager.d.ts +8 -0
- package/layer/layers-manager.js +97 -1
- package/layer/layers-manager.js.flow +84 -1
- package/layer/types.d.ts +23 -2
- package/layer/types.js.flow +22 -1
- package/layout-grid/styled-components.js +3 -0
- package/layout-grid/types.d.ts +2 -2
- package/link/index.js +2 -1
- package/link/styled-components.js +2 -1
- package/list/list-heading.js +21 -17
- package/list/list-item.js +2 -1
- package/list/styled-components.js +17 -1
- package/list/types.d.ts +2 -2
- package/locale/en_US.d.ts +1 -1
- package/locale/es_AR.d.ts +1 -1
- package/locale/es_AR.js +3 -1
- package/locale/index.js +4 -1
- package/locale/tr_TR.d.ts +1 -1
- package/locale/tr_TR.js +3 -1
- package/map-marker/constants.d.ts +14 -0
- package/map-marker/constants.js +16 -3
- package/map-marker/constants.js.flow +17 -0
- package/map-marker/index.d.ts +2 -1
- package/map-marker/index.js +24 -1
- package/map-marker/index.js.flow +5 -3
- package/map-marker/location-puck.d.ts +4 -0
- package/map-marker/location-puck.js +211 -0
- package/map-marker/location-puck.js.flow +18 -0
- package/map-marker/styled-components.d.ts +17 -1
- package/map-marker/styled-components.js +88 -2
- package/map-marker/styled-components.js.flow +58 -0
- package/map-marker/types.d.ts +33 -5
- package/map-marker/types.js.flow +37 -3
- package/menu/index.d.ts +2 -3
- package/menu/index.js +8 -1
- package/menu/index.js.flow +1 -0
- package/menu/menu.js +15 -3
- package/menu/menu.js.flow +11 -1
- package/menu/option-profile.js +1 -0
- package/menu/stateful-container.js +1 -0
- package/menu/styled-components.d.ts +1 -0
- package/menu/styled-components.js +40 -7
- package/menu/styled-components.js.flow +13 -0
- package/menu/types.d.ts +13 -13
- package/menu/types.js.flow +1 -0
- package/message-card/constants.d.ts +12 -0
- package/message-card/constants.js +25 -0
- package/message-card/index.d.ts +4 -0
- package/message-card/index.js +60 -0
- package/message-card/index.js.flow +72 -0
- package/message-card/message-card.d.ts +4 -0
- package/message-card/message-card.js +184 -0
- package/message-card/package.json +4 -0
- package/message-card/styled-components.d.ts +14 -0
- package/message-card/styled-components.js +124 -0
- package/message-card/types.d.ts +27 -0
- package/message-card/types.js +5 -0
- package/message-card/utils.d.ts +1 -0
- package/message-card/utils.js +36 -0
- package/modal/modal.js +4 -4
- package/modal/modal.js.flow +1 -3
- package/modal/styled-components.js +8 -1
- package/modal/types.d.ts +2 -2
- package/package.json +10 -12
- package/pagination/stateful-container.js +1 -0
- package/pagination/stateful-pagination.js +1 -0
- package/pagination/styled-components.js +4 -1
- package/pagination/types.d.ts +2 -2
- package/payment-card/styled-components.js +2 -1
- package/phone-input/base-country-picker.js +3 -1
- package/phone-input/country-select-dropdown.js +1 -0
- package/phone-input/styled-components.js +21 -9
- package/phone-input/types.d.ts +5 -6
- package/pin-code/styled-components.js +4 -1
- package/pin-code/types.d.ts +2 -2
- package/popover/popover.js +9 -11
- package/popover/popover.js.flow +2 -12
- package/popover/stateful-container.js +5 -1
- package/popover/styled-components.js +12 -9
- package/popover/types.d.ts +2 -2
- package/progress-bar/progressbar-rounded.js +1 -0
- package/progress-bar/styled-components.d.ts +4 -1
- package/progress-bar/styled-components.js +14 -2
- package/progress-bar/types.d.ts +2 -2
- package/progress-steps/progress-steps.js +2 -1
- package/progress-steps/styled-components.js +28 -19
- package/radio/styled-components.js +10 -3
- package/radio/types.d.ts +19 -20
- package/rating/emoticon-rating.js +2 -1
- package/rating/star-rating.js +2 -1
- package/rating/styled-components.js +5 -1
- package/select/autosize-input.js +2 -1
- package/select/autosize-input.js.flow +1 -1
- package/select/default-props.js +1 -1
- package/select/dropdown.js +2 -1
- package/select/multi-value.js +1 -0
- package/select/select-component.d.ts +1 -1
- package/select/select-component.js +9 -7
- package/select/select-component.js.flow +1 -1
- package/select/single-select.d.ts +2 -2
- package/select/single-select.js +2 -2
- package/select/styled-components.js +33 -6
- package/select/styled-components.js.flow +25 -5
- package/select/types.d.ts +5 -6
- package/select/value.js +2 -3
- package/side-navigation/nav-item.js +1 -0
- package/side-navigation/nav.js +1 -1
- package/side-navigation/stateful-container.js +1 -0
- package/side-navigation/styled-components.js +13 -6
- package/side-navigation/types.d.ts +4 -4
- package/skeleton/styled-components.js +3 -1
- package/slider/slider.js +4 -2
- package/slider/styled-components.js +9 -0
- package/slider/types.d.ts +1 -1
- package/snackbar/snackbar-element.js +1 -0
- package/snackbar/styled-components.js +9 -1
- package/snackbar/types.d.ts +3 -4
- package/spinner/styled-components.js +2 -1
- package/spinner/types.d.ts +1 -1
- package/styles/__mocks__/styled.js +8 -3
- package/styles/styled.d.ts +1 -1
- package/styles/styled.js +7 -6
- package/table/styled-components.js +13 -1
- package/table/types.d.ts +2 -2
- package/table-grid/styled-components.js +4 -1
- package/table-semantic/styled-components.js +20 -3
- package/table-semantic/types.d.ts +2 -2
- package/tabs/stateful-tabs.js +1 -0
- package/tabs/styled-components.js +5 -1
- package/tabs/tabs.js +4 -2
- package/tabs/types.d.ts +2 -2
- package/tabs-motion/styled-components.d.ts +5 -0
- package/tabs-motion/styled-components.js +71 -41
- package/tabs-motion/styled-components.js.flow +21 -0
- package/tabs-motion/tab.js +1 -0
- package/tabs-motion/tabs.d.ts +1 -1
- package/tabs-motion/tabs.js +87 -57
- package/tabs-motion/tabs.js.flow +69 -38
- package/tabs-motion/types.d.ts +5 -2
- package/tabs-motion/types.js.flow +3 -0
- package/tabs-motion/utils.d.ts +1 -1
- package/tag/styled-components.js +5 -1
- package/tag/tag.js +4 -2
- package/tag/types.d.ts +4 -5
- package/textarea/styled-components.js +11 -6
- package/textarea/textarea.js +13 -15
- package/textarea/textarea.js.flow +5 -9
- package/textarea/types.d.ts +6 -5
- package/textarea/types.js.flow +3 -1
- 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 +36 -0
- package/themes/move-theme/typography.js +36 -0
- package/themes/move-theme/typography.js.flow +12 -0
- package/themes/shared/borders.js +8 -3
- package/themes/shared/borders.js.flow +7 -3
- package/themes/shared/typography.js +10 -10
- package/themes/shared/typography.js.flow +10 -10
- package/themes/types.d.ts +3 -0
- package/themes/types.js.flow +3 -0
- package/timezonepicker/timezone-picker.js +6 -2
- package/timezonepicker/types.d.ts +1 -0
- package/timezonepicker/types.js.flow +1 -0
- package/timezonepicker/tzdata.js +1 -1
- package/timezonepicker/update-tzdata.js +51 -39
- package/toast/styled-components.js +5 -1
- package/toast/toaster.js.flow +1 -1
- package/toast/types.d.ts +2 -2
- package/tokens/colors.js +24 -0
- package/tokens/colors.js.flow +27 -0
- package/tokens/types.d.ts +24 -0
- package/tokens/types.js.flow +27 -0
- package/tooltip/styled-components.js +4 -1
- package/tree-view/styled-components.js +7 -1
- package/tree-view/tree-view.js +3 -1
- package/tree-view/types.d.ts +3 -4
- package/types/globals.d.js +14 -1
- package/utils/deep-merge.js +0 -6
- package/utils/deprecated-component.js +1 -0
- package/utils/focusVisible.d.ts +1 -1
- package/utils/focusVisible.js +4 -2
- package/card/images.d.ts +0 -2
- package/card/images.js +0 -17
- package/card/images.js.flow +0 -18
- package/es/card/images.js +0 -8
- package/esm/card/images.js +0 -8
|
@@ -140,6 +140,7 @@ export var Root = styled('label', function (props) {
|
|
|
140
140
|
};
|
|
141
141
|
});
|
|
142
142
|
Root.displayName = "Root";
|
|
143
|
+
Root.displayName = 'Root';
|
|
143
144
|
export var Checkmark = styled('span', function (props) {
|
|
144
145
|
var $checked = props.$checked,
|
|
145
146
|
$disabled = props.$disabled,
|
|
@@ -152,7 +153,7 @@ export var Checkmark = styled('span', function (props) {
|
|
|
152
153
|
var tickColor = $disabled ? $theme.colors.tickMarkFillDisabled : $error ? $theme.colors.tickMarkFillError : $theme.colors.tickMarkFill;
|
|
153
154
|
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 "));
|
|
154
155
|
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 "));
|
|
155
|
-
var borderRadius = $theme.borders.
|
|
156
|
+
var borderRadius = $theme.borders.checkboxBorderRadius;
|
|
156
157
|
var borderColor = getBorderColor(props);
|
|
157
158
|
return {
|
|
158
159
|
flex: '0 0 auto',
|
|
@@ -195,6 +196,7 @@ export var Checkmark = styled('span', function (props) {
|
|
|
195
196
|
};
|
|
196
197
|
});
|
|
197
198
|
Checkmark.displayName = "Checkmark";
|
|
199
|
+
Checkmark.displayName = 'Checkmark';
|
|
198
200
|
export var Label = styled('div', function (props) {
|
|
199
201
|
var $theme = props.$theme;
|
|
200
202
|
var typography = $theme.typography;
|
|
@@ -205,9 +207,10 @@ export var Label = styled('div', function (props) {
|
|
|
205
207
|
}, typography.LabelMedium), {}, {
|
|
206
208
|
lineHeight: '24px'
|
|
207
209
|
});
|
|
208
|
-
});
|
|
209
|
-
|
|
210
|
+
});
|
|
210
211
|
Label.displayName = "Label";
|
|
212
|
+
Label.displayName = 'Label'; // tricky style for focus event cause display: none doesn't work
|
|
213
|
+
|
|
211
214
|
export var Input = styled('input', {
|
|
212
215
|
opacity: 0,
|
|
213
216
|
width: 0,
|
|
@@ -218,6 +221,7 @@ export var Input = styled('input', {
|
|
|
218
221
|
position: 'absolute'
|
|
219
222
|
});
|
|
220
223
|
Input.displayName = "Input";
|
|
224
|
+
Input.displayName = 'Input';
|
|
221
225
|
export var Toggle = styled('div', function (props) {
|
|
222
226
|
var backgroundColor = props.$theme.colors.toggleFill;
|
|
223
227
|
|
|
@@ -244,6 +248,7 @@ export var Toggle = styled('div', function (props) {
|
|
|
244
248
|
};
|
|
245
249
|
});
|
|
246
250
|
Toggle.displayName = "Toggle";
|
|
251
|
+
Toggle.displayName = 'Toggle';
|
|
247
252
|
export var ToggleTrack = styled('div', function (props) {
|
|
248
253
|
var backgroundColor = props.$theme.colors.toggleTrackFill;
|
|
249
254
|
|
|
@@ -269,4 +274,5 @@ export var ToggleTrack = styled('div', function (props) {
|
|
|
269
274
|
width: props.$theme.sizing.scale1000
|
|
270
275
|
};
|
|
271
276
|
});
|
|
272
|
-
ToggleTrack.displayName = "ToggleTrack";
|
|
277
|
+
ToggleTrack.displayName = "ToggleTrack";
|
|
278
|
+
ToggleTrack.displayName = 'ToggleTrack';
|
package/esm/combobox/combobox.js
CHANGED
|
@@ -201,6 +201,7 @@ 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
|
|
204
205
|
listboxRef.current.contains(event.relatedTarget)) {
|
|
205
206
|
return;
|
|
206
207
|
}
|
|
@@ -293,78 +294,84 @@ function Combobox(props) {
|
|
|
293
294
|
popoverOverrides = _getOverrides12$$over === void 0 ? {} : _getOverrides12$$over,
|
|
294
295
|
restPopoverProps = _objectWithoutProperties(_getOverrides12$, _excluded2);
|
|
295
296
|
|
|
296
|
-
return
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
autoFocus
|
|
303
|
-
|
|
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.
|
|
297
|
+
return (
|
|
298
|
+
/*#__PURE__*/
|
|
299
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
300
|
+
React.createElement(Root, _extends({
|
|
301
|
+
ref: rootRef
|
|
302
|
+
}, 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
|
|
303
|
+
// the ListBox, but we can just disable autoFocus (as ListBox / ListItem should not be focusable) (and input is also not autoFocused).
|
|
304
|
+
// Select Component does the same thing
|
|
308
305
|
, _extends({
|
|
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
|
-
|
|
366
|
-
|
|
367
|
-
|
|
306
|
+
autoFocus: false,
|
|
307
|
+
isOpen: isOpen,
|
|
308
|
+
overrides: popoverOverrides,
|
|
309
|
+
placement: PLACEMENT.bottomLeft,
|
|
310
|
+
onClick: handleInputClick,
|
|
311
|
+
content: /*#__PURE__*/React.createElement(ListBox // TabIndex attribute exists to exclude option clicks from triggering onBlur event actions.
|
|
312
|
+
, _extends({
|
|
313
|
+
tabIndex: "-1",
|
|
314
|
+
id: listboxId // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
315
|
+
,
|
|
316
|
+
ref: listboxRef,
|
|
317
|
+
role: "listbox",
|
|
318
|
+
"aria-label": listBoxLabel,
|
|
319
|
+
$width: listboxWidth
|
|
320
|
+
}, listBoxProps), options.map(function (option, index) {
|
|
321
|
+
var isSelected = selectionIndex === index;
|
|
322
|
+
var ReplacementNode = mapOptionToNode;
|
|
323
|
+
return (
|
|
324
|
+
/*#__PURE__*/
|
|
325
|
+
// List items are not focusable, therefore will never trigger a key event from it.
|
|
326
|
+
// Secondly, key events are handled from the input element.
|
|
327
|
+
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
328
|
+
React.createElement(ListItem, _extends({
|
|
329
|
+
"aria-selected": isSelected,
|
|
330
|
+
id: isSelected ? activeDescendantId : null,
|
|
331
|
+
key: index,
|
|
332
|
+
onClick: function onClick() {
|
|
333
|
+
return handleOptionClick(index);
|
|
334
|
+
} // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
335
|
+
,
|
|
336
|
+
ref: isSelected ? selectedOptionRef : null,
|
|
337
|
+
role: "option",
|
|
338
|
+
$isSelected: isSelected,
|
|
339
|
+
$size: size
|
|
340
|
+
}, listItemProps), ReplacementNode ? /*#__PURE__*/React.createElement(ReplacementNode, {
|
|
341
|
+
isSelected: isSelected,
|
|
342
|
+
option: option
|
|
343
|
+
}) : mapOptionToString(option))
|
|
344
|
+
);
|
|
345
|
+
}))
|
|
346
|
+
}, restPopoverProps), /*#__PURE__*/React.createElement(InputContainer, _extends({
|
|
347
|
+
"aria-expanded": isOpen,
|
|
348
|
+
"aria-haspopup": "listbox",
|
|
349
|
+
"aria-owns": listboxId // a11y linter implements the older 1.0 spec, suppressing to use updated 1.1
|
|
350
|
+
// https://github.com/A11yance/aria-query/issues/43
|
|
351
|
+
// https://github.com/evcohen/eslint-plugin-jsx-a11y/issues/442
|
|
352
|
+
// eslint-disable-next-line jsx-a11y/role-has-required-aria-props
|
|
353
|
+
,
|
|
354
|
+
role: "combobox"
|
|
355
|
+
}, inputContainerProps), /*#__PURE__*/React.createElement(OverriddenInput, _extends({
|
|
356
|
+
inputRef: handleInputRef,
|
|
357
|
+
"aria-activedescendant": isOpen && selectionIndex >= 0 ? activeDescendantId : undefined,
|
|
358
|
+
"aria-autocomplete": "list",
|
|
359
|
+
disabled: disabled,
|
|
360
|
+
error: error,
|
|
361
|
+
name: name,
|
|
362
|
+
id: id,
|
|
363
|
+
onBlur: handleBlur,
|
|
364
|
+
onChange: handleInputChange,
|
|
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
|
+
);
|
|
368
375
|
}
|
|
369
376
|
|
|
370
377
|
export default Combobox;
|
|
@@ -14,8 +14,10 @@ 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';
|
|
17
18
|
export var StyledInputContainer = styled('div', {});
|
|
18
19
|
StyledInputContainer.displayName = "StyledInputContainer";
|
|
20
|
+
StyledInputContainer.displayName = 'StyledInputContainer';
|
|
19
21
|
export var StyledListBox = styled('ul', function (_ref) {
|
|
20
22
|
var $theme = _ref.$theme,
|
|
21
23
|
$width = _ref.$width;
|
|
@@ -31,6 +33,7 @@ export var StyledListBox = styled('ul', function (_ref) {
|
|
|
31
33
|
};
|
|
32
34
|
});
|
|
33
35
|
StyledListBox.displayName = "StyledListBox";
|
|
36
|
+
StyledListBox.displayName = 'StyledListBox';
|
|
34
37
|
|
|
35
38
|
function buildStylesForSize(size, theme) {
|
|
36
39
|
var paddingDir = theme.direction === 'rtl' ? 'paddingRight' : 'paddingLeft';
|
|
@@ -74,4 +77,5 @@ export var StyledListItem = styled('li', function (_ref2) {
|
|
|
74
77
|
}
|
|
75
78
|
});
|
|
76
79
|
});
|
|
77
|
-
StyledListItem.displayName = "StyledListItem";
|
|
80
|
+
StyledListItem.displayName = "StyledListItem";
|
|
81
|
+
StyledListItem.displayName = 'StyledListItem';
|
|
@@ -24,6 +24,7 @@ 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
|
|
27
28
|
function AnchorFilter(props) {
|
|
28
29
|
return /*#__PURE__*/React.createElement("div", null, "not implemented for anchor column");
|
|
29
30
|
}
|
|
@@ -49,7 +50,9 @@ function AnchorCell(props) {
|
|
|
49
50
|
function AnchorColumn(options) {
|
|
50
51
|
return Column({
|
|
51
52
|
kind: COLUMNS.ANCHOR,
|
|
53
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
52
54
|
buildFilter: function buildFilter(params) {
|
|
55
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
53
56
|
return function (data) {
|
|
54
57
|
return true;
|
|
55
58
|
};
|
|
@@ -53,7 +53,8 @@ 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';
|
|
56
|
+
import { LocaleContext } from '../locale'; // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
57
|
+
|
|
57
58
|
var DATE_FORMAT = 'MM-dd-yyyy';
|
|
58
59
|
var MASK = '99-99-9999 - 99-99-9999';
|
|
59
60
|
var TIME_FORMAT = 'HH:mm ss:SS';
|
|
@@ -233,7 +234,8 @@ function DatetimeFilter(props) {
|
|
|
233
234
|
var _React$useState7 = React.useState([initialState.categoricalOperator]),
|
|
234
235
|
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
235
236
|
categoricalOperator = _React$useState8[0],
|
|
236
|
-
setCategoricalOperator = _React$useState8[1];
|
|
237
|
+
setCategoricalOperator = _React$useState8[1]; // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
238
|
+
|
|
237
239
|
|
|
238
240
|
var _React$useState9 = React.useState(initialState.rangeDates.length ? initialState.rangeDates : [new Date(datesSorted[0]), new Date(datesSorted[datesSorted.length - 1])]),
|
|
239
241
|
_React$useState10 = _slicedToArray(_React$useState9, 2),
|
|
@@ -274,6 +276,7 @@ function DatetimeFilter(props) {
|
|
|
274
276
|
},
|
|
275
277
|
onApply: function onApply() {
|
|
276
278
|
if (isRange) {
|
|
279
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
277
280
|
var op = rangeOperator[0].id;
|
|
278
281
|
var description = '';
|
|
279
282
|
|
|
@@ -305,6 +308,7 @@ function DatetimeFilter(props) {
|
|
|
305
308
|
}
|
|
306
309
|
|
|
307
310
|
if (isCategorical) {
|
|
311
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
308
312
|
var _op = categoricalOperator[0].id;
|
|
309
313
|
var selection = [];
|
|
310
314
|
var operatorLocaleLabelKey = '';
|
|
@@ -397,7 +401,8 @@ function DatetimeFilter(props) {
|
|
|
397
401
|
value: rangeOperator,
|
|
398
402
|
onChange: function onChange(params) {
|
|
399
403
|
return setRangeOperator(params.value);
|
|
400
|
-
}
|
|
404
|
+
} // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
405
|
+
,
|
|
401
406
|
mountNode: mountNode.current,
|
|
402
407
|
options: RANGE_OPERATIONS.map(function (op) {
|
|
403
408
|
return {
|
|
@@ -411,7 +416,8 @@ function DatetimeFilter(props) {
|
|
|
411
416
|
className: css({
|
|
412
417
|
paddingTop: theme.sizing.scale600
|
|
413
418
|
})
|
|
414
|
-
}, (rangeOperator[0].id === DATETIME_OPERATIONS.RANGE_DATETIME || rangeOperator[0].id === DATETIME_OPERATIONS.RANGE_DATE) && /*#__PURE__*/React.createElement(Datepicker
|
|
419
|
+
}, (rangeOperator[0].id === DATETIME_OPERATIONS.RANGE_DATETIME || rangeOperator[0].id === DATETIME_OPERATIONS.RANGE_DATE) && /*#__PURE__*/React.createElement(Datepicker // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
420
|
+
, {
|
|
415
421
|
mountNode: mountNode.current,
|
|
416
422
|
value: rangeDates,
|
|
417
423
|
onChange: function onChange(_ref2) {
|
|
@@ -482,7 +488,8 @@ function DatetimeFilter(props) {
|
|
|
482
488
|
label: locale.datatable[op.localeLabelKey],
|
|
483
489
|
id: op.id
|
|
484
490
|
};
|
|
485
|
-
})
|
|
491
|
+
}) // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
492
|
+
,
|
|
486
493
|
mountNode: mountNode.current,
|
|
487
494
|
size: "compact",
|
|
488
495
|
clearable: false
|
|
@@ -84,6 +84,7 @@ 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
|
|
87
88
|
var Histogram = /*#__PURE__*/React.memo(function Histogram(_ref) {
|
|
88
89
|
var data = _ref.data,
|
|
89
90
|
lower = _ref.lower,
|
|
@@ -392,6 +393,7 @@ function NumericalFilter(props) {
|
|
|
392
393
|
$thumbIndex = _ref4.$thumbIndex;
|
|
393
394
|
return /*#__PURE__*/React.createElement(React.Fragment, null, $value[$thumbIndex]);
|
|
394
395
|
},
|
|
396
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
395
397
|
TickBar: function TickBar(_ref5) {
|
|
396
398
|
var $min = _ref5.$min,
|
|
397
399
|
$max = _ref5.$max;
|
|
@@ -411,9 +413,7 @@ function NumericalFilter(props) {
|
|
|
411
413
|
}
|
|
412
414
|
},
|
|
413
415
|
InnerTrack: {
|
|
414
|
-
style: function style(
|
|
415
|
-
var $theme = _ref6.$theme;
|
|
416
|
-
|
|
416
|
+
style: function style() {
|
|
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 () {
|
|
527
527
|
return false;
|
|
528
528
|
},
|
|
529
529
|
precision: 0
|
|
@@ -24,6 +24,7 @@ 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
|
|
27
28
|
function StringFilter(props) {
|
|
28
29
|
return /*#__PURE__*/React.createElement("div", null, "not implemented for string column");
|
|
29
30
|
}
|
|
@@ -50,7 +51,9 @@ function StringColumn(options) {
|
|
|
50
51
|
return Column({
|
|
51
52
|
kind: COLUMNS.STRING,
|
|
52
53
|
cellBlockAlign: options.cellBlockAlign,
|
|
54
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
53
55
|
buildFilter: function buildFilter(params) {
|
|
56
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
54
57
|
return function (data) {
|
|
55
58
|
return true;
|
|
56
59
|
};
|
package/esm/data-table/column.js
CHANGED
|
@@ -24,6 +24,7 @@ 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';
|
|
27
28
|
import { useStyletron } from '../styles';
|
|
28
29
|
|
|
29
30
|
function Column(options) {
|
|
@@ -41,8 +42,10 @@ function Column(options) {
|
|
|
41
42
|
maxWidth: options.maxWidth,
|
|
42
43
|
minWidth: options.minWidth,
|
|
43
44
|
// todo(flow->ts) add proper type annotation
|
|
44
|
-
// eslint-disable-next-line react/display-name
|
|
45
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any,react/display-name
|
|
45
46
|
renderCell: /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
47
|
+
var locale = React.useContext(LocaleContext);
|
|
48
|
+
|
|
46
49
|
var _useStyletron = useStyletron(),
|
|
47
50
|
_useStyletron2 = _slicedToArray(_useStyletron, 2),
|
|
48
51
|
css = _useStyletron2[0],
|
|
@@ -81,6 +84,7 @@ function Column(options) {
|
|
|
81
84
|
paddingRight: theme.sizing.scale300
|
|
82
85
|
})
|
|
83
86
|
}, /*#__PURE__*/React.createElement(Checkbox, {
|
|
87
|
+
"aria-label": locale.datatable.selectRow,
|
|
84
88
|
onChange: props.onSelect,
|
|
85
89
|
checked: props.isSelected,
|
|
86
90
|
overrides: {
|
|
@@ -178,7 +178,8 @@ 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];
|
|
181
|
+
setEndResizePos = _React$useState4[1]; // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
182
|
+
|
|
182
183
|
|
|
183
184
|
var headerCellRef = React.useRef(null);
|
|
184
185
|
var RULER_OFFSET = 2;
|
|
@@ -222,7 +223,8 @@ function Header(props) {
|
|
|
222
223
|
}
|
|
223
224
|
}
|
|
224
225
|
}
|
|
225
|
-
}
|
|
226
|
+
} // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
227
|
+
|
|
226
228
|
|
|
227
229
|
function handleMouseUp(event) {
|
|
228
230
|
props.onResize(props.index, endResizePos - startResizePos);
|
|
@@ -939,7 +941,8 @@ export function DataTable(_ref2) {
|
|
|
939
941
|
tableHeight: height,
|
|
940
942
|
widths: normalizedWidths
|
|
941
943
|
}
|
|
942
|
-
}, /*#__PURE__*/React.createElement(VariableSizeGrid
|
|
944
|
+
}, /*#__PURE__*/React.createElement(VariableSizeGrid // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
945
|
+
, {
|
|
943
946
|
ref: setGridRef,
|
|
944
947
|
overscanRowCount: 10,
|
|
945
948
|
overscanColumnCount: 5,
|
|
@@ -24,12 +24,15 @@ 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';
|
|
27
28
|
import { useStyletron } from '../styles';
|
|
28
29
|
import ChevronDown from '../icon/chevron-down';
|
|
29
30
|
import ChevronUp from '../icon/chevron-up';
|
|
30
31
|
import { SORT_DIRECTIONS } from './constants';
|
|
31
32
|
import { isFocusVisible } from '../utils/focusVisible';
|
|
32
33
|
var HeaderCell = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
34
|
+
var locale = React.useContext(LocaleContext);
|
|
35
|
+
|
|
33
36
|
var _useStyletron = useStyletron(),
|
|
34
37
|
_useStyletron2 = _slicedToArray(_useStyletron, 2),
|
|
35
38
|
css = _useStyletron2[0],
|
|
@@ -48,7 +51,7 @@ var HeaderCell = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
48
51
|
}
|
|
49
52
|
};
|
|
50
53
|
|
|
51
|
-
var handleBlur = function handleBlur(
|
|
54
|
+
var handleBlur = function handleBlur() {
|
|
52
55
|
if (focusVisible !== false) {
|
|
53
56
|
setFocusVisible(false);
|
|
54
57
|
}
|
|
@@ -57,59 +60,64 @@ var HeaderCell = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
57
60
|
var backgroundColor = props.isHovered ? theme.colors.backgroundSecondary : theme.colors.backgroundPrimary;
|
|
58
61
|
return /*#__PURE__*/React.createElement("div", {
|
|
59
62
|
ref: ref,
|
|
60
|
-
role: "button",
|
|
61
|
-
tabIndex: 0,
|
|
62
63
|
className: css(_objectSpread(_objectSpread({}, theme.typography.font350), {}, {
|
|
63
64
|
alignItems: 'center',
|
|
64
65
|
backgroundColor: backgroundColor,
|
|
65
|
-
boxSizing: 'border-box',
|
|
66
66
|
color: theme.colors.contentPrimary,
|
|
67
|
-
cursor: props.sortable ? 'pointer' : null,
|
|
68
67
|
display: props.isMeasured ? 'inline-flex' : 'flex',
|
|
69
68
|
flexGrow: 1,
|
|
70
69
|
height: '100%',
|
|
71
|
-
paddingLeft: theme.sizing.scale500
|
|
72
|
-
|
|
73
|
-
flexWrap: 'nowrap',
|
|
74
|
-
whiteSpace: 'nowrap',
|
|
75
|
-
outline: focusVisible ? "3px solid ".concat(theme.colors.accent) : 'none',
|
|
76
|
-
outlineOffset: '-3px'
|
|
77
|
-
})),
|
|
78
|
-
onMouseEnter: props.onMouseEnter,
|
|
79
|
-
onMouseLeave: props.onMouseLeave,
|
|
80
|
-
onKeyUp: function onKeyUp(event) {
|
|
81
|
-
if (event.key === 'Enter') {
|
|
82
|
-
props.onSort(props.index);
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
onClick: function onClick(event) {
|
|
86
|
-
// Avoid column sort if select-all checkbox click.
|
|
87
|
-
if (checkboxRef.current && checkboxRef.current.contains(event.target)) {
|
|
88
|
-
return;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
if (props.sortable) {
|
|
92
|
-
props.onSort(props.index);
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
onFocus: handleFocus,
|
|
96
|
-
onBlur: handleBlur
|
|
70
|
+
paddingLeft: theme.sizing.scale500
|
|
71
|
+
}))
|
|
97
72
|
}, props.isSelectable && /*#__PURE__*/React.createElement("span", {
|
|
98
73
|
className: css({
|
|
99
74
|
paddingRight: theme.sizing.scale300
|
|
100
75
|
}),
|
|
101
76
|
ref: checkboxRef
|
|
102
77
|
}, /*#__PURE__*/React.createElement(Checkbox, {
|
|
103
|
-
onChange: function onChange(
|
|
78
|
+
onChange: function onChange() {
|
|
104
79
|
if (props.isSelectedAll || props.isSelectedIndeterminate) {
|
|
105
80
|
props.onSelectNone();
|
|
106
81
|
} else {
|
|
107
82
|
props.onSelectAll();
|
|
108
83
|
}
|
|
109
84
|
},
|
|
85
|
+
"aria-label": locale.datatable.selectAllRows,
|
|
110
86
|
checked: props.isSelectedAll || props.isSelectedIndeterminate,
|
|
111
87
|
isIndeterminate: props.isSelectedIndeterminate
|
|
112
|
-
})),
|
|
88
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
89
|
+
className: css({
|
|
90
|
+
alignItems: 'center',
|
|
91
|
+
backgroundColor: 'transparent',
|
|
92
|
+
border: 'none',
|
|
93
|
+
boxSizing: 'border-box',
|
|
94
|
+
cursor: props.sortable ? 'pointer' : null,
|
|
95
|
+
display: 'flex',
|
|
96
|
+
flexGrow: 1,
|
|
97
|
+
height: '100%',
|
|
98
|
+
outline: focusVisible ? "3px solid ".concat(theme.colors.accent) : 'none',
|
|
99
|
+
outlineOffset: '-3px',
|
|
100
|
+
// paddingLeft: theme.sizing.scale500,
|
|
101
|
+
paddingRight: theme.sizing.scale500,
|
|
102
|
+
whiteSpace: 'nowrap'
|
|
103
|
+
}),
|
|
104
|
+
onMouseEnter: props.onMouseEnter,
|
|
105
|
+
onMouseLeave: props.onMouseLeave,
|
|
106
|
+
onKeyUp: function onKeyUp(event) {
|
|
107
|
+
if (event.key === 'Enter') {
|
|
108
|
+
props.onSort(props.index);
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
onClick: function onClick() {
|
|
112
|
+
if (props.sortable) {
|
|
113
|
+
props.onSort(props.index);
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
onFocus: handleFocus,
|
|
117
|
+
onBlur: handleBlur,
|
|
118
|
+
role: "button",
|
|
119
|
+
tabIndex: 0
|
|
120
|
+
}, props.title, /*#__PURE__*/React.createElement("div", {
|
|
113
121
|
className: css({
|
|
114
122
|
position: 'relative',
|
|
115
123
|
width: '100%',
|
|
@@ -128,7 +136,7 @@ var HeaderCell = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
128
136
|
color: props.sortDirection ? theme.colors.contentPrimary : theme.colors.contentSecondary
|
|
129
137
|
}), (props.sortDirection === SORT_DIRECTIONS.ASC || !props.sortDirection) && /*#__PURE__*/React.createElement(ChevronUp, {
|
|
130
138
|
color: props.sortDirection ? theme.colors.contentPrimary : theme.colors.contentSecondary
|
|
131
|
-
}))));
|
|
139
|
+
})))));
|
|
132
140
|
});
|
|
133
141
|
HeaderCell.displayName = 'HeaderCell';
|
|
134
142
|
export default HeaderCell;
|
package/esm/data-table/locale.js
CHANGED
|
@@ -37,6 +37,8 @@ var locale = {
|
|
|
37
37
|
booleanFilterTrue: 'true',
|
|
38
38
|
booleanFilterFalse: 'false',
|
|
39
39
|
booleanColumnTrueShort: 'T',
|
|
40
|
-
booleanColumnFalseShort: 'F'
|
|
40
|
+
booleanColumnFalseShort: 'F',
|
|
41
|
+
selectRow: 'Select row',
|
|
42
|
+
selectAllRows: 'Select all rows'
|
|
41
43
|
};
|
|
42
44
|
export default locale;
|
|
@@ -40,7 +40,7 @@ function MeasureColumn(_ref) {
|
|
|
40
40
|
onLayout(columnIndex, ref.current.getBoundingClientRect());
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
}, []);
|
|
43
|
+
}, [onLayout]);
|
|
44
44
|
return /*#__PURE__*/React.createElement("div", {
|
|
45
45
|
ref: ref,
|
|
46
46
|
className: css({
|
|
@@ -57,7 +57,8 @@ function MeasureColumn(_ref) {
|
|
|
57
57
|
onMouseEnter: function onMouseEnter() {},
|
|
58
58
|
onMouseLeave: function onMouseLeave() {},
|
|
59
59
|
onSelectAll: function onSelectAll() {},
|
|
60
|
-
onSelectNone: function onSelectNone() {}
|
|
60
|
+
onSelectNone: function onSelectNone() {} // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
61
|
+
,
|
|
61
62
|
onSort: function onSort(i) {},
|
|
62
63
|
sortable: column.sortable,
|
|
63
64
|
sortDirection: null,
|
|
@@ -121,7 +122,7 @@ export default function MeasureColumnWidths(_ref2) {
|
|
|
121
122
|
|
|
122
123
|
var widthMap = React.useMemo(function () {
|
|
123
124
|
return new Map();
|
|
124
|
-
}, []);
|
|
125
|
+
}, [rows]);
|
|
125
126
|
var sampleSize = rows.length < MAX_SAMPLE_SIZE ? rows.length : MAX_SAMPLE_SIZE;
|
|
126
127
|
var finishedMeasurementCount = (sampleSize + 1) * columns.length;
|
|
127
128
|
var sampleIndexes = React.useMemo(function () {
|
|
@@ -140,7 +141,7 @@ export default function MeasureColumnWidths(_ref2) {
|
|
|
140
141
|
widthMap.size === Math.floor(columns.length / 4)) {
|
|
141
142
|
onWidthsChange(Array.from(widthMap.values()));
|
|
142
143
|
}
|
|
143
|
-
}, [columns, finishedMeasurementCount, onWidthsChange]);
|
|
144
|
+
}, [columns, rows, finishedMeasurementCount, onWidthsChange]);
|
|
144
145
|
var hiddenStyle = css({
|
|
145
146
|
position: 'absolute',
|
|
146
147
|
overflow: 'hidden',
|
|
@@ -174,6 +174,7 @@ export var StatefulContainer = function StatefulContainer(props) {
|
|
|
174
174
|
selectedRowIds: selectedRowIds,
|
|
175
175
|
sortIndex: sortIndex,
|
|
176
176
|
sortDirection: sortDirection,
|
|
177
|
-
textQuery: textQuery
|
|
177
|
+
textQuery: textQuery // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
178
|
+
|
|
178
179
|
});
|
|
179
180
|
};
|