@aquera/nile-elements 0.0.3-1 → 0.0.3-3

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 (221) hide show
  1. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/index.d.ts +2 -0
  2. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/index.js +2 -0
  3. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/index.js.map +1 -1
  4. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-checkbox/nile-checkbox.css.js +5 -1
  5. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-checkbox/nile-checkbox.css.js.map +1 -1
  6. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-checkbox/nile-checkbox.d.ts +2 -0
  7. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-checkbox/nile-checkbox.js +25 -1
  8. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-checkbox/nile-checkbox.js.map +1 -1
  9. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-chip/nile-chip.css.js +9 -11
  10. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-chip/nile-chip.css.js.map +1 -1
  11. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-chip/nile-chip.d.ts +3 -2
  12. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-chip/nile-chip.js +32 -8
  13. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-chip/nile-chip.js.map +1 -1
  14. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-form-error-message/index.d.ts +1 -0
  15. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-form-error-message/index.js +2 -0
  16. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-form-error-message/index.js.map +1 -0
  17. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-form-error-message/nile-form-error-message.css.d.ts +12 -0
  18. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-form-error-message/nile-form-error-message.css.js +33 -0
  19. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-form-error-message/nile-form-error-message.css.js.map +1 -0
  20. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-form-error-message/nile-form-error-message.d.ts +31 -0
  21. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-form-error-message/nile-form-error-message.js +44 -0
  22. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-form-error-message/nile-form-error-message.js.map +1 -0
  23. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-form-help-text/index.d.ts +1 -0
  24. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-form-help-text/index.js +2 -0
  25. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-form-help-text/index.js.map +1 -0
  26. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-form-help-text/nile-form-help-text.css.d.ts +12 -0
  27. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-form-help-text/nile-form-help-text.css.js +31 -0
  28. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-form-help-text/nile-form-help-text.css.js.map +1 -0
  29. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-form-help-text/nile-form-help-text.d.ts +31 -0
  30. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-form-help-text/nile-form-help-text.js +44 -0
  31. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-form-help-text/nile-form-help-text.js.map +1 -0
  32. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon-button/nile-icon-button.js +1 -0
  33. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon-button/nile-icon-button.js.map +1 -1
  34. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-input/nile-input.css.js +21 -8
  35. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-input/nile-input.css.js.map +1 -1
  36. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-input/nile-input.js +18 -24
  37. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-input/nile-input.js.map +1 -1
  38. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-radio-group/nile-radio-group.css.js +8 -0
  39. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-radio-group/nile-radio-group.css.js.map +1 -1
  40. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-radio-group/nile-radio-group.d.ts +2 -3
  41. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-radio-group/nile-radio-group.js +24 -20
  42. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-radio-group/nile-radio-group.js.map +1 -1
  43. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-select/nile-select.css.js +17 -11
  44. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-select/nile-select.css.js.map +1 -1
  45. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-select/nile-select.d.ts +2 -2
  46. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-select/nile-select.js +24 -15
  47. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-select/nile-select.js.map +1 -1
  48. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-slide-toggle/nile-slide-toggle.css.js +7 -0
  49. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-slide-toggle/nile-slide-toggle.css.js.map +1 -1
  50. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-slide-toggle/nile-slide-toggle.d.ts +2 -0
  51. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-slide-toggle/nile-slide-toggle.js +23 -0
  52. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-slide-toggle/nile-slide-toggle.js.map +1 -1
  53. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-tag/nile-tag.css.js +68 -41
  54. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-tag/nile-tag.css.js.map +1 -1
  55. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-tag/nile-tag.d.ts +1 -1
  56. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-tag/nile-tag.js +9 -6
  57. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-tag/nile-tag.js.map +1 -1
  58. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-textarea/nile-textarea.css.js +15 -10
  59. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-textarea/nile-textarea.css.js.map +1 -1
  60. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-textarea/nile-textarea.js +15 -18
  61. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-textarea/nile-textarea.js.map +1 -1
  62. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/tsconfig.tsbuildinfo +1 -1
  63. package/dist/index.cjs.js +1 -1
  64. package/dist/index.esm.js +1 -1
  65. package/dist/index.iife.js +305 -176
  66. package/dist/nile-checkbox/nile-checkbox.cjs.js +1 -1
  67. package/dist/nile-checkbox/nile-checkbox.cjs.js.map +1 -1
  68. package/dist/nile-checkbox/nile-checkbox.css.cjs.js +1 -1
  69. package/dist/nile-checkbox/nile-checkbox.css.cjs.js.map +1 -1
  70. package/dist/nile-checkbox/nile-checkbox.css.esm.js +5 -1
  71. package/dist/nile-checkbox/nile-checkbox.esm.js +15 -5
  72. package/dist/nile-chip/nile-chip.cjs.js +1 -1
  73. package/dist/nile-chip/nile-chip.cjs.js.map +1 -1
  74. package/dist/nile-chip/nile-chip.css.cjs.js +1 -1
  75. package/dist/nile-chip/nile-chip.css.cjs.js.map +1 -1
  76. package/dist/nile-chip/nile-chip.css.esm.js +9 -11
  77. package/dist/nile-chip/nile-chip.esm.js +17 -7
  78. package/dist/nile-form-error-message/index.cjs.js +2 -0
  79. package/dist/nile-form-error-message/index.cjs.js.map +1 -0
  80. package/dist/nile-form-error-message/index.esm.js +1 -0
  81. package/dist/nile-form-error-message/nile-form-error-message.cjs.js +2 -0
  82. package/dist/nile-form-error-message/nile-form-error-message.cjs.js.map +1 -0
  83. package/dist/nile-form-error-message/nile-form-error-message.css.cjs.js +2 -0
  84. package/dist/nile-form-error-message/nile-form-error-message.css.cjs.js.map +1 -0
  85. package/dist/nile-form-error-message/nile-form-error-message.css.esm.js +21 -0
  86. package/dist/nile-form-error-message/nile-form-error-message.esm.js +5 -0
  87. package/dist/nile-form-help-text/index.cjs.js +2 -0
  88. package/dist/nile-form-help-text/index.cjs.js.map +1 -0
  89. package/dist/nile-form-help-text/index.esm.js +1 -0
  90. package/dist/nile-form-help-text/nile-form-help-text.cjs.js +2 -0
  91. package/dist/nile-form-help-text/nile-form-help-text.cjs.js.map +1 -0
  92. package/dist/nile-form-help-text/nile-form-help-text.css.cjs.js +2 -0
  93. package/dist/nile-form-help-text/nile-form-help-text.css.cjs.js.map +1 -0
  94. package/dist/nile-form-help-text/nile-form-help-text.css.esm.js +19 -0
  95. package/dist/nile-form-help-text/nile-form-help-text.esm.js +5 -0
  96. package/dist/nile-icon-button/nile-icon-button.cjs.js +1 -1
  97. package/dist/nile-icon-button/nile-icon-button.cjs.js.map +1 -1
  98. package/dist/nile-icon-button/nile-icon-button.esm.js +1 -0
  99. package/dist/nile-input/nile-input.cjs.js +1 -1
  100. package/dist/nile-input/nile-input.cjs.js.map +1 -1
  101. package/dist/nile-input/nile-input.css.cjs.js +1 -1
  102. package/dist/nile-input/nile-input.css.cjs.js.map +1 -1
  103. package/dist/nile-input/nile-input.css.esm.js +21 -8
  104. package/dist/nile-input/nile-input.esm.js +12 -23
  105. package/dist/nile-radio-group/nile-radio-group.cjs.js +1 -1
  106. package/dist/nile-radio-group/nile-radio-group.cjs.js.map +1 -1
  107. package/dist/nile-radio-group/nile-radio-group.css.cjs.js +1 -1
  108. package/dist/nile-radio-group/nile-radio-group.css.cjs.js.map +1 -1
  109. package/dist/nile-radio-group/nile-radio-group.css.esm.js +10 -2
  110. package/dist/nile-radio-group/nile-radio-group.esm.js +14 -14
  111. package/dist/nile-select/nile-select.cjs.js +1 -1
  112. package/dist/nile-select/nile-select.cjs.js.map +1 -1
  113. package/dist/nile-select/nile-select.css.cjs.js +1 -1
  114. package/dist/nile-select/nile-select.css.cjs.js.map +1 -1
  115. package/dist/nile-select/nile-select.css.esm.js +17 -11
  116. package/dist/nile-select/nile-select.esm.js +18 -17
  117. package/dist/nile-slide-toggle/nile-slide-toggle.cjs.js +1 -1
  118. package/dist/nile-slide-toggle/nile-slide-toggle.cjs.js.map +1 -1
  119. package/dist/nile-slide-toggle/nile-slide-toggle.css.cjs.js +1 -1
  120. package/dist/nile-slide-toggle/nile-slide-toggle.css.cjs.js.map +1 -1
  121. package/dist/nile-slide-toggle/nile-slide-toggle.css.esm.js +7 -0
  122. package/dist/nile-slide-toggle/nile-slide-toggle.esm.js +11 -2
  123. package/dist/nile-tag/nile-tag.cjs.js +1 -1
  124. package/dist/nile-tag/nile-tag.cjs.js.map +1 -1
  125. package/dist/nile-tag/nile-tag.css.cjs.js +1 -1
  126. package/dist/nile-tag/nile-tag.css.cjs.js.map +1 -1
  127. package/dist/nile-tag/nile-tag.css.esm.js +70 -43
  128. package/dist/nile-tag/nile-tag.esm.js +7 -4
  129. package/dist/nile-textarea/nile-textarea.cjs.js +1 -1
  130. package/dist/nile-textarea/nile-textarea.cjs.js.map +1 -1
  131. package/dist/nile-textarea/nile-textarea.css.cjs.js +1 -1
  132. package/dist/nile-textarea/nile-textarea.css.cjs.js.map +1 -1
  133. package/dist/nile-textarea/nile-textarea.css.esm.js +15 -10
  134. package/dist/nile-textarea/nile-textarea.esm.js +12 -20
  135. package/dist/src/index.d.ts +2 -0
  136. package/dist/src/index.js +2 -0
  137. package/dist/src/index.js.map +1 -1
  138. package/dist/src/nile-checkbox/nile-checkbox.css.js +5 -1
  139. package/dist/src/nile-checkbox/nile-checkbox.css.js.map +1 -1
  140. package/dist/src/nile-checkbox/nile-checkbox.d.ts +2 -0
  141. package/dist/src/nile-checkbox/nile-checkbox.js +25 -1
  142. package/dist/src/nile-checkbox/nile-checkbox.js.map +1 -1
  143. package/dist/src/nile-chip/nile-chip.css.js +9 -11
  144. package/dist/src/nile-chip/nile-chip.css.js.map +1 -1
  145. package/dist/src/nile-chip/nile-chip.d.ts +3 -2
  146. package/dist/src/nile-chip/nile-chip.js +32 -8
  147. package/dist/src/nile-chip/nile-chip.js.map +1 -1
  148. package/dist/src/nile-form-error-message/index.d.ts +1 -0
  149. package/dist/src/nile-form-error-message/index.js +2 -0
  150. package/dist/src/nile-form-error-message/index.js.map +1 -0
  151. package/dist/src/nile-form-error-message/nile-form-error-message.css.d.ts +12 -0
  152. package/dist/src/nile-form-error-message/nile-form-error-message.css.js +33 -0
  153. package/dist/src/nile-form-error-message/nile-form-error-message.css.js.map +1 -0
  154. package/dist/src/nile-form-error-message/nile-form-error-message.d.ts +31 -0
  155. package/dist/src/nile-form-error-message/nile-form-error-message.js +44 -0
  156. package/dist/src/nile-form-error-message/nile-form-error-message.js.map +1 -0
  157. package/dist/src/nile-form-help-text/index.d.ts +1 -0
  158. package/dist/src/nile-form-help-text/index.js +2 -0
  159. package/dist/src/nile-form-help-text/index.js.map +1 -0
  160. package/dist/src/nile-form-help-text/nile-form-help-text.css.d.ts +12 -0
  161. package/dist/src/nile-form-help-text/nile-form-help-text.css.js +31 -0
  162. package/dist/src/nile-form-help-text/nile-form-help-text.css.js.map +1 -0
  163. package/dist/src/nile-form-help-text/nile-form-help-text.d.ts +31 -0
  164. package/dist/src/nile-form-help-text/nile-form-help-text.js +44 -0
  165. package/dist/src/nile-form-help-text/nile-form-help-text.js.map +1 -0
  166. package/dist/src/nile-icon-button/nile-icon-button.js +1 -0
  167. package/dist/src/nile-icon-button/nile-icon-button.js.map +1 -1
  168. package/dist/src/nile-input/nile-input.css.js +21 -8
  169. package/dist/src/nile-input/nile-input.css.js.map +1 -1
  170. package/dist/src/nile-input/nile-input.js +18 -24
  171. package/dist/src/nile-input/nile-input.js.map +1 -1
  172. package/dist/src/nile-radio-group/nile-radio-group.css.js +8 -0
  173. package/dist/src/nile-radio-group/nile-radio-group.css.js.map +1 -1
  174. package/dist/src/nile-radio-group/nile-radio-group.d.ts +2 -3
  175. package/dist/src/nile-radio-group/nile-radio-group.js +24 -20
  176. package/dist/src/nile-radio-group/nile-radio-group.js.map +1 -1
  177. package/dist/src/nile-select/nile-select.css.js +17 -11
  178. package/dist/src/nile-select/nile-select.css.js.map +1 -1
  179. package/dist/src/nile-select/nile-select.d.ts +2 -2
  180. package/dist/src/nile-select/nile-select.js +24 -15
  181. package/dist/src/nile-select/nile-select.js.map +1 -1
  182. package/dist/src/nile-slide-toggle/nile-slide-toggle.css.js +7 -0
  183. package/dist/src/nile-slide-toggle/nile-slide-toggle.css.js.map +1 -1
  184. package/dist/src/nile-slide-toggle/nile-slide-toggle.d.ts +2 -0
  185. package/dist/src/nile-slide-toggle/nile-slide-toggle.js +23 -0
  186. package/dist/src/nile-slide-toggle/nile-slide-toggle.js.map +1 -1
  187. package/dist/src/nile-tag/nile-tag.css.js +68 -41
  188. package/dist/src/nile-tag/nile-tag.css.js.map +1 -1
  189. package/dist/src/nile-tag/nile-tag.d.ts +1 -1
  190. package/dist/src/nile-tag/nile-tag.js +9 -6
  191. package/dist/src/nile-tag/nile-tag.js.map +1 -1
  192. package/dist/src/nile-textarea/nile-textarea.css.js +15 -10
  193. package/dist/src/nile-textarea/nile-textarea.css.js.map +1 -1
  194. package/dist/src/nile-textarea/nile-textarea.js +15 -18
  195. package/dist/src/nile-textarea/nile-textarea.js.map +1 -1
  196. package/dist/tsconfig.tsbuildinfo +1 -1
  197. package/package.json +1 -1
  198. package/src/index.ts +2 -0
  199. package/src/nile-checkbox/nile-checkbox.css.ts +5 -1
  200. package/src/nile-checkbox/nile-checkbox.ts +26 -1
  201. package/src/nile-chip/nile-chip.css.ts +9 -11
  202. package/src/nile-chip/nile-chip.ts +32 -6
  203. package/src/nile-form-error-message/index.ts +1 -0
  204. package/src/nile-form-error-message/nile-form-error-message.css.ts +35 -0
  205. package/src/nile-form-error-message/nile-form-error-message.ts +54 -0
  206. package/src/nile-form-help-text/index.ts +1 -0
  207. package/src/nile-form-help-text/nile-form-help-text.css.ts +33 -0
  208. package/src/nile-form-help-text/nile-form-help-text.ts +54 -0
  209. package/src/nile-icon-button/nile-icon-button.ts +1 -0
  210. package/src/nile-input/nile-input.css.ts +21 -8
  211. package/src/nile-input/nile-input.ts +71 -38
  212. package/src/nile-radio-group/nile-radio-group.css.ts +8 -0
  213. package/src/nile-radio-group/nile-radio-group.ts +25 -15
  214. package/src/nile-select/nile-select.css.ts +17 -11
  215. package/src/nile-select/nile-select.ts +24 -12
  216. package/src/nile-slide-toggle/nile-slide-toggle.css.ts +7 -0
  217. package/src/nile-slide-toggle/nile-slide-toggle.ts +24 -0
  218. package/src/nile-tag/nile-tag.css.ts +68 -41
  219. package/src/nile-tag/nile-tag.ts +11 -8
  220. package/src/nile-textarea/nile-textarea.css.ts +15 -10
  221. package/src/nile-textarea/nile-textarea.ts +20 -18
@@ -14,13 +14,13 @@
14
14
  * Copyright 2017 Google LLC
15
15
  * SPDX-License-Identifier: BSD-3-Clause
16
16
  */
17
- var l;e.finalized=!0,e.elementProperties=new Map,e.elementStyles=[],e.shadowRootOptions={mode:"open"},null==y||y({ReactiveElement:e}),(null!==(T=z.reactiveElementVersions)&&void 0!==T?T:z.reactiveElementVersions=[]).push("1.4.1");const w=window,E=w.trustedTypes,a=E?E.createPolicy("lit-html",{createHTML:M=>M}):void 0,S=`lit$${(Math.random()+"").slice(9)}$`,o="?"+S,O=`<${o}>`,n=document,d=(M="")=>n.createComment(M),C=M=>null===M||"object"!=typeof M&&"function"!=typeof M,r=Array.isArray,U=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Q=/-->/g,k=/>/g,h=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),Y=/'/g,Z=/"/g,b=/^(?:script|style|textarea|title)$/i,m=(M=>(N,...D)=>({_$litType$:M,strings:N,values:D}))(1),p=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),V=new WeakMap,v=n.createTreeWalker(n,129,null,!1);let G=class{constructor({strings:M,_$litType$:N},D){let i;this.parts=[];let I=0,j=0;const g=M.length-1,u=this.parts,[L,T]=((M,N)=>{const D=M.length-1,i=[];let I,j=2===N?"<svg>":"",g=U;for(let N=0;N<D;N++){const D=M[N];let u,L,T=-1,z=0;for(;z<D.length&&(g.lastIndex=z,L=g.exec(D),null!==L);)z=g.lastIndex,g===U?"!--"===L[1]?g=Q:void 0!==L[1]?g=k:void 0!==L[2]?(b.test(L[2])&&(I=RegExp("</"+L[2],"g")),g=h):void 0!==L[3]&&(g=h):g===h?">"===L[0]?(g=null!=I?I:U,T=-1):void 0===L[1]?T=-2:(T=g.lastIndex-L[2].length,u=L[1],g=void 0===L[3]?h:'"'===L[3]?Z:Y):g===Z||g===Y?g=h:g===Q||g===k?g=U:(g=h,I=void 0);const A=g===h&&M[N+1].startsWith("/>")?" ":"";j+=g===U?D+O:T>=0?(i.push(u),D.slice(0,T)+"$lit$"+D.slice(T)+S+A):D+S+(-2===T?(i.push(void 0),N):A)}const u=j+(M[D]||"<?>")+(2===N?"</svg>":"");if(!Array.isArray(M)||!M.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==a?a.createHTML(u):u,i]})(M,N);if(this.el=G.createElement(L,D),v.currentNode=this.el.content,2===N){const M=this.el.content,N=M.firstChild;N.remove(),M.append(...N.childNodes)}for(;null!==(i=v.nextNode())&&u.length<g;){if(1===i.nodeType){if(i.hasAttributes()){const M=[];for(const N of i.getAttributeNames())if(N.endsWith("$lit$")||N.startsWith(S)){const D=T[j++];if(M.push(N),void 0!==D){const M=i.getAttribute(D.toLowerCase()+"$lit$").split(S),N=/([.?@])?(.*)/.exec(D);u.push({type:1,index:I,name:N[2],strings:M,ctor:"."===N[1]?F:"?"===N[1]?J:"@"===N[1]?X:R})}else u.push({type:6,index:I})}for(const N of M)i.removeAttribute(N)}if(b.test(i.tagName)){const M=i.textContent.split(S),N=M.length-1;if(N>0){i.textContent=E?E.emptyScript:"";for(let D=0;D<N;D++)i.append(M[D],d()),v.nextNode(),u.push({type:2,index:++I});i.append(M[N],d())}}}else if(8===i.nodeType)if(i.data===o)u.push({type:2,index:I});else{let M=-1;for(;-1!==(M=i.data.indexOf(S,M+1));)u.push({type:7,index:I}),M+=S.length-1}I++}}static createElement(M,N){const D=n.createElement("template");return D.innerHTML=M,D}};function B(M,N,D=M,i){var I,j,g,u;if(N===p)return N;let L=void 0!==i?null===(I=D._$Co)||void 0===I?void 0:I[i]:D._$Cl;const T=C(N)?void 0:N._$litDirective$;return(null==L?void 0:L.constructor)!==T&&(null===(j=null==L?void 0:L._$AO)||void 0===j||j.call(L,!1),void 0===T?L=void 0:(L=new T(M),L._$AT(M,D,i)),void 0!==i?(null!==(g=(u=D)._$Co)&&void 0!==g?g:u._$Co=[])[i]=L:D._$Cl=L),void 0!==L&&(N=B(M,L._$AS(M,N.values),L,i)),N}let P=class{constructor(M,N,D,i){var I;this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=M,this._$AB=N,this._$AM=D,this.options=i,this._$Cm=null===(I=null==i?void 0:i.isConnected)||void 0===I||I}get _$AU(){var M,N;return null!==(N=null===(M=this._$AM)||void 0===M?void 0:M._$AU)&&void 0!==N?N:this._$Cm}get parentNode(){let M=this._$AA.parentNode;const N=this._$AM;return void 0!==N&&11===M.nodeType&&(M=N.parentNode),M}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(M,N=this){M=B(this,M,N),C(M)?M===W||null==M||""===M?(this._$AH!==W&&this._$AR(),this._$AH=W):M!==this._$AH&&M!==p&&this.g(M):void 0!==M._$litType$?this.$(M):void 0!==M.nodeType?this.T(M):(M=>r(M)||"function"==typeof(null==M?void 0:M[Symbol.iterator]))(M)?this.k(M):this.g(M)}O(M,N=this._$AB){return this._$AA.parentNode.insertBefore(M,N)}T(M){this._$AH!==M&&(this._$AR(),this._$AH=this.O(M))}g(M){this._$AH!==W&&C(this._$AH)?this._$AA.nextSibling.data=M:this.T(n.createTextNode(M)),this._$AH=M}$(M){var N;const{values:D,_$litType$:i}=M,I="number"==typeof i?this._$AC(M):(void 0===i.el&&(i.el=G.createElement(i.h,this.options)),i);if((null===(N=this._$AH)||void 0===N?void 0:N._$AD)===I)this._$AH.p(D);else{const M=new class{constructor(M,N){this.u=[],this._$AN=void 0,this._$AD=M,this._$AM=N}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(M){var N;const{el:{content:D},parts:i}=this._$AD,I=(null!==(N=null==M?void 0:M.creationScope)&&void 0!==N?N:n).importNode(D,!0);v.currentNode=I;let j=v.nextNode(),g=0,u=0,L=i[0];for(;void 0!==L;){if(g===L.index){let N;2===L.type?N=new P(j,j.nextSibling,this,M):1===L.type?N=new L.ctor(j,L.name,L.strings,this,M):6===L.type&&(N=new f(j,this,M)),this.u.push(N),L=i[++u]}g!==(null==L?void 0:L.index)&&(j=v.nextNode(),g++)}return I}p(M){let N=0;for(const D of this.u)void 0!==D&&(void 0!==D.strings?(D._$AI(M,D,N),N+=D.strings.length-2):D._$AI(M[N])),N++}}(I,this),N=M.v(this.options);M.p(D),this.T(N),this._$AH=M}}_$AC(M){let N=V.get(M.strings);return void 0===N&&V.set(M.strings,N=new G(M)),N}k(M){r(this._$AH)||(this._$AH=[],this._$AR());const N=this._$AH;let D,i=0;for(const I of M)i===N.length?N.push(D=new P(this.O(d()),this.O(d()),this,this.options)):D=N[i],D._$AI(I),i++;i<N.length&&(this._$AR(D&&D._$AB.nextSibling,i),N.length=i)}_$AR(M=this._$AA.nextSibling,N){var D;for(null===(D=this._$AP)||void 0===D||D.call(this,!1,!0,N);M&&M!==this._$AB;){const N=M.nextSibling;M.remove(),M=N}}setConnected(M){var N;void 0===this._$AM&&(this._$Cm=M,null===(N=this._$AP)||void 0===N||N.call(this,M))}},R=class{constructor(M,N,D,i,I){this.type=1,this._$AH=W,this._$AN=void 0,this.element=M,this.name=N,this._$AM=i,this.options=I,D.length>2||""!==D[0]||""!==D[1]?(this._$AH=Array(D.length-1).fill(new String),this.strings=D):this._$AH=W}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(M,N=this,D,i){const I=this.strings;let j=!1;if(void 0===I)M=B(this,M,N,0),j=!C(M)||M!==this._$AH&&M!==p,j&&(this._$AH=M);else{const i=M;let g,u;for(M=I[0],g=0;g<I.length-1;g++)u=B(this,i[D+g],N,g),u===p&&(u=this._$AH[g]),j||(j=!C(u)||u!==this._$AH[g]),u===W?M=W:M!==W&&(M+=(null!=u?u:"")+I[g+1]),this._$AH[g]=u}j&&!i&&this.j(M)}j(M){M===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=M?M:"")}},F=class extends R{constructor(){super(...arguments),this.type=3}j(M){this.element[this.name]=M===W?void 0:M}};const H=E?E.emptyScript:"";let J=class extends R{constructor(){super(...arguments),this.type=4}j(M){M&&M!==W?this.element.setAttribute(this.name,H):this.element.removeAttribute(this.name)}},X=class extends R{constructor(M,N,D,i,I){super(M,N,D,i,I),this.type=5}_$AI(M,N=this){var D;if((M=null!==(D=B(this,M,N,0))&&void 0!==D?D:W)===p)return;const i=this._$AH,I=M===W&&i!==W||M.capture!==i.capture||M.once!==i.once||M.passive!==i.passive,j=M!==W&&(i===W||I);I&&this.element.removeEventListener(this.name,this,i),j&&this.element.addEventListener(this.name,this,M),this._$AH=M}handleEvent(M){var N,D;"function"==typeof this._$AH?this._$AH.call(null!==(D=null===(N=this.options)||void 0===N?void 0:N.host)&&void 0!==D?D:this.element,M):this._$AH.handleEvent(M)}},f=class{constructor(M,N,D){this.element=M,this.type=6,this._$AN=void 0,this._$AM=N,this.options=D}get _$AU(){return this._$AM._$AU}_$AI(M){B(this,M)}};const _=w.litHtmlPolyfillSupport;
17
+ var l;e.finalized=!0,e.elementProperties=new Map,e.elementStyles=[],e.shadowRootOptions={mode:"open"},null==y||y({ReactiveElement:e}),(null!==(T=z.reactiveElementVersions)&&void 0!==T?T:z.reactiveElementVersions=[]).push("1.4.1");const w=window,E=w.trustedTypes,a=E?E.createPolicy("lit-html",{createHTML:M=>M}):void 0,o=`lit$${(Math.random()+"").slice(9)}$`,S="?"+o,O=`<${S}>`,n=document,d=(M="")=>n.createComment(M),C=M=>null===M||"object"!=typeof M&&"function"!=typeof M,r=Array.isArray,U=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Q=/-->/g,k=/>/g,h=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),Y=/'/g,Z=/"/g,b=/^(?:script|style|textarea|title)$/i,m=(M=>(N,...D)=>({_$litType$:M,strings:N,values:D}))(1),p=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),V=new WeakMap,v=n.createTreeWalker(n,129,null,!1);let G=class{constructor({strings:M,_$litType$:N},D){let i;this.parts=[];let I=0,j=0;const g=M.length-1,u=this.parts,[L,T]=((M,N)=>{const D=M.length-1,i=[];let I,j=2===N?"<svg>":"",g=U;for(let N=0;N<D;N++){const D=M[N];let u,L,T=-1,z=0;for(;z<D.length&&(g.lastIndex=z,L=g.exec(D),null!==L);)z=g.lastIndex,g===U?"!--"===L[1]?g=Q:void 0!==L[1]?g=k:void 0!==L[2]?(b.test(L[2])&&(I=RegExp("</"+L[2],"g")),g=h):void 0!==L[3]&&(g=h):g===h?">"===L[0]?(g=null!=I?I:U,T=-1):void 0===L[1]?T=-2:(T=g.lastIndex-L[2].length,u=L[1],g=void 0===L[3]?h:'"'===L[3]?Z:Y):g===Z||g===Y?g=h:g===Q||g===k?g=U:(g=h,I=void 0);const A=g===h&&M[N+1].startsWith("/>")?" ":"";j+=g===U?D+O:T>=0?(i.push(u),D.slice(0,T)+"$lit$"+D.slice(T)+o+A):D+o+(-2===T?(i.push(void 0),N):A)}const u=j+(M[D]||"<?>")+(2===N?"</svg>":"");if(!Array.isArray(M)||!M.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==a?a.createHTML(u):u,i]})(M,N);if(this.el=G.createElement(L,D),v.currentNode=this.el.content,2===N){const M=this.el.content,N=M.firstChild;N.remove(),M.append(...N.childNodes)}for(;null!==(i=v.nextNode())&&u.length<g;){if(1===i.nodeType){if(i.hasAttributes()){const M=[];for(const N of i.getAttributeNames())if(N.endsWith("$lit$")||N.startsWith(o)){const D=T[j++];if(M.push(N),void 0!==D){const M=i.getAttribute(D.toLowerCase()+"$lit$").split(o),N=/([.?@])?(.*)/.exec(D);u.push({type:1,index:I,name:N[2],strings:M,ctor:"."===N[1]?F:"?"===N[1]?J:"@"===N[1]?X:R})}else u.push({type:6,index:I})}for(const N of M)i.removeAttribute(N)}if(b.test(i.tagName)){const M=i.textContent.split(o),N=M.length-1;if(N>0){i.textContent=E?E.emptyScript:"";for(let D=0;D<N;D++)i.append(M[D],d()),v.nextNode(),u.push({type:2,index:++I});i.append(M[N],d())}}}else if(8===i.nodeType)if(i.data===S)u.push({type:2,index:I});else{let M=-1;for(;-1!==(M=i.data.indexOf(o,M+1));)u.push({type:7,index:I}),M+=o.length-1}I++}}static createElement(M,N){const D=n.createElement("template");return D.innerHTML=M,D}};function B(M,N,D=M,i){var I,j,g,u;if(N===p)return N;let L=void 0!==i?null===(I=D._$Co)||void 0===I?void 0:I[i]:D._$Cl;const T=C(N)?void 0:N._$litDirective$;return(null==L?void 0:L.constructor)!==T&&(null===(j=null==L?void 0:L._$AO)||void 0===j||j.call(L,!1),void 0===T?L=void 0:(L=new T(M),L._$AT(M,D,i)),void 0!==i?(null!==(g=(u=D)._$Co)&&void 0!==g?g:u._$Co=[])[i]=L:D._$Cl=L),void 0!==L&&(N=B(M,L._$AS(M,N.values),L,i)),N}let P=class{constructor(M,N,D,i){var I;this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=M,this._$AB=N,this._$AM=D,this.options=i,this._$Cm=null===(I=null==i?void 0:i.isConnected)||void 0===I||I}get _$AU(){var M,N;return null!==(N=null===(M=this._$AM)||void 0===M?void 0:M._$AU)&&void 0!==N?N:this._$Cm}get parentNode(){let M=this._$AA.parentNode;const N=this._$AM;return void 0!==N&&11===M.nodeType&&(M=N.parentNode),M}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(M,N=this){M=B(this,M,N),C(M)?M===W||null==M||""===M?(this._$AH!==W&&this._$AR(),this._$AH=W):M!==this._$AH&&M!==p&&this.g(M):void 0!==M._$litType$?this.$(M):void 0!==M.nodeType?this.T(M):(M=>r(M)||"function"==typeof(null==M?void 0:M[Symbol.iterator]))(M)?this.k(M):this.g(M)}O(M,N=this._$AB){return this._$AA.parentNode.insertBefore(M,N)}T(M){this._$AH!==M&&(this._$AR(),this._$AH=this.O(M))}g(M){this._$AH!==W&&C(this._$AH)?this._$AA.nextSibling.data=M:this.T(n.createTextNode(M)),this._$AH=M}$(M){var N;const{values:D,_$litType$:i}=M,I="number"==typeof i?this._$AC(M):(void 0===i.el&&(i.el=G.createElement(i.h,this.options)),i);if((null===(N=this._$AH)||void 0===N?void 0:N._$AD)===I)this._$AH.p(D);else{const M=new class{constructor(M,N){this.u=[],this._$AN=void 0,this._$AD=M,this._$AM=N}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(M){var N;const{el:{content:D},parts:i}=this._$AD,I=(null!==(N=null==M?void 0:M.creationScope)&&void 0!==N?N:n).importNode(D,!0);v.currentNode=I;let j=v.nextNode(),g=0,u=0,L=i[0];for(;void 0!==L;){if(g===L.index){let N;2===L.type?N=new P(j,j.nextSibling,this,M):1===L.type?N=new L.ctor(j,L.name,L.strings,this,M):6===L.type&&(N=new f(j,this,M)),this.u.push(N),L=i[++u]}g!==(null==L?void 0:L.index)&&(j=v.nextNode(),g++)}return I}p(M){let N=0;for(const D of this.u)void 0!==D&&(void 0!==D.strings?(D._$AI(M,D,N),N+=D.strings.length-2):D._$AI(M[N])),N++}}(I,this),N=M.v(this.options);M.p(D),this.T(N),this._$AH=M}}_$AC(M){let N=V.get(M.strings);return void 0===N&&V.set(M.strings,N=new G(M)),N}k(M){r(this._$AH)||(this._$AH=[],this._$AR());const N=this._$AH;let D,i=0;for(const I of M)i===N.length?N.push(D=new P(this.O(d()),this.O(d()),this,this.options)):D=N[i],D._$AI(I),i++;i<N.length&&(this._$AR(D&&D._$AB.nextSibling,i),N.length=i)}_$AR(M=this._$AA.nextSibling,N){var D;for(null===(D=this._$AP)||void 0===D||D.call(this,!1,!0,N);M&&M!==this._$AB;){const N=M.nextSibling;M.remove(),M=N}}setConnected(M){var N;void 0===this._$AM&&(this._$Cm=M,null===(N=this._$AP)||void 0===N||N.call(this,M))}},R=class{constructor(M,N,D,i,I){this.type=1,this._$AH=W,this._$AN=void 0,this.element=M,this.name=N,this._$AM=i,this.options=I,D.length>2||""!==D[0]||""!==D[1]?(this._$AH=Array(D.length-1).fill(new String),this.strings=D):this._$AH=W}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(M,N=this,D,i){const I=this.strings;let j=!1;if(void 0===I)M=B(this,M,N,0),j=!C(M)||M!==this._$AH&&M!==p,j&&(this._$AH=M);else{const i=M;let g,u;for(M=I[0],g=0;g<I.length-1;g++)u=B(this,i[D+g],N,g),u===p&&(u=this._$AH[g]),j||(j=!C(u)||u!==this._$AH[g]),u===W?M=W:M!==W&&(M+=(null!=u?u:"")+I[g+1]),this._$AH[g]=u}j&&!i&&this.j(M)}j(M){M===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=M?M:"")}},F=class extends R{constructor(){super(...arguments),this.type=3}j(M){this.element[this.name]=M===W?void 0:M}};const H=E?E.emptyScript:"";let J=class extends R{constructor(){super(...arguments),this.type=4}j(M){M&&M!==W?this.element.setAttribute(this.name,H):this.element.removeAttribute(this.name)}},X=class extends R{constructor(M,N,D,i,I){super(M,N,D,i,I),this.type=5}_$AI(M,N=this){var D;if((M=null!==(D=B(this,M,N,0))&&void 0!==D?D:W)===p)return;const i=this._$AH,I=M===W&&i!==W||M.capture!==i.capture||M.once!==i.once||M.passive!==i.passive,j=M!==W&&(i===W||I);I&&this.element.removeEventListener(this.name,this,i),j&&this.element.addEventListener(this.name,this,M),this._$AH=M}handleEvent(M){var N,D;"function"==typeof this._$AH?this._$AH.call(null!==(D=null===(N=this.options)||void 0===N?void 0:N.host)&&void 0!==D?D:this.element,M):this._$AH.handleEvent(M)}},f=class{constructor(M,N,D){this.element=M,this.type=6,this._$AN=void 0,this._$AM=N,this.options=D}get _$AU(){return this._$AM._$AU}_$AI(M){B(this,M)}};const _=w.litHtmlPolyfillSupport;
18
18
  /**
19
19
  * @license
20
20
  * Copyright 2017 Google LLC
21
21
  * SPDX-License-Identifier: BSD-3-Clause
22
22
  */
