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
|
@@ -42,6 +42,7 @@ export default function TreeView(props) {
|
|
|
42
42
|
};
|
|
43
43
|
|
|
44
44
|
const onKeyDown = (e, node) => {
|
|
45
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
45
46
|
const elementId = e.target.getAttribute('data-nodeid'); // this check prevents bubbling
|
|
46
47
|
|
|
47
48
|
if (elementId !== getId(node) && parseInt(elementId) !== getId(node)) {
|
|
@@ -128,7 +129,8 @@ export default function TreeView(props) {
|
|
|
128
129
|
if (selectedNodeId === null && data.length) {
|
|
129
130
|
setSelectedNodeId(getId(data[0]));
|
|
130
131
|
}
|
|
131
|
-
};
|
|
132
|
+
}; // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
133
|
+
|
|
132
134
|
|
|
133
135
|
const onBlur = event => {
|
|
134
136
|
if (focusVisible) {
|
package/es/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
|
+
let PlaywrightTest;
|
|
11
|
+
|
|
12
|
+
(function (_PlaywrightTest) {})(PlaywrightTest || (PlaywrightTest = {}));
|
package/es/utils/deep-merge.js
CHANGED
|
@@ -4,8 +4,6 @@ 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
|
-
|
|
8
|
-
/* flowlint unclear-type:off */
|
|
9
7
|
export default function deepMerge(target, ...sources) {
|
|
10
8
|
target = target || {};
|
|
11
9
|
const len = sources.length;
|
|
@@ -32,9 +30,6 @@ export default function deepMerge(target, ...sources) {
|
|
|
32
30
|
|
|
33
31
|
return target;
|
|
34
32
|
}
|
|
35
|
-
/* flowlint unclear-type:error */
|
|
36
|
-
|
|
37
|
-
/* eslint-disable-next-line flowtype/no-weak-types */
|
|
38
33
|
|
|
39
34
|
function isCloneable(obj) {
|
|
40
35
|
/* 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
|
const DeprecatedComponent = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
12
13
|
if (process.env.NODE_ENV !== "production") {
|
|
13
14
|
console.warn(`We have stabilized the ${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!`);
|
package/es/utils/focusVisible.js
CHANGED
|
@@ -147,14 +147,16 @@ export function initFocusVisible(node) {
|
|
|
147
147
|
prepare(node.ownerDocument);
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
|
-
export const forkFocus =
|
|
150
|
+
export const forkFocus = // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
151
|
+
(rootProps, handler) => e => {
|
|
151
152
|
if (typeof rootProps.onFocus === 'function') {
|
|
152
153
|
rootProps.onFocus(e);
|
|
153
154
|
}
|
|
154
155
|
|
|
155
156
|
handler(e);
|
|
156
157
|
};
|
|
157
|
-
export const forkBlur =
|
|
158
|
+
export const forkBlur = // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
159
|
+
(rootProps, handler) => e => {
|
|
158
160
|
if (typeof rootProps.onBlur === 'function') {
|
|
159
161
|
rootProps.onBlur(e);
|
|
160
162
|
}
|
|
@@ -54,8 +54,6 @@ Copyright (c) Uber Technologies, Inc.
|
|
|
54
54
|
This source code is licensed under the MIT license found in the
|
|
55
55
|
LICENSE file in the root directory of this source tree.
|
|
56
56
|
*/
|
|
57
|
-
|
|
58
|
-
/* eslint-disable cup/no-undef */
|
|
59
57
|
import * as React from 'react';
|
|
60
58
|
import { getOverrides } from '../helpers/overrides';
|
|
61
59
|
import { Root as StyledRoot } from './styled-components';
|
|
@@ -88,7 +86,8 @@ var Accordion = /*#__PURE__*/function (_React$Component) {
|
|
|
88
86
|
|
|
89
87
|
_createClass(Accordion, [{
|
|
90
88
|
key: "onPanelChange",
|
|
91
|
-
value:
|
|
89
|
+
value: // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
90
|
+
function onPanelChange(key, onChange) {
|
|
92
91
|
for (var _len2 = arguments.length, args = new Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
|
|
93
92
|
args[_key2 - 2] = arguments[_key2];
|
|
94
93
|
}
|
|
@@ -189,7 +188,8 @@ var Accordion = /*#__PURE__*/function (_React$Component) {
|
|
|
189
188
|
disabled = _this$props2.disabled,
|
|
190
189
|
children = _this$props2.children,
|
|
191
190
|
renderAll = _this$props2.renderAll,
|
|
192
|
-
overrides = _this$props2.overrides;
|
|
191
|
+
overrides = _this$props2.overrides; // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
192
|
+
|
|
193
193
|
return React.Children.map(children, function (child, index) {
|
|
194
194
|
if (!child) return;
|
|
195
195
|
var itemRef = /*#__PURE__*/React.createRef();
|
package/esm/accordion/panel.js
CHANGED
|
@@ -67,7 +67,8 @@ var Panel = function Panel(_ref, ref) {
|
|
|
67
67
|
}));
|
|
68
68
|
}
|
|
69
69
|
}, [localState]);
|
|
70
|
-
var handleBlur = React.useCallback(
|
|
70
|
+
var handleBlur = React.useCallback( // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
71
|
+
function (event) {
|
|
71
72
|
if (localState.isFocusVisible) {
|
|
72
73
|
setLocalState(_objectSpread(_objectSpread({}, localState), {}, {
|
|
73
74
|
isFocusVisible: false
|
|
@@ -103,7 +104,7 @@ var Panel = function Panel(_ref, ref) {
|
|
|
103
104
|
}
|
|
104
105
|
|
|
105
106
|
typeof onKeyDown === 'function' && onKeyDown(e);
|
|
106
|
-
}, [expanded, disabled, onChange, onKeyDown]);
|
|
107
|
+
}, [expanded, disabled, onChange, onKeyDown]); // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
107
108
|
|
|
108
109
|
var _animateRef = React.useRef(null);
|
|
109
110
|
|
|
@@ -91,6 +91,7 @@ var StatefulPanelContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
91
91
|
}, {
|
|
92
92
|
key: "render",
|
|
93
93
|
value: function render() {
|
|
94
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
94
95
|
var _this$props = this.props,
|
|
95
96
|
children = _this$props.children,
|
|
96
97
|
initialState = _this$props.initialState,
|
|
@@ -25,6 +25,7 @@ export var Root = styled('ul', {
|
|
|
25
25
|
width: '100%'
|
|
26
26
|
});
|
|
27
27
|
Root.displayName = "Root";
|
|
28
|
+
Root.displayName = 'Root';
|
|
28
29
|
export var PanelContainer = styled('li', function (props) {
|
|
29
30
|
var $expanded = props.$expanded,
|
|
30
31
|
colors = props.$theme.colors;
|
|
@@ -37,6 +38,7 @@ export var PanelContainer = styled('li', function (props) {
|
|
|
37
38
|
};
|
|
38
39
|
});
|
|
39
40
|
PanelContainer.displayName = "PanelContainer";
|
|
41
|
+
PanelContainer.displayName = 'PanelContainer';
|
|
40
42
|
export var Header = styled('div', function (props) {
|
|
41
43
|
var $disabled = props.$disabled,
|
|
42
44
|
$isFocusVisible = props.$isFocusVisible,
|
|
@@ -67,6 +69,7 @@ export var Header = styled('div', function (props) {
|
|
|
67
69
|
});
|
|
68
70
|
});
|
|
69
71
|
Header.displayName = "Header";
|
|
72
|
+
Header.displayName = 'Header';
|
|
70
73
|
export var ToggleIcon = styled('svg', function (props) {
|
|
71
74
|
var $theme = props.$theme,
|
|
72
75
|
$disabled = props.$disabled,
|
|
@@ -78,6 +81,7 @@ export var ToggleIcon = styled('svg', function (props) {
|
|
|
78
81
|
});
|
|
79
82
|
});
|
|
80
83
|
ToggleIcon.displayName = "ToggleIcon";
|
|
84
|
+
ToggleIcon.displayName = 'ToggleIcon';
|
|
81
85
|
export var ToggleIconGroup = styled('g', function (props) {
|
|
82
86
|
var $theme = props.$theme,
|
|
83
87
|
$expanded = props.$expanded;
|
|
@@ -90,6 +94,7 @@ export var ToggleIconGroup = styled('g', function (props) {
|
|
|
90
94
|
};
|
|
91
95
|
});
|
|
92
96
|
ToggleIconGroup.displayName = "ToggleIconGroup";
|
|
97
|
+
ToggleIconGroup.displayName = 'ToggleIconGroup';
|
|
93
98
|
export var Content = styled('div', function (props) {
|
|
94
99
|
var _props$$theme2 = props.$theme,
|
|
95
100
|
animation = _props$$theme2.animation,
|
|
@@ -119,6 +124,7 @@ export var Content = styled('div', function (props) {
|
|
|
119
124
|
});
|
|
120
125
|
});
|
|
121
126
|
Content.displayName = "Content";
|
|
127
|
+
Content.displayName = 'Content';
|
|
122
128
|
export var ContentAnimationContainer = styled('div', function (props) {
|
|
123
129
|
var $height = props.$height,
|
|
124
130
|
animation = props.$theme.animation;
|
|
@@ -130,4 +136,5 @@ export var ContentAnimationContainer = styled('div', function (props) {
|
|
|
130
136
|
transitionTimingFunction: animation.easeOutQuinticCurve
|
|
131
137
|
};
|
|
132
138
|
});
|
|
133
|
-
ContentAnimationContainer.displayName = "ContentAnimationContainer";
|
|
139
|
+
ContentAnimationContainer.displayName = "ContentAnimationContainer";
|
|
140
|
+
ContentAnimationContainer.displayName = 'ContentAnimationContainer';
|
|
@@ -48,13 +48,15 @@ function MainMenuItem(props) {
|
|
|
48
48
|
if (isFocusVisible(event)) {
|
|
49
49
|
setFocusVisible(true);
|
|
50
50
|
}
|
|
51
|
-
}
|
|
51
|
+
} // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
52
|
+
|
|
52
53
|
|
|
53
54
|
function handleBlur(event) {
|
|
54
55
|
if (focusVisible) {
|
|
55
56
|
setFocusVisible(false);
|
|
56
57
|
}
|
|
57
|
-
}
|
|
58
|
+
} // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
59
|
+
|
|
58
60
|
|
|
59
61
|
function handleClick(event) {
|
|
60
62
|
if (onSelect) {
|
|
@@ -44,7 +44,8 @@ import { Button } from '../button';
|
|
|
44
44
|
import { Drawer, ANCHOR } from '../drawer';
|
|
45
45
|
import { getOverrides, mergeOverrides } from '../helpers/overrides';
|
|
46
46
|
import ArrowLeft from '../icon/arrow-left';
|
|
47
|
-
import MenuIcon from '../icon/menu';
|
|
47
|
+
import MenuIcon from '../icon/menu'; // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
48
|
+
|
|
48
49
|
import { MenuAdapter, ListItemLabel, ARTWORK_SIZES } from '../list';
|
|
49
50
|
import { StatefulMenu } from '../menu';
|
|
50
51
|
import { StyledSideMenuButton, StyledUserMenuProfileListItem } from './styled-components';
|
|
@@ -52,7 +53,7 @@ import UserProfileTile from './user-profile-tile';
|
|
|
52
53
|
import { defaultMapItemToNode } from './utils';
|
|
53
54
|
var USER_TITLE_ITEM = 'USER_TITLE_ITEM';
|
|
54
55
|
var USER_MENU_ITEM = 'USER_MENU_ITEM';
|
|
55
|
-
var PARENT_MENU_ITEM = 'PARENT_MENU_ITEM'; // eslint-disable-next-line react/display-name
|
|
56
|
+
var PARENT_MENU_ITEM = 'PARENT_MENU_ITEM'; // eslint-disable-next-line @typescript-eslint/no-explicit-any,react/display-name
|
|
56
57
|
|
|
57
58
|
var MobileNavMenuItem = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
58
59
|
var item = props.item,
|
|
@@ -148,6 +149,7 @@ export default function MobileMenu(props) {
|
|
|
148
149
|
|
|
149
150
|
drawerProps.overrides = mergeOverrides({
|
|
150
151
|
DrawerBody: {
|
|
152
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
151
153
|
style: function style(_ref2) {
|
|
152
154
|
var $theme = _ref2.$theme;
|
|
153
155
|
return {
|
|
@@ -45,6 +45,7 @@ var StyledButton = styled('button', function (_ref) {
|
|
|
45
45
|
};
|
|
46
46
|
});
|
|
47
47
|
StyledButton.displayName = "StyledButton";
|
|
48
|
+
StyledButton.displayName = 'StyledButton';
|
|
48
49
|
export var StyledRoot = styled('div', function (props) {
|
|
49
50
|
var $theme = props.$theme;
|
|
50
51
|
var mediaQueries = getMediaQueries($theme.breakpoints);
|
|
@@ -89,8 +90,10 @@ export var StyledRoot = styled('div', function (props) {
|
|
|
89
90
|
return style;
|
|
90
91
|
});
|
|
91
92
|
StyledRoot.displayName = "StyledRoot";
|
|
93
|
+
StyledRoot.displayName = 'StyledRoot';
|
|
92
94
|
export var StyledSubnavContainer = styled('div', {});
|
|
93
95
|
StyledSubnavContainer.displayName = "StyledSubnavContainer";
|
|
96
|
+
StyledSubnavContainer.displayName = 'StyledSubnavContainer';
|
|
94
97
|
export var StyledSpacing = styled('div', function (props) {
|
|
95
98
|
var $theme = props.$theme;
|
|
96
99
|
return _defineProperty({
|
|
@@ -106,6 +109,7 @@ export var StyledSpacing = styled('div', function (props) {
|
|
|
106
109
|
});
|
|
107
110
|
});
|
|
108
111
|
StyledSpacing.displayName = "StyledSpacing";
|
|
112
|
+
StyledSpacing.displayName = 'StyledSpacing';
|
|
109
113
|
export var StyledAppName = styled('div', function (_ref3) {
|
|
110
114
|
var $theme = _ref3.$theme;
|
|
111
115
|
return _objectSpread(_objectSpread({}, $theme.typography.font550), {}, _defineProperty({
|
|
@@ -114,6 +118,7 @@ export var StyledAppName = styled('div', function (_ref3) {
|
|
|
114
118
|
}, $theme.mediaQuery.medium, _objectSpread({}, $theme.typography.font650)));
|
|
115
119
|
});
|
|
116
120
|
StyledAppName.displayName = "StyledAppName";
|
|
121
|
+
StyledAppName.displayName = 'StyledAppName';
|
|
117
122
|
export var StyledSideMenuButton = withStyle(StyledButton, function (_ref4) {
|
|
118
123
|
var $theme = _ref4.$theme;
|
|
119
124
|
return _objectSpread(_objectSpread({}, $theme.direction === 'rtl' ? {
|
|
@@ -128,6 +133,7 @@ export var StyledSideMenuButton = withStyle(StyledButton, function (_ref4) {
|
|
|
128
133
|
});
|
|
129
134
|
});
|
|
130
135
|
StyledSideMenuButton.displayName = "StyledSideMenuButton";
|
|
136
|
+
StyledSideMenuButton.displayName = 'StyledSideMenuButton';
|
|
131
137
|
export var StyledPrimaryMenuContainer = styled('div', function (_ref5) {
|
|
132
138
|
var $theme = _ref5.$theme;
|
|
133
139
|
return {
|
|
@@ -143,6 +149,7 @@ export var StyledPrimaryMenuContainer = styled('div', function (_ref5) {
|
|
|
143
149
|
};
|
|
144
150
|
});
|
|
145
151
|
StyledPrimaryMenuContainer.displayName = "StyledPrimaryMenuContainer";
|
|
152
|
+
StyledPrimaryMenuContainer.displayName = 'StyledPrimaryMenuContainer';
|
|
146
153
|
export var StyledMainMenuItem = styled('div', function (props) {
|
|
147
154
|
var $active = props.$active,
|
|
148
155
|
$isFocusVisible = props.$isFocusVisible,
|
|
@@ -183,6 +190,7 @@ export var StyledMainMenuItem = styled('div', function (props) {
|
|
|
183
190
|
};
|
|
184
191
|
});
|
|
185
192
|
StyledMainMenuItem.displayName = "StyledMainMenuItem";
|
|
193
|
+
StyledMainMenuItem.displayName = 'StyledMainMenuItem';
|
|
186
194
|
export var StyledSecondaryMenuContainer = styled('div', function (_ref6) {
|
|
187
195
|
var $theme = _ref6.$theme;
|
|
188
196
|
return {
|
|
@@ -199,7 +207,9 @@ export var StyledSecondaryMenuContainer = styled('div', function (_ref6) {
|
|
|
199
207
|
};
|
|
200
208
|
});
|
|
201
209
|
StyledSecondaryMenuContainer.displayName = "StyledSecondaryMenuContainer";
|
|
210
|
+
StyledSecondaryMenuContainer.displayName = 'StyledSecondaryMenuContainer';
|
|
202
211
|
export var StyledUserMenuButton = StyledButton;
|
|
212
|
+
StyledUserMenuButton.displayName = 'StyledUserMenuButton';
|
|
203
213
|
export var StyledUserMenuProfileListItem = withStyle(StyledListItem, function (_ref7) {
|
|
204
214
|
var $theme = _ref7.$theme;
|
|
205
215
|
return _objectSpread({
|
|
@@ -212,6 +222,7 @@ export var StyledUserMenuProfileListItem = withStyle(StyledListItem, function (_
|
|
|
212
222
|
});
|
|
213
223
|
});
|
|
214
224
|
StyledUserMenuProfileListItem.displayName = "StyledUserMenuProfileListItem";
|
|
225
|
+
StyledUserMenuProfileListItem.displayName = 'StyledUserMenuProfileListItem';
|
|
215
226
|
export var StyledUserProfileTileContainer = styled('div', function (_ref8) {
|
|
216
227
|
var $theme = _ref8.$theme;
|
|
217
228
|
return {
|
|
@@ -226,6 +237,7 @@ export var StyledUserProfileTileContainer = styled('div', function (_ref8) {
|
|
|
226
237
|
};
|
|
227
238
|
});
|
|
228
239
|
StyledUserProfileTileContainer.displayName = "StyledUserProfileTileContainer";
|
|
240
|
+
StyledUserProfileTileContainer.displayName = 'StyledUserProfileTileContainer';
|
|
229
241
|
export var StyledUserProfilePictureContainer = styled('div', function (_ref9) {
|
|
230
242
|
var $theme = _ref9.$theme;
|
|
231
243
|
return _objectSpread({}, $theme.direction === 'rtl' ? {
|
|
@@ -235,6 +247,8 @@ export var StyledUserProfilePictureContainer = styled('div', function (_ref9) {
|
|
|
235
247
|
});
|
|
236
248
|
});
|
|
237
249
|
StyledUserProfilePictureContainer.displayName = "StyledUserProfilePictureContainer";
|
|
250
|
+
StyledUserProfilePictureContainer.displayName = 'StyledUserProfilePictureContainer'; // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
251
|
+
|
|
238
252
|
export var StyledUserProfileInfoContainer = styled('div', function (_ref10) {
|
|
239
253
|
var $theme = _ref10.$theme;
|
|
240
254
|
return {
|
|
@@ -243,11 +257,14 @@ export var StyledUserProfileInfoContainer = styled('div', function (_ref10) {
|
|
|
243
257
|
};
|
|
244
258
|
});
|
|
245
259
|
StyledUserProfileInfoContainer.displayName = "StyledUserProfileInfoContainer";
|
|
260
|
+
StyledUserProfileInfoContainer.displayName = 'StyledUserProfileInfoContainer'; // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
261
|
+
|
|
246
262
|
export var StyledDesktopMenuContainer = styled('div', function (_ref11) {
|
|
247
263
|
var $theme = _ref11.$theme;
|
|
248
264
|
return {};
|
|
249
265
|
});
|
|
250
266
|
StyledDesktopMenuContainer.displayName = "StyledDesktopMenuContainer";
|
|
267
|
+
StyledDesktopMenuContainer.displayName = 'StyledDesktopMenuContainer';
|
|
251
268
|
export var StyledDesktopMenu = styled('div', function (_ref12) {
|
|
252
269
|
var $theme = _ref12.$theme;
|
|
253
270
|
return {
|
|
@@ -260,4 +277,5 @@ export var StyledDesktopMenu = styled('div', function (_ref12) {
|
|
|
260
277
|
paddingBlockEnd: '18px'
|
|
261
278
|
};
|
|
262
279
|
});
|
|
263
|
-
StyledDesktopMenu.displayName = "StyledDesktopMenu";
|
|
280
|
+
StyledDesktopMenu.displayName = "StyledDesktopMenu";
|
|
281
|
+
StyledDesktopMenu.displayName = 'StyledDesktopMenu';
|
|
@@ -36,7 +36,7 @@ import { StatefulPopover, PLACEMENT, TRIGGER_TYPE } from '../popover';
|
|
|
36
36
|
import { StyledUserMenuButton, StyledUserMenuProfileListItem } from './styled-components';
|
|
37
37
|
import UserProfileTile from './user-profile-tile';
|
|
38
38
|
import { defaultMapItemToNode } from './utils';
|
|
39
|
-
var MENU_ITEM_WIDTH = '275px'; // eslint-disable-next-line react/display-name
|
|
39
|
+
var MENU_ITEM_WIDTH = '275px'; // eslint-disable-next-line @typescript-eslint/no-explicit-any,react/display-name
|
|
40
40
|
|
|
41
41
|
var UserMenuListItem = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
42
42
|
var item = props.item,
|
|
@@ -35,7 +35,8 @@ var aspectRatioBoxStyle = function aspectRatioBoxStyle(_ref) {
|
|
|
35
35
|
clear: 'both'
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
|
-
};
|
|
38
|
+
}; // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
39
|
+
|
|
39
40
|
|
|
40
41
|
var AspectRatioBox = function AspectRatioBox(_ref2) {
|
|
41
42
|
var forwardedRef = _ref2.forwardedRef,
|
|
@@ -53,6 +54,7 @@ var AspectRatioBox = function AspectRatioBox(_ref2) {
|
|
|
53
54
|
var blockOverrides = mergeOverrides(aspectRatioBoxOverrides, overrides);
|
|
54
55
|
return /*#__PURE__*/React.createElement(Block // coerced to any because of how react components are typed.
|
|
55
56
|
// cannot guarantee an html element
|
|
57
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
56
58
|
, _extends({
|
|
57
59
|
ref: forwardedRef,
|
|
58
60
|
overrides: blockOverrides,
|
|
@@ -35,6 +35,7 @@ export var Avatar = styled('img', function (props) {
|
|
|
35
35
|
};
|
|
36
36
|
});
|
|
37
37
|
Avatar.displayName = "Avatar";
|
|
38
|
+
Avatar.displayName = 'Avatar';
|
|
38
39
|
export var Initials = styled('div', function (props) {
|
|
39
40
|
return _objectSpread(_objectSpread({}, props.$theme.typography.font300), {}, {
|
|
40
41
|
color: props.$theme.colors.mono100,
|
|
@@ -45,6 +46,7 @@ export var Initials = styled('div', function (props) {
|
|
|
45
46
|
});
|
|
46
47
|
});
|
|
47
48
|
Initials.displayName = "Initials";
|
|
49
|
+
Initials.displayName = 'Initials';
|
|
48
50
|
export var Root = styled('div', function (props) {
|
|
49
51
|
var $didImageFailToLoad = props.$didImageFailToLoad;
|
|
50
52
|
var themedSize = getSize(props);
|
|
@@ -62,4 +64,5 @@ export var Root = styled('div', function (props) {
|
|
|
62
64
|
width: $didImageFailToLoad ? themedSize : null
|
|
63
65
|
};
|
|
64
66
|
});
|
|
65
|
-
Root.displayName = "Root";
|
|
67
|
+
Root.displayName = "Root";
|
|
68
|
+
Root.displayName = 'Root';
|
|
@@ -12,7 +12,7 @@ Copyright (c) Uber Technologies, Inc.
|
|
|
12
12
|
This source code is licensed under the MIT license found in the
|
|
13
13
|
LICENSE file in the root directory of this source tree.
|
|
14
14
|
*/
|
|
15
|
-
import { styled } from '../styles
|
|
15
|
+
import { styled } from '../styles';
|
|
16
16
|
import { COLOR, SHAPE, ROLE, PLACEMENT, HIERARCHY } from './constants';
|
|
17
17
|
|
|
18
18
|
function getColorStyles(_ref) {
|
|
@@ -22,19 +22,19 @@ function getColorStyles(_ref) {
|
|
|
22
22
|
$hierarchy = _ref.$hierarchy,
|
|
23
23
|
$color = _ref.$color;
|
|
24
24
|
var COLOR_STYLES = (_COLOR_STYLES = {}, _defineProperty(_COLOR_STYLES, HIERARCHY.primary, (_HIERARCHY$primary = {}, _defineProperty(_HIERARCHY$primary, COLOR.accent, {
|
|
25
|
-
color: $theme.colors.
|
|
25
|
+
color: $theme.colors.contentOnColor,
|
|
26
26
|
backgroundColor: $theme.colors.backgroundAccent
|
|
27
27
|
}), _defineProperty(_HIERARCHY$primary, COLOR.primary, {
|
|
28
28
|
color: $theme.colors.contentInversePrimary,
|
|
29
29
|
backgroundColor: $theme.colors.backgroundInversePrimary
|
|
30
30
|
}), _defineProperty(_HIERARCHY$primary, COLOR.positive, {
|
|
31
|
-
color: $theme.colors.
|
|
31
|
+
color: $theme.colors.contentOnColor,
|
|
32
32
|
backgroundColor: $theme.colors.backgroundPositive
|
|
33
33
|
}), _defineProperty(_HIERARCHY$primary, COLOR.negative, {
|
|
34
|
-
color: $theme.colors.
|
|
34
|
+
color: $theme.colors.contentOnColor,
|
|
35
35
|
backgroundColor: $theme.colors.backgroundNegative
|
|
36
36
|
}), _defineProperty(_HIERARCHY$primary, COLOR.warning, {
|
|
37
|
-
color: $theme.colors.
|
|
37
|
+
color: $theme.colors.contentOnColorInverse,
|
|
38
38
|
backgroundColor: $theme.colors.backgroundWarning
|
|
39
39
|
}), _HIERARCHY$primary)), _defineProperty(_COLOR_STYLES, HIERARCHY.secondary, (_HIERARCHY$secondary = {}, _defineProperty(_HIERARCHY$secondary, COLOR.accent, {
|
|
40
40
|
color: $theme.colors.contentAccent,
|
|
@@ -122,6 +122,7 @@ export var StyledRoot = styled('div', function () {
|
|
|
122
122
|
};
|
|
123
123
|
});
|
|
124
124
|
StyledRoot.displayName = "StyledRoot";
|
|
125
|
+
StyledRoot.displayName = 'StyledRoot';
|
|
125
126
|
var TOP_PLACEMENTS = [PLACEMENT.topLeft, PLACEMENT.topRight, PLACEMENT.topLeftEdge, PLACEMENT.topEdge, PLACEMENT.topRightEdge, PLACEMENT.leftTopEdge, PLACEMENT.rightTopEdge];
|
|
126
127
|
var BOTTOM_PLACEMENTS = [PLACEMENT.bottomLeft, PLACEMENT.bottomRight, PLACEMENT.bottomLeftEdge, PLACEMENT.bottomEdge, PLACEMENT.bottomRightEdge, PLACEMENT.leftBottomEdge, PLACEMENT.rightBottomEdge];
|
|
127
128
|
var LEFT_PLACEMENTS = [PLACEMENT.topLeft, PLACEMENT.topLeftEdge, PLACEMENT.topEdge, PLACEMENT.bottomLeft, PLACEMENT.bottomLeftEdge, PLACEMENT.bottomEdge, PLACEMENT.leftTopEdge, PLACEMENT.leftBottomEdge];
|
|
@@ -168,6 +169,7 @@ export var StyledPositioner = styled('div', function (_ref2) {
|
|
|
168
169
|
});
|
|
169
170
|
});
|
|
170
171
|
StyledPositioner.displayName = "StyledPositioner";
|
|
172
|
+
StyledPositioner.displayName = 'StyledPositioner';
|
|
171
173
|
export var StyledBadge = styled('div', function (_ref3) {
|
|
172
174
|
var $theme = _ref3.$theme,
|
|
173
175
|
_ref3$$shape = _ref3.$shape,
|
|
@@ -193,6 +195,7 @@ export var StyledBadge = styled('div', function (_ref3) {
|
|
|
193
195
|
})), $hierarchy === HIERARCHY.primary ? $theme.typography.LabelSmall : $theme.typography.ParagraphSmall);
|
|
194
196
|
});
|
|
195
197
|
StyledBadge.displayName = "StyledBadge";
|
|
198
|
+
StyledBadge.displayName = 'StyledBadge';
|
|
196
199
|
export var StyledNotificationCircle = styled('div', function (_ref4) {
|
|
197
200
|
var $theme = _ref4.$theme,
|
|
198
201
|
_ref4$$color = _ref4.$color,
|
|
@@ -213,6 +216,7 @@ export var StyledNotificationCircle = styled('div', function (_ref4) {
|
|
|
213
216
|
})), $theme.typography.LabelXSmall);
|
|
214
217
|
});
|
|
215
218
|
StyledNotificationCircle.displayName = "StyledNotificationCircle";
|
|
219
|
+
StyledNotificationCircle.displayName = 'StyledNotificationCircle';
|
|
216
220
|
export var StyledHintDot = styled('div', function (_ref5) {
|
|
217
221
|
var $theme = _ref5.$theme,
|
|
218
222
|
_ref5$$color = _ref5.$color,
|
|
@@ -232,4 +236,5 @@ export var StyledHintDot = styled('div', function (_ref5) {
|
|
|
232
236
|
$color: $color
|
|
233
237
|
}));
|
|
234
238
|
});
|
|
235
|
-
StyledHintDot.displayName = "StyledHintDot";
|
|
239
|
+
StyledHintDot.displayName = "StyledHintDot";
|
|
240
|
+
StyledHintDot.displayName = 'StyledHintDot';
|
|
@@ -4,7 +4,7 @@ Copyright (c) Uber Technologies, Inc.
|
|
|
4
4
|
This source code is licensed under the MIT license found in the
|
|
5
5
|
LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
import { styled } from '../styles
|
|
7
|
+
import { styled } from '../styles';
|
|
8
8
|
import { ACTION_POSITION } from './constants';
|
|
9
9
|
export var StyledRoot = styled('div', function (_ref) {
|
|
10
10
|
var $theme = _ref.$theme,
|
|
@@ -23,10 +23,14 @@ export var StyledRoot = styled('div', function (_ref) {
|
|
|
23
23
|
gridColumnGap: $theme.sizing.scale600,
|
|
24
24
|
gridTemplateColumns: 'min-content auto min-content',
|
|
25
25
|
gridTemplateRows: 'auto min-content',
|
|
26
|
-
|
|
26
|
+
marginTop: $theme.sizing.scale600,
|
|
27
|
+
marginRight: $theme.sizing.scale600,
|
|
28
|
+
marginBottom: $theme.sizing.scale600,
|
|
29
|
+
marginLeft: $theme.sizing.scale600
|
|
27
30
|
};
|
|
28
31
|
});
|
|
29
32
|
StyledRoot.displayName = "StyledRoot";
|
|
33
|
+
StyledRoot.displayName = 'StyledRoot';
|
|
30
34
|
export var StyledLeadingContent = styled('div', function (_ref2) {
|
|
31
35
|
var $theme = _ref2.$theme,
|
|
32
36
|
$includesArtwork = _ref2.$includesArtwork;
|
|
@@ -37,6 +41,7 @@ export var StyledLeadingContent = styled('div', function (_ref2) {
|
|
|
37
41
|
};
|
|
38
42
|
});
|
|
39
43
|
StyledLeadingContent.displayName = "StyledLeadingContent";
|
|
44
|
+
StyledLeadingContent.displayName = 'StyledLeadingContent';
|
|
40
45
|
export var StyledMessageContent = styled('div', function (_ref3) {
|
|
41
46
|
var $theme = _ref3.$theme,
|
|
42
47
|
$actionPosition = _ref3.$actionPosition;
|
|
@@ -49,6 +54,8 @@ export var StyledMessageContent = styled('div', function (_ref3) {
|
|
|
49
54
|
};
|
|
50
55
|
});
|
|
51
56
|
StyledMessageContent.displayName = "StyledMessageContent";
|
|
57
|
+
StyledMessageContent.displayName = 'StyledMessageContent'; // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
58
|
+
|
|
52
59
|
export var StyledTrailingContent = styled('div', function (_ref4) {
|
|
53
60
|
var $theme = _ref4.$theme;
|
|
54
61
|
return {
|
|
@@ -58,6 +65,7 @@ export var StyledTrailingContent = styled('div', function (_ref4) {
|
|
|
58
65
|
};
|
|
59
66
|
});
|
|
60
67
|
StyledTrailingContent.displayName = "StyledTrailingContent";
|
|
68
|
+
StyledTrailingContent.displayName = 'StyledTrailingContent';
|
|
61
69
|
export var StyledBelowContent = styled('div', function (_ref5) {
|
|
62
70
|
var $theme = _ref5.$theme,
|
|
63
71
|
$actionPosition = _ref5.$actionPosition;
|
|
@@ -68,16 +76,19 @@ export var StyledBelowContent = styled('div', function (_ref5) {
|
|
|
68
76
|
};
|
|
69
77
|
});
|
|
70
78
|
StyledBelowContent.displayName = "StyledBelowContent";
|
|
79
|
+
StyledBelowContent.displayName = 'StyledBelowContent';
|
|
71
80
|
export var StyledTitle = styled('div', function (_ref6) {
|
|
72
81
|
var $theme = _ref6.$theme;
|
|
73
82
|
return $theme.typography.LabelMedium;
|
|
74
83
|
});
|
|
75
84
|
StyledTitle.displayName = "StyledTitle";
|
|
85
|
+
StyledTitle.displayName = 'StyledTitle';
|
|
76
86
|
export var StyledMessage = styled('div', function (_ref7) {
|
|
77
87
|
var $theme = _ref7.$theme;
|
|
78
88
|
return $theme.typography.ParagraphMedium;
|
|
79
89
|
});
|
|
80
90
|
StyledMessage.displayName = "StyledMessage";
|
|
91
|
+
StyledMessage.displayName = 'StyledMessage';
|
|
81
92
|
export var StyledTrailingButtonContainer = styled('div', function (_ref8) {
|
|
82
93
|
var $theme = _ref8.$theme;
|
|
83
94
|
return {
|
|
@@ -87,6 +98,7 @@ export var StyledTrailingButtonContainer = styled('div', function (_ref8) {
|
|
|
87
98
|
};
|
|
88
99
|
});
|
|
89
100
|
StyledTrailingButtonContainer.displayName = "StyledTrailingButtonContainer";
|
|
101
|
+
StyledTrailingButtonContainer.displayName = 'StyledTrailingButtonContainer';
|
|
90
102
|
export var StyledTrailingIconButton = styled('button', function (_ref9) {
|
|
91
103
|
var $theme = _ref9.$theme,
|
|
92
104
|
$nested = _ref9.$nested;
|
|
@@ -110,4 +122,5 @@ export var StyledTrailingIconButton = styled('button', function (_ref9) {
|
|
|
110
122
|
}
|
|
111
123
|
};
|
|
112
124
|
});
|
|
113
|
-
StyledTrailingIconButton.displayName = "StyledTrailingIconButton";
|
|
125
|
+
StyledTrailingIconButton.displayName = "StyledTrailingIconButton";
|
|
126
|
+
StyledTrailingIconButton.displayName = 'StyledTrailingIconButton';
|
package/esm/block/block.js
CHANGED
|
@@ -109,6 +109,7 @@ var Block = function Block(_ref) {
|
|
|
109
109
|
|
|
110
110
|
return /*#__PURE__*/React.createElement(BaseBlock // coerced to any because because of how react components are typed.
|
|
111
111
|
// cannot guarantee an html element
|
|
112
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
112
113
|
, _extends({
|
|
113
114
|
ref: forwardedRef,
|
|
114
115
|
$as: as,
|
|
@@ -179,7 +180,8 @@ var Block = function Block(_ref) {
|
|
|
179
180
|
$whiteSpace: whiteSpace,
|
|
180
181
|
"data-baseweb": "block"
|
|
181
182
|
}, restProps, baseBlockProps), children);
|
|
182
|
-
};
|
|
183
|
+
}; // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
184
|
+
|
|
183
185
|
|
|
184
186
|
var BlockComponent = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
185
187
|
return /*#__PURE__*/React.createElement(Block, _extends({}, props, {
|
|
@@ -18,6 +18,7 @@ export var StyledRoot = styled('nav', function (_ref) {
|
|
|
18
18
|
}, $theme.typography.font350);
|
|
19
19
|
});
|
|
20
20
|
StyledRoot.displayName = "StyledRoot";
|
|
21
|
+
StyledRoot.displayName = 'StyledRoot';
|
|
21
22
|
export var StyledList = styled('ol', function (_ref2) {
|
|
22
23
|
var $theme = _ref2.$theme;
|
|
23
24
|
return _objectSpread({
|
|
@@ -27,6 +28,7 @@ export var StyledList = styled('ol', function (_ref2) {
|
|
|
27
28
|
}, $theme.typography.font350);
|
|
28
29
|
});
|
|
29
30
|
StyledList.displayName = "StyledList";
|
|
31
|
+
StyledList.displayName = 'StyledList';
|
|
30
32
|
export var StyledListItem = styled('li', function (_ref3) {
|
|
31
33
|
var $theme = _ref3.$theme;
|
|
32
34
|
return _objectSpread({
|
|
@@ -34,6 +36,7 @@ export var StyledListItem = styled('li', function (_ref3) {
|
|
|
34
36
|
}, $theme.typography.font350);
|
|
35
37
|
});
|
|
36
38
|
StyledListItem.displayName = "StyledListItem";
|
|
39
|
+
StyledListItem.displayName = 'StyledListItem';
|
|
37
40
|
export var StyledSeparator = styled('div', function (_ref4) {
|
|
38
41
|
var $theme = _ref4.$theme;
|
|
39
42
|
return {
|
|
@@ -44,4 +47,5 @@ export var StyledSeparator = styled('div', function (_ref4) {
|
|
|
44
47
|
verticalAlign: 'middle'
|
|
45
48
|
};
|
|
46
49
|
});
|
|
47
|
-
StyledSeparator.displayName = "StyledSeparator";
|
|
50
|
+
StyledSeparator.displayName = "StyledSeparator";
|
|
51
|
+
StyledSeparator.displayName = 'StyledSeparator';
|
|
@@ -80,6 +80,7 @@ export var BaseButton = styled('button', function (_ref) {
|
|
|
80
80
|
}));
|
|
81
81
|
});
|
|
82
82
|
BaseButton.displayName = "BaseButton";
|
|
83
|
+
BaseButton.displayName = 'BaseButton';
|
|
83
84
|
export var EndEnhancer = styled('div', function (_ref2) {
|
|
84
85
|
var $theme = _ref2.$theme;
|
|
85
86
|
var marginDirection = $theme.direction === 'rtl' ? 'marginRight' : 'marginLeft';
|
|
@@ -88,6 +89,7 @@ export var EndEnhancer = styled('div', function (_ref2) {
|
|
|
88
89
|
}, marginDirection, $theme.sizing.scale500);
|
|
89
90
|
});
|
|
90
91
|
EndEnhancer.displayName = "EndEnhancer";
|
|
92
|
+
EndEnhancer.displayName = 'EndEnhancer';
|
|
91
93
|
export var StartEnhancer = styled('div', function (_ref4) {
|
|
92
94
|
var $theme = _ref4.$theme;
|
|
93
95
|
var marginDirection = $theme.direction === 'rtl' ? 'marginLeft' : 'marginRight';
|
|
@@ -96,6 +98,7 @@ export var StartEnhancer = styled('div', function (_ref4) {
|
|
|
96
98
|
}, marginDirection, $theme.sizing.scale500);
|
|
97
99
|
});
|
|
98
100
|
StartEnhancer.displayName = "StartEnhancer";
|
|
101
|
+
StartEnhancer.displayName = 'StartEnhancer';
|
|
99
102
|
export var LoadingSpinnerContainer = styled('div', function (_ref6) {
|
|
100
103
|
var $theme = _ref6.$theme,
|
|
101
104
|
$size = _ref6.$size;
|
|
@@ -118,6 +121,7 @@ export var LoadingSpinnerContainer = styled('div', function (_ref6) {
|
|
|
118
121
|
};
|
|
119
122
|
});
|
|
120
123
|
LoadingSpinnerContainer.displayName = "LoadingSpinnerContainer";
|
|
124
|
+
LoadingSpinnerContainer.displayName = 'LoadingSpinnerContainer';
|
|
121
125
|
export var LoadingSpinner = styled('span', function (_ref7) {
|
|
122
126
|
var $theme = _ref7.$theme,
|
|
123
127
|
$kind = _ref7.$kind,
|
|
@@ -177,6 +181,7 @@ export var LoadingSpinner = styled('span', function (_ref7) {
|
|
|
177
181
|
};
|
|
178
182
|
});
|
|
179
183
|
LoadingSpinner.displayName = "LoadingSpinner";
|
|
184
|
+
LoadingSpinner.displayName = 'LoadingSpinner';
|
|
180
185
|
|
|
181
186
|
function getLoadingSpinnerColors(_ref8) {
|
|
182
187
|
var $theme = _ref8.$theme,
|
|
@@ -234,6 +239,8 @@ function getBorderRadiiStyles(_ref9) {
|
|
|
234
239
|
}
|
|
235
240
|
} else if ($shape === SHAPE.circle || $shape === SHAPE.round) {
|
|
236
241
|
value = '50%';
|
|
242
|
+
} else if ($size === SIZE.mini) {
|
|
243
|
+
value = $theme.borders.buttonBorderRadiusMini;
|
|
237
244
|
}
|
|
238
245
|
|
|
239
246
|
return {
|