@nanoporetech-digital/components 8.7.2 → 8.9.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 (147) hide show
  1. package/dist/cjs/{fade-NeUskjyB.js → fade-DBKqk3wh.js} +1 -1
  2. package/dist/cjs/{fullscreen-D5cgtwoy.js → fullscreen-lcdCtrG6.js} +1 -1
  3. package/dist/cjs/index-DGttnXif.js +4 -0
  4. package/dist/cjs/{lazyload-Dm1NcTJ1.js → lazyload-BjSSEx9f.js} +1 -1
  5. package/dist/cjs/loader.cjs.js +1 -1
  6. package/dist/cjs/nano-avatar_5.cjs.entry.js +7 -7
  7. package/dist/cjs/nano-components.cjs.js +1 -1
  8. package/dist/cjs/nano-datalist_3.cjs.entry.js +4 -0
  9. package/dist/cjs/nano-icon-button_2.cjs.entry.js +2 -2
  10. package/dist/cjs/nano-input-otp.cjs.entry.js +710 -0
  11. package/dist/cjs/nano-intersection-observe.cjs.entry.js +1 -1
  12. package/dist/cjs/nano-masked-overflow.cjs.entry.js +3 -3
  13. package/dist/cjs/nano-menu-drawer.cjs.entry.js +2 -2
  14. package/dist/cjs/nano-more-less.cjs.entry.js +2 -2
  15. package/dist/cjs/nano-rating.cjs.entry.js +4 -4
  16. package/dist/cjs/nano-resize-observe.cjs.entry.js +2 -2
  17. package/dist/cjs/nano-slide.cjs.entry.js +1 -1
  18. package/dist/cjs/{nano-slides-ycRcUf0g.js → nano-slides-CryCLfsK.js} +7 -7
  19. package/dist/cjs/nano-slides.cjs.entry.js +1 -1
  20. package/dist/cjs/nano-sortable.cjs.entry.js +1 -1
  21. package/dist/cjs/nano-step-accordion.cjs.entry.js +1 -1
  22. package/dist/cjs/nano-step-breadcrumb.cjs.entry.js +2 -2
  23. package/dist/cjs/nano-sticker.cjs.entry.js +2 -2
  24. package/dist/cjs/nano-tab-content.cjs.entry.js +2 -2
  25. package/dist/cjs/nano-tab.cjs.entry.js +2 -2
  26. package/dist/cjs/nano-table.cjs.entry.js +2 -2
  27. package/dist/cjs/{page-dots--38yVfTZ.js → page-dots-DR1fLjRi.js} +1 -1
  28. package/dist/collection/collection-manifest.json +1 -0
  29. package/dist/collection/components/breadcrumb/breadcrumb.js +1 -1
  30. package/dist/collection/components/input-otp/input-otp-interface.js +1 -0
  31. package/dist/collection/components/input-otp/input-otp.css +184 -0
  32. package/dist/collection/components/input-otp/input-otp.js +1044 -0
  33. package/dist/collection/components/intersection-observe/intersection-observe.js +1 -1
  34. package/dist/collection/components/masked-overflow/masked-overflow.js +3 -3
  35. package/dist/collection/components/menu-drawer/menu-drawer.js +2 -2
  36. package/dist/collection/components/more-less/more-less.js +2 -2
  37. package/dist/collection/components/rating/rating.js +4 -4
  38. package/dist/collection/components/resize-observe/resize-observe.js +2 -2
  39. package/dist/collection/components/select/select.js +7 -7
  40. package/dist/collection/components/slides/slide.js +1 -1
  41. package/dist/collection/components/slides/slides.js +3 -3
  42. package/dist/collection/components/sortable/sortable.js +1 -1
  43. package/dist/collection/components/step-accordion/step-accordion.js +1 -1
  44. package/dist/collection/components/step-breadcrumb/step-breadcrumb.js +2 -2
  45. package/dist/collection/components/sticker/sticker.js +2 -2
  46. package/dist/collection/components/table/table.js +2 -2
  47. package/dist/collection/components/tabs/tab-content.js +2 -2
  48. package/dist/collection/components/tabs/tab.js +2 -2
  49. package/dist/collection/components/tag/tag.js +24 -0
  50. package/dist/collection/components/tooltip/tooltip.js +2 -2
  51. package/dist/components/masked-overflow.js +3 -3
  52. package/dist/components/nano-input-otp.d.ts +11 -0
  53. package/dist/components/nano-input-otp.js +749 -0
  54. package/dist/components/nano-intersection-observe.js +1 -1
  55. package/dist/components/nano-menu-drawer.js +2 -2
  56. package/dist/components/nano-more-less.js +2 -2
  57. package/dist/components/nano-rating.js +4 -4
  58. package/dist/components/nano-slide.js +1 -1
  59. package/dist/components/nano-sortable.js +1 -1
  60. package/dist/components/nano-step-accordion.js +1 -1
  61. package/dist/components/nano-step-breadcrumb.js +2 -2
  62. package/dist/components/nano-tab-content.js +2 -2
  63. package/dist/components/nano-tab.js +2 -2
  64. package/dist/components/nano-table.js +2 -2
  65. package/dist/components/resize-observe.js +2 -2
  66. package/dist/components/select.js +7 -7
  67. package/dist/components/slides.js +3 -3
  68. package/dist/components/sticker.js +2 -2
  69. package/dist/components/tag.js +6 -1
  70. package/dist/components/tooltip.js +2 -2
  71. package/dist/esm/{fade-BA6b-Fk9.js → fade-D980mOvm.js} +1 -1
  72. package/dist/esm/{fullscreen-De_yN4cg.js → fullscreen-CjInlYb9.js} +1 -1
  73. package/dist/esm/index-BM3Om9WE.js +4 -0
  74. package/dist/esm/{lazyload-Cl8k3tPs.js → lazyload-B9B4e3ZI.js} +1 -1
  75. package/dist/esm/loader.js +1 -1
  76. package/dist/esm/nano-avatar_5.entry.js +7 -7
  77. package/dist/esm/nano-components.js +1 -1
  78. package/dist/esm/nano-datalist_3.entry.js +4 -0
  79. package/dist/esm/nano-icon-button_2.entry.js +2 -2
  80. package/dist/esm/nano-input-otp.entry.js +708 -0
  81. package/dist/esm/nano-intersection-observe.entry.js +1 -1
  82. package/dist/esm/nano-masked-overflow.entry.js +3 -3
  83. package/dist/esm/nano-menu-drawer.entry.js +2 -2
  84. package/dist/esm/nano-more-less.entry.js +2 -2
  85. package/dist/esm/nano-rating.entry.js +4 -4
  86. package/dist/esm/nano-resize-observe.entry.js +2 -2
  87. package/dist/esm/nano-slide.entry.js +1 -1
  88. package/dist/esm/{nano-slides-GrbOydfa.js → nano-slides-xbY6lXX9.js} +7 -7
  89. package/dist/esm/nano-slides.entry.js +1 -1
  90. package/dist/esm/nano-sortable.entry.js +1 -1
  91. package/dist/esm/nano-step-accordion.entry.js +1 -1
  92. package/dist/esm/nano-step-breadcrumb.entry.js +2 -2
  93. package/dist/esm/nano-sticker.entry.js +2 -2
  94. package/dist/esm/nano-tab-content.entry.js +2 -2
  95. package/dist/esm/nano-tab.entry.js +2 -2
  96. package/dist/esm/nano-table.entry.js +2 -2
  97. package/dist/esm/{page-dots-CSf81OuJ.js → page-dots-CCfERISy.js} +1 -1
  98. package/dist/nano-components/{fade-BA6b-Fk9.js → fade-D980mOvm.js} +1 -1
  99. package/dist/nano-components/{fullscreen-De_yN4cg.js → fullscreen-CjInlYb9.js} +1 -1
  100. package/dist/nano-components/lazyload-B9B4e3ZI.js +4 -0
  101. package/dist/nano-components/nano-avatar_5.entry.js +1 -1
  102. package/dist/nano-components/nano-components.css +1 -1
  103. package/dist/nano-components/nano-components.esm.js +1 -1
  104. package/dist/nano-components/nano-datalist_3.entry.js +1 -1
  105. package/dist/nano-components/nano-icon-button_2.entry.js +1 -1
  106. package/dist/nano-components/nano-input-otp.entry.js +4 -0
  107. package/dist/nano-components/nano-intersection-observe.entry.js +1 -1
  108. package/dist/nano-components/nano-masked-overflow.entry.js +1 -1
  109. package/dist/nano-components/nano-menu-drawer.entry.js +1 -1
  110. package/dist/nano-components/nano-more-less.entry.js +1 -1
  111. package/dist/nano-components/nano-rating.entry.js +1 -1
  112. package/dist/nano-components/nano-resize-observe.entry.js +1 -1
  113. package/dist/nano-components/nano-slide.entry.js +1 -1
  114. package/dist/nano-components/{nano-slides-GrbOydfa.js → nano-slides-xbY6lXX9.js} +3 -3
  115. package/dist/nano-components/nano-slides.entry.js +1 -1
  116. package/dist/nano-components/nano-sortable.entry.js +1 -1
  117. package/dist/nano-components/nano-step-accordion.entry.js +1 -1
  118. package/dist/nano-components/nano-step-breadcrumb.entry.js +1 -1
  119. package/dist/nano-components/nano-sticker.entry.js +1 -1
  120. package/dist/nano-components/nano-tab-content.entry.js +1 -1
  121. package/dist/nano-components/nano-tab.entry.js +1 -1
  122. package/dist/nano-components/nano-table.entry.js +1 -1
  123. package/dist/nano-components/{page-dots-CSf81OuJ.js → page-dots-CCfERISy.js} +1 -1
  124. package/dist/style/components.css +1 -1
  125. package/dist/style/components.css.map +1 -1
  126. package/dist/style/nano.css +1 -1
  127. package/dist/style/nano.css.map +1 -1
  128. package/dist/types/components/input-otp/input-otp-interface.d.ts +24 -0
  129. package/dist/types/components/input-otp/input-otp.d.ts +281 -0
  130. package/dist/types/components/tag/tag.d.ts +4 -0
  131. package/dist/types/components.d.ts +189 -0
  132. package/docs-json.json +824 -183
  133. package/docs-vscode.json +83 -0
  134. package/hydrate/index.js +786 -45
  135. package/hydrate/index.mjs +786 -45
  136. package/package.json +2 -2
  137. package/dist/nano-components/lazyload-Cl8k3tPs.js +0 -4
  138. /package/dist/types/builds/{QrfEi4pt → HitvqeWT}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/generate-vue-component.d.ts +0 -0
  139. /package/dist/types/builds/{QrfEi4pt → HitvqeWT}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/index.d.ts +0 -0
  140. /package/dist/types/builds/{QrfEi4pt → HitvqeWT}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/output-vue.d.ts +0 -0
  141. /package/dist/types/builds/{QrfEi4pt → HitvqeWT}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/plugin.d.ts +0 -0
  142. /package/dist/types/builds/{QrfEi4pt → HitvqeWT}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/types.d.ts +0 -0
  143. /package/dist/types/builds/{QrfEi4pt → HitvqeWT}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/utils.d.ts +0 -0
  144. /package/dist/types/builds/{QrfEi4pt → HitvqeWT}/0/Digital/nano-components/packages/components/.stencil/stencil.config.d.ts +0 -0
  145. /package/dist/types/builds/{QrfEi4pt → HitvqeWT}/0/Digital/nano-components/packages/components/.stencil/stencil.config.prod.d.ts +0 -0
  146. /package/dist/types/builds/{QrfEi4pt → HitvqeWT}/0/Digital/nano-components/packages/components/.stencil/testing/mocks/intersection-observer.d.ts +0 -0
  147. /package/dist/types/builds/{QrfEi4pt → HitvqeWT}/0/Digital/nano-components/packages/components/.stencil/wdio.conf.d.ts +0 -0
package/hydrate/index.js CHANGED
@@ -9790,7 +9790,7 @@ const DateRegxps = {
9790
9790
  m: '(\\d{1,2})',
9791
9791
  y: '(\\d{4})',
9792
9792
  };
