baseui 12.0.0 → 12.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/accordion.js +4 -2
- package/accordion/accordion.js.flow +1 -1
- package/accordion/panel.js +3 -2
- package/accordion/stateful-panel-container.js +1 -0
- package/accordion/styled-components.js +8 -1
- package/accordion/types.d.ts +2 -2
- package/app-nav-bar/app-nav-bar.js +4 -2
- package/app-nav-bar/mobile-menu.js +2 -1
- package/app-nav-bar/styled-components.js +19 -1
- package/app-nav-bar/types.d.ts +2 -2
- package/app-nav-bar/user-menu.js +1 -1
- package/aspect-ratio-box/aspect-ratio-box-body.d.ts +1 -1
- package/aspect-ratio-box/aspect-ratio-box.js +3 -1
- package/aspect-ratio-box/types.d.ts +1 -1
- package/avatar/styled-components.js +4 -1
- package/badge/styled-components.js +16 -11
- package/badge/styled-components.js.flow +4 -4
- package/badge/types.d.ts +2 -2
- package/banner/index.d.ts +1 -1
- package/banner/styled-components.js +25 -12
- package/banner/types.d.ts +15 -15
- package/banner/types.js.flow +13 -11
- package/block/block.js +3 -1
- package/block/styled-components.js +2 -1
- package/block/types.d.ts +3 -4
- package/breadcrumbs/styled-components.js +5 -1
- package/button/styled-components.js +7 -0
- package/button/styled-components.js.flow +2 -0
- package/button/types.d.ts +4 -5
- package/button-group/stateful-button-group.js +1 -0
- package/button-group/stateful-container.js +3 -1
- package/button-group/styled-components.js +2 -1
- package/button-group/types.d.ts +4 -5
- package/card/styled-components.js +11 -4
- package/checkbox/styled-components.js +10 -4
- package/checkbox/styled-components.js.flow +1 -1
- package/checkbox/types.d.ts +36 -37
- package/combobox/combobox.js +78 -71
- package/combobox/styled-components.js +5 -1
- package/combobox/types.d.ts +4 -5
- package/data-table/column-anchor.js +3 -0
- package/data-table/column-datetime.js +10 -4
- package/data-table/column-numerical.js +4 -4
- package/data-table/column-string.js +3 -0
- package/data-table/column.js +6 -1
- package/data-table/data-table.js +6 -3
- package/data-table/filter-menu.js +2 -1
- package/data-table/header-cell.js +43 -34
- package/data-table/locale.d.ts +4 -0
- package/data-table/locale.js +3 -1
- package/data-table/locale.js.flow +5 -0
- package/data-table/measure-column-widths.js +5 -4
- package/data-table/stateful-container.js +2 -1
- package/data-table/stateful-data-table.js +4 -4
- package/data-table/types.d.ts +4 -5
- package/datepicker/calendar-header.js +1 -0
- package/datepicker/calendar.js +2 -0
- package/datepicker/datepicker.js +2 -0
- package/datepicker/day.js +2 -1
- package/datepicker/index.d.ts +1 -1
- package/datepicker/index.js +7 -0
- package/datepicker/index.js.flow +1 -1
- package/datepicker/stateful-calendar.js +7 -3
- package/datepicker/stateful-container.js +2 -0
- package/datepicker/stateful-datepicker.js +9 -4
- package/datepicker/styled-components.js +27 -4
- package/datepicker/types.d.ts +2 -2
- package/datepicker/utils/date-helpers.js +2 -1
- package/datepicker/utils/index.js +2 -1
- package/divider/styled-components.js +4 -3
- package/divider/types.d.ts +1 -1
- package/dnd-list/stateful-list-container.js +1 -0
- package/dnd-list/styled-components.js +7 -0
- package/dnd-list/types.d.ts +2 -2
- package/drawer/constants.js +1 -0
- package/drawer/drawer.js +2 -3
- package/drawer/drawer.js.flow +1 -3
- package/drawer/styled-components.js +9 -2
- package/drawer/types.d.ts +2 -2
- package/es/accordion/accordion.js +3 -3
- package/es/accordion/panel.js +3 -2
- package/es/accordion/stateful-panel-container.js +1 -0
- package/es/accordion/styled-components.js +8 -1
- package/es/app-nav-bar/app-nav-bar.js +6 -2
- package/es/app-nav-bar/mobile-menu.js +4 -2
- package/es/app-nav-bar/styled-components.js +19 -1
- package/es/app-nav-bar/user-menu.js +1 -1
- package/es/aspect-ratio-box/aspect-ratio-box.js +3 -1
- package/es/avatar/styled-components.js +4 -1
- package/es/badge/styled-components.js +11 -6
- package/es/banner/styled-components.js +16 -3
- package/es/block/block.js +3 -1
- package/es/block/styled-components.js +2 -1
- package/es/breadcrumbs/styled-components.js +5 -1
- package/es/button/button.js +8 -0
- package/es/button/styled-components.js +7 -0
- package/es/button-group/stateful-button-group.js +1 -0
- package/es/button-group/stateful-container.js +3 -1
- package/es/button-group/styled-components.js +2 -1
- package/es/card/index.js +2 -1
- package/es/card/styled-components.js +12 -4
- package/es/checkbox/index.js +1 -0
- package/es/checkbox/stateful-checkbox-container.js +3 -0
- package/es/checkbox/styled-components.js +10 -4
- package/es/combobox/combobox.js +76 -69
- package/es/combobox/styled-components.js +5 -1
- package/es/data-table/column-anchor.js +3 -0
- package/es/data-table/column-datetime.js +12 -5
- package/es/data-table/column-numerical.js +5 -4
- package/es/data-table/column-string.js +3 -0
- package/es/data-table/column.js +4 -1
- package/es/data-table/data-table.js +6 -3
- package/es/data-table/filter-menu.js +2 -1
- package/es/data-table/header-cell.js +41 -34
- package/es/data-table/locale.js +3 -1
- package/es/data-table/measure-column-widths.js +5 -4
- package/es/data-table/stateful-container.js +2 -1
- package/es/data-table/stateful-data-table.js +4 -4
- package/es/datepicker/calendar-header.js +1 -0
- package/es/datepicker/calendar.js +2 -0
- package/es/datepicker/datepicker.js +3 -1
- package/es/datepicker/day.js +2 -1
- package/es/datepicker/index.js +1 -1
- package/es/datepicker/stateful-calendar.js +4 -1
- package/es/datepicker/stateful-container.js +2 -0
- package/es/datepicker/stateful-datepicker.js +5 -1
- package/es/datepicker/styled-components.js +26 -3
- package/es/datepicker/utils/date-helpers.js +2 -1
- package/es/datepicker/utils/index.js +2 -1
- package/es/divider/styled-components.js +3 -2
- package/es/dnd-list/stateful-list-container.js +1 -0
- package/es/dnd-list/styled-components.js +7 -0
- package/es/drawer/constants.js +1 -0
- package/es/drawer/drawer.js +2 -5
- package/es/drawer/styled-components.js +9 -2
- package/es/file-uploader/styled-components.js +6 -1
- package/es/flex-grid/flex-grid-item.js +5 -6
- package/es/flex-grid/flex-grid.js +4 -1
- package/es/form-control/styled-components.js +6 -1
- package/es/header-navigation/styled-components.js +4 -1
- package/es/helper/styled-components.js +3 -1
- package/es/helpers/overrides.js +9 -5
- package/es/icon/build-icons.js +0 -2
- package/es/icon/index.js +1 -1
- package/es/icon/omit-dollar-prefixed-keys.js +1 -0
- package/es/icon/styled-components.js +2 -1
- package/es/input/base-input.js +1 -0
- package/es/input/masked-input.js +9 -2
- package/es/input/stateful-container.js +1 -0
- package/es/input/styled-components.js +18 -7
- package/es/input/utils.js +2 -0
- package/es/layer/layer.js +24 -0
- package/es/layer/layers-manager.js +91 -1
- package/es/layout-grid/styled-components.js +3 -0
- package/es/link/index.js +2 -1
- package/es/link/styled-components.js +2 -1
- package/es/list/list-heading.js +21 -17
- package/es/list/list-item.js +2 -1
- package/es/list/styled-components.js +17 -1
- package/es/locale/es_AR.js +3 -1
- package/es/locale/index.js +2 -1
- package/es/locale/tr_TR.js +3 -1
- package/es/map-marker/constants.js +14 -0
- package/es/map-marker/fixed-marker.js +1 -0
- package/es/map-marker/index.js +2 -1
- package/es/map-marker/location-puck.js +142 -0
- package/es/map-marker/pin-head.js +1 -0
- package/es/map-marker/styled-components.js +86 -2
- package/es/menu/index.js +1 -1
- package/es/menu/menu.js +14 -4
- package/es/menu/option-profile.js +1 -0
- package/es/menu/stateful-container.js +10 -0
- package/es/menu/styled-components.js +32 -2
- package/es/message-card/constants.js +19 -0
- package/es/message-card/index.js +10 -0
- package/es/message-card/message-card.js +114 -0
- package/es/message-card/styled-components.js +108 -0
- package/es/message-card/types.js +1 -0
- package/es/message-card/utils.js +27 -0
- package/es/modal/modal.js +4 -6
- package/es/modal/styled-components.js +8 -1
- package/es/pagination/stateful-container.js +1 -0
- package/es/pagination/stateful-pagination.js +1 -0
- package/es/pagination/styled-components.js +4 -1
- package/es/payment-card/styled-components.js +2 -1
- package/es/phone-input/base-country-picker.js +3 -1
- package/es/phone-input/country-select-dropdown.js +1 -0
- package/es/phone-input/styled-components.js +15 -4
- package/es/pin-code/styled-components.js +4 -1
- package/es/popover/popover.js +9 -12
- package/es/popover/styled-components.js +9 -4
- package/es/progress-bar/progressbar-rounded.js +1 -0
- package/es/progress-bar/styled-components.js +14 -2
- package/es/progress-steps/progress-steps.js +2 -1
- package/es/progress-steps/styled-components.js +20 -12
- package/es/radio/stateful-radiogroup-container.js +3 -0
- package/es/radio/styled-components.js +10 -3
- package/es/rating/emoticon-rating.js +2 -1
- package/es/rating/star-rating.js +2 -1
- package/es/rating/styled-components.js +5 -1
- package/es/select/autosize-input.js +2 -3
- package/es/select/default-props.js +1 -1
- package/es/select/dropdown.js +2 -1
- package/es/select/multi-value.js +2 -1
- package/es/select/select-component.js +10 -10
- package/es/select/single-select.js +2 -2
- package/es/select/stateful-select-container.js +2 -0
- package/es/select/styled-components.js +33 -6
- package/es/select/value.js +3 -4
- package/es/side-navigation/index.js +2 -1
- package/es/side-navigation/nav-item.js +1 -0
- package/es/side-navigation/nav.js +1 -1
- package/es/side-navigation/stateful-container.js +1 -0
- package/es/side-navigation/styled-components.js +8 -2
- package/es/skeleton/styled-components.js +3 -1
- package/es/slider/slider.js +4 -2
- package/es/slider/stateful-slider-container.js +2 -0
- package/es/slider/styled-components.js +9 -0
- package/es/snackbar/snackbar-element.js +1 -0
- package/es/snackbar/styled-components.js +9 -1
- package/es/spinner/styled-components.js +2 -1
- package/es/styles/__mocks__/styled.js +8 -5
- package/es/styles/styled.js +7 -6
- package/es/table/index.js +2 -1
- package/es/table/styled-components.js +13 -1
- package/es/table-grid/styled-components.js +4 -1
- package/es/table-semantic/styled-components.js +20 -3
- package/es/tabs/stateful-tabs.js +1 -0
- package/es/tabs/styled-components.js +5 -1
- package/es/tabs/tabs.js +4 -2
- package/es/tabs-motion/styled-components.js +32 -2
- package/es/tabs-motion/tab.js +1 -0
- package/es/tabs-motion/tabs.js +31 -6
- package/es/tag/styled-components.js +32 -1
- package/es/tag/tag.js +6 -2
- package/es/textarea/styled-components.js +20 -12
- package/es/textarea/textarea.js +4 -2
- package/es/themes/move-theme/typography.js +36 -0
- package/es/themes/shared/borders.js +8 -3
- package/es/themes/shared/typography.js +10 -10
- package/es/timezonepicker/timezone-picker.js +5 -1
- package/es/timezonepicker/tzdata.js +1 -1
- package/es/toast/styled-components.js +5 -1
- package/es/toast/toaster.js +0 -2
- package/es/tokens/colors.js +24 -0
- package/es/tooltip/styled-components.js +4 -1
- package/es/tree-view/index.js +2 -1
- package/es/tree-view/styled-components.js +7 -1
- package/es/tree-view/tree-view.js +3 -1
- package/es/types/globals.d.js +12 -0
- package/es/utils/deep-merge.js +0 -5
- package/es/utils/deprecated-component.js +1 -0
- package/es/utils/focusVisible.js +4 -2
- package/esm/accordion/accordion.js +4 -4
- package/esm/accordion/panel.js +3 -2
- package/esm/accordion/stateful-panel-container.js +1 -0
- package/esm/accordion/styled-components.js +8 -1
- package/esm/app-nav-bar/app-nav-bar.js +4 -2
- package/esm/app-nav-bar/mobile-menu.js +4 -2
- package/esm/app-nav-bar/styled-components.js +19 -1
- package/esm/app-nav-bar/user-menu.js +1 -1
- package/esm/aspect-ratio-box/aspect-ratio-box.js +3 -1
- package/esm/avatar/styled-components.js +4 -1
- package/esm/badge/styled-components.js +11 -6
- package/esm/banner/styled-components.js +16 -3
- package/esm/block/block.js +3 -1
- package/esm/block/styled-components.js +2 -1
- package/esm/breadcrumbs/styled-components.js +5 -1
- package/esm/button/styled-components.js +7 -0
- package/esm/button-group/stateful-button-group.js +1 -0
- package/esm/button-group/stateful-container.js +3 -1
- package/esm/button-group/styled-components.js +2 -1
- package/esm/card/index.js +2 -1
- package/esm/card/styled-components.js +12 -4
- package/esm/checkbox/index.js +1 -0
- package/esm/checkbox/styled-components.js +10 -4
- package/esm/combobox/combobox.js +78 -71
- package/esm/combobox/styled-components.js +5 -1
- package/esm/data-table/column-anchor.js +3 -0
- package/esm/data-table/column-datetime.js +12 -5
- package/esm/data-table/column-numerical.js +4 -4
- package/esm/data-table/column-string.js +3 -0
- package/esm/data-table/column.js +5 -1
- package/esm/data-table/data-table.js +6 -3
- package/esm/data-table/filter-menu.js +2 -1
- package/esm/data-table/header-cell.js +42 -34
- package/esm/data-table/locale.js +3 -1
- package/esm/data-table/measure-column-widths.js +5 -4
- package/esm/data-table/stateful-container.js +2 -1
- package/esm/data-table/stateful-data-table.js +4 -4
- package/esm/datepicker/calendar-header.js +1 -0
- package/esm/datepicker/calendar.js +2 -0
- package/esm/datepicker/datepicker.js +3 -1
- package/esm/datepicker/day.js +2 -1
- package/esm/datepicker/index.js +1 -1
- package/esm/datepicker/stateful-calendar.js +7 -3
- package/esm/datepicker/stateful-container.js +2 -0
- package/esm/datepicker/stateful-datepicker.js +9 -4
- package/esm/datepicker/styled-components.js +26 -3
- package/esm/datepicker/utils/date-helpers.js +2 -1
- package/esm/datepicker/utils/index.js +2 -1
- package/esm/divider/styled-components.js +3 -2
- package/esm/dnd-list/stateful-list-container.js +1 -0
- package/esm/dnd-list/styled-components.js +7 -0
- package/esm/drawer/constants.js +1 -0
- package/esm/drawer/drawer.js +2 -5
- package/esm/drawer/styled-components.js +9 -2
- package/esm/file-uploader/styled-components.js +6 -1
- package/esm/flex-grid/flex-grid-item.js +4 -5
- package/esm/flex-grid/flex-grid.js +7 -3
- package/esm/form-control/styled-components.js +6 -1
- package/esm/header-navigation/styled-components.js +4 -1
- package/esm/helper/styled-components.js +3 -1
- package/esm/helpers/overrides.js +9 -5
- package/esm/icon/build-icons.js +0 -2
- package/esm/icon/index.js +1 -1
- package/esm/icon/omit-dollar-prefixed-keys.js +1 -0
- package/esm/icon/styled-components.js +2 -1
- package/esm/input/base-input.js +1 -0
- package/esm/input/masked-input.js +5 -2
- package/esm/input/stateful-container.js +1 -0
- package/esm/input/styled-components.js +18 -7
- package/esm/input/utils.js +2 -0
- package/esm/layer/layer.js +24 -0
- package/esm/layer/layers-manager.js +97 -1
- package/esm/layout-grid/styled-components.js +3 -0
- package/esm/link/index.js +2 -1
- package/esm/link/styled-components.js +2 -1
- package/esm/list/list-heading.js +21 -17
- package/esm/list/list-item.js +2 -1
- package/esm/list/styled-components.js +17 -1
- package/esm/locale/es_AR.js +3 -1
- package/esm/locale/index.js +4 -1
- package/esm/locale/tr_TR.js +3 -1
- package/esm/map-marker/constants.js +12 -2
- package/esm/map-marker/index.js +2 -1
- package/esm/map-marker/location-puck.js +199 -0
- package/esm/map-marker/styled-components.js +82 -2
- package/esm/menu/index.js +1 -1
- package/esm/menu/menu.js +16 -4
- package/esm/menu/option-profile.js +1 -0
- package/esm/menu/stateful-container.js +1 -0
- package/esm/menu/styled-components.js +38 -6
- package/esm/message-card/constants.js +20 -0
- package/esm/message-card/index.js +10 -0
- package/esm/message-card/message-card.js +168 -0
- package/esm/message-card/styled-components.js +116 -0
- package/esm/message-card/types.js +1 -0
- package/esm/message-card/utils.js +26 -0
- package/esm/modal/modal.js +4 -6
- package/esm/modal/styled-components.js +8 -1
- package/esm/pagination/stateful-container.js +1 -0
- package/esm/pagination/stateful-pagination.js +1 -0
- package/esm/pagination/styled-components.js +4 -1
- package/esm/payment-card/styled-components.js +2 -1
- package/esm/phone-input/base-country-picker.js +3 -1
- package/esm/phone-input/country-select-dropdown.js +1 -0
- package/esm/phone-input/styled-components.js +20 -8
- package/esm/pin-code/styled-components.js +4 -1
- package/esm/popover/popover.js +9 -12
- package/esm/popover/styled-components.js +9 -4
- package/esm/progress-bar/progressbar-rounded.js +1 -0
- package/esm/progress-bar/styled-components.js +14 -2
- package/esm/progress-steps/progress-steps.js +2 -1
- package/esm/progress-steps/styled-components.js +28 -19
- package/esm/radio/styled-components.js +10 -3
- package/esm/rating/emoticon-rating.js +2 -1
- package/esm/rating/star-rating.js +2 -1
- package/esm/rating/styled-components.js +5 -1
- package/esm/select/autosize-input.js +2 -3
- package/esm/select/default-props.js +1 -1
- package/esm/select/dropdown.js +2 -1
- package/esm/select/multi-value.js +2 -1
- package/esm/select/select-component.js +10 -10
- package/esm/select/single-select.js +2 -2
- package/esm/select/styled-components.js +33 -6
- package/esm/select/value.js +3 -4
- package/esm/side-navigation/index.js +2 -1
- package/esm/side-navigation/nav-item.js +1 -0
- package/esm/side-navigation/nav.js +1 -1
- package/esm/side-navigation/stateful-container.js +1 -0
- package/esm/side-navigation/styled-components.js +13 -6
- package/esm/skeleton/styled-components.js +3 -1
- package/esm/slider/slider.js +4 -2
- package/esm/slider/styled-components.js +9 -0
- package/esm/snackbar/snackbar-element.js +1 -0
- package/esm/snackbar/styled-components.js +9 -1
- package/esm/spinner/styled-components.js +2 -1
- package/esm/styles/__mocks__/styled.js +8 -5
- package/esm/styles/styled.js +7 -6
- package/esm/table/index.js +2 -1
- package/esm/table/styled-components.js +13 -1
- package/esm/table-grid/styled-components.js +4 -1
- package/esm/table-semantic/styled-components.js +20 -3
- package/esm/tabs/stateful-tabs.js +1 -0
- package/esm/tabs/styled-components.js +5 -1
- package/esm/tabs/tabs.js +4 -2
- package/esm/tabs-motion/styled-components.js +68 -40
- package/esm/tabs-motion/tab.js +1 -0
- package/esm/tabs-motion/tabs.js +87 -58
- package/esm/tag/styled-components.js +5 -1
- package/esm/tag/tag.js +4 -2
- package/esm/textarea/styled-components.js +11 -6
- package/esm/textarea/textarea.js +4 -2
- package/esm/themes/move-theme/typography.js +36 -0
- package/esm/themes/shared/borders.js +8 -3
- package/esm/themes/shared/typography.js +10 -10
- package/esm/timezonepicker/timezone-picker.js +6 -2
- package/esm/timezonepicker/tzdata.js +1 -1
- package/esm/toast/styled-components.js +5 -1
- package/esm/toast/toaster.js +0 -2
- package/esm/tokens/colors.js +24 -0
- package/esm/tooltip/styled-components.js +4 -1
- package/esm/tree-view/index.js +2 -1
- package/esm/tree-view/styled-components.js +7 -1
- package/esm/tree-view/tree-view.js +3 -1
- package/esm/types/globals.d.js +12 -0
- package/esm/utils/deep-merge.js +0 -5
- package/esm/utils/deprecated-component.js +1 -0
- package/esm/utils/focusVisible.js +4 -2
- package/file-uploader/styled-components.js +6 -1
- package/flex-grid/flex-grid-item.d.ts +1 -1
- package/flex-grid/flex-grid-item.js +6 -8
- package/flex-grid/flex-grid.js +7 -3
- package/flex-grid/types.d.ts +1 -1
- package/form-control/styled-components.js +6 -1
- package/form-control/types.d.ts +1 -1
- package/header-navigation/styled-components.js +4 -1
- package/heading/types.d.ts +1 -1
- package/helper/styled-components.js +3 -1
- package/helpers/overrides.js +8 -3
- package/helpers/overrides.js.flow +1 -1
- package/helpers/types.d.ts +1 -1
- package/icon/build-icons.js +0 -2
- package/icon/build-icons.js.flow +0 -1
- package/icon/index.d.ts +1 -1
- package/icon/index.js +8 -1
- package/icon/index.js.flow +1 -1
- package/icon/omit-dollar-prefixed-keys.js +1 -0
- package/icon/styled-components.js +2 -1
- package/icon/types.d.ts +1 -1
- package/input/masked-input.js +5 -2
- package/input/stateful-container.js +1 -0
- package/input/styled-components.js +18 -7
- package/input/styled-components.js.flow +9 -2
- package/input/types.d.ts +16 -14
- package/input/types.js.flow +3 -0
- package/input/utils.js +2 -0
- package/layer/layer.js +24 -0
- package/layer/layer.js.flow +25 -0
- package/layer/layers-manager.d.ts +8 -0
- package/layer/layers-manager.js +97 -1
- package/layer/layers-manager.js.flow +84 -1
- package/layer/types.d.ts +23 -2
- package/layer/types.js.flow +22 -1
- package/layout-grid/styled-components.js +3 -0
- package/layout-grid/types.d.ts +2 -2
- package/link/index.js +2 -1
- package/link/styled-components.js +2 -1
- package/list/list-heading.js +21 -17
- package/list/list-item.js +2 -1
- package/list/styled-components.js +17 -1
- package/list/types.d.ts +2 -2
- package/locale/en_US.d.ts +1 -1
- package/locale/es_AR.d.ts +1 -1
- package/locale/es_AR.js +3 -1
- package/locale/index.js +4 -1
- package/locale/tr_TR.d.ts +1 -1
- package/locale/tr_TR.js +3 -1
- package/map-marker/constants.d.ts +14 -0
- package/map-marker/constants.js +16 -3
- package/map-marker/constants.js.flow +17 -0
- package/map-marker/index.d.ts +2 -1
- package/map-marker/index.js +24 -1
- package/map-marker/index.js.flow +5 -3
- package/map-marker/location-puck.d.ts +4 -0
- package/map-marker/location-puck.js +211 -0
- package/map-marker/location-puck.js.flow +18 -0
- package/map-marker/styled-components.d.ts +17 -1
- package/map-marker/styled-components.js +88 -2
- package/map-marker/styled-components.js.flow +58 -0
- package/map-marker/types.d.ts +33 -5
- package/map-marker/types.js.flow +37 -3
- package/menu/index.d.ts +2 -3
- package/menu/index.js +8 -1
- package/menu/index.js.flow +1 -0
- package/menu/menu.js +15 -3
- package/menu/menu.js.flow +11 -1
- package/menu/option-profile.js +1 -0
- package/menu/stateful-container.js +1 -0
- package/menu/styled-components.d.ts +1 -0
- package/menu/styled-components.js +40 -7
- package/menu/styled-components.js.flow +13 -0
- package/menu/types.d.ts +13 -13
- package/menu/types.js.flow +1 -0
- package/message-card/constants.d.ts +12 -0
- package/message-card/constants.js +25 -0
- package/message-card/index.d.ts +4 -0
- package/message-card/index.js +60 -0
- package/message-card/index.js.flow +72 -0
- package/message-card/message-card.d.ts +4 -0
- package/message-card/message-card.js +184 -0
- package/message-card/package.json +4 -0
- package/message-card/styled-components.d.ts +14 -0
- package/message-card/styled-components.js +124 -0
- package/message-card/types.d.ts +27 -0
- package/message-card/types.js +5 -0
- package/message-card/utils.d.ts +1 -0
- package/message-card/utils.js +36 -0
- package/modal/modal.js +4 -4
- package/modal/modal.js.flow +1 -3
- package/modal/styled-components.js +8 -1
- package/modal/types.d.ts +2 -2
- package/package.json +9 -11
- package/pagination/stateful-container.js +1 -0
- package/pagination/stateful-pagination.js +1 -0
- package/pagination/styled-components.js +4 -1
- package/pagination/types.d.ts +2 -2
- package/payment-card/styled-components.js +2 -1
- package/phone-input/base-country-picker.js +3 -1
- package/phone-input/country-select-dropdown.js +1 -0
- package/phone-input/styled-components.js +21 -9
- package/phone-input/types.d.ts +5 -6
- package/pin-code/styled-components.js +4 -1
- package/pin-code/types.d.ts +2 -2
- package/popover/popover.js +9 -12
- package/popover/popover.js.flow +2 -12
- package/popover/styled-components.js +12 -9
- package/popover/types.d.ts +2 -2
- package/progress-bar/progressbar-rounded.js +1 -0
- package/progress-bar/styled-components.js +14 -2
- package/progress-bar/types.d.ts +2 -2
- package/progress-steps/progress-steps.js +2 -1
- package/progress-steps/styled-components.js +28 -19
- package/radio/styled-components.js +10 -3
- package/radio/types.d.ts +19 -20
- package/rating/emoticon-rating.js +2 -1
- package/rating/star-rating.js +2 -1
- package/rating/styled-components.js +5 -1
- package/select/autosize-input.js +2 -1
- package/select/autosize-input.js.flow +1 -1
- package/select/default-props.js +1 -1
- package/select/dropdown.js +2 -1
- package/select/multi-value.js +1 -0
- package/select/select-component.d.ts +1 -1
- package/select/select-component.js +9 -7
- package/select/select-component.js.flow +1 -1
- package/select/single-select.d.ts +2 -2
- package/select/single-select.js +2 -2
- package/select/styled-components.js +33 -6
- package/select/styled-components.js.flow +25 -5
- package/select/types.d.ts +5 -6
- package/select/value.js +2 -3
- package/side-navigation/nav-item.js +1 -0
- package/side-navigation/nav.js +1 -1
- package/side-navigation/stateful-container.js +1 -0
- package/side-navigation/styled-components.js +13 -6
- package/side-navigation/types.d.ts +1 -1
- package/skeleton/styled-components.js +3 -1
- package/slider/slider.js +4 -2
- package/slider/styled-components.js +9 -0
- package/slider/types.d.ts +1 -1
- package/snackbar/snackbar-element.js +1 -0
- package/snackbar/styled-components.js +9 -1
- package/snackbar/types.d.ts +3 -4
- package/spinner/styled-components.js +2 -1
- package/spinner/types.d.ts +1 -1
- package/styles/__mocks__/styled.js +8 -3
- package/styles/styled.d.ts +1 -1
- package/styles/styled.js +7 -6
- package/table/styled-components.js +13 -1
- package/table/types.d.ts +2 -2
- package/table-grid/styled-components.js +4 -1
- package/table-semantic/styled-components.js +20 -3
- package/table-semantic/types.d.ts +2 -2
- package/tabs/stateful-tabs.js +1 -0
- package/tabs/styled-components.js +5 -1
- package/tabs/tabs.js +4 -2
- package/tabs/types.d.ts +2 -2
- package/tabs-motion/styled-components.d.ts +5 -0
- package/tabs-motion/styled-components.js +71 -41
- package/tabs-motion/styled-components.js.flow +21 -0
- package/tabs-motion/tab.js +1 -0
- package/tabs-motion/tabs.d.ts +1 -1
- package/tabs-motion/tabs.js +87 -57
- package/tabs-motion/tabs.js.flow +69 -38
- package/tabs-motion/types.d.ts +5 -2
- package/tabs-motion/types.js.flow +3 -0
- package/tabs-motion/utils.d.ts +1 -1
- package/tag/styled-components.js +5 -1
- package/tag/tag.js +4 -2
- package/tag/types.d.ts +4 -5
- package/textarea/styled-components.js +11 -6
- package/textarea/textarea.js +4 -2
- package/textarea/types.d.ts +6 -5
- package/textarea/types.js.flow +3 -1
- package/themes/move-theme/typography.d.ts +36 -0
- package/themes/move-theme/typography.js +36 -0
- package/themes/move-theme/typography.js.flow +12 -0
- package/themes/shared/borders.js +8 -3
- package/themes/shared/borders.js.flow +7 -3
- package/themes/shared/typography.js +10 -10
- package/themes/shared/typography.js.flow +10 -10
- package/themes/types.d.ts +3 -0
- package/themes/types.js.flow +3 -0
- package/timezonepicker/timezone-picker.js +6 -2
- package/timezonepicker/types.d.ts +1 -0
- package/timezonepicker/types.js.flow +1 -0
- package/timezonepicker/tzdata.js +1 -1
- package/toast/styled-components.js +5 -1
- package/toast/toaster.js.flow +1 -1
- package/toast/types.d.ts +2 -2
- package/tokens/colors.js +24 -0
- package/tokens/colors.js.flow +27 -0
- package/tokens/types.d.ts +24 -0
- package/tokens/types.js.flow +27 -0
- package/tooltip/styled-components.js +4 -1
- package/tree-view/styled-components.js +7 -1
- package/tree-view/tree-view.js +3 -1
- package/tree-view/types.d.ts +3 -4
- package/types/globals.d.js +14 -1
- package/utils/deep-merge.js +0 -6
- package/utils/deprecated-component.js +1 -0
- package/utils/focusVisible.d.ts +1 -1
- package/utils/focusVisible.js +4 -2
- package/card/images.d.ts +0 -2
- package/card/images.js +0 -17
- package/card/images.js.flow +0 -18
- package/es/card/images.js +0 -8
- package/esm/card/images.js +0 -8
|
@@ -4,12 +4,14 @@ Copyright (c) Uber Technologies, Inc.
|
|
|
4
4
|
This source code is licensed under the MIT license found in the
|
|
5
5
|
LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
import { styled, expandBorderStyles } from '../styles';
|
|
7
|
+
import { styled, expandBorderStyles } from '../styles'; // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
8
|
+
|
|
8
9
|
export const Action = styled('div', ({
|
|
9
10
|
$theme
|
|
10
11
|
}) => ({ ...$theme.typography.LabelMedium
|
|
11
12
|
}));
|
|
12
13
|
Action.displayName = "Action";
|
|
14
|
+
Action.displayName = 'Action';
|
|
13
15
|
export const Body = styled('div', ({
|
|
14
16
|
$theme
|
|
15
17
|
}) => ({
|
|
@@ -18,6 +20,7 @@ export const Body = styled('div', ({
|
|
|
18
20
|
...$theme.typography.ParagraphMedium
|
|
19
21
|
}));
|
|
20
22
|
Body.displayName = "Body";
|
|
23
|
+
Body.displayName = 'Body';
|
|
21
24
|
export const Contents = styled('div', ({
|
|
22
25
|
$theme
|
|
23
26
|
}) => ({
|
|
@@ -27,6 +30,7 @@ export const Contents = styled('div', ({
|
|
|
27
30
|
marginBottom: $theme.sizing.scale600
|
|
28
31
|
}));
|
|
29
32
|
Contents.displayName = "Contents";
|
|
33
|
+
Contents.displayName = 'Contents';
|
|
30
34
|
export const HeaderImage = styled('img', ({
|
|
31
35
|
$theme
|
|
32
36
|
}) => ({
|
|
@@ -34,10 +38,11 @@ export const HeaderImage = styled('img', ({
|
|
|
34
38
|
borderTopRightRadius: $theme.borders.surfaceBorderRadius,
|
|
35
39
|
objectFit: 'contain',
|
|
36
40
|
maxWidth: '100%'
|
|
37
|
-
}));
|
|
41
|
+
}));
|
|
42
|
+
HeaderImage.displayName = "HeaderImage";
|
|
43
|
+
HeaderImage.displayName = 'HeaderImage'; // by using the section tag, we can keep the h1 for the title
|
|
38
44
|
// https://html.spec.whatwg.org/multipage/sections.html#headings-and-sections
|
|
39
45
|
|
|
40
|
-
HeaderImage.displayName = "HeaderImage";
|
|
41
46
|
export const Root = styled('section', ({
|
|
42
47
|
$theme
|
|
43
48
|
}) => ({
|
|
@@ -61,6 +66,7 @@ export const Root = styled('section', ({
|
|
|
61
66
|
overflow: 'hidden'
|
|
62
67
|
}));
|
|
63
68
|
Root.displayName = "Root";
|
|
69
|
+
Root.displayName = 'Root';
|
|
64
70
|
export const Thumbnail = styled('img', ({
|
|
65
71
|
$theme
|
|
66
72
|
}) => ({
|
|
@@ -76,6 +82,7 @@ export const Thumbnail = styled('img', ({
|
|
|
76
82
|
margin: `0 0 ${$theme.sizing.scale500} ${$theme.sizing.scale500}`
|
|
77
83
|
}));
|
|
78
84
|
Thumbnail.displayName = "Thumbnail";
|
|
85
|
+
Thumbnail.displayName = 'Thumbnail';
|
|
79
86
|
export const Title = styled('h1', ({
|
|
80
87
|
$theme
|
|
81
88
|
}) => ({ ...$theme.typography.HeadingSmall,
|
|
@@ -89,4 +96,5 @@ export const Title = styled('h1', ({
|
|
|
89
96
|
paddingRight: 0,
|
|
90
97
|
paddingBottom: 0
|
|
91
98
|
}));
|
|
92
|
-
Title.displayName = "Title";
|
|
99
|
+
Title.displayName = "Title";
|
|
100
|
+
Title.displayName = 'Title';
|
package/es/checkbox/index.js
CHANGED
|
@@ -4,6 +4,7 @@ Copyright (c) Uber Technologies, Inc.
|
|
|
4
4
|
This source code is licensed under the MIT license found in the
|
|
5
5
|
LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
7
8
|
export { default as StatefulCheckbox } from './stateful-checkbox';
|
|
8
9
|
export { default as StatefulContainer } from './stateful-checkbox-container';
|
|
9
10
|
export { default as Checkbox } from './checkbox'; // Styled elements
|
|
@@ -78,8 +78,11 @@ class StatefulCheckboxContainer extends React.Component {
|
|
|
78
78
|
|
|
79
79
|
render() {
|
|
80
80
|
const {
|
|
81
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
81
82
|
children = childProps => null,
|
|
83
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
82
84
|
initialState,
|
|
85
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
83
86
|
stateReducer,
|
|
84
87
|
...restProps
|
|
85
88
|
} = this.props;
|
|
@@ -155,6 +155,7 @@ export const Root = styled('label', props => {
|
|
|
155
155
|
};
|
|
156
156
|
});
|
|
157
157
|
Root.displayName = "Root";
|
|
158
|
+
Root.displayName = 'Root';
|
|
158
159
|
export const Checkmark = styled('span', props => {
|
|
159
160
|
const {
|
|
160
161
|
$checked,
|
|
@@ -179,7 +180,7 @@ export const Checkmark = styled('span', props => {
|
|
|
179
180
|
<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="${tickColor}"/>
|
|
180
181
|
</svg>
|
|
181
182
|
`);
|
|
182
|
-
const borderRadius = $theme.borders.
|
|
183
|
+
const borderRadius = $theme.borders.checkboxBorderRadius;
|
|
183
184
|
const borderColor = getBorderColor(props);
|
|
184
185
|
return {
|
|
185
186
|
flex: '0 0 auto',
|
|
@@ -222,6 +223,7 @@ export const Checkmark = styled('span', props => {
|
|
|
222
223
|
};
|
|
223
224
|
});
|
|
224
225
|
Checkmark.displayName = "Checkmark";
|
|
226
|
+
Checkmark.displayName = 'Checkmark';
|
|
225
227
|
export const Label = styled('div', props => {
|
|
226
228
|
const {
|
|
227
229
|
$theme
|
|
@@ -236,9 +238,10 @@ export const Label = styled('div', props => {
|
|
|
236
238
|
...typography.LabelMedium,
|
|
237
239
|
lineHeight: '24px'
|
|
238
240
|
};
|
|
239
|
-
});
|
|
240
|
-
|
|
241
|
+
});
|
|
241
242
|
Label.displayName = "Label";
|
|
243
|
+
Label.displayName = 'Label'; // tricky style for focus event cause display: none doesn't work
|
|
244
|
+
|
|
242
245
|
export const Input = styled('input', {
|
|
243
246
|
opacity: 0,
|
|
244
247
|
width: 0,
|
|
@@ -249,6 +252,7 @@ export const Input = styled('input', {
|
|
|
249
252
|
position: 'absolute'
|
|
250
253
|
});
|
|
251
254
|
Input.displayName = "Input";
|
|
255
|
+
Input.displayName = 'Input';
|
|
252
256
|
export const Toggle = styled('div', props => {
|
|
253
257
|
let backgroundColor = props.$theme.colors.toggleFill;
|
|
254
258
|
|
|
@@ -275,6 +279,7 @@ export const Toggle = styled('div', props => {
|
|
|
275
279
|
};
|
|
276
280
|
});
|
|
277
281
|
Toggle.displayName = "Toggle";
|
|
282
|
+
Toggle.displayName = 'Toggle';
|
|
278
283
|
export const ToggleTrack = styled('div', props => {
|
|
279
284
|
let backgroundColor = props.$theme.colors.toggleTrackFill;
|
|
280
285
|
|
|
@@ -300,4 +305,5 @@ export const ToggleTrack = styled('div', props => {
|
|
|
300
305
|
width: props.$theme.sizing.scale1000
|
|
301
306
|
};
|
|
302
307
|
});
|
|
303
|
-
ToggleTrack.displayName = "ToggleTrack";
|
|
308
|
+
ToggleTrack.displayName = "ToggleTrack";
|
|
309
|
+
ToggleTrack.displayName = 'ToggleTrack';
|
package/es/combobox/combobox.js
CHANGED
|
@@ -163,6 +163,7 @@ function Combobox(props) {
|
|
|
163
163
|
if (listboxRef.current && event.relatedTarget && // NOTE(chase): Contains method expects a Node type, but relatedTarget is
|
|
164
164
|
// EventTarget which is a super type of Node. Passing an EventTarget seems
|
|
165
165
|
// to work fine, assuming the flow type is too strict.
|
|
166
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
166
167
|
listboxRef.current.contains(event.relatedTarget)) {
|
|
167
168
|
return;
|
|
168
169
|
}
|
|
@@ -231,76 +232,82 @@ function Combobox(props) {
|
|
|
231
232
|
overrides: popoverOverrides = {},
|
|
232
233
|
...restPopoverProps
|
|
233
234
|
}] = getOverrides(overrides.Popover, Popover);
|
|
234
|
-
return
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
autoFocus
|
|
241
|
-
|
|
242
|
-
overrides: popoverOverrides,
|
|
243
|
-
placement: PLACEMENT.bottomLeft,
|
|
244
|
-
onClick: handleInputClick,
|
|
245
|
-
content: /*#__PURE__*/React.createElement(ListBox // TabIndex attribute exists to exclude option clicks from triggering onBlur event actions.
|
|
235
|
+
return (
|
|
236
|
+
/*#__PURE__*/
|
|
237
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
238
|
+
React.createElement(Root, _extends({
|
|
239
|
+
ref: rootRef
|
|
240
|
+
}, 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
|
|
241
|
+
// the ListBox, but we can just disable autoFocus (as ListBox / ListItem should not be focusable) (and input is also not autoFocused).
|
|
242
|
+
// Select Component does the same thing
|
|
246
243
|
, _extends({
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
244
|
+
autoFocus: false,
|
|
245
|
+
isOpen: isOpen,
|
|
246
|
+
overrides: popoverOverrides,
|
|
247
|
+
placement: PLACEMENT.bottomLeft,
|
|
248
|
+
onClick: handleInputClick,
|
|
249
|
+
content: /*#__PURE__*/React.createElement(ListBox // TabIndex attribute exists to exclude option clicks from triggering onBlur event actions.
|
|
250
|
+
, _extends({
|
|
251
|
+
tabIndex: "-1",
|
|
252
|
+
id: listboxId // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
253
|
+
,
|
|
254
|
+
ref: listboxRef,
|
|
255
|
+
role: "listbox",
|
|
256
|
+
"aria-label": listBoxLabel,
|
|
257
|
+
$width: listboxWidth
|
|
258
|
+
}, listBoxProps), options.map((option, index) => {
|
|
259
|
+
const isSelected = selectionIndex === index;
|
|
260
|
+
const ReplacementNode = mapOptionToNode;
|
|
261
|
+
return (
|
|
262
|
+
/*#__PURE__*/
|
|
263
|
+
// List items are not focusable, therefore will never trigger a key event from it.
|
|
264
|
+
// Secondly, key events are handled from the input element.
|
|
265
|
+
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
266
|
+
React.createElement(ListItem, _extends({
|
|
267
|
+
"aria-selected": isSelected,
|
|
268
|
+
id: isSelected ? activeDescendantId : null,
|
|
269
|
+
key: index,
|
|
270
|
+
onClick: () => handleOptionClick(index) // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
271
|
+
,
|
|
272
|
+
ref: isSelected ? selectedOptionRef : null,
|
|
273
|
+
role: "option",
|
|
274
|
+
$isSelected: isSelected,
|
|
275
|
+
$size: size
|
|
276
|
+
}, listItemProps), ReplacementNode ? /*#__PURE__*/React.createElement(ReplacementNode, {
|
|
277
|
+
isSelected: isSelected,
|
|
278
|
+
option: option
|
|
279
|
+
}) : mapOptionToString(option))
|
|
280
|
+
);
|
|
281
|
+
}))
|
|
282
|
+
}, restPopoverProps), /*#__PURE__*/React.createElement(InputContainer, _extends({
|
|
283
|
+
"aria-expanded": isOpen,
|
|
284
|
+
"aria-haspopup": "listbox",
|
|
285
|
+
"aria-owns": listboxId // a11y linter implements the older 1.0 spec, suppressing to use updated 1.1
|
|
286
|
+
// https://github.com/A11yance/aria-query/issues/43
|
|
287
|
+
// https://github.com/evcohen/eslint-plugin-jsx-a11y/issues/442
|
|
288
|
+
// eslint-disable-next-line jsx-a11y/role-has-required-aria-props
|
|
289
|
+
,
|
|
290
|
+
role: "combobox"
|
|
291
|
+
}, inputContainerProps), /*#__PURE__*/React.createElement(OverriddenInput, _extends({
|
|
292
|
+
inputRef: handleInputRef,
|
|
293
|
+
"aria-activedescendant": isOpen && selectionIndex >= 0 ? activeDescendantId : undefined,
|
|
294
|
+
"aria-autocomplete": "list",
|
|
295
|
+
disabled: disabled,
|
|
296
|
+
error: error,
|
|
297
|
+
name: name,
|
|
298
|
+
id: id,
|
|
299
|
+
onBlur: handleBlur,
|
|
300
|
+
onChange: handleInputChange,
|
|
301
|
+
onFocus: handleFocus,
|
|
302
|
+
onKeyDown: handleKeyDown,
|
|
303
|
+
overrides: inputOverrides,
|
|
304
|
+
positive: positive,
|
|
305
|
+
size: size,
|
|
306
|
+
value: tempValue ? tempValue : value
|
|
307
|
+
}, isOpen ? {
|
|
308
|
+
'aria-controls': listboxId
|
|
309
|
+
} : {}, restInputProps)))))
|
|
310
|
+
);
|
|
304
311
|
}
|
|
305
312
|
|
|
306
313
|
export default Combobox;
|
|
@@ -8,8 +8,10 @@ import { SIZE } from '../input';
|
|
|
8
8
|
import { styled } from '../styles';
|
|
9
9
|
export const StyledRoot = styled('div', {});
|
|
10
10
|
StyledRoot.displayName = "StyledRoot";
|
|
11
|
+
StyledRoot.displayName = 'StyledRoot';
|
|
11
12
|
export const StyledInputContainer = styled('div', {});
|
|
12
13
|
StyledInputContainer.displayName = "StyledInputContainer";
|
|
14
|
+
StyledInputContainer.displayName = 'StyledInputContainer';
|
|
13
15
|
export const StyledListBox = styled('ul', ({
|
|
14
16
|
$theme,
|
|
15
17
|
$width
|
|
@@ -26,6 +28,7 @@ export const StyledListBox = styled('ul', ({
|
|
|
26
28
|
};
|
|
27
29
|
});
|
|
28
30
|
StyledListBox.displayName = "StyledListBox";
|
|
31
|
+
StyledListBox.displayName = 'StyledListBox';
|
|
29
32
|
|
|
30
33
|
function buildStylesForSize(size, theme) {
|
|
31
34
|
const paddingDir = theme.direction === 'rtl' ? 'paddingRight' : 'paddingLeft';
|
|
@@ -74,4 +77,5 @@ export const StyledListItem = styled('li', ({
|
|
|
74
77
|
}
|
|
75
78
|
};
|
|
76
79
|
});
|
|
77
|
-
StyledListItem.displayName = "StyledListItem";
|
|
80
|
+
StyledListItem.displayName = "StyledListItem";
|
|
81
|
+
StyledListItem.displayName = 'StyledListItem';
|
|
@@ -12,6 +12,7 @@ import { useStyletron } from '../styles';
|
|
|
12
12
|
import Column from './column';
|
|
13
13
|
import { COLUMNS } from './constants';
|
|
14
14
|
|
|
15
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
15
16
|
function AnchorFilter(props) {
|
|
16
17
|
return /*#__PURE__*/React.createElement("div", null, "not implemented for anchor column");
|
|
17
18
|
}
|
|
@@ -34,7 +35,9 @@ function AnchorCell(props) {
|
|
|
34
35
|
function AnchorColumn(options) {
|
|
35
36
|
return Column({
|
|
36
37
|
kind: COLUMNS.ANCHOR,
|
|
38
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
37
39
|
buildFilter: function (params) {
|
|
40
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
38
41
|
return function (data) {
|
|
39
42
|
return true;
|
|
40
43
|
};
|
|
@@ -27,7 +27,8 @@ import { Select } from '../select';
|
|
|
27
27
|
import Column from './column';
|
|
28
28
|
import { COLUMNS, DATETIME_OPERATIONS } from './constants';
|
|
29
29
|
import FilterShell from './filter-shell';
|
|
30
|
-
import { LocaleContext } from '../locale';
|
|
30
|
+
import { LocaleContext } from '../locale'; // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
31
|
+
|
|
31
32
|
const DATE_FORMAT = 'MM-dd-yyyy';
|
|
32
33
|
const MASK = '99-99-9999 - 99-99-9999';
|
|
33
34
|
const TIME_FORMAT = 'HH:mm ss:SS';
|
|
@@ -175,7 +176,8 @@ function DatetimeFilter(props) {
|
|
|
175
176
|
const [exclude, setExclude] = React.useState(initialState.exclude);
|
|
176
177
|
const [comparatorIndex, setComparatorIndex] = React.useState(initialState.comparatorIndex);
|
|
177
178
|
const [rangeOperator, setRangeOperator] = React.useState([initialState.rangeOperator]);
|
|
178
|
-
const [categoricalOperator, setCategoricalOperator] = React.useState([initialState.categoricalOperator]);
|
|
179
|
+
const [categoricalOperator, setCategoricalOperator] = React.useState([initialState.categoricalOperator]); // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
180
|
+
|
|
179
181
|
const [rangeDates, setRangeDates] = React.useState(initialState.rangeDates.length ? initialState.rangeDates : [new Date(datesSorted[0]), new Date(datesSorted[datesSorted.length - 1])]);
|
|
180
182
|
const [years, setYears] = React.useState(initialState.years);
|
|
181
183
|
const [halves, setHalves] = React.useState(initialState.halves);
|
|
@@ -189,6 +191,7 @@ function DatetimeFilter(props) {
|
|
|
189
191
|
onExcludeChange: () => setExclude(!exclude),
|
|
190
192
|
onApply: () => {
|
|
191
193
|
if (isRange) {
|
|
194
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
192
195
|
const op = rangeOperator[0].id;
|
|
193
196
|
let description = '';
|
|
194
197
|
|
|
@@ -216,6 +219,7 @@ function DatetimeFilter(props) {
|
|
|
216
219
|
}
|
|
217
220
|
|
|
218
221
|
if (isCategorical) {
|
|
222
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
219
223
|
const op = categoricalOperator[0].id;
|
|
220
224
|
let selection = [];
|
|
221
225
|
let operatorLocaleLabelKey = '';
|
|
@@ -297,7 +301,8 @@ function DatetimeFilter(props) {
|
|
|
297
301
|
}
|
|
298
302
|
}, locale.datatable.datetimeFilterCategorical)), isRange && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Select, {
|
|
299
303
|
value: rangeOperator,
|
|
300
|
-
onChange: params => setRangeOperator(params.value)
|
|
304
|
+
onChange: params => setRangeOperator(params.value) // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
305
|
+
,
|
|
301
306
|
mountNode: mountNode.current,
|
|
302
307
|
options: RANGE_OPERATIONS.map(op => ({
|
|
303
308
|
label: locale.datatable[op.localeLabelKey],
|
|
@@ -309,7 +314,8 @@ function DatetimeFilter(props) {
|
|
|
309
314
|
className: css({
|
|
310
315
|
paddingTop: theme.sizing.scale600
|
|
311
316
|
})
|
|
312
|
-
}, (rangeOperator[0].id === DATETIME_OPERATIONS.RANGE_DATETIME || rangeOperator[0].id === DATETIME_OPERATIONS.RANGE_DATE) && /*#__PURE__*/React.createElement(Datepicker
|
|
317
|
+
}, (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
|
|
318
|
+
, {
|
|
313
319
|
mountNode: mountNode.current,
|
|
314
320
|
value: rangeDates,
|
|
315
321
|
onChange: ({
|
|
@@ -370,7 +376,8 @@ function DatetimeFilter(props) {
|
|
|
370
376
|
options: CATEGORICAL_OPERATIONS.map(op => ({
|
|
371
377
|
label: locale.datatable[op.localeLabelKey],
|
|
372
378
|
id: op.id
|
|
373
|
-
}))
|
|
379
|
+
})) // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
380
|
+
,
|
|
374
381
|
mountNode: mountNode.current,
|
|
375
382
|
size: "compact",
|
|
376
383
|
clearable: false
|
|
@@ -64,12 +64,14 @@ function validateInput(input) {
|
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
const bisect = bisector(d => d.x0);
|
|
67
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
67
68
|
const Histogram = /*#__PURE__*/React.memo(function Histogram({
|
|
68
69
|
data,
|
|
69
70
|
lower,
|
|
70
71
|
upper,
|
|
71
72
|
isRange,
|
|
72
73
|
exclude,
|
|
74
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
73
75
|
precision
|
|
74
76
|
}) {
|
|
75
77
|
const [css, theme] = useStyletron();
|
|
@@ -309,6 +311,7 @@ function NumericalFilter(props) {
|
|
|
309
311
|
}) {
|
|
310
312
|
return /*#__PURE__*/React.createElement(React.Fragment, null, $value[$thumbIndex]);
|
|
311
313
|
},
|
|
314
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
312
315
|
TickBar: ({
|
|
313
316
|
$min,
|
|
314
317
|
$max
|
|
@@ -323,9 +326,7 @@ function NumericalFilter(props) {
|
|
|
323
326
|
})
|
|
324
327
|
},
|
|
325
328
|
InnerTrack: {
|
|
326
|
-
style: ({
|
|
327
|
-
$theme
|
|
328
|
-
}) => {
|
|
329
|
+
style: () => {
|
|
329
330
|
if (!isRange) {
|
|
330
331
|
return {
|
|
331
332
|
// For range selection we use the color as is, but when selecting the single value,
|
|
@@ -421,7 +422,7 @@ const defaultOptions = {
|
|
|
421
422
|
sortable: true,
|
|
422
423
|
filterable: true,
|
|
423
424
|
format: NUMERICAL_FORMATS.DEFAULT,
|
|
424
|
-
highlight:
|
|
425
|
+
highlight: () => false,
|
|
425
426
|
precision: 0
|
|
426
427
|
};
|
|
427
428
|
|
|
@@ -12,6 +12,7 @@ import Column from './column';
|
|
|
12
12
|
import { COLUMNS } from './constants';
|
|
13
13
|
import { HighlightCellText } from './text-search';
|
|
14
14
|
|
|
15
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
15
16
|
function StringFilter(props) {
|
|
16
17
|
return /*#__PURE__*/React.createElement("div", null, "not implemented for string column");
|
|
17
18
|
}
|
|
@@ -35,7 +36,9 @@ function StringColumn(options) {
|
|
|
35
36
|
return Column({
|
|
36
37
|
kind: COLUMNS.STRING,
|
|
37
38
|
cellBlockAlign: options.cellBlockAlign,
|
|
39
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
38
40
|
buildFilter: function (params) {
|
|
41
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
39
42
|
return function (data) {
|
|
40
43
|
return true;
|
|
41
44
|
};
|
package/es/data-table/column.js
CHANGED
|
@@ -6,6 +6,7 @@ LICENSE file in the root directory of this source tree.
|
|
|
6
6
|
*/
|
|
7
7
|
import * as React from 'react';
|
|
8
8
|
import { Checkbox } from '../checkbox';
|
|
9
|
+
import { LocaleContext } from '../locale';
|
|
9
10
|
import { useStyletron } from '../styles';
|
|
10
11
|
|
|
11
12
|
function Column(options) {
|
|
@@ -19,8 +20,9 @@ function Column(options) {
|
|
|
19
20
|
maxWidth: options.maxWidth,
|
|
20
21
|
minWidth: options.minWidth,
|
|
21
22
|
// todo(flow->ts) add proper type annotation
|
|
22
|
-
// eslint-disable-next-line react/display-name
|
|
23
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any,react/display-name
|
|
23
24
|
renderCell: /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
25
|
+
const locale = React.useContext(LocaleContext);
|
|
24
26
|
const [css, theme] = useStyletron();
|
|
25
27
|
const ProvidedCell = options.renderCell;
|
|
26
28
|
let cellBlockAlign = 'flex-start';
|
|
@@ -55,6 +57,7 @@ function Column(options) {
|
|
|
55
57
|
paddingRight: theme.sizing.scale300
|
|
56
58
|
})
|
|
57
59
|
}, /*#__PURE__*/React.createElement(Checkbox, {
|
|
60
|
+
"aria-label": locale.datatable.selectRow,
|
|
58
61
|
onChange: props.onSelect,
|
|
59
62
|
checked: props.isSelected,
|
|
60
63
|
overrides: {
|
|
@@ -129,7 +129,8 @@ HeaderContext.displayName = 'HeaderContext';
|
|
|
129
129
|
function Header(props) {
|
|
130
130
|
const [css, theme] = useStyletron();
|
|
131
131
|
const [startResizePos, setStartResizePos] = React.useState(0);
|
|
132
|
-
const [endResizePos, setEndResizePos] = React.useState(0);
|
|
132
|
+
const [endResizePos, setEndResizePos] = React.useState(0); // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
133
|
+
|
|
133
134
|
const headerCellRef = React.useRef(null);
|
|
134
135
|
const RULER_OFFSET = 2;
|
|
135
136
|
const isResizingThisColumn = props.resizeIndex === props.index;
|
|
@@ -172,7 +173,8 @@ function Header(props) {
|
|
|
172
173
|
}
|
|
173
174
|
}
|
|
174
175
|
}
|
|
175
|
-
}
|
|
176
|
+
} // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
177
|
+
|
|
176
178
|
|
|
177
179
|
function handleMouseUp(event) {
|
|
178
180
|
props.onResize(props.index, endResizePos - startResizePos);
|
|
@@ -777,7 +779,8 @@ export function DataTable({
|
|
|
777
779
|
tableHeight: height,
|
|
778
780
|
widths: normalizedWidths
|
|
779
781
|
}
|
|
780
|
-
}, /*#__PURE__*/React.createElement(VariableSizeGrid
|
|
782
|
+
}, /*#__PURE__*/React.createElement(VariableSizeGrid // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
783
|
+
, {
|
|
781
784
|
ref: setGridRef,
|
|
782
785
|
overscanRowCount: 10,
|
|
783
786
|
overscanColumnCount: 5,
|