baseui 12.0.0 → 12.1.2
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 +7 -2
- 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 +7 -2
- 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/file-uploader.js +82 -78
- 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 +9 -12
- package/es/input/input.js +9 -13
- 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 -11
- package/es/popover/stateful-container.js +4 -1
- 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 +13 -15
- 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 +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/timezonepicker/update-tzdata.js +11 -6
- 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 +7 -2
- 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/file-uploader.js +87 -83
- 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 +9 -12
- package/esm/input/input.js +9 -13
- 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 -11
- package/esm/popover/stateful-container.js +4 -1
- 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 +13 -15
- 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 +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/timezonepicker/update-tzdata.js +51 -39
- 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/file-uploader.js +87 -83
- 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/base-input.js +8 -12
- package/input/base-input.js.flow +4 -8
- package/input/input.js +9 -13
- package/input/input.js.flow +5 -9
- 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 +10 -12
- 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 -11
- package/popover/popover.js.flow +2 -12
- package/popover/stateful-container.js +5 -1
- 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.d.ts +4 -1
- 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 +4 -4
- 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 +13 -15
- package/textarea/textarea.js.flow +5 -9
- package/textarea/types.d.ts +6 -5
- package/textarea/types.js.flow +3 -1
- 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 +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/timezonepicker/update-tzdata.js +51 -39
- 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,21 @@ function getFont(size = SIZE.default, typography) {
|
|
|
19
19
|
}[size];
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
function getBorderRadius(size, borders) {
|
|
23
|
+
let radius = borders.inputBorderRadius;
|
|
24
|
+
|
|
25
|
+
if (size === SIZE.mini) {
|
|
26
|
+
radius = borders.inputBorderRadiusMini;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
return {
|
|
30
|
+
borderTopLeftRadius: radius,
|
|
31
|
+
borderBottomLeftRadius: radius,
|
|
32
|
+
borderTopRightRadius: radius,
|
|
33
|
+
borderBottomRightRadius: radius
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
22
37
|
function getControlPadding(props) {
|
|
23
38
|
const {
|
|
24
39
|
$theme,
|
|
@@ -72,6 +87,7 @@ export const StyledDropdownContainer = styled('div', props => {
|
|
|
72
87
|
};
|
|
73
88
|
});
|
|
74
89
|
StyledDropdownContainer.displayName = "StyledDropdownContainer";
|
|
90
|
+
StyledDropdownContainer.displayName = 'StyledDropdownContainer';
|
|
75
91
|
export const StyledDropdown = StyledList;
|
|
76
92
|
export const StyledDropdownListItem = StyledListItem;
|
|
77
93
|
export const StyledOptionContent = styled('div', props => {
|
|
@@ -88,6 +104,7 @@ export const StyledOptionContent = styled('div', props => {
|
|
|
88
104
|
};
|
|
89
105
|
});
|
|
90
106
|
StyledOptionContent.displayName = "StyledOptionContent";
|
|
107
|
+
StyledOptionContent.displayName = 'StyledOptionContent';
|
|
91
108
|
export const StyledRoot = styled('div', props => {
|
|
92
109
|
const {
|
|
93
110
|
$theme: {
|
|
@@ -102,6 +119,7 @@ export const StyledRoot = styled('div', props => {
|
|
|
102
119
|
};
|
|
103
120
|
});
|
|
104
121
|
StyledRoot.displayName = "StyledRoot";
|
|
122
|
+
StyledRoot.displayName = 'StyledRoot';
|
|
105
123
|
|
|
106
124
|
function getControlContainerColors($disabled, $isFocused, $isPseudoFocused, $positive, $error, colors) {
|
|
107
125
|
if ($disabled) {
|
|
@@ -167,17 +185,14 @@ export const StyledControlContainer = styled('div', props => {
|
|
|
167
185
|
$isPseudoFocused,
|
|
168
186
|
$type,
|
|
169
187
|
$searchable,
|
|
188
|
+
$size,
|
|
170
189
|
$theme: {
|
|
171
190
|
borders,
|
|
172
191
|
colors,
|
|
173
192
|
animation
|
|
174
193
|
}
|
|
175
194
|
} = props;
|
|
176
|
-
return {
|
|
177
|
-
borderTopLeftRadius: borders.inputBorderRadius,
|
|
178
|
-
borderTopRightRadius: borders.inputBorderRadius,
|
|
179
|
-
borderBottomRightRadius: borders.inputBorderRadius,
|
|
180
|
-
borderBottomLeftRadius: borders.inputBorderRadius,
|
|
195
|
+
return { ...getBorderRadius($size, borders),
|
|
181
196
|
boxSizing: 'border-box',
|
|
182
197
|
overflow: 'hidden',
|
|
183
198
|
width: '100%',
|
|
@@ -199,6 +214,7 @@ export const StyledControlContainer = styled('div', props => {
|
|
|
199
214
|
};
|
|
200
215
|
});
|
|
201
216
|
StyledControlContainer.displayName = "StyledControlContainer";
|
|
217
|
+
StyledControlContainer.displayName = 'StyledControlContainer';
|
|
202
218
|
export const StyledValueContainer = styled('div', props => {
|
|
203
219
|
const padding = getControlPadding(props);
|
|
204
220
|
return {
|
|
@@ -215,6 +231,7 @@ export const StyledValueContainer = styled('div', props => {
|
|
|
215
231
|
};
|
|
216
232
|
});
|
|
217
233
|
StyledValueContainer.displayName = "StyledValueContainer";
|
|
234
|
+
StyledValueContainer.displayName = 'StyledValueContainer';
|
|
218
235
|
export const StyledPlaceholder = styled('div', props => {
|
|
219
236
|
const {
|
|
220
237
|
$disabled,
|
|
@@ -231,6 +248,7 @@ export const StyledPlaceholder = styled('div', props => {
|
|
|
231
248
|
};
|
|
232
249
|
});
|
|
233
250
|
StyledPlaceholder.displayName = "StyledPlaceholder";
|
|
251
|
+
StyledPlaceholder.displayName = 'StyledPlaceholder';
|
|
234
252
|
export const StyledSingleValue = styled('div', props => {
|
|
235
253
|
const {
|
|
236
254
|
$searchable,
|
|
@@ -252,6 +270,7 @@ export const StyledSingleValue = styled('div', props => {
|
|
|
252
270
|
};
|
|
253
271
|
});
|
|
254
272
|
StyledSingleValue.displayName = "StyledSingleValue";
|
|
273
|
+
StyledSingleValue.displayName = 'StyledSingleValue';
|
|
255
274
|
export const StyledInputContainer = styled('div', props => {
|
|
256
275
|
const {
|
|
257
276
|
$size,
|
|
@@ -288,6 +307,7 @@ export const StyledInputContainer = styled('div', props => {
|
|
|
288
307
|
};
|
|
289
308
|
});
|
|
290
309
|
StyledInputContainer.displayName = "StyledInputContainer";
|
|
310
|
+
StyledInputContainer.displayName = 'StyledInputContainer';
|
|
291
311
|
export const StyledInput = styled('input', props => {
|
|
292
312
|
const {
|
|
293
313
|
$theme: {
|
|
@@ -322,6 +342,7 @@ export const StyledInput = styled('input', props => {
|
|
|
322
342
|
};
|
|
323
343
|
});
|
|
324
344
|
StyledInput.displayName = "StyledInput";
|
|
345
|
+
StyledInput.displayName = 'StyledInput';
|
|
325
346
|
export const StyledInputSizer = styled('div', ({
|
|
326
347
|
$size,
|
|
327
348
|
$theme,
|
|
@@ -341,6 +362,7 @@ export const StyledInputSizer = styled('div', ({
|
|
|
341
362
|
};
|
|
342
363
|
});
|
|
343
364
|
StyledInputSizer.displayName = "StyledInputSizer";
|
|
365
|
+
StyledInputSizer.displayName = 'StyledInputSizer';
|
|
344
366
|
export const StyledIconsContainer = styled('div', ({
|
|
345
367
|
$theme,
|
|
346
368
|
$theme: {
|
|
@@ -359,6 +381,7 @@ export const StyledIconsContainer = styled('div', ({
|
|
|
359
381
|
};
|
|
360
382
|
});
|
|
361
383
|
StyledIconsContainer.displayName = "StyledIconsContainer";
|
|
384
|
+
StyledIconsContainer.displayName = 'StyledIconsContainer';
|
|
362
385
|
|
|
363
386
|
function getSvgStyles({
|
|
364
387
|
$theme
|
|
@@ -403,6 +426,7 @@ export const StyledSelectArrow = styled('svg', props => {
|
|
|
403
426
|
};
|
|
404
427
|
});
|
|
405
428
|
StyledSelectArrow.displayName = "StyledSelectArrow";
|
|
429
|
+
StyledSelectArrow.displayName = 'StyledSelectArrow';
|
|
406
430
|
export const StyledClearIcon = styled('svg', props => {
|
|
407
431
|
const {
|
|
408
432
|
$theme,
|
|
@@ -433,6 +457,7 @@ export const StyledClearIcon = styled('svg', props => {
|
|
|
433
457
|
};
|
|
434
458
|
});
|
|
435
459
|
StyledClearIcon.displayName = "StyledClearIcon";
|
|
460
|
+
StyledClearIcon.displayName = 'StyledClearIcon';
|
|
436
461
|
export const StyledLoadingIndicator = withStyle(Spinner, ({
|
|
437
462
|
$theme
|
|
438
463
|
}) => {
|
|
@@ -449,6 +474,7 @@ export const StyledLoadingIndicator = withStyle(Spinner, ({
|
|
|
449
474
|
};
|
|
450
475
|
});
|
|
451
476
|
StyledLoadingIndicator.displayName = "StyledLoadingIndicator";
|
|
477
|
+
StyledLoadingIndicator.displayName = 'StyledLoadingIndicator';
|
|
452
478
|
export const StyledSearchIconContainer = styled('div', props => {
|
|
453
479
|
const {
|
|
454
480
|
$disabled,
|
|
@@ -470,4 +496,5 @@ export const StyledSearchIconContainer = styled('div', props => {
|
|
|
470
496
|
height: '100%'
|
|
471
497
|
};
|
|
472
498
|
});
|
|
473
|
-
StyledSearchIconContainer.displayName = "StyledSearchIconContainer";
|
|
499
|
+
StyledSearchIconContainer.displayName = "StyledSearchIconContainer";
|
|
500
|
+
StyledSearchIconContainer.displayName = 'StyledSearchIconContainer';
|
package/es/select/value.js
CHANGED
|
@@ -8,14 +8,13 @@ LICENSE file in the root directory of this source tree.
|
|
|
8
8
|
*/
|
|
9
9
|
import * as React from 'react';
|
|
10
10
|
import { StyledSingleValue } from './styled-components';
|
|
11
|
-
import { getOverrides } from '../helpers/overrides';
|
|
11
|
+
import { getOverrides } from '../helpers/overrides'; // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
12
|
+
|
|
12
13
|
export default function Value(props) {
|
|
13
14
|
const {
|
|
14
15
|
overrides = {},
|
|
15
16
|
...restProps
|
|
16
17
|
} = props;
|
|
17
18
|
const [SingleValue, singleValueProps] = getOverrides(overrides.SingleValue, StyledSingleValue);
|
|
18
|
-
return /*#__PURE__*/React.createElement(SingleValue, _extends({
|
|
19
|
-
"aria-selected": "true"
|
|
20
|
-
}, restProps, singleValueProps), props.children);
|
|
19
|
+
return /*#__PURE__*/React.createElement(SingleValue, _extends({}, restProps, singleValueProps), props.children);
|
|
21
20
|
}
|
|
@@ -10,4 +10,5 @@ export { default as NavItem } from './nav-item'; // Styled elements
|
|
|
10
10
|
export * from './styled-components'; // Types
|
|
11
11
|
|
|
12
12
|
export * from './types';
|
|
13
|
-
/** @deprecated type is already removed*/
|
|
13
|
+
/** @deprecated type is already removed*/
|
|
14
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -90,7 +90,7 @@ export default class SideNav extends React.Component {
|
|
|
90
90
|
overrides: overrides
|
|
91
91
|
}, sharedProps)), item.subNav ? /*#__PURE__*/React.createElement(SubNavContainer, _extends({
|
|
92
92
|
role: "list"
|
|
93
|
-
}, sharedProps, subNavContainerProps), item.subNav.map(
|
|
93
|
+
}, sharedProps, subNavContainerProps), item.subNav.map(subitem => {
|
|
94
94
|
return renderNavItem(subitem, level + 1, index);
|
|
95
95
|
})) : null));
|
|
96
96
|
};
|
|
@@ -27,8 +27,10 @@ export const StyledRoot = styled('nav', props => {
|
|
|
27
27
|
};
|
|
28
28
|
});
|
|
29
29
|
StyledRoot.displayName = "StyledRoot";
|
|
30
|
+
StyledRoot.displayName = 'StyledRoot';
|
|
30
31
|
export const StyledNavItemContainer = styled('li', {});
|
|
31
32
|
StyledNavItemContainer.displayName = "StyledNavItemContainer";
|
|
33
|
+
StyledNavItemContainer.displayName = 'StyledNavItemContainer';
|
|
32
34
|
export const StyledNavLink = styled('a', ({
|
|
33
35
|
$theme,
|
|
34
36
|
$isFocusVisible
|
|
@@ -48,6 +50,7 @@ export const StyledNavLink = styled('a', ({
|
|
|
48
50
|
}
|
|
49
51
|
}));
|
|
50
52
|
StyledNavLink.displayName = "StyledNavLink";
|
|
53
|
+
StyledNavLink.displayName = 'StyledNavLink';
|
|
51
54
|
export const StyledNavItemElement = styled('div', props => {
|
|
52
55
|
const {
|
|
53
56
|
$active,
|
|
@@ -98,7 +101,9 @@ export const StyledNavItemElement = styled('div', props => {
|
|
|
98
101
|
};
|
|
99
102
|
});
|
|
100
103
|
StyledNavItemElement.displayName = "StyledNavItemElement";
|
|
101
|
-
|
|
104
|
+
StyledNavItemElement.displayName = 'StyledNavItemElement';
|
|
105
|
+
export const StyledNavItem = withWrapper(StyledNavItemElement, Styled => // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
106
|
+
function StyledNav({
|
|
102
107
|
item,
|
|
103
108
|
...restProps
|
|
104
109
|
}) {
|
|
@@ -115,4 +120,5 @@ export const StyledSubNavContainer = styled('ul', {
|
|
|
115
120
|
paddingLeft: 0,
|
|
116
121
|
paddingRight: 0
|
|
117
122
|
});
|
|
118
|
-
StyledSubNavContainer.displayName = "StyledSubNavContainer";
|
|
123
|
+
StyledSubNavContainer.displayName = "StyledSubNavContainer";
|
|
124
|
+
StyledSubNavContainer.displayName = 'StyledSubNavContainer';
|
|
@@ -60,6 +60,7 @@ export const StyledRoot = styled('div', props => {
|
|
|
60
60
|
};
|
|
61
61
|
});
|
|
62
62
|
StyledRoot.displayName = "StyledRoot";
|
|
63
|
+
StyledRoot.displayName = 'StyledRoot';
|
|
63
64
|
export const StyledRow = styled('div', props => {
|
|
64
65
|
return { ...(props.$animation ? { ...animationStyle,
|
|
65
66
|
backgroundImage: getAnimationColor(props)
|
|
@@ -71,4 +72,5 @@ export const StyledRow = styled('div', props => {
|
|
|
71
72
|
marginBottom: props.$isLastRow ? '0px' : '10px'
|
|
72
73
|
};
|
|
73
74
|
});
|
|
74
|
-
StyledRow.displayName = "StyledRow";
|
|
75
|
+
StyledRow.displayName = "StyledRow";
|
|
76
|
+
StyledRow.displayName = 'StyledRow';
|
package/es/slider/slider.js
CHANGED
|
@@ -45,11 +45,13 @@ function Slider({
|
|
|
45
45
|
const handleFocus = React.useCallback(event => {
|
|
46
46
|
if (focusVisible(event)) {
|
|
47
47
|
setIsFocusVisible(true);
|
|
48
|
-
}
|
|
48
|
+
} // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
49
|
+
|
|
49
50
|
|
|
50
51
|
const index = event.target.parentNode.firstChild === event.target ? 0 : 1;
|
|
51
52
|
setFocusedThumbIndex(index);
|
|
52
|
-
}, []);
|
|
53
|
+
}, []); // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
54
|
+
|
|
53
55
|
const handleBlur = React.useCallback(event => {
|
|
54
56
|
if (isFocusVisible !== false) {
|
|
55
57
|
setIsFocusVisible(false);
|
|
@@ -48,8 +48,10 @@ class StatefulSliderContainer extends React.Component {
|
|
|
48
48
|
render() {
|
|
49
49
|
const {
|
|
50
50
|
children,
|
|
51
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
51
52
|
initialState,
|
|
52
53
|
// eslint-disable-line no-unused-vars
|
|
54
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
53
55
|
stateReducer,
|
|
54
56
|
// eslint-disable-line no-unused-vars
|
|
55
57
|
...restProps
|
|
@@ -11,6 +11,7 @@ export const Root = styled('div', {
|
|
|
11
11
|
width: '100%'
|
|
12
12
|
});
|
|
13
13
|
Root.displayName = "Root";
|
|
14
|
+
Root.displayName = 'Root';
|
|
14
15
|
Root.displayName = 'StyledRoot';
|
|
15
16
|
export const Track = styled('div', props => {
|
|
16
17
|
const {
|
|
@@ -43,6 +44,7 @@ export const Track = styled('div', props => {
|
|
|
43
44
|
};
|
|
44
45
|
});
|
|
45
46
|
Track.displayName = "Track";
|
|
47
|
+
Track.displayName = 'Track';
|
|
46
48
|
Track.displayName = 'StyledTrack';
|
|
47
49
|
export const InnerTrack = styled('div', props => {
|
|
48
50
|
const {
|
|
@@ -77,6 +79,7 @@ export const InnerTrack = styled('div', props => {
|
|
|
77
79
|
};
|
|
78
80
|
});
|
|
79
81
|
InnerTrack.displayName = "InnerTrack";
|
|
82
|
+
InnerTrack.displayName = 'InnerTrack';
|
|
80
83
|
InnerTrack.displayName = 'StyledInnerTrack';
|
|
81
84
|
export const Mark = styled('div', props => {
|
|
82
85
|
return {
|
|
@@ -87,6 +90,7 @@ export const Mark = styled('div', props => {
|
|
|
87
90
|
};
|
|
88
91
|
});
|
|
89
92
|
Mark.displayName = "Mark";
|
|
93
|
+
Mark.displayName = 'Mark';
|
|
90
94
|
Mark.displayName = 'StyledMark';
|
|
91
95
|
export const Tick = styled('div', props => {
|
|
92
96
|
return { ...props.$theme.typography.font200,
|
|
@@ -94,6 +98,7 @@ export const Tick = styled('div', props => {
|
|
|
94
98
|
};
|
|
95
99
|
});
|
|
96
100
|
Tick.displayName = "Tick";
|
|
101
|
+
Tick.displayName = 'Tick';
|
|
97
102
|
Tick.displayName = 'StyledTick';
|
|
98
103
|
export const TickBar = styled('div', props => {
|
|
99
104
|
const {
|
|
@@ -112,6 +117,7 @@ export const TickBar = styled('div', props => {
|
|
|
112
117
|
};
|
|
113
118
|
});
|
|
114
119
|
TickBar.displayName = "TickBar";
|
|
120
|
+
TickBar.displayName = 'TickBar';
|
|
115
121
|
TickBar.displayName = 'StyledTickBar';
|
|
116
122
|
export const Thumb = styled('div', props => {
|
|
117
123
|
const {
|
|
@@ -145,6 +151,7 @@ export const Thumb = styled('div', props => {
|
|
|
145
151
|
};
|
|
146
152
|
});
|
|
147
153
|
Thumb.displayName = "Thumb";
|
|
154
|
+
Thumb.displayName = 'Thumb';
|
|
148
155
|
Thumb.displayName = 'StyledThumb';
|
|
149
156
|
export const InnerThumb = styled('div', props => {
|
|
150
157
|
const {
|
|
@@ -160,6 +167,7 @@ export const InnerThumb = styled('div', props => {
|
|
|
160
167
|
};
|
|
161
168
|
});
|
|
162
169
|
InnerThumb.displayName = "InnerThumb";
|
|
170
|
+
InnerThumb.displayName = 'InnerThumb';
|
|
163
171
|
InnerThumb.displayName = 'StyledInnerThumb';
|
|
164
172
|
export const ThumbValue = styled('div', props => {
|
|
165
173
|
const {
|
|
@@ -184,4 +192,5 @@ export const ThumbValue = styled('div', props => {
|
|
|
184
192
|
};
|
|
185
193
|
});
|
|
186
194
|
ThumbValue.displayName = "ThumbValue";
|
|
195
|
+
ThumbValue.displayName = 'ThumbValue';
|
|
187
196
|
ThumbValue.displayName = 'StyledThumbValue';
|
|
@@ -12,6 +12,7 @@ import { getOverrides } from '../helpers/overrides';
|
|
|
12
12
|
import { useStyletron } from '../styles';
|
|
13
13
|
import { StyledRoot, StyledContent, StyledStartEnhancerContainer, StyledSpinner, StyledMessage, StyledWrapActionButtonContainer, StyledActionButtonContainer } from './styled-components';
|
|
14
14
|
// todo(flow->ts): types
|
|
15
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
15
16
|
const ActionButton = /*#__PURE__*/React.forwardRef(({
|
|
16
17
|
onClick,
|
|
17
18
|
message,
|
|
@@ -24,12 +24,14 @@ export const StyledRoot = styled('div', ({
|
|
|
24
24
|
};
|
|
25
25
|
});
|
|
26
26
|
StyledRoot.displayName = "StyledRoot";
|
|
27
|
+
StyledRoot.displayName = 'StyledRoot';
|
|
27
28
|
export const StyledContent = styled('div', {
|
|
28
29
|
alignItems: 'center',
|
|
29
30
|
display: 'inline-flex',
|
|
30
31
|
width: '100%'
|
|
31
32
|
});
|
|
32
33
|
StyledContent.displayName = "StyledContent";
|
|
34
|
+
StyledContent.displayName = 'StyledContent';
|
|
33
35
|
export const StyledStartEnhancerContainer = styled('span', ({
|
|
34
36
|
$theme
|
|
35
37
|
}) => {
|
|
@@ -41,6 +43,7 @@ export const StyledStartEnhancerContainer = styled('span', ({
|
|
|
41
43
|
};
|
|
42
44
|
});
|
|
43
45
|
StyledStartEnhancerContainer.displayName = "StyledStartEnhancerContainer";
|
|
46
|
+
StyledStartEnhancerContainer.displayName = 'StyledStartEnhancerContainer';
|
|
44
47
|
export const StyledSpinner = withStyle(Spinner, ({
|
|
45
48
|
$height,
|
|
46
49
|
$width
|
|
@@ -52,6 +55,7 @@ export const StyledSpinner = withStyle(Spinner, ({
|
|
|
52
55
|
};
|
|
53
56
|
});
|
|
54
57
|
StyledSpinner.displayName = "StyledSpinner";
|
|
58
|
+
StyledSpinner.displayName = 'StyledSpinner';
|
|
55
59
|
export const StyledMessage = styled('p', //$FlowExpectedError[incompatible-shape]
|
|
56
60
|
({
|
|
57
61
|
$theme,
|
|
@@ -71,11 +75,13 @@ export const StyledMessage = styled('p', //$FlowExpectedError[incompatible-shape
|
|
|
71
75
|
};
|
|
72
76
|
});
|
|
73
77
|
StyledMessage.displayName = "StyledMessage";
|
|
78
|
+
StyledMessage.displayName = 'StyledMessage';
|
|
74
79
|
export const StyledWrapActionButtonContainer = styled('div', {
|
|
75
80
|
display: 'flex',
|
|
76
81
|
justifyContent: 'flex-end'
|
|
77
82
|
});
|
|
78
83
|
StyledWrapActionButtonContainer.displayName = "StyledWrapActionButtonContainer";
|
|
84
|
+
StyledWrapActionButtonContainer.displayName = 'StyledWrapActionButtonContainer';
|
|
79
85
|
export const StyledActionButtonContainer = styled('div', ({
|
|
80
86
|
$theme
|
|
81
87
|
}) => {
|
|
@@ -85,6 +91,7 @@ export const StyledActionButtonContainer = styled('div', ({
|
|
|
85
91
|
};
|
|
86
92
|
});
|
|
87
93
|
StyledActionButtonContainer.displayName = "StyledActionButtonContainer";
|
|
94
|
+
StyledActionButtonContainer.displayName = 'StyledActionButtonContainer';
|
|
88
95
|
|
|
89
96
|
function placementRules(placement) {
|
|
90
97
|
switch (placement) {
|
|
@@ -162,4 +169,5 @@ export const StyledPlacementContainer = styled('div', ({
|
|
|
162
169
|
}
|
|
163
170
|
};
|
|
164
171
|
});
|
|
165
|
-
StyledPlacementContainer.displayName = "StyledPlacementContainer";
|
|
172
|
+
StyledPlacementContainer.displayName = "StyledPlacementContainer";
|
|
173
|
+
StyledPlacementContainer.displayName = 'StyledPlacementContainer';
|
|
@@ -8,8 +8,6 @@ Copyright (c) Uber Technologies, Inc.
|
|
|
8
8
|
This source code is licensed under the MIT license found in the
|
|
9
9
|
LICENSE file in the root directory of this source tree.
|
|
10
10
|
*/
|
|
11
|
-
|
|
12
|
-
/* flowlint unclear-type:off */
|
|
13
11
|
import * as React from 'react';
|
|
14
12
|
import { getInitialStyle } from 'styletron-standard';
|
|
15
13
|
import { LightTheme } from '../../themes';
|
|
@@ -19,6 +17,7 @@ const MOCK_THEME = createMockTheme(LightTheme);
|
|
|
19
17
|
const IDENTITY = x => x;
|
|
20
18
|
|
|
21
19
|
export function useStyletron() {
|
|
20
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
22
21
|
function css(styles) {
|
|
23
22
|
return {
|
|
24
23
|
label: 'useStyletron mock describes the applied css properties',
|
|
@@ -27,7 +26,8 @@ export function useStyletron() {
|
|
|
27
26
|
}
|
|
28
27
|
|
|
29
28
|
return [css, MOCK_THEME];
|
|
30
|
-
}
|
|
29
|
+
} // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
30
|
+
|
|
31
31
|
export function styled(ElementName, objOrFn = {}) {
|
|
32
32
|
class MockStyledComponent extends React.Component {
|
|
33
33
|
constructor(...args) {
|
|
@@ -63,6 +63,7 @@ export function styled(ElementName, objOrFn = {}) {
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
getPassedProps() {
|
|
66
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
66
67
|
const {
|
|
67
68
|
forwardedRef,
|
|
68
69
|
...restProps
|
|
@@ -99,8 +100,10 @@ export function styled(ElementName, objOrFn = {}) {
|
|
|
99
100
|
}, props)));
|
|
100
101
|
}
|
|
101
102
|
export const withStyle = styled;
|
|
102
|
-
export function withWrapper(
|
|
103
|
-
|
|
103
|
+
export function withWrapper( // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
104
|
+
StyledElement, // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
105
|
+
wrapperFn) {
|
|
106
|
+
// eslint-disable-next-line react/display-name,@typescript-eslint/no-explicit-any
|
|
104
107
|
return /*#__PURE__*/React.forwardRef((props, ref) => wrapperFn(StyledElement)({
|
|
105
108
|
ref: ref,
|
|
106
109
|
...props,
|
package/es/styles/styled.js
CHANGED
|
@@ -20,32 +20,33 @@ const wrapper = StyledComponent => {
|
|
|
20
20
|
}))));
|
|
21
21
|
};
|
|
22
22
|
|
|
23
|
-
/* eslint-enable flowtype/generic-spacing */
|
|
24
|
-
|
|
25
|
-
/* flowlint unclear-type:error */
|
|
26
23
|
export function createThemedStyled() {
|
|
27
24
|
return createStyled({
|
|
28
25
|
wrapper,
|
|
29
26
|
getInitialStyle,
|
|
30
|
-
driver
|
|
27
|
+
driver // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
28
|
+
|
|
31
29
|
});
|
|
32
30
|
}
|
|
33
31
|
export const styled = createThemedStyled();
|
|
34
32
|
export function createThemedWithStyle() {
|
|
33
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
35
34
|
return styletronWithStyle;
|
|
36
35
|
}
|
|
37
36
|
export const withStyle = createThemedWithStyle();
|
|
38
37
|
export function createThemedUseStyletron() {
|
|
39
38
|
return function () {
|
|
39
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
40
40
|
const theme = React.useContext(ThemeContext);
|
|
41
41
|
const [css] = styletronUseStyletron();
|
|
42
42
|
return [css, theme];
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
|
-
export const useStyletron = createThemedUseStyletron();
|
|
45
|
+
export const useStyletron = createThemedUseStyletron(); // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
46
|
+
|
|
46
47
|
export function withWrapper(StyledElement, wrapperFn) {
|
|
47
48
|
return styletronWithWrapper(StyledElement, Styled => {
|
|
48
|
-
// eslint-disable-next-line react/display-name
|
|
49
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any,react/display-name
|
|
49
50
|
return /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(ThemeContext.Consumer, null, theme => // @ts-ignore
|
|
50
51
|
wrapperFn(Styled)({
|
|
51
52
|
ref: ref,
|
package/es/table/index.js
CHANGED
|
@@ -13,4 +13,5 @@ export { SORT_DIRECTION } from './constants'; // Styled elements
|
|
|
13
13
|
export { StyledTable, StyledFilterButton, StyledFilterContent, StyledFilterHeading, StyledFilterFooter, StyledHead, StyledHeadCell, StyledBody, StyledRow, StyledCell, StyledAction, StyledSortableLabel } from './styled-components'; // Flow
|
|
14
14
|
|
|
15
15
|
export * from './types';
|
|
16
|
-
/** @deprecated use HeadCellOverrides instead. To be removed in future versions.*/
|
|
16
|
+
/** @deprecated use HeadCellOverrides instead. To be removed in future versions.*/
|
|
17
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -24,6 +24,7 @@ const StyledTableElement = styled('div', ({
|
|
|
24
24
|
};
|
|
25
25
|
});
|
|
26
26
|
StyledTableElement.displayName = "StyledTableElement";
|
|
27
|
+
StyledTableElement.displayName = 'StyledTableElement';
|
|
27
28
|
export const StyledTable = withWrapper(StyledTableElement, StyledComponent => function StyledTable(props) {
|
|
28
29
|
return /*#__PURE__*/React.createElement(StyledComponent, _extends({
|
|
29
30
|
"data-baseweb": "table-custom",
|
|
@@ -43,6 +44,7 @@ const StyledHeadElement = styled('div', ({
|
|
|
43
44
|
};
|
|
44
45
|
});
|
|
45
46
|
StyledHeadElement.displayName = "StyledHeadElement";
|
|
47
|
+
StyledHeadElement.displayName = 'StyledHeadElement';
|
|
46
48
|
export const StyledHead = withWrapper(StyledHeadElement, StyledComponent => function StyledHead(props) {
|
|
47
49
|
return /*#__PURE__*/React.createElement(StyledComponent, _extends({
|
|
48
50
|
role: "row"
|
|
@@ -73,6 +75,7 @@ const StyledHeadCellElement = styled('div', ({
|
|
|
73
75
|
};
|
|
74
76
|
});
|
|
75
77
|
StyledHeadCellElement.displayName = "StyledHeadCellElement";
|
|
78
|
+
StyledHeadCellElement.displayName = 'StyledHeadCellElement';
|
|
76
79
|
export const StyledHeadCell = withWrapper(StyledHeadCellElement, StyledComponent => function StyledHeadCell(props) {
|
|
77
80
|
return /*#__PURE__*/React.createElement(StyledComponent, _extends({
|
|
78
81
|
role: "columnheader"
|
|
@@ -100,6 +103,7 @@ export const StyledSortableLabel = styled('button', ({
|
|
|
100
103
|
};
|
|
101
104
|
});
|
|
102
105
|
StyledSortableLabel.displayName = "StyledSortableLabel";
|
|
106
|
+
StyledSortableLabel.displayName = 'StyledSortableLabel';
|
|
103
107
|
const StyledBodyElement = styled('div', ({
|
|
104
108
|
$width
|
|
105
109
|
}) => {
|
|
@@ -112,6 +116,7 @@ const StyledBodyElement = styled('div', ({
|
|
|
112
116
|
};
|
|
113
117
|
});
|
|
114
118
|
StyledBodyElement.displayName = "StyledBodyElement";
|
|
119
|
+
StyledBodyElement.displayName = 'StyledBodyElement';
|
|
115
120
|
export const StyledBody = withWrapper(StyledBodyElement, StyledComponent => function StyledBody(props) {
|
|
116
121
|
return /*#__PURE__*/React.createElement(StyledComponent, _extends({
|
|
117
122
|
role: "rowgroup"
|
|
@@ -122,6 +127,7 @@ const StyledRowElement = styled('div', {
|
|
|
122
127
|
alignItems: 'center'
|
|
123
128
|
});
|
|
124
129
|
StyledRowElement.displayName = "StyledRowElement";
|
|
130
|
+
StyledRowElement.displayName = 'StyledRowElement';
|
|
125
131
|
export const StyledRow = withWrapper(StyledRowElement, StyledComponent => function StyledRow(props) {
|
|
126
132
|
return /*#__PURE__*/React.createElement(StyledComponent, _extends({
|
|
127
133
|
role: "row"
|
|
@@ -143,6 +149,7 @@ const StyledCellElement = styled('div', ({
|
|
|
143
149
|
};
|
|
144
150
|
});
|
|
145
151
|
StyledCellElement.displayName = "StyledCellElement";
|
|
152
|
+
StyledCellElement.displayName = 'StyledCellElement';
|
|
146
153
|
export const StyledCell = withWrapper(StyledCellElement, StyledComponent => function StyledCell(props) {
|
|
147
154
|
return /*#__PURE__*/React.createElement(StyledComponent, _extends({
|
|
148
155
|
role: "gridcell"
|
|
@@ -187,6 +194,7 @@ export const StyledFilterButton = styled('button', props => {
|
|
|
187
194
|
};
|
|
188
195
|
});
|
|
189
196
|
StyledFilterButton.displayName = "StyledFilterButton";
|
|
197
|
+
StyledFilterButton.displayName = 'StyledFilterButton';
|
|
190
198
|
export const StyledFilterContent = styled('div', ({
|
|
191
199
|
$theme
|
|
192
200
|
}) => ({ ...expandBorderStyles($theme.borders.border300),
|
|
@@ -199,6 +207,7 @@ export const StyledFilterContent = styled('div', ({
|
|
|
199
207
|
overflow: 'auto'
|
|
200
208
|
}));
|
|
201
209
|
StyledFilterContent.displayName = "StyledFilterContent";
|
|
210
|
+
StyledFilterContent.displayName = 'StyledFilterContent';
|
|
202
211
|
export const StyledFilterHeading = styled('div', ({
|
|
203
212
|
$theme
|
|
204
213
|
}) => ({ ...$theme.typography.font250,
|
|
@@ -209,6 +218,7 @@ export const StyledFilterHeading = styled('div', ({
|
|
|
209
218
|
paddingLeft: $theme.sizing.scale600
|
|
210
219
|
}));
|
|
211
220
|
StyledFilterHeading.displayName = "StyledFilterHeading";
|
|
221
|
+
StyledFilterHeading.displayName = 'StyledFilterHeading';
|
|
212
222
|
export const StyledFilterFooter = styled('div', ({
|
|
213
223
|
$theme
|
|
214
224
|
}) => ({
|
|
@@ -222,6 +232,7 @@ export const StyledFilterFooter = styled('div', ({
|
|
|
222
232
|
minWidth: '216px'
|
|
223
233
|
}));
|
|
224
234
|
StyledFilterFooter.displayName = "StyledFilterFooter";
|
|
235
|
+
StyledFilterFooter.displayName = 'StyledFilterFooter';
|
|
225
236
|
export const StyledAction = styled('button', ({
|
|
226
237
|
$theme
|
|
227
238
|
}) => {
|
|
@@ -243,4 +254,5 @@ export const StyledAction = styled('button', ({
|
|
|
243
254
|
}
|
|
244
255
|
};
|
|
245
256
|
});
|
|
246
|
-
StyledAction.displayName = "StyledAction";
|
|
257
|
+
StyledAction.displayName = "StyledAction";
|
|
258
|
+
StyledAction.displayName = 'StyledAction';
|
|
@@ -20,6 +20,7 @@ const StyledTableElement = withStyle(FlexStyledTable, props => {
|
|
|
20
20
|
};
|
|
21
21
|
});
|
|
22
22
|
StyledTableElement.displayName = "StyledTableElement";
|
|
23
|
+
StyledTableElement.displayName = 'StyledTableElement';
|
|
23
24
|
export const StyledTable = withWrapper(StyledTableElement, StyledComponent => function StyledTable(props) {
|
|
24
25
|
return /*#__PURE__*/React.createElement(StyledComponent, _extends({
|
|
25
26
|
"data-baseweb": "table-grid"
|
|
@@ -44,6 +45,7 @@ export const StyledHeadCell = withStyle(FlexStyledHeadCell, ({
|
|
|
44
45
|
};
|
|
45
46
|
});
|
|
46
47
|
StyledHeadCell.displayName = "StyledHeadCell";
|
|
48
|
+
StyledHeadCell.displayName = 'StyledHeadCell';
|
|
47
49
|
export const StyledBodyCell = withStyle(FlexStyledBodyCell, props => {
|
|
48
50
|
return {
|
|
49
51
|
display: 'block',
|
|
@@ -56,4 +58,5 @@ export const StyledBodyCell = withStyle(FlexStyledBodyCell, props => {
|
|
|
56
58
|
}
|
|
57
59
|
};
|
|
58
60
|
});
|
|
59
|
-
StyledBodyCell.displayName = "StyledBodyCell";
|
|
61
|
+
StyledBodyCell.displayName = "StyledBodyCell";
|
|
62
|
+
StyledBodyCell.displayName = 'StyledBodyCell';
|