@transferwise/components 45.4.0 → 45.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/build/es/no-polyfill/actionButton/ActionButton.js +1 -1
  2. package/build/es/no-polyfill/actionButton/ActionButton.spec.js +1 -1
  3. package/build/es/no-polyfill/actionButton/ActionButton.story.js +1 -1
  4. package/build/es/no-polyfill/circularButton/CircularButton.js +1 -1
  5. package/build/es/no-polyfill/common/flowHeader/FlowHeader.js +1 -1
  6. package/build/es/no-polyfill/common/hooks/index.js +1 -1
  7. package/build/es/no-polyfill/common/hooks/useClientWidth/useClientWidth.js +1 -1
  8. package/build/es/no-polyfill/common/hooks/useLayout/useLayout.js +1 -1
  9. package/build/es/no-polyfill/dateLookup/dateTrigger/DateTrigger.js +1 -1
  10. package/build/es/no-polyfill/decision/Decision.js +2 -2
  11. package/build/es/no-polyfill/definitionList/DefinitionList.js +1 -1
  12. package/build/es/no-polyfill/flowNavigation/FlowNavigation.js +2 -2
  13. package/build/es/no-polyfill/flowNavigation/backButton/BackButton.js +1 -1
  14. package/build/es/no-polyfill/index.js +1 -1
  15. package/build/es/no-polyfill/overlayHeader/OverlayHeader.js +1 -1
  16. package/build/es/no-polyfill/phoneNumberInput/data/countries.js +1 -1
  17. package/build/es/no-polyfill/snackbar/Snackbar.js +1 -1
  18. package/build/es/no-polyfill/stepper/Stepper.js +1 -1
  19. package/build/es/no-polyfill/tile/Tile.js +1 -1
  20. package/build/es/polyfill/actionButton/ActionButton.js +1 -1
  21. package/build/es/polyfill/actionButton/ActionButton.spec.js +1 -1
  22. package/build/es/polyfill/actionButton/ActionButton.story.js +1 -1
  23. package/build/es/polyfill/circularButton/CircularButton.js +1 -1
  24. package/build/es/polyfill/common/flowHeader/FlowHeader.js +1 -1
  25. package/build/es/polyfill/common/hooks/index.js +1 -1
  26. package/build/es/polyfill/common/hooks/useClientWidth/useClientWidth.js +1 -1
  27. package/build/es/polyfill/common/hooks/useLayout/useLayout.js +1 -1
  28. package/build/es/polyfill/dateLookup/dateTrigger/DateTrigger.js +1 -1
  29. package/build/es/polyfill/decision/Decision.js +2 -2
  30. package/build/es/polyfill/definitionList/DefinitionList.js +1 -1
  31. package/build/es/polyfill/flowNavigation/FlowNavigation.js +2 -2
  32. package/build/es/polyfill/flowNavigation/backButton/BackButton.js +1 -1
  33. package/build/es/polyfill/index.js +1 -1
  34. package/build/es/polyfill/overlayHeader/OverlayHeader.js +1 -1
  35. package/build/es/polyfill/phoneNumberInput/data/countries.js +1 -1
  36. package/build/es/polyfill/snackbar/Snackbar.js +1 -1
  37. package/build/es/polyfill/stepper/Stepper.js +1 -1
  38. package/build/es/polyfill/tile/Tile.js +1 -1
  39. package/build/main.css +1 -1
  40. package/build/styles/actionButton/ActionButton.css +1 -1
  41. package/build/styles/main.css +1 -1
  42. package/build/styles/popover/Popover.css +1 -1
  43. package/build/styles/select/Select.css +1 -1
  44. package/build/styles/snackbar/Snackbar.css +1 -1
  45. package/build/styles/stepper/Stepper.css +1 -1
  46. package/build/types/actionButton/ActionButton.d.ts +3 -0
  47. package/build/types/actionButton/ActionButton.story.d.ts +1 -1
  48. package/build/types/button/Button.story.d.ts +24 -24
  49. package/build/types/circularButton/CircularButton.d.ts +1 -1
  50. package/build/types/common/flowHeader/FlowHeader.d.ts +10 -1
  51. package/build/types/common/hooks/index.d.ts +1 -1
  52. package/build/types/common/hooks/useClientWidth/useClientWidth.d.ts +9 -8
  53. package/build/types/decision/Decision.d.ts +1 -1
  54. package/build/types/definitionList/DefinitionList.d.ts +1 -1
  55. package/build/types/flowNavigation/FlowNavigation.d.ts +16 -34
  56. package/build/types/index.d.ts +2 -2
  57. package/build/types/listItem/ListItem.d.ts +1 -1
  58. package/build/types/listItem/ListItem.story.d.ts +1 -1
  59. package/build/types/snackbar/Snackbar.d.ts +1 -1
  60. package/build/types/stepper/Stepper.d.ts +13 -18
  61. package/build/umd/no-polyfill/main.js +1 -1
  62. package/build/umd/polyfill/main.js +1 -1
  63. package/package.json +5 -12
  64. package/scripts/generate-type-declarations.js +0 -2
  65. package/build/es/no-polyfill/common/flowHeader/index.js +0 -1
  66. package/build/es/no-polyfill/common/hooks/useClientWidth/index.js +0 -1
  67. package/build/es/no-polyfill/flowNavigation/index.js +0 -1
  68. package/build/es/no-polyfill/stepper/index.js +0 -1
  69. package/build/es/polyfill/common/flowHeader/index.js +0 -1
  70. package/build/es/polyfill/common/hooks/useClientWidth/index.js +0 -1
  71. package/build/es/polyfill/flowNavigation/index.js +0 -1
  72. package/build/es/polyfill/stepper/index.js +0 -1
  73. package/build/types/common/flowHeader/index.d.ts +0 -1
  74. package/build/types/common/hooks/useClientWidth/index.d.ts +0 -1
  75. package/build/types/flowNavigation/index.d.ts +0 -1
  76. package/build/types/stepper/index.d.ts +0 -2
  77. package/scripts/neptune-upgrader.js +0 -114
  78. package/upgrades/2021-02-v34-35.js +0 -193
  79. package/upgrades/2021-04-v35-36-typescript-support.js +0 -290
  80. package/upgrades/utils/index.js +0 -17
