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
|
@@ -41,8 +41,6 @@ export const StyledRoot = styled('div', ({
|
|
|
41
41
|
};
|
|
42
42
|
});
|
|
43
43
|
StyledRoot.displayName = "StyledRoot";
|
|
44
|
-
StyledRoot.displayName = 'StyledRoot';
|
|
45
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
46
44
|
export const StyledTable = styled('table', ({
|
|
47
45
|
$theme,
|
|
48
46
|
$width
|
|
@@ -55,23 +53,18 @@ export const StyledTable = styled('table', ({
|
|
|
55
53
|
};
|
|
56
54
|
});
|
|
57
55
|
StyledTable.displayName = "StyledTable";
|
|
58
|
-
StyledTable.displayName = 'StyledTable'; // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
59
|
-
|
|
60
56
|
export const StyledTableHead = styled('thead', ({
|
|
61
57
|
$theme
|
|
62
58
|
}) => {
|
|
63
59
|
return {};
|
|
64
60
|
});
|
|
65
61
|
StyledTableHead.displayName = "StyledTableHead";
|
|
66
|
-
StyledTableHead.displayName = 'StyledTableHead'; // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
67
|
-
|
|
68
62
|
export const StyledTableHeadRow = styled('tr', ({
|
|
69
63
|
$theme
|
|
70
64
|
}) => {
|
|
71
65
|
return {};
|
|
72
66
|
});
|
|
73
67
|
StyledTableHeadRow.displayName = "StyledTableHeadRow";
|
|
74
|
-
StyledTableHeadRow.displayName = 'StyledTableHeadRow';
|
|
75
68
|
export const StyledTableHeadCell = styled('th', ({
|
|
76
69
|
$theme,
|
|
77
70
|
$size,
|
|
@@ -107,7 +100,6 @@ export const StyledTableHeadCell = styled('th', ({
|
|
|
107
100
|
};
|
|
108
101
|
});
|
|
109
102
|
StyledTableHeadCell.displayName = "StyledTableHeadCell";
|
|
110
|
-
StyledTableHeadCell.displayName = 'StyledTableHeadCell';
|
|
111
103
|
export const StyledTableHeadCellSortable = withStyle(StyledTableHeadCell, ({
|
|
112
104
|
$theme,
|
|
113
105
|
$isFocusVisible
|
|
@@ -126,7 +118,6 @@ export const StyledTableHeadCellSortable = withStyle(StyledTableHeadCell, ({
|
|
|
126
118
|
};
|
|
127
119
|
});
|
|
128
120
|
StyledTableHeadCellSortable.displayName = "StyledTableHeadCellSortable";
|
|
129
|
-
StyledTableHeadCellSortable.displayName = 'StyledTableHeadCellSortable';
|
|
130
121
|
export const StyledSortIconContainer = styled('span', ({
|
|
131
122
|
$theme
|
|
132
123
|
}) => {
|
|
@@ -138,10 +129,9 @@ export const StyledSortIconContainer = styled('span', ({
|
|
|
138
129
|
right: $theme.sizing.scale500,
|
|
139
130
|
transform: 'translateY(-50%)'
|
|
140
131
|
};
|
|
141
|
-
});
|
|
142
|
-
StyledSortIconContainer.displayName = "StyledSortIconContainer";
|
|
143
|
-
StyledSortIconContainer.displayName = 'StyledSortIconContainer'; // No longer used, but will maintain for some time to support existing usage
|
|
132
|
+
}); // No longer used, but will maintain for some time to support existing usage
|
|
144
133
|
|
|
134
|
+
StyledSortIconContainer.displayName = "StyledSortIconContainer";
|
|
145
135
|
export const StyledSortAscIcon = styled(ChevronUp, ({
|
|
146
136
|
$theme
|
|
147
137
|
}) => {
|
|
@@ -153,7 +143,6 @@ export const StyledSortAscIcon = styled(ChevronUp, ({
|
|
|
153
143
|
};
|
|
154
144
|
});
|
|
155
145
|
StyledSortAscIcon.displayName = "StyledSortAscIcon";
|
|
156
|
-
StyledSortAscIcon.displayName = 'StyledSortAscIcon';
|
|
157
146
|
export const StyledSortDescIcon = styled(ChevronDown, ({
|
|
158
147
|
$theme
|
|
159
148
|
}) => {
|
|
@@ -165,7 +154,6 @@ export const StyledSortDescIcon = styled(ChevronDown, ({
|
|
|
165
154
|
};
|
|
166
155
|
});
|
|
167
156
|
StyledSortDescIcon.displayName = "StyledSortDescIcon";
|
|
168
|
-
StyledSortDescIcon.displayName = 'StyledSortDescIcon';
|
|
169
157
|
export const StyledSortNoneIcon = styled(Blank, ({
|
|
170
158
|
$theme
|
|
171
159
|
}) => {
|
|
@@ -177,15 +165,12 @@ export const StyledSortNoneIcon = styled(Blank, ({
|
|
|
177
165
|
};
|
|
178
166
|
});
|
|
179
167
|
StyledSortNoneIcon.displayName = "StyledSortNoneIcon";
|
|
180
|
-
StyledSortNoneIcon.displayName = 'StyledSortNoneIcon'; // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
181
|
-
|
|
182
168
|
export const StyledTableBody = styled('tbody', ({
|
|
183
169
|
$theme
|
|
184
170
|
}) => {
|
|
185
171
|
return {};
|
|
186
172
|
});
|
|
187
173
|
StyledTableBody.displayName = "StyledTableBody";
|
|
188
|
-
StyledTableBody.displayName = 'StyledTableBody';
|
|
189
174
|
export const StyledTableBodyRow = styled('tr', ({
|
|
190
175
|
$theme
|
|
191
176
|
}) => {
|
|
@@ -196,7 +181,6 @@ export const StyledTableBodyRow = styled('tr', ({
|
|
|
196
181
|
};
|
|
197
182
|
});
|
|
198
183
|
StyledTableBodyRow.displayName = "StyledTableBodyRow";
|
|
199
|
-
StyledTableBodyRow.displayName = 'StyledTableBodyRow';
|
|
200
184
|
export const StyledTableBodyCell = styled('td', ({
|
|
201
185
|
$theme,
|
|
202
186
|
$size,
|
|
@@ -228,7 +212,6 @@ export const StyledTableBodyCell = styled('td', ({
|
|
|
228
212
|
};
|
|
229
213
|
});
|
|
230
214
|
StyledTableBodyCell.displayName = "StyledTableBodyCell";
|
|
231
|
-
StyledTableBodyCell.displayName = 'StyledTableBodyCell';
|
|
232
215
|
export const StyledTableLoadingMessage = styled('div', ({
|
|
233
216
|
$theme
|
|
234
217
|
}) => {
|
|
@@ -238,5 +221,4 @@ export const StyledTableLoadingMessage = styled('div', ({
|
|
|
238
221
|
};
|
|
239
222
|
});
|
|
240
223
|
StyledTableLoadingMessage.displayName = "StyledTableLoadingMessage";
|
|
241
|
-
StyledTableLoadingMessage.displayName = 'StyledTableLoadingMessage';
|
|
242
224
|
export const StyledTableEmptyMessage = StyledTableLoadingMessage;
|
package/es/tabs/stateful-tabs.js
CHANGED
|
@@ -16,7 +16,6 @@ export const Root = styled('div', props => {
|
|
|
16
16
|
};
|
|
17
17
|
});
|
|
18
18
|
Root.displayName = "Root";
|
|
19
|
-
Root.displayName = 'Root';
|
|
20
19
|
export const Tab = styled('div', props => {
|
|
21
20
|
const {
|
|
22
21
|
$disabled,
|
|
@@ -59,7 +58,6 @@ export const Tab = styled('div', props => {
|
|
|
59
58
|
return style;
|
|
60
59
|
});
|
|
61
60
|
Tab.displayName = "Tab";
|
|
62
|
-
Tab.displayName = 'Tab';
|
|
63
61
|
export const TabBar = styled('div', props => {
|
|
64
62
|
const {
|
|
65
63
|
$orientation,
|
|
@@ -77,7 +75,6 @@ export const TabBar = styled('div', props => {
|
|
|
77
75
|
};
|
|
78
76
|
});
|
|
79
77
|
TabBar.displayName = "TabBar";
|
|
80
|
-
TabBar.displayName = 'TabBar';
|
|
81
78
|
export const TabContent = styled('div', props => {
|
|
82
79
|
const {
|
|
83
80
|
$active,
|
|
@@ -94,5 +91,4 @@ export const TabContent = styled('div', props => {
|
|
|
94
91
|
paddingBottom: sizing.scale500
|
|
95
92
|
};
|
|
96
93
|
});
|
|
97
|
-
TabContent.displayName = "TabContent";
|
|
98
|
-
TabContent.displayName = 'TabContent';
|
|
94
|
+
TabContent.displayName = "TabContent";
|
package/es/tabs/tabs.js
CHANGED
|
@@ -31,8 +31,7 @@ export default class Tabs extends React.Component {
|
|
|
31
31
|
orientation,
|
|
32
32
|
children,
|
|
33
33
|
overrides = {}
|
|
34
|
-
} = this.props;
|
|
35
|
-
|
|
34
|
+
} = this.props;
|
|
36
35
|
const tabs = React.Children.map(children, (child, index) => {
|
|
37
36
|
if (!child) return;
|
|
38
37
|
const key = child.key || String(index);
|
|
@@ -65,8 +64,7 @@ export default class Tabs extends React.Component {
|
|
|
65
64
|
const {
|
|
66
65
|
TabContent: TabContentOverride
|
|
67
66
|
} = overrides;
|
|
68
|
-
const [TabContent, tabContentProps] = getOverrides(TabContentOverride, StyledTabContent);
|
|
69
|
-
|
|
67
|
+
const [TabContent, tabContentProps] = getOverrides(TabContentOverride, StyledTabContent);
|
|
70
68
|
const tabs = React.Children.map(children, (child, index) => {
|
|
71
69
|
if (!child) return;
|
|
72
70
|
const key = child.key || String(index);
|
|
@@ -24,7 +24,6 @@ export const StyledRoot = styled('div', ({
|
|
|
24
24
|
return style;
|
|
25
25
|
});
|
|
26
26
|
StyledRoot.displayName = "StyledRoot";
|
|
27
|
-
StyledRoot.displayName = 'StyledRoot';
|
|
28
27
|
export const StyledTabList = styled('div', ({
|
|
29
28
|
$theme,
|
|
30
29
|
$fill = FILL.intrinsic,
|
|
@@ -69,13 +68,11 @@ export const StyledTabList = styled('div', ({
|
|
|
69
68
|
return style;
|
|
70
69
|
});
|
|
71
70
|
StyledTabList.displayName = "StyledTabList";
|
|
72
|
-
StyledTabList.displayName = 'StyledTabList';
|
|
73
71
|
export const StyledTab = styled('button', ({
|
|
74
72
|
$theme,
|
|
75
73
|
$orientation = ORIENTATION.horizontal,
|
|
76
74
|
$fill = FILL.intrinsic,
|
|
77
75
|
$focusVisible = false,
|
|
78
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
79
76
|
$isActive = false
|
|
80
77
|
}) => {
|
|
81
78
|
const style = {
|
|
@@ -138,7 +135,6 @@ export const StyledTab = styled('button', ({
|
|
|
138
135
|
return style;
|
|
139
136
|
});
|
|
140
137
|
StyledTab.displayName = "StyledTab";
|
|
141
|
-
StyledTab.displayName = 'StyledTab';
|
|
142
138
|
export const StyledArtworkContainer = styled('div', ({
|
|
143
139
|
$theme,
|
|
144
140
|
$orientation = ORIENTATION.horizontal
|
|
@@ -156,7 +152,6 @@ export const StyledArtworkContainer = styled('div', ({
|
|
|
156
152
|
return style;
|
|
157
153
|
});
|
|
158
154
|
StyledArtworkContainer.displayName = "StyledArtworkContainer";
|
|
159
|
-
StyledArtworkContainer.displayName = 'StyledArtworkContainer';
|
|
160
155
|
export const StyledTabBorder = styled('div', ({
|
|
161
156
|
$theme,
|
|
162
157
|
$orientation = ORIENTATION.horizontal
|
|
@@ -175,7 +170,6 @@ export const StyledTabBorder = styled('div', ({
|
|
|
175
170
|
return style;
|
|
176
171
|
});
|
|
177
172
|
StyledTabBorder.displayName = "StyledTabBorder";
|
|
178
|
-
StyledTabBorder.displayName = 'StyledTabBorder';
|
|
179
173
|
export const StyledTabHighlight = styled('div', ({
|
|
180
174
|
$theme,
|
|
181
175
|
$orientation = ORIENTATION.horizontal,
|
|
@@ -216,7 +210,6 @@ export const StyledTabHighlight = styled('div', ({
|
|
|
216
210
|
return style;
|
|
217
211
|
});
|
|
218
212
|
StyledTabHighlight.displayName = "StyledTabHighlight";
|
|
219
|
-
StyledTabHighlight.displayName = 'StyledTabHighlight';
|
|
220
213
|
export const StyledTabPanel = styled('div', ({
|
|
221
214
|
$theme,
|
|
222
215
|
$pad = true
|
|
@@ -236,5 +229,4 @@ export const StyledTabPanel = styled('div', ({
|
|
|
236
229
|
|
|
237
230
|
return style;
|
|
238
231
|
});
|
|
239
|
-
StyledTabPanel.displayName = "StyledTabPanel";
|
|
240
|
-
StyledTabPanel.displayName = 'StyledTabPanel';
|
|
232
|
+
StyledTabPanel.displayName = "StyledTabPanel";
|
package/es/tabs-motion/tab.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 function Tab(props) {
|
|
9
8
|
return null;
|
|
10
9
|
}
|
package/es/tabs-motion/tabs.js
CHANGED
|
@@ -314,8 +314,7 @@ function InternalTab({
|
|
|
314
314
|
setFocusVisible(true);
|
|
315
315
|
}
|
|
316
316
|
}, []);
|
|
317
|
-
const handleBlur = React.useCallback(
|
|
318
|
-
event => {
|
|
317
|
+
const handleBlur = React.useCallback(event => {
|
|
319
318
|
if (focusVisible !== false) {
|
|
320
319
|
setFocusVisible(false);
|
|
321
320
|
}
|
|
@@ -57,19 +57,16 @@ const COLOR_STATE = {
|
|
|
57
57
|
const pick = (theme, light, dark) => theme.name && theme.name.includes('dark') ? dark : light;
|
|
58
58
|
|
|
59
59
|
const neutralColorStates = {
|
|
60
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
61
60
|
[COLOR_STATE.disabled]: (theme, color) => ({
|
|
62
61
|
color: theme.colors.tagNeutralFontDisabled,
|
|
63
62
|
backgroundColor: null,
|
|
64
63
|
borderColor: theme.colors.tagNeutralOutlinedDisabled
|
|
65
64
|
}),
|
|
66
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
67
65
|
[COLOR_STATE.solid]: (theme, color) => ({
|
|
68
66
|
color: theme.colors.tagNeutralSolidFont,
|
|
69
67
|
backgroundColor: theme.colors.tagNeutralSolidBackground,
|
|
70
68
|
borderColor: null
|
|
71
69
|
}),
|
|
72
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
73
70
|
[COLOR_STATE.outline]: (theme, color) => ({
|
|
74
71
|
color: theme.colors.tagNeutralOutlinedFont,
|
|
75
72
|
backgroundColor: null,
|
|
@@ -77,19 +74,16 @@ const neutralColorStates = {
|
|
|
77
74
|
})
|
|
78
75
|
};
|
|
79
76
|
const primaryColorStates = {
|
|
80
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
81
77
|
[COLOR_STATE.disabled]: (theme, color) => ({
|
|
82
78
|
color: theme.colors.tagPrimaryFontDisabled,
|
|
83
79
|
backgroundColor: null,
|
|
84
80
|
borderColor: theme.colors.tagPrimaryOutlinedDisabled
|
|
85
81
|
}),
|
|
86
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
87
82
|
[COLOR_STATE.solid]: (theme, color) => ({
|
|
88
83
|
color: theme.colors.tagPrimarySolidFont,
|
|
89
84
|
backgroundColor: theme.colors.tagPrimarySolidBackground,
|
|
90
85
|
borderColor: null
|
|
91
86
|
}),
|
|
92
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
93
87
|
[COLOR_STATE.outline]: (theme, color) => ({
|
|
94
88
|
color: theme.colors.tagPrimaryOutlinedFont,
|
|
95
89
|
backgroundColor: null,
|
|
@@ -97,19 +91,16 @@ const primaryColorStates = {
|
|
|
97
91
|
})
|
|
98
92
|
};
|
|
99
93
|
const accentColorStates = {
|
|
100
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
101
94
|
[COLOR_STATE.disabled]: (theme, color) => ({
|
|
102
95
|
color: theme.colors.tagAccentFontDisabled,
|
|
103
96
|
backgroundColor: null,
|
|
104
97
|
borderColor: theme.colors.tagAccentOutlinedDisabled
|
|
105
98
|
}),
|
|
106
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
107
99
|
[COLOR_STATE.solid]: (theme, color) => ({
|
|
108
100
|
color: theme.colors.tagAccentSolidFont,
|
|
109
101
|
backgroundColor: theme.colors.tagAccentSolidBackground,
|
|
110
102
|
borderColor: null
|
|
111
103
|
}),
|
|
112
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
113
104
|
[COLOR_STATE.outline]: (theme, color) => ({
|
|
114
105
|
color: theme.colors.tagAccentOutlinedFont,
|
|
115
106
|
backgroundColor: null,
|
|
@@ -117,19 +108,16 @@ const accentColorStates = {
|
|
|
117
108
|
})
|
|
118
109
|
};
|
|
119
110
|
const positiveColorStates = {
|
|
120
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
121
111
|
[COLOR_STATE.disabled]: (theme, color) => ({
|
|
122
112
|
color: theme.colors.tagPositiveFontDisabled,
|
|
123
113
|
backgroundColor: null,
|
|
124
114
|
borderColor: theme.colors.tagPositiveOutlinedDisabled
|
|
125
115
|
}),
|
|
126
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
127
116
|
[COLOR_STATE.solid]: (theme, color) => ({
|
|
128
117
|
color: theme.colors.tagPositiveSolidFont,
|
|
129
118
|
backgroundColor: theme.colors.tagPositiveSolidBackground,
|
|
130
119
|
borderColor: null
|
|
131
120
|
}),
|
|
132
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
133
121
|
[COLOR_STATE.outline]: (theme, color) => ({
|
|
134
122
|
color: theme.colors.tagPositiveOutlinedFont,
|
|
135
123
|
backgroundColor: null,
|
|
@@ -137,19 +125,16 @@ const positiveColorStates = {
|
|
|
137
125
|
})
|
|
138
126
|
};
|
|
139
127
|
const warningColorStates = {
|
|
140
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
141
128
|
[COLOR_STATE.disabled]: (theme, color) => ({
|
|
142
129
|
color: theme.colors.tagWarningFontDisabled,
|
|
143
130
|
backgroundColor: null,
|
|
144
131
|
borderColor: theme.colors.tagWarningOutlinedDisabled
|
|
145
132
|
}),
|
|
146
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
147
133
|
[COLOR_STATE.solid]: (theme, color) => ({
|
|
148
134
|
color: theme.colors.tagWarningSolidFont,
|
|
149
135
|
backgroundColor: theme.colors.tagWarningSolidBackground,
|
|
150
136
|
borderColor: null
|
|
151
137
|
}),
|
|
152
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
153
138
|
[COLOR_STATE.outline]: (theme, color) => ({
|
|
154
139
|
color: theme.colors.tagWarningOutlinedFont,
|
|
155
140
|
backgroundColor: null,
|
|
@@ -157,19 +142,16 @@ const warningColorStates = {
|
|
|
157
142
|
})
|
|
158
143
|
};
|
|
159
144
|
const negativeColorStates = {
|
|
160
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
161
145
|
[COLOR_STATE.disabled]: (theme, color) => ({
|
|
162
146
|
color: theme.colors.tagNegativeFontDisabled,
|
|
163
147
|
backgroundColor: null,
|
|
164
148
|
borderColor: theme.colors.tagNegativeOutlinedDisabled
|
|
165
149
|
}),
|
|
166
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
167
150
|
[COLOR_STATE.solid]: (theme, color) => ({
|
|
168
151
|
color: theme.colors.tagNegativeSolidFont,
|
|
169
152
|
backgroundColor: theme.colors.tagNegativeSolidBackground,
|
|
170
153
|
borderColor: null
|
|
171
154
|
}),
|
|
172
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
173
155
|
[COLOR_STATE.outline]: (theme, color) => ({
|
|
174
156
|
color: theme.colors.tagNegativeOutlinedFont,
|
|
175
157
|
backgroundColor: null,
|
|
@@ -177,19 +159,16 @@ const negativeColorStates = {
|
|
|
177
159
|
})
|
|
178
160
|
};
|
|
179
161
|
const orangeColorStates = {
|
|
180
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
181
162
|
[COLOR_STATE.disabled]: (theme, color) => ({
|
|
182
163
|
color: pick(theme, colorTokens.orange200, colorTokens.orange600),
|
|
183
164
|
backgroundColor: null,
|
|
184
165
|
borderColor: pick(theme, colorTokens.orange200, colorTokens.orange700)
|
|
185
166
|
}),
|
|
186
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
187
167
|
[COLOR_STATE.solid]: (theme, color) => ({
|
|
188
168
|
color: colorTokens.white,
|
|
189
169
|
backgroundColor: pick(theme, colorTokens.orange400, colorTokens.orange500),
|
|
190
170
|
borderColor: null
|
|
191
171
|
}),
|
|
192
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
193
172
|
[COLOR_STATE.outline]: (theme, color) => ({
|
|
194
173
|
color: pick(theme, colorTokens.orange400, colorTokens.orange300),
|
|
195
174
|
backgroundColor: null,
|
|
@@ -197,19 +176,16 @@ const orangeColorStates = {
|
|
|
197
176
|
})
|
|
198
177
|
};
|
|
199
178
|
const purpleColorStates = {
|
|
200
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
201
179
|
[COLOR_STATE.disabled]: (theme, color) => ({
|
|
202
180
|
color: pick(theme, colorTokens.purple200, colorTokens.purple600),
|
|
203
181
|
backgroundColor: null,
|
|
204
182
|
borderColor: pick(theme, colorTokens.purple200, colorTokens.purple700)
|
|
205
183
|
}),
|
|
206
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
207
184
|
[COLOR_STATE.solid]: (theme, color) => ({
|
|
208
185
|
color: colorTokens.white,
|
|
209
186
|
backgroundColor: pick(theme, colorTokens.purple400, colorTokens.purple500),
|
|
210
187
|
borderColor: null
|
|
211
188
|
}),
|
|
212
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
213
189
|
[COLOR_STATE.outline]: (theme, color) => ({
|
|
214
190
|
color: pick(theme, colorTokens.purple400, colorTokens.purple300),
|
|
215
191
|
backgroundColor: null,
|
|
@@ -217,19 +193,16 @@ const purpleColorStates = {
|
|
|
217
193
|
})
|
|
218
194
|
};
|
|
219
195
|
const brownColorStates = {
|
|
220
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
221
196
|
[COLOR_STATE.disabled]: (theme, color) => ({
|
|
222
197
|
color: pick(theme, colorTokens.brown200, colorTokens.brown600),
|
|
223
198
|
backgroundColor: null,
|
|
224
199
|
borderColor: pick(theme, colorTokens.brown200, colorTokens.brown700)
|
|
225
200
|
}),
|
|
226
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
227
201
|
[COLOR_STATE.solid]: (theme, color) => ({
|
|
228
202
|
color: colorTokens.white,
|
|
229
203
|
backgroundColor: pick(theme, colorTokens.brown400, colorTokens.brown500),
|
|
230
204
|
borderColor: null
|
|
231
205
|
}),
|
|
232
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
233
206
|
[COLOR_STATE.outline]: (theme, color) => ({
|
|
234
207
|
color: pick(theme, colorTokens.brown400, colorTokens.brown300),
|
|
235
208
|
backgroundColor: null,
|
|
@@ -304,7 +277,6 @@ export const Action = styled('span', props => {
|
|
|
304
277
|
};
|
|
305
278
|
});
|
|
306
279
|
Action.displayName = "Action";
|
|
307
|
-
Action.displayName = 'Action';
|
|
308
280
|
export const StartEnhancerContainer = styled('div', ({
|
|
309
281
|
$theme,
|
|
310
282
|
$size = SIZE.small
|
|
@@ -325,7 +297,6 @@ export const StartEnhancerContainer = styled('div', ({
|
|
|
325
297
|
};
|
|
326
298
|
});
|
|
327
299
|
StartEnhancerContainer.displayName = "StartEnhancerContainer";
|
|
328
|
-
StartEnhancerContainer.displayName = 'StartEnhancerContainer';
|
|
329
300
|
export const Text = styled('span', props => {
|
|
330
301
|
const {
|
|
331
302
|
$theme
|
|
@@ -339,7 +310,6 @@ export const Text = styled('span', props => {
|
|
|
339
310
|
};
|
|
340
311
|
});
|
|
341
312
|
Text.displayName = "Text";
|
|
342
|
-
Text.displayName = 'Text';
|
|
343
313
|
export const Root = styled('span', props => {
|
|
344
314
|
const {
|
|
345
315
|
$theme,
|
|
@@ -414,5 +384,4 @@ export const Root = styled('span', props => {
|
|
|
414
384
|
}
|
|
415
385
|
};
|
|
416
386
|
});
|
|
417
|
-
Root.displayName = "Root";
|
|
418
|
-
Root.displayName = 'Root';
|
|
387
|
+
Root.displayName = "Root";
|
package/es/tag/tag.js
CHANGED
|
@@ -30,9 +30,7 @@ const Tag = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
30
30
|
isFocused = false,
|
|
31
31
|
isHovered = false,
|
|
32
32
|
kind = KIND.primary,
|
|
33
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
34
33
|
onActionClick = event => {},
|
|
35
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
36
34
|
onActionKeyDown = event => {},
|
|
37
35
|
onClick = null,
|
|
38
36
|
onKeyDown = null,
|
|
@@ -47,8 +45,7 @@ const Tag = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
47
45
|
if (isFocusVisible(event)) {
|
|
48
46
|
setFocusVisible(true);
|
|
49
47
|
}
|
|
50
|
-
}
|
|
51
|
-
|
|
48
|
+
}
|
|
52
49
|
|
|
53
50
|
function handleBlur(event) {
|
|
54
51
|
if (focusVisible !== false) {
|
|
@@ -115,8 +112,7 @@ const Tag = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
115
112
|
}[size]; // Capitalize for JSX
|
|
116
113
|
|
|
117
114
|
const StartEnhancer = startEnhancer;
|
|
118
|
-
return /*#__PURE__*/React.createElement(Root
|
|
119
|
-
, _extends({
|
|
115
|
+
return /*#__PURE__*/React.createElement(Root, _extends({
|
|
120
116
|
ref: ref,
|
|
121
117
|
"data-baseweb": "tag",
|
|
122
118
|
"aria-label": isButton && closeable ? `${typeof children === 'string' ? `${children}, ` : ''}close by backspace` : null,
|
|
@@ -14,16 +14,13 @@ export const StyledTextAreaRoot = styled('div', props => {
|
|
|
14
14
|
});
|
|
15
15
|
});
|
|
16
16
|
StyledTextAreaRoot.displayName = "StyledTextAreaRoot";
|
|
17
|
-
StyledTextAreaRoot.displayName = 'StyledTextAreaRoot';
|
|
18
17
|
export const StyledTextareaContainer = styled('div', props => ({ ...getInputContainerStyles({
|
|
19
18
|
$positive: false,
|
|
20
19
|
...props
|
|
21
20
|
})
|
|
22
21
|
}));
|
|
23
22
|
StyledTextareaContainer.displayName = "StyledTextareaContainer";
|
|
24
|
-
StyledTextareaContainer.displayName = 'StyledTextareaContainer';
|
|
25
23
|
export const StyledTextarea = styled('textarea', props => ({ ...getInputStyles(props),
|
|
26
24
|
resize: 'none'
|
|
27
25
|
}));
|
|
28
|
-
StyledTextarea.displayName = "StyledTextarea";
|
|
29
|
-
StyledTextarea.displayName = 'StyledTextarea';
|
|
26
|
+
StyledTextarea.displayName = "StyledTextarea";
|
|
@@ -60,61 +60,61 @@ export default ((fontTokens = defaultFontTokens) => {
|
|
|
60
60
|
const font550 = {
|
|
61
61
|
fontFamily: fontTokens.primaryFontFamily,
|
|
62
62
|
fontSize: '20px',
|
|
63
|
-
fontWeight:
|
|
63
|
+
fontWeight: 500,
|
|
64
64
|
lineHeight: '28px'
|
|
65
65
|
};
|
|
66
66
|
const font650 = {
|
|
67
67
|
fontFamily: fontTokens.primaryFontFamily,
|
|
68
68
|
fontSize: '24px',
|
|
69
|
-
fontWeight:
|
|
69
|
+
fontWeight: 500,
|
|
70
70
|
lineHeight: '32px'
|
|
71
71
|
};
|
|
72
72
|
const font750 = {
|
|
73
73
|
fontFamily: fontTokens.primaryFontFamily,
|
|
74
74
|
fontSize: '28px',
|
|
75
|
-
fontWeight:
|
|
75
|
+
fontWeight: 500,
|
|
76
76
|
lineHeight: '36px'
|
|
77
77
|
};
|
|
78
78
|
const font850 = {
|
|
79
79
|
fontFamily: fontTokens.primaryFontFamily,
|
|
80
80
|
fontSize: '32px',
|
|
81
|
-
fontWeight:
|
|
81
|
+
fontWeight: 500,
|
|
82
82
|
lineHeight: '40px'
|
|
83
83
|
};
|
|
84
84
|
const font950 = {
|
|
85
85
|
fontFamily: fontTokens.primaryFontFamily,
|
|
86
86
|
fontSize: '36px',
|
|
87
|
-
fontWeight:
|
|
87
|
+
fontWeight: 500,
|
|
88
88
|
lineHeight: '44px'
|
|
89
89
|
};
|
|
90
90
|
const font1050 = {
|
|
91
91
|
fontFamily: fontTokens.primaryFontFamily,
|
|
92
92
|
fontSize: '40px',
|
|
93
|
-
fontWeight:
|
|
93
|
+
fontWeight: 500,
|
|
94
94
|
lineHeight: '52px'
|
|
95
95
|
};
|
|
96
96
|
const font1150 = {
|
|
97
97
|
fontFamily: fontTokens.primaryFontFamily,
|
|
98
98
|
fontSize: '36px',
|
|
99
|
-
fontWeight:
|
|
99
|
+
fontWeight: 500,
|
|
100
100
|
lineHeight: '44px'
|
|
101
101
|
};
|
|
102
102
|
const font1250 = {
|
|
103
103
|
fontFamily: fontTokens.primaryFontFamily,
|
|
104
104
|
fontSize: '44px',
|
|
105
|
-
fontWeight:
|
|
105
|
+
fontWeight: 500,
|
|
106
106
|
lineHeight: '52px'
|
|
107
107
|
};
|
|
108
108
|
const font1350 = {
|
|
109
109
|
fontFamily: fontTokens.primaryFontFamily,
|
|
110
110
|
fontSize: '52px',
|
|
111
|
-
fontWeight:
|
|
111
|
+
fontWeight: 500,
|
|
112
112
|
lineHeight: '64px'
|
|
113
113
|
};
|
|
114
114
|
const font1450 = {
|
|
115
115
|
fontFamily: fontTokens.primaryFontFamily,
|
|
116
116
|
fontSize: '96px',
|
|
117
|
-
fontWeight:
|
|
117
|
+
fontWeight: 500,
|
|
118
118
|
lineHeight: '112px'
|
|
119
119
|
};
|
|
120
120
|
return {
|
|
@@ -107,11 +107,9 @@ export const Root = styled('div', ({
|
|
|
107
107
|
};
|
|
108
108
|
});
|
|
109
109
|
Root.displayName = "Root";
|
|
110
|
-
Root.displayName = 'Root';
|
|
111
110
|
export const InnerContainer = styled('div', // eslint-disable-next-line no-empty-pattern
|
|
112
111
|
({}) => ({}));
|
|
113
112
|
InnerContainer.displayName = "InnerContainer";
|
|
114
|
-
InnerContainer.displayName = 'InnerContainer';
|
|
115
113
|
export const Body = styled('div', ({
|
|
116
114
|
$isVisible,
|
|
117
115
|
$kind,
|
|
@@ -145,7 +143,6 @@ export const Body = styled('div', ({
|
|
|
145
143
|
};
|
|
146
144
|
});
|
|
147
145
|
Body.displayName = "Body";
|
|
148
|
-
Body.displayName = 'Body';
|
|
149
146
|
export const CloseIconSvg = styled('svg', ({
|
|
150
147
|
$theme,
|
|
151
148
|
$size,
|
|
@@ -161,5 +158,4 @@ export const CloseIconSvg = styled('svg', ({
|
|
|
161
158
|
flexShrink: 0,
|
|
162
159
|
outline: $isFocusVisible ? `3px solid ${$theme.colors.accent}` : 'none'
|
|
163
160
|
}));
|
|
164
|
-
CloseIconSvg.displayName = "CloseIconSvg";
|
|
165
|
-
CloseIconSvg.displayName = 'CloseIconSvg';
|
|
161
|
+
CloseIconSvg.displayName = "CloseIconSvg";
|
package/es/toast/toaster.js
CHANGED
|
@@ -8,6 +8,8 @@ Copyright (c) Uber Technologies, Inc.
|
|
|
8
8
|
This source code is licensed under the MIT license found in the
|
|
9
9
|
LICENSE file in the root directory of this source tree.
|
|
10
10
|
*/
|
|
11
|
+
|
|
12
|
+
/* eslint-disable cup/no-undef */
|
|
11
13
|
import * as React from 'react';
|
|
12
14
|
import ReactDOM from 'react-dom';
|
|
13
15
|
import { getOverrides, mergeOverrides } from '../helpers/overrides';
|
package/es/tokens/colors.js
CHANGED
|
@@ -50,14 +50,6 @@ const colors = {
|
|
|
50
50
|
yellow500: '#BC8B2C',
|
|
51
51
|
yellow600: '#996F00',
|
|
52
52
|
yellow700: '#674D1B',
|
|
53
|
-
lime50: '#F2F7ED',
|
|
54
|
-
lime100: '#E0ECD2',
|
|
55
|
-
lime200: '#BCD69D',
|
|
56
|
-
lime300: '#8BB956',
|
|
57
|
-
lime400: '#67A421',
|
|
58
|
-
lime500: '#4E7C19',
|
|
59
|
-
lime600: '#3D6213',
|
|
60
|
-
lime700: '#29410d',
|
|
61
53
|
green50: '#E6F2ED',
|
|
62
54
|
green100: '#ADDEC9',
|
|
63
55
|
green200: '#66D19E',
|
|
@@ -66,14 +58,6 @@ const colors = {
|
|
|
66
58
|
green500: '#03703C',
|
|
67
59
|
green600: '#03582F',
|
|
68
60
|
green700: '#10462D',
|
|
69
|
-
teal50: '#EDF5F7',
|
|
70
|
-
teal100: '#D2E8EC',
|
|
71
|
-
teal200: '#9DCDD6',
|
|
72
|
-
teal300: '#56A9B9',
|
|
73
|
-
teal400: '#218EA4',
|
|
74
|
-
teal500: '#196B7C',
|
|
75
|
-
teal600: '#135562',
|
|
76
|
-
teal700: '#0D3841',
|
|
77
61
|
blue50: '#EFF3FE',
|
|
78
62
|
blue100: '#D4E2FC',
|
|
79
63
|
blue200: '#A0BFF8',
|
|
@@ -98,14 +82,6 @@ const colors = {
|
|
|
98
82
|
purple500: '#574191',
|
|
99
83
|
purple600: '#453473',
|
|
100
84
|
purple700: '#2E224C',
|
|
101
|
-
magenta50: '#F9F1F7',
|
|
102
|
-
magenta100: '#F2DDEB',
|
|
103
|
-
magenta200: '#E2B4D3',
|
|
104
|
-
magenta300: '#CE7EB3',
|
|
105
|
-
magenta400: '#BF569C',
|
|
106
|
-
magenta500: '#914176',
|
|
107
|
-
magenta600: '#72335D',
|
|
108
|
-
magenta700: '#4C223E',
|
|
109
85
|
brown50: '#F6F0EA',
|
|
110
86
|
brown100: '#EBE0DB',
|
|
111
87
|
brown200: '#D2BBB0',
|
|
@@ -32,7 +32,6 @@ export const Body = styled('div', props => ({ ...getBodyStyles(props),
|
|
|
32
32
|
transform: getEndPosition(props.$popoverOffset)
|
|
33
33
|
}));
|
|
34
34
|
Body.displayName = "Body";
|
|
35
|
-
Body.displayName = 'Body';
|
|
36
35
|
export const Inner = styled('div', props => ({ ...getInnerStyles(props),
|
|
37
36
|
backgroundColor: props.$theme.colors.tooltipBackground,
|
|
38
37
|
borderTopLeftRadius: props.$theme.borders.radius300,
|
|
@@ -47,9 +46,7 @@ export const Inner = styled('div', props => ({ ...getInnerStyles(props),
|
|
|
47
46
|
color: props.$theme.colors.tooltipText
|
|
48
47
|
}));
|
|
49
48
|
Inner.displayName = "Inner";
|
|
50
|
-
Inner.displayName = 'Inner';
|
|
51
49
|
export const Arrow = styled('div', props => ({ ...getArrowStyles(props),
|
|
52
50
|
backgroundColor: props.$theme.colors.tooltipBackground
|
|
53
51
|
}));
|
|
54
|
-
Arrow.displayName = "Arrow";
|
|
55
|
-
Arrow.displayName = 'Arrow';
|
|
52
|
+
Arrow.displayName = "Arrow";
|