23
- var $;null==_||_(G,P),(null!==(l=w.litHtmlVersions)&&void 0!==l?l:w.litHtmlVersions=[]).push("2.4.0");const K=window,q=K.trustedTypes,MM=q?q.createPolicy("lit-html",{createHTML:M=>M}):void 0,NM=`lit$${(Math.random()+"").slice(9)}$`,DM="?"+NM,iM=`<${DM}>`,IM=document,jM=(M="")=>IM.createComment(M),gM=M=>null===M||"object"!=typeof M&&"function"!=typeof M,uM=Array.isArray,LM=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,TM=/-->/g,zM=/>/g,AM=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),tM=/'/g,yM=/"/g,xM=/^(?:script|style|textarea|title)$/i,cM=(M=>(N,...D)=>({_$litType$:M,strings:N,values:D}))(1),sM=Symbol.for("lit-noChange"),eM=Symbol.for("lit-nothing"),lM=new WeakMap,wM=IM.createTreeWalker(IM,129,null,!1),EM=(M,N)=>{const D=M.length-1,i=[];let I,j=2===N?"<svg>":"",g=LM;for(let N=0;N<D;N++){const D=M[N];let u,L,T=-1,z=0;for(;z<D.length&&(g.lastIndex=z,L=g.exec(D),null!==L);)z=g.lastIndex,g===LM?"!--"===L[1]?g=TM:void 0!==L[1]?g=zM:void 0!==L[2]?(xM.test(L[2])&&(I=RegExp("</"+L[2],"g")),g=AM):void 0!==L[3]&&(g=AM):g===AM?">"===L[0]?(g=null!=I?I:LM,T=-1):void 0===L[1]?T=-2:(T=g.lastIndex-L[2].length,u=L[1],g=void 0===L[3]?AM:'"'===L[3]?yM:tM):g===yM||g===tM?g=AM:g===TM||g===zM?g=LM:(g=AM,I=void 0);const A=g===AM&&M[N+1].startsWith("/>")?" ":"";j+=g===LM?D+iM:T>=0?(i.push(u),D.slice(0,T)+"$lit$"+D.slice(T)+NM+A):D+NM+(-2===T?(i.push(void 0),N):A)}const u=j+(M[D]||"<?>")+(2===N?"</svg>":"");if(!Array.isArray(M)||!M.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==MM?MM.createHTML(u):u,i]};class aM{constructor({strings:M,_$litType$:N},D){let i;this.parts=[];let I=0,j=0;const g=M.length-1,u=this.parts,[L,T]=EM(M,N);if(this.el=aM.createElement(L,D),wM.currentNode=this.el.content,2===N){const M=this.el.content,N=M.firstChild;N.remove(),M.append(...N.childNodes)}for(;null!==(i=wM.nextNode())&&u.length<g;){if(1===i.nodeType){if(i.hasAttributes()){const M=[];for(const N of i.getAttributeNames())if(N.endsWith("$lit$")||N.startsWith(NM)){const D=T[j++];if(M.push(N),void 0!==D){const M=i.getAttribute(D.toLowerCase()+"$lit$").split(NM),N=/([.?@])?(.*)/.exec(D);u.push({type:1,index:I,name:N[2],strings:M,ctor:"."===N[1]?dM:"?"===N[1]?rM:"@"===N[1]?UM:nM})}else u.push({type:6,index:I})}for(const N of M)i.removeAttribute(N)}if(xM.test(i.tagName)){const M=i.textContent.split(NM),N=M.length-1;if(N>0){i.textContent=q?q.emptyScript:"";for(let D=0;D<N;D++)i.append(M[D],jM()),wM.nextNode(),u.push({type:2,index:++I});i.append(M[N],jM())}}}else if(8===i.nodeType)if(i.data===DM)u.push({type:2,index:I});else{let M=-1;for(;-1!==(M=i.data.indexOf(NM,M+1));)u.push({type:7,index:I}),M+=NM.length-1}I++}}static createElement(M,N){const D=IM.createElement("template");return D.innerHTML=M,D}}function SM(M,N,D=M,i){var I,j,g,u;if(N===sM)return N;let L=void 0!==i?null===(I=D._$Cl)||void 0===I?void 0:I[i]:D._$Cu;const T=gM(N)?void 0:N._$litDirective$;return(null==L?void 0:L.constructor)!==T&&(null===(j=null==L?void 0:L._$AO)||void 0===j||j.call(L,!1),void 0===T?L=void 0:(L=new T(M),L._$AT(M,D,i)),void 0!==i?(null!==(g=(u=D)._$Cl)&&void 0!==g?g:u._$Cl=[])[i]=L:D._$Cu=L),void 0!==L&&(N=SM(M,L._$AS(M,N.values),L,i)),N}class oM{constructor(M,N){this.v=[],this._$AN=void 0,this._$AD=M,this._$AM=N}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(M){var N;const{el:{content:D},parts:i}=this._$AD,I=(null!==(N=null==M?void 0:M.creationScope)&&void 0!==N?N:IM).importNode(D,!0);wM.currentNode=I;let j=wM.nextNode(),g=0,u=0,L=i[0];for(;void 0!==L;){if(g===L.index){let N;2===L.type?N=new OM(j,j.nextSibling,this,M):1===L.type?N=new L.ctor(j,L.name,L.strings,this,M):6===L.type&&(N=new QM(j,this,M)),this.v.push(N),L=i[++u]}g!==(null==L?void 0:L.index)&&(j=wM.nextNode(),g++)}return I}m(M){let N=0;for(const D of this.v)void 0!==D&&(void 0!==D.strings?(D._$AI(M,D,N),N+=D.strings.length-2):D._$AI(M[N])),N++}}class OM{constructor(M,N,D,i){var I;this.type=2,this._$AH=eM,this._$AN=void 0,this._$AA=M,this._$AB=N,this._$AM=D,this.options=i,this._$C_=null===(I=null==i?void 0:i.isConnected)||void 0===I||I}get _$AU(){var M,N;return null!==(N=null===(M=this._$AM)||void 0===M?void 0:M._$AU)&&void 0!==N?N:this._$C_}get parentNode(){let M=this._$AA.parentNode;const N=this._$AM;return void 0!==N&&11===M.nodeType&&(M=N.parentNode),M}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(M,N=this){M=SM(this,M,N),gM(M)?M===eM||null==M||""===M?(this._$AH!==eM&&this._$AR(),this._$AH=eM):M!==this._$AH&&M!==sM&&this.$(M):void 0!==M._$litType$?this.T(M):void 0!==M.nodeType?this.k(M):(M=>uM(M)||"function"==typeof(null==M?void 0:M[Symbol.iterator]))(M)?this.O(M):this.$(M)}S(M,N=this._$AB){return this._$AA.parentNode.insertBefore(M,N)}k(M){this._$AH!==M&&(this._$AR(),this._$AH=this.S(M))}$(M){this._$AH!==eM&&gM(this._$AH)?this._$AA.nextSibling.data=M:this.k(IM.createTextNode(M)),this._$AH=M}T(M){var N;const{values:D,_$litType$:i}=M,I="number"==typeof i?this._$AC(M):(void 0===i.el&&(i.el=aM.createElement(i.h,this.options)),i);if((null===(N=this._$AH)||void 0===N?void 0:N._$AD)===I)this._$AH.m(D);else{const M=new oM(I,this),N=M.p(this.options);M.m(D),this.k(N),this._$AH=M}}_$AC(M){let N=lM.get(M.strings);return void 0===N&&lM.set(M.strings,N=new aM(M)),N}O(M){uM(this._$AH)||(this._$AH=[],this._$AR());const N=this._$AH;let D,i=0;for(const I of M)i===N.length?N.push(D=new OM(this.S(jM()),this.S(jM()),this,this.options)):D=N[i],D._$AI(I),i++;i<N.length&&(this._$AR(D&&D._$AB.nextSibling,i),N.length=i)}_$AR(M=this._$AA.nextSibling,N){var D;for(null===(D=this._$AP)||void 0===D||D.call(this,!1,!0,N);M&&M!==this._$AB;){const N=M.nextSibling;M.remove(),M=N}}setConnected(M){var N;void 0===this._$AM&&(this._$C_=M,null===(N=this._$AP)||void 0===N||N.call(this,M))}}class nM{constructor(M,N,D,i,I){this.type=1,this._$AH=eM,this._$AN=void 0,this.element=M,this.name=N,this._$AM=i,this.options=I,D.length>2||""!==D[0]||""!==D[1]?(this._$AH=Array(D.length-1).fill(new String),this.strings=D):this._$AH=eM}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(M,N=this,D,i){const I=this.strings;let j=!1;if(void 0===I)M=SM(this,M,N,0),j=!gM(M)||M!==this._$AH&&M!==sM,j&&(this._$AH=M);else{const i=M;let g,u;for(M=I[0],g=0;g<I.length-1;g++)u=SM(this,i[D+g],N,g),u===sM&&(u=this._$AH[g]),j||(j=!gM(u)||u!==this._$AH[g]),u===eM?M=eM:M!==eM&&(M+=(null!=u?u:"")+I[g+1]),this._$AH[g]=u}j&&!i&&this.P(M)}P(M){M===eM?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=M?M:"")}}class dM extends nM{constructor(){super(...arguments),this.type=3}P(M){this.element[this.name]=M===eM?void 0:M}}const CM=q?q.emptyScript:"";class rM extends nM{constructor(){super(...arguments),this.type=4}P(M){M&&M!==eM?this.element.setAttribute(this.name,CM):this.element.removeAttribute(this.name)}}class UM extends nM{constructor(M,N,D,i,I){super(M,N,D,i,I),this.type=5}_$AI(M,N=this){var D;if((M=null!==(D=SM(this,M,N,0))&&void 0!==D?D:eM)===sM)return;const i=this._$AH,I=M===eM&&i!==eM||M.capture!==i.capture||M.once!==i.once||M.passive!==i.passive,j=M!==eM&&(i===eM||I);I&&this.element.removeEventListener(this.name,this,i),j&&this.element.addEventListener(this.name,this,M),this._$AH=M}handleEvent(M){var N,D;"function"==typeof this._$AH?this._$AH.call(null!==(D=null===(N=this.options)||void 0===N?void 0:N.host)&&void 0!==D?D:this.element,M):this._$AH.handleEvent(M)}}class QM{constructor(M,N,D){this.element=M,this.type=6,this._$AN=void 0,this._$AM=N,this.options=D}get _$AU(){return this._$AM._$AU}_$AI(M){SM(this,M)}}const kM=K.litHtmlPolyfillSupport;
23
+ var $;null==_||_(G,P),(null!==(l=w.litHtmlVersions)&&void 0!==l?l:w.litHtmlVersions=[]).push("2.4.0");const K=window,q=K.trustedTypes,MM=q?q.createPolicy("lit-html",{createHTML:M=>M}):void 0,NM=`lit$${(Math.random()+"").slice(9)}$`,DM="?"+NM,iM=`<${DM}>`,IM=document,jM=(M="")=>IM.createComment(M),gM=M=>null===M||"object"!=typeof M&&"function"!=typeof M,uM=Array.isArray,LM=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,TM=/-->/g,zM=/>/g,AM=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),tM=/'/g,yM=/"/g,xM=/^(?:script|style|textarea|title)$/i,cM=(M=>(N,...D)=>({_$litType$:M,strings:N,values:D}))(1),sM=Symbol.for("lit-noChange"),eM=Symbol.for("lit-nothing"),lM=new WeakMap,wM=IM.createTreeWalker(IM,129,null,!1),EM=(M,N)=>{const D=M.length-1,i=[];let I,j=2===N?"<svg>":"",g=LM;for(let N=0;N<D;N++){const D=M[N];let u,L,T=-1,z=0;for(;z<D.length&&(g.lastIndex=z,L=g.exec(D),null!==L);)z=g.lastIndex,g===LM?"!--"===L[1]?g=TM:void 0!==L[1]?g=zM:void 0!==L[2]?(xM.test(L[2])&&(I=RegExp("</"+L[2],"g")),g=AM):void 0!==L[3]&&(g=AM):g===AM?">"===L[0]?(g=null!=I?I:LM,T=-1):void 0===L[1]?T=-2:(T=g.lastIndex-L[2].length,u=L[1],g=void 0===L[3]?AM:'"'===L[3]?yM:tM):g===yM||g===tM?g=AM:g===TM||g===zM?g=LM:(g=AM,I=void 0);const A=g===AM&&M[N+1].startsWith("/>")?" ":"";j+=g===LM?D+iM:T>=0?(i.push(u),D.slice(0,T)+"$lit$"+D.slice(T)+NM+A):D+NM+(-2===T?(i.push(void 0),N):A)}const u=j+(M[D]||"<?>")+(2===N?"</svg>":"");if(!Array.isArray(M)||!M.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==MM?MM.createHTML(u):u,i]};class aM{constructor({strings:M,_$litType$:N},D){let i;this.parts=[];let I=0,j=0;const g=M.length-1,u=this.parts,[L,T]=EM(M,N);if(this.el=aM.createElement(L,D),wM.currentNode=this.el.content,2===N){const M=this.el.content,N=M.firstChild;N.remove(),M.append(...N.childNodes)}for(;null!==(i=wM.nextNode())&&u.length<g;){if(1===i.nodeType){if(i.hasAttributes()){const M=[];for(const N of i.getAttributeNames())if(N.endsWith("$lit$")||N.startsWith(NM)){const D=T[j++];if(M.push(N),void 0!==D){const M=i.getAttribute(D.toLowerCase()+"$lit$").split(NM),N=/([.?@])?(.*)/.exec(D);u.push({type:1,index:I,name:N[2],strings:M,ctor:"."===N[1]?dM:"?"===N[1]?rM:"@"===N[1]?UM:nM})}else u.push({type:6,index:I})}for(const N of M)i.removeAttribute(N)}if(xM.test(i.tagName)){const M=i.textContent.split(NM),N=M.length-1;if(N>0){i.textContent=q?q.emptyScript:"";for(let D=0;D<N;D++)i.append(M[D],jM()),wM.nextNode(),u.push({type:2,index:++I});i.append(M[N],jM())}}}else if(8===i.nodeType)if(i.data===DM)u.push({type:2,index:I});else{let M=-1;for(;-1!==(M=i.data.indexOf(NM,M+1));)u.push({type:7,index:I}),M+=NM.length-1}I++}}static createElement(M,N){const D=IM.createElement("template");return D.innerHTML=M,D}}function oM(M,N,D=M,i){var I,j,g,u;if(N===sM)return N;let L=void 0!==i?null===(I=D._$Cl)||void 0===I?void 0:I[i]:D._$Cu;const T=gM(N)?void 0:N._$litDirective$;return(null==L?void 0:L.constructor)!==T&&(null===(j=null==L?void 0:L._$AO)||void 0===j||j.call(L,!1),void 0===T?L=void 0:(L=new T(M),L._$AT(M,D,i)),void 0!==i?(null!==(g=(u=D)._$Cl)&&void 0!==g?g:u._$Cl=[])[i]=L:D._$Cu=L),void 0!==L&&(N=oM(M,L._$AS(M,N.values),L,i)),N}class SM{constructor(M,N){this.v=[],this._$AN=void 0,this._$AD=M,this._$AM=N}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(M){var N;const{el:{content:D},parts:i}=this._$AD,I=(null!==(N=null==M?void 0:M.creationScope)&&void 0!==N?N:IM).importNode(D,!0);wM.currentNode=I;let j=wM.nextNode(),g=0,u=0,L=i[0];for(;void 0!==L;){if(g===L.index){let N;2===L.type?N=new OM(j,j.nextSibling,this,M):1===L.type?N=new L.ctor(j,L.name,L.strings,this,M):6===L.type&&(N=new QM(j,this,M)),this.v.push(N),L=i[++u]}g!==(null==L?void 0:L.index)&&(j=wM.nextNode(),g++)}return I}m(M){let N=0;for(const D of this.v)void 0!==D&&(void 0!==D.strings?(D._$AI(M,D,N),N+=D.strings.length-2):D._$AI(M[N])),N++}}class OM{constructor(M,N,D,i){var I;this.type=2,this._$AH=eM,this._$AN=void 0,this._$AA=M,this._$AB=N,this._$AM=D,this.options=i,this._$C_=null===(I=null==i?void 0:i.isConnected)||void 0===I||I}get _$AU(){var M,N;return null!==(N=null===(M=this._$AM)||void 0===M?void 0:M._$AU)&&void 0!==N?N:this._$C_}get parentNode(){let M=this._$AA.parentNode;const N=this._$AM;return void 0!==N&&11===M.nodeType&&(M=N.parentNode),M}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(M,N=this){M=oM(this,M,N),gM(M)?M===eM||null==M||""===M?(this._$AH!==eM&&this._$AR(),this._$AH=eM):M!==this._$AH&&M!==sM&&this.$(M):void 0!==M._$litType$?this.T(M):void 0!==M.nodeType?this.k(M):(M=>uM(M)||"function"==typeof(null==M?void 0:M[Symbol.iterator]))(M)?this.O(M):this.$(M)}S(M,N=this._$AB){return this._$AA.parentNode.insertBefore(M,N)}k(M){this._$AH!==M&&(this._$AR(),this._$AH=this.S(M))}$(M){this._$AH!==eM&&gM(this._$AH)?this._$AA.nextSibling.data=M:this.k(IM.createTextNode(M)),this._$AH=M}T(M){var N;const{values:D,_$litType$:i}=M,I="number"==typeof i?this._$AC(M):(void 0===i.el&&(i.el=aM.createElement(i.h,this.options)),i);if((null===(N=this._$AH)||void 0===N?void 0:N._$AD)===I)this._$AH.m(D);else{const M=new SM(I,this),N=M.p(this.options);M.m(D),this.k(N),this._$AH=M}}_$AC(M){let N=lM.get(M.strings);return void 0===N&&lM.set(M.strings,N=new aM(M)),N}O(M){uM(this._$AH)||(this._$AH=[],this._$AR());const N=this._$AH;let D,i=0;for(const I of M)i===N.length?N.push(D=new OM(this.S(jM()),this.S(jM()),this,this.options)):D=N[i],D._$AI(I),i++;i<N.length&&(this._$AR(D&&D._$AB.nextSibling,i),N.length=i)}_$AR(M=this._$AA.nextSibling,N){var D;for(null===(D=this._$AP)||void 0===D||D.call(this,!1,!0,N);M&&M!==this._$AB;){const N=M.nextSibling;M.remove(),M=N}}setConnected(M){var N;void 0===this._$AM&&(this._$C_=M,null===(N=this._$AP)||void 0===N||N.call(this,M))}}class nM{constructor(M,N,D,i,I){this.type=1,this._$AH=eM,this._$AN=void 0,this.element=M,this.name=N,this._$AM=i,this.options=I,D.length>2||""!==D[0]||""!==D[1]?(this._$AH=Array(D.length-1).fill(new String),this.strings=D):this._$AH=eM}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(M,N=this,D,i){const I=this.strings;let j=!1;if(void 0===I)M=oM(this,M,N,0),j=!gM(M)||M!==this._$AH&&M!==sM,j&&(this._$AH=M);else{const i=M;let g,u;for(M=I[0],g=0;g<I.length-1;g++)u=oM(this,i[D+g],N,g),u===sM&&(u=this._$AH[g]),j||(j=!gM(u)||u!==this._$AH[g]),u===eM?M=eM:M!==eM&&(M+=(null!=u?u:"")+I[g+1]),this._$AH[g]=u}j&&!i&&this.P(M)}P(M){M===eM?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=M?M:"")}}class dM extends nM{constructor(){super(...arguments),this.type=3}P(M){this.element[this.name]=M===eM?void 0:M}}const CM=q?q.emptyScript:"";class rM extends nM{constructor(){super(...arguments),this.type=4}P(M){M&&M!==eM?this.element.setAttribute(this.name,CM):this.element.removeAttribute(this.name)}}class UM extends nM{constructor(M,N,D,i,I){super(M,N,D,i,I),this.type=5}_$AI(M,N=this){var D;if((M=null!==(D=oM(this,M,N,0))&&void 0!==D?D:eM)===sM)return;const i=this._$AH,I=M===eM&&i!==eM||M.capture!==i.capture||M.once!==i.once||M.passive!==i.passive,j=M!==eM&&(i===eM||I);I&&this.element.removeEventListener(this.name,this,i),j&&this.element.addEventListener(this.name,this,M),this._$AH=M}handleEvent(M){var N,D;"function"==typeof this._$AH?this._$AH.call(null!==(D=null===(N=this.options)||void 0===N?void 0:N.host)&&void 0!==D?D:this.element,M):this._$AH.handleEvent(M)}}class QM{constructor(M,N,D){this.element=M,this.type=6,this._$AN=void 0,this._$AM=N,this.options=D}get _$AU(){return this._$AM._$AU}_$AI(M){oM(this,M)}}const kM=K.litHtmlPolyfillSupport;
24
24
  /**
25
25
  * @license
26
26
  * Copyright 2017 Google LLC
@@ -572,6 +572,13 @@ const gN=Symbol.for(""),uN=M=>{if((null==M?void 0:M.r)===gN)return null==M?void
572
572
  display: inline-block;
573
573
  color: inherit;
574
574
  margin-bottom: 12px;
575
+ color: var(--nile-colors-dark-900);
576
+ font-family: Colfax-regular;
577
+ font-size: 14px;
578
+ font-style: normal;
579
+ font-weight: 400;
580
+ line-height: 14px;
581
+ letter-spacing: 0.2px;
575
582
  }
576
583
 
577
584
  .form-control--has-label.form-control--medium .form-control__label {
@@ -581,7 +588,7 @@ const gN=Symbol.for(""),uN=M=>{if((null==M?void 0:M.r)===gN)return null==M?void
581
588
  :host([required]) .form-control--has-label .form-control__label::after {
582
589
  content: '*';
583
590
  margin-inline-start: -2px;
584
- color: undefined;
591
+ color: #A4121C;
585
592
  }
586
593
 
587
594
  /* Help text */
