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
|
@@ -109,14 +109,18 @@ var TimezonePicker = /*#__PURE__*/function (_React$Component) {
|
|
|
109
109
|
// Ignores timezones that are not available within a user's browser/operating system
|
|
110
110
|
console.error("failed to format zone name ".concat(zoneName));
|
|
111
111
|
}
|
|
112
|
-
}
|
|
113
|
-
|
|
112
|
+
}
|
|
114
113
|
} catch (err) {
|
|
115
114
|
_iterator.e(err);
|
|
116
115
|
} finally {
|
|
117
116
|
_iterator.f();
|
|
118
117
|
}
|
|
119
118
|
|
|
119
|
+
if (_this.props.additionalTimezones) {
|
|
120
|
+
timezones = timezones.concat(_this.props.additionalTimezones);
|
|
121
|
+
} // Sorts W -> E, prioritizes america. could be more nuanced based on system tz but simple for now
|
|
122
|
+
|
|
123
|
+
|
|
120
124
|
return timezones.sort(function (a, b) {
|
|
121
125
|
var offsetDelta = b.offset - a.offset;
|
|
122
126
|
if (offsetDelta !== 0) return offsetDelta;
|
|
@@ -4,4 +4,4 @@ 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
|
-
export var zones = ['Europe/Andorra', 'Asia/Dubai', 'Asia/Kabul', 'Europe/Tirane', 'Asia/Yerevan', 'Antarctica/Casey', 'Antarctica/Davis', 'Antarctica/Mawson', 'Antarctica/Palmer', 'Antarctica/Rothera', 'Antarctica/Troll', '
|
|
7
|
+
export var zones = ['Europe/Andorra', 'Asia/Dubai', 'Asia/Kabul', 'Europe/Tirane', 'Asia/Yerevan', 'Antarctica/Casey', 'Antarctica/Davis', 'Antarctica/Mawson', 'Antarctica/Palmer', 'Antarctica/Rothera', 'Antarctica/Troll', 'America/Argentina/Buenos_Aires', 'America/Argentina/Cordoba', 'America/Argentina/Salta', 'America/Argentina/Jujuy', 'America/Argentina/Tucuman', 'America/Argentina/Catamarca', 'America/Argentina/La_Rioja', 'America/Argentina/San_Juan', 'America/Argentina/Mendoza', 'America/Argentina/San_Luis', 'America/Argentina/Rio_Gallegos', 'America/Argentina/Ushuaia', 'Pacific/Pago_Pago', 'Europe/Vienna', 'Australia/Lord_Howe', 'Antarctica/Macquarie', 'Australia/Hobart', 'Australia/Melbourne', 'Australia/Sydney', 'Australia/Broken_Hill', 'Australia/Brisbane', 'Australia/Lindeman', 'Australia/Adelaide', 'Australia/Darwin', 'Australia/Perth', 'Australia/Eucla', 'Asia/Baku', 'America/Barbados', 'Asia/Dhaka', 'Europe/Brussels', 'Europe/Sofia', 'Atlantic/Bermuda', 'America/La_Paz', 'America/Noronha', 'America/Belem', 'America/Fortaleza', 'America/Recife', 'America/Araguaina', 'America/Maceio', 'America/Bahia', 'America/Sao_Paulo', 'America/Campo_Grande', 'America/Cuiaba', 'America/Santarem', 'America/Porto_Velho', 'America/Boa_Vista', 'America/Manaus', 'America/Eirunepe', 'America/Rio_Branco', 'Asia/Thimphu', 'Europe/Minsk', 'America/Belize', 'America/St_Johns', 'America/Halifax', 'America/Glace_Bay', 'America/Moncton', 'America/Goose_Bay', 'America/Toronto', 'America/Nipigon', 'America/Thunder_Bay', 'America/Iqaluit', 'America/Pangnirtung', 'America/Winnipeg', 'America/Rainy_River', 'America/Resolute', 'America/Rankin_Inlet', 'America/Regina', 'America/Swift_Current', 'America/Edmonton', 'America/Cambridge_Bay', 'America/Yellowknife', 'America/Inuvik', 'America/Dawson_Creek', 'America/Fort_Nelson', 'America/Whitehorse', 'America/Dawson', 'America/Vancouver', 'Europe/Zurich', 'Africa/Abidjan', 'Pacific/Rarotonga', 'America/Santiago', 'America/Punta_Arenas', 'Pacific/Easter', 'Asia/Shanghai', 'Asia/Urumqi', 'America/Bogota', 'America/Costa_Rica', 'America/Havana', 'Atlantic/Cape_Verde', 'Asia/Nicosia', 'Asia/Famagusta', 'Europe/Prague', 'Europe/Berlin', 'America/Santo_Domingo', 'Africa/Algiers', 'America/Guayaquil', 'Pacific/Galapagos', 'Europe/Tallinn', 'Africa/Cairo', 'Africa/El_Aaiun', 'Europe/Madrid', 'Africa/Ceuta', 'Atlantic/Canary', 'Europe/Helsinki', 'Pacific/Fiji', 'Atlantic/Stanley', 'Pacific/Kosrae', 'Atlantic/Faroe', 'Europe/Paris', 'Europe/London', 'Asia/Tbilisi', 'America/Cayenne', 'Europe/Gibraltar', 'America/Nuuk', 'America/Danmarkshavn', 'America/Scoresbysund', 'America/Thule', 'Europe/Athens', 'Atlantic/South_Georgia', 'America/Guatemala', 'Pacific/Guam', 'Africa/Bissau', 'America/Guyana', 'Asia/Hong_Kong', 'America/Tegucigalpa', 'America/Port-au-Prince', 'Europe/Budapest', 'Asia/Jakarta', 'Asia/Pontianak', 'Asia/Makassar', 'Asia/Jayapura', 'Europe/Dublin', 'Asia/Jerusalem', 'Asia/Kolkata', 'Indian/Chagos', 'Asia/Baghdad', 'Asia/Tehran', 'Europe/Rome', 'America/Jamaica', 'Asia/Amman', 'Asia/Tokyo', 'Africa/Nairobi', 'Asia/Bishkek', 'Pacific/Tarawa', 'Pacific/Kanton', 'Pacific/Kiritimati', 'Asia/Pyongyang', 'Asia/Seoul', 'Asia/Almaty', 'Asia/Qyzylorda', 'Asia/Qostanay', 'Asia/Aqtobe', 'Asia/Aqtau', 'Asia/Atyrau', 'Asia/Oral', 'Asia/Beirut', 'Asia/Colombo', 'Africa/Monrovia', 'Europe/Vilnius', 'Europe/Riga', 'Africa/Tripoli', 'Africa/Casablanca', 'Europe/Chisinau', 'Pacific/Kwajalein', 'Asia/Yangon', 'Asia/Ulaanbaatar', 'Asia/Hovd', 'Asia/Choibalsan', 'Asia/Macau', 'America/Martinique', 'Europe/Malta', 'Indian/Mauritius', 'Indian/Maldives', 'America/Mexico_City', 'America/Cancun', 'America/Merida', 'America/Monterrey', 'America/Matamoros', 'America/Mazatlan', 'America/Chihuahua', 'America/Ojinaga', 'America/Hermosillo', 'America/Tijuana', 'America/Bahia_Banderas', 'Asia/Kuching', 'Africa/Maputo', 'Africa/Windhoek', 'Pacific/Noumea', 'Pacific/Norfolk', 'Africa/Lagos', 'America/Managua', 'Asia/Kathmandu', 'Pacific/Nauru', 'Pacific/Niue', 'Pacific/Auckland', 'Pacific/Chatham', 'America/Panama', 'America/Lima', 'Pacific/Tahiti', 'Pacific/Marquesas', 'Pacific/Gambier', 'Pacific/Port_Moresby', 'Pacific/Bougainville', 'Asia/Manila', 'Asia/Karachi', 'Europe/Warsaw', 'America/Miquelon', 'Pacific/Pitcairn', 'America/Puerto_Rico', 'Asia/Gaza', 'Asia/Hebron', 'Europe/Lisbon', 'Atlantic/Madeira', 'Atlantic/Azores', 'Pacific/Palau', 'America/Asuncion', 'Asia/Qatar', 'Europe/Bucharest', 'Europe/Belgrade', 'Europe/Kaliningrad', 'Europe/Moscow', 'Europe/Simferopol', 'Europe/Kirov', 'Europe/Volgograd', 'Europe/Astrakhan', 'Europe/Saratov', 'Europe/Ulyanovsk', 'Europe/Samara', 'Asia/Yekaterinburg', 'Asia/Omsk', 'Asia/Novosibirsk', 'Asia/Barnaul', 'Asia/Tomsk', 'Asia/Novokuznetsk', 'Asia/Krasnoyarsk', 'Asia/Irkutsk', 'Asia/Chita', 'Asia/Yakutsk', 'Asia/Khandyga', 'Asia/Vladivostok', 'Asia/Ust-Nera', 'Asia/Magadan', 'Asia/Sakhalin', 'Asia/Srednekolymsk', 'Asia/Kamchatka', 'Asia/Anadyr', 'Asia/Riyadh', 'Pacific/Guadalcanal', 'Africa/Khartoum', 'Asia/Singapore', 'America/Paramaribo', 'Africa/Juba', 'Africa/Sao_Tome', 'America/El_Salvador', 'Asia/Damascus', 'America/Grand_Turk', 'Africa/Ndjamena', 'Asia/Bangkok', 'Asia/Dushanbe', 'Pacific/Fakaofo', 'Asia/Dili', 'Asia/Ashgabat', 'Africa/Tunis', 'Pacific/Tongatapu', 'Europe/Istanbul', 'Asia/Taipei', 'Europe/Kyiv', 'Europe/Uzhgorod', 'Europe/Zaporozhye', 'America/New_York', 'America/Detroit', 'America/Kentucky/Louisville', 'America/Kentucky/Monticello', 'America/Indiana/Indianapolis', 'America/Indiana/Vincennes', 'America/Indiana/Winamac', 'America/Indiana/Marengo', 'America/Indiana/Petersburg', 'America/Indiana/Vevay', 'America/Chicago', 'America/Indiana/Tell_City', 'America/Indiana/Knox', 'America/Menominee', 'America/North_Dakota/Center', 'America/North_Dakota/New_Salem', 'America/North_Dakota/Beulah', 'America/Denver', 'America/Boise', 'America/Phoenix', 'America/Los_Angeles', 'America/Anchorage', 'America/Juneau', 'America/Sitka', 'America/Metlakatla', 'America/Yakutat', 'America/Nome', 'America/Adak', 'Pacific/Honolulu', 'America/Montevideo', 'Asia/Samarkand', 'Asia/Tashkent', 'America/Caracas', 'Asia/Ho_Chi_Minh', 'Pacific/Efate', 'Pacific/Apia', 'Africa/Johannesburg'];
|
|
@@ -104,6 +104,7 @@ export var Root = styled('div', function (_ref) {
|
|
|
104
104
|
}, getPlacement($placement));
|
|
105
105
|
});
|
|
106
106
|
Root.displayName = "Root";
|
|
107
|
+
Root.displayName = 'Root';
|
|
107
108
|
export var InnerContainer = styled('div', // eslint-disable-next-line no-empty-pattern
|
|
108
109
|
function (_ref2) {
|
|
109
110
|
_objectDestructuringEmpty(_ref2);
|
|
@@ -111,6 +112,7 @@ function (_ref2) {
|
|
|
111
112
|
return {};
|
|
112
113
|
});
|
|
113
114
|
InnerContainer.displayName = "InnerContainer";
|
|
115
|
+
InnerContainer.displayName = 'InnerContainer';
|
|
114
116
|
export var Body = styled('div', function (_ref3) {
|
|
115
117
|
var $isVisible = _ref3.$isVisible,
|
|
116
118
|
$kind = _ref3.$kind,
|
|
@@ -143,6 +145,7 @@ export var Body = styled('div', function (_ref3) {
|
|
|
143
145
|
});
|
|
144
146
|
});
|
|
145
147
|
Body.displayName = "Body";
|
|
148
|
+
Body.displayName = 'Body';
|
|
146
149
|
export var CloseIconSvg = styled('svg', function (_ref4) {
|
|
147
150
|
var $theme = _ref4.$theme,
|
|
148
151
|
$size = _ref4.$size,
|
|
@@ -159,4 +162,5 @@ export var CloseIconSvg = styled('svg', function (_ref4) {
|
|
|
159
162
|
outline: $isFocusVisible ? "3px solid ".concat($theme.colors.accent) : 'none'
|
|
160
163
|
});
|
|
161
164
|
});
|
|
162
|
-
CloseIconSvg.displayName = "CloseIconSvg";
|
|
165
|
+
CloseIconSvg.displayName = "CloseIconSvg";
|
|
166
|
+
CloseIconSvg.displayName = 'CloseIconSvg';
|
package/esm/toast/toaster.js
CHANGED
|
@@ -60,8 +60,6 @@ Copyright (c) Uber Technologies, Inc.
|
|
|
60
60
|
This source code is licensed under the MIT license found in the
|
|
61
61
|
LICENSE file in the root directory of this source tree.
|
|
62
62
|
*/
|
|
63
|
-
|
|
64
|
-
/* eslint-disable cup/no-undef */
|
|
65
63
|
import * as React from 'react';
|
|
66
64
|
import ReactDOM from 'react-dom';
|
|
67
65
|
import { getOverrides, mergeOverrides } from '../helpers/overrides';
|
package/esm/tokens/colors.js
CHANGED
|
@@ -50,6 +50,14 @@ var colors = {
|
|
|
50
50
|
yellow500: '#BC8B2C',
|
|
51
51
|
yellow600: '#996F00',
|
|
52
52
|
yellow700: '#674D1B',
|
|
53
|
+
lime50: '#F2F7ED',
|
|
54
|
+
lime100: '#E0ECD2',
|
|
55
|
+
lime200: '#BCD69D',
|
|
56
|
+
lime300: '#8BB956',
|
|
57
|
+
lime400: '#67A421',
|
|
58
|
+
lime500: '#4E7C19',
|
|
59
|
+
lime600: '#3D6213',
|
|
60
|
+
lime700: '#29410d',
|
|
53
61
|
green50: '#E6F2ED',
|
|
54
62
|
green100: '#ADDEC9',
|
|
55
63
|
green200: '#66D19E',
|
|
@@ -58,6 +66,14 @@ var colors = {
|
|
|
58
66
|
green500: '#03703C',
|
|
59
67
|
green600: '#03582F',
|
|
60
68
|
green700: '#10462D',
|
|
69
|
+
teal50: '#EDF5F7',
|
|
70
|
+
teal100: '#D2E8EC',
|
|
71
|
+
teal200: '#9DCDD6',
|
|
72
|
+
teal300: '#56A9B9',
|
|
73
|
+
teal400: '#218EA4',
|
|
74
|
+
teal500: '#196B7C',
|
|
75
|
+
teal600: '#135562',
|
|
76
|
+
teal700: '#0D3841',
|
|
61
77
|
blue50: '#EFF3FE',
|
|
62
78
|
blue100: '#D4E2FC',
|
|
63
79
|
blue200: '#A0BFF8',
|
|
@@ -82,6 +98,14 @@ var colors = {
|
|
|
82
98
|
purple500: '#574191',
|
|
83
99
|
purple600: '#453473',
|
|
84
100
|
purple700: '#2E224C',
|
|
101
|
+
magenta50: '#F9F1F7',
|
|
102
|
+
magenta100: '#F2DDEB',
|
|
103
|
+
magenta200: '#E2B4D3',
|
|
104
|
+
magenta300: '#CE7EB3',
|
|
105
|
+
magenta400: '#BF569C',
|
|
106
|
+
magenta500: '#914176',
|
|
107
|
+
magenta600: '#72335D',
|
|
108
|
+
magenta700: '#4C223E',
|
|
85
109
|
brown50: '#F6F0EA',
|
|
86
110
|
brown100: '#EBE0DB',
|
|
87
111
|
brown200: '#D2BBB0',
|
|
@@ -40,6 +40,7 @@ export var Body = styled('div', function (props) {
|
|
|
40
40
|
});
|
|
41
41
|
});
|
|
42
42
|
Body.displayName = "Body";
|
|
43
|
+
Body.displayName = 'Body';
|
|
43
44
|
export var Inner = styled('div', function (props) {
|
|
44
45
|
return _objectSpread(_objectSpread(_objectSpread({}, getInnerStyles(props)), {}, {
|
|
45
46
|
backgroundColor: props.$theme.colors.tooltipBackground,
|
|
@@ -56,9 +57,11 @@ export var Inner = styled('div', function (props) {
|
|
|
56
57
|
});
|
|
57
58
|
});
|
|
58
59
|
Inner.displayName = "Inner";
|
|
60
|
+
Inner.displayName = 'Inner';
|
|
59
61
|
export var Arrow = styled('div', function (props) {
|
|
60
62
|
return _objectSpread(_objectSpread({}, getArrowStyles(props)), {}, {
|
|
61
63
|
backgroundColor: props.$theme.colors.tooltipBackground
|
|
62
64
|
});
|
|
63
65
|
});
|
|
64
|
-
Arrow.displayName = "Arrow";
|
|
66
|
+
Arrow.displayName = "Arrow";
|
|
67
|
+
Arrow.displayName = 'Arrow';
|
package/esm/tree-view/index.js
CHANGED
|
@@ -12,4 +12,5 @@ export { StyledTreeItemList, StyledTreeItem, StyledItemContent, StyledIconContai
|
|
|
12
12
|
export { default as TreeLabel } from './tree-label';
|
|
13
13
|
export { default as TreeLabelInteractable } from './tree-label-interactable';
|
|
14
14
|
export { toggleIsExpanded };
|
|
15
|
-
/** @deprecated use TreeNodeData instead. To be removed in future versions.*/
|
|
15
|
+
/** @deprecated use TreeNodeData instead. To be removed in future versions.*/
|
|
16
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -26,6 +26,7 @@ export var StyledTreeItemList = styled('ul', function (_ref) {
|
|
|
26
26
|
}, _defineProperty(_ref2, "margin".concat(direction), $isChildNode ? $theme.sizing.scale550 : 0), _defineProperty(_ref2, "overflow", 'auto'), _defineProperty(_ref2, "paddingTop", 0), _defineProperty(_ref2, "paddingBottom", 0), _defineProperty(_ref2, "padding".concat(direction), $isChildNode ? $theme.sizing.scale200 : 0), _defineProperty(_ref2, "position", 'relative'), _defineProperty(_ref2, "outline", 'none'), _defineProperty(_ref2, "display", $expanded ? 'block' : 'none'), _defineProperty(_ref2, "border".concat(direction), $indentGuides && $isChildNode ? "1px solid ".concat($theme.colors.borderOpaque) : 'none'), _ref2;
|
|
27
27
|
});
|
|
28
28
|
StyledTreeItemList.displayName = "StyledTreeItemList";
|
|
29
|
+
StyledTreeItemList.displayName = 'StyledTreeItemList';
|
|
29
30
|
export var StyledTreeItem = styled('li', function (_ref3) {
|
|
30
31
|
var $theme = _ref3.$theme,
|
|
31
32
|
$isLeafNode = _ref3.$isLeafNode;
|
|
@@ -45,6 +46,7 @@ export var StyledTreeItem = styled('li', function (_ref3) {
|
|
|
45
46
|
};
|
|
46
47
|
});
|
|
47
48
|
StyledTreeItem.displayName = "StyledTreeItem";
|
|
49
|
+
StyledTreeItem.displayName = 'StyledTreeItem';
|
|
48
50
|
export var StyledItemContent = styled('div', function (_ref4) {
|
|
49
51
|
var $theme = _ref4.$theme,
|
|
50
52
|
$isSelected = _ref4.$isSelected,
|
|
@@ -70,6 +72,7 @@ export var StyledItemContent = styled('div', function (_ref4) {
|
|
|
70
72
|
});
|
|
71
73
|
});
|
|
72
74
|
StyledItemContent.displayName = "StyledItemContent";
|
|
75
|
+
StyledItemContent.displayName = 'StyledItemContent';
|
|
73
76
|
export var StyledIconContainer = styled('div', function (_ref5) {
|
|
74
77
|
var $theme = _ref5.$theme;
|
|
75
78
|
var marginDirection = $theme.direction === 'rtl' ? 'marginLeft' : 'marginRight';
|
|
@@ -82,6 +85,7 @@ export var StyledIconContainer = styled('div', function (_ref5) {
|
|
|
82
85
|
}, marginDirection, $theme.sizing.scale200);
|
|
83
86
|
});
|
|
84
87
|
StyledIconContainer.displayName = "StyledIconContainer";
|
|
88
|
+
StyledIconContainer.displayName = 'StyledIconContainer';
|
|
85
89
|
export var StyledNoIconContainer = styled('div', function (_ref7) {
|
|
86
90
|
var _ref8;
|
|
87
91
|
|
|
@@ -96,9 +100,11 @@ export var StyledNoIconContainer = styled('div', function (_ref7) {
|
|
|
96
100
|
}, _defineProperty(_ref8, marginDirection, $theme.sizing.scale200), _defineProperty(_ref8, "width", 0), _defineProperty(_ref8, "height", '1em'), _ref8;
|
|
97
101
|
});
|
|
98
102
|
StyledNoIconContainer.displayName = "StyledNoIconContainer";
|
|
103
|
+
StyledNoIconContainer.displayName = 'StyledNoIconContainer';
|
|
99
104
|
export var StyledLabelInteractable = styled('div', function () {
|
|
100
105
|
return {
|
|
101
106
|
width: '100%'
|
|
102
107
|
};
|
|
103
108
|
});
|
|
104
|
-
StyledLabelInteractable.displayName = "StyledLabelInteractable";
|
|
109
|
+
StyledLabelInteractable.displayName = "StyledLabelInteractable";
|
|
110
|
+
StyledLabelInteractable.displayName = 'StyledLabelInteractable';
|
|
@@ -66,6 +66,7 @@ export default function TreeView(props) {
|
|
|
66
66
|
};
|
|
67
67
|
|
|
68
68
|
var onKeyDown = function onKeyDown(e, node) {
|
|
69
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
69
70
|
var elementId = e.target.getAttribute('data-nodeid'); // this check prevents bubbling
|
|
70
71
|
|
|
71
72
|
if (elementId !== getId(node) && parseInt(elementId) !== getId(node)) {
|
|
@@ -154,7 +155,8 @@ export default function TreeView(props) {
|
|
|
154
155
|
if (selectedNodeId === null && data.length) {
|
|
155
156
|
setSelectedNodeId(getId(data[0]));
|
|
156
157
|
}
|
|
157
|
-
};
|
|
158
|
+
}; // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
159
|
+
|
|
158
160
|
|
|
159
161
|
var onBlur = function onBlur(event) {
|
|
160
162
|
if (focusVisible) {
|
package/esm/types/globals.d.js
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c) Uber Technologies, Inc.
|
|
3
|
+
|
|
4
|
+
This source code is licensed under the MIT license found in the
|
|
5
|
+
LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
8
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
9
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10
|
+
var PlaywrightTest;
|
|
11
|
+
|
|
12
|
+
(function (_PlaywrightTest) {})(PlaywrightTest || (PlaywrightTest = {}));
|
package/esm/utils/deep-merge.js
CHANGED
|
@@ -6,8 +6,6 @@ Copyright (c) Uber Technologies, Inc.
|
|
|
6
6
|
This source code is licensed under the MIT license found in the
|
|
7
7
|
LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
-
|
|
10
|
-
/* flowlint unclear-type:off */
|
|
11
9
|
export default function deepMerge(target) {
|
|
12
10
|
target = target || {};
|
|
13
11
|
var len = arguments.length <= 1 ? 0 : arguments.length - 1;
|
|
@@ -34,9 +32,6 @@ export default function deepMerge(target) {
|
|
|
34
32
|
|
|
35
33
|
return target;
|
|
36
34
|
}
|
|
37
|
-
/* flowlint unclear-type:error */
|
|
38
|
-
|
|
39
|
-
/* eslint-disable-next-line flowtype/no-weak-types */
|
|
40
35
|
|
|
41
36
|
function isCloneable(obj) {
|
|
42
37
|
/* eslint-disable-next-line eqeqeq */
|
|
@@ -8,6 +8,7 @@ LICENSE file in the root directory of this source tree.
|
|
|
8
8
|
*/
|
|
9
9
|
import * as React from 'react';
|
|
10
10
|
export default function (Component, displayName) {
|
|
11
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
11
12
|
var DeprecatedComponent = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
12
13
|
if (process.env.NODE_ENV !== "production") {
|
|
13
14
|
console.warn("We have stabilized the ".concat(displayName, " component, so you can drop the \"Unstable_\" prefix from your imports. We will remove the \"Unstable_\" exports soon, so please make these changes as soon as possible!"));
|
|
@@ -145,7 +145,8 @@ export function initFocusVisible(node) {
|
|
|
145
145
|
prepare(node.ownerDocument);
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
|
-
export var forkFocus =
|
|
148
|
+
export var forkFocus = // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
149
|
+
function forkFocus(rootProps, handler) {
|
|
149
150
|
return function (e) {
|
|
150
151
|
if (typeof rootProps.onFocus === 'function') {
|
|
151
152
|
rootProps.onFocus(e);
|
|
@@ -154,7 +155,8 @@ export var forkFocus = function forkFocus(rootProps, handler) {
|
|
|
154
155
|
handler(e);
|
|
155
156
|
};
|
|
156
157
|
};
|
|
157
|
-
export var forkBlur =
|
|
158
|
+
export var forkBlur = // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
159
|
+
function forkBlur(rootProps, handler) {
|
|
158
160
|
return function (e) {
|
|
159
161
|
if (typeof rootProps.onBlur === 'function') {
|
|
160
162
|
rootProps.onBlur(e);
|
|
@@ -48,6 +48,7 @@ var StyledFileDragAndDrop = (0, _styles.styled)('div', function (props) {
|
|
|
48
48
|
});
|
|
49
49
|
exports.StyledFileDragAndDrop = StyledFileDragAndDrop;
|
|
50
50
|
StyledFileDragAndDrop.displayName = "StyledFileDragAndDrop";
|
|
51
|
+
StyledFileDragAndDrop.displayName = 'StyledFileDragAndDrop';
|
|
51
52
|
var StyledContentMessage = (0, _styles.styled)('div', function (_ref) {
|
|
52
53
|
var $theme = _ref.$theme,
|
|
53
54
|
$afterFileDrop = _ref.$afterFileDrop,
|
|
@@ -60,6 +61,7 @@ var StyledContentMessage = (0, _styles.styled)('div', function (_ref) {
|
|
|
60
61
|
});
|
|
61
62
|
exports.StyledContentMessage = StyledContentMessage;
|
|
62
63
|
StyledContentMessage.displayName = "StyledContentMessage";
|
|
64
|
+
StyledContentMessage.displayName = 'StyledContentMessage';
|
|
63
65
|
var StyledContentSeparator = StyledContentMessage;
|
|
64
66
|
exports.StyledContentSeparator = StyledContentSeparator;
|
|
65
67
|
var StyledErrorMessage = (0, _styles.styled)('div', function (props) {
|
|
@@ -71,6 +73,7 @@ var StyledErrorMessage = (0, _styles.styled)('div', function (props) {
|
|
|
71
73
|
});
|
|
72
74
|
exports.StyledErrorMessage = StyledErrorMessage;
|
|
73
75
|
StyledErrorMessage.displayName = "StyledErrorMessage";
|
|
76
|
+
StyledErrorMessage.displayName = 'StyledErrorMessage';
|
|
74
77
|
var StyledRoot = (0, _styles.styled)('div', function (props) {
|
|
75
78
|
return _objectSpread(_objectSpread({}, props.$theme.typography.font300), {}, {
|
|
76
79
|
color: props.$theme.colors.fileUploaderMessageColor
|
|
@@ -78,6 +81,8 @@ var StyledRoot = (0, _styles.styled)('div', function (props) {
|
|
|
78
81
|
});
|
|
79
82
|
exports.StyledRoot = StyledRoot;
|
|
80
83
|
StyledRoot.displayName = "StyledRoot";
|
|
84
|
+
StyledRoot.displayName = 'StyledRoot';
|
|
81
85
|
var StyledHiddenInput = (0, _styles.styled)('input', {});
|
|
82
86
|
exports.StyledHiddenInput = StyledHiddenInput;
|
|
83
|
-
StyledHiddenInput.displayName = "StyledHiddenInput";
|
|
87
|
+
StyledHiddenInput.displayName = "StyledHiddenInput";
|
|
88
|
+
StyledHiddenInput.displayName = 'StyledHiddenInput';
|
|
@@ -16,7 +16,7 @@ export declare const flexGridItemMediaQueryStyle: ({ $theme, flexGridColumnCount
|
|
|
16
16
|
width: `calc(${string} - .5px)`;
|
|
17
17
|
marginBottom: any;
|
|
18
18
|
}>;
|
|
19
|
-
export declare
|
|
19
|
+
export declare function getResponsiveValue<T>(responsive?: Responsive<T>, i?: number): T | undefined;
|
|
20
20
|
export declare const flexGridItemStyle: ({ $flexGridColumnCount, $flexGridColumnGap, $flexGridRowGap, $flexGridItemIndex, $flexGridItemCount, $theme, }: {
|
|
21
21
|
$flexGridColumnCount?: Responsive<number>;
|
|
22
22
|
$flexGridColumnGap?: Responsive<Scale>;
|
|
@@ -5,7 +5,8 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.flexGridItemStyle = exports.flexGridItemMediaQueryStyle = exports.default = void 0;
|
|
9
|
+
exports.getResponsiveValue = getResponsiveValue;
|
|
9
10
|
|
|
10
11
|
var React = _interopRequireWildcard(require("react"));
|
|
11
12
|
|
|
@@ -66,14 +67,12 @@ var flexGridItemMediaQueryStyle = function flexGridItemMediaQueryStyle(_ref) {
|
|
|
66
67
|
// Subtract .5px to avoid rounding issues on IE/Edge
|
|
67
68
|
// See https://github.com/uber/baseweb/pull/1748
|
|
68
69
|
width: "calc(".concat(widthCalc, " - .5px)")
|
|
69
|
-
}, _defineProperty(_objectSpread2, marginDirection, colGapQuantity && (
|
|
70
|
-
(itemIndex + 1) % colCount !== 0 ? colGap : 0)), _defineProperty(_objectSpread2, "marginBottom", rowGapQuantity && ( //flowlint-line sketchy-number-and:off
|
|
71
|
-
~~(itemIndex / colCount) !== ~~((itemCount - 1) / colCount) ? rowGap : 0)), _objectSpread2), itemIndex === itemCount - 1 && (itemIndex + 1) % colCount !== 0 ? _defineProperty({}, marginDirection, "calc(".concat(colCount - itemIndex % colCount - 1, " * (").concat(colGap, " + ").concat(widthCalc, "))")) : {}));
|
|
70
|
+
}, _defineProperty(_objectSpread2, marginDirection, colGapQuantity && ((itemIndex + 1) % colCount !== 0 ? colGap : 0)), _defineProperty(_objectSpread2, "marginBottom", rowGapQuantity && (~~(itemIndex / colCount) !== ~~((itemCount - 1) / colCount) ? rowGap : 0)), _objectSpread2), itemIndex === itemCount - 1 && (itemIndex + 1) % colCount !== 0 ? _defineProperty({}, marginDirection, "calc(".concat(colCount - itemIndex % colCount - 1, " * (").concat(colGap, " + ").concat(widthCalc, "))")) : {}));
|
|
72
71
|
};
|
|
73
72
|
|
|
74
73
|
exports.flexGridItemMediaQueryStyle = flexGridItemMediaQueryStyle;
|
|
75
74
|
|
|
76
|
-
|
|
75
|
+
function getResponsiveValue(responsive, i) {
|
|
77
76
|
if (!responsive) {
|
|
78
77
|
return null;
|
|
79
78
|
}
|
|
@@ -83,9 +82,7 @@ var getResponsiveValue = function getResponsiveValue(responsive, i) {
|
|
|
83
82
|
}
|
|
84
83
|
|
|
85
84
|
return responsive[i] || responsive[responsive.length - 1];
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
exports.getResponsiveValue = getResponsiveValue;
|
|
85
|
+
}
|
|
89
86
|
|
|
90
87
|
var flexGridItemStyle = function flexGridItemStyle(_ref3) {
|
|
91
88
|
var $flexGridColumnCount = _ref3.$flexGridColumnCount,
|
|
@@ -164,6 +161,7 @@ var FlexGridItem = function FlexGridItem(_ref4) {
|
|
|
164
161
|
var blockOverrides = overrides ? (0, _overrides.mergeOverrides)(flexGridItemOverrides, overrides) : flexGridItemOverrides;
|
|
165
162
|
return /*#__PURE__*/React.createElement(_block.Block // coerced to any because of how react components are typed.
|
|
166
163
|
// cannot guarantee an html element
|
|
164
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
167
165
|
, _extends({
|
|
168
166
|
ref: forwardedRef,
|
|
169
167
|
as: as,
|
package/flex-grid/flex-grid.js
CHANGED
|
@@ -90,9 +90,13 @@ var FlexGrid = function FlexGrid(_ref2) {
|
|
|
90
90
|
};
|
|
91
91
|
|
|
92
92
|
var FlexGridComponent = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
93
|
-
return
|
|
94
|
-
|
|
95
|
-
|
|
93
|
+
return (
|
|
94
|
+
/*#__PURE__*/
|
|
95
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
96
|
+
React.createElement(FlexGrid, _extends({}, props, {
|
|
97
|
+
forwardedRef: ref
|
|
98
|
+
}))
|
|
99
|
+
);
|
|
96
100
|
});
|
|
97
101
|
FlexGridComponent.displayName = 'FlexGrid';
|
|
98
102
|
var _default = FlexGridComponent;
|
package/flex-grid/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BlockProps, Responsive, Scale } from '../block';
|
|
2
|
-
import { ElementType } from 'react';
|
|
2
|
+
import type { ElementType } from 'react';
|
|
3
3
|
export declare type FlexGridProps<T extends ElementType = ElementType> = {
|
|
4
4
|
/** Number of equal-width columns to allow for */
|
|
5
5
|
flexGridColumnCount?: Responsive<number>;
|
|
@@ -30,6 +30,7 @@ var Label = (0, _styles.styled)('label', function (props) {
|
|
|
30
30
|
});
|
|
31
31
|
exports.Label = Label;
|
|
32
32
|
Label.displayName = "Label";
|
|
33
|
+
Label.displayName = 'Label';
|
|
33
34
|
var LabelContainer = (0, _styles.styled)('span', function (_ref) {
|
|
34
35
|
var sizing = _ref.$theme.sizing;
|
|
35
36
|
return {
|
|
@@ -43,6 +44,7 @@ var LabelContainer = (0, _styles.styled)('span', function (_ref) {
|
|
|
43
44
|
});
|
|
44
45
|
exports.LabelContainer = LabelContainer;
|
|
45
46
|
LabelContainer.displayName = "LabelContainer";
|
|
47
|
+
LabelContainer.displayName = 'LabelContainer';
|
|
46
48
|
var LabelEndEnhancer = (0, _styles.styled)('span', function (_ref2) {
|
|
47
49
|
var $disabled = _ref2.$disabled,
|
|
48
50
|
$counterError = _ref2.$counterError,
|
|
@@ -57,6 +59,7 @@ var LabelEndEnhancer = (0, _styles.styled)('span', function (_ref2) {
|
|
|
57
59
|
});
|
|
58
60
|
exports.LabelEndEnhancer = LabelEndEnhancer;
|
|
59
61
|
LabelEndEnhancer.displayName = "LabelEndEnhancer";
|
|
62
|
+
LabelEndEnhancer.displayName = 'LabelEndEnhancer';
|
|
60
63
|
var Caption = (0, _styles.styled)('div', function (props) {
|
|
61
64
|
var $error = props.$error,
|
|
62
65
|
$positive = props.$positive,
|
|
@@ -86,6 +89,7 @@ var Caption = (0, _styles.styled)('div', function (props) {
|
|
|
86
89
|
});
|
|
87
90
|
exports.Caption = Caption;
|
|
88
91
|
Caption.displayName = "Caption";
|
|
92
|
+
Caption.displayName = 'Caption';
|
|
89
93
|
var ControlContainer = (0, _styles.styled)('div', function (props) {
|
|
90
94
|
var sizing = props.$theme.sizing;
|
|
91
95
|
return {
|
|
@@ -94,4 +98,5 @@ var ControlContainer = (0, _styles.styled)('div', function (props) {
|
|
|
94
98
|
};
|
|
95
99
|
});
|
|
96
100
|
exports.ControlContainer = ControlContainer;
|
|
97
|
-
ControlContainer.displayName = "ControlContainer";
|
|
101
|
+
ControlContainer.displayName = "ControlContainer";
|
|
102
|
+
ControlContainer.displayName = 'ControlContainer';
|
package/form-control/types.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ var Root = (0, _styles.styled)('nav', function (props) {
|
|
|
32
32
|
});
|
|
33
33
|
exports.Root = Root;
|
|
34
34
|
Root.displayName = "Root";
|
|
35
|
+
Root.displayName = 'Root';
|
|
35
36
|
var NavigationItem = (0, _styles.styled)('li', function (props) {
|
|
36
37
|
var $theme = props.$theme;
|
|
37
38
|
var scale800 = $theme.sizing.scale800;
|
|
@@ -42,6 +43,7 @@ var NavigationItem = (0, _styles.styled)('li', function (props) {
|
|
|
42
43
|
});
|
|
43
44
|
exports.NavigationItem = NavigationItem;
|
|
44
45
|
NavigationItem.displayName = "NavigationItem";
|
|
46
|
+
NavigationItem.displayName = 'NavigationItem';
|
|
45
47
|
var NavigationList = (0, _styles.styled)('ul', function (props) {
|
|
46
48
|
var $align = props.$align,
|
|
47
49
|
$theme = props.$theme;
|
|
@@ -70,4 +72,5 @@ var NavigationList = (0, _styles.styled)('ul', function (props) {
|
|
|
70
72
|
};
|
|
71
73
|
});
|
|
72
74
|
exports.NavigationList = NavigationList;
|
|
73
|
-
NavigationList.displayName = "NavigationList";
|
|
75
|
+
NavigationList.displayName = "NavigationList";
|
|
76
|
+
NavigationList.displayName = 'NavigationList';
|
package/heading/types.d.ts
CHANGED
|
@@ -202,8 +202,10 @@ var StyledBody = (0, _styles.styled)('div', function (props) {
|
|
|
202
202
|
});
|
|
203
203
|
exports.StyledBody = StyledBody;
|
|
204
204
|
StyledBody.displayName = "StyledBody";
|
|
205
|
+
StyledBody.displayName = 'StyledBody';
|
|
205
206
|
var StyledArrow = (0, _styles.styled)('div', function (props) {
|
|
206
207
|
return _objectSpread({}, clampArrowStyle(props.$arrowOffset, props.$placement, props.$theme.colors.backgroundPrimary));
|
|
207
208
|
});
|
|
208
209
|
exports.StyledArrow = StyledArrow;
|
|
209
|
-
StyledArrow.displayName = "StyledArrow";
|
|
210
|
+
StyledArrow.displayName = "StyledArrow";
|
|
211
|
+
StyledArrow.displayName = 'StyledArrow';
|
package/helpers/overrides.js
CHANGED
|
@@ -37,6 +37,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
37
37
|
/**
|
|
38
38
|
* Given an override argument, returns the component implementation override if it exists
|
|
39
39
|
*/
|
|
40
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
40
41
|
function getOverride(_override) {
|
|
41
42
|
if ((0, _reactIs.isValidElementType)(_override)) {
|
|
42
43
|
return _override;
|
|
@@ -46,6 +47,7 @@ function getOverride(_override) {
|
|
|
46
47
|
if (_override && _typeof(_override) === 'object') {
|
|
47
48
|
// Remove this 'any' once this flow issue is fixed:
|
|
48
49
|
// https://github.com/facebook/flow/issues/6666
|
|
50
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
49
51
|
return _override.component;
|
|
50
52
|
} // null/undefined
|
|
51
53
|
|
|
@@ -85,11 +87,13 @@ function getOverrideProps(_override) {
|
|
|
85
87
|
function toObjectOverride(_override) {
|
|
86
88
|
if ((0, _reactIs.isValidElementType)(_override)) {
|
|
87
89
|
return {
|
|
90
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
88
91
|
component: _override
|
|
89
92
|
};
|
|
90
93
|
} // Flow can't figure out that typeof 'function' above will
|
|
91
94
|
// catch React.StatelessFunctionalComponent
|
|
92
95
|
// (probably related to https://github.com/facebook/flow/issues/6666)
|
|
96
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
93
97
|
|
|
94
98
|
|
|
95
99
|
return _override || {};
|
|
@@ -97,9 +101,12 @@ function toObjectOverride(_override) {
|
|
|
97
101
|
/**
|
|
98
102
|
* Get a convenient override array that will always have [component, props]
|
|
99
103
|
*/
|
|
104
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
100
105
|
|
|
101
106
|
|
|
102
|
-
function getOverrides(
|
|
107
|
+
function getOverrides( // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
108
|
+
_override, // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
109
|
+
defaultComponent) {
|
|
103
110
|
var Component = getOverride(_override) || defaultComponent;
|
|
104
111
|
|
|
105
112
|
if (_override && _typeof(_override) === 'object' && typeof _override.props === 'function') {
|
|
@@ -126,8 +133,6 @@ function getOverrides(_override, defaultComponent) {
|
|
|
126
133
|
var props = getOverrideProps(_override);
|
|
127
134
|
return [Component, props];
|
|
128
135
|
}
|
|
129
|
-
/* flowlint unclear-type:error */
|
|
130
|
-
|
|
131
136
|
/**
|
|
132
137
|
* Merges two overrides objects – this is useful if you want to inject your own
|
|
133
138
|
* overrides into a child component, but also accept further overrides from
|
|
@@ -5,7 +5,7 @@ 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
7
|
// @flow
|
|
8
|
-
|
|
8
|
+
|
|
9
9
|
import * as React from 'react';
|
|
10
10
|
import { isValidElementType } from 'react-is';
|
|
11
11
|
import deepMerge from '../utils/deep-merge.js';
|
package/helpers/types.d.ts
CHANGED
package/icon/build-icons.js
CHANGED
package/icon/build-icons.js.flow
CHANGED
|
@@ -7,7 +7,6 @@ This source code is licensed under the MIT license found in the
|
|
|
7
7
|
LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
/* eslint-disable flowtype/require-valid-file-annotation */
|
|
11
10
|
/* eslint-env node*/
|
|
12
11
|
const fs = require('fs');
|
|
13
12
|
const path = require('path');
|
package/icon/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { StyledComponentArgs } from './types';
|
|
2
2
|
export { default as Icon } from './icon';
|
|
3
|
-
export { Svg as StyledSvg } from './styled-components';
|
|
3
|
+
export { Svg as StyledSvg, getSvgStyles } from './styled-components';
|
|
4
4
|
export * from './icon-exports';
|
|
5
5
|
export * from './types';
|
|
6
6
|
/** @deprecated use StyledComponentArgs instead. To be removed in future versions.*/
|