baseui 12.0.0 → 12.1.2
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 +7 -2
- 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 +7 -2
- 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/file-uploader.js +82 -78
- 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 +9 -12
- package/es/input/input.js +9 -13
- 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 -11
- package/es/popover/stateful-container.js +4 -1
- 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 +13 -15
- package/es/themes/dark-theme/color-component-tokens.js +1 -1
- package/es/themes/light-theme/color-component-tokens.js +1 -1
- 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/timezonepicker/update-tzdata.js +11 -6
- 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 +7 -2
- 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/file-uploader.js +87 -83
- 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 +9 -12
- package/esm/input/input.js +9 -13
- 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 -11
- package/esm/popover/stateful-container.js +4 -1
- 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 +13 -15
- package/esm/themes/dark-theme/color-component-tokens.js +1 -1
- package/esm/themes/light-theme/color-component-tokens.js +1 -1
- 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/timezonepicker/update-tzdata.js +51 -39
- 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/file-uploader.js +87 -83
- 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/base-input.js +8 -12
- package/input/base-input.js.flow +4 -8
- package/input/input.js +9 -13
- package/input/input.js.flow +5 -9
- 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 +10 -12
- 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 -11
- package/popover/popover.js.flow +2 -12
- package/popover/stateful-container.js +5 -1
- 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.d.ts +4 -1
- 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 +4 -4
- 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 +13 -15
- package/textarea/textarea.js.flow +5 -9
- package/textarea/types.d.ts +6 -5
- package/textarea/types.js.flow +3 -1
- package/themes/dark-theme/color-component-tokens.js +1 -1
- package/themes/dark-theme/color-component-tokens.js.flow +1 -1
- package/themes/light-theme/color-component-tokens.js +1 -1
- package/themes/light-theme/color-component-tokens.js.flow +1 -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/timezonepicker/update-tzdata.js +51 -39
- 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
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
Copyright (c) Uber Technologies, Inc.
|
|
5
|
+
|
|
6
|
+
This source code is licensed under the MIT license found in the
|
|
7
|
+
LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
import { useStyletron } from '../styles';
|
|
11
|
+
import { getOverrides } from '../helpers/overrides';
|
|
12
|
+
import { LOCATION_PUCK_SIZES, LOCATION_PUCK_TYPES, EARNER_LOCATION_PUCK_CORE_SCALES } from './constants';
|
|
13
|
+
import { LocationPuckContainer, StyledConsumerLocationPuckCore, StyledLocationPuckApproximation, StyledEarnerLocationPuckCore } from './styled-components';
|
|
14
|
+
|
|
15
|
+
const ConsumerLocationPuckHeading = ({
|
|
16
|
+
heading
|
|
17
|
+
}) => {
|
|
18
|
+
const [css, theme] = useStyletron();
|
|
19
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
20
|
+
className: css({
|
|
21
|
+
height: `${6}px`,
|
|
22
|
+
width: `${11}px`,
|
|
23
|
+
position: 'absolute',
|
|
24
|
+
color: theme.colors.contentAccent,
|
|
25
|
+
transition: `${theme.animation.timing300} ${theme.animation.easeOutCurve} all`
|
|
26
|
+
}),
|
|
27
|
+
style: {
|
|
28
|
+
transform: `rotate(${heading}deg) translateY(-16px)`
|
|
29
|
+
},
|
|
30
|
+
width: "11",
|
|
31
|
+
height: "6",
|
|
32
|
+
viewBox: "0 0 11 6",
|
|
33
|
+
fill: "none",
|
|
34
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
35
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
36
|
+
fillRule: "evenodd",
|
|
37
|
+
clipRule: "evenodd",
|
|
38
|
+
d: "M5.5 0L0 6L5.5 5L11 6L5.5 0Z",
|
|
39
|
+
fill: "currentColor"
|
|
40
|
+
}));
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
const ConsumerLocationPuck = ({
|
|
44
|
+
heading,
|
|
45
|
+
showHeading,
|
|
46
|
+
confidenceRadius,
|
|
47
|
+
overrides
|
|
48
|
+
}) => {
|
|
49
|
+
const [, theme] = useStyletron();
|
|
50
|
+
const [Root, rootProps] = getOverrides(overrides.Root, LocationPuckContainer);
|
|
51
|
+
const [ConsumerLocationPuckCore, consumerLocationPuckCoreProps] = getOverrides(overrides.ConsumerLocationPuckCore, StyledConsumerLocationPuckCore);
|
|
52
|
+
const [LocationPuckApproximation, locationPuckApproximationProps] = getOverrides(overrides.LocationPuckApproximation, StyledLocationPuckApproximation);
|
|
53
|
+
return /*#__PURE__*/React.createElement(Root, rootProps, /*#__PURE__*/React.createElement(LocationPuckApproximation, _extends({
|
|
54
|
+
$color: theme.colors.contentAccent,
|
|
55
|
+
$radius: confidenceRadius
|
|
56
|
+
}, locationPuckApproximationProps)), /*#__PURE__*/React.createElement(ConsumerLocationPuckCore, consumerLocationPuckCoreProps), showHeading && /*#__PURE__*/React.createElement(ConsumerLocationPuckHeading, {
|
|
57
|
+
heading: heading
|
|
58
|
+
}));
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
const EarnerLocationPuckHeading = ({
|
|
62
|
+
size,
|
|
63
|
+
color,
|
|
64
|
+
heading
|
|
65
|
+
}) => {
|
|
66
|
+
const [css, theme] = useStyletron();
|
|
67
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
68
|
+
className: css({
|
|
69
|
+
position: 'absolute',
|
|
70
|
+
transition: `${theme.animation.timing300} ${theme.animation.easeOutCurve} all`
|
|
71
|
+
}),
|
|
72
|
+
style: {
|
|
73
|
+
transform: `rotate(${heading}deg) scale(${EARNER_LOCATION_PUCK_CORE_SCALES[size]})`
|
|
74
|
+
},
|
|
75
|
+
width: "72",
|
|
76
|
+
height: "72",
|
|
77
|
+
viewBox: "0 0 72 72",
|
|
78
|
+
fill: "none",
|
|
79
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
80
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
81
|
+
fillRule: "evenodd",
|
|
82
|
+
clipRule: "evenodd",
|
|
83
|
+
d: "M36 20L52 52L36 42.8571L20 52L36 20Z",
|
|
84
|
+
fill: color
|
|
85
|
+
}));
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
const EarnerLocationPuck = ({
|
|
89
|
+
heading,
|
|
90
|
+
confidenceRadius,
|
|
91
|
+
size,
|
|
92
|
+
overrides
|
|
93
|
+
}) => {
|
|
94
|
+
const [, theme] = useStyletron();
|
|
95
|
+
const color = theme.colors.contentPrimary;
|
|
96
|
+
const [Root, rootProps] = getOverrides(overrides.Root, LocationPuckContainer);
|
|
97
|
+
const [LocationPuckApproximation, locationPuckApproximationProps] = getOverrides(overrides.LocationPuckApproximation, StyledLocationPuckApproximation);
|
|
98
|
+
const [EarnerLocationPuckCore, earnerLocationPuckCoreProps] = getOverrides(overrides.EarnerLocationPuckCore, StyledEarnerLocationPuckCore);
|
|
99
|
+
return /*#__PURE__*/React.createElement(Root, rootProps, /*#__PURE__*/React.createElement(LocationPuckApproximation, _extends({
|
|
100
|
+
$color: color,
|
|
101
|
+
$radius: confidenceRadius
|
|
102
|
+
}, locationPuckApproximationProps)), /*#__PURE__*/React.createElement(EarnerLocationPuckCore, _extends({
|
|
103
|
+
$color: color,
|
|
104
|
+
$size: size
|
|
105
|
+
}, earnerLocationPuckCoreProps)), /*#__PURE__*/React.createElement(EarnerLocationPuckHeading, {
|
|
106
|
+
size: size,
|
|
107
|
+
color: color,
|
|
108
|
+
heading: heading
|
|
109
|
+
}));
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
const LocationPuck = ({
|
|
113
|
+
size = LOCATION_PUCK_SIZES.medium,
|
|
114
|
+
heading = 0,
|
|
115
|
+
showHeading = true,
|
|
116
|
+
confidenceRadius = 0,
|
|
117
|
+
type = LOCATION_PUCK_TYPES.consumer,
|
|
118
|
+
overrides = {}
|
|
119
|
+
}) => {
|
|
120
|
+
if (process.env.NODE_ENV !== "production") {
|
|
121
|
+
if (size !== LOCATION_PUCK_SIZES.medium && type === LOCATION_PUCK_TYPES.consumer) {
|
|
122
|
+
console.warn(`Location puck size can only be applied to type === LOCATION_PUCK_TYPES.earner`);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
if (!showHeading && type === LOCATION_PUCK_TYPES.earner) {
|
|
126
|
+
console.warn(`Earner location puck must show the heading indicator`);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
const sharedProps = {
|
|
131
|
+
heading,
|
|
132
|
+
confidenceRadius,
|
|
133
|
+
overrides
|
|
134
|
+
};
|
|
135
|
+
return type === LOCATION_PUCK_TYPES.consumer ? /*#__PURE__*/React.createElement(ConsumerLocationPuck, _extends({}, sharedProps, {
|
|
136
|
+
showHeading: showHeading
|
|
137
|
+
})) : /*#__PURE__*/React.createElement(EarnerLocationPuck, _extends({}, sharedProps, {
|
|
138
|
+
size: size
|
|
139
|
+
}));
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
export default LocationPuck;
|
|
@@ -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
|
import { styled } from '../styles';
|
|
8
|
-
import { BADGE_ENHANCER_STYLES, FLOATING_MARKER_ANCHOR_POSITIONS, LABEL_SIZES } from './constants';
|
|
8
|
+
import { BADGE_ENHANCER_STYLES, FLOATING_MARKER_ANCHOR_POSITIONS, LABEL_SIZES, EARNER_LOCATION_PUCK_CORE_SCALES } from './constants';
|
|
9
9
|
export const getAnchorTransform = (anchor, anchorSize) => ({
|
|
10
10
|
[FLOATING_MARKER_ANCHOR_POSITIONS.none]: ``,
|
|
11
11
|
[FLOATING_MARKER_ANCHOR_POSITIONS.topLeft]: `translate(${anchorSize}px, ${anchorSize}px)`,
|
|
@@ -28,6 +28,7 @@ export const StyledDragShadowContainer = styled('div', ({
|
|
|
28
28
|
boxShadow: $theme.lighting.shadow600
|
|
29
29
|
}));
|
|
30
30
|
StyledDragShadowContainer.displayName = "StyledDragShadowContainer";
|
|
31
|
+
StyledDragShadowContainer.displayName = 'StyledDragShadowContainer';
|
|
31
32
|
export const StyledDragShadow = styled('div', ({
|
|
32
33
|
$theme,
|
|
33
34
|
$background,
|
|
@@ -41,6 +42,7 @@ export const StyledDragShadow = styled('div', ({
|
|
|
41
42
|
bottom: 0
|
|
42
43
|
}));
|
|
43
44
|
StyledDragShadow.displayName = "StyledDragShadow";
|
|
45
|
+
StyledDragShadow.displayName = 'StyledDragShadow';
|
|
44
46
|
export const StyledNeedle = styled('div', ({
|
|
45
47
|
$theme,
|
|
46
48
|
$background,
|
|
@@ -52,6 +54,7 @@ export const StyledNeedle = styled('div', ({
|
|
|
52
54
|
boxShadow: $theme.lighting.shadow600
|
|
53
55
|
}));
|
|
54
56
|
StyledNeedle.displayName = "StyledNeedle";
|
|
57
|
+
StyledNeedle.displayName = 'StyledNeedle';
|
|
55
58
|
export const StyledFloatingMarkerRoot = styled('div', ({
|
|
56
59
|
$size
|
|
57
60
|
}) => ({
|
|
@@ -60,6 +63,7 @@ export const StyledFloatingMarkerRoot = styled('div', ({
|
|
|
60
63
|
width: `${$size}px`
|
|
61
64
|
}));
|
|
62
65
|
StyledFloatingMarkerRoot.displayName = "StyledFloatingMarkerRoot";
|
|
66
|
+
StyledFloatingMarkerRoot.displayName = 'StyledFloatingMarkerRoot';
|
|
63
67
|
export const StyledFloatingMarkerPinHeadContainer = styled('div', ({
|
|
64
68
|
$theme,
|
|
65
69
|
$anchor,
|
|
@@ -70,16 +74,19 @@ export const StyledFloatingMarkerPinHeadContainer = styled('div', ({
|
|
|
70
74
|
transform: getAnchorTransform($anchor, $anchorSize)
|
|
71
75
|
}));
|
|
72
76
|
StyledFloatingMarkerPinHeadContainer.displayName = "StyledFloatingMarkerPinHeadContainer";
|
|
77
|
+
StyledFloatingMarkerPinHeadContainer.displayName = 'StyledFloatingMarkerPinHeadContainer';
|
|
73
78
|
export const StyledFloatingMarkerAnchorContainer = styled('div', () => ({
|
|
74
79
|
position: 'absolute'
|
|
75
80
|
}));
|
|
76
81
|
StyledFloatingMarkerAnchorContainer.displayName = "StyledFloatingMarkerAnchorContainer";
|
|
82
|
+
StyledFloatingMarkerAnchorContainer.displayName = 'StyledFloatingMarkerAnchorContainer';
|
|
77
83
|
export const StyledFixedMarkerRoot = styled('div', () => ({
|
|
78
84
|
display: 'flex',
|
|
79
85
|
alignItems: 'center',
|
|
80
86
|
flexDirection: 'column'
|
|
81
87
|
}));
|
|
82
88
|
StyledFixedMarkerRoot.displayName = "StyledFixedMarkerRoot";
|
|
89
|
+
StyledFixedMarkerRoot.displayName = 'StyledFixedMarkerRoot';
|
|
83
90
|
export const StyledFixedMarkerDragContainer = styled('div', ({
|
|
84
91
|
$theme,
|
|
85
92
|
$translateAmount,
|
|
@@ -94,6 +101,7 @@ export const StyledFixedMarkerDragContainer = styled('div', ({
|
|
|
94
101
|
};
|
|
95
102
|
});
|
|
96
103
|
StyledFixedMarkerDragContainer.displayName = "StyledFixedMarkerDragContainer";
|
|
104
|
+
StyledFixedMarkerDragContainer.displayName = 'StyledFixedMarkerDragContainer';
|
|
97
105
|
export const StyledOuterXXSmallAnchor = styled('div', ({
|
|
98
106
|
$theme,
|
|
99
107
|
$round,
|
|
@@ -110,6 +118,7 @@ export const StyledOuterXXSmallAnchor = styled('div', ({
|
|
|
110
118
|
boxShadow: $theme.lighting.shadow600
|
|
111
119
|
}));
|
|
112
120
|
StyledOuterXXSmallAnchor.displayName = "StyledOuterXXSmallAnchor";
|
|
121
|
+
StyledOuterXXSmallAnchor.displayName = 'StyledOuterXXSmallAnchor';
|
|
113
122
|
export const StyledInnerXXSmallAnchor = styled('div', ({
|
|
114
123
|
$round,
|
|
115
124
|
$color,
|
|
@@ -121,6 +130,7 @@ export const StyledInnerXXSmallAnchor = styled('div', ({
|
|
|
121
130
|
borderRadius: $round ? '50%' : 0
|
|
122
131
|
}));
|
|
123
132
|
StyledInnerXXSmallAnchor.displayName = "StyledInnerXXSmallAnchor";
|
|
133
|
+
StyledInnerXXSmallAnchor.displayName = 'StyledInnerXXSmallAnchor';
|
|
124
134
|
export const StyledOuterXSmallAnchor = styled('div', ({
|
|
125
135
|
$theme,
|
|
126
136
|
$round,
|
|
@@ -137,6 +147,7 @@ export const StyledOuterXSmallAnchor = styled('div', ({
|
|
|
137
147
|
boxShadow: $theme.lighting.shadow600
|
|
138
148
|
}));
|
|
139
149
|
StyledOuterXSmallAnchor.displayName = "StyledOuterXSmallAnchor";
|
|
150
|
+
StyledOuterXSmallAnchor.displayName = 'StyledOuterXSmallAnchor';
|
|
140
151
|
export const StyledInnerXSmallAnchor = styled('div', ({
|
|
141
152
|
$round,
|
|
142
153
|
$color,
|
|
@@ -148,6 +159,7 @@ export const StyledInnerXSmallAnchor = styled('div', ({
|
|
|
148
159
|
borderRadius: $round ? '50%' : 0
|
|
149
160
|
}));
|
|
150
161
|
StyledInnerXSmallAnchor.displayName = "StyledInnerXSmallAnchor";
|
|
162
|
+
StyledInnerXSmallAnchor.displayName = 'StyledInnerXSmallAnchor';
|
|
151
163
|
export const StyledPinHead = styled('div', ({
|
|
152
164
|
$theme,
|
|
153
165
|
$height,
|
|
@@ -183,6 +195,7 @@ export const StyledPinHead = styled('div', ({
|
|
|
183
195
|
};
|
|
184
196
|
});
|
|
185
197
|
StyledPinHead.displayName = "StyledPinHead";
|
|
198
|
+
StyledPinHead.displayName = 'StyledPinHead';
|
|
186
199
|
export const StyledStrokedLabelContainer = styled('div', ({
|
|
187
200
|
$position,
|
|
188
201
|
$theme,
|
|
@@ -229,6 +242,7 @@ export const StyledStrokedLabelContainer = styled('div', ({
|
|
|
229
242
|
};
|
|
230
243
|
});
|
|
231
244
|
StyledStrokedLabelContainer.displayName = "StyledStrokedLabelContainer";
|
|
245
|
+
StyledStrokedLabelContainer.displayName = 'StyledStrokedLabelContainer';
|
|
232
246
|
export const StyledStrokedLabel = styled('div', ({
|
|
233
247
|
$theme,
|
|
234
248
|
$size
|
|
@@ -255,6 +269,7 @@ export const StyledStrokedLabel = styled('div', ({
|
|
|
255
269
|
};
|
|
256
270
|
});
|
|
257
271
|
StyledStrokedLabel.displayName = "StyledStrokedLabel";
|
|
272
|
+
StyledStrokedLabel.displayName = 'StyledStrokedLabel';
|
|
258
273
|
export const StyledBadgeEnhancerRoot = styled('div', ({
|
|
259
274
|
$theme,
|
|
260
275
|
$size,
|
|
@@ -277,12 +292,14 @@ export const StyledBadgeEnhancerRoot = styled('div', ({
|
|
|
277
292
|
};
|
|
278
293
|
});
|
|
279
294
|
StyledBadgeEnhancerRoot.displayName = "StyledBadgeEnhancerRoot";
|
|
295
|
+
StyledBadgeEnhancerRoot.displayName = 'StyledBadgeEnhancerRoot';
|
|
280
296
|
export const RelativeContainer = styled('div', () => {
|
|
281
297
|
return {
|
|
282
298
|
position: 'relative'
|
|
283
299
|
};
|
|
284
300
|
});
|
|
285
301
|
RelativeContainer.displayName = "RelativeContainer";
|
|
302
|
+
RelativeContainer.displayName = 'RelativeContainer';
|
|
286
303
|
export const StyledContentItem = styled('div', ({
|
|
287
304
|
$theme,
|
|
288
305
|
$color,
|
|
@@ -298,4 +315,71 @@ export const StyledContentItem = styled('div', ({
|
|
|
298
315
|
color: $color
|
|
299
316
|
};
|
|
300
317
|
});
|
|
301
|
-
StyledContentItem.displayName = "StyledContentItem";
|
|
318
|
+
StyledContentItem.displayName = "StyledContentItem";
|
|
319
|
+
StyledContentItem.displayName = 'StyledContentItem';
|
|
320
|
+
export const LocationPuckContainer = styled('div', () => {
|
|
321
|
+
return {
|
|
322
|
+
position: 'relative',
|
|
323
|
+
display: 'flex',
|
|
324
|
+
alignItems: 'center',
|
|
325
|
+
justifyContent: 'center'
|
|
326
|
+
};
|
|
327
|
+
});
|
|
328
|
+
LocationPuckContainer.displayName = "LocationPuckContainer";
|
|
329
|
+
LocationPuckContainer.displayName = 'LocationPuckContainer';
|
|
330
|
+
export const consumerLocationShadow = {
|
|
331
|
+
boxShadow: `0px 2px 4px 0px rgba(67, 76, 123, 0.2)`
|
|
332
|
+
};
|
|
333
|
+
export const earnerLocationShadow = {
|
|
334
|
+
boxShadow: `0px 3px 5px 0px rgba(67, 76, 123, 0.4)`
|
|
335
|
+
};
|
|
336
|
+
export const StyledConsumerLocationPuckCore = styled('div', ({
|
|
337
|
+
$theme
|
|
338
|
+
}) => {
|
|
339
|
+
return {
|
|
340
|
+
height: `${12}px`,
|
|
341
|
+
width: `${12}px`,
|
|
342
|
+
background: $theme.colors.contentAccent,
|
|
343
|
+
borderRadius: `${100}px `,
|
|
344
|
+
position: 'absolute',
|
|
345
|
+
...consumerLocationShadow
|
|
346
|
+
};
|
|
347
|
+
});
|
|
348
|
+
StyledConsumerLocationPuckCore.displayName = "StyledConsumerLocationPuckCore";
|
|
349
|
+
export const StyledLocationPuckApproximation = styled('div', ({
|
|
350
|
+
$theme,
|
|
351
|
+
$color,
|
|
352
|
+
$radius
|
|
353
|
+
}) => {
|
|
354
|
+
return {
|
|
355
|
+
background: $color,
|
|
356
|
+
opacity: 0.12,
|
|
357
|
+
height: `${$radius / 2}px`,
|
|
358
|
+
width: `${$radius / 2}px`,
|
|
359
|
+
borderRadius: `${10000}px `,
|
|
360
|
+
position: 'absolute',
|
|
361
|
+
transition: `${$theme.animation.timing300} ${$theme.animation.easeOutCurve} all`
|
|
362
|
+
};
|
|
363
|
+
});
|
|
364
|
+
StyledLocationPuckApproximation.displayName = "StyledLocationPuckApproximation";
|
|
365
|
+
StyledLocationPuckApproximation.displayName = 'StyledLocationPuckApproximation';
|
|
366
|
+
export const StyledEarnerLocationPuckCore = styled('div', ({
|
|
367
|
+
$theme,
|
|
368
|
+
$color,
|
|
369
|
+
$size
|
|
370
|
+
}) => {
|
|
371
|
+
return {
|
|
372
|
+
position: 'absolute',
|
|
373
|
+
transform: `scale(${EARNER_LOCATION_PUCK_CORE_SCALES[$size]})`,
|
|
374
|
+
transition: `${$theme.animation.timing300} ${$theme.animation.easeOutCurve} all`,
|
|
375
|
+
...earnerLocationShadow,
|
|
376
|
+
borderRadius: '50%',
|
|
377
|
+
height: `${72}px`,
|
|
378
|
+
width: `${72}px`,
|
|
379
|
+
background: $theme.colors.backgroundPrimary,
|
|
380
|
+
border: `${6}px solid ${$color}`,
|
|
381
|
+
boxSizing: 'border-box'
|
|
382
|
+
};
|
|
383
|
+
});
|
|
384
|
+
StyledEarnerLocationPuckCore.displayName = "StyledEarnerLocationPuckCore";
|
|
385
|
+
StyledEarnerLocationPuckCore.displayName = 'StyledEarnerLocationPuckCore';
|
package/es/menu/index.js
CHANGED
|
@@ -13,6 +13,6 @@ export { default as NestedMenus, NestedMenuContext } from './nested-menus'; // C
|
|
|
13
13
|
|
|
14
14
|
export { KEY_STRINGS, STATE_CHANGE_TYPES } from './constants'; // Styled elements
|
|
15
15
|
|
|
16
|
-
export { StyledEmptyState, StyledList, StyledListItem, StyledListItemProfile, StyledProfileImgContainer, StyledProfileImg, StyledProfileLabelsContainer, StyledProfileTitle, StyledProfileSubtitle, StyledProfileBody } from './styled-components'; // Flow
|
|
16
|
+
export { StyledEmptyState, StyledList, StyledListItem, StyledListItemProfile, StyledProfileImgContainer, StyledProfileImg, StyledProfileLabelsContainer, StyledProfileTitle, StyledProfileSubtitle, StyledProfileBody, StyledMenuDivider } from './styled-components'; // Flow
|
|
17
17
|
|
|
18
18
|
export * from './types';
|
package/es/menu/menu.js
CHANGED
|
@@ -9,7 +9,7 @@ LICENSE file in the root directory of this source tree.
|
|
|
9
9
|
import * as React from 'react';
|
|
10
10
|
import { LocaleContext } from '../locale'; // Components
|
|
11
11
|
|
|
12
|
-
import { StyledList, StyledEmptyState, StyledOptgroupHeader } from './styled-components';
|
|
12
|
+
import { StyledList, StyledEmptyState, StyledOptgroupHeader, StyledMenuDivider } from './styled-components';
|
|
13
13
|
import OptionList from './option-list';
|
|
14
14
|
import { getOverrides } from '../helpers/overrides'; // Types
|
|
15
15
|
|
|
@@ -22,6 +22,7 @@ export default function Menu(props) {
|
|
|
22
22
|
focusMenu = () => {},
|
|
23
23
|
unfocusMenu = () => {},
|
|
24
24
|
handleMouseLeave = () => {},
|
|
25
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
25
26
|
handleKeyDown = event => {},
|
|
26
27
|
renderAll = false
|
|
27
28
|
} = props;
|
|
@@ -31,7 +32,8 @@ export default function Menu(props) {
|
|
|
31
32
|
if (isFocusVisible(event)) {
|
|
32
33
|
setFocusVisible(true);
|
|
33
34
|
}
|
|
34
|
-
};
|
|
35
|
+
}; // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
36
|
+
|
|
35
37
|
|
|
36
38
|
const handleBlur = event => {
|
|
37
39
|
if (focusVisible !== false) {
|
|
@@ -43,6 +45,7 @@ export default function Menu(props) {
|
|
|
43
45
|
const [Option, optionProps] = getOverrides(overrides.Option, OptionList);
|
|
44
46
|
const [EmptyState, emptyStateProps] = getOverrides(overrides.EmptyState, StyledEmptyState);
|
|
45
47
|
const [OptgroupHeader, optgroupHeaderProps] = getOverrides(overrides.OptgroupHeader, StyledOptgroupHeader);
|
|
48
|
+
const [MenuDivider, menuDividerProps] = getOverrides(overrides.MenuDivider, StyledMenuDivider);
|
|
46
49
|
const groupedItems = Array.isArray(props.items) ? {
|
|
47
50
|
__ungrouped: props.items
|
|
48
51
|
} : props.items;
|
|
@@ -52,13 +55,20 @@ export default function Menu(props) {
|
|
|
52
55
|
els.push( /*#__PURE__*/React.createElement(OptgroupHeader, _extends({
|
|
53
56
|
key: optgroup
|
|
54
57
|
}, optgroupHeaderProps), optgroup));
|
|
55
|
-
}
|
|
58
|
+
} // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
59
|
+
|
|
56
60
|
|
|
57
61
|
const groupItems = groupedItems[optgroup].map((item, index) => {
|
|
58
|
-
itemIndex = itemIndex + 1;
|
|
62
|
+
itemIndex = itemIndex + 1; // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
63
|
+
|
|
59
64
|
const {
|
|
60
65
|
getRequiredItemProps = (item, index) => ({})
|
|
61
66
|
} = props;
|
|
67
|
+
|
|
68
|
+
if (item.divider === true) {
|
|
69
|
+
return /*#__PURE__*/React.createElement(MenuDivider, menuDividerProps);
|
|
70
|
+
}
|
|
71
|
+
|
|
62
72
|
const {
|
|
63
73
|
disabled,
|
|
64
74
|
isFocused,
|
|
@@ -12,6 +12,7 @@ import MaybeChildMenu from './maybe-child-menu';
|
|
|
12
12
|
import { StyledListItemProfile, StyledProfileImgContainer, StyledProfileImg, StyledProfileLabelsContainer, StyledProfileTitle, StyledProfileSubtitle, StyledProfileBody } from './styled-components';
|
|
13
13
|
import { getOverrides } from '../helpers/overrides'; // Types
|
|
14
14
|
|
|
15
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
15
16
|
function OptionProfile(props, ref) {
|
|
16
17
|
const {
|
|
17
18
|
item,
|
|
@@ -384,14 +384,23 @@ class MenuStatefulContainerInner extends React.Component {
|
|
|
384
384
|
// omit the stateful-container's props and don't pass it down
|
|
385
385
|
// to the children (stateless menu)
|
|
386
386
|
const {
|
|
387
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
387
388
|
initialState,
|
|
389
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
388
390
|
stateReducer,
|
|
391
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
389
392
|
children,
|
|
393
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
390
394
|
onItemSelect,
|
|
395
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
391
396
|
addMenuToNesting,
|
|
397
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
392
398
|
removeMenuFromNesting,
|
|
399
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
393
400
|
getParentMenu,
|
|
401
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
394
402
|
getChildMenu,
|
|
403
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
395
404
|
forceHighlight,
|
|
396
405
|
...restProps
|
|
397
406
|
} = this.props;
|
|
@@ -402,6 +411,7 @@ class MenuStatefulContainerInner extends React.Component {
|
|
|
402
411
|
handleMouseLeave: this.handleMouseLeave,
|
|
403
412
|
highlightedIndex: this.state.highlightedIndex,
|
|
404
413
|
isFocused: this.state.isFocused,
|
|
414
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
405
415
|
handleKeyDown: this.props.keyboardControlNode.current ? event => {} : this.onKeyDown,
|
|
406
416
|
focusMenu: this.focusMenu,
|
|
407
417
|
unfocusMenu: this.unfocusMenu
|
|
@@ -34,6 +34,7 @@ export const StyledList = styled('ul', ({
|
|
|
34
34
|
};
|
|
35
35
|
});
|
|
36
36
|
StyledList.displayName = "StyledList";
|
|
37
|
+
StyledList.displayName = 'StyledList';
|
|
37
38
|
|
|
38
39
|
function getFontColor(props) {
|
|
39
40
|
if (props.$disabled) {
|
|
@@ -83,6 +84,7 @@ export const StyledEmptyState = styled('li', props => {
|
|
|
83
84
|
};
|
|
84
85
|
});
|
|
85
86
|
StyledEmptyState.displayName = "StyledEmptyState";
|
|
87
|
+
StyledEmptyState.displayName = 'StyledEmptyState';
|
|
86
88
|
export const StyledOptgroupHeader = styled('li', props => {
|
|
87
89
|
const paddingX = props.$theme.sizing.scale300;
|
|
88
90
|
const paddingY = props.$theme.sizing.scale200;
|
|
@@ -95,6 +97,7 @@ export const StyledOptgroupHeader = styled('li', props => {
|
|
|
95
97
|
};
|
|
96
98
|
});
|
|
97
99
|
StyledOptgroupHeader.displayName = "StyledOptgroupHeader";
|
|
100
|
+
StyledOptgroupHeader.displayName = 'StyledOptgroupHeader';
|
|
98
101
|
export const StyledListItemAnchor = styled('a', props => {
|
|
99
102
|
return {
|
|
100
103
|
display: 'block',
|
|
@@ -102,6 +105,7 @@ export const StyledListItemAnchor = styled('a', props => {
|
|
|
102
105
|
};
|
|
103
106
|
});
|
|
104
107
|
StyledListItemAnchor.displayName = "StyledListItemAnchor";
|
|
108
|
+
StyledListItemAnchor.displayName = 'StyledListItemAnchor';
|
|
105
109
|
export const StyledListItemElement = styled('li', props => {
|
|
106
110
|
const {
|
|
107
111
|
$disabled,
|
|
@@ -109,6 +113,7 @@ export const StyledListItemElement = styled('li', props => {
|
|
|
109
113
|
$size
|
|
110
114
|
} = props;
|
|
111
115
|
return { ...($size === OPTION_LIST_SIZE.compact ? $theme.typography.font100 : $theme.typography.font200),
|
|
116
|
+
boxSizing: 'border-box',
|
|
112
117
|
position: 'relative',
|
|
113
118
|
display: 'block',
|
|
114
119
|
color: getFontColor(props),
|
|
@@ -128,7 +133,9 @@ export const StyledListItemElement = styled('li', props => {
|
|
|
128
133
|
};
|
|
129
134
|
});
|
|
130
135
|
StyledListItemElement.displayName = "StyledListItemElement";
|
|
131
|
-
|
|
136
|
+
StyledListItemElement.displayName = 'StyledListItemElement';
|
|
137
|
+
export const StyledListItem = withWrapper(StyledListItemElement, Styled => // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
138
|
+
function StyledListItem({
|
|
132
139
|
item,
|
|
133
140
|
...restProps
|
|
134
141
|
}) {
|
|
@@ -153,6 +160,7 @@ export const StyledListItemProfile = styled('li', ({
|
|
|
153
160
|
}
|
|
154
161
|
}));
|
|
155
162
|
StyledListItemProfile.displayName = "StyledListItemProfile";
|
|
163
|
+
StyledListItemProfile.displayName = 'StyledListItemProfile';
|
|
156
164
|
export const StyledProfileImgContainer = styled('div', {
|
|
157
165
|
width: '60px',
|
|
158
166
|
height: '60px',
|
|
@@ -161,6 +169,7 @@ export const StyledProfileImgContainer = styled('div', {
|
|
|
161
169
|
alignItems: 'center'
|
|
162
170
|
});
|
|
163
171
|
StyledProfileImgContainer.displayName = "StyledProfileImgContainer";
|
|
172
|
+
StyledProfileImgContainer.displayName = 'StyledProfileImgContainer';
|
|
164
173
|
export const StyledProfileImg = styled('img', {
|
|
165
174
|
width: '100%',
|
|
166
175
|
height: '100%',
|
|
@@ -170,6 +179,7 @@ export const StyledProfileImg = styled('img', {
|
|
|
170
179
|
borderBottomLeftRadius: '50%'
|
|
171
180
|
});
|
|
172
181
|
StyledProfileImg.displayName = "StyledProfileImg";
|
|
182
|
+
StyledProfileImg.displayName = 'StyledProfileImg';
|
|
173
183
|
export const StyledProfileLabelsContainer = styled('div', ({
|
|
174
184
|
$theme: {
|
|
175
185
|
direction,
|
|
@@ -186,6 +196,7 @@ export const StyledProfileLabelsContainer = styled('div', ({
|
|
|
186
196
|
})
|
|
187
197
|
}));
|
|
188
198
|
StyledProfileLabelsContainer.displayName = "StyledProfileLabelsContainer";
|
|
199
|
+
StyledProfileLabelsContainer.displayName = 'StyledProfileLabelsContainer';
|
|
189
200
|
export const StyledProfileTitle = styled('h6', ({
|
|
190
201
|
$theme
|
|
191
202
|
}) => ({ ...$theme.typography.font350,
|
|
@@ -196,6 +207,7 @@ export const StyledProfileTitle = styled('h6', ({
|
|
|
196
207
|
marginRight: 0
|
|
197
208
|
}));
|
|
198
209
|
StyledProfileTitle.displayName = "StyledProfileTitle";
|
|
210
|
+
StyledProfileTitle.displayName = 'StyledProfileTitle';
|
|
199
211
|
export const StyledProfileSubtitle = styled('p', ({
|
|
200
212
|
$theme
|
|
201
213
|
}) => ({ ...$theme.typography.font200,
|
|
@@ -206,6 +218,7 @@ export const StyledProfileSubtitle = styled('p', ({
|
|
|
206
218
|
marginRight: 0
|
|
207
219
|
}));
|
|
208
220
|
StyledProfileSubtitle.displayName = "StyledProfileSubtitle";
|
|
221
|
+
StyledProfileSubtitle.displayName = 'StyledProfileSubtitle';
|
|
209
222
|
export const StyledProfileBody = styled('p', ({
|
|
210
223
|
$theme
|
|
211
224
|
}) => ({ ...$theme.typography.font100,
|
|
@@ -215,4 +228,21 @@ export const StyledProfileBody = styled('p', ({
|
|
|
215
228
|
marginLeft: 0,
|
|
216
229
|
marginRight: 0
|
|
217
230
|
}));
|
|
218
|
-
StyledProfileBody.displayName = "StyledProfileBody";
|
|
231
|
+
StyledProfileBody.displayName = "StyledProfileBody";
|
|
232
|
+
StyledProfileBody.displayName = 'StyledProfileBody';
|
|
233
|
+
export const StyledMenuDivider = styled('li', ({
|
|
234
|
+
$theme
|
|
235
|
+
}) => ({
|
|
236
|
+
color: $theme.colors.contentPrimary,
|
|
237
|
+
borderBottomWidth: $theme.borders.border300.borderWidth,
|
|
238
|
+
borderBottomStyle: $theme.borders.border300.borderStyle,
|
|
239
|
+
borderBottomColor: $theme.borders.border300.borderColor,
|
|
240
|
+
marginTop: $theme.sizing.scale100,
|
|
241
|
+
marginBottom: $theme.sizing.scale100,
|
|
242
|
+
marginLeft: $theme.sizing.scale500,
|
|
243
|
+
marginRight: $theme.sizing.scale500,
|
|
244
|
+
listStyle: 'none',
|
|
245
|
+
height: 0
|
|
246
|
+
}));
|
|
247
|
+
StyledMenuDivider.displayName = "StyledMenuDivider";
|
|
248
|
+
StyledProfileBody.displayName = 'StyledMenuDivider';
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
import { KIND } from '../button';
|
|
8
|
+
export const BACKGROUND_COLOR_TYPE = Object.freeze({
|
|
9
|
+
light: 'light',
|
|
10
|
+
dark: 'dark'
|
|
11
|
+
});
|
|
12
|
+
export const IMAGE_LAYOUT = Object.freeze({
|
|
13
|
+
top: 'top',
|
|
14
|
+
trailing: 'trailing'
|
|
15
|
+
});
|
|
16
|
+
export const BUTTON_KIND = Object.freeze({
|
|
17
|
+
[KIND.secondary]: KIND.secondary,
|
|
18
|
+
[KIND.tertiary]: KIND.tertiary
|
|
19
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
export { default as MessageCard } from './message-card';
|
|
8
|
+
export * from './constants';
|
|
9
|
+
export * from './styled-components';
|
|
10
|
+
export * from './types';
|