baseui 0.0.0-alpha-8ab2335 → 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/accordion/types.d.ts +2 -2
- 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/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 +1 -3
- package/aspect-ratio-box/types.d.ts +1 -1
- package/avatar/styled-components.js +1 -4
- package/badge/styled-components.js +11 -16
- 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 +12 -25
- package/banner/types.d.ts +15 -15
- package/banner/types.js.flow +11 -13
- package/block/block.js +1 -3
- package/block/styled-components.js +1 -2
- package/block/types.d.ts +4 -3
- package/breadcrumbs/styled-components.js +2 -7
- package/button/styled-components.js +0 -7
- package/button/styled-components.js.flow +0 -2
- package/button/types.d.ts +5 -4
- 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/button-group/types.d.ts +5 -4
- package/card/images.d.ts +2 -0
- package/card/images.js +17 -0
- package/card/images.js.flow +18 -0
- package/card/styled-components.js +4 -11
- package/checkbox/styled-components.js +4 -10
- package/checkbox/styled-components.js.flow +1 -1
- package/checkbox/types.d.ts +37 -36
- package/combobox/combobox.js +71 -78
- package/combobox/styled-components.js +1 -5
- package/combobox/types.d.ts +5 -4
- 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 +4 -5
- package/data-table/stateful-container.js +1 -2
- package/data-table/stateful-data-table.js +4 -4
- package/data-table/types.d.ts +5 -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/index.d.ts +1 -1
- package/datepicker/index.js +0 -7
- package/datepicker/index.js.flow +1 -1
- 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/types.d.ts +2 -2
- package/datepicker/utils/date-helpers.js +1 -2
- package/datepicker/utils/index.js +1 -2
- package/divider/styled-components.js +3 -4
- package/divider/types.d.ts +1 -1
- package/dnd-list/stateful-list-container.js +0 -1
- package/dnd-list/styled-components.js +0 -7
- package/dnd-list/types.d.ts +2 -2
- 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/drawer/types.d.ts +2 -2
- 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 +6 -11
- package/es/banner/styled-components.js +3 -16
- package/es/block/block.js +1 -3
- package/es/block/styled-components.js +1 -2
- package/es/breadcrumbs/styled-components.js +2 -7
- package/es/button/button.js +0 -8
- package/es/button/styled-components.js +0 -7
- 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/images.js +8 -0
- 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 +4 -10
- 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 +4 -5
- 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/index.js +1 -1
- 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/file-uploader.js +78 -82
- 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/index.js +1 -1
- package/es/icon/omit-dollar-prefixed-keys.js +0 -1
- package/es/icon/styled-components.js +1 -2
- package/es/input/base-input.js +12 -9
- package/es/input/input.js +13 -9
- package/es/input/masked-input.js +2 -9
- package/es/input/stateful-container.js +0 -1
- package/es/input/styled-components.js +7 -18
- package/es/input/utils.js +0 -2
- 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 -17
- 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/index.js +1 -1
- package/es/menu/menu.js +4 -14
- package/es/menu/option-profile.js +0 -1
- package/es/menu/stateful-container.js +0 -10
- package/es/menu/styled-components.js +2 -32
- 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 +11 -9
- package/es/popover/stateful-container.js +1 -4
- 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/default-props.js +1 -1
- 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 +6 -33
- 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 +3 -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 +2 -32
- package/es/tabs-motion/tab.js +0 -1
- package/es/tabs-motion/tabs.js +6 -31
- package/es/tag/styled-components.js +1 -32
- package/es/tag/tag.js +2 -6
- package/es/textarea/styled-components.js +12 -20
- package/es/textarea/textarea.js +15 -13
- package/es/themes/dark-theme/color-component-tokens.js +1 -1
- package/es/themes/light-theme/color-component-tokens.js +1 -1
- package/es/themes/move-theme/typography.js +0 -36
- package/es/themes/shared/borders.js +3 -8
- package/es/themes/shared/typography.js +10 -10
- package/es/timezonepicker/timezone-picker.js +1 -5
- package/es/timezonepicker/tzdata.js +1 -1
- package/es/timezonepicker/update-tzdata.js +6 -11
- 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 +6 -11
- package/esm/banner/styled-components.js +3 -16
- package/esm/block/block.js +1 -3
- package/esm/block/styled-components.js +1 -2
- package/esm/breadcrumbs/styled-components.js +2 -7
- package/esm/button/styled-components.js +0 -7
- 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/images.js +8 -0
- 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 +4 -10
- 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 +4 -5
- 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/index.js +1 -1
- 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/file-uploader.js +83 -87
- 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/index.js +1 -1
- package/esm/icon/omit-dollar-prefixed-keys.js +0 -1
- package/esm/icon/styled-components.js +1 -2
- package/esm/input/base-input.js +12 -9
- package/esm/input/input.js +13 -9
- package/esm/input/masked-input.js +2 -5
- package/esm/input/stateful-container.js +0 -1
- package/esm/input/styled-components.js +7 -18
- package/esm/input/utils.js +0 -2
- 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 -17
- 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/index.js +1 -1
- package/esm/menu/menu.js +4 -16
- package/esm/menu/option-profile.js +0 -1
- package/esm/menu/stateful-container.js +0 -1
- package/esm/menu/styled-components.js +6 -38
- 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 +11 -9
- package/esm/popover/stateful-container.js +1 -4
- 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/default-props.js +1 -1
- 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 +6 -33
- 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 +3 -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 +40 -68
- package/esm/tabs-motion/tab.js +0 -1
- package/esm/tabs-motion/tabs.js +58 -87
- package/esm/tag/styled-components.js +1 -5
- package/esm/tag/tag.js +2 -4
- package/esm/textarea/styled-components.js +6 -11
- package/esm/textarea/textarea.js +15 -13
- package/esm/themes/dark-theme/color-component-tokens.js +1 -1
- package/esm/themes/light-theme/color-component-tokens.js +1 -1
- package/esm/themes/move-theme/typography.js +0 -36
- package/esm/themes/shared/borders.js +3 -8
- package/esm/themes/shared/typography.js +10 -10
- package/esm/timezonepicker/timezone-picker.js +2 -6
- package/esm/timezonepicker/tzdata.js +1 -1
- package/esm/timezonepicker/update-tzdata.js +39 -51
- 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/file-uploader.js +83 -87
- 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/flex-grid/types.d.ts +1 -1
- package/form-control/styled-components.js +1 -6
- package/form-control/types.d.ts +1 -1
- package/header-navigation/styled-components.js +1 -4
- package/heading/types.d.ts +1 -1
- package/helper/styled-components.js +1 -3
- package/helpers/overrides.js +3 -8
- package/helpers/overrides.js.flow +1 -1
- package/helpers/types.d.ts +1 -1
- package/icon/build-icons.js +2 -0
- package/icon/build-icons.js.flow +1 -0
- package/icon/index.d.ts +1 -1
- package/icon/index.js +1 -8
- package/icon/index.js.flow +1 -1
- package/icon/omit-dollar-prefixed-keys.js +0 -1
- package/icon/styled-components.js +1 -2
- package/icon/types.d.ts +1 -1
- package/input/base-input.js +12 -8
- package/input/base-input.js.flow +8 -4
- package/input/input.js +13 -9
- package/input/input.js.flow +9 -5
- package/input/masked-input.js +2 -5
- package/input/stateful-container.js +0 -1
- package/input/styled-components.js +7 -18
- package/input/styled-components.js.flow +2 -9
- package/input/types.d.ts +14 -16
- package/input/types.js.flow +0 -3
- package/input/utils.js +0 -2
- 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 +2 -23
- package/layer/types.js.flow +1 -22
- package/layout-grid/styled-components.js +0 -3
- package/layout-grid/types.d.ts +2 -2
- 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 -17
- 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 +1 -3
- package/locale/index.js +1 -4
- package/locale/tr_TR.d.ts +1 -1
- 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 +5 -33
- package/map-marker/types.js.flow +3 -37
- package/menu/index.d.ts +3 -2
- package/menu/index.js +1 -8
- package/menu/index.js.flow +0 -1
- package/menu/menu.js +3 -15
- package/menu/menu.js.flow +1 -11
- package/menu/option-profile.js +0 -1
- package/menu/stateful-container.js +0 -1
- package/menu/styled-components.d.ts +0 -1
- package/menu/styled-components.js +7 -40
- package/menu/styled-components.js.flow +0 -13
- package/menu/types.d.ts +13 -13
- package/menu/types.js.flow +0 -1
- package/modal/modal.js +4 -4
- package/modal/modal.js.flow +3 -1
- package/modal/styled-components.js +1 -8
- package/modal/types.d.ts +2 -2
- package/package.json +12 -10
- package/pagination/stateful-container.js +0 -1
- package/pagination/stateful-pagination.js +0 -1
- package/pagination/styled-components.js +1 -4
- package/pagination/types.d.ts +2 -2
- 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/phone-input/types.d.ts +6 -5
- package/pin-code/styled-components.js +1 -4
- package/pin-code/types.d.ts +2 -2
- package/popover/popover.js +11 -9
- package/popover/popover.js.flow +12 -2
- package/popover/stateful-container.js +1 -5
- package/popover/styled-components.js +9 -12
- package/popover/types.d.ts +2 -2
- package/progress-bar/progressbar-rounded.js +0 -1
- package/progress-bar/styled-components.d.ts +1 -4
- package/progress-bar/styled-components.js +2 -14
- package/progress-bar/types.d.ts +2 -2
- package/progress-steps/progress-steps.js +1 -2
- package/progress-steps/styled-components.js +19 -28
- package/radio/styled-components.js +3 -10
- package/radio/types.d.ts +20 -19
- 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/default-props.js +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 +6 -33
- package/select/styled-components.js.flow +5 -25
- package/select/types.d.ts +6 -5
- 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/side-navigation/types.d.ts +4 -4
- package/skeleton/styled-components.js +1 -3
- package/slider/slider.js +2 -4
- package/slider/styled-components.js +0 -9
- package/slider/types.d.ts +1 -1
- package/snackbar/snackbar-element.js +0 -1
- package/snackbar/styled-components.js +1 -9
- package/snackbar/types.d.ts +4 -3
- package/spinner/styled-components.js +1 -2
- package/spinner/types.d.ts +1 -1
- package/styles/__mocks__/styled.js +3 -8
- package/styles/styled.d.ts +1 -1
- package/styles/styled.js +6 -7
- package/table/styled-components.js +1 -13
- package/table/types.d.ts +2 -2
- package/table-grid/styled-components.js +1 -4
- package/table-semantic/styled-components.js +3 -20
- package/table-semantic/types.d.ts +2 -2
- package/tabs/stateful-tabs.js +0 -1
- package/tabs/styled-components.js +1 -5
- package/tabs/tabs.js +2 -4
- package/tabs/types.d.ts +2 -2
- package/tabs-motion/styled-components.d.ts +0 -5
- package/tabs-motion/styled-components.js +41 -71
- package/tabs-motion/styled-components.js.flow +0 -21
- package/tabs-motion/tab.js +0 -1
- package/tabs-motion/tabs.d.ts +1 -1
- package/tabs-motion/tabs.js +57 -87
- package/tabs-motion/tabs.js.flow +38 -69
- package/tabs-motion/types.d.ts +2 -5
- package/tabs-motion/types.js.flow +0 -3
- package/tabs-motion/utils.d.ts +1 -1
- package/tag/styled-components.js +1 -5
- package/tag/tag.js +2 -4
- package/tag/types.d.ts +5 -4
- package/textarea/styled-components.js +6 -11
- package/textarea/textarea.js +15 -13
- package/textarea/textarea.js.flow +9 -5
- package/textarea/types.d.ts +5 -6
- package/textarea/types.js.flow +1 -3
- package/themes/dark-theme/color-component-tokens.js +1 -1
- package/themes/dark-theme/color-component-tokens.js.flow +1 -1
- package/themes/light-theme/color-component-tokens.js +1 -1
- package/themes/light-theme/color-component-tokens.js.flow +1 -1
- package/themes/move-theme/typography.d.ts +0 -36
- package/themes/move-theme/typography.js +0 -36
- package/themes/move-theme/typography.js.flow +0 -12
- package/themes/shared/borders.js +3 -8
- package/themes/shared/borders.js.flow +3 -7
- package/themes/shared/typography.js +10 -10
- package/themes/shared/typography.js.flow +10 -10
- package/themes/types.d.ts +0 -3
- package/themes/types.js.flow +0 -3
- package/timezonepicker/timezone-picker.js +2 -6
- package/timezonepicker/types.d.ts +0 -1
- package/timezonepicker/types.js.flow +0 -1
- package/timezonepicker/tzdata.js +1 -1
- package/timezonepicker/update-tzdata.js +39 -51
- package/toast/styled-components.js +1 -5
- package/toast/toaster.js.flow +1 -1
- package/toast/types.d.ts +2 -2
- 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/tree-view/types.d.ts +4 -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.d.ts +1 -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 -114
- 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 -168
- 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 -184
- package/message-card/package.json +0 -4
- package/message-card/styled-components.d.ts +0 -14
- package/message-card/styled-components.js +0 -124
- package/message-card/types.d.ts +0 -27
- package/message-card/types.js +0 -5
- package/message-card/utils.d.ts +0 -1
- package/message-card/utils.js +0 -36
|
@@ -5,8 +5,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.flexGridItemStyle = exports.flexGridItemMediaQueryStyle = exports.default = void 0;
|
|
9
|
-
exports.getResponsiveValue = getResponsiveValue;
|
|
8
|
+
exports.getResponsiveValue = exports.flexGridItemStyle = exports.flexGridItemMediaQueryStyle = exports.default = void 0;
|
|
10
9
|
|
|
11
10
|
var React = _interopRequireWildcard(require("react"));
|
|
12
11
|
|
|
@@ -67,12 +66,14 @@ var flexGridItemMediaQueryStyle = function flexGridItemMediaQueryStyle(_ref) {
|
|
|
67
66
|
// Subtract .5px to avoid rounding issues on IE/Edge
|
|
68
67
|
// See https://github.com/uber/baseweb/pull/1748
|
|
69
68
|
width: "calc(".concat(widthCalc, " - .5px)")
|
|
70
|
-
}, _defineProperty(_objectSpread2, marginDirection, colGapQuantity && (
|
|
69
|
+
}, _defineProperty(_objectSpread2, marginDirection, colGapQuantity && ( //flowlint-line sketchy-number-and:off
|
|
70
|
+
(itemIndex + 1) % colCount !== 0 ? colGap : 0)), _defineProperty(_objectSpread2, "marginBottom", rowGapQuantity && ( //flowlint-line sketchy-number-and:off
|
|
71
|
+
~~(itemIndex / colCount) !== ~~((itemCount - 1) / colCount) ? rowGap : 0)), _objectSpread2), itemIndex === itemCount - 1 && (itemIndex + 1) % colCount !== 0 ? _defineProperty({}, marginDirection, "calc(".concat(colCount - itemIndex % colCount - 1, " * (").concat(colGap, " + ").concat(widthCalc, "))")) : {}));
|
|
71
72
|
};
|
|
72
73
|
|
|
73
74
|
exports.flexGridItemMediaQueryStyle = flexGridItemMediaQueryStyle;
|
|
74
75
|
|
|
75
|
-
function getResponsiveValue(responsive, i) {
|
|
76
|
+
var getResponsiveValue = function getResponsiveValue(responsive, i) {
|
|
76
77
|
if (!responsive) {
|
|
77
78
|
return null;
|
|
78
79
|
}
|
|
@@ -82,7 +83,9 @@ function getResponsiveValue(responsive, i) {
|
|
|
82
83
|
}
|
|
83
84
|
|
|
84
85
|
return responsive[i] || responsive[responsive.length - 1];
|
|
85
|
-
}
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
exports.getResponsiveValue = getResponsiveValue;
|
|
86
89
|
|
|
87
90
|
var flexGridItemStyle = function flexGridItemStyle(_ref3) {
|
|
88
91
|
var $flexGridColumnCount = _ref3.$flexGridColumnCount,
|
|
@@ -161,7 +164,6 @@ var FlexGridItem = function FlexGridItem(_ref4) {
|
|
|
161
164
|
var blockOverrides = overrides ? (0, _overrides.mergeOverrides)(flexGridItemOverrides, overrides) : flexGridItemOverrides;
|
|
162
165
|
return /*#__PURE__*/React.createElement(_block.Block // coerced to any because of how react components are typed.
|
|
163
166
|
// cannot guarantee an html element
|
|
164
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
165
167
|
, _extends({
|
|
166
168
|
ref: forwardedRef,
|
|
167
169
|
as: as,
|
package/flex-grid/flex-grid.js
CHANGED
|
@@ -90,13 +90,9 @@ var FlexGrid = function FlexGrid(_ref2) {
|
|
|
90
90
|
};
|
|
91
91
|
|
|
92
92
|
var FlexGridComponent = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
93
|
-
return (
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
React.createElement(FlexGrid, _extends({}, props, {
|
|
97
|
-
forwardedRef: ref
|
|
98
|
-
}))
|
|
99
|
-
);
|
|
93
|
+
return /*#__PURE__*/React.createElement(FlexGrid, _extends({}, props, {
|
|
94
|
+
forwardedRef: ref
|
|
95
|
+
}));
|
|
100
96
|
});
|
|
101
97
|
FlexGridComponent.displayName = 'FlexGrid';
|
|
102
98
|
var _default = FlexGridComponent;
|
package/flex-grid/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BlockProps, Responsive, Scale } from '../block';
|
|
2
|
-
import
|
|
2
|
+
import { ElementType } from 'react';
|
|
3
3
|
export declare type FlexGridProps<T extends ElementType = ElementType> = {
|
|
4
4
|
/** Number of equal-width columns to allow for */
|
|
5
5
|
flexGridColumnCount?: Responsive<number>;
|
|
@@ -30,7 +30,6 @@ var Label = (0, _styles.styled)('label', function (props) {
|
|
|
30
30
|
});
|
|
31
31
|
exports.Label = Label;
|
|
32
32
|
Label.displayName = "Label";
|
|
33
|
-
Label.displayName = 'Label';
|
|
34
33
|
var LabelContainer = (0, _styles.styled)('span', function (_ref) {
|
|
35
34
|
var sizing = _ref.$theme.sizing;
|
|
36
35
|
return {
|
|
@@ -44,7 +43,6 @@ var LabelContainer = (0, _styles.styled)('span', function (_ref) {
|
|
|
44
43
|
});
|
|
45
44
|
exports.LabelContainer = LabelContainer;
|
|
46
45
|
LabelContainer.displayName = "LabelContainer";
|
|
47
|
-
LabelContainer.displayName = 'LabelContainer';
|
|
48
46
|
var LabelEndEnhancer = (0, _styles.styled)('span', function (_ref2) {
|
|
49
47
|
var $disabled = _ref2.$disabled,
|
|
50
48
|
$counterError = _ref2.$counterError,
|
|
@@ -59,7 +57,6 @@ var LabelEndEnhancer = (0, _styles.styled)('span', function (_ref2) {
|
|
|
59
57
|
});
|
|
60
58
|
exports.LabelEndEnhancer = LabelEndEnhancer;
|
|
61
59
|
LabelEndEnhancer.displayName = "LabelEndEnhancer";
|
|
62
|
-
LabelEndEnhancer.displayName = 'LabelEndEnhancer';
|
|
63
60
|
var Caption = (0, _styles.styled)('div', function (props) {
|
|
64
61
|
var $error = props.$error,
|
|
65
62
|
$positive = props.$positive,
|
|
@@ -89,7 +86,6 @@ var Caption = (0, _styles.styled)('div', function (props) {
|
|
|
89
86
|
});
|
|
90
87
|
exports.Caption = Caption;
|
|
91
88
|
Caption.displayName = "Caption";
|
|
92
|
-
Caption.displayName = 'Caption';
|
|
93
89
|
var ControlContainer = (0, _styles.styled)('div', function (props) {
|
|
94
90
|
var sizing = props.$theme.sizing;
|
|
95
91
|
return {
|
|
@@ -98,5 +94,4 @@ var ControlContainer = (0, _styles.styled)('div', function (props) {
|
|
|
98
94
|
};
|
|
99
95
|
});
|
|
100
96
|
exports.ControlContainer = ControlContainer;
|
|
101
|
-
ControlContainer.displayName = "ControlContainer";
|
|
102
|
-
ControlContainer.displayName = 'ControlContainer';
|
|
97
|
+
ControlContainer.displayName = "ControlContainer";
|
package/form-control/types.d.ts
CHANGED
|
@@ -32,7 +32,6 @@ var Root = (0, _styles.styled)('nav', function (props) {
|
|
|
32
32
|
});
|
|
33
33
|
exports.Root = Root;
|
|
34
34
|
Root.displayName = "Root";
|
|
35
|
-
Root.displayName = 'Root';
|
|
36
35
|
var NavigationItem = (0, _styles.styled)('li', function (props) {
|
|
37
36
|
var $theme = props.$theme;
|
|
38
37
|
var scale800 = $theme.sizing.scale800;
|
|
@@ -43,7 +42,6 @@ var NavigationItem = (0, _styles.styled)('li', function (props) {
|
|
|
43
42
|
});
|
|
44
43
|
exports.NavigationItem = NavigationItem;
|
|
45
44
|
NavigationItem.displayName = "NavigationItem";
|
|
46
|
-
NavigationItem.displayName = 'NavigationItem';
|
|
47
45
|
var NavigationList = (0, _styles.styled)('ul', function (props) {
|
|
48
46
|
var $align = props.$align,
|
|
49
47
|
$theme = props.$theme;
|
|
@@ -72,5 +70,4 @@ var NavigationList = (0, _styles.styled)('ul', function (props) {
|
|
|
72
70
|
};
|
|
73
71
|
});
|
|
74
72
|
exports.NavigationList = NavigationList;
|
|
75
|
-
NavigationList.displayName = "NavigationList";
|
|
76
|
-
NavigationList.displayName = 'NavigationList';
|
|
73
|
+
NavigationList.displayName = "NavigationList";
|
package/heading/types.d.ts
CHANGED
|
@@ -202,10 +202,8 @@ var StyledBody = (0, _styles.styled)('div', function (props) {
|
|
|
202
202
|
});
|
|
203
203
|
exports.StyledBody = StyledBody;
|
|
204
204
|
StyledBody.displayName = "StyledBody";
|
|
205
|
-
StyledBody.displayName = 'StyledBody';
|
|
206
205
|
var StyledArrow = (0, _styles.styled)('div', function (props) {
|
|
207
206
|
return _objectSpread({}, clampArrowStyle(props.$arrowOffset, props.$placement, props.$theme.colors.backgroundPrimary));
|
|
208
207
|
});
|
|
209
208
|
exports.StyledArrow = StyledArrow;
|
|
210
|
-
StyledArrow.displayName = "StyledArrow";
|
|
211
|
-
StyledArrow.displayName = 'StyledArrow';
|
|
209
|
+
StyledArrow.displayName = "StyledArrow";
|
package/helpers/overrides.js
CHANGED
|
@@ -37,7 +37,6 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
37
37
|
/**
|
|
38
38
|
* Given an override argument, returns the component implementation override if it exists
|
|
39
39
|
*/
|
|
40
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
41
40
|
function getOverride(_override) {
|
|
42
41
|
if ((0, _reactIs.isValidElementType)(_override)) {
|
|
43
42
|
return _override;
|
|
@@ -47,7 +46,6 @@ function getOverride(_override) {
|
|
|
47
46
|
if (_override && _typeof(_override) === 'object') {
|
|
48
47
|
// Remove this 'any' once this flow issue is fixed:
|
|
49
48
|
// https://github.com/facebook/flow/issues/6666
|
|
50
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
51
49
|
return _override.component;
|
|
52
50
|
} // null/undefined
|
|
53
51
|
|
|
@@ -87,13 +85,11 @@ function getOverrideProps(_override) {
|
|
|
87
85
|
function toObjectOverride(_override) {
|
|
88
86
|
if ((0, _reactIs.isValidElementType)(_override)) {
|
|
89
87
|
return {
|
|
90
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
91
88
|
component: _override
|
|
92
89
|
};
|
|
93
90
|
} // Flow can't figure out that typeof 'function' above will
|
|
94
91
|
// catch React.StatelessFunctionalComponent
|
|
95
92
|
// (probably related to https://github.com/facebook/flow/issues/6666)
|
|
96
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
97
93
|
|
|
98
94
|
|
|
99
95
|
return _override || {};
|
|
@@ -101,12 +97,9 @@ function toObjectOverride(_override) {
|
|
|
101
97
|
/**
|
|
102
98
|
* Get a convenient override array that will always have [component, props]
|
|
103
99
|
*/
|
|
104
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
105
100
|
|
|
106
101
|
|
|
107
|
-
function getOverrides(
|
|
108
|
-
_override, // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
109
|
-
defaultComponent) {
|
|
102
|
+
function getOverrides(_override, defaultComponent) {
|
|
110
103
|
var Component = getOverride(_override) || defaultComponent;
|
|
111
104
|
|
|
112
105
|
if (_override && _typeof(_override) === 'object' && typeof _override.props === 'function') {
|
|
@@ -133,6 +126,8 @@ defaultComponent) {
|
|
|
133
126
|
var props = getOverrideProps(_override);
|
|
134
127
|
return [Component, props];
|
|
135
128
|
}
|
|
129
|
+
/* flowlint unclear-type:error */
|
|
130
|
+
|
|
136
131
|
/**
|
|
137
132
|
* Merges two overrides objects – this is useful if you want to inject your own
|
|
138
133
|
* overrides into a child component, but also accept further overrides from
|
|
@@ -5,7 +5,7 @@ This source code is licensed under the MIT license found in the
|
|
|
5
5
|
LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
// @flow
|
|
8
|
-
|
|
8
|
+
/* eslint-disable cup/no-undef */
|
|
9
9
|
import * as React from 'react';
|
|
10
10
|
import { isValidElementType } from 'react-is';
|
|
11
11
|
import deepMerge from '../utils/deep-merge.js';
|
package/helpers/types.d.ts
CHANGED
package/icon/build-icons.js
CHANGED
package/icon/build-icons.js.flow
CHANGED
|
@@ -7,6 +7,7 @@ This source code is licensed under the MIT license found in the
|
|
|
7
7
|
LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
+
/* eslint-disable flowtype/require-valid-file-annotation */
|
|
10
11
|
/* eslint-env node*/
|
|
11
12
|
const fs = require('fs');
|
|
12
13
|
const path = require('path');
|
package/icon/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { StyledComponentArgs } from './types';
|
|
2
2
|
export { default as Icon } from './icon';
|
|
3
|
-
export { Svg as StyledSvg
|
|
3
|
+
export { Svg as StyledSvg } from './styled-components';
|
|
4
4
|
export * from './icon-exports';
|
|
5
5
|
export * from './types';
|
|
6
6
|
/** @deprecated use StyledComponentArgs instead. To be removed in future versions.*/
|
package/icon/index.js
CHANGED
|
@@ -5,8 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
var _exportNames = {
|
|
7
7
|
Icon: true,
|
|
8
|
-
StyledSvg: true
|
|
9
|
-
getSvgStyles: true
|
|
8
|
+
StyledSvg: true
|
|
10
9
|
};
|
|
11
10
|
Object.defineProperty(exports, "Icon", {
|
|
12
11
|
enumerable: true,
|
|
@@ -20,12 +19,6 @@ Object.defineProperty(exports, "StyledSvg", {
|
|
|
20
19
|
return _styledComponents.Svg;
|
|
21
20
|
}
|
|
22
21
|
});
|
|
23
|
-
Object.defineProperty(exports, "getSvgStyles", {
|
|
24
|
-
enumerable: true,
|
|
25
|
-
get: function get() {
|
|
26
|
-
return _styledComponents.getSvgStyles;
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
22
|
|
|
30
23
|
var _icon = _interopRequireDefault(require("./icon"));
|
|
31
24
|
|
package/icon/index.js.flow
CHANGED
|
@@ -6,7 +6,7 @@ LICENSE file in the root directory of this source tree.
|
|
|
6
6
|
*/
|
|
7
7
|
// @flow
|
|
8
8
|
export { default as Icon } from './icon.js';
|
|
9
|
-
export { Svg as StyledSvg
|
|
9
|
+
export { Svg as StyledSvg } from './styled-components.js';
|
|
10
10
|
export * from './icon-exports.js';
|
|
11
11
|
export type * from './types.js';
|
|
12
12
|
|
|
@@ -11,7 +11,6 @@ Copyright (c) Uber Technologies, Inc.
|
|
|
11
11
|
This source code is licensed under the MIT license found in the
|
|
12
12
|
LICENSE file in the root directory of this source tree.
|
|
13
13
|
*/
|
|
14
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
15
14
|
function omitDollarPrefixedKeys(source) {
|
|
16
15
|
var result = {};
|
|
17
16
|
|
package/icon/types.d.ts
CHANGED
package/input/base-input.js
CHANGED
|
@@ -113,19 +113,23 @@ var BaseInput = /*#__PURE__*/function (_React$Component) {
|
|
|
113
113
|
});
|
|
114
114
|
|
|
115
115
|
_defineProperty(_assertThisInitialized(_this), "onFocus", function (e) {
|
|
116
|
-
_this.
|
|
117
|
-
|
|
118
|
-
|
|
116
|
+
if (!_this.props.readOnly) {
|
|
117
|
+
_this.setState({
|
|
118
|
+
isFocused: true
|
|
119
|
+
});
|
|
119
120
|
|
|
120
|
-
|
|
121
|
+
_this.props.onFocus(e);
|
|
122
|
+
}
|
|
121
123
|
});
|
|
122
124
|
|
|
123
125
|
_defineProperty(_assertThisInitialized(_this), "onBlur", function (e) {
|
|
124
|
-
_this.
|
|
125
|
-
|
|
126
|
-
|
|
126
|
+
if (!_this.props.readOnly) {
|
|
127
|
+
_this.setState({
|
|
128
|
+
isFocused: false
|
|
129
|
+
});
|
|
127
130
|
|
|
128
|
-
|
|
131
|
+
_this.props.onBlur(e);
|
|
132
|
+
}
|
|
129
133
|
});
|
|
130
134
|
|
|
131
135
|
_defineProperty(_assertThisInitialized(_this), "handleFocusForMaskToggle", function (event) {
|
package/input/base-input.js.flow
CHANGED
|
@@ -137,13 +137,17 @@ class BaseInput<T: HTMLInputElement | HTMLTextAreaElement> extends React.Compone
|
|
|
137
137
|
};
|
|
138
138
|
|
|
139
139
|
onFocus = (e: SyntheticFocusEvent<T>) => {
|
|
140
|
-
this.
|
|
141
|
-
|
|
140
|
+
if (!this.props.readOnly) {
|
|
141
|
+
this.setState({ isFocused: true });
|
|
142
|
+
this.props.onFocus(e);
|
|
143
|
+
}
|
|
142
144
|
};
|
|
143
145
|
|
|
144
146
|
onBlur = (e: SyntheticFocusEvent<T>) => {
|
|
145
|
-
this.
|
|
146
|
-
|
|
147
|
+
if (!this.props.readOnly) {
|
|
148
|
+
this.setState({ isFocused: false });
|
|
149
|
+
this.props.onBlur(e);
|
|
150
|
+
}
|
|
147
151
|
};
|
|
148
152
|
|
|
149
153
|
getInputType() {
|
package/input/input.js
CHANGED
|
@@ -93,23 +93,27 @@ var Input = /*#__PURE__*/function (_React$Component) {
|
|
|
93
93
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
94
94
|
|
|
95
95
|
_defineProperty(_assertThisInitialized(_this), "state", {
|
|
96
|
-
isFocused: _this.props.autoFocus || false
|
|
96
|
+
isFocused: _this.props.autoFocus && !_this.props.readOnly || false
|
|
97
97
|
});
|
|
98
98
|
|
|
99
99
|
_defineProperty(_assertThisInitialized(_this), "onFocus", function (e) {
|
|
100
|
-
_this.
|
|
101
|
-
|
|
102
|
-
|
|
100
|
+
if (!_this.props.readOnly) {
|
|
101
|
+
_this.setState({
|
|
102
|
+
isFocused: true
|
|
103
|
+
});
|
|
103
104
|
|
|
104
|
-
|
|
105
|
+
_this.props.onFocus(e);
|
|
106
|
+
}
|
|
105
107
|
});
|
|
106
108
|
|
|
107
109
|
_defineProperty(_assertThisInitialized(_this), "onBlur", function (e) {
|
|
108
|
-
_this.
|
|
109
|
-
|
|
110
|
-
|
|
110
|
+
if (!_this.props.readOnly) {
|
|
111
|
+
_this.setState({
|
|
112
|
+
isFocused: false
|
|
113
|
+
});
|
|
111
114
|
|
|
112
|
-
|
|
115
|
+
_this.props.onBlur(e);
|
|
116
|
+
}
|
|
113
117
|
});
|
|
114
118
|
|
|
115
119
|
return _this;
|
package/input/input.js.flow
CHANGED
|
@@ -36,17 +36,21 @@ class Input extends React.Component<InputPropsT, InternalStateT> {
|
|
|
36
36
|
* customers shouldn't have to manage themselves, such as input's focus state.
|
|
37
37
|
*/
|
|
38
38
|
state = {
|
|
39
|
-
isFocused: this.props.autoFocus || false,
|
|
39
|
+
isFocused: (this.props.autoFocus && !this.props.readOnly) || false,
|
|
40
40
|
};
|
|
41
41
|
|
|
42
42
|
onFocus = (e: SyntheticFocusEvent<HTMLInputElement>) => {
|
|
43
|
-
this.
|
|
44
|
-
|
|
43
|
+
if (!this.props.readOnly) {
|
|
44
|
+
this.setState({ isFocused: true });
|
|
45
|
+
this.props.onFocus(e);
|
|
46
|
+
}
|
|
45
47
|
};
|
|
46
48
|
|
|
47
49
|
onBlur = (e: SyntheticFocusEvent<HTMLInputElement>) => {
|
|
48
|
-
this.
|
|
49
|
-
|
|
50
|
+
if (!this.props.readOnly) {
|
|
51
|
+
this.setState({ isFocused: false });
|
|
52
|
+
this.props.onBlur(e);
|
|
53
|
+
}
|
|
50
54
|
};
|
|
51
55
|
|
|
52
56
|
render() {
|
package/input/masked-input.js
CHANGED
|
@@ -82,11 +82,8 @@ function MaskedInput(_ref2) {
|
|
|
82
82
|
restOverrides = _objectWithoutProperties(_ref2$overrides, _excluded2),
|
|
83
83
|
restProps = _objectWithoutProperties(_ref2, _excluded3);
|
|
84
84
|
|
|
85
|
-
|
|
86
|
-
var
|
|
87
|
-
|
|
88
|
-
var propsOverride = {}; // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
89
|
-
|
|
85
|
+
var componentOverride = MaskOverride;
|
|
86
|
+
var propsOverride = {};
|
|
90
87
|
var styleOverride = {};
|
|
91
88
|
|
|
92
89
|
if (typeof inputOverride === 'function') {
|
|
@@ -93,7 +93,6 @@ var StatefulContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
93
93
|
_createClass(StatefulContainer, [{
|
|
94
94
|
key: "render",
|
|
95
95
|
value: function render() {
|
|
96
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
97
96
|
var _this$props = this.props,
|
|
98
97
|
children = _this$props.children,
|
|
99
98
|
initialState = _this$props.initialState,
|
|
@@ -42,7 +42,6 @@ var StyledMaskToggleButton = (0, _styles.styled)('button', function (_ref) {
|
|
|
42
42
|
});
|
|
43
43
|
exports.StyledMaskToggleButton = StyledMaskToggleButton;
|
|
44
44
|
StyledMaskToggleButton.displayName = "StyledMaskToggleButton";
|
|
45
|
-
StyledMaskToggleButton.displayName = 'StyledMaskToggleButton';
|
|
46
45
|
var StyledClearIconContainer = (0, _styles.styled)('div', function (_ref2) {
|
|
47
46
|
var _SIZE$mini$SIZE$compa2;
|
|
48
47
|
|
|
@@ -62,7 +61,6 @@ var StyledClearIconContainer = (0, _styles.styled)('div', function (_ref2) {
|
|
|
62
61
|
});
|
|
63
62
|
exports.StyledClearIconContainer = StyledClearIconContainer;
|
|
64
63
|
StyledClearIconContainer.displayName = "StyledClearIconContainer";
|
|
65
|
-
StyledClearIconContainer.displayName = 'StyledClearIconContainer';
|
|
66
64
|
var StyledClearIcon = (0, _styles.styled)(_deleteAlt.default, function (_ref3) {
|
|
67
65
|
var $theme = _ref3.$theme,
|
|
68
66
|
$isFocusVisible = _ref3.$isFocusVisible;
|
|
@@ -73,7 +71,6 @@ var StyledClearIcon = (0, _styles.styled)(_deleteAlt.default, function (_ref3) {
|
|
|
73
71
|
});
|
|
74
72
|
exports.StyledClearIcon = StyledClearIcon;
|
|
75
73
|
StyledClearIcon.displayName = "StyledClearIcon";
|
|
76
|
-
StyledClearIcon.displayName = 'StyledClearIcon';
|
|
77
74
|
|
|
78
75
|
function getInputPadding(size, sizing) {
|
|
79
76
|
var _SIZE$mini$SIZE$compa3;
|
|
@@ -169,13 +166,7 @@ function getRootColors($disabled, $isFocused, $error) {
|
|
|
169
166
|
};
|
|
170
167
|
}
|
|
171
168
|
|
|
172
|
-
function getRootBorderRadius(
|
|
173
|
-
var radius = borders.inputBorderRadius;
|
|
174
|
-
|
|
175
|
-
if (size === _constants.SIZE.mini) {
|
|
176
|
-
radius = borders.inputBorderRadiusMini;
|
|
177
|
-
}
|
|
178
|
-
|
|
169
|
+
function getRootBorderRadius(radius) {
|
|
179
170
|
return {
|
|
180
171
|
borderTopLeftRadius: radius,
|
|
181
172
|
borderBottomLeftRadius: radius,
|
|
@@ -215,14 +206,14 @@ var getRootStyles = function getRootStyles(props) {
|
|
|
215
206
|
transitionProperty: 'border',
|
|
216
207
|
transitionDuration: animation.timing200,
|
|
217
208
|
transitionTimingFunction: animation.easeOutCurve
|
|
218
|
-
}, getRootBorderRadius(
|
|
209
|
+
}, getRootBorderRadius(borders.inputBorderRadius)), getFont($size, typography)), getRootColors($disabled, $isFocused, $error, $positive, colors)), getRootPadding($adjoined, $size, sizing, $theme.direction, $hasIconTrailing));
|
|
219
210
|
};
|
|
220
211
|
|
|
221
212
|
exports.getRootStyles = getRootStyles;
|
|
222
|
-
var Root = (0, _styles.styled)('div', getRootStyles);
|
|
213
|
+
var Root = (0, _styles.styled)('div', getRootStyles); // InputEnhancer
|
|
214
|
+
|
|
223
215
|
exports.Root = Root;
|
|
224
216
|
Root.displayName = "Root";
|
|
225
|
-
Root.displayName = 'Root'; // InputEnhancer
|
|
226
217
|
|
|
227
218
|
function getInputEnhancerPadding($size, sizing) {
|
|
228
219
|
var _SIZE$mini$SIZE$compa5;
|
|
@@ -296,10 +287,10 @@ var InputEnhancer = (0, _styles.styled)('div', function (props) {
|
|
|
296
287
|
transitionDuration: animation.timing200,
|
|
297
288
|
transitionTimingFunction: animation.easeOutCurve
|
|
298
289
|
}, getFont($size, typography)), getInputEnhancerPadding($size, sizing)), getInputEnhancerColors($disabled, $isFocused, $error, $positive, colors));
|
|
299
|
-
});
|
|
290
|
+
}); // InputContainer
|
|
291
|
+
|
|
300
292
|
exports.InputEnhancer = InputEnhancer;
|
|
301
293
|
InputEnhancer.displayName = "InputEnhancer";
|
|
302
|
-
InputEnhancer.displayName = 'InputEnhancer'; // InputContainer
|
|
303
294
|
|
|
304
295
|
function getInputContainerColors($disabled, $isFocused, $error, $positive, colors) {
|
|
305
296
|
if ($disabled) {
|
|
@@ -359,7 +350,6 @@ exports.getInputContainerStyles = getInputContainerStyles;
|
|
|
359
350
|
var InputContainer = (0, _styles.styled)('div', getInputContainerStyles);
|
|
360
351
|
exports.InputContainer = InputContainer;
|
|
361
352
|
InputContainer.displayName = "InputContainer";
|
|
362
|
-
InputContainer.displayName = 'InputContainer';
|
|
363
353
|
|
|
364
354
|
function getInputColors($disabled, $isFocused, $error, colors) {
|
|
365
355
|
if ($disabled) {
|
|
@@ -419,5 +409,4 @@ var getInputStyles = function getInputStyles(props) {
|
|
|
419
409
|
exports.getInputStyles = getInputStyles;
|
|
420
410
|
var Input = (0, _styles.styled)('input', getInputStyles);
|
|
421
411
|
exports.Input = Input;
|
|
422
|
-
Input.displayName = "Input";
|
|
423
|
-
Input.displayName = 'Input';
|
|
412
|
+
Input.displayName = "Input";
|
|
@@ -201,19 +201,12 @@ function getRootColors(
|
|
|
201
201
|
};
|
|
202
202
|
}
|
|
203
203
|
|
|
204
|
-
function getRootBorderRadius(
|
|
205
|
-
size,
|
|
206
|
-
borders
|
|
207
|
-
): {|
|
|
204
|
+
function getRootBorderRadius(radius): {|
|
|
208
205
|
borderTopLeftRadius: string,
|
|
209
206
|
borderBottomLeftRadius: string,
|
|
210
207
|
borderTopRightRadius: string,
|
|
211
208
|
borderBottomRightRadius: string,
|
|
212
209
|
|} {
|
|
213
|
-
let radius = borders.inputBorderRadius;
|
|
214
|
-
if (size === SIZE.mini) {
|
|
215
|
-
radius = borders.inputBorderRadiusMini;
|
|
216
|
-
}
|
|
217
210
|
return {
|
|
218
211
|
borderTopLeftRadius: radius,
|
|
219
212
|
borderBottomLeftRadius: radius,
|
|
@@ -259,7 +252,7 @@ export const getRootStyles = (props: {
|
|
|
259
252
|
transitionProperty: 'border',
|
|
260
253
|
transitionDuration: animation.timing200,
|
|
261
254
|
transitionTimingFunction: animation.easeOutCurve,
|
|
262
|
-
...getRootBorderRadius(
|
|
255
|
+
...getRootBorderRadius(borders.inputBorderRadius),
|
|
263
256
|
...getFont($size, typography),
|
|
264
257
|
...getRootColors($disabled, $isFocused, $error, $positive, colors),
|
|
265
258
|
...getRootPadding($adjoined, $size, sizing, $theme.direction, $hasIconTrailing),
|
package/input/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { Properties } from 'csstype';
|
|
1
|
+
import * as React from 'react';
|
|
3
2
|
import type { Override } from '../helpers/overrides';
|
|
4
|
-
import
|
|
3
|
+
import { STATE_CHANGE_TYPE, ADJOINED, SIZE, ENHANCER_POSITION } from './constants';
|
|
4
|
+
import type { SyntheticEvent, ChangeEvent, FocusEvent, KeyboardEvent } from 'react';
|
|
5
5
|
export declare type Adjoined = keyof typeof ADJOINED;
|
|
6
6
|
export declare type Size = keyof typeof SIZE;
|
|
7
7
|
export declare type StateType = keyof typeof STATE_CHANGE_TYPE;
|
|
@@ -36,7 +36,6 @@ export declare type SharedProps = {
|
|
|
36
36
|
$size: Size;
|
|
37
37
|
/** Renders UI in 'required' state */
|
|
38
38
|
$required?: boolean;
|
|
39
|
-
$resize?: Properties['resize'];
|
|
40
39
|
$position?: keyof typeof ENHANCER_POSITION;
|
|
41
40
|
/** Defines if has a clearable or MaskToggleButton at the end */
|
|
42
41
|
$hasIconTrailing?: boolean;
|
|
@@ -93,23 +92,22 @@ export declare type BaseInputProps<T> = {
|
|
|
93
92
|
/** A ref to access an input element. */
|
|
94
93
|
inputRef?: React.RefObject<T>;
|
|
95
94
|
name?: string;
|
|
96
|
-
onBlur?: (e:
|
|
97
|
-
onChange?: (e:
|
|
98
|
-
onKeyDown?: (e:
|
|
99
|
-
onKeyPress?: (e:
|
|
100
|
-
onKeyUp?: (e:
|
|
101
|
-
onFocus?: (e:
|
|
95
|
+
onBlur?: (e: FocusEvent<T>) => void;
|
|
96
|
+
onChange?: (e: ChangeEvent<T>) => void;
|
|
97
|
+
onKeyDown?: (e: KeyboardEvent<T>) => void;
|
|
98
|
+
onKeyPress?: (e: KeyboardEvent<T>) => void;
|
|
99
|
+
onKeyUp?: (e: KeyboardEvent<T>) => void;
|
|
100
|
+
onFocus?: (e: FocusEvent<T>) => void;
|
|
102
101
|
/** If true, adds a clear value icon button to the end of the input container. */
|
|
103
102
|
clearable?: boolean;
|
|
104
103
|
/** If undefined or true, clears the input when the Escape button is pressed with the input focused. True by default. */
|
|
105
104
|
clearOnEscape?: boolean;
|
|
106
105
|
maxLength?: number;
|
|
107
|
-
onClear?: (e:
|
|
106
|
+
onClear?: (e: SyntheticEvent<T>) => void;
|
|
108
107
|
overrides?: BaseInputOverrides;
|
|
109
108
|
placeholder?: string;
|
|
110
109
|
/** Renders component in 'required' state. */
|
|
111
110
|
required?: boolean;
|
|
112
|
-
resize?: Properties['resize'];
|
|
113
111
|
/** Input role attribute. */
|
|
114
112
|
role?: string;
|
|
115
113
|
/** Renders component in provided size. */
|
|
@@ -135,9 +133,9 @@ export declare type InputProps = {
|
|
|
135
133
|
/** An input helper rendered after and attached to the input field. */
|
|
136
134
|
endEnhancer?: React.ReactNode | ((props: SharedProps) => React.ReactNode);
|
|
137
135
|
/** Handler for the `focus` event. */
|
|
138
|
-
onFocus?: (e:
|
|
136
|
+
onFocus?: (e: FocusEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
139
137
|
/** Handler for the `blur` event. */
|
|
140
|
-
onBlur?: (e:
|
|
138
|
+
onBlur?: (e: FocusEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
141
139
|
} & BaseInputProps<HTMLInputElement | HTMLTextAreaElement>;
|
|
142
140
|
export declare type MaskedInputProps = Partial<{
|
|
143
141
|
/** See mask examples here: https://github.com/sanniassin/react-input-mask */
|
|
@@ -146,7 +144,7 @@ export declare type MaskedInputProps = Partial<{
|
|
|
146
144
|
maskChar?: string;
|
|
147
145
|
} & InputProps>;
|
|
148
146
|
export declare type StatefulContainerChildrenProps<T> = {
|
|
149
|
-
onChange: (e:
|
|
147
|
+
onChange: (e: ChangeEvent<T>) => void;
|
|
150
148
|
/** If true, adds a clear value icon button to the end of the input container. */
|
|
151
149
|
clearable?: boolean;
|
|
152
150
|
} & StatefulInputProps;
|
|
@@ -156,7 +154,7 @@ export declare type StatefulContainerProps<T> = {
|
|
|
156
154
|
initialState?: State;
|
|
157
155
|
/** A state change handler. Used to override default state transitions. */
|
|
158
156
|
stateReducer?: StateReducer;
|
|
159
|
-
onChange?: (e:
|
|
157
|
+
onChange?: (e: ChangeEvent<T>) => void;
|
|
160
158
|
/** If true, adds a clear value icon button to the end of the input container. */
|
|
161
159
|
clearable?: boolean;
|
|
162
160
|
} & {
|