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
|
@@ -6,12 +6,14 @@ 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
|
import ChevronDown from '../icon/chevron-down';
|
|
11
12
|
import ChevronUp from '../icon/chevron-up';
|
|
12
13
|
import { SORT_DIRECTIONS } from './constants';
|
|
13
14
|
import { isFocusVisible } from '../utils/focusVisible';
|
|
14
15
|
const HeaderCell = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
16
|
+
const locale = React.useContext(LocaleContext);
|
|
15
17
|
const [css, theme] = useStyletron();
|
|
16
18
|
const [focusVisible, setFocusVisible] = React.useState(false);
|
|
17
19
|
const checkboxRef = React.useRef(null);
|
|
@@ -22,7 +24,7 @@ const HeaderCell = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
22
24
|
}
|
|
23
25
|
};
|
|
24
26
|
|
|
25
|
-
const handleBlur =
|
|
27
|
+
const handleBlur = () => {
|
|
26
28
|
if (focusVisible !== false) {
|
|
27
29
|
setFocusVisible(false);
|
|
28
30
|
}
|
|
@@ -31,59 +33,64 @@ const HeaderCell = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
31
33
|
const backgroundColor = props.isHovered ? theme.colors.backgroundSecondary : theme.colors.backgroundPrimary;
|
|
32
34
|
return /*#__PURE__*/React.createElement("div", {
|
|
33
35
|
ref: ref,
|
|
34
|
-
role: "button",
|
|
35
|
-
tabIndex: 0,
|
|
36
36
|
className: css({ ...theme.typography.font350,
|
|
37
37
|
alignItems: 'center',
|
|
38
38
|
backgroundColor,
|
|
39
|
-
boxSizing: 'border-box',
|
|
40
39
|
color: theme.colors.contentPrimary,
|
|
41
|
-
cursor: props.sortable ? 'pointer' : null,
|
|
42
40
|
display: props.isMeasured ? 'inline-flex' : 'flex',
|
|
43
41
|
flexGrow: 1,
|
|
44
42
|
height: '100%',
|
|
45
|
-
paddingLeft: theme.sizing.scale500
|
|
46
|
-
|
|
47
|
-
flexWrap: 'nowrap',
|
|
48
|
-
whiteSpace: 'nowrap',
|
|
49
|
-
outline: focusVisible ? `3px solid ${theme.colors.accent}` : 'none',
|
|
50
|
-
outlineOffset: '-3px'
|
|
51
|
-
}),
|
|
52
|
-
onMouseEnter: props.onMouseEnter,
|
|
53
|
-
onMouseLeave: props.onMouseLeave,
|
|
54
|
-
onKeyUp: event => {
|
|
55
|
-
if (event.key === 'Enter') {
|
|
56
|
-
props.onSort(props.index);
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
onClick: event => {
|
|
60
|
-
// Avoid column sort if select-all checkbox click.
|
|
61
|
-
if (checkboxRef.current && checkboxRef.current.contains(event.target)) {
|
|
62
|
-
return;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
if (props.sortable) {
|
|
66
|
-
props.onSort(props.index);
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
onFocus: handleFocus,
|
|
70
|
-
onBlur: handleBlur
|
|
43
|
+
paddingLeft: theme.sizing.scale500
|
|
44
|
+
})
|
|
71
45
|
}, props.isSelectable && /*#__PURE__*/React.createElement("span", {
|
|
72
46
|
className: css({
|
|
73
47
|
paddingRight: theme.sizing.scale300
|
|
74
48
|
}),
|
|
75
49
|
ref: checkboxRef
|
|
76
50
|
}, /*#__PURE__*/React.createElement(Checkbox, {
|
|
77
|
-
onChange:
|
|
51
|
+
onChange: () => {
|
|
78
52
|
if (props.isSelectedAll || props.isSelectedIndeterminate) {
|
|
79
53
|
props.onSelectNone();
|
|
80
54
|
} else {
|
|
81
55
|
props.onSelectAll();
|
|
82
56
|
}
|
|
83
57
|
},
|
|
58
|
+
"aria-label": locale.datatable.selectAllRows,
|
|
84
59
|
checked: props.isSelectedAll || props.isSelectedIndeterminate,
|
|
85
60
|
isIndeterminate: props.isSelectedIndeterminate
|
|
86
|
-
})),
|
|
61
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
62
|
+
className: css({
|
|
63
|
+
alignItems: 'center',
|
|
64
|
+
backgroundColor: 'transparent',
|
|
65
|
+
border: 'none',
|
|
66
|
+
boxSizing: 'border-box',
|
|
67
|
+
cursor: props.sortable ? 'pointer' : null,
|
|
68
|
+
display: 'flex',
|
|
69
|
+
flexGrow: 1,
|
|
70
|
+
height: '100%',
|
|
71
|
+
outline: focusVisible ? `3px solid ${theme.colors.accent}` : 'none',
|
|
72
|
+
outlineOffset: '-3px',
|
|
73
|
+
// paddingLeft: theme.sizing.scale500,
|
|
74
|
+
paddingRight: theme.sizing.scale500,
|
|
75
|
+
whiteSpace: 'nowrap'
|
|
76
|
+
}),
|
|
77
|
+
onMouseEnter: props.onMouseEnter,
|
|
78
|
+
onMouseLeave: props.onMouseLeave,
|
|
79
|
+
onKeyUp: event => {
|
|
80
|
+
if (event.key === 'Enter') {
|
|
81
|
+
props.onSort(props.index);
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
onClick: () => {
|
|
85
|
+
if (props.sortable) {
|
|
86
|
+
props.onSort(props.index);
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
onFocus: handleFocus,
|
|
90
|
+
onBlur: handleBlur,
|
|
91
|
+
role: "button",
|
|
92
|
+
tabIndex: 0
|
|
93
|
+
}, props.title, /*#__PURE__*/React.createElement("div", {
|
|
87
94
|
className: css({
|
|
88
95
|
position: 'relative',
|
|
89
96
|
width: '100%',
|
|
@@ -102,7 +109,7 @@ const HeaderCell = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
102
109
|
color: props.sortDirection ? theme.colors.contentPrimary : theme.colors.contentSecondary
|
|
103
110
|
}), (props.sortDirection === SORT_DIRECTIONS.ASC || !props.sortDirection) && /*#__PURE__*/React.createElement(ChevronUp, {
|
|
104
111
|
color: props.sortDirection ? theme.colors.contentPrimary : theme.colors.contentSecondary
|
|
105
|
-
}))));
|
|
112
|
+
})))));
|
|
106
113
|
});
|
|
107
114
|
HeaderCell.displayName = 'HeaderCell';
|
|
108
115
|
export default HeaderCell;
|
package/es/data-table/locale.js
CHANGED
|
@@ -37,6 +37,8 @@ const 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;
|
|
@@ -25,7 +25,7 @@ function MeasureColumn({
|
|
|
25
25
|
onLayout(columnIndex, ref.current.getBoundingClientRect());
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
}, []);
|
|
28
|
+
}, [onLayout]);
|
|
29
29
|
return /*#__PURE__*/React.createElement("div", {
|
|
30
30
|
ref: ref,
|
|
31
31
|
className: css({
|
|
@@ -42,7 +42,8 @@ function MeasureColumn({
|
|
|
42
42
|
onMouseEnter: () => {},
|
|
43
43
|
onMouseLeave: () => {},
|
|
44
44
|
onSelectAll: () => {},
|
|
45
|
-
onSelectNone: () => {}
|
|
45
|
+
onSelectNone: () => {} // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
46
|
+
,
|
|
46
47
|
onSort: i => {},
|
|
47
48
|
sortable: column.sortable,
|
|
48
49
|
sortDirection: null,
|
|
@@ -100,7 +101,7 @@ export default function MeasureColumnWidths({
|
|
|
100
101
|
const [css] = useStyletron();
|
|
101
102
|
const widthMap = React.useMemo(() => {
|
|
102
103
|
return new Map();
|
|
103
|
-
}, []);
|
|
104
|
+
}, [rows]);
|
|
104
105
|
const sampleSize = rows.length < MAX_SAMPLE_SIZE ? rows.length : MAX_SAMPLE_SIZE;
|
|
105
106
|
const finishedMeasurementCount = (sampleSize + 1) * columns.length;
|
|
106
107
|
const sampleIndexes = React.useMemo(() => {
|
|
@@ -119,7 +120,7 @@ export default function MeasureColumnWidths({
|
|
|
119
120
|
widthMap.size === Math.floor(columns.length / 4)) {
|
|
120
121
|
onWidthsChange(Array.from(widthMap.values()));
|
|
121
122
|
}
|
|
122
|
-
}, [columns, finishedMeasurementCount, onWidthsChange]);
|
|
123
|
+
}, [columns, rows, finishedMeasurementCount, onWidthsChange]);
|
|
123
124
|
const hiddenStyle = css({
|
|
124
125
|
position: 'absolute',
|
|
125
126
|
overflow: 'hidden',
|
|
@@ -190,12 +190,12 @@ export function StatefulDataTable(props) {
|
|
|
190
190
|
rows: props.rows,
|
|
191
191
|
title: title
|
|
192
192
|
})))), Boolean(selectedRowIds.size) && props.batchActions && /*#__PURE__*/React.createElement("div", {
|
|
193
|
-
|
|
193
|
+
className: css({
|
|
194
194
|
display: 'flex',
|
|
195
195
|
alignItems: 'center',
|
|
196
|
-
paddingTop: theme.sizing.
|
|
197
|
-
paddingBottom: theme.sizing.
|
|
198
|
-
}
|
|
196
|
+
paddingTop: theme.sizing.scale300,
|
|
197
|
+
paddingBottom: theme.sizing.scale300
|
|
198
|
+
})
|
|
199
199
|
}, props.batchActions.map(action => {
|
|
200
200
|
function onClick(event) {
|
|
201
201
|
action.onClick({
|
|
@@ -24,6 +24,7 @@ import { DENSITY, ORIENTATION, WEEKDAYS } from './constants';
|
|
|
24
24
|
import { getOverrides, mergeOverrides } from '../helpers/overrides';
|
|
25
25
|
import { forkBlur, forkFocus, isFocusVisible } from '../utils/focusVisible';
|
|
26
26
|
|
|
27
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
27
28
|
const navBtnStyle = ({
|
|
28
29
|
$theme
|
|
29
30
|
}) => ({
|
|
@@ -249,6 +249,7 @@ export default class Calendar extends React.Component {
|
|
|
249
249
|
});
|
|
250
250
|
|
|
251
251
|
_defineProperty(this, "handleDateChange", data => {
|
|
252
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
252
253
|
const {
|
|
253
254
|
onChange = params => {}
|
|
254
255
|
} = this.props;
|
|
@@ -287,6 +288,7 @@ export default class Calendar extends React.Component {
|
|
|
287
288
|
});
|
|
288
289
|
|
|
289
290
|
_defineProperty(this, "handleTimeChange", (time, index) => {
|
|
291
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
290
292
|
const {
|
|
291
293
|
onChange = params => {}
|
|
292
294
|
} = this.props; // Save/update the time value in internal state
|
|
@@ -10,7 +10,7 @@ LICENSE file in the root directory of this source tree.
|
|
|
10
10
|
*/
|
|
11
11
|
import * as React from 'react';
|
|
12
12
|
import { MaskedInput } from '../input';
|
|
13
|
-
import { Popover, PLACEMENT } from '../popover';
|
|
13
|
+
import { Popover, PLACEMENT, ACCESSIBILITY_TYPE } from '../popover';
|
|
14
14
|
import Calendar from './calendar';
|
|
15
15
|
import { getOverrides } from '../helpers/overrides';
|
|
16
16
|
import getInterpolatedString from '../helpers/i18n-interpolation';
|
|
@@ -51,6 +51,7 @@ export default class Datepicker extends React.Component {
|
|
|
51
51
|
|
|
52
52
|
if (Array.isArray(date)) {
|
|
53
53
|
if (onChange && date.every(Boolean)) {
|
|
54
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
54
55
|
onChange({
|
|
55
56
|
date: date
|
|
56
57
|
});
|
|
@@ -462,6 +463,7 @@ export default class Datepicker extends React.Component {
|
|
|
462
463
|
const [EndDate, endDateProps] = getOverrides(overrides.EndDate, StyledEndDate);
|
|
463
464
|
const [InputLabel, inputLabelProps] = getOverrides(overrides.InputLabel, StyledInputLabel);
|
|
464
465
|
return /*#__PURE__*/React.createElement(LocaleContext.Consumer, null, locale => /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(PopoverComponent, _extends({
|
|
466
|
+
accessibilityType: ACCESSIBILITY_TYPE.none,
|
|
465
467
|
focusLock: false,
|
|
466
468
|
autoFocus: false,
|
|
467
469
|
mountNode: this.props.mountNode,
|
package/es/datepicker/day.js
CHANGED
|
@@ -228,7 +228,8 @@ export default class Day extends React.Component {
|
|
|
228
228
|
this.dayElm.focus();
|
|
229
229
|
}
|
|
230
230
|
}
|
|
231
|
-
}
|
|
231
|
+
} // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
232
|
+
|
|
232
233
|
|
|
233
234
|
componentDidUpdate(prevProps) {
|
|
234
235
|
if (this.dayElm && this.props.focusedCalendar) {
|
package/es/datepicker/index.js
CHANGED
|
@@ -12,7 +12,7 @@ export { default as StatefulDatepicker, default as StatefulDatePicker } from './
|
|
|
12
12
|
|
|
13
13
|
export { formatDate } from './utils'; // Constants
|
|
14
14
|
|
|
15
|
-
export { ORIENTATION, STATE_CHANGE_TYPE } from './constants'; // Styled elements
|
|
15
|
+
export { DENSITY, ORIENTATION, STATE_CHANGE_TYPE } from './constants'; // Styled elements
|
|
16
16
|
|
|
17
17
|
export * from './styled-components'; // Dependency components and their types
|
|
18
18
|
|
|
@@ -14,7 +14,10 @@ import Calendar from './calendar';
|
|
|
14
14
|
|
|
15
15
|
class StatefulComponent extends React.Component {
|
|
16
16
|
render() {
|
|
17
|
-
return /*#__PURE__*/React.createElement(StatefulContainer, this.props, extendedProps =>
|
|
17
|
+
return /*#__PURE__*/React.createElement(StatefulContainer, this.props, extendedProps =>
|
|
18
|
+
/*#__PURE__*/
|
|
19
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
20
|
+
React.createElement(Calendar, _extends({}, extendedProps, {
|
|
18
21
|
onChange: extendedProps.onChange
|
|
19
22
|
})));
|
|
20
23
|
}
|
|
@@ -25,6 +25,7 @@ class StatefulContainer extends React.Component {
|
|
|
25
25
|
if (onChange) {
|
|
26
26
|
if (Array.isArray(date)) {
|
|
27
27
|
if (date.every(Boolean)) {
|
|
28
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
28
29
|
onChange({
|
|
29
30
|
date: date
|
|
30
31
|
});
|
|
@@ -60,6 +61,7 @@ class StatefulContainer extends React.Component {
|
|
|
60
61
|
}
|
|
61
62
|
|
|
62
63
|
render() {
|
|
64
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
63
65
|
const {
|
|
64
66
|
children,
|
|
65
67
|
initialState,
|
|
@@ -13,8 +13,12 @@ import StatefulContainer from './stateful-container';
|
|
|
13
13
|
import Datepicker from './datepicker';
|
|
14
14
|
|
|
15
15
|
class StatefulComponent extends React.Component {
|
|
16
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
16
17
|
render() {
|
|
17
|
-
return /*#__PURE__*/React.createElement(StatefulContainer, this.props, extendedProps =>
|
|
18
|
+
return /*#__PURE__*/React.createElement(StatefulContainer, this.props, extendedProps =>
|
|
19
|
+
/*#__PURE__*/
|
|
20
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
21
|
+
React.createElement(Datepicker, _extends({}, extendedProps, {
|
|
18
22
|
onChange: extendedProps.onChange
|
|
19
23
|
})));
|
|
20
24
|
}
|
|
@@ -24,12 +24,14 @@ export const StyledInputWrapper = styled('div', props => {
|
|
|
24
24
|
};
|
|
25
25
|
});
|
|
26
26
|
StyledInputWrapper.displayName = "StyledInputWrapper";
|
|
27
|
+
StyledInputWrapper.displayName = 'StyledInputWrapper';
|
|
27
28
|
export const StyledInputLabel = styled('div', ({
|
|
28
29
|
$theme
|
|
29
30
|
}) => ({ ...$theme.typography.LabelMedium,
|
|
30
31
|
marginBottom: $theme.sizing.scale300
|
|
31
32
|
}));
|
|
32
33
|
StyledInputLabel.displayName = "StyledInputLabel";
|
|
34
|
+
StyledInputLabel.displayName = 'StyledInputLabel';
|
|
33
35
|
export const StyledStartDate = styled('div', ({
|
|
34
36
|
$theme
|
|
35
37
|
}) => ({
|
|
@@ -37,16 +39,19 @@ export const StyledStartDate = styled('div', ({
|
|
|
37
39
|
marginRight: $theme.sizing.scale300
|
|
38
40
|
}));
|
|
39
41
|
StyledStartDate.displayName = "StyledStartDate";
|
|
42
|
+
StyledStartDate.displayName = 'StyledStartDate'; // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
43
|
+
|
|
40
44
|
export const StyledEndDate = styled('div', ({
|
|
41
45
|
$theme
|
|
42
46
|
}) => ({
|
|
43
47
|
width: '100%'
|
|
44
48
|
}));
|
|
49
|
+
StyledEndDate.displayName = "StyledEndDate";
|
|
50
|
+
StyledEndDate.displayName = 'StyledEndDate';
|
|
45
51
|
/**
|
|
46
52
|
* Main component container element
|
|
47
53
|
*/
|
|
48
54
|
|
|
49
|
-
StyledEndDate.displayName = "StyledEndDate";
|
|
50
55
|
export const StyledRoot = styled('div', props => {
|
|
51
56
|
const {
|
|
52
57
|
$theme: {
|
|
@@ -67,6 +72,7 @@ export const StyledRoot = styled('div', props => {
|
|
|
67
72
|
};
|
|
68
73
|
});
|
|
69
74
|
StyledRoot.displayName = "StyledRoot";
|
|
75
|
+
StyledRoot.displayName = 'StyledRoot';
|
|
70
76
|
export const StyledMonthContainer = styled('div', props => {
|
|
71
77
|
const {
|
|
72
78
|
$orientation
|
|
@@ -77,6 +83,7 @@ export const StyledMonthContainer = styled('div', props => {
|
|
|
77
83
|
};
|
|
78
84
|
});
|
|
79
85
|
StyledMonthContainer.displayName = "StyledMonthContainer";
|
|
86
|
+
StyledMonthContainer.displayName = 'StyledMonthContainer';
|
|
80
87
|
export const StyledCalendarContainer = styled('div', props => {
|
|
81
88
|
const {
|
|
82
89
|
$theme: {
|
|
@@ -92,6 +99,7 @@ export const StyledCalendarContainer = styled('div', props => {
|
|
|
92
99
|
};
|
|
93
100
|
});
|
|
94
101
|
StyledCalendarContainer.displayName = "StyledCalendarContainer";
|
|
102
|
+
StyledCalendarContainer.displayName = 'StyledCalendarContainer';
|
|
95
103
|
export const StyledSelectorContainer = styled('div', ({
|
|
96
104
|
$theme
|
|
97
105
|
}) => {
|
|
@@ -104,6 +112,7 @@ export const StyledSelectorContainer = styled('div', ({
|
|
|
104
112
|
};
|
|
105
113
|
});
|
|
106
114
|
StyledSelectorContainer.displayName = "StyledSelectorContainer";
|
|
115
|
+
StyledSelectorContainer.displayName = 'StyledSelectorContainer';
|
|
107
116
|
export const StyledCalendarHeader = styled('div', props => {
|
|
108
117
|
const {
|
|
109
118
|
$theme: {
|
|
@@ -133,6 +142,7 @@ export const StyledCalendarHeader = styled('div', props => {
|
|
|
133
142
|
};
|
|
134
143
|
});
|
|
135
144
|
StyledCalendarHeader.displayName = "StyledCalendarHeader";
|
|
145
|
+
StyledCalendarHeader.displayName = 'StyledCalendarHeader';
|
|
136
146
|
export const StyledMonthHeader = styled('div', props => {
|
|
137
147
|
return {
|
|
138
148
|
color: props.$theme.colors.calendarHeaderForeground,
|
|
@@ -141,6 +151,7 @@ export const StyledMonthHeader = styled('div', props => {
|
|
|
141
151
|
};
|
|
142
152
|
});
|
|
143
153
|
StyledMonthHeader.displayName = "StyledMonthHeader";
|
|
154
|
+
StyledMonthHeader.displayName = 'StyledMonthHeader';
|
|
144
155
|
export const StyledMonthYearSelectButton = styled('button', props => {
|
|
145
156
|
const {
|
|
146
157
|
$theme: {
|
|
@@ -167,6 +178,7 @@ export const StyledMonthYearSelectButton = styled('button', props => {
|
|
|
167
178
|
};
|
|
168
179
|
});
|
|
169
180
|
StyledMonthYearSelectButton.displayName = "StyledMonthYearSelectButton";
|
|
181
|
+
StyledMonthYearSelectButton.displayName = 'StyledMonthYearSelectButton';
|
|
170
182
|
export const StyledMonthYearSelectIconContainer = styled('span', props => {
|
|
171
183
|
const marginDirection = props.$theme.direction === 'rtl' ? 'marginRight' : 'marginLeft';
|
|
172
184
|
return {
|
|
@@ -176,6 +188,7 @@ export const StyledMonthYearSelectIconContainer = styled('span', props => {
|
|
|
176
188
|
};
|
|
177
189
|
});
|
|
178
190
|
StyledMonthYearSelectIconContainer.displayName = "StyledMonthYearSelectIconContainer";
|
|
191
|
+
StyledMonthYearSelectIconContainer.displayName = 'StyledMonthYearSelectIconContainer';
|
|
179
192
|
|
|
180
193
|
function getArrowBtnStyle({
|
|
181
194
|
$theme,
|
|
@@ -207,14 +220,18 @@ function getArrowBtnStyle({
|
|
|
207
220
|
|
|
208
221
|
export const StyledPrevButton = styled('button', getArrowBtnStyle);
|
|
209
222
|
StyledPrevButton.displayName = "StyledPrevButton";
|
|
223
|
+
StyledPrevButton.displayName = 'StyledPrevButton';
|
|
210
224
|
export const StyledNextButton = styled('button', getArrowBtnStyle);
|
|
211
225
|
StyledNextButton.displayName = "StyledNextButton";
|
|
226
|
+
StyledNextButton.displayName = 'StyledNextButton'; // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
227
|
+
|
|
212
228
|
export const StyledMonth = styled('div', props => {
|
|
213
229
|
return {
|
|
214
230
|
display: 'inline-block'
|
|
215
231
|
};
|
|
216
232
|
});
|
|
217
233
|
StyledMonth.displayName = "StyledMonth";
|
|
234
|
+
StyledMonth.displayName = 'StyledMonth';
|
|
218
235
|
export const StyledWeek = styled('div', props => {
|
|
219
236
|
const {
|
|
220
237
|
$theme: {
|
|
@@ -228,6 +245,7 @@ export const StyledWeek = styled('div', props => {
|
|
|
228
245
|
};
|
|
229
246
|
});
|
|
230
247
|
StyledWeek.displayName = "StyledWeek";
|
|
248
|
+
StyledWeek.displayName = 'StyledWeek';
|
|
231
249
|
|
|
232
250
|
function generateDayStyles(defaultCode, defaultStyle) {
|
|
233
251
|
const codeForSM = defaultCode.substr(0, 12) + '1' + defaultCode.substr(12 + 1);
|
|
@@ -237,7 +255,8 @@ function generateDayStyles(defaultCode, defaultStyle) {
|
|
|
237
255
|
[codeForSM]: defaultStyle,
|
|
238
256
|
[codeForEM]: defaultStyle
|
|
239
257
|
};
|
|
240
|
-
}
|
|
258
|
+
} // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
259
|
+
|
|
241
260
|
|
|
242
261
|
function getDayStyles(code, {
|
|
243
262
|
colors
|
|
@@ -573,10 +592,12 @@ export const StyledDay = styled('div', props => {
|
|
|
573
592
|
} : {})
|
|
574
593
|
}
|
|
575
594
|
} : // a hack to make flow happy, otherwise it complains about complexity
|
|
595
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
576
596
|
{})
|
|
577
597
|
};
|
|
578
598
|
});
|
|
579
599
|
StyledDay.displayName = "StyledDay";
|
|
600
|
+
StyledDay.displayName = 'StyledDay';
|
|
580
601
|
export const StyledDayLabel = styled('div', props => {
|
|
581
602
|
const {
|
|
582
603
|
$theme: {
|
|
@@ -590,6 +611,7 @@ export const StyledDayLabel = styled('div', props => {
|
|
|
590
611
|
};
|
|
591
612
|
});
|
|
592
613
|
StyledDayLabel.displayName = "StyledDayLabel";
|
|
614
|
+
StyledDayLabel.displayName = 'StyledDayLabel';
|
|
593
615
|
export const StyledWeekdayHeader = styled('div', props => {
|
|
594
616
|
const {
|
|
595
617
|
$theme: {
|
|
@@ -621,4 +643,5 @@ export const StyledWeekdayHeader = styled('div', props => {
|
|
|
621
643
|
backgroundColor: 'transparent'
|
|
622
644
|
};
|
|
623
645
|
});
|
|
624
|
-
StyledWeekdayHeader.displayName = "StyledWeekdayHeader";
|
|
646
|
+
StyledWeekdayHeader.displayName = "StyledWeekdayHeader";
|
|
647
|
+
StyledWeekdayHeader.displayName = 'StyledWeekdayHeader';
|
|
@@ -59,7 +59,8 @@ class DateHelpers {
|
|
|
59
59
|
locale: instance.locale
|
|
60
60
|
});
|
|
61
61
|
|
|
62
|
-
const updateOptions = updateOptionsBase || defaultGetOptions;
|
|
62
|
+
const updateOptions = updateOptionsBase || defaultGetOptions; // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
63
|
+
|
|
63
64
|
const UtilsClass = adapter.constructor;
|
|
64
65
|
const className = adapter.constructor.name; // This ensures that if the adapter class isn't
|
|
65
66
|
// supported it just falls back the default formats
|
|
@@ -76,5 +76,6 @@ export const subMonths = createDirtySetter(defaultDateHelpers.subMonths);
|
|
|
76
76
|
export const subYears = createDirtySetter(defaultDateHelpers.subYears); // ** Date Comparison
|
|
77
77
|
|
|
78
78
|
export const isBefore = createDirtyCompare(defaultDateHelpers.isBefore);
|
|
79
|
-
export const isAfter = createDirtyCompare(defaultDateHelpers.isAfter);
|
|
79
|
+
export const isAfter = createDirtyCompare(defaultDateHelpers.isAfter); // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
80
|
+
|
|
80
81
|
export const format = (date, format, locale) => defaultDateHelpers.format(date, format, locale);
|
|
@@ -4,7 +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
|
-
import { styled } from '../styles
|
|
7
|
+
import { styled } from '../styles';
|
|
8
8
|
import { SIZE } from './constants';
|
|
9
9
|
export const StyledDivider = styled('hr', props => {
|
|
10
10
|
const {
|
|
@@ -55,4 +55,5 @@ export const StyledDivider = styled('hr', props => {
|
|
|
55
55
|
borderLeftStyle: 'none'
|
|
56
56
|
};
|
|
57
57
|
});
|
|
58
|
-
StyledDivider.displayName = "StyledDivider";
|
|
58
|
+
StyledDivider.displayName = "StyledDivider";
|
|
59
|
+
StyledDivider.displayName = 'StyledDivider';
|
|
@@ -9,6 +9,7 @@ import { styled } from '../styles';
|
|
|
9
9
|
/**
|
|
10
10
|
* Main component container element
|
|
11
11
|
*/
|
|
12
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
12
13
|
export const Root = styled('div', ({
|
|
13
14
|
$theme
|
|
14
15
|
}) => {
|
|
@@ -17,6 +18,7 @@ export const Root = styled('div', ({
|
|
|
17
18
|
};
|
|
18
19
|
});
|
|
19
20
|
Root.displayName = "Root";
|
|
21
|
+
Root.displayName = 'Root';
|
|
20
22
|
Root.displayName = 'StyledRoot';
|
|
21
23
|
export const List = styled('ul', ({
|
|
22
24
|
$isDragged
|
|
@@ -28,6 +30,7 @@ export const List = styled('ul', ({
|
|
|
28
30
|
};
|
|
29
31
|
});
|
|
30
32
|
List.displayName = "List";
|
|
33
|
+
List.displayName = 'List';
|
|
31
34
|
List.displayName = 'StyledList';
|
|
32
35
|
export const Item = styled('li', ({
|
|
33
36
|
$isDragged,
|
|
@@ -81,6 +84,7 @@ export const Item = styled('li', ({
|
|
|
81
84
|
};
|
|
82
85
|
});
|
|
83
86
|
Item.displayName = "Item";
|
|
87
|
+
Item.displayName = 'Item';
|
|
84
88
|
List.displayName = 'StyledItem';
|
|
85
89
|
export const DragHandle = styled('div', ({
|
|
86
90
|
$theme
|
|
@@ -95,6 +99,7 @@ export const DragHandle = styled('div', ({
|
|
|
95
99
|
};
|
|
96
100
|
});
|
|
97
101
|
DragHandle.displayName = "DragHandle";
|
|
102
|
+
DragHandle.displayName = 'DragHandle';
|
|
98
103
|
DragHandle.displayName = 'StyledDragHandle';
|
|
99
104
|
export const CloseHandle = styled('button', ({
|
|
100
105
|
$theme,
|
|
@@ -123,6 +128,7 @@ export const CloseHandle = styled('button', ({
|
|
|
123
128
|
};
|
|
124
129
|
});
|
|
125
130
|
CloseHandle.displayName = "CloseHandle";
|
|
131
|
+
CloseHandle.displayName = 'CloseHandle';
|
|
126
132
|
CloseHandle.displayName = 'StyledCloseHandle';
|
|
127
133
|
export const Label = styled('div', ({
|
|
128
134
|
$theme
|
|
@@ -131,4 +137,5 @@ export const Label = styled('div', ({
|
|
|
131
137
|
...$theme.typography.font300
|
|
132
138
|
}));
|
|
133
139
|
Label.displayName = "Label";
|
|
140
|
+
Label.displayName = 'Label';
|
|
134
141
|
Label.displayName = 'StyledLabel';
|
package/es/drawer/constants.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 const SIZE = {
|
|
8
9
|
default: 'default',
|
|
9
10
|
full: 'full',
|
package/es/drawer/drawer.js
CHANGED
|
@@ -10,8 +10,6 @@ LICENSE file in the root directory of this source tree.
|
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
/* global document */
|
|
13
|
-
|
|
14
|
-
/* eslint-disable cup/no-undef */
|
|
15
13
|
import * as React from 'react';
|
|
16
14
|
import FocusLock from 'react-focus-lock';
|
|
17
15
|
import { LocaleContext } from '../locale';
|
|
@@ -143,6 +141,7 @@ class Drawer extends React.Component {
|
|
|
143
141
|
if (mountNode) {
|
|
144
142
|
return mountNode;
|
|
145
143
|
} // Flow thinks body could be null (cast through any)
|
|
144
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
146
145
|
|
|
147
146
|
|
|
148
147
|
return document.body;
|
|
@@ -154,7 +153,6 @@ class Drawer extends React.Component {
|
|
|
154
153
|
}
|
|
155
154
|
|
|
156
155
|
if (this.animateStartTimer) {
|
|
157
|
-
// eslint-disable-next-line cup/no-undef
|
|
158
156
|
cancelAnimationFrame(this.animateStartTimer);
|
|
159
157
|
}
|
|
160
158
|
}
|
|
@@ -170,8 +168,7 @@ class Drawer extends React.Component {
|
|
|
170
168
|
|
|
171
169
|
|
|
172
170
|
this.clearTimers();
|
|
173
|
-
this.disableMountNodeScroll();
|
|
174
|
-
|
|
171
|
+
this.disableMountNodeScroll();
|
|
175
172
|
this.animateStartTimer = requestAnimationFrame(() => {
|
|
176
173
|
this.setState({
|
|
177
174
|
isVisible: true
|