@@ -618,16 +625,19 @@ const gN=Symbol.for(""),uN=M=>{if((null==M?void 0:M.r)===gN)return null==M?void
618
625
  justify-content: start;
619
626
  position: relative;
620
627
  width: 100%;
621
- font-family: inherit;
622
628
  font-weight: 400;
623
- letter-spacing: normal;
624
629
  vertical-align: middle;
625
630
  overflow: hidden;
626
631
  cursor: text;
627
632
  transition: 150ms color, 150ms border, 150ms box-shadow,
628
633
  150ms background-color;
629
634
  box-sizing: border-box;
630
- }
635
+ color: var(--nile-colors-dark-900);
636
+ font-family: Colfax-regular;
637
+ font-size: 14px;
638
+ font-style: normal;
639
+ line-height: 14px;
640
+ letter-spacing: 0.2px; }
631
641
 
632
642
  /* Standard inputs */
633
643
  .input--standard {
@@ -701,12 +711,8 @@ const gN=Symbol.for(""),uN=M=>{if((null==M?void 0:M.r)===gN)return null==M?void
701
711
 
702
712
  .input__control {
703
713
  flex: 1 1 auto;
704
- font-family: inherit;
705
- font-size: inherit;
706
- font-weight: inherit;
707
714
  min-width: 0;
708
715
  height: 100%;
709
- color: hsl(240 5.3% 26.1%);
710
716
  border: none;
711
717
  background: none;
712
718
  box-shadow: none;
@@ -714,6 +720,13 @@ const gN=Symbol.for(""),uN=M=>{if((null==M?void 0:M.r)===gN)return null==M?void
714
720
  margin: 0;
715
721
  cursor: inherit;
716
722
  -webkit-appearance: none;
723
+ color: var(--nile-colors-dark-900);
724
+ font-family: Colfax-regular;
725
+ font-size: 14px;
726
+ font-style: normal;
727
+ font-weight: 400;
728
+ line-height: 14px;
729
+ letter-spacing: 0.2px;
717
730
  }
718
731
 
719
732
  .input__control::-webkit-search-decoration,
@@ -985,16 +998,16 @@ const gN=Symbol.for(""),uN=M=>{if((null==M?void 0:M.r)===gN)return null==M?void
985
998
  * @license
986
999
  * Copyright 2020 Google LLC
987
1000
  * SPDX-License-Identifier: BSD-3-Clause
988
- */})(M),N}});M.NileInput=class extends xN{constructor(){super(...arguments),this.formControlController=new iN(this,{assumeInteractionOn:["nile-blur","nile-input"]}),this.hasSlotController=new jN(this,"help-text","label"),this.hasFocus=!1,this.title="",this.type="text",this.name="",this.value="",this.defaultValue="",this.size="medium",this.filled=!1,this.warning=!1,this.error=!1,this.success=!1,this.pill=!1,this.label="",this.helpText="",this.errorMessage="",this.clearable=!1,this.disabled=!1,this.placeholder="",this.readonly=!1,this.passwordToggle=!1,this.passwordVisible=!1,this.noSpinButtons=!1,this.form="",this.required=!1,this.spellcheck=!0}get valueAsDate(){const M=document.createElement("input");return M.type="date",M.value=this.value,M.valueAsDate}set valueAsDate(M){const N=document.createElement("input");N.type="date",N.valueAsDate=M,this.value=N.value}get valueAsNumber(){const M=document.createElement("input");return M.type="number",M.value=this.value,M.valueAsNumber}set valueAsNumber(M){const N=document.createElement("input");N.type="number",N.valueAsNumber=M,this.value=N.value}get validity(){return this.input.validity}get validationMessage(){return this.input.validationMessage}firstUpdated(){this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit("nile-blur",{value:this.value})}handleChange(){this.value=this.input.value,this.emit("nile-change",{value:this.value})}handleClearClick(M){this.value="",this.emit("nile-clear",{value:this.value}),this.emit("nile-input",{value:this.value}),this.emit("nile-change",{value:this.value}),this.input.focus(),M.stopPropagation()}handleFocus(){this.hasFocus=!0,this.emit("nile-focus",{value:this.value})}handleInput(){this.value=this.input.value,this.formControlController.updateValidity(),this.emit("nile-input",{value:this.value})}handleInvalid(M){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(M)}handleKeyDown(M){const N=M.metaKey||M.ctrlKey||M.shiftKey||M.altKey;"Enter"!==M.key||N||setTimeout((()=>{M.defaultPrevented||M.isComposing||this.formControlController.submit()}))}handlePasswordToggle(){this.passwordVisible=!this.passwordVisible}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleStepChange(){this.input.step=String(this.step),this.formControlController.updateValidity()}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity()}focus(M){this.input.focus(M)}blur(){this.input.blur()}select(){this.input.select()}setSelectionRange(M,N,D="none"){this.input.setSelectionRange(M,N,D)}setRangeText(M,N,D,i){this.input.setRangeText(M,N,D,i),this.value!==this.input.value&&(this.value=this.input.value)}stepUp(){this.input.stepUp(),this.value!==this.input.value&&(this.value=this.input.value)}stepDown(){this.input.stepDown(),this.value!==this.input.value&&(this.value=this.input.value)}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(M){this.input.setCustomValidity(M),this.formControlController.updateValidity()}render(){const M=this.hasSlotController.test("label"),N=this.hasSlotController.test("help-text"),D=!!this.label||!!M,i=!!this.helpText||!!N,I=!!this.errorMessage,j=this.clearable&&!this.disabled&&!this.readonly&&("number"==typeof this.value||this.value.length>0);return cM`
1001
+ */})(M),N}});M.NileInput=class extends xN{constructor(){super(...arguments),this.formControlController=new iN(this,{assumeInteractionOn:["nile-blur","nile-input"]}),this.hasSlotController=new jN(this,"help-text","label"),this.hasFocus=!1,this.title="",this.type="text",this.name="",this.value="",this.defaultValue="",this.size="medium",this.filled=!1,this.warning=!1,this.error=!1,this.success=!1,this.pill=!1,this.label="",this.helpText="",this.errorMessage="",this.clearable=!1,this.disabled=!1,this.placeholder="",this.readonly=!1,this.passwordToggle=!1,this.passwordVisible=!1,this.noSpinButtons=!1,this.form="",this.required=!1,this.spellcheck=!0}get valueAsDate(){const M=document.createElement("input");return M.type="date",M.value=this.value,M.valueAsDate}set valueAsDate(M){const N=document.createElement("input");N.type="date",N.valueAsDate=M,this.value=N.value}get valueAsNumber(){const M=document.createElement("input");return M.type="number",M.value=this.value,M.valueAsNumber}set valueAsNumber(M){const N=document.createElement("input");N.type="number",N.valueAsNumber=M,this.value=N.value}get validity(){return this.input.validity}get validationMessage(){return this.input.validationMessage}firstUpdated(){this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit("nile-blur",{value:this.value})}handleChange(){this.value=this.input.value,this.emit("nile-change",{value:this.value})}handleClearClick(M){this.value="",this.emit("nile-clear",{value:this.value}),this.emit("nile-input",{value:this.value}),this.emit("nile-change",{value:this.value}),this.input.focus(),M.stopPropagation()}handleFocus(){this.hasFocus=!0,this.emit("nile-focus",{value:this.value})}handleInput(){this.value=this.input.value,this.formControlController.updateValidity(),this.emit("nile-input",{value:this.value})}handleInvalid(M){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(M)}handleKeyDown(M){const N=M.metaKey||M.ctrlKey||M.shiftKey||M.altKey;"Enter"!==M.key||N||setTimeout((()=>{M.defaultPrevented||M.isComposing||this.formControlController.submit()}))}handlePasswordToggle(){this.passwordVisible=!this.passwordVisible}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleStepChange(){this.input.step=String(this.step),this.formControlController.updateValidity()}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity()}focus(M){this.input.focus(M)}blur(){this.input.blur()}select(){this.input.select()}setSelectionRange(M,N,D="none"){this.input.setSelectionRange(M,N,D)}setRangeText(M,N,D,i){this.input.setRangeText(M,N,D,i),this.value!==this.input.value&&(this.value=this.input.value)}stepUp(){this.input.stepUp(),this.value!==this.input.value&&(this.value=this.input.value)}stepDown(){this.input.stepDown(),this.value!==this.input.value&&(this.value=this.input.value)}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(M){this.input.setCustomValidity(M),this.formControlController.updateValidity()}render(){const M=this.hasSlotController.test("label");this.hasSlotController.test("help-text");const N=!!this.label||!!M,D=!!this.helpText,i=!!this.errorMessage,I=this.clearable&&!this.disabled&&!this.readonly&&("number"==typeof this.value||this.value.length>0);return cM`
989
1002
  <div
990
1003
  part="form-control"
991
- class=${XM({"form-control":!0,"form-control--small":"small"===this.size,"form-control--medium":"medium"===this.size,"form-control--large":"large"===this.size,"form-control--has-label":D,"form-control--has-help-text":i})}
1004
+ class=${XM({"form-control":!0,"form-control--small":"small"===this.size,"form-control--medium":"medium"===this.size,"form-control--large":"large"===this.size,"form-control--has-label":N,"form-control--has-help-text":D})}
992
1005
  >
993
1006
  <label
994
1007
  part="form-control-label"
995
1008
  class="form-control__label"
996
1009
  for="input"
997
- aria-hidden=${D?"false":"true"}
1010
+ aria-hidden=${N?"false":"true"}
998
1011
  >
999
1012
  <slot name="label">${this.label}</slot>
1000
1013
  </label>
@@ -1039,7 +1052,7 @@ const gN=Symbol.for(""),uN=M=>{if((null==M?void 0:M.r)===gN)return null==M?void
1039
1052
  @blur=${this.handleBlur}
1040
1053
  />
1041
1054
 
1042
- ${j?cM`
1055
+ ${I?cM`
1043
1056
  <button
1044
1057
  part="clear-button"
1045
1058
  class="input__clear"
@@ -1084,25 +1097,14 @@ const gN=Symbol.for(""),uN=M=>{if((null==M?void 0:M.r)===gN)return null==M?void
1084
1097
  </div>
1085
1098
  </div>
1086
1099
 
1087
- <slot
1088
- name="help-text"
1089
- part="form-control-help-text"
1090
- id="help-text"
1091
- class="form-control__help-text"
1092
- aria-hidden=${i?"false":"true"}
1093
- >
1094
- ${this.helpText}
1095
- </slot>
1096
- ${I?cM`
1097
- <slot
1098
- name="error-message"
1099
- part="form-control-error-message"
1100
- id="error-message"
1101
- class="form-control__error-message"
1102
- aria-hidden=${I?"false":"true"}
1100
+ ${D?cM`
1101
+ <nile-form-help-text>${this.helpText}</nile-form-help-text>
1102
+ `:""}
1103
+
1104
+ ${i?cM`
1105
+ <nile-form-error-message
1106
+ >${this.errorMessage}</nile-form-error-message
1103
1107
  >
1104
- ${this.errorMessage}
1105
- </slot>
1106
1108
  `:""}
1107
1109
  </div>
1108
1110
  </div>
@@ -1470,12 +1472,16 @@ const gN=Symbol.for(""),uN=M=>{if((null==M?void 0:M.r)===gN)return null==M?void
1470
1472
 
1471
1473
  .checkbox__label {
1472
1474
  display: inline-block;
1473
- color: var(--nile-type-scale-3);
1474
1475
  line-height: 14px;
1475
1476
  font-size: 14px;
1476
1477
  margin-inline-start: 0.5em;
1477
1478
  user-select: none;
1478
1479
  margin-top: 2px;
1480
+ color: var(--nile-colors-dark-900);
1481
+ font-family: Colfax-regular;
1482
+ font-style: normal;
1483
+ font-weight: 400;
1484
+ letter-spacing: 0.2px;
1479
1485
  }
1480
1486
 
1481
1487
  :host([required]) .checkbox__label::after {
@@ -1486,7 +1492,7 @@ const gN=Symbol.for(""),uN=M=>{if((null==M?void 0:M.r)===gN)return null==M?void
1486
1492
  :host {
1487
1493
  --nile-svg-stroke: white;
1488
1494
  }
1489
- `;M.NileCheckbox=class extends xN{constructor(){super(),this.hasFocus=!1,this.title="",this.name="",this.size="medium",this.disabled=!1,this.checked=!1,this.label="",this.indeterminate=!1,this.defaultChecked=!1,this.form="",this.required=!1}handleClick(){this.checked=!this.checked,this.indeterminate=!1,this.dispatchEvent(new CustomEvent("valueChange",{composed:!0,bubbles:!0,detail:{checked:this.checked}}))}handleBlur(){this.hasFocus=!1,this.emit("blur")}handleInput(){this.emit("input")}handleFocus(){this.hasFocus=!0,this.emit("focus")}handleStateChange(){this.input.checked=this.checked,this.input.indeterminate=this.indeterminate}click(){this.input.click()}focus(M){this.input.focus(M)}blur(){this.input.blur()}render(){return cM`
1495
+ `;M.NileCheckbox=class extends xN{constructor(){super(),this.hasFocus=!1,this.title="",this.name="",this.size="medium",this.disabled=!1,this.checked=!1,this.label="",this.indeterminate=!1,this.defaultChecked=!1,this.helpText="",this.errorMessage="",this.form="",this.required=!1}handleClick(){this.checked=!this.checked,this.indeterminate=!1,this.dispatchEvent(new CustomEvent("valueChange",{composed:!0,bubbles:!0,detail:{checked:this.checked}}))}handleBlur(){this.hasFocus=!1,this.emit("blur")}handleInput(){this.emit("input")}handleFocus(){this.hasFocus=!0,this.emit("focus")}handleStateChange(){this.input.checked=this.checked,this.input.indeterminate=this.indeterminate}click(){this.input.click()}focus(M){this.input.focus(M)}blur(){this.input.blur()}render(){const M=!!this.helpText,N=!!this.errorMessage;return cM`
1490
1496
  <label
1491
1497
  part="base"
1492
1498
  class=${XM({checkbox:!0,"checkbox--checked":this.checked,"checkbox--disabled":this.disabled,"checkbox--focused":this.hasFocus,"checkbox--indeterminate":this.indeterminate,"checkbox--medium":"medium"===this.size})}
@@ -1539,7 +1545,17 @@ const gN=Symbol.for(""),uN=M=>{if((null==M?void 0:M.r)===gN)return null==M?void
1539
1545
  <slot></slot>
1540
1546
  </div>
1541
1547
  </label>
1542
- `}},M.NileCheckbox.styles=EN,N([vM('input[type="checkbox"]')],M.NileCheckbox.prototype,"input",void 0),N([VM()],M.NileCheckbox.prototype,"hasFocus",void 0),N([WM()],M.NileCheckbox.prototype,"title",void 0),N([WM()],M.NileCheckbox.prototype,"name",void 0),N([WM()],M.NileCheckbox.prototype,"value",void 0),N([WM({reflect:!0})],M.NileCheckbox.prototype,"size",void 0),N([WM({type:Boolean,reflect:!0})],M.NileCheckbox.prototype,"disabled",void 0),N([WM({type:Boolean,reflect:!0})],M.NileCheckbox.prototype,"checked",void 0),N([WM({type:Boolean,reflect:!0})],M.NileCheckbox.prototype,"label",void 0),N([WM({type:Boolean,reflect:!0})],M.NileCheckbox.prototype,"indeterminate",void 0),N([sN("checked")],M.NileCheckbox.prototype,"defaultChecked",void 0),N([WM({reflect:!0})],M.NileCheckbox.prototype,"form",void 0),N([WM({type:Boolean,reflect:!0})],M.NileCheckbox.prototype,"required",void 0),N([tN(["checked","indeterminate"],{waitUntilFirstUpdate:!0})],M.NileCheckbox.prototype,"handleStateChange",null),M.NileCheckbox=N([mM("nile-checkbox")],M.NileCheckbox);const aN=u`
1548
+
1549
+ ${M?cM`
1550
+ <nile-form-help-text>${this.helpText}</nile-form-help-text>
1551
+ `:""}
1552
+
1553
+ ${N?cM`
1554
+ <nile-form-error-message
1555
+ >${this.errorMessage}</nile-form-error-message
1556
+ >
1557
+ `:""}
1558
+ `}},M.NileCheckbox.styles=EN,N([vM('input[type="checkbox"]')],M.NileCheckbox.prototype,"input",void 0),N([VM()],M.NileCheckbox.prototype,"hasFocus",void 0),N([WM()],M.NileCheckbox.prototype,"title",void 0),N([WM()],M.NileCheckbox.prototype,"name",void 0),N([WM()],M.NileCheckbox.prototype,"value",void 0),N([WM({reflect:!0})],M.NileCheckbox.prototype,"size",void 0),N([WM({type:Boolean,reflect:!0})],M.NileCheckbox.prototype,"disabled",void 0),N([WM({type:Boolean,reflect:!0})],M.NileCheckbox.prototype,"checked",void 0),N([WM({type:String,reflect:!0})],M.NileCheckbox.prototype,"label",void 0),N([WM({type:Boolean,reflect:!0})],M.NileCheckbox.prototype,"indeterminate",void 0),N([sN("checked")],M.NileCheckbox.prototype,"defaultChecked",void 0),N([WM({attribute:"help-text"})],M.NileCheckbox.prototype,"helpText",void 0),N([WM({attribute:"error-message"})],M.NileCheckbox.prototype,"errorMessage",void 0),N([WM({reflect:!0})],M.NileCheckbox.prototype,"form",void 0),N([WM({type:Boolean,reflect:!0})],M.NileCheckbox.prototype,"required",void 0),N([tN(["checked","indeterminate"],{waitUntilFirstUpdate:!0})],M.NileCheckbox.prototype,"handleStateChange",null),M.NileCheckbox=N([mM("nile-checkbox")],M.NileCheckbox);const aN=u`
1543
1559
 
1544
1560
 
1545
1561
  :host {
@@ -1661,7 +1677,7 @@ const gN=Symbol.for(""),uN=M=>{if((null==M?void 0:M.r)===gN)return null==M?void
1661
1677
 
1662
1678
  <slot part="label" class="radio__label"></slot>
1663
1679
  </span>
1664
- `}},M.NileRadio.styles=aN,N([VM()],M.NileRadio.prototype,"checked",void 0),N([VM()],M.NileRadio.prototype,"hasFocus",void 0),N([WM()],M.NileRadio.prototype,"value",void 0),N([WM({reflect:!0})],M.NileRadio.prototype,"size",void 0),N([WM({type:Boolean,reflect:!0})],M.NileRadio.prototype,"disabled",void 0),N([tN("checked")],M.NileRadio.prototype,"handleCheckedChange",null),N([tN("disabled",{waitUntilFirstUpdate:!0})],M.NileRadio.prototype,"handleDisabledChange",null),M.NileRadio=N([mM("nile-radio")],M.NileRadio);var SN=u`
1680
+ `}},M.NileRadio.styles=aN,N([VM()],M.NileRadio.prototype,"checked",void 0),N([VM()],M.NileRadio.prototype,"hasFocus",void 0),N([WM()],M.NileRadio.prototype,"value",void 0),N([WM({reflect:!0})],M.NileRadio.prototype,"size",void 0),N([WM({type:Boolean,reflect:!0})],M.NileRadio.prototype,"disabled",void 0),N([tN("checked")],M.NileRadio.prototype,"handleCheckedChange",null),N([tN("disabled",{waitUntilFirstUpdate:!0})],M.NileRadio.prototype,"handleDisabledChange",null),M.NileRadio=N([mM("nile-radio")],M.NileRadio);var oN=u`
1665
1681
 
1666
1682
  :host {
1667
1683
  display: block;
@@ -1680,6 +1696,14 @@ const gN=Symbol.for(""),uN=M=>{if((null==M?void 0:M.r)===gN)return null==M?void
1680
1696
 
1681
1697
  .form-control__label {
1682
1698
  padding: 0;
1699
+ font-size: 14px;
1700
+ color: var(--nile-colors-dark-900);
1701
+ font-family: Colfax-regular;
1702
+ font-size: 14px;
1703
+ font-style: normal;
1704
+ font-weight: 400;
1705
+ line-height: 14px;
1706
+ letter-spacing: 0.2px;
1683
1707
  }
1684
1708
 
1685
1709
  .radio-group--required .radio-group__label::after {
@@ -1698,7 +1722,7 @@ const gN=Symbol.for(""),uN=M=>{if((null==M?void 0:M.r)===gN)return null==M?void
1698
1722
  white-space: nowrap;
1699
1723
  border: 0;
1700
1724
  }
1701
- `;function oN(M){return M.split("-")[1]}function ON(M){return"y"===M?"height":"width"}function nN(M){return M.split("-")[0]}function dN(M){return["top","bottom"].includes(nN(M))?"x":"y"}function CN(M,N,D){let{reference:i,floating:I}=M;const j=i.x+i.width/2-I.width/2,g=i.y+i.height/2-I.height/2,u=dN(N),L=ON(u),T=i[L]/2-I[L]/2,z="x"===u;let A;switch(nN(N)){case"top":A={x:j,y:i.y-I.height};break;case"bottom":A={x:j,y:i.y+i.height};break;case"right":A={x:i.x+i.width,y:g};break;case"left":A={x:i.x-I.width,y:g};break;default:A={x:i.x,y:i.y}}switch(oN(N)){case"start":A[u]-=T*(D&&z?-1:1);break;case"end":A[u]+=T*(D&&z?-1:1)}return A}M.NileRadioGroup=class extends xN{constructor(){super(...arguments),this.hasSlotController=new jN(this,"help-text","label"),this.customValidityMessage="",this.hasButtonGroup=!1,this.errorMessage="",this.defaultValue="",this.label="",this.helpText="",this.name="option",this.value="",this.form="",this.required=!1,this.labelInline=!1,this.disabled=!1}connectedCallback(){super.connectedCallback(),this.defaultValue=this.value,this.handleInitialDisabledState()}getAllRadios(){return[...this.querySelectorAll("nile-radio")]}handleRadioClick(M){const N=M.target.closest("nile-radio"),D=this.getAllRadios(),i=this.value;N.disabled||this.disabled||(this.value=N.value,D.forEach((M=>M.checked=M===N)),this.value!==i&&(this.emit("change",{value:this.value}),this.emit("input")))}handleDisabledChange(){this.getAllRadios().forEach((M=>{M.disabled=this.disabled}))}handleInitialDisabledState(){this.getAllRadios().forEach((M=>{M.disabled=M.hasAttribute("disabled")?M.disabled:this.disabled}))}handleKeyDown(M){if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"," "].includes(M.key))return;const N=this.getAllRadios().filter((M=>!M.disabled)),D=N.find((M=>M.checked))??N[0],i=" "===M.key?0:["ArrowUp","ArrowLeft"].includes(M.key)?-1:1,I=this.value;let j=N.indexOf(D)+i;j<0&&(j=N.length-1),j>N.length-1&&(j=0),this.getAllRadios().forEach((M=>{M.checked=!1,this.hasButtonGroup||(M.tabIndex=-1)})),this.value=N[j].value,N[j].checked=!0,this.hasButtonGroup?N[j].shadowRoot.querySelector("button").focus():(N[j].tabIndex=0,N[j].focus()),this.value!==I&&(this.emit("change"),this.emit("input")),M.preventDefault()}handleLabelClick(){const M=this.getAllRadios(),N=M.find((M=>M.checked)),D=N||M[0];D&&D.focus()}handleSlotChange(){const M=this.getAllRadios();if(M.forEach((M=>M.checked=M.value===this.value)),this.hasButtonGroup=M.some((M=>"nile-radio-button"===M.tagName.toLowerCase())),!M.some((M=>M.checked)))if(this.hasButtonGroup){M[0].shadowRoot.querySelector("button").tabIndex=0}else M[0].tabIndex=0;this.hasButtonGroup&&this.shadowRoot?.querySelector("nile-button-group")}updateCheckedRadio(){this.getAllRadios().forEach((M=>M.checked=M.value===this.value))}handleValueChange(){this.hasUpdated&&this.updateCheckedRadio()}render(){const M=this.hasSlotController.test("label"),N=this.hasSlotController.test("help-text"),D=!!this.label||!!M,i=!!this.helpText||!!N,I=cM`
1725
+ `;function SN(M){return M.split("-")[1]}function ON(M){return"y"===M?"height":"width"}function nN(M){return M.split("-")[0]}function dN(M){return["top","bottom"].includes(nN(M))?"x":"y"}function CN(M,N,D){let{reference:i,floating:I}=M;const j=i.x+i.width/2-I.width/2,g=i.y+i.height/2-I.height/2,u=dN(N),L=ON(u),T=i[L]/2-I[L]/2,z="x"===u;let A;switch(nN(N)){case"top":A={x:j,y:i.y-I.height};break;case"bottom":A={x:j,y:i.y+i.height};break;case"right":A={x:i.x+i.width,y:g};break;case"left":A={x:i.x-I.width,y:g};break;default:A={x:i.x,y:i.y}}switch(SN(N)){case"start":A[u]-=T*(D&&z?-1:1);break;case"end":A[u]+=T*(D&&z?-1:1)}return A}M.NileRadioGroup=class extends xN{constructor(){super(...arguments),this.hasSlotController=new jN(this,"help-text","label"),this.customValidityMessage="",this.hasButtonGroup=!1,this.defaultValue="",this.label="",this.name="option",this.value="",this.form="",this.required=!1,this.labelInline=!1,this.disabled=!1,this.helpText="",this.errorMessage=""}connectedCallback(){super.connectedCallback(),this.defaultValue=this.value,this.handleInitialDisabledState()}getAllRadios(){return[...this.querySelectorAll("nile-radio")]}handleRadioClick(M){const N=M.target.closest("nile-radio"),D=this.getAllRadios(),i=this.value;N.disabled||this.disabled||(this.value=N.value,D.forEach((M=>M.checked=M===N)),this.value!==i&&(this.emit("change",{value:this.value}),this.emit("input")))}handleDisabledChange(){this.getAllRadios().forEach((M=>{M.disabled=this.disabled}))}handleInitialDisabledState(){this.getAllRadios().forEach((M=>{M.disabled=M.hasAttribute("disabled")?M.disabled:this.disabled}))}handleKeyDown(M){if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"," "].includes(M.key))return;const N=this.getAllRadios().filter((M=>!M.disabled)),D=N.find((M=>M.checked))??N[0],i=" "===M.key?0:["ArrowUp","ArrowLeft"].includes(M.key)?-1:1,I=this.value;let j=N.indexOf(D)+i;j<0&&(j=N.length-1),j>N.length-1&&(j=0),this.getAllRadios().forEach((M=>{M.checked=!1,this.hasButtonGroup||(M.tabIndex=-1)})),this.value=N[j].value,N[j].checked=!0,this.hasButtonGroup?N[j].shadowRoot.querySelector("button").focus():(N[j].tabIndex=0,N[j].focus()),this.value!==I&&(this.emit("change"),this.emit("input")),M.preventDefault()}handleLabelClick(){const M=this.getAllRadios(),N=M.find((M=>M.checked)),D=N||M[0];D&&D.focus()}handleSlotChange(){const M=this.getAllRadios();if(M.forEach((M=>M.checked=M.value===this.value)),this.hasButtonGroup=M.some((M=>"nile-radio-button"===M.tagName.toLowerCase())),!M.some((M=>M.checked)))if(this.hasButtonGroup){M[0].shadowRoot.querySelector("button").tabIndex=0}else M[0].tabIndex=0;this.hasButtonGroup&&this.shadowRoot?.querySelector("nile-button-group")}updateCheckedRadio(){this.getAllRadios().forEach((M=>M.checked=M.value===this.value))}handleValueChange(){this.hasUpdated&&this.updateCheckedRadio()}render(){const M=this.hasSlotController.test("label");this.hasSlotController.test("help-text");const N=!!this.label||!!M,D=!!this.helpText,i=!!this.errorMessage,I=cM`
1702
1726
  <slot
1703
1727
  @click=${this.handleRadioClick}
1704
1728
  @keydown=${this.handleKeyDown}
@@ -1708,7 +1732,7 @@ const gN=Symbol.for(""),uN=M=>{if((null==M?void 0:M.r)===gN)return null==M?void
1708
1732
  `;return cM`
1709
1733
  <fieldset
1710
1734
  part="form-control"
1711
- class=${XM({"form-control":!0,"form-control--medium":!0,"form-control--radio-group":!0,"form-control--has-label":D,"form-control--has-help-text":i})}
1735
+ class=${XM({"form-control":!0,"form-control--medium":!0,"form-control--radio-group":!0,"form-control--has-label":N,"form-control--has-help-text":D})}
1712
1736
  role="radiogroup"
1713
1737
  aria-labelledby="label"
1714
1738
  aria-describedby="help-text"
@@ -1718,7 +1742,7 @@ const gN=Symbol.for(""),uN=M=>{if((null==M?void 0:M.r)===gN)return null==M?void
1718
1742
  part="form-control-label"
1719
1743
  id="label"
1720
1744
  class="form-control__label"
1721
- aria-hidden=${D?"false":"true"}
1745
+ aria-hidden=${N?"false":"true"}
1722
1746
  @click=${this.handleLabelClick}
1723
1747
  >
1724
1748
  <slot name="label">${this.label}</slot>
@@ -1726,7 +1750,6 @@ const gN=Symbol.for(""),uN=M=>{if((null==M?void 0:M.r)===gN)return null==M?void
1726
1750
 
1727
1751
  <div part="form-control-input" class="form-control-input">
1728
1752
  <div class="visually-hidden">
1729
- <div id="error-message" aria-live="assertive">${this.errorMessage}</div>
1730
1753
  <label class="radio-group__validation">
1731
1754
  <input
1732
1755
  type="text"
@@ -1744,17 +1767,18 @@ const gN=Symbol.for(""),uN=M=>{if((null==M?void 0:M.r)===gN)return null==M?void
1744
1767
  <div class="${this.labelInline?"form-control--inline-radio":""}"> ${I}</div> `}
1745
1768
  </div>
1746
1769
 
1747
- <slot
1748
- name="help-text"
1749
- part="form-control-help-text"
1750
- id="help-text"
1751
- class="form-control__help-text"
1752
- aria-hidden=${i?"false":"true"}
1753
- >
1754
- ${this.helpText}
1755
- </slot>
1770
+ ${D?cM`
1771
+ <nile-form-help-text>${this.helpText}</nile-form-help-text>
1772
+ `:""}
1773
+
1774
+ ${i?cM`
1775
+ <nile-form-error-message
1776
+ >${this.errorMessage}</nile-form-error-message
1777
+ >
1778
+ `:""}
1779
+
1756
1780
  </fieldset>
1757
- `}},M.NileRadioGroup.styles=SN,N([vM("slot:not([name])")],M.NileRadioGroup.prototype,"defaultSlot",void 0),N([VM()],M.NileRadioGroup.prototype,"hasButtonGroup",void 0),N([VM()],M.NileRadioGroup.prototype,"errorMessage",void 0),N([VM()],M.NileRadioGroup.prototype,"defaultValue",void 0),N([WM()],M.NileRadioGroup.prototype,"label",void 0),N([WM({attribute:"help-text"})],M.NileRadioGroup.prototype,"helpText",void 0),N([WM()],M.NileRadioGroup.prototype,"name",void 0),N([WM({reflect:!0})],M.NileRadioGroup.prototype,"value",void 0),N([WM({reflect:!0})],M.NileRadioGroup.prototype,"form",void 0),N([WM({type:Boolean,reflect:!0})],M.NileRadioGroup.prototype,"required",void 0),N([WM({type:Boolean,reflect:!0})],M.NileRadioGroup.prototype,"labelInline",void 0),N([WM({type:Boolean,reflect:!0})],M.NileRadioGroup.prototype,"disabled",void 0),N([tN("disabled",{waitUntilFirstUpdate:!0})],M.NileRadioGroup.prototype,"handleDisabledChange",null),N([tN("value")],M.NileRadioGroup.prototype,"handleValueChange",null),M.NileRadioGroup=N([mM("nile-radio-group")],M.NileRadioGroup);function rN(M){return"number"!=typeof M?function(M){return{top:0,right:0,bottom:0,left:0,...M}}(M):{top:M,right:M,bottom:M,left:M}}function UN(M){return{...M,top:M.y,left:M.x,right:M.x+M.width,bottom:M.y+M.height}}async function QN(M,N){var D;void 0===N&&(N={});const{x:i,y:I,platform:j,rects:g,elements:u,strategy:L}=M,{boundary:T="clippingAncestors",rootBoundary:z="viewport",elementContext:A="floating",altBoundary:t=!1,padding:y=0}=N,x=rN(y),c=u[t?"floating"===A?"reference":"floating":A],s=UN(await j.getClippingRect({element:null==(D=await(null==j.isElement?void 0:j.isElement(c)))||D?c:c.contextElement||await(null==j.getDocumentElement?void 0:j.getDocumentElement(u.floating)),boundary:T,rootBoundary:z,strategy:L})),e="floating"===A?{...g.floating,x:i,y:I}:g.reference,l=await(null==j.getOffsetParent?void 0:j.getOffsetParent(u.floating)),w=await(null==j.isElement?void 0:j.isElement(l))&&await(null==j.getScale?void 0:j.getScale(l))||{x:1,y:1},E=UN(j.convertOffsetParentRelativeRectToViewportRelativeRect?await j.convertOffsetParentRelativeRectToViewportRelativeRect({rect:e,offsetParent:l,strategy:L}):e);return{top:(s.top-E.top+x.top)/w.y,bottom:(E.bottom-s.bottom+x.bottom)/w.y,left:(s.left-E.left+x.left)/w.x,right:(E.right-s.right+x.right)/w.x}}const kN=Math.min,hN=Math.max;function YN(M,N,D){return hN(M,kN(N,D))}const ZN={left:"right",right:"left",bottom:"top",top:"bottom"};function bN(M){return M.replace(/left|right|bottom|top/g,(M=>ZN[M]))}const mN={start:"end",end:"start"};function pN(M){return M.replace(/start|end/g,(M=>mN[M]))}const WN=function(M){return void 0===M&&(M={}),{name:"flip",options:M,async fn(N){var D;const{placement:i,middlewareData:I,rects:j,initialPlacement:g,platform:u,elements:L}=N,{mainAxis:T=!0,crossAxis:z=!0,fallbackPlacements:A,fallbackStrategy:t="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:x=!0,...c}=M,s=nN(i),e=nN(g)===g,l=await(null==u.isRTL?void 0:u.isRTL(L.floating)),w=A||(e||!x?[bN(g)]:function(M){const N=bN(M);return[pN(M),N,pN(N)]}(g));A||"none"===y||w.push(...function(M,N,D,i){const I=oN(M);let j=function(M,N,D){const i=["left","right"],I=["right","left"],j=["top","bottom"],g=["bottom","top"];switch(M){case"top":case"bottom":return D?N?I:i:N?i:I;case"left":case"right":return N?j:g;default:return[]}}(nN(M),"start"===D,i);return I&&(j=j.map((M=>M+"-"+I)),N&&(j=j.concat(j.map(pN)))),j}(g,x,y,l));const E=[g,...w],a=await QN(N,c),S=[];let o=(null==(D=I.flip)?void 0:D.overflows)||[];if(T&&S.push(a[s]),z){const{main:M,cross:N}=function(M,N,D){void 0===D&&(D=!1);const i=oN(M),I=dN(M),j=ON(I);let g="x"===I?i===(D?"end":"start")?"right":"left":"start"===i?"bottom":"top";return N.reference[j]>N.floating[j]&&(g=bN(g)),{main:g,cross:bN(g)}}(i,j,l);S.push(a[M],a[N])}if(o=[...o,{placement:i,overflows:S}],!S.every((M=>M<=0))){var O,n;const M=((null==(O=I.flip)?void 0:O.index)||0)+1,N=E[M];if(N)return{data:{index:M,overflows:o},reset:{placement:N}};let D=null==(n=o.filter((M=>M.overflows[0]<=0)).sort(((M,N)=>M.overflows[1]-N.overflows[1]))[0])?void 0:n.placement;if(!D)switch(t){case"bestFit":{var d;const M=null==(d=o.map((M=>[M.placement,M.overflows.filter((M=>M>0)).reduce(((M,N)=>M+N),0)])).sort(((M,N)=>M[1]-N[1]))[0])?void 0:d[0];M&&(D=M);break}case"initialPlacement":D=g}if(i!==D)return{reset:{placement:D}}}return{}}}};const VN=function(M){return void 0===M&&(M=0),{name:"offset",options:M,async fn(N){const{x:D,y:i}=N,I=await async function(M,N){const{placement:D,platform:i,elements:I}=M,j=await(null==i.isRTL?void 0:i.isRTL(I.floating)),g=nN(D),u=oN(D),L="x"===dN(D),T=["left","top"].includes(g)?-1:1,z=j&&L?-1:1,A="function"==typeof N?N(M):N;let{mainAxis:t,crossAxis:y,alignmentAxis:x}="number"==typeof A?{mainAxis:A,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...A};return u&&"number"==typeof x&&(y="end"===u?-1*x:x),L?{x:y*z,y:t*T}:{x:t*T,y:y*z}}(N,M);return{x:D+I.x,y:i+I.y,data:I}}}};const vN=function(M){return void 0===M&&(M={}),{name:"size",options:M,async fn(N){const{placement:D,rects:i,platform:I,elements:j}=N,{apply:g=(()=>{}),...u}=M,L=await QN(N,u),T=nN(D),z=oN(D),A="x"===dN(D),{width:t,height:y}=i.floating;let x,c;"top"===T||"bottom"===T?(x=T,c=z===(await(null==I.isRTL?void 0:I.isRTL(j.floating))?"start":"end")?"left":"right"):(c=T,x="end"===z?"top":"bottom");const s=y-L[x],e=t-L[c],l=!N.middlewareData.shift;let w=s,E=e;if(A){const M=t-L.left-L.right;E=z||l?kN(e,M):M}else{const M=y-L.top-L.bottom;w=z||l?kN(s,M):M}if(l&&!z){const M=hN(L.left,0),N=hN(L.right,0),D=hN(L.top,0),i=hN(L.bottom,0);A?E=t-2*(0!==M||0!==N?M+N:hN(L.left,L.right)):w=y-2*(0!==D||0!==i?D+i:hN(L.top,L.bottom))}await g({...N,availableWidth:E,availableHeight:w});const a=await I.getDimensions(j.floating);return t!==a.width||y!==a.height?{reset:{rects:!0}}:{}}}};function GN(M){var N;return(null==(N=M.ownerDocument)?void 0:N.defaultView)||window}function BN(M){return GN(M).getComputedStyle(M)}function PN(M){return M instanceof GN(M).Node}function RN(M){return PN(M)?(M.nodeName||"").toLowerCase():""}let FN;function HN(){if(FN)return FN;const M=navigator.userAgentData;return M&&Array.isArray(M.brands)?(FN=M.brands.map((M=>M.brand+"/"+M.version)).join(" "),FN):navigator.userAgent}function JN(M){return M instanceof GN(M).HTMLElement}function XN(M){return M instanceof GN(M).Element}function fN(M){if("undefined"==typeof ShadowRoot)return!1;return M instanceof GN(M).ShadowRoot||M instanceof ShadowRoot}function _N(M){const{overflow:N,overflowX:D,overflowY:i,display:I}=BN(M);return/auto|scroll|overlay|hidden|clip/.test(N+i+D)&&!["inline","contents"].includes(I)}function $N(M){return["table","td","th"].includes(RN(M))}function KN(M){const N=/firefox/i.test(HN()),D=BN(M),i=D.backdropFilter||D.WebkitBackdropFilter;return"none"!==D.transform||"none"!==D.perspective||!!i&&"none"!==i||N&&"filter"===D.willChange||N&&!!D.filter&&"none"!==D.filter||["transform","perspective"].some((M=>D.willChange.includes(M)))||["paint","layout","strict","content"].some((M=>{const N=D.contain;return null!=N&&N.includes(M)}))}function qN(){return/^((?!chrome|android).)*safari/i.test(HN())}function MD(M){return["html","body","#document"].includes(RN(M))}const ND=Math.min,DD=Math.max,iD=Math.round;function ID(M){const N=BN(M);let D=parseFloat(N.width),i=parseFloat(N.height);const I=JN(M),j=I?M.offsetWidth:D,g=I?M.offsetHeight:i,u=iD(D)!==j||iD(i)!==g;return u&&(D=j,i=g),{width:D,height:i,fallback:u}}function jD(M){return XN(M)?M:M.contextElement}const gD={x:1,y:1};function uD(M){const N=jD(M);if(!JN(N))return gD;const D=N.getBoundingClientRect(),{width:i,height:I,fallback:j}=ID(N);let g=(j?iD(D.width):D.width)/i,u=(j?iD(D.height):D.height)/I;return g&&Number.isFinite(g)||(g=1),u&&Number.isFinite(u)||(u=1),{x:g,y:u}}function LD(M,N,D,i){var I,j;void 0===N&&(N=!1),void 0===D&&(D=!1);const g=M.getBoundingClientRect(),u=jD(M);let L=gD;N&&(i?XN(i)&&(L=uD(i)):L=uD(M));const T=u?GN(u):window,z=qN()&&D;let A=(g.left+(z&&(null==(I=T.visualViewport)?void 0:I.offsetLeft)||0))/L.x,t=(g.top+(z&&(null==(j=T.visualViewport)?void 0:j.offsetTop)||0))/L.y,y=g.width/L.x,x=g.height/L.y;if(u){const M=GN(u),N=i&&XN(i)?GN(i):i;let D=M.frameElement;for(;D&&i&&N!==M;){const M=uD(D),N=D.getBoundingClientRect(),i=getComputedStyle(D);N.x+=(D.clientLeft+parseFloat(i.paddingLeft))*M.x,N.y+=(D.clientTop+parseFloat(i.paddingTop))*M.y,A*=M.x,t*=M.y,y*=M.x,x*=M.y,A+=N.x,t+=N.y,D=GN(D).frameElement}}return UN({width:y,height:x,x:A,y:t})}function TD(M){return((PN(M)?M.ownerDocument:M.document)||window.document).documentElement}function zD(M){return XN(M)?{scrollLeft:M.scrollLeft,scrollTop:M.scrollTop}:{scrollLeft:M.pageXOffset,scrollTop:M.pageYOffset}}function AD(M){return LD(TD(M)).left+zD(M).scrollLeft}function tD(M){if("html"===RN(M))return M;const N=M.assignedSlot||M.parentNode||fN(M)&&M.host||TD(M);return fN(N)?N.host:N}function yD(M){const N=tD(M);return MD(N)?N.ownerDocument.body:JN(N)&&_N(N)?N:yD(N)}function xD(M,N){var D;void 0===N&&(N=[]);const i=yD(M),I=i===(null==(D=M.ownerDocument)?void 0:D.body),j=GN(i);return I?N.concat(j,j.visualViewport||[],_N(i)?i:[]):N.concat(i,xD(i))}function cD(M,N,D){let i;if("viewport"===N)i=function(M,N){const D=GN(M),i=TD(M),I=D.visualViewport;let j=i.clientWidth,g=i.clientHeight,u=0,L=0;if(I){j=I.width,g=I.height;const M=qN();(!M||M&&"fixed"===N)&&(u=I.offsetLeft,L=I.offsetTop)}return{width:j,height:g,x:u,y:L}}(M,D);else if("document"===N)i=function(M){const N=TD(M),D=zD(M),i=M.ownerDocument.body,I=DD(N.scrollWidth,N.clientWidth,i.scrollWidth,i.clientWidth),j=DD(N.scrollHeight,N.clientHeight,i.scrollHeight,i.clientHeight);let g=-D.scrollLeft+AD(M);const u=-D.scrollTop;return"rtl"===BN(i).direction&&(g+=DD(N.clientWidth,i.clientWidth)-I),{width:I,height:j,x:g,y:u}}(TD(M));else if(XN(N))i=function(M,N){const D=LD(M,!0,"fixed"===N),i=D.top+M.clientTop,I=D.left+M.clientLeft,j=JN(M)?uD(M):{x:1,y:1};return{width:M.clientWidth*j.x,height:M.clientHeight*j.y,x:I*j.x,y:i*j.y}}(N,D);else{const D={...N};if(qN()){var I,j;const N=GN(M);D.x-=(null==(I=N.visualViewport)?void 0:I.offsetLeft)||0,D.y-=(null==(j=N.visualViewport)?void 0:j.offsetTop)||0}i=D}return UN(i)}function sD(M,N){return JN(M)&&"fixed"!==BN(M).position?N?N(M):M.offsetParent:null}function eD(M,N){const D=GN(M);if(!JN(M))return D;let i=sD(M,N);for(;i&&$N(i)&&"static"===BN(i).position;)i=sD(i,N);return i&&("html"===RN(i)||"body"===RN(i)&&"static"===BN(i).position&&!KN(i))?D:i||function(M){let N=tD(M);for(;JN(N)&&!MD(N);){if(KN(N))return N;N=tD(N)}return null}(M)||D}function lD(M,N,D){const i=JN(N),I=TD(N),j=LD(M,!0,"fixed"===D,N);let g={scrollLeft:0,scrollTop:0};const u={x:0,y:0};if(i||!i&&"fixed"!==D)if(("body"!==RN(N)||_N(I))&&(g=zD(N)),JN(N)){const M=LD(N,!0);u.x=M.x+N.clientLeft,u.y=M.y+N.clientTop}else I&&(u.x=AD(I));return{x:j.left+g.scrollLeft-u.x,y:j.top+g.scrollTop-u.y,width:j.width,height:j.height}}const wD={getClippingRect:function(M){let{element:N,boundary:D,rootBoundary:i,strategy:I}=M;const j=[..."clippingAncestors"===D?function(M,N){const D=N.get(M);if(D)return D;let i=xD(M).filter((M=>XN(M)&&"body"!==RN(M))),I=null;const j="fixed"===BN(M).position;let g=j?tD(M):M;for(;XN(g)&&!MD(g);){const M=BN(g),N=KN(g);"fixed"===M.position&&(I=null),(j?N||I:N||"static"!==M.position||!I||!["absolute","fixed"].includes(I.position))?I=M:i=i.filter((M=>M!==g)),g=tD(g)}return N.set(M,i),i}(N,this._c):[].concat(D),i],g=j[0],u=j.reduce(((M,D)=>{const i=cD(N,D,I);return M.top=DD(i.top,M.top),M.right=ND(i.right,M.right),M.bottom=ND(i.bottom,M.bottom),M.left=DD(i.left,M.left),M}),cD(N,g,I));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(M){let{rect:N,offsetParent:D,strategy:i}=M;const I=JN(D),j=TD(D);if(D===j)return N;let g={scrollLeft:0,scrollTop:0},u={x:1,y:1};const L={x:0,y:0};if((I||!I&&"fixed"!==i)&&(("body"!==RN(D)||_N(j))&&(g=zD(D)),JN(D))){const M=LD(D);u=uD(D),L.x=M.x+D.clientLeft,L.y=M.y+D.clientTop}return{width:N.width*u.x,height:N.height*u.y,x:N.x*u.x-g.scrollLeft*u.x+L.x,y:N.y*u.y-g.scrollTop*u.y+L.y}},isElement:XN,getDimensions:function(M){return ID(M)},getOffsetParent:eD,getDocumentElement:TD,getScale:uD,async getElementRects(M){let{reference:N,floating:D,strategy:i}=M;const I=this.getOffsetParent||eD,j=this.getDimensions;return{reference:lD(N,await I(D),i),floating:{x:0,y:0,...await j(D)}}},getClientRects:M=>Array.from(M.getClientRects()),isRTL:M=>"rtl"===BN(M).direction};const ED=(M,N,D)=>{const i=new Map,I={platform:wD,...D},j={...I.platform,_c:i};return(async(M,N,D)=>{const{placement:i="bottom",strategy:I="absolute",middleware:j=[],platform:g}=D,u=j.filter(Boolean),L=await(null==g.isRTL?void 0:g.isRTL(N));let T=await g.getElementRects({reference:M,floating:N,strategy:I}),{x:z,y:A}=CN(T,i,L),t=i,y={},x=0;for(let D=0;D<u.length;D++){const{name:j,fn:c}=u[D],{x:s,y:e,data:l,reset:w}=await c({x:z,y:A,initialPlacement:i,placement:t,strategy:I,middlewareData:y,rects:T,platform:g,elements:{reference:M,floating:N}});z=null!=s?s:z,A=null!=e?e:A,y={...y,[j]:{...y[j],...l}},w&&x<=50&&(x++,"object"==typeof w&&(w.placement&&(t=w.placement),w.rects&&(T=!0===w.rects?await g.getElementRects({reference:M,floating:N,strategy:I}):w.rects),({x:z,y:A}=CN(T,t,L))),D=-1)}return{x:z,y:A,placement:t,strategy:I,middlewareData:y}})(M,N,{...I,platform:j})};function aD(M){return function(M){for(let N=M;N;N=SD(N))if(N instanceof Element&&"none"===getComputedStyle(N).display)return null;for(let N=SD(M);N;N=SD(N)){if(!(N instanceof Element))continue;const M=getComputedStyle(N);if("contents"!==M.display){if("static"!==M.position||"none"!==M.filter)return N;if("BODY"===N.tagName)return N}}return null}(M)}function SD(M){return M.assignedSlot?M.assignedSlot:M.parentNode instanceof ShadowRoot?M.parentNode.host:M.parentNode}const oD=u`
1781
+ `}},M.NileRadioGroup.styles=oN,N([vM("slot:not([name])")],M.NileRadioGroup.prototype,"defaultSlot",void 0),N([VM()],M.NileRadioGroup.prototype,"hasButtonGroup",void 0),N([VM()],M.NileRadioGroup.prototype,"defaultValue",void 0),N([WM()],M.NileRadioGroup.prototype,"label",void 0),N([WM()],M.NileRadioGroup.prototype,"name",void 0),N([WM({reflect:!0})],M.NileRadioGroup.prototype,"value",void 0),N([WM({reflect:!0})],M.NileRadioGroup.prototype,"form",void 0),N([WM({type:Boolean,reflect:!0})],M.NileRadioGroup.prototype,"required",void 0),N([WM({type:Boolean,reflect:!0})],M.NileRadioGroup.prototype,"labelInline",void 0),N([WM({type:Boolean,reflect:!0})],M.NileRadioGroup.prototype,"disabled",void 0),N([WM({attribute:"help-text"})],M.NileRadioGroup.prototype,"helpText",void 0),N([WM({attribute:"error-message"})],M.NileRadioGroup.prototype,"errorMessage",void 0),N([tN("disabled",{waitUntilFirstUpdate:!0})],M.NileRadioGroup.prototype,"handleDisabledChange",null),N([tN("value")],M.NileRadioGroup.prototype,"handleValueChange",null),M.NileRadioGroup=N([mM("nile-radio-group")],M.NileRadioGroup);function rN(M){return"number"!=typeof M?function(M){return{top:0,right:0,bottom:0,left:0,...M}}(M):{top:M,right:M,bottom:M,left:M}}function UN(M){return{...M,top:M.y,left:M.x,right:M.x+M.width,bottom:M.y+M.height}}async function QN(M,N){var D;void 0===N&&(N={});const{x:i,y:I,platform:j,rects:g,elements:u,strategy:L}=M,{boundary:T="clippingAncestors",rootBoundary:z="viewport",elementContext:A="floating",altBoundary:t=!1,padding:y=0}=N,x=rN(y),c=u[t?"floating"===A?"reference":"floating":A],s=UN(await j.getClippingRect({element:null==(D=await(null==j.isElement?void 0:j.isElement(c)))||D?c:c.contextElement||await(null==j.getDocumentElement?void 0:j.getDocumentElement(u.floating)),boundary:T,rootBoundary:z,strategy:L})),e="floating"===A?{...g.floating,x:i,y:I}:g.reference,l=await(null==j.getOffsetParent?void 0:j.getOffsetParent(u.floating)),w=await(null==j.isElement?void 0:j.isElement(l))&&await(null==j.getScale?void 0:j.getScale(l))||{x:1,y:1},E=UN(j.convertOffsetParentRelativeRectToViewportRelativeRect?await j.convertOffsetParentRelativeRectToViewportRelativeRect({rect:e,offsetParent:l,strategy:L}):e);return{top:(s.top-E.top+x.top)/w.y,bottom:(E.bottom-s.bottom+x.bottom)/w.y,left:(s.left-E.left+x.left)/w.x,right:(E.right-s.right+x.right)/w.x}}const kN=Math.min,hN=Math.max;function YN(M,N,D){return hN(M,kN(N,D))}const ZN={left:"right",right:"left",bottom:"top",top:"bottom"};function bN(M){return M.replace(/left|right|bottom|top/g,(M=>ZN[M]))}const mN={start:"end",end:"start"};function pN(M){return M.replace(/start|end/g,(M=>mN[M]))}const WN=function(M){return void 0===M&&(M={}),{name:"flip",options:M,async fn(N){var D;const{placement:i,middlewareData:I,rects:j,initialPlacement:g,platform:u,elements:L}=N,{mainAxis:T=!0,crossAxis:z=!0,fallbackPlacements:A,fallbackStrategy:t="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:x=!0,...c}=M,s=nN(i),e=nN(g)===g,l=await(null==u.isRTL?void 0:u.isRTL(L.floating)),w=A||(e||!x?[bN(g)]:function(M){const N=bN(M);return[pN(M),N,pN(N)]}(g));A||"none"===y||w.push(...function(M,N,D,i){const I=SN(M);let j=function(M,N,D){const i=["left","right"],I=["right","left"],j=["top","bottom"],g=["bottom","top"];switch(M){case"top":case"bottom":return D?N?I:i:N?i:I;case"left":case"right":return N?j:g;default:return[]}}(nN(M),"start"===D,i);return I&&(j=j.map((M=>M+"-"+I)),N&&(j=j.concat(j.map(pN)))),j}(g,x,y,l));const E=[g,...w],a=await QN(N,c),o=[];let S=(null==(D=I.flip)?void 0:D.overflows)||[];if(T&&o.push(a[s]),z){const{main:M,cross:N}=function(M,N,D){void 0===D&&(D=!1);const i=SN(M),I=dN(M),j=ON(I);let g="x"===I?i===(D?"end":"start")?"right":"left":"start"===i?"bottom":"top";return N.reference[j]>N.floating[j]&&(g=bN(g)),{main:g,cross:bN(g)}}(i,j,l);o.push(a[M],a[N])}if(S=[...S,{placement:i,overflows:o}],!o.every((M=>M<=0))){var O,n;const M=((null==(O=I.flip)?void 0:O.index)||0)+1,N=E[M];if(N)return{data:{index:M,overflows:S},reset:{placement:N}};let D=null==(n=S.filter((M=>M.overflows[0]<=0)).sort(((M,N)=>M.overflows[1]-N.overflows[1]))[0])?void 0:n.placement;if(!D)switch(t){case"bestFit":{var d;const M=null==(d=S.map((M=>[M.placement,M.overflows.filter((M=>M>0)).reduce(((M,N)=>M+N),0)])).sort(((M,N)=>M[1]-N[1]))[0])?void 0:d[0];M&&(D=M);break}case"initialPlacement":D=g}if(i!==D)return{reset:{placement:D}}}return{}}}};const VN=function(M){return void 0===M&&(M=0),{name:"offset",options:M,async fn(N){const{x:D,y:i}=N,I=await async function(M,N){const{placement:D,platform:i,elements:I}=M,j=await(null==i.isRTL?void 0:i.isRTL(I.floating)),g=nN(D),u=SN(D),L="x"===dN(D),T=["left","top"].includes(g)?-1:1,z=j&&L?-1:1,A="function"==typeof N?N(M):N;let{mainAxis:t,crossAxis:y,alignmentAxis:x}="number"==typeof A?{mainAxis:A,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...A};return u&&"number"==typeof x&&(y="end"===u?-1*x:x),L?{x:y*z,y:t*T}:{x:t*T,y:y*z}}(N,M);return{x:D+I.x,y:i+I.y,data:I}}}};const vN=function(M){return void 0===M&&(M={}),{name:"size",options:M,async fn(N){const{placement:D,rects:i,platform:I,elements:j}=N,{apply:g=(()=>{}),...u}=M,L=await QN(N,u),T=nN(D),z=SN(D),A="x"===dN(D),{width:t,height:y}=i.floating;let x,c;"top"===T||"bottom"===T?(x=T,c=z===(await(null==I.isRTL?void 0:I.isRTL(j.floating))?"start":"end")?"left":"right"):(c=T,x="end"===z?"top":"bottom");const s=y-L[x],e=t-L[c],l=!N.middlewareData.shift;let w=s,E=e;if(A){const M=t-L.left-L.right;E=z||l?kN(e,M):M}else{const M=y-L.top-L.bottom;w=z||l?kN(s,M):M}if(l&&!z){const M=hN(L.left,0),N=hN(L.right,0),D=hN(L.top,0),i=hN(L.bottom,0);A?E=t-2*(0!==M||0!==N?M+N:hN(L.left,L.right)):w=y-2*(0!==D||0!==i?D+i:hN(L.top,L.bottom))}await g({...N,availableWidth:E,availableHeight:w});const a=await I.getDimensions(j.floating);return t!==a.width||y!==a.height?{reset:{rects:!0}}:{}}}};function GN(M){var N;return(null==(N=M.ownerDocument)?void 0:N.defaultView)||window}function BN(M){return GN(M).getComputedStyle(M)}function PN(M){return M instanceof GN(M).Node}function RN(M){return PN(M)?(M.nodeName||"").toLowerCase():""}let FN;function HN(){if(FN)return FN;const M=navigator.userAgentData;return M&&Array.isArray(M.brands)?(FN=M.brands.map((M=>M.brand+"/"+M.version)).join(" "),FN):navigator.userAgent}function JN(M){return M instanceof GN(M).HTMLElement}function XN(M){return M instanceof GN(M).Element}function fN(M){if("undefined"==typeof ShadowRoot)return!1;return M instanceof GN(M).ShadowRoot||M instanceof ShadowRoot}function _N(M){const{overflow:N,overflowX:D,overflowY:i,display:I}=BN(M);return/auto|scroll|overlay|hidden|clip/.test(N+i+D)&&!["inline","contents"].includes(I)}function $N(M){return["table","td","th"].includes(RN(M))}function KN(M){const N=/firefox/i.test(HN()),D=BN(M),i=D.backdropFilter||D.WebkitBackdropFilter;return"none"!==D.transform||"none"!==D.perspective||!!i&&"none"!==i||N&&"filter"===D.willChange||N&&!!D.filter&&"none"!==D.filter||["transform","perspective"].some((M=>D.willChange.includes(M)))||["paint","layout","strict","content"].some((M=>{const N=D.contain;return null!=N&&N.includes(M)}))}function qN(){return/^((?!chrome|android).)*safari/i.test(HN())}function MD(M){return["html","body","#document"].includes(RN(M))}const ND=Math.min,DD=Math.max,iD=Math.round;function ID(M){const N=BN(M);let D=parseFloat(N.width),i=parseFloat(N.height);const I=JN(M),j=I?M.offsetWidth:D,g=I?M.offsetHeight:i,u=iD(D)!==j||iD(i)!==g;return u&&(D=j,i=g),{width:D,height:i,fallback:u}}function jD(M){return XN(M)?M:M.contextElement}const gD={x:1,y:1};function uD(M){const N=jD(M);if(!JN(N))return gD;const D=N.getBoundingClientRect(),{width:i,height:I,fallback:j}=ID(N);let g=(j?iD(D.width):D.width)/i,u=(j?iD(D.height):D.height)/I;return g&&Number.isFinite(g)||(g=1),u&&Number.isFinite(u)||(u=1),{x:g,y:u}}function LD(M,N,D,i){var I,j;void 0===N&&(N=!1),void 0===D&&(D=!1);const g=M.getBoundingClientRect(),u=jD(M);let L=gD;N&&(i?XN(i)&&(L=uD(i)):L=uD(M));const T=u?GN(u):window,z=qN()&&D;let A=(g.left+(z&&(null==(I=T.visualViewport)?void 0:I.offsetLeft)||0))/L.x,t=(g.top+(z&&(null==(j=T.visualViewport)?void 0:j.offsetTop)||0))/L.y,y=g.width/L.x,x=g.height/L.y;if(u){const M=GN(u),N=i&&XN(i)?GN(i):i;let D=M.frameElement;for(;D&&i&&N!==M;){const M=uD(D),N=D.getBoundingClientRect(),i=getComputedStyle(D);N.x+=(D.clientLeft+parseFloat(i.paddingLeft))*M.x,N.y+=(D.clientTop+parseFloat(i.paddingTop))*M.y,A*=M.x,t*=M.y,y*=M.x,x*=M.y,A+=N.x,t+=N.y,D=GN(D).frameElement}}return UN({width:y,height:x,x:A,y:t})}function TD(M){return((PN(M)?M.ownerDocument:M.document)||window.document).documentElement}function zD(M){return XN(M)?{scrollLeft:M.scrollLeft,scrollTop:M.scrollTop}:{scrollLeft:M.pageXOffset,scrollTop:M.pageYOffset}}function AD(M){return LD(TD(M)).left+zD(M).scrollLeft}function tD(M){if("html"===RN(M))return M;const N=M.assignedSlot||M.parentNode||fN(M)&&M.host||TD(M);return fN(N)?N.host:N}function yD(M){const N=tD(M);return MD(N)?N.ownerDocument.body:JN(N)&&_N(N)?N:yD(N)}function xD(M,N){var D;void 0===N&&(N=[]);const i=yD(M),I=i===(null==(D=M.ownerDocument)?void 0:D.body),j=GN(i);return I?N.concat(j,j.visualViewport||[],_N(i)?i:[]):N.concat(i,xD(i))}function cD(M,N,D){let i;if("viewport"===N)i=function(M,N){const D=GN(M),i=TD(M),I=D.visualViewport;let j=i.clientWidth,g=i.clientHeight,u=0,L=0;if(I){j=I.width,g=I.height;const M=qN();(!M||M&&"fixed"===N)&&(u=I.offsetLeft,L=I.offsetTop)}return{width:j,height:g,x:u,y:L}}(M,D);else if("document"===N)i=function(M){const N=TD(M),D=zD(M),i=M.ownerDocument.body,I=DD(N.scrollWidth,N.clientWidth,i.scrollWidth,i.clientWidth),j=DD(N.scrollHeight,N.clientHeight,i.scrollHeight,i.clientHeight);let g=-D.scrollLeft+AD(M);const u=-D.scrollTop;return"rtl"===BN(i).direction&&(g+=DD(N.clientWidth,i.clientWidth)-I),{width:I,height:j,x:g,y:u}}(TD(M));else if(XN(N))i=function(M,N){const D=LD(M,!0,"fixed"===N),i=D.top+M.clientTop,I=D.left+M.clientLeft,j=JN(M)?uD(M):{x:1,y:1};return{width:M.clientWidth*j.x,height:M.clientHeight*j.y,x:I*j.x,y:i*j.y}}(N,D);else{const D={...N};if(qN()){var I,j;const N=GN(M);D.x-=(null==(I=N.visualViewport)?void 0:I.offsetLeft)||0,D.y-=(null==(j=N.visualViewport)?void 0:j.offsetTop)||0}i=D}return UN(i)}function sD(M,N){return JN(M)&&"fixed"!==BN(M).position?N?N(M):M.offsetParent:null}function eD(M,N){const D=GN(M);if(!JN(M))return D;let i=sD(M,N);for(;i&&$N(i)&&"static"===BN(i).position;)i=sD(i,N);return i&&("html"===RN(i)||"body"===RN(i)&&"static"===BN(i).position&&!KN(i))?D:i||function(M){let N=tD(M);for(;JN(N)&&!MD(N);){if(KN(N))return N;N=tD(N)}return null}(M)||D}function lD(M,N,D){const i=JN(N),I=TD(N),j=LD(M,!0,"fixed"===D,N);let g={scrollLeft:0,scrollTop:0};const u={x:0,y:0};if(i||!i&&"fixed"!==D)if(("body"!==RN(N)||_N(I))&&(g=zD(N)),JN(N)){const M=LD(N,!0);u.x=M.x+N.clientLeft,u.y=M.y+N.clientTop}else I&&(u.x=AD(I));return{x:j.left+g.scrollLeft-u.x,y:j.top+g.scrollTop-u.y,width:j.width,height:j.height}}const wD={getClippingRect:function(M){let{element:N,boundary:D,rootBoundary:i,strategy:I}=M;const j=[..."clippingAncestors"===D?function(M,N){const D=N.get(M);if(D)return D;let i=xD(M).filter((M=>XN(M)&&"body"!==RN(M))),I=null;const j="fixed"===BN(M).position;let g=j?tD(M):M;for(;XN(g)&&!MD(g);){const M=BN(g),N=KN(g);"fixed"===M.position&&(I=null),(j?N||I:N||"static"!==M.position||!I||!["absolute","fixed"].includes(I.position))?I=M:i=i.filter((M=>M!==g)),g=tD(g)}return N.set(M,i),i}(N,this._c):[].concat(D),i],g=j[0],u=j.reduce(((M,D)=>{const i=cD(N,D,I);return M.top=DD(i.top,M.top),M.right=ND(i.right,M.right),M.bottom=ND(i.bottom,M.bottom),M.left=DD(i.left,M.left),M}),cD(N,g,I));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(M){let{rect:N,offsetParent:D,strategy:i}=M;const I=JN(D),j=TD(D);if(D===j)return N;let g={scrollLeft:0,scrollTop:0},u={x:1,y:1};const L={x:0,y:0};if((I||!I&&"fixed"!==i)&&(("body"!==RN(D)||_N(j))&&(g=zD(D)),JN(D))){const M=LD(D);u=uD(D),L.x=M.x+D.clientLeft,L.y=M.y+D.clientTop}return{width:N.width*u.x,height:N.height*u.y,x:N.x*u.x-g.scrollLeft*u.x+L.x,y:N.y*u.y-g.scrollTop*u.y+L.y}},isElement:XN,getDimensions:function(M){return ID(M)},getOffsetParent:eD,getDocumentElement:TD,getScale:uD,async getElementRects(M){let{reference:N,floating:D,strategy:i}=M;const I=this.getOffsetParent||eD,j=this.getDimensions;return{reference:lD(N,await I(D),i),floating:{x:0,y:0,...await j(D)}}},getClientRects:M=>Array.from(M.getClientRects()),isRTL:M=>"rtl"===BN(M).direction};const ED=(M,N,D)=>{const i=new Map,I={platform:wD,...D},j={...I.platform,_c:i};return(async(M,N,D)=>{const{placement:i="bottom",strategy:I="absolute",middleware:j=[],platform:g}=D,u=j.filter(Boolean),L=await(null==g.isRTL?void 0:g.isRTL(N));let T=await g.getElementRects({reference:M,floating:N,strategy:I}),{x:z,y:A}=CN(T,i,L),t=i,y={},x=0;for(let D=0;D<u.length;D++){const{name:j,fn:c}=u[D],{x:s,y:e,data:l,reset:w}=await c({x:z,y:A,initialPlacement:i,placement:t,strategy:I,middlewareData:y,rects:T,platform:g,elements:{reference:M,floating:N}});z=null!=s?s:z,A=null!=e?e:A,y={...y,[j]:{...y[j],...l}},w&&x<=50&&(x++,"object"==typeof w&&(w.placement&&(t=w.placement),w.rects&&(T=!0===w.rects?await g.getElementRects({reference:M,floating:N,strategy:I}):w.rects),({x:z,y:A}=CN(T,t,L))),D=-1)}return{x:z,y:A,placement:t,strategy:I,middlewareData:y}})(M,N,{...I,platform:j})};function aD(M){return function(M){for(let N=M;N;N=oD(N))if(N instanceof Element&&"none"===getComputedStyle(N).display)return null;for(let N=oD(M);N;N=oD(N)){if(!(N instanceof Element))continue;const M=getComputedStyle(N);if("contents"!==M.display){if("static"!==M.position||"none"!==M.filter)return N;if("BODY"===N.tagName)return N}}return null}(M)}function oD(M){return M.assignedSlot?M.assignedSlot:M.parentNode instanceof ShadowRoot?M.parentNode.host:M.parentNode}const SD=u`
1758
1782
 
1759
1783
  :host {
1760
1784
  --arrow-color: hsl(240 4.8% 95.9%);
@@ -1793,7 +1817,7 @@ const gN=Symbol.for(""),uN=M=>{if((null==M?void 0:M.r)===gN)return null==M?void
1793
1817
  background: var(--arrow-color);
1794
1818
  z-index: -1;
1795
1819
  }
1796
- `;M.NilePopup=class extends xN{constructor(){super(...arguments),this.active=!1,this.placement="top",this.strategy="absolute",this.distance=0,this.skidding=0,this.arrow=!1,this.arrowPlacement="anchor",this.arrowPadding=10,this.flip=!1,this.flipFallbackPlacements="",this.flipFallbackStrategy="best-fit",this.flipPadding=0,this.shift=!1,this.shiftPadding=0,this.autoSizePadding=0}async connectedCallback(){super.connectedCallback(),await this.updateComplete,this.start()}disconnectedCallback(){this.stop()}async updated(M){super.updated(M),M.has("active")&&(this.active?this.start():this.stop()),M.has("anchor")&&this.handleAnchorChange(),this.active&&(await this.updateComplete,this.reposition())}async handleAnchorChange(){if(await this.stop(),this.anchor&&"string"==typeof this.anchor){const M=this.getRootNode();this.anchorEl=M.getElementById(this.anchor)}else this.anchor instanceof Element?this.anchorEl=this.anchor:this.anchorEl=this.querySelector('[slot="anchor"]');if(this.anchorEl instanceof HTMLSlotElement&&(this.anchorEl=this.anchorEl.assignedElements({flatten:!0})[0]),!this.anchorEl)throw new Error("Invalid anchor element: no anchor could be found using the anchor slot or the anchor attribute.");this.start()}start(){this.anchorEl&&(this.cleanup=function(M,N,D,i){void 0===i&&(i={});const{ancestorScroll:I=!0,ancestorResize:j=!0,elementResize:g=!0,animationFrame:u=!1}=i,L=I&&!u,T=L||j?[...XN(M)?xD(M):M.contextElement?xD(M.contextElement):[],...xD(N)]:[];T.forEach((M=>{L&&M.addEventListener("scroll",D,{passive:!0}),j&&M.addEventListener("resize",D)}));let z,A=null;g&&(A=new ResizeObserver((()=>{D()})),XN(M)&&!u&&A.observe(M),XN(M)||!M.contextElement||u||A.observe(M.contextElement),A.observe(N));let t=u?LD(M):null;return u&&function N(){const i=LD(M);!t||i.x===t.x&&i.y===t.y&&i.width===t.width&&i.height===t.height||D(),t=i,z=requestAnimationFrame(N)}(),D(),()=>{var M;T.forEach((M=>{L&&M.removeEventListener("scroll",D),j&&M.removeEventListener("resize",D)})),null==(M=A)||M.disconnect(),A=null,u&&cancelAnimationFrame(z)}}(this.anchorEl,this.popup,(()=>{this.reposition()})))}async stop(){return new Promise((M=>{this.cleanup?(this.cleanup(),this.cleanup=void 0,this.removeAttribute("data-current-placement"),this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height"),requestAnimationFrame((()=>M()))):M()}))}reposition(){if(!this.active||!this.anchorEl)return;const M=[VN({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?M.push(vN({apply:({rects:M})=>{const N="width"===this.sync||"both"===this.sync,D="height"===this.sync||"both"===this.sync;this.popup.style.width=N?`${M.reference.width}px`:"",this.popup.style.height=D?`${M.reference.height}px`:""}})):(this.popup.style.width="",this.popup.style.height=""),this.flip&&M.push(WN({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:"best-fit"===this.flipFallbackStrategy?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&M.push(function(M){return void 0===M&&(M={}),{name:"shift",options:M,async fn(N){const{x:D,y:i,placement:I}=N,{mainAxis:j=!0,crossAxis:g=!1,limiter:u={fn:M=>{let{x:N,y:D}=M;return{x:N,y:D}}},...L}=M,T={x:D,y:i},z=await QN(N,L),A=dN(nN(I)),t="x"===A?"y":"x";let y=T[A],x=T[t];if(j){const M="y"===A?"bottom":"right";y=YN(y+z["y"===A?"top":"left"],y,y-z[M])}if(g){const M="y"===t?"bottom":"right";x=YN(x+z["y"===t?"top":"left"],x,x-z[M])}const c=u.fn({...N,[A]:y,[t]:x});return{...c,data:{x:c.x-D,y:c.y-i}}}}}({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?M.push(vN({boundary:this.autoSizeBoundary,padding:this.autoSizePadding,apply:({availableWidth:M,availableHeight:N})=>{"vertical"===this.autoSize||"both"===this.autoSize?this.style.setProperty("--auto-size-available-height",`${N}px`):this.style.removeProperty("--auto-size-available-height"),"horizontal"===this.autoSize||"both"===this.autoSize?this.style.setProperty("--auto-size-available-width",`${M}px`):this.style.removeProperty("--auto-size-available-width")}})):(this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height")),this.arrow&&M.push((M=>({name:"arrow",options:M,async fn(N){const{element:D,padding:i=0}=M||{},{x:I,y:j,placement:g,rects:u,platform:L,elements:T}=N;if(null==D)return{};const z=rN(i),A={x:I,y:j},t=dN(g),y=ON(t),x=await L.getDimensions(D),c="y"===t,s=c?"top":"left",e=c?"bottom":"right",l=c?"clientHeight":"clientWidth",w=u.reference[y]+u.reference[t]-A[t]-u.floating[y],E=A[t]-u.reference[t],a=await(null==L.getOffsetParent?void 0:L.getOffsetParent(D));let S=a?a[l]:0;S&&await(null==L.isElement?void 0:L.isElement(a))||(S=T.floating[l]||u.floating[y]);const o=w/2-E/2,O=z[s],n=S-x[y]-z[e],d=S/2-x[y]/2+o,C=YN(O,d,n),r=null!=oN(g)&&d!=C&&u.reference[y]/2-(d<O?z[s]:z[e])-x[y]/2<0;return{[t]:A[t]-(r?d<O?O-d:n-d:0),data:{[t]:C,centerOffset:d-C}}}}))({element:this.arrowEl,padding:this.arrowPadding}));const N="absolute"===this.strategy?M=>wD.getOffsetParent(M,aD):wD.getOffsetParent;ED(this.anchorEl,this.popup,{placement:this.placement,middleware:M,strategy:this.strategy,platform:{...wD,getOffsetParent:N}}).then((({x:M,y:N,middlewareData:D,placement:i})=>{const I="rtl"===getComputedStyle(this).direction,j={top:"bottom",right:"left",bottom:"top",left:"right"}[i.split("-")[0]];if(this.setAttribute("data-current-placement",i),Object.assign(this.popup.style,{left:`${M}px`,top:`${N}px`}),this.arrow){const M=D.arrow.x,N=D.arrow.y;let i="",g="",u="",L="";if("start"===this.arrowPlacement){const D="number"==typeof M?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";i="number"==typeof N?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"",g=I?D:"",L=I?"":D}else if("end"===this.arrowPlacement){const D="number"==typeof M?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";g=I?"":D,L=I?D:"",u="number"==typeof N?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:""}else"center"===this.arrowPlacement?(L="number"==typeof M?"calc(50% - var(--arrow-size-diagonal))":"",i="number"==typeof N?"calc(50% - var(--arrow-size-diagonal))":""):(L="number"==typeof M?`${M}px`:"",i="number"==typeof N?`${N}px`:"");Object.assign(this.arrowEl.style,{top:i,right:g,bottom:u,left:L,[j]:"calc(var(--arrow-size-diagonal) * -1)"})}})),this.emit("reposition")}render(){return cM`
1820
+ `;M.NilePopup=class extends xN{constructor(){super(...arguments),this.active=!1,this.placement="top",this.strategy="absolute",this.distance=0,this.skidding=0,this.arrow=!1,this.arrowPlacement="anchor",this.arrowPadding=10,this.flip=!1,this.flipFallbackPlacements="",this.flipFallbackStrategy="best-fit",this.flipPadding=0,this.shift=!1,this.shiftPadding=0,this.autoSizePadding=0}async connectedCallback(){super.connectedCallback(),await this.updateComplete,this.start()}disconnectedCallback(){this.stop()}async updated(M){super.updated(M),M.has("active")&&(this.active?this.start():this.stop()),M.has("anchor")&&this.handleAnchorChange(),this.active&&(await this.updateComplete,this.reposition())}async handleAnchorChange(){if(await this.stop(),this.anchor&&"string"==typeof this.anchor){const M=this.getRootNode();this.anchorEl=M.getElementById(this.anchor)}else this.anchor instanceof Element?this.anchorEl=this.anchor:this.anchorEl=this.querySelector('[slot="anchor"]');if(this.anchorEl instanceof HTMLSlotElement&&(this.anchorEl=this.anchorEl.assignedElements({flatten:!0})[0]),!this.anchorEl)throw new Error("Invalid anchor element: no anchor could be found using the anchor slot or the anchor attribute.");this.start()}start(){this.anchorEl&&(this.cleanup=function(M,N,D,i){void 0===i&&(i={});const{ancestorScroll:I=!0,ancestorResize:j=!0,elementResize:g=!0,animationFrame:u=!1}=i,L=I&&!u,T=L||j?[...XN(M)?xD(M):M.contextElement?xD(M.contextElement):[],...xD(N)]:[];T.forEach((M=>{L&&M.addEventListener("scroll",D,{passive:!0}),j&&M.addEventListener("resize",D)}));let z,A=null;g&&(A=new ResizeObserver((()=>{D()})),XN(M)&&!u&&A.observe(M),XN(M)||!M.contextElement||u||A.observe(M.contextElement),A.observe(N));let t=u?LD(M):null;return u&&function N(){const i=LD(M);!t||i.x===t.x&&i.y===t.y&&i.width===t.width&&i.height===t.height||D(),t=i,z=requestAnimationFrame(N)}(),D(),()=>{var M;T.forEach((M=>{L&&M.removeEventListener("scroll",D),j&&M.removeEventListener("resize",D)})),null==(M=A)||M.disconnect(),A=null,u&&cancelAnimationFrame(z)}}(this.anchorEl,this.popup,(()=>{this.reposition()})))}async stop(){return new Promise((M=>{this.cleanup?(this.cleanup(),this.cleanup=void 0,this.removeAttribute("data-current-placement"),this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height"),requestAnimationFrame((()=>M()))):M()}))}reposition(){if(!this.active||!this.anchorEl)return;const M=[VN({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?M.push(vN({apply:({rects:M})=>{const N="width"===this.sync||"both"===this.sync,D="height"===this.sync||"both"===this.sync;this.popup.style.width=N?`${M.reference.width}px`:"",this.popup.style.height=D?`${M.reference.height}px`:""}})):(this.popup.style.width="",this.popup.style.height=""),this.flip&&M.push(WN({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:"best-fit"===this.flipFallbackStrategy?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&M.push(function(M){return void 0===M&&(M={}),{name:"shift",options:M,async fn(N){const{x:D,y:i,placement:I}=N,{mainAxis:j=!0,crossAxis:g=!1,limiter:u={fn:M=>{let{x:N,y:D}=M;return{x:N,y:D}}},...L}=M,T={x:D,y:i},z=await QN(N,L),A=dN(nN(I)),t="x"===A?"y":"x";let y=T[A],x=T[t];if(j){const M="y"===A?"bottom":"right";y=YN(y+z["y"===A?"top":"left"],y,y-z[M])}if(g){const M="y"===t?"bottom":"right";x=YN(x+z["y"===t?"top":"left"],x,x-z[M])}const c=u.fn({...N,[A]:y,[t]:x});return{...c,data:{x:c.x-D,y:c.y-i}}}}}({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?M.push(vN({boundary:this.autoSizeBoundary,padding:this.autoSizePadding,apply:({availableWidth:M,availableHeight:N})=>{"vertical"===this.autoSize||"both"===this.autoSize?this.style.setProperty("--auto-size-available-height",`${N}px`):this.style.removeProperty("--auto-size-available-height"),"horizontal"===this.autoSize||"both"===this.autoSize?this.style.setProperty("--auto-size-available-width",`${M}px`):this.style.removeProperty("--auto-size-available-width")}})):(this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height")),this.arrow&&M.push((M=>({name:"arrow",options:M,async fn(N){const{element:D,padding:i=0}=M||{},{x:I,y:j,placement:g,rects:u,platform:L,elements:T}=N;if(null==D)return{};const z=rN(i),A={x:I,y:j},t=dN(g),y=ON(t),x=await L.getDimensions(D),c="y"===t,s=c?"top":"left",e=c?"bottom":"right",l=c?"clientHeight":"clientWidth",w=u.reference[y]+u.reference[t]-A[t]-u.floating[y],E=A[t]-u.reference[t],a=await(null==L.getOffsetParent?void 0:L.getOffsetParent(D));let o=a?a[l]:0;o&&await(null==L.isElement?void 0:L.isElement(a))||(o=T.floating[l]||u.floating[y]);const S=w/2-E/2,O=z[s],n=o-x[y]-z[e],d=o/2-x[y]/2+S,C=YN(O,d,n),r=null!=SN(g)&&d!=C&&u.reference[y]/2-(d<O?z[s]:z[e])-x[y]/2<0;return{[t]:A[t]-(r?d<O?O-d:n-d:0),data:{[t]:C,centerOffset:d-C}}}}))({element:this.arrowEl,padding:this.arrowPadding}));const N="absolute"===this.strategy?M=>wD.getOffsetParent(M,aD):wD.getOffsetParent;ED(this.anchorEl,this.popup,{placement:this.placement,middleware:M,strategy:this.strategy,platform:{...wD,getOffsetParent:N}}).then((({x:M,y:N,middlewareData:D,placement:i})=>{const I="rtl"===getComputedStyle(this).direction,j={top:"bottom",right:"left",bottom:"top",left:"right"}[i.split("-")[0]];if(this.setAttribute("data-current-placement",i),Object.assign(this.popup.style,{left:`${M}px`,top:`${N}px`}),this.arrow){const M=D.arrow.x,N=D.arrow.y;let i="",g="",u="",L="";if("start"===this.arrowPlacement){const D="number"==typeof M?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";i="number"==typeof N?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"",g=I?D:"",L=I?"":D}else if("end"===this.arrowPlacement){const D="number"==typeof M?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";g=I?"":D,L=I?D:"",u="number"==typeof N?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:""}else"center"===this.arrowPlacement?(L="number"==typeof M?"calc(50% - var(--arrow-size-diagonal))":"",i="number"==typeof N?"calc(50% - var(--arrow-size-diagonal))":""):(L="number"==typeof M?`${M}px`:"",i="number"==typeof N?`${N}px`:"");Object.assign(this.arrowEl.style,{top:i,right:g,bottom:u,left:L,[j]:"calc(var(--arrow-size-diagonal) * -1)"})}})),this.emit("reposition")}render(){return cM`
1797
1821
  <slot name="anchor" @slotchange=${this.handleAnchorChange}></slot>
1798
1822
 
1799
1823
  <div
@@ -1803,7 +1827,7 @@ const gN=Symbol.for(""),uN=M=>{if((null==M?void 0:M.r)===gN)return null==M?void
1803
1827
  <slot></slot>
1804
1828
  ${this.arrow?cM`<div part="arrow" class="popup__arrow" role="presentation"></div>`:""}
1805
1829
  </div>
1806
- `}},M.NilePopup.styles=oD,N([vM(".popup")],M.NilePopup.prototype,"popup",void 0),N([vM(".popup__arrow")],M.NilePopup.prototype,"arrowEl",void 0),N([WM()],M.NilePopup.prototype,"anchor",void 0),N([WM({type:Boolean,reflect:!0})],M.NilePopup.prototype,"active",void 0),N([WM({reflect:!0})],M.NilePopup.prototype,"placement",void 0),N([WM({reflect:!0})],M.NilePopup.prototype,"strategy",void 0),N([WM({type:Number})],M.NilePopup.prototype,"distance",void 0),N([WM({type:Number})],M.NilePopup.prototype,"skidding",void 0),N([WM({type:Boolean})],M.NilePopup.prototype,"arrow",void 0),N([WM({attribute:"arrow-placement"})],M.NilePopup.prototype,"arrowPlacement",void 0),N([WM({attribute:"arrow-padding",type:Number})],M.NilePopup.prototype,"arrowPadding",void 0),N([WM({type:Boolean})],M.NilePopup.prototype,"flip",void 0),N([WM({attribute:"flip-fallback-placements",converter:{fromAttribute:M=>M.split(" ").map((M=>M.trim())).filter((M=>""!==M)),toAttribute:M=>M.join(" ")}})],M.NilePopup.prototype,"flipFallbackPlacements",void 0),N([WM({attribute:"flip-fallback-strategy"})],M.NilePopup.prototype,"flipFallbackStrategy",void 0),N([WM({type:Object})],M.NilePopup.prototype,"flipBoundary",void 0),N([WM({attribute:"flip-padding",type:Number})],M.NilePopup.prototype,"flipPadding",void 0),N([WM({type:Boolean})],M.NilePopup.prototype,"shift",void 0),N([WM({type:Object})],M.NilePopup.prototype,"shiftBoundary",void 0),N([WM({attribute:"shift-padding",type:Number})],M.NilePopup.prototype,"shiftPadding",void 0),N([WM({attribute:"auto-size"})],M.NilePopup.prototype,"autoSize",void 0),N([WM()],M.NilePopup.prototype,"sync",void 0),N([WM({type:Object})],M.NilePopup.prototype,"autoSizeBoundary",void 0),N([WM({attribute:"auto-size-padding",type:Number})],M.NilePopup.prototype,"autoSizePadding",void 0),M.NilePopup=N([mM("nile-popup")],M.NilePopup);const OD=u`
1830
+ `}},M.NilePopup.styles=SD,N([vM(".popup")],M.NilePopup.prototype,"popup",void 0),N([vM(".popup__arrow")],M.NilePopup.prototype,"arrowEl",void 0),N([WM()],M.NilePopup.prototype,"anchor",void 0),N([WM({type:Boolean,reflect:!0})],M.NilePopup.prototype,"active",void 0),N([WM({reflect:!0})],M.NilePopup.prototype,"placement",void 0),N([WM({reflect:!0})],M.NilePopup.prototype,"strategy",void 0),N([WM({type:Number})],M.NilePopup.prototype,"distance",void 0),N([WM({type:Number})],M.NilePopup.prototype,"skidding",void 0),N([WM({type:Boolean})],M.NilePopup.prototype,"arrow",void 0),N([WM({attribute:"arrow-placement"})],M.NilePopup.prototype,"arrowPlacement",void 0),N([WM({attribute:"arrow-padding",type:Number})],M.NilePopup.prototype,"arrowPadding",void 0),N([WM({type:Boolean})],M.NilePopup.prototype,"flip",void 0),N([WM({attribute:"flip-fallback-placements",converter:{fromAttribute:M=>M.split(" ").map((M=>M.trim())).filter((M=>""!==M)),toAttribute:M=>M.join(" ")}})],M.NilePopup.prototype,"flipFallbackPlacements",void 0),N([WM({attribute:"flip-fallback-strategy"})],M.NilePopup.prototype,"flipFallbackStrategy",void 0),N([WM({type:Object})],M.NilePopup.prototype,"flipBoundary",void 0),N([WM({attribute:"flip-padding",type:Number})],M.NilePopup.prototype,"flipPadding",void 0),N([WM({type:Boolean})],M.NilePopup.prototype,"shift",void 0),N([WM({type:Object})],M.NilePopup.prototype,"shiftBoundary",void 0),N([WM({attribute:"shift-padding",type:Number})],M.NilePopup.prototype,"shiftPadding",void 0),N([WM({attribute:"auto-size"})],M.NilePopup.prototype,"autoSize",void 0),N([WM()],M.NilePopup.prototype,"sync",void 0),N([WM({type:Object})],M.NilePopup.prototype,"autoSizeBoundary",void 0),N([WM({attribute:"auto-size-padding",type:Number})],M.NilePopup.prototype,"autoSizePadding",void 0),M.NilePopup=N([mM("nile-popup")],M.NilePopup);const OD=u`
1807
1831
 
1808
1832
  :host {
1809
1833
  --max-width: 20rem;
@@ -1900,6 +1924,13 @@ const gN=Symbol.for(""),uN=M=>{if((null==M?void 0:M.r)===gN)return null==M?void
1900
1924
  .nile-slide-toggle__label {
1901
1925
  margin-left: 2px;
1902
1926
  font-size: 14px;
1927
+ color: var(--nile-colors-dark-900);
1928
+ font-family: Colfax-regular;
1929
+ font-size: 14px;
1930
+ font-style: normal;
1931
+ font-weight: 400;
1932
+ line-height: 14px;
1933
+ letter-spacing: 0.2px;
1903
1934
  }
1904
1935
 
1905
1936
  .nile-slide-toggle__switch input {
@@ -1951,7 +1982,7 @@ const gN=Symbol.for(""),uN=M=>{if((null==M?void 0:M.r)===gN)return null==M?void
1951
1982
  .nile-slide-toggle__slider.round:before {
1952
1983
  border-radius: 50%;
1953
1984
  }
1954
- `;M.NileSlideToggle=class extends ZM{constructor(){super(...arguments),this.label="",this.isChecked=!1}toggleValue(){this.isChecked=!this.isChecked,this.dispatchEvent(new CustomEvent("change",{detail:{checked:this.isChecked}}))}render(){return cM`
1985
+ `;M.NileSlideToggle=class extends ZM{constructor(){super(...arguments),this.label="",this.isChecked=!1,this.helpText="",this.errorMessage=""}toggleValue(){this.isChecked=!this.isChecked,this.dispatchEvent(new CustomEvent("change",{detail:{checked:this.isChecked}}))}render(){const M=!!this.helpText,N=!!this.errorMessage;return cM`
1955
1986
  <div class="nile-slide-toggle">
1956
1987
  <label class="nile-slide-toggle__switch">
1957
1988
  <input
@@ -1965,7 +1996,16 @@ const gN=Symbol.for(""),uN=M=>{if((null==M?void 0:M.r)===gN)return null==M?void
1965
1996
  <slot>${this.label}</slot>
1966
1997
  </span>
1967
1998
  </div>
1968
- `}},M.NileSlideToggle.styles=bD,N([WM({type:String})],M.NileSlideToggle.prototype,"label",void 0),N([WM({type:Boolean,reflect:!0})],M.NileSlideToggle.prototype,"isChecked",void 0),M.NileSlideToggle=N([mM("nile-slide-toggle")],M.NileSlideToggle);var mD=u`
1999
+ ${M?cM`
2000
+ <nile-form-help-text>${this.helpText}</nile-form-help-text>
2001
+ `:""}
2002
+
2003
+ ${N?cM`
2004
+ <nile-form-error-message
2005
+ >${this.errorMessage}</nile-form-error-message
2006
+ >
2007
+ `:""}
2008
+ `}},M.NileSlideToggle.styles=bD,N([WM({type:String})],M.NileSlideToggle.prototype,"label",void 0),N([WM({type:Boolean,reflect:!0})],M.NileSlideToggle.prototype,"isChecked",void 0),N([WM({attribute:"help-text"})],M.NileSlideToggle.prototype,"helpText",void 0),N([WM({attribute:"error-message"})],M.NileSlideToggle.prototype,"errorMessage",void 0),M.NileSlideToggle=N([mM("nile-slide-toggle")],M.NileSlideToggle);var mD=u`
1969
2009
  .nile-loader {
1970
2010
  border-radius: 50%;
1971
2011
  display: inline-block;
@@ -2126,16 +2166,20 @@ const gN=Symbol.for(""),uN=M=>{if((null==M?void 0:M.r)===gN)return null==M?void
2126
2166
  /* Label */
2127
2167
  .form-control--has-label .form-control__label {
2128
2168
  display: inline-block;
2129
- color: #333333;
2130
- margin-bottom: 0.75rem;
2169
+ margin-bottom: 12px;
2170
+ color: var(--nile-colors-dark-900);
2171
+ font-family: Colfax-regular;
2172
+ font-size: 14px;
2173
+ font-style: normal;
2174
+ font-weight: 400;
2175
+ line-height: 14px;
2176
+ letter-spacing: 0.2px;
2131
2177
  }
2132
2178
 
2133
-
2134
2179
  .form-control--has-label.form-control--medium .form-control__label {
2135
- font-size: 1rem;
2180
+ font-size: 14px;
2136
2181
  }
2137
2182
 
2138
-
2139
2183
  :host([required]) .form-control--has-label .form-control__label::after {
2140
2184
  content: '*';
2141
2185
  margin-inline-start: -2px;
@@ -2153,7 +2197,6 @@ const gN=Symbol.for(""),uN=M=>{if((null==M?void 0:M.r)===gN)return null==M?void
2153
2197
  font-size: 0.875rem;
2154
2198
  }
2155
2199
 
2156
-
2157
2200
  .form-control--has-help-text.form-control--radio-group
2158
2201
  .form-control__help-text {
2159
2202
  margin-top: 0.25rem;
@@ -2217,6 +2260,11 @@ const gN=Symbol.for(""),uN=M=>{if((null==M?void 0:M.r)===gN)return null==M?void
2217
2260
  padding: 0;
2218
2261
  margin: 0;
2219
2262
  -webkit-appearance: none;
2263
+ font-family: var(--nile-font-family-serif);
2264
+ }
2265
+
2266
+ .select__display-input::placeholder {
2267
+ font-family: var(--nile-font-family-serif);
2220
2268
  }
2221
2269
 
2222
2270
  .select:not(.select--disabled):hover .select__display-input {
@@ -2374,7 +2422,7 @@ const gN=Symbol.for(""),uN=M=>{if((null==M?void 0:M.r)===gN)return null==M?void
2374
2422
  align-items: center;
2375
2423
  justify-content: center;
2376
2424
  font-size: inherit;
2377
- color: #005EA6;
2425
+ color: #005ea6;
2378
2426
  border: none;
2379
2427
  background: none;
2380
2428
  padding: 0;
@@ -2423,13 +2471,11 @@ const gN=Symbol.for(""),uN=M=>{if((null==M?void 0:M.r)===gN)return null==M?void
2423
2471
  max-height: var(--auto-size-available-height);
2424
2472
  }
2425
2473
 
2426
- .select__options{
2474
+ .select__options {
2427
2475
  padding-top: 10px;
2428
2476
  }
2429
2477
 
2430
- .select__options{
2431
- padding: 5px;
2432
- margin: 4px;
2478
+ .select__options {
2433
2479
  font-size: 14px;
2434
2480
  color: rgb(133, 129, 129);
2435
2481
  }
@@ -2479,10 +2525,12 @@ const gN=Symbol.for(""),uN=M=>{if((null==M?void 0:M.r)===gN)return null==M?void
2479
2525
  .tag {
2480
2526
  display: flex;
2481
2527
  align-items: center;
2482
- border: solid 1px;
2528
+ border: solid 2px;
2483
2529
  line-height: 1;
2484
2530
  white-space: nowrap;
2485
2531
  user-select: none;
2532
+ border-radius: 4px;
2533
+ gap: 6px;
2486
2534
  }
2487
2535
 
2488
2536
  .tag__remove::part(base) {
@@ -2495,9 +2543,14 @@ const gN=Symbol.for(""),uN=M=>{if((null==M?void 0:M.r)===gN)return null==M?void
2495
2543
  */
2496
2544
 
2497
2545
  .tag--primary {
2498
- background-color: hsl(204 100% 97.1%);
2499
- border-color: hsl(200.6 94.4% 86.1%);
2500
- color: hsl(201 90% 27.5%);
2546
+ background: #005EA6;
2547
+ border-color: #005EA6;
2548
+ border: 2px solid #005EA6;
2549
+ color: #FFF;
2550
+ }
2551
+
2552
+ .tag--primary:hover {
2553
+ border: 2px solid rgba(0, 94, 166, 0.50);
2501
2554
  }
2502
2555
 
2503
2556
  .tag--primary:active > nile-icon-button {
@@ -2505,71 +2558,82 @@ const gN=Symbol.for(""),uN=M=>{if((null==M?void 0:M.r)===gN)return null==M?void
2505
2558
  }
2506
2559
 
2507
2560
  .tag--success {
2508
- background-color: hsl(138.5 76.5% 96.7%);
2509
- border-color: hsl(141 78.9% 85.1%);
2510
- color: hsl(142.8 64.2% 24.1%);
2561
+ background: #A5F3E1;
2562
+ border: 2px solid #A5F3E1;
2563
+ color: #000;
2564
+ }
2565
+
2566
+ .tag--success:hover {
2567
+ border: 2px solid #43E5C0;
2511
2568
  }
2512
2569
 
2513
2570
  .tag--success:active > nile-icon-button {
2514
2571
  color: hsl(142.1 76.2% 36.3%);
2515
2572
  }
2516
2573
 
2517
- .tag--neutral {
2518
- background-color: #e5e9eb;
2519
- border-color: #e5e9eb;
2520
- color: hsl(240 3.7% 15.9%);
2574
+ .tag--normal {
2575
+ background: #E5E9EB;
2576
+ border: 2px solid #E5E9EB;
2577
+ color: #000;
2521
2578
  }
2522
2579
 
2523
- .tag--neutral:active > nile-icon-button {
2580
+ .tag--normal:hover {
2581
+ border: 2px solid #C7CED4;
2582
+ }
2583
+
2584
+
2585
+ .tag--normal:active > nile-icon-button {
2524
2586
  color: hsl(240 5.2% 33.9%);
2525
2587
  }
2526
2588
 
2527
2589
  .tag--warning {
2528
- background-color: hsl(48 100% 96.1%);
2529
- border-color: hsl(48 96.6% 76.7%);
2530
- color: hsl(26 90.5% 37.1%);
2590
+ background: #F3E0A5;
2591
+ border: 2px solid #F3E0A5;
2592
+ color: #000;
2593
+ }
2594
+
2595
+ .tag--warning:hover {
2596
+ border: 2px solid #E5BF43;
2531
2597
  }
2532
2598
 
2533
2599
  .tag--warning:active > nile-icon-button {
2534
2600
  color: hsl(32.1 94.6% 43.7%);
2535
2601
  }
2536
2602
 
2537
- .tag--danger {
2538
- background-color: hsl(0 85.7% 97.3%);
2539
- border-color: hsl(0 96.3% 89.4%);
2540
- color: hsl(0 70% 35.3%);
2603
+
2604
+ .tag--error {
2605
+ background: #F3A5AA;
2606
+ border: 2px solid #F3A5AA;
2607
+ color: #000;
2608
+ }
2609
+
2610
+ .tag--error:hover {
2611
+ border: 2px solid #E5434D;
2541
2612
  }
2542
2613
 
2543
- .tag--danger:active > nile-icon-button {
2614
+ .tag--error:active > nile-icon-button {
2544
2615
  color: hsl(0 72.2% 50.6%);
2545
2616
  }
2546
2617
 
2547
- /*
2548
- * Size modifiers
2549
- */
2618
+ .tag--info {
2619
+ background: #A5D3F3;
2620
+ border: 2px solid #A5D3F3;
2621
+ color: #000000;
2622
+ }
2550
2623
 
2551
- .tag--small {
2552
- font-size: 0.75rem;
2553
- height: calc(1.875rem * 0.8);
2554
- line-height: calc(1.875rem - 1px * 2);
2555
- border-radius: 0.25rem;
2556
- padding: 0 0.5rem;
2624
+ .tag--info:hover {
2625
+ border: 2px solid #42A3E5;
2557
2626
  }
2558
2627
 
2559
- .tag--medium {
2560
- font-size: 0.875rem;
2561
- height: calc(2.5rem * 0.8);
2562
- line-height: calc(2.5rem - 1px * 2);
2563
- border-radius: 0.25rem;
2564
- padding: 0 0.75rem;
2628
+ .tag--info:active > nile-icon-button {
2629
+ color: hsl(0 72.2% 50.6%);
2565
2630
  }
2566
2631
 
2567
- .tag--large {
2568
- font-size: 1rem;
2569
- height: calc(3.125rem * 0.8);
2570
- line-height: calc(3.125rem - 1px * 2);
2571
- border-radius: 0.25rem;
2572
- padding: 0 1rem;
2632
+
2633
+ .tag--medium {
2634
+ font-size: 14px;
2635
+ height: 26px;
2636
+ padding: 0 0.75rem;
2573
2637
  }
2574
2638
 
2575
2639
  .tag__remove {
@@ -2583,6 +2647,15 @@ const gN=Symbol.for(""),uN=M=>{if((null==M?void 0:M.r)===gN)return null==M?void
2583
2647
  .tag--pill {
2584
2648
  border-radius: 9999px;
2585
2649
  }
2650
+
2651
+ .tag__prefix {
2652
+ padding: 3px 6px;
2653
+ }
2654
+
2655
+ .tag__content {
2656
+ font-size: 14px;
2657
+ }
2658
+
2586
2659
  `,GD=u`
2587
2660
 
2588
2661
  :host {
@@ -2655,20 +2728,24 @@ const gN=Symbol.for(""),uN=M=>{if((null==M?void 0:M.r)===gN)return null==M?void
2655
2728
  library=${AN(this.library)}
2656
2729
  src=${AN(this.src)}
2657
2730
  aria-hidden="true"
2731
+ size="14"
2658
2732
  ></nile-icon>
2659
2733
  </${N}>
2660
- `}},M.NileIconButton.styles=GD,N([vM(".icon-button")],M.NileIconButton.prototype,"button",void 0),N([VM()],M.NileIconButton.prototype,"hasFocus",void 0),N([WM()],M.NileIconButton.prototype,"name",void 0),N([WM()],M.NileIconButton.prototype,"library",void 0),N([WM()],M.NileIconButton.prototype,"src",void 0),N([WM()],M.NileIconButton.prototype,"href",void 0),N([WM()],M.NileIconButton.prototype,"target",void 0),N([WM()],M.NileIconButton.prototype,"download",void 0),N([WM()],M.NileIconButton.prototype,"label",void 0),N([WM({type:Boolean,reflect:!0})],M.NileIconButton.prototype,"disabled",void 0),M.NileIconButton=N([mM("nile-icon-button")],M.NileIconButton),M.NileTag=class extends xN{constructor(){super(...arguments),this.variant="neutral",this.size="medium",this.pill=!1,this.removable=!1}handleRemoveClick(){this.emit("nile-remove")}render(){return cM`
2734
+ `}},M.NileIconButton.styles=GD,N([vM(".icon-button")],M.NileIconButton.prototype,"button",void 0),N([VM()],M.NileIconButton.prototype,"hasFocus",void 0),N([WM()],M.NileIconButton.prototype,"name",void 0),N([WM()],M.NileIconButton.prototype,"library",void 0),N([WM()],M.NileIconButton.prototype,"src",void 0),N([WM()],M.NileIconButton.prototype,"href",void 0),N([WM()],M.NileIconButton.prototype,"target",void 0),N([WM()],M.NileIconButton.prototype,"download",void 0),N([WM()],M.NileIconButton.prototype,"label",void 0),N([WM({type:Boolean,reflect:!0})],M.NileIconButton.prototype,"disabled",void 0),M.NileIconButton=N([mM("nile-icon-button")],M.NileIconButton),M.NileTag=class extends xN{constructor(){super(...arguments),this.variant="normal",this.size="medium",this.pill=!1,this.removable=!1}handleRemoveClick(){this.emit("nile-remove")}render(){return cM`
2661
2735
  <span
2662
2736
  part="base"
2663
- class=${XM({tag:!0,"tag--primary":"primary"===this.variant,"tag--success":"success"===this.variant,"tag--neutral":"neutral"===this.variant,"tag--warning":"warning"===this.variant,"tag--danger":"danger"===this.variant,"tag--text":"text"===this.variant,"tag--small":"small"===this.size,"tag--medium":"medium"===this.size,"tag--large":"large"===this.size,"tag--pill":this.pill,"tag--removable":this.removable})}
2737
+ class=${XM({tag:!0,"tag--primary":"primary"===this.variant,"tag--success":"success"===this.variant,"tag--normal":"normal"===this.variant,"tag--warning":"warning"===this.variant,"tag--error":"error"===this.variant,"tag--info":"info"===this.variant,"tag--small":"small"===this.size,"tag--medium":"medium"===this.size,"tag--large":"large"===this.size,"tag--pill":this.pill,"tag--removable":this.removable})}
2664
2738
  >
2665
- <slot part="content" class="tag__content"></slot>
2739
+
2740
+ <slot name="prefix" part="prefix" class="tag__prefix"></slot>
2741
+
2742
+ <slot part="content" class="tag__content"></slot>
2666
2743
 
2667
2744
  ${this.removable?cM`
2668
2745
  <nile-icon-button
2669
2746
  part="remove-button"
2670
2747
  exportparts="base:remove-button__base"
2671
- name="error"
2748
+ name="close"
2672
2749
  library="system"
2673
2750
  label="remove"
2674
2751
  class="tag__remove"
@@ -2677,16 +2754,16 @@ const gN=Symbol.for(""),uN=M=>{if((null==M?void 0:M.r)===gN)return null==M?void
2677
2754
  ></nile-icon-button>
2678
2755
  `:""}
2679
2756
  </span>
2680
- `}},M.NileTag.styles=vD,N([WM({reflect:!0})],M.NileTag.prototype,"variant",void 0),N([WM({reflect:!0})],M.NileTag.prototype,"size",void 0),N([WM({type:Boolean,reflect:!0})],M.NileTag.prototype,"pill",void 0),N([WM({type:Boolean})],M.NileTag.prototype,"removable",void 0),M.NileTag=N([mM("nile-tag")],M.NileTag),M.NileSelect=class extends xN{constructor(){super(...arguments),this.formControlController=new iN(this,{assumeInteractionOn:["nile-blur","nile-input"]}),this.hasSlotController=new jN(this,"help-text","label"),this.typeToSelectString="",this.hasFocus=!1,this.displayLabel="",this.selectedOptions=[],this.name="",this.value="",this.defaultValue="",this.size="medium",this.placeholder="",this.searchValue="",this.searchEnabled=!1,this.multiple=!1,this.maxOptionsVisible=3,this.disabled=!1,this.clearable=!1,this.open=!1,this.hoist=!1,this.filled=!1,this.pill=!1,this.label="",this.placement="bottom",this.helpText="",this.form="",this.required=!1,this.showSelected=!1,this.noResultsMessage="No results found"}get validity(){return this.valueInput.validity}get validationMessage(){return this.valueInput.validationMessage}connectedCallback(){super.connectedCallback(),this.handleDocumentFocusIn=this.handleDocumentFocusIn.bind(this),this.handleDocumentKeyDown=this.handleDocumentKeyDown.bind(this),this.handleDocumentMouseDown=this.handleDocumentMouseDown.bind(this),this.open=!1}addOpenListeners(){document.addEventListener("focusin",this.handleDocumentFocusIn),document.addEventListener("keydown",this.handleDocumentKeyDown),document.addEventListener("mousedown",this.handleDocumentMouseDown)}removeOpenListeners(){document.removeEventListener("focusin",this.handleDocumentFocusIn),document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("mousedown",this.handleDocumentMouseDown)}handleFocus(){this.hasFocus=!0,this.displayInput.setSelectionRange(0,0),this.emit("nile-focus",{value:this.value,name:this.name})}handleBlur(){this.hasFocus=!1,this.emit("nile-blur",{value:this.value,name:this.name})}handleDocumentFocusIn(M){const N=M.composedPath();this&&!N.includes(this)&&this.hide()}handleFooterClick(M){M.stopPropagation(),M.preventDefault()}toggleShowSelected(M){if(M.stopPropagation(),M.preventDefault(),0===this.selectedOptions?.length)return;this.showSelected=!this.showSelected;this.getAllOptions().forEach((M=>{M.selected||(M.hidden=this.showSelected)})),this.requestUpdate()}unSlectAll(){this.showSelected=!1;this.getAllOptions().forEach((M=>{M.selected=!1,M.hidden=!1})),this.value="",this.selectionChanged(),this.emit("nile-change",{value:this.value,name:this.name})}handleDocumentKeyDown(M){const N=M.target,D=null!==N.closest(".select__clear"),i=null!==N.closest("nile-icon-button");if(!D&&!i){if("Escape"===M.key&&this.open&&(M.preventDefault(),M.stopPropagation(),this.hide(),this.displayInput.focus({preventScroll:!0})),"Enter"===M.key||" "===M.key&&""===this.typeToSelectString)return M.preventDefault(),M.stopImmediatePropagation(),this.open?void(this.currentOption&&!this.currentOption.disabled&&(this.multiple?this.toggleOptionSelection(this.currentOption):this.setSelectedOptions(this.currentOption),this.updateComplete.then((()=>{this.emit("nile-input",{value:this.value,name:this.name}),this.emit("nile-change",{value:this.value,name:this.name})})),this.multiple||(this.hide(),this.displayInput.focus({preventScroll:!0})))):void this.show();if(["ArrowUp","ArrowDown","Home","End"].includes(M.key)){const N=this.getAllOptions(),D=N.indexOf(this.currentOption);let i=Math.max(0,D);if(M.preventDefault(),!this.open&&(this.show(),this.currentOption))return;"ArrowDown"===M.key?(i=D+1,i>N.length-1&&(i=0)):"ArrowUp"===M.key?(i=D-1,i<0&&(i=N.length-1)):"Home"===M.key?i=0:"End"===M.key&&(i=N.length-1),this.setCurrentOption(N[i])}if(1===M.key.length||"Backspace"===M.key){const N=this.getAllOptions();if(M.metaKey||M.ctrlKey||M.altKey)return;if(!this.open){if("Backspace"===M.key)return;this.show()}M.stopPropagation(),M.preventDefault(),clearTimeout(this.typeToSelectTimeout),this.typeToSelectTimeout=window.setTimeout((()=>this.typeToSelectString=""),1e3),"Backspace"===M.key?this.typeToSelectString=this.typeToSelectString.slice(0,-1):this.typeToSelectString+=M.key.toLowerCase();for(const M of N){if(M.getTextLabel().toLowerCase().startsWith(this.typeToSelectString)){this.setCurrentOption(M);break}}}}}handleDocumentMouseDown(M){const N=M.composedPath();this&&!N.includes(this)&&this.hide()}handleLabelClick(){this.displayInput.focus()}handleComboboxMouseDown(M){const N=M.composedPath().some((M=>M instanceof Element&&"nile-icon-button"===M.tagName.toLowerCase()));this.disabled||N||(M.preventDefault(),this.displayInput.focus({preventScroll:!0}),this.open=!this.open)}handleComboboxKeyDown(M){M.stopPropagation(),this.handleDocumentKeyDown(M)}handleClearClick(M){M.stopPropagation(),""!==this.value&&(this.setSelectedOptions([]),this.displayInput.focus({preventScroll:!0}),this.updateComplete.then((()=>{this.emit("nile-clear",{value:this.value,name:this.name}),this.emit("nile-input",{value:this.value,name:this.name}),this.emit("nile-change",{value:this.value,name:this.name})})))}handleClearMouseDown(M){M.stopPropagation(),M.preventDefault()}handleOptionClick(M){const N=M.target.closest("nile-option"),D=this.value;N&&!N.disabled&&(this.multiple?this.toggleOptionSelection(N):this.setSelectedOptions(N),this.updateComplete.then((()=>this.displayInput.focus({preventScroll:!0}))),this.value!==D&&this.updateComplete.then((()=>{this.emit("nile-input",{value:this.value,name:this.name}),this.emit("nile-change",{value:this.value,name:this.name})})),this.multiple||(this.hide(),this.displayInput.focus({preventScroll:!0})))}handleDefaultSlotChange(){const M=this.getAllOptions(),N=Array.isArray(this.value)?this.value:[this.value],D=[];customElements.get("nile-option")?(M.forEach((M=>D.push(M.value))),this.setSelectedOptions(M.filter((M=>N.includes(M.value))))):customElements.whenDefined("nile-option").then((()=>this.handleDefaultSlotChange()))}handleTagRemove(M,N){M.stopPropagation(),this.disabled||(this.toggleOptionSelection(N,!1),this.updateComplete.then((()=>{this.emit("nile-input",{value:this.value,name:this.name}),this.emit("nile-change",{value:this.value,name:this.name})})))}getAllOptions(){return[...this.querySelectorAll("nile-option")]}getFirstOption(){return this.querySelector("nile-option")}setCurrentOption(M){this.getAllOptions().forEach((M=>{M.current=!1,M.tabIndex=-1})),M&&(this.currentOption=M,M.current=!0,M.tabIndex=0,M.focus())}setSelectedOptions(M){const N=this.getAllOptions(),D=Array.isArray(M)?M:[M];N.forEach((M=>M.selected=!1)),D.length&&D.forEach((M=>M.selected=!0)),this.selectionChanged()}toggleOptionSelection(M,N){M.selected=!0===N||!1===N?N:!M.selected,this.selectionChanged()}selectionChanged(){this.selectedOptions=this.getAllOptions().filter((M=>M.selected)),this.multiple?(this.value=this.selectedOptions.map((M=>M.value)),this.placeholder&&0===this.value.length?this.displayLabel="":this.displayLabel=this.selectedOptions.length+" selected"):(this.value=this.selectedOptions[0]?.value??"",this.displayLabel=this.selectedOptions[0]?.getTextLabel()??""),this.updateComplete.then((()=>{this.formControlController.updateValidity()}))}handleSearchFocus(){document.removeEventListener("keydown",this.handleDocumentKeyDown)}handleSearchBlur(){document.addEventListener("keydown",this.handleDocumentKeyDown)}handleSearchChange(M){this.searchValue=M.detail.value,0===this.filterOptions(this.searchValue).length?this.showNoResults=!0:this.showNoResults=!1}filterOptions(M){const N=this.getAllOptions(),D=M.toLowerCase();let i=[];return N.forEach((M=>{const N=M.getTextLabel().toLowerCase(),I=(M.value||"").toLowerCase();N.startsWith(D)||I.startsWith(D)?(M.hidden=!1,i.push(M)):M.hidden=!0})),i}handleInvalid(M){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(M)}handleDisabledChange(){this.disabled&&(this.open=!1,this.handleOpenChange())}handleValueChange(){const M=this.getAllOptions(),N=Array.isArray(this.value)?this.value:[this.value];this.setSelectedOptions(M.filter((M=>N.includes(M.value))))}async handleOpenChange(){if(this.open&&!this.disabled){this.setCurrentOption(this.selectedOptions[0]||this.getFirstOption()),this.emit("nile-show",{value:this.value,name:this.name}),this.addOpenListeners(),await rD(this),this.listbox.hidden=!1,this.popup.active=!0,requestAnimationFrame((()=>{this.setCurrentOption(this.currentOption)}));const{keyframes:M,options:N}=YD(this,"select.show",{dir:"ltr"});await nD(this.popup.popup,M,N),this.currentOption&&BD(this.currentOption,this.listbox,"vertical","auto"),this.emit("nile-after-show",{value:this.value,name:this.name})}else{this.emit("nile-hide",{value:this.value,name:this.name}),this.removeOpenListeners(),await rD(this);const{keyframes:M,options:N}=YD(this,"select.hide",{dir:"ltr"});await nD(this.popup.popup,M,N),this.listbox.hidden=!0,this.popup.active=!1,this.emit("nile-after-hide",{value:this.value,name:this.name})}}async show(){if(!this.open&&!this.disabled)return this.open=!0,ZD(this,"nile-after-show");this.open=!1}async hide(){if(this.open&&!this.disabled)return this.open=!1,ZD(this,"nile-after-hide");this.open=!1}checkValidity(){return this.valueInput.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.valueInput.reportValidity()}setCustomValidity(M){this.valueInput.setCustomValidity(M),this.formControlController.updateValidity()}focus(M){this.displayInput.focus(M)}blur(){this.displayInput.blur()}render(){const M=this.hasSlotController.test("label"),N=this.hasSlotController.test("help-text"),D=!!this.label||!!M,i=!!this.helpText||!!N,I=this.clearable&&!this.disabled&&this.value.length>0,j=this.placeholder&&0===this.value.length,g=this.searchValue||"";return cM`
2757
+ `}},M.NileTag.styles=vD,N([WM({reflect:!0})],M.NileTag.prototype,"variant",void 0),N([WM({reflect:!0})],M.NileTag.prototype,"size",void 0),N([WM({type:Boolean,reflect:!0})],M.NileTag.prototype,"pill",void 0),N([WM({type:Boolean})],M.NileTag.prototype,"removable",void 0),M.NileTag=N([mM("nile-tag")],M.NileTag),M.NileSelect=class extends xN{constructor(){super(...arguments),this.formControlController=new iN(this,{assumeInteractionOn:["nile-blur","nile-input"]}),this.hasSlotController=new jN(this,"help-text","label"),this.typeToSelectString="",this.hasFocus=!1,this.displayLabel="",this.selectedOptions=[],this.name="",this.value="",this.defaultValue="",this.size="medium",this.placeholder="",this.searchValue="",this.searchEnabled=!1,this.multiple=!1,this.helpText="",this.errorMessage="",this.maxOptionsVisible=3,this.disabled=!1,this.clearable=!1,this.open=!1,this.hoist=!1,this.filled=!1,this.pill=!1,this.label="",this.placement="bottom",this.form="",this.required=!1,this.showSelected=!1,this.noResultsMessage="No results found"}get validity(){return this.valueInput.validity}get validationMessage(){return this.valueInput.validationMessage}connectedCallback(){super.connectedCallback(),this.handleDocumentFocusIn=this.handleDocumentFocusIn.bind(this),this.handleDocumentKeyDown=this.handleDocumentKeyDown.bind(this),this.handleDocumentMouseDown=this.handleDocumentMouseDown.bind(this),this.open=!1}addOpenListeners(){document.addEventListener("focusin",this.handleDocumentFocusIn),document.addEventListener("keydown",this.handleDocumentKeyDown),document.addEventListener("mousedown",this.handleDocumentMouseDown)}removeOpenListeners(){document.removeEventListener("focusin",this.handleDocumentFocusIn),document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("mousedown",this.handleDocumentMouseDown)}handleFocus(){this.hasFocus=!0,this.displayInput.setSelectionRange(0,0),this.emit("nile-focus",{value:this.value,name:this.name})}handleBlur(){this.hasFocus=!1,this.emit("nile-blur",{value:this.value,name:this.name})}handleDocumentFocusIn(M){const N=M.composedPath();this&&!N.includes(this)&&this.hide()}handleFooterClick(M){M.stopPropagation(),M.preventDefault()}toggleShowSelected(M){if(M.stopPropagation(),M.preventDefault(),0===this.selectedOptions?.length)return;this.showSelected=!this.showSelected;this.getAllOptions().forEach((M=>{M.selected||(M.hidden=this.showSelected)})),this.requestUpdate()}unSlectAll(){this.showSelected=!1;this.getAllOptions().forEach((M=>{M.selected=!1,M.hidden=!1})),this.value="",this.selectionChanged(),this.emit("nile-change",{value:this.value,name:this.name})}handleDocumentKeyDown(M){const N=M.target,D=null!==N.closest(".select__clear"),i=null!==N.closest("nile-icon-button");if(!D&&!i){if("Escape"===M.key&&this.open&&(M.preventDefault(),M.stopPropagation(),this.hide(),this.displayInput.focus({preventScroll:!0})),"Enter"===M.key||" "===M.key&&""===this.typeToSelectString)return M.preventDefault(),M.stopImmediatePropagation(),this.open?void(this.currentOption&&!this.currentOption.disabled&&(this.multiple?this.toggleOptionSelection(this.currentOption):this.setSelectedOptions(this.currentOption),this.updateComplete.then((()=>{this.emit("nile-input",{value:this.value,name:this.name}),this.emit("nile-change",{value:this.value,name:this.name})})),this.multiple||(this.hide(),this.displayInput.focus({preventScroll:!0})))):void this.show();if(["ArrowUp","ArrowDown","Home","End"].includes(M.key)){const N=this.getAllOptions(),D=N.indexOf(this.currentOption);let i=Math.max(0,D);if(M.preventDefault(),!this.open&&(this.show(),this.currentOption))return;"ArrowDown"===M.key?(i=D+1,i>N.length-1&&(i=0)):"ArrowUp"===M.key?(i=D-1,i<0&&(i=N.length-1)):"Home"===M.key?i=0:"End"===M.key&&(i=N.length-1),this.setCurrentOption(N[i])}if(1===M.key.length||"Backspace"===M.key){const N=this.getAllOptions();if(M.metaKey||M.ctrlKey||M.altKey)return;if(!this.open){if("Backspace"===M.key)return;this.show()}M.stopPropagation(),M.preventDefault(),clearTimeout(this.typeToSelectTimeout),this.typeToSelectTimeout=window.setTimeout((()=>this.typeToSelectString=""),1e3),"Backspace"===M.key?this.typeToSelectString=this.typeToSelectString.slice(0,-1):this.typeToSelectString+=M.key.toLowerCase();for(const M of N){if(M.getTextLabel().toLowerCase().startsWith(this.typeToSelectString)){this.setCurrentOption(M);break}}}}}handleDocumentMouseDown(M){const N=M.composedPath();this&&!N.includes(this)&&this.hide()}handleLabelClick(){this.displayInput.focus()}handleComboboxMouseDown(M){const N=M.composedPath().some((M=>M instanceof Element&&"nile-icon-button"===M.tagName.toLowerCase()));this.disabled||N||(M.preventDefault(),this.displayInput.focus({preventScroll:!0}),this.open=!this.open)}handleComboboxKeyDown(M){M.stopPropagation(),this.handleDocumentKeyDown(M)}handleClearClick(M){M.stopPropagation(),""!==this.value&&(this.setSelectedOptions([]),this.displayInput.focus({preventScroll:!0}),this.updateComplete.then((()=>{this.emit("nile-clear",{value:this.value,name:this.name}),this.emit("nile-input",{value:this.value,name:this.name}),this.emit("nile-change",{value:this.value,name:this.name})})))}handleClearMouseDown(M){M.stopPropagation(),M.preventDefault()}handleOptionClick(M){const N=M.target.closest("nile-option"),D=this.value;N&&!N.disabled&&(this.multiple?this.toggleOptionSelection(N):this.setSelectedOptions(N),this.updateComplete.then((()=>this.displayInput.focus({preventScroll:!0}))),this.value!==D&&this.updateComplete.then((()=>{this.emit("nile-input",{value:this.value,name:this.name}),this.emit("nile-change",{value:this.value,name:this.name})})),this.multiple||(this.hide(),this.displayInput.focus({preventScroll:!0})))}handleDefaultSlotChange(){const M=this.getAllOptions(),N=Array.isArray(this.value)?this.value:[this.value],D=[];customElements.get("nile-option")?(M.forEach((M=>D.push(M.value))),this.setSelectedOptions(M.filter((M=>N.includes(M.value))))):customElements.whenDefined("nile-option").then((()=>this.handleDefaultSlotChange()))}handleTagRemove(M,N){M.stopPropagation(),this.disabled||(this.toggleOptionSelection(N,!1),this.updateComplete.then((()=>{this.emit("nile-input",{value:this.value,name:this.name}),this.emit("nile-change",{value:this.value,name:this.name})})))}getAllOptions(){return[...this.querySelectorAll("nile-option")]}getFirstOption(){return this.querySelector("nile-option")}setCurrentOption(M){this.getAllOptions().forEach((M=>{M.current=!1,M.tabIndex=-1})),M&&(this.currentOption=M,M.current=!0,M.tabIndex=0,M.focus())}setSelectedOptions(M){const N=this.getAllOptions(),D=Array.isArray(M)?M:[M];N.forEach((M=>M.selected=!1)),D.length&&D.forEach((M=>M.selected=!0)),this.selectionChanged()}toggleOptionSelection(M,N){M.selected=!0===N||!1===N?N:!M.selected,this.selectionChanged()}selectionChanged(){this.selectedOptions=this.getAllOptions().filter((M=>M.selected)),this.multiple?(this.value=this.selectedOptions.map((M=>M.value)),this.placeholder&&0===this.value.length?this.displayLabel="":this.displayLabel=this.selectedOptions.length+" selected"):(this.value=this.selectedOptions[0]?.value??"",this.displayLabel=this.selectedOptions[0]?.getTextLabel()??""),this.updateComplete.then((()=>{this.formControlController.updateValidity()}))}handleSearchFocus(){document.removeEventListener("keydown",this.handleDocumentKeyDown)}handleSearchBlur(){document.addEventListener("keydown",this.handleDocumentKeyDown)}handleSearchChange(M){this.searchValue=M.detail.value,0===this.filterOptions(this.searchValue).length?this.showNoResults=!0:this.showNoResults=!1}filterOptions(M){const N=this.getAllOptions(),D=M.toLowerCase();let i=[];return N.forEach((M=>{const N=M.getTextLabel().toLowerCase(),I=(M.value||"").toLowerCase();N.startsWith(D)||I.startsWith(D)?(M.hidden=!1,i.push(M)):M.hidden=!0})),i}handleInvalid(M){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(M)}handleDisabledChange(){this.disabled&&(this.open=!1,this.handleOpenChange())}handleValueChange(){const M=this.getAllOptions(),N=Array.isArray(this.value)?this.value:[this.value];this.setSelectedOptions(M.filter((M=>N.includes(M.value))))}async handleOpenChange(){if(this.open&&!this.disabled){this.setCurrentOption(this.selectedOptions[0]||this.getFirstOption()),this.emit("nile-show",{value:this.value,name:this.name}),this.addOpenListeners(),await rD(this),this.listbox.hidden=!1,this.popup.active=!0,requestAnimationFrame((()=>{this.setCurrentOption(this.currentOption)}));const{keyframes:M,options:N}=YD(this,"select.show",{dir:"ltr"});await nD(this.popup.popup,M,N),this.currentOption&&BD(this.currentOption,this.listbox,"vertical","auto"),this.emit("nile-after-show",{value:this.value,name:this.name})}else{this.emit("nile-hide",{value:this.value,name:this.name}),this.removeOpenListeners(),await rD(this);const{keyframes:M,options:N}=YD(this,"select.hide",{dir:"ltr"});await nD(this.popup.popup,M,N),this.listbox.hidden=!0,this.popup.active=!1,this.emit("nile-after-hide",{value:this.value,name:this.name})}}async show(){if(!this.open&&!this.disabled)return this.open=!0,ZD(this,"nile-after-show");this.open=!1}async hide(){if(this.open&&!this.disabled)return this.open=!1,ZD(this,"nile-after-hide");this.open=!1}checkValidity(){return this.valueInput.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.valueInput.reportValidity()}setCustomValidity(M){this.valueInput.setCustomValidity(M),this.formControlController.updateValidity()}focus(M){this.displayInput.focus(M)}blur(){this.displayInput.blur()}render(){const M=this.hasSlotController.test("label");this.hasSlotController.test("help-text");const N=!!this.label||!!M,D=this.clearable&&!this.disabled&&this.value.length>0,i=this.placeholder&&0===this.value.length,I=this.searchValue||"",j=!!this.helpText,g=!!this.errorMessage;return cM`
2681
2758
  <div
2682
2759
  part="form-control"
2683
- class=${XM({"form-control":!0,"form-control--small":"small"===this.size,"form-control--medium":"medium"===this.size,"form-control--large":"large"===this.size,"form-control--has-label":D,"form-control--has-help-text":i})}
2760
+ class=${XM({"form-control":!0,"form-control--small":"small"===this.size,"form-control--medium":"medium"===this.size,"form-control--large":"large"===this.size,"form-control--has-label":N,"form-control--has-help-text":j})}
2684
2761
  >
2685
2762
  <label
2686
2763
  id="label"
2687
2764
  part="form-control-label"
2688
2765
  class="form-control__label"
2689
- aria-hidden=${D?"false":"true"}
2766
+ aria-hidden=${N?"false":"true"}
2690
2767
  @click=${this.handleLabelClick}
2691
2768
  >
2692
2769
  <slot name="label">${this.label}</slot>
@@ -2694,7 +2771,7 @@ const gN=Symbol.for(""),uN=M=>{if((null==M?void 0:M.r)===gN)return null==M?void
2694
2771
 
2695
2772
  <div part="form-control-input" class="form-control-input">
2696
2773
  <nile-popup
2697
- class=${XM({select:!0,"select--standard":!0,"select--filled":this.filled,"select--pill":this.pill,"select--open":this.open,"select--disabled":this.disabled,"select--multiple":this.multiple,"select--focused":this.hasFocus,"select--placeholder-visible":j,"select--top":"top"===this.placement,"select--bottom":"bottom"===this.placement,"select--small":"small"===this.size,"select--medium":"medium"===this.size,"select--large":"large"===this.size})}
2774
+ class=${XM({select:!0,"select--standard":!0,"select--filled":this.filled,"select--pill":this.pill,"select--open":this.open,"select--disabled":this.disabled,"select--multiple":this.multiple,"select--focused":this.hasFocus,"select--placeholder-visible":i,"select--top":"top"===this.placement,"select--bottom":"bottom"===this.placement,"select--small":"small"===this.size,"select--medium":"medium"===this.size,"select--large":"large"===this.size})}
2698
2775
  placement=${this.placement}
2699
2776
  strategy=${this.hoist?"fixed":"absolute"}
2700
2777
  flip
@@ -2755,7 +2832,7 @@ const gN=Symbol.for(""),uN=M=>{if((null==M?void 0:M.r)===gN)return null==M?void
2755
2832
  </nile-tag>
2756
2833
  `:N===this.maxOptionsVisible?cM`
2757
2834
  <nile-tag
2758
- class="select__tags-count ${I?"select__tags-count-clearable":""} "
2835
+ class="select__tags-count ${D?"select__tags-count-clearable":""} "
2759
2836
  size=${this.size}
2760
2837
  >
2761
2838
  +${this.selectedOptions.length-N}
@@ -2776,7 +2853,7 @@ const gN=Symbol.for(""),uN=M=>{if((null==M?void 0:M.r)===gN)return null==M?void
2776
2853
  @invalid=${this.handleInvalid}
2777
2854
  />
2778
2855
 
2779
- ${I?cM`
2856
+ ${D?cM`
2780
2857
  <button
2781
2858
  part="clear-button"
2782
2859
  class="select__clear"
@@ -2817,7 +2894,7 @@ const gN=Symbol.for(""),uN=M=>{if((null==M?void 0:M.r)===gN)return null==M?void
2817
2894
  <nile-input
2818
2895
  size="small"
2819
2896
  clearable
2820
- .value=${g}
2897
+ .value=${I}
2821
2898
  placeholder="Search..."
2822
2899
  @nile-input=${this.handleSearchChange}
2823
2900
  @nile-focus=${this.handleSearchFocus}
@@ -2856,17 +2933,18 @@ const gN=Symbol.for(""),uN=M=>{if((null==M?void 0:M.r)===gN)return null==M?void
2856
2933
  </nile-popup>
2857
2934
  </div>
2858
2935
 
2859
- <slot
2860
- name="help-text"
2861
- part="form-control-help-text"
2862
- id="help-text"
2863
- class="form-control__help-text"
2864
- aria-hidden=${i?"false":"true"}
2865
- >
2866
- ${this.helpText}
2867
- </slot>
2936
+ ${j?cM`
2937
+ <nile-form-help-text>${this.helpText}</nile-form-help-text>
2938
+ `:""}
2939
+
2940
+ ${g?cM`
2941
+ <nile-form-error-message
2942
+ >${this.errorMessage}</nile-form-error-message
2943
+ >
2944
+ `:""}
2945
+
2868
2946
  </div>
2869
- `}},M.NileSelect.styles=VD,N([vM(".select")],M.NileSelect.prototype,"popup",void 0),N([vM(".select__combobox")],M.NileSelect.prototype,"combobox",void 0),N([vM(".select__display-input")],M.NileSelect.prototype,"displayInput",void 0),N([vM(".select__value-input")],M.NileSelect.prototype,"valueInput",void 0),N([vM(".select__listbox")],M.NileSelect.prototype,"listbox",void 0),N([VM()],M.NileSelect.prototype,"hasFocus",void 0),N([VM()],M.NileSelect.prototype,"displayLabel",void 0),N([VM()],M.NileSelect.prototype,"currentOption",void 0),N([VM()],M.NileSelect.prototype,"selectedOptions",void 0),N([WM()],M.NileSelect.prototype,"name",void 0),N([WM({converter:{fromAttribute:M=>M.split(" "),toAttribute:M=>M.join(" ")}})],M.NileSelect.prototype,"value",void 0),N([sN()],M.NileSelect.prototype,"defaultValue",void 0),N([WM()],M.NileSelect.prototype,"size",void 0),N([WM()],M.NileSelect.prototype,"placeholder",void 0),N([VM()],M.NileSelect.prototype,"searchValue",void 0),N([WM({type:Boolean,reflect:!0})],M.NileSelect.prototype,"searchEnabled",void 0),N([WM({type:Boolean,reflect:!0})],M.NileSelect.prototype,"multiple",void 0),N([WM({attribute:"max-options-visible",type:Number})],M.NileSelect.prototype,"maxOptionsVisible",void 0),N([WM({type:Boolean,reflect:!0})],M.NileSelect.prototype,"disabled",void 0),N([WM({type:Boolean})],M.NileSelect.prototype,"clearable",void 0),N([WM({type:Boolean,reflect:!0})],M.NileSelect.prototype,"open",void 0),N([WM({type:Boolean})],M.NileSelect.prototype,"hoist",void 0),N([WM({type:Boolean,reflect:!0})],M.NileSelect.prototype,"filled",void 0),N([WM({type:Boolean,reflect:!0})],M.NileSelect.prototype,"pill",void 0),N([WM()],M.NileSelect.prototype,"label",void 0),N([WM({reflect:!0})],M.NileSelect.prototype,"placement",void 0),N([WM({attribute:"help-text"})],M.NileSelect.prototype,"helpText",void 0),N([WM({reflect:!0})],M.NileSelect.prototype,"form",void 0),N([WM({type:Boolean,reflect:!0})],M.NileSelect.prototype,"required",void 0),N([WM({type:Boolean})],M.NileSelect.prototype,"showSelected",void 0),N([VM()],M.NileSelect.prototype,"showNoResults",void 0),N([WM({type:String})],M.NileSelect.prototype,"noResultsMessage",void 0),N([tN("disabled",{waitUntilFirstUpdate:!0})],M.NileSelect.prototype,"handleDisabledChange",null),N([tN("value",{waitUntilFirstUpdate:!0})],M.NileSelect.prototype,"handleValueChange",null),N([tN("open",{waitUntilFirstUpdate:!0})],M.NileSelect.prototype,"handleOpenChange",null),M.NileSelect=N([mM("nile-select")],M.NileSelect),hD("select.show",{keyframes:[{opacity:0,scale:.9},{opacity:1,scale:1}],options:{duration:100,easing:"ease"}}),hD("select.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.9}],options:{duration:100,easing:"ease"}});const PD=u`
2947
+ `}},M.NileSelect.styles=VD,N([vM(".select")],M.NileSelect.prototype,"popup",void 0),N([vM(".select__combobox")],M.NileSelect.prototype,"combobox",void 0),N([vM(".select__display-input")],M.NileSelect.prototype,"displayInput",void 0),N([vM(".select__value-input")],M.NileSelect.prototype,"valueInput",void 0),N([vM(".select__listbox")],M.NileSelect.prototype,"listbox",void 0),N([VM()],M.NileSelect.prototype,"hasFocus",void 0),N([VM()],M.NileSelect.prototype,"displayLabel",void 0),N([VM()],M.NileSelect.prototype,"currentOption",void 0),N([VM()],M.NileSelect.prototype,"selectedOptions",void 0),N([WM()],M.NileSelect.prototype,"name",void 0),N([WM({converter:{fromAttribute:M=>M.split(" "),toAttribute:M=>M.join(" ")}})],M.NileSelect.prototype,"value",void 0),N([sN()],M.NileSelect.prototype,"defaultValue",void 0),N([WM()],M.NileSelect.prototype,"size",void 0),N([WM()],M.NileSelect.prototype,"placeholder",void 0),N([VM()],M.NileSelect.prototype,"searchValue",void 0),N([WM({type:Boolean,reflect:!0})],M.NileSelect.prototype,"searchEnabled",void 0),N([WM({type:Boolean,reflect:!0})],M.NileSelect.prototype,"multiple",void 0),N([WM({attribute:"help-text"})],M.NileSelect.prototype,"helpText",void 0),N([WM({attribute:"error-message"})],M.NileSelect.prototype,"errorMessage",void 0),N([WM({attribute:"max-options-visible",type:Number})],M.NileSelect.prototype,"maxOptionsVisible",void 0),N([WM({type:Boolean,reflect:!0})],M.NileSelect.prototype,"disabled",void 0),N([WM({type:Boolean})],M.NileSelect.prototype,"clearable",void 0),N([WM({type:Boolean,reflect:!0})],M.NileSelect.prototype,"open",void 0),N([WM({type:Boolean})],M.NileSelect.prototype,"hoist",void 0),N([WM({type:Boolean,reflect:!0})],M.NileSelect.prototype,"filled",void 0),N([WM({type:Boolean,reflect:!0})],M.NileSelect.prototype,"pill",void 0),N([WM()],M.NileSelect.prototype,"label",void 0),N([WM({reflect:!0})],M.NileSelect.prototype,"placement",void 0),N([WM({reflect:!0})],M.NileSelect.prototype,"form",void 0),N([WM({type:Boolean,reflect:!0})],M.NileSelect.prototype,"required",void 0),N([WM({type:Boolean})],M.NileSelect.prototype,"showSelected",void 0),N([VM()],M.NileSelect.prototype,"showNoResults",void 0),N([WM({type:String})],M.NileSelect.prototype,"noResultsMessage",void 0),N([tN("disabled",{waitUntilFirstUpdate:!0})],M.NileSelect.prototype,"handleDisabledChange",null),N([tN("value",{waitUntilFirstUpdate:!0})],M.NileSelect.prototype,"handleValueChange",null),N([tN("open",{waitUntilFirstUpdate:!0})],M.NileSelect.prototype,"handleOpenChange",null),M.NileSelect=N([mM("nile-select")],M.NileSelect),hD("select.show",{keyframes:[{opacity:0,scale:.9},{opacity:1,scale:1}],options:{duration:100,easing:"ease"}}),hD("select.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.9}],options:{duration:100,easing:"ease"}});const PD=u`
2870
2948
  :host {
2871
2949
  display: block;
2872
2950
  user-select: none;
@@ -3234,19 +3312,18 @@ const gN=Symbol.for(""),uN=M=>{if((null==M?void 0:M.r)===gN)return null==M?void
3234
3312
  .form-control--has-label .form-control__label {
3235
3313
  display: inline-block;
3236
3314
  color: inherit;
3237
- margin-bottom: 0.125rem;
3238
- }
3239
-
3240
- .form-control--has-label.form-control--small .form-control__label {
3241
- font-size: 0.875rem;
3315
+ margin-bottom: 12px;
3316
+ color: var(--nile-colors-dark-900);
3317
+ font-family: Colfax-regular;
3318
+ font-size: 14px;
3319
+ font-style: normal;
3320
+ font-weight: 400;
3321
+ line-height: 14px;
3322
+ letter-spacing: 0.2px;
3242
3323
  }
3243
3324
 
3244
3325
  .form-control--has-label.form-control--medium .form-control__label {
3245
- font-size: 1rem;
3246
- }
3247
-
3248
- .form-control--has-label.form-control--large .form-control__label {
3249
- font-size: 1.25rem;
3326
+ font-size: 14px;
3250
3327
  }
3251
3328
 
3252
3329
  :host([required]) .form-control--has-label .form-control__label::after {
@@ -3289,7 +3366,6 @@ const gN=Symbol.for(""),uN=M=>{if((null==M?void 0:M.r)===gN)return null==M?void
3289
3366
  background-color: #fff;
3290
3367
  border-radius: 0.25rem;
3291
3368
  border: solid 1px #c7ced4;
3292
- padding: 5px 10px;
3293
3369
  display: flex;
3294
3370
  flex-wrap: wrap;
3295
3371
  width: 100%;
@@ -3355,16 +3431,16 @@ const gN=Symbol.for(""),uN=M=>{if((null==M?void 0:M.r)===gN)return null==M?void
3355
3431
  .nile-chip__tags {
3356
3432
  margin: 0.05rem;
3357
3433
  }
3358
- `;M.NileChip=class extends xN{constructor(){super(...arguments),this.hasSlotController=new jN(this,"help-text","label"),this.tags=[],this.inputValue="",this.isDropdownOpen=!1,this.warning=!1,this.error=!1,this.success=!1,this.noDuplicates=!1,this.label="",this.acceptUserInput=!1,this.clearable=!1,this.placeholder="type here...",this.readonly=!1,this.disabled=!1,this.helpText="",this.autoCompleteOptions=[],this.filteredAutoCompleteOptions=[],this.value=[],this.noWrap=!1}static get styles(){return[fD]}onAutoCompleteOptionsChanged(){this.filteredAutoCompleteOptions=[...this.autoCompleteOptions],this.noDuplicates&&(this.filteredAutoCompleteOptions=this.filteredAutoCompleteOptions.filter((M=>!this.value.includes(M))))}onValueChanged(){this.tags=[...this.value],this.onTagsChanged()}onTagsChanged(){this.noDuplicates&&(this.filteredAutoCompleteOptions=this.filteredAutoCompleteOptions.filter((M=>!this.tags.includes(M))))}connectedCallback(){super.connectedCallback(),this.noDuplicates&&(this.filteredAutoCompleteOptions=this.filteredAutoCompleteOptions.filter((M=>!this.value.includes(M))))}handleSelect(M){this.noDuplicates&&this.tags.includes(M.detail.value)||(this.tags=[...this.tags,M.detail.value],this.emit("nile-chip-change",{value:this.tags}),this.resetInput())}handleRemove(M){this.tags=this.tags.filter((N=>N!==M)),this.noDuplicates&&this.autoCompleteOptions.includes(M)&&(this.filteredAutoCompleteOptions=[...this.filteredAutoCompleteOptions,M]),this.emit("nile-chip-change",{value:this.tags})}handleInputChange(M){this.inputValue=M.detail.value}handleInputKeydown(M){this.acceptUserInput&&("Enter"!==M.key||!this.inputValue||this.noDuplicates&&this.tags.includes(this.inputValue)||(this.tags=[...this.tags,this.inputValue],this.resetInput(),this.emit("nile-chip-change",{value:this.tags})))}handleFocus(){this.isDropdownOpen=!0}resetInput(){this.inputValue="",this.isDropdownOpen=!1,this.autoComplete.value="",this.autoComplete.handleFocus()}render(){const M=this.hasSlotController.test("label"),N=this.hasSlotController.test("help-text"),D=!!this.label||!!M,i=!!this.helpText||!!N;return cM`
3434
+ `;M.NileChip=class extends xN{constructor(){super(...arguments),this.hasSlotController=new jN(this,"help-text","label"),this.tags=[],this.inputValue="",this.isDropdownOpen=!1,this.warning=!1,this.error=!1,this.success=!1,this.noDuplicates=!1,this.label="",this.acceptUserInput=!1,this.clearable=!1,this.placeholder="type here...",this.readonly=!1,this.disabled=!1,this.autoCompleteOptions=[],this.filteredAutoCompleteOptions=[],this.value=[],this.noWrap=!1,this.errorIndexes=[],this.helpText="",this.errorMessage=""}static get styles(){return[fD]}onAutoCompleteOptionsChanged(){this.filteredAutoCompleteOptions=[...this.autoCompleteOptions],this.noDuplicates&&(this.filteredAutoCompleteOptions=this.filteredAutoCompleteOptions.filter((M=>!this.value.includes(M))))}onValueChanged(){this.tags=[...this.value],this.onTagsChanged()}onTagsChanged(){this.noDuplicates&&(this.filteredAutoCompleteOptions=this.filteredAutoCompleteOptions.filter((M=>!this.tags.includes(M))))}connectedCallback(){super.connectedCallback(),this.noDuplicates&&(this.filteredAutoCompleteOptions=this.filteredAutoCompleteOptions.filter((M=>!this.value.includes(M))))}handleSelect(M){this.noDuplicates&&this.tags.includes(M.detail.value)||(this.tags=[...this.tags,M.detail.value],this.emit("nile-chip-change",{value:this.tags}),this.resetInput())}handleRemove(M){this.tags=this.tags.filter((N=>N!==M)),this.noDuplicates&&this.autoCompleteOptions.includes(M)&&(this.filteredAutoCompleteOptions=[...this.filteredAutoCompleteOptions,M]),this.emit("nile-chip-change",{value:this.tags})}handleInputChange(M){this.inputValue=M.detail.value}handleInputKeydown(M){this.acceptUserInput&&("Enter"!==M.key||!this.inputValue||this.noDuplicates&&this.tags.includes(this.inputValue)||(this.tags=[...this.tags,this.inputValue],this.resetInput(),this.emit("nile-chip-change",{value:this.tags})))}handleFocus(){this.isDropdownOpen=!0}resetInput(){this.inputValue="",this.isDropdownOpen=!1,this.autoComplete.value="",this.autoComplete.handleFocus()}render(){const M=this.hasSlotController.test("label");this.hasSlotController.test("help-text");const N=!!this.label||!!M,D=!!this.helpText,i=!!this.errorMessage;return cM`
3359
3435
  <div
3360
3436
  part="form-control"
3361
- class=${XM({"form-control":!0,"form-control--medium":!0,"form-control--has-label":D,"form-control--has-help-text":i,"nile-chip--disabled":this.disabled})}
3437
+ class=${XM({"form-control":!0,"form-control--medium":!0,"form-control--has-label":N,"form-control--has-help-text":D,"nile-chip--disabled":this.disabled})}
3362
3438
  >
3363
3439
  <label
3364
3440
  part="form-control-label"
3365
3441
  class="form-control__label"
3366
3442
  for="input"
3367
- aria-hidden=${D?"false":"true"}
3443
+ aria-hidden=${N?"false":"true"}
3368
3444
  >
3369
3445
  <slot name="label">${this.label}</slot>
3370
3446
  </label>
@@ -3372,9 +3448,10 @@ const gN=Symbol.for(""),uN=M=>{if((null==M?void 0:M.r)===gN)return null==M?void
3372
3448
  <div
3373
3449
  class=${XM({"nile-chip":!0,"nile-chip--warning":this.warning,"nile-chip--error":this.error,"nile-chip--success":this.success,"nile-chip--no-wrap":this.noWrap})}
3374
3450
  >
3375
- ${this.tags.map((M=>cM`
3451
+ ${this.tags.map(((M,N)=>cM`
3376
3452
  <nile-tag
3377
- class="nile-chip__tags"
3453
+ class=${XM({"nile-chip__tags":!0})}
3454
+ .variant=${this.errorIndexes.includes(N)?"error":"normal"}
3378
3455
  @nile-remove=${()=>this.handleRemove(M)}
3379
3456
  removable
3380
3457
  pill
@@ -3401,13 +3478,22 @@ const gN=Symbol.for(""),uN=M=>{if((null==M?void 0:M.r)===gN)return null==M?void
3401
3478
  part="form-control-help-text"
3402
3479
  id="help-text"
3403
3480
  class="form-control__help-text"
3404
- aria-hidden=${i?"false":"true"}
3481
+ aria-hidden=${D?"false":"true"}
3405
3482
  >
3406
3483
  ${this.helpText}
3407
3484
  </slot>
3408
3485
  </div>
3486
+ ${D?cM`
3487
+ <nile-form-help-text>${this.helpText}</nile-form-help-text>
3488
+ `:""}
3489
+
3490
+ ${i?cM`
3491
+ <nile-form-error-message
3492
+ >${this.errorMessage}</nile-form-error-message
3493
+ >
3494
+ `:""}
3409
3495
  </div>
3410
- `}},N([VM()],M.NileChip.prototype,"tags",void 0),N([VM()],M.NileChip.prototype,"inputValue",void 0),N([VM()],M.NileChip.prototype,"isDropdownOpen",void 0),N([vM("nile-auto-complete")],M.NileChip.prototype,"autoComplete",void 0),N([WM({type:Boolean})],M.NileChip.prototype,"warning",void 0),N([WM({type:Boolean})],M.NileChip.prototype,"error",void 0),N([WM({type:Boolean})],M.NileChip.prototype,"success",void 0),N([WM({type:Boolean})],M.NileChip.prototype,"noDuplicates",void 0),N([WM()],M.NileChip.prototype,"label",void 0),N([WM({type:Boolean})],M.NileChip.prototype,"acceptUserInput",void 0),N([WM({type:Boolean})],M.NileChip.prototype,"clearable",void 0),N([WM()],M.NileChip.prototype,"placeholder",void 0),N([WM({type:Boolean,reflect:!0})],M.NileChip.prototype,"readonly",void 0),N([WM({type:Boolean,reflect:!0})],M.NileChip.prototype,"disabled",void 0),N([WM({attribute:"help-text"})],M.NileChip.prototype,"helpText",void 0),N([WM({type:Array})],M.NileChip.prototype,"autoCompleteOptions",void 0),N([WM({type:Array})],M.NileChip.prototype,"filteredAutoCompleteOptions",void 0),N([WM({type:Array})],M.NileChip.prototype,"value",void 0),N([WM({type:Boolean})],M.NileChip.prototype,"noWrap",void 0),N([tN("autoCompleteOptions")],M.NileChip.prototype,"onAutoCompleteOptionsChanged",null),N([tN("value")],M.NileChip.prototype,"onValueChanged",null),N([tN("tags")],M.NileChip.prototype,"onTagsChanged",null),M.NileChip=N([mM("nile-chip")],M.NileChip);const _D=u`
3496
+ `}},N([VM()],M.NileChip.prototype,"tags",void 0),N([VM()],M.NileChip.prototype,"inputValue",void 0),N([VM()],M.NileChip.prototype,"isDropdownOpen",void 0),N([vM("nile-auto-complete")],M.NileChip.prototype,"autoComplete",void 0),N([WM({type:Boolean})],M.NileChip.prototype,"warning",void 0),N([WM({type:Boolean})],M.NileChip.prototype,"error",void 0),N([WM({type:Boolean})],M.NileChip.prototype,"success",void 0),N([WM({type:Boolean})],M.NileChip.prototype,"noDuplicates",void 0),N([WM()],M.NileChip.prototype,"label",void 0),N([WM({type:Boolean})],M.NileChip.prototype,"acceptUserInput",void 0),N([WM({type:Boolean})],M.NileChip.prototype,"clearable",void 0),N([WM()],M.NileChip.prototype,"placeholder",void 0),N([WM({type:Boolean,reflect:!0})],M.NileChip.prototype,"readonly",void 0),N([WM({type:Boolean,reflect:!0})],M.NileChip.prototype,"disabled",void 0),N([WM({type:Array})],M.NileChip.prototype,"autoCompleteOptions",void 0),N([WM({type:Array})],M.NileChip.prototype,"filteredAutoCompleteOptions",void 0),N([WM({type:Array})],M.NileChip.prototype,"value",void 0),N([WM({type:Boolean})],M.NileChip.prototype,"noWrap",void 0),N([WM({type:Array})],M.NileChip.prototype,"errorIndexes",void 0),N([WM({attribute:"help-text"})],M.NileChip.prototype,"helpText",void 0),N([WM({attribute:"error-message"})],M.NileChip.prototype,"errorMessage",void 0),N([tN("autoCompleteOptions")],M.NileChip.prototype,"onAutoCompleteOptionsChanged",null),N([tN("value")],M.NileChip.prototype,"onValueChanged",null),N([tN("tags")],M.NileChip.prototype,"onTagsChanged",null),M.NileChip=N([mM("nile-chip")],M.NileChip);const _D=u`
3411
3497
  .form-control .form-control__label {
3412
3498
  display: none;
3413
3499
  }
@@ -3419,8 +3505,14 @@ const gN=Symbol.for(""),uN=M=>{if((null==M?void 0:M.r)===gN)return null==M?void
3419
3505
  /* Label */
3420
3506
  .form-control--has-label .form-control__label {
3421
3507
  display: inline-block;
3422
- color: var(--nile-colors-dark-900);
3423
3508
  margin-bottom: 12px;
3509
+ color: var(--nile-colors-dark-900);
3510
+ font-family: Colfax-regular;
3511
+ font-size: 14px;
3512
+ font-style: normal;
3513
+ font-weight: 400;
3514
+ line-height: 14px;
3515
+ letter-spacing: 0.2px;
3424
3516
  }
3425
3517
 
3426
3518
  .form-control--has-label.form-control--medium .form-control__label {
@@ -3430,7 +3522,7 @@ const gN=Symbol.for(""),uN=M=>{if((null==M?void 0:M.r)===gN)return null==M?void
3430
3522
  :host([required]) .form-control--has-label .form-control__label::after {
3431
3523
  content: '*';
3432
3524
  margin-inline-start: -2px;
3433
- color: red;
3525
+ color: #A4121C;
3434
3526
  }
3435
3527
 
3436
3528
  /* Help text */
@@ -3466,9 +3558,6 @@ const gN=Symbol.for(""),uN=M=>{if((null==M?void 0:M.r)===gN)return null==M?void
3466
3558
  align-items: center;
3467
3559
  position: relative;
3468
3560
  width: 100%;
3469
- font-family: Arial, sans-serif;
3470
- font-weight: 400;
3471
- line-height: 1.5;
3472
3561
  letter-spacing: 0.5px;
3473
3562
  vertical-align: middle;
3474
3563
  border-radius: var(--nile-radius-base-standard);
@@ -3510,7 +3599,7 @@ const gN=Symbol.for(""),uN=M=>{if((null==M?void 0:M.r)===gN)return null==M?void
3510
3599
 
3511
3600
  .textarea--standard.textarea--focused:not(.textarea--disabled)
3512
3601
  .textarea__control {
3513
- color: #333;
3602
+ color: #000000;
3514
3603
  }
3515
3604
 
3516
3605
  .textarea--standard.textarea--disabled {
@@ -3536,10 +3625,12 @@ const gN=Symbol.for(""),uN=M=>{if((null==M?void 0:M.r)===gN)return null==M?void
3536
3625
  /* Textarea control styles */
3537
3626
  .textarea__control {
3538
3627
  flex: 1 1 auto;
3539
- font-family: inherit;
3540
- font-size: inherit;
3541
- font-weight: inherit;
3542
- line-height: 1.4;
3628
+ font-family: Colfax-regular;
3629
+ font-size: 14px;
3630
+ font-style: normal;
3631
+ font-weight: 400;
3632
+ line-height: 14px; /* 100% */
3633
+ letter-spacing: 0.2px;
3543
3634
  color: var(--nile-colors-dark-900);
3544
3635
  border: none;
3545
3636
  background: none;
@@ -3596,16 +3687,16 @@ const gN=Symbol.for(""),uN=M=>{if((null==M?void 0:M.r)===gN)return null==M?void
3596
3687
  .textarea--standard.textarea--success {
3597
3688
  border-color: var(--nile-colors-green-500);
3598
3689
  }
3599
- `;M.NileTextarea=class extends xN{constructor(){super(...arguments),this.hasSlotController=new jN(this,"help-text","label"),this.hasFocus=!1,this.title="",this.name="",this.value="",this.size="medium",this.filled=!1,this.label="",this.helpText="",this.errorMessage="",this.placeholder="",this.rows=4,this.resize="vertical",this.disabled=!1,this.readonly=!1,this.form="",this.required=!1,this.warning=!1,this.error=!1,this.success=!1,this.spellcheck=!0,this.defaultValue=""}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver((()=>this.setTextareaHeight())),this.updateComplete.then((()=>{this.setTextareaHeight(),this.resizeObserver.observe(this.input)}))}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.unobserve(this.input)}handleBlur(){this.hasFocus=!1,this.emit("nile-blur",{value:this.value})}handleChange(){this.value=this.input.value,this.setTextareaHeight(),this.emit("nile-change",{value:this.value})}handleFocus(){this.hasFocus=!0,this.emit("nile-focus",{value:this.value})}handleInput(){this.value=this.input.value,this.emit("nile-input",{value:this.value})}setTextareaHeight(){"auto"===this.resize?(this.input.style.height="auto",this.input.style.height=`${this.input.scrollHeight}px`):this.input.style.height=void 0}handleRowsChange(){this.setTextareaHeight()}async handleValueChange(){await this.updateComplete,this.setTextareaHeight()}focus(M){this.input.focus(M)}blur(){this.input.blur()}select(){this.input.select()}scrollPosition(M){return M?("number"==typeof M.top&&(this.input.scrollTop=M.top),void("number"==typeof M.left&&(this.input.scrollLeft=M.left))):{top:this.input.scrollTop,left:this.input.scrollTop}}setSelectionRange(M,N,D="none"){this.input.setSelectionRange(M,N,D)}setRangeText(M,N,D,i){this.input.setRangeText(M,N,D,i),this.value!==this.input.value&&(this.value=this.input.value),this.value!==this.input.value&&(this.value=this.input.value,this.setTextareaHeight())}render(){const M=this.hasSlotController.test("label"),N=this.hasSlotController.test("help-text"),D=!!this.label||!!M,i=!!this.helpText||!!N;return cM`
3690
+ `;M.NileTextarea=class extends xN{constructor(){super(...arguments),this.hasSlotController=new jN(this,"help-text","label"),this.hasFocus=!1,this.title="",this.name="",this.value="",this.size="medium",this.filled=!1,this.label="",this.helpText="",this.errorMessage="",this.placeholder="",this.rows=4,this.resize="vertical",this.disabled=!1,this.readonly=!1,this.form="",this.required=!1,this.warning=!1,this.error=!1,this.success=!1,this.spellcheck=!0,this.defaultValue=""}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver((()=>this.setTextareaHeight())),this.updateComplete.then((()=>{this.setTextareaHeight(),this.resizeObserver.observe(this.input)}))}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.unobserve(this.input)}handleBlur(){this.hasFocus=!1,this.emit("nile-blur",{value:this.value})}handleChange(){this.value=this.input.value,this.setTextareaHeight(),this.emit("nile-change",{value:this.value})}handleFocus(){this.hasFocus=!0,this.emit("nile-focus",{value:this.value})}handleInput(){this.value=this.input.value,this.emit("nile-input",{value:this.value})}setTextareaHeight(){"auto"===this.resize?(this.input.style.height="auto",this.input.style.height=`${this.input.scrollHeight}px`):this.input.style.height=void 0}handleRowsChange(){this.setTextareaHeight()}async handleValueChange(){await this.updateComplete,this.setTextareaHeight()}focus(M){this.input.focus(M)}blur(){this.input.blur()}select(){this.input.select()}scrollPosition(M){return M?("number"==typeof M.top&&(this.input.scrollTop=M.top),void("number"==typeof M.left&&(this.input.scrollLeft=M.left))):{top:this.input.scrollTop,left:this.input.scrollTop}}setSelectionRange(M,N,D="none"){this.input.setSelectionRange(M,N,D)}setRangeText(M,N,D,i){this.input.setRangeText(M,N,D,i),this.value!==this.input.value&&(this.value=this.input.value),this.value!==this.input.value&&(this.value=this.input.value,this.setTextareaHeight())}render(){const M=this.hasSlotController.test("label");this.hasSlotController.test("help-text");const N=!!this.label||!!M,D=!!this.helpText,i=!!this.errorMessage;return cM`
3600
3691
  <div
3601
3692
  part="form-control"
3602
- class=${XM({"form-control":!0,"form-control--medium":"medium"===this.size,"form-control--has-label":D,"form-control--has-help-text":i})}
3693
+ class=${XM({"form-control":!0,"form-control--medium":"medium"===this.size,"form-control--has-label":N,"form-control--has-help-text":D})}
3603
3694
  >
3604
3695
  <label
3605
3696
  part="form-control-label"
3606
3697
  class="form-control__label"
3607
3698
  for="input"
3608
- aria-hidden=${D?"false":"true"}
3699
+ aria-hidden=${N?"false":"true"}
3609
3700
  >
3610
3701
  <slot name="label">${this.label}</slot>
3611
3702
  </label>
@@ -3644,23 +3735,15 @@ const gN=Symbol.for(""),uN=M=>{if((null==M?void 0:M.r)===gN)return null==M?void
3644
3735
  </div>
3645
3736
  </div>
3646
3737
 
3647
- <slot
3648
- name="help-text"
3649
- part="form-control-help-text"
3650
- id="help-text"
3651
- class="form-control__help-text"
3652
- aria-hidden=${i?"false":"true"}
3653
- >
3654
- ${this.helpText}
3655
- </slot>
3656
- <slot
3657
- name="error-message"
3658
- part="form-control-error-message"
3659
- id="error-message"
3660
- class="form-control__error-message"
3661
- >
3662
- ${this.errorMessage}
3663
- </slot>
3738
+ ${D?cM`
3739
+ <nile-form-help-text>${this.helpText}</nile-form-help-text>
3740
+ `:""}
3741
+
3742
+ ${i?cM`
3743
+ <nile-form-error-message
3744
+ >${this.errorMessage}</nile-form-error-message
3745
+ >
3746
+ `:""}
3664
3747
  </div>
3665
3748
  `}},M.NileTextarea.styles=_D,N([vM(".textarea__control")],M.NileTextarea.prototype,"input",void 0),N([VM()],M.NileTextarea.prototype,"hasFocus",void 0),N([WM()],M.NileTextarea.prototype,"title",void 0),N([WM()],M.NileTextarea.prototype,"name",void 0),N([WM()],M.NileTextarea.prototype,"value",void 0),N([WM({reflect:!0})],M.NileTextarea.prototype,"size",void 0),N([WM({type:Boolean,reflect:!0})],M.NileTextarea.prototype,"filled",void 0),N([WM()],M.NileTextarea.prototype,"label",void 0),N([WM({attribute:"help-text"})],M.NileTextarea.prototype,"helpText",void 0),N([WM({attribute:"error-message"})],M.NileTextarea.prototype,"errorMessage",void 0),N([WM()],M.NileTextarea.prototype,"placeholder",void 0),N([WM({type:Number})],M.NileTextarea.prototype,"rows",void 0),N([WM()],M.NileTextarea.prototype,"resize",void 0),N([WM({type:Boolean,reflect:!0})],M.NileTextarea.prototype,"disabled",void 0),N([WM({type:Boolean,reflect:!0})],M.NileTextarea.prototype,"readonly",void 0),N([WM({reflect:!0})],M.NileTextarea.prototype,"form",void 0),N([WM({type:Boolean,reflect:!0})],M.NileTextarea.prototype,"required",void 0),N([WM({type:Number})],M.NileTextarea.prototype,"minlength",void 0),N([WM({type:Number})],M.NileTextarea.prototype,"maxlength",void 0),N([WM({type:Boolean})],M.NileTextarea.prototype,"warning",void 0),N([WM({type:Boolean})],M.NileTextarea.prototype,"error",void 0),N([WM({type:Boolean})],M.NileTextarea.prototype,"success",void 0),N([WM()],M.NileTextarea.prototype,"autocapitalize",void 0),N([WM()],M.NileTextarea.prototype,"autocorrect",void 0),N([WM()],M.NileTextarea.prototype,"autocomplete",void 0),N([WM({type:Boolean})],M.NileTextarea.prototype,"autofocus",void 0),N([WM()],M.NileTextarea.prototype,"enterkeyhint",void 0),N([WM({type:Boolean,converter:{fromAttribute:M=>!(!M||"false"===M),toAttribute:M=>M?"true":"false"}})],M.NileTextarea.prototype,"spellcheck",void 0),N([WM()],M.NileTextarea.prototype,"inputmode",void 0),N([sN()],M.NileTextarea.prototype,"defaultValue",void 0),N([tN("rows",{waitUntilFirstUpdate:!0})],M.NileTextarea.prototype,"handleRowsChange",null),N([tN("value",{waitUntilFirstUpdate:!0})],M.NileTextarea.prototype,"handleValueChange",null),M.NileTextarea=N([mM("nile-textarea")],M.NileTextarea);const $D=u`
3666
3749
  :host {
@@ -4013,4 +4096,50 @@ font-weight: 500;
4013
4096
  </div>
4014
4097
  `))}
4015
4098
  </div>
4016
- `}},N([WM({type:Array,attribute:"error-messages",hasChanged:(M,N)=>JSON.stringify(M)!==JSON.stringify(N),converter:{toAttribute:M=>JSON.stringify(M),fromAttribute:M=>(M=>Array.isArray(M)?M.map((M=>String(M))):[])(JSON.parse(M||"[]"))}})],M.NileErrorMessage.prototype,"errorMessages",void 0),N([WM({type:Number})],M.NileErrorMessage.prototype,"expandedIndex",void 0),M.NileErrorMessage=N([mM("nile-error-message")],M.NileErrorMessage)}({});
4099
+ `}},N([WM({type:Array,attribute:"error-messages",hasChanged:(M,N)=>JSON.stringify(M)!==JSON.stringify(N),converter:{toAttribute:M=>JSON.stringify(M),fromAttribute:M=>(M=>Array.isArray(M)?M.map((M=>String(M))):[])(JSON.parse(M||"[]"))}})],M.NileErrorMessage.prototype,"errorMessages",void 0),N([WM({type:Number})],M.NileErrorMessage.prototype,"expandedIndex",void 0),M.NileErrorMessage=N([mM("nile-error-message")],M.NileErrorMessage);const qD=u`
4100
+ :host {
4101
+ }
4102
+
4103
+ .nile-form-error-message {
4104
+ display: flex;
4105
+ align-items: center;
4106
+ color: var(--nile-colors-red-700);
4107
+ font-family: Colfax-regular;
4108
+ font-size: 12px;
4109
+ font-style: normal;
4110
+ font-weight: 400;
4111
+ line-height: 12px;
4112
+ letter-spacing: 0.2px;
4113
+ margin-top: 6px;
4114
+ }
4115
+
4116
+ .nile-form-error-message__icon {
4117
+ margin-right: 6px;
4118
+ }
4119
+ `;M.NileFormErrorMessage=class extends ZM{static get styles(){return[qD]}render(){return cM`
4120
+ <div class="nile-form-error-message">
4121
+ <nile-icon name="info2" size="14" class="nile-form-error-message__icon" color="#A4121C"> </nile-icon> <slot> </slot>
4122
+ </div>
4123
+ `}},M.NileFormErrorMessage=N([mM("nile-form-error-message")],M.NileFormErrorMessage);const Mi=u`
4124
+ :host {
4125
+
4126
+ }
4127
+
4128
+ .nile-form-help-text {
4129
+ display: flex;
4130
+ align-items: center;
4131
+ color: var(--nile-colors-dark-500);
4132
+ font-family: Colfax-regular;
4133
+ font-size: 12px;
4134
+ font-style: normal;
4135
+ font-weight: 400;
4136
+ line-height: 12px;
4137
+ letter-spacing: 0.2px;
4138
+ margin-top: 6px;
4139
+ }
4140
+
4141
+ `;M.NileFormHelpText=class extends ZM{static get styles(){return[Mi]}render(){return cM`
4142
+ <div class="nile-form-help-text">
4143
+ <slot> </slot>
4144
+ </div>
4145
+ `}},M.NileFormHelpText=N([mM("nile-form-help-text")],M.NileFormHelpText)}({});