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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "baseui",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.1.0",
|
|
4
4
|
"description": "A React Component library implementing the Base design language",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"e2e:serve": "static-server build-ladle --port 8080",
|
|
37
37
|
"e2e:test": "playwright test",
|
|
38
38
|
"e2e:test:ci": "PUPPETEER_TARGET_URL=http://e2e-server:8080 yarn e2e:test",
|
|
39
|
-
"vrt": "playwright test --config playwright-vrt.config.
|
|
39
|
+
"vrt": "playwright test --config playwright-vrt.config.ts",
|
|
40
40
|
"vrt:docker:run": "docker-compose run e2e-test bash -c 'PUPPETEER_TARGET_URL=http://e2e-server:8080 yarn vrt'",
|
|
41
41
|
"vrt:docker:update": "docker-compose run e2e-test bash -c 'PUPPETEER_TARGET_URL=http://e2e-server:8080 yarn vrt --update'",
|
|
42
42
|
"vrt:ci": "PUPPETEER_TARGET_URL=http://e2e-server:8080 node ./vrt/ci.js",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"documentation:build": "run-s prebuild build:cjs next:build next:export",
|
|
54
54
|
"documentation:serve": "static-server public --port 8081",
|
|
55
55
|
"next:dev": "next dev documentation-site",
|
|
56
|
-
"next:build": "NODE_OPTIONS=--max_old_space_size=
|
|
56
|
+
"next:build": "NODE_OPTIONS=--max_old_space_size=8192 next build documentation-site",
|
|
57
57
|
"next:export": "next export documentation-site -o public",
|
|
58
58
|
"tsc": "tsc",
|
|
59
59
|
"validate:examples": "node ./scripts/validate-examples.js"
|
|
@@ -85,12 +85,12 @@
|
|
|
85
85
|
"@date-io/luxon": "^2.7.0",
|
|
86
86
|
"@date-io/moment": "^2.7.0",
|
|
87
87
|
"@dubstep/core": "^3.5.3",
|
|
88
|
-
"@ladle/react": "^
|
|
88
|
+
"@ladle/react": "^2.0.2",
|
|
89
89
|
"@mdx-js/tag": "^0.20.0",
|
|
90
90
|
"@octokit/rest": "^16.33.1",
|
|
91
|
-
"@playwright/test": "^1.
|
|
91
|
+
"@playwright/test": "^1.24.0",
|
|
92
92
|
"@svgr/cli": "^4.3.2",
|
|
93
|
-
"@testing-library/dom": "^8.
|
|
93
|
+
"@testing-library/dom": "^8.17.1",
|
|
94
94
|
"@testing-library/jest-dom": "^5.16.3",
|
|
95
95
|
"@testing-library/react": "^12.1.4",
|
|
96
96
|
"@testing-library/user-event": "^13.5.0",
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
"@typescript-eslint/parser": "^5.26.0",
|
|
118
118
|
"@zeit/next-css": "^1.0.1",
|
|
119
119
|
"@zeit/next-mdx": "^1.2.0",
|
|
120
|
-
"axe-core": "^4.
|
|
120
|
+
"axe-core": "^4.4.3",
|
|
121
121
|
"babel-core": "^7.0.0-bridge.0",
|
|
122
122
|
"babel-eslint": "10.1.0",
|
|
123
123
|
"babel-jest": "^24.0.0",
|
|
@@ -145,7 +145,6 @@
|
|
|
145
145
|
"eslint-plugin-react": "^7.27.0",
|
|
146
146
|
"eslint-plugin-react-hooks": "3.0.0",
|
|
147
147
|
"flow-bin": "0.131.0",
|
|
148
|
-
"flow-remove-types": "^2.179.0",
|
|
149
148
|
"globby": "^10.0.1",
|
|
150
149
|
"husky": "^3.0.0",
|
|
151
150
|
"isomorphic-fetch": "^2.2.1",
|
|
@@ -167,7 +166,7 @@
|
|
|
167
166
|
"node-fetch": "^2.6.1",
|
|
168
167
|
"now": "16.5.2",
|
|
169
168
|
"npm-run-all": "^4.1.5",
|
|
170
|
-
"playwright": "^1.
|
|
169
|
+
"playwright": "^1.24.0",
|
|
171
170
|
"prettier": "^2.5.1",
|
|
172
171
|
"pretty-proptypes": "^1.0.5",
|
|
173
172
|
"pretty-quick": "^1.4.1",
|
|
@@ -187,7 +186,6 @@
|
|
|
187
186
|
"react-view": "^2.3.3",
|
|
188
187
|
"react-vis": "^1.11.6",
|
|
189
188
|
"remove-flow-types-loader": "^1.1.0",
|
|
190
|
-
"rollup-pluginutils": "^2.8.2",
|
|
191
189
|
"semver": "^6.2.0",
|
|
192
190
|
"shx": "^0.3.2",
|
|
193
191
|
"static-server": "^2.2.1",
|
|
@@ -246,7 +244,7 @@
|
|
|
246
244
|
}
|
|
247
245
|
},
|
|
248
246
|
"volta": {
|
|
249
|
-
"node": "
|
|
247
|
+
"node": "16.16.0",
|
|
250
248
|
"yarn": "1.19.1"
|
|
251
249
|
},
|
|
252
250
|
"engines": {
|
|
@@ -115,6 +115,7 @@ exports.default = PaginationStatefulContainer;
|
|
|
115
115
|
|
|
116
116
|
_defineProperty(PaginationStatefulContainer, "defaultProps", {
|
|
117
117
|
initialState: initialState,
|
|
118
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
118
119
|
stateReducer: function stateReducer(changeType, changes) {
|
|
119
120
|
return changes;
|
|
120
121
|
}
|
|
@@ -23,6 +23,7 @@ var StyledRoot = (0, _styles.styled)('div', function (_ref) {
|
|
|
23
23
|
});
|
|
24
24
|
exports.StyledRoot = StyledRoot;
|
|
25
25
|
StyledRoot.displayName = "StyledRoot";
|
|
26
|
+
StyledRoot.displayName = 'StyledRoot';
|
|
26
27
|
var StyledMaxLabel = (0, _styles.styled)('span', function (_ref2) {
|
|
27
28
|
var _ref3;
|
|
28
29
|
|
|
@@ -33,6 +34,7 @@ var StyledMaxLabel = (0, _styles.styled)('span', function (_ref2) {
|
|
|
33
34
|
});
|
|
34
35
|
exports.StyledMaxLabel = StyledMaxLabel;
|
|
35
36
|
StyledMaxLabel.displayName = "StyledMaxLabel";
|
|
37
|
+
StyledMaxLabel.displayName = 'StyledMaxLabel';
|
|
36
38
|
var StyledDropdownContainer = (0, _styles.styled)('div', function (_ref4) {
|
|
37
39
|
var _ref5;
|
|
38
40
|
|
|
@@ -46,4 +48,5 @@ var StyledDropdownContainer = (0, _styles.styled)('div', function (_ref4) {
|
|
|
46
48
|
}, _defineProperty(_ref5, marginStartDir, $theme.sizing.scale600), _defineProperty(_ref5, marginEndDir, $theme.sizing.scale300), _ref5;
|
|
47
49
|
});
|
|
48
50
|
exports.StyledDropdownContainer = StyledDropdownContainer;
|
|
49
|
-
StyledDropdownContainer.displayName = "StyledDropdownContainer";
|
|
51
|
+
StyledDropdownContainer.displayName = "StyledDropdownContainer";
|
|
52
|
+
StyledDropdownContainer.displayName = 'StyledDropdownContainer';
|
package/pagination/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Override } from '../helpers/overrides';
|
|
2
|
-
import { STATE_CHANGE_TYPE } from './constants';
|
|
3
|
-
import { SIZE } from '../input';
|
|
2
|
+
import type { STATE_CHANGE_TYPE } from './constants';
|
|
3
|
+
import type { SIZE } from '../input';
|
|
4
4
|
export declare type Labels = {
|
|
5
5
|
prevButton?: string;
|
|
6
6
|
nextButton?: string;
|
|
@@ -20,4 +20,5 @@ var IconWrapper = (0, _styles.styled)('div', function (props) {
|
|
|
20
20
|
return _ref = {}, _defineProperty(_ref, $theme.direction === 'rtl' ? 'marginRight' : 'marginLeft', margin[$size]), _defineProperty(_ref, "height", '100%'), _defineProperty(_ref, "display", 'flex'), _defineProperty(_ref, "alignItems", 'center'), _ref;
|
|
21
21
|
});
|
|
22
22
|
exports.IconWrapper = IconWrapper;
|
|
23
|
-
IconWrapper.displayName = "IconWrapper";
|
|
23
|
+
IconWrapper.displayName = "IconWrapper";
|
|
24
|
+
IconWrapper.displayName = 'IconWrapper';
|
|
@@ -68,6 +68,7 @@ CountryPicker.defaultProps = {
|
|
|
68
68
|
};
|
|
69
69
|
|
|
70
70
|
var DropdownListItem = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
71
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
71
72
|
var children = props.children,
|
|
72
73
|
rest = _objectWithoutProperties(props, _excluded);
|
|
73
74
|
|
|
@@ -221,7 +222,8 @@ function CountryPicker(props) {
|
|
|
221
222
|
|
|
222
223
|
return /*#__PURE__*/_react.default.createElement(Select, _extends({
|
|
223
224
|
clearable: false,
|
|
224
|
-
disabled: disabled
|
|
225
|
+
disabled: disabled // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
226
|
+
,
|
|
225
227
|
getOptionLabel: function getOptionLabel(_ref) {
|
|
226
228
|
var option = _ref.option,
|
|
227
229
|
optionState = _ref.optionState;
|
|
@@ -129,6 +129,7 @@ function CountrySelectDropdown(props) {
|
|
|
129
129
|
style = _ref2.style;
|
|
130
130
|
|
|
131
131
|
// resetMenu and getItemLabel should not end up on native html elements
|
|
132
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
132
133
|
var _children$index$props = // @ts-expect-error todo(flow->ts) type issue introduced in react 17
|
|
133
134
|
children[index].props,
|
|
134
135
|
item = _children$index$props.item,
|
|
@@ -39,6 +39,7 @@ var StyledPhoneInputRoot = (0, _styles.styled)('div', {
|
|
|
39
39
|
});
|
|
40
40
|
exports.StyledPhoneInputRoot = StyledPhoneInputRoot;
|
|
41
41
|
StyledPhoneInputRoot.displayName = "StyledPhoneInputRoot";
|
|
42
|
+
StyledPhoneInputRoot.displayName = 'StyledPhoneInputRoot';
|
|
42
43
|
var StyledFlagContainer = (0, _styles.styled)('span', function (_ref) {
|
|
43
44
|
var _sizeToFont;
|
|
44
45
|
|
|
@@ -49,10 +50,11 @@ var StyledFlagContainer = (0, _styles.styled)('span', function (_ref) {
|
|
|
49
50
|
return {
|
|
50
51
|
fontSize: sizeToFont[$size]
|
|
51
52
|
};
|
|
52
|
-
});
|
|
53
|
-
|
|
53
|
+
});
|
|
54
54
|
exports.StyledFlagContainer = StyledFlagContainer;
|
|
55
55
|
StyledFlagContainer.displayName = "StyledFlagContainer";
|
|
56
|
+
StyledFlagContainer.displayName = 'StyledFlagContainer'; // An override component for the Select's Root styled element
|
|
57
|
+
|
|
56
58
|
var StyledRoot = (0, _styles.withStyle)(_select.StyledRoot, function (props) {
|
|
57
59
|
var _sizeToWidth;
|
|
58
60
|
|
|
@@ -65,6 +67,7 @@ var StyledRoot = (0, _styles.withStyle)(_select.StyledRoot, function (props) {
|
|
|
65
67
|
});
|
|
66
68
|
exports.StyledRoot = StyledRoot;
|
|
67
69
|
StyledRoot.displayName = "StyledRoot";
|
|
70
|
+
StyledRoot.displayName = 'StyledRoot';
|
|
68
71
|
var StyledDialCode = (0, _styles.styled)('div', function (_ref2) {
|
|
69
72
|
var _ref3;
|
|
70
73
|
|
|
@@ -76,12 +79,14 @@ var StyledDialCode = (0, _styles.styled)('div', function (_ref2) {
|
|
|
76
79
|
});
|
|
77
80
|
exports.StyledDialCode = StyledDialCode;
|
|
78
81
|
StyledDialCode.displayName = "StyledDialCode";
|
|
82
|
+
StyledDialCode.displayName = 'StyledDialCode';
|
|
79
83
|
var StyledCountrySelectContainer = (0, _styles.styled)('div', {
|
|
80
84
|
display: 'flex',
|
|
81
85
|
alignItems: 'center'
|
|
82
86
|
});
|
|
83
87
|
exports.StyledCountrySelectContainer = StyledCountrySelectContainer;
|
|
84
88
|
StyledCountrySelectContainer.displayName = "StyledCountrySelectContainer";
|
|
89
|
+
StyledCountrySelectContainer.displayName = 'StyledCountrySelectContainer';
|
|
85
90
|
var StyledCountrySelectDropdownContainer = (0, _styles.withStyle)(_menu.StyledList, function (props) {
|
|
86
91
|
var _props$$height = props.$height,
|
|
87
92
|
$height = _props$$height === void 0 ? _defaultProps.default.maxDropdownHeight : _props$$height;
|
|
@@ -93,6 +98,7 @@ var StyledCountrySelectDropdownContainer = (0, _styles.withStyle)(_menu.StyledLi
|
|
|
93
98
|
});
|
|
94
99
|
exports.StyledCountrySelectDropdownContainer = StyledCountrySelectDropdownContainer;
|
|
95
100
|
StyledCountrySelectDropdownContainer.displayName = "StyledCountrySelectDropdownContainer";
|
|
101
|
+
StyledCountrySelectDropdownContainer.displayName = 'StyledCountrySelectDropdownContainer';
|
|
96
102
|
var StyledCountrySelectDropdownListItemElement = (0, _styles.withStyle)(_select.StyledDropdownListItem, {
|
|
97
103
|
paddingTop: 0,
|
|
98
104
|
paddingBottom: 0,
|
|
@@ -104,13 +110,16 @@ var StyledCountrySelectDropdownListItemElement = (0, _styles.withStyle)(_select.
|
|
|
104
110
|
});
|
|
105
111
|
exports.StyledCountrySelectDropdownListItemElement = StyledCountrySelectDropdownListItemElement;
|
|
106
112
|
StyledCountrySelectDropdownListItemElement.displayName = "StyledCountrySelectDropdownListItemElement";
|
|
113
|
+
StyledCountrySelectDropdownListItemElement.displayName = 'StyledCountrySelectDropdownListItemElement';
|
|
107
114
|
var StyledCountrySelectDropdownListItem = (0, _styles.withWrapper)(StyledCountrySelectDropdownListItemElement, function (Styled) {
|
|
108
|
-
return
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
115
|
+
return (// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
116
|
+
function StyledCountrySelectDropdownListItem(_ref4) {
|
|
117
|
+
var item = _ref4.item,
|
|
118
|
+
restProps = _objectWithoutProperties(_ref4, _excluded);
|
|
119
|
+
|
|
120
|
+
return /*#__PURE__*/React.createElement(Styled, restProps);
|
|
121
|
+
}
|
|
122
|
+
);
|
|
114
123
|
});
|
|
115
124
|
exports.StyledCountrySelectDropdownListItem = StyledCountrySelectDropdownListItem;
|
|
116
125
|
var StyledCountrySelectDropdownFlagColumn = (0, _styles.styled)('div', function (_ref5) {
|
|
@@ -124,6 +133,7 @@ var StyledCountrySelectDropdownFlagColumn = (0, _styles.styled)('div', function
|
|
|
124
133
|
});
|
|
125
134
|
exports.StyledCountrySelectDropdownFlagColumn = StyledCountrySelectDropdownFlagColumn;
|
|
126
135
|
StyledCountrySelectDropdownFlagColumn.displayName = "StyledCountrySelectDropdownFlagColumn";
|
|
136
|
+
StyledCountrySelectDropdownFlagColumn.displayName = 'StyledCountrySelectDropdownFlagColumn';
|
|
127
137
|
var StyledCountrySelectDropdownNameColumn = (0, _styles.styled)('div', function (_ref7) {
|
|
128
138
|
var _ref7$$theme = _ref7.$theme,
|
|
129
139
|
direction = _ref7$$theme.direction,
|
|
@@ -133,6 +143,7 @@ var StyledCountrySelectDropdownNameColumn = (0, _styles.styled)('div', function
|
|
|
133
143
|
});
|
|
134
144
|
exports.StyledCountrySelectDropdownNameColumn = StyledCountrySelectDropdownNameColumn;
|
|
135
145
|
StyledCountrySelectDropdownNameColumn.displayName = "StyledCountrySelectDropdownNameColumn";
|
|
146
|
+
StyledCountrySelectDropdownNameColumn.displayName = 'StyledCountrySelectDropdownNameColumn';
|
|
136
147
|
var StyledCountrySelectDropdownDialcodeColumn = (0, _styles.styled)('div', function (_ref9) {
|
|
137
148
|
var _ref10;
|
|
138
149
|
|
|
@@ -144,4 +155,5 @@ var StyledCountrySelectDropdownDialcodeColumn = (0, _styles.styled)('div', funct
|
|
|
144
155
|
return _ref10 = {}, _defineProperty(_ref10, paddingDir, sizing.scale600), _defineProperty(_ref10, marginDir, 'auto'), _ref10;
|
|
145
156
|
});
|
|
146
157
|
exports.StyledCountrySelectDropdownDialcodeColumn = StyledCountrySelectDropdownDialcodeColumn;
|
|
147
|
-
StyledCountrySelectDropdownDialcodeColumn.displayName = "StyledCountrySelectDropdownDialcodeColumn";
|
|
158
|
+
StyledCountrySelectDropdownDialcodeColumn.displayName = "StyledCountrySelectDropdownDialcodeColumn";
|
|
159
|
+
StyledCountrySelectDropdownDialcodeColumn.displayName = 'StyledCountrySelectDropdownDialcodeColumn';
|
package/phone-input/types.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { STATE_CHANGE_TYPE, SIZE, COUNTRIES } from './constants';
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { STATE_CHANGE_TYPE, SIZE, COUNTRIES } from './constants';
|
|
3
3
|
import type { Override } from '../helpers/overrides';
|
|
4
4
|
import type { OnChangeParams } from '../select';
|
|
5
|
-
import type { ChangeEvent } from 'react';
|
|
6
5
|
export declare type Size = keyof typeof SIZE;
|
|
7
6
|
export declare type CountryIso = keyof typeof COUNTRIES;
|
|
8
7
|
export declare type Countries = Readonly<Country>;
|
|
@@ -101,7 +100,7 @@ export declare type PhoneInputProps = {
|
|
|
101
100
|
/** A handler for the country select's change events. */
|
|
102
101
|
onCountryChange: (event: OnChangeParams) => unknown;
|
|
103
102
|
/** A handler for the input element's change events. */
|
|
104
|
-
onTextChange: (event: ChangeEvent<HTMLInputElement>) => unknown;
|
|
103
|
+
onTextChange: (event: React.ChangeEvent<HTMLInputElement>) => unknown;
|
|
105
104
|
overrides: PhoneInputOverrides;
|
|
106
105
|
/** Sets the placeholder text for the input element. */
|
|
107
106
|
placeholder?: string;
|
|
@@ -125,12 +124,12 @@ export declare type StatefulPhoneInputContainerProps = {
|
|
|
125
124
|
children: (a: PhoneInputProps) => React.ReactNode;
|
|
126
125
|
initialState: State;
|
|
127
126
|
stateReducer: StateReducer;
|
|
128
|
-
onTextChange: (event: ChangeEvent<HTMLInputElement>) => unknown;
|
|
127
|
+
onTextChange: (event: React.ChangeEvent<HTMLInputElement>) => unknown;
|
|
129
128
|
onCountryChange: (event: OnChangeParams) => unknown;
|
|
130
129
|
} & PhoneInputProps;
|
|
131
130
|
export declare type StatefulPhoneInputProps = PhoneInputProps & {
|
|
132
131
|
initialState?: State;
|
|
133
132
|
stateReducer?: StateReducer;
|
|
134
|
-
onTextChange?: (event: ChangeEvent<HTMLInputElement>) => unknown;
|
|
133
|
+
onTextChange?: (event: React.ChangeEvent<HTMLInputElement>) => unknown;
|
|
135
134
|
onCountryChange?: (event: OnChangeParams) => unknown;
|
|
136
135
|
};
|
|
@@ -17,6 +17,7 @@ var StyledRoot = (0, _styles.styled)('div', {
|
|
|
17
17
|
});
|
|
18
18
|
exports.StyledRoot = StyledRoot;
|
|
19
19
|
StyledRoot.displayName = "StyledRoot";
|
|
20
|
+
StyledRoot.displayName = 'StyledRoot';
|
|
20
21
|
var StyledInputOverrideRoot = (0, _styles.withStyle)(_input.StyledRoot, function (_ref) {
|
|
21
22
|
var _SIZE$mini$SIZE$compa;
|
|
22
23
|
|
|
@@ -30,10 +31,12 @@ var StyledInputOverrideRoot = (0, _styles.withStyle)(_input.StyledRoot, function
|
|
|
30
31
|
});
|
|
31
32
|
exports.StyledInputOverrideRoot = StyledInputOverrideRoot;
|
|
32
33
|
StyledInputOverrideRoot.displayName = "StyledInputOverrideRoot";
|
|
34
|
+
StyledInputOverrideRoot.displayName = 'StyledInputOverrideRoot';
|
|
33
35
|
var StyledInputOverrideInput = (0, _styles.withStyle)(_input.StyledInput, {
|
|
34
36
|
textAlign: 'center',
|
|
35
37
|
paddingLeft: '0',
|
|
36
38
|
paddingRight: '0'
|
|
37
39
|
});
|
|
38
40
|
exports.StyledInputOverrideInput = StyledInputOverrideInput;
|
|
39
|
-
StyledInputOverrideInput.displayName = "StyledInputOverrideInput";
|
|
41
|
+
StyledInputOverrideInput.displayName = "StyledInputOverrideInput";
|
|
42
|
+
StyledInputOverrideInput.displayName = 'StyledInputOverrideInput';
|
package/pin-code/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
1
|
+
import type * as React from 'react';
|
|
2
2
|
import type { Override } from '../helpers/overrides';
|
|
3
|
-
import { SIZE, STATE_CHANGE_TYPE } from '../input';
|
|
3
|
+
import type { SIZE, STATE_CHANGE_TYPE } from '../input';
|
|
4
4
|
export declare type ChangeEvent = {
|
|
5
5
|
values: string[];
|
|
6
6
|
event: any;
|
package/popover/popover.js
CHANGED
|
@@ -184,13 +184,11 @@ var PopoverInner = /*#__PURE__*/function (_React$Component) {
|
|
|
184
184
|
var popper = _this.popperRef.current;
|
|
185
185
|
var anchor = _this.anchorRef.current; // Ignore document click if it came from popover or anchor
|
|
186
186
|
|
|
187
|
-
if (!popper || popper === target ||
|
|
188
|
-
target instanceof Node && popper.contains(target)) {
|
|
187
|
+
if (!popper || popper === target || target instanceof Node && popper.contains(target)) {
|
|
189
188
|
return;
|
|
190
189
|
}
|
|
191
190
|
|
|
192
|
-
if (!anchor || anchor === target ||
|
|
193
|
-
target instanceof Node && popper.contains(target)) {
|
|
191
|
+
if (!anchor || anchor === target || target instanceof Node && popper.contains(target)) {
|
|
194
192
|
return;
|
|
195
193
|
}
|
|
196
194
|
|
|
@@ -214,7 +212,7 @@ var PopoverInner = /*#__PURE__*/function (_React$Component) {
|
|
|
214
212
|
value: function componentDidUpdate(prevProps, prevState) {
|
|
215
213
|
this.init(prevProps, prevState);
|
|
216
214
|
|
|
217
|
-
if (this.props.autoFocus && !this.state.autoFocusAfterPositioning && this.popperRef.current !== null && this.popperRef.current.getBoundingClientRect().top > 0) {
|
|
215
|
+
if (this.props.accessibilityType !== _constants.ACCESSIBILITY_TYPE.tooltip && this.props.autoFocus && !this.state.autoFocusAfterPositioning && this.popperRef.current !== null && this.popperRef.current.getBoundingClientRect().top > 0) {
|
|
218
216
|
this.setState({
|
|
219
217
|
autoFocusAfterPositioning: true
|
|
220
218
|
});
|
|
@@ -346,10 +344,6 @@ var PopoverInner = /*#__PURE__*/function (_React$Component) {
|
|
|
346
344
|
value: function getAnchorProps() {
|
|
347
345
|
var isOpen = this.props.isOpen;
|
|
348
346
|
var anchorProps = {
|
|
349
|
-
'aria-haspopup': true,
|
|
350
|
-
'aria-expanded': isOpen ? true : false,
|
|
351
|
-
// @ts-expect-error todo(flow->ts): should it be here?
|
|
352
|
-
key: 'popover-anchor',
|
|
353
347
|
ref: this.anchorRef
|
|
354
348
|
};
|
|
355
349
|
var popoverId = this.getPopoverIdAttr();
|
|
@@ -357,6 +351,8 @@ var PopoverInner = /*#__PURE__*/function (_React$Component) {
|
|
|
357
351
|
if (this.isAccessibilityTypeMenu()) {
|
|
358
352
|
var relationAttr = this.isClickTrigger() ? 'aria-controls' : 'aria-owns';
|
|
359
353
|
anchorProps[relationAttr] = isOpen ? popoverId : null;
|
|
354
|
+
anchorProps['aria-haspopup'] = true;
|
|
355
|
+
anchorProps['aria-expanded'] = Boolean(isOpen);
|
|
360
356
|
} else if (this.isAccessibilityTypeTooltip()) {
|
|
361
357
|
anchorProps.id = this.getAnchorIdAttr();
|
|
362
358
|
anchorProps['aria-describedby'] = isOpen ? popoverId : null;
|
|
@@ -384,7 +380,6 @@ var PopoverInner = /*#__PURE__*/function (_React$Component) {
|
|
|
384
380
|
bodyProps.id = popoverId;
|
|
385
381
|
} else if (this.isAccessibilityTypeTooltip()) {
|
|
386
382
|
bodyProps.id = popoverId;
|
|
387
|
-
bodyProps.role = 'tooltip';
|
|
388
383
|
}
|
|
389
384
|
|
|
390
385
|
if (this.isHoverTrigger()) {
|
|
@@ -448,7 +443,9 @@ var PopoverInner = /*#__PURE__*/function (_React$Component) {
|
|
|
448
443
|
return /*#__PURE__*/React.cloneElement(anchor, anchorProps);
|
|
449
444
|
}
|
|
450
445
|
|
|
451
|
-
return /*#__PURE__*/React.createElement("span",
|
|
446
|
+
return /*#__PURE__*/React.createElement("span", _extends({
|
|
447
|
+
key: "popover-anchor"
|
|
448
|
+
}, anchorProps), anchor);
|
|
452
449
|
}
|
|
453
450
|
}, {
|
|
454
451
|
key: "renderPopover",
|
|
@@ -528,7 +525,7 @@ var PopoverInner = /*#__PURE__*/function (_React$Component) {
|
|
|
528
525
|
popperOptions: _objectSpread(_objectSpread({}, defaultPopperOptions), this.props.popperOptions),
|
|
529
526
|
onPopperUpdate: this.onPopperUpdate,
|
|
530
527
|
placement: this.state.placement
|
|
531
|
-
}, this.props.focusLock ? /*#__PURE__*/React.createElement(_reactFocusLock.default, {
|
|
528
|
+
}, this.props.focusLock && this.props.accessibilityType !== _constants.ACCESSIBILITY_TYPE.tooltip ? /*#__PURE__*/React.createElement(_reactFocusLock.default, {
|
|
532
529
|
disabled: !this.props.focusLock,
|
|
533
530
|
noFocusGuards: false // see popover-focus-loop.scenario.js for why hover cannot return focus
|
|
534
531
|
,
|
package/popover/popover.js.flow
CHANGED
|
@@ -240,20 +240,10 @@ class PopoverInner extends React.Component<PopoverPropsT, PopoverPrivateStateT>
|
|
|
240
240
|
const popper = this.popperRef.current;
|
|
241
241
|
const anchor = this.anchorRef.current;
|
|
242
242
|
// Ignore document click if it came from popover or anchor
|
|
243
|
-
if (
|
|
244
|
-
!popper ||
|
|
245
|
-
popper === target ||
|
|
246
|
-
// eslint-disable-next-line cup/no-undef
|
|
247
|
-
(target instanceof Node && popper.contains(target))
|
|
248
|
-
) {
|
|
243
|
+
if (!popper || popper === target || (target instanceof Node && popper.contains(target))) {
|
|
249
244
|
return;
|
|
250
245
|
}
|
|
251
|
-
if (
|
|
252
|
-
!anchor ||
|
|
253
|
-
anchor === target ||
|
|
254
|
-
// eslint-disable-next-line cup/no-undef
|
|
255
|
-
(target instanceof Node && popper.contains(target))
|
|
256
|
-
) {
|
|
246
|
+
if (!anchor || anchor === target || (target instanceof Node && popper.contains(target))) {
|
|
257
247
|
return;
|
|
258
248
|
}
|
|
259
249
|
if (this.props.onClickOutside) {
|
|
@@ -65,13 +65,13 @@ function getBodyStyles(props) {
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
var Body = (0, _styles.styled)('div', getBodyStyles);
|
|
68
|
+
exports.Body = Body;
|
|
69
|
+
Body.displayName = "Body";
|
|
70
|
+
Body.displayName = 'Body';
|
|
68
71
|
/**
|
|
69
72
|
* Arrow shown between the popover and the anchor element
|
|
70
73
|
*/
|
|
71
74
|
|
|
72
|
-
exports.Body = Body;
|
|
73
|
-
Body.displayName = "Body";
|
|
74
|
-
|
|
75
75
|
function getArrowStyles(props) {
|
|
76
76
|
var $arrowOffset = props.$arrowOffset,
|
|
77
77
|
$placement = props.$placement,
|
|
@@ -87,6 +87,9 @@ function getArrowStyles(props) {
|
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
var Arrow = (0, _styles.styled)('div', getArrowStyles);
|
|
90
|
+
exports.Arrow = Arrow;
|
|
91
|
+
Arrow.displayName = "Arrow";
|
|
92
|
+
Arrow.displayName = 'Arrow';
|
|
90
93
|
/**
|
|
91
94
|
* Extra div that holds the popover content. This extra element
|
|
92
95
|
* is needed for the arrow–the arrow is just a 45deg rotated div,
|
|
@@ -94,9 +97,6 @@ var Arrow = (0, _styles.styled)('div', getArrowStyles);
|
|
|
94
97
|
* clips the part of the arrow that extends into the popover.
|
|
95
98
|
*/
|
|
96
99
|
|
|
97
|
-
exports.Arrow = Arrow;
|
|
98
|
-
Arrow.displayName = "Arrow";
|
|
99
|
-
|
|
100
100
|
function getInnerStyles(_ref) {
|
|
101
101
|
var $theme = _ref.$theme;
|
|
102
102
|
return {
|
|
@@ -111,14 +111,15 @@ function getInnerStyles(_ref) {
|
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
var Inner = (0, _styles.styled)('div', getInnerStyles);
|
|
114
|
+
exports.Inner = Inner;
|
|
115
|
+
Inner.displayName = "Inner";
|
|
116
|
+
Inner.displayName = 'Inner';
|
|
114
117
|
/**
|
|
115
118
|
* A drop-in component that provides the recommended padding
|
|
116
119
|
* for popovers. Mostly a convenience for users so they don't
|
|
117
120
|
* have to define this themselves.
|
|
118
121
|
*/
|
|
119
122
|
|
|
120
|
-
exports.Inner = Inner;
|
|
121
|
-
Inner.displayName = "Inner";
|
|
122
123
|
var Padding = (0, _styles.styled)('div', {
|
|
123
124
|
paddingLeft: '12px',
|
|
124
125
|
paddingTop: '12px',
|
|
@@ -127,8 +128,10 @@ var Padding = (0, _styles.styled)('div', {
|
|
|
127
128
|
});
|
|
128
129
|
exports.Padding = Padding;
|
|
129
130
|
Padding.displayName = "Padding";
|
|
131
|
+
Padding.displayName = 'Padding';
|
|
130
132
|
var Hidden = (0, _styles.styled)('div', {
|
|
131
133
|
display: 'none'
|
|
132
134
|
});
|
|
133
135
|
exports.Hidden = Hidden;
|
|
134
|
-
Hidden.displayName = "Hidden";
|
|
136
|
+
Hidden.displayName = "Hidden";
|
|
137
|
+
Hidden.displayName = 'Hidden';
|
package/popover/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
1
|
+
import type * as React from 'react';
|
|
2
2
|
import type { Override } from '../helpers/overrides';
|
|
3
3
|
import type { TetherPlacement } from '../layer';
|
|
4
|
-
import { ACCESSIBILITY_TYPE, STATE_CHANGE_TYPE, TRIGGER_TYPE } from './constants';
|
|
4
|
+
import type { ACCESSIBILITY_TYPE, STATE_CHANGE_TYPE, TRIGGER_TYPE } from './constants';
|
|
5
5
|
export type { PopperDataObject, PopperOffset, PopperOptions } from '../layer';
|
|
6
6
|
export declare type PopoverPlacement = TetherPlacement;
|
|
7
7
|
export declare type TriggerType = keyof typeof TRIGGER_TYPE;
|
|
@@ -27,7 +27,8 @@ function getBarHeight(size) {
|
|
|
27
27
|
var _SIZE$small$SIZE$medi;
|
|
28
28
|
|
|
29
29
|
return (_SIZE$small$SIZE$medi = {}, _defineProperty(_SIZE$small$SIZE$medi, _constants.SIZE.small, '2px'), _defineProperty(_SIZE$small$SIZE$medi, _constants.SIZE.medium, '4px'), _defineProperty(_SIZE$small$SIZE$medi, _constants.SIZE.large, '8px'), _SIZE$small$SIZE$medi)[size];
|
|
30
|
-
}
|
|
30
|
+
} // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
31
|
+
|
|
31
32
|
|
|
32
33
|
var StyledRoot = (0, _styles.styled)('div', function (props) {
|
|
33
34
|
return {
|
|
@@ -36,6 +37,7 @@ var StyledRoot = (0, _styles.styled)('div', function (props) {
|
|
|
36
37
|
});
|
|
37
38
|
exports.StyledRoot = StyledRoot;
|
|
38
39
|
StyledRoot.displayName = "StyledRoot";
|
|
40
|
+
StyledRoot.displayName = 'StyledRoot';
|
|
39
41
|
var StyledBarContainer = (0, _styles.styled)('div', function (props) {
|
|
40
42
|
var $theme = props.$theme;
|
|
41
43
|
var sizing = $theme.sizing;
|
|
@@ -49,6 +51,7 @@ var StyledBarContainer = (0, _styles.styled)('div', function (props) {
|
|
|
49
51
|
});
|
|
50
52
|
exports.StyledBarContainer = StyledBarContainer;
|
|
51
53
|
StyledBarContainer.displayName = "StyledBarContainer";
|
|
54
|
+
StyledBarContainer.displayName = 'StyledBarContainer';
|
|
52
55
|
var StyledBar = (0, _styles.styled)('div', function (props) {
|
|
53
56
|
var $theme = props.$theme,
|
|
54
57
|
$size = props.$size,
|
|
@@ -75,6 +78,7 @@ var StyledBar = (0, _styles.styled)('div', function (props) {
|
|
|
75
78
|
});
|
|
76
79
|
exports.StyledBar = StyledBar;
|
|
77
80
|
StyledBar.displayName = "StyledBar";
|
|
81
|
+
StyledBar.displayName = 'StyledBar';
|
|
78
82
|
var StyledBarProgress = (0, _styles.styled)('div', function (props) {
|
|
79
83
|
var $theme = props.$theme,
|
|
80
84
|
$value = props.$value,
|
|
@@ -153,6 +157,7 @@ var StyledBarProgress = (0, _styles.styled)('div', function (props) {
|
|
|
153
157
|
});
|
|
154
158
|
exports.StyledBarProgress = StyledBarProgress;
|
|
155
159
|
StyledBarProgress.displayName = "StyledBarProgress";
|
|
160
|
+
StyledBarProgress.displayName = 'StyledBarProgress';
|
|
156
161
|
var StyledInfiniteBar = (0, _styles.styled)('div', function (props) {
|
|
157
162
|
var $theme = props.$theme,
|
|
158
163
|
_props$$isLeft = props.$isLeft,
|
|
@@ -217,6 +222,7 @@ var StyledInfiniteBar = (0, _styles.styled)('div', function (props) {
|
|
|
217
222
|
});
|
|
218
223
|
exports.StyledInfiniteBar = StyledInfiniteBar;
|
|
219
224
|
StyledInfiniteBar.displayName = "StyledInfiniteBar";
|
|
225
|
+
StyledInfiniteBar.displayName = 'StyledInfiniteBar';
|
|
220
226
|
var StyledLabel = (0, _styles.styled)('div', function (props) {
|
|
221
227
|
return _objectSpread(_objectSpread({
|
|
222
228
|
textAlign: 'center'
|
|
@@ -226,6 +232,7 @@ var StyledLabel = (0, _styles.styled)('div', function (props) {
|
|
|
226
232
|
});
|
|
227
233
|
exports.StyledLabel = StyledLabel;
|
|
228
234
|
StyledLabel.displayName = "StyledLabel";
|
|
235
|
+
StyledLabel.displayName = 'StyledLabel';
|
|
229
236
|
var PROGRESS_BAR_ROUNDED_SIZES = (_PROGRESS_BAR_ROUNDED = {}, _defineProperty(_PROGRESS_BAR_ROUNDED, _constants.SIZE.large, {
|
|
230
237
|
d: 'M47.5 4H71.5529C82.2933 4 91 12.9543 91 24C91 35.0457 82.2933 44 71.5529 44H23.4471C12.7067 44 4 35.0457 4 24C4 12.9543 12.7067 4 23.4471 4H47.5195',
|
|
231
238
|
width: 95,
|
|
@@ -259,6 +266,7 @@ var StyledProgressBarRoundedRoot = (0, _styles.styled)('div', function (_ref) {
|
|
|
259
266
|
});
|
|
260
267
|
exports.StyledProgressBarRoundedRoot = StyledProgressBarRoundedRoot;
|
|
261
268
|
StyledProgressBarRoundedRoot.displayName = "StyledProgressBarRoundedRoot";
|
|
269
|
+
StyledProgressBarRoundedRoot.displayName = 'StyledProgressBarRoundedRoot';
|
|
262
270
|
|
|
263
271
|
var _StyledProgressBarRoundedSvg = (0, _styles.styled)('svg', function (_ref2) {
|
|
264
272
|
var $size = _ref2.$size;
|
|
@@ -271,6 +279,7 @@ var _StyledProgressBarRoundedSvg = (0, _styles.styled)('svg', function (_ref2) {
|
|
|
271
279
|
});
|
|
272
280
|
|
|
273
281
|
_StyledProgressBarRoundedSvg.displayName = "_StyledProgressBarRoundedSvg";
|
|
282
|
+
_StyledProgressBarRoundedSvg.displayName = '_StyledProgressBarRoundedSvg';
|
|
274
283
|
var StyledProgressBarRoundedSvg = (0, _styles.withWrapper)(_StyledProgressBarRoundedSvg, function (Styled) {
|
|
275
284
|
return function StyledProgressBarRoundedSvg(props) {
|
|
276
285
|
return /*#__PURE__*/_react.default.createElement(Styled, _extends({
|
|
@@ -291,6 +300,7 @@ var _StyledProgressBarRoundedTrackBackground = (0, _styles.styled)('path', funct
|
|
|
291
300
|
});
|
|
292
301
|
|
|
293
302
|
_StyledProgressBarRoundedTrackBackground.displayName = "_StyledProgressBarRoundedTrackBackground";
|
|
303
|
+
_StyledProgressBarRoundedTrackBackground.displayName = '_StyledProgressBarRoundedTrackBackground';
|
|
294
304
|
var StyledProgressBarRoundedTrackBackground = (0, _styles.withWrapper)(_StyledProgressBarRoundedTrackBackground, function (Styled) {
|
|
295
305
|
return function StyledProgressBarRoundedSvg(props) {
|
|
296
306
|
return /*#__PURE__*/_react.default.createElement(Styled, _extends({
|
|
@@ -316,6 +326,7 @@ var _StyledProgressBarRoundedTrackForeground = (0, _styles.styled)('path', funct
|
|
|
316
326
|
});
|
|
317
327
|
|
|
318
328
|
_StyledProgressBarRoundedTrackForeground.displayName = "_StyledProgressBarRoundedTrackForeground";
|
|
329
|
+
_StyledProgressBarRoundedTrackForeground.displayName = '_StyledProgressBarRoundedTrackForeground';
|
|
319
330
|
var StyledProgressBarRoundedTrackForeground = (0, _styles.withWrapper)(_StyledProgressBarRoundedTrackForeground, function (Styled) {
|
|
320
331
|
return function StyledProgressBarRoundedSvg(props) {
|
|
321
332
|
return /*#__PURE__*/_react.default.createElement(Styled, _extends({
|
|
@@ -332,4 +343,5 @@ var StyledProgressBarRoundedText = (0, _styles.styled)('div', function (_ref5) {
|
|
|
332
343
|
}, $theme.typography[PROGRESS_BAR_ROUNDED_SIZES[$size].typography]);
|
|
333
344
|
});
|
|
334
345
|
exports.StyledProgressBarRoundedText = StyledProgressBarRoundedText;
|
|
335
|
-
StyledProgressBarRoundedText.displayName = "StyledProgressBarRoundedText";
|
|
346
|
+
StyledProgressBarRoundedText.displayName = "StyledProgressBarRoundedText";
|
|
347
|
+
StyledProgressBarRoundedText.displayName = 'StyledProgressBarRoundedText';
|
package/progress-bar/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
1
|
+
import type * as React from 'react';
|
|
2
2
|
import type { Override } from '../helpers/overrides';
|
|
3
|
-
import { SIZE } from './constants';
|
|
3
|
+
import type { SIZE } from './constants';
|
|
4
4
|
export declare type Size = keyof typeof SIZE;
|
|
5
5
|
export declare type ProgressBarOverrides = {
|
|
6
6
|
Root?: Override;
|
|
@@ -48,7 +48,8 @@ function ProgressSteps(_ref) {
|
|
|
48
48
|
Root = _getOverrides2[0],
|
|
49
49
|
rootProps = _getOverrides2[1];
|
|
50
50
|
|
|
51
|
-
var numChildren = React.Children.count(children);
|
|
51
|
+
var numChildren = React.Children.count(children); // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
52
|
+
|
|
52
53
|
var modifiedChildren = React.Children.map(children, function (child, index) {
|
|
53
54
|
if (!child) return;
|
|
54
55
|
var childOverrides = child.props.overrides || {};
|