@@ -1 +1 @@
1
- .np-theme-personal .np-popover__container{border-radius:16px;border-radius:var(--radius-medium)}.np-popover__container .np-popover__content{color:#5d7079;color:var(--color-content-secondary);font-size:.875rem;font-size:var(--font-size-14)}.np-popover__container .np-popover__content p:last-child{margin-bottom:0}.np-popover__container.np-panel .np-popover__content{max-width:276px;padding:16px 24px;padding:var(--size-16) var(--size-24)}.np-theme-personal .np-popover__container.np-panel .np-popover__content{padding:24px;padding:var(--size-24)}.np-popover__container.np-bottom-sheet .np-popover__title{color:#37517e;color:var(--color-content-primary);font-size:1.625rem;font-size:var(--font-size-26);font-weight:800;font-weight:var(--font-weight-bold);letter-spacing:0;line-height:1.2;line-height:var(--line-height-title);margin:0 0 4px;margin-bottom:var(--size-4)}.np-theme-personal .np-popover__container.np-bottom-sheet .np-popover__title+p{margin-top:8px;margin-top:var(--size-8)}.np-theme-personal .np-popover__container.np-bottom-sheet .np-popover__title{font-weight:600;font-weight:var(--font-weight-semi-bold);letter-spacing:-.015em;letter-spacing:var(--letter-spacing-negative-md);line-height:2rem;line-height:var(--line-height-32);margin-bottom:0}.np-popover__container.np-bottom-sheet .np-popover__content{padding:32px 24px;padding:var(--size-32) var(--size-24)}
1
+ .np-theme-personal .np-popover__container{border-radius:16px;border-radius:var(--radius-medium)}.np-popover__container .np-popover__content{color:#5d7079;color:var(--color-content-secondary);font-size:.875rem;font-size:var(--font-size-14)}.np-popover__container .np-popover__content p:last-child{margin-bottom:0}.np-popover__container.np-panel .np-popover__content{max-width:276px;padding:16px 24px;padding:var(--size-16) var(--size-24)}.np-theme-personal .np-popover__container.np-panel .np-popover__content{padding:24px;padding:var(--size-24)}.np-popover__container.np-bottom-sheet .np-popover__title{color:#37517e;color:var(--color-content-primary);font-size:1.625rem;font-size:var(--font-size-26);font-weight:600;font-weight:var(--font-weight-semi-bold);letter-spacing:0;letter-spacing:-.015em;letter-spacing:var(--letter-spacing-negative-md);line-height:1.2;line-height:var(--line-height-title);line-height:2rem;line-height:var(--line-height-32);margin:0}.np-popover__container.np-bottom-sheet .np-popover__title+p{margin-top:8px;margin-top:var(--size-8)}.np-popover__container.np-bottom-sheet .np-popover__content{padding:32px 24px;padding:var(--size-32) var(--size-24)}
@@ -1 +1 @@
1
- .np-select .np-dropdown-toggle{background-color:#fff;background-color:var(--color-background-screen);border:1px solid #c9cbce;border:1px solid var(--color-interactive-secondary);border-radius:10px;border-radius:var(--radius-small);color:#37517e;color:var(--color-content-primary);font-weight:400;font-weight:var(--font-weight-regular);max-width:100%;overflow:hidden;padding-left:16px;padding-left:var(--size-16);text-align:left;text-overflow:ellipsis}[dir=rtl] .np-select .np-dropdown-toggle{text-align:right}.np-select .np-dropdown-toggle:focus-visible{outline:none}.np-theme-personal .np-select .np-dropdown-toggle{border-radius:10px;border-radius:var(--radius-small)}.has-error .np-select .np-dropdown-toggle{border:1px solid #e74848;border:1px solid var(--color-interactive-negative)}.np-select .np-dropdown-toggle-navy{--color-content-accent:#00b9ff;--color-content-primary:#fff;--color-content-secondary:#c9cbce;--color-background-screen:#2e4369;--color-interactive-secondary:#2e4369;--color-interactive-secondary-hover:#2e4369}.np-select .np-dropdown-toggle.np-btn-sm{padding-right:32px;padding-right:var(--size-32)}[dir=rtl] .np-select .np-dropdown-toggle.np-btn-sm{padding-left:32px;padding-left:var(--size-32);padding-right:0}.np-select .np-dropdown-toggle.np-btn-md{padding-right:40px;padding-right:var(--size-40)}[dir=rtl] .np-select .np-dropdown-toggle.np-btn-md{padding-left:40px;padding-left:var(--size-40);padding-right:0}.np-select .np-dropdown-toggle.np-btn-lg{padding-right:48px;padding-right:var(--size-48)}[dir=rtl] .np-select .np-dropdown-toggle.np-btn-lg{padding-left:48px;padding-left:var(--size-48);padding-right:0}.np-select .np-dropdown-toggle .np-select-chevron{margin:0;position:absolute;right:16px;right:var(--size-16);top:16px;top:var(--size-16)}[dir=rtl] .np-select .np-dropdown-toggle .np-select-chevron{left:16px;left:var(--size-16);margin:0;right:auto}.np-select .np-dropdown-toggle.np-btn-sm .np-select-chevron{right:8px;right:var(--size-8);top:8px;top:var(--size-8)}[dir=rtl] .np-select .np-dropdown-toggle.np-btn-sm .np-select-chevron{left:8px;left:var(--size-8);right:auto}.np-select .np-dropdown-toggle.np-btn-lg .np-select-chevron{top:27px}.np-select .btn:not(.disabled,:disabled){color:#37517e;color:var(--color-content-primary)}.np-select .btn:not(.disabled,:disabled):hover{border-color:#b5b7ba;border-color:var(--color-interactive-secondary-hover)}.np-select .btn:not(.disabled,:disabled):focus{border-color:#00a2dd;border-color:var(--color-interactive-accent)}.np-theme-personal .np-select .btn:not(.disabled,:disabled):focus{border-color:#c9cbce;border-color:var(--color-interactive-secondary)}.np-option-content{max-width:100%}.np-option-content .d-flex:last-child{max-width:calc(100% - 32px)}.np-dropdown-menu-desktop{max-height:70vh;max-height:70svh;max-width:calc(100vw - 32px);min-width:160px}@media (min-height:592px){.np-dropdown-menu-desktop{max-height:592px}}.np-dropdown-menu{background-color:#fff;background-color:var(--color-background-screen);border-radius:10px;border-radius:var(--radius-small);list-style:none;margin:0;overflow:auto;padding:0;text-align:left}[dir=rtl] .np-dropdown-menu{padding:0;text-align:right}.np-theme-personal .np-dropdown-menu{border-radius:10px;border-radius:var(--radius-small)}.np-dropdown-menu-sm{width:220px}.np-dropdown-menu-md{width:300px}.np-dropdown-menu-lg{width:420px}.np-dropdown-menu .np-dropdown-item--focused{background-color:#86a7bd1a;background-color:var(--color-background-neutral);border-radius:10px;border-radius:var(--radius-small)}.np-dropdown-menu .np-dropdown-item>a{white-space:normal}.np-dropdown-menu>li>a{clear:both;color:#37517e;color:var(--color-content-primary);display:block;font-size:1rem;font-size:var(--font-size-16);font-weight:400;font-weight:var(--font-weight-regular);line-height:1.5;line-height:var(--line-height-body);padding:12px 16px;padding:var(--size-12) var(--size-16);text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.np-dropdown-menu>li>a,.np-theme-personal .np-dropdown-menu>li>a{border-radius:10px;border-radius:var(--radius-small)}.np-theme-personal .np-dropdown-menu>li>a{font-size:.875rem;font-size:var(--font-size-14);font-weight:400;font-weight:var(--font-weight-regular);letter-spacing:.01em;letter-spacing:var(--letter-spacing-xs);line-height:1.375rem;line-height:var(--line-height-22)}.np-dropdown-menu>li:first-child>a{border-top-left-radius:3px;border-top-right-radius:3px}.np-theme-personal .np-dropdown-menu>li:first-child>a{border-top-left-radius:10px;border-top-left-radius:var(--radius-small);border-top-right-radius:10px;border-top-right-radius:var(--radius-small)}.np-dropdown-menu>li:last-child>a{border-bottom-left-radius:3px;border-bottom-right-radius:3px}.np-theme-personal .np-dropdown-menu>li:last-child>a{border-bottom-left-radius:10px;border-bottom-left-radius:var(--radius-small);border-bottom-right-radius:10px;border-bottom-right-radius:var(--radius-small)}.np-dropdown-menu>li:not(.active,.selected):not(:has(input))>a:not([disabled],.disabled):focus,.np-dropdown-menu>li:not(.active,.selected):not(:has(input))>a:not([disabled],.disabled):hover{background-color:#86a7bd1a;background-color:var(--color-background-neutral);color:#37517e;color:var(--color-content-primary)}.np-dropdown-menu>li:not(.active,.selected):not(:has(input))>a:not([disabled],.disabled):active{background-color:#37517e;color:#fff}.np-dropdown-menu>.active>a,.np-dropdown-menu>.active>a:focus,.np-dropdown-menu>.active>a:hover,.np-dropdown-menu>.selected>a,.np-dropdown-menu>.selected>a:focus,.np-dropdown-menu>.selected>a:hover{background-color:#37517e;color:#fff}.np-dropdown-menu>.active>a strong,.np-dropdown-menu>.selected>a strong{color:inherit}.np-dropdown-menu>.active>a .np-text-body-default,.np-dropdown-menu>.selected>a .np-text-body-default{color:#c9cbce}.np-dropdown-menu .input-group-addon,.np-dropdown-menu .np-select-filter{border:0}.np-dropdown-menu .np-separator{background-color:#86a7bd1a;background-color:var(--color-background-neutral);height:1px;margin:0;overflow:hidden}.np-dropdown-menu .np-dropdown-header{color:#5d7079;color:var(--color-content-secondary);display:block;font-size:.875rem;font-size:var(--font-size-14);font-weight:400;font-weight:var(--font-weight-regular);line-height:1.5;line-height:var(--line-height-body);padding:8px 16px;padding:var(--size-8) var(--size-16);white-space:nowrap}.np-dropdown-menu .currency-flag,.np-dropdown-menu .tw-icon,.np-select .currency-flag,.np-select .tw-icon{display:inline-block;margin-right:8px;margin-right:var(--size-8);vertical-align:middle}[dir=rtl] .np-dropdown-menu .currency-flag,[dir=rtl] .np-dropdown-menu .tw-icon,[dir=rtl] .np-select .currency-flag,[dir=rtl] .np-select .tw-icon{margin-left:8px;margin-left:var(--size-8);margin-right:0}.np-dropdown-menu .currency-flag,.np-select .currency-flag{margin-top:3px}.np-dropdown-menu .np-text-body-default,.np-select .np-text-body-default{color:#5d7079;color:var(--color-content-secondary)}.np-dropdown-menu .tw-icon-search,.np-select .tw-icon-search{margin-right:0}.np-theme-personal .currency-flag{margin-top:0}.np-theme-personal .np-select .np-dropdown-toggle{background-color:unset;border:none;box-shadow:inset 0 0 0 1px #c9cbce;box-shadow:inset 0 0 0 1px var(--color-interactive-secondary);transition:background-color .3s ease-in-out,box-shadow .3s ease-in-out}.np-theme-personal .np-select .np-dropdown-toggle:not(.disabled,:disabled):hover{box-shadow:inset 0 0 0 2px #b5b7ba;box-shadow:inset 0 0 0 2px var(--color-interactive-secondary-hover)}.np-theme-personal .np-select .np-dropdown-toggle:not(.disabled,:disabled):focus,.np-theme-personal .np-select .np-dropdown-toggle:not(.disabled,:disabled):focus-visible,.np-theme-personal .np-select .np-dropdown-toggle:not(.disabled,:disabled):focus-within{box-shadow:inset 0 0 0 3px var(--color-interactive-primary)}.np-theme-personal .has-error .np-select .np-dropdown-toggle,.np-theme-personal .has-error .np-select .np-dropdown-toggle:not(.disabled,:disabled):hover{box-shadow:inset 0 0 0 2px var(--color-sentiment-negative)}.np-theme-personal .has-error .np-select .np-dropdown-toggle:not(.disabled,:disabled):focus,.np-theme-personal .has-error .np-select .np-dropdown-toggle:not(.disabled,:disabled):focus-visible,.np-theme-personal .has-error .np-select .np-dropdown-toggle:not(.disabled,:disabled):focus-within{box-shadow:inset 0 0 0 3px var(--color-sentiment-negative)}.np-theme-personal .np-dropdown-menu{outline:none}.np-theme-personal .np-dropdown-menu .active a,.np-theme-personal .np-dropdown-menu .active a:focus,.np-theme-personal .np-dropdown-menu .active a:hover,.np-theme-personal .np-dropdown-menu .selected a,.np-theme-personal .np-dropdown-menu .selected a:focus,.np-theme-personal .np-dropdown-menu .selected a:hover{background-color:var(--color-background-neutral-active);color:var(--color-interactive-primary)}.np-theme-personal .np-dropdown-menu .active a .body-2,.np-theme-personal .np-dropdown-menu .active a .np-text-body-default,.np-theme-personal .np-dropdown-menu .active a:focus .body-2,.np-theme-personal .np-dropdown-menu .active a:focus .np-text-body-default,.np-theme-personal .np-dropdown-menu .active a:hover .body-2,.np-theme-personal .np-dropdown-menu .active a:hover .np-text-body-default,.np-theme-personal .np-dropdown-menu .selected a .body-2,.np-theme-personal .np-dropdown-menu .selected a .np-text-body-default,.np-theme-personal .np-dropdown-menu .selected a:focus .body-2,.np-theme-personal .np-dropdown-menu .selected a:focus .np-text-body-default,.np-theme-personal .np-dropdown-menu .selected a:hover .body-2,.np-theme-personal .np-dropdown-menu .selected a:hover .np-text-body-default{color:var(--color-interactive-primary)}.np-theme-personal .np-dropdown-menu li:not(.active,.selected):not(:has(input)) a:not([disabled],.disabled):active{background-color:var(--color-background-neutral-active)!important;color:var(--color-interactive-primary)!important}.np-theme-personal .np-dropdown-menu li:not(.active,.selected):not(:has(input)) a:not([disabled],.disabled):active .body-2,.np-theme-personal .np-dropdown-menu li:not(.active,.selected):not(:has(input)) a:not([disabled],.disabled):active .np-text-body-default{color:var(--color-interactive-primary)}.np-theme-personal .np-dropdown-menu .np-dropdown-item{outline:none}.np-theme-personal .np-dropdown-menu .np-dropdown-item--focused{box-shadow:inset 0 0 0 2px var(--color-interactive-primary)}
1
+ .np-select .np-dropdown-toggle{background-color:#fff;background-color:var(--color-background-screen);border:1px solid #c9cbce;border:1px solid var(--color-interactive-secondary);border-radius:10px;border-radius:var(--radius-small);color:#37517e;color:var(--color-content-primary);font-weight:400;font-weight:var(--font-weight-regular);max-width:100%;overflow:hidden;padding-left:16px;padding-left:var(--size-16);text-align:left;text-overflow:ellipsis}[dir=rtl] .np-select .np-dropdown-toggle{text-align:right}.np-select .np-dropdown-toggle:focus-visible{outline:none}.np-theme-personal .np-select .np-dropdown-toggle{border-radius:10px;border-radius:var(--radius-small)}.has-error .np-select .np-dropdown-toggle{border:1px solid #e74848;border:1px solid var(--color-interactive-negative)}.np-select .np-dropdown-toggle-navy{--color-content-accent:#00b9ff;--color-content-primary:#fff;--color-content-secondary:#c9cbce;--color-background-screen:#2e4369;--color-interactive-secondary:#2e4369;--color-interactive-secondary-hover:#2e4369}.np-select .np-dropdown-toggle.np-btn-sm{padding-right:32px;padding-right:var(--size-32)}[dir=rtl] .np-select .np-dropdown-toggle.np-btn-sm{padding-left:32px;padding-left:var(--size-32);padding-right:0}.np-select .np-dropdown-toggle.np-btn-md{padding-right:40px;padding-right:var(--size-40)}[dir=rtl] .np-select .np-dropdown-toggle.np-btn-md{padding-left:40px;padding-left:var(--size-40);padding-right:0}.np-select .np-dropdown-toggle.np-btn-lg{padding-right:48px;padding-right:var(--size-48)}[dir=rtl] .np-select .np-dropdown-toggle.np-btn-lg{padding-left:48px;padding-left:var(--size-48);padding-right:0}.np-select .np-dropdown-toggle .np-select-chevron{margin:0;position:absolute;right:16px;right:var(--size-16);top:16px;top:var(--size-16)}[dir=rtl] .np-select .np-dropdown-toggle .np-select-chevron{left:16px;left:var(--size-16);margin:0;right:auto}.np-select .np-dropdown-toggle.np-btn-sm .np-select-chevron{right:8px;right:var(--size-8);top:8px;top:var(--size-8)}[dir=rtl] .np-select .np-dropdown-toggle.np-btn-sm .np-select-chevron{left:8px;left:var(--size-8);right:auto}.np-select .np-dropdown-toggle.np-btn-lg .np-select-chevron{top:27px}.np-select .btn:not(.disabled,:disabled){color:#37517e;color:var(--color-content-primary)}.np-select .btn:not(.disabled,:disabled):hover{border-color:#b5b7ba;border-color:var(--color-interactive-secondary-hover)}.np-select .btn:not(.disabled,:disabled):focus{border-color:#00a2dd;border-color:var(--color-interactive-accent)}.np-theme-personal .np-select .btn:not(.disabled,:disabled):focus{border-color:#c9cbce;border-color:var(--color-interactive-secondary)}.np-option-content{max-width:100%}.np-option-content .d-flex:last-child{max-width:calc(100% - 32px)}.np-dropdown-menu-desktop{max-height:70vh;max-height:70svh;max-width:calc(100vw - 32px);min-width:160px}@media (min-height:592px){.np-dropdown-menu-desktop{max-height:592px}}.np-dropdown-menu{background-color:#fff;background-color:var(--color-background-screen);border-radius:10px;border-radius:var(--radius-small);list-style:none;margin:0;overflow:auto;padding:0;text-align:left}[dir=rtl] .np-dropdown-menu{padding:0;text-align:right}.np-theme-personal .np-dropdown-menu{border-radius:10px;border-radius:var(--radius-small)}.np-dropdown-menu-sm{width:220px}.np-dropdown-menu-md{width:300px}.np-dropdown-menu-lg{width:420px}.np-dropdown-menu .np-dropdown-item--focused{background-color:#86a7bd1a;background-color:var(--color-background-neutral);border-radius:10px;border-radius:var(--radius-small)}.np-dropdown-menu .np-dropdown-item>a{white-space:normal}.np-dropdown-menu>li>a{clear:both;color:#37517e;color:var(--color-content-primary);display:block;font-size:1rem;font-size:var(--font-size-16);font-size:.875rem;font-size:var(--font-size-14);font-weight:400;font-weight:var(--font-weight-regular);letter-spacing:.01em;letter-spacing:var(--letter-spacing-xs);line-height:1.5;line-height:var(--line-height-body);line-height:1.375rem;line-height:var(--line-height-22);padding:12px 16px;padding:var(--size-12) var(--size-16);text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.np-dropdown-menu>li>a,.np-theme-personal .np-dropdown-menu>li>a{border-radius:10px;border-radius:var(--radius-small)}.np-dropdown-menu>li:first-child>a{border-top-left-radius:3px;border-top-right-radius:3px}.np-theme-personal .np-dropdown-menu>li:first-child>a{border-top-left-radius:10px;border-top-left-radius:var(--radius-small);border-top-right-radius:10px;border-top-right-radius:var(--radius-small)}.np-dropdown-menu>li:last-child>a{border-bottom-left-radius:3px;border-bottom-right-radius:3px}.np-theme-personal .np-dropdown-menu>li:last-child>a{border-bottom-left-radius:10px;border-bottom-left-radius:var(--radius-small);border-bottom-right-radius:10px;border-bottom-right-radius:var(--radius-small)}.np-dropdown-menu>li:not(.active,.selected):not(:has(input))>a:not([disabled],.disabled):focus,.np-dropdown-menu>li:not(.active,.selected):not(:has(input))>a:not([disabled],.disabled):hover{background-color:#86a7bd1a;background-color:var(--color-background-neutral);color:#37517e;color:var(--color-content-primary)}.np-dropdown-menu>li:not(.active,.selected):not(:has(input))>a:not([disabled],.disabled):active{background-color:#37517e;color:#fff}.np-dropdown-menu>.active>a,.np-dropdown-menu>.active>a:focus,.np-dropdown-menu>.active>a:hover,.np-dropdown-menu>.selected>a,.np-dropdown-menu>.selected>a:focus,.np-dropdown-menu>.selected>a:hover{background-color:#37517e;color:#fff}.np-dropdown-menu>.active>a strong,.np-dropdown-menu>.selected>a strong{color:inherit}.np-dropdown-menu>.active>a .np-text-body-default,.np-dropdown-menu>.selected>a .np-text-body-default{color:#c9cbce}.np-dropdown-menu .input-group-addon,.np-dropdown-menu .np-select-filter{border:0}.np-dropdown-menu .np-separator{background-color:#86a7bd1a;background-color:var(--color-background-neutral);height:1px;margin:0;overflow:hidden}.np-dropdown-menu .np-dropdown-header{color:#5d7079;color:var(--color-content-secondary);display:block;font-size:.875rem;font-size:var(--font-size-14);font-weight:400;font-weight:var(--font-weight-regular);line-height:1.5;line-height:var(--line-height-body);padding:8px 16px;padding:var(--size-8) var(--size-16);white-space:nowrap}.np-dropdown-menu .currency-flag,.np-dropdown-menu .tw-icon,.np-select .currency-flag,.np-select .tw-icon{display:inline-block;margin-right:8px;margin-right:var(--size-8);vertical-align:middle}[dir=rtl] .np-dropdown-menu .currency-flag,[dir=rtl] .np-dropdown-menu .tw-icon,[dir=rtl] .np-select .currency-flag,[dir=rtl] .np-select .tw-icon{margin-left:8px;margin-left:var(--size-8);margin-right:0}.np-dropdown-menu .currency-flag,.np-select .currency-flag{margin-top:3px}.np-dropdown-menu .np-text-body-default,.np-select .np-text-body-default{color:#5d7079;color:var(--color-content-secondary)}.np-dropdown-menu .tw-icon-search,.np-select .tw-icon-search{margin-right:0}.np-theme-personal .currency-flag{margin-top:0}.np-theme-personal .np-select .np-dropdown-toggle{background-color:unset;border:none;box-shadow:inset 0 0 0 1px #c9cbce;box-shadow:inset 0 0 0 1px var(--color-interactive-secondary);transition:background-color .3s ease-in-out,box-shadow .3s ease-in-out}.np-theme-personal .np-select .np-dropdown-toggle:not(.disabled,:disabled):hover{box-shadow:inset 0 0 0 2px #b5b7ba;box-shadow:inset 0 0 0 2px var(--color-interactive-secondary-hover)}.np-theme-personal .np-select .np-dropdown-toggle:not(.disabled,:disabled):focus,.np-theme-personal .np-select .np-dropdown-toggle:not(.disabled,:disabled):focus-visible,.np-theme-personal .np-select .np-dropdown-toggle:not(.disabled,:disabled):focus-within{box-shadow:inset 0 0 0 3px var(--color-interactive-primary)}.np-theme-personal .has-error .np-select .np-dropdown-toggle,.np-theme-personal .has-error .np-select .np-dropdown-toggle:not(.disabled,:disabled):hover{box-shadow:inset 0 0 0 2px var(--color-sentiment-negative)}.np-theme-personal .has-error .np-select .np-dropdown-toggle:not(.disabled,:disabled):focus,.np-theme-personal .has-error .np-select .np-dropdown-toggle:not(.disabled,:disabled):focus-visible,.np-theme-personal .has-error .np-select .np-dropdown-toggle:not(.disabled,:disabled):focus-within{box-shadow:inset 0 0 0 3px var(--color-sentiment-negative)}.np-theme-personal .np-dropdown-menu{outline:none}.np-theme-personal .np-dropdown-menu .active a,.np-theme-personal .np-dropdown-menu .active a:focus,.np-theme-personal .np-dropdown-menu .active a:hover,.np-theme-personal .np-dropdown-menu .selected a,.np-theme-personal .np-dropdown-menu .selected a:focus,.np-theme-personal .np-dropdown-menu .selected a:hover{background-color:var(--color-background-neutral-active);color:var(--color-interactive-primary)}.np-theme-personal .np-dropdown-menu .active a .body-2,.np-theme-personal .np-dropdown-menu .active a .np-text-body-default,.np-theme-personal .np-dropdown-menu .active a:focus .body-2,.np-theme-personal .np-dropdown-menu .active a:focus .np-text-body-default,.np-theme-personal .np-dropdown-menu .active a:hover .body-2,.np-theme-personal .np-dropdown-menu .active a:hover .np-text-body-default,.np-theme-personal .np-dropdown-menu .selected a .body-2,.np-theme-personal .np-dropdown-menu .selected a .np-text-body-default,.np-theme-personal .np-dropdown-menu .selected a:focus .body-2,.np-theme-personal .np-dropdown-menu .selected a:focus .np-text-body-default,.np-theme-personal .np-dropdown-menu .selected a:hover .body-2,.np-theme-personal .np-dropdown-menu .selected a:hover .np-text-body-default{color:var(--color-interactive-primary)}.np-theme-personal .np-dropdown-menu li:not(.active,.selected):not(:has(input)) a:not([disabled],.disabled):active{background-color:var(--color-background-neutral-active)!important;color:var(--color-interactive-primary)!important}.np-theme-personal .np-dropdown-menu li:not(.active,.selected):not(:has(input)) a:not([disabled],.disabled):active .body-2,.np-theme-personal .np-dropdown-menu li:not(.active,.selected):not(:has(input)) a:not([disabled],.disabled):active .np-text-body-default{color:var(--color-interactive-primary)}.np-theme-personal .np-dropdown-menu .np-dropdown-item{outline:none}.np-theme-personal .np-dropdown-menu .np-dropdown-item--focused{box-shadow:inset 0 0 0 2px var(--color-interactive-primary)}
@@ -1 +1 @@
1
- .snackbar{bottom:0;left:0;position:fixed;right:0;text-align:center;z-index:1060}[dir=rtl] .snackbar{left:auto;left:0;right:0}.snackbar__text{align-items:center;background:#37517e;border-radius:2px;box-shadow:0 2px 4px rgba(0,0,0,.25);color:#fff;display:inline-flex;font-size:.875rem;font-size:var(--font-size-14);justify-content:space-between;margin:0 16px;margin:0 var(--size-16);padding:8px 16px;padding:var(--size-8) var(--size-16);text-align:left;transition:.4s cubic-bezier(.215,.61,.355,1);width:calc(100% - 32px);width:calc(100% - var(--size-32))}[dir=rtl] .snackbar__text{text-align:right}.np-theme-personal .snackbar__text{background:var(--color-contrast-theme);border-radius:10px;border-radius:var(--radius-small);box-shadow:0 2px 4px 0 rgba(69,71,69,.35);color:var(--color-contrast-overlay);position:relative}.np-theme-personal .snackbar__text:after{background-color:#86a7bd1a;background-color:var(--color-background-neutral);border-radius:inherit;content:"";display:block;height:100%;left:0;position:absolute;top:0;width:100%;z-index:-1}.np-theme-personal--dark .snackbar__text,.np-theme-personal--forest-green .snackbar__text{box-shadow:none}@media (min-width:576px){.snackbar__text{max-width:600px;width:auto}}.snackbar__text__action{color:#00b9ff;flex-shrink:0;margin-left:16px;margin-left:var(--size-16)}[dir=rtl] .snackbar__text__action{margin-left:0;margin-right:16px;margin-right:var(--size-16)}.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
+ .snackbar{bottom:0;left:0;position:fixed;right:0;text-align:center;z-index:1060}[dir=rtl] .snackbar{left:auto;left:0;right:0}.snackbar__text{align-items:center;background:#37517e;border-radius:2px;box-shadow:0 2px 4px rgba(0,0,0,.25);color:#fff;display:inline-flex;font-size:.875rem;font-size:var(--font-size-14);justify-content:space-between;margin:0 16px;margin:0 var(--size-16);padding:8px 16px;padding:var(--size-8) var(--size-16);text-align:left;transition:.4s cubic-bezier(.215,.61,.355,1);width:calc(100% - 32px);width:calc(100% - var(--size-32))}[dir=rtl] .snackbar__text{text-align:right}.np-theme-personal .snackbar__text{background:var(--color-contrast-theme);border-radius:10px;border-radius:var(--radius-small);box-shadow:0 2px 4px 0 rgba(69,71,69,.35);color:var(--color-contrast-overlay);position:relative}.np-theme-personal .snackbar__text:after{background-color:#86a7bd1a;background-color:var(--color-background-neutral);border-radius:inherit;content:"";display:block;height:100%;left:0;position:absolute;top:0;width:100%;z-index:-1}.np-theme-personal--dark .snackbar__text,.np-theme-personal--forest-green .snackbar__text{box-shadow:none}@media (min-width:576px){.snackbar__text{max-width:600px;width:auto}}.snackbar__text__action{flex-shrink:0;margin-left:16px;margin-left:var(--size-16)}[dir=rtl] .snackbar__text__action{margin-left:0;margin-right:16px;margin-right:var(--size-16)}.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{list-style-type:none;position:absolute;top:0}.tw-stepper__step--active .tw-stepper__step-label{color:#37517e;color:var(--color-content-primary);cursor:default;font-weight:600}.np-theme-personal .tw-stepper__step--active~li:not(.tw-stepper__step--has-tooltip:hover) .tw-stepper__step-label:not(:active,:focus){opacity:.45}.tw-stepper__step--clickable .tw-stepper__step-label{border-radius:2px;color:#0097c7;color:var(--color-content-accent);line-height:0;transition:color .15s ease-in-out}.np-theme-personal .tw-stepper__step--clickable .tw-stepper__step-label{color:#5d7079;color:var(--color-content-secondary);top:0}.tw-stepper__step--has-tooltip:hover{cursor:pointer}@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-label{color:#5d7079;color:var(--color-content-secondary);font-weight:600;font-weight:var(--font-weight-semi-bold);position:absolute;top:0;transform:translateX(-50%);transition:color .6s ease-in-out;white-space:nowrap}[dir=rtl] .tw-stepper__step-label{transform:translateX(50%)}.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{padding:0;position:relative}[dir=rtl] .tw-stepper-steps{padding:0}.progress-bar-ending{background:linear-gradient(90deg,#00a2dd,#37517e);background:linear-gradient(to right,var(--color-interactive-accent),#37517e);float:left;height:100%;transition:width .6s ease-in-out}[dir=rtl] .progress-bar-ending{background:linear-gradient(270deg,#00a2dd,#37517e);background:linear-gradient(to left,var(--color-interactive-accent),#37517e);float:right}.progress-bar-ending:after{background-color:#37517e;border-radius:4px;content:"";float:right;height:8px;margin-right:-4px;margin-top:-3px;width:8px}[dir=rtl] .progress-bar-ending:after{float:left;margin-left:-4px;margin-right:0}.np-theme-personal .progress-bar-ending{background:linear-gradient(to right,#00a2dd,var(--color-interactive-primary));background:linear-gradient(to right,var(--color-interactive-accent),var(--color-interactive-primary))}[dir=rtl] .np-theme-personal .progress-bar-ending{background:linear-gradient(to left,#00a2dd,var(--color-interactive-primary));background:linear-gradient(to left,var(--color-interactive-accent),var(--color-interactive-primary))}.np-theme-personal .progress-bar-ending:after{background-color:var(--color-interactive-primary)}.np-theme-personal--bright-green .progress-bar-ending,.np-theme-personal--dark .progress-bar-ending,.np-theme-personal--forest-green .progress-bar-ending{background:linear-gradient(to right,#00a2dd,var(--color-forest-green));background:linear-gradient(to right,var(--color-interactive-accent),var(--color-forest-green))}[dir=rtl] .np-theme-personal--bright-green .progress-bar-ending,[dir=rtl] .np-theme-personal--dark .progress-bar-ending,[dir=rtl] .np-theme-personal--forest-green .progress-bar-ending{background:linear-gradient(to left,#00a2dd,var(--color-forest-green));background:linear-gradient(to left,var(--color-interactive-accent),var(--color-forest-green))}.progress-bar-filler{background-color:#00a2dd;background-color:var(--color-interactive-accent);border-bottom-left-radius:1px;border-top-left-radius:1px;float:left;height:100%;transition:width .6s ease-in-out;will-change:width}[dir=rtl] .progress-bar-filler{float:right}.btn-unstyled{background:none;border:none;display:block;margin:0;padding:0}
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;position:absolute;top:0}.tw-stepper__step--active .tw-stepper__step-label{color:#37517e;color:var(--color-content-primary);cursor:default;font-weight:600}.np-theme-personal .tw-stepper__step--active~li:not(.tw-stepper__step--has-tooltip:hover) .tw-stepper__step-label:not(:active,:focus){opacity:.45}.tw-stepper__step--clickable .tw-stepper__step-label{border-radius:2px;color:#0097c7;color:var(--color-content-accent);line-height:0;transition:color .15s ease-in-out}.np-theme-personal .tw-stepper__step--clickable .tw-stepper__step-label{color:#5d7079;color:var(--color-content-secondary);top:0}.tw-stepper__step--has-tooltip:hover{cursor:pointer}@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-label{color:#5d7079;color:var(--color-content-secondary);font-weight:600;font-weight:var(--font-weight-semi-bold);position:absolute;top:0;transform:translateX(-50%);transition:color .6s ease-in-out;white-space:nowrap}[dir=rtl] .tw-stepper__step-label{transform:translateX(50%)}.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{padding:0;position:relative}[dir=rtl] .tw-stepper-steps{padding:0}.progress-bar{-webkit-backface-visibility:hidden;background-color:var(--color-interactive-primary);border-bottom-left-radius:1px;border-top-left-radius:1px;float:left;height:100%;transition:width .6s ease-in-out;will-change:width}[dir=rtl] .progress-bar{float:right}.progress-bar:after{border-radius:4px;content:"";float:right;height:8px;margin-right:-4px;margin-top:-3px;width:8px}[dir=rtl] .progress-bar:after{float:left;margin-left:-4px;margin-right:0}.btn-unstyled{background:none;border:none;display:block;margin:0;padding:0}
@@ -1,11 +1,14 @@
1
1
  import { ButtonHTMLAttributes } from 'react';
2
+ import { PriorityPrimary, PrioritySecondary } from '../common';
2
3
  export type ActionButtonProps = {
4
+ priority?: PriorityPrimary | PrioritySecondary;
3
5
  /**
4
6
  * @deprecated use `children` instead
5
7
  */
6
8
  text?: string;
7
9
  } & ButtonHTMLAttributes<HTMLButtonElement>;
8
10
  declare const ActionButton: import("react").ForwardRefExoticComponent<{
11
+ priority?: "primary" | "secondary" | undefined;
9
12
  /**
10
13
  * @deprecated use `children` instead
11
14
  */
@@ -3,6 +3,7 @@ import { StoryObj } from '@storybook/react';
3
3
  import ActionButton from './ActionButton';
4
4
  declare const _default: {
5
5
  component: import("react").ForwardRefExoticComponent<{
6
+ priority?: "primary" | "secondary" | undefined;
6
7
  text?: string | undefined;
7
8
  } & import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("react").RefAttributes<HTMLButtonElement>>;
8
9
  title: string;
@@ -11,5 +12,4 @@ declare const _default: {
11
12
  export default _default;
12
13
  type Story = StoryObj<typeof ActionButton>;
13
14
  export declare const Basic: Story;
14
- export declare const WithIcon: Story;
15
15
  export declare const Disabled: Story;
@@ -25,7 +25,7 @@ export declare const Focused: import("@storybook/types").StoryAnnotations<import
25
25
  block?: boolean | undefined;
26
26
  disabled?: boolean | undefined;
27
27
  loading?: boolean | undefined;
28
- type?: "link" | "primary" | "pay" | "secondary" | "danger" | "accent" | "negative" | "positive" | undefined;
28
+ type?: "link" | "primary" | "secondary" | "pay" | "danger" | "accent" | "negative" | "positive" | undefined;
29
29
  priority?: "primary" | "secondary" | "tertiary" | undefined;
30
30
  size?: "sm" | "md" | "lg" | "xs" | undefined;
31
31
  form?: string | undefined;
@@ -310,7 +310,7 @@ export declare const Focused: import("@storybook/types").StoryAnnotations<import
310
310
  block?: boolean | undefined;
311
311
  disabled?: boolean | undefined;
312
312
  loading?: boolean | undefined;
313
- type?: "link" | "primary" | "pay" | "secondary" | "danger" | "accent" | "negative" | "positive" | undefined;
313
+ type?: "link" | "primary" | "secondary" | "pay" | "danger" | "accent" | "negative" | "positive" | undefined;
314
314
  priority?: "primary" | "secondary" | "tertiary" | undefined;
315
315
  size?: "sm" | "md" | "lg" | "xs" | undefined;
316
316
  download?: any;
@@ -616,7 +616,7 @@ export declare const Focused: import("@storybook/types").StoryAnnotations<import
616
616
  key?: import("react").Key | null | undefined;
617
617
  disabled?: boolean | undefined;
618
618
  placeholder?: string | undefined;
619
- type?: "link" | "primary" | "pay" | "secondary" | "danger" | "accent" | "negative" | "positive" | undefined;
619
+ type?: "link" | "primary" | "secondary" | "pay" | "danger" | "accent" | "negative" | "positive" | undefined;
620
620
  onChange?: (import("react").FormEventHandler<HTMLButtonElement> & import("react").FormEventHandler<HTMLAnchorElement>) | (import("react").FormEventHandler<HTMLAnchorElement> & import("react").FormEventHandler<HTMLButtonElement>) | undefined;
621
621
  defaultChecked?: boolean | undefined;
622
622
  defaultValue?: string | number | readonly string[] | undefined;
@@ -873,8 +873,8 @@ export declare const Focused: import("@storybook/types").StoryAnnotations<import
873
873
  as?: undefined;
874
874
  download?: any;
875
875
  loading?: boolean | undefined;
876
- block?: boolean | undefined;
877
876
  priority?: "primary" | "secondary" | "tertiary" | undefined;
877
+ block?: boolean | undefined;
878
878
  } | {
879
879
  href?: string | undefined;
880
880
  hrefLang?: string | undefined;
@@ -901,7 +901,7 @@ export declare const Focused: import("@storybook/types").StoryAnnotations<import
901
901
  key?: import("react").Key | null | undefined;
902
902
  disabled?: boolean | undefined;
903
903
  placeholder?: string | undefined;
904
- type?: "link" | "primary" | "pay" | "secondary" | "danger" | "accent" | "negative" | "positive" | undefined;
904
+ type?: "link" | "primary" | "secondary" | "pay" | "danger" | "accent" | "negative" | "positive" | undefined;
905
905
  onChange?: (import("react").FormEventHandler<HTMLButtonElement> & import("react").FormEventHandler<HTMLAnchorElement>) | (import("react").FormEventHandler<HTMLAnchorElement> & import("react").FormEventHandler<HTMLButtonElement>) | undefined;
906
906
  defaultChecked?: boolean | undefined;
907
907
  defaultValue?: string | number | readonly string[] | undefined;
@@ -1158,15 +1158,15 @@ export declare const Focused: import("@storybook/types").StoryAnnotations<import
1158
1158
  as?: undefined;
1159
1159
  download?: any;
1160
1160
  loading?: boolean | undefined;
1161
- block?: boolean | undefined;
1162
1161
  priority?: "primary" | "secondary" | "tertiary" | undefined;
1162
+ block?: boolean | undefined;
1163
1163
  }>;
1164
1164
  export declare const Variants: import("@storybook/types").StoryAnnotations<import("@storybook/react/dist/types-0a347bb9").R, {
1165
1165
  as?: undefined;
1166
1166
  block?: boolean | undefined;
1167
1167
  disabled?: boolean | undefined;
1168
1168
  loading?: boolean | undefined;
1169
- type?: "link" | "primary" | "pay" | "secondary" | "danger" | "accent" | "negative" | "positive" | undefined;
1169
+ type?: "link" | "primary" | "secondary" | "pay" | "danger" | "accent" | "negative" | "positive" | undefined;
1170
1170
  priority?: "primary" | "secondary" | "tertiary" | undefined;
1171
1171
  size?: "sm" | "md" | "lg" | "xs" | undefined;
1172
1172
  form?: string | undefined;
@@ -1451,7 +1451,7 @@ export declare const Variants: import("@storybook/types").StoryAnnotations<impor
1451
1451
  block?: boolean | undefined;
1452
1452
  disabled?: boolean | undefined;
1453
1453
  loading?: boolean | undefined;
1454
- type?: "link" | "primary" | "pay" | "secondary" | "danger" | "accent" | "negative" | "positive" | undefined;
1454
+ type?: "link" | "primary" | "secondary" | "pay" | "danger" | "accent" | "negative" | "positive" | undefined;
1455
1455
  priority?: "primary" | "secondary" | "tertiary" | undefined;
1456
1456
  size?: "sm" | "md" | "lg" | "xs" | undefined;
1457
1457
  download?: any;
@@ -1757,7 +1757,7 @@ export declare const Variants: import("@storybook/types").StoryAnnotations<impor
1757
1757
  key?: import("react").Key | null | undefined;
1758
1758
  disabled?: boolean | undefined;
1759
1759
  placeholder?: string | undefined;
1760
- type?: "link" | "primary" | "pay" | "secondary" | "danger" | "accent" | "negative" | "positive" | undefined;
1760
+ type?: "link" | "primary" | "secondary" | "pay" | "danger" | "accent" | "negative" | "positive" | undefined;
1761
1761
  onChange?: (import("react").FormEventHandler<HTMLButtonElement> & import("react").FormEventHandler<HTMLAnchorElement>) | (import("react").FormEventHandler<HTMLAnchorElement> & import("react").FormEventHandler<HTMLButtonElement>) | undefined;
1762
1762
  defaultChecked?: boolean | undefined;
1763
1763
  defaultValue?: string | number | readonly string[] | undefined;
@@ -2014,8 +2014,8 @@ export declare const Variants: import("@storybook/types").StoryAnnotations<impor
2014
2014
  as?: undefined;
2015
2015
  download?: any;
2016
2016
  loading?: boolean | undefined;
2017
- block?: boolean | undefined;
2018
2017
  priority?: "primary" | "secondary" | "tertiary" | undefined;
2018
+ block?: boolean | undefined;
2019
2019
  } | {
2020
2020
  href?: string | undefined;
2021
2021
  hrefLang?: string | undefined;
@@ -2042,7 +2042,7 @@ export declare const Variants: import("@storybook/types").StoryAnnotations<impor
2042
2042
  key?: import("react").Key | null | undefined;
2043
2043
  disabled?: boolean | undefined;
2044
2044
  placeholder?: string | undefined;
2045
- type?: "link" | "primary" | "pay" | "secondary" | "danger" | "accent" | "negative" | "positive" | undefined;
2045
+ type?: "link" | "primary" | "secondary" | "pay" | "danger" | "accent" | "negative" | "positive" | undefined;
2046
2046
  onChange?: (import("react").FormEventHandler<HTMLButtonElement> & import("react").FormEventHandler<HTMLAnchorElement>) | (import("react").FormEventHandler<HTMLAnchorElement> & import("react").FormEventHandler<HTMLButtonElement>) | undefined;
2047
2047
  defaultChecked?: boolean | undefined;
2048
2048
  defaultValue?: string | number | readonly string[] | undefined;
@@ -2299,15 +2299,15 @@ export declare const Variants: import("@storybook/types").StoryAnnotations<impor
2299
2299
  as?: undefined;
2300
2300
  download?: any;
2301
2301
  loading?: boolean | undefined;
2302
- block?: boolean | undefined;
2303
2302
  priority?: "primary" | "secondary" | "tertiary" | undefined;
2303
+ block?: boolean | undefined;
2304
2304
  }>;
2305
2305
  export declare const SocialMedia: import("@storybook/types").StoryAnnotations<import("@storybook/react/dist/types-0a347bb9").R, {
2306
2306
  as?: undefined;
2307
2307
  block?: boolean | undefined;
2308
2308
  disabled?: boolean | undefined;
2309
2309
  loading?: boolean | undefined;
2310
- type?: "link" | "primary" | "pay" | "secondary" | "danger" | "accent" | "negative" | "positive" | undefined;
2310
+ type?: "link" | "primary" | "secondary" | "pay" | "danger" | "accent" | "negative" | "positive" | undefined;
2311
2311
  priority?: "primary" | "secondary" | "tertiary" | undefined;
2312
2312
  size?: "sm" | "md" | "lg" | "xs" | undefined;
2313
2313
  form?: string | undefined;
@@ -2592,7 +2592,7 @@ export declare const SocialMedia: import("@storybook/types").StoryAnnotations<im
2592
2592
  block?: boolean | undefined;
2593
2593
  disabled?: boolean | undefined;
2594
2594
  loading?: boolean | undefined;
2595
- type?: "link" | "primary" | "pay" | "secondary" | "danger" | "accent" | "negative" | "positive" | undefined;
2595
+ type?: "link" | "primary" | "secondary" | "pay" | "danger" | "accent" | "negative" | "positive" | undefined;
2596
2596
  priority?: "primary" | "secondary" | "tertiary" | undefined;
2597
2597
  size?: "sm" | "md" | "lg" | "xs" | undefined;
2598
2598
  download?: any;
@@ -2898,7 +2898,7 @@ export declare const SocialMedia: import("@storybook/types").StoryAnnotations<im
2898
2898
  key?: import("react").Key | null | undefined;
2899
2899
  disabled?: boolean | undefined;
2900
2900
  placeholder?: string | undefined;
2901
- type?: "link" | "primary" | "pay" | "secondary" | "danger" | "accent" | "negative" | "positive" | undefined;
2901
+ type?: "link" | "primary" | "secondary" | "pay" | "danger" | "accent" | "negative" | "positive" | undefined;
2902
2902
  onChange?: (import("react").FormEventHandler<HTMLButtonElement> & import("react").FormEventHandler<HTMLAnchorElement>) | (import("react").FormEventHandler<HTMLAnchorElement> & import("react").FormEventHandler<HTMLButtonElement>) | undefined;
2903
2903
  defaultChecked?: boolean | undefined;
2904
2904
  defaultValue?: string | number | readonly string[] | undefined;
@@ -3155,8 +3155,8 @@ export declare const SocialMedia: import("@storybook/types").StoryAnnotations<im
3155
3155
  as?: undefined;
3156
3156
  download?: any;
3157
3157
  loading?: boolean | undefined;
3158
- block?: boolean | undefined;
3159
3158
  priority?: "primary" | "secondary" | "tertiary" | undefined;
3159
+ block?: boolean | undefined;
3160
3160
  } | {
3161
3161
  href?: string | undefined;
3162
3162
  hrefLang?: string | undefined;
@@ -3183,7 +3183,7 @@ export declare const SocialMedia: import("@storybook/types").StoryAnnotations<im
3183
3183
  key?: import("react").Key | null | undefined;
3184
3184
  disabled?: boolean | undefined;
3185
3185
  placeholder?: string | undefined;
3186
- type?: "link" | "primary" | "pay" | "secondary" | "danger" | "accent" | "negative" | "positive" | undefined;
3186
+ type?: "link" | "primary" | "secondary" | "pay" | "danger" | "accent" | "negative" | "positive" | undefined;
3187
3187
  onChange?: (import("react").FormEventHandler<HTMLButtonElement> & import("react").FormEventHandler<HTMLAnchorElement>) | (import("react").FormEventHandler<HTMLAnchorElement> & import("react").FormEventHandler<HTMLButtonElement>) | undefined;
3188
3188
  defaultChecked?: boolean | undefined;
3189
3189
  defaultValue?: string | number | readonly string[] | undefined;
@@ -3440,15 +3440,15 @@ export declare const SocialMedia: import("@storybook/types").StoryAnnotations<im
3440
3440
  as?: undefined;
3441
3441
  download?: any;
3442
3442
  loading?: boolean | undefined;
3443
- block?: boolean | undefined;
3444
3443
  priority?: "primary" | "secondary" | "tertiary" | undefined;
3444
+ block?: boolean | undefined;
3445
3445
  }>;
3446
3446
  export declare const SocialMediaMobile: import("@storybook/types").StoryAnnotations<import("@storybook/react/dist/types-0a347bb9").R, {
3447
3447
  as?: undefined;
3448
3448
  block?: boolean | undefined;
3449
3449
  disabled?: boolean | undefined;
3450
3450
  loading?: boolean | undefined;
3451
- type?: "link" | "primary" | "pay" | "secondary" | "danger" | "accent" | "negative" | "positive" | undefined;
3451
+ type?: "link" | "primary" | "secondary" | "pay" | "danger" | "accent" | "negative" | "positive" | undefined;
3452
3452
  priority?: "primary" | "secondary" | "tertiary" | undefined;
3453
3453
  size?: "sm" | "md" | "lg" | "xs" | undefined;
3454
3454
  form?: string | undefined;
@@ -3733,7 +3733,7 @@ export declare const SocialMediaMobile: import("@storybook/types").StoryAnnotati
3733
3733
  block?: boolean | undefined;
3734
3734
  disabled?: boolean | undefined;
3735
3735
  loading?: boolean | undefined;
3736
- type?: "link" | "primary" | "pay" | "secondary" | "danger" | "accent" | "negative" | "positive" | undefined;
3736
+ type?: "link" | "primary" | "secondary" | "pay" | "danger" | "accent" | "negative" | "positive" | undefined;
3737
3737
  priority?: "primary" | "secondary" | "tertiary" | undefined;
3738
3738
  size?: "sm" | "md" | "lg" | "xs" | undefined;
3739
3739
  download?: any;
@@ -4039,7 +4039,7 @@ export declare const SocialMediaMobile: import("@storybook/types").StoryAnnotati
4039
4039
  key?: import("react").Key | null | undefined;
4040
4040
  disabled?: boolean | undefined;
4041
4041
  placeholder?: string | undefined;
4042
- type?: "link" | "primary" | "pay" | "secondary" | "danger" | "accent" | "negative" | "positive" | undefined;
4042
+ type?: "link" | "primary" | "secondary" | "pay" | "danger" | "accent" | "negative" | "positive" | undefined;
4043
4043
  onChange?: (import("react").FormEventHandler<HTMLButtonElement> & import("react").FormEventHandler<HTMLAnchorElement>) | (import("react").FormEventHandler<HTMLAnchorElement> & import("react").FormEventHandler<HTMLButtonElement>) | undefined;
4044
4044
  defaultChecked?: boolean | undefined;
4045
4045
  defaultValue?: string | number | readonly string[] | undefined;
@@ -4296,8 +4296,8 @@ export declare const SocialMediaMobile: import("@storybook/types").StoryAnnotati
4296
4296
  as?: undefined;
4297
4297
  download?: any;
4298
4298
  loading?: boolean | undefined;
4299
- block?: boolean | undefined;
4300
4299
  priority?: "primary" | "secondary" | "tertiary" | undefined;
4300
+ block?: boolean | undefined;
4301
4301
  } | {
4302
4302
  href?: string | undefined;
4303
4303
  hrefLang?: string | undefined;
@@ -4324,7 +4324,7 @@ export declare const SocialMediaMobile: import("@storybook/types").StoryAnnotati
4324
4324
  key?: import("react").Key | null | undefined;
4325
4325
  disabled?: boolean | undefined;
4326
4326
  placeholder?: string | undefined;
4327
- type?: "link" | "primary" | "pay" | "secondary" | "danger" | "accent" | "negative" | "positive" | undefined;
4327
+ type?: "link" | "primary" | "secondary" | "pay" | "danger" | "accent" | "negative" | "positive" | undefined;
4328
4328
  onChange?: (import("react").FormEventHandler<HTMLButtonElement> & import("react").FormEventHandler<HTMLAnchorElement>) | (import("react").FormEventHandler<HTMLAnchorElement> & import("react").FormEventHandler<HTMLButtonElement>) | undefined;
4329
4329
  defaultChecked?: boolean | undefined;
4330
4330
  defaultValue?: string | number | readonly string[] | undefined;
@@ -4581,6 +4581,6 @@ export declare const SocialMediaMobile: import("@storybook/types").StoryAnnotati
4581
4581
  as?: undefined;
4582
4582
  download?: any;
4583
4583
  loading?: boolean | undefined;
4584
- block?: boolean | undefined;
4585
4584
  priority?: "primary" | "secondary" | "tertiary" | undefined;
4585
+ block?: boolean | undefined;
4586
4586
  }>;
@@ -9,7 +9,7 @@ export interface CircularButtonProps {
9
9
  children: string;
10
10
  disabled?: boolean;
11
11
  icon: React.ReactElement<any>;
12
- onClick: (...args: any[])=>any;
12
+ onClick?: (...args: any[])=>any;
13
13
  priority?: CircularButtonPriority;
14
14
  type?: CircularButtonType;
15
15
  }
@@ -1,2 +1,11 @@
1
+ import * as React from 'react';
2
+ import { Layout } from '../propsValues/layouts';
3
+ export interface FlowHeaderProps {
4
+ bottomContent?: React.ReactNode;
5
+ className?: string;
6
+ layout?: Layout.VERTICAL | Layout.HORIZONTAL;
7
+ leftContent?: React.ReactNode;
8
+ rightContent?: React.ReactNode;
9
+ }
10
+ declare const FlowHeader: React.ForwardRefExoticComponent<FlowHeaderProps & React.RefAttributes<HTMLDivElement>>;
1
11
  export default FlowHeader;
2
- declare const FlowHeader: import("react").ForwardRefExoticComponent<import("react").RefAttributes<any>>;
@@ -1,4 +1,4 @@
1
- export { default as useClientWidth } from "./useClientWidth";
1
+ export { useClientWidth } from "./useClientWidth/useClientWidth";
2
2
  export { default as useConditionalListener } from "./useConditionalListener";
3
3
  export { default as useDirection } from "./useDirection";
4
4
  export { default as useHasIntersected } from "./useHasIntersected";
@@ -1,9 +1,10 @@
1
- export function useClientWidth({ ref, throttleMs }: {
2
- ref: any;
3
- throttleMs?: number | undefined;
4
- }): null[];
5
- export namespace useClientWidth {
6
- export { THROTTLE_MS };
7
- }
8
- declare const THROTTLE_MS: 100;
1
+ /// <reference types="react" />
2
+ type FlowNavigationProps = {
3
+ ref: React.RefObject<HTMLElement> | Window | undefined;
4
+ throttleMs?: number;
5
+ };
6
+ export declare const useClientWidth: {
7
+ ({ ref, throttleMs }: FlowNavigationProps): (number | null)[];
8
+ THROTTLE_MS: number;
9
+ };
9
10
  export {};
@@ -3,7 +3,7 @@ import * as React from 'react';
3
3
  export interface DecisionOptions {
4
4
  description?: React.ReactNode;
5
5
  disabled?: boolean;
6
- href?: any;
6
+ href?: string;
7
7
  target?: "_self" | "_blank" | "_parent" | "_top";
8
8
  media?: {
9
9
  block: React.ReactNode;
@@ -3,7 +3,7 @@ import * as React from 'react';
3
3
  export interface DefinitionListDefinitions {
4
4
  action?: {
5
5
  label: string;
6
- onClick: (...args: any[])=>any;
6
+ onClick?: (...args: any[])=>any;
7
7
  };
8
8
  title: React.ReactNode;
9
9
  value: React.ReactNode;
@@ -1,34 +1,16 @@
1
- import * as React from 'react';
2
-
3
- export interface FlowNavigationSteps {
4
- label: React.ReactNode;
5
- onClick?: (...args: any[])=>any;
6
- hoverLabel?: React.ReactNode;
7
- }
8
-
9
- export interface FlowNavigationProps {
10
- activeStep?: number;
11
- /**
12
- * An Avatar
13
- */
14
- avatar?: React.ReactElement<any>;
15
- logo?: React.ReactNode;
16
- /**
17
- * Called when the close button is clicked. If not provided the close button won't show
18
- */
19
- onClose?: (...args: any[])=>any;
20
- /**
21
- * Called when the back button is clicked. If not provided the back button won't show. The back button only shows on small screens
22
- */
23
- onGoBack?: (...args: any[])=>any;
24
- done?: boolean;
25
- /**
26
- * Steps to be displayed in stepper. If you don't need the stepper, please use OverlayHeader instead
27
- */
28
- steps: FlowNavigationSteps[];
29
- }
30
-
31
- declare const FlowNavigation: React.FC<FlowNavigationProps>;
32
-
33
- export default FlowNavigation;
34
-
1
+ import React from 'react';
2
+ import { Step } from '../stepper/Stepper';
3
+ export interface FlowNavigationProps {
4
+ activeStep?: number;
5
+ avatar?: Element;
6
+ logo?: React.ReactNode;
7
+ done?: boolean;
8
+ /** Called when the close button is clicked. If not provided the close button won't show */
9
+ onClose?: () => void;
10
+ /** Called when the back button is clicked. If not provided the back button won't show. The back button only shows on small screens */
11
+ onGoBack?: () => void;
12
+ /** Steps to be displayed in stepper. If you don't need the stepper, please use OverlayHeader instead */
13
+ steps: Step[];
14
+ }
15
+ declare const FlowNavigation: ({ activeStep, avatar, logo, done, onClose, onGoBack, steps, }: FlowNavigationProps) => JSX.Element;
16
+ export default FlowNavigation;
@@ -37,7 +37,7 @@ export { default as Drawer } from './drawer';
37
37
  export { default as DropFade } from './dropFade';
38
38
  export { default as DynamicFieldDefinitionList } from './dynamicFieldDefinitionList';
39
39
  export { default as Emphasis } from './emphasis';
40
- export { default as FlowNavigation } from './flowNavigation';
40
+ export { default as FlowNavigation } from './flowNavigation/FlowNavigation';
41
41
  export { default as Header } from './header';
42
42
  export { default as Image } from './image';
43
43
  export { default as Info } from './info';
@@ -73,7 +73,7 @@ export { default as SlidingPanel } from './slidingPanel';
73
73
  export { default as SnackbarPortal } from './snackbar/Snackbar';
74
74
  export { default as SnackbarProvider } from './snackbar/SnackbarProvider';
75
75
  export { default as StatusIcon } from './statusIcon/StatusIcon';
76
- export { default as Stepper } from './stepper';
76
+ export { default as Stepper } from './stepper/Stepper';
77
77
  export { default as Sticky } from './sticky';
78
78
  export { default as Summary } from './summary';
79
79
  export { default as Switch } from './switch';
@@ -1,7 +1,7 @@
1
1
  import { ElementType, FC, ReactNode } from 'react';
2
2
  type ListItemProps = {
3
3
  title: ReactNode;
4
- value: string;
4
+ value: ReactNode;
5
5
  media?: ReactNode;
6
6
  action?: ReactNode;
7
7
  className?: string;
@@ -2,7 +2,7 @@
2
2
  declare const _default: {
3
3
  component: import("react").FC<{
4
4
  title: import("react").ReactNode;
5
- value: string;
5
+ value: import("react").ReactNode;
6
6
  media?: import("react").ReactNode;
7
7
  action?: import("react").ReactNode;
8
8
  className?: string | undefined;
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
 
3
3
  export interface SnackbarAction {
4
4
  label: string;
5
- onClick: (...args: any[])=>any;
5
+ onClick?: (...args: any[])=>any;
6
6
  }
7
7
 
8
8
  export type SnackbarTheme = "light" | "dark";
@@ -1,18 +1,13 @@
1
- import * as React from 'react';
2
-
3
- export interface StepperSteps {
4
- label: React.ReactNode;
5
- onClick?: (...args: any[])=>any;
6
- hoverLabel?: React.ReactNode;
7
- }
8
-
9
- export interface StepperProps {
10
- steps: StepperSteps[];
11
- activeStep?: number;
12
- className?: string;
13
- }
14
-
15
- declare const Stepper: React.FC<StepperProps>;
16
-
17
- export default Stepper;
18
-
1
+ import * as React from 'react';
2
+ export interface Step {
3
+ label: React.ReactNode;
4
+ onClick?: () => void;
5
+ hoverLabel?: React.ReactNode;
6
+ }
7
+ export interface StepperProps {
8
+ steps: Step[];
9
+ activeStep?: number;
10
+ className?: string;
11
+ }
12
+ declare const Stepper: ({ steps, activeStep, className }: StepperProps) => JSX.Element | null;
13
+ export default Stepper;