9793
- let inputIds$1 = 0;
9793
+ let inputIds$2 = 0;
9794
9794
  /**
9795
9795
  * Enables date selection and input in a form.
9796
9796
  *
@@ -9816,7 +9816,7 @@ class DateInput {
9816
9816
  input;
9817
9817
  directInput = false;
9818
9818
  dateOrderIndeces = { d: 0, m: 1, y: 3 };
9819
- inputId = `nano-input-${inputIds$1++}`;
9819
+ inputId = `nano-input-${inputIds$2++}`;
9820
9820
  locale = window.navigator.languages ||
9821
9821
  window.navigator.language ||
9822
9822
  undefined;
@@ -17041,7 +17041,7 @@ const FormControl = (props, children) => {
17041
17041
 
17042
17042
  const inputCss = ".sc-nano-input-h, *.sc-nano-input, *.sc-nano-input::before, *.sc-nano-input::after {\n box-sizing: border-box;\n}\n[hidden].sc-nano-input {\n display: none !important;\n}\n@media (prefers-reduced-motion: reduce) {\n .sc-nano-input-h, *.sc-nano-input, *.sc-nano-input::before, *.sc-nano-input::after {\n animation-duration: 0.01ms !important;\n animation-iteration-count: 1 !important;\n transition-duration: 0.01ms !important;\n scroll-behavior: auto !important;\n }\n }.sc-nano-input-h, *.sc-nano-input, *.sc-nano-input::before, *.sc-nano-input::after {\n box-sizing: border-box;\n}\n[hidden].sc-nano-input {\n display: none !important;\n}\n@media (prefers-reduced-motion: reduce) {\n .sc-nano-input-h, *.sc-nano-input, *.sc-nano-input::before, *.sc-nano-input::after {\n animation-duration: 0.01ms !important;\n animation-iteration-count: 1 !important;\n transition-duration: 0.01ms !important;\n scroll-behavior: auto !important;\n }\n }slot-fb.sc-nano-input {\n display: contents !important;\n}\n\n[disabled].sc-nano-input-h:not([disabled=false]) {\n opacity: 0.5;\n position: relative;\n}\n[disabled].sc-nano-input-h:not([disabled=false])::after {\n content: \"\";\n position: absolute;\n inset: 0;\n cursor: not-allowed;\n}\n\n.form-ctrl.sc-nano-input {\n min-inline-size: 100%;\n display: block;\n}\n.form-ctrl.has-helper-end.sc-nano-input {\n display: flex;\n gap: 1rem;\n container-type: inline-size;\n}\n.form-ctrl.has-helper-end.sc-nano-input .form-ctrl__wrapper.sc-nano-input {\n flex: 1 1 100%;\n}\n.form-ctrl.has-helper-end.sc-nano-input .form-ctrl__helper-end.sc-nano-input {\n display: none;\n}\n@container (min-width: 350px) {\n .form-ctrl.has-helper-end .form-ctrl__helper-end {\n display: block !important;\n }\n .form-ctrl.has-helper-end .form-ctrl__helper {\n display: none !important;\n }\n}\n\n.form-ctrl__wrapper.sc-nano-input {\n display: block;\n}\n\nlabel.sc-nano-input, .form-ctrl__more.sc-nano-input, .form-ctrl__error.sc-nano-input, .form-ctrl__helper.sc-nano-input {\n display: block;\n}\nlabel.visually-hide.sc-nano-input, .form-ctrl__more.visually-hide.sc-nano-input, .form-ctrl__error.visually-hide.sc-nano-input, .form-ctrl__helper.visually-hide.sc-nano-input {\n clip-path: inset(50%);\n block-size: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n inline-size: 1px;\n}\n\n.form-ctrl__float-label.sc-nano-input {\n padding-block: 0;\n padding-inline: var(--padding-start) 0;\n color: var(--label-color);\n position: absolute;\n font-size: 1em;\n transform: translateY(-50%);\n inset-block-start: 50%;\n transition: all 0.125s ease-in;\n opacity: 1;\n}\n.has-focus.sc-nano-input-h .form-ctrl__float-label.sc-nano-input, .has-value.sc-nano-input-h .form-ctrl__float-label.sc-nano-input {\n transform: none;\n font-size: 0.75em;\n opacity: 0.7;\n inset-block-start: var(--padding-top);\n}\n.form-ctrl__float-label.sc-nano-input .form-ctrl__label-charcount.sc-nano-input {\n opacity: 0;\n transition: opacity 0.125s ease-in;\n}\n.has-focus.sc-nano-input-h .form-ctrl__float-label.sc-nano-input .form-ctrl__label-charcount.sc-nano-input, .has-value.sc-nano-input-h .form-ctrl__float-label.sc-nano-input .form-ctrl__label-charcount.sc-nano-input {\n opacity: 1;\n}\n\n.form-ctrl__label.sc-nano-input {\n color: var(--label-color);\n font-size: var(--label-font-size);\n padding-block-end: var(--padding-bottom);\n line-height: 1;\n display: flex;\n align-items: center;\n}\n.form-ctrl__label.sc-nano-input .form-ctrl__label-wrap.sc-nano-input {\n flex: 1;\n overflow-x: clip;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.form-ctrl__label.sc-nano-input .form-ctrl__label-placeholder.sc-nano-input {\n margin-block: unset;\n margin-inline: 0 5px;\n opacity: 0;\n appearance: none;\n transition: 0.3s ease opacity;\n font-size: 0.85em;\n}\n.form-ctrl__label.sc-nano-input .form-ctrl__label-charcount.sc-nano-input {\n margin-block: unset;\n margin-inline: auto 0;\n font-size: var(--nano-font-size-2xs);\n opacity: 0.5;\n}\n.has-value.sc-nano-input-h .form-ctrl__label.sc-nano-input .form-ctrl__label-placeholder.sc-nano-input {\n opacity: 0.5;\n}\n\n.has-float-label.sc-nano-input .select__multi-input.sc-nano-input, .has-float-label.sc-nano-input .select__native-input.sc-nano-input, .has-float-label.sc-nano-input .input__native-ctrl.sc-nano-input {\n opacity: 0;\n transition: opacity 0.125s ease-in;\n}\n.has-focus.sc-nano-input-h .has-float-label.sc-nano-input .select__multi-input.sc-nano-input, .has-value.sc-nano-input-h .has-float-label.sc-nano-input .select__multi-input.sc-nano-input, .has-focus.sc-nano-input-h .has-float-label.sc-nano-input .select__native-input.sc-nano-input, .has-value.sc-nano-input-h .has-float-label.sc-nano-input .select__native-input.sc-nano-input, .has-focus.sc-nano-input-h .has-float-label.sc-nano-input .input__native-ctrl.sc-nano-input, .has-value.sc-nano-input-h .has-float-label.sc-nano-input .input__native-ctrl.sc-nano-input {\n opacity: 1;\n}\n\n.form-ctrl__more.sc-nano-input {\n position: relative;\n margin-block: var(--padding-bottom) 0;\n margin-inline: 0;\n opacity: 0;\n display: none;\n transition: all var(--nano-transition-fast) ease;\n transition-behavior: allow-discrete;\n}\n.form-ctrl__more.sc-nano-input > *.sc-nano-input {\n grid-column: 1;\n grid-row: 1;\n}\n.has-helper.sc-nano-input .form-ctrl__more.sc-nano-input, .has-error.sc-nano-input .form-ctrl__more.sc-nano-input {\n display: grid;\n opacity: 1;\n}\n\n.form-ctrl__helper.sc-nano-input, .form-ctrl__error.sc-nano-input {\n font-size: var(--more-font-size);\n line-height: 1.2;\n transition: 0.3s ease-out opacity;\n}\n\n.form-ctrl__helper.sc-nano-input {\n font-style: italic;\n color: var(--help-msg-color);\n}\n[show-inline-error].sc-nano-input-h:not([show-inline-error=false]).is-invalid .form-ctrl__helper.sc-nano-input {\n opacity: 0;\n}\n\n.form-ctrl__helper-end.sc-nano-input {\n flex: 1 1 30%;\n min-inline-size: 150px;\n font-size: var(--invalid-msg-font-size);\n color: var(--help-msg-color);\n font-style: italic;\n}\n\n.form-ctrl__error.sc-nano-input {\n opacity: 0;\n color: var(--invalid-msg-color);\n font-style: italic;\n}\n.is-invalid.sc-nano-input-h:not([disabled]) .form-ctrl__error.sc-nano-input {\n opacity: 1;\n}\n\n.form-ctrl__input.sc-nano-input {\n font-family: inherit;\n font-size: inherit;\n font-stretch: inherit;\n font-style: inherit;\n font-weight: inherit;\n letter-spacing: inherit;\n text-decoration: inherit;\n text-overflow: inherit;\n text-transform: inherit;\n text-align: inherit;\n white-space: inherit;\n color: inherit;\n border-radius: var(--input-border-radius);\n inline-size: 100%;\n padding: 0 !important;\n position: relative;\n flex: 1 0 auto;\n display: flex;\n background: var(--input-bg-color);\n border: var(--input-border-style) var(--input-border-width);\n font-size: var(--input-font-size);\n padding-inline-start: calc(var(--input-invalid-border-hint-width) - var(--input-border-width)) !important;\n}\n.form-ctrl__input.sc-nano-input:focus-visible, .form-ctrl__input.sc-nano-input:focus-within, .has-focus.sc-nano-input-h .form-ctrl__input.sc-nano-input {\n outline: var(--nano-focus-ring-color) solid 3px;\n outline-offset: -2px;\n}\n.is-invalid.sc-nano-input-h:not([disabled]) .form-ctrl__input.sc-nano-input {\n border-inline-start: solid var(--color-invalid) var(--input-invalid-border-hint-width);\n padding-inline-start: 0 !important;\n}\n.is-invalid.has-focus.sc-nano-input-h:not([disabled]) .form-ctrl__input.sc-nano-input {\n border-color: var(--color-invalid);\n border-inline-start: solid var(--color-invalid) var(--input-invalid-border-hint-width);\n padding-inline-start: 0 !important;\n}\n\n.form-ctrl__input-wrap.sc-nano-input {\n display: flex;\n flex: 1;\n max-inline-size: 100%;\n align-items: center;\n}\n[type=textarea].sc-nano-input-h .form-ctrl__input-wrap.sc-nano-input {\n align-items: start;\n}\n\n.form-ctrl__clear-btn.sc-nano-input, .form-ctrl__slot-end.sc-nano-input, .form-ctrl__slot-start.sc-nano-input, .form-ctrl__slot-value-end.sc-nano-input {\n margin-block: 0;\n margin-inline: 0;\n font-size: 1em;\n border: 0;\n outline: none;\n background-color: transparent;\n background-repeat: no-repeat;\n display: flex;\n align-items: center;\n inline-size: auto;\n padding-inline-end: var(--padding-end);\n padding-block: var(--padding-top) var(--padding-bottom);\n}\n.form-ctrl__clear-btn.sc-nano-input:empty, .form-ctrl__slot-end.sc-nano-input:empty, .form-ctrl__slot-start.sc-nano-input:empty, .form-ctrl__slot-value-end.sc-nano-input:empty {\n display: none;\n}\n\n.form-ctrl__slot-end.sc-nano-input {\n padding-block: calc(var(--padding-top) / 2) calc(var(--padding-bottom) / 2);\n}\n\n.form-ctrl__slot-start.sc-nano-input {\n padding-inline-end: 0;\n}\n.has-float-label.sc-nano-input .form-ctrl__slot-start.sc-nano-input {\n display: none;\n}\n\n.form-ctrl__slot-start.sc-nano-input-s > *, .form-ctrl__slot-start.sc-nano-input-s > *, .form-ctrl__slot-start .sc-nano-input-s > *, .form-ctrl__slot-end.sc-nano-input-s > *, .form-ctrl__slot-end .sc-nano-input-s > *, .form-ctrl__slot-value-end.sc-nano-input-s > :not(slot-fb), .form-ctrl__slot-value-end .sc-nano-input-s > :not(slot-fb) {\n padding-inline: unset;\n align-items: center;\n display: flex;\n block-size: 100%;\n z-index: 1;\n}\n.sc-nano-input-h[disabled]:not([disabled=false]) .form-ctrl__slot-start.sc-nano-input-s > *, .form-ctrl__slot-start.sc-nano-input-s > *, .form-ctrl__slot-start .sc-nano-input-s > *, .sc-nano-input-h[disabled]:not([disabled=false]) .form-ctrl__slot-end.sc-nano-input-s > *, .form-ctrl__slot-end .sc-nano-input-s > *, .sc-nano-input-h[disabled]:not([disabled=false]) .form-ctrl__slot-value-end.sc-nano-input-s > :not(slot-fb), .form-ctrl__slot-value-end .sc-nano-input-s > :not(slot-fb) {\n pointer-events: none;\n}\n\n.form-ctrl__slot-start.sc-nano-input-s > *, .form-ctrl__slot-start.sc-nano-input-s > *, .form-ctrl__slot-start .sc-nano-input-s > * {\n margin-inline: var(--padding-start) 0;\n}\n\n.form-ctrl__slot-value-end.sc-nano-input-s > *, .form-ctrl__slot-value-end.sc-nano-input-s > *, .form-ctrl__slot-value-end .sc-nano-input-s > *, .form-ctrl__slot-value-end.sc-nano-input *.sc-nano-input {\n pointer-events: none;\n}\n\n.form-ctrl__clear-btn.sc-nano-input {\n color: var(--clear-btn-color);\n padding: 0;\n opacity: 0;\n inline-size: 0;\n appearance: none;\n align-items: center;\n overflow: hidden;\n padding-block: var(--padding-top) var(--padding-bottom);\n}\n.is-invalid.sc-nano-input-h .form-ctrl__clear-btn.sc-nano-input {\n color: var(--clear-btn-color--invalid);\n}\n.has-value.sc-nano-input-h .form-ctrl__clear-btn.sc-nano-input {\n padding-inline: 0 var(--padding-end);\n opacity: 1;\n inline-size: auto;\n}\n.form-ctrl__clear-btn.sc-nano-input:hover {\n color: var(--clear-btn-color--hover);\n}\n\n.form-ctrl__validation-icon.sc-nano-input {\n padding-block: var(--padding-top) var(--padding-bottom);\n padding-inline-end: var(--padding-end);\n display: grid;\n grid-template-areas: \"overlay\";\n}\n.sc-nano-input-h:not(.is-invalid .form-ctrl__validation-icon.sc-nano-input, .is-valid).sc-nano-input-h .form-ctrl__validation-icon.sc-nano-input {\n display: none;\n}\n\n.form-ctrl__error-icon.sc-nano-input, .form-ctrl__success-icon.sc-nano-input {\n color: var(--color-valid);\n opacity: 0;\n transition: 0.3s ease-out opacity;\n grid-area: overlay;\n}\n\n.is-valid.sc-nano-input-h .form-ctrl__success-icon.sc-nano-input {\n opacity: 1;\n}\n\n.form-ctrl__error-icon.sc-nano-input {\n color: var(--color-invalid);\n}\n.is-invalid.sc-nano-input-h .form-ctrl__error-icon.sc-nano-input {\n opacity: 1;\n}\n\n.sc-nano-input-h {\n \n --placeholder-color: var(--nano-color-neutral-1000);\n --padding-top: var(--nano-spacing-sm);\n --padding-end: var(--nano-spacing-sm);\n --padding-bottom: var(--nano-spacing-sm);\n --padding-start: var(--nano-spacing-sm);\n --color-invalid: var(--nano-color-danger-1100);\n --color-valid: var(--nano-color-success-1000);\n --input-font-size: var(--nano-font-size-sm);\n --input-text-color: var(--nano-color-base-1000);\n --input-border-width: 1px;\n --input-border-color: var(--nano-color-neutral-300);\n --input-border-radius: 0px;\n --input-invalid-border-hint-width: 2px;\n --input-border-style: solid var(--input-border-color);\n --input-border-style--focus: solid var(--input-border-width) var(--nano-color-primary-700);\n --input-bg-color: var(--nano-color-base-0);\n --invalid-msg-color: var(--color-invalid);\n --help-msg-color: var(--nano-color-base-1000);\n --more-font-size: var(--nano-font-size-2xs);\n --clear-btn-color: rgb(var(--nano-color-base-rgb-1000) / 60%);\n --clear-btn-color--hover: rgb(var(--nano-color-base-rgb-1000) / 100%);\n --clear-btn-color--invalid: rgb(var(--color-invalid) / 100%);\n --label-color: var(--nano-color-base-1000);\n --label-font-size: var(--nano-font-size-xs);\n position: relative;\n inline-size: 100%;\n padding: 0 !important;\n color: currentcolor;\n display: block;\n}\n\n[type=date].sc-nano-input-h .input__date-trigger.sc-nano-input {\n color: var(--nano-color-primary-1200);\n}\n[type=date].sc-nano-input-h .input__date-dropdown.sc-nano-input {\n --overflow: visible;\n}\n[type=date].sc-nano-input-h .input__date-close.sc-nano-input {\n position: absolute;\n inset-inline-end: 0;\n inset-block: 0;\n opacity: 0;\n z-index: 2;\n}\n[type=date].sc-nano-input-h .input__date-close.sc-nano-input:focus {\n opacity: 1;\n}\n@supports selector(::-moz-placeholder) {\n [type=date].sc-nano-input-h .form-ctrl__input-wrap.sc-nano-input {\n justify-content: end;\n min-block-size: 2.5em;\n }\n [type=date].sc-nano-input-h .input__native-ctrl.sc-nano-input {\n position: absolute;\n inset-inline-start: 0;\n inset-block-start: 0;\n }\n [type=date].sc-nano-input-h .input__date-dropdown.sc-nano-input {\n background-color: var(--nano-color-base-0);\n }\n}\n\n.input__native-ctrl.sc-nano-input {\n font-family: inherit;\n font-size: inherit;\n font-stretch: inherit;\n font-style: inherit;\n font-weight: inherit;\n letter-spacing: inherit;\n text-decoration: inherit;\n text-overflow: inherit;\n text-transform: inherit;\n text-align: inherit;\n white-space: inherit;\n color: inherit;\n appearance: none;\n -webkit-rtl-ordering: logical;\n padding-block: 0;\n padding-inline: var(--padding-start) var(--padding-end);\n border-radius: var(--input-border-radius);\n text-overflow: ellipsis;\n color: var(--input-text-color);\n display: inline-block;\n flex: 1;\n inline-size: 100%;\n max-inline-size: 100%;\n max-block-size: 100%;\n border: 0;\n outline: none;\n background: transparent;\n margin: 0;\n box-sizing: border-box;\n resize: none;\n overflow: hidden;\n line-height: 2.5em;\n min-block-size: 2.5em;\n \n}\n.has-float-label.sc-nano-input .input__native-ctrl.sc-nano-input {\n line-height: 2.1em;\n min-block-size: 2.1em;\n padding-block-start: 1.4em;\n}\n.input__native-ctrl.sc-nano-input::placeholder {\n color: var(--placeholder-color);\n font-family: inherit;\n font-style: initial;\n font-weight: initial;\n line-height: inherit;\n min-block-size: initial;\n}\n.input__native-ctrl.sc-nano-input::-moz-placeholder {\n line-height: 2.8em;\n text-overflow: ellipsis;\n}\n.input__native-ctrl.sc-nano-input:-webkit-autofill {\n background-color: transparent;\n}\n.input__native-ctrl.sc-nano-input::-webkit-search-decoration, .input__native-ctrl.sc-nano-input::-webkit-search-cancel-button, .input__native-ctrl.sc-nano-input::-webkit-search-results-button, .input__native-ctrl.sc-nano-input::-webkit-search-results-decoration {\n appearance: none;\n}\n.input__native-ctrl.sc-nano-input::-webkit-calendar-picker-indicator {\n display: none;\n}\n.input__native-ctrl.sc-nano-input::-webkit-datetime-edit {\n display: block;\n padding: 0;\n}\n.input__native-ctrl.sc-nano-input:invalid {\n box-shadow: none;\n}\n.input__native-ctrl.sc-nano-input::-ms-clear, .input__native-ctrl.sc-nano-input::-ms-reveal {\n display: none;\n}\n.input__native-ctrl.input__resizable.sc-nano-input {\n resize: vertical;\n overflow: auto;\n}\n.form-ctrl__textarea.sc-nano-input .input__native-ctrl.sc-nano-input {\n line-height: 1.5em;\n padding-block: calc(var(--padding-top) - 3px) 0.5em;\n white-space: pre-wrap;\n}\n.form-ctrl__textarea.sc-nano-input .input__native-ctrl.sc-nano-input::placeholder {\n line-height: 1.5em;\n}\n.has-float-label.sc-nano-input .form-ctrl__textarea.sc-nano-input .input__native-ctrl.sc-nano-input {\n padding-block-start: 1.75em;\n}\n[readonly].sc-nano-input-h:not([readonly=false]) .input__native-ctrl.sc-nano-input {\n -webkit-user-select: none;\n user-select: none;\n}";
17043
17043
 
17044
- let inputIds = 0;
17044
+ let inputIds$1 = 0;
17045
17045
  /**
17046
17046
  * Inputs collect text data from the user.
17047
17047
  *
@@ -17059,7 +17059,7 @@ let inputIds = 0;
17059
17059
  */
