baseui 0.0.0-alpha-3479e57 → 0.0.0-alpha-e79754d
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 +2 -4
- package/accordion/accordion.js.flow +1 -1
- package/accordion/panel.js +2 -3
- package/accordion/stateful-panel-container.js +0 -1
- package/accordion/styled-components.js +1 -8
- package/app-nav-bar/app-nav-bar.js +2 -4
- package/app-nav-bar/mobile-menu.js +1 -2
- package/app-nav-bar/styled-components.js +1 -19
- package/app-nav-bar/user-menu.js +1 -1
- package/aspect-ratio-box/aspect-ratio-box.js +1 -3
- package/avatar/styled-components.js +1 -4
- package/badge/styled-components.js +7 -12
- package/banner/styled-components.js +11 -21
- package/banner/types.d.ts +11 -12
- package/banner/types.js.flow +11 -13
- package/block/block.js +1 -3
- package/block/styled-components.js +1 -2
- package/breadcrumbs/styled-components.js +1 -5
- package/button/styled-components.js +0 -5
- package/button-group/stateful-button-group.js +0 -1
- package/button-group/stateful-container.js +1 -3
- package/button-group/styled-components.js +1 -2
- package/card/images.d.ts +1 -1
- package/card/styled-components.js +4 -11
- package/checkbox/styled-components.js +3 -9
- package/combobox/combobox.js +71 -78
- package/combobox/styled-components.js +1 -5
- package/data-table/column-anchor.js +0 -3
- package/data-table/column-datetime.js +4 -10
- package/data-table/column-numerical.js +4 -4
- package/data-table/column-string.js +0 -3
- package/data-table/column.js +1 -6
- package/data-table/data-table.js +6 -7
- package/data-table/filter-menu.js +1 -2
- package/data-table/header-cell.js +34 -43
- package/data-table/locale.d.ts +0 -4
- package/data-table/locale.js +1 -3
- package/data-table/locale.js.flow +0 -5
- package/data-table/measure-column-widths.js +1 -2
- package/data-table/stateful-container.js +1 -2
- package/data-table/stateful-data-table.js +4 -4
- package/datepicker/calendar-header.js +0 -1
- package/datepicker/calendar.js +0 -2
- package/datepicker/datepicker.js +0 -2
- package/datepicker/day.js +1 -2
- package/datepicker/stateful-calendar.js +3 -7
- package/datepicker/stateful-container.js +0 -2
- package/datepicker/stateful-datepicker.js +4 -9
- package/datepicker/styled-components.js +4 -27
- package/datepicker/utils/date-helpers.js +1 -2
- package/datepicker/utils/index.js +1 -2
- package/divider/styled-components.js +3 -4
- package/dnd-list/stateful-list-container.js +0 -1
- package/dnd-list/styled-components.js +0 -7
- package/drawer/constants.js +0 -1
- package/drawer/drawer.js +3 -2
- package/drawer/drawer.js.flow +3 -1
- package/drawer/styled-components.js +2 -9
- package/es/accordion/accordion.js +3 -3
- package/es/accordion/panel.js +2 -3
- package/es/accordion/stateful-panel-container.js +0 -1
- package/es/accordion/styled-components.js +1 -8
- package/es/app-nav-bar/app-nav-bar.js +2 -6
- package/es/app-nav-bar/mobile-menu.js +2 -4
- package/es/app-nav-bar/styled-components.js +1 -19
- package/es/app-nav-bar/user-menu.js +1 -1
- package/es/aspect-ratio-box/aspect-ratio-box.js +1 -3
- package/es/avatar/styled-components.js +1 -4
- package/es/badge/styled-components.js +2 -7
- package/es/banner/styled-components.js +2 -12
- package/es/block/block.js +1 -3
- package/es/block/styled-components.js +1 -2
- package/es/breadcrumbs/styled-components.js +1 -5
- package/es/button/button.js +0 -8
- package/es/button/styled-components.js +0 -5
- package/es/button-group/stateful-button-group.js +0 -1
- package/es/button-group/stateful-container.js +1 -3
- package/es/button-group/styled-components.js +1 -2
- package/es/card/index.js +1 -2
- package/es/card/styled-components.js +4 -12
- package/es/checkbox/index.js +0 -1
- package/es/checkbox/stateful-checkbox-container.js +0 -3
- package/es/checkbox/styled-components.js +3 -9
- package/es/combobox/combobox.js +69 -76
- package/es/combobox/styled-components.js +1 -5
- package/es/data-table/column-anchor.js +0 -3
- package/es/data-table/column-datetime.js +5 -12
- package/es/data-table/column-numerical.js +4 -5
- package/es/data-table/column-string.js +0 -3
- package/es/data-table/column.js +1 -4
- package/es/data-table/data-table.js +6 -7
- package/es/data-table/filter-menu.js +1 -2
- package/es/data-table/header-cell.js +34 -41
- package/es/data-table/locale.js +1 -3
- package/es/data-table/measure-column-widths.js +1 -2
- package/es/data-table/stateful-container.js +1 -2
- package/es/data-table/stateful-data-table.js +4 -4
- package/es/datepicker/calendar-header.js +0 -1
- package/es/datepicker/calendar.js +0 -2
- package/es/datepicker/datepicker.js +1 -3
- package/es/datepicker/day.js +1 -2
- package/es/datepicker/stateful-calendar.js +1 -4
- package/es/datepicker/stateful-container.js +0 -2
- package/es/datepicker/stateful-datepicker.js +1 -5
- package/es/datepicker/styled-components.js +3 -26
- package/es/datepicker/utils/date-helpers.js +1 -2
- package/es/datepicker/utils/index.js +1 -2
- package/es/divider/styled-components.js +2 -3
- package/es/dnd-list/stateful-list-container.js +0 -1
- package/es/dnd-list/styled-components.js +0 -7
- package/es/drawer/constants.js +0 -1
- package/es/drawer/drawer.js +5 -2
- package/es/drawer/styled-components.js +2 -9
- package/es/file-uploader/styled-components.js +1 -6
- package/es/flex-grid/flex-grid-item.js +6 -5
- package/es/flex-grid/flex-grid.js +1 -4
- package/es/form-control/styled-components.js +1 -6
- package/es/header-navigation/styled-components.js +1 -4
- package/es/helper/styled-components.js +1 -3
- package/es/helpers/overrides.js +5 -9
- package/es/icon/build-icons.js +2 -0
- package/es/icon/omit-dollar-prefixed-keys.js +0 -1
- package/es/icon/styled-components.js +1 -2
- package/es/input/base-input.js +0 -1
- package/es/input/masked-input.js +2 -9
- package/es/input/stateful-container.js +0 -1
- package/es/input/styled-components.js +5 -10
- package/es/layer/layer.js +0 -24
- package/es/layer/layers-manager.js +1 -91
- package/es/layout-grid/styled-components.js +0 -3
- package/es/link/index.js +1 -2
- package/es/link/styled-components.js +1 -2
- package/es/list/list-heading.js +17 -21
- package/es/list/list-item.js +1 -2
- package/es/list/styled-components.js +1 -15
- package/es/locale/es_AR.js +1 -3
- package/es/locale/index.js +1 -2
- package/es/locale/tr_TR.js +1 -3
- package/es/map-marker/constants.js +0 -14
- package/es/map-marker/fixed-marker.js +0 -1
- package/es/map-marker/index.js +1 -2
- package/es/map-marker/pin-head.js +0 -1
- package/es/map-marker/styled-components.js +2 -86
- package/es/menu/menu.js +3 -7
- package/es/menu/option-profile.js +0 -1
- package/es/menu/stateful-container.js +0 -10
- package/es/menu/styled-components.js +2 -15
- package/es/modal/modal.js +6 -4
- package/es/modal/styled-components.js +1 -8
- package/es/pagination/stateful-container.js +0 -1
- package/es/pagination/stateful-pagination.js +0 -1
- package/es/pagination/styled-components.js +1 -4
- package/es/payment-card/styled-components.js +1 -2
- package/es/phone-input/base-country-picker.js +1 -3
- package/es/phone-input/country-select-dropdown.js +0 -1
- package/es/phone-input/styled-components.js +4 -15
- package/es/pin-code/styled-components.js +1 -4
- package/es/popover/popover.js +12 -9
- package/es/popover/styled-components.js +4 -9
- package/es/progress-bar/progressbar-rounded.js +0 -1
- package/es/progress-bar/styled-components.js +2 -14
- package/es/progress-steps/progress-steps.js +1 -2
- package/es/progress-steps/styled-components.js +12 -20
- package/es/radio/stateful-radiogroup-container.js +0 -3
- package/es/radio/styled-components.js +3 -10
- package/es/rating/emoticon-rating.js +1 -2
- package/es/rating/star-rating.js +1 -2
- package/es/rating/styled-components.js +1 -5
- package/es/select/autosize-input.js +3 -2
- package/es/select/dropdown.js +1 -2
- package/es/select/multi-value.js +1 -2
- package/es/select/select-component.js +10 -10
- package/es/select/single-select.js +2 -2
- package/es/select/stateful-select-container.js +0 -2
- package/es/select/styled-components.js +1 -16
- package/es/select/value.js +4 -3
- package/es/side-navigation/index.js +1 -2
- package/es/side-navigation/nav-item.js +0 -1
- package/es/side-navigation/nav.js +1 -1
- package/es/side-navigation/stateful-container.js +0 -1
- package/es/side-navigation/styled-components.js +2 -8
- package/es/skeleton/styled-components.js +1 -3
- package/es/slider/slider.js +2 -4
- package/es/slider/stateful-slider-container.js +0 -2
- package/es/slider/styled-components.js +0 -9
- package/es/snackbar/snackbar-element.js +0 -1
- package/es/snackbar/styled-components.js +1 -9
- package/es/spinner/styled-components.js +1 -2
- package/es/styles/__mocks__/styled.js +5 -8
- package/es/styles/styled.js +6 -7
- package/es/table/index.js +1 -2
- package/es/table/styled-components.js +1 -13
- package/es/table-grid/styled-components.js +1 -4
- package/es/table-semantic/styled-components.js +2 -20
- package/es/tabs/stateful-tabs.js +0 -1
- package/es/tabs/styled-components.js +1 -5
- package/es/tabs/tabs.js +2 -4
- package/es/tabs-motion/styled-components.js +1 -9
- package/es/tabs-motion/tab.js +0 -1
- package/es/tabs-motion/tabs.js +1 -2
- package/es/tag/styled-components.js +1 -32
- package/es/tag/tag.js +2 -6
- package/es/textarea/styled-components.js +1 -4
- package/es/themes/shared/typography.js +10 -10
- package/es/toast/styled-components.js +1 -5
- package/es/toast/toaster.js +2 -0
- package/es/tokens/colors.js +0 -24
- package/es/tooltip/styled-components.js +1 -4
- package/es/tree-view/index.js +1 -2
- package/es/tree-view/styled-components.js +1 -7
- package/es/tree-view/tree-view.js +1 -3
- package/es/types/globals.d.js +0 -12
- package/es/utils/deep-merge.js +5 -0
- package/es/utils/deprecated-component.js +0 -1
- package/es/utils/focusVisible.js +2 -4
- package/esm/accordion/accordion.js +4 -4
- package/esm/accordion/panel.js +2 -3
- package/esm/accordion/stateful-panel-container.js +0 -1
- package/esm/accordion/styled-components.js +1 -8
- package/esm/app-nav-bar/app-nav-bar.js +2 -4
- package/esm/app-nav-bar/mobile-menu.js +2 -4
- package/esm/app-nav-bar/styled-components.js +1 -19
- package/esm/app-nav-bar/user-menu.js +1 -1
- package/esm/aspect-ratio-box/aspect-ratio-box.js +1 -3
- package/esm/avatar/styled-components.js +1 -4
- package/esm/badge/styled-components.js +2 -7
- package/esm/banner/styled-components.js +2 -12
- package/esm/block/block.js +1 -3
- package/esm/block/styled-components.js +1 -2
- package/esm/breadcrumbs/styled-components.js +1 -5
- package/esm/button/styled-components.js +0 -5
- package/esm/button-group/stateful-button-group.js +0 -1
- package/esm/button-group/stateful-container.js +1 -3
- package/esm/button-group/styled-components.js +1 -2
- package/esm/card/index.js +1 -2
- package/esm/card/styled-components.js +4 -12
- package/esm/checkbox/index.js +0 -1
- package/esm/checkbox/styled-components.js +3 -9
- package/esm/combobox/combobox.js +71 -78
- package/esm/combobox/styled-components.js +1 -5
- package/esm/data-table/column-anchor.js +0 -3
- package/esm/data-table/column-datetime.js +5 -12
- package/esm/data-table/column-numerical.js +4 -4
- package/esm/data-table/column-string.js +0 -3
- package/esm/data-table/column.js +1 -5
- package/esm/data-table/data-table.js +6 -7
- package/esm/data-table/filter-menu.js +1 -2
- package/esm/data-table/header-cell.js +34 -42
- package/esm/data-table/locale.js +1 -3
- package/esm/data-table/measure-column-widths.js +1 -2
- package/esm/data-table/stateful-container.js +1 -2
- package/esm/data-table/stateful-data-table.js +4 -4
- package/esm/datepicker/calendar-header.js +0 -1
- package/esm/datepicker/calendar.js +0 -2
- package/esm/datepicker/datepicker.js +1 -3
- package/esm/datepicker/day.js +1 -2
- package/esm/datepicker/stateful-calendar.js +3 -7
- package/esm/datepicker/stateful-container.js +0 -2
- package/esm/datepicker/stateful-datepicker.js +4 -9
- package/esm/datepicker/styled-components.js +3 -26
- package/esm/datepicker/utils/date-helpers.js +1 -2
- package/esm/datepicker/utils/index.js +1 -2
- package/esm/divider/styled-components.js +2 -3
- package/esm/dnd-list/stateful-list-container.js +0 -1
- package/esm/dnd-list/styled-components.js +0 -7
- package/esm/drawer/constants.js +0 -1
- package/esm/drawer/drawer.js +5 -2
- package/esm/drawer/styled-components.js +2 -9
- package/esm/file-uploader/styled-components.js +1 -6
- package/esm/flex-grid/flex-grid-item.js +5 -4
- package/esm/flex-grid/flex-grid.js +3 -7
- package/esm/form-control/styled-components.js +1 -6
- package/esm/header-navigation/styled-components.js +1 -4
- package/esm/helper/styled-components.js +1 -3
- package/esm/helpers/overrides.js +5 -9
- package/esm/icon/build-icons.js +2 -0
- package/esm/icon/omit-dollar-prefixed-keys.js +0 -1
- package/esm/icon/styled-components.js +1 -2
- package/esm/input/base-input.js +0 -1
- package/esm/input/masked-input.js +2 -5
- package/esm/input/stateful-container.js +0 -1
- package/esm/input/styled-components.js +5 -10
- package/esm/layer/layer.js +0 -24
- package/esm/layer/layers-manager.js +1 -97
- package/esm/layout-grid/styled-components.js +0 -3
- package/esm/link/index.js +1 -2
- package/esm/link/styled-components.js +1 -2
- package/esm/list/list-heading.js +17 -21
- package/esm/list/list-item.js +1 -2
- package/esm/list/styled-components.js +1 -15
- package/esm/locale/es_AR.js +1 -3
- package/esm/locale/index.js +1 -4
- package/esm/locale/tr_TR.js +1 -3
- package/esm/map-marker/constants.js +2 -12
- package/esm/map-marker/index.js +1 -2
- package/esm/map-marker/styled-components.js +2 -82
- package/esm/menu/menu.js +3 -6
- package/esm/menu/option-profile.js +0 -1
- package/esm/menu/stateful-container.js +0 -1
- package/esm/menu/styled-components.js +6 -20
- package/esm/modal/modal.js +6 -4
- package/esm/modal/styled-components.js +1 -8
- package/esm/pagination/stateful-container.js +0 -1
- package/esm/pagination/stateful-pagination.js +0 -1
- package/esm/pagination/styled-components.js +1 -4
- package/esm/payment-card/styled-components.js +1 -2
- package/esm/phone-input/base-country-picker.js +1 -3
- package/esm/phone-input/country-select-dropdown.js +0 -1
- package/esm/phone-input/styled-components.js +8 -20
- package/esm/pin-code/styled-components.js +1 -4
- package/esm/popover/popover.js +12 -9
- package/esm/popover/styled-components.js +4 -9
- package/esm/progress-bar/progressbar-rounded.js +0 -1
- package/esm/progress-bar/styled-components.js +2 -14
- package/esm/progress-steps/progress-steps.js +1 -2
- package/esm/progress-steps/styled-components.js +19 -28
- package/esm/radio/styled-components.js +3 -10
- package/esm/rating/emoticon-rating.js +1 -2
- package/esm/rating/star-rating.js +1 -2
- package/esm/rating/styled-components.js +1 -5
- package/esm/select/autosize-input.js +3 -2
- package/esm/select/dropdown.js +1 -2
- package/esm/select/multi-value.js +1 -2
- package/esm/select/select-component.js +10 -10
- package/esm/select/single-select.js +2 -2
- package/esm/select/styled-components.js +1 -16
- package/esm/select/value.js +4 -3
- package/esm/side-navigation/index.js +1 -2
- package/esm/side-navigation/nav-item.js +0 -1
- package/esm/side-navigation/nav.js +1 -1
- package/esm/side-navigation/stateful-container.js +0 -1
- package/esm/side-navigation/styled-components.js +6 -13
- package/esm/skeleton/styled-components.js +1 -3
- package/esm/slider/slider.js +2 -4
- package/esm/slider/styled-components.js +0 -9
- package/esm/snackbar/snackbar-element.js +0 -1
- package/esm/snackbar/styled-components.js +1 -9
- package/esm/spinner/styled-components.js +1 -2
- package/esm/styles/__mocks__/styled.js +5 -8
- package/esm/styles/styled.js +6 -7
- package/esm/table/index.js +1 -2
- package/esm/table/styled-components.js +1 -13
- package/esm/table-grid/styled-components.js +1 -4
- package/esm/table-semantic/styled-components.js +2 -20
- package/esm/tabs/stateful-tabs.js +0 -1
- package/esm/tabs/styled-components.js +1 -5
- package/esm/tabs/tabs.js +2 -4
- package/esm/tabs-motion/styled-components.js +1 -8
- package/esm/tabs-motion/tab.js +0 -1
- package/esm/tabs-motion/tabs.js +1 -2
- package/esm/tag/styled-components.js +1 -5
- package/esm/tag/tag.js +2 -4
- package/esm/textarea/styled-components.js +1 -4
- package/esm/themes/shared/typography.js +10 -10
- package/esm/toast/styled-components.js +1 -5
- package/esm/toast/toaster.js +2 -0
- package/esm/tokens/colors.js +0 -24
- package/esm/tooltip/styled-components.js +1 -4
- package/esm/tree-view/index.js +1 -2
- package/esm/tree-view/styled-components.js +1 -7
- package/esm/tree-view/tree-view.js +1 -3
- package/esm/types/globals.d.js +0 -12
- package/esm/utils/deep-merge.js +5 -0
- package/esm/utils/deprecated-component.js +0 -1
- package/esm/utils/focusVisible.js +2 -4
- package/file-uploader/styled-components.js +1 -6
- package/flex-grid/flex-grid-item.d.ts +1 -1
- package/flex-grid/flex-grid-item.js +8 -6
- package/flex-grid/flex-grid.js +3 -7
- package/form-control/styled-components.js +1 -6
- package/header-navigation/styled-components.js +1 -4
- package/helper/styled-components.js +1 -3
- package/helpers/overrides.js +3 -8
- package/helpers/overrides.js.flow +1 -1
- package/icon/build-icons.js +2 -0
- package/icon/build-icons.js.flow +1 -0
- package/icon/omit-dollar-prefixed-keys.js +0 -1
- package/icon/styled-components.js +1 -2
- package/input/masked-input.js +2 -5
- package/input/stateful-container.js +0 -1
- package/input/styled-components.js +5 -10
- package/layer/layer.js +0 -24
- package/layer/layer.js.flow +0 -25
- package/layer/layers-manager.d.ts +0 -8
- package/layer/layers-manager.js +1 -97
- package/layer/layers-manager.js.flow +1 -84
- package/layer/types.d.ts +0 -21
- package/layer/types.js.flow +1 -22
- package/layout-grid/styled-components.js +0 -3
- package/link/index.js +1 -2
- package/link/styled-components.js +1 -2
- package/list/list-heading.js +17 -21
- package/list/list-item.js +1 -2
- package/list/styled-components.js +1 -15
- package/locale/es_AR.js +1 -3
- package/locale/index.js +1 -4
- package/locale/tr_TR.js +1 -3
- package/map-marker/constants.d.ts +0 -14
- package/map-marker/constants.js +3 -16
- package/map-marker/constants.js.flow +0 -17
- package/map-marker/index.d.ts +1 -2
- package/map-marker/index.js +1 -24
- package/map-marker/index.js.flow +3 -5
- package/map-marker/styled-components.d.ts +1 -17
- package/map-marker/styled-components.js +2 -88
- package/map-marker/styled-components.js.flow +0 -58
- package/map-marker/types.d.ts +1 -29
- package/map-marker/types.js.flow +0 -34
- package/menu/menu.js +3 -6
- package/menu/option-profile.js +0 -1
- package/menu/stateful-container.js +0 -1
- package/menu/styled-components.js +6 -20
- package/modal/modal.js +4 -4
- package/modal/modal.js.flow +3 -1
- package/modal/styled-components.js +1 -8
- package/package.json +11 -9
- package/pagination/stateful-container.js +0 -1
- package/pagination/stateful-pagination.js +0 -1
- package/pagination/styled-components.js +1 -4
- package/payment-card/styled-components.js +1 -2
- package/phone-input/base-country-picker.js +1 -3
- package/phone-input/country-select-dropdown.js +0 -1
- package/phone-input/styled-components.js +9 -21
- package/pin-code/styled-components.js +1 -4
- package/popover/popover.js +12 -9
- package/popover/popover.js.flow +12 -2
- package/popover/styled-components.js +9 -12
- package/progress-bar/progressbar-rounded.js +0 -1
- package/progress-bar/styled-components.js +2 -14
- package/progress-steps/progress-steps.js +1 -2
- package/progress-steps/styled-components.js +19 -28
- package/radio/styled-components.js +3 -10
- package/rating/emoticon-rating.js +1 -2
- package/rating/star-rating.js +1 -2
- package/rating/styled-components.js +1 -5
- package/select/autosize-input.js +1 -2
- package/select/autosize-input.js.flow +1 -1
- package/select/dropdown.js +1 -2
- package/select/multi-value.js +0 -1
- package/select/select-component.d.ts +1 -1
- package/select/select-component.js +7 -9
- 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 +1 -16
- package/select/value.js +3 -2
- package/side-navigation/nav-item.js +0 -1
- package/side-navigation/nav.js +1 -1
- package/side-navigation/stateful-container.js +0 -1
- package/side-navigation/styled-components.js +6 -13
- package/skeleton/styled-components.js +1 -3
- package/slider/slider.js +2 -4
- package/slider/styled-components.js +0 -9
- package/snackbar/snackbar-element.js +0 -1
- package/snackbar/styled-components.js +1 -9
- package/spinner/styled-components.js +1 -2
- package/styles/__mocks__/styled.js +3 -8
- package/styles/styled.js +6 -7
- package/table/styled-components.js +1 -13
- package/table-grid/styled-components.js +1 -4
- package/table-semantic/styled-components.js +2 -20
- package/tabs/stateful-tabs.js +0 -1
- package/tabs/styled-components.js +1 -5
- package/tabs/tabs.js +2 -4
- package/tabs-motion/styled-components.js +1 -8
- package/tabs-motion/tab.js +0 -1
- package/tabs-motion/tabs.js +1 -2
- package/tag/styled-components.js +1 -5
- package/tag/tag.js +2 -4
- package/textarea/styled-components.js +1 -4
- package/themes/shared/typography.js +10 -10
- package/themes/shared/typography.js.flow +10 -10
- package/toast/styled-components.js +1 -5
- package/toast/toaster.js.flow +1 -1
- package/tokens/colors.js +0 -24
- package/tokens/colors.js.flow +0 -27
- package/tokens/types.d.ts +0 -24
- package/tokens/types.js.flow +0 -27
- package/tooltip/styled-components.js +1 -4
- package/tree-view/styled-components.js +1 -7
- package/tree-view/tree-view.js +1 -3
- package/types/globals.d.js +1 -14
- package/utils/deep-merge.js +6 -0
- package/utils/deprecated-component.js +0 -1
- package/utils/focusVisible.js +2 -4
- package/es/map-marker/location-puck.js +0 -142
- package/es/message-card/constants.js +0 -19
- package/es/message-card/index.js +0 -10
- package/es/message-card/message-card.js +0 -112
- package/es/message-card/styled-components.js +0 -108
- package/es/message-card/types.js +0 -1
- package/es/message-card/utils.js +0 -27
- package/esm/map-marker/location-puck.js +0 -199
- package/esm/message-card/constants.js +0 -20
- package/esm/message-card/index.js +0 -10
- package/esm/message-card/message-card.js +0 -166
- package/esm/message-card/styled-components.js +0 -116
- package/esm/message-card/types.js +0 -1
- package/esm/message-card/utils.js +0 -26
- package/map-marker/location-puck.d.ts +0 -4
- package/map-marker/location-puck.js +0 -211
- package/map-marker/location-puck.js.flow +0 -18
- package/message-card/constants.d.ts +0 -12
- package/message-card/constants.js +0 -25
- package/message-card/index.d.ts +0 -4
- package/message-card/index.js +0 -60
- package/message-card/index.js.flow +0 -72
- package/message-card/message-card.d.ts +0 -4
- package/message-card/message-card.js +0 -182
- package/message-card/package.json +0 -4
- package/message-card/styled-components.d.ts +0 -14
- package/message-card/styled-components.js +0 -124
- package/message-card/types.d.ts +0 -27
- package/message-card/types.js +0 -5
- package/message-card/utils.d.ts +0 -1
- package/message-card/utils.js +0 -36
|
@@ -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
|
|
8
|
+
import { BADGE_ENHANCER_STYLES, FLOATING_MARKER_ANCHOR_POSITIONS, LABEL_SIZES } 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,7 +28,6 @@ export const StyledDragShadowContainer = styled('div', ({
|
|
|
28
28
|
boxShadow: $theme.lighting.shadow600
|
|
29
29
|
}));
|
|
30
30
|
StyledDragShadowContainer.displayName = "StyledDragShadowContainer";
|
|
31
|
-
StyledDragShadowContainer.displayName = 'StyledDragShadowContainer';
|
|
32
31
|
export const StyledDragShadow = styled('div', ({
|
|
33
32
|
$theme,
|
|
34
33
|
$background,
|
|
@@ -42,7 +41,6 @@ export const StyledDragShadow = styled('div', ({
|
|
|
42
41
|
bottom: 0
|
|
43
42
|
}));
|
|
44
43
|
StyledDragShadow.displayName = "StyledDragShadow";
|
|
45
|
-
StyledDragShadow.displayName = 'StyledDragShadow';
|
|
46
44
|
export const StyledNeedle = styled('div', ({
|
|
47
45
|
$theme,
|
|
48
46
|
$background,
|
|
@@ -54,7 +52,6 @@ export const StyledNeedle = styled('div', ({
|
|
|
54
52
|
boxShadow: $theme.lighting.shadow600
|
|
55
53
|
}));
|
|
56
54
|
StyledNeedle.displayName = "StyledNeedle";
|
|
57
|
-
StyledNeedle.displayName = 'StyledNeedle';
|
|
58
55
|
export const StyledFloatingMarkerRoot = styled('div', ({
|
|
59
56
|
$size
|
|
60
57
|
}) => ({
|
|
@@ -63,7 +60,6 @@ export const StyledFloatingMarkerRoot = styled('div', ({
|
|
|
63
60
|
width: `${$size}px`
|
|
64
61
|
}));
|
|
65
62
|
StyledFloatingMarkerRoot.displayName = "StyledFloatingMarkerRoot";
|
|
66
|
-
StyledFloatingMarkerRoot.displayName = 'StyledFloatingMarkerRoot';
|
|
67
63
|
export const StyledFloatingMarkerPinHeadContainer = styled('div', ({
|
|
68
64
|
$theme,
|
|
69
65
|
$anchor,
|
|
@@ -74,19 +70,16 @@ export const StyledFloatingMarkerPinHeadContainer = styled('div', ({
|
|
|
74
70
|
transform: getAnchorTransform($anchor, $anchorSize)
|
|
75
71
|
}));
|
|
76
72
|
StyledFloatingMarkerPinHeadContainer.displayName = "StyledFloatingMarkerPinHeadContainer";
|
|
77
|
-
StyledFloatingMarkerPinHeadContainer.displayName = 'StyledFloatingMarkerPinHeadContainer';
|
|
78
73
|
export const StyledFloatingMarkerAnchorContainer = styled('div', () => ({
|
|
79
74
|
position: 'absolute'
|
|
80
75
|
}));
|
|
81
76
|
StyledFloatingMarkerAnchorContainer.displayName = "StyledFloatingMarkerAnchorContainer";
|
|
82
|
-
StyledFloatingMarkerAnchorContainer.displayName = 'StyledFloatingMarkerAnchorContainer';
|
|
83
77
|
export const StyledFixedMarkerRoot = styled('div', () => ({
|
|
84
78
|
display: 'flex',
|
|
85
79
|
alignItems: 'center',
|
|
86
80
|
flexDirection: 'column'
|
|
87
81
|
}));
|
|
88
82
|
StyledFixedMarkerRoot.displayName = "StyledFixedMarkerRoot";
|
|
89
|
-
StyledFixedMarkerRoot.displayName = 'StyledFixedMarkerRoot';
|
|
90
83
|
export const StyledFixedMarkerDragContainer = styled('div', ({
|
|
91
84
|
$theme,
|
|
92
85
|
$translateAmount,
|
|
@@ -101,7 +94,6 @@ export const StyledFixedMarkerDragContainer = styled('div', ({
|
|
|
101
94
|
};
|
|
102
95
|
});
|
|
103
96
|
StyledFixedMarkerDragContainer.displayName = "StyledFixedMarkerDragContainer";
|
|
104
|
-
StyledFixedMarkerDragContainer.displayName = 'StyledFixedMarkerDragContainer';
|
|
105
97
|
export const StyledOuterXXSmallAnchor = styled('div', ({
|
|
106
98
|
$theme,
|
|
107
99
|
$round,
|
|
@@ -118,7 +110,6 @@ export const StyledOuterXXSmallAnchor = styled('div', ({
|
|
|
118
110
|
boxShadow: $theme.lighting.shadow600
|
|
119
111
|
}));
|
|
120
112
|
StyledOuterXXSmallAnchor.displayName = "StyledOuterXXSmallAnchor";
|
|
121
|
-
StyledOuterXXSmallAnchor.displayName = 'StyledOuterXXSmallAnchor';
|
|
122
113
|
export const StyledInnerXXSmallAnchor = styled('div', ({
|
|
123
114
|
$round,
|
|
124
115
|
$color,
|
|
@@ -130,7 +121,6 @@ export const StyledInnerXXSmallAnchor = styled('div', ({
|
|
|
130
121
|
borderRadius: $round ? '50%' : 0
|
|
131
122
|
}));
|
|
132
123
|
StyledInnerXXSmallAnchor.displayName = "StyledInnerXXSmallAnchor";
|
|
133
|
-
StyledInnerXXSmallAnchor.displayName = 'StyledInnerXXSmallAnchor';
|
|
134
124
|
export const StyledOuterXSmallAnchor = styled('div', ({
|
|
135
125
|
$theme,
|
|
136
126
|
$round,
|
|
@@ -147,7 +137,6 @@ export const StyledOuterXSmallAnchor = styled('div', ({
|
|
|
147
137
|
boxShadow: $theme.lighting.shadow600
|
|
148
138
|
}));
|
|
149
139
|
StyledOuterXSmallAnchor.displayName = "StyledOuterXSmallAnchor";
|
|
150
|
-
StyledOuterXSmallAnchor.displayName = 'StyledOuterXSmallAnchor';
|
|
151
140
|
export const StyledInnerXSmallAnchor = styled('div', ({
|
|
152
141
|
$round,
|
|
153
142
|
$color,
|
|
@@ -159,7 +148,6 @@ export const StyledInnerXSmallAnchor = styled('div', ({
|
|
|
159
148
|
borderRadius: $round ? '50%' : 0
|
|
160
149
|
}));
|
|
161
150
|
StyledInnerXSmallAnchor.displayName = "StyledInnerXSmallAnchor";
|
|
162
|
-
StyledInnerXSmallAnchor.displayName = 'StyledInnerXSmallAnchor';
|
|
163
151
|
export const StyledPinHead = styled('div', ({
|
|
164
152
|
$theme,
|
|
165
153
|
$height,
|
|
@@ -195,7 +183,6 @@ export const StyledPinHead = styled('div', ({
|
|
|
195
183
|
};
|
|
196
184
|
});
|
|
197
185
|
StyledPinHead.displayName = "StyledPinHead";
|
|
198
|
-
StyledPinHead.displayName = 'StyledPinHead';
|
|
199
186
|
export const StyledStrokedLabelContainer = styled('div', ({
|
|
200
187
|
$position,
|
|
201
188
|
$theme,
|
|
@@ -242,7 +229,6 @@ export const StyledStrokedLabelContainer = styled('div', ({
|
|
|
242
229
|
};
|
|
243
230
|
});
|
|
244
231
|
StyledStrokedLabelContainer.displayName = "StyledStrokedLabelContainer";
|
|
245
|
-
StyledStrokedLabelContainer.displayName = 'StyledStrokedLabelContainer';
|
|
246
232
|
export const StyledStrokedLabel = styled('div', ({
|
|
247
233
|
$theme,
|
|
248
234
|
$size
|
|
@@ -269,7 +255,6 @@ export const StyledStrokedLabel = styled('div', ({
|
|
|
269
255
|
};
|
|
270
256
|
});
|
|
271
257
|
StyledStrokedLabel.displayName = "StyledStrokedLabel";
|
|
272
|
-
StyledStrokedLabel.displayName = 'StyledStrokedLabel';
|
|
273
258
|
export const StyledBadgeEnhancerRoot = styled('div', ({
|
|
274
259
|
$theme,
|
|
275
260
|
$size,
|
|
@@ -292,14 +277,12 @@ export const StyledBadgeEnhancerRoot = styled('div', ({
|
|
|
292
277
|
};
|
|
293
278
|
});
|
|
294
279
|
StyledBadgeEnhancerRoot.displayName = "StyledBadgeEnhancerRoot";
|
|
295
|
-
StyledBadgeEnhancerRoot.displayName = 'StyledBadgeEnhancerRoot';
|
|
296
280
|
export const RelativeContainer = styled('div', () => {
|
|
297
281
|
return {
|
|
298
282
|
position: 'relative'
|
|
299
283
|
};
|
|
300
284
|
});
|
|
301
285
|
RelativeContainer.displayName = "RelativeContainer";
|
|
302
|
-
RelativeContainer.displayName = 'RelativeContainer';
|
|
303
286
|
export const StyledContentItem = styled('div', ({
|
|
304
287
|
$theme,
|
|
305
288
|
$color,
|
|
@@ -315,71 +298,4 @@ export const StyledContentItem = styled('div', ({
|
|
|
315
298
|
color: $color
|
|
316
299
|
};
|
|
317
300
|
});
|
|
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';
|
|
301
|
+
StyledContentItem.displayName = "StyledContentItem";
|
package/es/menu/menu.js
CHANGED
|
@@ -22,7 +22,6 @@ export default function Menu(props) {
|
|
|
22
22
|
focusMenu = () => {},
|
|
23
23
|
unfocusMenu = () => {},
|
|
24
24
|
handleMouseLeave = () => {},
|
|
25
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
26
25
|
handleKeyDown = event => {},
|
|
27
26
|
renderAll = false
|
|
28
27
|
} = props;
|
|
@@ -32,8 +31,7 @@ export default function Menu(props) {
|
|
|
32
31
|
if (isFocusVisible(event)) {
|
|
33
32
|
setFocusVisible(true);
|
|
34
33
|
}
|
|
35
|
-
};
|
|
36
|
-
|
|
34
|
+
};
|
|
37
35
|
|
|
38
36
|
const handleBlur = event => {
|
|
39
37
|
if (focusVisible !== false) {
|
|
@@ -54,12 +52,10 @@ export default function Menu(props) {
|
|
|
54
52
|
els.push( /*#__PURE__*/React.createElement(OptgroupHeader, _extends({
|
|
55
53
|
key: optgroup
|
|
56
54
|
}, optgroupHeaderProps), optgroup));
|
|
57
|
-
}
|
|
58
|
-
|
|
55
|
+
}
|
|
59
56
|
|
|
60
57
|
const groupItems = groupedItems[optgroup].map((item, index) => {
|
|
61
|
-
itemIndex = itemIndex + 1;
|
|
62
|
-
|
|
58
|
+
itemIndex = itemIndex + 1;
|
|
63
59
|
const {
|
|
64
60
|
getRequiredItemProps = (item, index) => ({})
|
|
65
61
|
} = props;
|
|
@@ -12,7 +12,6 @@ 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
|
|
16
15
|
function OptionProfile(props, ref) {
|
|
17
16
|
const {
|
|
18
17
|
item,
|
|
@@ -384,23 +384,14 @@ 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
|
|
388
387
|
initialState,
|
|
389
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
390
388
|
stateReducer,
|
|
391
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
392
389
|
children,
|
|
393
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
394
390
|
onItemSelect,
|
|
395
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
396
391
|
addMenuToNesting,
|
|
397
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
398
392
|
removeMenuFromNesting,
|
|
399
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
400
393
|
getParentMenu,
|
|
401
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
402
394
|
getChildMenu,
|
|
403
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
404
395
|
forceHighlight,
|
|
405
396
|
...restProps
|
|
406
397
|
} = this.props;
|
|
@@ -411,7 +402,6 @@ class MenuStatefulContainerInner extends React.Component {
|
|
|
411
402
|
handleMouseLeave: this.handleMouseLeave,
|
|
412
403
|
highlightedIndex: this.state.highlightedIndex,
|
|
413
404
|
isFocused: this.state.isFocused,
|
|
414
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
415
405
|
handleKeyDown: this.props.keyboardControlNode.current ? event => {} : this.onKeyDown,
|
|
416
406
|
focusMenu: this.focusMenu,
|
|
417
407
|
unfocusMenu: this.unfocusMenu
|
|
@@ -34,7 +34,6 @@ export const StyledList = styled('ul', ({
|
|
|
34
34
|
};
|
|
35
35
|
});
|
|
36
36
|
StyledList.displayName = "StyledList";
|
|
37
|
-
StyledList.displayName = 'StyledList';
|
|
38
37
|
|
|
39
38
|
function getFontColor(props) {
|
|
40
39
|
if (props.$disabled) {
|
|
@@ -84,7 +83,6 @@ export const StyledEmptyState = styled('li', props => {
|
|
|
84
83
|
};
|
|
85
84
|
});
|
|
86
85
|
StyledEmptyState.displayName = "StyledEmptyState";
|
|
87
|
-
StyledEmptyState.displayName = 'StyledEmptyState';
|
|
88
86
|
export const StyledOptgroupHeader = styled('li', props => {
|
|
89
87
|
const paddingX = props.$theme.sizing.scale300;
|
|
90
88
|
const paddingY = props.$theme.sizing.scale200;
|
|
@@ -97,7 +95,6 @@ export const StyledOptgroupHeader = styled('li', props => {
|
|
|
97
95
|
};
|
|
98
96
|
});
|
|
99
97
|
StyledOptgroupHeader.displayName = "StyledOptgroupHeader";
|
|
100
|
-
StyledOptgroupHeader.displayName = 'StyledOptgroupHeader';
|
|
101
98
|
export const StyledListItemAnchor = styled('a', props => {
|
|
102
99
|
return {
|
|
103
100
|
display: 'block',
|
|
@@ -105,7 +102,6 @@ export const StyledListItemAnchor = styled('a', props => {
|
|
|
105
102
|
};
|
|
106
103
|
});
|
|
107
104
|
StyledListItemAnchor.displayName = "StyledListItemAnchor";
|
|
108
|
-
StyledListItemAnchor.displayName = 'StyledListItemAnchor';
|
|
109
105
|
export const StyledListItemElement = styled('li', props => {
|
|
110
106
|
const {
|
|
111
107
|
$disabled,
|
|
@@ -132,9 +128,7 @@ export const StyledListItemElement = styled('li', props => {
|
|
|
132
128
|
};
|
|
133
129
|
});
|
|
134
130
|
StyledListItemElement.displayName = "StyledListItemElement";
|
|
135
|
-
|
|
136
|
-
export const StyledListItem = withWrapper(StyledListItemElement, Styled => // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
137
|
-
function StyledListItem({
|
|
131
|
+
export const StyledListItem = withWrapper(StyledListItemElement, Styled => function StyledListItem({
|
|
138
132
|
item,
|
|
139
133
|
...restProps
|
|
140
134
|
}) {
|
|
@@ -159,7 +153,6 @@ export const StyledListItemProfile = styled('li', ({
|
|
|
159
153
|
}
|
|
160
154
|
}));
|
|
161
155
|
StyledListItemProfile.displayName = "StyledListItemProfile";
|
|
162
|
-
StyledListItemProfile.displayName = 'StyledListItemProfile';
|
|
163
156
|
export const StyledProfileImgContainer = styled('div', {
|
|
164
157
|
width: '60px',
|
|
165
158
|
height: '60px',
|
|
@@ -168,7 +161,6 @@ export const StyledProfileImgContainer = styled('div', {
|
|
|
168
161
|
alignItems: 'center'
|
|
169
162
|
});
|
|
170
163
|
StyledProfileImgContainer.displayName = "StyledProfileImgContainer";
|
|
171
|
-
StyledProfileImgContainer.displayName = 'StyledProfileImgContainer';
|
|
172
164
|
export const StyledProfileImg = styled('img', {
|
|
173
165
|
width: '100%',
|
|
174
166
|
height: '100%',
|
|
@@ -178,7 +170,6 @@ export const StyledProfileImg = styled('img', {
|
|
|
178
170
|
borderBottomLeftRadius: '50%'
|
|
179
171
|
});
|
|
180
172
|
StyledProfileImg.displayName = "StyledProfileImg";
|
|
181
|
-
StyledProfileImg.displayName = 'StyledProfileImg';
|
|
182
173
|
export const StyledProfileLabelsContainer = styled('div', ({
|
|
183
174
|
$theme: {
|
|
184
175
|
direction,
|
|
@@ -195,7 +186,6 @@ export const StyledProfileLabelsContainer = styled('div', ({
|
|
|
195
186
|
})
|
|
196
187
|
}));
|
|
197
188
|
StyledProfileLabelsContainer.displayName = "StyledProfileLabelsContainer";
|
|
198
|
-
StyledProfileLabelsContainer.displayName = 'StyledProfileLabelsContainer';
|
|
199
189
|
export const StyledProfileTitle = styled('h6', ({
|
|
200
190
|
$theme
|
|
201
191
|
}) => ({ ...$theme.typography.font350,
|
|
@@ -206,7 +196,6 @@ export const StyledProfileTitle = styled('h6', ({
|
|
|
206
196
|
marginRight: 0
|
|
207
197
|
}));
|
|
208
198
|
StyledProfileTitle.displayName = "StyledProfileTitle";
|
|
209
|
-
StyledProfileTitle.displayName = 'StyledProfileTitle';
|
|
210
199
|
export const StyledProfileSubtitle = styled('p', ({
|
|
211
200
|
$theme
|
|
212
201
|
}) => ({ ...$theme.typography.font200,
|
|
@@ -217,7 +206,6 @@ export const StyledProfileSubtitle = styled('p', ({
|
|
|
217
206
|
marginRight: 0
|
|
218
207
|
}));
|
|
219
208
|
StyledProfileSubtitle.displayName = "StyledProfileSubtitle";
|
|
220
|
-
StyledProfileSubtitle.displayName = 'StyledProfileSubtitle';
|
|
221
209
|
export const StyledProfileBody = styled('p', ({
|
|
222
210
|
$theme
|
|
223
211
|
}) => ({ ...$theme.typography.font100,
|
|
@@ -227,5 +215,4 @@ export const StyledProfileBody = styled('p', ({
|
|
|
227
215
|
marginLeft: 0,
|
|
228
216
|
marginRight: 0
|
|
229
217
|
}));
|
|
230
|
-
StyledProfileBody.displayName = "StyledProfileBody";
|
|
231
|
-
StyledProfileBody.displayName = 'StyledProfileBody';
|
|
218
|
+
StyledProfileBody.displayName = "StyledProfileBody";
|
package/es/modal/modal.js
CHANGED
|
@@ -10,6 +10,8 @@ LICENSE file in the root directory of this source tree.
|
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
/* global document */
|
|
13
|
+
|
|
14
|
+
/* eslint-disable cup/no-undef */
|
|
13
15
|
import * as React from 'react';
|
|
14
16
|
import FocusLock from 'react-focus-lock';
|
|
15
17
|
import { LocaleContext } from '../locale';
|
|
@@ -151,6 +153,7 @@ class Modal extends React.Component {
|
|
|
151
153
|
}
|
|
152
154
|
|
|
153
155
|
if (this.animateStartTimer) {
|
|
156
|
+
// eslint-disable-next-line cup/no-undef
|
|
154
157
|
cancelAnimationFrame(this.animateStartTimer);
|
|
155
158
|
}
|
|
156
159
|
}
|
|
@@ -166,7 +169,8 @@ class Modal extends React.Component {
|
|
|
166
169
|
|
|
167
170
|
|
|
168
171
|
this.clearTimers();
|
|
169
|
-
this.disableMountNodeScroll();
|
|
172
|
+
this.disableMountNodeScroll(); // eslint-disable-next-line cup/no-undef
|
|
173
|
+
|
|
170
174
|
this.animateStartTimer = requestAnimationFrame(() => {
|
|
171
175
|
this.setState({
|
|
172
176
|
isVisible: true
|
|
@@ -215,7 +219,6 @@ class Modal extends React.Component {
|
|
|
215
219
|
if (mountNode) {
|
|
216
220
|
return mountNode;
|
|
217
221
|
} // Flow thinks body could be null (cast through any)
|
|
218
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
219
222
|
|
|
220
223
|
|
|
221
224
|
return document.body;
|
|
@@ -258,8 +261,7 @@ class Modal extends React.Component {
|
|
|
258
261
|
}, /*#__PURE__*/React.createElement(Root, _extends({
|
|
259
262
|
"data-baseweb": "modal",
|
|
260
263
|
ref: this.rootRef
|
|
261
|
-
}, sharedProps, rootProps), /*#__PURE__*/React.createElement(DialogContainer
|
|
262
|
-
, _extends({
|
|
264
|
+
}, sharedProps, rootProps), /*#__PURE__*/React.createElement(DialogContainer, _extends({
|
|
263
265
|
ref: this.dialogContainerRef
|
|
264
266
|
}, sharedProps, dialogContainerProps), /*#__PURE__*/React.createElement(Dialog, _extends({
|
|
265
267
|
tabIndex: -1,
|
|
@@ -43,7 +43,6 @@ export const Root = styled('div', props => {
|
|
|
43
43
|
};
|
|
44
44
|
});
|
|
45
45
|
Root.displayName = "Root";
|
|
46
|
-
Root.displayName = 'Root';
|
|
47
46
|
export const DialogContainer = styled('div', props => {
|
|
48
47
|
const {
|
|
49
48
|
$animate,
|
|
@@ -72,7 +71,6 @@ export const DialogContainer = styled('div', props => {
|
|
|
72
71
|
};
|
|
73
72
|
});
|
|
74
73
|
DialogContainer.displayName = "DialogContainer";
|
|
75
|
-
DialogContainer.displayName = 'DialogContainer';
|
|
76
74
|
export const Dialog = styled('div', props => {
|
|
77
75
|
const {
|
|
78
76
|
$animate,
|
|
@@ -111,7 +109,6 @@ export const Dialog = styled('div', props => {
|
|
|
111
109
|
};
|
|
112
110
|
});
|
|
113
111
|
Dialog.displayName = "Dialog";
|
|
114
|
-
Dialog.displayName = 'Dialog';
|
|
115
112
|
export const Close = styled('button', props => {
|
|
116
113
|
const {
|
|
117
114
|
$theme,
|
|
@@ -161,7 +158,6 @@ export const Close = styled('button', props => {
|
|
|
161
158
|
};
|
|
162
159
|
});
|
|
163
160
|
Close.displayName = "Close";
|
|
164
|
-
Close.displayName = 'Close';
|
|
165
161
|
export const ModalHeader = styled('div', ({
|
|
166
162
|
$theme
|
|
167
163
|
}) => {
|
|
@@ -177,7 +173,6 @@ export const ModalHeader = styled('div', ({
|
|
|
177
173
|
};
|
|
178
174
|
});
|
|
179
175
|
ModalHeader.displayName = "ModalHeader";
|
|
180
|
-
ModalHeader.displayName = 'ModalHeader';
|
|
181
176
|
export const ModalBody = styled('div', ({
|
|
182
177
|
$theme
|
|
183
178
|
}) => ({ ...$theme.typography.font200,
|
|
@@ -188,7 +183,6 @@ export const ModalBody = styled('div', ({
|
|
|
188
183
|
marginBottom: $theme.sizing.scale700
|
|
189
184
|
}));
|
|
190
185
|
ModalBody.displayName = "ModalBody";
|
|
191
|
-
ModalBody.displayName = 'ModalBody';
|
|
192
186
|
export const ModalFooter = styled('div', ({
|
|
193
187
|
$theme
|
|
194
188
|
}) => ({ ...$theme.typography.font200,
|
|
@@ -199,5 +193,4 @@ export const ModalFooter = styled('div', ({
|
|
|
199
193
|
paddingBottom: $theme.sizing.scale500,
|
|
200
194
|
textAlign: $theme.direction === 'rtl' ? 'left' : 'right'
|
|
201
195
|
}));
|
|
202
|
-
ModalFooter.displayName = "ModalFooter";
|
|
203
|
-
ModalFooter.displayName = 'ModalFooter';
|
|
196
|
+
ModalFooter.displayName = "ModalFooter";
|
|
@@ -74,6 +74,5 @@ export default class PaginationStatefulContainer extends React.Component {
|
|
|
74
74
|
|
|
75
75
|
_defineProperty(PaginationStatefulContainer, "defaultProps", {
|
|
76
76
|
initialState,
|
|
77
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
78
77
|
stateReducer: (changeType, changes) => changes
|
|
79
78
|
});
|
|
@@ -14,7 +14,6 @@ export const StyledRoot = styled('div', ({
|
|
|
14
14
|
...$theme.typography.font350
|
|
15
15
|
}));
|
|
16
16
|
StyledRoot.displayName = "StyledRoot";
|
|
17
|
-
StyledRoot.displayName = 'StyledRoot';
|
|
18
17
|
export const StyledMaxLabel = styled('span', ({
|
|
19
18
|
$theme
|
|
20
19
|
}) => {
|
|
@@ -26,7 +25,6 @@ export const StyledMaxLabel = styled('span', ({
|
|
|
26
25
|
};
|
|
27
26
|
});
|
|
28
27
|
StyledMaxLabel.displayName = "StyledMaxLabel";
|
|
29
|
-
StyledMaxLabel.displayName = 'StyledMaxLabel';
|
|
30
28
|
export const StyledDropdownContainer = styled('div', ({
|
|
31
29
|
$theme,
|
|
32
30
|
$isFocusVisible
|
|
@@ -40,5 +38,4 @@ export const StyledDropdownContainer = styled('div', ({
|
|
|
40
38
|
[marginEndDir]: $theme.sizing.scale300
|
|
41
39
|
};
|
|
42
40
|
});
|
|
43
|
-
StyledDropdownContainer.displayName = "StyledDropdownContainer";
|
|
44
|
-
StyledDropdownContainer.displayName = 'StyledDropdownContainer';
|
|
41
|
+
StyledDropdownContainer.displayName = "StyledDropdownContainer";
|
|
@@ -27,7 +27,6 @@ CountryPicker.defaultProps = {
|
|
|
27
27
|
required: defaultProps.required
|
|
28
28
|
};
|
|
29
29
|
const DropdownListItem = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
30
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
31
30
|
const {
|
|
32
31
|
children,
|
|
33
32
|
...rest
|
|
@@ -153,8 +152,7 @@ export default function CountryPicker(props) {
|
|
|
153
152
|
const [Dialcode, dialcodeProps] = getOverrides(overrides.CountrySelectDropdownDialcodeColumn, DefaultDialcodeColumn);
|
|
154
153
|
return /*#__PURE__*/React.createElement(Select, _extends({
|
|
155
154
|
clearable: false,
|
|
156
|
-
disabled: disabled
|
|
157
|
-
,
|
|
155
|
+
disabled: disabled,
|
|
158
156
|
getOptionLabel: ({
|
|
159
157
|
option,
|
|
160
158
|
optionState
|
|
@@ -15,7 +15,6 @@ export const StyledPhoneInputRoot = styled('div', {
|
|
|
15
15
|
display: 'flex'
|
|
16
16
|
});
|
|
17
17
|
StyledPhoneInputRoot.displayName = "StyledPhoneInputRoot";
|
|
18
|
-
StyledPhoneInputRoot.displayName = 'StyledPhoneInputRoot';
|
|
19
18
|
export const StyledFlagContainer = styled('span', ({
|
|
20
19
|
$size = SIZE.default,
|
|
21
20
|
$theme: {
|
|
@@ -31,10 +30,9 @@ export const StyledFlagContainer = styled('span', ({
|
|
|
31
30
|
return {
|
|
32
31
|
fontSize: sizeToFont[$size]
|
|
33
32
|
};
|
|
34
|
-
});
|
|
35
|
-
StyledFlagContainer.displayName = "StyledFlagContainer";
|
|
36
|
-
StyledFlagContainer.displayName = 'StyledFlagContainer'; // An override component for the Select's Root styled element
|
|
33
|
+
}); // An override component for the Select's Root styled element
|
|
37
34
|
|
|
35
|
+
StyledFlagContainer.displayName = "StyledFlagContainer";
|
|
38
36
|
export const StyledRoot = withStyle(SelectStyledRoot, props => {
|
|
39
37
|
// hard coded widths for the flag dropdown anchor
|
|
40
38
|
const sizeToWidth = {
|
|
@@ -49,7 +47,6 @@ export const StyledRoot = withStyle(SelectStyledRoot, props => {
|
|
|
49
47
|
};
|
|
50
48
|
});
|
|
51
49
|
StyledRoot.displayName = "StyledRoot";
|
|
52
|
-
StyledRoot.displayName = 'StyledRoot';
|
|
53
50
|
export const StyledDialCode = styled('div', ({
|
|
54
51
|
$theme: {
|
|
55
52
|
direction,
|
|
@@ -64,13 +61,11 @@ export const StyledDialCode = styled('div', ({
|
|
|
64
61
|
};
|
|
65
62
|
});
|
|
66
63
|
StyledDialCode.displayName = "StyledDialCode";
|
|
67
|
-
StyledDialCode.displayName = 'StyledDialCode';
|
|
68
64
|
export const StyledCountrySelectContainer = styled('div', {
|
|
69
65
|
display: 'flex',
|
|
70
66
|
alignItems: 'center'
|
|
71
67
|
});
|
|
72
68
|
StyledCountrySelectContainer.displayName = "StyledCountrySelectContainer";
|
|
73
|
-
StyledCountrySelectContainer.displayName = 'StyledCountrySelectContainer';
|
|
74
69
|
export const StyledCountrySelectDropdownContainer = withStyle(StyledList, props => {
|
|
75
70
|
const {
|
|
76
71
|
$height = defaultProps.maxDropdownHeight
|
|
@@ -82,7 +77,6 @@ export const StyledCountrySelectDropdownContainer = withStyle(StyledList, props
|
|
|
82
77
|
};
|
|
83
78
|
});
|
|
84
79
|
StyledCountrySelectDropdownContainer.displayName = "StyledCountrySelectDropdownContainer";
|
|
85
|
-
StyledCountrySelectDropdownContainer.displayName = 'StyledCountrySelectDropdownContainer';
|
|
86
80
|
export const StyledCountrySelectDropdownListItemElement = withStyle(StyledDropdownListItem, {
|
|
87
81
|
paddingTop: 0,
|
|
88
82
|
paddingBottom: 0,
|
|
@@ -93,9 +87,7 @@ export const StyledCountrySelectDropdownListItemElement = withStyle(StyledDropdo
|
|
|
93
87
|
height: '42px'
|
|
94
88
|
});
|
|
95
89
|
StyledCountrySelectDropdownListItemElement.displayName = "StyledCountrySelectDropdownListItemElement";
|
|
96
|
-
|
|
97
|
-
export const StyledCountrySelectDropdownListItem = withWrapper(StyledCountrySelectDropdownListItemElement, Styled => // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
98
|
-
function StyledCountrySelectDropdownListItem({
|
|
90
|
+
export const StyledCountrySelectDropdownListItem = withWrapper(StyledCountrySelectDropdownListItemElement, Styled => function StyledCountrySelectDropdownListItem({
|
|
99
91
|
item,
|
|
100
92
|
...restProps
|
|
101
93
|
}) {
|
|
@@ -115,7 +107,6 @@ export const StyledCountrySelectDropdownFlagColumn = styled('div', ({
|
|
|
115
107
|
};
|
|
116
108
|
});
|
|
117
109
|
StyledCountrySelectDropdownFlagColumn.displayName = "StyledCountrySelectDropdownFlagColumn";
|
|
118
|
-
StyledCountrySelectDropdownFlagColumn.displayName = 'StyledCountrySelectDropdownFlagColumn';
|
|
119
110
|
export const StyledCountrySelectDropdownNameColumn = styled('div', ({
|
|
120
111
|
$theme: {
|
|
121
112
|
direction,
|
|
@@ -128,7 +119,6 @@ export const StyledCountrySelectDropdownNameColumn = styled('div', ({
|
|
|
128
119
|
};
|
|
129
120
|
});
|
|
130
121
|
StyledCountrySelectDropdownNameColumn.displayName = "StyledCountrySelectDropdownNameColumn";
|
|
131
|
-
StyledCountrySelectDropdownNameColumn.displayName = 'StyledCountrySelectDropdownNameColumn';
|
|
132
122
|
export const StyledCountrySelectDropdownDialcodeColumn = styled('div', ({
|
|
133
123
|
$theme: {
|
|
134
124
|
direction,
|
|
@@ -142,5 +132,4 @@ export const StyledCountrySelectDropdownDialcodeColumn = styled('div', ({
|
|
|
142
132
|
[marginDir]: 'auto'
|
|
143
133
|
};
|
|
144
134
|
});
|
|
145
|
-
StyledCountrySelectDropdownDialcodeColumn.displayName = "StyledCountrySelectDropdownDialcodeColumn";
|
|
146
|
-
StyledCountrySelectDropdownDialcodeColumn.displayName = 'StyledCountrySelectDropdownDialcodeColumn';
|
|
135
|
+
StyledCountrySelectDropdownDialcodeColumn.displayName = "StyledCountrySelectDropdownDialcodeColumn";
|
|
@@ -11,7 +11,6 @@ export const StyledRoot = styled('div', {
|
|
|
11
11
|
alignItems: 'center'
|
|
12
12
|
});
|
|
13
13
|
StyledRoot.displayName = "StyledRoot";
|
|
14
|
-
StyledRoot.displayName = 'StyledRoot';
|
|
15
14
|
export const StyledInputOverrideRoot = withStyle(StyledInputRoot, ({
|
|
16
15
|
$size = SIZE.default
|
|
17
16
|
}) => {
|
|
@@ -27,11 +26,9 @@ export const StyledInputOverrideRoot = withStyle(StyledInputRoot, ({
|
|
|
27
26
|
};
|
|
28
27
|
});
|
|
29
28
|
StyledInputOverrideRoot.displayName = "StyledInputOverrideRoot";
|
|
30
|
-
StyledInputOverrideRoot.displayName = 'StyledInputOverrideRoot';
|
|
31
29
|
export const StyledInputOverrideInput = withStyle(StyledInputInput, {
|
|
32
30
|
textAlign: 'center',
|
|
33
31
|
paddingLeft: '0',
|
|
34
32
|
paddingRight: '0'
|
|
35
33
|
});
|
|
36
|
-
StyledInputOverrideInput.displayName = "StyledInputOverrideInput";
|
|
37
|
-
StyledInputOverrideInput.displayName = 'StyledInputOverrideInput';
|
|
34
|
+
StyledInputOverrideInput.displayName = "StyledInputOverrideInput";
|