baseui 12.1.3 → 13.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/a11y/a11y.js +6 -2
- package/a11y/types.d.ts +1 -1
- package/accordion/accordion.js +1 -0
- package/accordion/index.d.ts +1 -1
- package/accordion/locale.d.ts +1 -1
- package/accordion/panel.js +2 -1
- package/accordion/stateless-accordion.js +3 -1
- package/accordion/types.d.ts +18 -18
- package/app-nav-bar/app-nav-bar.js +9 -3
- package/app-nav-bar/index.d.ts +4 -4
- package/app-nav-bar/mobile-menu.js +4 -2
- package/app-nav-bar/styled-components.js +2 -35
- package/app-nav-bar/styled-components.js.flow +6 -36
- package/app-nav-bar/types.d.ts +6 -6
- package/app-nav-bar/user-menu.js +3 -2
- package/app-nav-bar/utils.d.ts +1 -1
- package/aspect-ratio-box/aspect-ratio-box-body.js +11 -7
- package/aspect-ratio-box/aspect-ratio-box.js +1 -0
- package/aspect-ratio-box/types.d.ts +1 -1
- package/avatar/avatar.js +3 -1
- package/avatar/styled-components.js +3 -1
- package/avatar/types.d.ts +6 -6
- package/badge/index.d.ts +8 -8
- package/badge/styled-components.js +8 -5
- package/badge/styled-components.js.flow +9 -4
- package/badge/types.d.ts +9 -9
- package/badge/utils.d.ts +1 -1
- package/banner/banner.js +26 -10
- package/banner/banner.js.flow +9 -4
- package/banner/index.d.ts +3 -3
- package/banner/styled-components.js +1 -1
- package/banner/types.d.ts +12 -11
- package/block/styled-components.js +21 -4
- package/block/types.d.ts +21 -21
- package/bottom-navigation/bottom-navigation.d.ts +4 -0
- package/bottom-navigation/bottom-navigation.js +170 -0
- package/bottom-navigation/index.d.ts +4 -0
- package/bottom-navigation/index.js +55 -0
- package/bottom-navigation/index.js.flow +72 -0
- package/bottom-navigation/nav-item.d.ts +3 -0
- package/bottom-navigation/nav-item.js +20 -0
- package/bottom-navigation/package.json +4 -0
- package/bottom-navigation/panel.d.ts +3 -0
- package/bottom-navigation/panel.js +53 -0
- package/bottom-navigation/selector.d.ts +3 -0
- package/bottom-navigation/selector.js +71 -0
- package/bottom-navigation/styled-components.d.ts +9 -0
- package/bottom-navigation/styled-components.js +105 -0
- package/bottom-navigation/types.d.ts +45 -0
- package/bottom-navigation/types.js +5 -0
- package/breadcrumbs/breadcrumbs.js +6 -2
- package/breadcrumbs/locale.d.ts +1 -1
- package/breadcrumbs/types.d.ts +2 -2
- package/button/button-internals.js +13 -0
- package/button/button.d.ts +2 -2
- package/button/button.js +3 -8
- package/button/index.d.ts +1 -1
- package/button/styled-components.js +11 -6
- package/button/types.d.ts +4 -4
- package/button-dock/button-dock.d.ts +4 -0
- package/button-dock/button-dock.js +63 -0
- package/button-dock/index.d.ts +3 -0
- package/button-dock/index.js +46 -0
- package/button-dock/index.js.flow +37 -0
- package/button-dock/package.json +4 -0
- package/button-dock/styled-components.d.ts +5 -0
- package/button-dock/styled-components.js +63 -0
- package/button-dock/types.d.ts +14 -0
- package/button-dock/types.js +5 -0
- package/button-docked/button-docked.d.ts +4 -0
- package/button-docked/button-docked.js +63 -0
- package/button-docked/index.d.ts +3 -0
- package/button-docked/index.js +46 -0
- package/button-docked/index.js.flow +37 -0
- package/button-docked/package.json +4 -0
- package/button-docked/styled-components.d.ts +5 -0
- package/button-docked/styled-components.js +62 -0
- package/button-docked/types.d.ts +14 -0
- package/button-docked/types.js +5 -0
- package/button-group/button-group.js +5 -0
- package/button-group/locale.d.ts +1 -1
- package/button-group/stateful-container.d.ts +1 -1
- package/button-group/stateful-container.js +3 -0
- package/button-group/types.d.ts +11 -11
- package/button-timed/button-timed.d.ts +4 -0
- package/button-timed/button-timed.js +125 -0
- package/button-timed/index.d.ts +5 -0
- package/button-timed/index.js +78 -0
- package/button-timed/index.js.flow +57 -0
- package/button-timed/package.json +4 -0
- package/button-timed/styled-components.d.ts +5 -0
- package/button-timed/styled-components.js +59 -0
- package/button-timed/types.d.ts +12 -0
- package/button-timed/types.js +5 -0
- package/button-timed/utils.d.ts +1 -0
- package/button-timed/utils.js +30 -0
- package/card/card.js +4 -2
- package/card/card.js.flow +1 -1
- package/card/types.d.ts +4 -4
- package/card/types.js.flow +1 -1
- package/checkbox/checkbox.d.ts +2 -0
- package/checkbox/checkbox.js +36 -16
- package/checkbox/checkbox.js.flow +1 -4
- package/checkbox/styled-components.js +11 -5
- package/checkbox/types.d.ts +15 -17
- package/checkbox/types.js.flow +2 -2
- package/combobox/combobox.js +20 -20
- package/combobox/combobox.js.flow +8 -3
- package/combobox/index.d.ts +1 -1
- package/combobox/styled-components.js +3 -1
- package/combobox/types.d.ts +5 -3
- package/combobox/types.js.flow +2 -0
- package/data-table/column-anchor.d.ts +5 -5
- package/data-table/column-anchor.js +3 -1
- package/data-table/column-boolean.d.ts +3 -3
- package/data-table/column-boolean.js +4 -2
- package/data-table/column-categorical.d.ts +4 -4
- package/data-table/column-categorical.js +8 -3
- package/data-table/column-custom.d.ts +1 -1
- package/data-table/column-datetime.d.ts +4 -4
- package/data-table/column-datetime.js +22 -6
- package/data-table/column-numerical.d.ts +4 -4
- package/data-table/column-numerical.js +12 -6
- package/data-table/column-row-index.d.ts +3 -3
- package/data-table/column-row-index.js +2 -1
- package/data-table/column-string.d.ts +3 -3
- package/data-table/column-string.js +3 -1
- package/data-table/column.js +2 -0
- package/data-table/data-table.js +41 -22
- package/data-table/data-table.js.flow +2 -2
- package/data-table/filter-menu.d.ts +1 -1
- package/data-table/filter-menu.js +18 -6
- package/data-table/filter-shell.d.ts +2 -2
- package/data-table/header-cell.d.ts +1 -1
- package/data-table/header-cell.js +2 -0
- package/data-table/index.d.ts +5 -5
- package/data-table/locale.d.ts +5 -1
- package/data-table/locale.js +3 -1
- package/data-table/locale.js.flow +4 -1
- package/data-table/measure-column-widths.d.ts +1 -1
- package/data-table/measure-column-widths.js +23 -22
- package/data-table/measure-column-widths.js.flow +1 -2
- package/data-table/stateful-container.js +52 -37
- package/data-table/stateful-data-table.js +18 -10
- package/data-table/text-search.js +1 -0
- package/data-table/types.d.ts +17 -14
- package/data-table/types.js.flow +2 -0
- package/datepicker/calendar-header.js +63 -20
- package/datepicker/calendar-header.js.flow +9 -7
- package/datepicker/calendar.d.ts +1 -0
- package/datepicker/calendar.js +94 -20
- package/datepicker/calendar.js.flow +56 -1
- package/datepicker/datepicker.d.ts +2 -1
- package/datepicker/datepicker.js +34 -12
- package/datepicker/day.js +10 -3
- package/datepicker/index.d.ts +1 -1
- package/datepicker/index.js.flow +1 -0
- package/datepicker/locale.d.ts +1 -1
- package/datepicker/locale.js +1 -1
- package/datepicker/month.js +14 -1
- package/datepicker/stateful-calendar.d.ts +1 -1
- package/datepicker/stateful-container.d.ts +2 -2
- package/datepicker/stateful-container.js +3 -2
- package/datepicker/stateful-datepicker.d.ts +1 -1
- package/datepicker/styled-components.d.ts +6 -2
- package/datepicker/styled-components.js +84 -49
- package/datepicker/types.d.ts +35 -22
- package/datepicker/types.js.flow +13 -0
- package/datepicker/utils/calendar-header-helpers.d.ts +2 -2
- package/datepicker/utils/date-helpers.js +3 -2
- package/datepicker/utils/day-state.js +6 -2
- package/datepicker/utils/index.d.ts +1 -1
- package/datepicker/utils/types.d.ts +7 -7
- package/datepicker/week.js +7 -3
- package/divider/types.d.ts +1 -1
- package/dnd-list/index.d.ts +1 -1
- package/dnd-list/list.js +2 -0
- package/dnd-list/stateful-list-container.js +4 -2
- package/dnd-list/styled-components.js +4 -2
- package/dnd-list/types.d.ts +8 -8
- package/drawer/drawer.d.ts +3 -3
- package/drawer/locale.d.ts +1 -1
- package/drawer/styled-components.js +14 -11
- package/drawer/types.d.ts +11 -11
- package/es/a11y/a11y.js +6 -2
- package/es/accordion/accordion.js +1 -0
- package/es/accordion/panel.js +2 -1
- package/es/accordion/stateless-accordion.js +3 -1
- package/es/app-nav-bar/app-nav-bar.js +8 -4
- package/es/app-nav-bar/mobile-menu.js +6 -3
- package/es/app-nav-bar/styled-components.js +5 -35
- package/es/app-nav-bar/user-menu.js +3 -2
- package/es/aspect-ratio-box/aspect-ratio-box-body.js +4 -1
- package/es/aspect-ratio-box/aspect-ratio-box.js +1 -0
- package/es/avatar/avatar.js +3 -1
- package/es/avatar/styled-components.js +3 -1
- package/es/badge/styled-components.js +8 -6
- package/es/banner/banner.js +26 -10
- package/es/banner/styled-components.js +1 -1
- package/es/block/styled-components.js +21 -4
- package/es/bottom-navigation/bottom-navigation.js +109 -0
- package/es/bottom-navigation/index.js +10 -0
- package/es/bottom-navigation/nav-item.js +12 -0
- package/es/bottom-navigation/panel.js +25 -0
- package/es/bottom-navigation/selector.js +34 -0
- package/es/bottom-navigation/styled-components.js +89 -0
- package/es/bottom-navigation/types.js +1 -0
- package/es/breadcrumbs/breadcrumbs.js +6 -2
- package/es/button/button-internals.js +13 -0
- package/es/button/button.js +7 -13
- package/es/button/styled-components.js +17 -6
- package/es/button-dock/button-dock.js +29 -0
- package/es/button-dock/index.js +9 -0
- package/es/button-dock/styled-components.js +49 -0
- package/es/button-dock/types.js +1 -0
- package/es/button-docked/button-docked.js +29 -0
- package/es/button-docked/index.js +9 -0
- package/es/button-docked/styled-components.js +48 -0
- package/es/button-docked/types.js +1 -0
- package/es/button-group/button-group.js +5 -0
- package/es/button-group/stateful-container.js +3 -0
- package/es/button-timed/button-timed.js +83 -0
- package/es/button-timed/index.js +11 -0
- package/es/button-timed/styled-components.js +49 -0
- package/es/button-timed/types.js +1 -0
- package/es/button-timed/utils.js +21 -0
- package/es/card/card.js +3 -2
- package/es/checkbox/checkbox.js +37 -16
- package/es/checkbox/styled-components.js +11 -5
- package/es/combobox/combobox.js +19 -20
- package/es/combobox/styled-components.js +3 -1
- package/es/data-table/column-anchor.js +3 -1
- package/es/data-table/column-boolean.js +4 -2
- package/es/data-table/column-categorical.js +7 -3
- package/es/data-table/column-datetime.js +22 -6
- package/es/data-table/column-numerical.js +14 -7
- package/es/data-table/column-row-index.js +2 -1
- package/es/data-table/column-string.js +3 -1
- package/es/data-table/column.js +2 -0
- package/es/data-table/data-table.js +38 -19
- package/es/data-table/filter-menu.js +16 -6
- package/es/data-table/header-cell.js +2 -0
- package/es/data-table/locale.js +3 -1
- package/es/data-table/measure-column-widths.js +23 -22
- package/es/data-table/stateful-container.js +42 -22
- package/es/data-table/stateful-data-table.js +16 -8
- package/es/data-table/text-search.js +1 -0
- package/es/datepicker/calendar-header.js +63 -20
- package/es/datepicker/calendar.js +68 -12
- package/es/datepicker/datepicker.js +32 -12
- package/es/datepicker/day.js +10 -3
- package/es/datepicker/locale.js +1 -1
- package/es/datepicker/month.js +14 -1
- package/es/datepicker/stateful-container.js +3 -2
- package/es/datepicker/styled-components.js +85 -54
- package/es/datepicker/utils/date-helpers.js +3 -2
- package/es/datepicker/utils/day-state.js +6 -2
- package/es/datepicker/week.js +7 -3
- package/es/dnd-list/list.js +2 -0
- package/es/dnd-list/stateful-list-container.js +5 -2
- package/es/dnd-list/styled-components.js +4 -2
- package/es/drawer/styled-components.js +14 -11
- package/es/file-uploader/file-uploader.js +92 -82
- package/es/file-uploader/styled-components.js +5 -3
- package/es/flex-grid/flex-grid-item.js +7 -2
- package/es/flex-grid/flex-grid.js +2 -1
- package/es/form-control/form-control.js +10 -2
- package/es/helper/stateful-helper.js +1 -0
- package/es/helper/styled-components.js +9 -5
- package/es/helpers/overrides.js +1 -0
- package/es/helpers/react-helpers.js +1 -1
- package/es/helpers/responsive-helpers.js +25 -1
- package/es/icon/alert.js +1 -0
- package/es/icon/arrow-down.js +1 -0
- package/es/icon/arrow-left.js +1 -0
- package/es/icon/arrow-right.js +1 -0
- package/es/icon/arrow-up.js +1 -0
- package/es/icon/blank.js +1 -0
- package/es/icon/calendar.js +44 -0
- package/es/icon/check-indeterminate.js +1 -0
- package/es/icon/check.js +1 -0
- package/es/icon/chevron-down.js +1 -0
- package/es/icon/chevron-left.js +1 -0
- package/es/icon/chevron-right.js +1 -0
- package/es/icon/chevron-up.js +1 -0
- package/es/icon/delete-alt.js +1 -0
- package/es/icon/delete.js +1 -0
- package/es/icon/filter.js +1 -0
- package/es/icon/grab.js +1 -0
- package/es/icon/hide.js +1 -0
- package/es/icon/icon-exports.js +1 -0
- package/es/icon/icon.js +1 -0
- package/es/icon/menu.js +1 -0
- package/es/icon/omit-dollar-prefixed-keys.js +1 -0
- package/es/icon/overflow.js +1 -0
- package/es/icon/plus.js +1 -0
- package/es/icon/search.js +1 -0
- package/es/icon/show.js +1 -0
- package/es/icon/spinner.js +1 -0
- package/es/icon/styled-components.js +4 -0
- package/es/icon/triangle-down.js +1 -0
- package/es/icon/triangle-left.js +1 -0
- package/es/icon/triangle-right.js +1 -0
- package/es/icon/triangle-up.js +1 -0
- package/es/icon/upload.js +1 -0
- package/es/input/base-input.js +34 -11
- package/es/input/input.js +13 -4
- package/es/input/masked-input.js +2 -1
- package/es/input/stateful-container.js +4 -1
- package/es/input/styled-components.js +31 -7
- package/es/input/utils.js +2 -0
- package/es/layer/layer.js +5 -1
- package/es/layer/tether.js +4 -1
- package/es/layout-grid/grid.js +1 -0
- package/es/layout-grid/index.js +2 -1
- package/es/layout-grid/styled-components.js +6 -3
- package/es/link/index.js +1 -0
- package/es/list/list-heading.js +21 -22
- package/es/list/list-item.js +5 -1
- package/es/list/styled-components.js +16 -3
- package/es/locale/es_AR.js +3 -1
- package/es/locale/index.js +10 -4
- package/es/locale/tr_TR.js +3 -1
- package/es/map-marker/calculate-offsets.js +20 -0
- package/es/map-marker/constants.js +116 -1
- package/es/map-marker/fixed-marker.js +2 -0
- package/es/map-marker/floating-marker.js +3 -1
- package/es/map-marker/floating-route-marker.js +72 -0
- package/es/map-marker/index.js +3 -1
- package/es/map-marker/location-puck.js +10 -5
- package/es/map-marker/pin-head.js +19 -10
- package/es/map-marker/styled-components.js +81 -6
- package/es/menu/menu.js +12 -4
- package/es/menu/nested-menus.js +9 -1
- package/es/menu/option-list.js +7 -4
- package/es/menu/option-profile.js +3 -3
- package/es/menu/stateful-container.js +8 -3
- package/es/menu/styled-components.js +5 -3
- package/es/message-card/message-card.js +26 -25
- package/es/message-card/styled-components.js +6 -1
- package/es/mobile-header/constants.js +9 -0
- package/es/mobile-header/index.js +9 -0
- package/es/mobile-header/mobile-header.js +110 -0
- package/es/mobile-header/styled-components.js +69 -0
- package/es/mobile-header/types.js +1 -0
- package/es/modal/modal-button.js +1 -0
- package/es/modal/modal.js +25 -19
- package/es/modal/styled-components.js +9 -2
- package/es/page-control/constants.js +17 -0
- package/es/page-control/index.js +9 -0
- package/es/page-control/page-control.js +114 -0
- package/es/page-control/styled-components.js +99 -0
- package/es/page-control/types.js +1 -0
- package/es/pagination/pagination.js +62 -56
- package/es/payment-card/payment-card.js +6 -2
- package/es/phone-input/base-country-picker.js +5 -2
- package/es/phone-input/country-picker.js +7 -0
- package/es/phone-input/country-select.js +1 -0
- package/es/phone-input/default-props.js +4 -0
- package/es/phone-input/flag.js +2 -1
- package/es/phone-input/phone-input-lite.js +2 -0
- package/es/phone-input/phone-input-next.js +2 -0
- package/es/phone-input/stateful-phone-input-container.js +1 -0
- package/es/pin-code/default-props.js +4 -0
- package/es/pin-code/pin-code.js +4 -2
- package/es/popover/popover.js +23 -6
- package/es/popover/stateful-popover.js +1 -0
- package/es/popover/utils.js +4 -1
- package/es/progress-bar/progressbar-rounded.js +27 -28
- package/es/progress-bar/progressbar.js +9 -3
- package/es/progress-bar/styled-components.js +4 -0
- package/es/progress-steps/progress-steps.js +1 -0
- package/es/radio/radio.js +5 -2
- package/es/radio/radiogroup.js +1 -0
- package/es/radio/styled-components.js +11 -5
- package/es/rating/emoticon-rating.js +16 -7
- package/es/rating/star-rating.js +16 -7
- package/es/rating/styled-components.js +2 -0
- package/es/select/default-props.js +10 -0
- package/es/select/dropdown.js +3 -1
- package/es/select/multi-value.js +1 -0
- package/es/select/select-component.js +60 -21
- package/es/select/stateful-select-container.js +1 -0
- package/es/select/styled-components.js +18 -7
- package/es/select/utils/default-filter-options.js +3 -1
- package/es/select/utils/index.js +3 -1
- package/es/sheet/action-button.js +44 -0
- package/es/sheet/index.js +9 -0
- package/es/sheet/sheet.js +100 -0
- package/es/sheet/styled-components.js +197 -0
- package/es/sheet/types.js +1 -0
- package/es/side-navigation/index.js +2 -1
- package/es/side-navigation/nav-item.js +2 -1
- package/es/side-navigation/nav.js +10 -3
- package/es/side-navigation/side-navigation-next.js +271 -0
- package/es/side-navigation/styled-components.js +4 -2
- package/es/skeleton/skeleton.js +2 -0
- package/es/skeleton/styled-components.js +1 -0
- package/es/slider/slider.js +2 -1
- package/es/snackbar/snackbar-context.js +29 -11
- package/es/snackbar/snackbar-element.js +4 -1
- package/es/snackbar/styled-components.js +1 -1
- package/es/spinner/styled-components.js +2 -0
- package/es/stepper/index.js +8 -0
- package/es/stepper/stepper.js +89 -0
- package/es/stepper/styled-components.js +19 -0
- package/es/stepper/types.js +1 -0
- package/es/styles/__mocks__/styled.js +6 -2
- package/es/styles/as-primary-export-hoc.js +2 -0
- package/es/styles/styled.js +2 -1
- package/es/system-banner/index.js +8 -0
- package/es/system-banner/styled-components.js +71 -0
- package/es/system-banner/system-banner.js +81 -0
- package/es/system-banner/types.js +1 -0
- package/es/table/styled-components.js +1 -0
- package/es/table/table.js +2 -0
- package/es/table-semantic/styled-components.js +8 -8
- package/es/table-semantic/table-builder.js +25 -22
- package/es/table-semantic/table.js +2 -0
- package/es/tabs/stateful-tabs.js +2 -2
- package/es/tabs-motion/stateful-tabs.js +1 -0
- package/es/tabs-motion/tab.js +1 -0
- package/es/tabs-motion/tabs.js +29 -6
- package/es/tag/styled-components.js +72 -2
- package/es/tag/tag.js +2 -0
- package/es/textarea/stateful-textarea.js +5 -1
- package/es/textarea/textarea.js +4 -2
- package/es/themes/dark-theme/color-component-tokens.js +2 -2
- package/es/themes/dark-theme/color-semantic-tokens.js +12 -4
- package/es/themes/light-theme/color-semantic-tokens.js +12 -4
- package/es/timepicker/timepicker.js +10 -4
- package/es/timezonepicker/timezone-picker.js +3 -1
- package/es/toast/toast.js +13 -5
- package/es/toast/toaster.js +24 -3
- package/es/tree-view/tree-label-interactable.js +4 -2
- package/es/tree-view/tree-view.js +5 -2
- package/es/tree-view/utils.js +43 -15
- package/es/utils/deep-merge.js +5 -0
- package/es/utils/focusVisible.js +17 -7
- package/esm/a11y/a11y.js +6 -2
- package/esm/accordion/accordion.js +1 -0
- package/esm/accordion/panel.js +2 -1
- package/esm/accordion/stateless-accordion.js +3 -1
- package/esm/app-nav-bar/app-nav-bar.js +9 -4
- package/esm/app-nav-bar/mobile-menu.js +4 -2
- package/esm/app-nav-bar/styled-components.js +3 -36
- package/esm/app-nav-bar/user-menu.js +3 -2
- package/esm/aspect-ratio-box/aspect-ratio-box-body.js +11 -7
- package/esm/aspect-ratio-box/aspect-ratio-box.js +1 -0
- package/esm/avatar/avatar.js +3 -1
- package/esm/avatar/styled-components.js +3 -1
- package/esm/badge/styled-components.js +8 -6
- package/esm/banner/banner.js +26 -10
- package/esm/banner/styled-components.js +1 -1
- package/esm/block/styled-components.js +21 -4
- package/esm/bottom-navigation/bottom-navigation.js +154 -0
- package/esm/bottom-navigation/index.js +10 -0
- package/esm/bottom-navigation/nav-item.js +12 -0
- package/esm/bottom-navigation/panel.js +42 -0
- package/esm/bottom-navigation/selector.js +58 -0
- package/esm/bottom-navigation/styled-components.js +96 -0
- package/esm/bottom-navigation/types.js +1 -0
- package/esm/breadcrumbs/breadcrumbs.js +6 -2
- package/esm/button/button-internals.js +13 -0
- package/esm/button/button.js +3 -8
- package/esm/button/styled-components.js +11 -6
- package/esm/button-dock/button-dock.js +53 -0
- package/esm/button-dock/index.js +9 -0
- package/esm/button-dock/styled-components.js +52 -0
- package/esm/button-dock/types.js +1 -0
- package/esm/button-docked/button-docked.js +53 -0
- package/esm/button-docked/index.js +9 -0
- package/esm/button-docked/styled-components.js +51 -0
- package/esm/button-docked/types.js +1 -0
- package/esm/button-group/button-group.js +5 -0
- package/esm/button-group/stateful-container.js +3 -0
- package/esm/button-timed/button-timed.js +113 -0
- package/esm/button-timed/index.js +11 -0
- package/esm/button-timed/styled-components.js +53 -0
- package/esm/button-timed/types.js +1 -0
- package/esm/button-timed/utils.js +21 -0
- package/esm/card/card.js +3 -2
- package/esm/checkbox/checkbox.js +36 -16
- package/esm/checkbox/styled-components.js +11 -5
- package/esm/combobox/combobox.js +20 -20
- package/esm/combobox/styled-components.js +3 -1
- package/esm/data-table/column-anchor.js +3 -1
- package/esm/data-table/column-boolean.js +4 -2
- package/esm/data-table/column-categorical.js +7 -3
- package/esm/data-table/column-datetime.js +22 -6
- package/esm/data-table/column-numerical.js +14 -7
- package/esm/data-table/column-row-index.js +2 -1
- package/esm/data-table/column-string.js +3 -1
- package/esm/data-table/column.js +2 -0
- package/esm/data-table/data-table.js +43 -23
- package/esm/data-table/filter-menu.js +16 -6
- package/esm/data-table/header-cell.js +2 -0
- package/esm/data-table/locale.js +3 -1
- package/esm/data-table/measure-column-widths.js +23 -22
- package/esm/data-table/stateful-container.js +52 -37
- package/esm/data-table/stateful-data-table.js +18 -10
- package/esm/data-table/text-search.js +1 -0
- package/esm/datepicker/calendar-header.js +63 -20
- package/esm/datepicker/calendar.js +92 -20
- package/esm/datepicker/datepicker.js +34 -12
- package/esm/datepicker/day.js +10 -3
- package/esm/datepicker/locale.js +1 -1
- package/esm/datepicker/month.js +14 -1
- package/esm/datepicker/stateful-container.js +3 -2
- package/esm/datepicker/styled-components.js +84 -49
- package/esm/datepicker/utils/date-helpers.js +3 -2
- package/esm/datepicker/utils/day-state.js +6 -2
- package/esm/datepicker/week.js +7 -3
- package/esm/dnd-list/list.js +2 -0
- package/esm/dnd-list/stateful-list-container.js +4 -2
- package/esm/dnd-list/styled-components.js +4 -2
- package/esm/drawer/styled-components.js +14 -11
- package/esm/file-uploader/file-uploader.js +97 -87
- package/esm/file-uploader/styled-components.js +5 -3
- package/esm/flex-grid/flex-grid-item.js +7 -2
- package/esm/flex-grid/flex-grid.js +2 -1
- package/esm/form-control/form-control.js +5 -2
- package/esm/helper/stateful-helper.js +1 -0
- package/esm/helper/styled-components.js +9 -5
- package/esm/helpers/overrides.js +1 -0
- package/esm/helpers/react-helpers.js +1 -1
- package/esm/helpers/responsive-helpers.js +54 -1
- package/esm/icon/alert.js +1 -0
- package/esm/icon/arrow-down.js +1 -0
- package/esm/icon/arrow-left.js +1 -0
- package/esm/icon/arrow-right.js +1 -0
- package/esm/icon/arrow-up.js +1 -0
- package/esm/icon/blank.js +1 -0
- package/esm/icon/calendar.js +66 -0
- package/esm/icon/check-indeterminate.js +1 -0
- package/esm/icon/check.js +1 -0
- package/esm/icon/chevron-down.js +1 -0
- package/esm/icon/chevron-left.js +1 -0
- package/esm/icon/chevron-right.js +1 -0
- package/esm/icon/chevron-up.js +1 -0
- package/esm/icon/delete-alt.js +1 -0
- package/esm/icon/delete.js +1 -0
- package/esm/icon/filter.js +1 -0
- package/esm/icon/grab.js +1 -0
- package/esm/icon/hide.js +1 -0
- package/esm/icon/icon-exports.js +1 -0
- package/esm/icon/icon.js +1 -0
- package/esm/icon/menu.js +1 -0
- package/esm/icon/omit-dollar-prefixed-keys.js +1 -0
- package/esm/icon/overflow.js +1 -0
- package/esm/icon/plus.js +1 -0
- package/esm/icon/search.js +1 -0
- package/esm/icon/show.js +1 -0
- package/esm/icon/spinner.js +1 -0
- package/esm/icon/styled-components.js +4 -0
- package/esm/icon/triangle-down.js +1 -0
- package/esm/icon/triangle-left.js +1 -0
- package/esm/icon/triangle-right.js +1 -0
- package/esm/icon/triangle-up.js +1 -0
- package/esm/icon/upload.js +1 -0
- package/esm/input/base-input.js +31 -15
- package/esm/input/input.js +10 -4
- package/esm/input/masked-input.js +2 -1
- package/esm/input/stateful-container.js +4 -1
- package/esm/input/styled-components.js +32 -8
- package/esm/input/utils.js +2 -0
- package/esm/layer/layer.js +6 -2
- package/esm/layer/tether.js +4 -1
- package/esm/layout-grid/grid.js +1 -0
- package/esm/layout-grid/index.js +2 -1
- package/esm/layout-grid/styled-components.js +6 -3
- package/esm/link/index.js +1 -0
- package/esm/list/list-heading.js +21 -22
- package/esm/list/list-item.js +5 -1
- package/esm/list/styled-components.js +17 -4
- package/esm/locale/es_AR.js +3 -1
- package/esm/locale/index.js +10 -4
- package/esm/locale/tr_TR.js +3 -1
- package/esm/map-marker/calculate-offsets.js +32 -0
- package/esm/map-marker/constants.js +84 -3
- package/esm/map-marker/floating-marker.js +3 -1
- package/esm/map-marker/floating-route-marker.js +118 -0
- package/esm/map-marker/index.js +3 -1
- package/esm/map-marker/location-puck.js +9 -5
- package/esm/map-marker/pin-head.js +46 -24
- package/esm/map-marker/styled-components.js +84 -15
- package/esm/menu/menu.js +12 -4
- package/esm/menu/nested-menus.js +9 -1
- package/esm/menu/option-list.js +8 -4
- package/esm/menu/option-profile.js +3 -3
- package/esm/menu/stateful-container.js +8 -3
- package/esm/menu/styled-components.js +5 -3
- package/esm/message-card/message-card.js +31 -30
- package/esm/message-card/styled-components.js +6 -1
- package/esm/mobile-header/constants.js +9 -0
- package/esm/mobile-header/index.js +9 -0
- package/esm/mobile-header/mobile-header.js +157 -0
- package/esm/mobile-header/styled-components.js +80 -0
- package/esm/mobile-header/types.js +1 -0
- package/esm/modal/modal-button.js +1 -0
- package/esm/modal/modal.js +25 -19
- package/esm/modal/styled-components.js +9 -2
- package/esm/page-control/constants.js +17 -0
- package/esm/page-control/index.js +9 -0
- package/esm/page-control/page-control.js +139 -0
- package/esm/page-control/styled-components.js +95 -0
- package/esm/page-control/types.js +1 -0
- package/esm/pagination/pagination.js +65 -59
- package/esm/payment-card/payment-card.js +6 -2
- package/esm/phone-input/base-country-picker.js +5 -2
- package/esm/phone-input/country-picker.js +4 -0
- package/esm/phone-input/country-select.js +1 -0
- package/esm/phone-input/default-props.js +4 -0
- package/esm/phone-input/flag.js +2 -1
- package/esm/phone-input/phone-input-lite.js +2 -0
- package/esm/phone-input/phone-input-next.js +2 -0
- package/esm/phone-input/stateful-phone-input-container.js +1 -0
- package/esm/pin-code/default-props.js +4 -0
- package/esm/pin-code/pin-code.js +4 -2
- package/esm/popover/popover.js +23 -6
- package/esm/popover/stateful-popover.js +1 -0
- package/esm/popover/utils.js +3 -1
- package/esm/progress-bar/progressbar-rounded.js +27 -28
- package/esm/progress-bar/progressbar.js +9 -3
- package/esm/progress-bar/styled-components.js +2 -0
- package/esm/progress-steps/progress-steps.js +1 -0
- package/esm/radio/radio.js +5 -2
- package/esm/radio/radiogroup.js +1 -0
- package/esm/radio/styled-components.js +11 -5
- package/esm/rating/emoticon-rating.js +16 -7
- package/esm/rating/star-rating.js +16 -7
- package/esm/rating/styled-components.js +2 -0
- package/esm/select/default-props.js +10 -0
- package/esm/select/dropdown.js +3 -1
- package/esm/select/multi-value.js +1 -0
- package/esm/select/select-component.js +59 -22
- package/esm/select/stateful-select-container.js +1 -0
- package/esm/select/styled-components.js +18 -7
- package/esm/select/utils/default-filter-options.js +3 -1
- package/esm/select/utils/index.js +3 -1
- package/esm/sheet/action-button.js +54 -0
- package/esm/sheet/index.js +9 -0
- package/esm/sheet/sheet.js +166 -0
- package/esm/sheet/styled-components.js +201 -0
- package/esm/sheet/types.js +1 -0
- package/esm/side-navigation/index.js +2 -1
- package/esm/side-navigation/nav-item.js +2 -1
- package/esm/side-navigation/nav.js +11 -4
- package/esm/side-navigation/side-navigation-next.js +359 -0
- package/esm/side-navigation/styled-components.js +4 -2
- package/esm/skeleton/skeleton.js +2 -0
- package/esm/skeleton/styled-components.js +1 -0
- package/esm/slider/slider.js +3 -1
- package/esm/snackbar/snackbar-context.js +27 -11
- package/esm/snackbar/snackbar-element.js +4 -1
- package/esm/snackbar/styled-components.js +1 -1
- package/esm/spinner/styled-components.js +2 -0
- package/esm/stepper/index.js +8 -0
- package/esm/stepper/stepper.js +145 -0
- package/esm/stepper/styled-components.js +20 -0
- package/esm/stepper/types.js +1 -0
- package/esm/styles/__mocks__/styled.js +9 -4
- package/esm/styles/as-primary-export-hoc.js +2 -0
- package/esm/styles/styled.js +2 -1
- package/esm/system-banner/index.js +8 -0
- package/esm/system-banner/styled-components.js +82 -0
- package/esm/system-banner/system-banner.js +93 -0
- package/esm/system-banner/types.js +1 -0
- package/esm/table/styled-components.js +1 -0
- package/esm/table/table.js +2 -0
- package/esm/table-semantic/styled-components.js +8 -8
- package/esm/table-semantic/table-builder.js +25 -22
- package/esm/table-semantic/table.js +2 -0
- package/esm/tabs/stateful-tabs.js +2 -2
- package/esm/tabs-motion/stateful-tabs.js +1 -0
- package/esm/tabs-motion/tab.js +1 -0
- package/esm/tabs-motion/tabs.js +26 -18
- package/esm/tag/styled-components.js +41 -2
- package/esm/tag/tag.js +2 -0
- package/esm/textarea/stateful-textarea.js +7 -3
- package/esm/textarea/textarea.js +4 -2
- package/esm/themes/dark-theme/color-component-tokens.js +2 -2
- package/esm/themes/dark-theme/color-semantic-tokens.js +12 -4
- package/esm/themes/light-theme/color-semantic-tokens.js +12 -4
- package/esm/timepicker/timepicker.js +11 -4
- package/esm/timezonepicker/timezone-picker.js +3 -1
- package/esm/toast/toast.js +10 -5
- package/esm/toast/toaster.js +21 -3
- package/esm/tree-view/tree-label-interactable.js +4 -2
- package/esm/tree-view/tree-view.js +5 -2
- package/esm/tree-view/utils.js +43 -15
- package/esm/utils/deep-merge.js +5 -0
- package/esm/utils/focusVisible.js +17 -7
- package/file-uploader/file-uploader.js +97 -87
- package/file-uploader/locale.d.ts +1 -1
- package/file-uploader/styled-components.js +5 -3
- package/file-uploader/styled-components.js.flow +1 -1
- package/file-uploader/types.d.ts +7 -30
- package/flex-grid/flex-grid-item.js +7 -2
- package/flex-grid/flex-grid.js +2 -1
- package/flex-grid/types.d.ts +2 -2
- package/form-control/form-control.js +5 -2
- package/form-control/types.d.ts +4 -4
- package/header-navigation/types.d.ts +4 -3
- package/header-navigation/types.js.flow +2 -0
- package/heading/types.d.ts +2 -2
- package/helper/index.d.ts +1 -1
- package/helper/stateful-helper.js +1 -0
- package/helper/styled-components.js +9 -5
- package/helper/types.d.ts +1 -1
- package/helpers/overrides.d.ts +7 -7
- package/helpers/overrides.js +1 -0
- package/helpers/react-helpers.d.ts +1 -1
- package/helpers/react-helpers.js +1 -1
- package/helpers/responsive-helpers.d.ts +5 -1
- package/helpers/responsive-helpers.js +62 -3
- package/helpers/responsive-helpers.js.flow +27 -1
- package/helpers/types.d.ts +9 -2
- package/helpers/types.js.flow +11 -0
- package/icon/alert.js +1 -0
- package/icon/arrow-down.js +1 -0
- package/icon/arrow-left.js +1 -0
- package/icon/arrow-right.js +1 -0
- package/icon/arrow-up.js +1 -0
- package/icon/blank.js +1 -0
- package/icon/calendar.d.ts +9 -0
- package/icon/calendar.js +78 -0
- package/icon/calendar.js.flow +47 -0
- package/icon/check-indeterminate.js +1 -0
- package/icon/check.js +1 -0
- package/icon/chevron-down.js +1 -0
- package/icon/chevron-left.js +1 -0
- package/icon/chevron-right.js +1 -0
- package/icon/chevron-up.js +1 -0
- package/icon/delete-alt.js +1 -0
- package/icon/delete.js +1 -0
- package/icon/filter.js +1 -0
- package/icon/grab.js +1 -0
- package/icon/hide.js +1 -0
- package/icon/icon-exports.d.ts +1 -0
- package/icon/icon-exports.js +8 -0
- package/icon/icon-exports.js.flow +1 -0
- package/icon/icon.js +1 -0
- package/icon/index.d.ts +1 -1
- package/icon/menu.js +1 -0
- package/icon/omit-dollar-prefixed-keys.js +1 -0
- package/icon/overflow.js +1 -0
- package/icon/plus.js +1 -0
- package/icon/search.js +1 -0
- package/icon/show.js +1 -0
- package/icon/spinner.js +1 -0
- package/icon/styled-components.js +4 -0
- package/icon/triangle-down.js +1 -0
- package/icon/triangle-left.js +1 -0
- package/icon/triangle-right.js +1 -0
- package/icon/triangle-up.js +1 -0
- package/icon/types.d.ts +5 -5
- package/icon/upload.js +1 -0
- package/index.d.ts +3 -3
- package/input/base-input.js +31 -15
- package/input/input.js +10 -4
- package/input/stateful-container.js +4 -1
- package/input/styled-components.js +32 -8
- package/input/types.d.ts +17 -17
- package/input/utils.js +2 -0
- package/layer/layer.js +6 -2
- package/layer/layers-manager.d.ts +8 -8
- package/layer/tether.d.ts +1 -1
- package/layer/tether.js +4 -1
- package/layer/tether.js.flow +1 -1
- package/layer/types.d.ts +22 -22
- package/layout-grid/grid.js +1 -0
- package/layout-grid/index.d.ts +1 -1
- package/layout-grid/index.js +2 -1
- package/layout-grid/index.js.flow +1 -0
- package/layout-grid/styled-components.js +6 -3
- package/layout-grid/types.d.ts +14 -14
- package/layout-grid/types.js.flow +7 -5
- package/link/index.d.ts +1 -1
- package/link/index.js +1 -0
- package/list/index.d.ts +11 -11
- package/list/list-heading.js +21 -22
- package/list/list-item.js +5 -1
- package/list/list-item.js.flow +5 -0
- package/list/styled-components.js +17 -4
- package/list/styled-components.js.flow +30 -14
- package/list/types.d.ts +15 -13
- package/list/types.js.flow +2 -0
- package/locale/es_AR.js +3 -1
- package/locale/index.d.ts +17 -14
- package/locale/index.js +9 -3
- package/locale/tr_TR.js +3 -1
- package/locale/types.d.ts +1 -1
- package/map-marker/calculate-offsets.d.ts +2 -0
- package/map-marker/calculate-offsets.js +36 -0
- package/map-marker/calculate-offsets.js.flow +47 -0
- package/map-marker/constants.d.ts +102 -0
- package/map-marker/constants.js +90 -4
- package/map-marker/constants.js.flow +67 -0
- package/map-marker/fixed-marker.js.flow +3 -127
- package/map-marker/floating-marker.d.ts +1 -1
- package/map-marker/floating-marker.js +3 -0
- package/map-marker/floating-marker.js.flow +1 -91
- package/map-marker/floating-route-marker.d.ts +4 -0
- package/map-marker/floating-route-marker.js +132 -0
- package/map-marker/floating-route-marker.js.flow +18 -0
- package/map-marker/index.d.ts +30 -24
- package/map-marker/index.js +26 -1
- package/map-marker/index.js.flow +4 -0
- package/map-marker/location-puck.js +9 -4
- package/map-marker/pin-head.d.ts +1 -1
- package/map-marker/pin-head.js +45 -23
- package/map-marker/pin-head.js.flow +1 -155
- package/map-marker/styled-components.d.ts +23 -2
- package/map-marker/styled-components.js +90 -16
- package/map-marker/styled-components.js.flow +45 -2
- package/map-marker/types.d.ts +62 -31
- package/map-marker/types.js.flow +37 -2
- package/menu/index.d.ts +8 -8
- package/menu/locale.d.ts +1 -1
- package/menu/maybe-child-menu.d.ts +3 -2
- package/menu/menu.js +12 -4
- package/menu/nested-menus.d.ts +2 -2
- package/menu/nested-menus.js +9 -1
- package/menu/option-list.js +8 -4
- package/menu/option-profile.js +3 -3
- package/menu/stateful-container.js +8 -3
- package/menu/styled-components.d.ts +1 -1
- package/menu/styled-components.js +5 -3
- package/menu/types.d.ts +31 -31
- package/message-card/message-card.js +30 -29
- package/message-card/styled-components.js +6 -1
- package/message-card/types.d.ts +1 -1
- package/mobile-header/constants.d.ts +4 -0
- package/mobile-header/constants.js +17 -0
- package/mobile-header/index.d.ts +4 -0
- package/mobile-header/index.js +60 -0
- package/mobile-header/index.js.flow +54 -0
- package/mobile-header/mobile-header.d.ts +4 -0
- package/mobile-header/mobile-header.js +173 -0
- package/mobile-header/package.json +4 -0
- package/mobile-header/styled-components.d.ts +12 -0
- package/mobile-header/styled-components.js +88 -0
- package/mobile-header/types.d.ts +26 -0
- package/mobile-header/types.js +5 -0
- package/modal/focus-once.d.ts +1 -1
- package/modal/locale.d.ts +1 -1
- package/modal/modal-button.d.ts +3 -3
- package/modal/modal-button.js +1 -0
- package/modal/modal.d.ts +4 -4
- package/modal/modal.js +24 -18
- package/modal/modal.js.flow +24 -18
- package/modal/styled-components.d.ts +1 -0
- package/modal/styled-components.js +11 -3
- package/modal/styled-components.js.flow +4 -0
- package/modal/types.d.ts +15 -10
- package/modal/types.js.flow +5 -0
- package/overrides.js.flow +16 -0
- package/package.json +11 -10
- package/page-control/constants.d.ts +12 -0
- package/page-control/constants.js +26 -0
- package/page-control/index.d.ts +4 -0
- package/page-control/index.js +55 -0
- package/page-control/index.js.flow +53 -0
- package/page-control/package.json +4 -0
- package/page-control/page-control.d.ts +4 -0
- package/page-control/page-control.js +151 -0
- package/page-control/styled-components.d.ts +11 -0
- package/page-control/styled-components.js +101 -0
- package/page-control/types.d.ts +19 -0
- package/page-control/types.js +5 -0
- package/pagination/index.d.ts +2 -2
- package/pagination/locale.d.ts +1 -1
- package/pagination/pagination.d.ts +1 -1
- package/pagination/pagination.js +62 -57
- package/pagination/types.d.ts +9 -9
- package/payment-card/payment-card.js +6 -2
- package/payment-card/types.d.ts +3 -3
- package/phone-input/base-country-picker.js +5 -2
- package/phone-input/country-picker.js +4 -0
- package/phone-input/country-select.js +1 -0
- package/phone-input/default-props.js +4 -0
- package/phone-input/flag.d.ts +2 -2
- package/phone-input/flag.js +2 -1
- package/phone-input/phone-input-lite.js +2 -0
- package/phone-input/phone-input-next.js +2 -0
- package/phone-input/stateful-phone-input-container.js +1 -0
- package/phone-input/styled-components.d.ts +2 -2
- package/phone-input/types.d.ts +15 -15
- package/pin-code/default-props.js +4 -0
- package/pin-code/index.d.ts +1 -1
- package/pin-code/pin-code.js +4 -2
- package/pin-code/types.d.ts +9 -9
- package/popover/popover.js +23 -6
- package/popover/popover.js.flow +3 -3
- package/popover/stateful-container.d.ts +1 -1
- package/popover/stateful-popover.js +1 -0
- package/popover/types.d.ts +27 -27
- package/popover/types.js.flow +5 -4
- package/popover/utils.js +3 -1
- package/progress-bar/progressbar-rounded.js +27 -28
- package/progress-bar/progressbar.js +9 -3
- package/progress-bar/styled-components.js +2 -0
- package/progress-bar/types.d.ts +6 -6
- package/progress-steps/progress-steps.js +1 -0
- package/progress-steps/types.d.ts +8 -8
- package/progress-steps/types.js.flow +1 -1
- package/radio/radio.js +5 -2
- package/radio/radiogroup.js +1 -0
- package/radio/styled-components.js +11 -5
- package/radio/types.d.ts +15 -15
- package/rating/emoticon-rating.js +16 -7
- package/rating/star-rating.js +16 -7
- package/rating/styled-components.js +2 -0
- package/rating/types.d.ts +6 -6
- package/select/default-props.js +10 -0
- package/select/dropdown.d.ts +2 -2
- package/select/dropdown.js +3 -1
- package/select/index.d.ts +2 -2
- package/select/locale.d.ts +1 -1
- package/select/multi-value.js +1 -0
- package/select/select-component.d.ts +2 -2
- package/select/select-component.js +59 -22
- package/select/stateful-select-container.js +1 -0
- package/select/styled-components.js +18 -6
- package/select/types.d.ts +22 -22
- package/select/utils/default-filter-options.d.ts +1 -1
- package/select/utils/default-filter-options.js +3 -1
- package/select/utils/index.js +3 -1
- package/sheet/action-button.d.ts +6 -0
- package/sheet/action-button.js +63 -0
- package/sheet/index.d.ts +3 -0
- package/sheet/index.js +46 -0
- package/sheet/index.js.flow +76 -0
- package/sheet/package.json +4 -0
- package/sheet/sheet.d.ts +4 -0
- package/sheet/sheet.js +182 -0
- package/sheet/styled-components.d.ts +27 -0
- package/sheet/styled-components.js +216 -0
- package/sheet/types.d.ts +37 -0
- package/sheet/types.js +5 -0
- package/side-navigation/index.d.ts +1 -0
- package/side-navigation/index.js +14 -0
- package/side-navigation/nav-item.d.ts +1 -1
- package/side-navigation/nav-item.js +2 -1
- package/side-navigation/nav.js +11 -4
- package/side-navigation/side-navigation-next.d.ts +66 -0
- package/side-navigation/side-navigation-next.js +381 -0
- package/side-navigation/styled-components.js +4 -2
- package/side-navigation/types.d.ts +12 -12
- package/skeleton/index.d.ts +1 -1
- package/skeleton/skeleton.js +2 -0
- package/skeleton/skeleton.js.flow +1 -1
- package/skeleton/styled-components.d.ts +1 -0
- package/skeleton/styled-components.js +1 -0
- package/skeleton/types.d.ts +3 -3
- package/skeleton/types.js.flow +1 -1
- package/slider/index.d.ts +1 -1
- package/slider/slider.js +3 -1
- package/slider/types.d.ts +9 -9
- package/snackbar/index.d.ts +5 -5
- package/snackbar/snackbar-context.d.ts +1 -1
- package/snackbar/snackbar-context.js +28 -11
- package/snackbar/snackbar-element.js +4 -1
- package/snackbar/styled-components.js +1 -1
- package/snackbar/types.d.ts +5 -5
- package/spinner/styled-components.js +2 -0
- package/spinner/types.d.ts +2 -2
- package/stepper/index.d.ts +3 -0
- package/stepper/index.js +46 -0
- package/stepper/index.js.flow +36 -0
- package/stepper/package.json +4 -0
- package/stepper/stepper.d.ts +4 -0
- package/stepper/stepper.js +162 -0
- package/stepper/styled-components.d.ts +1 -0
- package/stepper/styled-components.js +29 -0
- package/stepper/types.d.ts +17 -0
- package/stepper/types.js +5 -0
- package/styles/__mocks__/styled.js +9 -4
- package/styles/as-primary-export-hoc.js +2 -0
- package/styles/styled.d.ts +6 -6
- package/styles/styled.js +2 -0
- package/styles/theme-provider.d.ts +2 -2
- package/styles/types.d.ts +4 -3
- package/styles/types.js.flow +1 -0
- package/system-banner/index.d.ts +2 -0
- package/system-banner/index.js +30 -0
- package/system-banner/index.js.flow +51 -0
- package/system-banner/package.json +4 -0
- package/system-banner/styled-components.d.ts +16 -0
- package/system-banner/styled-components.js +90 -0
- package/system-banner/system-banner.d.ts +3 -0
- package/system-banner/system-banner.js +104 -0
- package/system-banner/types.d.ts +17 -0
- package/system-banner/types.js +5 -0
- package/table/styled-components.d.ts +2 -2
- package/table/styled-components.js +1 -0
- package/table/table.js +2 -0
- package/table/types.d.ts +6 -6
- package/table-semantic/styled-components.d.ts +5 -5
- package/table-semantic/styled-components.js +8 -8
- package/table-semantic/styled-components.js.flow +4 -5
- package/table-semantic/table-builder.js +24 -21
- package/table-semantic/table-builder.js.flow +21 -23
- package/table-semantic/table.js +2 -0
- package/table-semantic/types.d.ts +8 -8
- package/tabs/index.d.ts +1 -1
- package/tabs/stateful-tabs.d.ts +2 -2
- package/tabs/stateful-tabs.js +2 -2
- package/tabs/types.d.ts +14 -14
- package/tabs-motion/index.d.ts +3 -3
- package/tabs-motion/stateful-tabs.js +1 -0
- package/tabs-motion/tab.js +1 -0
- package/tabs-motion/tabs.js +26 -18
- package/tabs-motion/tabs.js.flow +3 -2
- package/tabs-motion/types.d.ts +13 -13
- package/tabs-motion/types.js.flow +1 -1
- package/tag/styled-components.js +41 -2
- package/tag/tag.js +2 -0
- package/tag/types.d.ts +6 -6
- package/textarea/stateful-textarea.js +7 -3
- package/textarea/textarea.js +4 -2
- package/textarea/types.d.ts +10 -10
- package/theme.js.flow +44 -0
- package/themes/dark-theme/color-component-tokens.js +2 -2
- package/themes/dark-theme/color-component-tokens.js.flow +2 -2
- package/themes/dark-theme/color-semantic-tokens.js +12 -4
- package/themes/dark-theme/color-semantic-tokens.js.flow +7 -4
- package/themes/index.d.ts +2 -2
- package/themes/light-theme/color-semantic-tokens.js +12 -4
- package/themes/light-theme/color-semantic-tokens.js.flow +7 -4
- package/themes/types.d.ts +32 -29
- package/themes/types.js.flow +7 -4
- package/timepicker/index.js.flow +1 -0
- package/timepicker/timepicker.js +11 -4
- package/timepicker/types.d.ts +4 -4
- package/timezonepicker/index.d.ts +1 -1
- package/timezonepicker/timezone-picker.js +3 -1
- package/timezonepicker/types.d.ts +4 -4
- package/toast/index.d.ts +1 -1
- package/toast/locale.d.ts +1 -1
- package/toast/toast.d.ts +3 -3
- package/toast/toast.js +10 -5
- package/toast/toaster.js +21 -3
- package/toast/types.d.ts +15 -15
- package/tokens/index.d.ts +1 -1
- package/tokens/types.d.ts +1 -1
- package/tooltip/types.d.ts +6 -6
- package/tree-view/index.d.ts +1 -1
- package/tree-view/stateful-container.d.ts +1 -1
- package/tree-view/tree-label-interactable.d.ts +3 -3
- package/tree-view/tree-label-interactable.js +4 -2
- package/tree-view/tree-label-interactable.js.flow +2 -0
- package/tree-view/tree-view.js +5 -2
- package/tree-view/types.d.ts +9 -9
- package/tree-view/utils.js +43 -15
- package/utils/deep-merge.js +5 -0
- package/utils/focusVisible.js +17 -7
package/esm/tabs-motion/tabs.js
CHANGED
|
@@ -54,7 +54,7 @@ import { getTabId, getTabPanelId, isVertical, isHorizontal, isRTL } from './util
|
|
|
54
54
|
var KEYBOARD_ACTION = {
|
|
55
55
|
next: 'next',
|
|
56
56
|
previous: 'previous'
|
|
57
|
-
};
|
|
57
|
+
}; // @ts-ignore
|
|
58
58
|
|
|
59
59
|
var getLayoutParams = function getLayoutParams(el, orientation) {
|
|
60
60
|
if (!el) {
|
|
@@ -80,7 +80,8 @@ var getLayoutParams = function getLayoutParams(el, orientation) {
|
|
|
80
80
|
distance: el.offsetLeft
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
|
-
};
|
|
83
|
+
}; // @ts-ignore
|
|
84
|
+
|
|
84
85
|
|
|
85
86
|
var scrollParentToCentreTarget = function scrollParentToCentreTarget(targetNode) {
|
|
86
87
|
var _targetNode$parentNod = targetNode.parentNode.getBoundingClientRect(),
|
|
@@ -110,7 +111,8 @@ var scrollParentToCentreTarget = function scrollParentToCentreTarget(targetNode)
|
|
|
110
111
|
}; // ignore out of bounds, the browser will manage this for us
|
|
111
112
|
|
|
112
113
|
targetNode.parentNode.scroll(target.x, target.y);
|
|
113
|
-
};
|
|
114
|
+
}; // @ts-ignore
|
|
115
|
+
|
|
114
116
|
|
|
115
117
|
function RenderEnhancer(_ref) {
|
|
116
118
|
var Enhancer = _ref.Enhancer;
|
|
@@ -178,7 +180,12 @@ export function Tabs(_ref2) {
|
|
|
178
180
|
var _getOverrides9 = getOverrides(overrides.EndEnhancerContainer, StyledEndEnhancerContainer),
|
|
179
181
|
_getOverrides10 = _slicedToArray(_getOverrides9, 2),
|
|
180
182
|
EndEnhancerContainer = _getOverrides10[0],
|
|
181
|
-
endEnhancerContainerProps = _getOverrides10[1];
|
|
183
|
+
endEnhancerContainerProps = _getOverrides10[1];
|
|
184
|
+
|
|
185
|
+
var _getOverrides11 = getOverrides(overrides.TabBar, StyledTabBar),
|
|
186
|
+
_getOverrides12 = _slicedToArray(_getOverrides11, 2),
|
|
187
|
+
TabBar = _getOverrides12[0],
|
|
188
|
+
tabBarProps = _getOverrides12[1]; // Count key updates
|
|
182
189
|
// We disable a few things until after first mount:
|
|
183
190
|
// - the highlight animation, avoiding an initial slide-in
|
|
184
191
|
// - smooth scrolling active tab into view
|
|
@@ -284,10 +291,10 @@ export function Tabs(_ref2) {
|
|
|
284
291
|
}
|
|
285
292
|
}
|
|
286
293
|
}, [orientation, theme.direction]);
|
|
287
|
-
return /*#__PURE__*/React.createElement(Root, _extends({}, sharedStylingProps, RootProps), /*#__PURE__*/React.createElement(
|
|
294
|
+
return /*#__PURE__*/React.createElement(Root, _extends({}, sharedStylingProps, RootProps), /*#__PURE__*/React.createElement(TabBar, _extends({
|
|
288
295
|
$hasEndEnhancer: Boolean(endEnhancer),
|
|
289
296
|
$orientation: orientation
|
|
290
|
-
}, /*#__PURE__*/React.createElement(TabList, _extends({
|
|
297
|
+
}, tabBarProps), /*#__PURE__*/React.createElement(TabList, _extends({
|
|
291
298
|
"data-baseweb": "tab-list",
|
|
292
299
|
role: "tablist",
|
|
293
300
|
"aria-orientation": orientation
|
|
@@ -400,15 +407,15 @@ function InternalTab(_ref3) {
|
|
|
400
407
|
var TabOverrides = overrides.Tab,
|
|
401
408
|
ArtworkContainerOverrides = overrides.ArtworkContainer;
|
|
402
409
|
|
|
403
|
-
var
|
|
404
|
-
_getOverrides12 = _slicedToArray(_getOverrides11, 2),
|
|
405
|
-
Tab = _getOverrides12[0],
|
|
406
|
-
TabProps = _getOverrides12[1];
|
|
407
|
-
|
|
408
|
-
var _getOverrides13 = getOverrides(ArtworkContainerOverrides, StyledArtworkContainer),
|
|
410
|
+
var _getOverrides13 = getOverrides(TabOverrides, StyledTab),
|
|
409
411
|
_getOverrides14 = _slicedToArray(_getOverrides13, 2),
|
|
410
|
-
|
|
411
|
-
|
|
412
|
+
Tab = _getOverrides14[0],
|
|
413
|
+
TabProps = _getOverrides14[1];
|
|
414
|
+
|
|
415
|
+
var _getOverrides15 = getOverrides(ArtworkContainerOverrides, StyledArtworkContainer),
|
|
416
|
+
_getOverrides16 = _slicedToArray(_getOverrides15, 2),
|
|
417
|
+
ArtworkContainer = _getOverrides16[0],
|
|
418
|
+
ArtworkContainerProps = _getOverrides16[1]; // Keyboard focus styling
|
|
412
419
|
|
|
413
420
|
|
|
414
421
|
var _React$useState5 = React.useState(false),
|
|
@@ -492,6 +499,7 @@ function InternalTab(_ref3) {
|
|
|
492
499
|
$focusVisible: focusVisible,
|
|
493
500
|
$isActive: isActive
|
|
494
501
|
}, sharedStylingProps, restProps, TabProps, {
|
|
502
|
+
// @ts-ignore
|
|
495
503
|
onClick: function onClick(event) {
|
|
496
504
|
if (typeof onChange === 'function') onChange({
|
|
497
505
|
activeKey: key
|
|
@@ -524,10 +532,10 @@ function InternalTabPanel(_ref4) {
|
|
|
524
532
|
children = props.children;
|
|
525
533
|
var TabPanelOverrides = overrides.TabPanel;
|
|
526
534
|
|
|
527
|
-
var
|
|
528
|
-
|
|
529
|
-
TabPanel =
|
|
530
|
-
TabPanelProps =
|
|
535
|
+
var _getOverrides17 = getOverrides(TabPanelOverrides, StyledTabPanel),
|
|
536
|
+
_getOverrides18 = _slicedToArray(_getOverrides17, 2),
|
|
537
|
+
TabPanel = _getOverrides18[0],
|
|
538
|
+
TabPanelProps = _getOverrides18[1];
|
|
531
539
|
|
|
532
540
|
return /*#__PURE__*/React.createElement(TabPanel, _extends({
|
|
533
541
|
"data-baseweb": "tab-panel",
|
|
@@ -23,30 +23,38 @@ export function customOnRamp(color, unit) {
|
|
|
23
23
|
return 'white';
|
|
24
24
|
|
|
25
25
|
case '50':
|
|
26
|
+
// @ts-ignore
|
|
26
27
|
return tint(0.8, color);
|
|
27
28
|
|
|
28
29
|
case '100':
|
|
30
|
+
// @ts-ignore
|
|
29
31
|
return tint(0.6, color);
|
|
30
32
|
|
|
31
33
|
case '200':
|
|
34
|
+
// @ts-ignore
|
|
32
35
|
return tint(0.4, color);
|
|
33
36
|
|
|
34
37
|
case '300':
|
|
38
|
+
// @ts-ignore
|
|
35
39
|
return tint(0.2, color);
|
|
36
40
|
|
|
37
41
|
case '400':
|
|
38
42
|
return color;
|
|
39
43
|
|
|
40
44
|
case '500':
|
|
45
|
+
// @ts-ignore
|
|
41
46
|
return shade(0.2, color);
|
|
42
47
|
|
|
43
48
|
case '600':
|
|
49
|
+
// @ts-ignore
|
|
44
50
|
return shade(0.4, color);
|
|
45
51
|
|
|
46
52
|
case '700':
|
|
53
|
+
// @ts-ignore
|
|
47
54
|
return shade(0.6, color);
|
|
48
55
|
|
|
49
56
|
case '800':
|
|
57
|
+
// @ts-ignore
|
|
50
58
|
return shade(0.8, color);
|
|
51
59
|
|
|
52
60
|
case '1000':
|
|
@@ -61,6 +69,7 @@ var COLOR_STATE = {
|
|
|
61
69
|
solid: 'solid',
|
|
62
70
|
outline: 'outline'
|
|
63
71
|
}; // Probably best to bake this into the theme once we hit our next major.
|
|
72
|
+
// @ts-ignore
|
|
64
73
|
|
|
65
74
|
var pick = function pick(theme, light, dark) {
|
|
66
75
|
return theme.name && theme.name.includes('dark') ? dark : light;
|
|
@@ -69,6 +78,7 @@ var pick = function pick(theme, light, dark) {
|
|
|
69
78
|
var neutralColorStates = (_neutralColorStates = {}, _defineProperty(_neutralColorStates, COLOR_STATE.disabled, function (theme, color) {
|
|
70
79
|
return {
|
|
71
80
|
color: theme.colors.tagNeutralFontDisabled,
|
|
81
|
+
// @ts-ignore
|
|
72
82
|
backgroundColor: null,
|
|
73
83
|
borderColor: theme.colors.tagNeutralOutlinedDisabled
|
|
74
84
|
};
|
|
@@ -76,11 +86,13 @@ var neutralColorStates = (_neutralColorStates = {}, _defineProperty(_neutralColo
|
|
|
76
86
|
return {
|
|
77
87
|
color: theme.colors.tagNeutralSolidFont,
|
|
78
88
|
backgroundColor: theme.colors.tagNeutralSolidBackground,
|
|
89
|
+
// @ts-ignore
|
|
79
90
|
borderColor: null
|
|
80
91
|
};
|
|
81
92
|
}), _defineProperty(_neutralColorStates, COLOR_STATE.outline, function (theme, color) {
|
|
82
93
|
return {
|
|
83
94
|
color: theme.colors.tagNeutralOutlinedFont,
|
|
95
|
+
// @ts-ignore
|
|
84
96
|
backgroundColor: null,
|
|
85
97
|
borderColor: theme.colors.tagNeutralOutlinedBackground
|
|
86
98
|
};
|
|
@@ -88,6 +100,7 @@ var neutralColorStates = (_neutralColorStates = {}, _defineProperty(_neutralColo
|
|
|
88
100
|
var primaryColorStates = (_primaryColorStates = {}, _defineProperty(_primaryColorStates, COLOR_STATE.disabled, function (theme, color) {
|
|
89
101
|
return {
|
|
90
102
|
color: theme.colors.tagPrimaryFontDisabled,
|
|
103
|
+
// @ts-ignore
|
|
91
104
|
backgroundColor: null,
|
|
92
105
|
borderColor: theme.colors.tagPrimaryOutlinedDisabled
|
|
93
106
|
};
|
|
@@ -95,11 +108,13 @@ var primaryColorStates = (_primaryColorStates = {}, _defineProperty(_primaryColo
|
|
|
95
108
|
return {
|
|
96
109
|
color: theme.colors.tagPrimarySolidFont,
|
|
97
110
|
backgroundColor: theme.colors.tagPrimarySolidBackground,
|
|
111
|
+
// @ts-ignore
|
|
98
112
|
borderColor: null
|
|
99
113
|
};
|
|
100
114
|
}), _defineProperty(_primaryColorStates, COLOR_STATE.outline, function (theme, color) {
|
|
101
115
|
return {
|
|
102
116
|
color: theme.colors.tagPrimaryOutlinedFont,
|
|
117
|
+
// @ts-ignore
|
|
103
118
|
backgroundColor: null,
|
|
104
119
|
borderColor: theme.colors.tagPrimaryOutlinedBackground
|
|
105
120
|
};
|
|
@@ -107,6 +122,7 @@ var primaryColorStates = (_primaryColorStates = {}, _defineProperty(_primaryColo
|
|
|
107
122
|
var accentColorStates = (_accentColorStates = {}, _defineProperty(_accentColorStates, COLOR_STATE.disabled, function (theme, color) {
|
|
108
123
|
return {
|
|
109
124
|
color: theme.colors.tagAccentFontDisabled,
|
|
125
|
+
// @ts-ignore
|
|
110
126
|
backgroundColor: null,
|
|
111
127
|
borderColor: theme.colors.tagAccentOutlinedDisabled
|
|
112
128
|
};
|
|
@@ -114,11 +130,13 @@ var accentColorStates = (_accentColorStates = {}, _defineProperty(_accentColorSt
|
|
|
114
130
|
return {
|
|
115
131
|
color: theme.colors.tagAccentSolidFont,
|
|
116
132
|
backgroundColor: theme.colors.tagAccentSolidBackground,
|
|
133
|
+
// @ts-ignore
|
|
117
134
|
borderColor: null
|
|
118
135
|
};
|
|
119
136
|
}), _defineProperty(_accentColorStates, COLOR_STATE.outline, function (theme, color) {
|
|
120
137
|
return {
|
|
121
138
|
color: theme.colors.tagAccentOutlinedFont,
|
|
139
|
+
// @ts-ignore
|
|
122
140
|
backgroundColor: null,
|
|
123
141
|
borderColor: theme.colors.tagAccentOutlinedBackground
|
|
124
142
|
};
|
|
@@ -126,6 +144,7 @@ var accentColorStates = (_accentColorStates = {}, _defineProperty(_accentColorSt
|
|
|
126
144
|
var positiveColorStates = (_positiveColorStates = {}, _defineProperty(_positiveColorStates, COLOR_STATE.disabled, function (theme, color) {
|
|
127
145
|
return {
|
|
128
146
|
color: theme.colors.tagPositiveFontDisabled,
|
|
147
|
+
// @ts-ignore
|
|
129
148
|
backgroundColor: null,
|
|
130
149
|
borderColor: theme.colors.tagPositiveOutlinedDisabled
|
|
131
150
|
};
|
|
@@ -133,11 +152,13 @@ var positiveColorStates = (_positiveColorStates = {}, _defineProperty(_positiveC
|
|
|
133
152
|
return {
|
|
134
153
|
color: theme.colors.tagPositiveSolidFont,
|
|
135
154
|
backgroundColor: theme.colors.tagPositiveSolidBackground,
|
|
155
|
+
// @ts-ignore
|
|
136
156
|
borderColor: null
|
|
137
157
|
};
|
|
138
158
|
}), _defineProperty(_positiveColorStates, COLOR_STATE.outline, function (theme, color) {
|
|
139
159
|
return {
|
|
140
160
|
color: theme.colors.tagPositiveOutlinedFont,
|
|
161
|
+
// @ts-ignore
|
|
141
162
|
backgroundColor: null,
|
|
142
163
|
borderColor: theme.colors.tagPositiveOutlinedBackground
|
|
143
164
|
};
|
|
@@ -145,6 +166,7 @@ var positiveColorStates = (_positiveColorStates = {}, _defineProperty(_positiveC
|
|
|
145
166
|
var warningColorStates = (_warningColorStates = {}, _defineProperty(_warningColorStates, COLOR_STATE.disabled, function (theme, color) {
|
|
146
167
|
return {
|
|
147
168
|
color: theme.colors.tagWarningFontDisabled,
|
|
169
|
+
// @ts-ignore
|
|
148
170
|
backgroundColor: null,
|
|
149
171
|
borderColor: theme.colors.tagWarningOutlinedDisabled
|
|
150
172
|
};
|
|
@@ -152,11 +174,13 @@ var warningColorStates = (_warningColorStates = {}, _defineProperty(_warningColo
|
|
|
152
174
|
return {
|
|
153
175
|
color: theme.colors.tagWarningSolidFont,
|
|
154
176
|
backgroundColor: theme.colors.tagWarningSolidBackground,
|
|
177
|
+
// @ts-ignore
|
|
155
178
|
borderColor: null
|
|
156
179
|
};
|
|
157
180
|
}), _defineProperty(_warningColorStates, COLOR_STATE.outline, function (theme, color) {
|
|
158
181
|
return {
|
|
159
182
|
color: theme.colors.tagWarningOutlinedFont,
|
|
183
|
+
// @ts-ignore
|
|
160
184
|
backgroundColor: null,
|
|
161
185
|
borderColor: theme.colors.tagWarningOutlinedBackground
|
|
162
186
|
};
|
|
@@ -164,6 +188,7 @@ var warningColorStates = (_warningColorStates = {}, _defineProperty(_warningColo
|
|
|
164
188
|
var negativeColorStates = (_negativeColorStates = {}, _defineProperty(_negativeColorStates, COLOR_STATE.disabled, function (theme, color) {
|
|
165
189
|
return {
|
|
166
190
|
color: theme.colors.tagNegativeFontDisabled,
|
|
191
|
+
// @ts-ignore
|
|
167
192
|
backgroundColor: null,
|
|
168
193
|
borderColor: theme.colors.tagNegativeOutlinedDisabled
|
|
169
194
|
};
|
|
@@ -171,11 +196,13 @@ var negativeColorStates = (_negativeColorStates = {}, _defineProperty(_negativeC
|
|
|
171
196
|
return {
|
|
172
197
|
color: theme.colors.tagNegativeSolidFont,
|
|
173
198
|
backgroundColor: theme.colors.tagNegativeSolidBackground,
|
|
199
|
+
// @ts-ignore
|
|
174
200
|
borderColor: null
|
|
175
201
|
};
|
|
176
202
|
}), _defineProperty(_negativeColorStates, COLOR_STATE.outline, function (theme, color) {
|
|
177
203
|
return {
|
|
178
204
|
color: theme.colors.tagNegativeOutlinedFont,
|
|
205
|
+
// @ts-ignore
|
|
179
206
|
backgroundColor: null,
|
|
180
207
|
borderColor: theme.colors.tagNegativeOutlinedBackground
|
|
181
208
|
};
|
|
@@ -183,6 +210,7 @@ var negativeColorStates = (_negativeColorStates = {}, _defineProperty(_negativeC
|
|
|
183
210
|
var orangeColorStates = (_orangeColorStates = {}, _defineProperty(_orangeColorStates, COLOR_STATE.disabled, function (theme, color) {
|
|
184
211
|
return {
|
|
185
212
|
color: pick(theme, colorTokens.orange200, colorTokens.orange600),
|
|
213
|
+
// @ts-ignore
|
|
186
214
|
backgroundColor: null,
|
|
187
215
|
borderColor: pick(theme, colorTokens.orange200, colorTokens.orange700)
|
|
188
216
|
};
|
|
@@ -190,11 +218,13 @@ var orangeColorStates = (_orangeColorStates = {}, _defineProperty(_orangeColorSt
|
|
|
190
218
|
return {
|
|
191
219
|
color: colorTokens.white,
|
|
192
220
|
backgroundColor: pick(theme, colorTokens.orange400, colorTokens.orange500),
|
|
221
|
+
// @ts-ignore
|
|
193
222
|
borderColor: null
|
|
194
223
|
};
|
|
195
224
|
}), _defineProperty(_orangeColorStates, COLOR_STATE.outline, function (theme, color) {
|
|
196
225
|
return {
|
|
197
226
|
color: pick(theme, colorTokens.orange400, colorTokens.orange300),
|
|
227
|
+
// @ts-ignore
|
|
198
228
|
backgroundColor: null,
|
|
199
229
|
borderColor: pick(theme, colorTokens.orange200, colorTokens.orange500)
|
|
200
230
|
};
|
|
@@ -202,6 +232,7 @@ var orangeColorStates = (_orangeColorStates = {}, _defineProperty(_orangeColorSt
|
|
|
202
232
|
var purpleColorStates = (_purpleColorStates = {}, _defineProperty(_purpleColorStates, COLOR_STATE.disabled, function (theme, color) {
|
|
203
233
|
return {
|
|
204
234
|
color: pick(theme, colorTokens.purple200, colorTokens.purple600),
|
|
235
|
+
// @ts-ignore
|
|
205
236
|
backgroundColor: null,
|
|
206
237
|
borderColor: pick(theme, colorTokens.purple200, colorTokens.purple700)
|
|
207
238
|
};
|
|
@@ -209,11 +240,13 @@ var purpleColorStates = (_purpleColorStates = {}, _defineProperty(_purpleColorSt
|
|
|
209
240
|
return {
|
|
210
241
|
color: colorTokens.white,
|
|
211
242
|
backgroundColor: pick(theme, colorTokens.purple400, colorTokens.purple500),
|
|
243
|
+
// @ts-ignore
|
|
212
244
|
borderColor: null
|
|
213
245
|
};
|
|
214
246
|
}), _defineProperty(_purpleColorStates, COLOR_STATE.outline, function (theme, color) {
|
|
215
247
|
return {
|
|
216
248
|
color: pick(theme, colorTokens.purple400, colorTokens.purple300),
|
|
249
|
+
// @ts-ignore
|
|
217
250
|
backgroundColor: null,
|
|
218
251
|
borderColor: pick(theme, colorTokens.purple200, colorTokens.purple500)
|
|
219
252
|
};
|
|
@@ -221,6 +254,7 @@ var purpleColorStates = (_purpleColorStates = {}, _defineProperty(_purpleColorSt
|
|
|
221
254
|
var brownColorStates = (_brownColorStates = {}, _defineProperty(_brownColorStates, COLOR_STATE.disabled, function (theme, color) {
|
|
222
255
|
return {
|
|
223
256
|
color: pick(theme, colorTokens.brown200, colorTokens.brown600),
|
|
257
|
+
// @ts-ignore
|
|
224
258
|
backgroundColor: null,
|
|
225
259
|
borderColor: pick(theme, colorTokens.brown200, colorTokens.brown700)
|
|
226
260
|
};
|
|
@@ -228,11 +262,13 @@ var brownColorStates = (_brownColorStates = {}, _defineProperty(_brownColorState
|
|
|
228
262
|
return {
|
|
229
263
|
color: colorTokens.white,
|
|
230
264
|
backgroundColor: pick(theme, colorTokens.brown400, colorTokens.brown500),
|
|
265
|
+
// @ts-ignore
|
|
231
266
|
borderColor: null
|
|
232
267
|
};
|
|
233
268
|
}), _defineProperty(_brownColorStates, COLOR_STATE.outline, function (theme, color) {
|
|
234
269
|
return {
|
|
235
270
|
color: pick(theme, colorTokens.brown400, colorTokens.brown300),
|
|
271
|
+
// @ts-ignore
|
|
236
272
|
backgroundColor: null,
|
|
237
273
|
borderColor: pick(theme, colorTokens.brown200, colorTokens.brown500)
|
|
238
274
|
};
|
|
@@ -240,6 +276,7 @@ var brownColorStates = (_brownColorStates = {}, _defineProperty(_brownColorState
|
|
|
240
276
|
var customColorStates = (_customColorStates = {}, _defineProperty(_customColorStates, COLOR_STATE.disabled, function (theme, color) {
|
|
241
277
|
return {
|
|
242
278
|
color: customOnRamp(color, theme.colors.tagFontDisabledRampUnit),
|
|
279
|
+
// @ts-ignore
|
|
243
280
|
backgroundColor: null,
|
|
244
281
|
borderColor: customOnRamp(color, theme.colors.tagSolidDisabledRampUnit)
|
|
245
282
|
};
|
|
@@ -247,16 +284,18 @@ var customColorStates = (_customColorStates = {}, _defineProperty(_customColorSt
|
|
|
247
284
|
return {
|
|
248
285
|
color: customOnRamp(color, theme.colors.tagSolidFontRampUnit),
|
|
249
286
|
backgroundColor: customOnRamp(color, theme.colors.tagSolidRampUnit),
|
|
287
|
+
// @ts-ignore
|
|
250
288
|
borderColor: null
|
|
251
289
|
};
|
|
252
290
|
}), _defineProperty(_customColorStates, COLOR_STATE.outline, function (theme, color) {
|
|
253
291
|
return {
|
|
254
292
|
color: customOnRamp(color, theme.colors.tagOutlinedFontRampUnit),
|
|
293
|
+
// @ts-ignore
|
|
255
294
|
backgroundColor: null,
|
|
256
295
|
borderColor: customOnRamp(color, theme.colors.tagOutlinedRampUnit)
|
|
257
296
|
};
|
|
258
297
|
}), _customColorStates);
|
|
259
|
-
var colorMap = (_colorMap = {}, _defineProperty(_colorMap, KIND.neutral, neutralColorStates), _defineProperty(_colorMap, KIND.primary, primaryColorStates), _defineProperty(_colorMap, KIND.accent, accentColorStates), _defineProperty(_colorMap, KIND.positive, positiveColorStates), _defineProperty(_colorMap, KIND.warning, warningColorStates), _defineProperty(_colorMap, KIND.negative, negativeColorStates), _defineProperty(_colorMap, KIND.black, primaryColorStates), _defineProperty(_colorMap, KIND.blue, accentColorStates), _defineProperty(_colorMap, KIND.green, positiveColorStates), _defineProperty(_colorMap, KIND.red, negativeColorStates), _defineProperty(_colorMap, KIND.yellow, warningColorStates), _defineProperty(_colorMap, KIND.orange, orangeColorStates), _defineProperty(_colorMap, KIND.purple, purpleColorStates), _defineProperty(_colorMap, KIND.brown, brownColorStates), _defineProperty(_colorMap, KIND.custom, customColorStates), _colorMap);
|
|
298
|
+
var colorMap = (_colorMap = {}, _defineProperty(_colorMap, KIND.neutral, neutralColorStates), _defineProperty(_colorMap, KIND.primary, primaryColorStates), _defineProperty(_colorMap, KIND.accent, accentColorStates), _defineProperty(_colorMap, KIND.positive, positiveColorStates), _defineProperty(_colorMap, KIND.warning, warningColorStates), _defineProperty(_colorMap, KIND.negative, negativeColorStates), _defineProperty(_colorMap, KIND.black, primaryColorStates), _defineProperty(_colorMap, KIND.blue, accentColorStates), _defineProperty(_colorMap, KIND.green, positiveColorStates), _defineProperty(_colorMap, KIND.red, negativeColorStates), _defineProperty(_colorMap, KIND.yellow, warningColorStates), _defineProperty(_colorMap, KIND.orange, orangeColorStates), _defineProperty(_colorMap, KIND.purple, purpleColorStates), _defineProperty(_colorMap, KIND.brown, brownColorStates), _defineProperty(_colorMap, KIND.custom, customColorStates), _colorMap); // @ts-ignore
|
|
260
299
|
|
|
261
300
|
var getColorStateFromProps = function getColorStateFromProps(props) {
|
|
262
301
|
if (props.$disabled) return COLOR_STATE.disabled;
|
|
@@ -328,7 +367,7 @@ export var Root = styled('span', function (props) {
|
|
|
328
367
|
$size = _props$$size2 === void 0 ? SIZE.small : _props$$size2;
|
|
329
368
|
var borderRadius = $theme.borders.tagBorderRadius;
|
|
330
369
|
var paddingMagnitude = (_SIZE$small$SIZE$medi2 = {}, _defineProperty(_SIZE$small$SIZE$medi2, SIZE.small, $theme.sizing.scale300), _defineProperty(_SIZE$small$SIZE$medi2, SIZE.medium, $theme.sizing.scale500), _defineProperty(_SIZE$small$SIZE$medi2, SIZE.large, $theme.sizing.scale600), _SIZE$small$SIZE$medi2)[$size];
|
|
331
|
-
var borderWidth = !$disabled && $variant === VARIANT.solid ? 0 : '2px';
|
|
370
|
+
var borderWidth = !$disabled && $variant === VARIANT.solid ? 0 : '2px'; // @ts-ignore
|
|
332
371
|
|
|
333
372
|
var _colorMap$$kind$getCo = colorMap[$kind][getColorStateFromProps(props)]($theme, $color),
|
|
334
373
|
color = _colorMap$$kind$getCo.color,
|
package/esm/tag/tag.js
CHANGED
|
@@ -30,6 +30,7 @@ import { isFocusVisible, forkFocus, forkBlur } from '../utils/focusVisible';
|
|
|
30
30
|
|
|
31
31
|
// Previously, Tag used a hardcoded SVG as its 'close' icon. Replacing it with
|
|
32
32
|
// Delete requires modifying Delete's viewbox to prevent visual regressions.
|
|
33
|
+
// @ts-ignore
|
|
33
34
|
var ModifiedViewBoxDeleteIcon = function ModifiedViewBoxDeleteIcon(props) {
|
|
34
35
|
return /*#__PURE__*/React.createElement(DeleteIcon, _extends({
|
|
35
36
|
viewBox: "5 5 13.186 13.186"
|
|
@@ -138,6 +139,7 @@ var Tag = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
138
139
|
onKeyDown: handleKeyDown
|
|
139
140
|
};
|
|
140
141
|
var actionHandlers = disabled ? {} : {
|
|
142
|
+
// @ts-ignore
|
|
141
143
|
onClick: function onClick(event) {
|
|
142
144
|
// we don't want onClick to be called when the close icon is clicked
|
|
143
145
|
event.stopPropagation();
|
|
@@ -8,7 +8,11 @@ import * as React from 'react';
|
|
|
8
8
|
import StatefulContainer from './stateful-container';
|
|
9
9
|
import Textarea from './textarea';
|
|
10
10
|
export default function StatefulTextarea(props) {
|
|
11
|
-
return
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
return (
|
|
12
|
+
/*#__PURE__*/
|
|
13
|
+
// @ts-ignore
|
|
14
|
+
React.createElement(StatefulContainer, props, function (childrenProps) {
|
|
15
|
+
return /*#__PURE__*/React.createElement(Textarea, childrenProps);
|
|
16
|
+
})
|
|
17
|
+
);
|
|
14
18
|
}
|
package/esm/textarea/textarea.js
CHANGED
|
@@ -70,7 +70,8 @@ var Textarea = /*#__PURE__*/function (_React$Component) {
|
|
|
70
70
|
_defineProperty(_assertThisInitialized(_this), "onFocus", function (e) {
|
|
71
71
|
_this.setState({
|
|
72
72
|
isFocused: true
|
|
73
|
-
});
|
|
73
|
+
}); // @ts-ignore
|
|
74
|
+
|
|
74
75
|
|
|
75
76
|
_this.props.onFocus(e);
|
|
76
77
|
});
|
|
@@ -78,7 +79,8 @@ var Textarea = /*#__PURE__*/function (_React$Component) {
|
|
|
78
79
|
_defineProperty(_assertThisInitialized(_this), "onBlur", function (e) {
|
|
79
80
|
_this.setState({
|
|
80
81
|
isFocused: false
|
|
81
|
-
});
|
|
82
|
+
}); // @ts-ignore
|
|
83
|
+
|
|
82
84
|
|
|
83
85
|
_this.props.onBlur(e);
|
|
84
86
|
});
|
|
@@ -24,7 +24,7 @@ export default (function () {
|
|
|
24
24
|
bannerActionHighPositive: themePrimitives.positive600,
|
|
25
25
|
bannerActionHighWarning: themePrimitives.warning600,
|
|
26
26
|
// Buttons
|
|
27
|
-
buttonPrimaryFill: themePrimitives.
|
|
27
|
+
buttonPrimaryFill: themePrimitives.primaryA,
|
|
28
28
|
buttonPrimaryText: themePrimitives.black,
|
|
29
29
|
buttonPrimaryHover: themePrimitives.primary100,
|
|
30
30
|
buttonPrimaryActive: themePrimitives.primary200,
|
|
@@ -63,7 +63,7 @@ export default (function () {
|
|
|
63
63
|
calendarBackground: themePrimitives.mono800,
|
|
64
64
|
calendarForeground: themePrimitives.white,
|
|
65
65
|
calendarForegroundDisabled: themePrimitives.mono300,
|
|
66
|
-
calendarHeaderBackground: themePrimitives.
|
|
66
|
+
calendarHeaderBackground: themePrimitives.mono800,
|
|
67
67
|
calendarHeaderForeground: themePrimitives.primary,
|
|
68
68
|
calendarHeaderBackgroundActive: themePrimitives.primary600,
|
|
69
69
|
calendarHeaderForegroundDisabled: themePrimitives.primary500,
|
|
@@ -31,26 +31,31 @@ export default (function () {
|
|
|
31
31
|
contentInverseTertiary: colors.gray600,
|
|
32
32
|
// Border
|
|
33
33
|
borderOpaque: colors.gray700,
|
|
34
|
+
// @ts-ignore
|
|
34
35
|
borderTransparent: hexToRgba(foundation.primaryA, '0.08'),
|
|
35
36
|
borderSelected: foundation.primaryA,
|
|
36
37
|
borderInverseOpaque: colors.gray400,
|
|
38
|
+
// @ts-ignore
|
|
37
39
|
borderInverseTransparent: hexToRgba(foundation.primaryB, '0.2'),
|
|
38
40
|
borderInverseSelected: foundation.primaryB
|
|
39
41
|
};
|
|
40
42
|
var coreExtensions = {
|
|
41
43
|
// Backgrounds
|
|
42
44
|
backgroundStateDisabled: colors.gray800,
|
|
45
|
+
// @ts-ignore
|
|
43
46
|
backgroundOverlayDark: hexToRgba(colors.black, '0.3'),
|
|
47
|
+
// @ts-ignore
|
|
44
48
|
backgroundOverlayLight: hexToRgba(colors.black, '0.08'),
|
|
49
|
+
// @ts-ignore
|
|
45
50
|
backgroundOverlayArt: hexToRgba(colors.black, '0.16'),
|
|
46
51
|
backgroundAccent: foundation.accent,
|
|
47
52
|
backgroundNegative: foundation.negative,
|
|
48
53
|
backgroundWarning: foundation.warning,
|
|
49
54
|
backgroundPositive: colors.green500,
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
55
|
+
backgroundAccentLight: colors.blue700,
|
|
56
|
+
backgroundPositiveLight: colors.green700,
|
|
57
|
+
backgroundNegativeLight: colors.red700,
|
|
58
|
+
backgroundWarningLight: colors.yellow700,
|
|
54
59
|
backgroundAlwaysDark: colors.gray900,
|
|
55
60
|
backgroundAlwaysLight: colors.gray100,
|
|
56
61
|
// Content
|
|
@@ -68,6 +73,9 @@ export default (function () {
|
|
|
68
73
|
borderNegative: colors.red500,
|
|
69
74
|
borderWarning: colors.yellow500,
|
|
70
75
|
borderPositive: colors.green500,
|
|
76
|
+
borderNegativeLight: colors.red200,
|
|
77
|
+
borderWarningLight: colors.yellow200,
|
|
78
|
+
borderPositiveLight: colors.green200,
|
|
71
79
|
// Programs
|
|
72
80
|
safety: colors.blue400,
|
|
73
81
|
eatsGreen400: colors.green400,
|
|
@@ -31,26 +31,31 @@ export default (function () {
|
|
|
31
31
|
contentInverseTertiary: colors.gray400,
|
|
32
32
|
// Border
|
|
33
33
|
borderOpaque: colors.gray200,
|
|
34
|
+
// @ts-ignore
|
|
34
35
|
borderTransparent: hexToRgba(foundation.primaryA, '0.08'),
|
|
35
36
|
borderSelected: foundation.primaryA,
|
|
36
37
|
borderInverseOpaque: colors.gray700,
|
|
38
|
+
// @ts-ignore
|
|
37
39
|
borderInverseTransparent: hexToRgba(foundation.primaryB, '0.2'),
|
|
38
40
|
borderInverseSelected: foundation.primaryB
|
|
39
41
|
};
|
|
40
42
|
var coreExtensions = {
|
|
41
43
|
// Backgrounds
|
|
42
44
|
backgroundStateDisabled: colors.gray50,
|
|
45
|
+
// @ts-ignore
|
|
43
46
|
backgroundOverlayDark: hexToRgba(colors.black, '0.3'),
|
|
47
|
+
// @ts-ignore
|
|
44
48
|
backgroundOverlayLight: hexToRgba(colors.black, '0.08'),
|
|
49
|
+
// @ts-ignore
|
|
45
50
|
backgroundOverlayArt: hexToRgba(colors.black, '0.00'),
|
|
46
51
|
backgroundAccent: foundation.accent,
|
|
47
52
|
backgroundNegative: foundation.negative,
|
|
48
53
|
backgroundWarning: foundation.warning,
|
|
49
54
|
backgroundPositive: colors.green400,
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
55
|
+
backgroundAccentLight: colors.blue50,
|
|
56
|
+
backgroundNegativeLight: colors.red50,
|
|
57
|
+
backgroundWarningLight: colors.yellow50,
|
|
58
|
+
backgroundPositiveLight: colors.green50,
|
|
54
59
|
backgroundAlwaysDark: colors.black,
|
|
55
60
|
backgroundAlwaysLight: colors.white,
|
|
56
61
|
// Content
|
|
@@ -68,6 +73,9 @@ export default (function () {
|
|
|
68
73
|
borderNegative: colors.red200,
|
|
69
74
|
borderWarning: colors.yellow200,
|
|
70
75
|
borderPositive: colors.green200,
|
|
76
|
+
borderNegativeLight: colors.red200,
|
|
77
|
+
borderWarningLight: colors.yellow200,
|
|
78
|
+
borderPositiveLight: colors.green200,
|
|
71
79
|
// Programs
|
|
72
80
|
safety: colors.blue400,
|
|
73
81
|
eatsGreen400: colors.green400,
|
|
@@ -58,6 +58,7 @@ var TimePicker = /*#__PURE__*/function (_React$Component) {
|
|
|
58
58
|
|
|
59
59
|
var _super = _createSuper(TimePicker);
|
|
60
60
|
|
|
61
|
+
// @ts-ignore
|
|
61
62
|
function TimePicker(props) {
|
|
62
63
|
var _this;
|
|
63
64
|
|
|
@@ -94,7 +95,8 @@ var TimePicker = /*#__PURE__*/function (_React$Component) {
|
|
|
94
95
|
var _this$dateHelpers$sec = _this.dateHelpers.secondsToHourMinute(seconds),
|
|
95
96
|
_this$dateHelpers$sec2 = _slicedToArray(_this$dateHelpers$sec, 2),
|
|
96
97
|
hours = _this$dateHelpers$sec2[0],
|
|
97
|
-
minutes = _this$dateHelpers$sec2[1];
|
|
98
|
+
minutes = _this$dateHelpers$sec2[1]; // @ts-ignore
|
|
99
|
+
|
|
98
100
|
|
|
99
101
|
var zeroPrefix = function zeroPrefix(n) {
|
|
100
102
|
return n < 10 ? "0".concat(n) : n;
|
|
@@ -137,6 +139,7 @@ var TimePicker = /*#__PURE__*/function (_React$Component) {
|
|
|
137
139
|
switch (format) {
|
|
138
140
|
case '24':
|
|
139
141
|
{
|
|
142
|
+
// @ts-ignore
|
|
140
143
|
hoursMinutes = [{
|
|
141
144
|
hours: hours,
|
|
142
145
|
minutes: minutes
|
|
@@ -151,15 +154,18 @@ var TimePicker = /*#__PURE__*/function (_React$Component) {
|
|
|
151
154
|
var meridiem = match[3]; // if there's no AM/PM, add both AM and PM options
|
|
152
155
|
|
|
153
156
|
if (!meridiem) {
|
|
154
|
-
hoursMinutes = [
|
|
157
|
+
hoursMinutes = [// @ts-ignore
|
|
158
|
+
{
|
|
155
159
|
hours: twelveHours,
|
|
156
160
|
minutes: minutes
|
|
157
|
-
},
|
|
161
|
+
}, // @ts-ignore
|
|
162
|
+
{
|
|
158
163
|
hours: twelveHours + 12,
|
|
159
164
|
minutes: minutes
|
|
160
165
|
}];
|
|
161
166
|
} else {
|
|
162
|
-
var twentyFourHours = meridiem.toLowerCase()[0] === 'a' ? twelveHours : twelveHours + 12;
|
|
167
|
+
var twentyFourHours = meridiem.toLowerCase()[0] === 'a' ? twelveHours : twelveHours + 12; // @ts-ignore
|
|
168
|
+
|
|
163
169
|
hoursMinutes = [{
|
|
164
170
|
hours: twentyFourHours,
|
|
165
171
|
minutes: minutes
|
|
@@ -266,6 +272,7 @@ var TimePicker = /*#__PURE__*/function (_React$Component) {
|
|
|
266
272
|
var options = [];
|
|
267
273
|
|
|
268
274
|
for (var i = timeWindow.start; i < timeWindow.end; i += step) {
|
|
275
|
+
// @ts-ignore
|
|
269
276
|
options.push(i);
|
|
270
277
|
}
|
|
271
278
|
|
|
@@ -207,6 +207,7 @@ var TimezonePicker = /*#__PURE__*/function (_React$Component) {
|
|
|
207
207
|
|
|
208
208
|
if (this.props.mapLabels) {
|
|
209
209
|
options = options.map(function (option) {
|
|
210
|
+
// @ts-ignore
|
|
210
211
|
option.label = _this3.props.mapLabels(option);
|
|
211
212
|
return option;
|
|
212
213
|
});
|
|
@@ -220,7 +221,8 @@ var TimezonePicker = /*#__PURE__*/function (_React$Component) {
|
|
|
220
221
|
disabled: _this3.props.disabled,
|
|
221
222
|
error: _this3.props.error,
|
|
222
223
|
positive: _this3.props.positive,
|
|
223
|
-
size: _this3.props.size
|
|
224
|
+
size: _this3.props.size // @ts-ignore
|
|
225
|
+
,
|
|
224
226
|
onChange: function onChange(params) {
|
|
225
227
|
if (params.type === 'clear') {
|
|
226
228
|
_this3.setState({
|
package/esm/toast/toast.js
CHANGED
|
@@ -131,15 +131,19 @@ var Toast = /*#__PURE__*/function (_React$Component) {
|
|
|
131
131
|
});
|
|
132
132
|
|
|
133
133
|
_defineProperty(_assertThisInitialized(_this), "onFocus", function (e) {
|
|
134
|
-
if (!_this.state.isVisible) return;
|
|
135
|
-
|
|
134
|
+
if (!_this.state.isVisible) return; // @ts-ignore
|
|
135
|
+
|
|
136
|
+
clearTimeout(_this.autoHideTimeout); // @ts-ignore
|
|
137
|
+
|
|
136
138
|
clearTimeout(_this.animateOutCompleteTimer);
|
|
137
139
|
typeof _this.props.onFocus === 'function' && _this.props.onFocus(e);
|
|
138
140
|
});
|
|
139
141
|
|
|
140
142
|
_defineProperty(_assertThisInitialized(_this), "onMouseEnter", function (e) {
|
|
141
|
-
if (!_this.state.isVisible) return;
|
|
142
|
-
|
|
143
|
+
if (!_this.state.isVisible) return; // @ts-ignore
|
|
144
|
+
|
|
145
|
+
clearTimeout(_this.autoHideTimeout); // @ts-ignore
|
|
146
|
+
|
|
143
147
|
clearTimeout(_this.animateOutCompleteTimer);
|
|
144
148
|
typeof _this.props.onMouseEnter === 'function' && _this.props.onMouseEnter(e);
|
|
145
149
|
});
|
|
@@ -290,7 +294,8 @@ var Toast = /*#__PURE__*/function (_React$Component) {
|
|
|
290
294
|
onMouseLeave: _this2.onMouseLeave
|
|
291
295
|
}), /*#__PURE__*/React.createElement(InnerContainer, _extends({}, sharedProps, innerContainerProps), typeof children === 'function' ? children({
|
|
292
296
|
dismiss: _this2.dismiss
|
|
293
|
-
}) : children), closeable ? /*#__PURE__*/React.createElement(DeleteIcon
|
|
297
|
+
}) : children), closeable ? /*#__PURE__*/React.createElement(DeleteIcon // @ts-ignore
|
|
298
|
+
, _extends({
|
|
294
299
|
ref: _this2.closeRef,
|
|
295
300
|
role: "button",
|
|
296
301
|
tabIndex: 0,
|