17060
17060
  class Input {
17061
17061
  nativeInput;
17062
- inputId = `nano-input-${inputIds++}`;
17062
+ inputId = `nano-input-${inputIds$1++}`;
17063
17063
  didBlurAfterEdit = false;
17064
17064
  rtl = false;
17065
17065
  mo;
@@ -17725,6 +17725,741 @@ class Input {
17725
17725
  }; }
17726
17726
  }
17727
17727
 
17728
+ const inputOtpCss = ".sc-nano-input-otp-h,*.sc-nano-input-otp,*.sc-nano-input-otp::before,*.sc-nano-input-otp::after{box-sizing:border-box}[hidden].sc-nano-input-otp{display:none !important}@media (prefers-reduced-motion: reduce){.sc-nano-input-otp-h,*.sc-nano-input-otp,*.sc-nano-input-otp::before,*.sc-nano-input-otp::after{animation-duration:0.01ms !important;animation-iteration-count:1 !important;transition-duration:0.01ms !important;scroll-behavior:auto !important}}.sc-nano-input-otp-h,*.sc-nano-input-otp,*.sc-nano-input-otp::before,*.sc-nano-input-otp::after{box-sizing:border-box}[hidden].sc-nano-input-otp{display:none !important}@media (prefers-reduced-motion: reduce){.sc-nano-input-otp-h,*.sc-nano-input-otp,*.sc-nano-input-otp::before,*.sc-nano-input-otp::after{animation-duration:0.01ms !important;animation-iteration-count:1 !important;transition-duration:0.01ms !important;scroll-behavior:auto !important}}.sc-nano-input-otp-h{--margin-top:0;--margin-end:0;--margin-bottom:0;--margin-start:0;--padding-top:var(--nano-spacing-md);--padding-end:0;--padding-bottom:var(--nano-spacing-xl);--padding-start:0;--color:initial;--min-width:40px;--width:40px;--height:50px;--gap:8px;--separator-width:7px;--separator-height:1px;--separator-border-radius:0;--separator-color:var(--nano-color-primary-1000);--highlight-color-valid:var(--nano-color-success-1100);--highlight-color-invalid:var(--nano-color-warning-1100);--border-radius:8px;--border-color:var(--nano-color-neutral-700);--border-width:1px;display:block;position:relative}.input-otp-group.sc-nano-input-otp{margin:var(--margin-top) var(--margin-end) var(--margin-bottom) var(--margin-start);padding:var(--padding-top) var(--padding-end) var(--padding-bottom) var(--padding-start);display:flex;align-items:center;justify-content:center;gap:var(--gap)}.native-wrapper.sc-nano-input-otp{display:flex;align-items:center;justify-content:center;min-inline-size:var(--min-width)}.native-input.sc-nano-input-otp{border-radius:var(--border-radius);inline-size:var(--width);min-inline-size:inherit;block-size:var(--height);border-width:var(--border-width);border-style:solid;border-color:var(--border-color);background:var(--background);color:var(--color);font-size:inherit;text-align:center;appearance:none}.input-otp-description.sc-nano-input-otp{color:currentcolor;font-size:var(--nano-font-size-xs);line-height:var(--nano-line-height-normal);text-align:center;position:relative;inset-inline-start:-24px}.input-otp-description-hidden.sc-nano-input-otp{display:none}.input-otp-separator.sc-nano-input-otp{border-radius:var(--separator-border-radius);flex-shrink:0;inline-size:var(--separator-width);block-size:var(--separator-height);background:var(--separator-color)}.input-otp-disabled.sc-nano-input-otp-h{--color:var(--nano-color-neutral-700);opacity:0.5}.input-otp-disabled.sc-nano-input-otp-h,.input-otp-disabled.sc-nano-input-otp-h .native-input.sc-nano-input-otp:disabled{cursor:not-allowed}.has-focus.sc-nano-input-otp-h .native-input.sc-nano-input-otp:focus{outline:var(--nano-focus-ring)}.nano-invalid.sc-nano-input-otp-h .native-input.sc-nano-input-otp{border-color:var(--highlight-color-invalid)}.nano-valid.sc-nano-input-otp-h .native-input.sc-nano-input-otp{border-color:var(--highlight-color-valid)}.input-otp-icon.sc-nano-input-otp{inline-size:24px;block-size:24px;display:flex;align-items:center}.input-otp-icon--valid.sc-nano-input-otp{color:var(--nano-color-success-1100)}.input-otp-icon--invalid.sc-nano-input-otp{color:var(--nano-color-warning-1100)}";
17729
+
17730
+ /**
17731
+ * A component for entering one-time passwords (OTP) with multiple input fields.
17732
+ *
17733
+ * @version 8.7.2
17734
+ * @status new
17735
+ *
17736
+ * @slot - The default slot for the input description.
17737
+ * @slot validity-icon - A slot for a custom validity icon. If not provided, a default icon will be used.
17738
+ */
17739
+ class InputOTP {
17740
+ constructor(hostRef) {
17741
+ registerInstance(this, hostRef);
17742
+ this.nanoInput = createEvent(this, "nanoInput", 7);
17743
+ this.nanoChange = createEvent(this, "nanoChange", 7);
17744
+ this.nanoComplete = createEvent(this, "nanoComplete", 7);
17745
+ this.nanoBlur = createEvent(this, "nanoBlur", 7);
17746
+ this.nanoFocus = createEvent(this, "nanoFocus", 7);
17747
+ }
17748
+ inputRefs = [];
17749
+ inputId = `nano-input-otp-${inputIds++}`;
17750
+ /**
17751
+ * Stores the initial value of the input when it receives focus.
17752
+ * Used to determine if the value changed during the focus session
17753
+ * to avoid emitting unnecessary change events on blur.
17754
+ */
17755
+ focusedValue;
17756
+ /**
17757
+ * Tracks whether the user is navigating through input boxes using keyboard navigation
17758
+ * (arrow keys, tab) versus mouse clicks. This is used to determine the appropriate
17759
+ * focus behavior when an input box is focused.
17760
+ */
17761
+ isKeyboardNavigation = false;
17762
+ get el() { return getElement(this); }
17763
+ inputValues = [];
17764
+ hasFocus = false;
17765
+ previousInputValues = [];
17766
+ invalid = false;
17767
+ valid = false;
17768
+ /**
17769
+ * If `true`, the user cannot interact with the input.
17770
+ */
17771
+ disabled = false;
17772
+ /**
17773
+ * A hint to the browser for which keyboard to display.
17774
+ * Possible values: `"none"`, `"text"`, `"tel"`, `"url"`,
17775
+ * `"email"`, `"numeric"`, `"decimal"`, and `"search"`.
17776
+ *
17777
+ * For numbers (type="number"): "numeric"
17778
+ * For text (type="text"): "text"
17779
+ */
17780
+ inputmode;
17781
+ /**
17782
+ * The number of input boxes to display.
17783
+ */
17784
+ length = 6;
17785
+ /**
17786
+ * A regex pattern string for allowed characters. Defaults based on type.
17787
+ *
17788
+ * For numbers (`type="number"`): `"[\p{N}]"`
17789
+ * For text (`type="text"`): `"[\p{L}\p{N}]"`
17790
+ */
17791
+ pattern;
17792
+ /**
17793
+ * If `true`, the user cannot modify the value.
17794
+ */
17795
+ readonly = false;
17796
+ /**
17797
+ * The type of input allowed in the input boxes.
17798
+ */
17799
+ type = 'number';
17800
+ /**
17801
+ * The value of the input group.
17802
+ */
17803
+ value = '';
17804
+ /**
17805
+ * If `true`, allows the input to be completely filled with invalid values.
17806
+ * By default, if any input box contains an invalid value, the entire input group
17807
+ * is marked as invalid.
17808
+ * Default is `false`.
17809
+ */
17810
+ allowInvalid = false;
17811
+ /**
17812
+ * If `true`, shows a validity icon when all input boxes are filled.
17813
+ * A check icon is shown if all values are valid, and an X icon is shown if any value is invalid.
17814
+ * This does not affect the `invalid` or `valid` states of the input group.
17815
+ * Default is `false`.
17816
+ * */
17817
+ showValidity = false;
17818
+ /**
17819
+ * The `nanoInput` event is fired each time the user modifies the input's value.
17820
+ * Unlike the `nanoChange` event, the `nanoInput` event is fired for each alteration
17821
+ * to the input's value. This typically happens for each keystroke as the user types.
17822
+ *
17823
+ * For elements that accept text input (`type=text`, `type=tel`, etc.), the interface
17824
+ * is [`InputEvent`](https://developer.mozilla.org/en-US/docs/Web/API/InputEvent); for others,
17825
+ * the interface is [`Event`](https://developer.mozilla.org/en-US/docs/Web/API/Event). If
17826
+ * the input is cleared on edit, the type is `null`.
17827
+ */
17828
+ nanoInput;
17829
+ /**
17830
+ * The `nanoChange` event is fired when the user modifies the input's value.
17831
+ * Unlike the `nanoInput` event, the `nanoChange` event is only fired when changes
17832
+ * are committed, not as the user types.
17833
+ *
17834
+ * The `nanoChange` event fires when the `<nano-input-otp>` component loses
17835
+ * focus after its value has changed.
17836
+ *
17837
+ * This event will not emit when programmatically setting the `value` property.
17838
+ */
17839
+ nanoChange;
17840
+ /**
17841
+ * Emitted when all input boxes have been filled with valid values.
17842
+ */
17843
+ nanoComplete;
17844
+ /**
17845
+ * Emitted when the input group loses focus.
17846
+ */
17847
+ nanoBlur;
17848
+ /**
17849
+ * Emitted when the input group has focus.
17850
+ */
17851
+ nanoFocus;
17852
+ /**
17853
+ * Sets focus to an input box.
17854
+ * @param index - The index of the input box to focus (0-based).
17855
+ * If provided and the input box has a value, the input box at that index will be focused.
17856
+ * Otherwise, the first empty input box or the last input if all are filled will be focused.
17857
+ */
17858
+ async setFocus(index) {
17859
+ if (typeof index === 'number') {
17860
+ const validIndex = Math.max(0, Math.min(index, this.length - 1));
17861
+ this.inputRefs[validIndex]?.focus();
17862
+ }
17863
+ else {
17864
+ const tabbableIndex = this.getTabbableIndex();
17865
+ this.inputRefs[tabbableIndex]?.focus();
17866
+ }
17867
+ }
17868
+ valueChanged() {
17869
+ this.initializeValues();
17870
+ this.updateTabIndexes();
17871
+ this.computeValidity();
17872
+ }
17873
+ componentWillLoad() {
17874
+ this.initializeValues();
17875
+ this.computeValidity();
17876
+ }
17877
+ componentDidLoad() {
17878
+ this.updateTabIndexes();
17879
+ }
17880
+ /**
17881
+ * Get the regex pattern for allowed characters.
17882
+ * If a pattern is provided, use it to create a regex pattern
17883
+ * Otherwise, use the default regex pattern based on type
17884
+ */
17885
+ get validKeyPattern() {
17886
+ return new RegExp(`^${this.getPattern()}$`, 'u');
17887
+ }
17888
+ get specialCharsPattern() {
17889
+ return new RegExp(`^[\\p{S}\\p{P}]$`, 'u');
17890
+ }
17891
+ /**
17892
+ * Gets the string pattern to pass to the input element
17893
+ * and use in the regex for allowed characters.
17894
+ * @returns {string} The regex pattern string for allowed characters.
17895
+ */
17896
+ getPattern() {
17897
+ const { pattern, type } = this;
17898
+ if (pattern) {
17899
+ return pattern;
17900
+ }
17901
+ return type === 'number' ? '[\\p{N}]' : '[\\p{L}\\p{N}]';
17902
+ }
17903
+ /**
17904
+ * Get the default value for inputmode.
17905
+ * If inputmode is provided, use it.
17906
+ * Otherwise, use the default inputmode based on type
17907
+ * @returns {string} The inputmode to use for the input boxes.
17908
+ */
17909
+ getInputmode() {
17910
+ const { inputmode } = this;
17911
+ if (inputmode) {
17912
+ return inputmode;
17913
+ }
17914
+ if (this.type == 'number') {
17915
+ return 'numeric';
17916
+ }
17917
+ else {
17918
+ return 'text';
17919
+ }
17920
+ }
17921
+ /**
17922
+ * Initializes the input values array based on the current value prop.
17923
+ * This splits the value into individual characters and validates them against
17924
+ * the allowed pattern. The values are then used as the values in the native
17925
+ * input boxes and the value of the input group is updated.
17926
+ */
17927
+ initializeValues() {
17928
+ // Clear all input values
17929
+ this.inputValues = Array(this.length).fill('');
17930
+ // If the value is null, undefined, or an empty string, return
17931
+ if (this.value == null || String(this.value).length === 0) {
17932
+ return;
17933
+ }
17934
+ // Split the value into individual characters and validate
17935
+ // them against the allowed pattern if invalid characters are allowed, else just put them in
17936
+ const chars = String(this.value).split('').slice(0, this.length);
17937
+ chars.forEach((char, index) => {
17938
+ if (this.allowInvalid && !this.specialCharsPattern.test(char)) {
17939
+ this.inputValues[index] = char;
17940
+ }
17941
+ else if (this.validKeyPattern.test(char)) {
17942
+ this.inputValues[index] = char;
17943
+ }
17944
+ });
17945
+ // Update the value without emitting events
17946
+ this.value = this.inputValues.join('');
17947
+ this.previousInputValues = [...this.inputValues];
17948
+ }
17949
+ /**
17950
+ * Returns `true` if the document or host element
17951
+ * has a `dir` set to `rtl`. The host value will always
17952
+ * take priority over the root document value.
17953
+ * @returns {boolean} True if RTL direction is set, false otherwise.
17954
+ */
17955
+ isRTL = (hostEl) => {
17956
+ if (hostEl) {
17957
+ if (hostEl.dir !== '') {
17958
+ return hostEl.dir.toLowerCase() === 'rtl';
17959
+ }
17960
+ }
17961
+ return document?.dir.toLowerCase() === 'rtl';
17962
+ };
17963
+ /**
17964
+ * Updates the value of the input group.
17965
+ * This updates the value of the input group and emits an `nanoChange` event.
17966
+ * If all of the input boxes are filled, it emits an `nanoComplete` event.
17967
+ */
17968
+ updateValue(event) {
17969
+ const { inputValues, length } = this;
17970
+ const newValue = this.getValidChars(inputValues.join('')).join('');
17971
+ this.value = newValue;
17972
+ this.computeValidity();
17973
+ this.emitNanoInput(event);
17974
+ if (newValue.length === length) {
17975
+ this.nanoComplete.emit({ value: newValue, valid: this.valid });
17976
+ }
17977
+ }
17978
+ /**
17979
+ * Emits an `nanoChange` event.
17980
+ * This API should be called for user committed changes.
17981
+ * This API should not be used for external value changes.
17982
+ */
17983
+ emitNanoChange(event) {
17984
+ const { value } = this;
17985
+ // Checks for both null and undefined values
17986
+ const newValue = value == null ? value : value.toString();
17987
+ this.computeValidity();
17988
+ this.nanoChange.emit({
17989
+ value: newValue?.toString(),
17990
+ event,
17991
+ valid: this.valid,
17992
+ });
17993
+ }
17994
+ /**
17995
+ * Emits an `nanoInput` event.
17996
+ * This is used to emit the input value when the user types,
17997
+ * backspaces, or pastes.
17998
+ */
17999
+ emitNanoInput(event) {
18000
+ const { value } = this;
18001
+ // Checks for both null and undefined values
18002
+ const newValue = value == null ? value : value.toString();
18003
+ this.computeValidity();
18004
+ this.nanoInput.emit({
18005
+ value: newValue?.toString(),
18006
+ event,
18007
+ valid: this.valid,
18008
+ });
18009
+ }
18010
+ /**
18011
+ * Handles the focus behavior for the input OTP component.
18012
+ *
18013
+ * Focus behavior:
18014
+ * 1. Keyboard navigation: Allow normal focus movement
18015
+ * 2. Mouse click:
18016
+ * - If clicked box has value: Focus that box
18017
+ * - If clicked box is empty: Focus first empty box
18018
+ *
18019
+ * Emits the `nanoFocus` event when the input group gains focus.
18020
+ * @returns {(event: FocusEvent) => void} Event handler for focus events.
18021
+ */
18022
+ onFocus = (index) => (event) => {
18023
+ const { inputRefs } = this;
18024
+ // Only emit nanoFocus and set the focusedValue when the
18025
+ // component first gains focus
18026
+ if (!this.hasFocus) {
18027
+ this.nanoFocus.emit(event);
18028
+ this.focusedValue = this.value;
18029
+ }
18030
+ this.hasFocus = true;
18031
+ let finalIndex = index;
18032
+ if (!this.isKeyboardNavigation) {
18033
+ // If the clicked box has a value, focus it
18034
+ // Otherwise focus the first empty box
18035
+ const targetIndex = this.inputValues[index]
18036
+ ? index
18037
+ : this.getFirstEmptyIndex();
18038
+ finalIndex = targetIndex === -1 ? this.length - 1 : targetIndex;
18039
+ // Focus the target box
18040
+ this.inputRefs[finalIndex]?.focus();
18041
+ }
18042
+ // Update tabIndexes to match the focused box
18043
+ inputRefs.forEach((input, i) => {
18044
+ input.tabIndex = i === finalIndex ? 0 : -1;
18045
+ });
18046
+ // Reset the keyboard navigation flag
18047
+ this.isKeyboardNavigation = false;
18048
+ };
18049
+ /**
18050
+ * Handles the blur behavior for the input OTP component.
18051
+ * Emits the `nanoBlur` event when the input group loses focus.
18052
+ */
18053
+ onBlur = (event) => {
18054
+ const { inputRefs } = this;
18055
+ const relatedTarget = event.relatedTarget;
18056
+ // Do not emit blur if we're moving to another input box in the same component
18057
+ const isInternalFocus = relatedTarget != null &&
18058
+ inputRefs.includes(relatedTarget);
18059
+ if (!isInternalFocus) {
18060
+ this.hasFocus = false;
18061
+ // Reset tabIndexes when focus leaves the component
18062
+ this.updateTabIndexes();
18063
+ // Always emit nanoBlur when focus leaves the component
18064
+ this.nanoBlur.emit(event);
18065
+ // Only emit nanoChange if the value has actually changed
18066
+ if (this.focusedValue !== this.value) {
18067
+ this.emitNanoChange(event);
18068
+ }
18069
+ }
18070
+ };
18071
+ /**
18072
+ * Focuses the next input box.
18073
+ */
18074
+ focusNext(currentIndex) {
18075
+ const { inputRefs, length } = this;
18076
+ if (currentIndex < length - 1) {
18077
+ inputRefs[currentIndex + 1]?.focus();
18078
+ }
18079
+ }
18080
+ /**
18081
+ * Focuses the previous input box.
18082
+ */
18083
+ focusPrevious(currentIndex) {
18084
+ const { inputRefs } = this;
18085
+ if (currentIndex > 0) {
18086
+ inputRefs[currentIndex - 1]?.focus();
18087
+ }
18088
+ }
18089
+ /**
18090
+ * Searches through the input values and returns the index
18091
+ * of the first empty input.
18092
+ * Returns -1 if all inputs are filled.
18093
+ * @returns {number} The index of the first empty input, or -1 if all are filled.
18094
+ */
18095
+ getFirstEmptyIndex() {
18096
+ const { inputValues, length } = this;
18097
+ // Create an array of the same length as the input OTP
18098
+ // and fill it with the input values
18099
+ const values = Array.from({ length }, (_, i) => inputValues[i] || '');
18100
+ return values.findIndex((value) => !value || value === '') ?? -1;
18101
+ }
18102
+ /**
18103
+ * Returns the index of the input that should be tabbed to.
18104
+ * If all inputs are filled, returns the last input's index.
18105
+ * Otherwise, returns the index of the first empty input.
18106
+ * @returns {number} The index to tab to.
18107
+ */
18108
+ getTabbableIndex() {
18109
+ const { length } = this;
18110
+ const firstEmptyIndex = this.getFirstEmptyIndex();
18111
+ return firstEmptyIndex === -1 ? length - 1 : firstEmptyIndex;
18112
+ }
18113
+ /**
18114
+ * Updates the tabIndexes for the input boxes.
18115
+ * This is used to ensure that the correct input is
18116
+ * focused when the user navigates using the tab key.
18117
+ */
18118
+ updateTabIndexes() {
18119
+ const { inputRefs, inputValues, length } = this;
18120
+ // Find first empty index after any filled boxes
18121
+ let firstEmptyIndex = -1;
18122
+ for (let i = 0; i < length; i++) {
18123
+ if (!inputValues[i] || inputValues[i] === '') {
18124
+ firstEmptyIndex = i;
18125
+ break;
18126
+ }
18127
+ }
18128
+ // Update tabIndex and aria-hidden for all inputs
18129
+ inputRefs.forEach((input, index) => {
18130
+ const shouldBeTabbable = firstEmptyIndex === -1
18131
+ ? index === length - 1
18132
+ : firstEmptyIndex === index;
18133
+ input.tabIndex = shouldBeTabbable ? 0 : -1;
18134
+ // If the input is empty and not the first empty input,
18135
+ // it should be hidden from screen readers.
18136
+ const isEmpty = !inputValues[index] || inputValues[index] === '';
18137
+ input.setAttribute('aria-hidden', isEmpty && !shouldBeTabbable ? 'true' : 'false');
18138
+ });
18139
+ }
18140
+ /**
18141
+ * Handles keyboard navigation for the OTP component.
18142
+ *
18143
+ * Navigation:
18144
+ * - Backspace: Clears current input and moves to previous box if empty
18145
+ * - Arrow Left/Right: Moves focus between input boxes
18146
+ * - Tab: Allows normal tab navigation between components
18147
+ * @returns {(event: KeyboardEvent) => void} Event handler for keydown events.
18148
+ */
18149
+ onKeyDown = (index) => (event) => {
18150
+ const { length } = this;
18151
+ const rtl = this.isRTL(this.el);
18152
+ const input = event.target;
18153
+ // Meta shortcuts are used to copy, paste, and select text
18154
+ // We don't want to handle these keys here
18155
+ const metaShortcuts = ['a', 'c', 'v', 'x', 'r', 'z', 'y'];
18156
+ const isTextSelection = input.selectionStart !== input.selectionEnd;
18157
+ // Return if the key is a meta shortcut or the input value
18158
+ // text is selected and let the onPaste / onInput handler manage it
18159
+ if (isTextSelection ||
18160
+ ((event.metaKey || event.ctrlKey) &&
18161
+ metaShortcuts.includes(event.key.toLowerCase()))) {
18162
+ return;
18163
+ }
18164
+ if (event.key === 'Backspace') {
18165
+ if (this.inputValues[index]) {
18166
+ // Shift all values to the right of the current index left by one
18167
+ for (let i = index; i < length - 1; i++) {
18168
+ this.inputValues[i] = this.inputValues[i + 1];
18169
+ }
18170
+ // Clear the last box
18171
+ this.inputValues[length - 1] = '';
18172
+ // Update all inputRefs to match inputValues
18173
+ for (let i = 0; i < length; i++) {
18174
+ this.inputRefs[i].value = this.inputValues[i] || '';
18175
+ }
18176
+ this.updateValue(event);
18177
+ event.preventDefault();
18178
+ }
18179
+ else if (!this.inputValues[index] && index > 0) {
18180
+ // If current input is empty, move to previous input
18181
+ this.focusPrevious(index);
18182
+ }
18183
+ }
18184
+ else if (event.key === 'ArrowLeft' || event.key === 'ArrowRight') {
18185
+ this.isKeyboardNavigation = true;
18186
+ event.preventDefault();
18187
+ const isLeft = event.key === 'ArrowLeft';
18188
+ const shouldMoveNext = (isLeft && rtl) || (!isLeft && !rtl);
18189
+ // Only allow moving to the next input if the current has a value
18190
+ if (shouldMoveNext) {
18191
+ if (this.inputValues[index] && index < length - 1) {
18192
+ this.focusNext(index);
18193
+ }
18194
+ }
18195
+ else {
18196
+ this.focusPrevious(index);
18197
+ }
18198
+ }
18199
+ else if (event.key === 'Tab') {
18200
+ this.isKeyboardNavigation = true;
18201
+ // Let all tab events proceed normally
18202
+ return;
18203
+ }
18204
+ };
18205
+ /**
18206
+ * Processes all input scenarios for each input box.
18207
+ *
18208
+ * This function manages:
18209
+ * 1. Autofill handling
18210
+ * 2. Input validation
18211
+ * 3. Full selection replacement or typing in an empty box
18212
+ * 4. Inserting in the middle with available space (shifting)
18213
+ * 5. Single character replacement
18214
+ * @returns {(event: InputEvent) => void} Event handler for input events.
18215
+ */
18216
+ onInput = (index) => (event) => {
18217
+ const { length, validKeyPattern, allowInvalid } = this;
18218
+ const input = event.target;
18219
+ const value = input.value;
18220
+ const previousValue = this.previousInputValues[index] || '';
18221
+ // 1. Autofill handling
18222
+ // If the length of the value increases by more than 1 from the previous
18223
+ // value, treat this as autofill. This is to prevent the case where the
18224
+ // user is typing a single character into an input box containing a value
18225
+ // as that will trigger this function with a value length of 2 characters.
18226
+ const isAutofill = value.length - previousValue.length > 1;
18227
+ if (isAutofill) {
18228
+ // Distribute valid characters across input boxes
18229
+ const validChars = this.getValidChars(value);
18230
+ // If there are no valid characters coming from the
18231
+ // autofill, all input refs have to be cleared after the
18232
+ // browser has finished the autofill behavior
18233
+ if (validChars.length === 0) {
18234
+ requestAnimationFrame(() => {
18235
+ this.inputRefs.forEach((input) => {
18236
+ input.value = '';
18237
+ });
18238
+ });
18239
+ }
18240
+ for (let i = 0; i < length; i++) {
18241
+ this.inputValues[i] = validChars[i] || '';
18242
+ this.inputRefs[i].value = validChars[i] || '';
18243
+ }
18244
+ this.updateValue(event);
18245
+ // Focus the first empty input box or the last input box if all boxes
18246
+ // are filled after a small delay to ensure the input boxes have been
18247
+ // updated before moving the focus
18248
+ setTimeout(() => {
18249
+ const nextIndex = validChars.length < length ? validChars.length : length - 1;
18250
+ this.inputRefs[nextIndex]?.focus();
18251
+ }, 20);
18252
+ this.previousInputValues = [...this.inputValues];
18253
+ return;
18254
+ }
18255
+ // 2. Input validation
18256
+ // If the character entered is invalid (does not match the pattern),
18257
+ // restore the previous value and exit
18258
+ if ((!allowInvalid &&
18259
+ value.length > 0 &&
18260
+ !validKeyPattern.test(value[value.length - 1])) ||
18261
+ (allowInvalid && this.specialCharsPattern.test(value[value.length - 1]))) {
18262
+ input.value = this.inputValues[index] || '';
18263
+ this.previousInputValues = [...this.inputValues];
18264
+ return;
18265
+ }
18266
+ // 3. Full selection replacement or typing in an empty box
18267
+ // If the user selects all text in the input box and types, or if the
18268
+ // input box is empty, replace only this input box. If the box is empty,
18269
+ // move to the next box, otherwise stay focused on this box.
18270
+ const isAllSelected = input.selectionStart === 0 && input.selectionEnd === value.length;
18271
+ const isEmpty = !this.inputValues[index];
18272
+ if (isAllSelected || isEmpty) {
18273
+ this.inputValues[index] = value;
18274
+ input.value = value;
18275
+ this.updateValue(event);
18276
+ this.focusNext(index);
18277
+ this.previousInputValues = [...this.inputValues];
18278
+ return;
18279
+ }
18280
+ // 4. Inserting in the middle with available space (shifting)
18281
+ // If typing in a filled input box and there are empty boxes at the end,
18282
+ // shift all values starting at the current box to the right, and insert
18283
+ // the new character at the current box.
18284
+ const hasAvailableBoxAtEnd = this.inputValues[this.inputValues.length - 1] === '';
18285
+ if (this.inputValues[index] && hasAvailableBoxAtEnd && value.length === 2) {
18286
+ // Get the inserted character (from event or by diffing value/previousValue)
18287
+ let newChar = event.data;
18288
+ if (!newChar) {
18289
+ newChar =
18290
+ value.split('').find((c, i) => c !== previousValue[i]) ||
18291
+ value[value.length - 1];
18292
+ }
18293
+ // Validate the new character before shifting
18294
+ if (!allowInvalid && !validKeyPattern.test(newChar)) {
18295
+ input.value = this.inputValues[index] || '';
18296
+ this.previousInputValues = [...this.inputValues];
18297
+ return;
18298
+ }
18299
+ // Shift values right from the end to the insertion point
18300
+ for (let i = this.inputValues.length - 1; i > index; i--) {
18301
+ this.inputValues[i] = this.inputValues[i - 1];
18302
+ this.inputRefs[i].value = this.inputValues[i] || '';
18303
+ }
18304
+ this.inputValues[index] = newChar;
18305
+ this.inputRefs[index].value = newChar;
18306
+ this.updateValue(event);
18307
+ this.previousInputValues = [...this.inputValues];
18308
+ return;
18309
+ }
18310
+ // 5. Single character replacement
18311
+ // Handles replacing a single character in a box containing a value based
18312
+ // on the cursor position. We need the cursor position to determine which
18313
+ // character was the last character typed. For example, if the user types "2"
18314
+ // in an input box with the cursor at the beginning of the value of "6",
18315
+ // the value will be "26", but we want to grab the "2" as the last character
18316
+ // typed.
18317
+ const cursorPos = input.selectionStart ?? value.length;
18318
+ const newCharIndex = cursorPos - 1;
18319
+ const newChar = value[newCharIndex] ?? value[0];
18320
+ // Check if the new character is valid before updating the value
18321
+ if (!allowInvalid && !validKeyPattern.test(newChar)) {
18322
+ input.value = this.inputValues[index] || '';
18323
+ this.previousInputValues = [...this.inputValues];
18324
+ return;
18325
+ }
18326
+ this.inputValues[index] = newChar;
18327
+ input.value = newChar;
18328
+ this.updateValue(event);
18329
+ this.previousInputValues = [...this.inputValues];
18330
+ };
18331
+ /**
18332
+ * Handles pasting text into the input OTP component.
18333
+ * This function prevents the default paste behavior and
18334
+ * validates the pasted text against the allowed pattern.
18335
+ * It then updates the value of the input group and focuses
18336
+ * the next empty input after pasting.
18337
+ */
18338
+ onPaste = (event) => {
18339
+ const { inputRefs, length } = this;
18340
+ event.preventDefault();
18341
+ const pastedText = event.clipboardData?.getData('text');
18342
+ // If there is no pasted text, still emit the input change event
18343
+ // because this is how the native input element behaves
18344
+ // but return early because there is nothing to paste.
18345
+ if (!pastedText) {
18346
+ this.emitNanoInput(event);
18347
+ return;
18348
+ }
18349
+ const validChars = this.getValidChars(pastedText);
18350
+ // Always paste starting at the first box
18351
+ validChars.forEach((char, index) => {
18352
+ if (index < length) {
18353
+ this.inputRefs[index].value = char;
18354
+ this.inputValues[index] = char;
18355
+ }
18356
+ });
18357
+ // Update the value so that all input boxes are updated
18358
+ this.value = validChars.join('');
18359
+ this.updateValue(event);
18360
+ // Focus the next empty input after pasting
18361
+ // If all boxes are filled, focus the last input
18362
+ const nextEmptyIndex = validChars.length < length ? validChars.length : length - 1;
18363
+ inputRefs[nextEmptyIndex]?.focus();
18364
+ };
18365
+ /**
18366
+ * Determines if a separator should be shown for a given index by:
18367
+ * - Checking if the total length is even (no separator for odd lengths)
18368
+ * - If even, showing a separator after the middle index
18369
+ *
18370
+ * @param index - The index to check for a separator.
18371
+ * @returns {boolean} True if a separator should be shown after the given index, false otherwise.
18372
+ */
18373
+ showSeparator(index) {
18374
+ const { length } = this;
18375
+ if (length < 3 || length % 2 !== 0)
18376
+ return false;
18377
+ return index === length / 2 - 1;
18378
+ }
18379
+ /**
18380
+ * Filters the input string to only include valid characters based on the
18381
+ * `validKeyPattern` regex. If `allowInvalid` is true, it will also
18382
+ * exclude special characters. The resulting array is sliced to the
18383
+ * maximum length of the input OTP.
18384
+ * @param str - The input string to filter.
18385
+ * @returns {string[]} An array of valid characters.
18386
+ */
18387
+ getValidChars(str) {
18388
+ const { allowInvalid, validKeyPattern, length } = this;
18389
+ const allChars = str.split('');
18390
+ return (allowInvalid
18391
+ ? allChars.filter((char) => char.trim() !== '' && !this.specialCharsPattern.test(char))
18392
+ : allChars.filter((char) => char.trim() !== '' && validKeyPattern.test(char))).slice(0, length);
18393
+ }
18394
+ /**
18395
+ * Computes the validity of the input group based on the current input values.
18396
+ * Sets the following `invalid` and `valid` states:
18397
+ * - `invalid` is true if `allowInvalid` is true and any input value is invalid.
18398
+ * - `valid` is true if all input boxes are filled with valid values.
18399
+ */
18400
+ computeValidity() {
18401
+ const { inputValues } = this;
18402
+ this.invalid =
18403
+ this.allowInvalid &&
18404
+ this.inputValues.some((val) => val !== '' && !this.validKeyPattern.test(val));
18405
+ this.valid =
18406
+ this.inputValues.length === this.length &&
18407
+ this.inputValues.every((val) => val !== '' && this.validKeyPattern.test(val));
18408
+ inputValues.some((v) => v !== '' && !this.validKeyPattern.test(v));
18409
+ }
18410
+ render() {
18411
+ const { disabled, el, hasFocus, inputId, inputRefs, inputValues, length, readonly, invalid, valid, } = this;
18412
+ const inputmode = this.getInputmode();
18413
+ const tabbableIndex = this.getTabbableIndex();
18414
+ const pattern = this.getPattern();
18415
+ const hasDescription = el.querySelector('.input-otp-description')?.textContent?.trim() !== '';
18416
+ return (hAsync(Host, { key: 'f397a0775d2d961ccc9013206fae72a8d0ad90ae', class: {
18417
+ 'has-focus': hasFocus,
18418
+ 'input-otp-disabled': disabled,
18419
+ 'input-otp-readonly': readonly,
18420
+ 'nano-invalid': invalid,
18421
+ 'nano-valid': valid,
18422
+ } }, hAsync("div", { key: 'add5fe905af87f4c9b87d29c66134ede52ff2b6b', role: "group", "aria-label": "One-time password input", class: "input-otp-group" }, Array.from({ length }).map((_, index) => (hAsync(Fragment, null, hAsync("div", { class: "native-wrapper" }, hAsync("input", { class: "native-input", id: `${inputId}-${index}`, "aria-label": `Input ${index + 1} of ${length}`, type: "text", inputmode: inputmode, pattern: pattern, disabled: disabled, readOnly: readonly, tabIndex: index === tabbableIndex ? 0 : -1, value: inputValues[index] || '', autocomplete: "one-time-code", ref: (el) => (inputRefs[index] = el), onInput: this.onInput(index), onBlur: this.onBlur, onFocus: this.onFocus(index), onKeyDown: this.onKeyDown(index), onPaste: this.onPaste })), this.showSeparator(index) && hAsync("div", { class: "input-otp-separator" })))), this.showValidity && (hAsync("div", { key: '71d38d8f343be559d187f1c5710a64733cf7ceaa', class: {
18423
+ 'input-otp-icon': true,
18424
+ 'input-otp-icon--valid': valid,
18425
+ 'input-otp-icon--invalid': invalid,
18426
+ } }, hAsync("slot", { key: '14529ecc57a6268932bc1485f0a425bb6cb45c51', name: "validity-icon" }, hAsync("nano-icon", { key: '65669a6b4ca76011b721e76fb68b7f9bfeb87092', hidden: !valid, name: "light/circle-check", class: "input-otp-valid-icon", "aria-label": "Valid input" }))))), hAsync("div", { key: '3e677ab8517765759a0cc4a0aa6f0fec58767c90', class: {
18427
+ 'input-otp-description': true,
18428
+ 'input-otp-description-hidden': !hasDescription,
18429
+ 'input-otp-description-inset': this.showValidity,
18430
+ } }, hAsync("slot", { key: 'e875d5c5d7ed8f804b9866618b7ed5e5211dd7b1' }))));
18431
+ }
18432
+ static get watchers() { return {
18433
+ "value": ["valueChanged"]
18434
+ }; }
18435
+ static get style() { return inputOtpCss; }
18436
+ static get cmpMeta() { return {
18437
+ "$flags$": 262,
18438
+ "$tagName$": "nano-input-otp",
18439
+ "$members$": {
18440
+ "disabled": [516],
18441
+ "inputmode": [1],
18442
+ "length": [2],
18443
+ "pattern": [1],
18444
+ "readonly": [516],
18445
+ "type": [1],
18446
+ "value": [1032],
18447
+ "allowInvalid": [516, "allow-invalid"],
18448
+ "showValidity": [516, "show-validity"],
18449
+ "inputValues": [32],
18450
+ "hasFocus": [32],
18451
+ "previousInputValues": [32],
18452
+ "invalid": [32],
18453
+ "valid": [32],
18454
+ "setFocus": [64]
18455
+ },
18456
+ "$listeners$": undefined,
18457
+ "$lazyBundleId$": "-",
18458
+ "$attrsToReflect$": [["disabled", "disabled"], ["readonly", "readonly"], ["allowInvalid", "allow-invalid"], ["showValidity", "show-validity"]]
18459
+ }; }
18460
+ }
18461
+ let inputIds = 0;
18462
+
17728
18463
  /**
17729
18464
  * A thin, declarative interface to the [IntersectionObserver API](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserver).
17730
18465
  *
@@ -17863,7 +18598,7 @@ class IntersectionObserve {
17863
18598
  this.removeIO();
17864
18599
  }
17865
18600
  render() {
17866
- return (h(Host, { key: 'aadf019427b2d2c3020fd6e667d5932fd14aea45', class: "nano-intersection-observe" }, h("slot", { key: 'eae74417c304de7b8e377229b603d88468a5c7f5', ref: (slot) => (this.defaultSlot = slot), onSlotchange: this.handleSlotChange })));
18601
+ return (h(Host, { key: 'c837369d760b533f7bbed5ade5994206923e6ffa', class: "nano-intersection-observe" }, h("slot", { key: 'c12806aaf721afbd10a14a3f6c23bd08217128b6', ref: (slot) => (this.defaultSlot = slot), onSlotchange: this.handleSlotChange })));
17867
18602
  }
17868
18603
  static get watchers() { return {
17869
18604
  "root": ["handleRootChange"],
@@ -18208,7 +18943,7 @@ class MaskedOverflow {
18208
18943
  }
18209
18944
  }
18210
18945
  render() {
18211
- return (h(Host, { key: '49485c7d6a96e8dd122f862abd2bd2f95b2343e7', dir: this.isRtl ? 'rtl' : null, class: "nano-masked-overflow", "has-scroll-controls": this.hasScrollControls }, h("div", { key: 'acd0541992b9dda0c1ab6414e67cd8a71f429918', part: "base", class: {
18946
+ return (h(Host, { key: 'cace0ef58ad901ea08d057420906d95ffa2600dd', dir: this.isRtl ? 'rtl' : null, class: "nano-masked-overflow", "has-scroll-controls": this.hasScrollControls }, h("div", { key: '6133235c4eb2be34c93cb681cd612ae7d227e8eb', part: "base", class: {
18212
18947
  onav: true,
18213
18948
  [`onav--${this.orientation}`]: true,
18214
18949
  'onav--has-scroll-controls': this.hasScrollControls,
@@ -18217,12 +18952,12 @@ class MaskedOverflow {
18217
18952
  'onav--no-transitions': this.instantReCalc,
18218
18953
  'onnav--has-indicator': this.showIndicator,
18219
18954
  'onnav--hide-scrollbars': this.hideScrollbars && this.hideScrollbars !== 'false',
18220
- }, onClick: this.handleClick, onKeyDown: this.handleKeyDown }, h("div", { key: 'ba25b3551a2b6be4906d538cbaabf0ba8cb859f6', class: "onav__nav" }, this.scrollControls && (h("nano-icon-button", { key: '72ca6ae1ef0300fc91a95d347702bac94fec97ac', part: "scroll-button scroll-button-prev", class: {
18955
+ }, onClick: this.handleClick, onKeyDown: this.handleKeyDown }, h("div", { key: '56f5264594f6963dddbdbad7ecd6c25ae4c0732a', class: "onav__nav" }, this.scrollControls && (h("nano-icon-button", { key: 'be07616305b1753d843f346420149055b59f8023', part: "scroll-button scroll-button-prev", class: {
18221
18956
  'onav__scroll-button': true,
18222
18957
  'onav__scroll-button--start': true,
18223
18958
  }, ref: (btn) => (this.startBtn = btn), onClick: () => this.handleBtnClick(false), label: "Click to scroll", iconName: this.orientation === 'horizontal'
18224
18959
  ? 'light/chevron-left'
18225
- : 'light/chevron-up' })), h("div", { key: '34893f5e055e8b44a78cb0706e974ee45261bdb8', part: "scroller", ref: (el) => (this.nav = el), class: "onav__scroller", onScroll: this.handleScroll, tabindex: this.hasScrollControls ? 0 : undefined, role: "region", "aria-label": this.label || undefined }, h("div", { key: '19ea27abc4878c5ab034e8ac0ee7085f19607a92', part: "items", ref: (el) => (this.itemContainer = el), class: "onav__items" }, this.showIndicator && (h("div", { key: '6cfdb83598367d649e6705fe709e89d8a8b505a6', part: "indicator", ref: (el) => (this.activeIndicator = el), class: "onav__active-indicator" })), h("slot", { key: '43f3164d6c962f951ac672f79d48943c44e0514e', onSlotchange: this.slotChangeHandler }))), this.scrollControls && (h("nano-icon-button", { key: 'eaa09e8faa9343fca660d1f2e0a4b5366b7c6668', part: "scroll-button scroll-button-next", class: {
18960
+ : 'light/chevron-up' })), h("div", { key: '33c5125be511e2ed550ea4a4130ada309d6d4884', part: "scroller", ref: (el) => (this.nav = el), class: "onav__scroller", onScroll: this.handleScroll, tabindex: this.hasScrollControls ? 0 : undefined, role: "region", "aria-label": this.label || undefined }, h("div", { key: 'c7e3fa9f1272bcd57694aa7dd433f2da1ca4d4cb', part: "items", ref: (el) => (this.itemContainer = el), class: "onav__items" }, this.showIndicator && (h("div", { key: '5029cad9fb763501e8e670f3347e55e7eafbcb87', part: "indicator", ref: (el) => (this.activeIndicator = el), class: "onav__active-indicator" })), h("slot", { key: '1438ac0d40a0ec2952cf9b66bc2f854d5b96c690', onSlotchange: this.slotChangeHandler }))), this.scrollControls && (h("nano-icon-button", { key: '05dea3796c9d9e758c229f76fcb4dde2bd90fa65', part: "scroll-button scroll-button-next", class: {
18226
18961
  'onav__scroll-button': true,
18227
18962
  'onav__scroll-button--end': true,
18228
18963
  }, ref: (btn) => (this.endBtn = btn), onClick: () => this.handleBtnClick(true), label: "Click to scroll", iconName: this.orientation === 'horizontal'
@@ -18663,14 +19398,14 @@ class MenuDrawer {
18663
19398
  disconnectedCallback() {
18664
19399
  }
18665
19400
  render() {
18666
- return (h(Host, { key: '4ad542c84da0045168bcee1df744cb94c2a1196e', class: {
19401
+ return (h(Host, { key: '48267091ca0646f3a1717e2dc3ab21ab3d4b9b28', class: {
18667
19402
  open: this.open,
18668
19403
  'secondary-open': this.secondaryOpen,
18669
19404
  hide: this.hide,
18670
19405
  loading: this.isLoading,
18671
19406
  'has-global-nav': !!this.globalNav,
18672
19407
  'nano-menu-drawer': true,
18673
- }, dir: this.el.ownerDocument.dir === 'rtl' ? 'rtl' : null }, h("div", { key: 'b00cad9c3696b9c373e8d98fcd1f86c2c7b23aa2', ref: (div) => (this.containerDiv = div), class: "container" }, h("div", { key: 'a7746088c4458802d386f1c3d092e0a386fe4bd6', class: `content-wrap ${this.secondaryOpen ? 'secondary-open' : ''}` }, h("nav", { key: '993f550de47fc9410aa04bf98d9d076a6290637c', ref: (div) => (this.contentDiv = div), class: "content" }, h("div", { key: '3da3d0268df95d3080938e33f6e80d659dce1525', class: "head" }, h("button", { key: 'af104da5e67aaf06194317086daa6a5d4c008b6a', onClick: this.toggle, class: "collapse-btn" }, h("nano-icon", { key: 'b6e85eb6690440da7ccd893ccd9feb082d7a4552', name: "light/arrow-right-to-line" }), h("span", { key: '443c2afa504892d6de2a75a126e09c484540c677', class: "visually-hidden" }, "collapse / expand menu"))), h("slot", { key: '275ab007d04f3bde8269f0b4927aec81d1e47ccd' }), this.slotCtrl.has('foot') && (h("div", { key: 'c0eb043b9447264d48ca65d6e51c986c05ba10eb', class: "foot" }, h("slot", { key: 'bee82590231f9cfffc15c22ba0fafb313298e232', name: "foot" }))))))));
19408
+ }, dir: this.el.ownerDocument.dir === 'rtl' ? 'rtl' : null }, h("div", { key: 'f73a9c15c9760493b38ac5b199f2d374eb99ffd0', ref: (div) => (this.containerDiv = div), class: "container" }, h("div", { key: 'a2a254a08025a5d4f33ecd10fb25ee2bedddc657', class: `content-wrap ${this.secondaryOpen ? 'secondary-open' : ''}` }, h("nav", { key: '4c93989684795be81b332aa12638424493eda51f', ref: (div) => (this.contentDiv = div), class: "content" }, h("div", { key: 'fb7fdba72b7e211dd99020b9a78dde35c11f0c7e', class: "head" }, h("button", { key: '1829973a4d5bb9c4053bd5a5b8d7d24befc02599', onClick: this.toggle, class: "collapse-btn" }, h("nano-icon", { key: '614bca81c5086ed499a62d38540f6c107f5c779e', name: "light/arrow-right-to-line" }), h("span", { key: 'da6cbb5a0c0f0a908afac83b01322bc5bfede0b5', class: "visually-hidden" }, "collapse / expand menu"))), h("slot", { key: 'd3ddb04ad19784a71575ff50c2cbd4410b70dcb6' }), this.slotCtrl.has('foot') && (h("div", { key: '5282ecb332f91aaedf7996f1a86165656187f12a', class: "foot" }, h("slot", { key: 'c0c227384d0ec749a03c1fdfe5764923f08c2405', name: "foot" }))))))));
18674
19409
  }
18675
19410
  static get watchers() { return {
18676
19411
  "open": ["openChange"]
@@ -22996,7 +23731,7 @@ class NanoStepAccordion {
22996
23731
  }
22997
23732
  }
22998
23733
  render() {
22999
- return (h("nano-accordion", { key: 'd92d8997c0486e26c132793db92b12e04d46a384', alwaysOpen: true, onNanoToggle: (event) => this.handleToggle(event) }, this.steps.map((step, index) => (h("nano-details", { open: index === this.activeStep, disabled: !step.enabled, class: {
23734
+ return (h("nano-accordion", { key: '1edc585b390f5dd6c1fe6edaf103e096b8d02d06', alwaysOpen: true, onNanoToggle: (event) => this.handleToggle(event) }, this.steps.map((step, index) => (h("nano-details", { open: index === this.activeStep, disabled: !step.enabled, class: {
23000
23735
  step: true,
23001
23736
  'step--active': index === this.activeStep,
23002
23737
  'step--complete': step.complete,
@@ -23125,10 +23860,10 @@ class NanoStepBreadcrumb {
23125
23860
  };
23126
23861
  render() {
23127
23862
  const Wrapper = this.steps.filter((step) => step.href).length > 0 ? 'nav' : 'div';
23128
- return (h(Host, { key: 'c4d0e767abe4ee65f8e70534844e7ff254455af0' }, h(Wrapper, { key: '6df94c5a9df7ae957b5ff243ecbe78e7c57233b3', class: "step-wrapper" }, h("ul", { key: 'ba1838191a0b888b630bfaba5125ae868f8aab38', class: `step-list desktop ${this.cacheKey}` }, this.steps.map((step, index) => (h("li", { class: "step-item-wrapper", key: index }, h(this.ControlTag, { step: step, index: index }))))), h("div", { key: '64ae2c870494d376f4bb6484e97a5217dc4be311', class: `step-list mobile ${this.cacheKey}` }, h("nano-dropdown", { key: '08d3dc468d594177b922ae91fb1ff02ed79d282c', dialogTitle: "Steps", class: "step-dropdown" }, h("button", { key: '88ef0602628d800a3517da3c06e2eea1dad5a7dd', slot: "trigger", class: "step-trigger" }, h("div", { key: '9d60be986e00fdd6814a910641cf94ef97fb2eed', class: "step-progress-circle", role: "progressbar", "aria-valuenow": "2", "aria-valuemin": "0", "aria-valuemax": "5", style: {
23863
+ return (h(Host, { key: 'e54c227339a1e973cad1889abb1828cef81061a1' }, h(Wrapper, { key: '9a9ef044e63d1cebb713c0e9184ed58ed7865a32', class: "step-wrapper" }, h("ul", { key: 'cf3ef2fa474ae023be0059434fc03f1bfeade40c', class: `step-list desktop ${this.cacheKey}` }, this.steps.map((step, index) => (h("li", { class: "step-item-wrapper", key: index }, h(this.ControlTag, { step: step, index: index }))))), h("div", { key: '18a9e9e00597e8ef15df7134a29dabb5f51fad93', class: `step-list mobile ${this.cacheKey}` }, h("nano-dropdown", { key: '0e174964823bc2c6e1cc0bcd4e1d320bc3e74e11', dialogTitle: "Steps", class: "step-dropdown" }, h("button", { key: '75863494b5e948c53b91f15e083270ac142abe61', slot: "trigger", class: "step-trigger" }, h("div", { key: '093819821dc278086f12d5f8cb008649b43b3230', class: "step-progress-circle", role: "progressbar", "aria-valuenow": "2", "aria-valuemin": "0", "aria-valuemax": "5", style: {
23129
23864
  '--value': '' + (this.activeStep + 1),
23130
23865
  '--max': '' + this.steps.length,
23131
- } }, h("span", { key: '9e6eb88c9fc12f4228f55fe04cb2e1ce9a92e1f2', class: "step-progress-text" }, h("strong", { key: '5e999ae958a2c43f5d8998e9083e91b11ea9041d' }, this.activeStep + 1), " of", ' ', this.steps.length)), h("div", { key: 'ccb66003ef35b256ae8d0d34c8cad7535680d05b', class: "step-trigger-text" }, h("div", { key: '87f8a73802c33c289860b0eb530edae379fa5ebf', class: "step-trigger-now" }, this.steps[this.activeStep | 0]?.title || 'Select a step'), h("div", { key: '9b00c5ae99376028ec077e782f430b0346580119', class: "step-trigger-next" }, this.steps[this.activeStep + 1]?.title || 'Next step')), h("nano-icon", { key: '5073cf36a3a15599df7fa3816a62e72af257ab99', class: "step-trigger-icon", name: "light/chevron-down" })), h("nano-menu", { key: '18f15bb2439661286c019a6f20272db72a6ad1b1' }, this.steps.map((step, index) => (h("nano-nav-item", { class: {
23866
+ } }, h("span", { key: 'da12da205c5e4942dc6b158ab4366a87b3d600c0', class: "step-progress-text" }, h("strong", { key: '15298a28fd78508485b54ed24df255087560e627' }, this.activeStep + 1), " of", ' ', this.steps.length)), h("div", { key: 'a67108bd294391381e5e9fa17e6132844eb510c4', class: "step-trigger-text" }, h("div", { key: '46906878f501008c8ceab76276d4f5b47469d9e3', class: "step-trigger-now" }, this.steps[this.activeStep | 0]?.title || 'Select a step'), h("div", { key: '898e4abb1800652352efe446e45c48d3673a656c', class: "step-trigger-next" }, this.steps[this.activeStep + 1]?.title || 'Next step')), h("nano-icon", { key: 'f972d82aaed693d49536862f45c268646dd8742b', class: "step-trigger-icon", name: "light/chevron-down" })), h("nano-menu", { key: '2b6555a0ef2743486e940d75cb3486110f88cad1' }, this.steps.map((step, index) => (h("nano-nav-item", { class: {
23132
23867
  'step-item-mobile': true,
23133
23868
  'step-item-mobile step-item--active': index === this.activeStep,
23134
23869
  'step-item-mobile step-item--complete': step.complete,
@@ -23215,12 +23950,12 @@ class NanoTab {
23215
23950
  }
23216
23951
  };
23217
23952
  render() {
23218
- return (h(Host, { key: '67fe232bda16bf41bf1268a1891cfeb6483ebd02', id: this.host.id || this.tabId, role: "tab", "aria-disabled": this.disabled ? 'true' : 'false', "aria-selected": this.active ? 'true' : 'false', class: "nano-tab" }, h("div", { key: '6f07d7d5a89071e094fe3deb19e88ec66a524f3d', part: `base${this.active ? ' base--active' : ''}${this.disabled ? ' base--disabled' : ''}${this.closable ? ' base--closable' : ''}`, class: {
23953
+ return (h(Host, { key: 'ad80886d87f28ad3a2ae019f361662f21c6617b3', id: this.host.id || this.tabId, role: "tab", "aria-disabled": this.disabled ? 'true' : 'false', "aria-selected": this.active ? 'true' : 'false', class: "nano-tab" }, h("div", { key: '445b8acdf4a87b4541f8bc1b9354c91bad6d77a4', part: `base${this.active ? ' base--active' : ''}${this.disabled ? ' base--disabled' : ''}${this.closable ? ' base--closable' : ''}`, class: {
23219
23954
  tab: true,
23220
23955
  'tab--active': this.active,
23221
23956
  'tab--disabled': this.disabled,
23222
23957
  'tab--closable': this.closable,
23223
- } }, h("slot", { key: '4c8dce458c8ae3ed526d4aed7332650be891510c', name: "start" }), h("div", { key: 'e71cced02347ffaa432b5711af54666ac0a6cfd6', part: "label", ref: (el) => (this.tab = el), tabindex: this.disabled || !this.active ? '-1' : '0', class: "tab__label" }, h("slot", { key: '382f7f77b009e3a5cf3af3d3b94b02e639bf2934' })), h("slot", { key: '82a2c81ab573d3c78b7d913f4b7ab146e7c6d5b2', name: "end" }), this.closable && !this.disabled && (h("nano-icon-button", { key: '14e812f9acd5e081a1eba5014f6d4fe4b79371e2', label: "Close this tab", iconName: "light/xmark", class: "tab__close-button", onClick: this.handleCloseClick, onKeyDown: this.handleCloseKeydown, part: "close-button" })))));
23958
+ } }, h("slot", { key: 'a72a156f0792fb7943c46d7edc6da51d222f4285', name: "start" }), h("div", { key: 'e7c654c4efe7bafaa41fdbafaae96976f4089f67', part: "label", ref: (el) => (this.tab = el), tabindex: this.disabled || !this.active ? '-1' : '0', class: "tab__label" }, h("slot", { key: '65f9a3b5342dfca0a8e6ec9be289f3ad4bb5da4e' })), h("slot", { key: 'e044937dc98a2650b58f7a792e0e190de80e2d00', name: "end" }), this.closable && !this.disabled && (h("nano-icon-button", { key: 'c7809dea53cb6ca1660f58f06f3a861f18950cba', label: "Close this tab", iconName: "light/xmark", class: "tab__close-button", onClick: this.handleCloseClick, onKeyDown: this.handleCloseKeydown, part: "close-button" })))));
23224
23959
  }
23225
23960
  static get style() { return tabCss; }
23226
23961
  static get cmpMeta() { return {
@@ -23266,10 +24001,10 @@ class NanoTabContent {
23266
24001
  requestAnimationFrame(() => (this.ready = true));
23267
24002
  }
23268
24003
  render() {
23269
- return (h(Host, { key: '7afee777be86f5847c5ac4c8de6babae3199b01d', id: this.host.id || this.tabContentId, style: { display: this.active ? 'block' : 'none' }, role: "tabpanel", "aria-hidden": this.active ? 'false' : 'true', class: {
24004
+ return (h(Host, { key: '3118031c009c947f2a7882a8dd65556b686d1c9d', id: this.host.id || this.tabContentId, style: { display: this.active ? 'block' : 'none' }, role: "tabpanel", "aria-hidden": this.active ? 'false' : 'true', class: {
23270
24005
  ready: this.ready,
23271
24006
  'nano-tab-content': true,
23272
- } }, h("div", { key: 'c316e2c15458eeb9fb6162d81060b81a1132e795', part: "base", class: "nano-tab-content" }, h("slot", { key: '532eedd714e732749cfe9b303b1f4c633e89491c' }))));
24007
+ } }, h("div", { key: 'cab097ece6d3473e5fc425dbde951fcaf399c5ba', part: "base", class: "nano-tab-content" }, h("slot", { key: 'b4ce04af8ea780022c5a9e63a16f1d087432a931' }))));
23273
24008
  }
23274
24009
  static get style() { return tabContentCss; }
23275
24010
  static get cmpMeta() { return {
@@ -23848,10 +24583,10 @@ class NanoTable {
23848
24583
  this.cleanUpObservers();
23849
24584
  }
23850
24585
  render() {
23851
- return (h(Host, { key: 'dfcda7c6604792e025f1ed4997395857ad786be3', class: {
24586
+ return (h(Host, { key: '75c4089a6d670a16eea3fca8d079ac9a827c4cfa', class: {
23852
24587
  'nano-table': true,
23853
24588
  'nano-table--props-ready': this.propsReady,
23854
- } }, this.scrollable && (h("nano-masked-overflow", { key: '2ef0536af50f22134e4c0d295172817287c46196', hideScrollbars: false, scrollControls: false, label: this.caption?.textContent || undefined, class: "nano-table__overflow-container" }, h("div", { key: '1b9ba48be1ccf92ac46f9873ac08b43a51cfcabc', class: "nano-table__overflow" }))), h("slot", { key: 'ab86c4eab83b69cb4ba31b22ae18f9cb0c31033a' })));
24589
+ } }, this.scrollable && (h("nano-masked-overflow", { key: '90a1e07d2daa97047c3be1381717a8ae3b53b5e1', hideScrollbars: false, scrollControls: false, label: this.caption?.textContent || undefined, class: "nano-table__overflow-container" }, h("div", { key: 'badc595c9931fb6198ab38b4e09cdf4201fcc064', class: "nano-table__overflow" }))), h("slot", { key: 'd3fd5902fccc42b3412e9cb1950b054b5a69a525' })));
23855
24590
  }
23856
24591
  static get watchers() { return {
23857
24592
  "compact": ["handleCompactChange"],
@@ -23898,6 +24633,10 @@ class NanoTag {
23898
24633
  * The size of the tag.
23899
24634
  */
