baseui 12.0.0 → 12.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/accordion.js +4 -2
- package/accordion/accordion.js.flow +1 -1
- package/accordion/panel.js +3 -2
- package/accordion/stateful-panel-container.js +1 -0
- package/accordion/styled-components.js +8 -1
- package/accordion/types.d.ts +2 -2
- package/app-nav-bar/app-nav-bar.js +4 -2
- package/app-nav-bar/mobile-menu.js +2 -1
- package/app-nav-bar/styled-components.js +19 -1
- package/app-nav-bar/types.d.ts +2 -2
- package/app-nav-bar/user-menu.js +1 -1
- package/aspect-ratio-box/aspect-ratio-box-body.d.ts +1 -1
- package/aspect-ratio-box/aspect-ratio-box.js +3 -1
- package/aspect-ratio-box/types.d.ts +1 -1
- package/avatar/styled-components.js +4 -1
- package/badge/styled-components.js +16 -11
- package/badge/styled-components.js.flow +4 -4
- package/badge/types.d.ts +2 -2
- package/banner/index.d.ts +1 -1
- package/banner/styled-components.js +25 -12
- package/banner/types.d.ts +15 -15
- package/banner/types.js.flow +13 -11
- package/block/block.js +3 -1
- package/block/styled-components.js +2 -1
- package/block/types.d.ts +3 -4
- package/breadcrumbs/styled-components.js +5 -1
- package/button/styled-components.js +7 -0
- package/button/styled-components.js.flow +2 -0
- package/button/types.d.ts +4 -5
- package/button-group/stateful-button-group.js +1 -0
- package/button-group/stateful-container.js +3 -1
- package/button-group/styled-components.js +2 -1
- package/button-group/types.d.ts +4 -5
- package/card/styled-components.js +11 -4
- package/checkbox/styled-components.js +10 -4
- package/checkbox/styled-components.js.flow +1 -1
- package/checkbox/types.d.ts +36 -37
- package/combobox/combobox.js +78 -71
- package/combobox/styled-components.js +5 -1
- package/combobox/types.d.ts +4 -5
- package/data-table/column-anchor.js +3 -0
- package/data-table/column-datetime.js +10 -4
- package/data-table/column-numerical.js +4 -4
- package/data-table/column-string.js +3 -0
- package/data-table/column.js +6 -1
- package/data-table/data-table.js +6 -3
- package/data-table/filter-menu.js +2 -1
- package/data-table/header-cell.js +43 -34
- package/data-table/locale.d.ts +4 -0
- package/data-table/locale.js +3 -1
- package/data-table/locale.js.flow +5 -0
- package/data-table/measure-column-widths.js +5 -4
- package/data-table/stateful-container.js +2 -1
- package/data-table/stateful-data-table.js +4 -4
- package/data-table/types.d.ts +4 -5
- package/datepicker/calendar-header.js +1 -0
- package/datepicker/calendar.js +2 -0
- package/datepicker/datepicker.js +2 -0
- package/datepicker/day.js +2 -1
- package/datepicker/index.d.ts +1 -1
- package/datepicker/index.js +7 -0
- package/datepicker/index.js.flow +1 -1
- package/datepicker/stateful-calendar.js +7 -3
- package/datepicker/stateful-container.js +2 -0
- package/datepicker/stateful-datepicker.js +9 -4
- package/datepicker/styled-components.js +27 -4
- package/datepicker/types.d.ts +2 -2
- package/datepicker/utils/date-helpers.js +2 -1
- package/datepicker/utils/index.js +2 -1
- package/divider/styled-components.js +4 -3
- package/divider/types.d.ts +1 -1
- package/dnd-list/stateful-list-container.js +1 -0
- package/dnd-list/styled-components.js +7 -0
- package/dnd-list/types.d.ts +2 -2
- package/drawer/constants.js +1 -0
- package/drawer/drawer.js +2 -3
- package/drawer/drawer.js.flow +1 -3
- package/drawer/styled-components.js +9 -2
- package/drawer/types.d.ts +2 -2
- package/es/accordion/accordion.js +3 -3
- package/es/accordion/panel.js +3 -2
- package/es/accordion/stateful-panel-container.js +1 -0
- package/es/accordion/styled-components.js +8 -1
- package/es/app-nav-bar/app-nav-bar.js +6 -2
- package/es/app-nav-bar/mobile-menu.js +4 -2
- package/es/app-nav-bar/styled-components.js +19 -1
- package/es/app-nav-bar/user-menu.js +1 -1
- package/es/aspect-ratio-box/aspect-ratio-box.js +3 -1
- package/es/avatar/styled-components.js +4 -1
- package/es/badge/styled-components.js +11 -6
- package/es/banner/styled-components.js +16 -3
- package/es/block/block.js +3 -1
- package/es/block/styled-components.js +2 -1
- package/es/breadcrumbs/styled-components.js +5 -1
- package/es/button/button.js +8 -0
- package/es/button/styled-components.js +7 -0
- package/es/button-group/stateful-button-group.js +1 -0
- package/es/button-group/stateful-container.js +3 -1
- package/es/button-group/styled-components.js +2 -1
- package/es/card/index.js +2 -1
- package/es/card/styled-components.js +12 -4
- package/es/checkbox/index.js +1 -0
- package/es/checkbox/stateful-checkbox-container.js +3 -0
- package/es/checkbox/styled-components.js +10 -4
- package/es/combobox/combobox.js +76 -69
- package/es/combobox/styled-components.js +5 -1
- package/es/data-table/column-anchor.js +3 -0
- package/es/data-table/column-datetime.js +12 -5
- package/es/data-table/column-numerical.js +5 -4
- package/es/data-table/column-string.js +3 -0
- package/es/data-table/column.js +4 -1
- package/es/data-table/data-table.js +6 -3
- package/es/data-table/filter-menu.js +2 -1
- package/es/data-table/header-cell.js +41 -34
- package/es/data-table/locale.js +3 -1
- package/es/data-table/measure-column-widths.js +5 -4
- package/es/data-table/stateful-container.js +2 -1
- package/es/data-table/stateful-data-table.js +4 -4
- package/es/datepicker/calendar-header.js +1 -0
- package/es/datepicker/calendar.js +2 -0
- package/es/datepicker/datepicker.js +3 -1
- package/es/datepicker/day.js +2 -1
- package/es/datepicker/index.js +1 -1
- package/es/datepicker/stateful-calendar.js +4 -1
- package/es/datepicker/stateful-container.js +2 -0
- package/es/datepicker/stateful-datepicker.js +5 -1
- package/es/datepicker/styled-components.js +26 -3
- package/es/datepicker/utils/date-helpers.js +2 -1
- package/es/datepicker/utils/index.js +2 -1
- package/es/divider/styled-components.js +3 -2
- package/es/dnd-list/stateful-list-container.js +1 -0
- package/es/dnd-list/styled-components.js +7 -0
- package/es/drawer/constants.js +1 -0
- package/es/drawer/drawer.js +2 -5
- package/es/drawer/styled-components.js +9 -2
- package/es/file-uploader/styled-components.js +6 -1
- package/es/flex-grid/flex-grid-item.js +5 -6
- package/es/flex-grid/flex-grid.js +4 -1
- package/es/form-control/styled-components.js +6 -1
- package/es/header-navigation/styled-components.js +4 -1
- package/es/helper/styled-components.js +3 -1
- package/es/helpers/overrides.js +9 -5
- package/es/icon/build-icons.js +0 -2
- package/es/icon/index.js +1 -1
- package/es/icon/omit-dollar-prefixed-keys.js +1 -0
- package/es/icon/styled-components.js +2 -1
- package/es/input/base-input.js +1 -0
- package/es/input/masked-input.js +9 -2
- package/es/input/stateful-container.js +1 -0
- package/es/input/styled-components.js +18 -7
- package/es/input/utils.js +2 -0
- package/es/layer/layer.js +24 -0
- package/es/layer/layers-manager.js +91 -1
- package/es/layout-grid/styled-components.js +3 -0
- package/es/link/index.js +2 -1
- package/es/link/styled-components.js +2 -1
- package/es/list/list-heading.js +21 -17
- package/es/list/list-item.js +2 -1
- package/es/list/styled-components.js +17 -1
- package/es/locale/es_AR.js +3 -1
- package/es/locale/index.js +2 -1
- package/es/locale/tr_TR.js +3 -1
- package/es/map-marker/constants.js +14 -0
- package/es/map-marker/fixed-marker.js +1 -0
- package/es/map-marker/index.js +2 -1
- package/es/map-marker/location-puck.js +142 -0
- package/es/map-marker/pin-head.js +1 -0
- package/es/map-marker/styled-components.js +86 -2
- package/es/menu/index.js +1 -1
- package/es/menu/menu.js +14 -4
- package/es/menu/option-profile.js +1 -0
- package/es/menu/stateful-container.js +10 -0
- package/es/menu/styled-components.js +32 -2
- package/es/message-card/constants.js +19 -0
- package/es/message-card/index.js +10 -0
- package/es/message-card/message-card.js +114 -0
- package/es/message-card/styled-components.js +108 -0
- package/es/message-card/types.js +1 -0
- package/es/message-card/utils.js +27 -0
- package/es/modal/modal.js +4 -6
- package/es/modal/styled-components.js +8 -1
- package/es/pagination/stateful-container.js +1 -0
- package/es/pagination/stateful-pagination.js +1 -0
- package/es/pagination/styled-components.js +4 -1
- package/es/payment-card/styled-components.js +2 -1
- package/es/phone-input/base-country-picker.js +3 -1
- package/es/phone-input/country-select-dropdown.js +1 -0
- package/es/phone-input/styled-components.js +15 -4
- package/es/pin-code/styled-components.js +4 -1
- package/es/popover/popover.js +9 -12
- package/es/popover/styled-components.js +9 -4
- package/es/progress-bar/progressbar-rounded.js +1 -0
- package/es/progress-bar/styled-components.js +14 -2
- package/es/progress-steps/progress-steps.js +2 -1
- package/es/progress-steps/styled-components.js +20 -12
- package/es/radio/stateful-radiogroup-container.js +3 -0
- package/es/radio/styled-components.js +10 -3
- package/es/rating/emoticon-rating.js +2 -1
- package/es/rating/star-rating.js +2 -1
- package/es/rating/styled-components.js +5 -1
- package/es/select/autosize-input.js +2 -3
- package/es/select/default-props.js +1 -1
- package/es/select/dropdown.js +2 -1
- package/es/select/multi-value.js +2 -1
- package/es/select/select-component.js +10 -10
- package/es/select/single-select.js +2 -2
- package/es/select/stateful-select-container.js +2 -0
- package/es/select/styled-components.js +33 -6
- package/es/select/value.js +3 -4
- package/es/side-navigation/index.js +2 -1
- package/es/side-navigation/nav-item.js +1 -0
- package/es/side-navigation/nav.js +1 -1
- package/es/side-navigation/stateful-container.js +1 -0
- package/es/side-navigation/styled-components.js +8 -2
- package/es/skeleton/styled-components.js +3 -1
- package/es/slider/slider.js +4 -2
- package/es/slider/stateful-slider-container.js +2 -0
- package/es/slider/styled-components.js +9 -0
- package/es/snackbar/snackbar-element.js +1 -0
- package/es/snackbar/styled-components.js +9 -1
- package/es/spinner/styled-components.js +2 -1
- package/es/styles/__mocks__/styled.js +8 -5
- package/es/styles/styled.js +7 -6
- package/es/table/index.js +2 -1
- package/es/table/styled-components.js +13 -1
- package/es/table-grid/styled-components.js +4 -1
- package/es/table-semantic/styled-components.js +20 -3
- package/es/tabs/stateful-tabs.js +1 -0
- package/es/tabs/styled-components.js +5 -1
- package/es/tabs/tabs.js +4 -2
- package/es/tabs-motion/styled-components.js +32 -2
- package/es/tabs-motion/tab.js +1 -0
- package/es/tabs-motion/tabs.js +31 -6
- package/es/tag/styled-components.js +32 -1
- package/es/tag/tag.js +6 -2
- package/es/textarea/styled-components.js +20 -12
- package/es/textarea/textarea.js +4 -2
- package/es/themes/move-theme/typography.js +36 -0
- package/es/themes/shared/borders.js +8 -3
- package/es/themes/shared/typography.js +10 -10
- package/es/timezonepicker/timezone-picker.js +5 -1
- package/es/timezonepicker/tzdata.js +1 -1
- package/es/toast/styled-components.js +5 -1
- package/es/toast/toaster.js +0 -2
- package/es/tokens/colors.js +24 -0
- package/es/tooltip/styled-components.js +4 -1
- package/es/tree-view/index.js +2 -1
- package/es/tree-view/styled-components.js +7 -1
- package/es/tree-view/tree-view.js +3 -1
- package/es/types/globals.d.js +12 -0
- package/es/utils/deep-merge.js +0 -5
- package/es/utils/deprecated-component.js +1 -0
- package/es/utils/focusVisible.js +4 -2
- package/esm/accordion/accordion.js +4 -4
- package/esm/accordion/panel.js +3 -2
- package/esm/accordion/stateful-panel-container.js +1 -0
- package/esm/accordion/styled-components.js +8 -1
- package/esm/app-nav-bar/app-nav-bar.js +4 -2
- package/esm/app-nav-bar/mobile-menu.js +4 -2
- package/esm/app-nav-bar/styled-components.js +19 -1
- package/esm/app-nav-bar/user-menu.js +1 -1
- package/esm/aspect-ratio-box/aspect-ratio-box.js +3 -1
- package/esm/avatar/styled-components.js +4 -1
- package/esm/badge/styled-components.js +11 -6
- package/esm/banner/styled-components.js +16 -3
- package/esm/block/block.js +3 -1
- package/esm/block/styled-components.js +2 -1
- package/esm/breadcrumbs/styled-components.js +5 -1
- package/esm/button/styled-components.js +7 -0
- package/esm/button-group/stateful-button-group.js +1 -0
- package/esm/button-group/stateful-container.js +3 -1
- package/esm/button-group/styled-components.js +2 -1
- package/esm/card/index.js +2 -1
- package/esm/card/styled-components.js +12 -4
- package/esm/checkbox/index.js +1 -0
- package/esm/checkbox/styled-components.js +10 -4
- package/esm/combobox/combobox.js +78 -71
- package/esm/combobox/styled-components.js +5 -1
- package/esm/data-table/column-anchor.js +3 -0
- package/esm/data-table/column-datetime.js +12 -5
- package/esm/data-table/column-numerical.js +4 -4
- package/esm/data-table/column-string.js +3 -0
- package/esm/data-table/column.js +5 -1
- package/esm/data-table/data-table.js +6 -3
- package/esm/data-table/filter-menu.js +2 -1
- package/esm/data-table/header-cell.js +42 -34
- package/esm/data-table/locale.js +3 -1
- package/esm/data-table/measure-column-widths.js +5 -4
- package/esm/data-table/stateful-container.js +2 -1
- package/esm/data-table/stateful-data-table.js +4 -4
- package/esm/datepicker/calendar-header.js +1 -0
- package/esm/datepicker/calendar.js +2 -0
- package/esm/datepicker/datepicker.js +3 -1
- package/esm/datepicker/day.js +2 -1
- package/esm/datepicker/index.js +1 -1
- package/esm/datepicker/stateful-calendar.js +7 -3
- package/esm/datepicker/stateful-container.js +2 -0
- package/esm/datepicker/stateful-datepicker.js +9 -4
- package/esm/datepicker/styled-components.js +26 -3
- package/esm/datepicker/utils/date-helpers.js +2 -1
- package/esm/datepicker/utils/index.js +2 -1
- package/esm/divider/styled-components.js +3 -2
- package/esm/dnd-list/stateful-list-container.js +1 -0
- package/esm/dnd-list/styled-components.js +7 -0
- package/esm/drawer/constants.js +1 -0
- package/esm/drawer/drawer.js +2 -5
- package/esm/drawer/styled-components.js +9 -2
- package/esm/file-uploader/styled-components.js +6 -1
- package/esm/flex-grid/flex-grid-item.js +4 -5
- package/esm/flex-grid/flex-grid.js +7 -3
- package/esm/form-control/styled-components.js +6 -1
- package/esm/header-navigation/styled-components.js +4 -1
- package/esm/helper/styled-components.js +3 -1
- package/esm/helpers/overrides.js +9 -5
- package/esm/icon/build-icons.js +0 -2
- package/esm/icon/index.js +1 -1
- package/esm/icon/omit-dollar-prefixed-keys.js +1 -0
- package/esm/icon/styled-components.js +2 -1
- package/esm/input/base-input.js +1 -0
- package/esm/input/masked-input.js +5 -2
- package/esm/input/stateful-container.js +1 -0
- package/esm/input/styled-components.js +18 -7
- package/esm/input/utils.js +2 -0
- package/esm/layer/layer.js +24 -0
- package/esm/layer/layers-manager.js +97 -1
- package/esm/layout-grid/styled-components.js +3 -0
- package/esm/link/index.js +2 -1
- package/esm/link/styled-components.js +2 -1
- package/esm/list/list-heading.js +21 -17
- package/esm/list/list-item.js +2 -1
- package/esm/list/styled-components.js +17 -1
- package/esm/locale/es_AR.js +3 -1
- package/esm/locale/index.js +4 -1
- package/esm/locale/tr_TR.js +3 -1
- package/esm/map-marker/constants.js +12 -2
- package/esm/map-marker/index.js +2 -1
- package/esm/map-marker/location-puck.js +199 -0
- package/esm/map-marker/styled-components.js +82 -2
- package/esm/menu/index.js +1 -1
- package/esm/menu/menu.js +16 -4
- package/esm/menu/option-profile.js +1 -0
- package/esm/menu/stateful-container.js +1 -0
- package/esm/menu/styled-components.js +38 -6
- package/esm/message-card/constants.js +20 -0
- package/esm/message-card/index.js +10 -0
- package/esm/message-card/message-card.js +168 -0
- package/esm/message-card/styled-components.js +116 -0
- package/esm/message-card/types.js +1 -0
- package/esm/message-card/utils.js +26 -0
- package/esm/modal/modal.js +4 -6
- package/esm/modal/styled-components.js +8 -1
- package/esm/pagination/stateful-container.js +1 -0
- package/esm/pagination/stateful-pagination.js +1 -0
- package/esm/pagination/styled-components.js +4 -1
- package/esm/payment-card/styled-components.js +2 -1
- package/esm/phone-input/base-country-picker.js +3 -1
- package/esm/phone-input/country-select-dropdown.js +1 -0
- package/esm/phone-input/styled-components.js +20 -8
- package/esm/pin-code/styled-components.js +4 -1
- package/esm/popover/popover.js +9 -12
- package/esm/popover/styled-components.js +9 -4
- package/esm/progress-bar/progressbar-rounded.js +1 -0
- package/esm/progress-bar/styled-components.js +14 -2
- package/esm/progress-steps/progress-steps.js +2 -1
- package/esm/progress-steps/styled-components.js +28 -19
- package/esm/radio/styled-components.js +10 -3
- package/esm/rating/emoticon-rating.js +2 -1
- package/esm/rating/star-rating.js +2 -1
- package/esm/rating/styled-components.js +5 -1
- package/esm/select/autosize-input.js +2 -3
- package/esm/select/default-props.js +1 -1
- package/esm/select/dropdown.js +2 -1
- package/esm/select/multi-value.js +2 -1
- package/esm/select/select-component.js +10 -10
- package/esm/select/single-select.js +2 -2
- package/esm/select/styled-components.js +33 -6
- package/esm/select/value.js +3 -4
- package/esm/side-navigation/index.js +2 -1
- package/esm/side-navigation/nav-item.js +1 -0
- package/esm/side-navigation/nav.js +1 -1
- package/esm/side-navigation/stateful-container.js +1 -0
- package/esm/side-navigation/styled-components.js +13 -6
- package/esm/skeleton/styled-components.js +3 -1
- package/esm/slider/slider.js +4 -2
- package/esm/slider/styled-components.js +9 -0
- package/esm/snackbar/snackbar-element.js +1 -0
- package/esm/snackbar/styled-components.js +9 -1
- package/esm/spinner/styled-components.js +2 -1
- package/esm/styles/__mocks__/styled.js +8 -5
- package/esm/styles/styled.js +7 -6
- package/esm/table/index.js +2 -1
- package/esm/table/styled-components.js +13 -1
- package/esm/table-grid/styled-components.js +4 -1
- package/esm/table-semantic/styled-components.js +20 -3
- package/esm/tabs/stateful-tabs.js +1 -0
- package/esm/tabs/styled-components.js +5 -1
- package/esm/tabs/tabs.js +4 -2
- package/esm/tabs-motion/styled-components.js +68 -40
- package/esm/tabs-motion/tab.js +1 -0
- package/esm/tabs-motion/tabs.js +87 -58
- package/esm/tag/styled-components.js +5 -1
- package/esm/tag/tag.js +4 -2
- package/esm/textarea/styled-components.js +11 -6
- package/esm/textarea/textarea.js +4 -2
- package/esm/themes/move-theme/typography.js +36 -0
- package/esm/themes/shared/borders.js +8 -3
- package/esm/themes/shared/typography.js +10 -10
- package/esm/timezonepicker/timezone-picker.js +6 -2
- package/esm/timezonepicker/tzdata.js +1 -1
- package/esm/toast/styled-components.js +5 -1
- package/esm/toast/toaster.js +0 -2
- package/esm/tokens/colors.js +24 -0
- package/esm/tooltip/styled-components.js +4 -1
- package/esm/tree-view/index.js +2 -1
- package/esm/tree-view/styled-components.js +7 -1
- package/esm/tree-view/tree-view.js +3 -1
- package/esm/types/globals.d.js +12 -0
- package/esm/utils/deep-merge.js +0 -5
- package/esm/utils/deprecated-component.js +1 -0
- package/esm/utils/focusVisible.js +4 -2
- package/file-uploader/styled-components.js +6 -1
- package/flex-grid/flex-grid-item.d.ts +1 -1
- package/flex-grid/flex-grid-item.js +6 -8
- package/flex-grid/flex-grid.js +7 -3
- package/flex-grid/types.d.ts +1 -1
- package/form-control/styled-components.js +6 -1
- package/form-control/types.d.ts +1 -1
- package/header-navigation/styled-components.js +4 -1
- package/heading/types.d.ts +1 -1
- package/helper/styled-components.js +3 -1
- package/helpers/overrides.js +8 -3
- package/helpers/overrides.js.flow +1 -1
- package/helpers/types.d.ts +1 -1
- package/icon/build-icons.js +0 -2
- package/icon/build-icons.js.flow +0 -1
- package/icon/index.d.ts +1 -1
- package/icon/index.js +8 -1
- package/icon/index.js.flow +1 -1
- package/icon/omit-dollar-prefixed-keys.js +1 -0
- package/icon/styled-components.js +2 -1
- package/icon/types.d.ts +1 -1
- package/input/masked-input.js +5 -2
- package/input/stateful-container.js +1 -0
- package/input/styled-components.js +18 -7
- package/input/styled-components.js.flow +9 -2
- package/input/types.d.ts +16 -14
- package/input/types.js.flow +3 -0
- package/input/utils.js +2 -0
- package/layer/layer.js +24 -0
- package/layer/layer.js.flow +25 -0
- package/layer/layers-manager.d.ts +8 -0
- package/layer/layers-manager.js +97 -1
- package/layer/layers-manager.js.flow +84 -1
- package/layer/types.d.ts +23 -2
- package/layer/types.js.flow +22 -1
- package/layout-grid/styled-components.js +3 -0
- package/layout-grid/types.d.ts +2 -2
- package/link/index.js +2 -1
- package/link/styled-components.js +2 -1
- package/list/list-heading.js +21 -17
- package/list/list-item.js +2 -1
- package/list/styled-components.js +17 -1
- package/list/types.d.ts +2 -2
- package/locale/en_US.d.ts +1 -1
- package/locale/es_AR.d.ts +1 -1
- package/locale/es_AR.js +3 -1
- package/locale/index.js +4 -1
- package/locale/tr_TR.d.ts +1 -1
- package/locale/tr_TR.js +3 -1
- package/map-marker/constants.d.ts +14 -0
- package/map-marker/constants.js +16 -3
- package/map-marker/constants.js.flow +17 -0
- package/map-marker/index.d.ts +2 -1
- package/map-marker/index.js +24 -1
- package/map-marker/index.js.flow +5 -3
- package/map-marker/location-puck.d.ts +4 -0
- package/map-marker/location-puck.js +211 -0
- package/map-marker/location-puck.js.flow +18 -0
- package/map-marker/styled-components.d.ts +17 -1
- package/map-marker/styled-components.js +88 -2
- package/map-marker/styled-components.js.flow +58 -0
- package/map-marker/types.d.ts +33 -5
- package/map-marker/types.js.flow +37 -3
- package/menu/index.d.ts +2 -3
- package/menu/index.js +8 -1
- package/menu/index.js.flow +1 -0
- package/menu/menu.js +15 -3
- package/menu/menu.js.flow +11 -1
- package/menu/option-profile.js +1 -0
- package/menu/stateful-container.js +1 -0
- package/menu/styled-components.d.ts +1 -0
- package/menu/styled-components.js +40 -7
- package/menu/styled-components.js.flow +13 -0
- package/menu/types.d.ts +13 -13
- package/menu/types.js.flow +1 -0
- package/message-card/constants.d.ts +12 -0
- package/message-card/constants.js +25 -0
- package/message-card/index.d.ts +4 -0
- package/message-card/index.js +60 -0
- package/message-card/index.js.flow +72 -0
- package/message-card/message-card.d.ts +4 -0
- package/message-card/message-card.js +184 -0
- package/message-card/package.json +4 -0
- package/message-card/styled-components.d.ts +14 -0
- package/message-card/styled-components.js +124 -0
- package/message-card/types.d.ts +27 -0
- package/message-card/types.js +5 -0
- package/message-card/utils.d.ts +1 -0
- package/message-card/utils.js +36 -0
- package/modal/modal.js +4 -4
- package/modal/modal.js.flow +1 -3
- package/modal/styled-components.js +8 -1
- package/modal/types.d.ts +2 -2
- package/package.json +9 -11
- package/pagination/stateful-container.js +1 -0
- package/pagination/stateful-pagination.js +1 -0
- package/pagination/styled-components.js +4 -1
- package/pagination/types.d.ts +2 -2
- package/payment-card/styled-components.js +2 -1
- package/phone-input/base-country-picker.js +3 -1
- package/phone-input/country-select-dropdown.js +1 -0
- package/phone-input/styled-components.js +21 -9
- package/phone-input/types.d.ts +5 -6
- package/pin-code/styled-components.js +4 -1
- package/pin-code/types.d.ts +2 -2
- package/popover/popover.js +9 -12
- package/popover/popover.js.flow +2 -12
- package/popover/styled-components.js +12 -9
- package/popover/types.d.ts +2 -2
- package/progress-bar/progressbar-rounded.js +1 -0
- package/progress-bar/styled-components.js +14 -2
- package/progress-bar/types.d.ts +2 -2
- package/progress-steps/progress-steps.js +2 -1
- package/progress-steps/styled-components.js +28 -19
- package/radio/styled-components.js +10 -3
- package/radio/types.d.ts +19 -20
- package/rating/emoticon-rating.js +2 -1
- package/rating/star-rating.js +2 -1
- package/rating/styled-components.js +5 -1
- package/select/autosize-input.js +2 -1
- package/select/autosize-input.js.flow +1 -1
- package/select/default-props.js +1 -1
- package/select/dropdown.js +2 -1
- package/select/multi-value.js +1 -0
- package/select/select-component.d.ts +1 -1
- package/select/select-component.js +9 -7
- package/select/select-component.js.flow +1 -1
- package/select/single-select.d.ts +2 -2
- package/select/single-select.js +2 -2
- package/select/styled-components.js +33 -6
- package/select/styled-components.js.flow +25 -5
- package/select/types.d.ts +5 -6
- package/select/value.js +2 -3
- package/side-navigation/nav-item.js +1 -0
- package/side-navigation/nav.js +1 -1
- package/side-navigation/stateful-container.js +1 -0
- package/side-navigation/styled-components.js +13 -6
- package/side-navigation/types.d.ts +1 -1
- package/skeleton/styled-components.js +3 -1
- package/slider/slider.js +4 -2
- package/slider/styled-components.js +9 -0
- package/slider/types.d.ts +1 -1
- package/snackbar/snackbar-element.js +1 -0
- package/snackbar/styled-components.js +9 -1
- package/snackbar/types.d.ts +3 -4
- package/spinner/styled-components.js +2 -1
- package/spinner/types.d.ts +1 -1
- package/styles/__mocks__/styled.js +8 -3
- package/styles/styled.d.ts +1 -1
- package/styles/styled.js +7 -6
- package/table/styled-components.js +13 -1
- package/table/types.d.ts +2 -2
- package/table-grid/styled-components.js +4 -1
- package/table-semantic/styled-components.js +20 -3
- package/table-semantic/types.d.ts +2 -2
- package/tabs/stateful-tabs.js +1 -0
- package/tabs/styled-components.js +5 -1
- package/tabs/tabs.js +4 -2
- package/tabs/types.d.ts +2 -2
- package/tabs-motion/styled-components.d.ts +5 -0
- package/tabs-motion/styled-components.js +71 -41
- package/tabs-motion/styled-components.js.flow +21 -0
- package/tabs-motion/tab.js +1 -0
- package/tabs-motion/tabs.d.ts +1 -1
- package/tabs-motion/tabs.js +87 -57
- package/tabs-motion/tabs.js.flow +69 -38
- package/tabs-motion/types.d.ts +5 -2
- package/tabs-motion/types.js.flow +3 -0
- package/tabs-motion/utils.d.ts +1 -1
- package/tag/styled-components.js +5 -1
- package/tag/tag.js +4 -2
- package/tag/types.d.ts +4 -5
- package/textarea/styled-components.js +11 -6
- package/textarea/textarea.js +4 -2
- package/textarea/types.d.ts +6 -5
- package/textarea/types.js.flow +3 -1
- package/themes/move-theme/typography.d.ts +36 -0
- package/themes/move-theme/typography.js +36 -0
- package/themes/move-theme/typography.js.flow +12 -0
- package/themes/shared/borders.js +8 -3
- package/themes/shared/borders.js.flow +7 -3
- package/themes/shared/typography.js +10 -10
- package/themes/shared/typography.js.flow +10 -10
- package/themes/types.d.ts +3 -0
- package/themes/types.js.flow +3 -0
- package/timezonepicker/timezone-picker.js +6 -2
- package/timezonepicker/types.d.ts +1 -0
- package/timezonepicker/types.js.flow +1 -0
- package/timezonepicker/tzdata.js +1 -1
- package/toast/styled-components.js +5 -1
- package/toast/toaster.js.flow +1 -1
- package/toast/types.d.ts +2 -2
- package/tokens/colors.js +24 -0
- package/tokens/colors.js.flow +27 -0
- package/tokens/types.d.ts +24 -0
- package/tokens/types.js.flow +27 -0
- package/tooltip/styled-components.js +4 -1
- package/tree-view/styled-components.js +7 -1
- package/tree-view/tree-view.js +3 -1
- package/tree-view/types.d.ts +3 -4
- package/types/globals.d.js +14 -1
- package/utils/deep-merge.js +0 -6
- package/utils/deprecated-component.js +1 -0
- package/utils/focusVisible.d.ts +1 -1
- package/utils/focusVisible.js +4 -2
- package/card/images.d.ts +0 -2
- package/card/images.js +0 -17
- package/card/images.js.flow +0 -18
- package/es/card/images.js +0 -8
- package/esm/card/images.js +0 -8
|
@@ -19,6 +19,7 @@ export const Root = styled('ul', {
|
|
|
19
19
|
width: '100%'
|
|
20
20
|
});
|
|
21
21
|
Root.displayName = "Root";
|
|
22
|
+
Root.displayName = 'Root';
|
|
22
23
|
export const PanelContainer = styled('li', props => {
|
|
23
24
|
const {
|
|
24
25
|
$expanded,
|
|
@@ -35,6 +36,7 @@ export const PanelContainer = styled('li', props => {
|
|
|
35
36
|
};
|
|
36
37
|
});
|
|
37
38
|
PanelContainer.displayName = "PanelContainer";
|
|
39
|
+
PanelContainer.displayName = 'PanelContainer';
|
|
38
40
|
export const Header = styled('div', props => {
|
|
39
41
|
const {
|
|
40
42
|
$disabled,
|
|
@@ -68,6 +70,7 @@ export const Header = styled('div', props => {
|
|
|
68
70
|
};
|
|
69
71
|
});
|
|
70
72
|
Header.displayName = "Header";
|
|
73
|
+
Header.displayName = 'Header';
|
|
71
74
|
export const ToggleIcon = styled('svg', props => {
|
|
72
75
|
const {
|
|
73
76
|
$theme,
|
|
@@ -81,6 +84,7 @@ export const ToggleIcon = styled('svg', props => {
|
|
|
81
84
|
};
|
|
82
85
|
});
|
|
83
86
|
ToggleIcon.displayName = "ToggleIcon";
|
|
87
|
+
ToggleIcon.displayName = 'ToggleIcon';
|
|
84
88
|
export const ToggleIconGroup = styled('g', props => {
|
|
85
89
|
const {
|
|
86
90
|
$theme,
|
|
@@ -95,6 +99,7 @@ export const ToggleIconGroup = styled('g', props => {
|
|
|
95
99
|
};
|
|
96
100
|
});
|
|
97
101
|
ToggleIconGroup.displayName = "ToggleIconGroup";
|
|
102
|
+
ToggleIconGroup.displayName = 'ToggleIconGroup';
|
|
98
103
|
export const Content = styled('div', props => {
|
|
99
104
|
const {
|
|
100
105
|
$theme: {
|
|
@@ -127,6 +132,7 @@ export const Content = styled('div', props => {
|
|
|
127
132
|
};
|
|
128
133
|
});
|
|
129
134
|
Content.displayName = "Content";
|
|
135
|
+
Content.displayName = 'Content';
|
|
130
136
|
export const ContentAnimationContainer = styled('div', props => {
|
|
131
137
|
const {
|
|
132
138
|
$height,
|
|
@@ -142,4 +148,5 @@ export const ContentAnimationContainer = styled('div', props => {
|
|
|
142
148
|
transitionTimingFunction: animation.easeOutQuinticCurve
|
|
143
149
|
};
|
|
144
150
|
});
|
|
145
|
-
ContentAnimationContainer.displayName = "ContentAnimationContainer";
|
|
151
|
+
ContentAnimationContainer.displayName = "ContentAnimationContainer";
|
|
152
|
+
ContentAnimationContainer.displayName = 'ContentAnimationContainer';
|
|
@@ -30,13 +30,15 @@ function MainMenuItem(props) {
|
|
|
30
30
|
if (isFocusVisible(event)) {
|
|
31
31
|
setFocusVisible(true);
|
|
32
32
|
}
|
|
33
|
-
}
|
|
33
|
+
} // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
34
|
+
|
|
34
35
|
|
|
35
36
|
function handleBlur(event) {
|
|
36
37
|
if (focusVisible) {
|
|
37
38
|
setFocusVisible(false);
|
|
38
39
|
}
|
|
39
|
-
}
|
|
40
|
+
} // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
41
|
+
|
|
40
42
|
|
|
41
43
|
function handleClick(event) {
|
|
42
44
|
if (onSelect) {
|
|
@@ -93,7 +95,9 @@ export default function AppNavBar(props) {
|
|
|
93
95
|
const {
|
|
94
96
|
title,
|
|
95
97
|
mapItemToNode = defaultMapItemToNode,
|
|
98
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
96
99
|
onMainItemSelect = item => {},
|
|
100
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
97
101
|
onUserItemSelect = item => {},
|
|
98
102
|
overrides = {},
|
|
99
103
|
userItems = [],
|
|
@@ -11,7 +11,8 @@ 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';
|
|
14
|
+
import MenuIcon from '../icon/menu'; // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
15
|
+
|
|
15
16
|
import { MenuAdapter, ListItemLabel, ARTWORK_SIZES } from '../list';
|
|
16
17
|
import { StatefulMenu } from '../menu';
|
|
17
18
|
import { StyledSideMenuButton, StyledUserMenuProfileListItem } from './styled-components';
|
|
@@ -19,7 +20,7 @@ import UserProfileTile from './user-profile-tile';
|
|
|
19
20
|
import { defaultMapItemToNode } from './utils';
|
|
20
21
|
const USER_TITLE_ITEM = 'USER_TITLE_ITEM';
|
|
21
22
|
const USER_MENU_ITEM = 'USER_MENU_ITEM';
|
|
22
|
-
const PARENT_MENU_ITEM = 'PARENT_MENU_ITEM'; // eslint-disable-next-line react/display-name
|
|
23
|
+
const PARENT_MENU_ITEM = 'PARENT_MENU_ITEM'; // eslint-disable-next-line @typescript-eslint/no-explicit-any,react/display-name
|
|
23
24
|
|
|
24
25
|
const MobileNavMenuItem = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
25
26
|
const {
|
|
@@ -91,6 +92,7 @@ export default function MobileMenu(props) {
|
|
|
91
92
|
const [MobileDrawer, drawerProps] = getOverrides(overrides.MobileDrawer, Drawer);
|
|
92
93
|
drawerProps.overrides = mergeOverrides({
|
|
93
94
|
DrawerBody: {
|
|
95
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
94
96
|
style: ({
|
|
95
97
|
$theme
|
|
96
98
|
}) => {
|
|
@@ -38,6 +38,7 @@ const StyledButton = styled('button', ({
|
|
|
38
38
|
cursor: 'pointer'
|
|
39
39
|
}));
|
|
40
40
|
StyledButton.displayName = "StyledButton";
|
|
41
|
+
StyledButton.displayName = 'StyledButton';
|
|
41
42
|
export const StyledRoot = styled('div', props => {
|
|
42
43
|
const {
|
|
43
44
|
$theme
|
|
@@ -83,8 +84,10 @@ export const StyledRoot = styled('div', props => {
|
|
|
83
84
|
return style;
|
|
84
85
|
});
|
|
85
86
|
StyledRoot.displayName = "StyledRoot";
|
|
87
|
+
StyledRoot.displayName = 'StyledRoot';
|
|
86
88
|
export const StyledSubnavContainer = styled('div', {});
|
|
87
89
|
StyledSubnavContainer.displayName = "StyledSubnavContainer";
|
|
90
|
+
StyledSubnavContainer.displayName = 'StyledSubnavContainer';
|
|
88
91
|
export const StyledSpacing = styled('div', props => {
|
|
89
92
|
const {
|
|
90
93
|
$theme
|
|
@@ -103,6 +106,7 @@ export const StyledSpacing = styled('div', props => {
|
|
|
103
106
|
};
|
|
104
107
|
});
|
|
105
108
|
StyledSpacing.displayName = "StyledSpacing";
|
|
109
|
+
StyledSpacing.displayName = 'StyledSpacing';
|
|
106
110
|
export const StyledAppName = styled('div', ({
|
|
107
111
|
$theme
|
|
108
112
|
}) => ({ ...$theme.typography.font550,
|
|
@@ -112,6 +116,7 @@ export const StyledAppName = styled('div', ({
|
|
|
112
116
|
}
|
|
113
117
|
}));
|
|
114
118
|
StyledAppName.displayName = "StyledAppName";
|
|
119
|
+
StyledAppName.displayName = 'StyledAppName';
|
|
115
120
|
export const StyledSideMenuButton = withStyle(StyledButton, ({
|
|
116
121
|
$theme
|
|
117
122
|
}) => ({ ...($theme.direction === 'rtl' ? {
|
|
@@ -125,6 +130,7 @@ export const StyledSideMenuButton = withStyle(StyledButton, ({
|
|
|
125
130
|
paddingRight: $theme.sizing.scale100
|
|
126
131
|
}));
|
|
127
132
|
StyledSideMenuButton.displayName = "StyledSideMenuButton";
|
|
133
|
+
StyledSideMenuButton.displayName = 'StyledSideMenuButton';
|
|
128
134
|
export const StyledPrimaryMenuContainer = styled('div', ({
|
|
129
135
|
$theme
|
|
130
136
|
}) => {
|
|
@@ -141,6 +147,7 @@ export const StyledPrimaryMenuContainer = styled('div', ({
|
|
|
141
147
|
};
|
|
142
148
|
});
|
|
143
149
|
StyledPrimaryMenuContainer.displayName = "StyledPrimaryMenuContainer";
|
|
150
|
+
StyledPrimaryMenuContainer.displayName = 'StyledPrimaryMenuContainer';
|
|
144
151
|
export const StyledMainMenuItem = styled('div', props => {
|
|
145
152
|
const {
|
|
146
153
|
$active,
|
|
@@ -186,6 +193,7 @@ export const StyledMainMenuItem = styled('div', props => {
|
|
|
186
193
|
};
|
|
187
194
|
});
|
|
188
195
|
StyledMainMenuItem.displayName = "StyledMainMenuItem";
|
|
196
|
+
StyledMainMenuItem.displayName = 'StyledMainMenuItem';
|
|
189
197
|
export const StyledSecondaryMenuContainer = styled('div', ({
|
|
190
198
|
$theme
|
|
191
199
|
}) => {
|
|
@@ -203,7 +211,9 @@ export const StyledSecondaryMenuContainer = styled('div', ({
|
|
|
203
211
|
};
|
|
204
212
|
});
|
|
205
213
|
StyledSecondaryMenuContainer.displayName = "StyledSecondaryMenuContainer";
|
|
214
|
+
StyledSecondaryMenuContainer.displayName = 'StyledSecondaryMenuContainer';
|
|
206
215
|
export const StyledUserMenuButton = StyledButton;
|
|
216
|
+
StyledUserMenuButton.displayName = 'StyledUserMenuButton';
|
|
207
217
|
export const StyledUserMenuProfileListItem = withStyle(StyledListItem, ({
|
|
208
218
|
$theme
|
|
209
219
|
}) => ({
|
|
@@ -216,6 +226,7 @@ export const StyledUserMenuProfileListItem = withStyle(StyledListItem, ({
|
|
|
216
226
|
})
|
|
217
227
|
}));
|
|
218
228
|
StyledUserMenuProfileListItem.displayName = "StyledUserMenuProfileListItem";
|
|
229
|
+
StyledUserMenuProfileListItem.displayName = 'StyledUserMenuProfileListItem';
|
|
219
230
|
export const StyledUserProfileTileContainer = styled('div', ({
|
|
220
231
|
$theme
|
|
221
232
|
}) => {
|
|
@@ -231,6 +242,7 @@ export const StyledUserProfileTileContainer = styled('div', ({
|
|
|
231
242
|
};
|
|
232
243
|
});
|
|
233
244
|
StyledUserProfileTileContainer.displayName = "StyledUserProfileTileContainer";
|
|
245
|
+
StyledUserProfileTileContainer.displayName = 'StyledUserProfileTileContainer';
|
|
234
246
|
export const StyledUserProfilePictureContainer = styled('div', ({
|
|
235
247
|
$theme
|
|
236
248
|
}) => {
|
|
@@ -242,6 +254,8 @@ export const StyledUserProfilePictureContainer = styled('div', ({
|
|
|
242
254
|
};
|
|
243
255
|
});
|
|
244
256
|
StyledUserProfilePictureContainer.displayName = "StyledUserProfilePictureContainer";
|
|
257
|
+
StyledUserProfilePictureContainer.displayName = 'StyledUserProfilePictureContainer'; // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
258
|
+
|
|
245
259
|
export const StyledUserProfileInfoContainer = styled('div', ({
|
|
246
260
|
$theme
|
|
247
261
|
}) => {
|
|
@@ -251,12 +265,15 @@ export const StyledUserProfileInfoContainer = styled('div', ({
|
|
|
251
265
|
};
|
|
252
266
|
});
|
|
253
267
|
StyledUserProfileInfoContainer.displayName = "StyledUserProfileInfoContainer";
|
|
268
|
+
StyledUserProfileInfoContainer.displayName = 'StyledUserProfileInfoContainer'; // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
269
|
+
|
|
254
270
|
export const StyledDesktopMenuContainer = styled('div', ({
|
|
255
271
|
$theme
|
|
256
272
|
}) => {
|
|
257
273
|
return {};
|
|
258
274
|
});
|
|
259
275
|
StyledDesktopMenuContainer.displayName = "StyledDesktopMenuContainer";
|
|
276
|
+
StyledDesktopMenuContainer.displayName = 'StyledDesktopMenuContainer';
|
|
260
277
|
export const StyledDesktopMenu = styled('div', ({
|
|
261
278
|
$theme
|
|
262
279
|
}) => {
|
|
@@ -270,4 +287,5 @@ export const StyledDesktopMenu = styled('div', ({
|
|
|
270
287
|
paddingBlockEnd: '18px'
|
|
271
288
|
};
|
|
272
289
|
});
|
|
273
|
-
StyledDesktopMenu.displayName = "StyledDesktopMenu";
|
|
290
|
+
StyledDesktopMenu.displayName = "StyledDesktopMenu";
|
|
291
|
+
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 react/display-name
|
|
21
|
+
const MENU_ITEM_WIDTH = '275px'; // eslint-disable-next-line @typescript-eslint/no-explicit-any,react/display-name
|
|
22
22
|
|
|
23
23
|
const UserMenuListItem = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
24
24
|
const {
|
|
@@ -28,7 +28,8 @@ const aspectRatioBoxStyle = ({
|
|
|
28
28
|
display: 'table',
|
|
29
29
|
clear: 'both'
|
|
30
30
|
}
|
|
31
|
-
});
|
|
31
|
+
}); // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
32
|
+
|
|
32
33
|
|
|
33
34
|
const AspectRatioBox = ({
|
|
34
35
|
forwardedRef,
|
|
@@ -44,6 +45,7 @@ const AspectRatioBox = ({
|
|
|
44
45
|
const blockOverrides = mergeOverrides(aspectRatioBoxOverrides, overrides);
|
|
45
46
|
return /*#__PURE__*/React.createElement(Block // coerced to any because of how react components are typed.
|
|
46
47
|
// cannot guarantee an html element
|
|
48
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
47
49
|
, _extends({
|
|
48
50
|
ref: forwardedRef,
|
|
49
51
|
overrides: blockOverrides,
|
|
@@ -31,6 +31,7 @@ export const Avatar = styled('img', props => {
|
|
|
31
31
|
};
|
|
32
32
|
});
|
|
33
33
|
Avatar.displayName = "Avatar";
|
|
34
|
+
Avatar.displayName = 'Avatar';
|
|
34
35
|
export const Initials = styled('div', props => ({ ...props.$theme.typography.font300,
|
|
35
36
|
color: props.$theme.colors.mono100,
|
|
36
37
|
alignItems: 'center',
|
|
@@ -39,6 +40,7 @@ export const Initials = styled('div', props => ({ ...props.$theme.typography.fon
|
|
|
39
40
|
height: '100%'
|
|
40
41
|
}));
|
|
41
42
|
Initials.displayName = "Initials";
|
|
43
|
+
Initials.displayName = 'Initials';
|
|
42
44
|
export const Root = styled('div', props => {
|
|
43
45
|
const {
|
|
44
46
|
$didImageFailToLoad
|
|
@@ -58,4 +60,5 @@ export const Root = styled('div', props => {
|
|
|
58
60
|
width: $didImageFailToLoad ? themedSize : null
|
|
59
61
|
};
|
|
60
62
|
});
|
|
61
|
-
Root.displayName = "Root";
|
|
63
|
+
Root.displayName = "Root";
|
|
64
|
+
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';
|
|
8
8
|
import { COLOR, SHAPE, ROLE, PLACEMENT, HIERARCHY } from './constants';
|
|
9
9
|
|
|
10
10
|
function getColorStyles({
|
|
@@ -15,7 +15,7 @@ function getColorStyles({
|
|
|
15
15
|
const COLOR_STYLES = {
|
|
16
16
|
[HIERARCHY.primary]: {
|
|
17
17
|
[COLOR.accent]: {
|
|
18
|
-
color: $theme.colors.
|
|
18
|
+
color: $theme.colors.contentOnColor,
|
|
19
19
|
backgroundColor: $theme.colors.backgroundAccent
|
|
20
20
|
},
|
|
21
21
|
[COLOR.primary]: {
|
|
@@ -23,15 +23,15 @@ function getColorStyles({
|
|
|
23
23
|
backgroundColor: $theme.colors.backgroundInversePrimary
|
|
24
24
|
},
|
|
25
25
|
[COLOR.positive]: {
|
|
26
|
-
color: $theme.colors.
|
|
26
|
+
color: $theme.colors.contentOnColor,
|
|
27
27
|
backgroundColor: $theme.colors.backgroundPositive
|
|
28
28
|
},
|
|
29
29
|
[COLOR.negative]: {
|
|
30
|
-
color: $theme.colors.
|
|
30
|
+
color: $theme.colors.contentOnColor,
|
|
31
31
|
backgroundColor: $theme.colors.backgroundNegative
|
|
32
32
|
},
|
|
33
33
|
[COLOR.warning]: {
|
|
34
|
-
color: $theme.colors.
|
|
34
|
+
color: $theme.colors.contentOnColorInverse,
|
|
35
35
|
backgroundColor: $theme.colors.backgroundWarning
|
|
36
36
|
}
|
|
37
37
|
},
|
|
@@ -179,6 +179,7 @@ export const StyledRoot = styled('div', () => {
|
|
|
179
179
|
};
|
|
180
180
|
});
|
|
181
181
|
StyledRoot.displayName = "StyledRoot";
|
|
182
|
+
StyledRoot.displayName = 'StyledRoot';
|
|
182
183
|
const TOP_PLACEMENTS = [PLACEMENT.topLeft, PLACEMENT.topRight, PLACEMENT.topLeftEdge, PLACEMENT.topEdge, PLACEMENT.topRightEdge, PLACEMENT.leftTopEdge, PLACEMENT.rightTopEdge];
|
|
183
184
|
const BOTTOM_PLACEMENTS = [PLACEMENT.bottomLeft, PLACEMENT.bottomRight, PLACEMENT.bottomLeftEdge, PLACEMENT.bottomEdge, PLACEMENT.bottomRightEdge, PLACEMENT.leftBottomEdge, PLACEMENT.rightBottomEdge];
|
|
184
185
|
const LEFT_PLACEMENTS = [PLACEMENT.topLeft, PLACEMENT.topLeftEdge, PLACEMENT.topEdge, PLACEMENT.bottomLeft, PLACEMENT.bottomLeftEdge, PLACEMENT.bottomEdge, PLACEMENT.leftTopEdge, PLACEMENT.leftBottomEdge];
|
|
@@ -226,6 +227,7 @@ export const StyledPositioner = styled('div', ({
|
|
|
226
227
|
};
|
|
227
228
|
});
|
|
228
229
|
StyledPositioner.displayName = "StyledPositioner";
|
|
230
|
+
StyledPositioner.displayName = 'StyledPositioner';
|
|
229
231
|
export const StyledBadge = styled('div', ({
|
|
230
232
|
$theme,
|
|
231
233
|
$shape = SHAPE.rectangle,
|
|
@@ -251,6 +253,7 @@ export const StyledBadge = styled('div', ({
|
|
|
251
253
|
};
|
|
252
254
|
});
|
|
253
255
|
StyledBadge.displayName = "StyledBadge";
|
|
256
|
+
StyledBadge.displayName = 'StyledBadge';
|
|
254
257
|
export const StyledNotificationCircle = styled('div', ({
|
|
255
258
|
$theme,
|
|
256
259
|
$color = COLOR.accent,
|
|
@@ -273,6 +276,7 @@ export const StyledNotificationCircle = styled('div', ({
|
|
|
273
276
|
};
|
|
274
277
|
});
|
|
275
278
|
StyledNotificationCircle.displayName = "StyledNotificationCircle";
|
|
279
|
+
StyledNotificationCircle.displayName = 'StyledNotificationCircle';
|
|
276
280
|
export const StyledHintDot = styled('div', ({
|
|
277
281
|
$theme,
|
|
278
282
|
$color = COLOR.accent,
|
|
@@ -293,4 +297,5 @@ export const StyledHintDot = styled('div', ({
|
|
|
293
297
|
})
|
|
294
298
|
};
|
|
295
299
|
});
|
|
296
|
-
StyledHintDot.displayName = "StyledHintDot";
|
|
300
|
+
StyledHintDot.displayName = "StyledHintDot";
|
|
301
|
+
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';
|
|
8
8
|
import { ACTION_POSITION } from './constants';
|
|
9
9
|
export const StyledRoot = styled('div', ({
|
|
10
10
|
$theme,
|
|
@@ -24,10 +24,14 @@ export const StyledRoot = styled('div', ({
|
|
|
24
24
|
gridColumnGap: $theme.sizing.scale600,
|
|
25
25
|
gridTemplateColumns: 'min-content auto min-content',
|
|
26
26
|
gridTemplateRows: 'auto min-content',
|
|
27
|
-
|
|
27
|
+
marginTop: $theme.sizing.scale600,
|
|
28
|
+
marginRight: $theme.sizing.scale600,
|
|
29
|
+
marginBottom: $theme.sizing.scale600,
|
|
30
|
+
marginLeft: $theme.sizing.scale600
|
|
28
31
|
};
|
|
29
32
|
});
|
|
30
33
|
StyledRoot.displayName = "StyledRoot";
|
|
34
|
+
StyledRoot.displayName = 'StyledRoot';
|
|
31
35
|
export const StyledLeadingContent = styled('div', ({
|
|
32
36
|
$theme,
|
|
33
37
|
$includesArtwork
|
|
@@ -39,6 +43,7 @@ export const StyledLeadingContent = styled('div', ({
|
|
|
39
43
|
};
|
|
40
44
|
});
|
|
41
45
|
StyledLeadingContent.displayName = "StyledLeadingContent";
|
|
46
|
+
StyledLeadingContent.displayName = 'StyledLeadingContent';
|
|
42
47
|
export const StyledMessageContent = styled('div', ({
|
|
43
48
|
$theme,
|
|
44
49
|
$actionPosition
|
|
@@ -52,6 +57,8 @@ export const StyledMessageContent = styled('div', ({
|
|
|
52
57
|
};
|
|
53
58
|
});
|
|
54
59
|
StyledMessageContent.displayName = "StyledMessageContent";
|
|
60
|
+
StyledMessageContent.displayName = 'StyledMessageContent'; // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
61
|
+
|
|
55
62
|
export const StyledTrailingContent = styled('div', ({
|
|
56
63
|
$theme
|
|
57
64
|
}) => {
|
|
@@ -62,6 +69,7 @@ export const StyledTrailingContent = styled('div', ({
|
|
|
62
69
|
};
|
|
63
70
|
});
|
|
64
71
|
StyledTrailingContent.displayName = "StyledTrailingContent";
|
|
72
|
+
StyledTrailingContent.displayName = 'StyledTrailingContent';
|
|
65
73
|
export const StyledBelowContent = styled('div', ({
|
|
66
74
|
$theme,
|
|
67
75
|
$actionPosition
|
|
@@ -73,18 +81,21 @@ export const StyledBelowContent = styled('div', ({
|
|
|
73
81
|
};
|
|
74
82
|
});
|
|
75
83
|
StyledBelowContent.displayName = "StyledBelowContent";
|
|
84
|
+
StyledBelowContent.displayName = 'StyledBelowContent';
|
|
76
85
|
export const StyledTitle = styled('div', ({
|
|
77
86
|
$theme
|
|
78
87
|
}) => {
|
|
79
88
|
return $theme.typography.LabelMedium;
|
|
80
89
|
});
|
|
81
90
|
StyledTitle.displayName = "StyledTitle";
|
|
91
|
+
StyledTitle.displayName = 'StyledTitle';
|
|
82
92
|
export const StyledMessage = styled('div', ({
|
|
83
93
|
$theme
|
|
84
94
|
}) => {
|
|
85
95
|
return $theme.typography.ParagraphMedium;
|
|
86
96
|
});
|
|
87
97
|
StyledMessage.displayName = "StyledMessage";
|
|
98
|
+
StyledMessage.displayName = 'StyledMessage';
|
|
88
99
|
export const StyledTrailingButtonContainer = styled('div', ({
|
|
89
100
|
$theme
|
|
90
101
|
}) => {
|
|
@@ -95,6 +106,7 @@ export const StyledTrailingButtonContainer = styled('div', ({
|
|
|
95
106
|
};
|
|
96
107
|
});
|
|
97
108
|
StyledTrailingButtonContainer.displayName = "StyledTrailingButtonContainer";
|
|
109
|
+
StyledTrailingButtonContainer.displayName = 'StyledTrailingButtonContainer';
|
|
98
110
|
export const StyledTrailingIconButton = styled('button', ({
|
|
99
111
|
$theme,
|
|
100
112
|
$nested
|
|
@@ -119,4 +131,5 @@ export const StyledTrailingIconButton = styled('button', ({
|
|
|
119
131
|
}
|
|
120
132
|
};
|
|
121
133
|
});
|
|
122
|
-
StyledTrailingIconButton.displayName = "StyledTrailingIconButton";
|
|
134
|
+
StyledTrailingIconButton.displayName = "StyledTrailingIconButton";
|
|
135
|
+
StyledTrailingIconButton.displayName = 'StyledTrailingIconButton';
|
package/es/block/block.js
CHANGED
|
@@ -85,6 +85,7 @@ 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
|
|
88
89
|
, _extends({
|
|
89
90
|
ref: forwardedRef,
|
|
90
91
|
$as: as,
|
|
@@ -155,7 +156,8 @@ const Block = ({
|
|
|
155
156
|
$whiteSpace: whiteSpace,
|
|
156
157
|
"data-baseweb": "block"
|
|
157
158
|
}, restProps, baseBlockProps), children);
|
|
158
|
-
};
|
|
159
|
+
}; // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
160
|
+
|
|
159
161
|
|
|
160
162
|
const BlockComponent = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(Block, _extends({}, props, {
|
|
161
163
|
forwardedRef: ref
|
|
@@ -14,6 +14,7 @@ export const StyledRoot = styled('nav', ({
|
|
|
14
14
|
};
|
|
15
15
|
});
|
|
16
16
|
StyledRoot.displayName = "StyledRoot";
|
|
17
|
+
StyledRoot.displayName = 'StyledRoot';
|
|
17
18
|
export const StyledList = styled('ol', ({
|
|
18
19
|
$theme
|
|
19
20
|
}) => {
|
|
@@ -25,6 +26,7 @@ export const StyledList = styled('ol', ({
|
|
|
25
26
|
};
|
|
26
27
|
});
|
|
27
28
|
StyledList.displayName = "StyledList";
|
|
29
|
+
StyledList.displayName = 'StyledList';
|
|
28
30
|
export const StyledListItem = styled('li', ({
|
|
29
31
|
$theme
|
|
30
32
|
}) => {
|
|
@@ -34,6 +36,7 @@ export const StyledListItem = styled('li', ({
|
|
|
34
36
|
};
|
|
35
37
|
});
|
|
36
38
|
StyledListItem.displayName = "StyledListItem";
|
|
39
|
+
StyledListItem.displayName = 'StyledListItem';
|
|
37
40
|
export const StyledSeparator = styled('div', ({
|
|
38
41
|
$theme
|
|
39
42
|
}) => {
|
|
@@ -45,4 +48,5 @@ export const StyledSeparator = styled('div', ({
|
|
|
45
48
|
verticalAlign: 'middle'
|
|
46
49
|
};
|
|
47
50
|
});
|
|
48
|
-
StyledSeparator.displayName = "StyledSeparator";
|
|
51
|
+
StyledSeparator.displayName = "StyledSeparator";
|
|
52
|
+
StyledSeparator.displayName = 'StyledSeparator';
|
package/es/button/button.js
CHANGED
|
@@ -59,16 +59,24 @@ class Button extends React.Component {
|
|
|
59
59
|
render() {
|
|
60
60
|
const {
|
|
61
61
|
overrides = {},
|
|
62
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
62
63
|
size,
|
|
64
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
63
65
|
kind,
|
|
66
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
64
67
|
shape,
|
|
65
68
|
isLoading,
|
|
69
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
66
70
|
isSelected,
|
|
67
71
|
// Removing from restProps
|
|
72
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
68
73
|
startEnhancer,
|
|
74
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
69
75
|
endEnhancer,
|
|
76
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
70
77
|
children,
|
|
71
78
|
forwardedRef,
|
|
79
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
72
80
|
colors,
|
|
73
81
|
...restProps
|
|
74
82
|
} = this.props; // Get overrides
|
|
@@ -79,6 +79,7 @@ export const BaseButton = styled('button', ({
|
|
|
79
79
|
})
|
|
80
80
|
}));
|
|
81
81
|
BaseButton.displayName = "BaseButton";
|
|
82
|
+
BaseButton.displayName = 'BaseButton';
|
|
82
83
|
export const EndEnhancer = styled('div', ({
|
|
83
84
|
$theme
|
|
84
85
|
}) => {
|
|
@@ -89,6 +90,7 @@ export const EndEnhancer = styled('div', ({
|
|
|
89
90
|
};
|
|
90
91
|
});
|
|
91
92
|
EndEnhancer.displayName = "EndEnhancer";
|
|
93
|
+
EndEnhancer.displayName = 'EndEnhancer';
|
|
92
94
|
export const StartEnhancer = styled('div', ({
|
|
93
95
|
$theme
|
|
94
96
|
}) => {
|
|
@@ -99,6 +101,7 @@ export const StartEnhancer = styled('div', ({
|
|
|
99
101
|
};
|
|
100
102
|
});
|
|
101
103
|
StartEnhancer.displayName = "StartEnhancer";
|
|
104
|
+
StartEnhancer.displayName = 'StartEnhancer';
|
|
102
105
|
export const LoadingSpinnerContainer = styled('div', ({
|
|
103
106
|
$theme,
|
|
104
107
|
$size
|
|
@@ -122,6 +125,7 @@ export const LoadingSpinnerContainer = styled('div', ({
|
|
|
122
125
|
};
|
|
123
126
|
});
|
|
124
127
|
LoadingSpinnerContainer.displayName = "LoadingSpinnerContainer";
|
|
128
|
+
LoadingSpinnerContainer.displayName = 'LoadingSpinnerContainer';
|
|
125
129
|
export const LoadingSpinner = styled('span', ({
|
|
126
130
|
$theme,
|
|
127
131
|
$kind,
|
|
@@ -181,6 +185,7 @@ export const LoadingSpinner = styled('span', ({
|
|
|
181
185
|
};
|
|
182
186
|
});
|
|
183
187
|
LoadingSpinner.displayName = "LoadingSpinner";
|
|
188
|
+
LoadingSpinner.displayName = 'LoadingSpinner';
|
|
184
189
|
|
|
185
190
|
function getLoadingSpinnerColors({
|
|
186
191
|
$theme,
|
|
@@ -239,6 +244,8 @@ function getBorderRadiiStyles({
|
|
|
239
244
|
}
|
|
240
245
|
} else if ($shape === SHAPE.circle || $shape === SHAPE.round) {
|
|
241
246
|
value = '50%';
|
|
247
|
+
} else if ($size === SIZE.mini) {
|
|
248
|
+
value = $theme.borders.buttonBorderRadiusMini;
|
|
242
249
|
}
|
|
243
250
|
|
|
244
251
|
return {
|
|
@@ -10,6 +10,7 @@ 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
|
|
13
14
|
const {
|
|
14
15
|
children,
|
|
15
16
|
initialState,
|
|
@@ -14,7 +14,8 @@ function isSelectedDefined(selected) {
|
|
|
14
14
|
return Array.isArray(selected) || typeof selected === 'number';
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
function defaultStateReducer(type, nextState,
|
|
17
|
+
function defaultStateReducer(type, nextState, // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
18
|
+
currentState) {
|
|
18
19
|
return nextState;
|
|
19
20
|
}
|
|
20
21
|
|
|
@@ -72,6 +73,7 @@ export default class StatefulContainer extends React.Component {
|
|
|
72
73
|
}
|
|
73
74
|
|
|
74
75
|
render() {
|
|
76
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
75
77
|
const {
|
|
76
78
|
initialState,
|
|
77
79
|
stateReducer,
|
package/es/card/index.js
CHANGED
|
@@ -7,4 +7,5 @@ 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 */
|
|
10
|
+
/** @deprecated To be removed in future versions */
|
|
11
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|