@diwacopilot/components 1.0.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (467) hide show
  1. package/dist/cjs/diwa-checkbox.cjs.entry.js +1 -3
  2. package/dist/cjs/diwa-checkbox.cjs.entry.js.map +1 -1
  3. package/dist/cjs/diwa-components.cjs.js +1 -1
  4. package/dist/cjs/diwa-heading.cjs.entry.js +126 -0
  5. package/dist/cjs/diwa-heading.cjs.entry.js.map +1 -0
  6. package/dist/cjs/diwa-icon.cjs.entry.js +1 -1
  7. package/dist/cjs/diwa-inline-notification.cjs.entry.js +1 -1
  8. package/dist/cjs/diwa-input-date.cjs.entry.js +1 -1
  9. package/dist/cjs/diwa-input-email.cjs.entry.js +1 -1
  10. package/dist/cjs/diwa-input-month.cjs.entry.js +1 -1
  11. package/dist/cjs/diwa-input-number.cjs.entry.js +1 -1
  12. package/dist/cjs/diwa-input-password.cjs.entry.js +1 -1
  13. package/dist/cjs/diwa-input-search.cjs.entry.js +1 -1
  14. package/dist/cjs/diwa-input-tel.cjs.entry.js +1 -1
  15. package/dist/cjs/diwa-input-text.cjs.entry.js +1 -1
  16. package/dist/cjs/diwa-input-time.cjs.entry.js +1 -1
  17. package/dist/cjs/diwa-input-url.cjs.entry.js +1 -1
  18. package/dist/cjs/diwa-input-week.cjs.entry.js +1 -1
  19. package/dist/cjs/diwa-input.cjs.entry.js +1 -1
  20. package/dist/cjs/diwa-link-pure.cjs.entry.js +1 -1
  21. package/dist/cjs/diwa-link.cjs.entry.js +1 -1
  22. package/dist/cjs/diwa-modal.cjs.entry.js +1 -1
  23. package/dist/cjs/diwa-multi-select-option.cjs.entry.js +1 -1
  24. package/dist/cjs/diwa-multi-select.cjs.entry.js +2 -2
  25. package/dist/cjs/diwa-pagination.cjs.entry.js +1 -1
  26. package/dist/cjs/diwa-pin-code.cjs.entry.js +2 -2
  27. package/dist/cjs/diwa-popover.cjs.entry.js +1 -1
  28. package/dist/cjs/diwa-radio-group-item.cjs.entry.js +2 -3
  29. package/dist/cjs/diwa-radio-group-item.cjs.entry.js.map +1 -1
  30. package/dist/cjs/diwa-radio-group.cjs.entry.js +1 -1
  31. package/dist/cjs/diwa-scroller.cjs.entry.js +23 -13
  32. package/dist/cjs/diwa-scroller.cjs.entry.js.map +1 -1
  33. package/dist/cjs/diwa-segmented-control-item.cjs.entry.js +1 -1
  34. package/dist/cjs/diwa-segmented-control.cjs.entry.js +1 -1
  35. package/dist/cjs/diwa-select-option.cjs.entry.js +24 -10
  36. package/dist/cjs/diwa-select-option.cjs.entry.js.map +1 -1
  37. package/dist/cjs/diwa-select.cjs.entry.js +15 -1
  38. package/dist/cjs/diwa-select.cjs.entry.js.map +1 -1
  39. package/dist/cjs/diwa-spinner.cjs.entry.js +1 -1
  40. package/dist/cjs/diwa-stepper-horizontal-item.cjs.entry.js +1 -1
  41. package/dist/cjs/diwa-stepper-horizontal.cjs.entry.js +1 -1
  42. package/dist/cjs/diwa-switch.cjs.entry.js +1 -1
  43. package/dist/cjs/diwa-table-body.cjs.entry.js +1 -1
  44. package/dist/cjs/diwa-table-cell.cjs.entry.js +15 -15
  45. package/dist/cjs/diwa-table-cell.cjs.entry.js.map +1 -1
  46. package/dist/cjs/diwa-table-head-cell.cjs.entry.js +64 -53
  47. package/dist/cjs/diwa-table-head-cell.cjs.entry.js.map +1 -1
  48. package/dist/cjs/diwa-table-head.cjs.entry.js +16 -11
  49. package/dist/cjs/diwa-table-head.cjs.entry.js.map +1 -1
  50. package/dist/cjs/diwa-table-row.cjs.entry.js +11 -10
  51. package/dist/cjs/diwa-table-row.cjs.entry.js.map +1 -1
  52. package/dist/cjs/diwa-table.cjs.entry.js +83 -43
  53. package/dist/cjs/diwa-table.cjs.entry.js.map +1 -1
  54. package/dist/cjs/diwa-tabs-bar.cjs.entry.js +1 -1
  55. package/dist/cjs/diwa-tabs-item.cjs.entry.js +1 -1
  56. package/dist/cjs/diwa-tabs.cjs.entry.js +12 -12
  57. package/dist/cjs/diwa-tabs.cjs.entry.js.map +1 -1
  58. package/dist/cjs/diwa-tag-dismissible.cjs.entry.js +6 -8
  59. package/dist/cjs/diwa-tag-dismissible.cjs.entry.js.map +1 -1
  60. package/dist/cjs/diwa-tag.cjs.entry.js +2 -2
  61. package/dist/cjs/diwa-tag.cjs.entry.js.map +1 -1
  62. package/dist/cjs/diwa-text-list-item.cjs.entry.js +1 -1
  63. package/dist/cjs/diwa-text-list.cjs.entry.js +1 -1
  64. package/dist/cjs/diwa-text.cjs.entry.js +1 -1
  65. package/dist/cjs/diwa-textarea.cjs.entry.js +1 -1
  66. package/dist/cjs/diwa-toast-item.cjs.entry.js +1 -1
  67. package/dist/cjs/diwa-toast.cjs.entry.js +111 -17
  68. package/dist/cjs/diwa-toast.cjs.entry.js.map +1 -1
  69. package/dist/cjs/loader.cjs.js +1 -1
  70. package/dist/collection/collection-manifest.json +1 -0
  71. package/dist/collection/components/diwa-checkbox/diwa-checkbox-styles.js +1 -3
  72. package/dist/collection/components/diwa-checkbox/diwa-checkbox-styles.js.map +1 -1
  73. package/dist/collection/components/diwa-heading/diwa-heading-styles.js +53 -0
  74. package/dist/collection/components/diwa-heading/diwa-heading-styles.js.map +1 -0
  75. package/dist/collection/components/diwa-heading/diwa-heading-utils.js +26 -0
  76. package/dist/collection/components/diwa-heading/diwa-heading-utils.js.map +1 -0
  77. package/dist/collection/components/diwa-heading/diwa-heading.js +235 -0
  78. package/dist/collection/components/diwa-heading/diwa-heading.js.map +1 -0
  79. package/dist/collection/components/diwa-heading/types.js +2 -0
  80. package/dist/collection/components/diwa-heading/types.js.map +1 -0
  81. package/dist/collection/components/diwa-icon/diwa-icon.js +1 -1
  82. package/dist/collection/components/diwa-inline-notification/diwa-inline-notification.js +1 -1
  83. package/dist/collection/components/diwa-input/diwa-input.js +1 -1
  84. package/dist/collection/components/diwa-input-date/diwa-input-date.js +1 -1
  85. package/dist/collection/components/diwa-input-email/diwa-input-email.js +1 -1
  86. package/dist/collection/components/diwa-input-month/diwa-input-month.js +1 -1
  87. package/dist/collection/components/diwa-input-number/diwa-input-number.js +1 -1
  88. package/dist/collection/components/diwa-input-password/diwa-input-password.js +1 -1
  89. package/dist/collection/components/diwa-input-search/diwa-input-search.js +1 -1
  90. package/dist/collection/components/diwa-input-tel/diwa-input-tel.js +1 -1
  91. package/dist/collection/components/diwa-input-text/diwa-input-text.js +1 -1
  92. package/dist/collection/components/diwa-input-time/diwa-input-time.js +1 -1
  93. package/dist/collection/components/diwa-input-url/diwa-input-url.js +1 -1
  94. package/dist/collection/components/diwa-input-week/diwa-input-week.js +1 -1
  95. package/dist/collection/components/diwa-link/diwa-link.js +1 -1
  96. package/dist/collection/components/diwa-link-pure/diwa-link-pure.js +1 -1
  97. package/dist/collection/components/diwa-modal/diwa-modal.js +1 -1
  98. package/dist/collection/components/diwa-multi-select/diwa-multi-select.js +2 -2
  99. package/dist/collection/components/diwa-multi-select-option/diwa-multi-select-option.js +1 -1
  100. package/dist/collection/components/diwa-pagination/diwa-pagination.js +1 -1
  101. package/dist/collection/components/diwa-pin-code/diwa-pin-code.js +2 -2
  102. package/dist/collection/components/diwa-popover/diwa-popover.js +1 -1
  103. package/dist/collection/components/diwa-radio-group/diwa-radio-group.js +1 -1
  104. package/dist/collection/components/diwa-radio-group-item/diwa-radio-group-item-styles.js +1 -2
  105. package/dist/collection/components/diwa-radio-group-item/diwa-radio-group-item-styles.js.map +1 -1
  106. package/dist/collection/components/diwa-radio-group-item/diwa-radio-group-item.js +1 -1
  107. package/dist/collection/components/diwa-scroller/diwa-scroller-styles.js +14 -9
  108. package/dist/collection/components/diwa-scroller/diwa-scroller-styles.js.map +1 -1
  109. package/dist/collection/components/diwa-scroller/diwa-scroller.js +9 -13
  110. package/dist/collection/components/diwa-scroller/diwa-scroller.js.map +1 -1
  111. package/dist/collection/components/diwa-segmented-control/diwa-segmented-control.js +1 -1
  112. package/dist/collection/components/diwa-segmented-control-item/diwa-segmented-control-item.js +1 -1
  113. package/dist/collection/components/diwa-select/diwa-select.js +17 -1
  114. package/dist/collection/components/diwa-select/diwa-select.js.map +1 -1
  115. package/dist/collection/components/diwa-select-option/diwa-select-option-styles.js +21 -9
  116. package/dist/collection/components/diwa-select-option/diwa-select-option-styles.js.map +1 -1
  117. package/dist/collection/components/diwa-select-option/diwa-select-option.js +23 -1
  118. package/dist/collection/components/diwa-select-option/diwa-select-option.js.map +1 -1
  119. package/dist/collection/components/diwa-spinner/diwa-spinner.js +1 -1
  120. package/dist/collection/components/diwa-stepper-horizontal/diwa-stepper-horizontal.js +1 -1
  121. package/dist/collection/components/diwa-stepper-horizontal-item/diwa-stepper-horizontal-item.js +1 -1
  122. package/dist/collection/components/diwa-switch/diwa-switch.js +1 -1
  123. package/dist/collection/components/diwa-table/diwa-table-styles.js +81 -42
  124. package/dist/collection/components/diwa-table/diwa-table-styles.js.map +1 -1
  125. package/dist/collection/components/diwa-table/diwa-table.js +3 -2
  126. package/dist/collection/components/diwa-table/diwa-table.js.map +1 -1
  127. package/dist/collection/components/diwa-table-body/diwa-table-body.js +1 -1
  128. package/dist/collection/components/diwa-table-cell/diwa-table-cell-styles.js +14 -14
  129. package/dist/collection/components/diwa-table-cell/diwa-table-cell-styles.js.map +1 -1
  130. package/dist/collection/components/diwa-table-cell/diwa-table-cell.js +1 -1
  131. package/dist/collection/components/diwa-table-cell/diwa-table-cell.js.map +1 -1
  132. package/dist/collection/components/diwa-table-head/diwa-table-head-styles.js +15 -10
  133. package/dist/collection/components/diwa-table-head/diwa-table-head-styles.js.map +1 -1
  134. package/dist/collection/components/diwa-table-head/diwa-table-head.js +1 -1
  135. package/dist/collection/components/diwa-table-head-cell/diwa-table-head-cell-styles.js +60 -49
  136. package/dist/collection/components/diwa-table-head-cell/diwa-table-head-cell-styles.js.map +1 -1
  137. package/dist/collection/components/diwa-table-head-cell/diwa-table-head-cell.js +4 -4
  138. package/dist/collection/components/diwa-table-head-cell/diwa-table-head-cell.js.map +1 -1
  139. package/dist/collection/components/diwa-table-row/diwa-table-row-styles.js +10 -9
  140. package/dist/collection/components/diwa-table-row/diwa-table-row-styles.js.map +1 -1
  141. package/dist/collection/components/diwa-table-row/diwa-table-row.js +1 -1
  142. package/dist/collection/components/diwa-tabs/diwa-tabs-styles.js +11 -11
  143. package/dist/collection/components/diwa-tabs/diwa-tabs-styles.js.map +1 -1
  144. package/dist/collection/components/diwa-tabs/diwa-tabs.js +1 -1
  145. package/dist/collection/components/diwa-tabs-bar/diwa-tabs-bar.js +1 -1
  146. package/dist/collection/components/diwa-tabs-item/diwa-tabs-item.js +1 -1
  147. package/dist/collection/components/diwa-tag/diwa-tag-styles.js +1 -1
  148. package/dist/collection/components/diwa-tag/diwa-tag-styles.js.map +1 -1
  149. package/dist/collection/components/diwa-tag/diwa-tag.js +1 -1
  150. package/dist/collection/components/diwa-tag-dismissible/diwa-tag-dismissible-styles.js +5 -6
  151. package/dist/collection/components/diwa-tag-dismissible/diwa-tag-dismissible-styles.js.map +1 -1
  152. package/dist/collection/components/diwa-tag-dismissible/diwa-tag-dismissible.js +1 -2
  153. package/dist/collection/components/diwa-tag-dismissible/diwa-tag-dismissible.js.map +1 -1
  154. package/dist/collection/components/diwa-text/diwa-text.js +1 -1
  155. package/dist/collection/components/diwa-text-list/diwa-text-list.js +1 -1
  156. package/dist/collection/components/diwa-text-list-item/diwa-text-list-item.js +1 -1
  157. package/dist/collection/components/diwa-textarea/diwa-textarea.js +1 -1
  158. package/dist/collection/components/diwa-toast/diwa-toast-manager.js +96 -0
  159. package/dist/collection/components/diwa-toast/diwa-toast-manager.js.map +1 -0
  160. package/dist/collection/components/diwa-toast/diwa-toast.js +24 -25
  161. package/dist/collection/components/diwa-toast/diwa-toast.js.map +1 -1
  162. package/dist/collection/components/diwa-toast-item/diwa-toast-item.js +1 -1
  163. package/dist/diwa-components/diwa-components.css +2 -2
  164. package/dist/diwa-components/diwa-components.esm.js +1 -1
  165. package/dist/diwa-components/diwa-components.esm.js.map +1 -1
  166. package/dist/diwa-components/{p-2b54c761.entry.js → p-09f2e643.entry.js} +2 -2
  167. package/dist/diwa-components/{p-4ac5a26e.entry.js → p-117dc41d.entry.js} +2 -2
  168. package/dist/diwa-components/p-117dc41d.entry.js.map +1 -0
  169. package/dist/diwa-components/{p-1022a474.entry.js → p-1250d0c7.entry.js} +2 -2
  170. package/dist/diwa-components/{p-1a1bd7ed.entry.js → p-13e71247.entry.js} +2 -2
  171. package/dist/diwa-components/p-1830772d.entry.js +2 -0
  172. package/dist/diwa-components/{p-f4a589b5.entry.js → p-1d708e1e.entry.js} +2 -2
  173. package/dist/diwa-components/{p-bb04cdd6.entry.js → p-238da82a.entry.js} +2 -2
  174. package/dist/diwa-components/p-29419c9a.entry.js +2 -0
  175. package/dist/diwa-components/p-29419c9a.entry.js.map +1 -0
  176. package/dist/diwa-components/{p-c896dfa5.entry.js → p-3269a4b7.entry.js} +2 -2
  177. package/dist/diwa-components/p-35b69160.entry.js +2 -0
  178. package/dist/diwa-components/p-35b69160.entry.js.map +1 -0
  179. package/dist/diwa-components/{p-fbe73240.entry.js → p-3660b09a.entry.js} +2 -2
  180. package/dist/diwa-components/{p-c37374ab.entry.js → p-36b004e9.entry.js} +2 -2
  181. package/dist/diwa-components/p-37e1bea3.entry.js +2 -0
  182. package/dist/diwa-components/p-37e1bea3.entry.js.map +1 -0
  183. package/dist/diwa-components/{p-851cbfb8.entry.js → p-3b38fa01.entry.js} +2 -2
  184. package/dist/diwa-components/p-3fb5cc30.entry.js +2 -0
  185. package/dist/diwa-components/p-429c596d.entry.js +2 -0
  186. package/dist/diwa-components/p-429c596d.entry.js.map +1 -0
  187. package/dist/diwa-components/p-50866c5a.entry.js +2 -0
  188. package/dist/diwa-components/p-50866c5a.entry.js.map +1 -0
  189. package/dist/diwa-components/p-5a597e27.entry.js +2 -0
  190. package/dist/diwa-components/p-5f9139bc.entry.js +2 -0
  191. package/dist/diwa-components/p-5f9139bc.entry.js.map +1 -0
  192. package/dist/diwa-components/p-66c15f66.entry.js +2 -0
  193. package/dist/diwa-components/p-66c53adc.entry.js +2 -0
  194. package/dist/diwa-components/p-66c53adc.entry.js.map +1 -0
  195. package/dist/diwa-components/{p-6253fff6.entry.js → p-71c45961.entry.js} +2 -2
  196. package/dist/diwa-components/{p-358e1177.entry.js → p-78b16866.entry.js} +2 -2
  197. package/dist/diwa-components/p-7a99a2aa.entry.js +2 -0
  198. package/dist/diwa-components/p-7a99a2aa.entry.js.map +1 -0
  199. package/dist/diwa-components/p-7dc7291f.entry.js +2 -0
  200. package/dist/diwa-components/{p-09a9e0a0.entry.js → p-8369c48e.entry.js} +2 -2
  201. package/dist/diwa-components/{p-c0614fb1.entry.js → p-8506ea0c.entry.js} +2 -2
  202. package/dist/diwa-components/p-863c88a4.entry.js +2 -0
  203. package/dist/diwa-components/{p-339f6ba7.entry.js.map → p-863c88a4.entry.js.map} +1 -1
  204. package/dist/diwa-components/{p-ba1ffa71.entry.js → p-87932af2.entry.js} +2 -2
  205. package/dist/diwa-components/{p-48009a79.entry.js → p-926e283b.entry.js} +2 -2
  206. package/dist/diwa-components/p-952af214.entry.js +2 -0
  207. package/dist/diwa-components/p-952af214.entry.js.map +1 -0
  208. package/dist/diwa-components/{p-4ff58224.entry.js → p-95b0fdea.entry.js} +2 -2
  209. package/dist/diwa-components/p-9910d570.entry.js +2 -0
  210. package/dist/diwa-components/p-9910d570.entry.js.map +1 -0
  211. package/dist/diwa-components/{p-20fd1505.entry.js → p-998dd88e.entry.js} +2 -2
  212. package/dist/diwa-components/p-9ade0403.entry.js +2 -0
  213. package/dist/diwa-components/{p-57db0c31.entry.js → p-9c89e586.entry.js} +2 -2
  214. package/dist/diwa-components/p-b072ff72.entry.js +2 -0
  215. package/dist/diwa-components/p-b072ff72.entry.js.map +1 -0
  216. package/dist/diwa-components/{p-565f623e.entry.js → p-bd501daa.entry.js} +2 -2
  217. package/dist/diwa-components/{p-c1c85f9e.entry.js → p-c6ca8d8b.entry.js} +2 -2
  218. package/dist/diwa-components/{p-53e21a74.entry.js → p-c78591ce.entry.js} +2 -2
  219. package/dist/diwa-components/{p-996f7110.entry.js → p-cc0e1662.entry.js} +2 -2
  220. package/dist/diwa-components/{p-711e295e.entry.js → p-d25377eb.entry.js} +2 -2
  221. package/dist/diwa-components/{p-7f0ce623.entry.js → p-d917625e.entry.js} +2 -2
  222. package/dist/diwa-components/{p-d0762292.entry.js → p-db70e030.entry.js} +2 -2
  223. package/dist/diwa-components/p-db70e030.entry.js.map +1 -0
  224. package/dist/diwa-components/p-def36bc4.entry.js +2 -0
  225. package/dist/diwa-components/p-def36bc4.entry.js.map +1 -0
  226. package/dist/diwa-components/p-e137afc9.entry.js +2 -0
  227. package/dist/diwa-components/{p-666844e0.entry.js → p-e1935375.entry.js} +2 -2
  228. package/dist/diwa-components/{p-87ea8001.entry.js → p-e602c199.entry.js} +2 -2
  229. package/dist/diwa-components/{p-9f140e14.entry.js → p-e9673253.entry.js} +2 -2
  230. package/dist/diwa-components/p-f44d4091.entry.js +2 -0
  231. package/dist/diwa-components/p-f44d4091.entry.js.map +1 -0
  232. package/dist/diwa-components/p-f60f1d81.entry.js +2 -0
  233. package/dist/diwa-components/p-fae653f7.entry.js +2 -0
  234. package/dist/esm/diwa-checkbox.entry.js +1 -3
  235. package/dist/esm/diwa-checkbox.entry.js.map +1 -1
  236. package/dist/esm/diwa-components.js +1 -1
  237. package/dist/esm/diwa-heading.entry.js +122 -0
  238. package/dist/esm/diwa-heading.entry.js.map +1 -0
  239. package/dist/esm/diwa-icon.entry.js +1 -1
  240. package/dist/esm/diwa-inline-notification.entry.js +1 -1
  241. package/dist/esm/diwa-input-date.entry.js +1 -1
  242. package/dist/esm/diwa-input-email.entry.js +1 -1
  243. package/dist/esm/diwa-input-month.entry.js +1 -1
  244. package/dist/esm/diwa-input-number.entry.js +1 -1
  245. package/dist/esm/diwa-input-password.entry.js +1 -1
  246. package/dist/esm/diwa-input-search.entry.js +1 -1
  247. package/dist/esm/diwa-input-tel.entry.js +1 -1
  248. package/dist/esm/diwa-input-text.entry.js +1 -1
  249. package/dist/esm/diwa-input-time.entry.js +1 -1
  250. package/dist/esm/diwa-input-url.entry.js +1 -1
  251. package/dist/esm/diwa-input-week.entry.js +1 -1
  252. package/dist/esm/diwa-input.entry.js +1 -1
  253. package/dist/esm/diwa-link-pure.entry.js +1 -1
  254. package/dist/esm/diwa-link.entry.js +1 -1
  255. package/dist/esm/diwa-modal.entry.js +1 -1
  256. package/dist/esm/diwa-multi-select-option.entry.js +1 -1
  257. package/dist/esm/diwa-multi-select.entry.js +2 -2
  258. package/dist/esm/diwa-pagination.entry.js +1 -1
  259. package/dist/esm/diwa-pin-code.entry.js +2 -2
  260. package/dist/esm/diwa-popover.entry.js +1 -1
  261. package/dist/esm/diwa-radio-group-item.entry.js +2 -3
  262. package/dist/esm/diwa-radio-group-item.entry.js.map +1 -1
  263. package/dist/esm/diwa-radio-group.entry.js +1 -1
  264. package/dist/esm/diwa-scroller.entry.js +23 -13
  265. package/dist/esm/diwa-scroller.entry.js.map +1 -1
  266. package/dist/esm/diwa-segmented-control-item.entry.js +1 -1
  267. package/dist/esm/diwa-segmented-control.entry.js +1 -1
  268. package/dist/esm/diwa-select-option.entry.js +24 -10
  269. package/dist/esm/diwa-select-option.entry.js.map +1 -1
  270. package/dist/esm/diwa-select.entry.js +15 -1
  271. package/dist/esm/diwa-select.entry.js.map +1 -1
  272. package/dist/esm/diwa-spinner.entry.js +1 -1
  273. package/dist/esm/diwa-stepper-horizontal-item.entry.js +1 -1
  274. package/dist/esm/diwa-stepper-horizontal.entry.js +1 -1
  275. package/dist/esm/diwa-switch.entry.js +1 -1
  276. package/dist/esm/diwa-table-body.entry.js +1 -1
  277. package/dist/esm/diwa-table-cell.entry.js +15 -15
  278. package/dist/esm/diwa-table-cell.entry.js.map +1 -1
  279. package/dist/esm/diwa-table-head-cell.entry.js +64 -53
  280. package/dist/esm/diwa-table-head-cell.entry.js.map +1 -1
  281. package/dist/esm/diwa-table-head.entry.js +16 -11
  282. package/dist/esm/diwa-table-head.entry.js.map +1 -1
  283. package/dist/esm/diwa-table-row.entry.js +11 -10
  284. package/dist/esm/diwa-table-row.entry.js.map +1 -1
  285. package/dist/esm/diwa-table.entry.js +83 -43
  286. package/dist/esm/diwa-table.entry.js.map +1 -1
  287. package/dist/esm/diwa-tabs-bar.entry.js +1 -1
  288. package/dist/esm/diwa-tabs-item.entry.js +1 -1
  289. package/dist/esm/diwa-tabs.entry.js +12 -12
  290. package/dist/esm/diwa-tabs.entry.js.map +1 -1
  291. package/dist/esm/diwa-tag-dismissible.entry.js +6 -8
  292. package/dist/esm/diwa-tag-dismissible.entry.js.map +1 -1
  293. package/dist/esm/diwa-tag.entry.js +2 -2
  294. package/dist/esm/diwa-tag.entry.js.map +1 -1
  295. package/dist/esm/diwa-text-list-item.entry.js +1 -1
  296. package/dist/esm/diwa-text-list.entry.js +1 -1
  297. package/dist/esm/diwa-text.entry.js +1 -1
  298. package/dist/esm/diwa-textarea.entry.js +1 -1
  299. package/dist/esm/diwa-toast-item.entry.js +1 -1
  300. package/dist/esm/diwa-toast.entry.js +111 -17
  301. package/dist/esm/diwa-toast.entry.js.map +1 -1
  302. package/dist/esm/loader.js +1 -1
  303. package/dist/types/components/diwa-heading/diwa-heading-styles.d.ts +3 -0
  304. package/dist/types/components/diwa-heading/diwa-heading-utils.d.ts +10 -0
  305. package/dist/types/components/diwa-heading/diwa-heading.d.ts +49 -0
  306. package/dist/types/components/diwa-heading/types.d.ts +17 -0
  307. package/dist/types/components/diwa-scroller/diwa-scroller-styles.d.ts +1 -1
  308. package/dist/types/components/diwa-scroller/diwa-scroller.d.ts +2 -1
  309. package/dist/types/components/diwa-select/diwa-select.d.ts +2 -0
  310. package/dist/types/components/diwa-select-option/diwa-select-option.d.ts +2 -0
  311. package/dist/types/components/diwa-table/diwa-table.d.ts +1 -1
  312. package/dist/types/components/diwa-toast/diwa-toast-manager.d.ts +34 -0
  313. package/dist/types/components/diwa-toast/diwa-toast.d.ts +12 -12
  314. package/dist/types/components.d.ts +144 -25
  315. package/dist-custom-elements/diwa-accordion.js +1 -1
  316. package/dist-custom-elements/diwa-button-pure.js +1 -1
  317. package/dist-custom-elements/diwa-button.js +1 -1
  318. package/dist-custom-elements/diwa-checkbox.js +1 -3
  319. package/dist-custom-elements/diwa-checkbox.js.map +1 -1
  320. package/dist-custom-elements/diwa-flyout.js +2 -2
  321. package/dist-custom-elements/diwa-heading.d.ts +11 -0
  322. package/dist-custom-elements/diwa-heading.js +149 -0
  323. package/dist-custom-elements/diwa-heading.js.map +1 -0
  324. package/dist-custom-elements/diwa-icon.js +1 -1
  325. package/dist-custom-elements/diwa-inline-notification.js +3 -3
  326. package/dist-custom-elements/diwa-input-date.js +1 -1
  327. package/dist-custom-elements/diwa-input-email.js +1 -1
  328. package/dist-custom-elements/diwa-input-month.js +1 -1
  329. package/dist-custom-elements/diwa-input-number.js +1 -1
  330. package/dist-custom-elements/diwa-input-password.js +2 -2
  331. package/dist-custom-elements/diwa-input-search.js +2 -2
  332. package/dist-custom-elements/diwa-input-tel.js +1 -1
  333. package/dist-custom-elements/diwa-input-text.js +1 -1
  334. package/dist-custom-elements/diwa-input-time.js +1 -1
  335. package/dist-custom-elements/diwa-input-url.js +1 -1
  336. package/dist-custom-elements/diwa-input-week.js +1 -1
  337. package/dist-custom-elements/diwa-input.js +1 -1
  338. package/dist-custom-elements/diwa-link-pure.js +2 -2
  339. package/dist-custom-elements/diwa-link.js +2 -2
  340. package/dist-custom-elements/diwa-modal.js +1 -1
  341. package/dist-custom-elements/diwa-multi-select-option.js +1 -1
  342. package/dist-custom-elements/diwa-multi-select.js +2 -2
  343. package/dist-custom-elements/diwa-pagination.js +1 -1
  344. package/dist-custom-elements/diwa-pin-code.js +2 -2
  345. package/dist-custom-elements/diwa-popover.js +1 -1
  346. package/dist-custom-elements/diwa-radio-group-item.js +2 -3
  347. package/dist-custom-elements/diwa-radio-group-item.js.map +1 -1
  348. package/dist-custom-elements/diwa-radio-group.js +1 -1
  349. package/dist-custom-elements/diwa-scroller.js +24 -14
  350. package/dist-custom-elements/diwa-scroller.js.map +1 -1
  351. package/dist-custom-elements/diwa-segmented-control-item.js +1 -1
  352. package/dist-custom-elements/diwa-segmented-control.js +1 -1
  353. package/dist-custom-elements/diwa-select-option.js +25 -10
  354. package/dist-custom-elements/diwa-select-option.js.map +1 -1
  355. package/dist-custom-elements/diwa-select.js +16 -1
  356. package/dist-custom-elements/diwa-select.js.map +1 -1
  357. package/dist-custom-elements/diwa-spinner.js +1 -1
  358. package/dist-custom-elements/diwa-stepper-horizontal-item.js +1 -1
  359. package/dist-custom-elements/diwa-stepper-horizontal.js +1 -1
  360. package/dist-custom-elements/diwa-switch.js +2 -2
  361. package/dist-custom-elements/diwa-table-body.js +1 -1
  362. package/dist-custom-elements/diwa-table-cell.js +15 -15
  363. package/dist-custom-elements/diwa-table-cell.js.map +1 -1
  364. package/dist-custom-elements/diwa-table-head-cell.js +64 -53
  365. package/dist-custom-elements/diwa-table-head-cell.js.map +1 -1
  366. package/dist-custom-elements/diwa-table-head.js +16 -11
  367. package/dist-custom-elements/diwa-table-head.js.map +1 -1
  368. package/dist-custom-elements/diwa-table-row.js +11 -10
  369. package/dist-custom-elements/diwa-table-row.js.map +1 -1
  370. package/dist-custom-elements/diwa-table.js +83 -43
  371. package/dist-custom-elements/diwa-table.js.map +1 -1
  372. package/dist-custom-elements/diwa-tabs-bar.js +1 -1
  373. package/dist-custom-elements/diwa-tabs-item.js +1 -1
  374. package/dist-custom-elements/diwa-tabs.js +12 -12
  375. package/dist-custom-elements/diwa-tabs.js.map +1 -1
  376. package/dist-custom-elements/diwa-tag-dismissible.js +6 -8
  377. package/dist-custom-elements/diwa-tag-dismissible.js.map +1 -1
  378. package/dist-custom-elements/diwa-tag.js +3 -3
  379. package/dist-custom-elements/diwa-tag.js.map +1 -1
  380. package/dist-custom-elements/diwa-text-list-item.js +1 -1
  381. package/dist-custom-elements/diwa-text-list.js +1 -1
  382. package/dist-custom-elements/diwa-text.js +1 -1
  383. package/dist-custom-elements/diwa-textarea.js +1 -1
  384. package/dist-custom-elements/diwa-toast-item.js +1 -1
  385. package/dist-custom-elements/diwa-toast.js +113 -19
  386. package/dist-custom-elements/diwa-toast.js.map +1 -1
  387. package/dist-custom-elements/{p-54e5b3fb.js → p-105f3f97.js} +2 -2
  388. package/dist-custom-elements/{p-54e5b3fb.js.map → p-105f3f97.js.map} +1 -1
  389. package/dist-custom-elements/{p-f480bce8.js → p-7c951f7f.js} +2 -2
  390. package/dist-custom-elements/{p-f480bce8.js.map → p-7c951f7f.js.map} +1 -1
  391. package/dist-custom-elements/{p-302af10d.js → p-8972ae69.js} +2 -2
  392. package/dist-custom-elements/{p-302af10d.js.map → p-8972ae69.js.map} +1 -1
  393. package/dist-custom-elements/{p-ed901570.js → p-b7255dc4.js} +2 -2
  394. package/dist-custom-elements/{p-ed901570.js.map → p-b7255dc4.js.map} +1 -1
  395. package/package.json +11 -9
  396. package/dist/diwa-components/p-043e3e19.entry.js +0 -2
  397. package/dist/diwa-components/p-05988905.entry.js +0 -2
  398. package/dist/diwa-components/p-08c584fb.entry.js +0 -2
  399. package/dist/diwa-components/p-08c584fb.entry.js.map +0 -1
  400. package/dist/diwa-components/p-0cbe8ed4.entry.js +0 -2
  401. package/dist/diwa-components/p-0cbe8ed4.entry.js.map +0 -1
  402. package/dist/diwa-components/p-139f619d.entry.js +0 -2
  403. package/dist/diwa-components/p-139f619d.entry.js.map +0 -1
  404. package/dist/diwa-components/p-178d18c2.entry.js +0 -2
  405. package/dist/diwa-components/p-178d18c2.entry.js.map +0 -1
  406. package/dist/diwa-components/p-2b72a324.entry.js +0 -2
  407. package/dist/diwa-components/p-339f6ba7.entry.js +0 -2
  408. package/dist/diwa-components/p-3b7a1431.entry.js +0 -2
  409. package/dist/diwa-components/p-3b7a1431.entry.js.map +0 -1
  410. package/dist/diwa-components/p-4a84fee8.entry.js +0 -2
  411. package/dist/diwa-components/p-4ac5a26e.entry.js.map +0 -1
  412. package/dist/diwa-components/p-51673c06.entry.js +0 -2
  413. package/dist/diwa-components/p-51673c06.entry.js.map +0 -1
  414. package/dist/diwa-components/p-5c2325aa.entry.js +0 -2
  415. package/dist/diwa-components/p-5cd79382.entry.js +0 -2
  416. package/dist/diwa-components/p-67950f59.entry.js +0 -2
  417. package/dist/diwa-components/p-67950f59.entry.js.map +0 -1
  418. package/dist/diwa-components/p-8012c384.entry.js +0 -2
  419. package/dist/diwa-components/p-8012c384.entry.js.map +0 -1
  420. package/dist/diwa-components/p-9088f057.entry.js +0 -2
  421. package/dist/diwa-components/p-94f603c2.entry.js +0 -2
  422. package/dist/diwa-components/p-94f603c2.entry.js.map +0 -1
  423. package/dist/diwa-components/p-b7132ea7.entry.js +0 -2
  424. package/dist/diwa-components/p-b7132ea7.entry.js.map +0 -1
  425. package/dist/diwa-components/p-b988c5b3.entry.js +0 -2
  426. package/dist/diwa-components/p-b988c5b3.entry.js.map +0 -1
  427. package/dist/diwa-components/p-bc2eecd2.entry.js +0 -2
  428. package/dist/diwa-components/p-cf960cf6.entry.js +0 -2
  429. package/dist/diwa-components/p-d0762292.entry.js.map +0 -1
  430. package/dist/diwa-components/p-f22b6145.entry.js +0 -2
  431. package/dist/diwa-components/p-f22b6145.entry.js.map +0 -1
  432. /package/dist/diwa-components/{p-2b54c761.entry.js.map → p-09f2e643.entry.js.map} +0 -0
  433. /package/dist/diwa-components/{p-1022a474.entry.js.map → p-1250d0c7.entry.js.map} +0 -0
  434. /package/dist/diwa-components/{p-1a1bd7ed.entry.js.map → p-13e71247.entry.js.map} +0 -0
  435. /package/dist/diwa-components/{p-711e295e.entry.js.map → p-1830772d.entry.js.map} +0 -0
  436. /package/dist/diwa-components/{p-f4a589b5.entry.js.map → p-1d708e1e.entry.js.map} +0 -0
  437. /package/dist/diwa-components/{p-bb04cdd6.entry.js.map → p-238da82a.entry.js.map} +0 -0
  438. /package/dist/diwa-components/{p-c896dfa5.entry.js.map → p-3269a4b7.entry.js.map} +0 -0
  439. /package/dist/diwa-components/{p-fbe73240.entry.js.map → p-3660b09a.entry.js.map} +0 -0
  440. /package/dist/diwa-components/{p-c37374ab.entry.js.map → p-36b004e9.entry.js.map} +0 -0
  441. /package/dist/diwa-components/{p-851cbfb8.entry.js.map → p-3b38fa01.entry.js.map} +0 -0
  442. /package/dist/diwa-components/{p-4a84fee8.entry.js.map → p-3fb5cc30.entry.js.map} +0 -0
  443. /package/dist/diwa-components/{p-5cd79382.entry.js.map → p-5a597e27.entry.js.map} +0 -0
  444. /package/dist/diwa-components/{p-043e3e19.entry.js.map → p-66c15f66.entry.js.map} +0 -0
  445. /package/dist/diwa-components/{p-6253fff6.entry.js.map → p-71c45961.entry.js.map} +0 -0
  446. /package/dist/diwa-components/{p-358e1177.entry.js.map → p-78b16866.entry.js.map} +0 -0
  447. /package/dist/diwa-components/{p-05988905.entry.js.map → p-7dc7291f.entry.js.map} +0 -0
  448. /package/dist/diwa-components/{p-09a9e0a0.entry.js.map → p-8369c48e.entry.js.map} +0 -0
  449. /package/dist/diwa-components/{p-bc2eecd2.entry.js.map → p-8506ea0c.entry.js.map} +0 -0
  450. /package/dist/diwa-components/{p-ba1ffa71.entry.js.map → p-87932af2.entry.js.map} +0 -0
  451. /package/dist/diwa-components/{p-48009a79.entry.js.map → p-926e283b.entry.js.map} +0 -0
  452. /package/dist/diwa-components/{p-4ff58224.entry.js.map → p-95b0fdea.entry.js.map} +0 -0
  453. /package/dist/diwa-components/{p-20fd1505.entry.js.map → p-998dd88e.entry.js.map} +0 -0
  454. /package/dist/diwa-components/{p-5c2325aa.entry.js.map → p-9ade0403.entry.js.map} +0 -0
  455. /package/dist/diwa-components/{p-57db0c31.entry.js.map → p-9c89e586.entry.js.map} +0 -0
  456. /package/dist/diwa-components/{p-565f623e.entry.js.map → p-bd501daa.entry.js.map} +0 -0
  457. /package/dist/diwa-components/{p-c1c85f9e.entry.js.map → p-c6ca8d8b.entry.js.map} +0 -0
  458. /package/dist/diwa-components/{p-53e21a74.entry.js.map → p-c78591ce.entry.js.map} +0 -0
  459. /package/dist/diwa-components/{p-996f7110.entry.js.map → p-cc0e1662.entry.js.map} +0 -0
  460. /package/dist/diwa-components/{p-9088f057.entry.js.map → p-d25377eb.entry.js.map} +0 -0
  461. /package/dist/diwa-components/{p-7f0ce623.entry.js.map → p-d917625e.entry.js.map} +0 -0
  462. /package/dist/diwa-components/{p-2b72a324.entry.js.map → p-e137afc9.entry.js.map} +0 -0
  463. /package/dist/diwa-components/{p-666844e0.entry.js.map → p-e1935375.entry.js.map} +0 -0
  464. /package/dist/diwa-components/{p-87ea8001.entry.js.map → p-e602c199.entry.js.map} +0 -0
  465. /package/dist/diwa-components/{p-9f140e14.entry.js.map → p-e9673253.entry.js.map} +0 -0
  466. /package/dist/diwa-components/{p-cf960cf6.entry.js.map → p-f60f1d81.entry.js.map} +0 -0
  467. /package/dist/diwa-components/{p-c0614fb1.entry.js.map → p-fae653f7.entry.js.map} +0 -0
