@transferwise/components 38.3.1 → 39.0.1
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/CHANGELOG.md +48 -0
- package/build/es/no-polyfill/accordion/AccordionItem/AccordionItem.js +1 -1
- package/build/es/no-polyfill/alert/Alert.js +1 -1
- package/build/es/no-polyfill/checkbox/Checkbox.js +1 -1
- package/build/es/no-polyfill/common/Option/Option.js +1 -1
- package/build/es/no-polyfill/common/bottomSheet/BottomSheet.js +2 -2
- package/build/es/no-polyfill/common/direction.js +1 -0
- package/build/es/no-polyfill/common/domHelpers/index.js +1 -1
- package/build/es/no-polyfill/common/focusBoundary/FocusBoundary.js +1 -1
- package/build/es/no-polyfill/common/hocs/index.js +1 -0
- package/build/es/no-polyfill/common/hocs/theme/index.js +1 -0
- package/build/es/no-polyfill/common/hocs/theme/withTheme.js +2 -0
- package/build/es/no-polyfill/common/hocs/theme/withTheme.spec.js +1 -0
- package/build/es/no-polyfill/common/hooks/index.js +1 -1
- package/build/es/no-polyfill/common/hooks/useTheme/index.js +1 -0
- package/build/es/no-polyfill/common/hooks/useTheme/useTheme.js +1 -0
- package/build/es/no-polyfill/common/hooks/useTheme/useTheme.spec.js +1 -0
- package/build/es/no-polyfill/common/index.js +1 -1
- package/build/es/no-polyfill/common/locale/index.js +13 -3
- package/build/es/no-polyfill/common/theme.js +1 -1
- package/build/es/no-polyfill/dateInput/DateInput.js +2 -2
- package/build/es/no-polyfill/dateLookup/dateHeader/DateHeader.js +1 -1
- package/build/es/no-polyfill/decision/Decision.js +3 -3
- package/build/es/no-polyfill/dimmer/Dimmer.js +4 -3
- package/build/es/no-polyfill/dimmer/Dimmer.story.js +1 -0
- package/build/es/no-polyfill/drawer/Drawer.js +1 -1
- package/build/es/no-polyfill/dynamicFieldDefinitionList/DynamicFieldDefinitionList.js +1 -1
- package/build/es/no-polyfill/dynamicFieldDefinitionList/FormattedValue/FormattedValue.js +1 -1
- package/build/es/no-polyfill/index.js +4 -4
- package/build/es/no-polyfill/logo/Logo.js +1 -1
- package/build/es/no-polyfill/nudge/Nudge.js +1 -1
- package/build/es/no-polyfill/phoneNumberInput/PhoneNumberInput.js +1 -1
- package/build/es/no-polyfill/provider/Provider.js +1 -1
- package/build/es/no-polyfill/provider/Provider.spec.js +2 -0
- package/build/es/no-polyfill/provider/Provider.story.js +1 -0
- package/build/es/no-polyfill/provider/direction/DirectionProvider.js +1 -1
- package/build/es/no-polyfill/provider/direction/DirectionProvider.spec.js +1 -0
- package/build/es/no-polyfill/provider/index.js +1 -1
- package/build/es/no-polyfill/provider/theme/ThemeProvider.js +2 -0
- package/build/es/no-polyfill/provider/theme/ThemeProvider.spec.js +2 -0
- package/build/es/no-polyfill/provider/theme/index.js +1 -0
- package/build/es/no-polyfill/radio/Radio.js +1 -1
- package/build/es/no-polyfill/select/option/Option.js +1 -1
- package/build/es/no-polyfill/snackbar/Snackbar.js +1 -1
- package/build/es/no-polyfill/stepper/Stepper.js +1 -1
- package/build/es/no-polyfill/summary/Summary.js +1 -1
- package/build/es/no-polyfill/switch/Switch.js +1 -1
- package/build/es/no-polyfill/tabs/Tabs.js +1 -1
- package/build/es/no-polyfill/tooltip/Tooltip.js +8 -1
- package/build/es/no-polyfill/tooltip/Tooltip.spec.js +1 -0
- package/build/es/no-polyfill/tooltip/Tooltip.story.js +1 -0
- package/build/es/no-polyfill/upload/Upload.js +1 -1
- package/build/es/no-polyfill/upload/steps/completeStep/completeStep.js +1 -1
- package/build/es/no-polyfill/upload/steps/processingStep/processingStep.js +1 -1
- package/build/es/no-polyfill/uploadInput/UploadInput.js +5 -4
- package/build/es/no-polyfill/uploadInput/UploadInput.spec.js +1 -1
- package/build/es/no-polyfill/uploadInput/UploadInput.story.js +1 -1
- package/build/es/no-polyfill/uploadInput/uploadButton/UploadButton.js +1 -1
- package/build/es/no-polyfill/uploadInput/uploadItem/UploadItem.js +2 -2
- package/build/es/polyfill/accordion/AccordionItem/AccordionItem.js +1 -1
- package/build/es/polyfill/alert/Alert.js +1 -1
- package/build/es/polyfill/checkbox/Checkbox.js +1 -1
- package/build/es/polyfill/common/Option/Option.js +1 -1
- package/build/es/polyfill/common/bottomSheet/BottomSheet.js +2 -2
- package/build/es/polyfill/common/direction.js +1 -0
- package/build/es/polyfill/common/domHelpers/index.js +1 -1
- package/build/es/polyfill/common/focusBoundary/FocusBoundary.js +1 -1
- package/build/es/polyfill/common/hocs/index.js +1 -0
- package/build/es/polyfill/common/hocs/theme/index.js +1 -0
- package/build/es/polyfill/common/hocs/theme/withTheme.js +2 -0
- package/build/es/polyfill/common/hocs/theme/withTheme.spec.js +1 -0
- package/build/es/polyfill/common/hooks/index.js +1 -1
- package/build/es/polyfill/common/hooks/useTheme/index.js +1 -0
- package/build/es/polyfill/common/hooks/useTheme/useTheme.js +1 -0
- package/build/es/polyfill/common/hooks/useTheme/useTheme.spec.js +1 -0
- package/build/es/polyfill/common/index.js +1 -1
- package/build/es/polyfill/common/locale/index.js +13 -3
- package/build/es/polyfill/common/theme.js +1 -1
- package/build/es/polyfill/dateInput/DateInput.js +2 -2
- package/build/es/polyfill/dateLookup/dateHeader/DateHeader.js +1 -1
- package/build/es/polyfill/decision/Decision.js +3 -3
- package/build/es/polyfill/dimmer/Dimmer.js +4 -3
- package/build/es/polyfill/dimmer/Dimmer.story.js +1 -0
- package/build/es/polyfill/drawer/Drawer.js +1 -1
- package/build/es/polyfill/dynamicFieldDefinitionList/DynamicFieldDefinitionList.js +1 -1
- package/build/es/polyfill/dynamicFieldDefinitionList/FormattedValue/FormattedValue.js +1 -1
- package/build/es/polyfill/index.js +4 -4
- package/build/es/polyfill/logo/Logo.js +1 -1
- package/build/es/polyfill/nudge/Nudge.js +1 -1
- package/build/es/polyfill/phoneNumberInput/PhoneNumberInput.js +1 -1
- package/build/es/polyfill/provider/Provider.js +1 -1
- package/build/es/polyfill/provider/Provider.spec.js +2 -0
- package/build/es/polyfill/provider/Provider.story.js +1 -0
- package/build/es/polyfill/provider/direction/DirectionProvider.js +1 -1
- package/build/es/polyfill/provider/direction/DirectionProvider.spec.js +1 -0
- package/build/es/polyfill/provider/index.js +1 -1
- package/build/es/polyfill/provider/theme/ThemeProvider.js +2 -0
- package/build/es/polyfill/provider/theme/ThemeProvider.spec.js +2 -0
- package/build/es/polyfill/provider/theme/index.js +1 -0
- package/build/es/polyfill/radio/Radio.js +1 -1
- package/build/es/polyfill/select/option/Option.js +1 -1
- package/build/es/polyfill/snackbar/Snackbar.js +1 -1
- package/build/es/polyfill/stepper/Stepper.js +1 -1
- package/build/es/polyfill/summary/Summary.js +1 -1
- package/build/es/polyfill/switch/Switch.js +1 -1
- package/build/es/polyfill/tabs/Tabs.js +1 -1
- package/build/es/polyfill/tooltip/Tooltip.js +8 -1
- package/build/es/polyfill/tooltip/Tooltip.spec.js +1 -0
- package/build/es/polyfill/tooltip/Tooltip.story.js +1 -0
- package/build/es/polyfill/upload/Upload.js +1 -1
- package/build/es/polyfill/upload/steps/completeStep/completeStep.js +1 -1
- package/build/es/polyfill/upload/steps/processingStep/processingStep.js +1 -1
- package/build/es/polyfill/uploadInput/UploadInput.js +5 -4
- package/build/es/polyfill/uploadInput/UploadInput.spec.js +1 -1
- package/build/es/polyfill/uploadInput/UploadInput.story.js +1 -1
- package/build/es/polyfill/uploadInput/uploadButton/UploadButton.js +1 -1
- package/build/es/polyfill/uploadInput/uploadItem/UploadItem.js +2 -2
- package/build/main.css +1 -1
- package/build/styles/accordion/Accordion.css +1 -1
- package/build/styles/avatar/Avatar.css +1 -1
- package/build/styles/badge/Badge.css +1 -1
- package/build/styles/button/Button.css +1 -1
- package/build/styles/card/Card.css +1 -1
- package/build/styles/checkboxButton/CheckboxButton.css +1 -1
- package/build/styles/chips/Chip.css +1 -1
- package/build/styles/circularButton/CircularButton.css +1 -1
- package/build/styles/common/Option/Option.css +1 -1
- package/build/styles/common/RadioButton/RadioButton.css +1 -1
- package/build/styles/common/bottomSheet/BottomSheet.css +1 -1
- package/build/styles/common/closeButton/CloseButton.css +1 -1
- package/build/styles/dateLookup/DateLookup.css +1 -1
- package/build/styles/dateLookup/dateTrigger/DateTrigger.css +1 -1
- package/build/styles/decision/Decision.css +1 -1
- package/build/styles/definitionList/DefinitionList.css +1 -1
- package/build/styles/dimmer/Dimmer.css +1 -1
- package/build/styles/drawer/Drawer.css +1 -1
- package/build/styles/emphasis/Emphasis.css +1 -1
- package/build/styles/flowNavigation/FlowNavigation.css +1 -1
- package/build/styles/flowNavigation/animatedLabel/AnimatedLabel.css +1 -1
- package/build/styles/flowNavigation/backButton/BackButton.css +1 -1
- package/build/styles/header/Header.css +1 -1
- package/build/styles/info/Info.css +1 -1
- package/build/styles/instructionsList/InstructionsList.css +1 -1
- package/build/styles/lab/mobileNav/MobileNav.css +1 -1
- package/build/styles/lab/pagination/Pagination.css +1 -1
- package/build/styles/link/Link.css +1 -1
- package/build/styles/loader/Loader.css +1 -1
- package/build/styles/main.css +1 -1
- package/build/styles/modal/Modal.css +1 -1
- package/build/styles/moneyInput/MoneyInput.css +1 -1
- package/build/styles/navigationOption/NavigationOption.css +1 -1
- package/build/styles/navigationOptionsList/NavigationOptionsList.css +1 -1
- package/build/styles/nudge/Nudge.css +1 -1
- package/build/styles/overlayHeader/OverlayHeader.css +1 -1
- package/build/styles/phoneNumberInput/PhoneNumberInput.css +1 -1
- package/build/styles/popover/Popover.css +1 -1
- package/build/styles/section/Section.css +1 -1
- package/build/styles/slidingPanel/SlidingPanel.css +1 -1
- package/build/styles/snackbar/Snackbar.css +1 -1
- package/build/styles/stepper/Stepper.css +1 -1
- package/build/styles/summary/Summary.css +1 -1
- package/build/styles/switch/Switch.css +1 -1
- package/build/styles/tabs/Tabs.css +1 -1
- package/build/styles/tile/Tile.css +1 -1
- package/build/styles/tooltip/Tooltip.css +1 -1
- package/build/styles/typeahead/Typeahead.css +1 -1
- package/build/styles/typeahead/typeaheadOption/TypeaheadOption.css +1 -1
- package/build/styles/uploadInput/UploadInput.css +1 -1
- package/build/styles/uploadInput/uploadButton/UploadButton.css +1 -1
- package/build/styles/uploadInput/uploadItem/UploadItem.css +1 -1
- package/build/types/common/direction.d.ts +6 -0
- package/build/types/common/domHelpers/index.d.ts +2 -1
- package/build/types/common/focusBoundary/FocusBoundary.d.ts +2 -2
- package/build/types/common/hocs/index.d.ts +1 -0
- package/build/types/common/hocs/theme/index.d.ts +1 -0
- package/build/types/common/hocs/theme/withTheme.d.ts +10 -0
- package/build/types/common/hocs/theme/withTheme.spec.d.ts +1 -0
- package/build/types/common/hooks/index.d.ts +3 -2
- package/build/types/common/hooks/useDirection/useDirection.d.ts +3 -2
- package/build/types/common/hooks/useTheme/index.d.ts +1 -0
- package/build/types/common/hooks/useTheme/useTheme.d.ts +1 -0
- package/build/types/common/hooks/useTheme/useTheme.spec.d.ts +1 -0
- package/build/types/common/index.d.ts +2 -0
- package/build/types/common/locale/index.d.ts +23 -2
- package/build/types/common/propsValues/position.d.ts +4 -0
- package/build/types/common/theme.d.ts +5 -2
- package/build/types/dimmer/Dimmer.d.ts +31 -19
- package/build/types/dimmer/Dimmer.story.d.ts +16 -0
- package/build/types/index.d.ts +5 -3
- package/build/types/provider/Provider.spec.d.ts +1 -0
- package/build/types/provider/Provider.story.d.ts +23 -0
- package/build/types/provider/direction/DirectionProvider.d.ts +8 -18
- package/build/types/provider/direction/DirectionProvider.spec.d.ts +1 -0
- package/build/types/provider/index.d.ts +2 -0
- package/build/types/provider/theme/ThemeProvider.d.ts +8 -0
- package/build/types/provider/theme/ThemeProvider.spec.d.ts +1 -0
- package/build/types/provider/theme/index.d.ts +1 -0
- package/build/types/test-utils/index.d.ts +0 -8
- package/build/types/tooltip/Tooltip.d.ts +9 -18
- package/build/types/tooltip/Tooltip.spec.d.ts +1 -0
- package/build/types/tooltip/Tooltip.story.d.ts +12 -0
- package/build/types/uploadInput/UploadInput.d.ts +7 -1
- package/build/types/uploadInput/UploadInput.story.d.ts +1 -0
- package/build/types/withNextPortal/withNextPortal.d.ts +2 -1
- package/build/umd/no-polyfill/main.js +1 -1
- package/build/umd/polyfill/main.js +1 -1
- package/package.json +13 -12
- package/scripts/generate-type-declarations.js +85 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
.np-overlay-header{min-height:97px}.np-overlay-header .separator{
|
|
1
|
+
.np-overlay-header{min-height:97px}.np-overlay-header .separator{height:32px;height:var(--size-32,32px);width:1px;background-color:rgba(0,0,0,.10196078431372549);background-color:var(--color-border-neutral,rgba(0,0,0,.10196078431372549))}[dir=rtl] .np-overlay-header .separator{margin-right:16px!important}[dir=rtl] .np-overlay-header .separator,html:not([dir=rtl]) .np-overlay-header .separator{margin-left:16px!important}html:not([dir=rtl]) .np-overlay-header .separator{margin-right:16px!important}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.tw-telephone{display:flex}@media (min-width:576px){.tw-telephone .btn-group .dropdown-menu{min-width:250px}}.tw-telephone .tw-telephone__number-input{margin-left:12px}.tw-telephone
|
|
1
|
+
.tw-telephone{display:flex}@media (min-width:576px){.tw-telephone .btn-group .dropdown-menu{min-width:250px}}.tw-telephone .tw-telephone__number-input{margin-left:12px;margin-left:var(--size-12,12px)}[dir=rtl] .tw-telephone .tw-telephone__number-input{margin-right:12px;margin-right:var(--size-12,12px);margin-left:0}.tw-telephone__country-select{flex-basis:120px;flex-shrink:0}.tw-telephone__number-input{flex:auto 1 1}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.np-popover__container .np-popover__content{font-size:.875rem}.np-popover__container.np-panel .np-popover__title{margin:0;color:#37517e;color:var(--color-
|
|
1
|
+
.np-popover__container .np-popover__content{font-size:.875rem;font-size:var(--font-size-14,.875rem);color:#5d7079;color:var(--color-content-secondary,#5d7079)}.np-popover__container.np-panel .np-popover__title{margin:0;color:#37517e;color:var(--color-content-primary,#37517e);line-height:1.2;line-height:var(--line-height-title,1.2);letter-spacing:0;font-size:1rem;font-size:var(--font-size-16,1rem);font-weight:600;font-weight:var(--font-weight-semi-bold,600)}.np-popover__container.np-panel .np-popover__content{padding:16px 24px;padding:var(--size-16,16px) var(--size-24,24px);max-width:276px}.np-popover__container.np-bottom-sheet .np-popover__title{color:#37517e;color:var(--color-content-primary,#37517e);line-height:1.2;line-height:var(--line-height-title,1.2);letter-spacing:0;margin:0 0 4px;margin-bottom:var(--size-4,4px);font-size:1.625rem;font-size:var(--font-size-26,1.625rem);font-weight:800;font-weight:var(--font-weight-bold,800)}.np-popover__container.np-bottom-sheet .np-popover__content{padding:32px 24px;padding:var(--size-32,32px) var(--size-24,24px)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.np-section{background-color:#fff;background-color:var(--color-background-screen,#fff);margin-top:32px;margin-top:var(--size-32,32px)}.np-section .np-accordion-item:last-child .np-accordion-item__content,.np-section .np-card:last-child .np-card__divider:not(.np-card__divider--expanded),.np-section .np-option:last-child .media{border:none}.np-section .np-accordion-item:not(:last-child) .media,.np-section .np-navigation-options-list__item:not(:last-child) .media{border-bottom:1px solid
|
|
1
|
+
.np-section{background-color:#fff;background-color:var(--color-background-screen,#fff);margin-top:32px;margin-top:var(--size-32,32px)}.np-section .np-accordion-item:last-child .np-accordion-item__content,.np-section .np-card:last-child .np-card__divider:not(.np-card__divider--expanded),.np-section .np-option:last-child .media{border:none}.np-section .np-accordion-item:not(:last-child) .media,.np-section .np-navigation-options-list__item:not(:last-child) .media{border-bottom:1px solid rgba(0,0,0,.10196078431372549);border-bottom:1px solid var(--color-border-neutral,rgba(0,0,0,.10196078431372549))}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.sliding-panel{transform:translateX(-100%);transition:transform .35s cubic-bezier(0,.94,.62,1);background:#fff;background:var(--color-background-elevated,#fff);z-index:1030;position:absolute}.sliding-panel.sliding-panel--fixed{position:fixed}.sliding-panel.sliding-panel--open-left,.sliding-panel.sliding-panel--open-right{top:0;bottom:0}.sliding-panel.sliding-panel--open-right{transform:translateX(100%);right:0}.sliding-panel.sliding-panel--open-left{transform:translateX(-100%);left:0}.sliding-panel.sliding-panel-enter-done.sliding-panel--open-left,.sliding-panel.sliding-panel-enter-done.sliding-panel--open-right{transform:translateX(0)}.sliding-panel.sliding-panel-enter-done.sliding-panel--open-bottom,.sliding-panel.sliding-panel-enter-done.sliding-panel--open-top{transform:translateY(0)}.sliding-panel.sliding-panel--open-bottom,.sliding-panel.sliding-panel--open-top{right:0;left:0;width:100%}.sliding-panel.sliding-panel--open-top{transform:translateY(-100%);top:0}.sliding-panel.sliding-panel--open-bottom{transform:translateY(100%);bottom:0}.sliding-panel.sliding-panel--border-top{box-shadow:inset 0 -1px 0 0 #e2e6e8}.sliding-panel.sliding-panel--border-right{box-shadow:inset 1px 0 0 0 #e2e6e8}.sliding-panel.sliding-panel--border-bottom{box-shadow:inset 0 1px 0 0 #e2e6e8}.sliding-panel.sliding-panel--border-left{box-shadow:inset -1px 0 0 0 #e2e6e8}
|
|
1
|
+
.sliding-panel{transform:translateX(-100%);transition:transform .35s cubic-bezier(0,.94,.62,1);background:#fff;background:var(--color-background-elevated,#fff);z-index:1030;position:absolute}[dir=rtl] .sliding-panel{transform:translateX(100%)}.sliding-panel.sliding-panel--fixed{position:fixed}.sliding-panel.sliding-panel--open-left,.sliding-panel.sliding-panel--open-right{top:0;bottom:0}.sliding-panel.sliding-panel--open-right{transform:translateX(100%);right:0}[dir=rtl] .sliding-panel.sliding-panel--open-right{transform:translateX(-100%);left:0;right:auto}.sliding-panel.sliding-panel--open-left{transform:translateX(-100%);left:0}[dir=rtl] .sliding-panel.sliding-panel--open-left{transform:translateX(100%);right:0;left:auto}.sliding-panel.sliding-panel-enter-done.sliding-panel--open-left,.sliding-panel.sliding-panel-enter-done.sliding-panel--open-right{transform:translateX(0)}.sliding-panel.sliding-panel-enter-done.sliding-panel--open-bottom,.sliding-panel.sliding-panel-enter-done.sliding-panel--open-top{transform:translateY(0)}.sliding-panel.sliding-panel--open-bottom,.sliding-panel.sliding-panel--open-top{right:0;left:0;width:100%}[dir=rtl] .sliding-panel.sliding-panel--open-bottom,[dir=rtl] .sliding-panel.sliding-panel--open-top{left:0;right:auto;right:0;left:auto}.sliding-panel.sliding-panel--open-top{transform:translateY(-100%);top:0}.sliding-panel.sliding-panel--open-bottom{transform:translateY(100%);bottom:0}.sliding-panel.sliding-panel--border-top{box-shadow:inset 0 -1px 0 0 #e2e6e8}.sliding-panel.sliding-panel--border-right{box-shadow:inset 1px 0 0 0 #e2e6e8}.sliding-panel.sliding-panel--border-bottom{box-shadow:inset 0 1px 0 0 #e2e6e8}.sliding-panel.sliding-panel--border-left{box-shadow:inset -1px 0 0 0 #e2e6e8}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.snackbar{text-align:center;position:fixed;bottom:0;left:0;right:0;z-index:1060}.snackbar__text{background:#
|
|
1
|
+
.snackbar{text-align:center;position:fixed;bottom:0;left:0;right:0;z-index:1060}[dir=rtl] .snackbar{right:0;left:auto;left:0;right:auto}.snackbar__text{background:#37517e;color:#fff;font-size:.875rem;font-size:var(--font-size-14,.875rem);line-height:20px;display:inline-flex;border-radius:2px;box-shadow:0 2px 4px rgba(0,0,0,.25);align-items:center;justify-content:space-between;text-align:left;margin:0 16px;margin:0 var(--size-16,16px);padding:14px 16px;padding:14px var(--size-16,16px);width:calc(100% - 32px);width:calc(100% - var(--size-32, 32px));transition:.4s cubic-bezier(.215,.61,.355,1)}[dir=rtl] .snackbar__text{text-align:right}.snackbar__text--dark{background:#fff;background:var(--color-background-screen,#fff);color:#37517e;color:var(--color-content-primary,#37517e)}@media (min-width:576px){.snackbar__text{width:auto;max-width:600px}}.snackbar__text__action{-webkit-appearance:none;-moz-appearance:none;appearance:none;flex-shrink:0;line-height:1;border:0;padding:14px 16px;margin-top:-14px;margin-right:-16px;margin-right:calc(var(--size-16, 16px)*-1);margin-bottom:-14px;margin-left:0;background:none;outline:0;font:inherit;font-weight:600;font-weight:var(--font-weight-semi-bold,600);color:#00b9ff;position:relative;cursor:pointer}[dir=rtl] .snackbar__text__action{margin-left:-16px;margin-left:calc(var(--size-16, 16px)*-1);margin-right:0;margin-left:0}.snackbar__text-container-enter,.snackbar__text-container-exit{transform:translateY(calc(100% + 10px))}.snackbar__text-container-enter-active{transform:translateY(-16px);transform:translateY(calc(-16px - env(safe-area-inset-bottom)))}@media (min-width:576px){.snackbar__text-container-enter-active{transform:translateY(-24px)}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.tw-stepper{padding-bottom:24px;width:100%}@media only screen and (max-width:575px){.tw-stepper{padding-bottom:0}}.tw-stepper__step{
|
|
1
|
+
.tw-stepper{padding-bottom:24px;width:100%}@media only screen and (max-width:575px){.tw-stepper{padding-bottom:0}}.tw-stepper__step{list-style-type:none;display:flex;justify-content:center;width:100%}.tw-stepper__step--active .tw-stepper__step-label{color:#37517e;color:var(--color-content-primary,#37517e);font-weight:600;font-weight:var(--font-weight-semi-bold,600)}.tw-stepper__step--clickable .tw-stepper__step-label{color:#0097c7;color:var(--color-content-accent,#0097c7);font-weight:600;font-weight:var(--font-weight-semi-bold,600);transition:color .15s ease-in-out}@media screen and (min-width:576px) and (max-width:991px){.tw-stepper__step:first-child .tooltip-inner{transform:translateX(calc(50% - 32px))}.tw-stepper__step:last-child .tooltip-inner{transform:translateX(calc(-50% + 32px))}.tw-stepper__step .tooltip-arrow{z-index:1}}.tw-stepper__step-label{color:#5d7079;color:var(--color-content-secondary,#5d7079);transition:color .6s ease-in-out;white-space:nowrap}.tw-stepper .tooltip{top:24px!important;white-space:nowrap}.tw-stepper .tooltip .tooltip-inner{max-width:100%}.tw-stepper .tw-tooltip-container{display:block}.tw-stepper-steps{position:relative;display:flex;justify-content:space-between;width:125%;margin-left:-12.5%;padding:0}[dir=rtl] .tw-stepper-steps{margin-right:-12.5%;margin-left:0;padding:0}.progress-bar-ending{float:left;height:100%;background:linear-gradient(90deg,#00a2dd,#37517e);background:linear-gradient(90deg,var(--color-interactive-accent,#00a2dd),#37517e);transition:width .6s ease-in-out}[dir=rtl] .progress-bar-ending{float:right;background:linear-gradient(270deg,#00a2dd,#37517e);background:linear-gradient(270deg,var(--color-interactive-accent,#00a2dd),#37517e)}.progress-bar-ending:after{float:right;width:8px;height:8px;margin-top:-3px;margin-right:-4px;content:"";background-color:#37517e;border-radius:4px}[dir=rtl] .progress-bar-ending:after{float:left;margin-left:-4px;margin-right:0}.progress-bar-filler{float:left;height:100%;background-color:#00a2dd;background-color:var(--color-interactive-accent,#00a2dd);border-top-left-radius:1px;border-bottom-left-radius:1px;transition:width .6s ease-in-out;will-change:width}[dir=rtl] .progress-bar-filler{float:right}.btn-unstyled{background:none;outline:none;border:none;margin:0;padding:0;display:block}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.np-summary{min-width:280px}.np-summary__title{margin-top:2px;line-height:1.375}.np-summary__title .np-info__small{margin-top:2px}.np-summary__icon{position:relative;color:#37517e;color:var(--color-primary,#37517e)}.np-summary__icon .np-summary-icon__done{color:#
|
|
1
|
+
.np-summary{min-width:280px}.np-summary__title{margin-top:2px;line-height:1.375}.np-summary__title .np-info__small{margin-top:2px}.np-summary__icon{position:relative;color:#37517e;color:var(--color-content-primary,#37517e)}.np-summary__icon .np-summary-icon__done{color:#2ead4b;color:var(--color-interactive-positive,#2ead4b)}.np-summary__icon .np-summary-icon__pending{color:#df8700;color:var(--color-interactive-warning,#df8700)}.np-summary__icon :nth-child(2){background-color:#fff;background-color:var(--color-background-screen,#fff);border-radius:50%;position:absolute;right:-8px;bottom:-6px}[dir=rtl] .np-summary__icon :nth-child(2){left:-8px;right:auto}.np-summary__description{line-height:1.42857}.np-summary__action,.np-summary__description{margin-top:4px;margin-top:var(--size-4,4px);font-size:.875rem;font-size:var(--font-size-14,.875rem)}.np-summary__action{line-height:1.28571}.np-summary+.np-summary{margin-top:24px;margin-top:var(--size-24,24px)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.np-switch{display:inline-flex;overflow:hidden;width:50px;padding:2px;border
|
|
1
|
+
.np-switch{display:inline-flex;overflow:hidden;width:50px;padding:2px;border-radius:16px}.np-switch--thumb{display:flex;transition:transform .35s cubic-bezier(0,.94,.62,1)}.np-switch--thumb .tw-icon{color:#fff}.np-switch--unchecked{background:#c9cbce;background:var(--color-interactive-secondary,#c9cbce)}.np-switch--unchecked .switch--thumb{transform:translateX(0)}.np-switch--checked{background:#00a2dd;background:var(--color-interactive-accent,#00a2dd)}.np-switch--checked .np-switch--thumb{transform:translateX(20px)}[dir=rtl] .np-switch--checked .np-switch--thumb{transform:translateX(-20px)}.np-switch--disabled{background:#a8aaac;background:var(--color-interactive-disabled,#a8aaac);cursor:not-allowed;border-color:#a8aaac;border-color:var(--color-interactive-disabled,#a8aaac)}.np-switch input{position:absolute;left:-100%;display:none;width:0;height:0;opacity:0}[dir=rtl] .np-switch input{right:-100%;left:auto}.np-switch:not([aria-disabled]){cursor:pointer}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.tabs{position:relative}.tabs__tab{display:inline-block;cursor:pointer;outline:none;text-align:center;padding:8px;padding:var(--size-8,8px);margin-bottom:-3px;
|
|
1
|
+
.tabs{position:relative}.tabs__tab{display:inline-block;cursor:pointer;outline:none;text-align:center;padding:8px;padding:var(--size-8,8px);margin-bottom:-3px;font-weight:600;font-weight:var(--font-weight-semi-bold,600);color:#37517e;color:var(--color-content-primary,#37517e);transition:color .15s ease-in-out}.tabs__tab--selected{color:#0097c7;color:var(--color-content-accent,#0097c7)}.tabs__tab--disabled{color:#a8aaac;color:var(--color-content-disabled,#a8aaac);cursor:not-allowed}.tabs__tab:focus{color:#0084b3;color:var(--color-content-accent-hover,#0084b3)}@media (min-width:992px){.tabs__tab:hover{color:#0084b3;color:var(--color-content-accent-hover,#0084b3)}}@media (hover:hover){.tabs__tab:hover{color:#0084b3;color:var(--color-content-accent-hover,#0084b3)}}.tabs__tab-list{list-style:none;padding:0;margin:0;border-bottom:1px solid rgba(0,0,0,.10196078431372549);border-bottom:1px solid var(--color-border-neutral,rgba(0,0,0,.10196078431372549))}[dir=rtl] .tabs__tab-list{padding-right:0;padding-left:0}.tabs__line{height:3px;background-color:#00a2dd;background-color:var(--color-interactive-accent,#00a2dd);transition:transform .35s cubic-bezier(0,.94,.62,1)}.tabs__panel-container{width:100%}.tabs__slider{display:flex}.tabs__panel--selected{padding:8px;padding:var(--size-8,8px)}.tabs__panel.enter{opacity:0}.tabs__panel.enter-active{opacity:1}.tabs__panel.exit{opacity:0}.tabs--inverse .tabs__tab-list{border-bottom-color:rgba(0,0,0,.10196078431372549);border-bottom-color:var(--color-border-neutral,rgba(0,0,0,.10196078431372549))}.tabs--inverse .tabs__tab:not(.tabs__tab--selected){color:#fff}.tabs.tabs--auto-width .tabs__tab{display:inline-flex;height:40px;height:var(--size-40,40px);padding:0 24px;padding:0 var(--size-24,24px);justify-content:center;align-items:center}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.np-tile{min-width:120px;border-radius:3px;border-radius:var(--radius-small,3px);width:100%}.np-tile.decision{margin-top:0;border:1px solid
|
|
1
|
+
.np-tile{min-width:120px;border-radius:3px;border-radius:var(--radius-small,3px);width:100%}.np-tile.decision{margin-top:0;border:1px solid rgba(0,0,0,.10196078431372549);border:1px solid var(--color-border-neutral,rgba(0,0,0,.10196078431372549))}.np-tile.np-decision__tile--fixed-width{width:300px}.np-tile__media{width:100%}.np-tile__title{margin-top:16px;margin-top:var(--size-16,16px);font-size:1.25rem;font-size:var(--font-size-20,1.25rem);line-height:1.2;line-height:var(--line-height-title,1.2);color:#37517e;color:var(--color-content-primary,#37517e)}.np-tile__description{margin-top:12px;margin-top:var(--size-12,12px);line-height:1.5;line-height:var(--line-height-body,1.5);color:#5d7079;color:var(--color-content-secondary,#5d7079);font-weight:500;font-weight:var(--font-weight-regular,500)}.np-tile--small.np-decision__tile--fixed-width{width:260px}.np-tile--small .np-tile__title{margin-top:12px;margin-top:var(--size-12,12px);font-size:1rem;font-size:var(--font-size-16,1rem);line-height:1.2;line-height:var(--line-height-title,1.2)}.np-tile--small .np-tile__description{margin-top:4px;margin-top:var(--size-4,4px)}.np-tile:hover .tw-avatar{pointer-events:none}.np-tile:hover .tw-avatar .tw-avatar__content{background-color:#fff;background-color:var(--color-background-screen,#fff)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.tw-tooltip-container{display:inline-block}.tw-tooltip-container .tooltip{visibility:visible;-webkit-user-select:none;-ms-user-select:none;user-select:none}.tw-tooltip-container .tooltip:not(.in){pointer-events:none;animation:tw-tooltip-disappear;animation-duration:0s;animation-delay:.15s;animation-fill-mode:both}@keyframes tw-tooltip-disappear{0%{visibility:visible}to{visibility:hidden}}
|
|
1
|
+
.tw-tooltip-container{display:inline-block;background-color:#ff0}.tw-tooltip-container .tooltip{visibility:visible;-webkit-user-select:none;-ms-user-select:none;user-select:none}.tw-tooltip-container .tooltip:not(.in){pointer-events:none;animation:tw-tooltip-disappear;animation-duration:0s;animation-delay:.15s;animation-fill-mode:both}@keyframes tw-tooltip-disappear{0%{visibility:visible}to{visibility:hidden}}.np-panel[data-popper-placement^=right]>.np-panel__content.tooltip-inner .np-panel__arrow{left:-14px}[dir=rtl] .np-panel[data-popper-placement^=right]>.np-panel__content.tooltip-inner .np-panel__arrow{left:0}.np-panel[data-popper-placement^=left]>.np-panel__content.tooltip-inner .np-panel__arrow{right:0}[dir=rtl] .np-panel[data-popper-placement^=left]>.np-panel__content.tooltip-inner .np-panel__arrow{right:-14px}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.typeahead.open .input-group{z-index:1060}.typeahead .dropdown.btn-block{display:block}.typeahead .dropdown-menu{max-width:100%;width:100%}.typeahead--multiple .np-chip{margin-bottom:auto;animation-name:slide;animation-duration:.03s;animation-timing-function:ease-in-out}.typeahead--multiple .np-chip:first-child{animation-name:slideFirst}.typeahead--multiple .np-chip-remove{animation-name:fadeIn;animation-duration:.03s;animation-timing-function:ease-in-out}.typeahead--multiple .form-control{height:auto;min-height:auto;padding-top:0;padding-bottom:0;overflow:auto}.typeahead--multiple .typeahead__input{border:none;outline:none;float:none;font-size:inherit;line-height:inherit;align-self:stretch;padding:2px 0 0}.typeahead--multiple .typeahead__input-aligner{height:40px;display:inline-block;width:0}.typeahead--multiple .typeahead__input-container{cursor:text;display:flex}.typeahead--multiple .sizer{white-space:pre;position:absolute;visibility:hidden;width:auto}.typeahead--multiple.typeahead--has-value .typeahead__input-container{padding-left:8px;padding-left:var(--size-8,8px)}.typeahead--multiple.typeahead--has-value .typeahead__input{margin-bottom:-7px;margin-bottom:calc(var(--size-8, 8px)*-1 + 1px);margin-left:4px;margin-left:var(--size-4,4px)}.typeahead--multiple.typeahead--has-value .typeahead__input-wrapper:after{content:"";height:calc(8px - 1);height:calc(var(--size-8, 8px) - 1);width:100%}.typeahead__input-wrapper{width:100%;margin-top:-1px;display:flex;flex-wrap:wrap;flex:1;align-items:center}.typeahead--empty.typeahead--multiple .typeahead__input-wrapper{padding:0;margin:0}.typeahead-sm.typeahead--multiple .typeahead__input-container{min-height:32px}.typeahead-sm.typeahead--multiple .typeahead__input{padding-top:0}.typeahead-md.typeahead--multiple .typeahead__input-container{min-height:48px}.typeahead-lg.typeahead--multiple .typeahead__input-container{min-height:72px}.typeahead-lg.typeahead--multiple .typeahead__input{padding-top:calc(8px - 1);padding-top:calc(var(--size-8, 8px) - 1)}.typeahead-lg.typeahead--multiple .typeahead__input-wrapper{padding-bottom:8px;padding-bottom:var(--size-8,8px);margin:0}.typeahead-lg.typeahead--multiple .typeahead__input-wrapper:after{content:none}.typeahead-lg.typeahead--multiple .np-chip{margin-bottom:0;line-height:0}@keyframes slide{0%{transform:translateX(-12px)}to{transform:none}}@keyframes slideFirst{0%{transform:translateX(-4px)}to{transform:none}}@keyframes fadeIn{0%{opacity:0}to{opacity:.6}}@media (max-width:575px){.typeahead .dropdown.open .dropdown-menu{position:absolute;bottom:auto;overflow:scroll}}
|
|
1
|
+
.typeahead.open .input-group{z-index:1060}.typeahead .dropdown.btn-block{display:block}.typeahead .dropdown-menu{max-width:100%;width:100%}.typeahead--multiple .np-chip{margin-bottom:auto;animation-name:slide;animation-duration:.03s;animation-timing-function:ease-in-out}.typeahead--multiple .np-chip:first-child{animation-name:slideFirst}.typeahead--multiple .np-chip-remove{animation-name:fadeIn;animation-duration:.03s;animation-timing-function:ease-in-out}.typeahead--multiple .form-control{height:auto;min-height:auto;padding-top:0;padding-bottom:0;overflow:auto}.typeahead--multiple .typeahead__input{border:none;outline:none;float:none;font-size:inherit;line-height:inherit;align-self:stretch;padding:2px 0 0}.typeahead--multiple .typeahead__input-aligner{height:40px;display:inline-block;width:0}.typeahead--multiple .typeahead__input-container{cursor:text;display:flex}.typeahead--multiple .sizer{white-space:pre;position:absolute;visibility:hidden;width:auto}.typeahead--multiple.typeahead--has-value .typeahead__input-container{padding-left:8px;padding-left:var(--size-8,8px)}[dir=rtl] .typeahead--multiple.typeahead--has-value .typeahead__input-container{padding-right:8px;padding-right:var(--size-8,8px);padding-left:0}.typeahead--multiple.typeahead--has-value .typeahead__input{margin-bottom:-7px;margin-bottom:calc(var(--size-8, 8px)*-1 + 1px);margin-left:4px;margin-left:var(--size-4,4px)}[dir=rtl] .typeahead--multiple.typeahead--has-value .typeahead__input{margin-right:4px;margin-right:var(--size-4,4px);margin-left:0}.typeahead--multiple.typeahead--has-value .typeahead__input-wrapper:after{content:"";height:calc(8px - 1);height:calc(var(--size-8, 8px) - 1);width:100%}.typeahead__input-wrapper{width:100%;margin-top:-1px;display:flex;flex-wrap:wrap;flex:1;align-items:center}.typeahead--empty.typeahead--multiple .typeahead__input-wrapper{padding:0;margin:0}.typeahead-sm.typeahead--multiple .typeahead__input-container{min-height:32px}.typeahead-sm.typeahead--multiple .typeahead__input{padding-top:0}.typeahead-md.typeahead--multiple .typeahead__input-container{min-height:48px}.typeahead-lg.typeahead--multiple .typeahead__input-container{min-height:72px}.typeahead-lg.typeahead--multiple .typeahead__input{padding-top:calc(8px - 1);padding-top:calc(var(--size-8, 8px) - 1)}.typeahead-lg.typeahead--multiple .typeahead__input-wrapper{padding-bottom:8px;padding-bottom:var(--size-8,8px);margin:0}.typeahead-lg.typeahead--multiple .typeahead__input-wrapper:after{content:none}.typeahead-lg.typeahead--multiple .np-chip{margin-bottom:0;line-height:0}@keyframes slide{0%{transform:translateX(-12px)}to{transform:none}}@keyframes slideFirst{0%{transform:translateX(-4px)}to{transform:none}}@keyframes fadeIn{0%{opacity:0}to{opacity:.6}}@media (max-width:575px){.typeahead .dropdown.open .dropdown-menu{position:absolute;bottom:auto;overflow:scroll}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.typeahead__option.tw-dropdown-item .dropdown-item:active strong{color:#fff
|
|
1
|
+
.typeahead__option.tw-dropdown-item .dropdown-item:active strong{color:#fff}.typeahead__option.tw-dropdown-item--clickable{cursor:pointer}.typeahead__option.tw-dropdown-item--focused{background-color:rgba(134,167,189,.10196078431372549);background-color:var(--color-background-neutral,rgba(134,167,189,.10196078431372549))}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.np-upload-input{border:1px solid
|
|
1
|
+
.np-upload-input{border:1px solid rgba(0,0,0,.10196078431372549);border:1px solid var(--color-border-neutral,rgba(0,0,0,.10196078431372549));border-radius:3px;border-radius:var(--radius-small,3px)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.np-upload-button{width:100%;text-decoration:none!important;border:0!important;letter-spacing:normal!important;padding:12px 16px;padding:var(--size-12,12px) var(--size-16,16px)}.np-upload-button.np-upload-accent{color:#
|
|
1
|
+
.np-upload-button{width:100%;text-decoration:none!important;border:0!important;letter-spacing:normal!important;padding:12px 16px;padding:var(--size-12,12px) var(--size-16,16px)}.np-upload-button.np-upload-accent{color:#00a2dd;color:var(--color-interactive-accent,#00a2dd)}label.np-upload-button:not(.disabled):active,label.np-upload-button:not(.disabled):focus,label.np-upload-button:not(.disabled):hover{background-color:rgba(134,167,189,.10196078431372549);background-color:var(--color-background-neutral,rgba(134,167,189,.10196078431372549))}label.np-upload-button.disabled{color:#a8aaac;color:var(--color-content-disabled,#a8aaac)}.np-upload-button .np-upload-icon{display:flex;align-items:center}.np-upload-button .np-upload-description{font-weight:400;white-space:normal}.np-upload-button-container.droppable{border:0}.np-upload-button-container .droppable-card-content{display:flex}.np-upload-button-container input[type=file]{opacity:0;z-index:-1;position:absolute}.np-upload-button-container input[type=file]:focus+label{background-color:rgba(134,167,189,.10196078431372549);background-color:var(--color-background-neutral,rgba(134,167,189,.10196078431372549))}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.np-upload-item:not(:last-child):after{display:block;position:relative;border-bottom:1px solid
|
|
1
|
+
.np-upload-item:not(:last-child):after{display:block;position:relative;border-bottom:1px solid rgba(0,0,0,.10196078431372549);border-bottom:1px solid var(--color-border-neutral,rgba(0,0,0,.10196078431372549));content:" ";margin:0 16px;margin:0 var(--size-16,16px)}.np-upload-item__link a{flex:1;text-decoration:none;outline:none;font-weight:500;font-weight:var(--font-weight-regular,500)}.np-upload-item__link a:active,.np-upload-item__link a:focus,.np-upload-item__link a:hover{text-decoration:none}.np-upload-item__link a:active,.np-upload-item__link a:active~.np-upload-item__remove-button,.np-upload-item__link a:focus,.np-upload-item__link a:focus~.np-upload-item__remove-button,.np-upload-item__link a:hover,.np-upload-item__link a:hover~.np-upload-item__remove-button{background-color:rgba(134,167,189,.10196078431372549);background-color:var(--color-background-neutral,rgba(134,167,189,.10196078431372549))}.np-upload-item__body{display:flex;align-items:center;justify-content:space-between}.np-upload-item__remove-button{flex-shrink:0;align-self:stretch;padding:12px 16px;padding:var(--size-12,12px) var(--size-16,16px);color:#a8aaac;color:var(--color-content-disabled,#a8aaac);background:transparent}.np-upload-item__remove-button:focus,.np-upload-item__remove-button:hover{color:#d03238!important;color:var(--color-interactive-negative-hover,#d03238)!important}
|
|
@@ -4,7 +4,7 @@ declare function FocusBoundary({ children }: {
|
|
|
4
4
|
}): JSX.Element;
|
|
5
5
|
declare namespace FocusBoundary {
|
|
6
6
|
namespace propTypes {
|
|
7
|
-
const children:
|
|
7
|
+
const children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
import
|
|
10
|
+
import PropTypes from "prop-types";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as withTheme } from './theme';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { withTheme as default } from './withTheme';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ThemeType } from '../..';
|
|
3
|
+
declare type WithThemeProps = {
|
|
4
|
+
theme: ThemeType;
|
|
5
|
+
};
|
|
6
|
+
export declare type WrappedComponentProps<P> = Omit<P, keyof WithThemeProps>;
|
|
7
|
+
export declare function withTheme<P extends WrappedComponentProps<P>>(WrappedComponent: React.ComponentType<P & WithThemeProps>): import("react").FC<P> & {
|
|
8
|
+
WrappedComponent: React.ComponentType<P & WithThemeProps>;
|
|
9
|
+
};
|
|
10
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export { default as useHasIntersected } from "./useHasIntersected";
|
|
2
1
|
export { default as useClientWidth } from "./useClientWidth";
|
|
3
|
-
export { default as useDirection } from "./useDirection";
|
|
4
2
|
export { default as useConditionalListener } from "./useConditionalListener";
|
|
3
|
+
export { default as useDirection } from "./useDirection";
|
|
4
|
+
export { default as useHasIntersected } from "./useHasIntersected";
|
|
5
|
+
export { default as useTheme } from "./useTheme";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useTheme as default } from './useTheme';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useTheme: () => import("../..").ThemeType;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { default as HistoryNavigator } from "./historyNavigator";
|
|
2
2
|
export * from "./theme";
|
|
3
|
+
export * from "./direction";
|
|
3
4
|
export * from "./propsValues/size";
|
|
4
5
|
export * from "./propsValues/width";
|
|
5
6
|
export * from "./locale";
|
|
@@ -17,5 +18,6 @@ export { Scroll } from "./propsValues/scroll";
|
|
|
17
18
|
export { MarkdownNodeType } from "./propsValues/markdownNodeType";
|
|
18
19
|
export { FileType } from "./fileType";
|
|
19
20
|
export { Key } from "./key";
|
|
21
|
+
export { isServerSide, isBrowser } from "./domHelpers";
|
|
20
22
|
export { addNoScrollBodyClass, removeNoScrollBodyClass } from "./DOMOperations";
|
|
21
23
|
export { Priority, ControlType } from "./propsValues/control";
|
|
@@ -14,6 +14,22 @@ export function adjustLocale(locale: string): string | null;
|
|
|
14
14
|
* @returns {string|null}
|
|
15
15
|
*/
|
|
16
16
|
export function getLangFromLocale(locale: string): string | null;
|
|
17
|
+
/**
|
|
18
|
+
* Provides corresponding country code (iso2) for locales code with explicit region value (`es-ES`, `en-GB`, `ja-JP` etc.)
|
|
19
|
+
* if the value is invalid or missing region it returns null
|
|
20
|
+
*
|
|
21
|
+
* @param {string} locale
|
|
22
|
+
* @returns {string|null}
|
|
23
|
+
*/
|
|
24
|
+
export function getCountryFromLocale(locale: string): string | null;
|
|
25
|
+
/**
|
|
26
|
+
* Provides the layout direction for a given locale.
|
|
27
|
+
* If locale is invalid or language is unsupported returns Direction.LTR
|
|
28
|
+
*
|
|
29
|
+
* @param {string} locale (`es`, `es-ES`, `en-GB`, `en`, `ja`, `ja-JP` etc)
|
|
30
|
+
* @returns {Direction} The layout direction based on the locale
|
|
31
|
+
*/
|
|
32
|
+
export function getDirectionFromLocale(locale: string): Direction;
|
|
17
33
|
/**
|
|
18
34
|
* Default language
|
|
19
35
|
*
|
|
@@ -26,6 +42,11 @@ export const DEFAULT_LANG: string;
|
|
|
26
42
|
* @type {string}
|
|
27
43
|
*/
|
|
28
44
|
export const DEFAULT_LOCALE: string;
|
|
29
|
-
|
|
45
|
+
/**
|
|
46
|
+
* Array of languages that are written from the right to the left
|
|
47
|
+
*
|
|
48
|
+
* @type {string[]}
|
|
49
|
+
*/
|
|
50
|
+
export const RTL_LANGUAGES: string[];
|
|
30
51
|
export const SUPPORTED_LANGUAGES: string[];
|
|
31
|
-
|
|
52
|
+
import { Direction } from "../direction";
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export declare enum Theme {
|
|
2
2
|
LIGHT = "light",
|
|
3
|
-
DARK = "dark"
|
|
3
|
+
DARK = "dark",
|
|
4
|
+
NAVY = "navy"
|
|
4
5
|
}
|
|
5
|
-
export declare type ThemeDark = 'dark';
|
|
6
6
|
export declare type ThemeLight = 'light';
|
|
7
|
+
export declare type ThemeDark = 'dark';
|
|
8
|
+
export declare type ThemeNavy = 'navy';
|
|
9
|
+
export declare type ThemeType = ThemeLight | ThemeDark | ThemeNavy;
|
|
@@ -1,19 +1,31 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
disableClickToClose?: boolean;
|
|
7
|
-
fadeContentOnEnter?: boolean;
|
|
8
|
-
fadeContentOnExit?: boolean;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
1
|
+
import { MouseEvent, ReactElement, ReactNode } from 'react';
|
|
2
|
+
import { CommonProps } from '../common';
|
|
3
|
+
export declare const EXIT_ANIMATION = 350;
|
|
4
|
+
declare type DimmerProps = CommonProps & {
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
disableClickToClose?: boolean;
|
|
7
|
+
fadeContentOnEnter?: boolean;
|
|
8
|
+
fadeContentOnExit?: boolean;
|
|
9
|
+
open?: boolean;
|
|
10
|
+
scrollable?: boolean;
|
|
11
|
+
transparent?: boolean;
|
|
12
|
+
onClose?: (event: KeyboardEvent | MouseEvent) => void;
|
|
13
|
+
};
|
|
14
|
+
export declare const handleTouchMove: (event: Event) => void;
|
|
15
|
+
declare const Dimmer: ({ children, className, disableClickToClose, fadeContentOnEnter, fadeContentOnExit, open, scrollable, transparent, onClose, }: DimmerProps) => JSX.Element;
|
|
16
|
+
export declare const DimmerContentWrapper: ({ children, scrollBody, }: {
|
|
17
|
+
children: ReactElement;
|
|
18
|
+
scrollBody: boolean;
|
|
19
|
+
}) => ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
20
|
+
export { Dimmer };
|
|
21
|
+
declare const _default: (props: CommonProps & {
|
|
22
|
+
children?: ReactNode;
|
|
23
|
+
disableClickToClose?: boolean | undefined;
|
|
24
|
+
fadeContentOnEnter?: boolean | undefined;
|
|
25
|
+
fadeContentOnExit?: boolean | undefined;
|
|
26
|
+
open?: boolean | undefined;
|
|
27
|
+
scrollable?: boolean | undefined;
|
|
28
|
+
transparent?: boolean | undefined;
|
|
29
|
+
onClose?: ((event: KeyboardEvent | MouseEvent<Element, globalThis.MouseEvent>) => void) | undefined;
|
|
30
|
+
}) => import("react").ReactPortal | null;
|
|
31
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const _default: {
|
|
3
|
+
component: (props: import("../common").CommonProps & {
|
|
4
|
+
children?: import("react").ReactNode;
|
|
5
|
+
disableClickToClose?: boolean | undefined;
|
|
6
|
+
fadeContentOnEnter?: boolean | undefined;
|
|
7
|
+
fadeContentOnExit?: boolean | undefined;
|
|
8
|
+
open?: boolean | undefined;
|
|
9
|
+
scrollable?: boolean | undefined;
|
|
10
|
+
transparent?: boolean | undefined;
|
|
11
|
+
onClose?: ((event: KeyboardEvent | import("react").MouseEvent<Element, MouseEvent>) => void) | undefined;
|
|
12
|
+
}) => import("react").ReactPortal | null;
|
|
13
|
+
title: string;
|
|
14
|
+
};
|
|
15
|
+
export default _default;
|
|
16
|
+
export declare const Basic: () => JSX.Element;
|
package/build/types/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Types
|
|
3
3
|
*/
|
|
4
4
|
export type { UploadedFile, UploadError, UploadResponse } from './uploadInput/types';
|
|
5
|
+
export type { LayoutDirection } from './common';
|
|
5
6
|
/**
|
|
6
7
|
* Components
|
|
7
8
|
*/
|
|
@@ -50,7 +51,7 @@ export { default as OverlayHeader } from './overlayHeader';
|
|
|
50
51
|
export { default as PhoneNumberInput } from './phoneNumberInput';
|
|
51
52
|
export { default as Popover } from './popover';
|
|
52
53
|
export { default as ProcessIndicator } from './processIndicator';
|
|
53
|
-
export { default as Provider } from './provider';
|
|
54
|
+
export { default as Provider, DirectionProvider } from './provider';
|
|
54
55
|
export { default as Radio } from './radio';
|
|
55
56
|
export { default as RadioGroup } from './radioGroup';
|
|
56
57
|
export { default as RadioOption } from './radioOption';
|
|
@@ -75,10 +76,11 @@ export { SnackbarConsumer, SnackbarContext } from './snackbar/SnackbarContext';
|
|
|
75
76
|
* Hooks
|
|
76
77
|
*/
|
|
77
78
|
export { default as useSnackbar } from './snackbar/useSnackbar';
|
|
79
|
+
export { useDirection } from './common/hooks';
|
|
78
80
|
/**
|
|
79
81
|
* Enums
|
|
80
82
|
*/
|
|
81
|
-
export { Size, Width, Sentiment, Priority, ControlType, Type, Theme, DateMode, MonthFormat, Position, Scroll, ProfileType, Breakpoint, Layout, Status, MarkdownNodeType, } from './common';
|
|
83
|
+
export { Direction, Size, Width, Sentiment, Priority, ControlType, Type, Theme, DateMode, MonthFormat, Position, Scroll, ProfileType, Breakpoint, Layout, Status, MarkdownNodeType, } from './common';
|
|
82
84
|
export { AvatarType } from './avatar';
|
|
83
85
|
export { InfoPresentation } from './info';
|
|
84
86
|
export { UploadStep } from './upload';
|
|
@@ -89,7 +91,7 @@ export { FileType } from './common';
|
|
|
89
91
|
/**
|
|
90
92
|
* Utils
|
|
91
93
|
*/
|
|
92
|
-
export { SUPPORTED_LANGUAGES, DEFAULT_LANG, DEFAULT_LOCALE, adjustLocale, getLangFromLocale, getCountryFromLocale, } from './common';
|
|
94
|
+
export { SUPPORTED_LANGUAGES, RTL_LANGUAGES, DEFAULT_LANG, DEFAULT_LOCALE, adjustLocale, getLangFromLocale, getCountryFromLocale, getDirectionFromLocale, isServerSide, isBrowser, } from './common';
|
|
93
95
|
/**
|
|
94
96
|
* Translations
|
|
95
97
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const _default: {
|
|
3
|
+
component: {
|
|
4
|
+
({ i18n, children }: {
|
|
5
|
+
i18n: any;
|
|
6
|
+
children: any;
|
|
7
|
+
}): JSX.Element;
|
|
8
|
+
propTypes: {
|
|
9
|
+
i18n: import("prop-types").Validator<import("prop-types").InferProps<{
|
|
10
|
+
locale: import("prop-types").Validator<string>;
|
|
11
|
+
messages: import("prop-types").Validator<import("prop-types").InferProps<{}>>;
|
|
12
|
+
defaultRichTextElements: import("prop-types").Requireable<import("prop-types").InferProps<{}>>;
|
|
13
|
+
}>>;
|
|
14
|
+
children: import("prop-types").Requireable<import("prop-types").ReactNodeLike>;
|
|
15
|
+
};
|
|
16
|
+
defaultProps: {
|
|
17
|
+
children: undefined;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
title: string;
|
|
21
|
+
};
|
|
22
|
+
export default _default;
|
|
23
|
+
export declare const Basic: () => JSX.Element;
|
|
@@ -1,18 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const locale: PropTypes.Requireable<string>;
|
|
10
|
-
}
|
|
11
|
-
namespace defaultProps {
|
|
12
|
-
const children_1: null;
|
|
13
|
-
export { children_1 as children };
|
|
14
|
-
export { DEFAULT_LOCALE as locale };
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
import PropTypes from "prop-types";
|
|
18
|
-
import { DEFAULT_LOCALE } from "../../common/locale";
|
|
1
|
+
import { ReactElement, PropsWithChildren } from 'react';
|
|
2
|
+
import { LayoutDirection } from '../../common/direction';
|
|
3
|
+
export declare const DirectionContext: import("react").Context<LayoutDirection>;
|
|
4
|
+
declare type Props = PropsWithChildren<{
|
|
5
|
+
direction: LayoutDirection;
|
|
6
|
+
}>;
|
|
7
|
+
export declare const DirectionProvider: ({ direction, children }: Props) => ReactElement;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { ThemeType } from '../../common/theme';
|
|
3
|
+
export declare const ThemeContext: import("react").Context<ThemeType>;
|
|
4
|
+
declare type ThemeProviderProps = PropsWithChildren<{
|
|
5
|
+
theme: ThemeType;
|
|
6
|
+
}>;
|
|
7
|
+
export declare const ThemeProvider: ({ theme, children }: ThemeProviderProps) => JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ThemeContext, ThemeProvider } from "./ThemeProvider";
|
|
@@ -4,10 +4,6 @@ import userEvent from "@testing-library/user-event";
|
|
|
4
4
|
* Custom `render` function which wraps passed elements in Provider component
|
|
5
5
|
* Source: https://testing-library.com/docs/example-react-intl/#creating-a-custom-render-function
|
|
6
6
|
*
|
|
7
|
-
* @param ui
|
|
8
|
-
* @param root0
|
|
9
|
-
* @param root0.locale
|
|
10
|
-
* @param root0.messages
|
|
11
7
|
*/
|
|
12
8
|
declare function customRender(ui: any, { locale, messages, ...renderOptions }?: {
|
|
13
9
|
locale?: string | undefined;
|
|
@@ -58,10 +54,6 @@ declare function customRender(ui: any, { locale, messages, ...renderOptions }?:
|
|
|
58
54
|
* Custom `renderHook` function which wraps passed elements in Provider component
|
|
59
55
|
* For more info: https://react-hooks-testing-library.com/usage/advanced-hooks#context
|
|
60
56
|
*
|
|
61
|
-
* @param callback
|
|
62
|
-
* @param root0
|
|
63
|
-
* @param root0.locale
|
|
64
|
-
* @param root0.messages
|
|
65
57
|
*/
|
|
66
58
|
declare function customRenderHook(callback: any, { locale, messages }?: {
|
|
67
59
|
locale?: string | undefined;
|
|
@@ -1,18 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
label: React.ReactNode;
|
|
11
|
-
offset?: number;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export default class Tooltip extends React.Component<TooltipProps, any> {
|
|
15
|
-
render(): JSX.Element;
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
|
|
1
|
+
import { ReactNode, ReactElement, PropsWithChildren } from 'react';
|
|
2
|
+
import { CommonProps } from '../common';
|
|
3
|
+
import { PositionBottom, PositionLeft, PositionRight, PositionTop } from '../common/propsValues/position';
|
|
4
|
+
declare type Props = PropsWithChildren<{
|
|
5
|
+
position?: PositionTop | PositionRight | PositionBottom | PositionLeft;
|
|
6
|
+
label: ReactNode;
|
|
7
|
+
}> & CommonProps;
|
|
8
|
+
declare const Tooltip: ({ position, children, label, className, }: Props) => ReactElement;
|
|
9
|
+
export default Tooltip;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const _default: {
|
|
3
|
+
component: ({ position, children, label, className, }: {
|
|
4
|
+
position?: "left" | "right" | "bottom" | "top" | undefined;
|
|
5
|
+
label: import("react").ReactNode;
|
|
6
|
+
} & {
|
|
7
|
+
children?: import("react").ReactNode;
|
|
8
|
+
} & import("../common").CommonProps) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
9
|
+
title: string;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
export declare const Basic: () => JSX.Element;
|
|
@@ -31,6 +31,12 @@ export declare type UploadInputProps = {
|
|
|
31
31
|
* @param file
|
|
32
32
|
*/
|
|
33
33
|
onValidationError?: (file: UploadedFile) => void;
|
|
34
|
+
/**
|
|
35
|
+
* Provide a callback to trigger on change whenever the files are updated
|
|
36
|
+
*
|
|
37
|
+
* @param files
|
|
38
|
+
*/
|
|
39
|
+
onFilesChange?: (files: UploadedFile[]) => void;
|
|
34
40
|
/**
|
|
35
41
|
* Confirmation modal displayed on delete
|
|
36
42
|
*/
|
|
@@ -53,5 +59,5 @@ export declare type UploadInputProps = {
|
|
|
53
59
|
cancelText?: string;
|
|
54
60
|
};
|
|
55
61
|
} & Pick<UploadButtonProps, 'disabled' | 'multiple' | 'fileTypes' | 'sizeLimit'> & Pick<UploadItemProps, 'onDownload'> & CommonProps;
|
|
56
|
-
declare const UploadInput: ({ files, fileInputName, className, deleteConfirm, disabled, multiple, fileTypes, sizeLimit, onUploadFile, onDeleteFile, onValidationError, onDownload, }: UploadInputProps) => ReactElement;
|
|
62
|
+
declare const UploadInput: ({ files, fileInputName, className, deleteConfirm, disabled, multiple, fileTypes, sizeLimit, onUploadFile, onDeleteFile, onValidationError, onFilesChange, onDownload, }: UploadInputProps) => ReactElement;
|
|
57
63
|
export default UploadInput;
|
|
@@ -13,3 +13,4 @@ export declare const WithUploadFailed: Story<UploadInputProps>;
|
|
|
13
13
|
export declare const WithDeleteFailed: Story<UploadInputProps>;
|
|
14
14
|
export declare const CustomConfirmMessage: Story<UploadInputProps>;
|
|
15
15
|
export declare const withManualDownloadHandler: Story<UploadInputProps>;
|
|
16
|
+
export declare const withFilesChangeHandler: Story<UploadInputProps>;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
|
+
export default function withNextPortalWrapper<T>(Component: ComponentType<T>): (props: T) => import("react").ReactPortal | null;
|