baseui 12.0.0 → 12.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/accordion.js +4 -2
- package/accordion/accordion.js.flow +1 -1
- package/accordion/panel.js +3 -2
- package/accordion/stateful-panel-container.js +1 -0
- package/accordion/styled-components.js +8 -1
- package/accordion/types.d.ts +2 -2
- package/app-nav-bar/app-nav-bar.js +4 -2
- package/app-nav-bar/mobile-menu.js +2 -1
- package/app-nav-bar/styled-components.js +19 -1
- package/app-nav-bar/types.d.ts +2 -2
- package/app-nav-bar/user-menu.js +1 -1
- package/aspect-ratio-box/aspect-ratio-box-body.d.ts +1 -1
- package/aspect-ratio-box/aspect-ratio-box.js +3 -1
- package/aspect-ratio-box/types.d.ts +1 -1
- package/avatar/styled-components.js +4 -1
- package/badge/styled-components.js +16 -11
- package/badge/styled-components.js.flow +4 -4
- package/badge/types.d.ts +2 -2
- package/banner/index.d.ts +1 -1
- package/banner/styled-components.js +25 -12
- package/banner/types.d.ts +15 -15
- package/banner/types.js.flow +13 -11
- package/block/block.js +3 -1
- package/block/styled-components.js +2 -1
- package/block/types.d.ts +3 -4
- package/breadcrumbs/styled-components.js +5 -1
- package/button/styled-components.js +7 -0
- package/button/styled-components.js.flow +2 -0
- package/button/types.d.ts +4 -5
- package/button-group/stateful-button-group.js +1 -0
- package/button-group/stateful-container.js +3 -1
- package/button-group/styled-components.js +2 -1
- package/button-group/types.d.ts +4 -5
- package/card/styled-components.js +11 -4
- package/checkbox/styled-components.js +10 -4
- package/checkbox/styled-components.js.flow +1 -1
- package/checkbox/types.d.ts +36 -37
- package/combobox/combobox.js +78 -71
- package/combobox/styled-components.js +5 -1
- package/combobox/types.d.ts +4 -5
- package/data-table/column-anchor.js +3 -0
- package/data-table/column-datetime.js +10 -4
- package/data-table/column-numerical.js +4 -4
- package/data-table/column-string.js +3 -0
- package/data-table/column.js +6 -1
- package/data-table/data-table.js +6 -3
- package/data-table/filter-menu.js +2 -1
- package/data-table/header-cell.js +43 -34
- package/data-table/locale.d.ts +4 -0
- package/data-table/locale.js +3 -1
- package/data-table/locale.js.flow +5 -0
- package/data-table/measure-column-widths.js +5 -4
- package/data-table/stateful-container.js +2 -1
- package/data-table/stateful-data-table.js +4 -4
- package/data-table/types.d.ts +4 -5
- package/datepicker/calendar-header.js +1 -0
- package/datepicker/calendar.js +2 -0
- package/datepicker/datepicker.js +2 -0
- package/datepicker/day.js +2 -1
- package/datepicker/index.d.ts +1 -1
- package/datepicker/index.js +7 -0
- package/datepicker/index.js.flow +1 -1
- package/datepicker/stateful-calendar.js +7 -3
- package/datepicker/stateful-container.js +2 -0
- package/datepicker/stateful-datepicker.js +9 -4
- package/datepicker/styled-components.js +27 -4
- package/datepicker/types.d.ts +2 -2
- package/datepicker/utils/date-helpers.js +2 -1
- package/datepicker/utils/index.js +2 -1
- package/divider/styled-components.js +4 -3
- package/divider/types.d.ts +1 -1
- package/dnd-list/stateful-list-container.js +1 -0
- package/dnd-list/styled-components.js +7 -0
- package/dnd-list/types.d.ts +2 -2
- package/drawer/constants.js +1 -0
- package/drawer/drawer.js +2 -3
- package/drawer/drawer.js.flow +1 -3
- package/drawer/styled-components.js +9 -2
- package/drawer/types.d.ts +2 -2
- package/es/accordion/accordion.js +3 -3
- package/es/accordion/panel.js +3 -2
- package/es/accordion/stateful-panel-container.js +1 -0
- package/es/accordion/styled-components.js +8 -1
- package/es/app-nav-bar/app-nav-bar.js +6 -2
- package/es/app-nav-bar/mobile-menu.js +4 -2
- package/es/app-nav-bar/styled-components.js +19 -1
- package/es/app-nav-bar/user-menu.js +1 -1
- package/es/aspect-ratio-box/aspect-ratio-box.js +3 -1
- package/es/avatar/styled-components.js +4 -1
- package/es/badge/styled-components.js +11 -6
- package/es/banner/styled-components.js +16 -3
- package/es/block/block.js +3 -1
- package/es/block/styled-components.js +2 -1
- package/es/breadcrumbs/styled-components.js +5 -1
- package/es/button/button.js +8 -0
- package/es/button/styled-components.js +7 -0
- package/es/button-group/stateful-button-group.js +1 -0
- package/es/button-group/stateful-container.js +3 -1
- package/es/button-group/styled-components.js +2 -1
- package/es/card/index.js +2 -1
- package/es/card/styled-components.js +12 -4
- package/es/checkbox/index.js +1 -0
- package/es/checkbox/stateful-checkbox-container.js +3 -0
- package/es/checkbox/styled-components.js +10 -4
- package/es/combobox/combobox.js +76 -69
- package/es/combobox/styled-components.js +5 -1
- package/es/data-table/column-anchor.js +3 -0
- package/es/data-table/column-datetime.js +12 -5
- package/es/data-table/column-numerical.js +5 -4
- package/es/data-table/column-string.js +3 -0
- package/es/data-table/column.js +4 -1
- package/es/data-table/data-table.js +6 -3
- package/es/data-table/filter-menu.js +2 -1
- package/es/data-table/header-cell.js +41 -34
- package/es/data-table/locale.js +3 -1
- package/es/data-table/measure-column-widths.js +5 -4
- package/es/data-table/stateful-container.js +2 -1
- package/es/data-table/stateful-data-table.js +4 -4
- package/es/datepicker/calendar-header.js +1 -0
- package/es/datepicker/calendar.js +2 -0
- package/es/datepicker/datepicker.js +3 -1
- package/es/datepicker/day.js +2 -1
- package/es/datepicker/index.js +1 -1
- package/es/datepicker/stateful-calendar.js +4 -1
- package/es/datepicker/stateful-container.js +2 -0
- package/es/datepicker/stateful-datepicker.js +5 -1
- package/es/datepicker/styled-components.js +26 -3
- package/es/datepicker/utils/date-helpers.js +2 -1
- package/es/datepicker/utils/index.js +2 -1
- package/es/divider/styled-components.js +3 -2
- package/es/dnd-list/stateful-list-container.js +1 -0
- package/es/dnd-list/styled-components.js +7 -0
- package/es/drawer/constants.js +1 -0
- package/es/drawer/drawer.js +2 -5
- package/es/drawer/styled-components.js +9 -2
- package/es/file-uploader/styled-components.js +6 -1
- package/es/flex-grid/flex-grid-item.js +5 -6
- package/es/flex-grid/flex-grid.js +4 -1
- package/es/form-control/styled-components.js +6 -1
- package/es/header-navigation/styled-components.js +4 -1
- package/es/helper/styled-components.js +3 -1
- package/es/helpers/overrides.js +9 -5
- package/es/icon/build-icons.js +0 -2
- package/es/icon/index.js +1 -1
- package/es/icon/omit-dollar-prefixed-keys.js +1 -0
- package/es/icon/styled-components.js +2 -1
- package/es/input/base-input.js +1 -0
- package/es/input/masked-input.js +9 -2
- package/es/input/stateful-container.js +1 -0
- package/es/input/styled-components.js +18 -7
- package/es/input/utils.js +2 -0
- package/es/layer/layer.js +24 -0
- package/es/layer/layers-manager.js +91 -1
- package/es/layout-grid/styled-components.js +3 -0
- package/es/link/index.js +2 -1
- package/es/link/styled-components.js +2 -1
- package/es/list/list-heading.js +21 -17
- package/es/list/list-item.js +2 -1
- package/es/list/styled-components.js +17 -1
- package/es/locale/es_AR.js +3 -1
- package/es/locale/index.js +2 -1
- package/es/locale/tr_TR.js +3 -1
- package/es/map-marker/constants.js +14 -0
- package/es/map-marker/fixed-marker.js +1 -0
- package/es/map-marker/index.js +2 -1
- package/es/map-marker/location-puck.js +142 -0
- package/es/map-marker/pin-head.js +1 -0
- package/es/map-marker/styled-components.js +86 -2
- package/es/menu/index.js +1 -1
- package/es/menu/menu.js +14 -4
- package/es/menu/option-profile.js +1 -0
- package/es/menu/stateful-container.js +10 -0
- package/es/menu/styled-components.js +32 -2
- package/es/message-card/constants.js +19 -0
- package/es/message-card/index.js +10 -0
- package/es/message-card/message-card.js +114 -0
- package/es/message-card/styled-components.js +108 -0
- package/es/message-card/types.js +1 -0
- package/es/message-card/utils.js +27 -0
- package/es/modal/modal.js +4 -6
- package/es/modal/styled-components.js +8 -1
- package/es/pagination/stateful-container.js +1 -0
- package/es/pagination/stateful-pagination.js +1 -0
- package/es/pagination/styled-components.js +4 -1
- package/es/payment-card/styled-components.js +2 -1
- package/es/phone-input/base-country-picker.js +3 -1
- package/es/phone-input/country-select-dropdown.js +1 -0
- package/es/phone-input/styled-components.js +15 -4
- package/es/pin-code/styled-components.js +4 -1
- package/es/popover/popover.js +9 -12
- package/es/popover/styled-components.js +9 -4
- package/es/progress-bar/progressbar-rounded.js +1 -0
- package/es/progress-bar/styled-components.js +14 -2
- package/es/progress-steps/progress-steps.js +2 -1
- package/es/progress-steps/styled-components.js +20 -12
- package/es/radio/stateful-radiogroup-container.js +3 -0
- package/es/radio/styled-components.js +10 -3
- package/es/rating/emoticon-rating.js +2 -1
- package/es/rating/star-rating.js +2 -1
- package/es/rating/styled-components.js +5 -1
- package/es/select/autosize-input.js +2 -3
- package/es/select/default-props.js +1 -1
- package/es/select/dropdown.js +2 -1
- package/es/select/multi-value.js +2 -1
- package/es/select/select-component.js +10 -10
- package/es/select/single-select.js +2 -2
- package/es/select/stateful-select-container.js +2 -0
- package/es/select/styled-components.js +33 -6
- package/es/select/value.js +3 -4
- package/es/side-navigation/index.js +2 -1
- package/es/side-navigation/nav-item.js +1 -0
- package/es/side-navigation/nav.js +1 -1
- package/es/side-navigation/stateful-container.js +1 -0
- package/es/side-navigation/styled-components.js +8 -2
- package/es/skeleton/styled-components.js +3 -1
- package/es/slider/slider.js +4 -2
- package/es/slider/stateful-slider-container.js +2 -0
- package/es/slider/styled-components.js +9 -0
- package/es/snackbar/snackbar-element.js +1 -0
- package/es/snackbar/styled-components.js +9 -1
- package/es/spinner/styled-components.js +2 -1
- package/es/styles/__mocks__/styled.js +8 -5
- package/es/styles/styled.js +7 -6
- package/es/table/index.js +2 -1
- package/es/table/styled-components.js +13 -1
- package/es/table-grid/styled-components.js +4 -1
- package/es/table-semantic/styled-components.js +20 -3
- package/es/tabs/stateful-tabs.js +1 -0
- package/es/tabs/styled-components.js +5 -1
- package/es/tabs/tabs.js +4 -2
- package/es/tabs-motion/styled-components.js +32 -2
- package/es/tabs-motion/tab.js +1 -0
- package/es/tabs-motion/tabs.js +31 -6
- package/es/tag/styled-components.js +32 -1
- package/es/tag/tag.js +6 -2
- package/es/textarea/styled-components.js +20 -12
- package/es/textarea/textarea.js +4 -2
- package/es/themes/move-theme/typography.js +36 -0
- package/es/themes/shared/borders.js +8 -3
- package/es/themes/shared/typography.js +10 -10
- package/es/timezonepicker/timezone-picker.js +5 -1
- package/es/timezonepicker/tzdata.js +1 -1
- package/es/toast/styled-components.js +5 -1
- package/es/toast/toaster.js +0 -2
- package/es/tokens/colors.js +24 -0
- package/es/tooltip/styled-components.js +4 -1
- package/es/tree-view/index.js +2 -1
- package/es/tree-view/styled-components.js +7 -1
- package/es/tree-view/tree-view.js +3 -1
- package/es/types/globals.d.js +12 -0
- package/es/utils/deep-merge.js +0 -5
- package/es/utils/deprecated-component.js +1 -0
- package/es/utils/focusVisible.js +4 -2
- package/esm/accordion/accordion.js +4 -4
- package/esm/accordion/panel.js +3 -2
- package/esm/accordion/stateful-panel-container.js +1 -0
- package/esm/accordion/styled-components.js +8 -1
- package/esm/app-nav-bar/app-nav-bar.js +4 -2
- package/esm/app-nav-bar/mobile-menu.js +4 -2
- package/esm/app-nav-bar/styled-components.js +19 -1
- package/esm/app-nav-bar/user-menu.js +1 -1
- package/esm/aspect-ratio-box/aspect-ratio-box.js +3 -1
- package/esm/avatar/styled-components.js +4 -1
- package/esm/badge/styled-components.js +11 -6
- package/esm/banner/styled-components.js +16 -3
- package/esm/block/block.js +3 -1
- package/esm/block/styled-components.js +2 -1
- package/esm/breadcrumbs/styled-components.js +5 -1
- package/esm/button/styled-components.js +7 -0
- package/esm/button-group/stateful-button-group.js +1 -0
- package/esm/button-group/stateful-container.js +3 -1
- package/esm/button-group/styled-components.js +2 -1
- package/esm/card/index.js +2 -1
- package/esm/card/styled-components.js +12 -4
- package/esm/checkbox/index.js +1 -0
- package/esm/checkbox/styled-components.js +10 -4
- package/esm/combobox/combobox.js +78 -71
- package/esm/combobox/styled-components.js +5 -1
- package/esm/data-table/column-anchor.js +3 -0
- package/esm/data-table/column-datetime.js +12 -5
- package/esm/data-table/column-numerical.js +4 -4
- package/esm/data-table/column-string.js +3 -0
- package/esm/data-table/column.js +5 -1
- package/esm/data-table/data-table.js +6 -3
- package/esm/data-table/filter-menu.js +2 -1
- package/esm/data-table/header-cell.js +42 -34
- package/esm/data-table/locale.js +3 -1
- package/esm/data-table/measure-column-widths.js +5 -4
- package/esm/data-table/stateful-container.js +2 -1
- package/esm/data-table/stateful-data-table.js +4 -4
- package/esm/datepicker/calendar-header.js +1 -0
- package/esm/datepicker/calendar.js +2 -0
- package/esm/datepicker/datepicker.js +3 -1
- package/esm/datepicker/day.js +2 -1
- package/esm/datepicker/index.js +1 -1
- package/esm/datepicker/stateful-calendar.js +7 -3
- package/esm/datepicker/stateful-container.js +2 -0
- package/esm/datepicker/stateful-datepicker.js +9 -4
- package/esm/datepicker/styled-components.js +26 -3
- package/esm/datepicker/utils/date-helpers.js +2 -1
- package/esm/datepicker/utils/index.js +2 -1
- package/esm/divider/styled-components.js +3 -2
- package/esm/dnd-list/stateful-list-container.js +1 -0
- package/esm/dnd-list/styled-components.js +7 -0
- package/esm/drawer/constants.js +1 -0
- package/esm/drawer/drawer.js +2 -5
- package/esm/drawer/styled-components.js +9 -2
- package/esm/file-uploader/styled-components.js +6 -1
- package/esm/flex-grid/flex-grid-item.js +4 -5
- package/esm/flex-grid/flex-grid.js +7 -3
- package/esm/form-control/styled-components.js +6 -1
- package/esm/header-navigation/styled-components.js +4 -1
- package/esm/helper/styled-components.js +3 -1
- package/esm/helpers/overrides.js +9 -5
- package/esm/icon/build-icons.js +0 -2
- package/esm/icon/index.js +1 -1
- package/esm/icon/omit-dollar-prefixed-keys.js +1 -0
- package/esm/icon/styled-components.js +2 -1
- package/esm/input/base-input.js +1 -0
- package/esm/input/masked-input.js +5 -2
- package/esm/input/stateful-container.js +1 -0
- package/esm/input/styled-components.js +18 -7
- package/esm/input/utils.js +2 -0
- package/esm/layer/layer.js +24 -0
- package/esm/layer/layers-manager.js +97 -1
- package/esm/layout-grid/styled-components.js +3 -0
- package/esm/link/index.js +2 -1
- package/esm/link/styled-components.js +2 -1
- package/esm/list/list-heading.js +21 -17
- package/esm/list/list-item.js +2 -1
- package/esm/list/styled-components.js +17 -1
- package/esm/locale/es_AR.js +3 -1
- package/esm/locale/index.js +4 -1
- package/esm/locale/tr_TR.js +3 -1
- package/esm/map-marker/constants.js +12 -2
- package/esm/map-marker/index.js +2 -1
- package/esm/map-marker/location-puck.js +199 -0
- package/esm/map-marker/styled-components.js +82 -2
- package/esm/menu/index.js +1 -1
- package/esm/menu/menu.js +16 -4
- package/esm/menu/option-profile.js +1 -0
- package/esm/menu/stateful-container.js +1 -0
- package/esm/menu/styled-components.js +38 -6
- package/esm/message-card/constants.js +20 -0
- package/esm/message-card/index.js +10 -0
- package/esm/message-card/message-card.js +168 -0
- package/esm/message-card/styled-components.js +116 -0
- package/esm/message-card/types.js +1 -0
- package/esm/message-card/utils.js +26 -0
- package/esm/modal/modal.js +4 -6
- package/esm/modal/styled-components.js +8 -1
- package/esm/pagination/stateful-container.js +1 -0
- package/esm/pagination/stateful-pagination.js +1 -0
- package/esm/pagination/styled-components.js +4 -1
- package/esm/payment-card/styled-components.js +2 -1
- package/esm/phone-input/base-country-picker.js +3 -1
- package/esm/phone-input/country-select-dropdown.js +1 -0
- package/esm/phone-input/styled-components.js +20 -8
- package/esm/pin-code/styled-components.js +4 -1
- package/esm/popover/popover.js +9 -12
- package/esm/popover/styled-components.js +9 -4
- package/esm/progress-bar/progressbar-rounded.js +1 -0
- package/esm/progress-bar/styled-components.js +14 -2
- package/esm/progress-steps/progress-steps.js +2 -1
- package/esm/progress-steps/styled-components.js +28 -19
- package/esm/radio/styled-components.js +10 -3
- package/esm/rating/emoticon-rating.js +2 -1
- package/esm/rating/star-rating.js +2 -1
- package/esm/rating/styled-components.js +5 -1
- package/esm/select/autosize-input.js +2 -3
- package/esm/select/default-props.js +1 -1
- package/esm/select/dropdown.js +2 -1
- package/esm/select/multi-value.js +2 -1
- package/esm/select/select-component.js +10 -10
- package/esm/select/single-select.js +2 -2
- package/esm/select/styled-components.js +33 -6
- package/esm/select/value.js +3 -4
- package/esm/side-navigation/index.js +2 -1
- package/esm/side-navigation/nav-item.js +1 -0
- package/esm/side-navigation/nav.js +1 -1
- package/esm/side-navigation/stateful-container.js +1 -0
- package/esm/side-navigation/styled-components.js +13 -6
- package/esm/skeleton/styled-components.js +3 -1
- package/esm/slider/slider.js +4 -2
- package/esm/slider/styled-components.js +9 -0
- package/esm/snackbar/snackbar-element.js +1 -0
- package/esm/snackbar/styled-components.js +9 -1
- package/esm/spinner/styled-components.js +2 -1
- package/esm/styles/__mocks__/styled.js +8 -5
- package/esm/styles/styled.js +7 -6
- package/esm/table/index.js +2 -1
- package/esm/table/styled-components.js +13 -1
- package/esm/table-grid/styled-components.js +4 -1
- package/esm/table-semantic/styled-components.js +20 -3
- package/esm/tabs/stateful-tabs.js +1 -0
- package/esm/tabs/styled-components.js +5 -1
- package/esm/tabs/tabs.js +4 -2
- package/esm/tabs-motion/styled-components.js +68 -40
- package/esm/tabs-motion/tab.js +1 -0
- package/esm/tabs-motion/tabs.js +87 -58
- package/esm/tag/styled-components.js +5 -1
- package/esm/tag/tag.js +4 -2
- package/esm/textarea/styled-components.js +11 -6
- package/esm/textarea/textarea.js +4 -2
- package/esm/themes/move-theme/typography.js +36 -0
- package/esm/themes/shared/borders.js +8 -3
- package/esm/themes/shared/typography.js +10 -10
- package/esm/timezonepicker/timezone-picker.js +6 -2
- package/esm/timezonepicker/tzdata.js +1 -1
- package/esm/toast/styled-components.js +5 -1
- package/esm/toast/toaster.js +0 -2
- package/esm/tokens/colors.js +24 -0
- package/esm/tooltip/styled-components.js +4 -1
- package/esm/tree-view/index.js +2 -1
- package/esm/tree-view/styled-components.js +7 -1
- package/esm/tree-view/tree-view.js +3 -1
- package/esm/types/globals.d.js +12 -0
- package/esm/utils/deep-merge.js +0 -5
- package/esm/utils/deprecated-component.js +1 -0
- package/esm/utils/focusVisible.js +4 -2
- package/file-uploader/styled-components.js +6 -1
- package/flex-grid/flex-grid-item.d.ts +1 -1
- package/flex-grid/flex-grid-item.js +6 -8
- package/flex-grid/flex-grid.js +7 -3
- package/flex-grid/types.d.ts +1 -1
- package/form-control/styled-components.js +6 -1
- package/form-control/types.d.ts +1 -1
- package/header-navigation/styled-components.js +4 -1
- package/heading/types.d.ts +1 -1
- package/helper/styled-components.js +3 -1
- package/helpers/overrides.js +8 -3
- package/helpers/overrides.js.flow +1 -1
- package/helpers/types.d.ts +1 -1
- package/icon/build-icons.js +0 -2
- package/icon/build-icons.js.flow +0 -1
- package/icon/index.d.ts +1 -1
- package/icon/index.js +8 -1
- package/icon/index.js.flow +1 -1
- package/icon/omit-dollar-prefixed-keys.js +1 -0
- package/icon/styled-components.js +2 -1
- package/icon/types.d.ts +1 -1
- package/input/masked-input.js +5 -2
- package/input/stateful-container.js +1 -0
- package/input/styled-components.js +18 -7
- package/input/styled-components.js.flow +9 -2
- package/input/types.d.ts +16 -14
- package/input/types.js.flow +3 -0
- package/input/utils.js +2 -0
- package/layer/layer.js +24 -0
- package/layer/layer.js.flow +25 -0
- package/layer/layers-manager.d.ts +8 -0
- package/layer/layers-manager.js +97 -1
- package/layer/layers-manager.js.flow +84 -1
- package/layer/types.d.ts +23 -2
- package/layer/types.js.flow +22 -1
- package/layout-grid/styled-components.js +3 -0
- package/layout-grid/types.d.ts +2 -2
- package/link/index.js +2 -1
- package/link/styled-components.js +2 -1
- package/list/list-heading.js +21 -17
- package/list/list-item.js +2 -1
- package/list/styled-components.js +17 -1
- package/list/types.d.ts +2 -2
- package/locale/en_US.d.ts +1 -1
- package/locale/es_AR.d.ts +1 -1
- package/locale/es_AR.js +3 -1
- package/locale/index.js +4 -1
- package/locale/tr_TR.d.ts +1 -1
- package/locale/tr_TR.js +3 -1
- package/map-marker/constants.d.ts +14 -0
- package/map-marker/constants.js +16 -3
- package/map-marker/constants.js.flow +17 -0
- package/map-marker/index.d.ts +2 -1
- package/map-marker/index.js +24 -1
- package/map-marker/index.js.flow +5 -3
- package/map-marker/location-puck.d.ts +4 -0
- package/map-marker/location-puck.js +211 -0
- package/map-marker/location-puck.js.flow +18 -0
- package/map-marker/styled-components.d.ts +17 -1
- package/map-marker/styled-components.js +88 -2
- package/map-marker/styled-components.js.flow +58 -0
- package/map-marker/types.d.ts +33 -5
- package/map-marker/types.js.flow +37 -3
- package/menu/index.d.ts +2 -3
- package/menu/index.js +8 -1
- package/menu/index.js.flow +1 -0
- package/menu/menu.js +15 -3
- package/menu/menu.js.flow +11 -1
- package/menu/option-profile.js +1 -0
- package/menu/stateful-container.js +1 -0
- package/menu/styled-components.d.ts +1 -0
- package/menu/styled-components.js +40 -7
- package/menu/styled-components.js.flow +13 -0
- package/menu/types.d.ts +13 -13
- package/menu/types.js.flow +1 -0
- package/message-card/constants.d.ts +12 -0
- package/message-card/constants.js +25 -0
- package/message-card/index.d.ts +4 -0
- package/message-card/index.js +60 -0
- package/message-card/index.js.flow +72 -0
- package/message-card/message-card.d.ts +4 -0
- package/message-card/message-card.js +184 -0
- package/message-card/package.json +4 -0
- package/message-card/styled-components.d.ts +14 -0
- package/message-card/styled-components.js +124 -0
- package/message-card/types.d.ts +27 -0
- package/message-card/types.js +5 -0
- package/message-card/utils.d.ts +1 -0
- package/message-card/utils.js +36 -0
- package/modal/modal.js +4 -4
- package/modal/modal.js.flow +1 -3
- package/modal/styled-components.js +8 -1
- package/modal/types.d.ts +2 -2
- package/package.json +9 -11
- package/pagination/stateful-container.js +1 -0
- package/pagination/stateful-pagination.js +1 -0
- package/pagination/styled-components.js +4 -1
- package/pagination/types.d.ts +2 -2
- package/payment-card/styled-components.js +2 -1
- package/phone-input/base-country-picker.js +3 -1
- package/phone-input/country-select-dropdown.js +1 -0
- package/phone-input/styled-components.js +21 -9
- package/phone-input/types.d.ts +5 -6
- package/pin-code/styled-components.js +4 -1
- package/pin-code/types.d.ts +2 -2
- package/popover/popover.js +9 -12
- package/popover/popover.js.flow +2 -12
- package/popover/styled-components.js +12 -9
- package/popover/types.d.ts +2 -2
- package/progress-bar/progressbar-rounded.js +1 -0
- package/progress-bar/styled-components.js +14 -2
- package/progress-bar/types.d.ts +2 -2
- package/progress-steps/progress-steps.js +2 -1
- package/progress-steps/styled-components.js +28 -19
- package/radio/styled-components.js +10 -3
- package/radio/types.d.ts +19 -20
- package/rating/emoticon-rating.js +2 -1
- package/rating/star-rating.js +2 -1
- package/rating/styled-components.js +5 -1
- package/select/autosize-input.js +2 -1
- package/select/autosize-input.js.flow +1 -1
- package/select/default-props.js +1 -1
- package/select/dropdown.js +2 -1
- package/select/multi-value.js +1 -0
- package/select/select-component.d.ts +1 -1
- package/select/select-component.js +9 -7
- package/select/select-component.js.flow +1 -1
- package/select/single-select.d.ts +2 -2
- package/select/single-select.js +2 -2
- package/select/styled-components.js +33 -6
- package/select/styled-components.js.flow +25 -5
- package/select/types.d.ts +5 -6
- package/select/value.js +2 -3
- package/side-navigation/nav-item.js +1 -0
- package/side-navigation/nav.js +1 -1
- package/side-navigation/stateful-container.js +1 -0
- package/side-navigation/styled-components.js +13 -6
- package/side-navigation/types.d.ts +1 -1
- package/skeleton/styled-components.js +3 -1
- package/slider/slider.js +4 -2
- package/slider/styled-components.js +9 -0
- package/slider/types.d.ts +1 -1
- package/snackbar/snackbar-element.js +1 -0
- package/snackbar/styled-components.js +9 -1
- package/snackbar/types.d.ts +3 -4
- package/spinner/styled-components.js +2 -1
- package/spinner/types.d.ts +1 -1
- package/styles/__mocks__/styled.js +8 -3
- package/styles/styled.d.ts +1 -1
- package/styles/styled.js +7 -6
- package/table/styled-components.js +13 -1
- package/table/types.d.ts +2 -2
- package/table-grid/styled-components.js +4 -1
- package/table-semantic/styled-components.js +20 -3
- package/table-semantic/types.d.ts +2 -2
- package/tabs/stateful-tabs.js +1 -0
- package/tabs/styled-components.js +5 -1
- package/tabs/tabs.js +4 -2
- package/tabs/types.d.ts +2 -2
- package/tabs-motion/styled-components.d.ts +5 -0
- package/tabs-motion/styled-components.js +71 -41
- package/tabs-motion/styled-components.js.flow +21 -0
- package/tabs-motion/tab.js +1 -0
- package/tabs-motion/tabs.d.ts +1 -1
- package/tabs-motion/tabs.js +87 -57
- package/tabs-motion/tabs.js.flow +69 -38
- package/tabs-motion/types.d.ts +5 -2
- package/tabs-motion/types.js.flow +3 -0
- package/tabs-motion/utils.d.ts +1 -1
- package/tag/styled-components.js +5 -1
- package/tag/tag.js +4 -2
- package/tag/types.d.ts +4 -5
- package/textarea/styled-components.js +11 -6
- package/textarea/textarea.js +4 -2
- package/textarea/types.d.ts +6 -5
- package/textarea/types.js.flow +3 -1
- package/themes/move-theme/typography.d.ts +36 -0
- package/themes/move-theme/typography.js +36 -0
- package/themes/move-theme/typography.js.flow +12 -0
- package/themes/shared/borders.js +8 -3
- package/themes/shared/borders.js.flow +7 -3
- package/themes/shared/typography.js +10 -10
- package/themes/shared/typography.js.flow +10 -10
- package/themes/types.d.ts +3 -0
- package/themes/types.js.flow +3 -0
- package/timezonepicker/timezone-picker.js +6 -2
- package/timezonepicker/types.d.ts +1 -0
- package/timezonepicker/types.js.flow +1 -0
- package/timezonepicker/tzdata.js +1 -1
- package/toast/styled-components.js +5 -1
- package/toast/toaster.js.flow +1 -1
- package/toast/types.d.ts +2 -2
- package/tokens/colors.js +24 -0
- package/tokens/colors.js.flow +27 -0
- package/tokens/types.d.ts +24 -0
- package/tokens/types.js.flow +27 -0
- package/tooltip/styled-components.js +4 -1
- package/tree-view/styled-components.js +7 -1
- package/tree-view/tree-view.js +3 -1
- package/tree-view/types.d.ts +3 -4
- package/types/globals.d.js +14 -1
- package/utils/deep-merge.js +0 -6
- package/utils/deprecated-component.js +1 -0
- package/utils/focusVisible.d.ts +1 -1
- package/utils/focusVisible.js +4 -2
- package/card/images.d.ts +0 -2
- package/card/images.js +0 -17
- package/card/images.js.flow +0 -18
- package/es/card/images.js +0 -8
- package/esm/card/images.js +0 -8
package/map-marker/index.js
CHANGED
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
var _exportNames = {
|
|
7
7
|
FixedMarker: true,
|
|
8
8
|
FloatingMarker: true,
|
|
9
|
+
LocationPuck: true,
|
|
9
10
|
FLOATING_MARKER_ANCHOR_POSITIONS: true,
|
|
10
11
|
FLOATING_MARKER_SIZES: true,
|
|
11
12
|
FLOATING_MARKER_ANCHOR_TYPES: true,
|
|
@@ -14,7 +15,9 @@ var _exportNames = {
|
|
|
14
15
|
BADGE_ENHANCER_SIZES: true,
|
|
15
16
|
LABEL_ENHANCER_POSITIONS: true,
|
|
16
17
|
KIND: true,
|
|
17
|
-
PINHEAD_DIMENSIONS: true
|
|
18
|
+
PINHEAD_DIMENSIONS: true,
|
|
19
|
+
LOCATION_PUCK_SIZES: true,
|
|
20
|
+
LOCATION_PUCK_TYPES: true
|
|
18
21
|
};
|
|
19
22
|
Object.defineProperty(exports, "BADGE_ENHANCER_SIZES", {
|
|
20
23
|
enumerable: true,
|
|
@@ -64,6 +67,24 @@ Object.defineProperty(exports, "LABEL_ENHANCER_POSITIONS", {
|
|
|
64
67
|
return _constants.LABEL_ENHANCER_POSITIONS;
|
|
65
68
|
}
|
|
66
69
|
});
|
|
70
|
+
Object.defineProperty(exports, "LOCATION_PUCK_SIZES", {
|
|
71
|
+
enumerable: true,
|
|
72
|
+
get: function get() {
|
|
73
|
+
return _constants.LOCATION_PUCK_SIZES;
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
Object.defineProperty(exports, "LOCATION_PUCK_TYPES", {
|
|
77
|
+
enumerable: true,
|
|
78
|
+
get: function get() {
|
|
79
|
+
return _constants.LOCATION_PUCK_TYPES;
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
Object.defineProperty(exports, "LocationPuck", {
|
|
83
|
+
enumerable: true,
|
|
84
|
+
get: function get() {
|
|
85
|
+
return _locationPuck.default;
|
|
86
|
+
}
|
|
87
|
+
});
|
|
67
88
|
Object.defineProperty(exports, "NEEDLE_SIZES", {
|
|
68
89
|
enumerable: true,
|
|
69
90
|
get: function get() {
|
|
@@ -87,6 +108,8 @@ var _fixedMarker = _interopRequireDefault(require("./fixed-marker"));
|
|
|
87
108
|
|
|
88
109
|
var _floatingMarker = _interopRequireDefault(require("./floating-marker"));
|
|
89
110
|
|
|
111
|
+
var _locationPuck = _interopRequireDefault(require("./location-puck"));
|
|
112
|
+
|
|
90
113
|
var _constants = require("./constants");
|
|
91
114
|
|
|
92
115
|
var _types = require("./types");
|
package/map-marker/index.js.flow
CHANGED
|
@@ -5,9 +5,9 @@ This source code is licensed under the MIT license found in the
|
|
|
5
5
|
LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
// @flow
|
|
8
|
-
export { default as FixedMarker } from './fixed-marker
|
|
9
|
-
export { default as FloatingMarker } from './floating-marker
|
|
10
|
-
|
|
8
|
+
export { default as FixedMarker } from './fixed-marker';
|
|
9
|
+
export { default as FloatingMarker } from './floating-marker';
|
|
10
|
+
export { default as LocationPuck } from './location-puck';
|
|
11
11
|
export {
|
|
12
12
|
FLOATING_MARKER_ANCHOR_POSITIONS,
|
|
13
13
|
FLOATING_MARKER_SIZES,
|
|
@@ -17,6 +17,8 @@ export {
|
|
|
17
17
|
BADGE_ENHANCER_SIZES,
|
|
18
18
|
LABEL_ENHANCER_POSITIONS,
|
|
19
19
|
KIND,
|
|
20
|
+
LOCATION_PUCK_SIZES,
|
|
21
|
+
LOCATION_PUCK_TYPES,
|
|
20
22
|
PINHEAD_DIMENSIONS,
|
|
21
23
|
} from './constants.js';
|
|
22
24
|
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
|
|
10
|
+
var React = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _styles = require("../styles");
|
|
13
|
+
|
|
14
|
+
var _overrides = require("../helpers/overrides");
|
|
15
|
+
|
|
16
|
+
var _constants = require("./constants");
|
|
17
|
+
|
|
18
|
+
var _styledComponents = require("./styled-components");
|
|
19
|
+
|
|
20
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
21
|
+
|
|
22
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
23
|
+
|
|
24
|
+
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); }
|
|
25
|
+
|
|
26
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
27
|
+
|
|
28
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
29
|
+
|
|
30
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
31
|
+
|
|
32
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
33
|
+
|
|
34
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
35
|
+
|
|
36
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
37
|
+
|
|
38
|
+
var ConsumerLocationPuckHeading = function ConsumerLocationPuckHeading(_ref) {
|
|
39
|
+
var heading = _ref.heading;
|
|
40
|
+
|
|
41
|
+
var _useStyletron = (0, _styles.useStyletron)(),
|
|
42
|
+
_useStyletron2 = _slicedToArray(_useStyletron, 2),
|
|
43
|
+
css = _useStyletron2[0],
|
|
44
|
+
theme = _useStyletron2[1];
|
|
45
|
+
|
|
46
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
47
|
+
className: css({
|
|
48
|
+
height: "".concat(6, "px"),
|
|
49
|
+
width: "".concat(11, "px"),
|
|
50
|
+
position: 'absolute',
|
|
51
|
+
color: theme.colors.contentAccent,
|
|
52
|
+
transition: "".concat(theme.animation.timing300, " ").concat(theme.animation.easeOutCurve, " all")
|
|
53
|
+
}),
|
|
54
|
+
style: {
|
|
55
|
+
transform: "rotate(".concat(heading, "deg) translateY(-16px)")
|
|
56
|
+
},
|
|
57
|
+
width: "11",
|
|
58
|
+
height: "6",
|
|
59
|
+
viewBox: "0 0 11 6",
|
|
60
|
+
fill: "none",
|
|
61
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
62
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
63
|
+
fillRule: "evenodd",
|
|
64
|
+
clipRule: "evenodd",
|
|
65
|
+
d: "M5.5 0L0 6L5.5 5L11 6L5.5 0Z",
|
|
66
|
+
fill: "currentColor"
|
|
67
|
+
}));
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
var ConsumerLocationPuck = function ConsumerLocationPuck(_ref2) {
|
|
71
|
+
var heading = _ref2.heading,
|
|
72
|
+
showHeading = _ref2.showHeading,
|
|
73
|
+
confidenceRadius = _ref2.confidenceRadius,
|
|
74
|
+
overrides = _ref2.overrides;
|
|
75
|
+
|
|
76
|
+
var _useStyletron3 = (0, _styles.useStyletron)(),
|
|
77
|
+
_useStyletron4 = _slicedToArray(_useStyletron3, 2),
|
|
78
|
+
theme = _useStyletron4[1];
|
|
79
|
+
|
|
80
|
+
var _getOverrides = (0, _overrides.getOverrides)(overrides.Root, _styledComponents.LocationPuckContainer),
|
|
81
|
+
_getOverrides2 = _slicedToArray(_getOverrides, 2),
|
|
82
|
+
Root = _getOverrides2[0],
|
|
83
|
+
rootProps = _getOverrides2[1];
|
|
84
|
+
|
|
85
|
+
var _getOverrides3 = (0, _overrides.getOverrides)(overrides.ConsumerLocationPuckCore, _styledComponents.StyledConsumerLocationPuckCore),
|
|
86
|
+
_getOverrides4 = _slicedToArray(_getOverrides3, 2),
|
|
87
|
+
ConsumerLocationPuckCore = _getOverrides4[0],
|
|
88
|
+
consumerLocationPuckCoreProps = _getOverrides4[1];
|
|
89
|
+
|
|
90
|
+
var _getOverrides5 = (0, _overrides.getOverrides)(overrides.LocationPuckApproximation, _styledComponents.StyledLocationPuckApproximation),
|
|
91
|
+
_getOverrides6 = _slicedToArray(_getOverrides5, 2),
|
|
92
|
+
LocationPuckApproximation = _getOverrides6[0],
|
|
93
|
+
locationPuckApproximationProps = _getOverrides6[1];
|
|
94
|
+
|
|
95
|
+
return /*#__PURE__*/React.createElement(Root, rootProps, /*#__PURE__*/React.createElement(LocationPuckApproximation, _extends({
|
|
96
|
+
$color: theme.colors.contentAccent,
|
|
97
|
+
$radius: confidenceRadius
|
|
98
|
+
}, locationPuckApproximationProps)), /*#__PURE__*/React.createElement(ConsumerLocationPuckCore, consumerLocationPuckCoreProps), showHeading && /*#__PURE__*/React.createElement(ConsumerLocationPuckHeading, {
|
|
99
|
+
heading: heading
|
|
100
|
+
}));
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
var EarnerLocationPuckHeading = function EarnerLocationPuckHeading(_ref3) {
|
|
104
|
+
var size = _ref3.size,
|
|
105
|
+
color = _ref3.color,
|
|
106
|
+
heading = _ref3.heading;
|
|
107
|
+
|
|
108
|
+
var _useStyletron5 = (0, _styles.useStyletron)(),
|
|
109
|
+
_useStyletron6 = _slicedToArray(_useStyletron5, 2),
|
|
110
|
+
css = _useStyletron6[0],
|
|
111
|
+
theme = _useStyletron6[1];
|
|
112
|
+
|
|
113
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
114
|
+
className: css({
|
|
115
|
+
position: 'absolute',
|
|
116
|
+
transition: "".concat(theme.animation.timing300, " ").concat(theme.animation.easeOutCurve, " all")
|
|
117
|
+
}),
|
|
118
|
+
style: {
|
|
119
|
+
transform: "rotate(".concat(heading, "deg) scale(").concat(_constants.EARNER_LOCATION_PUCK_CORE_SCALES[size], ")")
|
|
120
|
+
},
|
|
121
|
+
width: "72",
|
|
122
|
+
height: "72",
|
|
123
|
+
viewBox: "0 0 72 72",
|
|
124
|
+
fill: "none",
|
|
125
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
126
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
127
|
+
fillRule: "evenodd",
|
|
128
|
+
clipRule: "evenodd",
|
|
129
|
+
d: "M36 20L52 52L36 42.8571L20 52L36 20Z",
|
|
130
|
+
fill: color
|
|
131
|
+
}));
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
var EarnerLocationPuck = function EarnerLocationPuck(_ref4) {
|
|
135
|
+
var heading = _ref4.heading,
|
|
136
|
+
confidenceRadius = _ref4.confidenceRadius,
|
|
137
|
+
size = _ref4.size,
|
|
138
|
+
overrides = _ref4.overrides;
|
|
139
|
+
|
|
140
|
+
var _useStyletron7 = (0, _styles.useStyletron)(),
|
|
141
|
+
_useStyletron8 = _slicedToArray(_useStyletron7, 2),
|
|
142
|
+
theme = _useStyletron8[1];
|
|
143
|
+
|
|
144
|
+
var color = theme.colors.contentPrimary;
|
|
145
|
+
|
|
146
|
+
var _getOverrides7 = (0, _overrides.getOverrides)(overrides.Root, _styledComponents.LocationPuckContainer),
|
|
147
|
+
_getOverrides8 = _slicedToArray(_getOverrides7, 2),
|
|
148
|
+
Root = _getOverrides8[0],
|
|
149
|
+
rootProps = _getOverrides8[1];
|
|
150
|
+
|
|
151
|
+
var _getOverrides9 = (0, _overrides.getOverrides)(overrides.LocationPuckApproximation, _styledComponents.StyledLocationPuckApproximation),
|
|
152
|
+
_getOverrides10 = _slicedToArray(_getOverrides9, 2),
|
|
153
|
+
LocationPuckApproximation = _getOverrides10[0],
|
|
154
|
+
locationPuckApproximationProps = _getOverrides10[1];
|
|
155
|
+
|
|
156
|
+
var _getOverrides11 = (0, _overrides.getOverrides)(overrides.EarnerLocationPuckCore, _styledComponents.StyledEarnerLocationPuckCore),
|
|
157
|
+
_getOverrides12 = _slicedToArray(_getOverrides11, 2),
|
|
158
|
+
EarnerLocationPuckCore = _getOverrides12[0],
|
|
159
|
+
earnerLocationPuckCoreProps = _getOverrides12[1];
|
|
160
|
+
|
|
161
|
+
return /*#__PURE__*/React.createElement(Root, rootProps, /*#__PURE__*/React.createElement(LocationPuckApproximation, _extends({
|
|
162
|
+
$color: color,
|
|
163
|
+
$radius: confidenceRadius
|
|
164
|
+
}, locationPuckApproximationProps)), /*#__PURE__*/React.createElement(EarnerLocationPuckCore, _extends({
|
|
165
|
+
$color: color,
|
|
166
|
+
$size: size
|
|
167
|
+
}, earnerLocationPuckCoreProps)), /*#__PURE__*/React.createElement(EarnerLocationPuckHeading, {
|
|
168
|
+
size: size,
|
|
169
|
+
color: color,
|
|
170
|
+
heading: heading
|
|
171
|
+
}));
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
var LocationPuck = function LocationPuck(_ref5) {
|
|
175
|
+
var _ref5$size = _ref5.size,
|
|
176
|
+
size = _ref5$size === void 0 ? _constants.LOCATION_PUCK_SIZES.medium : _ref5$size,
|
|
177
|
+
_ref5$heading = _ref5.heading,
|
|
178
|
+
heading = _ref5$heading === void 0 ? 0 : _ref5$heading,
|
|
179
|
+
_ref5$showHeading = _ref5.showHeading,
|
|
180
|
+
showHeading = _ref5$showHeading === void 0 ? true : _ref5$showHeading,
|
|
181
|
+
_ref5$confidenceRadiu = _ref5.confidenceRadius,
|
|
182
|
+
confidenceRadius = _ref5$confidenceRadiu === void 0 ? 0 : _ref5$confidenceRadiu,
|
|
183
|
+
_ref5$type = _ref5.type,
|
|
184
|
+
type = _ref5$type === void 0 ? _constants.LOCATION_PUCK_TYPES.consumer : _ref5$type,
|
|
185
|
+
_ref5$overrides = _ref5.overrides,
|
|
186
|
+
overrides = _ref5$overrides === void 0 ? {} : _ref5$overrides;
|
|
187
|
+
|
|
188
|
+
if (process.env.NODE_ENV !== "production") {
|
|
189
|
+
if (size !== _constants.LOCATION_PUCK_SIZES.medium && type === _constants.LOCATION_PUCK_TYPES.consumer) {
|
|
190
|
+
console.warn("Location puck size can only be applied to type === LOCATION_PUCK_TYPES.earner");
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
if (!showHeading && type === _constants.LOCATION_PUCK_TYPES.earner) {
|
|
194
|
+
console.warn("Earner location puck must show the heading indicator");
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
var sharedProps = {
|
|
199
|
+
heading: heading,
|
|
200
|
+
confidenceRadius: confidenceRadius,
|
|
201
|
+
overrides: overrides
|
|
202
|
+
};
|
|
203
|
+
return type === _constants.LOCATION_PUCK_TYPES.consumer ? /*#__PURE__*/React.createElement(ConsumerLocationPuck, _extends({}, sharedProps, {
|
|
204
|
+
showHeading: showHeading
|
|
205
|
+
})) : /*#__PURE__*/React.createElement(EarnerLocationPuck, _extends({}, sharedProps, {
|
|
206
|
+
size: size
|
|
207
|
+
}));
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
var _default = LocationPuck;
|
|
211
|
+
exports.default = _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
// @flow
|
|
8
|
+
import * as React from 'react';
|
|
9
|
+
|
|
10
|
+
import type { LocationPuckPropsT } from './types';
|
|
11
|
+
|
|
12
|
+
declare var LocationPuck: (props: LocationPuckPropsT) => React.Node;
|
|
13
|
+
|
|
14
|
+
export default LocationPuck;
|
|
15
|
+
|
|
16
|
+
declare var __DEV__: boolean;
|
|
17
|
+
declare var __NODE__: boolean;
|
|
18
|
+
declare var __BROWSER__: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AnchorPositions, LabelEnhancerPosition, BadgeEnhancerSize, BadgePosition, PinHeadSize } from './types';
|
|
1
|
+
import type { AnchorPositions, LabelEnhancerPosition, BadgeEnhancerSize, BadgePosition, PinHeadSize, LocationPuckSize } from './types';
|
|
2
2
|
export declare const getAnchorTransform: (anchor: AnchorPositions, anchorSize: number) => string;
|
|
3
3
|
export declare const StyledDragShadowContainer: import("styletron-react").StyletronComponent<"div", {
|
|
4
4
|
$height: number;
|
|
@@ -72,3 +72,19 @@ export declare const StyledContentItem: import("styletron-react").StyletronCompo
|
|
|
72
72
|
$height: number;
|
|
73
73
|
$size: PinHeadSize;
|
|
74
74
|
}>;
|
|
75
|
+
export declare const LocationPuckContainer: import("styletron-react").StyletronComponent<"div", {}>;
|
|
76
|
+
export declare const consumerLocationShadow: {
|
|
77
|
+
boxShadow: string;
|
|
78
|
+
};
|
|
79
|
+
export declare const earnerLocationShadow: {
|
|
80
|
+
boxShadow: string;
|
|
81
|
+
};
|
|
82
|
+
export declare const StyledConsumerLocationPuckCore: import("styletron-react").StyletronComponent<"div", {}>;
|
|
83
|
+
export declare const StyledLocationPuckApproximation: import("styletron-react").StyletronComponent<"div", {
|
|
84
|
+
$color: string;
|
|
85
|
+
$radius: number;
|
|
86
|
+
}>;
|
|
87
|
+
export declare const StyledEarnerLocationPuckCore: import("styletron-react").StyletronComponent<"div", {
|
|
88
|
+
$color: string;
|
|
89
|
+
$size: LocationPuckSize;
|
|
90
|
+
}>;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.getAnchorTransform = exports.StyledStrokedLabelContainer = exports.StyledStrokedLabel = exports.StyledPinHead = exports.StyledOuterXXSmallAnchor = exports.StyledOuterXSmallAnchor = exports.StyledNeedle = exports.StyledInnerXXSmallAnchor = exports.StyledInnerXSmallAnchor = exports.StyledFloatingMarkerRoot = exports.StyledFloatingMarkerPinHeadContainer = exports.StyledFloatingMarkerAnchorContainer = exports.StyledFixedMarkerRoot = exports.StyledFixedMarkerDragContainer = exports.StyledDragShadowContainer = exports.StyledDragShadow = exports.StyledContentItem = exports.StyledBadgeEnhancerRoot = exports.RelativeContainer = void 0;
|
|
6
|
+
exports.getAnchorTransform = exports.earnerLocationShadow = exports.consumerLocationShadow = exports.StyledStrokedLabelContainer = exports.StyledStrokedLabel = exports.StyledPinHead = exports.StyledOuterXXSmallAnchor = exports.StyledOuterXSmallAnchor = exports.StyledNeedle = exports.StyledLocationPuckApproximation = exports.StyledInnerXXSmallAnchor = exports.StyledInnerXSmallAnchor = exports.StyledFloatingMarkerRoot = exports.StyledFloatingMarkerPinHeadContainer = exports.StyledFloatingMarkerAnchorContainer = exports.StyledFixedMarkerRoot = exports.StyledFixedMarkerDragContainer = exports.StyledEarnerLocationPuckCore = exports.StyledDragShadowContainer = exports.StyledDragShadow = exports.StyledContentItem = exports.StyledConsumerLocationPuckCore = exports.StyledBadgeEnhancerRoot = exports.RelativeContainer = exports.LocationPuckContainer = void 0;
|
|
7
7
|
|
|
8
8
|
var _styles = require("../styles");
|
|
9
9
|
|
|
@@ -39,6 +39,7 @@ var StyledDragShadowContainer = (0, _styles.styled)('div', function (_ref) {
|
|
|
39
39
|
});
|
|
40
40
|
exports.StyledDragShadowContainer = StyledDragShadowContainer;
|
|
41
41
|
StyledDragShadowContainer.displayName = "StyledDragShadowContainer";
|
|
42
|
+
StyledDragShadowContainer.displayName = 'StyledDragShadowContainer';
|
|
42
43
|
var StyledDragShadow = (0, _styles.styled)('div', function (_ref2) {
|
|
43
44
|
var $theme = _ref2.$theme,
|
|
44
45
|
$background = _ref2.$background,
|
|
@@ -54,6 +55,7 @@ var StyledDragShadow = (0, _styles.styled)('div', function (_ref2) {
|
|
|
54
55
|
});
|
|
55
56
|
exports.StyledDragShadow = StyledDragShadow;
|
|
56
57
|
StyledDragShadow.displayName = "StyledDragShadow";
|
|
58
|
+
StyledDragShadow.displayName = 'StyledDragShadow';
|
|
57
59
|
var StyledNeedle = (0, _styles.styled)('div', function (_ref3) {
|
|
58
60
|
var $theme = _ref3.$theme,
|
|
59
61
|
$background = _ref3.$background,
|
|
@@ -67,6 +69,7 @@ var StyledNeedle = (0, _styles.styled)('div', function (_ref3) {
|
|
|
67
69
|
});
|
|
68
70
|
exports.StyledNeedle = StyledNeedle;
|
|
69
71
|
StyledNeedle.displayName = "StyledNeedle";
|
|
72
|
+
StyledNeedle.displayName = 'StyledNeedle';
|
|
70
73
|
var StyledFloatingMarkerRoot = (0, _styles.styled)('div', function (_ref4) {
|
|
71
74
|
var $size = _ref4.$size;
|
|
72
75
|
return {
|
|
@@ -77,6 +80,7 @@ var StyledFloatingMarkerRoot = (0, _styles.styled)('div', function (_ref4) {
|
|
|
77
80
|
});
|
|
78
81
|
exports.StyledFloatingMarkerRoot = StyledFloatingMarkerRoot;
|
|
79
82
|
StyledFloatingMarkerRoot.displayName = "StyledFloatingMarkerRoot";
|
|
83
|
+
StyledFloatingMarkerRoot.displayName = 'StyledFloatingMarkerRoot';
|
|
80
84
|
var StyledFloatingMarkerPinHeadContainer = (0, _styles.styled)('div', function (_ref5) {
|
|
81
85
|
var $theme = _ref5.$theme,
|
|
82
86
|
$anchor = _ref5.$anchor,
|
|
@@ -89,6 +93,7 @@ var StyledFloatingMarkerPinHeadContainer = (0, _styles.styled)('div', function (
|
|
|
89
93
|
});
|
|
90
94
|
exports.StyledFloatingMarkerPinHeadContainer = StyledFloatingMarkerPinHeadContainer;
|
|
91
95
|
StyledFloatingMarkerPinHeadContainer.displayName = "StyledFloatingMarkerPinHeadContainer";
|
|
96
|
+
StyledFloatingMarkerPinHeadContainer.displayName = 'StyledFloatingMarkerPinHeadContainer';
|
|
92
97
|
var StyledFloatingMarkerAnchorContainer = (0, _styles.styled)('div', function () {
|
|
93
98
|
return {
|
|
94
99
|
position: 'absolute'
|
|
@@ -96,6 +101,7 @@ var StyledFloatingMarkerAnchorContainer = (0, _styles.styled)('div', function ()
|
|
|
96
101
|
});
|
|
97
102
|
exports.StyledFloatingMarkerAnchorContainer = StyledFloatingMarkerAnchorContainer;
|
|
98
103
|
StyledFloatingMarkerAnchorContainer.displayName = "StyledFloatingMarkerAnchorContainer";
|
|
104
|
+
StyledFloatingMarkerAnchorContainer.displayName = 'StyledFloatingMarkerAnchorContainer';
|
|
99
105
|
var StyledFixedMarkerRoot = (0, _styles.styled)('div', function () {
|
|
100
106
|
return {
|
|
101
107
|
display: 'flex',
|
|
@@ -105,6 +111,7 @@ var StyledFixedMarkerRoot = (0, _styles.styled)('div', function () {
|
|
|
105
111
|
});
|
|
106
112
|
exports.StyledFixedMarkerRoot = StyledFixedMarkerRoot;
|
|
107
113
|
StyledFixedMarkerRoot.displayName = "StyledFixedMarkerRoot";
|
|
114
|
+
StyledFixedMarkerRoot.displayName = 'StyledFixedMarkerRoot';
|
|
108
115
|
var StyledFixedMarkerDragContainer = (0, _styles.styled)('div', function (_ref6) {
|
|
109
116
|
var $theme = _ref6.$theme,
|
|
110
117
|
$translateAmount = _ref6.$translateAmount,
|
|
@@ -119,6 +126,7 @@ var StyledFixedMarkerDragContainer = (0, _styles.styled)('div', function (_ref6)
|
|
|
119
126
|
});
|
|
120
127
|
exports.StyledFixedMarkerDragContainer = StyledFixedMarkerDragContainer;
|
|
121
128
|
StyledFixedMarkerDragContainer.displayName = "StyledFixedMarkerDragContainer";
|
|
129
|
+
StyledFixedMarkerDragContainer.displayName = 'StyledFixedMarkerDragContainer';
|
|
122
130
|
var StyledOuterXXSmallAnchor = (0, _styles.styled)('div', function (_ref7) {
|
|
123
131
|
var $theme = _ref7.$theme,
|
|
124
132
|
$round = _ref7.$round,
|
|
@@ -137,6 +145,7 @@ var StyledOuterXXSmallAnchor = (0, _styles.styled)('div', function (_ref7) {
|
|
|
137
145
|
});
|
|
138
146
|
exports.StyledOuterXXSmallAnchor = StyledOuterXXSmallAnchor;
|
|
139
147
|
StyledOuterXXSmallAnchor.displayName = "StyledOuterXXSmallAnchor";
|
|
148
|
+
StyledOuterXXSmallAnchor.displayName = 'StyledOuterXXSmallAnchor';
|
|
140
149
|
var StyledInnerXXSmallAnchor = (0, _styles.styled)('div', function (_ref8) {
|
|
141
150
|
var $round = _ref8.$round,
|
|
142
151
|
$color = _ref8.$color,
|
|
@@ -150,6 +159,7 @@ var StyledInnerXXSmallAnchor = (0, _styles.styled)('div', function (_ref8) {
|
|
|
150
159
|
});
|
|
151
160
|
exports.StyledInnerXXSmallAnchor = StyledInnerXXSmallAnchor;
|
|
152
161
|
StyledInnerXXSmallAnchor.displayName = "StyledInnerXXSmallAnchor";
|
|
162
|
+
StyledInnerXXSmallAnchor.displayName = 'StyledInnerXXSmallAnchor';
|
|
153
163
|
var StyledOuterXSmallAnchor = (0, _styles.styled)('div', function (_ref9) {
|
|
154
164
|
var $theme = _ref9.$theme,
|
|
155
165
|
$round = _ref9.$round,
|
|
@@ -168,6 +178,7 @@ var StyledOuterXSmallAnchor = (0, _styles.styled)('div', function (_ref9) {
|
|
|
168
178
|
});
|
|
169
179
|
exports.StyledOuterXSmallAnchor = StyledOuterXSmallAnchor;
|
|
170
180
|
StyledOuterXSmallAnchor.displayName = "StyledOuterXSmallAnchor";
|
|
181
|
+
StyledOuterXSmallAnchor.displayName = 'StyledOuterXSmallAnchor';
|
|
171
182
|
var StyledInnerXSmallAnchor = (0, _styles.styled)('div', function (_ref10) {
|
|
172
183
|
var $round = _ref10.$round,
|
|
173
184
|
$color = _ref10.$color,
|
|
@@ -181,6 +192,7 @@ var StyledInnerXSmallAnchor = (0, _styles.styled)('div', function (_ref10) {
|
|
|
181
192
|
});
|
|
182
193
|
exports.StyledInnerXSmallAnchor = StyledInnerXSmallAnchor;
|
|
183
194
|
StyledInnerXSmallAnchor.displayName = "StyledInnerXSmallAnchor";
|
|
195
|
+
StyledInnerXSmallAnchor.displayName = 'StyledInnerXSmallAnchor';
|
|
184
196
|
var StyledPinHead = (0, _styles.styled)('div', function (_ref11) {
|
|
185
197
|
var $theme = _ref11.$theme,
|
|
186
198
|
$height = _ref11.$height,
|
|
@@ -214,6 +226,7 @@ var StyledPinHead = (0, _styles.styled)('div', function (_ref11) {
|
|
|
214
226
|
});
|
|
215
227
|
exports.StyledPinHead = StyledPinHead;
|
|
216
228
|
StyledPinHead.displayName = "StyledPinHead";
|
|
229
|
+
StyledPinHead.displayName = 'StyledPinHead';
|
|
217
230
|
var StyledStrokedLabelContainer = (0, _styles.styled)('div', function (_ref12) {
|
|
218
231
|
var $position = _ref12.$position,
|
|
219
232
|
$theme = _ref12.$theme,
|
|
@@ -259,6 +272,7 @@ var StyledStrokedLabelContainer = (0, _styles.styled)('div', function (_ref12) {
|
|
|
259
272
|
});
|
|
260
273
|
exports.StyledStrokedLabelContainer = StyledStrokedLabelContainer;
|
|
261
274
|
StyledStrokedLabelContainer.displayName = "StyledStrokedLabelContainer";
|
|
275
|
+
StyledStrokedLabelContainer.displayName = 'StyledStrokedLabelContainer';
|
|
262
276
|
var StyledStrokedLabel = (0, _styles.styled)('div', function (_ref13) {
|
|
263
277
|
var $theme = _ref13.$theme,
|
|
264
278
|
$size = _ref13.$size;
|
|
@@ -278,6 +292,7 @@ var StyledStrokedLabel = (0, _styles.styled)('div', function (_ref13) {
|
|
|
278
292
|
});
|
|
279
293
|
exports.StyledStrokedLabel = StyledStrokedLabel;
|
|
280
294
|
StyledStrokedLabel.displayName = "StyledStrokedLabel";
|
|
295
|
+
StyledStrokedLabel.displayName = 'StyledStrokedLabel';
|
|
281
296
|
var StyledBadgeEnhancerRoot = (0, _styles.styled)('div', function (_ref14) {
|
|
282
297
|
var $theme = _ref14.$theme,
|
|
283
298
|
$size = _ref14.$size,
|
|
@@ -297,6 +312,7 @@ var StyledBadgeEnhancerRoot = (0, _styles.styled)('div', function (_ref14) {
|
|
|
297
312
|
});
|
|
298
313
|
exports.StyledBadgeEnhancerRoot = StyledBadgeEnhancerRoot;
|
|
299
314
|
StyledBadgeEnhancerRoot.displayName = "StyledBadgeEnhancerRoot";
|
|
315
|
+
StyledBadgeEnhancerRoot.displayName = 'StyledBadgeEnhancerRoot';
|
|
300
316
|
var RelativeContainer = (0, _styles.styled)('div', function () {
|
|
301
317
|
return {
|
|
302
318
|
position: 'relative'
|
|
@@ -304,6 +320,7 @@ var RelativeContainer = (0, _styles.styled)('div', function () {
|
|
|
304
320
|
});
|
|
305
321
|
exports.RelativeContainer = RelativeContainer;
|
|
306
322
|
RelativeContainer.displayName = "RelativeContainer";
|
|
323
|
+
RelativeContainer.displayName = 'RelativeContainer';
|
|
307
324
|
var StyledContentItem = (0, _styles.styled)('div', function (_ref15) {
|
|
308
325
|
var $theme = _ref15.$theme,
|
|
309
326
|
$color = _ref15.$color,
|
|
@@ -319,4 +336,73 @@ var StyledContentItem = (0, _styles.styled)('div', function (_ref15) {
|
|
|
319
336
|
});
|
|
320
337
|
});
|
|
321
338
|
exports.StyledContentItem = StyledContentItem;
|
|
322
|
-
StyledContentItem.displayName = "StyledContentItem";
|
|
339
|
+
StyledContentItem.displayName = "StyledContentItem";
|
|
340
|
+
StyledContentItem.displayName = 'StyledContentItem';
|
|
341
|
+
var LocationPuckContainer = (0, _styles.styled)('div', function () {
|
|
342
|
+
return {
|
|
343
|
+
position: 'relative',
|
|
344
|
+
display: 'flex',
|
|
345
|
+
alignItems: 'center',
|
|
346
|
+
justifyContent: 'center'
|
|
347
|
+
};
|
|
348
|
+
});
|
|
349
|
+
exports.LocationPuckContainer = LocationPuckContainer;
|
|
350
|
+
LocationPuckContainer.displayName = "LocationPuckContainer";
|
|
351
|
+
LocationPuckContainer.displayName = 'LocationPuckContainer';
|
|
352
|
+
var consumerLocationShadow = {
|
|
353
|
+
boxShadow: "0px 2px 4px 0px rgba(67, 76, 123, 0.2)"
|
|
354
|
+
};
|
|
355
|
+
exports.consumerLocationShadow = consumerLocationShadow;
|
|
356
|
+
var earnerLocationShadow = {
|
|
357
|
+
boxShadow: "0px 3px 5px 0px rgba(67, 76, 123, 0.4)"
|
|
358
|
+
};
|
|
359
|
+
exports.earnerLocationShadow = earnerLocationShadow;
|
|
360
|
+
var StyledConsumerLocationPuckCore = (0, _styles.styled)('div', function (_ref16) {
|
|
361
|
+
var $theme = _ref16.$theme;
|
|
362
|
+
return _objectSpread({
|
|
363
|
+
height: "".concat(12, "px"),
|
|
364
|
+
width: "".concat(12, "px"),
|
|
365
|
+
background: $theme.colors.contentAccent,
|
|
366
|
+
borderRadius: "".concat(100, "px "),
|
|
367
|
+
position: 'absolute'
|
|
368
|
+
}, consumerLocationShadow);
|
|
369
|
+
});
|
|
370
|
+
exports.StyledConsumerLocationPuckCore = StyledConsumerLocationPuckCore;
|
|
371
|
+
StyledConsumerLocationPuckCore.displayName = "StyledConsumerLocationPuckCore";
|
|
372
|
+
var StyledLocationPuckApproximation = (0, _styles.styled)('div', function (_ref17) {
|
|
373
|
+
var $theme = _ref17.$theme,
|
|
374
|
+
$color = _ref17.$color,
|
|
375
|
+
$radius = _ref17.$radius;
|
|
376
|
+
return {
|
|
377
|
+
background: $color,
|
|
378
|
+
opacity: 0.12,
|
|
379
|
+
height: "".concat($radius / 2, "px"),
|
|
380
|
+
width: "".concat($radius / 2, "px"),
|
|
381
|
+
borderRadius: "".concat(10000, "px "),
|
|
382
|
+
position: 'absolute',
|
|
383
|
+
transition: "".concat($theme.animation.timing300, " ").concat($theme.animation.easeOutCurve, " all")
|
|
384
|
+
};
|
|
385
|
+
});
|
|
386
|
+
exports.StyledLocationPuckApproximation = StyledLocationPuckApproximation;
|
|
387
|
+
StyledLocationPuckApproximation.displayName = "StyledLocationPuckApproximation";
|
|
388
|
+
StyledLocationPuckApproximation.displayName = 'StyledLocationPuckApproximation';
|
|
389
|
+
var StyledEarnerLocationPuckCore = (0, _styles.styled)('div', function (_ref18) {
|
|
390
|
+
var $theme = _ref18.$theme,
|
|
391
|
+
$color = _ref18.$color,
|
|
392
|
+
$size = _ref18.$size;
|
|
393
|
+
return _objectSpread(_objectSpread({
|
|
394
|
+
position: 'absolute',
|
|
395
|
+
transform: "scale(".concat(_constants.EARNER_LOCATION_PUCK_CORE_SCALES[$size], ")"),
|
|
396
|
+
transition: "".concat($theme.animation.timing300, " ").concat($theme.animation.easeOutCurve, " all")
|
|
397
|
+
}, earnerLocationShadow), {}, {
|
|
398
|
+
borderRadius: '50%',
|
|
399
|
+
height: "".concat(72, "px"),
|
|
400
|
+
width: "".concat(72, "px"),
|
|
401
|
+
background: $theme.colors.backgroundPrimary,
|
|
402
|
+
border: "".concat(6, "px solid ", $color),
|
|
403
|
+
boxSizing: 'border-box'
|
|
404
|
+
});
|
|
405
|
+
});
|
|
406
|
+
exports.StyledEarnerLocationPuckCore = StyledEarnerLocationPuckCore;
|
|
407
|
+
StyledEarnerLocationPuckCore.displayName = "StyledEarnerLocationPuckCore";
|
|
408
|
+
StyledEarnerLocationPuckCore.displayName = 'StyledEarnerLocationPuckCore';
|
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
BADGE_ENHANCER_STYLES,
|
|
11
11
|
FLOATING_MARKER_ANCHOR_POSITIONS,
|
|
12
12
|
LABEL_SIZES,
|
|
13
|
+
EARNER_LOCATION_PUCK_CORE_SCALES,
|
|
13
14
|
} from './constants.js';
|
|
14
15
|
|
|
15
16
|
import type {
|
|
@@ -18,6 +19,7 @@ import type {
|
|
|
18
19
|
BadgeEnhancerSizeT,
|
|
19
20
|
BadgePositionT,
|
|
20
21
|
PinHeadSizeT,
|
|
22
|
+
LocationPuckSizeT,
|
|
21
23
|
} from './types.js';
|
|
22
24
|
|
|
23
25
|
export const getAnchorTransform = (anchor: AnchorPositionsT, anchorSize: number) =>
|
|
@@ -307,6 +309,62 @@ export const StyledContentItem = styled<{
|
|
|
307
309
|
};
|
|
308
310
|
});
|
|
309
311
|
|
|
312
|
+
export const LocationPuckContainer = styled<{}>('div', () => {
|
|
313
|
+
return {
|
|
314
|
+
position: 'relative',
|
|
315
|
+
display: 'flex',
|
|
316
|
+
alignItems: 'center',
|
|
317
|
+
justifyContent: 'center',
|
|
318
|
+
};
|
|
319
|
+
});
|
|
320
|
+
|
|
321
|
+
export const consumerLocationShadow = { boxShadow: `0px 2px 4px 0px rgba(67, 76, 123, 0.2)` };
|
|
322
|
+
export const earnerLocationShadow = { boxShadow: `0px 3px 5px 0px rgba(67, 76, 123, 0.4)` };
|
|
323
|
+
|
|
324
|
+
export const StyledConsumerLocationPuckCore = styled<{}>('div', ({ $theme }) => {
|
|
325
|
+
return {
|
|
326
|
+
height: `${12}px`,
|
|
327
|
+
width: `${12}px`,
|
|
328
|
+
background: $theme.colors.contentAccent,
|
|
329
|
+
borderRadius: `${100}px `,
|
|
330
|
+
position: 'absolute',
|
|
331
|
+
...consumerLocationShadow,
|
|
332
|
+
};
|
|
333
|
+
});
|
|
334
|
+
|
|
335
|
+
export const StyledLocationPuckApproximation = styled<{
|
|
336
|
+
$color: string,
|
|
337
|
+
$radius: number,
|
|
338
|
+
}>('div', ({ $theme, $color, $radius }) => {
|
|
339
|
+
return {
|
|
340
|
+
background: $color,
|
|
341
|
+
opacity: 0.12,
|
|
342
|
+
height: `${$radius / 2}px`,
|
|
343
|
+
width: `${$radius / 2}px`,
|
|
344
|
+
borderRadius: `${10000}px `,
|
|
345
|
+
position: 'absolute',
|
|
346
|
+
transition: `${$theme.animation.timing300} ${$theme.animation.easeOutCurve} all`,
|
|
347
|
+
};
|
|
348
|
+
});
|
|
349
|
+
|
|
350
|
+
export const StyledEarnerLocationPuckCore = styled<{
|
|
351
|
+
$color: string,
|
|
352
|
+
$size: LocationPuckSizeT,
|
|
353
|
+
}>('div', ({ $theme, $color, $size }) => {
|
|
354
|
+
return {
|
|
355
|
+
position: 'absolute',
|
|
356
|
+
transform: `scale(${EARNER_LOCATION_PUCK_CORE_SCALES[$size]})`,
|
|
357
|
+
transition: `${$theme.animation.timing300} ${$theme.animation.easeOutCurve} all`,
|
|
358
|
+
...earnerLocationShadow,
|
|
359
|
+
borderRadius: '50%',
|
|
360
|
+
height: `${72}px`,
|
|
361
|
+
width: `${72}px`,
|
|
362
|
+
background: $theme.colors.backgroundPrimary,
|
|
363
|
+
border: `${6}px solid ${$color}`,
|
|
364
|
+
boxSizing: 'border-box',
|
|
365
|
+
};
|
|
366
|
+
});
|
|
367
|
+
|
|
310
368
|
declare var __DEV__: boolean;
|
|
311
369
|
declare var __NODE__: boolean;
|
|
312
370
|
declare var __BROWSER__: boolean;
|