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
|
@@ -67,7 +67,7 @@ var _default = function _default() {
|
|
|
67
67
|
buttonDisabledSpinnerForeground: themePrimitives.mono200,
|
|
68
68
|
buttonDisabledSpinnerBackground: themePrimitives.mono400,
|
|
69
69
|
// Breadcrumbs
|
|
70
|
-
breadcrumbsText: themePrimitives.
|
|
70
|
+
breadcrumbsText: themePrimitives.white,
|
|
71
71
|
breadcrumbsSeparatorFill: themePrimitives.mono200,
|
|
72
72
|
// Datepicker
|
|
73
73
|
calendarBackground: themePrimitives.mono800,
|
|
@@ -63,7 +63,7 @@ export default (themePrimitives: ColorTokensT = colorTokens): ComponentColorToke
|
|
|
63
63
|
buttonDisabledSpinnerBackground: themePrimitives.mono400,
|
|
64
64
|
|
|
65
65
|
// Breadcrumbs
|
|
66
|
-
breadcrumbsText: themePrimitives.
|
|
66
|
+
breadcrumbsText: themePrimitives.white,
|
|
67
67
|
breadcrumbsSeparatorFill: themePrimitives.mono200,
|
|
68
68
|
|
|
69
69
|
// Datepicker
|
|
@@ -67,7 +67,7 @@ var _default = function _default() {
|
|
|
67
67
|
buttonDisabledSpinnerForeground: themePrimitives.mono600,
|
|
68
68
|
buttonDisabledSpinnerBackground: themePrimitives.mono400,
|
|
69
69
|
// Breadcrumbs
|
|
70
|
-
breadcrumbsText: themePrimitives.
|
|
70
|
+
breadcrumbsText: themePrimitives.black,
|
|
71
71
|
breadcrumbsSeparatorFill: themePrimitives.mono700,
|
|
72
72
|
// Datepicker
|
|
73
73
|
calendarBackground: themePrimitives.mono100,
|
|
@@ -63,7 +63,7 @@ export default (themePrimitives: ColorTokensT = colorTokens): ComponentColorToke
|
|
|
63
63
|
buttonDisabledSpinnerBackground: themePrimitives.mono400,
|
|
64
64
|
|
|
65
65
|
// Breadcrumbs
|
|
66
|
-
breadcrumbsText: themePrimitives.
|
|
66
|
+
breadcrumbsText: themePrimitives.black,
|
|
67
67
|
breadcrumbsSeparatorFill: themePrimitives.mono700,
|
|
68
68
|
|
|
69
69
|
// Datepicker
|
|
@@ -13,6 +13,24 @@ export declare const typography: {
|
|
|
13
13
|
font1150: {
|
|
14
14
|
fontFamily: string;
|
|
15
15
|
};
|
|
16
|
+
font1050: {
|
|
17
|
+
fontFamily: string;
|
|
18
|
+
};
|
|
19
|
+
font950: {
|
|
20
|
+
fontFamily: string;
|
|
21
|
+
};
|
|
22
|
+
font850: {
|
|
23
|
+
fontFamily: string;
|
|
24
|
+
};
|
|
25
|
+
font750: {
|
|
26
|
+
fontFamily: string;
|
|
27
|
+
};
|
|
28
|
+
font650: {
|
|
29
|
+
fontFamily: string;
|
|
30
|
+
};
|
|
31
|
+
font550: {
|
|
32
|
+
fontFamily: string;
|
|
33
|
+
};
|
|
16
34
|
DisplayLarge: {
|
|
17
35
|
fontFamily: string;
|
|
18
36
|
};
|
|
@@ -25,6 +43,24 @@ export declare const typography: {
|
|
|
25
43
|
DisplayXSmall: {
|
|
26
44
|
fontFamily: string;
|
|
27
45
|
};
|
|
46
|
+
HeadingXXLarge: {
|
|
47
|
+
fontFamily: string;
|
|
48
|
+
};
|
|
49
|
+
HeadingXLarge: {
|
|
50
|
+
fontFamily: string;
|
|
51
|
+
};
|
|
52
|
+
HeadingLarge: {
|
|
53
|
+
fontFamily: string;
|
|
54
|
+
};
|
|
55
|
+
HeadingMedium: {
|
|
56
|
+
fontFamily: string;
|
|
57
|
+
};
|
|
58
|
+
HeadingSmall: {
|
|
59
|
+
fontFamily: string;
|
|
60
|
+
};
|
|
61
|
+
HeadingXSmall: {
|
|
62
|
+
fontFamily: string;
|
|
63
|
+
};
|
|
28
64
|
MonoParagraphXSmall: {
|
|
29
65
|
fontFamily: string;
|
|
30
66
|
};
|
|
@@ -30,6 +30,24 @@ var typography = {
|
|
|
30
30
|
font1150: {
|
|
31
31
|
fontFamily: secondaryFontFamily
|
|
32
32
|
},
|
|
33
|
+
font1050: {
|
|
34
|
+
fontFamily: secondaryFontFamily
|
|
35
|
+
},
|
|
36
|
+
font950: {
|
|
37
|
+
fontFamily: secondaryFontFamily
|
|
38
|
+
},
|
|
39
|
+
font850: {
|
|
40
|
+
fontFamily: secondaryFontFamily
|
|
41
|
+
},
|
|
42
|
+
font750: {
|
|
43
|
+
fontFamily: secondaryFontFamily
|
|
44
|
+
},
|
|
45
|
+
font650: {
|
|
46
|
+
fontFamily: secondaryFontFamily
|
|
47
|
+
},
|
|
48
|
+
font550: {
|
|
49
|
+
fontFamily: secondaryFontFamily
|
|
50
|
+
},
|
|
33
51
|
DisplayLarge: {
|
|
34
52
|
fontFamily: secondaryFontFamily
|
|
35
53
|
},
|
|
@@ -42,6 +60,24 @@ var typography = {
|
|
|
42
60
|
DisplayXSmall: {
|
|
43
61
|
fontFamily: secondaryFontFamily
|
|
44
62
|
},
|
|
63
|
+
HeadingXXLarge: {
|
|
64
|
+
fontFamily: secondaryFontFamily
|
|
65
|
+
},
|
|
66
|
+
HeadingXLarge: {
|
|
67
|
+
fontFamily: secondaryFontFamily
|
|
68
|
+
},
|
|
69
|
+
HeadingLarge: {
|
|
70
|
+
fontFamily: secondaryFontFamily
|
|
71
|
+
},
|
|
72
|
+
HeadingMedium: {
|
|
73
|
+
fontFamily: secondaryFontFamily
|
|
74
|
+
},
|
|
75
|
+
HeadingSmall: {
|
|
76
|
+
fontFamily: secondaryFontFamily
|
|
77
|
+
},
|
|
78
|
+
HeadingXSmall: {
|
|
79
|
+
fontFamily: secondaryFontFamily
|
|
80
|
+
},
|
|
45
81
|
MonoParagraphXSmall: {
|
|
46
82
|
fontFamily: monoFontFamily
|
|
47
83
|
},
|
|
@@ -21,10 +21,22 @@ export const typography = {
|
|
|
21
21
|
font1350: { fontFamily: secondaryFontFamily },
|
|
22
22
|
font1250: { fontFamily: secondaryFontFamily },
|
|
23
23
|
font1150: { fontFamily: secondaryFontFamily },
|
|
24
|
+
font1050: { fontFamily: secondaryFontFamily },
|
|
25
|
+
font950: { fontFamily: secondaryFontFamily },
|
|
26
|
+
font850: { fontFamily: secondaryFontFamily },
|
|
27
|
+
font750: { fontFamily: secondaryFontFamily },
|
|
28
|
+
font650: { fontFamily: secondaryFontFamily },
|
|
29
|
+
font550: { fontFamily: secondaryFontFamily },
|
|
24
30
|
DisplayLarge: { fontFamily: secondaryFontFamily },
|
|
25
31
|
DisplayMedium: { fontFamily: secondaryFontFamily },
|
|
26
32
|
DisplaySmall: { fontFamily: secondaryFontFamily },
|
|
27
33
|
DisplayXSmall: { fontFamily: secondaryFontFamily },
|
|
34
|
+
HeadingXXLarge: { fontFamily: secondaryFontFamily },
|
|
35
|
+
HeadingXLarge: { fontFamily: secondaryFontFamily },
|
|
36
|
+
HeadingLarge: { fontFamily: secondaryFontFamily },
|
|
37
|
+
HeadingMedium: { fontFamily: secondaryFontFamily },
|
|
38
|
+
HeadingSmall: { fontFamily: secondaryFontFamily },
|
|
39
|
+
HeadingXSmall: { fontFamily: secondaryFontFamily },
|
|
28
40
|
|
|
29
41
|
MonoParagraphXSmall: { fontFamily: monoFontFamily },
|
|
30
42
|
MonoParagraphSmall: { fontFamily: monoFontFamily },
|
package/themes/shared/borders.js
CHANGED
|
@@ -54,13 +54,18 @@ var borders = {
|
|
|
54
54
|
useRoundedCorners: true,
|
|
55
55
|
|
|
56
56
|
/** Button, ButtonGroup */
|
|
57
|
+
buttonBorderRadiusMini: '4px',
|
|
57
58
|
buttonBorderRadius: '8px',
|
|
58
59
|
|
|
59
|
-
/**
|
|
60
|
-
|
|
60
|
+
/** Checkbox */
|
|
61
|
+
checkboxBorderRadius: '0px',
|
|
62
|
+
|
|
63
|
+
/** Input, Select, Textarea */
|
|
64
|
+
inputBorderRadiusMini: '4px',
|
|
65
|
+
inputBorderRadius: '8px',
|
|
61
66
|
|
|
62
67
|
/** Popover, Menu, Tooltip */
|
|
63
|
-
popoverBorderRadius: '
|
|
68
|
+
popoverBorderRadius: '8px',
|
|
64
69
|
|
|
65
70
|
/** Card, Datepicker, Modal, Toast, Notification */
|
|
66
71
|
surfaceBorderRadius: '0px',
|
|
@@ -48,11 +48,15 @@ const borders: BordersT = {
|
|
|
48
48
|
/** Datepicker (Range), Progress Bar, Slider, Tag */
|
|
49
49
|
useRoundedCorners: true,
|
|
50
50
|
/** Button, ButtonGroup */
|
|
51
|
+
buttonBorderRadiusMini: '4px',
|
|
51
52
|
buttonBorderRadius: '8px',
|
|
52
|
-
/**
|
|
53
|
-
|
|
53
|
+
/** Checkbox */
|
|
54
|
+
checkboxBorderRadius: '0px',
|
|
55
|
+
/** Input, Select, Textarea */
|
|
56
|
+
inputBorderRadiusMini: '4px',
|
|
57
|
+
inputBorderRadius: '8px',
|
|
54
58
|
/** Popover, Menu, Tooltip */
|
|
55
|
-
popoverBorderRadius: '
|
|
59
|
+
popoverBorderRadius: '8px',
|
|
56
60
|
/** Card, Datepicker, Modal, Toast, Notification */
|
|
57
61
|
surfaceBorderRadius: '0px',
|
|
58
62
|
/** Tag */
|
|
@@ -76,61 +76,61 @@ var _default = function _default() {
|
|
|
76
76
|
var font550 = {
|
|
77
77
|
fontFamily: fontTokens.primaryFontFamily,
|
|
78
78
|
fontSize: '20px',
|
|
79
|
-
fontWeight:
|
|
79
|
+
fontWeight: 700,
|
|
80
80
|
lineHeight: '28px'
|
|
81
81
|
};
|
|
82
82
|
var font650 = {
|
|
83
83
|
fontFamily: fontTokens.primaryFontFamily,
|
|
84
84
|
fontSize: '24px',
|
|
85
|
-
fontWeight:
|
|
85
|
+
fontWeight: 700,
|
|
86
86
|
lineHeight: '32px'
|
|
87
87
|
};
|
|
88
88
|
var font750 = {
|
|
89
89
|
fontFamily: fontTokens.primaryFontFamily,
|
|
90
90
|
fontSize: '28px',
|
|
91
|
-
fontWeight:
|
|
91
|
+
fontWeight: 700,
|
|
92
92
|
lineHeight: '36px'
|
|
93
93
|
};
|
|
94
94
|
var font850 = {
|
|
95
95
|
fontFamily: fontTokens.primaryFontFamily,
|
|
96
96
|
fontSize: '32px',
|
|
97
|
-
fontWeight:
|
|
97
|
+
fontWeight: 700,
|
|
98
98
|
lineHeight: '40px'
|
|
99
99
|
};
|
|
100
100
|
var font950 = {
|
|
101
101
|
fontFamily: fontTokens.primaryFontFamily,
|
|
102
102
|
fontSize: '36px',
|
|
103
|
-
fontWeight:
|
|
103
|
+
fontWeight: 700,
|
|
104
104
|
lineHeight: '44px'
|
|
105
105
|
};
|
|
106
106
|
var font1050 = {
|
|
107
107
|
fontFamily: fontTokens.primaryFontFamily,
|
|
108
108
|
fontSize: '40px',
|
|
109
|
-
fontWeight:
|
|
109
|
+
fontWeight: 700,
|
|
110
110
|
lineHeight: '52px'
|
|
111
111
|
};
|
|
112
112
|
var font1150 = {
|
|
113
113
|
fontFamily: fontTokens.primaryFontFamily,
|
|
114
114
|
fontSize: '36px',
|
|
115
|
-
fontWeight:
|
|
115
|
+
fontWeight: 700,
|
|
116
116
|
lineHeight: '44px'
|
|
117
117
|
};
|
|
118
118
|
var font1250 = {
|
|
119
119
|
fontFamily: fontTokens.primaryFontFamily,
|
|
120
120
|
fontSize: '44px',
|
|
121
|
-
fontWeight:
|
|
121
|
+
fontWeight: 700,
|
|
122
122
|
lineHeight: '52px'
|
|
123
123
|
};
|
|
124
124
|
var font1350 = {
|
|
125
125
|
fontFamily: fontTokens.primaryFontFamily,
|
|
126
126
|
fontSize: '52px',
|
|
127
|
-
fontWeight:
|
|
127
|
+
fontWeight: 700,
|
|
128
128
|
lineHeight: '64px'
|
|
129
129
|
};
|
|
130
130
|
var font1450 = {
|
|
131
131
|
fontFamily: fontTokens.primaryFontFamily,
|
|
132
132
|
fontSize: '96px',
|
|
133
|
-
fontWeight:
|
|
133
|
+
fontWeight: 700,
|
|
134
134
|
lineHeight: '112px'
|
|
135
135
|
};
|
|
136
136
|
return {
|
|
@@ -65,61 +65,61 @@ export default (fontTokens?: FontTokensT = defaultFontTokens): TypographyT => {
|
|
|
65
65
|
const font550 = {
|
|
66
66
|
fontFamily: fontTokens.primaryFontFamily,
|
|
67
67
|
fontSize: '20px',
|
|
68
|
-
fontWeight:
|
|
68
|
+
fontWeight: 700,
|
|
69
69
|
lineHeight: '28px',
|
|
70
70
|
};
|
|
71
71
|
const font650 = {
|
|
72
72
|
fontFamily: fontTokens.primaryFontFamily,
|
|
73
73
|
fontSize: '24px',
|
|
74
|
-
fontWeight:
|
|
74
|
+
fontWeight: 700,
|
|
75
75
|
lineHeight: '32px',
|
|
76
76
|
};
|
|
77
77
|
const font750 = {
|
|
78
78
|
fontFamily: fontTokens.primaryFontFamily,
|
|
79
79
|
fontSize: '28px',
|
|
80
|
-
fontWeight:
|
|
80
|
+
fontWeight: 700,
|
|
81
81
|
lineHeight: '36px',
|
|
82
82
|
};
|
|
83
83
|
const font850 = {
|
|
84
84
|
fontFamily: fontTokens.primaryFontFamily,
|
|
85
85
|
fontSize: '32px',
|
|
86
|
-
fontWeight:
|
|
86
|
+
fontWeight: 700,
|
|
87
87
|
lineHeight: '40px',
|
|
88
88
|
};
|
|
89
89
|
const font950 = {
|
|
90
90
|
fontFamily: fontTokens.primaryFontFamily,
|
|
91
91
|
fontSize: '36px',
|
|
92
|
-
fontWeight:
|
|
92
|
+
fontWeight: 700,
|
|
93
93
|
lineHeight: '44px',
|
|
94
94
|
};
|
|
95
95
|
const font1050 = {
|
|
96
96
|
fontFamily: fontTokens.primaryFontFamily,
|
|
97
97
|
fontSize: '40px',
|
|
98
|
-
fontWeight:
|
|
98
|
+
fontWeight: 700,
|
|
99
99
|
lineHeight: '52px',
|
|
100
100
|
};
|
|
101
101
|
const font1150 = {
|
|
102
102
|
fontFamily: fontTokens.primaryFontFamily,
|
|
103
103
|
fontSize: '36px',
|
|
104
|
-
fontWeight:
|
|
104
|
+
fontWeight: 700,
|
|
105
105
|
lineHeight: '44px',
|
|
106
106
|
};
|
|
107
107
|
const font1250 = {
|
|
108
108
|
fontFamily: fontTokens.primaryFontFamily,
|
|
109
109
|
fontSize: '44px',
|
|
110
|
-
fontWeight:
|
|
110
|
+
fontWeight: 700,
|
|
111
111
|
lineHeight: '52px',
|
|
112
112
|
};
|
|
113
113
|
const font1350 = {
|
|
114
114
|
fontFamily: fontTokens.primaryFontFamily,
|
|
115
115
|
fontSize: '52px',
|
|
116
|
-
fontWeight:
|
|
116
|
+
fontWeight: 700,
|
|
117
117
|
lineHeight: '64px',
|
|
118
118
|
};
|
|
119
119
|
const font1450 = {
|
|
120
120
|
fontFamily: fontTokens.primaryFontFamily,
|
|
121
121
|
fontSize: '96px',
|
|
122
|
-
fontWeight:
|
|
122
|
+
fontWeight: 700,
|
|
123
123
|
lineHeight: '112px',
|
|
124
124
|
};
|
|
125
125
|
|
package/themes/types.d.ts
CHANGED
|
@@ -571,8 +571,11 @@ export declare type Borders = {
|
|
|
571
571
|
radius500: string;
|
|
572
572
|
useRoundedCorners: boolean;
|
|
573
573
|
buttonBorderRadius: string;
|
|
574
|
+
buttonBorderRadiusMini: string;
|
|
575
|
+
checkboxBorderRadius: string;
|
|
574
576
|
surfaceBorderRadius: string;
|
|
575
577
|
inputBorderRadius: string;
|
|
578
|
+
inputBorderRadiusMini: string;
|
|
576
579
|
popoverBorderRadius: string;
|
|
577
580
|
tagBorderRadius: string;
|
|
578
581
|
};
|
package/themes/types.js.flow
CHANGED
|
@@ -688,8 +688,11 @@ export type BordersT = {
|
|
|
688
688
|
radius500: string,
|
|
689
689
|
useRoundedCorners: boolean,
|
|
690
690
|
buttonBorderRadius: string,
|
|
691
|
+
buttonBorderRadiusMini: string,
|
|
692
|
+
checkboxBorderRadius: string,
|
|
691
693
|
surfaceBorderRadius: string,
|
|
692
694
|
inputBorderRadius: string,
|
|
695
|
+
inputBorderRadiusMini: string,
|
|
693
696
|
popoverBorderRadius: string,
|
|
694
697
|
tagBorderRadius: string,
|
|
695
698
|
};
|
|
@@ -118,14 +118,18 @@ var TimezonePicker = /*#__PURE__*/function (_React$Component) {
|
|
|
118
118
|
// Ignores timezones that are not available within a user's browser/operating system
|
|
119
119
|
console.error("failed to format zone name ".concat(zoneName));
|
|
120
120
|
}
|
|
121
|
-
}
|
|
122
|
-
|
|
121
|
+
}
|
|
123
122
|
} catch (err) {
|
|
124
123
|
_iterator.e(err);
|
|
125
124
|
} finally {
|
|
126
125
|
_iterator.f();
|
|
127
126
|
}
|
|
128
127
|
|
|
128
|
+
if (_this.props.additionalTimezones) {
|
|
129
|
+
timezones = timezones.concat(_this.props.additionalTimezones);
|
|
130
|
+
} // Sorts W -> E, prioritizes america. could be more nuanced based on system tz but simple for now
|
|
131
|
+
|
|
132
|
+
|
|
129
133
|
return timezones.sort(function (a, b) {
|
|
130
134
|
var offsetDelta = b.offset - a.offset;
|
|
131
135
|
if (offsetDelta !== 0) return offsetDelta;
|
|
@@ -21,6 +21,7 @@ export declare type TimezonePickerOverrides = {
|
|
|
21
21
|
Select?: Override;
|
|
22
22
|
};
|
|
23
23
|
export declare type TimezonePickerProps = {
|
|
24
|
+
additionalTimezones?: Timezone[];
|
|
24
25
|
/**
|
|
25
26
|
* If not provided, defaults to new Date(). Important to note that the timezone picker only
|
|
26
27
|
* displays options related to the provided date. Take Pacific Time for example. On March 9th,
|
|
@@ -30,6 +30,7 @@ export type TimezoneT = {
|
|
|
30
30
|
offset: number,
|
|
31
31
|
};
|
|
32
32
|
export type TimezonePickerPropsT = {
|
|
33
|
+
additionalTimezones?: TimezoneT[],
|
|
33
34
|
/**
|
|
34
35
|
* If not provided, defaults to new Date(). Important to note that the timezone picker only
|
|
35
36
|
* displays options related to the provided date. Take Pacific Time for example. On March 9th,
|
package/timezonepicker/tzdata.js
CHANGED
|
@@ -11,5 +11,5 @@ Copyright (c) Uber Technologies, Inc.
|
|
|
11
11
|
This source code is licensed under the MIT license found in the
|
|
12
12
|
LICENSE file in the root directory of this source tree.
|
|
13
13
|
*/
|
|
14
|
-
var zones = ['Europe/Andorra', 'Asia/Dubai', 'Asia/Kabul', 'Europe/Tirane', 'Asia/Yerevan', 'Antarctica/Casey', 'Antarctica/Davis', 'Antarctica/Mawson', 'Antarctica/Palmer', 'Antarctica/Rothera', 'Antarctica/Troll', 'Antarctica/Vostok', 'America/Argentina/Buenos_Aires', 'America/Argentina/Cordoba', 'America/Argentina/Salta', 'America/Argentina/Jujuy', 'America/Argentina/Tucuman', 'America/Argentina/Catamarca', 'America/Argentina/La_Rioja', 'America/Argentina/San_Juan', 'America/Argentina/Mendoza', 'America/Argentina/San_Luis', 'America/Argentina/Rio_Gallegos', 'America/Argentina/Ushuaia', 'Pacific/Pago_Pago', 'Europe/Vienna', 'Australia/Lord_Howe', 'Antarctica/Macquarie', 'Australia/Hobart', 'Australia/Melbourne', 'Australia/Sydney', 'Australia/Broken_Hill', 'Australia/Brisbane', 'Australia/Lindeman', 'Australia/Adelaide', 'Australia/Darwin', 'Australia/Perth', 'Australia/Eucla', 'Asia/Baku', 'America/Barbados', 'Asia/Dhaka', 'Europe/Brussels', 'Europe/Sofia', 'Atlantic/Bermuda', 'Asia/Brunei', 'America/La_Paz', 'America/Noronha', 'America/Belem', 'America/Fortaleza', 'America/Recife', 'America/Araguaina', 'America/Maceio', 'America/Bahia', 'America/Sao_Paulo', 'America/Campo_Grande', 'America/Cuiaba', 'America/Santarem', 'America/Porto_Velho', 'America/Boa_Vista', 'America/Manaus', 'America/Eirunepe', 'America/Rio_Branco', 'Asia/Thimphu', 'Europe/Minsk', 'America/Belize', 'America/St_Johns', 'America/Halifax', 'America/Glace_Bay', 'America/Moncton', 'America/Goose_Bay', 'America/Toronto', 'America/Nipigon', 'America/Thunder_Bay', 'America/Iqaluit', 'America/Pangnirtung', 'America/Winnipeg', 'America/Rainy_River', 'America/Resolute', 'America/Rankin_Inlet', 'America/Regina', 'America/Swift_Current', 'America/Edmonton', 'America/Cambridge_Bay', 'America/Yellowknife', 'America/Inuvik', 'America/Dawson_Creek', 'America/Fort_Nelson', 'America/Whitehorse', 'America/Dawson', 'America/Vancouver', 'Indian/Cocos', 'Europe/Zurich', 'Africa/Abidjan', 'Pacific/Rarotonga', 'America/Santiago', 'America/Punta_Arenas', 'Pacific/Easter', 'Asia/Shanghai', 'Asia/Urumqi', 'America/Bogota', 'America/Costa_Rica', 'America/Havana', 'Atlantic/Cape_Verde', 'Indian/Christmas', 'Asia/Nicosia', 'Asia/Famagusta', 'Europe/Prague', 'Europe/Berlin', 'Europe/Copenhagen', 'America/Santo_Domingo', 'Africa/Algiers', 'America/Guayaquil', 'Pacific/Galapagos', 'Europe/Tallinn', 'Africa/Cairo', 'Africa/El_Aaiun', 'Europe/Madrid', 'Africa/Ceuta', 'Atlantic/Canary', 'Europe/Helsinki', 'Pacific/Fiji', 'Atlantic/Stanley', 'Pacific/Chuuk', 'Pacific/Pohnpei', 'Pacific/Kosrae', 'Atlantic/Faroe', 'Europe/Paris', 'Europe/London', 'Asia/Tbilisi', 'America/Cayenne', 'Europe/Gibraltar', 'America/Nuuk', 'America/Danmarkshavn', 'America/Scoresbysund', 'America/Thule', 'Europe/Athens', 'Atlantic/South_Georgia', 'America/Guatemala', 'Pacific/Guam', 'Africa/Bissau', 'America/Guyana', 'Asia/Hong_Kong', 'America/Tegucigalpa', 'America/Port-au-Prince', 'Europe/Budapest', 'Asia/Jakarta', 'Asia/Pontianak', 'Asia/Makassar', 'Asia/Jayapura', 'Europe/Dublin', 'Asia/Jerusalem', 'Asia/Kolkata', 'Indian/Chagos', 'Asia/Baghdad', 'Asia/Tehran', 'Atlantic/Reykjavik', 'Europe/Rome', 'America/Jamaica', 'Asia/Amman', 'Asia/Tokyo', 'Africa/Nairobi', 'Asia/Bishkek', 'Pacific/Tarawa', 'Pacific/Kanton', 'Pacific/Kiritimati', 'Asia/Pyongyang', 'Asia/Seoul', 'Asia/Almaty', 'Asia/Qyzylorda', 'Asia/Qostanay', 'Asia/Aqtobe', 'Asia/Aqtau', 'Asia/Atyrau', 'Asia/Oral', 'Asia/Beirut', 'Asia/Colombo', 'Africa/Monrovia', 'Europe/Vilnius', 'Europe/Luxembourg', 'Europe/Riga', 'Africa/Tripoli', 'Africa/Casablanca', 'Europe/Monaco', 'Europe/Chisinau', 'Pacific/Majuro', 'Pacific/Kwajalein', 'Asia/Yangon', 'Asia/Ulaanbaatar', 'Asia/Hovd', 'Asia/Choibalsan', 'Asia/Macau', 'America/Martinique', 'Europe/Malta', 'Indian/Mauritius', 'Indian/Maldives', 'America/Mexico_City', 'America/Cancun', 'America/Merida', 'America/Monterrey', 'America/Matamoros', 'America/Mazatlan', 'America/Chihuahua', 'America/Ojinaga', 'America/Hermosillo', 'America/Tijuana', 'America/Bahia_Banderas', 'Asia/Kuala_Lumpur', 'Asia/Kuching', 'Africa/Maputo', 'Africa/Windhoek', 'Pacific/Noumea', 'Pacific/Norfolk', 'Africa/Lagos', 'America/Managua', 'Europe/Amsterdam', 'Europe/Oslo', 'Asia/Kathmandu', 'Pacific/Nauru', 'Pacific/Niue', 'Pacific/Auckland', 'Pacific/Chatham', 'America/Panama', 'America/Lima', 'Pacific/Tahiti', 'Pacific/Marquesas', 'Pacific/Gambier', 'Pacific/Port_Moresby', 'Pacific/Bougainville', 'Asia/Manila', 'Asia/Karachi', 'Europe/Warsaw', 'America/Miquelon', 'Pacific/Pitcairn', 'America/Puerto_Rico', 'Asia/Gaza', 'Asia/Hebron', 'Europe/Lisbon', 'Atlantic/Madeira', 'Atlantic/Azores', 'Pacific/Palau', 'America/Asuncion', 'Asia/Qatar', 'Indian/Reunion', 'Europe/Bucharest', 'Europe/Belgrade', 'Europe/Kaliningrad', 'Europe/Moscow', 'Europe/Simferopol', 'Europe/Kirov', 'Europe/Volgograd', 'Europe/Astrakhan', 'Europe/Saratov', 'Europe/Ulyanovsk', 'Europe/Samara', 'Asia/Yekaterinburg', 'Asia/Omsk', 'Asia/Novosibirsk', 'Asia/Barnaul', 'Asia/Tomsk', 'Asia/Novokuznetsk', 'Asia/Krasnoyarsk', 'Asia/Irkutsk', 'Asia/Chita', 'Asia/Yakutsk', 'Asia/Khandyga', 'Asia/Vladivostok', 'Asia/Ust-Nera', 'Asia/Magadan', 'Asia/Sakhalin', 'Asia/Srednekolymsk', 'Asia/Kamchatka', 'Asia/Anadyr', 'Asia/Riyadh', 'Pacific/Guadalcanal', 'Indian/Mahe', 'Africa/Khartoum', 'Europe/Stockholm', 'Asia/Singapore', 'America/Paramaribo', 'Africa/Juba', 'Africa/Sao_Tome', 'America/El_Salvador', 'Asia/Damascus', 'America/Grand_Turk', 'Africa/Ndjamena', 'Indian/Kerguelen', 'Asia/Bangkok', 'Asia/Dushanbe', 'Pacific/Fakaofo', 'Asia/Dili', 'Asia/Ashgabat', 'Africa/Tunis', 'Pacific/Tongatapu', 'Europe/Istanbul', 'Pacific/Funafuti', 'Asia/Taipei', 'Europe/
|
|
14
|
+
var zones = ['Europe/Andorra', 'Asia/Dubai', 'Asia/Kabul', 'America/Antigua', 'America/Anguilla', 'Europe/Tirane', 'Asia/Yerevan', 'Africa/Luanda', 'Antarctica/McMurdo', 'Antarctica/Casey', 'Antarctica/Davis', 'Antarctica/DumontDUrville', 'Antarctica/Mawson', 'Antarctica/Palmer', 'Antarctica/Rothera', 'Antarctica/Syowa', 'Antarctica/Troll', 'Antarctica/Vostok', 'America/Argentina/Buenos_Aires', 'America/Argentina/Cordoba', 'America/Argentina/Salta', 'America/Argentina/Jujuy', 'America/Argentina/Tucuman', 'America/Argentina/Catamarca', 'America/Argentina/La_Rioja', 'America/Argentina/San_Juan', 'America/Argentina/Mendoza', 'America/Argentina/San_Luis', 'America/Argentina/Rio_Gallegos', 'America/Argentina/Ushuaia', 'Pacific/Pago_Pago', 'Europe/Vienna', 'Australia/Lord_Howe', 'Antarctica/Macquarie', 'Australia/Hobart', 'Australia/Melbourne', 'Australia/Sydney', 'Australia/Broken_Hill', 'Australia/Brisbane', 'Australia/Lindeman', 'Australia/Adelaide', 'Australia/Darwin', 'Australia/Perth', 'Australia/Eucla', 'America/Aruba', 'Europe/Mariehamn', 'Asia/Baku', 'Europe/Sarajevo', 'America/Barbados', 'Asia/Dhaka', 'Europe/Brussels', 'Africa/Ouagadougou', 'Europe/Sofia', 'Asia/Bahrain', 'Africa/Bujumbura', 'Africa/Porto-Novo', 'America/St_Barthelemy', 'Atlantic/Bermuda', 'Asia/Brunei', 'America/La_Paz', 'America/Kralendijk', 'America/Noronha', 'America/Belem', 'America/Fortaleza', 'America/Recife', 'America/Araguaina', 'America/Maceio', 'America/Bahia', 'America/Sao_Paulo', 'America/Campo_Grande', 'America/Cuiaba', 'America/Santarem', 'America/Porto_Velho', 'America/Boa_Vista', 'America/Manaus', 'America/Eirunepe', 'America/Rio_Branco', 'America/Nassau', 'Asia/Thimphu', 'Africa/Gaborone', 'Europe/Minsk', 'America/Belize', 'America/St_Johns', 'America/Halifax', 'America/Glace_Bay', 'America/Moncton', 'America/Goose_Bay', 'America/Blanc-Sablon', 'America/Toronto', 'America/Nipigon', 'America/Thunder_Bay', 'America/Iqaluit', 'America/Pangnirtung', 'America/Atikokan', 'America/Winnipeg', 'America/Rainy_River', 'America/Resolute', 'America/Rankin_Inlet', 'America/Regina', 'America/Swift_Current', 'America/Edmonton', 'America/Cambridge_Bay', 'America/Yellowknife', 'America/Inuvik', 'America/Creston', 'America/Dawson_Creek', 'America/Fort_Nelson', 'America/Whitehorse', 'America/Dawson', 'America/Vancouver', 'Indian/Cocos', 'Africa/Kinshasa', 'Africa/Lubumbashi', 'Africa/Bangui', 'Africa/Brazzaville', 'Europe/Zurich', 'Africa/Abidjan', 'Pacific/Rarotonga', 'America/Santiago', 'America/Punta_Arenas', 'Pacific/Easter', 'Africa/Douala', 'Asia/Shanghai', 'Asia/Urumqi', 'America/Bogota', 'America/Costa_Rica', 'America/Havana', 'Atlantic/Cape_Verde', 'America/Curacao', 'Indian/Christmas', 'Asia/Nicosia', 'Asia/Famagusta', 'Europe/Prague', 'Europe/Berlin', 'Europe/Busingen', 'Africa/Djibouti', 'Europe/Copenhagen', 'America/Dominica', 'America/Santo_Domingo', 'Africa/Algiers', 'America/Guayaquil', 'Pacific/Galapagos', 'Europe/Tallinn', 'Africa/Cairo', 'Africa/El_Aaiun', 'Africa/Asmara', 'Europe/Madrid', 'Africa/Ceuta', 'Atlantic/Canary', 'Africa/Addis_Ababa', 'Europe/Helsinki', 'Pacific/Fiji', 'Atlantic/Stanley', 'Pacific/Chuuk', 'Pacific/Pohnpei', 'Pacific/Kosrae', 'Atlantic/Faroe', 'Europe/Paris', 'Africa/Libreville', 'Europe/London', 'America/Grenada', 'Asia/Tbilisi', 'America/Cayenne', 'Europe/Guernsey', 'Africa/Accra', 'Europe/Gibraltar', 'America/Nuuk', 'America/Danmarkshavn', 'America/Scoresbysund', 'America/Thule', 'Africa/Banjul', 'Africa/Conakry', 'America/Guadeloupe', 'Africa/Malabo', 'Europe/Athens', 'Atlantic/South_Georgia', 'America/Guatemala', 'Pacific/Guam', 'Africa/Bissau', 'America/Guyana', 'Asia/Hong_Kong', 'America/Tegucigalpa', 'Europe/Zagreb', 'America/Port-au-Prince', 'Europe/Budapest', 'Asia/Jakarta', 'Asia/Pontianak', 'Asia/Makassar', 'Asia/Jayapura', 'Europe/Dublin', 'Asia/Jerusalem', 'Europe/Isle_of_Man', 'Asia/Kolkata', 'Indian/Chagos', 'Asia/Baghdad', 'Asia/Tehran', 'Atlantic/Reykjavik', 'Europe/Rome', 'Europe/Jersey', 'America/Jamaica', 'Asia/Amman', 'Asia/Tokyo', 'Africa/Nairobi', 'Asia/Bishkek', 'Asia/Phnom_Penh', 'Pacific/Tarawa', 'Pacific/Kanton', 'Pacific/Kiritimati', 'Indian/Comoro', 'America/St_Kitts', 'Asia/Pyongyang', 'Asia/Seoul', 'Asia/Kuwait', 'America/Cayman', 'Asia/Almaty', 'Asia/Qyzylorda', 'Asia/Qostanay', 'Asia/Aqtobe', 'Asia/Aqtau', 'Asia/Atyrau', 'Asia/Oral', 'Asia/Vientiane', 'Asia/Beirut', 'America/St_Lucia', 'Europe/Vaduz', 'Asia/Colombo', 'Africa/Monrovia', 'Africa/Maseru', 'Europe/Vilnius', 'Europe/Luxembourg', 'Europe/Riga', 'Africa/Tripoli', 'Africa/Casablanca', 'Europe/Monaco', 'Europe/Chisinau', 'Europe/Podgorica', 'America/Marigot', 'Indian/Antananarivo', 'Pacific/Majuro', 'Pacific/Kwajalein', 'Europe/Skopje', 'Africa/Bamako', 'Asia/Yangon', 'Asia/Ulaanbaatar', 'Asia/Hovd', 'Asia/Choibalsan', 'Asia/Macau', 'Pacific/Saipan', 'America/Martinique', 'Africa/Nouakchott', 'America/Montserrat', 'Europe/Malta', 'Indian/Mauritius', 'Indian/Maldives', 'Africa/Blantyre', 'America/Mexico_City', 'America/Cancun', 'America/Merida', 'America/Monterrey', 'America/Matamoros', 'America/Mazatlan', 'America/Chihuahua', 'America/Ojinaga', 'America/Hermosillo', 'America/Tijuana', 'America/Bahia_Banderas', 'Asia/Kuala_Lumpur', 'Asia/Kuching', 'Africa/Maputo', 'Africa/Windhoek', 'Pacific/Noumea', 'Africa/Niamey', 'Pacific/Norfolk', 'Africa/Lagos', 'America/Managua', 'Europe/Amsterdam', 'Europe/Oslo', 'Asia/Kathmandu', 'Pacific/Nauru', 'Pacific/Niue', 'Pacific/Auckland', 'Pacific/Chatham', 'Asia/Muscat', 'America/Panama', 'America/Lima', 'Pacific/Tahiti', 'Pacific/Marquesas', 'Pacific/Gambier', 'Pacific/Port_Moresby', 'Pacific/Bougainville', 'Asia/Manila', 'Asia/Karachi', 'Europe/Warsaw', 'America/Miquelon', 'Pacific/Pitcairn', 'America/Puerto_Rico', 'Asia/Gaza', 'Asia/Hebron', 'Europe/Lisbon', 'Atlantic/Madeira', 'Atlantic/Azores', 'Pacific/Palau', 'America/Asuncion', 'Asia/Qatar', 'Indian/Reunion', 'Europe/Bucharest', 'Europe/Belgrade', 'Europe/Kaliningrad', 'Europe/Moscow', 'Europe/Simferopol', 'Europe/Kirov', 'Europe/Volgograd', 'Europe/Astrakhan', 'Europe/Saratov', 'Europe/Ulyanovsk', 'Europe/Samara', 'Asia/Yekaterinburg', 'Asia/Omsk', 'Asia/Novosibirsk', 'Asia/Barnaul', 'Asia/Tomsk', 'Asia/Novokuznetsk', 'Asia/Krasnoyarsk', 'Asia/Irkutsk', 'Asia/Chita', 'Asia/Yakutsk', 'Asia/Khandyga', 'Asia/Vladivostok', 'Asia/Ust-Nera', 'Asia/Magadan', 'Asia/Sakhalin', 'Asia/Srednekolymsk', 'Asia/Kamchatka', 'Asia/Anadyr', 'Africa/Kigali', 'Asia/Riyadh', 'Pacific/Guadalcanal', 'Indian/Mahe', 'Africa/Khartoum', 'Europe/Stockholm', 'Asia/Singapore', 'Atlantic/St_Helena', 'Europe/Ljubljana', 'Arctic/Longyearbyen', 'Europe/Bratislava', 'Africa/Freetown', 'Europe/San_Marino', 'Africa/Dakar', 'Africa/Mogadishu', 'America/Paramaribo', 'Africa/Juba', 'Africa/Sao_Tome', 'America/El_Salvador', 'America/Lower_Princes', 'Asia/Damascus', 'Africa/Mbabane', 'America/Grand_Turk', 'Africa/Ndjamena', 'Indian/Kerguelen', 'Africa/Lome', 'Asia/Bangkok', 'Asia/Dushanbe', 'Pacific/Fakaofo', 'Asia/Dili', 'Asia/Ashgabat', 'Africa/Tunis', 'Pacific/Tongatapu', 'Europe/Istanbul', 'America/Port_of_Spain', 'Pacific/Funafuti', 'Asia/Taipei', 'Africa/Dar_es_Salaam', 'Europe/Kyiv', 'Europe/Uzhgorod', 'Europe/Zaporozhye', 'Africa/Kampala', 'Pacific/Midway', 'Pacific/Wake', 'America/New_York', 'America/Detroit', 'America/Kentucky/Louisville', 'America/Kentucky/Monticello', 'America/Indiana/Indianapolis', 'America/Indiana/Vincennes', 'America/Indiana/Winamac', 'America/Indiana/Marengo', 'America/Indiana/Petersburg', 'America/Indiana/Vevay', 'America/Chicago', 'America/Indiana/Tell_City', 'America/Indiana/Knox', 'America/Menominee', 'America/North_Dakota/Center', 'America/North_Dakota/New_Salem', 'America/North_Dakota/Beulah', 'America/Denver', 'America/Boise', 'America/Phoenix', 'America/Los_Angeles', 'America/Anchorage', 'America/Juneau', 'America/Sitka', 'America/Metlakatla', 'America/Yakutat', 'America/Nome', 'America/Adak', 'Pacific/Honolulu', 'America/Montevideo', 'Asia/Samarkand', 'Asia/Tashkent', 'Europe/Vatican', 'America/St_Vincent', 'America/Caracas', 'America/Tortola', 'America/St_Thomas', 'Asia/Ho_Chi_Minh', 'Pacific/Efate', 'Pacific/Wallis', 'Pacific/Apia', 'Asia/Aden', 'Indian/Mayotte', 'Africa/Johannesburg', 'Africa/Lusaka', 'Africa/Harare'];
|
|
15
15
|
exports.zones = zones;
|
|
@@ -47,80 +47,92 @@ function _main() {
|
|
|
47
47
|
switch (_context.prev = _context.next) {
|
|
48
48
|
case 0:
|
|
49
49
|
_context.prev = 0;
|
|
50
|
-
tmpDir = path.join(__dirname, 'tmp');
|
|
50
|
+
tmpDir = path.join(__dirname, 'tmp');
|
|
51
|
+
_context.prev = 2;
|
|
52
|
+
_context.next = 5;
|
|
53
|
+
return fs.promises.mkdir(tmpDir);
|
|
51
54
|
|
|
52
|
-
|
|
55
|
+
case 5:
|
|
56
|
+
_context.next = 7;
|
|
53
57
|
return fs.promises.rmdir(tmpDir, {
|
|
54
58
|
recursive: true
|
|
55
59
|
});
|
|
56
60
|
|
|
57
|
-
case
|
|
58
|
-
_context.next =
|
|
61
|
+
case 7:
|
|
62
|
+
_context.next = 9;
|
|
59
63
|
return fs.promises.mkdir(tmpDir);
|
|
60
64
|
|
|
61
|
-
case
|
|
65
|
+
case 9:
|
|
66
|
+
_context.next = 13;
|
|
67
|
+
break;
|
|
68
|
+
|
|
69
|
+
case 11:
|
|
70
|
+
_context.prev = 11;
|
|
71
|
+
_context.t0 = _context["catch"](2);
|
|
72
|
+
|
|
73
|
+
case 13:
|
|
62
74
|
src = "https://www.iana.org/time-zones/repository/tzdata-latest.tar.gz";
|
|
63
|
-
_context.next =
|
|
75
|
+
_context.next = 16;
|
|
64
76
|
return exec("curl -L ".concat(src, " | gzip -dc | tar -xf - --directory ").concat(tmpDir));
|
|
65
77
|
|
|
66
|
-
case
|
|
67
|
-
zoneTabPath = path.join(tmpDir, '
|
|
68
|
-
_context.next =
|
|
78
|
+
case 16:
|
|
79
|
+
zoneTabPath = path.join(tmpDir, 'zone.tab');
|
|
80
|
+
_context.next = 19;
|
|
69
81
|
return fs.promises.readFile(zoneTabPath, 'utf-8');
|
|
70
82
|
|
|
71
|
-
case
|
|
83
|
+
case 19:
|
|
72
84
|
content = _context.sent;
|
|
73
85
|
lines = content.split('\n');
|
|
74
86
|
zones = [];
|
|
75
87
|
_iterator = _createForOfIteratorHelper(lines);
|
|
76
|
-
_context.prev =
|
|
88
|
+
_context.prev = 23;
|
|
77
89
|
|
|
78
90
|
_iterator.s();
|
|
79
91
|
|
|
80
|
-
case
|
|
92
|
+
case 25:
|
|
81
93
|
if ((_step = _iterator.n()).done) {
|
|
82
|
-
_context.next =
|
|
94
|
+
_context.next = 33;
|
|
83
95
|
break;
|
|
84
96
|
}
|
|
85
97
|
|
|
86
98
|
line = _step.value;
|
|
87
99
|
|
|
88
100
|
if (!(line[0] === '#')) {
|
|
89
|
-
_context.next =
|
|
101
|
+
_context.next = 29;
|
|
90
102
|
break;
|
|
91
103
|
}
|
|
92
104
|
|
|
93
|
-
return _context.abrupt("continue",
|
|
105
|
+
return _context.abrupt("continue", 31);
|
|
94
106
|
|
|
95
|
-
case
|
|
107
|
+
case 29:
|
|
96
108
|
parts = line.split(/\s+/);
|
|
97
109
|
|
|
98
110
|
if (parts.length >= 3) {
|
|
99
111
|
zones.push(parts[2]);
|
|
100
112
|
}
|
|
101
113
|
|
|
102
|
-
case
|
|
103
|
-
_context.next =
|
|
114
|
+
case 31:
|
|
115
|
+
_context.next = 25;
|
|
104
116
|
break;
|
|
105
117
|
|
|
106
|
-
case
|
|
107
|
-
_context.next =
|
|
118
|
+
case 33:
|
|
119
|
+
_context.next = 38;
|
|
108
120
|
break;
|
|
109
121
|
|
|
110
|
-
case
|
|
111
|
-
_context.prev =
|
|
112
|
-
_context.
|
|
122
|
+
case 35:
|
|
123
|
+
_context.prev = 35;
|
|
124
|
+
_context.t1 = _context["catch"](23);
|
|
113
125
|
|
|
114
|
-
_iterator.e(_context.
|
|
126
|
+
_iterator.e(_context.t1);
|
|
115
127
|
|
|
116
|
-
case
|
|
117
|
-
_context.prev =
|
|
128
|
+
case 38:
|
|
129
|
+
_context.prev = 38;
|
|
118
130
|
|
|
119
131
|
_iterator.f();
|
|
120
132
|
|
|
121
|
-
return _context.finish(
|
|
133
|
+
return _context.finish(38);
|
|
122
134
|
|
|
123
|
-
case
|
|
135
|
+
case 41:
|
|
124
136
|
file = [];
|
|
125
137
|
file.push("/*\nCopyright (c) Uber Technologies, Inc.\n\nThis source code is licensed under the MIT license found in the\nLICENSE file in the root directory of this source tree.\n*/\n\n");
|
|
126
138
|
file.push('export const zones = [');
|
|
@@ -132,30 +144,30 @@ function _main() {
|
|
|
132
144
|
|
|
133
145
|
file.push('];\n');
|
|
134
146
|
tzdataPath = path.join(__dirname, 'tzdata.ts');
|
|
135
|
-
_context.next =
|
|
147
|
+
_context.next = 49;
|
|
136
148
|
return fs.promises.writeFile(tzdataPath, file.join('\n'));
|
|
137
149
|
|
|
138
|
-
case
|
|
139
|
-
_context.next =
|
|
150
|
+
case 49:
|
|
151
|
+
_context.next = 51;
|
|
140
152
|
return fs.promises.rmdir(tmpDir, {
|
|
141
153
|
recursive: true
|
|
142
154
|
});
|
|
143
155
|
|
|
144
|
-
case
|
|
145
|
-
_context.next =
|
|
156
|
+
case 51:
|
|
157
|
+
_context.next = 56;
|
|
146
158
|
break;
|
|
147
159
|
|
|
148
|
-
case
|
|
149
|
-
_context.prev =
|
|
150
|
-
_context.
|
|
151
|
-
console.error(_context.
|
|
160
|
+
case 53:
|
|
161
|
+
_context.prev = 53;
|
|
162
|
+
_context.t2 = _context["catch"](0);
|
|
163
|
+
console.error(_context.t2);
|
|
152
164
|
|
|
153
|
-
case
|
|
165
|
+
case 56:
|
|
154
166
|
case "end":
|
|
155
167
|
return _context.stop();
|
|
156
168
|
}
|
|
157
169
|
}
|
|
158
|
-
}, _callee, null, [[0,
|
|
170
|
+
}, _callee, null, [[0, 53], [2, 11], [23, 35, 38, 41]]);
|
|
159
171
|
}));
|
|
160
172
|
return _main.apply(this, arguments);
|
|
161
173
|
}
|