@@ -0,0 +1,235 @@
1
+ import { Host, h } from "@stencil/core";
2
+ import { getComponentCss } from "./diwa-heading-styles";
3
+ import { getHeadingTag } from "./diwa-heading-utils";
4
+ /**
5
+ * @component diwa-heading
6
+ *
7
+ * A responsive heading renderer that maps a visual size scale onto the
8
+ * correct semantic HTML heading element. Font sizes use fluid type tokens
9
+ * that scale between viewport sizes.
10
+ *
11
+ * Usage:
12
+ * <diwa-heading size="h1">Page title</diwa-heading>
13
+ * <diwa-heading size="display" color="secondary">Hero headline</diwa-heading>
14
+ * <diwa-heading size="h3" tag="h2">Visual h3, semantic h2</diwa-heading>
15
+ *
16
+ * @slot default — Heading text content. Inline elements are allowed; block elements are not.
17
+ */
18
+ export class DiwaHeading {
19
+ constructor() {
20
+ // ──────────────────────────────────────────────────────────────
21
+ // Props
22
+ // ──────────────────────────────────────────────────────────────
23
+ /** Per-component theme override. */
24
+ this.theme = 'dark';
25
+ /**
26
+ * Visual size and inferred semantic heading level.
27
+ * Determines the rendered HTML tag when no explicit `tag` prop is given.
28
+ */
29
+ this.size = 'h2';
30
+ /** Font weight. */
31
+ this.weight = 'bold';
32
+ /** Horizontal alignment. `start` and `end` are RTL-aware. */
33
+ this.align = 'start';
34
+ /**
35
+ * Colour alias. Use `inherit` to pass through the surrounding colour unchanged —
36
+ * useful inside cards, hero sections, or other styled containers.
37
+ */
38
+ this.color = 'primary';
39
+ /**
40
+ * Clip overflow to a single line with a trailing ellipsis.
41
+ * The host element must have a defined width for this to take effect.
42
+ */
43
+ this.ellipsis = false;
44
+ }
45
+ // ──────────────────────────────────────────────────────────────
46
+ // Render
47
+ // ──────────────────────────────────────────────────────────────
48
+ render() {
49
+ const Tag = getHeadingTag(this.host, this.size, this.tag); // eslint-disable-line @typescript-eslint/no-explicit-any
50
+ return (h(Host, { key: 'af31da4a1b31e1a28f9de05da4c5517dbfb7fdbd', "data-theme": this.theme }, h("style", { key: 'c9616c82eae3dada3edcf5c89b7f9b88716bae55', innerHTML: getComponentCss(this.size, this.weight, this.align, this.color, this.ellipsis) }), h(Tag, { key: 'd265ccdd08cdbc29ba15043a67769b78e8cfe4cb', class: "heading" }, h("slot", { key: '7c7bfb3d32b839469bfba2ec02173d1f71f03812' }))));
51
+ }
52
+ static get is() { return "diwa-heading"; }
53
+ static get encapsulation() { return "shadow"; }
54
+ static get properties() {
55
+ return {
56
+ "theme": {
57
+ "type": "string",
58
+ "mutable": false,
59
+ "complexType": {
60
+ "original": "Theme",
61
+ "resolved": "\"dark\" | \"light\"",
62
+ "references": {
63
+ "Theme": {
64
+ "location": "import",
65
+ "path": "../../utils/styles",
66
+ "id": "src/utils/styles.ts::Theme"
67
+ }
68
+ }
69
+ },
70
+ "required": false,
71
+ "optional": false,
72
+ "docs": {
73
+ "tags": [],
74
+ "text": "Per-component theme override."
75
+ },
76
+ "getter": false,
77
+ "setter": false,
78
+ "attribute": "theme",
79
+ "reflect": true,
80
+ "defaultValue": "'dark'"
81
+ },
82
+ "size": {
83
+ "type": "string",
84
+ "mutable": false,
85
+ "complexType": {
86
+ "original": "HeadingSize",
87
+ "resolved": "\"display\" | \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\" | \"inherit\"",
88
+ "references": {
89
+ "HeadingSize": {
90
+ "location": "import",
91
+ "path": "./types",
92
+ "id": "src/components/diwa-heading/types.ts::HeadingSize"
93
+ }
94
+ }
95
+ },
96
+ "required": false,
97
+ "optional": false,
98
+ "docs": {
99
+ "tags": [],
100
+ "text": "Visual size and inferred semantic heading level.\r\nDetermines the rendered HTML tag when no explicit `tag` prop is given."
101
+ },
102
+ "getter": false,
103
+ "setter": false,
104
+ "attribute": "size",
105
+ "reflect": true,
106
+ "defaultValue": "'h2'"
107
+ },
108
+ "tag": {
109
+ "type": "string",
110
+ "mutable": false,
111
+ "complexType": {
112
+ "original": "HeadingTag",
113
+ "resolved": "\"div\" | \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\" | undefined",
114
+ "references": {
115
+ "HeadingTag": {
116
+ "location": "import",
117
+ "path": "./types",
118
+ "id": "src/components/diwa-heading/types.ts::HeadingTag"
119
+ }
120
+ }
121
+ },
122
+ "required": false,
123
+ "optional": true,
124
+ "docs": {
125
+ "tags": [],
126
+ "text": "Override the rendered HTML tag.\r\nUse when the visual size must differ from the semantic level \u2014\r\ne.g. a visually-large `h3` inside a section that already has an `h2`.\r\nIf omitted, the tag is inferred from `size`."
127
+ },
128
+ "getter": false,
129
+ "setter": false,
130
+ "attribute": "tag",
131
+ "reflect": true
132
+ },
133
+ "weight": {
134
+ "type": "string",
135
+ "mutable": false,
136
+ "complexType": {
137
+ "original": "HeadingWeight",
138
+ "resolved": "\"bold\" | \"semibold\"",
139
+ "references": {
140
+ "HeadingWeight": {
141
+ "location": "import",
142
+ "path": "./types",
143
+ "id": "src/components/diwa-heading/types.ts::HeadingWeight"
144
+ }
145
+ }
146
+ },
147
+ "required": false,
148
+ "optional": false,
149
+ "docs": {
150
+ "tags": [],
151
+ "text": "Font weight."
152
+ },
153
+ "getter": false,
154
+ "setter": false,
155
+ "attribute": "weight",
156
+ "reflect": true,
157
+ "defaultValue": "'bold'"
158
+ },
159
+ "align": {
160
+ "type": "string",
161
+ "mutable": false,
162
+ "complexType": {
163
+ "original": "HeadingAlign",
164
+ "resolved": "\"center\" | \"end\" | \"start\"",
165
+ "references": {
166
+ "HeadingAlign": {
167
+ "location": "import",
168
+ "path": "./types",
169
+ "id": "src/components/diwa-heading/types.ts::HeadingAlign"
170
+ }
171
+ }
172
+ },
173
+ "required": false,
174
+ "optional": false,
175
+ "docs": {
176
+ "tags": [],
177
+ "text": "Horizontal alignment. `start` and `end` are RTL-aware."
178
+ },
179
+ "getter": false,
180
+ "setter": false,
181
+ "attribute": "align",
182
+ "reflect": true,
183
+ "defaultValue": "'start'"
184
+ },
185
+ "color": {
186
+ "type": "string",
187
+ "mutable": false,
188
+ "complexType": {
189
+ "original": "HeadingColor",
190
+ "resolved": "\"inherit\" | \"primary\" | \"secondary\"",
191
+ "references": {
192
+ "HeadingColor": {
193
+ "location": "import",
194
+ "path": "./types",
195
+ "id": "src/components/diwa-heading/types.ts::HeadingColor"
196
+ }
197
+ }
198
+ },
199
+ "required": false,
200
+ "optional": false,
201
+ "docs": {
202
+ "tags": [],
203
+ "text": "Colour alias. Use `inherit` to pass through the surrounding colour unchanged \u2014\r\nuseful inside cards, hero sections, or other styled containers."
204
+ },
205
+ "getter": false,
206
+ "setter": false,
207
+ "attribute": "color",
208
+ "reflect": true,
209
+ "defaultValue": "'primary'"
210
+ },
211
+ "ellipsis": {
212
+ "type": "boolean",
213
+ "mutable": false,
214
+ "complexType": {
215
+ "original": "boolean",
216
+ "resolved": "boolean",
217
+ "references": {}
218
+ },
219
+ "required": false,
220
+ "optional": false,
221
+ "docs": {
222
+ "tags": [],
223
+ "text": "Clip overflow to a single line with a trailing ellipsis.\r\nThe host element must have a defined width for this to take effect."
224
+ },
225
+ "getter": false,
226
+ "setter": false,
227
+ "attribute": "ellipsis",
228
+ "reflect": true,
229
+ "defaultValue": "false"
230
+ }
231
+ };
232
+ }
233
+ static get elementRef() { return "host"; }
234
+ }
235
+ //# sourceMappingURL=diwa-heading.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"diwa-heading.js","sourceRoot":"","sources":["../../../src/components/diwa-heading/diwa-heading.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAGlE,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD;;;;;;;;;;;;;GAaG;AAKH,MAAM,OAAO,WAAW;IAJxB;QAOE,iEAAiE;QACjE,QAAQ;QACR,iEAAiE;QAEjE,oCAAoC;QACX,UAAK,GAAU,MAAM,CAAC;QAE/C;;;WAGG;QACsB,SAAI,GAAgB,IAAI,CAAC;QAUlD,mBAAmB;QACM,WAAM,GAAkB,MAAM,CAAC;QAExD,6DAA6D;QACpC,UAAK,GAAiB,OAAO,CAAC;QAEvD;;;WAGG;QACsB,UAAK,GAAiB,SAAS,CAAC;QAEzD;;;WAGG;QACsB,aAAQ,GAAY,KAAK,CAAC;KAkBpD;IAhBC,iEAAiE;IACjE,SAAS;IACT,iEAAiE;IAEjE,MAAM;QACJ,MAAM,GAAG,GAAG,aAAa,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,GAAG,CAAQ,CAAC,CAAC,yDAAyD;QAE3H,OAAO,CACL,EAAC,IAAI,mEAAa,IAAI,CAAC,KAAK;YAC1B,8DAAO,SAAS,EAAE,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,GAAI;YACpG,EAAC,GAAG,qDAAC,KAAK,EAAC,SAAS;gBAClB,8DAAQ,CACJ,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Host, Prop, h } from '@stencil/core';\r\nimport type { HeadingAlign, HeadingColor, HeadingSize, HeadingTag, HeadingWeight } from './types';\r\nimport type { Theme } from '../../utils/styles';\r\nimport { getComponentCss } from './diwa-heading-styles';\r\nimport { getHeadingTag } from './diwa-heading-utils';\r\n\r\n/**\r\n * @component diwa-heading\r\n *\r\n * A responsive heading renderer that maps a visual size scale onto the\r\n * correct semantic HTML heading element. Font sizes use fluid type tokens\r\n * that scale between viewport sizes.\r\n *\r\n * Usage:\r\n * <diwa-heading size=\"h1\">Page title</diwa-heading>\r\n * <diwa-heading size=\"display\" color=\"secondary\">Hero headline</diwa-heading>\r\n * <diwa-heading size=\"h3\" tag=\"h2\">Visual h3, semantic h2</diwa-heading>\r\n *\r\n * @slot default — Heading text content. Inline elements are allowed; block elements are not.\r\n */\r\n@Component({\r\n tag: 'diwa-heading',\r\n shadow: true,\r\n})\r\nexport class DiwaHeading {\r\n @Element() private host!: HTMLElement;\r\n\r\n // ──────────────────────────────────────────────────────────────\r\n // Props\r\n // ──────────────────────────────────────────────────────────────\r\n\r\n /** Per-component theme override. */\r\n @Prop({ reflect: true }) theme: Theme = 'dark';\r\n\r\n /**\r\n * Visual size and inferred semantic heading level.\r\n * Determines the rendered HTML tag when no explicit `tag` prop is given.\r\n */\r\n @Prop({ reflect: true }) size: HeadingSize = 'h2';\r\n\r\n /**\r\n * Override the rendered HTML tag.\r\n * Use when the visual size must differ from the semantic level —\r\n * e.g. a visually-large `h3` inside a section that already has an `h2`.\r\n * If omitted, the tag is inferred from `size`.\r\n */\r\n @Prop({ reflect: true }) tag?: HeadingTag;\r\n\r\n /** Font weight. */\r\n @Prop({ reflect: true }) weight: HeadingWeight = 'bold';\r\n\r\n /** Horizontal alignment. `start` and `end` are RTL-aware. */\r\n @Prop({ reflect: true }) align: HeadingAlign = 'start';\r\n\r\n /**\r\n * Colour alias. Use `inherit` to pass through the surrounding colour unchanged —\r\n * useful inside cards, hero sections, or other styled containers.\r\n */\r\n @Prop({ reflect: true }) color: HeadingColor = 'primary';\r\n\r\n /**\r\n * Clip overflow to a single line with a trailing ellipsis.\r\n * The host element must have a defined width for this to take effect.\r\n */\r\n @Prop({ reflect: true }) ellipsis: boolean = false;\r\n\r\n // ──────────────────────────────────────────────────────────────\r\n // Render\r\n // ──────────────────────────────────────────────────────────────\r\n\r\n render() {\r\n const Tag = getHeadingTag(this.host, this.size, this.tag) as any; // eslint-disable-line @typescript-eslint/no-explicit-any\r\n\r\n return (\r\n <Host data-theme={this.theme}>\r\n <style innerHTML={getComponentCss(this.size, this.weight, this.align, this.color, this.ellipsis)} />\r\n <Tag class=\"heading\">\r\n <slot />\r\n </Tag>\r\n </Host>\r\n );\r\n }\r\n}\r\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/components/diwa-heading/types.ts"],"names":[],"mappings":"AAAA;;GAEG","sourcesContent":["/**\r\n * diwa-heading — Public TypeScript interfaces\r\n */\r\n\r\n/** Visual size and inferred semantic heading level. */\r\nexport type HeadingSize = 'display' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'inherit';\r\n\r\n/** HTML tag rendered by diwa-heading. */\r\nexport type HeadingTag = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div';\r\n\r\n/** Horizontal text alignment. */\r\nexport type HeadingAlign = 'start' | 'center' | 'end';\r\n\r\n/**\r\n * Text colour alias.\r\n * `inherit` — passes through the surrounding text colour unchanged.\r\n */\r\nexport type HeadingColor = 'primary' | 'secondary' | 'inherit';\r\n\r\n/** Font weight. */\r\nexport type HeadingWeight = 'semibold' | 'bold';\r\n"]}
@@ -69,7 +69,7 @@ export class DiwaIcon {
69
69
  render() {
70
70
  var _a;
71
71
  const isDecorative = !this.label;
72
- return (h(Host, { key: '616cc38ba4654506996acdc1dbadf5b1d767b6da', "data-theme": this.theme }, h("style", { key: 'd10c3998dcf95485c8bf01d3e126c36d6b4a4dae', innerHTML: getComponentCss() }), h("svg", { key: 'd2b6d315a20a0f740b663a644ac13350c9ef67c9', ref: (el) => (this.svgEl = el), xmlns: "http://www.w3.org/2000/svg", width: this.size, height: this.size, viewBox: "0 0 24 24", fill: "none", stroke: this.color, "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", "aria-hidden": isDecorative ? 'true' : undefined, role: isDecorative ? undefined : 'img', "aria-label": (_a = this.label) !== null && _a !== void 0 ? _a : undefined })));
72
+ return (h(Host, { key: '480e247dd569c171693a4f1e7e2f10ebf9c86f95', "data-theme": this.theme }, h("style", { key: '9596aed7c1183970dd2b5848d93097511119a41b', innerHTML: getComponentCss() }), h("svg", { key: '02f276d6dd076d812ab6d2d8f2c790c9fe06023f', ref: (el) => (this.svgEl = el), xmlns: "http://www.w3.org/2000/svg", width: this.size, height: this.size, viewBox: "0 0 24 24", fill: "none", stroke: this.color, "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", "aria-hidden": isDecorative ? 'true' : undefined, role: isDecorative ? undefined : 'img', "aria-label": (_a = this.label) !== null && _a !== void 0 ? _a : undefined })));
73
73
  }
74
74
  static get is() { return "diwa-icon"; }
75
75
  static get encapsulation() { return "shadow"; }
@@ -76,7 +76,7 @@ export class DiwaInlineNotification {
76
76
  render() {
77
77
  const isAlert = this.state === 'error';
78
78
  const showActions = this.dismissButton || Boolean(this.actionLabel);
79
- return (h(Host, { key: '9c5daaa90736893373306014a7a81ceff288038e', "data-theme": this.theme }, h("style", { key: '703bad80df2e60ab7348d4c769ac3ef68def40e8', innerHTML: getComponentCss(this.state) }), h("div", { key: '8bcc89834f5664f7bc0bcd856735ec4793346ea7', class: "root" }, h("div", { key: '252d48eb839a4bf50039607bf7740c520d0ac78f', class: "icon-wrap", "aria-hidden": "true" }, h("diwa-icon", { key: '968fbde38c713c9de87571d9470f48845c398dab', name: STATE_ICON[this.state], size: 16 })), h("div", { key: '5d7a97ac06d8eadb6e586d8460d9bcd593a80abb', class: "content", role: isAlert ? 'alert' : 'status', "aria-live": isAlert ? 'assertive' : 'polite' }, this.heading && h("span", { key: 'b3e0f71b3fd449585b262c4cd6eb05837cee7713', class: "heading" }, this.heading), h("p", { key: '91da63ee4efbbe5333f96ff80d548fe9546c4284', class: "description" }, this.description || h("slot", { key: '562c57c90e98b8623e9b64f751bfcc4f3ee7a08c' }))), showActions && (h("div", { key: '9e9b140ff5968750cbba94bc793fa9643bad75bb', class: "actions" }, this.actionLabel && (h("diwa-button-pure", { key: '12794cd50df008bba55ad71808c5392ef18344ed', icon: "arrow-right", size: "sm", loading: this.actionLoading, theme: this.theme, onClick: this.handleAction }, this.actionLabel)), this.dismissButton && (h("diwa-button-pure", { key: '23c15e5eb4fb8114fbb760f65d7e09652c45d862', icon: "x", label: "Dismiss notification", hideLabel: true, size: "sm", theme: this.theme, onClick: this.handleDismiss })))))));
79
+ return (h(Host, { key: 'd3fd1076a2da3ada9262e57c2a9d1f6263862abb', "data-theme": this.theme }, h("style", { key: '10e025b7ecf829f51199f3bd951ca848e313d0a2', innerHTML: getComponentCss(this.state) }), h("div", { key: 'f6292b570bd9cb1f767d94c569a1f71b7ece1bd9', class: "root" }, h("div", { key: '38faa9cf097f080a61b3beacd04fbe8f5ddcc657', class: "icon-wrap", "aria-hidden": "true" }, h("diwa-icon", { key: '0e9cc0a5d557911ca1f90d40665d8d679f852e52', name: STATE_ICON[this.state], size: 16 })), h("div", { key: '1bfbfda28d6ee3014c0c57b054976cd244c82f0a', class: "content", role: isAlert ? 'alert' : 'status', "aria-live": isAlert ? 'assertive' : 'polite' }, this.heading && h("span", { key: '5ed7a8a15c3b50ee05334d2a9b6b62637808f9a8', class: "heading" }, this.heading), h("p", { key: 'e8af6b4bfec6fdaedec723b77b5fb8ce49eb11ce', class: "description" }, this.description || h("slot", { key: '1a55704e1b0c522ca25cbeda757f65a6d57af8d7' }))), showActions && (h("div", { key: 'd054dc9a6e584a9be0f54c3f1eabc8600f73f23e', class: "actions" }, this.actionLabel && (h("diwa-button-pure", { key: 'd9a057dcdacb531f70417912c0e0be7f47ca451c', icon: "arrow-right", size: "sm", loading: this.actionLoading, theme: this.theme, onClick: this.handleAction }, this.actionLabel)), this.dismissButton && (h("diwa-button-pure", { key: '892cb38a5f28fd95115fac50db97c45881eab7ae', icon: "x", label: "Dismiss notification", hideLabel: true, size: "sm", theme: this.theme, onClick: this.handleDismiss })))))));
80
80
  }
81
81
  static get is() { return "diwa-inline-notification"; }
82
82
  static get encapsulation() { return "shadow"; }
@@ -85,7 +85,7 @@ export class DiwaInput {
85
85
  render() {
86
86
  const { resolvedId, hintId } = this;
87
87
  const hasHint = !!this.hint;
88
- return (h(Host, { key: '78f8165d0ec522cc7c39b1305710322f373935b1', "data-theme": this.theme }, h("style", { key: '55ead2ca683d3b95e818227bac4befc820d17e43', innerHTML: getComponentCss() }), this.label && (h("label", { key: 'a371be6cb2fae92aab0536cdcc145dde89130aca', class: "label", part: "label", htmlFor: resolvedId }, this.label, this.required && (h("span", { key: 'b0a997bd0673abe864346b6c9b207da285ee9227', class: "required", "aria-hidden": "true" }, " ", "*")))), h("div", { key: '1449172e3374f27c9305566008974fca8e53f998', class: "wrapper", part: "wrapper" }, h("span", { key: '82c809cfc30968c60530b5e7e7091f1573398a02', class: "prefix", part: "prefix" }, h("slot", { key: 'b591bf5c11847e20d6cbceb36d16c6135726d80e', name: "prefix" })), h("input", { key: '95f9596afb2d1fd1c54d2ae5768da54289c5781e', id: resolvedId, part: "input", class: "input", type: this.type, name: this.name, value: this.value, placeholder: this.placeholder, disabled: this.disabled, readOnly: this.readonly, required: this.required, autocomplete: this.autocomplete, "aria-required": this.required ? "true" : undefined, "aria-invalid": this.state === "error" ? "true" : undefined, "aria-describedby": hasHint ? hintId : undefined, onInput: this.handleInput, onChange: this.handleChange, onFocus: this.handleFocus, onBlur: this.handleBlur }), h("span", { key: 'c6cb1c62381e07cd2ce8b31c8329eff9544bc079', class: "suffix", part: "suffix" }, h("slot", { key: '309d70266c2d3164f9170e1da66c5fa47d38a14c', name: "suffix" }))), hasHint && (h("span", { key: '8a2fd5a30044f3d8232efc36b23b9f4206130837', id: hintId, class: "hint", part: "hint", "aria-live": this.state === "error" ? "polite" : undefined }, this.hint))));
88
+ return (h(Host, { key: '2f5e9982ad07294f702ebf0bea111b70d89595f5', "data-theme": this.theme }, h("style", { key: 'a5ff0895928b24e7704f88b4d4601b071ce13c22', innerHTML: getComponentCss() }), this.label && (h("label", { key: '11dfacae24599abc35a73ebc763fca8f95db78d2', class: "label", part: "label", htmlFor: resolvedId }, this.label, this.required && (h("span", { key: 'ec6b9d71eefce529cfb04aef396a730758f6f79d', class: "required", "aria-hidden": "true" }, " ", "*")))), h("div", { key: '9abda93e51de4c01be826f147ea094e8d418d6ab', class: "wrapper", part: "wrapper" }, h("span", { key: '619b7e65a10c04043ae68abdfa0d0321b3681585', class: "prefix", part: "prefix" }, h("slot", { key: 'e61f1fbf6f7d6a06961100dfd867e4456bc1eb6e', name: "prefix" })), h("input", { key: '42ab4539c89bee785df13cb9bff484003c7299b0', id: resolvedId, part: "input", class: "input", type: this.type, name: this.name, value: this.value, placeholder: this.placeholder, disabled: this.disabled, readOnly: this.readonly, required: this.required, autocomplete: this.autocomplete, "aria-required": this.required ? "true" : undefined, "aria-invalid": this.state === "error" ? "true" : undefined, "aria-describedby": hasHint ? hintId : undefined, onInput: this.handleInput, onChange: this.handleChange, onFocus: this.handleFocus, onBlur: this.handleBlur }), h("span", { key: '270db977c40f074cf99378dcb27e9959470a7f2d', class: "suffix", part: "suffix" }, h("slot", { key: '36dbff474dafd6b3b46303d7745f754a5d413433', name: "suffix" }))), hasHint && (h("span", { key: 'bff0ddc5cf92a6d9ec9ddc64b5138ebd2cfe7632', id: hintId, class: "hint", part: "hint", "aria-live": this.state === "error" ? "polite" : undefined }, this.hint))));
89
89
  }
90
90
  static get is() { return "diwa-input"; }
91
91
  static get encapsulation() { return "shadow"; }
@@ -36,7 +36,7 @@ export class DiwaInputDate {
36
36
  const inputId = 'input';
37
37
  const descId = 'desc';
38
38
  const msgId = 'msg';
39
- return (h(Host, { key: '5f4369927da0d74c2564b4b147dc4964820cd2dd', "data-theme": this.theme }, h("style", { key: '5662055af38b2245350dd16e72ad01cfc88f7884', innerHTML: getComponentCss(this.state, this.disabled, this.readonly, this.compact, this._hasStart, this._hasEnd, false) }), h("div", { key: 'eebc09dc97886920cee9ff5680c49697cd1d7637', class: "root" }, !this.hideLabel && this.label && (h("div", { key: 'd6b3d2a4d2338132b9c8fc86b6a4de5aba65605c', class: "label-row" }, h("label", { key: 'f9f3cd718b6c43ce95f4d3b0ad691ba817955552', class: "label", htmlFor: inputId }, this.label, this.required && h("span", { key: 'bd542448712be17c8c67725b5cc9346944a1b11b', class: "required", "aria-hidden": "true" }, " *")), h("slot", { key: '24a53071abaaa6ac6a377eecc10b26a9422ad5b0', name: "label-after" }))), h("div", { key: '4aed4bb669fc3f4a13fec05e2845961672f56d73', class: "input-wrapper" }, this._hasStart && h("div", { key: '32ef1a846195d61b5001deabc0a63fec5e1b4252', class: "slot-start" }, h("slot", { key: 'aeab0a7ac116d58b9256b78097a3e8ba2ef4df7e', name: "start" })), h("input", { key: 'd638d2a0b495e12d3b74e4868302c03733d5a505', id: inputId, class: "input", type: "date", name: this.name || undefined, value: this.value, disabled: this.disabled, required: this.required, readOnly: this.readonly, min: this.min, max: this.max, autocomplete: this.autoComplete, "aria-label": this.hideLabel && this.label ? this.label : undefined, "aria-invalid": this.state === 'error' ? 'true' : undefined, "aria-required": this.required ? 'true' : undefined, "aria-describedby": this.message ? msgId : this.description ? descId : undefined, onInput: this.handleInput, onChange: this.handleChange, onBlur: this.handleBlur, onFocus: this.handleFocus }), this._hasEnd && h("div", { key: 'b528ac2bdd016d563f8786111907850543da776e', class: "slot-end" }, h("slot", { key: '9ec29e9ac4340f47c34201156b70ad0cf2f8b35f', name: "end" }))), !this.message && this.description && (h("p", { key: '404219ce20aa844461ca10964d23d63cfe21a5fb', id: descId, class: "description" }, this.description)), this.message && (h("p", { key: '8c59dabacdfc8f553bc2308549fe9a51fb9ef224', id: msgId, class: "message" }, this.message)))));
39
+ return (h(Host, { key: 'b58c9b32c94117b172cfa28f7b156650b70087f7', "data-theme": this.theme }, h("style", { key: 'ddf17006665bc7eaa8a1f4310d0a1cc240b5e2a2', innerHTML: getComponentCss(this.state, this.disabled, this.readonly, this.compact, this._hasStart, this._hasEnd, false) }), h("div", { key: '05d5d42c977eb975d9d66c6f2849553cf3030c84', class: "root" }, !this.hideLabel && this.label && (h("div", { key: '988b49a445bb8352b772312a71f09ad8a74ac085', class: "label-row" }, h("label", { key: 'b377a77badf65a2a3690aa71cc6e0dc02fece8f8', class: "label", htmlFor: inputId }, this.label, this.required && h("span", { key: '194a617bc1959c34b9624e5863bf63e1b57e1bd6', class: "required", "aria-hidden": "true" }, " *")), h("slot", { key: '6a8b5dab9bd2c53f912612142a2429a481e9ca0c', name: "label-after" }))), h("div", { key: '87d8863bbd02048faffbd83fd0326a160d834eb5', class: "input-wrapper" }, this._hasStart && h("div", { key: 'f1f09a5f3f3db887ee379e1e8dc736422e677c62', class: "slot-start" }, h("slot", { key: '99b41cac365685c4387cb24e4c5ba082eb3c9891', name: "start" })), h("input", { key: '7009d405ffd077b44b7f05f1c92364bf6eb3e199', id: inputId, class: "input", type: "date", name: this.name || undefined, value: this.value, disabled: this.disabled, required: this.required, readOnly: this.readonly, min: this.min, max: this.max, autocomplete: this.autoComplete, "aria-label": this.hideLabel && this.label ? this.label : undefined, "aria-invalid": this.state === 'error' ? 'true' : undefined, "aria-required": this.required ? 'true' : undefined, "aria-describedby": this.message ? msgId : this.description ? descId : undefined, onInput: this.handleInput, onChange: this.handleChange, onBlur: this.handleBlur, onFocus: this.handleFocus }), this._hasEnd && h("div", { key: 'f525f4eb53efefbfe224f27162372f7bddcde580', class: "slot-end" }, h("slot", { key: 'c4b75e8f245b62142b27ada1f6109a201ee95297', name: "end" }))), !this.message && this.description && (h("p", { key: 'c45c7d9b10e31b7234b5d275f118dd07b5f9717a', id: descId, class: "description" }, this.description)), this.message && (h("p", { key: '6f45b19c1e16797f063f5c8bb404dc2c4469f9f3', id: msgId, class: "message" }, this.message)))));
40
40
  }
41
41
  static get is() { return "diwa-input-date"; }
42
42
  static get encapsulation() { return "shadow"; }
@@ -36,7 +36,7 @@ export class DiwaInputEmail {
36
36
  const inputId = 'input';
37
37
  const descId = 'desc';
38
38
  const msgId = 'msg';
39
- return (h(Host, { key: '1a6687d10bd153eec0539353d3268e3dc2290b32', "data-theme": this.theme }, h("style", { key: '09469b584447016ad849afb25e925f057330e863', innerHTML: getComponentCss(this.state, this.disabled, this.readonly, this.compact, this._hasStart, this._hasEnd, false) }), h("div", { key: 'ba00b4ecf8ab9afb5d7a57d503383eab8d2edf98', class: "root" }, !this.hideLabel && this.label && (h("div", { key: '22389218bba90ee2fff6ab51d9d45bb5801e6173', class: "label-row" }, h("label", { key: '06e1d34f6c601df85b58165e7fb21e09ca12bcca', class: "label", htmlFor: inputId }, this.label, this.required && h("span", { key: '5588e28c407f8635ebcce2e1279b6be6c539263e', class: "required", "aria-hidden": "true" }, " *")), h("slot", { key: 'f7643dca94c7b4091fbd2133181612745cc84ef6', name: "label-after" }))), h("div", { key: '135ba5099bab6c8221ee7b5e873aa3f12bdcc7c7', class: "input-wrapper" }, this._hasStart && h("div", { key: '63f1226e41d09fec87678bbd68ec19139b20f221', class: "slot-start" }, h("slot", { key: '98740dc661a2dcbc15124abf589a230200259c55', name: "start" })), h("input", { key: '1dce2b09f9bbb77b1f308879a9c905362938e48b', id: inputId, class: "input", type: "email", name: this.name || undefined, value: this.value, placeholder: this.placeholder || undefined, disabled: this.disabled, required: this.required, readOnly: this.readonly, autocomplete: this.autoComplete, "aria-label": this.hideLabel && this.label ? this.label : undefined, "aria-invalid": this.state === 'error' ? 'true' : undefined, "aria-required": this.required ? 'true' : undefined, "aria-describedby": this.message ? msgId : this.description ? descId : undefined, onInput: this.handleInput, onChange: this.handleChange, onBlur: this.handleBlur, onFocus: this.handleFocus }), this._hasEnd && h("div", { key: '4e651437e42eaf82bdcba017fe4d744e4697c911', class: "slot-end" }, h("slot", { key: 'f999ab791c914938a73b589ca53d28ff9b357734', name: "end" }))), !this.message && this.description && (h("p", { key: 'c19e97d4d817f4c215005a2981bcb1d2860a0904', id: descId, class: "description" }, this.description)), this.message && (h("p", { key: '050b53ccb7310f186e4d1e767d1ff20efd5e7064', id: msgId, class: "message" }, this.message)))));
39
+ return (h(Host, { key: 'fe6b98e36a4b0b265b95905d07869380f2f93238', "data-theme": this.theme }, h("style", { key: 'bf23ff17067bd162be41f98177e2e5d3994f58e2', innerHTML: getComponentCss(this.state, this.disabled, this.readonly, this.compact, this._hasStart, this._hasEnd, false) }), h("div", { key: '2a5c524be6036fd7b6807fee457a9f6295c4f233', class: "root" }, !this.hideLabel && this.label && (h("div", { key: 'b58789f7e967ced3eeb1c11726eebc44c7448db5', class: "label-row" }, h("label", { key: '6ca47d2e8b70467c21ca44078ee39c45f0149dbe', class: "label", htmlFor: inputId }, this.label, this.required && h("span", { key: 'a252801b4c737c48e7d2df739a8a73c866300367', class: "required", "aria-hidden": "true" }, " *")), h("slot", { key: 'fb24755551508bf08bf0e34d5c030b7166110b9e', name: "label-after" }))), h("div", { key: 'ded4182c2a8b9f47c0ab10641a56afc91780dc38', class: "input-wrapper" }, this._hasStart && h("div", { key: '5d846bc94e2dd8d5569719978c4dae898555333a', class: "slot-start" }, h("slot", { key: '9b3fdf26e6628094ee146da8b993a85574b89c5d', name: "start" })), h("input", { key: '97999d1bf2b0c100d1c410392a2d540752b1f213', id: inputId, class: "input", type: "email", name: this.name || undefined, value: this.value, placeholder: this.placeholder || undefined, disabled: this.disabled, required: this.required, readOnly: this.readonly, autocomplete: this.autoComplete, "aria-label": this.hideLabel && this.label ? this.label : undefined, "aria-invalid": this.state === 'error' ? 'true' : undefined, "aria-required": this.required ? 'true' : undefined, "aria-describedby": this.message ? msgId : this.description ? descId : undefined, onInput: this.handleInput, onChange: this.handleChange, onBlur: this.handleBlur, onFocus: this.handleFocus }), this._hasEnd && h("div", { key: 'f5fa380e3c4507f1b3cc91af17ab74b2386e00ca', class: "slot-end" }, h("slot", { key: '578a2546ca081577e4f5e0e1da2a55a60f67231c', name: "end" }))), !this.message && this.description && (h("p", { key: 'e14e3534270d8190fd155f5aa32fe03a66d32e8b', id: descId, class: "description" }, this.description)), this.message && (h("p", { key: '1da9633d6d23a8ef442d2094864c64b48ec0640a', id: msgId, class: "message" }, this.message)))));
40
40
  }
41
41
  static get is() { return "diwa-input-email"; }
42
42
  static get encapsulation() { return "shadow"; }
@@ -36,7 +36,7 @@ export class DiwaInputMonth {
36
36
  const inputId = 'input';
37
37
  const descId = 'desc';
38
38
  const msgId = 'msg';
39
- return (h(Host, { key: 'e7b42335a448f264e605a22e8c973a4703027711', "data-theme": this.theme }, h("style", { key: '97a4f13c5867744270eced8aa13b209f9139f582', innerHTML: getComponentCss(this.state, this.disabled, this.readonly, this.compact, this._hasStart, this._hasEnd, false) }), h("div", { key: '4d20197cbf918b7be8cf1b67e5f0fdc3e338f2f4', class: "root" }, !this.hideLabel && this.label && (h("div", { key: '0e79bf6e67eab3600a3a1e5d3f2d7a73a83abdc9', class: "label-row" }, h("label", { key: '7adcf80c3a0e61c1ba0634308657fef73054e7ea', class: "label", htmlFor: inputId }, this.label, this.required && h("span", { key: 'd8cf7249d82461d2fd51f000737a4f0ebd15afc4', class: "required", "aria-hidden": "true" }, " *")), h("slot", { key: '738298b5cd67496e40173687a02432191754ebd6', name: "label-after" }))), h("div", { key: '0fb96733077c26851196e46220a80af39b8dd757', class: "input-wrapper" }, this._hasStart && h("div", { key: 'f13788a2afa4855aa772db164ee436aa0356f0cf', class: "slot-start" }, h("slot", { key: '06a5012bd82608a9b6ff4d84d89a8b1a8dadc2d3', name: "start" })), h("input", { key: '1bebc847823145ec56aa3a540a3e55463990fd6d', id: inputId, class: "input", type: "month", name: this.name || undefined, value: this.value, disabled: this.disabled, required: this.required, readOnly: this.readonly, min: this.min, max: this.max, autocomplete: this.autoComplete, "aria-label": this.hideLabel && this.label ? this.label : undefined, "aria-invalid": this.state === 'error' ? 'true' : undefined, "aria-required": this.required ? 'true' : undefined, "aria-describedby": this.message ? msgId : this.description ? descId : undefined, onInput: this.handleInput, onChange: this.handleChange, onBlur: this.handleBlur, onFocus: this.handleFocus }), this._hasEnd && h("div", { key: '7fad070fcca5acd9dc849e3f1549708c49ad85f9', class: "slot-end" }, h("slot", { key: '58f0310c841b893f7b9679ec0ee0c702150e6476', name: "end" }))), !this.message && this.description && (h("p", { key: '6889e36e3f5f1e859f2c2be2fee4aa4766b9898c', id: descId, class: "description" }, this.description)), this.message && (h("p", { key: 'bfb61253f688d25ede2e488306cf6d61ed8cc8e9', id: msgId, class: "message" }, this.message)))));
39
+ return (h(Host, { key: '87caa7dc1d48df433e2eae88019ded3183eeae63', "data-theme": this.theme }, h("style", { key: '41b65a4a5d365c0c186430ebe4b2a25e2cc1ac2d', innerHTML: getComponentCss(this.state, this.disabled, this.readonly, this.compact, this._hasStart, this._hasEnd, false) }), h("div", { key: 'b5c0cecd3d6baa09b8553589d5262a63daf15901', class: "root" }, !this.hideLabel && this.label && (h("div", { key: 'd26fb0176e47d86e1fbb5584938a4ab3da1e0015', class: "label-row" }, h("label", { key: '07434e386cd23734fd7fa089ad743286a3177b23', class: "label", htmlFor: inputId }, this.label, this.required && h("span", { key: '9c7c2102c465f0c353a33d2a05d4b563b3cdc822', class: "required", "aria-hidden": "true" }, " *")), h("slot", { key: 'cc9958974d0d5cd2481ffa23d9d7f81be370a613', name: "label-after" }))), h("div", { key: '3d6deb18bd746934c33361bb07c9a41abe84448c', class: "input-wrapper" }, this._hasStart && h("div", { key: '0d1e81e2efaa8e7fda4c42b69e354dc2afc966fa', class: "slot-start" }, h("slot", { key: '8188e74066295e173f74ab954d23762fb44aa14a', name: "start" })), h("input", { key: 'c140191e01f343ef9c1762df0772c2e33d878546', id: inputId, class: "input", type: "month", name: this.name || undefined, value: this.value, disabled: this.disabled, required: this.required, readOnly: this.readonly, min: this.min, max: this.max, autocomplete: this.autoComplete, "aria-label": this.hideLabel && this.label ? this.label : undefined, "aria-invalid": this.state === 'error' ? 'true' : undefined, "aria-required": this.required ? 'true' : undefined, "aria-describedby": this.message ? msgId : this.description ? descId : undefined, onInput: this.handleInput, onChange: this.handleChange, onBlur: this.handleBlur, onFocus: this.handleFocus }), this._hasEnd && h("div", { key: '9d2967ebaf8c1da5921707860be1c437f993c71a', class: "slot-end" }, h("slot", { key: '80144029ad42a1bd0c7af25ea6c03ff49df012a4', name: "end" }))), !this.message && this.description && (h("p", { key: 'c538c3c320c02157796d8ab1c89747a1d6537a1a', id: descId, class: "description" }, this.description)), this.message && (h("p", { key: '4b5c1074231824d3d7ab6ddcf67db4b673b4d6d5', id: msgId, class: "message" }, this.message)))));
40
40
  }
41
41
  static get is() { return "diwa-input-month"; }
42
42
  static get encapsulation() { return "shadow"; }
@@ -36,7 +36,7 @@ export class DiwaInputNumber {
36
36
  const inputId = 'input';
37
37
  const descId = 'desc';
38
38
  const msgId = 'msg';
39
- return (h(Host, { key: '09f9b5cf859ef7c03ef84256357c2ff08ee49e0d', "data-theme": this.theme }, h("style", { key: '3bbe107a46f9b4e98a58fb93e71f3d80225188bc', innerHTML: getComponentCss(this.state, this.disabled, this.readonly, this.compact, this._hasStart, this._hasEnd, false) }), h("div", { key: '0809b3f8e6540f2bca95ab41682cbdd1bf087718', class: "root" }, !this.hideLabel && this.label && (h("div", { key: '93e3454fda5faef279f540d8ff4179e08c7fd1f1', class: "label-row" }, h("label", { key: '171ab7d14f740ef31bff359cb51ad25d54b183ce', class: "label", htmlFor: inputId }, this.label, this.required && h("span", { key: '707c033e74161a76254cdfe9c798a78772d22833', class: "required", "aria-hidden": "true" }, " *")), h("slot", { key: '5eb701dd4c2d30d80cb11b07c07b1f9d48333ab6', name: "label-after" }))), h("div", { key: 'adc124185bbcbe37f0f1ff56a3b0fa8d0d725e07', class: "input-wrapper" }, this._hasStart && h("div", { key: 'a2ee97d7ce58f3f3f16dd0dab5cd6695573160fc', class: "slot-start" }, h("slot", { key: 'fe16cba2f95ce86de6721fff8a61236b618e8485', name: "start" })), h("input", { key: 'a1f15b79921da77f172033d34a91daf6548722ee', id: inputId, class: "input", type: "number", name: this.name || undefined, value: this.value, placeholder: this.placeholder || undefined, disabled: this.disabled, required: this.required, readOnly: this.readonly, min: this.min !== undefined ? String(this.min) : undefined, max: this.max !== undefined ? String(this.max) : undefined, step: this.step !== undefined ? String(this.step) : undefined, autocomplete: this.autoComplete, "aria-label": this.hideLabel && this.label ? this.label : undefined, "aria-invalid": this.state === 'error' ? 'true' : undefined, "aria-required": this.required ? 'true' : undefined, "aria-describedby": this.message ? msgId : this.description ? descId : undefined, onInput: this.handleInput, onChange: this.handleChange, onBlur: this.handleBlur, onFocus: this.handleFocus }), this._hasEnd && h("div", { key: 'e2772476adc180f91281a784200f9e4b53038a0c', class: "slot-end" }, h("slot", { key: '11cb85cf049deab38a7fec5a7841c082391b2009', name: "end" }))), !this.message && this.description && (h("p", { key: '6c64debb7f04fa9da7483854c04888842267898b', id: descId, class: "description" }, this.description)), this.message && (h("p", { key: '8f34cc860cac36c591ab7e3cf4e89722cb907da7', id: msgId, class: "message" }, this.message)))));
39
+ return (h(Host, { key: '19e42e576c408fccc4adf6d6c562f305c33c0f54', "data-theme": this.theme }, h("style", { key: '0732bc072bfa2ceb467098ee5777929a8178f2a4', innerHTML: getComponentCss(this.state, this.disabled, this.readonly, this.compact, this._hasStart, this._hasEnd, false) }), h("div", { key: '24c6834582af6bd6717f1e5931afe0899b3ff398', class: "root" }, !this.hideLabel && this.label && (h("div", { key: 'd9a04935b7d99b3c81655efde37126e3f17ba615', class: "label-row" }, h("label", { key: '11d4a082d8f25f30976fcdbaa310593db060ef60', class: "label", htmlFor: inputId }, this.label, this.required && h("span", { key: '73c50d8ac6143b1a72c746a148500b4d4dbbd830', class: "required", "aria-hidden": "true" }, " *")), h("slot", { key: '5ae5ce0b1135513eed6d844b6fbf8d16b65f788d', name: "label-after" }))), h("div", { key: 'b8cdb8629b40393cb8aa02ab17fc976e479758f4', class: "input-wrapper" }, this._hasStart && h("div", { key: 'df9cf6f07812effcfcc97741fc4fca57ea43056f', class: "slot-start" }, h("slot", { key: 'fccc715b95285edd67ebb38fd9fa961aa3d32bee', name: "start" })), h("input", { key: '04cc78d6e0d5cfcbc4a9df3cabb7a6c38de1c925', id: inputId, class: "input", type: "number", name: this.name || undefined, value: this.value, placeholder: this.placeholder || undefined, disabled: this.disabled, required: this.required, readOnly: this.readonly, min: this.min !== undefined ? String(this.min) : undefined, max: this.max !== undefined ? String(this.max) : undefined, step: this.step !== undefined ? String(this.step) : undefined, autocomplete: this.autoComplete, "aria-label": this.hideLabel && this.label ? this.label : undefined, "aria-invalid": this.state === 'error' ? 'true' : undefined, "aria-required": this.required ? 'true' : undefined, "aria-describedby": this.message ? msgId : this.description ? descId : undefined, onInput: this.handleInput, onChange: this.handleChange, onBlur: this.handleBlur, onFocus: this.handleFocus }), this._hasEnd && h("div", { key: 'c811312d3d2df960399275a019b939700ceb736e', class: "slot-end" }, h("slot", { key: '1dca8bdb7a062db994c126b03f7b6d715719bf66', name: "end" }))), !this.message && this.description && (h("p", { key: '0291a639f01c74f5f0d761494d27abd47a19b5ee', id: descId, class: "description" }, this.description)), this.message && (h("p", { key: '6956f7c63e1631a898b79040652fa42b746b06bc', id: msgId, class: "message" }, this.message)))));
40
40
  }
41
41
  static get is() { return "diwa-input-number"; }
42
42
  static get encapsulation() { return "shadow"; }
@@ -44,7 +44,7 @@ export class DiwaInputPassword {
44
44
  const descId = 'desc';
45
45
  const msgId = 'msg';
46
46
  const hasSuffix = this.showToggle && !this.disabled;
47
- return (h(Host, { key: 'a7d1c2c451e9eb743f2cc211cf644409620b0e3e', "data-theme": this.theme }, h("style", { key: 'c1cde1b42b4ebb897bb1d2a3e9f7ff29b8a3a669', innerHTML: getComponentCss(this.state, this.disabled, this.readonly, this.compact, this._hasStart, this._hasEnd, hasSuffix) }), h("div", { key: 'ec516af67a3fb9e8b070a5a4d3ef7611fdd09fd9', class: "root" }, !this.hideLabel && this.label && (h("div", { key: 'fa07e74dca79660dc1f300f72008fad7b71ee5da', class: "label-row" }, h("label", { key: 'a60036096fd791a62ca1b8ebddd91e22baacae9b', class: "label", htmlFor: inputId }, this.label, this.required && h("span", { key: '199100c093d8d8e7ec5ee49adf063ec8929160e4', class: "required", "aria-hidden": "true" }, " *")), h("slot", { key: 'ca35bdaf076776a53dabd36b4ab4f8203982da43', name: "label-after" }))), h("div", { key: '8e7a21233a3b41e04cdc23ce66f2899fee409707', class: "input-wrapper" }, this._hasStart && h("div", { key: 'e7b2175413d06a766612db4eba899f172fb4e0cc', class: "slot-start" }, h("slot", { key: '0fe18213e7cdebe3e77857050ace2d5b7e2fa1c9', name: "start" })), h("input", { key: '33503e876400fba6914fa39e9dab5272db655144', id: inputId, class: "input", type: this.showPassword ? 'text' : 'password', name: this.name || undefined, value: this.value, placeholder: this.placeholder || undefined, disabled: this.disabled, required: this.required, readOnly: this.readonly, autocomplete: this.autoComplete, "aria-label": this.hideLabel && this.label ? this.label : undefined, "aria-invalid": this.state === 'error' ? 'true' : undefined, "aria-required": this.required ? 'true' : undefined, "aria-describedby": this.message ? msgId : this.description ? descId : undefined, onInput: this.handleInput, onChange: this.handleChange, onBlur: this.handleBlur, onFocus: this.handleFocus }), this._hasEnd && h("div", { key: '796c7a85e6ac142d76dbb4789b774f67c9ce457f', class: "slot-end" }, h("slot", { key: '11802f147f1b820ef6bf50d25e551503fa9a6685', name: "end" })), hasSuffix && (h("button", { key: '526415a8043733850a39415f653f74e282db83b8', class: "suffix-btn", type: "button", "aria-label": this.showPassword ? 'Hide password' : 'Show password', onClick: this.handleToggle }, h("diwa-icon", { key: 'b2b40c55f74d7917aa69656ce1447d2ca4d455bf', name: this.showPassword ? 'eye-off' : 'eye', size: 16 })))), !this.message && this.description && (h("p", { key: '2f2a7c3da7c326077fadc8faa9d9f5d41d89fa25', id: descId, class: "description" }, this.description)), this.message && (h("p", { key: '5fd706ae0de4235b60493438b5be67caa2aae317', id: msgId, class: "message" }, this.message)))));
47
+ return (h(Host, { key: '1f3e93f2d809fb77b119144a2c1f2aec81980710', "data-theme": this.theme }, h("style", { key: '1b626031fac8f9583dc0485f4ab3f19dec92e5ae', innerHTML: getComponentCss(this.state, this.disabled, this.readonly, this.compact, this._hasStart, this._hasEnd, hasSuffix) }), h("div", { key: '7db9589d668114b06ce68645a234271b77e94058', class: "root" }, !this.hideLabel && this.label && (h("div", { key: 'f1ced10f68fdcf68bf0062f48d7e017235802fa8', class: "label-row" }, h("label", { key: '17dc6fa483714a0246db7a63f8cc54146bdb4734', class: "label", htmlFor: inputId }, this.label, this.required && h("span", { key: '2a2cc957a2d4a3fa8d84b80ad108e3f33e68ecfb', class: "required", "aria-hidden": "true" }, " *")), h("slot", { key: '181b756b7e92ce5529535de03b5cbeabf295ee85', name: "label-after" }))), h("div", { key: '43392e28aeb68ddfbbd9935ff3ba4c8c5f9765bd', class: "input-wrapper" }, this._hasStart && h("div", { key: '06a510b797a4a2e1b734abe2a216d4889a41ef7d', class: "slot-start" }, h("slot", { key: '335b50a0534bc16cf065f9dc911d6bf42982084c', name: "start" })), h("input", { key: '2101848e2c172b6022811d687a39f02bf51d1d40', id: inputId, class: "input", type: this.showPassword ? 'text' : 'password', name: this.name || undefined, value: this.value, placeholder: this.placeholder || undefined, disabled: this.disabled, required: this.required, readOnly: this.readonly, autocomplete: this.autoComplete, "aria-label": this.hideLabel && this.label ? this.label : undefined, "aria-invalid": this.state === 'error' ? 'true' : undefined, "aria-required": this.required ? 'true' : undefined, "aria-describedby": this.message ? msgId : this.description ? descId : undefined, onInput: this.handleInput, onChange: this.handleChange, onBlur: this.handleBlur, onFocus: this.handleFocus }), this._hasEnd && h("div", { key: '7c35cc80e0af6becbd4144cb4c88fc9a117e8ad0', class: "slot-end" }, h("slot", { key: '5614a7892ac04ff1b30e9f11075fde469a9848ec', name: "end" })), hasSuffix && (h("button", { key: 'c7ce34f499054cf4d2d43776375b61f1d28067b8', class: "suffix-btn", type: "button", "aria-label": this.showPassword ? 'Hide password' : 'Show password', onClick: this.handleToggle }, h("diwa-icon", { key: 'ab12ef74e3d02ffafd88613687ba64a1df5afae3', name: this.showPassword ? 'eye-off' : 'eye', size: 16 })))), !this.message && this.description && (h("p", { key: 'bc23cdc9fac4d84dc90d7ba9626b799147e11b09', id: descId, class: "description" }, this.description)), this.message && (h("p", { key: '8c0921edfa0ce1bc53bb419aeea71bd1a0ad2f5c', id: msgId, class: "message" }, this.message)))));
48
48
  }
49
49
  static get is() { return "diwa-input-password"; }
50
50
  static get encapsulation() { return "shadow"; }
@@ -44,7 +44,7 @@ export class DiwaInputSearch {
44
44
  const descId = 'desc';
45
45
  const msgId = 'msg';
46
46
  const hasSuffix = this.showClearButton && !!this.value && !this.disabled && !this.readonly;
47
- return (h(Host, { key: '3f49df473469b199d44e240572e09bb9e159cfd3', "data-theme": this.theme }, h("style", { key: '3dd2dcf3d7291af66789afc82d5d5deb6c56a27c', innerHTML: getComponentCss(this.state, this.disabled, this.readonly, this.compact, this._hasStart, this._hasEnd, hasSuffix) }), h("div", { key: '388430466029a911917ef8f61697e72abd46239c', class: "root" }, !this.hideLabel && this.label && (h("div", { key: '3b6a12eca69a7efe4a3701f78c8e9892edd752f2', class: "label-row" }, h("label", { key: '66bac4991da6ba5a758717d3b84bb1ab234b4cd9', class: "label", htmlFor: inputId }, this.label, this.required && h("span", { key: '30275a5cbe643516887f55b377ae8b0e0a9d6387', class: "required", "aria-hidden": "true" }, " *")), h("slot", { key: '548dc2886eb1d0dfe6987ddf5ce5227aec30b90c', name: "label-after" }))), h("div", { key: '6f746707baccfa7c3668c26e53d40af2c6ffd6b3', class: "input-wrapper" }, this._hasStart && h("div", { key: '675fcd21531dbd7bc91c1580ce41ffe3542cbd07', class: "slot-start" }, h("slot", { key: '913ed407b729f851f719c5bf7e299eeffbb2bf4c', name: "start" })), h("input", { key: 'b751aedd290db42d8d297b2e58d355b8fb0a5032', id: inputId, class: "input", type: "search", name: this.name || undefined, value: this.value, placeholder: this.placeholder || undefined, disabled: this.disabled, required: this.required, readOnly: this.readonly, autocomplete: this.autoComplete, "aria-label": this.hideLabel && this.label ? this.label : undefined, "aria-invalid": this.state === 'error' ? 'true' : undefined, "aria-required": this.required ? 'true' : undefined, "aria-describedby": this.message ? msgId : this.description ? descId : undefined, onInput: this.handleInput, onChange: this.handleChange, onBlur: this.handleBlur, onFocus: this.handleFocus }), this._hasEnd && h("div", { key: 'eafa27ed273229c774e1c6e1bd92ba14a499418c', class: "slot-end" }, h("slot", { key: '910843c5913cb508fdb66c0aa171e4b1e05be583', name: "end" })), hasSuffix && (h("button", { key: '676246830cf3a5701d6820082af813cd55b76d61', class: "suffix-btn", type: "button", "aria-label": "Clear search", onClick: this.handleClear }, h("diwa-icon", { key: 'a03bd3b761dec94a4659f55780cabf47b5be9084', name: "x", size: 14 })))), !this.message && this.description && (h("p", { key: '57c2a7184df72cd5fc09ccb9e504638cbec520ed', id: descId, class: "description" }, this.description)), this.message && (h("p", { key: 'a224ae6925af433f90a21dc811b8376ccb4fa176', id: msgId, class: "message" }, this.message)))));
47
+ return (h(Host, { key: 'b65d113dbeb2638837ca4fa6c4bec72ebeab4ff0', "data-theme": this.theme }, h("style", { key: '129f1cbd4beedf7211437bd14b1acd46e7d9a07a', innerHTML: getComponentCss(this.state, this.disabled, this.readonly, this.compact, this._hasStart, this._hasEnd, hasSuffix) }), h("div", { key: 'dfaf9ba95461904f90ac2405a80df7cad84da7bf', class: "root" }, !this.hideLabel && this.label && (h("div", { key: '35022593c675040e22f54c21421df9b5a4c3eca8', class: "label-row" }, h("label", { key: 'a9dbe7b00d5d90c04cc547ffe9b83824fec16f3c', class: "label", htmlFor: inputId }, this.label, this.required && h("span", { key: 'edc28498c69dff1486689de5e3e8bfe66345e11b', class: "required", "aria-hidden": "true" }, " *")), h("slot", { key: 'cac59ac1300060cb567d5e4bb98a2b7b1a61c434', name: "label-after" }))), h("div", { key: 'b930d3fab86f0b6d692068ce075f362049c8b984', class: "input-wrapper" }, this._hasStart && h("div", { key: '8634d5be0e887ec36f4c381e2f2bf9ff521f66af', class: "slot-start" }, h("slot", { key: '57e992af5d19a2a756d0bd14e420ece4ab0c9d01', name: "start" })), h("input", { key: 'c9d27434efc3ddfbdbc148ff794fd09594f1e2f8', id: inputId, class: "input", type: "search", name: this.name || undefined, value: this.value, placeholder: this.placeholder || undefined, disabled: this.disabled, required: this.required, readOnly: this.readonly, autocomplete: this.autoComplete, "aria-label": this.hideLabel && this.label ? this.label : undefined, "aria-invalid": this.state === 'error' ? 'true' : undefined, "aria-required": this.required ? 'true' : undefined, "aria-describedby": this.message ? msgId : this.description ? descId : undefined, onInput: this.handleInput, onChange: this.handleChange, onBlur: this.handleBlur, onFocus: this.handleFocus }), this._hasEnd && h("div", { key: 'b9e6ee6d85989e1dab8e2945229138a3477ecbfc', class: "slot-end" }, h("slot", { key: '126dbbf8756d52d288e36d9e1aad217421bea948', name: "end" })), hasSuffix && (h("button", { key: '0731f87f0acb9deafd9aa0ddb31ce8bfc801af99', class: "suffix-btn", type: "button", "aria-label": "Clear search", onClick: this.handleClear }, h("diwa-icon", { key: 'fd701ce699cb87a06ad6ed310cbc40bb3f9428c2', name: "x", size: 14 })))), !this.message && this.description && (h("p", { key: '2a90135b0a79bf9ecb81da78751aaad0ffd858fe', id: descId, class: "description" }, this.description)), this.message && (h("p", { key: 'b4094e0ce16272e1a607a50e982d157b5ff15a5c', id: msgId, class: "message" }, this.message)))));
48
48
  }
49
49
  static get is() { return "diwa-input-search"; }
50
50
  static get encapsulation() { return "shadow"; }
@@ -36,7 +36,7 @@ export class DiwaInputTel {
36
36
  const inputId = 'input';
37
37
  const descId = 'desc';
38
38
  const msgId = 'msg';
39
- return (h(Host, { key: '6f16e8825a3a5ecddc50dfa71bd11037b514857c', "data-theme": this.theme }, h("style", { key: '869dd68dffed172a7609f208be8cf84b14d17ef0', innerHTML: getComponentCss(this.state, this.disabled, this.readonly, this.compact, this._hasStart, this._hasEnd, false) }), h("div", { key: '826553cb48211b80781177f28f546f0750e303c1', class: "root" }, !this.hideLabel && this.label && (h("div", { key: 'd765135a6a2461b994f64cc9e64a21d7aa2beea6', class: "label-row" }, h("label", { key: '31c39abad9f2e512002a741775ef6edd92d63977', class: "label", htmlFor: inputId }, this.label, this.required && h("span", { key: 'e70488cf88dbadda577411125bcd691c4f0eb5db', class: "required", "aria-hidden": "true" }, " *")), h("slot", { key: '8ee60e427526819d1f8be6d7ed61a1b26bfb65ec', name: "label-after" }))), h("div", { key: '1a28e5b5937aca1cb3c9e6470279e4072a62bbe0', class: "input-wrapper" }, this._hasStart && h("div", { key: '1e96aa02a0b11281b5c328fdc28ceba4c255cbf5', class: "slot-start" }, h("slot", { key: '28c564f01dac221e5d72ea17c88602ed9a05e199', name: "start" })), h("input", { key: 'b2eaeb80c1d83ef7d4d5e624f332272e5ed607ee', id: inputId, class: "input", type: "tel", name: this.name || undefined, value: this.value, placeholder: this.placeholder || undefined, disabled: this.disabled, required: this.required, readOnly: this.readonly, autocomplete: this.autoComplete, "aria-label": this.hideLabel && this.label ? this.label : undefined, "aria-invalid": this.state === 'error' ? 'true' : undefined, "aria-required": this.required ? 'true' : undefined, "aria-describedby": this.message ? msgId : this.description ? descId : undefined, onInput: this.handleInput, onChange: this.handleChange, onBlur: this.handleBlur, onFocus: this.handleFocus }), this._hasEnd && h("div", { key: 'efa69195e0c480335deb33e87e45edf4482b2cb4', class: "slot-end" }, h("slot", { key: 'c045de93902aa491f82b722e5b8b6a9c2a1e5552', name: "end" }))), !this.message && this.description && (h("p", { key: '284cd05849b2d42d0ce3069037c4907061bf6744', id: descId, class: "description" }, this.description)), this.message && (h("p", { key: '8bedd2ca829061a05d561e9e5c5c99700fee09f2', id: msgId, class: "message" }, this.message)))));
39
+ return (h(Host, { key: '26d545b79408534571bc132cff4b12c909ebbffb', "data-theme": this.theme }, h("style", { key: 'ad5d90132a33837d497b4a60bba14e513b8f630d', innerHTML: getComponentCss(this.state, this.disabled, this.readonly, this.compact, this._hasStart, this._hasEnd, false) }), h("div", { key: '8f510db7d2ac3aa0f43af87b7babd69687b5e46a', class: "root" }, !this.hideLabel && this.label && (h("div", { key: 'f65dbd4df192a273f0ab32b010bca5d6529cc64c', class: "label-row" }, h("label", { key: '0bdf4d2c7ac59dcaf7f6b66869e8047d7cab8744', class: "label", htmlFor: inputId }, this.label, this.required && h("span", { key: '9f3c5b3b19d6509ba29f220a956520f784620989', class: "required", "aria-hidden": "true" }, " *")), h("slot", { key: '968456bb71ba9ac89803e23a51bff5105bb5cad1', name: "label-after" }))), h("div", { key: 'eb1d4b8956a3afde698d17db95e0966f0261b765', class: "input-wrapper" }, this._hasStart && h("div", { key: 'e6c3117431675a497807bf917a3d769e829d4c7b', class: "slot-start" }, h("slot", { key: 'd1a0719fe085425dfaf7f4f1a26dd851f134e122', name: "start" })), h("input", { key: '8885efc0af2811ae2708a1a5e8f434bb73b97475', id: inputId, class: "input", type: "tel", name: this.name || undefined, value: this.value, placeholder: this.placeholder || undefined, disabled: this.disabled, required: this.required, readOnly: this.readonly, autocomplete: this.autoComplete, "aria-label": this.hideLabel && this.label ? this.label : undefined, "aria-invalid": this.state === 'error' ? 'true' : undefined, "aria-required": this.required ? 'true' : undefined, "aria-describedby": this.message ? msgId : this.description ? descId : undefined, onInput: this.handleInput, onChange: this.handleChange, onBlur: this.handleBlur, onFocus: this.handleFocus }), this._hasEnd && h("div", { key: 'a06f2530ac6d1bac2e8898d722098ac42e59c0d8', class: "slot-end" }, h("slot", { key: 'df77a3f05ca4226f55c0314f245b7bd970f13439', name: "end" }))), !this.message && this.description && (h("p", { key: '48d9f35dd7016c0f724c25b7be1af70179f195f2', id: descId, class: "description" }, this.description)), this.message && (h("p", { key: '4669c5c314f673d4059ab3e2b3445d7cd6f4ed0e', id: msgId, class: "message" }, this.message)))));
40
40
  }
41
41
  static get is() { return "diwa-input-tel"; }
42
42
  static get encapsulation() { return "shadow"; }
@@ -38,7 +38,7 @@ export class DiwaInputText {
38
38
  const inputId = 'input';
39
39
  const descId = 'desc';
40
40
  const msgId = 'msg';
41
- return (h(Host, { key: 'a33af1297d334f3a9acec8403154c96492657c91', "data-theme": this.theme }, h("style", { key: '37551d1e5512119fab5536d698a80af76825cbf2', innerHTML: getComponentCss(this.state, this.disabled, this.readonly, this.compact, this._hasStart, this._hasEnd, false) }), h("div", { key: 'c1bc70168334b6f24fdcfab73d09db078577ae25', class: "root" }, !this.hideLabel && this.label && (h("div", { key: '2e8b3a309d7f61e5d7c199d3f6a68e9976972bcc', class: "label-row" }, h("label", { key: 'b0a4b4ca66113bfb3792873c5a4080ccc6c465a0', class: "label", htmlFor: inputId }, this.label, this.required && h("span", { key: '1c964830bf67b8a3d940bdb9bad233e6d679160b', class: "required", "aria-hidden": "true" }, " *")), h("slot", { key: 'c50d80d0a9cd2f4bc3436b1fb5ba12a2b1c31c5f', name: "label-after" }))), h("div", { key: '9a8a3023abb52332d74330dbfd7c93fdc4ad40f3', class: "input-wrapper" }, this._hasStart && h("div", { key: 'ff085b2b283e1774e6cb71b21afc0b4647f4377d', class: "slot-start" }, h("slot", { key: '7cb492fc970f8a8f773872daecd97e5d6362e986', name: "start" })), h("input", { key: '944a49cd9b5277e32440044015ea60863ee197fe', id: inputId, class: "input", type: "text", name: this.name || undefined, value: this.value, placeholder: this.placeholder || undefined, disabled: this.disabled, required: this.required, readOnly: this.readonly, maxLength: this.maxLength, minLength: this.minLength, spellcheck: this.spellCheck, autocomplete: this.autoComplete, "aria-label": this.hideLabel && this.label ? this.label : undefined, "aria-invalid": this.state === 'error' ? 'true' : undefined, "aria-required": this.required ? 'true' : undefined, "aria-describedby": this.message ? msgId : this.description ? descId : undefined, onInput: this.handleInput, onChange: this.handleChange, onBlur: this.handleBlur, onFocus: this.handleFocus }), this._hasEnd && h("div", { key: '7f753a201a2bc3dcf0b687f4edd038e4d54572f3', class: "slot-end" }, h("slot", { key: 'f81ad5cf908f710f7dba08bf3c0b0d7afbf33c9b', name: "end" }))), !this.message && this.description && (h("p", { key: '19763f04411a10c5d4cb6565f01655b21982e919', id: descId, class: "description" }, this.description)), this.message && (h("p", { key: 'dee92d6fb1e56760e29d9cf18f2e4ded55065192', id: msgId, class: "message" }, this.message)))));
41
+ return (h(Host, { key: '57db8e249f4257429c5073437fed9af9ce5847da', "data-theme": this.theme }, h("style", { key: 'cc4b8ae0ac2f2422e63c5047177b5ceaa0cbee12', innerHTML: getComponentCss(this.state, this.disabled, this.readonly, this.compact, this._hasStart, this._hasEnd, false) }), h("div", { key: '5fa3a0b0b0e3e3722e6e6c277a4030f87c860887', class: "root" }, !this.hideLabel && this.label && (h("div", { key: 'a9788aef44d038dd81e984d0d2f367b9bc271c4b', class: "label-row" }, h("label", { key: 'b89f5752b5b5c83bd0c7d3bf50da1153175ed184', class: "label", htmlFor: inputId }, this.label, this.required && h("span", { key: '0a68539ab69334a622c1e855f5652ffec4586858', class: "required", "aria-hidden": "true" }, " *")), h("slot", { key: '257b7b9a1a5006aed1fa50361aa377b729d23fb0', name: "label-after" }))), h("div", { key: '10f19d4c4aa0d537b78f01e77a85b4012eaaea78', class: "input-wrapper" }, this._hasStart && h("div", { key: 'f101b6841ef93c65bd3b75df0961da5a27ee5216', class: "slot-start" }, h("slot", { key: 'cd026e6eb3aeff153159bf095341d9cdee7496f4', name: "start" })), h("input", { key: 'fa6eff05efb74a50e2cfc96680ab2527ec2342c3', id: inputId, class: "input", type: "text", name: this.name || undefined, value: this.value, placeholder: this.placeholder || undefined, disabled: this.disabled, required: this.required, readOnly: this.readonly, maxLength: this.maxLength, minLength: this.minLength, spellcheck: this.spellCheck, autocomplete: this.autoComplete, "aria-label": this.hideLabel && this.label ? this.label : undefined, "aria-invalid": this.state === 'error' ? 'true' : undefined, "aria-required": this.required ? 'true' : undefined, "aria-describedby": this.message ? msgId : this.description ? descId : undefined, onInput: this.handleInput, onChange: this.handleChange, onBlur: this.handleBlur, onFocus: this.handleFocus }), this._hasEnd && h("div", { key: 'dbd131e34115c3c0417f580fb6780c40ed7c8502', class: "slot-end" }, h("slot", { key: 'd3a97fdf8238adc46748b9ab5b3d17ee3a1c7ff4', name: "end" }))), !this.message && this.description && (h("p", { key: '2d746575c4b1d84402ac6f68d5ba27769b0fdc3c', id: descId, class: "description" }, this.description)), this.message && (h("p", { key: '0fbfd46577a7dbb26138646e1b9360e396694986', id: msgId, class: "message" }, this.message)))));
42
42
  }
43
43
  static get is() { return "diwa-input-text"; }
44
44
  static get encapsulation() { return "shadow"; }
@@ -36,7 +36,7 @@ export class DiwaInputTime {
36
36
  const inputId = 'input';
37
37
  const descId = 'desc';
38
38
  const msgId = 'msg';
39
- return (h(Host, { key: '9e2fb73a34153b0744fbf2cc7490ecdc7a125233', "data-theme": this.theme }, h("style", { key: '58c7f12e339b06f9bf1fc1488a3c6821c9fcb637', innerHTML: getComponentCss(this.state, this.disabled, this.readonly, this.compact, this._hasStart, this._hasEnd, false) }), h("div", { key: 'ff7623be3338a9f7d1def2c68f36e698b192b699', class: "root" }, !this.hideLabel && this.label && (h("div", { key: '6fe5fc532ab19643ff3c194e6230e6681c9b73d5', class: "label-row" }, h("label", { key: '641fc925b6a08f4c3ea7d620cf32a666cb4ed95a', class: "label", htmlFor: inputId }, this.label, this.required && h("span", { key: 'e4d33a7a8e34d7c082f50b36faee293c73701d3f', class: "required", "aria-hidden": "true" }, " *")), h("slot", { key: '42e84e07dfcda40b3dc81bb13934ecbaeb95e526', name: "label-after" }))), h("div", { key: 'fbb9fb0c4b1220d6d9e96d8f02d38f1d956ad844', class: "input-wrapper" }, this._hasStart && h("div", { key: '613a450467b3cd65e6193ecd61046c96b77ed8b7', class: "slot-start" }, h("slot", { key: '40a5d35691b771b88589cf075c550723b32493fb', name: "start" })), h("input", { key: '0f3095e1716e26680c0bd4209c957f38e5c9649d', id: inputId, class: "input", type: "time", name: this.name || undefined, value: this.value, disabled: this.disabled, required: this.required, readOnly: this.readonly, min: this.min, max: this.max, step: this.step !== undefined ? String(this.step) : undefined, autocomplete: this.autoComplete, "aria-label": this.hideLabel && this.label ? this.label : undefined, "aria-invalid": this.state === 'error' ? 'true' : undefined, "aria-required": this.required ? 'true' : undefined, "aria-describedby": this.message ? msgId : this.description ? descId : undefined, onInput: this.handleInput, onChange: this.handleChange, onBlur: this.handleBlur, onFocus: this.handleFocus }), this._hasEnd && h("div", { key: '5b256b58d5b876cbdfd65c613ebfd41d59ca3f16', class: "slot-end" }, h("slot", { key: 'abe2bf623127eef3e5f9ed74d846459a975bfaff', name: "end" }))), !this.message && this.description && (h("p", { key: '9f38a0f8927a2c06fcccb43b9d20a116af2fc078', id: descId, class: "description" }, this.description)), this.message && (h("p", { key: 'b6125f29b020d97fda309feb3803477c1e918e85', id: msgId, class: "message" }, this.message)))));
39
+ return (h(Host, { key: 'b2b46730c743177645fba01d209b807337aa44da', "data-theme": this.theme }, h("style", { key: 'ba93a71b89e6284a979ffa0f8c8bf97a53a12eed', innerHTML: getComponentCss(this.state, this.disabled, this.readonly, this.compact, this._hasStart, this._hasEnd, false) }), h("div", { key: 'dfd9ea2e0931ce4d89c8a15915f501430b85e837', class: "root" }, !this.hideLabel && this.label && (h("div", { key: 'd1442b29f767ba9fe71977ce5edef0c85641eae7', class: "label-row" }, h("label", { key: '1f0e38ee7288c6d1837910b11af3e557c6a3e3f2', class: "label", htmlFor: inputId }, this.label, this.required && h("span", { key: 'f721cee9f8e1171c3338272790ac8cfbe94364c2', class: "required", "aria-hidden": "true" }, " *")), h("slot", { key: '67a98734e74d51e433ecf3374d25002c955d6629', name: "label-after" }))), h("div", { key: '32cfe64e5bc6d6d060c6a0d55b8d6ca7ef8caa3a', class: "input-wrapper" }, this._hasStart && h("div", { key: 'e18eae70cadb3d2bc35e93a7ce7842b5991d6e93', class: "slot-start" }, h("slot", { key: '2f5a16999f94972ff9472de051daff573f30546c', name: "start" })), h("input", { key: 'bb1cca62713143aed9b2c1731f504bc3e54c4181', id: inputId, class: "input", type: "time", name: this.name || undefined, value: this.value, disabled: this.disabled, required: this.required, readOnly: this.readonly, min: this.min, max: this.max, step: this.step !== undefined ? String(this.step) : undefined, autocomplete: this.autoComplete, "aria-label": this.hideLabel && this.label ? this.label : undefined, "aria-invalid": this.state === 'error' ? 'true' : undefined, "aria-required": this.required ? 'true' : undefined, "aria-describedby": this.message ? msgId : this.description ? descId : undefined, onInput: this.handleInput, onChange: this.handleChange, onBlur: this.handleBlur, onFocus: this.handleFocus }), this._hasEnd && h("div", { key: 'df22eed453924a4ac0f29a51689bed61fd042271', class: "slot-end" }, h("slot", { key: '194ebc94e02ecf0e27c6b93b4c48682dabcb53f5', name: "end" }))), !this.message && this.description && (h("p", { key: 'b354c5de48cfdc832271016be6a7ea6d24d87f04', id: descId, class: "description" }, this.description)), this.message && (h("p", { key: '5e8fe659abcefe3d8e6ffec0805ce3e4cbeb1c9c', id: msgId, class: "message" }, this.message)))));
40
40
  }
41
41
  static get is() { return "diwa-input-time"; }
42
42
  static get encapsulation() { return "shadow"; }
@@ -36,7 +36,7 @@ export class DiwaInputUrl {
36
36
  const inputId = 'input';
37
37
  const descId = 'desc';
38
38
  const msgId = 'msg';
39
- return (h(Host, { key: 'a65beb62cdb31c1aabe439f9b8f6f2dc6966380b', "data-theme": this.theme }, h("style", { key: 'ff59c6e404d17c7676ce59133a4560a217c65114', innerHTML: getComponentCss(this.state, this.disabled, this.readonly, this.compact, this._hasStart, this._hasEnd, false) }), h("div", { key: 'd1ebf45cf487eb3d49d61d591f59500a12d92731', class: "root" }, !this.hideLabel && this.label && (h("div", { key: 'd7bc5c83a4c307e73fac55332f56c7cf17dd32fd', class: "label-row" }, h("label", { key: '714e2799d06afffb41ac6ac10680d16cf67d4a52', class: "label", htmlFor: inputId }, this.label, this.required && h("span", { key: 'f06a988f6b0afdf34825994c43e4b9b4cb9b2010', class: "required", "aria-hidden": "true" }, " *")), h("slot", { key: 'b916cfcfc7e064704b1e8643fe758b0f78f2b73d', name: "label-after" }))), h("div", { key: '51af50d3630a0f48eb111df4493d1787ff618534', class: "input-wrapper" }, this._hasStart && h("div", { key: '571d43f905d552089338b5066f7c20d28bd6a2d5', class: "slot-start" }, h("slot", { key: 'f8dfa7cc9fe16dca29d122c655371e17faad8a09', name: "start" })), h("input", { key: 'cb5abcccfe70433832fabc2094b071d781b592fc', id: inputId, class: "input", type: "url", name: this.name || undefined, value: this.value, placeholder: this.placeholder || undefined, disabled: this.disabled, required: this.required, readOnly: this.readonly, autocomplete: this.autoComplete, "aria-label": this.hideLabel && this.label ? this.label : undefined, "aria-invalid": this.state === 'error' ? 'true' : undefined, "aria-required": this.required ? 'true' : undefined, "aria-describedby": this.message ? msgId : this.description ? descId : undefined, onInput: this.handleInput, onChange: this.handleChange, onBlur: this.handleBlur, onFocus: this.handleFocus }), this._hasEnd && h("div", { key: '21b3380362ba71f8ec69b884450c3dc609a10f70', class: "slot-end" }, h("slot", { key: 'bdab4ba41c29734be286db913292eaf6a859d48c', name: "end" }))), !this.message && this.description && (h("p", { key: '60f3d1857a4a7f2f553ecd322727ddc822c52d0b', id: descId, class: "description" }, this.description)), this.message && (h("p", { key: 'b4fedae59dade9ed51363d0e124a61e71b45f923', id: msgId, class: "message" }, this.message)))));
39
+ return (h(Host, { key: '815dcda1917ab3e09996cc7256e93fa03af6859c', "data-theme": this.theme }, h("style", { key: 'f818456b7051d7a3118f822280f366382ba0bd2e', innerHTML: getComponentCss(this.state, this.disabled, this.readonly, this.compact, this._hasStart, this._hasEnd, false) }), h("div", { key: '64b4a3aad57983fb3a1d5fc90fd5a229054f421c', class: "root" }, !this.hideLabel && this.label && (h("div", { key: '4c2ada03a986cab360e69472b68992c368397302', class: "label-row" }, h("label", { key: '4d66497d69d4913f76c48f3979f468e764700de6', class: "label", htmlFor: inputId }, this.label, this.required && h("span", { key: '0a1202881294392b03533ea4fb773786e4b86207', class: "required", "aria-hidden": "true" }, " *")), h("slot", { key: '0ccb378aa36f76ea46e52770f5802c38005faa36', name: "label-after" }))), h("div", { key: 'f630f867b7d3140402c67fca4dbe34c26d4b941b', class: "input-wrapper" }, this._hasStart && h("div", { key: '87be8ff03fb503cf698318e582a582a16a462c2f', class: "slot-start" }, h("slot", { key: 'd72b709ca7b7ac5207f5e880a91d8082672f7d98', name: "start" })), h("input", { key: '6bfeef03dba3617a4a8962f3582bfbdc5e5e57dd', id: inputId, class: "input", type: "url", name: this.name || undefined, value: this.value, placeholder: this.placeholder || undefined, disabled: this.disabled, required: this.required, readOnly: this.readonly, autocomplete: this.autoComplete, "aria-label": this.hideLabel && this.label ? this.label : undefined, "aria-invalid": this.state === 'error' ? 'true' : undefined, "aria-required": this.required ? 'true' : undefined, "aria-describedby": this.message ? msgId : this.description ? descId : undefined, onInput: this.handleInput, onChange: this.handleChange, onBlur: this.handleBlur, onFocus: this.handleFocus }), this._hasEnd && h("div", { key: '9f362881037e57edd4936993e0f32f812b755140', class: "slot-end" }, h("slot", { key: 'e72701b8bbd28fc0b1aabfe133c17c89f8432604', name: "end" }))), !this.message && this.description && (h("p", { key: 'b791d25314effb37d79b2cb0dca08d23bdf4be3d', id: descId, class: "description" }, this.description)), this.message && (h("p", { key: '47d96a0725dd01efef0158c5e256191d6a30d417', id: msgId, class: "message" }, this.message)))));
40
40
  }
41
41
  static get is() { return "diwa-input-url"; }
42
42
  static get encapsulation() { return "shadow"; }
@@ -36,7 +36,7 @@ export class DiwaInputWeek {
36
36
  const inputId = 'input';
37
37
  const descId = 'desc';
38
38
  const msgId = 'msg';
39
- return (h(Host, { key: '4cc5cc85ed8fa8c773fe7ad750e673a0ff389777', "data-theme": this.theme }, h("style", { key: 'b0fc511131f99c953540dc5a4dcd92dc5cb91a1b', innerHTML: getComponentCss(this.state, this.disabled, this.readonly, this.compact, this._hasStart, this._hasEnd, false) }), h("div", { key: '38afefa33e9182fc1b351bb0ce9add0a894a9fc9', class: "root" }, !this.hideLabel && this.label && (h("div", { key: '9d04a0e49c5d6d8feef7e07ea0ad2ce5c8b8af1f', class: "label-row" }, h("label", { key: 'efa91862e70ee8243ec263081b8bd69921bf0abb', class: "label", htmlFor: inputId }, this.label, this.required && h("span", { key: 'a0d6c9a259482afe4a32e0694e40303099575c55', class: "required", "aria-hidden": "true" }, " *")), h("slot", { key: '765b374e9621bb3a293ddd06c101cb768b34fdcf', name: "label-after" }))), h("div", { key: '0502e169ef872e6a9d1c3701d63d58134d4fd8e9', class: "input-wrapper" }, this._hasStart && h("div", { key: '0d84de18ab5090b6cebad6bdbc386454a27595f2', class: "slot-start" }, h("slot", { key: '33cae6bc089ac29d8061637eca7cac6765f28588', name: "start" })), h("input", { key: '386306bf52e25ef77f18d1c2536292308ddad8ad', id: inputId, class: "input", type: "week", name: this.name || undefined, value: this.value, disabled: this.disabled, required: this.required, readOnly: this.readonly, min: this.min, max: this.max, autocomplete: this.autoComplete, "aria-label": this.hideLabel && this.label ? this.label : undefined, "aria-invalid": this.state === 'error' ? 'true' : undefined, "aria-required": this.required ? 'true' : undefined, "aria-describedby": this.message ? msgId : this.description ? descId : undefined, onInput: this.handleInput, onChange: this.handleChange, onBlur: this.handleBlur, onFocus: this.handleFocus }), this._hasEnd && h("div", { key: '5dd8446e2aef07d0c4a6fd573fc72a36791fde9d', class: "slot-end" }, h("slot", { key: 'c7576d8d1fa8b964d6dc1890deef7f896787cfe5', name: "end" }))), !this.message && this.description && (h("p", { key: '512432dd6a79d71b6a7739bd1680fb7dd3f7fbdf', id: descId, class: "description" }, this.description)), this.message && (h("p", { key: 'af74243593034242f83cc8c745bbb5223daca0da', id: msgId, class: "message" }, this.message)))));
39
+ return (h(Host, { key: 'b2e62b6ebe5a56ed9620ec7fca5f1d7a7e81460b', "data-theme": this.theme }, h("style", { key: 'a638a4f4726f062889a190f97bff942f48d6f1d2', innerHTML: getComponentCss(this.state, this.disabled, this.readonly, this.compact, this._hasStart, this._hasEnd, false) }), h("div", { key: 'c1a9ec3da64ddd4e834afb897dd0323dc076b02d', class: "root" }, !this.hideLabel && this.label && (h("div", { key: '606302a7436a401cd3a636a587e1741fdfafb0d4', class: "label-row" }, h("label", { key: '569bab43ec04b919c0c9bb4ccdebe734daf63c23', class: "label", htmlFor: inputId }, this.label, this.required && h("span", { key: '13aadb282c3e0479895c6a66bbe85ecfce393fb8', class: "required", "aria-hidden": "true" }, " *")), h("slot", { key: '17000b6bf4cd3e63fe7bb6a2919e40092883fac2', name: "label-after" }))), h("div", { key: 'e5d271956dc4084a53de67a9a4343aff72f07685', class: "input-wrapper" }, this._hasStart && h("div", { key: 'd9fabf419d808c27852d0168c6c463b5cb038562', class: "slot-start" }, h("slot", { key: '8b296314bf7a12d604e3410adafa6ccfca1c81dd', name: "start" })), h("input", { key: 'c833d8b9412da6d72f979233c7c25878ed25c766', id: inputId, class: "input", type: "week", name: this.name || undefined, value: this.value, disabled: this.disabled, required: this.required, readOnly: this.readonly, min: this.min, max: this.max, autocomplete: this.autoComplete, "aria-label": this.hideLabel && this.label ? this.label : undefined, "aria-invalid": this.state === 'error' ? 'true' : undefined, "aria-required": this.required ? 'true' : undefined, "aria-describedby": this.message ? msgId : this.description ? descId : undefined, onInput: this.handleInput, onChange: this.handleChange, onBlur: this.handleBlur, onFocus: this.handleFocus }), this._hasEnd && h("div", { key: 'ee2fd8dce634707092c6fd91a998cca609859f33', class: "slot-end" }, h("slot", { key: '5ecc37cb93d82d514ee9a2243e45b393277727ba', name: "end" }))), !this.message && this.description && (h("p", { key: 'df2a4edb4734385a4c8107f261ef95f7a96472f2', id: descId, class: "description" }, this.description)), this.message && (h("p", { key: '1194dfd983f4113f9accf0a84938b378f30687f1', id: msgId, class: "message" }, this.message)))));
40
40
  }
41
41
  static get is() { return "diwa-input-week"; }
42
42
  static get encapsulation() { return "shadow"; }
@@ -38,7 +38,7 @@ export class DiwaLink {
38
38
  const iconSize = this.compact ? 16 : 20;
39
39
  const anchorProps = isAnchor
40
40
  ? Object.assign(Object.assign({ href: this.href, target: this.target, download: this.download, rel: (_a = this.rel) !== null && _a !== void 0 ? _a : (this.target === "_blank" ? "noopener noreferrer" : undefined) }, (this.label ? { "aria-label": this.label } : {})), (this.disabled ? { "aria-disabled": "true", tabIndex: -1 } : {})) : {};
41
- return (h(Host, { key: '776e06394ce0ae72d3b17839f3b6c03a8b9d8d87', "data-theme": this.theme }, h("style", { key: 'c839450ec4fe0c4e887b0ca0ca20d98b72353c18', innerHTML: getComponentCss() }), h(Tag, Object.assign({ key: 'ffcf734b9978340a43f6e85fbbce99692a1a948e', class: "inner" }, anchorProps, { part: "base" }), hasIcon && (h("span", { key: '8eaa121076b37556d334d441cf538b878bc682b5', class: "icon", "aria-hidden": "true" }, h("diwa-icon", { key: '69b02d7412041c9f3ec276f84b2bdecc1882725b', name: this.icon, size: iconSize }))), h("span", { key: '99ffcd1bd80c6ddabb6cd99b75ce6c83f94afe00', class: `label${this.hideLabel ? " label--hidden" : ""}`, part: "label" }, h("slot", { key: '8057fd1012fbd5d5651fb2fe82f6d1fc0366a240' })))));
41
+ return (h(Host, { key: '9cf2fd4d0d5ce43e75c3a222131b34d9c478e421', "data-theme": this.theme }, h("style", { key: 'a0063d4bf08a30a185c7bf27a2f5a5cf9ce26a44', innerHTML: getComponentCss() }), h(Tag, Object.assign({ key: 'ff842bd79914c7b175a197e9c502aba455de6c91', class: "inner" }, anchorProps, { part: "base" }), hasIcon && (h("span", { key: '71e88edb6edd441d0ee452deba9644312186c990', class: "icon", "aria-hidden": "true" }, h("diwa-icon", { key: '87cdae9c8fd9bff6331325a9d88e8c86041ca5f2', name: this.icon, size: iconSize }))), h("span", { key: 'dbfe2d4cdf1c060be2012bf37671286de3527017', class: `label${this.hideLabel ? " label--hidden" : ""}`, part: "label" }, h("slot", { key: 'c5ccd67b6b2978ac0d6be79bd951b3030a44a787' })))));
42
42
  }
43
43
  static get is() { return "diwa-link"; }
44
44
  static get encapsulation() { return "shadow"; }
@@ -49,7 +49,7 @@ export class DiwaLinkPure {
49
49
  const iconSize = this.size === "sm" ? 14 : this.size === "lg" ? 20 : 16;
50
50
  const anchorProps = isAnchor
51
51
  ? Object.assign({ href: this.href, target: this.target, download: this.download, rel: (_a = this.rel) !== null && _a !== void 0 ? _a : (this.target === "_blank" ? "noopener noreferrer" : undefined) }, (this.label ? { "aria-label": this.label } : {})) : {};
52
- return (h(Host, { key: '761192365523187da4022afc17ddcd42eacd6fd1', "data-theme": this.theme }, h("style", { key: 'dcaf58e09c4bf9e728acc480748650235d005fb9', innerHTML: getComponentCss() }), h(Tag, Object.assign({ key: '9669b20ef6fcd90c86244205b9b1dd7c59f6143c', class: "root" }, anchorProps, { part: "base" }), hasIcon && (h("span", { key: '11a2c4828484693962c83ea800ec5ab17b6f1c77', class: "icon", "aria-hidden": "true" }, h("diwa-icon", { key: 'ce1521f41513d709c51292db263c6e8252ea91a5', name: this.icon, size: iconSize }))), h("span", { key: '61d7962e751fdd6e84630fe27d5f4fb1ed1c2de0', class: `label${this.hideLabel ? " label--hidden" : ""}`, part: "label" }, h("slot", { key: 'd585bfadb227cf240719d2958a3b6a52a1429410' })))));
52
+ return (h(Host, { key: '0e0d05c3d75ed6a26dd20de637c53590732d9644', "data-theme": this.theme }, h("style", { key: '1e28cd8c47349664fa39e5e232f36d3f860e9e45', innerHTML: getComponentCss() }), h(Tag, Object.assign({ key: '98d380c84bb6f5a2e0ea475b0ba0e958567da554', class: "root" }, anchorProps, { part: "base" }), hasIcon && (h("span", { key: 'bc73de7dc37ae05c8da660681e118c3130e58a54', class: "icon", "aria-hidden": "true" }, h("diwa-icon", { key: '657f77e2f0403f80c0433570349ba3221edeb3f2', name: this.icon, size: iconSize }))), h("span", { key: '65ab163880ea086929465145915fa8e20d14ee53', class: `label${this.hideLabel ? " label--hidden" : ""}`, part: "label" }, h("slot", { key: '243b92cd0e03e04e05cc38dcc2ecf47297f6db94' })))));
53
53
  }
54
54
  static get is() { return "diwa-link-pure"; }
55
55
  static get encapsulation() { return "shadow"; }