23900
24635
  size = 'regular';
24636
+ /**
24637
+ * If true, the tag will have a different background color.
24638
+ */
24639
+ selected = false;
23901
24640
  get el() { return getElement(this); }
23902
24641
  /**
23903
24642
  * Fires when close button is clicked
@@ -23931,11 +24670,12 @@ class NanoTag {
23931
24670
  "$tagName$": "nano-tag",
23932
24671
  "$members$": {
23933
24672
  "closable": [516],
23934
- "size": [513]
24673
+ "size": [513],
24674
+ "selected": [516]
23935
24675
  },
23936
24676
  "$listeners$": undefined,
23937
24677
  "$lazyBundleId$": "-",
23938
- "$attrsToReflect$": [["closable", "closable"], ["size", "size"]]
24678
+ "$attrsToReflect$": [["closable", "closable"], ["size", "size"], ["selected", "selected"]]
23939
24679
  }; }
23940
24680
  }
23941
24681
 
@@ -24923,8 +25663,8 @@ let Rating$1 = class Rating {
24923
25663
  this.handleShowHideElements();
24924
25664
  }
24925
25665
  render() {
24926
- return (h(Host, { key: 'cdfbe00c8ce785ad89f711c8488b514dba8f3fb6', class: "nano-more-less" }, h("slot", { key: '8c17f3540c587129feff6905e518e01f4866b90d', onSlotchange: () => this.handleShowHideElements() }), this.children?.length > this.maxToShow && [
24927
- h("div", { key: 'fd937a181108336345a5278b4e2e230feb13f891', style: { display: this.show ? 'none' : 'contents' }, class: "button-wrapper", part: "button-wrapper button-wrapper--less", onClick: (e) => this.handleClick(e) }, h("slot", { key: 'bd7c0630e06de922c8ed48e5efc0db640594c776', name: "less" }, h("button", { key: '8c924f74b1b7939d17a9defd02ccb41ecd403257', part: "button button--less" }, "Show more (+", this.children.length - this.maxToShow, ")"))),
25666
+ return (h(Host, { key: '85aea064a37e2a66a31e8bab208eba423aa32a4e', class: "nano-more-less" }, h("slot", { key: 'c7288c755fa9cb24abb335158fe9ae1e116a012e', onSlotchange: () => this.handleShowHideElements() }), this.children?.length > this.maxToShow && [
25667
+ h("div", { key: 'ff18caab62f14cdff9cc5953cda9d4980e6e4b6a', style: { display: this.show ? 'none' : 'contents' }, class: "button-wrapper", part: "button-wrapper button-wrapper--less", onClick: (e) => this.handleClick(e) }, h("slot", { key: '8a7a856af8fca1221c308c2a0982e09b9c9da74f', name: "less" }, h("button", { key: '33578129514a86169e642f32fb9a66d257412719', part: "button button--less" }, "Show more (+", this.children.length - this.maxToShow, ")"))),
24928
25668
  !this.noHideBtn ? (h("div", { style: { display: this.show ? 'contents' : 'none' }, class: "button-wrapper", part: "button-wrapper button-wrapper--more", onClick: (e) => this.handleClick(e) }, h("slot", { name: "more" }, h("button", { part: "button button--more" }, "Show less (-", this.children.length - this.maxToShow, ")")))) : (''),
24929
25669
  ]));
24930
25670
  }
@@ -25145,20 +25885,20 @@ class Rating {
25145
25885
  else {
25146
25886
  displayValue = this.isHovering ? this.hoverValue : this.value;
25147
25887
  }
25148
- return (h(Host, { key: 'bacb1319a8119e09eb7223396c0fd308d8f1bcf0', class: "nano-rating" }, h("label", { key: 'e96dd3dc5d27aad666c9273fb48a0dde49b05bcd', class: `rating-label${this.hideLabel ? ' visually-hidden' : ''}`, part: "label", htmlFor: this.name }, h("slot", { key: 'a50e1bb855e58080b964cde932b6e850be44cff5', name: "label" }, this.label)), h("input", { key: 'c95ba7bf46db99df309030b4e7c9a006909e47a7', class: "range-input visually-hidden", name: this.name, id: this.name, disabled: this.disabled || this.readonly, required: this.required, value: this.value, onFocus: () => {
25888
+ return (h(Host, { key: 'b28d1a7ff7743338ff5ae18c386e49ee20f8df8e', class: "nano-rating" }, h("label", { key: '6fda8cf5da0b9ed38776ec3a9b93ec4fc02598b0', class: `rating-label${this.hideLabel ? ' visually-hidden' : ''}`, part: "label", htmlFor: this.name }, h("slot", { key: 'e92e2482a6aefd90bd27b5831ec75f0fb12fcd8b', name: "label" }, this.label)), h("input", { key: 'ef40cee201942dc8f0851f2ee4d785d3b1d27936', class: "range-input visually-hidden", name: this.name, id: this.name, disabled: this.disabled || this.readonly, required: this.required, value: this.value, onFocus: () => {
25149
25889
  this.setFocus();
25150
- } }), h("div", { key: 'a04e24da1bf879b551f31b3692e990e912739643', class: "rating-wrap" }, h("div", { key: '2686f949da578a7bcdbd3043f131edccc24f0f30', dir: this.isRtl ? 'rtl' : null, ref: (el) => (this.rating = el), part: "base", class: {
25890
+ } }), h("div", { key: '46c610322bc3b802d822cd22bfdcf3ad32f7e4d2', class: "rating-wrap" }, h("div", { key: 'fd509ff1f80a8172c00f2b320e6f5dbfd1252676', dir: this.isRtl ? 'rtl' : null, ref: (el) => (this.rating = el), part: "base", class: {
25151
25891
  rating: true,
25152
25892
  'rating--readonly': this.readonly,
25153
25893
  'rating--disabled': this.disabled,
25154
- }, "aria-disabled": this.disabled ? 'true' : 'false', "aria-readonly": this.readonly ? 'true' : 'false', "aria-valuenow": this.value, "aria-valuemin": 0, "aria-valuemax": this.max, tabIndex: this.disabled ? -1 : 0, onClick: this.handleClick, onKeyDown: this.handleKeyDown, onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave, onMouseMove: this.handleMouseMove, onFocus: this.handleFocus, onBlur: this.handleBlur }, h("span", { key: '890e0a8296994061f88cdfa42811ff61d1fbb2b2', class: "rating__symbols rating__symbols--inactive" }, counter.map((index) => (h("span", { class: {
25894
+ }, "aria-disabled": this.disabled ? 'true' : 'false', "aria-readonly": this.readonly ? 'true' : 'false', "aria-valuenow": this.value, "aria-valuemin": 0, "aria-valuemax": this.max, tabIndex: this.disabled ? -1 : 0, onClick: this.handleClick, onKeyDown: this.handleKeyDown, onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave, onMouseMove: this.handleMouseMove, onFocus: this.handleFocus, onBlur: this.handleBlur }, h("span", { key: 'd03101004803060722fd234f3500a5f7ac6e0603', class: "rating__symbols rating__symbols--inactive" }, counter.map((index) => (h("span", { class: {
25155
25895
  rating__symbol: true,
25156
25896
  'rating__symbol--hover': this.isHovering && Math.ceil(displayValue) === index + 1,
25157
25897
  },
25158
25898
  // Users can click the current value to clear the rating. When this happens, we set this.isHovering to
25159
25899
  // false to prevent the hover state from confusing them as they move the mouse out of the control. This
25160
25900
  // extra mouseenter will reinstate it if they happen to mouse over an adjacent symbol.
25161
- onMouseEnter: this.handleMouseEnter, innerHTML: this.symbol(index + 1) })))), h("span", { key: 'fad1f1de103c1451d848a215c9c7b18084f172ce', ref: (span) => (this.indicator = span), class: "rating__symbols rating__symbols--indicator", style: {
25901
+ onMouseEnter: this.handleMouseEnter, innerHTML: this.symbol(index + 1) })))), h("span", { key: '2e5b35988ef0b699c515fd86a5ab14b3a98f9215', ref: (span) => (this.indicator = span), class: "rating__symbols rating__symbols--indicator", style: {
25162
25902
  clip: this.clip(displayValue),
25163
25903
  } }, counter.map((index) => (h("span", { class: {
25164
25904
  rating__symbol: true,
@@ -25430,13 +26170,13 @@ class ResizeObserve {
25430
26170
  }
25431
26171
  }
25432
26172
  render() {
25433
- return (h(Host, { key: '3d1301e7d8a6c0f96188ea4dadddcc3f71a349cc', class: {
26173
+ return (h(Host, { key: '5db8e84066e7fd3d903f19e2256844331580947a', class: {
25434
26174
  'nano-resize-observe': true,
25435
26175
  'content-fit-x': this.contentFitX,
25436
26176
  'content-fit-y': this.contentFitY,
25437
26177
  'content-nofit-x': this.contentFitX === false,
25438
26178
  'content-nofit-y': this.contentFitY === false,
25439
- } }, h("slot", { key: '363d69b62debe81c7d3d1790d4dead42538f7118' }), !!this.notifyContentFit &&
26179
+ } }, h("slot", { key: 'ee5842c110b25f82eacbb4ba618d33dad345e732' }), !!this.notifyContentFit &&
25440
26180
  (this.contentFitX !== null || this.contentFitY !== null) && [
25441
26181
  this.contentFitX ? (h("slot", { name: "content-fit-x" })) : (h("slot", { name: "content-nofit-x" })),
25442
26182
  this.contentFitY ? (h("slot", { name: "content-fit-y" })) : (h("slot", { name: "content-nofit-y" })),
@@ -26167,30 +26907,30 @@ class Select {
26167
26907
  disabled,
26168
26908
  clearControl: this.clearable,
26169
26909
  }))(this);
26170
- return (h(Host, { key: '0648eef02c3e5fc9891e3aee3baa81eae2fc2b5e', type: this.multiple ? 'select-multiple' : 'select-one', "aria-disabled": this.disabled ? 'true' : null, class: {
26910
+ return (h(Host, { key: 'fff4c3c510b9c343af91cd44cd31a437bbd15a78', type: this.multiple ? 'select-multiple' : 'select-one', "aria-disabled": this.disabled ? 'true' : null, class: {
26171
26911
  'has-value': !!this.value.length || !!this.inputSearchVal.length,
26172
26912
  'has-focus': this.hasFocus,
26173
26913
  'is-invalid': this._invalid === true,
26174
26914
  'is-valid': this._invalid === false,
26175
26915
  'nano-select': true,
26176
- } }, h(FormControlWrap, { key: '36dcb0e4ef701eaf17ddf03f8f64cf83dee35b07', ...wrapOptions, class: {
26916
+ } }, h(FormControlWrap, { key: '57e3eca97027e9195328c5da6e10c46000ffe67e', ...wrapOptions, class: {
26177
26917
  'has-error': !!this.errorMessage &&
26178
26918
  this.showInlineError &&
26179
26919
  this._invalid === true,
26180
26920
  'has-helper': this.hasHelperSlot,
26181
26921
  'is-open': this.hasOpened,
26182
26922
  masked: this.mask,
26183
- } }, h(FormControl, { key: '6adbd4bf79d59de4a8d8f20c6dc287b9f70c9e5c', ...controlOptions, ref: (el) => (this.selectWrap = el), onClearText: this.clearSelectValue, control: this.el, endValueSlot: h("slot", { name: "down-arrow" }, h("nano-icon", { class: "select__down-arrow", name: "light/chevron-down" })), showInlineError: this.showInlineError }, this.multiple && (h("div", { key: 'eaf182a6e691f3490a2e26522be8daef9f3c0e58', class: "select__multi-wrap select" }, this.multipleValues(labelId, moreId, helperEndId))), !this.multiple && [
26184
- this.mask && (h("div", { key: 'd08b3d345fde15bd92a9d3237c9f0265b39a1cbb', class: "select__mask" }, this.getLabel(this.value))),
26185
- h("input", { key: '29eb562d57d5af570132b502652fbf0109563481', ref: (input) => (this.inputCtrl = input), id: this.selectId, class: "select__native-input", "aria-labelledby": labelId + ' ' + moreId + ' ' + helperEndId, disabled: this.disabled, form: this.form, placeholder: this.placeholder, readonly: true, required: this.required, value: this.getLabel(this.value), onFocus: this.onFocus }),
26186
- ])), !this.readonly && !this.disabled && (h("nano-datalist", { key: 'c7135aca51ac7e0b3f23fc63b8e8fef3d5d0d4a8', ref: (el) => (this.datalist = el), selected: this.valArray, type: this.multiple ? 'selectMulti' : 'select', options: this._options.length ? this._options : undefined, onNanoDeselect: (e) => {
26923
+ } }, h(FormControl, { key: 'be1a38b3b662d7cd40ce738ef9185d18dae22318', ...controlOptions, ref: (el) => (this.selectWrap = el), onClearText: this.clearSelectValue, control: this.el, endValueSlot: h("slot", { name: "down-arrow" }, h("nano-icon", { class: "select__down-arrow", name: "light/chevron-down" })), showInlineError: this.showInlineError }, this.multiple && (h("div", { key: '89b7b5b75ef67513c228f230c11122333448408f', class: "select__multi-wrap select" }, this.multipleValues(labelId, moreId, helperEndId))), !this.multiple && [
26924
+ this.mask && (h("div", { key: 'efd35e47435a363be382ceae43d4348479cd50b5', class: "select__mask" }, this.getLabel(this.value))),
26925
+ h("input", { key: '236a63937ee3c981bbc2e4d77d72516f4d614326', ref: (input) => (this.inputCtrl = input), id: this.selectId, class: "select__native-input", "aria-labelledby": labelId + ' ' + moreId + ' ' + helperEndId, disabled: this.disabled, form: this.form, placeholder: this.placeholder, readonly: true, required: this.required, value: this.getLabel(this.value), onFocus: this.onFocus }),
26926
+ ])), !this.readonly && !this.disabled && (h("nano-datalist", { key: 'c0e2707266e76ed2714cbd91727c828e4e0e9861', ref: (el) => (this.datalist = el), selected: this.valArray, type: this.multiple ? 'selectMulti' : 'select', options: this._options.length ? this._options : undefined, onNanoDeselect: (e) => {
26187
26927
  e.preventDefault();
26188
26928
  this.removeValue(e.detail.value);
26189
26929
  }, onNanoOptionsUpdated: this.setOptions, onNanoSelect: this.setValue,
26190
26930
  // @ts-expect-error - this bubbles from the nano-dropdown
26191
26931
  onNanoShow: () => (this.hasOpened = true), onNanoHide: () => (this.hasOpened = false) }, this.allowCustomValues &&
26192
26932
  this.multiple &&
26193
- !!this.inputSearchVal && (h("nano-option", { key: 'c1bfe32d20443e5be164a400e5553e30488f26be', slot: "list-top", value: this.inputSearchVal, selected: false, label: this.inputSearchVal, onNanoSelect: () => this.inputCtrl.focus() }, h("span", { key: 'aad3f8699ac6e9538055437e30d040ba686b0c46', slot: "check-icon" }), "Add '", this.inputSearchVal, "'")), h("slot", { key: 'bbbc2b303f78dcdc9aaf19c78279099b389159c4' }))), h("select", { key: '87e9d612386dc3b0baf0a79b6de750d22043c967', id: this.selectId + '-hidden', class: "select__native-ctrl", ref: (select) => (this.nativeSelect = select), "aria-labelledby": labelId + ' ' + moreId + ' ' + helperEndId, disabled: this.disabled, form: this.form, multiple: this.multiple, name: this.name, required: this.required, onInvalid: this.handleInvalid }, this.allowCustomValues &&
26933
+ !!this.inputSearchVal && (h("nano-option", { key: 'bfc7c0f31d962d89369ff173236bebbca134885d', slot: "list-top", value: this.inputSearchVal, selected: false, label: this.inputSearchVal, onNanoSelect: () => this.inputCtrl.focus() }, h("span", { key: '2f2f299440d4aca0c718308ad819873cf5f71163', slot: "check-icon" }), "Add '", this.inputSearchVal, "'")), h("slot", { key: '5c41abf1e6e6c7b897538beb6b4509ae5f845ce6' }))), h("select", { key: '3443483daf9d524e98cb3614f67a630b349b033f', id: this.selectId + '-hidden', class: "select__native-ctrl", ref: (select) => (this.nativeSelect = select), "aria-labelledby": labelId + ' ' + moreId + ' ' + helperEndId, disabled: this.disabled, form: this.form, multiple: this.multiple, name: this.name, required: this.required, onInvalid: this.handleInvalid }, this.allowCustomValues &&
26194
26934
  this.valArray.map((val) => {
26195
26935
  return (h("option", { value: val, selected: true }, val));
26196
26936
  }), !this.allowCustomValues &&
@@ -26333,7 +27073,7 @@ let Slide$2 = class Slide {
26333
27073
  });
26334
27074
  }
26335
27075
  render() {
26336
- return (h(Host, { key: '3d5f03684b14b0944b06802a26955b035ae20a9f', class: "nano-slide" }, h("slot", { key: '5115d41ae13fb0980ae656c106b9105b5f14703b' })));
27076
+ return (h(Host, { key: '599510bff6daf72dca9b1de41767aea575eae98a', class: "nano-slide" }, h("slot", { key: '911f54eb0ad7ee91d7ea358f2e581d55793416ee' })));
26337
27077
  }
26338
27078
  static get watchers() { return {
26339
27079
  "ready": ["readyChange"]
@@ -29312,15 +30052,15 @@ class Slides {
29312
30052
  this.destroyflickity();
29313
30053
  }
29314
30054
  render() {
29315
- return (h(Host, { key: '905eab94c6853e11f8103ade8a2711515a957a88', class: "nano-slides" }, h("div", { key: 'a6ca3bf953dc8ad8643b5f196bbbb4cad5696739', class: {
30055
+ return (h(Host, { key: 'e259a3a5de2c5dc025ab6dc61c3a41e1f812f077', class: "nano-slides" }, h("div", { key: '74abbe2dd44755ae5e5c5c766e6833c74c152aa8', class: {
29316
30056
  slideshow: true,
29317
30057
  ready: this.ready,
29318
30058
  'not-ready': !this.ready,
29319
- }, part: "base" }, h("div", { key: 'ebf38a42c8c0ee4a192e2c10c7e882f4953cf707', ref: (div) => (this.flickityEl = div), class: {
30059
+ }, part: "base" }, h("div", { key: '1a0a00d3ad6651a06fe46f1beff537f9cd483fc7', ref: (div) => (this.flickityEl = div), class: {
29320
30060
  'flickity-container': true,
29321
30061
  'slides-ready': this.slidesReady,
29322
30062
  'slides-not-ready': !this.slidesReady,
29323
- }, part: "slide-container" }, h("slot", { key: 'ac8e76e6ee701ef38a73a1f753cbf7ad30ef9c59' })), h("div", { key: 'e74cad0bd4ec8e2e15308b26550a697ff3dd4dcb', class: "ui-extras" }, h("slot", { key: '8b7b6cfb6ba0e531a8c7707f5f65cba334e8eba6', name: "ui" })))));
30063
+ }, part: "slide-container" }, h("slot", { key: '7a0edeee40901099cc455337acad6e798041f4f1' })), h("div", { key: 'bef46a7658a4ff89d02a2feb6dbcdd64d8e965f2', class: "ui-extras" }, h("slot", { key: '2f0603645945a8e77de9252036363e770e8e424d', name: "ui" })))));
29324
30064
  }
29325
30065
  static get watchers() { return {
29326
30066
  "options": ["optionsChanged"],
@@ -30098,7 +30838,7 @@ class Sortable {
30098
30838
  }
30099
30839
  }
30100
30840
  render() {
30101
- return (h(Host, { key: 'f9329f87a60f9b77ad917b9bbf0aa526f4779e82', class: "nano-sortable" }, h("div", { key: 'c30a6d47b7a932906b17f0cd0cec80e0c7ea38ef', class: "sortable__live-region", "aria-live": "polite", "aria-relevant": "additions", "aria-atomic": "true", role: "log", part: "announcements" }, this.ariaTextList.map((str) => (h("div", null, str)))), h("slot", { key: 'a377bb437eb590b3f77d10f105b2fa09e0d21cbd' })));
30841
+ return (h(Host, { key: 'db8dbc8b62755164c30650a9485205f8ea2c6107', class: "nano-sortable" }, h("div", { key: '0c4646d0cf095e9970787ae4a5101765f0f5fe4f', class: "sortable__live-region", "aria-live": "polite", "aria-relevant": "additions", "aria-atomic": "true", role: "log", part: "announcements" }, this.ariaTextList.map((str) => (h("div", null, str)))), h("slot", { key: '41e538783cb246a7ada58353374228a833b4fc4a' })));
30102
30842
  }
30103
30843
  static get watchers() { return {
30104
30844
  "itemSelector": ["handleItemSelectorChange"],
@@ -31097,12 +31837,12 @@ class Sticker {
31097
31837
  this.hasBootstrapped = false;
31098
31838
  }
31099
31839
  render() {
31100
- return (h(Host, { key: 'd0e4e1b0cc7c63db0389ee67b999c30347f7e16b', sticky: !this.isRootSticker && !this.stickToEle && this.isSticky, hide: this.hide && this.isStuck, siblings: this.stuckCounter, index: this.stickerIndex, stuck: this.isStuck && this.isSticky, "placed-bottom": this.positions.includes('bottom'), "placed-top": this.positions.includes('top'), "placed-end": this.positions.includes('end'), "placed-start": this.positions.includes('start'), class: "nano-sticker" }, h("div", { key: '6f9852e2cfeb2e203e5dde6f71e7a042a996dd86', class: {
31840
+ return (h(Host, { key: '6626d945b580e7e23d940db522958250e89261ad', sticky: !this.isRootSticker && !this.stickToEle && this.isSticky, hide: this.hide && this.isStuck, siblings: this.stuckCounter, index: this.stickerIndex, stuck: this.isStuck && this.isSticky, "placed-bottom": this.positions.includes('bottom'), "placed-top": this.positions.includes('top'), "placed-end": this.positions.includes('end'), "placed-start": this.positions.includes('start'), class: "nano-sticker" }, h("div", { key: '1e4b7f859218a5ed2256f7f860dcffa4b1b8f5be', class: {
31101
31841
  sticker: true,
31102
31842
  sticky: this.isRootSticker && this.isSticky,
31103
31843
  stuck: this.isStuck && this.isRootSticker && this.isSticky,
31104
31844
  hide: this.isRootSticker && this.hide && this.isStuck,
31105
- }, ref: (div) => (this.sticker = div) }, h("div", { key: '1e54d0ebe57b52c95a64acbb6d46f8c9d9778dd3', class: "sticker-content", ref: (div) => (this.content = div) }, h("slot", { key: 'e8359edd6c73c5006ff1c90a91ecafad07e5c915' })))));
31845
+ }, ref: (div) => (this.sticker = div) }, h("div", { key: '4f7cd61f38b78433296a9708ddbd702d97cf2435', class: "sticker-content", ref: (div) => (this.content = div) }, h("slot", { key: 'a88a8500ee1ea99324f9b1b7390675486035496c' })))));
31106
31846
  }
31107
31847
  static get watchers() { return {
31108
31848
  "trigger": ["updateTriggerOffset"],
@@ -31391,10 +32131,10 @@ class Tooltip {
31391
32131
  this.popover.destroy();
31392
32132
  }
31393
32133
  render() {
31394
- return (h(Host, { key: '94758bb18228b14884cf2be79228e554de84013f', onKeyDown: this.handleKeyDown, onMouseOver: this.handleMouseOver, onMouseOut: this.handleMouseOut, onBlur: this.handleBlur, onFocus: this.handleFocus, onClick: this.handleClick, class: "nano-tooltip" }, h("slot", { key: '45589386e68d89c21abbb50513678152e8bce9d1', onSlotchange: this.handleSlotChange }), h("div", { key: '6a76c101c35d45458f0a680753a381cc95631b87', ref: (el) => (this.tooltipPositioner = el), class: "tooltip-positioner", popover: "manual" }, h("div", { key: 'd3b2cc9c9018c9a0a5dc4cef256c8b9c568cd0b4', part: "base", ref: (el) => (this.tooltip = el), class: {
32134
+ return (h(Host, { key: '30c71d884cf8fc1c2e97092dad0fb5d6695c77a8', onKeyDown: this.handleKeyDown, onMouseOver: this.handleMouseOver, onMouseOut: this.handleMouseOut, onBlur: this.handleBlur, onFocus: this.handleFocus, onClick: this.handleClick, class: "nano-tooltip" }, h("slot", { key: 'b7e7893c178d99abeb0f1e5a35892fddc8ab302a', onSlotchange: this.handleSlotChange }), h("div", { key: '83aae47d9745dcce88f6119ffa63b3bea809dc17', ref: (el) => (this.tooltipPositioner = el), class: "tooltip-positioner", popover: "manual" }, h("div", { key: 'f5cd2aa11ef281358d11057c866b298202398fc2', part: "base", ref: (el) => (this.tooltip = el), class: {
31395
32135
  tooltip: true,
31396
32136
  'tooltip--open': this.open,
31397
- }, role: "tooltip", "aria-hidden": this.open ? 'false' : 'true' }, h("slot", { key: '1c51cdc6a7ec88107e3290b0b9750198e7176c20', name: "content", onSlotchange: () => this.setLabel() }, this.content), h("div", { key: '00f090eee000e6bba713dc21a1d53c348eb94a76', class: "tooltip-arrow", "data-popper-arrow": true })))));
32137
+ }, role: "tooltip", "aria-hidden": this.open ? 'false' : 'true' }, h("slot", { key: '0dc5a5f28b439406f2d19dc4822b221bbb65a9e8', name: "content", onSlotchange: () => this.setLabel() }, this.content), h("div", { key: 'd196bcffcfd4b26cf085ec21cc7965a369dd55ab', class: "tooltip-arrow", "data-popper-arrow": true })))));
31398
32138
  }
31399
32139
  static get watchers() { return {
31400
32140
  "content": ["setLabel"],
@@ -31448,6 +32188,7 @@ registerComponents([
31448
32188
  IconButton,
31449
32189
  Img,
31450
32190
  Input,
32191
+ InputOTP,
31451
32192
  IntersectionObserve,
31452
32193
  MaskedOverflow,
31453
32194
  Menu,