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
|
@@ -19,7 +19,6 @@ export const Root = styled('ul', {
|
|
|
19
19
|
width: '100%'
|
|
20
20
|
});
|
|
21
21
|
Root.displayName = "Root";
|
|
22
|
-
Root.displayName = 'Root';
|
|
23
22
|
export const PanelContainer = styled('li', props => {
|
|
24
23
|
const {
|
|
25
24
|
$expanded,
|
|
@@ -36,7 +35,6 @@ export const PanelContainer = styled('li', props => {
|
|
|
36
35
|
};
|
|
37
36
|
});
|
|
38
37
|
PanelContainer.displayName = "PanelContainer";
|
|
39
|
-
PanelContainer.displayName = 'PanelContainer';
|
|
40
38
|
export const Header = styled('div', props => {
|
|
41
39
|
const {
|
|
42
40
|
$disabled,
|
|
@@ -70,7 +68,6 @@ export const Header = styled('div', props => {
|
|
|
70
68
|
};
|
|
71
69
|
});
|
|
72
70
|
Header.displayName = "Header";
|
|
73
|
-
Header.displayName = 'Header';
|
|
74
71
|
export const ToggleIcon = styled('svg', props => {
|
|
75
72
|
const {
|
|
76
73
|
$theme,
|
|
@@ -84,7 +81,6 @@ export const ToggleIcon = styled('svg', props => {
|
|
|
84
81
|
};
|
|
85
82
|
});
|
|
86
83
|
ToggleIcon.displayName = "ToggleIcon";
|
|
87
|
-
ToggleIcon.displayName = 'ToggleIcon';
|
|
88
84
|
export const ToggleIconGroup = styled('g', props => {
|
|
89
85
|
const {
|
|
90
86
|
$theme,
|
|
@@ -99,7 +95,6 @@ export const ToggleIconGroup = styled('g', props => {
|
|
|
99
95
|
};
|
|
100
96
|
});
|
|
101
97
|
ToggleIconGroup.displayName = "ToggleIconGroup";
|
|
102
|
-
ToggleIconGroup.displayName = 'ToggleIconGroup';
|
|
103
98
|
export const Content = styled('div', props => {
|
|
104
99
|
const {
|
|
105
100
|
$theme: {
|
|
@@ -132,7 +127,6 @@ export const Content = styled('div', props => {
|
|
|
132
127
|
};
|
|
133
128
|
});
|
|
134
129
|
Content.displayName = "Content";
|
|
135
|
-
Content.displayName = 'Content';
|
|
136
130
|
export const ContentAnimationContainer = styled('div', props => {
|
|
137
131
|
const {
|
|
138
132
|
$height,
|
|
@@ -148,5 +142,4 @@ export const ContentAnimationContainer = styled('div', props => {
|
|
|
148
142
|
transitionTimingFunction: animation.easeOutQuinticCurve
|
|
149
143
|
};
|
|
150
144
|
});
|
|
151
|
-
ContentAnimationContainer.displayName = "ContentAnimationContainer";
|
|
152
|
-
ContentAnimationContainer.displayName = 'ContentAnimationContainer';
|
|
145
|
+
ContentAnimationContainer.displayName = "ContentAnimationContainer";
|
|
@@ -30,15 +30,13 @@ function MainMenuItem(props) {
|
|
|
30
30
|
if (isFocusVisible(event)) {
|
|
31
31
|
setFocusVisible(true);
|
|
32
32
|
}
|
|
33
|
-
}
|
|
34
|
-
|
|
33
|
+
}
|
|
35
34
|
|
|
36
35
|
function handleBlur(event) {
|
|
37
36
|
if (focusVisible) {
|
|
38
37
|
setFocusVisible(false);
|
|
39
38
|
}
|
|
40
|
-
}
|
|
41
|
-
|
|
39
|
+
}
|
|
42
40
|
|
|
43
41
|
function handleClick(event) {
|
|
44
42
|
if (onSelect) {
|
|
@@ -95,9 +93,7 @@ export default function AppNavBar(props) {
|
|
|
95
93
|
const {
|
|
96
94
|
title,
|
|
97
95
|
mapItemToNode = defaultMapItemToNode,
|
|
98
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
99
96
|
onMainItemSelect = item => {},
|
|
100
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
101
97
|
onUserItemSelect = item => {},
|
|
102
98
|
overrides = {},
|
|
103
99
|
userItems = [],
|
|
@@ -11,8 +11,7 @@ import { Button } from '../button';
|
|
|
11
11
|
import { Drawer, ANCHOR } from '../drawer';
|
|
12
12
|
import { getOverrides, mergeOverrides } from '../helpers/overrides';
|
|
13
13
|
import ArrowLeft from '../icon/arrow-left';
|
|
14
|
-
import MenuIcon from '../icon/menu';
|
|
15
|
-
|
|
14
|
+
import MenuIcon from '../icon/menu';
|
|
16
15
|
import { MenuAdapter, ListItemLabel, ARTWORK_SIZES } from '../list';
|
|
17
16
|
import { StatefulMenu } from '../menu';
|
|
18
17
|
import { StyledSideMenuButton, StyledUserMenuProfileListItem } from './styled-components';
|
|
@@ -20,7 +19,7 @@ import UserProfileTile from './user-profile-tile';
|
|
|
20
19
|
import { defaultMapItemToNode } from './utils';
|
|
21
20
|
const USER_TITLE_ITEM = 'USER_TITLE_ITEM';
|
|
22
21
|
const USER_MENU_ITEM = 'USER_MENU_ITEM';
|
|
23
|
-
const PARENT_MENU_ITEM = 'PARENT_MENU_ITEM'; // eslint-disable-next-line
|
|
22
|
+
const PARENT_MENU_ITEM = 'PARENT_MENU_ITEM'; // eslint-disable-next-line react/display-name
|
|
24
23
|
|
|
25
24
|
const MobileNavMenuItem = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
26
25
|
const {
|
|
@@ -92,7 +91,6 @@ export default function MobileMenu(props) {
|
|
|
92
91
|
const [MobileDrawer, drawerProps] = getOverrides(overrides.MobileDrawer, Drawer);
|
|
93
92
|
drawerProps.overrides = mergeOverrides({
|
|
94
93
|
DrawerBody: {
|
|
95
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
96
94
|
style: ({
|
|
97
95
|
$theme
|
|
98
96
|
}) => {
|
|
@@ -38,7 +38,6 @@ const StyledButton = styled('button', ({
|
|
|
38
38
|
cursor: 'pointer'
|
|
39
39
|
}));
|
|
40
40
|
StyledButton.displayName = "StyledButton";
|
|
41
|
-
StyledButton.displayName = 'StyledButton';
|
|
42
41
|
export const StyledRoot = styled('div', props => {
|
|
43
42
|
const {
|
|
44
43
|
$theme
|
|
@@ -84,10 +83,8 @@ export const StyledRoot = styled('div', props => {
|
|
|
84
83
|
return style;
|
|
85
84
|
});
|
|
86
85
|
StyledRoot.displayName = "StyledRoot";
|
|
87
|
-
StyledRoot.displayName = 'StyledRoot';
|
|
88
86
|
export const StyledSubnavContainer = styled('div', {});
|
|
89
87
|
StyledSubnavContainer.displayName = "StyledSubnavContainer";
|
|
90
|
-
StyledSubnavContainer.displayName = 'StyledSubnavContainer';
|
|
91
88
|
export const StyledSpacing = styled('div', props => {
|
|
92
89
|
const {
|
|
93
90
|
$theme
|
|
@@ -106,7 +103,6 @@ export const StyledSpacing = styled('div', props => {
|
|
|
106
103
|
};
|
|
107
104
|
});
|
|
108
105
|
StyledSpacing.displayName = "StyledSpacing";
|
|
109
|
-
StyledSpacing.displayName = 'StyledSpacing';
|
|
110
106
|
export const StyledAppName = styled('div', ({
|
|
111
107
|
$theme
|
|
112
108
|
}) => ({ ...$theme.typography.font550,
|
|
@@ -116,7 +112,6 @@ export const StyledAppName = styled('div', ({
|
|
|
116
112
|
}
|
|
117
113
|
}));
|
|
118
114
|
StyledAppName.displayName = "StyledAppName";
|
|
119
|
-
StyledAppName.displayName = 'StyledAppName';
|
|
120
115
|
export const StyledSideMenuButton = withStyle(StyledButton, ({
|
|
121
116
|
$theme
|
|
122
117
|
}) => ({ ...($theme.direction === 'rtl' ? {
|
|
@@ -130,7 +125,6 @@ export const StyledSideMenuButton = withStyle(StyledButton, ({
|
|
|
130
125
|
paddingRight: $theme.sizing.scale100
|
|
131
126
|
}));
|
|
132
127
|
StyledSideMenuButton.displayName = "StyledSideMenuButton";
|
|
133
|
-
StyledSideMenuButton.displayName = 'StyledSideMenuButton';
|
|
134
128
|
export const StyledPrimaryMenuContainer = styled('div', ({
|
|
135
129
|
$theme
|
|
136
130
|
}) => {
|
|
@@ -147,7 +141,6 @@ export const StyledPrimaryMenuContainer = styled('div', ({
|
|
|
147
141
|
};
|
|
148
142
|
});
|
|
149
143
|
StyledPrimaryMenuContainer.displayName = "StyledPrimaryMenuContainer";
|
|
150
|
-
StyledPrimaryMenuContainer.displayName = 'StyledPrimaryMenuContainer';
|
|
151
144
|
export const StyledMainMenuItem = styled('div', props => {
|
|
152
145
|
const {
|
|
153
146
|
$active,
|
|
@@ -193,7 +186,6 @@ export const StyledMainMenuItem = styled('div', props => {
|
|
|
193
186
|
};
|
|
194
187
|
});
|
|
195
188
|
StyledMainMenuItem.displayName = "StyledMainMenuItem";
|
|
196
|
-
StyledMainMenuItem.displayName = 'StyledMainMenuItem';
|
|
197
189
|
export const StyledSecondaryMenuContainer = styled('div', ({
|
|
198
190
|
$theme
|
|
199
191
|
}) => {
|
|
@@ -211,9 +203,7 @@ export const StyledSecondaryMenuContainer = styled('div', ({
|
|
|
211
203
|
};
|
|
212
204
|
});
|
|
213
205
|
StyledSecondaryMenuContainer.displayName = "StyledSecondaryMenuContainer";
|
|
214
|
-
StyledSecondaryMenuContainer.displayName = 'StyledSecondaryMenuContainer';
|
|
215
206
|
export const StyledUserMenuButton = StyledButton;
|
|
216
|
-
StyledUserMenuButton.displayName = 'StyledUserMenuButton';
|
|
217
207
|
export const StyledUserMenuProfileListItem = withStyle(StyledListItem, ({
|
|
218
208
|
$theme
|
|
219
209
|
}) => ({
|
|
@@ -226,7 +216,6 @@ export const StyledUserMenuProfileListItem = withStyle(StyledListItem, ({
|
|
|
226
216
|
})
|
|
227
217
|
}));
|
|
228
218
|
StyledUserMenuProfileListItem.displayName = "StyledUserMenuProfileListItem";
|
|
229
|
-
StyledUserMenuProfileListItem.displayName = 'StyledUserMenuProfileListItem';
|
|
230
219
|
export const StyledUserProfileTileContainer = styled('div', ({
|
|
231
220
|
$theme
|
|
232
221
|
}) => {
|
|
@@ -242,7 +231,6 @@ export const StyledUserProfileTileContainer = styled('div', ({
|
|
|
242
231
|
};
|
|
243
232
|
});
|
|
244
233
|
StyledUserProfileTileContainer.displayName = "StyledUserProfileTileContainer";
|
|
245
|
-
StyledUserProfileTileContainer.displayName = 'StyledUserProfileTileContainer';
|
|
246
234
|
export const StyledUserProfilePictureContainer = styled('div', ({
|
|
247
235
|
$theme
|
|
248
236
|
}) => {
|
|
@@ -254,8 +242,6 @@ export const StyledUserProfilePictureContainer = styled('div', ({
|
|
|
254
242
|
};
|
|
255
243
|
});
|
|
256
244
|
StyledUserProfilePictureContainer.displayName = "StyledUserProfilePictureContainer";
|
|
257
|
-
StyledUserProfilePictureContainer.displayName = 'StyledUserProfilePictureContainer'; // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
258
|
-
|
|
259
245
|
export const StyledUserProfileInfoContainer = styled('div', ({
|
|
260
246
|
$theme
|
|
261
247
|
}) => {
|
|
@@ -265,15 +251,12 @@ export const StyledUserProfileInfoContainer = styled('div', ({
|
|
|
265
251
|
};
|
|
266
252
|
});
|
|
267
253
|
StyledUserProfileInfoContainer.displayName = "StyledUserProfileInfoContainer";
|
|
268
|
-
StyledUserProfileInfoContainer.displayName = 'StyledUserProfileInfoContainer'; // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
269
|
-
|
|
270
254
|
export const StyledDesktopMenuContainer = styled('div', ({
|
|
271
255
|
$theme
|
|
272
256
|
}) => {
|
|
273
257
|
return {};
|
|
274
258
|
});
|
|
275
259
|
StyledDesktopMenuContainer.displayName = "StyledDesktopMenuContainer";
|
|
276
|
-
StyledDesktopMenuContainer.displayName = 'StyledDesktopMenuContainer';
|
|
277
260
|
export const StyledDesktopMenu = styled('div', ({
|
|
278
261
|
$theme
|
|
279
262
|
}) => {
|
|
@@ -287,5 +270,4 @@ export const StyledDesktopMenu = styled('div', ({
|
|
|
287
270
|
paddingBlockEnd: '18px'
|
|
288
271
|
};
|
|
289
272
|
});
|
|
290
|
-
StyledDesktopMenu.displayName = "StyledDesktopMenu";
|
|
291
|
-
StyledDesktopMenu.displayName = 'StyledDesktopMenu';
|
|
273
|
+
StyledDesktopMenu.displayName = "StyledDesktopMenu";
|
|
@@ -18,7 +18,7 @@ import { StatefulPopover, PLACEMENT, TRIGGER_TYPE } from '../popover';
|
|
|
18
18
|
import { StyledUserMenuButton, StyledUserMenuProfileListItem } from './styled-components';
|
|
19
19
|
import UserProfileTile from './user-profile-tile';
|
|
20
20
|
import { defaultMapItemToNode } from './utils';
|
|
21
|
-
const MENU_ITEM_WIDTH = '275px'; // eslint-disable-next-line
|
|
21
|
+
const MENU_ITEM_WIDTH = '275px'; // eslint-disable-next-line react/display-name
|
|
22
22
|
|
|
23
23
|
const UserMenuListItem = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
24
24
|
const {
|
|
@@ -28,8 +28,7 @@ const aspectRatioBoxStyle = ({
|
|
|
28
28
|
display: 'table',
|
|
29
29
|
clear: 'both'
|
|
30
30
|
}
|
|
31
|
-
});
|
|
32
|
-
|
|
31
|
+
});
|
|
33
32
|
|
|
34
33
|
const AspectRatioBox = ({
|
|
35
34
|
forwardedRef,
|
|
@@ -45,7 +44,6 @@ const AspectRatioBox = ({
|
|
|
45
44
|
const blockOverrides = mergeOverrides(aspectRatioBoxOverrides, overrides);
|
|
46
45
|
return /*#__PURE__*/React.createElement(Block // coerced to any because of how react components are typed.
|
|
47
46
|
// cannot guarantee an html element
|
|
48
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
49
47
|
, _extends({
|
|
50
48
|
ref: forwardedRef,
|
|
51
49
|
overrides: blockOverrides,
|
|
@@ -31,7 +31,6 @@ export const Avatar = styled('img', props => {
|
|
|
31
31
|
};
|
|
32
32
|
});
|
|
33
33
|
Avatar.displayName = "Avatar";
|
|
34
|
-
Avatar.displayName = 'Avatar';
|
|
35
34
|
export const Initials = styled('div', props => ({ ...props.$theme.typography.font300,
|
|
36
35
|
color: props.$theme.colors.mono100,
|
|
37
36
|
alignItems: 'center',
|
|
@@ -40,7 +39,6 @@ export const Initials = styled('div', props => ({ ...props.$theme.typography.fon
|
|
|
40
39
|
height: '100%'
|
|
41
40
|
}));
|
|
42
41
|
Initials.displayName = "Initials";
|
|
43
|
-
Initials.displayName = 'Initials';
|
|
44
42
|
export const Root = styled('div', props => {
|
|
45
43
|
const {
|
|
46
44
|
$didImageFailToLoad
|
|
@@ -60,5 +58,4 @@ export const Root = styled('div', props => {
|
|
|
60
58
|
width: $didImageFailToLoad ? themedSize : null
|
|
61
59
|
};
|
|
62
60
|
});
|
|
63
|
-
Root.displayName = "Root";
|
|
64
|
-
Root.displayName = 'Root';
|
|
61
|
+
Root.displayName = "Root";
|
|
@@ -4,7 +4,7 @@ Copyright (c) Uber Technologies, Inc.
|
|
|
4
4
|
This source code is licensed under the MIT license found in the
|
|
5
5
|
LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
import { styled } from '../styles';
|
|
7
|
+
import { styled } from '../styles/index';
|
|
8
8
|
import { COLOR, SHAPE, ROLE, PLACEMENT, HIERARCHY } from './constants';
|
|
9
9
|
|
|
10
10
|
function getColorStyles({
|
|
@@ -179,7 +179,6 @@ export const StyledRoot = styled('div', () => {
|
|
|
179
179
|
};
|
|
180
180
|
});
|
|
181
181
|
StyledRoot.displayName = "StyledRoot";
|
|
182
|
-
StyledRoot.displayName = 'StyledRoot';
|
|
183
182
|
const TOP_PLACEMENTS = [PLACEMENT.topLeft, PLACEMENT.topRight, PLACEMENT.topLeftEdge, PLACEMENT.topEdge, PLACEMENT.topRightEdge, PLACEMENT.leftTopEdge, PLACEMENT.rightTopEdge];
|
|
184
183
|
const BOTTOM_PLACEMENTS = [PLACEMENT.bottomLeft, PLACEMENT.bottomRight, PLACEMENT.bottomLeftEdge, PLACEMENT.bottomEdge, PLACEMENT.bottomRightEdge, PLACEMENT.leftBottomEdge, PLACEMENT.rightBottomEdge];
|
|
185
184
|
const LEFT_PLACEMENTS = [PLACEMENT.topLeft, PLACEMENT.topLeftEdge, PLACEMENT.topEdge, PLACEMENT.bottomLeft, PLACEMENT.bottomLeftEdge, PLACEMENT.bottomEdge, PLACEMENT.leftTopEdge, PLACEMENT.leftBottomEdge];
|
|
@@ -227,7 +226,6 @@ export const StyledPositioner = styled('div', ({
|
|
|
227
226
|
};
|
|
228
227
|
});
|
|
229
228
|
StyledPositioner.displayName = "StyledPositioner";
|
|
230
|
-
StyledPositioner.displayName = 'StyledPositioner';
|
|
231
229
|
export const StyledBadge = styled('div', ({
|
|
232
230
|
$theme,
|
|
233
231
|
$shape = SHAPE.rectangle,
|
|
@@ -253,7 +251,6 @@ export const StyledBadge = styled('div', ({
|
|
|
253
251
|
};
|
|
254
252
|
});
|
|
255
253
|
StyledBadge.displayName = "StyledBadge";
|
|
256
|
-
StyledBadge.displayName = 'StyledBadge';
|
|
257
254
|
export const StyledNotificationCircle = styled('div', ({
|
|
258
255
|
$theme,
|
|
259
256
|
$color = COLOR.accent,
|
|
@@ -276,7 +273,6 @@ export const StyledNotificationCircle = styled('div', ({
|
|
|
276
273
|
};
|
|
277
274
|
});
|
|
278
275
|
StyledNotificationCircle.displayName = "StyledNotificationCircle";
|
|
279
|
-
StyledNotificationCircle.displayName = 'StyledNotificationCircle';
|
|
280
276
|
export const StyledHintDot = styled('div', ({
|
|
281
277
|
$theme,
|
|
282
278
|
$color = COLOR.accent,
|
|
@@ -297,5 +293,4 @@ export const StyledHintDot = styled('div', ({
|
|
|
297
293
|
})
|
|
298
294
|
};
|
|
299
295
|
});
|
|
300
|
-
StyledHintDot.displayName = "StyledHintDot";
|
|
301
|
-
StyledHintDot.displayName = 'StyledHintDot';
|
|
296
|
+
StyledHintDot.displayName = "StyledHintDot";
|
|
@@ -4,7 +4,7 @@ Copyright (c) Uber Technologies, Inc.
|
|
|
4
4
|
This source code is licensed under the MIT license found in the
|
|
5
5
|
LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
import { styled } from '../styles';
|
|
7
|
+
import { styled } from '../styles/index';
|
|
8
8
|
import { ACTION_POSITION } from './constants';
|
|
9
9
|
export const StyledRoot = styled('div', ({
|
|
10
10
|
$theme,
|
|
@@ -28,7 +28,6 @@ export const StyledRoot = styled('div', ({
|
|
|
28
28
|
};
|
|
29
29
|
});
|
|
30
30
|
StyledRoot.displayName = "StyledRoot";
|
|
31
|
-
StyledRoot.displayName = 'StyledRoot';
|
|
32
31
|
export const StyledLeadingContent = styled('div', ({
|
|
33
32
|
$theme,
|
|
34
33
|
$includesArtwork
|
|
@@ -40,7 +39,6 @@ export const StyledLeadingContent = styled('div', ({
|
|
|
40
39
|
};
|
|
41
40
|
});
|
|
42
41
|
StyledLeadingContent.displayName = "StyledLeadingContent";
|
|
43
|
-
StyledLeadingContent.displayName = 'StyledLeadingContent';
|
|
44
42
|
export const StyledMessageContent = styled('div', ({
|
|
45
43
|
$theme,
|
|
46
44
|
$actionPosition
|
|
@@ -54,8 +52,6 @@ export const StyledMessageContent = styled('div', ({
|
|
|
54
52
|
};
|
|
55
53
|
});
|
|
56
54
|
StyledMessageContent.displayName = "StyledMessageContent";
|
|
57
|
-
StyledMessageContent.displayName = 'StyledMessageContent'; // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
58
|
-
|
|
59
55
|
export const StyledTrailingContent = styled('div', ({
|
|
60
56
|
$theme
|
|
61
57
|
}) => {
|
|
@@ -66,7 +62,6 @@ export const StyledTrailingContent = styled('div', ({
|
|
|
66
62
|
};
|
|
67
63
|
});
|
|
68
64
|
StyledTrailingContent.displayName = "StyledTrailingContent";
|
|
69
|
-
StyledTrailingContent.displayName = 'StyledTrailingContent';
|
|
70
65
|
export const StyledBelowContent = styled('div', ({
|
|
71
66
|
$theme,
|
|
72
67
|
$actionPosition
|
|
@@ -78,21 +73,18 @@ export const StyledBelowContent = styled('div', ({
|
|
|
78
73
|
};
|
|
79
74
|
});
|
|
80
75
|
StyledBelowContent.displayName = "StyledBelowContent";
|
|
81
|
-
StyledBelowContent.displayName = 'StyledBelowContent';
|
|
82
76
|
export const StyledTitle = styled('div', ({
|
|
83
77
|
$theme
|
|
84
78
|
}) => {
|
|
85
79
|
return $theme.typography.LabelMedium;
|
|
86
80
|
});
|
|
87
81
|
StyledTitle.displayName = "StyledTitle";
|
|
88
|
-
StyledTitle.displayName = 'StyledTitle';
|
|
89
82
|
export const StyledMessage = styled('div', ({
|
|
90
83
|
$theme
|
|
91
84
|
}) => {
|
|
92
85
|
return $theme.typography.ParagraphMedium;
|
|
93
86
|
});
|
|
94
87
|
StyledMessage.displayName = "StyledMessage";
|
|
95
|
-
StyledMessage.displayName = 'StyledMessage';
|
|
96
88
|
export const StyledTrailingButtonContainer = styled('div', ({
|
|
97
89
|
$theme
|
|
98
90
|
}) => {
|
|
@@ -103,7 +95,6 @@ export const StyledTrailingButtonContainer = styled('div', ({
|
|
|
103
95
|
};
|
|
104
96
|
});
|
|
105
97
|
StyledTrailingButtonContainer.displayName = "StyledTrailingButtonContainer";
|
|
106
|
-
StyledTrailingButtonContainer.displayName = 'StyledTrailingButtonContainer';
|
|
107
98
|
export const StyledTrailingIconButton = styled('button', ({
|
|
108
99
|
$theme,
|
|
109
100
|
$nested
|
|
@@ -128,5 +119,4 @@ export const StyledTrailingIconButton = styled('button', ({
|
|
|
128
119
|
}
|
|
129
120
|
};
|
|
130
121
|
});
|
|
131
|
-
StyledTrailingIconButton.displayName = "StyledTrailingIconButton";
|
|
132
|
-
StyledTrailingIconButton.displayName = 'StyledTrailingIconButton';
|
|
122
|
+
StyledTrailingIconButton.displayName = "StyledTrailingIconButton";
|
package/es/block/block.js
CHANGED
|
@@ -85,7 +85,6 @@ const Block = ({
|
|
|
85
85
|
const [BaseBlock, baseBlockProps] = getOverrides(overrides.Block, StyledBlock);
|
|
86
86
|
return /*#__PURE__*/React.createElement(BaseBlock // coerced to any because because of how react components are typed.
|
|
87
87
|
// cannot guarantee an html element
|
|
88
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
89
88
|
, _extends({
|
|
90
89
|
ref: forwardedRef,
|
|
91
90
|
$as: as,
|
|
@@ -156,8 +155,7 @@ const Block = ({
|
|
|
156
155
|
$whiteSpace: whiteSpace,
|
|
157
156
|
"data-baseweb": "block"
|
|
158
157
|
}, restProps, baseBlockProps), children);
|
|
159
|
-
};
|
|
160
|
-
|
|
158
|
+
};
|
|
161
159
|
|
|
162
160
|
const BlockComponent = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(Block, _extends({}, props, {
|
|
163
161
|
forwardedRef: ref
|
|
@@ -14,7 +14,6 @@ export const StyledRoot = styled('nav', ({
|
|
|
14
14
|
};
|
|
15
15
|
});
|
|
16
16
|
StyledRoot.displayName = "StyledRoot";
|
|
17
|
-
StyledRoot.displayName = 'StyledRoot';
|
|
18
17
|
export const StyledList = styled('ol', ({
|
|
19
18
|
$theme
|
|
20
19
|
}) => {
|
|
@@ -26,7 +25,6 @@ export const StyledList = styled('ol', ({
|
|
|
26
25
|
};
|
|
27
26
|
});
|
|
28
27
|
StyledList.displayName = "StyledList";
|
|
29
|
-
StyledList.displayName = 'StyledList';
|
|
30
28
|
export const StyledListItem = styled('li', ({
|
|
31
29
|
$theme
|
|
32
30
|
}) => {
|
|
@@ -36,7 +34,6 @@ export const StyledListItem = styled('li', ({
|
|
|
36
34
|
};
|
|
37
35
|
});
|
|
38
36
|
StyledListItem.displayName = "StyledListItem";
|
|
39
|
-
StyledListItem.displayName = 'StyledListItem';
|
|
40
37
|
export const StyledSeparator = styled('div', ({
|
|
41
38
|
$theme
|
|
42
39
|
}) => {
|
|
@@ -48,5 +45,4 @@ export const StyledSeparator = styled('div', ({
|
|
|
48
45
|
verticalAlign: 'middle'
|
|
49
46
|
};
|
|
50
47
|
});
|
|
51
|
-
StyledSeparator.displayName = "StyledSeparator";
|
|
52
|
-
StyledSeparator.displayName = 'StyledSeparator';
|
|
48
|
+
StyledSeparator.displayName = "StyledSeparator";
|
package/es/button/button.js
CHANGED
|
@@ -59,24 +59,16 @@ class Button extends React.Component {
|
|
|
59
59
|
render() {
|
|
60
60
|
const {
|
|
61
61
|
overrides = {},
|
|
62
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
63
62
|
size,
|
|
64
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
65
63
|
kind,
|
|
66
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
67
64
|
shape,
|
|
68
65
|
isLoading,
|
|
69
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
70
66
|
isSelected,
|
|
71
67
|
// Removing from restProps
|
|
72
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
73
68
|
startEnhancer,
|
|
74
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
75
69
|
endEnhancer,
|
|
76
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
77
70
|
children,
|
|
78
71
|
forwardedRef,
|
|
79
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
80
72
|
colors,
|
|
81
73
|
...restProps
|
|
82
74
|
} = this.props; // Get overrides
|
|
@@ -79,7 +79,6 @@ export const BaseButton = styled('button', ({
|
|
|
79
79
|
})
|
|
80
80
|
}));
|
|
81
81
|
BaseButton.displayName = "BaseButton";
|
|
82
|
-
BaseButton.displayName = 'BaseButton';
|
|
83
82
|
export const EndEnhancer = styled('div', ({
|
|
84
83
|
$theme
|
|
85
84
|
}) => {
|
|
@@ -90,7 +89,6 @@ export const EndEnhancer = styled('div', ({
|
|
|
90
89
|
};
|
|
91
90
|
});
|
|
92
91
|
EndEnhancer.displayName = "EndEnhancer";
|
|
93
|
-
EndEnhancer.displayName = 'EndEnhancer';
|
|
94
92
|
export const StartEnhancer = styled('div', ({
|
|
95
93
|
$theme
|
|
96
94
|
}) => {
|
|
@@ -101,7 +99,6 @@ export const StartEnhancer = styled('div', ({
|
|
|
101
99
|
};
|
|
102
100
|
});
|
|
103
101
|
StartEnhancer.displayName = "StartEnhancer";
|
|
104
|
-
StartEnhancer.displayName = 'StartEnhancer';
|
|
105
102
|
export const LoadingSpinnerContainer = styled('div', ({
|
|
106
103
|
$theme,
|
|
107
104
|
$size
|
|
@@ -125,7 +122,6 @@ export const LoadingSpinnerContainer = styled('div', ({
|
|
|
125
122
|
};
|
|
126
123
|
});
|
|
127
124
|
LoadingSpinnerContainer.displayName = "LoadingSpinnerContainer";
|
|
128
|
-
LoadingSpinnerContainer.displayName = 'LoadingSpinnerContainer';
|
|
129
125
|
export const LoadingSpinner = styled('span', ({
|
|
130
126
|
$theme,
|
|
131
127
|
$kind,
|
|
@@ -185,7 +181,6 @@ export const LoadingSpinner = styled('span', ({
|
|
|
185
181
|
};
|
|
186
182
|
});
|
|
187
183
|
LoadingSpinner.displayName = "LoadingSpinner";
|
|
188
|
-
LoadingSpinner.displayName = 'LoadingSpinner';
|
|
189
184
|
|
|
190
185
|
function getLoadingSpinnerColors({
|
|
191
186
|
$theme,
|
|
@@ -10,7 +10,6 @@ import * as React from 'react';
|
|
|
10
10
|
import ButtonGroup from './button-group';
|
|
11
11
|
import StatefulContainer from './stateful-container';
|
|
12
12
|
export default function StatefulButtonGroup(props) {
|
|
13
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
14
13
|
const {
|
|
15
14
|
children,
|
|
16
15
|
initialState,
|
|
@@ -14,8 +14,7 @@ function isSelectedDefined(selected) {
|
|
|
14
14
|
return Array.isArray(selected) || typeof selected === 'number';
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
function defaultStateReducer(type, nextState,
|
|
18
|
-
currentState) {
|
|
17
|
+
function defaultStateReducer(type, nextState, currentState) {
|
|
19
18
|
return nextState;
|
|
20
19
|
}
|
|
21
20
|
|
|
@@ -73,7 +72,6 @@ export default class StatefulContainer extends React.Component {
|
|
|
73
72
|
}
|
|
74
73
|
|
|
75
74
|
render() {
|
|
76
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
77
75
|
const {
|
|
78
76
|
initialState,
|
|
79
77
|
stateReducer,
|
package/es/card/index.js
CHANGED
|
@@ -7,5 +7,4 @@ LICENSE file in the root directory of this source tree.
|
|
|
7
7
|
export { default as Card, hasThumbnail } from './card';
|
|
8
8
|
export { Action as StyledAction, Body as StyledBody, Contents as StyledContents, HeaderImage as StyledHeaderImage, Thumbnail as StyledThumbnail, Title as StyledTitle, Root as StyledRoot, Root as StyledWrapper } from './styled-components';
|
|
9
9
|
export * from './types';
|
|
10
|
-
/** @deprecated To be removed in future versions */
|
|
11
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10
|
+
/** @deprecated To be removed in future versions */
|
|
@@ -4,14 +4,12 @@ Copyright (c) Uber Technologies, Inc.
|
|
|
4
4
|
This source code is licensed under the MIT license found in the
|
|
5
5
|
LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
import { styled, expandBorderStyles } from '../styles';
|
|
8
|
-
|
|
7
|
+
import { styled, expandBorderStyles } from '../styles';
|
|
9
8
|
export const Action = styled('div', ({
|
|
10
9
|
$theme
|
|
11
10
|
}) => ({ ...$theme.typography.LabelMedium
|
|
12
11
|
}));
|
|
13
12
|
Action.displayName = "Action";
|
|
14
|
-
Action.displayName = 'Action';
|
|
15
13
|
export const Body = styled('div', ({
|
|
16
14
|
$theme
|
|
17
15
|
}) => ({
|
|
@@ -20,7 +18,6 @@ export const Body = styled('div', ({
|
|
|
20
18
|
...$theme.typography.ParagraphMedium
|
|
21
19
|
}));
|
|
22
20
|
Body.displayName = "Body";
|
|
23
|
-
Body.displayName = 'Body';
|
|
24
21
|
export const Contents = styled('div', ({
|
|
25
22
|
$theme
|
|
26
23
|
}) => ({
|
|
@@ -30,7 +27,6 @@ export const Contents = styled('div', ({
|
|
|
30
27
|
marginBottom: $theme.sizing.scale600
|
|
31
28
|
}));
|
|
32
29
|
Contents.displayName = "Contents";
|
|
33
|
-
Contents.displayName = 'Contents';
|
|
34
30
|
export const HeaderImage = styled('img', ({
|
|
35
31
|
$theme
|
|
36
32
|
}) => ({
|
|
@@ -38,11 +34,10 @@ export const HeaderImage = styled('img', ({
|
|
|
38
34
|
borderTopRightRadius: $theme.borders.surfaceBorderRadius,
|
|
39
35
|
objectFit: 'contain',
|
|
40
36
|
maxWidth: '100%'
|
|
41
|
-
}));
|
|
42
|
-
HeaderImage.displayName = "HeaderImage";
|
|
43
|
-
HeaderImage.displayName = 'HeaderImage'; // by using the section tag, we can keep the h1 for the title
|
|
37
|
+
})); // by using the section tag, we can keep the h1 for the title
|
|
44
38
|
// https://html.spec.whatwg.org/multipage/sections.html#headings-and-sections
|
|
45
39
|
|
|
40
|
+
HeaderImage.displayName = "HeaderImage";
|
|
46
41
|
export const Root = styled('section', ({
|
|
47
42
|
$theme
|
|
48
43
|
}) => ({
|
|
@@ -66,7 +61,6 @@ export const Root = styled('section', ({
|
|
|
66
61
|
overflow: 'hidden'
|
|
67
62
|
}));
|
|
68
63
|
Root.displayName = "Root";
|
|
69
|
-
Root.displayName = 'Root';
|
|
70
64
|
export const Thumbnail = styled('img', ({
|
|
71
65
|
$theme
|
|
72
66
|
}) => ({
|
|
@@ -82,7 +76,6 @@ export const Thumbnail = styled('img', ({
|
|
|
82
76
|
margin: `0 0 ${$theme.sizing.scale500} ${$theme.sizing.scale500}`
|
|
83
77
|
}));
|
|
84
78
|
Thumbnail.displayName = "Thumbnail";
|
|
85
|
-
Thumbnail.displayName = 'Thumbnail';
|
|
86
79
|
export const Title = styled('h1', ({
|
|
87
80
|
$theme
|
|
88
81
|
}) => ({ ...$theme.typography.HeadingSmall,
|
|
@@ -96,5 +89,4 @@ export const Title = styled('h1', ({
|
|
|
96
89
|
paddingRight: 0,
|
|
97
90
|
paddingBottom: 0
|
|
98
91
|
}));
|
|
99
|
-
Title.displayName = "Title";
|
|
100
|
-
Title.displayName = 'Title';
|
|
92
|
+
Title.displayName = "Title";
|
package/es/checkbox/index.js
CHANGED
|
@@ -4,7 +4,6 @@ Copyright (c) Uber Technologies, Inc.
|
|
|
4
4
|
This source code is licensed under the MIT license found in the
|
|
5
5
|
LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
8
7
|
export { default as StatefulCheckbox } from './stateful-checkbox';
|
|
9
8
|
export { default as StatefulContainer } from './stateful-checkbox-container';
|
|
10
9
|
export { default as Checkbox } from './checkbox'; // Styled elements
|
|
@@ -78,11 +78,8 @@ class StatefulCheckboxContainer extends React.Component {
|
|
|
78
78
|
|
|
79
79
|
render() {
|
|
80
80
|
const {
|
|
81
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
82
81
|
children = childProps => null,
|
|
83
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
84
82
|
initialState,
|
|
85
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
86
83
|
stateReducer,
|
|
87
84
|
...restProps
|
|
88
85
|
} = this.props;
|