@powerhousedao/design-system 6.2.3-dev.8 → 6.2.3-staging.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (372) hide show
  1. package/dist/{Removed-CO_5C1ce.js → Removed-OP4eTrAN.js} +1 -1
  2. package/dist/{Removed-CO_5C1ce.js.map → Removed-OP4eTrAN.js.map} +1 -1
  3. package/dist/{Tabler-FjvVqX5a.js → Tabler-rjLxlzUV.js} +1 -1
  4. package/dist/{Tabler-FjvVqX5a.js.map → Tabler-rjLxlzUV.js.map} +1 -1
  5. package/dist/button-BYcXvZXr.d.ts +13 -0
  6. package/dist/button-BYcXvZXr.d.ts.map +1 -0
  7. package/dist/{character-counter-BWoglM2P.d.ts → character-counter-BZmZZCHN.d.ts} +2 -1
  8. package/dist/character-counter-BZmZZCHN.d.ts.map +1 -0
  9. package/dist/{checkbox-CGBtXQnI.d.ts → checkbox-BmTXBcCE.d.ts} +4 -4
  10. package/dist/checkbox-BmTXBcCE.d.ts.map +1 -0
  11. package/dist/{checkbox-base-CZo-4eL0.d.ts → checkbox-base-Bm0GPWgm.d.ts} +2 -2
  12. package/dist/checkbox-base-Bm0GPWgm.d.ts.map +1 -0
  13. package/dist/{command-CbTi7Jj2.d.ts → command-DHHTsHfH.d.ts} +10 -10
  14. package/dist/command-DHHTsHfH.d.ts.map +1 -0
  15. package/dist/connect/components/toast/toast.d.ts +8 -10
  16. package/dist/connect/components/toast/toast.d.ts.map +1 -1
  17. package/dist/connect/components/toast/toast.js +4 -4
  18. package/dist/connect/components/toast/toast.js.map +1 -1
  19. package/dist/connect/index.d.ts +376 -355
  20. package/dist/connect/index.d.ts.map +1 -1
  21. package/dist/connect/index.js +779 -151
  22. package/dist/connect/index.js.map +1 -1
  23. package/dist/{content-BHWIqmio.d.ts → content-BMXLcwWY.d.ts} +3 -3
  24. package/dist/content-BMXLcwWY.d.ts.map +1 -0
  25. package/dist/{enum-field-B1ZGimK6.d.ts → enum-field-qgV9wsyI.d.ts} +5 -5
  26. package/dist/enum-field-qgV9wsyI.d.ts.map +1 -0
  27. package/dist/{form-CKRKn0TQ.d.ts → form-Brj5AQNr.d.ts} +3 -4
  28. package/dist/form-Brj5AQNr.d.ts.map +1 -0
  29. package/dist/{form-description-CYkcMEzm.d.ts → form-description-DJrDJzJi.d.ts} +2 -1
  30. package/dist/form-description-DJrDJzJi.d.ts.map +1 -0
  31. package/dist/{form-group-C8kL6pdZ.d.ts → form-group-Ckd28lpW.d.ts} +2 -1
  32. package/dist/form-group-Ckd28lpW.d.ts.map +1 -0
  33. package/dist/{form-label-b6nQi0XO.d.ts → form-label-C8ghd_lR.d.ts} +2 -1
  34. package/dist/form-label-C8ghd_lR.d.ts.map +1 -0
  35. package/dist/{form-message-Dq72nBXz.d.ts → form-message-CnKUkvlj.d.ts} +2 -1
  36. package/dist/form-message-CnKUkvlj.d.ts.map +1 -0
  37. package/dist/form-server-error-message-D2tFtDZ0.d.ts +6 -0
  38. package/dist/form-server-error-message-D2tFtDZ0.d.ts.map +1 -0
  39. package/dist/{icon-C4QOpsdI.js → icon-01W_S_9A.js} +3 -3
  40. package/dist/{icon-C4QOpsdI.js.map → icon-01W_S_9A.js.map} +1 -1
  41. package/dist/{id-autocomplete-C-hwriS5.d.ts → id-autocomplete-CHvGhffo.d.ts} +3 -3
  42. package/dist/id-autocomplete-CHvGhffo.d.ts.map +1 -0
  43. package/dist/{id-autocomplete-input-container-DFEyPh5p.d.ts → id-autocomplete-input-container-BqRQGpcs.d.ts} +3 -3
  44. package/dist/id-autocomplete-input-container-BqRQGpcs.d.ts.map +1 -0
  45. package/dist/{id-autocomplete-list-EzLpF23C.d.ts → id-autocomplete-list-ChQsiJDg.d.ts} +3 -3
  46. package/dist/id-autocomplete-list-ChQsiJDg.d.ts.map +1 -0
  47. package/dist/{id-autocomplete-list-option-CB5B07Hi.d.ts → id-autocomplete-list-option-MsqKeLXD.d.ts} +3 -3
  48. package/dist/id-autocomplete-list-option-MsqKeLXD.d.ts.map +1 -0
  49. package/dist/{index--hDSfvJT.d.ts → index-C05uhexJ.d.ts} +14 -45
  50. package/dist/index-C05uhexJ.d.ts.map +1 -0
  51. package/dist/index-CpSqVZKp.d.ts +2 -0
  52. package/dist/index-D6Zk5OLV.d.ts +4 -0
  53. package/dist/index-DSknqh8u.d.ts +30 -0
  54. package/dist/index-DU-WgcAh.d.ts +4 -0
  55. package/dist/index-DaRBrjZI.d.ts +3 -0
  56. package/dist/index.d.ts +4 -3
  57. package/dist/index.js +2 -2
  58. package/dist/{input-BpEQjaWV.d.ts → input-WDvjJFqf.d.ts} +2 -2
  59. package/dist/input-WDvjJFqf.d.ts.map +1 -0
  60. package/dist/json-viewer-Kg0IBIt-.d.ts +7 -0
  61. package/dist/json-viewer-Kg0IBIt-.d.ts.map +1 -0
  62. package/dist/{message-list-C4mPpBBa.d.ts → message-list-D8d2ltLd.d.ts} +3 -3
  63. package/dist/message-list-D8d2ltLd.d.ts.map +1 -0
  64. package/dist/{popover-XSBOuSih.d.ts → popover-TvQxa0RU.d.ts} +2 -2
  65. package/dist/popover-TvQxa0RU.d.ts.map +1 -0
  66. package/dist/{radio-eL0Oy86J.d.ts → radio-CTS4WsNy.d.ts} +2 -2
  67. package/dist/radio-CTS4WsNy.d.ts.map +1 -0
  68. package/dist/{radio-group-Bkli6nUz.d.ts → radio-group-CROIwgYz.d.ts} +2 -2
  69. package/dist/radio-group-CROIwgYz.d.ts.map +1 -0
  70. package/dist/{radio-group-field-qOD9_nWy.d.ts → radio-group-field-CjX_Zt0C.d.ts} +5 -6
  71. package/dist/radio-group-field-CjX_Zt0C.d.ts.map +1 -0
  72. package/dist/{search-autocomplete-BJJkrZ1i.d.ts → search-autocomplete-COvFRZIb.d.ts} +3 -3
  73. package/dist/search-autocomplete-COvFRZIb.d.ts.map +1 -0
  74. package/dist/{select-field-C97QIhUL.d.ts → select-field-BuXjM43L.d.ts} +5 -5
  75. package/dist/select-field-BuXjM43L.d.ts.map +1 -0
  76. package/dist/{selected-content-CGsK5PR4.d.ts → selected-content-C49jmTLU.d.ts} +3 -3
  77. package/dist/selected-content-C49jmTLU.d.ts.map +1 -0
  78. package/dist/{sidebar-DOoE4krt.d.ts → sidebar-4juLhREX.d.ts} +3 -3
  79. package/dist/sidebar-4juLhREX.d.ts.map +1 -0
  80. package/dist/{sidebar-provider-C2eyz9TL.d.ts → sidebar-provider-CMG6WQWo.d.ts} +4 -8
  81. package/dist/sidebar-provider-CMG6WQWo.d.ts.map +1 -0
  82. package/dist/splitted-input-diff-DBkgDh9Q.d.ts +11 -0
  83. package/dist/splitted-input-diff-DBkgDh9Q.d.ts.map +1 -0
  84. package/dist/{src-CVV6HzQZ.js → src-CrUksCLW.js} +17 -14
  85. package/dist/{src-CVV6HzQZ.js.map → src-CrUksCLW.js.map} +1 -1
  86. package/dist/text-field-3j4fLJ-7.d.ts +9 -0
  87. package/dist/text-field-3j4fLJ-7.d.ts.map +1 -0
  88. package/dist/text-input-diff-B7iFyzTK.d.ts +12 -0
  89. package/dist/text-input-diff-B7iFyzTK.d.ts.map +1 -0
  90. package/dist/{text-input-8zXIWHLi.d.ts → text-input-tkqggbWx.d.ts} +5 -6
  91. package/dist/text-input-tkqggbWx.d.ts.map +1 -0
  92. package/dist/{tooltip-BxS9HpML.d.ts → tooltip-B4uQJPUm.d.ts} +3 -4
  93. package/dist/tooltip-B4uQJPUm.d.ts.map +1 -0
  94. package/dist/{types-Bsn62tJB.d.ts → types-BNTIrhb5.d.ts} +2 -1
  95. package/dist/types-BNTIrhb5.d.ts.map +1 -0
  96. package/dist/{types-BTq-St7H.d.ts → types-CpFPFB1a.d.ts} +2 -1
  97. package/dist/types-CpFPFB1a.d.ts.map +1 -0
  98. package/dist/{types-C04Q_Fan.d.ts → types-D4CirgNk.d.ts} +2 -2
  99. package/dist/types-D4CirgNk.d.ts.map +1 -0
  100. package/dist/{types-CNbvfWjh.d.ts → types-DDSmPhHp.d.ts} +3 -3
  101. package/dist/types-DDSmPhHp.d.ts.map +1 -0
  102. package/dist/ui/components/button/button.d.ts +3 -2
  103. package/dist/ui/components/button/button.js +1 -1
  104. package/dist/ui/components/button/button.js.map +1 -1
  105. package/dist/ui/components/character-counter/character-counter.d.ts +3 -2
  106. package/dist/ui/components/character-counter/character-counter.js.map +1 -1
  107. package/dist/ui/components/checkbox/checkbox-base.d.ts +3 -2
  108. package/dist/ui/components/checkbox/checkbox-base.js +1 -1
  109. package/dist/ui/components/checkbox/checkbox-base.js.map +1 -1
  110. package/dist/ui/components/checkbox/checkbox.d.ts +3 -2
  111. package/dist/ui/components/checkbox/checkbox.js +1 -1
  112. package/dist/ui/components/checkbox/checkbox.js.map +1 -1
  113. package/dist/ui/components/command/command.d.ts +3 -2
  114. package/dist/ui/components/command/command.js +8 -8
  115. package/dist/ui/components/command/command.js.map +1 -1
  116. package/dist/ui/components/enum-field/enum-field.d.ts +3 -2
  117. package/dist/ui/components/enum-field/enum-field.js +1 -1
  118. package/dist/ui/components/enum-field/enum-field.js.map +1 -1
  119. package/dist/ui/components/enum-field/types.d.ts +3 -2
  120. package/dist/ui/components/form/form.d.ts +3 -2
  121. package/dist/ui/components/form/form.js +1 -1
  122. package/dist/ui/components/form/form.js.map +1 -1
  123. package/dist/ui/components/form/utils.d.ts +4 -4
  124. package/dist/ui/components/form/utils.d.ts.map +1 -1
  125. package/dist/ui/components/form/utils.js.map +1 -1
  126. package/dist/ui/components/form-description/form-description.d.ts +3 -2
  127. package/dist/ui/components/form-description/form-description.js.map +1 -1
  128. package/dist/ui/components/form-group/form-group.d.ts +3 -2
  129. package/dist/ui/components/form-group/form-group.js.map +1 -1
  130. package/dist/ui/components/form-label/form-label.d.ts +3 -2
  131. package/dist/ui/components/form-label/form-label.js +3 -2
  132. package/dist/ui/components/form-label/form-label.js.map +1 -1
  133. package/dist/ui/components/form-message/form-message.d.ts +3 -2
  134. package/dist/ui/components/form-message/form-message.js.map +1 -1
  135. package/dist/ui/components/form-message/form-server-error-message.d.ts +3 -2
  136. package/dist/ui/components/form-message/form-server-error-message.js.map +1 -1
  137. package/dist/ui/components/form-message/message-list.d.ts +3 -2
  138. package/dist/ui/components/form-message/message-list.js.map +1 -1
  139. package/dist/ui/components/id-autocomplete/id-autocomplete-context.d.ts +3 -5
  140. package/dist/ui/components/id-autocomplete/id-autocomplete-context.d.ts.map +1 -1
  141. package/dist/ui/components/id-autocomplete/id-autocomplete-context.js +1 -1
  142. package/dist/ui/components/id-autocomplete/id-autocomplete-context.js.map +1 -1
  143. package/dist/ui/components/id-autocomplete/id-autocomplete-input-container.d.ts +3 -2
  144. package/dist/ui/components/id-autocomplete/id-autocomplete-input-container.js +2 -2
  145. package/dist/ui/components/id-autocomplete/id-autocomplete-input-container.js.map +1 -1
  146. package/dist/ui/components/id-autocomplete/id-autocomplete-list-option.d.ts +3 -2
  147. package/dist/ui/components/id-autocomplete/id-autocomplete-list-option.js +2 -2
  148. package/dist/ui/components/id-autocomplete/id-autocomplete-list-option.js.map +1 -1
  149. package/dist/ui/components/id-autocomplete/id-autocomplete-list.d.ts +3 -2
  150. package/dist/ui/components/id-autocomplete/id-autocomplete-list.js.map +1 -1
  151. package/dist/ui/components/id-autocomplete/id-autocomplete.d.ts +3 -2
  152. package/dist/ui/components/id-autocomplete/id-autocomplete.js +1 -1
  153. package/dist/ui/components/id-autocomplete/id-autocomplete.js.map +1 -1
  154. package/dist/ui/components/id-autocomplete/types.d.ts +3 -2
  155. package/dist/ui/components/id-autocomplete/use-id-autocomplete.d.ts +3 -2
  156. package/dist/ui/components/id-autocomplete/use-id-autocomplete.js.map +1 -1
  157. package/dist/ui/components/index.d.ts +42 -40
  158. package/dist/ui/components/input/input.d.ts +3 -2
  159. package/dist/ui/components/input/input.js +1 -1
  160. package/dist/ui/components/input/input.js.map +1 -1
  161. package/dist/ui/components/input/splitted-input-diff.d.ts +3 -2
  162. package/dist/ui/components/input/splitted-input-diff.js +10 -9
  163. package/dist/ui/components/input/splitted-input-diff.js.map +1 -1
  164. package/dist/ui/components/input/subcomponent/input-diff.d.ts +2 -11
  165. package/dist/ui/components/input/subcomponent/input-diff.d.ts.map +1 -1
  166. package/dist/ui/components/input/subcomponent/input-diff.js.map +1 -1
  167. package/dist/ui/components/input/subcomponent/text-diff.d.ts +3 -12
  168. package/dist/ui/components/input/subcomponent/text-diff.d.ts.map +1 -1
  169. package/dist/ui/components/input/subcomponent/text-diff.js.map +1 -1
  170. package/dist/ui/components/json-viewer/json-viewer.d.ts +3 -2
  171. package/dist/ui/components/json-viewer/json-viewer.js +1 -1
  172. package/dist/ui/components/json-viewer/json-viewer.js.map +1 -1
  173. package/dist/ui/components/popover/popover.d.ts +3 -2
  174. package/dist/ui/components/popover/popover.js +1 -1
  175. package/dist/ui/components/popover/popover.js.map +1 -1
  176. package/dist/ui/components/radio-group-field/radio-group-field.d.ts +3 -2
  177. package/dist/ui/components/radio-group-field/radio-group-field.js +4 -3
  178. package/dist/ui/components/radio-group-field/radio-group-field.js.map +1 -1
  179. package/dist/ui/components/radio-group-field/radio-group.d.ts +3 -2
  180. package/dist/ui/components/radio-group-field/radio-group.js +1 -1
  181. package/dist/ui/components/radio-group-field/radio-group.js.map +1 -1
  182. package/dist/ui/components/radio-group-field/radio.d.ts +3 -2
  183. package/dist/ui/components/radio-group-field/radio.js +1 -1
  184. package/dist/ui/components/radio-group-field/radio.js.map +1 -1
  185. package/dist/ui/components/search-autocomplete/index.d.ts +6 -4
  186. package/dist/ui/components/search-autocomplete/search-autocomplete.d.ts +3 -2
  187. package/dist/ui/components/search-autocomplete/search-autocomplete.js.map +1 -1
  188. package/dist/ui/components/search-autocomplete/types.d.ts +3 -2
  189. package/dist/ui/components/search-autocomplete/use-search-autocomplete.d.ts +3 -2
  190. package/dist/ui/components/search-autocomplete/use-search-autocomplete.js.map +1 -1
  191. package/dist/ui/components/select-field/content.d.ts +3 -2
  192. package/dist/ui/components/select-field/content.js +1 -1
  193. package/dist/ui/components/select-field/content.js.map +1 -1
  194. package/dist/ui/components/select-field/select-field.d.ts +3 -2
  195. package/dist/ui/components/select-field/select-field.js +1 -1
  196. package/dist/ui/components/select-field/select-field.js.map +1 -1
  197. package/dist/ui/components/select-field/selected-content.d.ts +3 -2
  198. package/dist/ui/components/select-field/selected-content.js +1 -1
  199. package/dist/ui/components/select-field/selected-content.js.map +1 -1
  200. package/dist/ui/components/select-field/subcomponents/CommandItemList.d.ts +3 -4
  201. package/dist/ui/components/select-field/subcomponents/CommandItemList.d.ts.map +1 -1
  202. package/dist/ui/components/select-field/subcomponents/CommandItemList.js +1 -1
  203. package/dist/ui/components/select-field/subcomponents/CommandItemList.js.map +1 -1
  204. package/dist/ui/components/select-field/use-select-field.d.ts +4 -12
  205. package/dist/ui/components/select-field/use-select-field.d.ts.map +1 -1
  206. package/dist/ui/components/select-field/use-select-field.js.map +1 -1
  207. package/dist/ui/components/sidebar/index.d.ts +6 -4
  208. package/dist/ui/components/sidebar/sidebar.d.ts +3 -2
  209. package/dist/ui/components/sidebar/sidebar.js +1 -1
  210. package/dist/ui/components/sidebar/sidebar.js.map +1 -1
  211. package/dist/ui/components/sidebar/subcomponents/sidebar-content-area.d.ts +2 -7
  212. package/dist/ui/components/sidebar/subcomponents/sidebar-content-area.d.ts.map +1 -1
  213. package/dist/ui/components/sidebar/subcomponents/sidebar-content-area.js +1 -1
  214. package/dist/ui/components/sidebar/subcomponents/sidebar-content-area.js.map +1 -1
  215. package/dist/ui/components/sidebar/subcomponents/sidebar-header.d.ts +2 -2
  216. package/dist/ui/components/sidebar/subcomponents/sidebar-header.d.ts.map +1 -1
  217. package/dist/ui/components/sidebar/subcomponents/sidebar-header.js.map +1 -1
  218. package/dist/ui/components/sidebar/subcomponents/sidebar-item.d.ts +3 -18
  219. package/dist/ui/components/sidebar/subcomponents/sidebar-item.d.ts.map +1 -1
  220. package/dist/ui/components/sidebar/subcomponents/sidebar-item.js +3 -3
  221. package/dist/ui/components/sidebar/subcomponents/sidebar-item.js.map +1 -1
  222. package/dist/ui/components/sidebar/subcomponents/sidebar-pinning-area.d.ts +2 -4
  223. package/dist/ui/components/sidebar/subcomponents/sidebar-pinning-area.d.ts.map +1 -1
  224. package/dist/ui/components/sidebar/subcomponents/sidebar-pinning-area.js.map +1 -1
  225. package/dist/ui/components/sidebar/subcomponents/sidebar-provider/index.d.ts +4 -2
  226. package/dist/ui/components/sidebar/subcomponents/sidebar-provider/sidebar-provider.d.ts +3 -2
  227. package/dist/ui/components/sidebar/subcomponents/sidebar-provider/sidebar-provider.js +2 -2
  228. package/dist/ui/components/sidebar/subcomponents/sidebar-provider/sidebar-provider.js.map +1 -1
  229. package/dist/ui/components/sidebar/subcomponents/sidebar-provider/sidebar-reducer.d.ts +7 -8
  230. package/dist/ui/components/sidebar/subcomponents/sidebar-provider/sidebar-reducer.d.ts.map +1 -1
  231. package/dist/ui/components/sidebar/subcomponents/sidebar-provider/sidebar-reducer.js +1 -1
  232. package/dist/ui/components/sidebar/subcomponents/sidebar-provider/sidebar-reducer.js.map +1 -1
  233. package/dist/ui/components/sidebar/subcomponents/sidebar-search/index.d.ts +2 -1
  234. package/dist/ui/components/sidebar/subcomponents/sidebar-search/search-navigation-arrow.d.ts +2 -2
  235. package/dist/ui/components/sidebar/subcomponents/sidebar-search/search-navigation-arrow.d.ts.map +1 -1
  236. package/dist/ui/components/sidebar/subcomponents/sidebar-search/search-navigation-arrow.js.map +1 -1
  237. package/dist/ui/components/sidebar/subcomponents/sidebar-search/search-result-counter.d.ts +2 -2
  238. package/dist/ui/components/sidebar/subcomponents/sidebar-search/search-result-counter.d.ts.map +1 -1
  239. package/dist/ui/components/sidebar/subcomponents/sidebar-search/search-result-counter.js.map +1 -1
  240. package/dist/ui/components/sidebar/subcomponents/sidebar-search/sidebar-search.d.ts +2 -2
  241. package/dist/ui/components/sidebar/subcomponents/sidebar-search/sidebar-search.d.ts.map +1 -1
  242. package/dist/ui/components/sidebar/subcomponents/sidebar-search/sidebar-search.js +1 -1
  243. package/dist/ui/components/sidebar/subcomponents/sidebar-search/sidebar-search.js.map +1 -1
  244. package/dist/ui/components/sidebar/subcomponents/sidebar-skeleton-item.d.ts +2 -8
  245. package/dist/ui/components/sidebar/subcomponents/sidebar-skeleton-item.d.ts.map +1 -1
  246. package/dist/ui/components/sidebar/subcomponents/sidebar-skeleton-item.js +2 -1
  247. package/dist/ui/components/sidebar/subcomponents/sidebar-skeleton-item.js.map +1 -1
  248. package/dist/ui/components/sidebar/subcomponents/sidebar-skeleton.d.ts +2 -4
  249. package/dist/ui/components/sidebar/subcomponents/sidebar-skeleton.d.ts.map +1 -1
  250. package/dist/ui/components/sidebar/subcomponents/sidebar-skeleton.js.map +1 -1
  251. package/dist/ui/components/sidebar/subcomponents/status-icon.d.ts +3 -9
  252. package/dist/ui/components/sidebar/subcomponents/status-icon.d.ts.map +1 -1
  253. package/dist/ui/components/sidebar/subcomponents/status-icon.js +1 -1
  254. package/dist/ui/components/sidebar/subcomponents/status-icon.js.map +1 -1
  255. package/dist/ui/components/sidebar/types.d.ts +3 -2
  256. package/dist/ui/components/sidebar/types.js +1 -1
  257. package/dist/ui/components/sidebar/types.js.map +1 -1
  258. package/dist/ui/components/sidebar/use-ellipsis.d.ts +2 -2
  259. package/dist/ui/components/sidebar/use-ellipsis.d.ts.map +1 -1
  260. package/dist/ui/components/sidebar/use-ellipsis.js.map +1 -1
  261. package/dist/ui/components/sidebar/use-sidebar-resize.d.ts +3 -9
  262. package/dist/ui/components/sidebar/use-sidebar-resize.d.ts.map +1 -1
  263. package/dist/ui/components/sidebar/use-sidebar-resize.js.map +1 -1
  264. package/dist/ui/components/sidebar/utils.d.ts +10 -11
  265. package/dist/ui/components/sidebar/utils.d.ts.map +1 -1
  266. package/dist/ui/components/sidebar/utils.js.map +1 -1
  267. package/dist/ui/components/text-field/text-field.d.ts +3 -2
  268. package/dist/ui/components/text-field/text-field.js +3 -2
  269. package/dist/ui/components/text-field/text-field.js.map +1 -1
  270. package/dist/ui/components/text-input/text-input-diff.d.ts +3 -2
  271. package/dist/ui/components/text-input/text-input-diff.js.map +1 -1
  272. package/dist/ui/components/text-input/text-input.d.ts +3 -2
  273. package/dist/ui/components/text-input/text-input.js +1 -1
  274. package/dist/ui/components/text-input/text-input.js.map +1 -1
  275. package/dist/ui/components/text-input/types.d.ts +3 -2
  276. package/dist/ui/components/tooltip/tooltip.d.ts +3 -2
  277. package/dist/ui/components/tooltip/tooltip.js +1 -1
  278. package/dist/ui/components/tooltip/tooltip.js.map +1 -1
  279. package/dist/ui/components/types.d.ts +3 -2
  280. package/dist/ui/components/value-transformer/value-transformer.d.ts +3 -2
  281. package/dist/ui/components/value-transformer/value-transformer.js +5 -3
  282. package/dist/ui/components/value-transformer/value-transformer.js.map +1 -1
  283. package/dist/ui/components/with-field-validation/with-field-validation.d.ts +3 -2
  284. package/dist/ui/components/with-field-validation/with-field-validation.js +1 -1
  285. package/dist/ui/components/with-field-validation/with-field-validation.js.map +1 -1
  286. package/dist/ui/index.d.ts +44 -42
  287. package/dist/ui/lib/date-picker.d.ts +4 -5
  288. package/dist/ui/lib/date-picker.d.ts.map +1 -1
  289. package/dist/ui/lib/date-picker.js +2 -1
  290. package/dist/ui/lib/date-picker.js.map +1 -1
  291. package/dist/ui/lib/date-time-picker.d.ts +6 -6
  292. package/dist/ui/lib/date-time-picker.d.ts.map +1 -1
  293. package/dist/ui/lib/date-time-picker.js.map +1 -1
  294. package/dist/ui/lib/deep-equal.d.ts +2 -2
  295. package/dist/ui/lib/deep-equal.d.ts.map +1 -1
  296. package/dist/ui/lib/deep-equal.js.map +1 -1
  297. package/dist/ui/lib/index.d.ts +2 -1
  298. package/dist/ui/lib/is-empty.d.ts +2 -2
  299. package/dist/ui/lib/is-empty.d.ts.map +1 -1
  300. package/dist/ui/lib/is-empty.js.map +1 -1
  301. package/dist/ui/lib/shared-value-transformers.d.ts +3 -4
  302. package/dist/ui/lib/shared-value-transformers.d.ts.map +1 -1
  303. package/dist/ui/lib/shared-value-transformers.js.map +1 -1
  304. package/dist/ui/lib/types.d.ts +3 -2
  305. package/dist/ui/lib/value-cast.d.ts +4 -4
  306. package/dist/ui/lib/value-cast.d.ts.map +1 -1
  307. package/dist/ui/lib/value-cast.js +10 -4
  308. package/dist/ui/lib/value-cast.js.map +1 -1
  309. package/dist/ui/types.d.ts +4 -3
  310. package/dist/{use-id-autocomplete-By7YSChC.d.ts → use-id-autocomplete-wdw3CfYc.d.ts} +5 -16
  311. package/dist/use-id-autocomplete-wdw3CfYc.d.ts.map +1 -0
  312. package/dist/{use-search-autocomplete-IfcQ_gKh.d.ts → use-search-autocomplete-vSvcsvcB.d.ts} +5 -6
  313. package/dist/use-search-autocomplete-vSvcsvcB.d.ts.map +1 -0
  314. package/dist/{value-transformer-DQjqtNih.d.ts → value-transformer-BAD6r8Ol.d.ts} +5 -7
  315. package/dist/value-transformer-BAD6r8Ol.d.ts.map +1 -0
  316. package/dist/{with-field-validation-Di5D8vU-.d.ts → with-field-validation-Bt02MQn2.d.ts} +3 -3
  317. package/dist/with-field-validation-Bt02MQn2.d.ts.map +1 -0
  318. package/package.json +8 -9
  319. package/dist/button-C8doazjv.d.ts +0 -15
  320. package/dist/button-C8doazjv.d.ts.map +0 -1
  321. package/dist/character-counter-BWoglM2P.d.ts.map +0 -1
  322. package/dist/checkbox-CGBtXQnI.d.ts.map +0 -1
  323. package/dist/checkbox-base-CZo-4eL0.d.ts.map +0 -1
  324. package/dist/command-CbTi7Jj2.d.ts.map +0 -1
  325. package/dist/content-BHWIqmio.d.ts.map +0 -1
  326. package/dist/enum-field-B1ZGimK6.d.ts.map +0 -1
  327. package/dist/form-CKRKn0TQ.d.ts.map +0 -1
  328. package/dist/form-description-CYkcMEzm.d.ts.map +0 -1
  329. package/dist/form-group-C8kL6pdZ.d.ts.map +0 -1
  330. package/dist/form-label-b6nQi0XO.d.ts.map +0 -1
  331. package/dist/form-message-Dq72nBXz.d.ts.map +0 -1
  332. package/dist/form-server-error-message-DXbaiTfF.d.ts +0 -7
  333. package/dist/form-server-error-message-DXbaiTfF.d.ts.map +0 -1
  334. package/dist/id-autocomplete-C-hwriS5.d.ts.map +0 -1
  335. package/dist/id-autocomplete-input-container-DFEyPh5p.d.ts.map +0 -1
  336. package/dist/id-autocomplete-list-EzLpF23C.d.ts.map +0 -1
  337. package/dist/id-autocomplete-list-option-CB5B07Hi.d.ts.map +0 -1
  338. package/dist/index--hDSfvJT.d.ts.map +0 -1
  339. package/dist/index--okzibnx.d.ts +0 -1
  340. package/dist/index-BLwMeReG.d.ts +0 -1
  341. package/dist/index-Cw3C7_1f.d.ts +0 -1
  342. package/dist/index-E7Wvm5uX.d.ts +0 -1
  343. package/dist/index-J3R2mDFQ.d.ts +0 -1
  344. package/dist/input-BpEQjaWV.d.ts.map +0 -1
  345. package/dist/json-viewer-DaTgmzkS.d.ts +0 -8
  346. package/dist/json-viewer-DaTgmzkS.d.ts.map +0 -1
  347. package/dist/message-list-C4mPpBBa.d.ts.map +0 -1
  348. package/dist/popover-XSBOuSih.d.ts.map +0 -1
  349. package/dist/radio-eL0Oy86J.d.ts.map +0 -1
  350. package/dist/radio-group-Bkli6nUz.d.ts.map +0 -1
  351. package/dist/radio-group-field-qOD9_nWy.d.ts.map +0 -1
  352. package/dist/search-autocomplete-BJJkrZ1i.d.ts.map +0 -1
  353. package/dist/select-field-C97QIhUL.d.ts.map +0 -1
  354. package/dist/selected-content-CGsK5PR4.d.ts.map +0 -1
  355. package/dist/sidebar-DOoE4krt.d.ts.map +0 -1
  356. package/dist/sidebar-provider-C2eyz9TL.d.ts.map +0 -1
  357. package/dist/splitted-input-diff-CwPedpov.d.ts +0 -18
  358. package/dist/splitted-input-diff-CwPedpov.d.ts.map +0 -1
  359. package/dist/text-field-DSInH67J.d.ts +0 -10
  360. package/dist/text-field-DSInH67J.d.ts.map +0 -1
  361. package/dist/text-input-8zXIWHLi.d.ts.map +0 -1
  362. package/dist/text-input-diff-B0vLSKQm.d.ts +0 -20
  363. package/dist/text-input-diff-B0vLSKQm.d.ts.map +0 -1
  364. package/dist/tooltip-BxS9HpML.d.ts.map +0 -1
  365. package/dist/types-BTq-St7H.d.ts.map +0 -1
  366. package/dist/types-Bsn62tJB.d.ts.map +0 -1
  367. package/dist/types-C04Q_Fan.d.ts.map +0 -1
  368. package/dist/types-CNbvfWjh.d.ts.map +0 -1
  369. package/dist/use-id-autocomplete-By7YSChC.d.ts.map +0 -1
  370. package/dist/use-search-autocomplete-IfcQ_gKh.d.ts.map +0 -1
  371. package/dist/value-transformer-DQjqtNih.d.ts.map +0 -1
  372. package/dist/with-field-validation-Di5D8vU-.d.ts.map +0 -1
@@ -1,11 +1,10 @@
1
- import { t as DateFieldValue } from "../../types-BTq-St7H.js";
2
-
1
+ import { t as DateFieldValue } from "../../types-CpFPFB1a.js";
3
2
  //#region src/ui/lib/date-picker.d.ts
4
- declare const splitIso8601DateTime: (isoString: string) => {
3
+ export declare const splitIso8601DateTime: (isoString: string) => {
5
4
  date: string;
6
5
  time: string;
7
6
  };
8
- declare const getDateFromValue: (value: DateFieldValue) => string;
7
+ export declare const getDateFromValue: (value: DateFieldValue) => string;
9
8
  //#endregion
10
- export { getDateFromValue, splitIso8601DateTime };
9
+ export {};
11
10
  //# sourceMappingURL=date-picker.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"date-picker.d.ts","names":[],"sources":["../../../src/ui/lib/date-picker.ts"],"mappings":";;;cAGa,oBAAA,GAAwB,SAAA;;;;cAiCxB,gBAAA,GAAoB,KAAA,EAAO,cAAA"}
1
+ {"version":3,"file":"date-picker.d.ts","names":[],"sources":["../../../src/ui/lib/date-picker.ts"],"mappings":";;qBAGa,uBAAoB;EAI7B;EACA;;qBA4BS,mBAAgB,OAAW"}
@@ -21,7 +21,8 @@ const splitDateTime = (value) => {
21
21
  };
22
22
  }
23
23
  if (isValid(value)) {
24
- const { date, time } = splitIso8601DateTime(value.toISOString());
24
+ const dateString = value.toISOString();
25
+ const { date, time } = splitIso8601DateTime(dateString);
25
26
  return {
26
27
  date,
27
28
  time
@@ -1 +1 @@
1
- {"version":3,"file":"date-picker.js","names":["isValid","splitIso8601DateTime","isoString","datePart","timePart","split","date","time","splitDateTime","value","defaultResult","dateString","toISOString","getDateFromValue"],"sources":["../../../src/ui/lib/date-picker.ts"],"sourcesContent":["import { isValid } from \"date-fns\";\nimport type { DateFieldValue } from \"./types.js\";\n\nexport const splitIso8601DateTime = (isoString: string) => {\n const [datePart, timePart] = isoString.split(\"T\");\n\n return {\n date: datePart,\n time: timePart,\n };\n};\n\nconst splitDateTime = (\n value: DateFieldValue,\n): { date: string; time: string } => {\n const defaultResult = { date: \"\", time: \"\" };\n\n if (!value) {\n return defaultResult;\n }\n\n if (typeof value === \"string\") {\n const { date, time } = splitIso8601DateTime(value);\n\n return { date, time };\n }\n\n if (isValid(value)) {\n const dateString = value.toISOString();\n const { date, time } = splitIso8601DateTime(dateString);\n return { date, time };\n }\n\n return defaultResult;\n};\n\nexport const getDateFromValue = (value: DateFieldValue): string => {\n const { date } = splitDateTime(value);\n return date;\n};\n"],"mappings":";;AAGA,MAAaC,wBAAwBC,cAAsB;CACzD,MAAM,CAACC,UAAUC,YAAYF,UAAUG,MAAM,IAAI;AAEjD,QAAO;EACLC,MAAMH;EACNI,MAAMH;EACP;;AAGH,MAAMI,iBACJC,UACmC;CACnC,MAAMC,gBAAgB;EAAEJ,MAAM;EAAIC,MAAM;EAAI;AAE5C,KAAI,CAACE,MACH,QAAOC;AAGT,KAAI,OAAOD,UAAU,UAAU;EAC7B,MAAM,EAAEH,MAAMC,SAASN,qBAAqBQ,MAAM;AAElD,SAAO;GAAEH;GAAMC;GAAM;;AAGvB,KAAIP,QAAQS,MAAM,EAAE;EAElB,MAAM,EAAEH,MAAMC,SAASN,qBADJQ,MAAMG,aAAa,CACiB;AACvD,SAAO;GAAEN;GAAMC;GAAM;;AAGvB,QAAOG;;AAGT,MAAaG,oBAAoBJ,UAAkC;CACjE,MAAM,EAAEH,SAASE,cAAcC,MAAM;AACrC,QAAOH"}
1
+ {"version":3,"file":"date-picker.js","names":["isValid","splitIso8601DateTime","isoString","datePart","timePart","split","date","time","splitDateTime","value","defaultResult","dateString","toISOString","getDateFromValue"],"sources":["../../../src/ui/lib/date-picker.ts"],"sourcesContent":["import { isValid } from \"date-fns\";\nimport type { DateFieldValue } from \"./types.js\";\n\nexport const splitIso8601DateTime = (isoString: string) => {\n const [datePart, timePart] = isoString.split(\"T\");\n\n return {\n date: datePart,\n time: timePart,\n };\n};\n\nconst splitDateTime = (\n value: DateFieldValue,\n): { date: string; time: string } => {\n const defaultResult = { date: \"\", time: \"\" };\n\n if (!value) {\n return defaultResult;\n }\n\n if (typeof value === \"string\") {\n const { date, time } = splitIso8601DateTime(value);\n\n return { date, time };\n }\n\n if (isValid(value)) {\n const dateString = value.toISOString();\n const { date, time } = splitIso8601DateTime(dateString);\n return { date, time };\n }\n\n return defaultResult;\n};\n\nexport const getDateFromValue = (value: DateFieldValue): string => {\n const { date } = splitDateTime(value);\n return date;\n};\n"],"mappings":";;AAGA,MAAaC,wBAAwBC,cAAsB;CACzD,MAAM,CAACC,UAAUC,YAAYF,UAAUG,MAAM,GAAG;CAEhD,OAAO;EACLC,MAAMH;EACNI,MAAMH;CACR;AACF;AAEA,MAAMI,iBACJC,UACmC;CACnC,MAAMC,gBAAgB;EAAEJ,MAAM;EAAIC,MAAM;CAAG;CAE3C,IAAI,CAACE,OACH,OAAOC;CAGT,IAAI,OAAOD,UAAU,UAAU;EAC7B,MAAM,EAAEH,MAAMC,SAASN,qBAAqBQ,KAAK;EAEjD,OAAO;GAAEH;GAAMC;EAAK;CACtB;CAEA,IAAIP,QAAQS,KAAK,GAAG;EAClB,MAAME,aAAaF,MAAMG,YAAY;EACrC,MAAM,EAAEN,MAAMC,SAASN,qBAAqBU,UAAU;EACtD,OAAO;GAAEL;GAAMC;EAAK;CACtB;CAEA,OAAOG;AACT;AAEA,MAAaG,oBAAoBJ,UAAkC;CACjE,MAAM,EAAEH,SAASE,cAAcC,KAAK;CACpC,OAAOH;AACT"}
@@ -1,6 +1,6 @@
1
1
  //#region src/ui/lib/date-time-picker.d.ts
2
- declare const ALLOWED_FORMATS: string[];
3
- declare const dateFormatRegexes: {
2
+ export declare const ALLOWED_FORMATS: string[];
3
+ export declare const dateFormatRegexes: {
4
4
  "yyyy-MM-dd": RegExp;
5
5
  "dd/MM/yyyy": RegExp;
6
6
  "MM/dd/yyyy": RegExp;
@@ -26,9 +26,9 @@ declare const dateFormatRegexes: {
26
26
  * @example
27
27
  * parseInputString("2024-01-01 12:00:00", "yyyy-MM-dd HH:mm:ss") // "2024-01-01 12:00:00"
28
28
  */
29
- declare const parseInputString: (inputString: string, dateFormat?: string) => string;
30
- declare const getDateFormat: (displayFormat: string) => string | undefined;
31
- declare const normalizeMonthFormat: (dateString: string) => string;
29
+ export declare const parseInputString: (inputString: string, dateFormat?: string) => string;
30
+ export declare const getDateFormat: (displayFormat: string) => string | undefined;
31
+ export declare const normalizeMonthFormat: (dateString: string) => string;
32
32
  //#endregion
33
- export { ALLOWED_FORMATS, dateFormatRegexes, getDateFormat, normalizeMonthFormat, parseInputString };
33
+ export {};
34
34
  //# sourceMappingURL=date-time-picker.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"date-time-picker.d.ts","names":[],"sources":["../../../src/ui/lib/date-time-picker.ts"],"mappings":";cAEa,eAAA;AAAA,cAQA,iBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cA8BA,gBAAA,GACX,WAAA,UACA,UAAA;AAAA,cA4BW,aAAA,GAAiB,aAAA;AAAA,cAiBjB,oBAAA,GAAwB,UAAA"}
1
+ {"version":3,"file":"date-time-picker.d.ts","names":[],"sources":["../../../src/ui/lib/date-time-picker.ts"],"mappings":";qBAEa;qBAQA;EACX,cAAY;EACZ,cAAY;EACZ,cAAY;EACZ,eAAa;EAEb,eAAa;;;;;;;;;;;;;;;;;;;;;qBAwBF,mBAAgB,qBACR;qBA6BR,gBAAa;qBAiBb,uBAAoB"}
@@ -1 +1 @@
1
- {"version":3,"file":"date-time-picker.js","names":["format","isValid","parse","ALLOWED_FORMATS","dateFormatRegexes","parseInputString","inputString","dateFormat","newInputString","normalizeMonthFormat","specifiedFormatRegex","test","parsedDate","Date","formatStr","regex","Object","entries","newValue","getDateFormat","displayFormat","undefined","dateString","months","replace","month","upperMonth","toUpperCase","monthIndex","indexOf","charAt","slice","toLowerCase"],"sources":["../../../src/ui/lib/date-time-picker.ts"],"sourcesContent":["import { format, isValid, parse } from \"date-fns\";\n\nexport const ALLOWED_FORMATS = [\n \"yyyy-MM-dd\",\n \"dd/MM/yyyy\",\n \"MM/dd/yyyy\",\n \"dd-MMM-yyyy\",\n \"MMM-dd-yyyy\",\n];\n\nexport const dateFormatRegexes = {\n \"yyyy-MM-dd\": /^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$/,\n \"dd/MM/yyyy\": /^(0[1-9]|[12]\\d|3[01])\\/(0[1-9]|1[0-2])\\/\\d{4}$/,\n \"MM/dd/yyyy\": /^(0[1-9]|1[0-2])\\/(0[1-9]|[12]\\d|3[01])\\/\\d{4}$/,\n \"dd-MMM-yyyy\":\n /^(0[1-9]|[12]\\d|3[01])-(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-\\d{4}$/,\n \"MMM-dd-yyyy\":\n /^(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(0[1-9]|[12]\\d|3[01])-\\d{4}$/,\n};\n\n/**\n * Gets the current UTC offset for a specific time zone\n * @param timeZone - The IANA time zone name (e.g. \"America/New_York\", \"Europe/London\").\n * If not provided or invalid, falls back to local system timezone.\n * @returns The offset in ISO 8601 format (±HH:mm) based on current DST rules.\n * @example\n * getOffset(\"America/New_York\") // Returns \"-04:00\" (EDT) or \"-05:00\" (EST)\n * getOffset(\"Asia/Kolkata\") // Returns \"+05:30\" (IST - no DST)\n * getOffset(\"Invalid/Zone\") // Returns local system offset (e.g. \"-03:00\")\n * getOffset() // Returns local system offset\n */\n\n/**\n * Parse an input string to a valid date format\n * @param inputString - The input string to parse\n * @param dateFormat - The date format to use\n * @returns The parsed date string\n * @example\n * parseInputString(\"2024-01-01 12:00:00\", \"yyyy-MM-dd HH:mm:ss\") // \"2024-01-01 12:00:00\"\n */\nexport const parseInputString = (\n inputString: string,\n dateFormat = ALLOWED_FORMATS[0],\n): string => {\n const newInputString = normalizeMonthFormat(inputString);\n\n if (!dateFormat || !inputString) return inputString;\n\n // First check the specified format\n const specifiedFormatRegex =\n dateFormatRegexes[dateFormat as keyof typeof dateFormatRegexes];\n if (specifiedFormatRegex.test(newInputString)) {\n const parsedDate = parse(newInputString, dateFormat, new Date());\n if (isValid(parsedDate)) {\n return format(parsedDate, dateFormat);\n }\n }\n\n for (const [formatStr, regex] of Object.entries(dateFormatRegexes)) {\n if (regex.test(newInputString)) {\n const parsedDate = parse(newInputString, formatStr, new Date());\n if (isValid(parsedDate)) {\n const newValue = format(parsedDate, dateFormat || formatStr);\n return newValue;\n }\n }\n }\n return inputString;\n};\n\nexport const getDateFormat = (displayFormat: string): string | undefined => {\n switch (displayFormat) {\n case \"YYYY-MM-DD\":\n return \"yyyy-MM-dd\";\n case \"DD/MM/YYYY\":\n return \"dd/MM/yyyy\";\n case \"MM/DD/YYYY\":\n return \"MM/dd/yyyy\";\n case \"DD-MMM-YYYY\":\n return \"dd-MMM-yyyy\";\n case \"MMM-DD-YYYY\":\n return \"MMM-dd-yyyy\";\n default:\n return undefined;\n }\n};\n\nexport const normalizeMonthFormat = (dateString: string): string => {\n const months = [\n \"JAN\",\n \"FEB\",\n \"MAR\",\n \"APR\",\n \"MAY\",\n \"JUN\",\n \"JUL\",\n \"AUG\",\n \"SEP\",\n \"OCT\",\n \"NOV\",\n \"DEC\",\n ];\n\n return dateString.replace(\n /(JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)/i,\n (month) => {\n const upperMonth = month.toUpperCase();\n const monthIndex = months.indexOf(upperMonth);\n if (monthIndex !== -1) {\n return (\n months[monthIndex].charAt(0) +\n months[monthIndex].slice(1).toLowerCase()\n );\n }\n return month;\n },\n );\n};\n"],"mappings":";;AAEA,MAAaG,kBAAkB;CAC7B;CACA;CACA;CACA;CACA;CACD;AAED,MAAaC,oBAAoB;CAC/B,cAAc;CACd,cAAc;CACd,cAAc;CACd,eACE;CACF,eACE;CACH;;;;;;;;;;;;;;;;;;;;AAsBD,MAAaC,oBACXC,aACAC,aAAaJ,gBAAgB,OAClB;CACX,MAAMK,iBAAiBC,qBAAqBH,YAAY;AAExD,KAAI,CAACC,cAAc,CAACD,YAAa,QAAOA;AAKxC,KADEF,kBAAkBG,YACKI,KAAKH,eAAe,EAAE;EAC7C,MAAMI,aAAaV,MAAMM,gBAAgBD,4BAAY,IAAIM,MAAM,CAAC;AAChE,MAAIZ,QAAQW,WAAW,CACrB,QAAOZ,OAAOY,YAAYL,WAAW;;AAIzC,MAAK,MAAM,CAACO,WAAWC,UAAUC,OAAOC,QAAQb,kBAAkB,CAChE,KAAIW,MAAMJ,KAAKH,eAAe,EAAE;EAC9B,MAAMI,aAAaV,MAAMM,gBAAgBM,2BAAW,IAAID,MAAM,CAAC;AAC/D,MAAIZ,QAAQW,WAAW,CAErB,QADiBZ,OAAOY,YAAYL,cAAcO,UAAU;;AAKlE,QAAOR;;AAGT,MAAaa,iBAAiBC,kBAA8C;AAC1E,SAAQA,eAAR;EACE,KAAK,aACH,QAAO;EACT,KAAK,aACH,QAAO;EACT,KAAK,aACH,QAAO;EACT,KAAK,cACH,QAAO;EACT,KAAK,cACH,QAAO;EACT,QACE;;;AAIN,MAAaX,wBAAwBa,eAA+B;CAClE,MAAMC,SAAS;EACb;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD;AAED,QAAOD,WAAWE,QAChB,uDACCC,UAAU;EACT,MAAMC,aAAaD,MAAME,aAAa;EACtC,MAAMC,aAAaL,OAAOM,QAAQH,WAAW;AAC7C,MAAIE,eAAe,GACjB,QACEL,OAAOK,YAAYE,OAAO,EAAE,GAC5BP,OAAOK,YAAYG,MAAM,EAAE,CAACC,aAAa;AAG7C,SAAOP;GAEV"}
1
+ {"version":3,"file":"date-time-picker.js","names":["format","isValid","parse","ALLOWED_FORMATS","dateFormatRegexes","parseInputString","inputString","dateFormat","newInputString","normalizeMonthFormat","specifiedFormatRegex","test","parsedDate","Date","formatStr","regex","Object","entries","newValue","getDateFormat","displayFormat","undefined","dateString","months","replace","month","upperMonth","toUpperCase","monthIndex","indexOf","charAt","slice","toLowerCase"],"sources":["../../../src/ui/lib/date-time-picker.ts"],"sourcesContent":["import { format, isValid, parse } from \"date-fns\";\n\nexport const ALLOWED_FORMATS = [\n \"yyyy-MM-dd\",\n \"dd/MM/yyyy\",\n \"MM/dd/yyyy\",\n \"dd-MMM-yyyy\",\n \"MMM-dd-yyyy\",\n];\n\nexport const dateFormatRegexes = {\n \"yyyy-MM-dd\": /^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$/,\n \"dd/MM/yyyy\": /^(0[1-9]|[12]\\d|3[01])\\/(0[1-9]|1[0-2])\\/\\d{4}$/,\n \"MM/dd/yyyy\": /^(0[1-9]|1[0-2])\\/(0[1-9]|[12]\\d|3[01])\\/\\d{4}$/,\n \"dd-MMM-yyyy\":\n /^(0[1-9]|[12]\\d|3[01])-(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-\\d{4}$/,\n \"MMM-dd-yyyy\":\n /^(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(0[1-9]|[12]\\d|3[01])-\\d{4}$/,\n};\n\n/**\n * Gets the current UTC offset for a specific time zone\n * @param timeZone - The IANA time zone name (e.g. \"America/New_York\", \"Europe/London\").\n * If not provided or invalid, falls back to local system timezone.\n * @returns The offset in ISO 8601 format (±HH:mm) based on current DST rules.\n * @example\n * getOffset(\"America/New_York\") // Returns \"-04:00\" (EDT) or \"-05:00\" (EST)\n * getOffset(\"Asia/Kolkata\") // Returns \"+05:30\" (IST - no DST)\n * getOffset(\"Invalid/Zone\") // Returns local system offset (e.g. \"-03:00\")\n * getOffset() // Returns local system offset\n */\n\n/**\n * Parse an input string to a valid date format\n * @param inputString - The input string to parse\n * @param dateFormat - The date format to use\n * @returns The parsed date string\n * @example\n * parseInputString(\"2024-01-01 12:00:00\", \"yyyy-MM-dd HH:mm:ss\") // \"2024-01-01 12:00:00\"\n */\nexport const parseInputString = (\n inputString: string,\n dateFormat = ALLOWED_FORMATS[0],\n): string => {\n const newInputString = normalizeMonthFormat(inputString);\n\n if (!dateFormat || !inputString) return inputString;\n\n // First check the specified format\n const specifiedFormatRegex =\n dateFormatRegexes[dateFormat as keyof typeof dateFormatRegexes];\n if (specifiedFormatRegex.test(newInputString)) {\n const parsedDate = parse(newInputString, dateFormat, new Date());\n if (isValid(parsedDate)) {\n return format(parsedDate, dateFormat);\n }\n }\n\n for (const [formatStr, regex] of Object.entries(dateFormatRegexes)) {\n if (regex.test(newInputString)) {\n const parsedDate = parse(newInputString, formatStr, new Date());\n if (isValid(parsedDate)) {\n const newValue = format(parsedDate, dateFormat || formatStr);\n return newValue;\n }\n }\n }\n return inputString;\n};\n\nexport const getDateFormat = (displayFormat: string): string | undefined => {\n switch (displayFormat) {\n case \"YYYY-MM-DD\":\n return \"yyyy-MM-dd\";\n case \"DD/MM/YYYY\":\n return \"dd/MM/yyyy\";\n case \"MM/DD/YYYY\":\n return \"MM/dd/yyyy\";\n case \"DD-MMM-YYYY\":\n return \"dd-MMM-yyyy\";\n case \"MMM-DD-YYYY\":\n return \"MMM-dd-yyyy\";\n default:\n return undefined;\n }\n};\n\nexport const normalizeMonthFormat = (dateString: string): string => {\n const months = [\n \"JAN\",\n \"FEB\",\n \"MAR\",\n \"APR\",\n \"MAY\",\n \"JUN\",\n \"JUL\",\n \"AUG\",\n \"SEP\",\n \"OCT\",\n \"NOV\",\n \"DEC\",\n ];\n\n return dateString.replace(\n /(JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)/i,\n (month) => {\n const upperMonth = month.toUpperCase();\n const monthIndex = months.indexOf(upperMonth);\n if (monthIndex !== -1) {\n return (\n months[monthIndex].charAt(0) +\n months[monthIndex].slice(1).toLowerCase()\n );\n }\n return month;\n },\n );\n};\n"],"mappings":";;AAEA,MAAaG,kBAAkB;CAC7B;CACA;CACA;CACA;CACA;AAAa;AAGf,MAAaC,oBAAoB;CAC/B,cAAc;CACd,cAAc;CACd,cAAc;CACd,eACE;CACF,eACE;AACJ;;;;;;;;;;;;;;;;;;;;AAsBA,MAAaC,oBACXC,aACAC,aAAaJ,gBAAgB,OAClB;CACX,MAAMK,iBAAiBC,qBAAqBH,WAAW;CAEvD,IAAI,CAACC,cAAc,CAACD,aAAa,OAAOA;CAKxC,IADEF,kBAAkBG,WACI,CAACI,KAAKH,cAAc,GAAG;EAC7C,MAAMI,aAAaV,MAAMM,gBAAgBD,4BAAY,IAAIM,KAAK,CAAC;EAC/D,IAAIZ,QAAQW,UAAU,GACpB,OAAOZ,OAAOY,YAAYL,UAAU;CAExC;CAEA,KAAK,MAAM,CAACO,WAAWC,UAAUC,OAAOC,QAAQb,iBAAiB,GAC/D,IAAIW,MAAMJ,KAAKH,cAAc,GAAG;EAC9B,MAAMI,aAAaV,MAAMM,gBAAgBM,2BAAW,IAAID,KAAK,CAAC;EAC9D,IAAIZ,QAAQW,UAAU,GAEpB,OADiBZ,OAAOY,YAAYL,cAAcO,SAC3CI;CAEX;CAEF,OAAOZ;AACT;AAEA,MAAaa,iBAAiBC,kBAA8C;CAC1E,QAAQA,eAAR;EACE,KAAK,cACH,OAAO;EACT,KAAK,cACH,OAAO;EACT,KAAK,cACH,OAAO;EACT,KAAK,eACH,OAAO;EACT,KAAK,eACH,OAAO;EACT,SACE;CACJ;AACF;AAEA,MAAaX,wBAAwBa,eAA+B;CAClE,MAAMC,SAAS;EACb;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CAAK;CAGP,OAAOD,WAAWE,QAChB,uDACCC,UAAU;EACT,MAAMC,aAAaD,MAAME,YAAY;EACrC,MAAMC,aAAaL,OAAOM,QAAQH,UAAU;EAC5C,IAAIE,eAAe,IACjB,OACEL,OAAOK,WAAW,CAACE,OAAO,CAAC,IAC3BP,OAAOK,WAAW,CAACG,MAAM,CAAC,CAAC,CAACC,YAAY;EAG5C,OAAOP;CACT,CACF;AACF"}
@@ -1,5 +1,5 @@
1
1
  //#region src/ui/lib/deep-equal.d.ts
2
- declare function deepEqual(a: unknown, b: unknown, visited?: Map<any, any>): boolean;
2
+ export declare function deepEqual(a: unknown, b: unknown, visited?: Map<any, any>): boolean;
3
3
  //#endregion
4
- export { deepEqual };
4
+ export {};
5
5
  //# sourceMappingURL=deep-equal.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"deep-equal.d.ts","names":[],"sources":["../../../src/ui/lib/deep-equal.ts"],"mappings":";iBAAgB,SAAA,CACd,CAAA,WACA,CAAA,WACA,OAAA,GAAO,GAAA"}
1
+ {"version":3,"file":"deep-equal.d.ts","names":[],"sources":["../../../src/ui/lib/deep-equal.ts"],"mappings":";wBAAgB,UACd,YACA,YACA,UAAO"}
@@ -1 +1 @@
1
- {"version":3,"file":"deep-equal.js","names":["deepEqual","a","b","visited","Map","undefined","Array","isArray","get","set","length","every","value","index","aKeys","Object","keys","bKeys","key"],"sources":["../../../src/ui/lib/deep-equal.ts"],"sourcesContent":["export function deepEqual(\n a: unknown,\n b: unknown,\n visited = new Map(),\n): boolean {\n if (a === b) {\n return true;\n }\n\n if (a === null || b === null || a === undefined || b === undefined) {\n return false;\n }\n\n if (typeof a !== typeof b) {\n return false;\n }\n\n if (Array.isArray(a) && Array.isArray(b)) {\n if (visited.get(a) === b) {\n return true; // Same circular reference detected\n }\n visited.set(a, b);\n return (\n a.length === b.length &&\n a.every((value, index) => deepEqual(value, b[index], visited))\n );\n }\n\n if (\n typeof a === \"object\" &&\n typeof b === \"object\" &&\n !Array.isArray(a) &&\n !Array.isArray(b)\n ) {\n if (visited.get(a) === b) {\n return true; // Same circular reference detected\n }\n visited.set(a, b);\n const aKeys = Object.keys(a);\n const bKeys = Object.keys(b);\n return (\n aKeys.length === bKeys.length &&\n aKeys.every((key) => {\n return (\n key in b &&\n deepEqual(\n (a as Record<string, unknown>)[key],\n (b as Record<string, unknown>)[key],\n visited,\n )\n );\n })\n );\n }\n\n return false;\n}\n"],"mappings":";AAAA,SAAgBA,UACdC,GACAC,GACAC,0BAAU,IAAIC,KAAK,EACV;AACT,KAAIH,MAAMC,EACR,QAAO;AAGT,KAAID,MAAM,QAAQC,MAAM,QAAQD,MAAMI,KAAAA,KAAaH,MAAMG,KAAAA,EACvD,QAAO;AAGT,KAAI,OAAOJ,MAAM,OAAOC,EACtB,QAAO;AAGT,KAAII,MAAMC,QAAQN,EAAE,IAAIK,MAAMC,QAAQL,EAAE,EAAE;AACxC,MAAIC,QAAQK,IAAIP,EAAE,KAAKC,EACrB,QAAO;AAETC,UAAQM,IAAIR,GAAGC,EAAE;AACjB,SACED,EAAES,WAAWR,EAAEQ,UACfT,EAAEU,OAAOC,OAAOC,UAAUb,UAAUY,OAAOV,EAAEW,QAAQV,QAAQ,CAAC;;AAIlE,KACE,OAAOF,MAAM,YACb,OAAOC,MAAM,YACb,CAACI,MAAMC,QAAQN,EAAE,IACjB,CAACK,MAAMC,QAAQL,EAAE,EACjB;AACA,MAAIC,QAAQK,IAAIP,EAAE,KAAKC,EACrB,QAAO;AAETC,UAAQM,IAAIR,GAAGC,EAAE;EACjB,MAAMY,QAAQC,OAAOC,KAAKf,EAAE;EAC5B,MAAMgB,QAAQF,OAAOC,KAAKd,EAAE;AAC5B,SACEY,MAAMJ,WAAWO,MAAMP,UACvBI,MAAMH,OAAOO,QAAQ;AACnB,UACEA,OAAOhB,KACPF,UACGC,EAA8BiB,MAC9BhB,EAA8BgB,MAC/Bf,QACD;IAEH;;AAIN,QAAO"}
1
+ {"version":3,"file":"deep-equal.js","names":["deepEqual","a","b","visited","Map","undefined","Array","isArray","get","set","length","every","value","index","aKeys","Object","keys","bKeys","key"],"sources":["../../../src/ui/lib/deep-equal.ts"],"sourcesContent":["export function deepEqual(\n a: unknown,\n b: unknown,\n visited = new Map(),\n): boolean {\n if (a === b) {\n return true;\n }\n\n if (a === null || b === null || a === undefined || b === undefined) {\n return false;\n }\n\n if (typeof a !== typeof b) {\n return false;\n }\n\n if (Array.isArray(a) && Array.isArray(b)) {\n if (visited.get(a) === b) {\n return true; // Same circular reference detected\n }\n visited.set(a, b);\n return (\n a.length === b.length &&\n a.every((value, index) => deepEqual(value, b[index], visited))\n );\n }\n\n if (\n typeof a === \"object\" &&\n typeof b === \"object\" &&\n !Array.isArray(a) &&\n !Array.isArray(b)\n ) {\n if (visited.get(a) === b) {\n return true; // Same circular reference detected\n }\n visited.set(a, b);\n const aKeys = Object.keys(a);\n const bKeys = Object.keys(b);\n return (\n aKeys.length === bKeys.length &&\n aKeys.every((key) => {\n return (\n key in b &&\n deepEqual(\n (a as Record<string, unknown>)[key],\n (b as Record<string, unknown>)[key],\n visited,\n )\n );\n })\n );\n }\n\n return false;\n}\n"],"mappings":";AAAA,SAAgBA,UACdC,GACAC,GACAC,0BAAU,IAAIC,IAAI,GACT;CACT,IAAIH,MAAMC,GACR,OAAO;CAGT,IAAID,MAAM,QAAQC,MAAM,QAAQD,MAAMI,KAAAA,KAAaH,MAAMG,KAAAA,GACvD,OAAO;CAGT,IAAI,OAAOJ,MAAM,OAAOC,GACtB,OAAO;CAGT,IAAII,MAAMC,QAAQN,CAAC,KAAKK,MAAMC,QAAQL,CAAC,GAAG;EACxC,IAAIC,QAAQK,IAAIP,CAAC,MAAMC,GACrB,OAAO;EAETC,QAAQM,IAAIR,GAAGC,CAAC;EAChB,OACED,EAAES,WAAWR,EAAEQ,UACfT,EAAEU,OAAOC,OAAOC,UAAUb,UAAUY,OAAOV,EAAEW,QAAQV,OAAO,CAAC;CAEjE;CAEA,IACE,OAAOF,MAAM,YACb,OAAOC,MAAM,YACb,CAACI,MAAMC,QAAQN,CAAC,KAChB,CAACK,MAAMC,QAAQL,CAAC,GAChB;EACA,IAAIC,QAAQK,IAAIP,CAAC,MAAMC,GACrB,OAAO;EAETC,QAAQM,IAAIR,GAAGC,CAAC;EAChB,MAAMY,QAAQC,OAAOC,KAAKf,CAAC;EAC3B,MAAMgB,QAAQF,OAAOC,KAAKd,CAAC;EAC3B,OACEY,MAAMJ,WAAWO,MAAMP,UACvBI,MAAMH,OAAOO,QAAQ;GACnB,OACEA,OAAOhB,KACPF,UACGC,EAA8BiB,MAC9BhB,EAA8BgB,MAC/Bf,OACF;EAEJ,CAAC;CAEL;CAEA,OAAO;AACT"}
@@ -4,4 +4,5 @@ import { deepEqual } from "./deep-equal.js";
4
4
  import { isEmpty } from "./is-empty.js";
5
5
  import { sharedValueTransformers } from "./shared-value-transformers.js";
6
6
  import { ValueCast, castFunctions, castValue } from "./value-cast.js";
7
- export { ALLOWED_FORMATS, ValueCast, castFunctions, castValue, dateFormatRegexes, deepEqual, getDateFormat, getDateFromValue, isEmpty, normalizeMonthFormat, parseInputString, sharedValueTransformers, splitIso8601DateTime };
7
+ export { ALLOWED_FORMATS, ValueCast, castFunctions, castValue, dateFormatRegexes, deepEqual, getDateFormat, getDateFromValue, isEmpty, normalizeMonthFormat, parseInputString, sharedValueTransformers, splitIso8601DateTime };
8
+ export {};
@@ -1,5 +1,5 @@
1
1
  //#region src/ui/lib/is-empty.d.ts
2
- declare function isEmpty(value: unknown): boolean;
2
+ export declare function isEmpty(value: unknown): boolean;
3
3
  //#endregion
4
- export { isEmpty };
4
+ export {};
5
5
  //# sourceMappingURL=is-empty.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"is-empty.d.ts","names":[],"sources":["../../../src/ui/lib/is-empty.ts"],"mappings":";iBAAgB,OAAA,CAAQ,KAAA"}
1
+ {"version":3,"file":"is-empty.d.ts","names":[],"sources":["../../../src/ui/lib/is-empty.ts"],"mappings":";wBAAgB,QAAQ"}
@@ -1 +1 @@
1
- {"version":3,"file":"is-empty.js","names":["isEmpty","value","undefined","isNaN","RegExp","Date","Array","isArray","length","Map","Set","size","Object","keys"],"sources":["../../../src/ui/lib/is-empty.ts"],"sourcesContent":["export function isEmpty(value: unknown): boolean {\n if (\n value === null ||\n value === undefined ||\n (typeof value === \"number\" && isNaN(value))\n ) {\n return true;\n }\n\n if (typeof value === \"boolean\" || typeof value === \"number\") {\n return false;\n }\n\n if (value instanceof RegExp || value instanceof Date) {\n return false; // Regex and Date are not considered empty\n }\n\n if (typeof value === \"string\" || Array.isArray(value)) {\n return value.length === 0;\n }\n\n if (value instanceof Map || value instanceof Set) {\n return value.size === 0;\n }\n\n if (typeof value === \"object\") {\n return Object.keys(value).length === 0;\n }\n\n return false;\n}\n"],"mappings":";AAAA,SAAgBA,QAAQC,OAAyB;AAC/C,KACEA,UAAU,QACVA,UAAUC,KAAAA,KACT,OAAOD,UAAU,YAAYE,MAAMF,MAAO,CAE3C,QAAO;AAGT,KAAI,OAAOA,UAAU,aAAa,OAAOA,UAAU,SACjD,QAAO;AAGT,KAAIA,iBAAiBG,UAAUH,iBAAiBI,KAC9C,QAAO;AAGT,KAAI,OAAOJ,UAAU,YAAYK,MAAMC,QAAQN,MAAM,CACnD,QAAOA,MAAMO,WAAW;AAG1B,KAAIP,iBAAiBQ,OAAOR,iBAAiBS,IAC3C,QAAOT,MAAMU,SAAS;AAGxB,KAAI,OAAOV,UAAU,SACnB,QAAOW,OAAOC,KAAKZ,MAAM,CAACO,WAAW;AAGvC,QAAO"}
1
+ {"version":3,"file":"is-empty.js","names":["isEmpty","value","undefined","isNaN","RegExp","Date","Array","isArray","length","Map","Set","size","Object","keys"],"sources":["../../../src/ui/lib/is-empty.ts"],"sourcesContent":["export function isEmpty(value: unknown): boolean {\n if (\n value === null ||\n value === undefined ||\n (typeof value === \"number\" && isNaN(value))\n ) {\n return true;\n }\n\n if (typeof value === \"boolean\" || typeof value === \"number\") {\n return false;\n }\n\n if (value instanceof RegExp || value instanceof Date) {\n return false; // Regex and Date are not considered empty\n }\n\n if (typeof value === \"string\" || Array.isArray(value)) {\n return value.length === 0;\n }\n\n if (value instanceof Map || value instanceof Set) {\n return value.size === 0;\n }\n\n if (typeof value === \"object\") {\n return Object.keys(value).length === 0;\n }\n\n return false;\n}\n"],"mappings":";AAAA,SAAgBA,QAAQC,OAAyB;CAC/C,IACEA,UAAU,QACVA,UAAUC,KAAAA,KACT,OAAOD,UAAU,YAAYE,MAAMF,KAAK,GAEzC,OAAO;CAGT,IAAI,OAAOA,UAAU,aAAa,OAAOA,UAAU,UACjD,OAAO;CAGT,IAAIA,iBAAiBG,UAAUH,iBAAiBI,MAC9C,OAAO;CAGT,IAAI,OAAOJ,UAAU,YAAYK,MAAMC,QAAQN,KAAK,GAClD,OAAOA,MAAMO,WAAW;CAG1B,IAAIP,iBAAiBQ,OAAOR,iBAAiBS,KAC3C,OAAOT,MAAMU,SAAS;CAGxB,IAAI,OAAOV,UAAU,UACnB,OAAOW,OAAOC,KAAKZ,KAAK,CAAC,CAACO,WAAW;CAGvC,OAAO;AACT"}
@@ -1,7 +1,6 @@
1
- import { r as TransformerObject } from "../../types-BTq-St7H.js";
2
-
1
+ import { r as TransformerObject } from "../../types-CpFPFB1a.js";
3
2
  //#region src/ui/lib/shared-value-transformers.d.ts
4
- declare const sharedValueTransformers: Record<string, (ifParam?: boolean) => TransformerObject>;
3
+ export declare const sharedValueTransformers: Record<string, (ifParam?: boolean) => TransformerObject>;
5
4
  //#endregion
6
- export { sharedValueTransformers };
5
+ export {};
7
6
  //# sourceMappingURL=shared-value-transformers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"shared-value-transformers.d.ts","names":[],"sources":["../../../src/ui/lib/shared-value-transformers.ts"],"mappings":";;;cAEa,uBAAA,EAAyB,MAAA,UAEnC,OAAA,eAAsB,iBAAA"}
1
+ {"version":3,"file":"shared-value-transformers.d.ts","names":[],"sources":["../../../src/ui/lib/shared-value-transformers.ts"],"mappings":";;qBAEa,yBAAyB,gBAEnC,sBAAsB"}
@@ -1 +1 @@
1
- {"version":3,"file":"shared-value-transformers.js","names":["sharedValueTransformers","trimOnBlur","ifParam","transformer","value","trim","options","trigger","if","lowercaseOnChange","toLowerCase","uppercaseOnChange","toUpperCase","trimOnEnter"],"sources":["../../../src/ui/lib/shared-value-transformers.ts"],"sourcesContent":["import type { TransformerObject } from \"./types.js\";\n\nexport const sharedValueTransformers: Record<\n string,\n (ifParam?: boolean) => TransformerObject\n> = {\n trimOnBlur: (ifParam = true) => ({\n transformer: (value?: string) => value?.trim(),\n options: {\n trigger: \"blur\",\n if: ifParam,\n },\n }),\n lowercaseOnChange: (ifParam = true) => ({\n transformer: (value?: string) => value?.toLowerCase(),\n options: {\n trigger: \"change\",\n if: ifParam,\n },\n }),\n uppercaseOnChange: (ifParam = true) => ({\n transformer: (value?: string) => value?.toUpperCase(),\n options: {\n trigger: \"change\",\n if: ifParam,\n },\n }),\n trimOnEnter: (ifParam = true) => ({\n transformer: (value?: string) => value?.trim(),\n options: {\n trigger: \"keyDown\",\n if: ifParam,\n },\n }),\n};\n"],"mappings":";AAEA,MAAaA,0BAGT;CACFC,aAAaC,UAAU,UAAU;EAC/BC,cAAcC,UAAmBA,OAAOC,MAAM;EAC9CC,SAAS;GACPC,SAAS;GACTC,IAAIN;GACN;EACD;CACDO,oBAAoBP,UAAU,UAAU;EACtCC,cAAcC,UAAmBA,OAAOM,aAAa;EACrDJ,SAAS;GACPC,SAAS;GACTC,IAAIN;GACN;EACD;CACDS,oBAAoBT,UAAU,UAAU;EACtCC,cAAcC,UAAmBA,OAAOQ,aAAa;EACrDN,SAAS;GACPC,SAAS;GACTC,IAAIN;GACN;EACD;CACDW,cAAcX,UAAU,UAAU;EAChCC,cAAcC,UAAmBA,OAAOC,MAAM;EAC9CC,SAAS;GACPC,SAAS;GACTC,IAAIN;GACN;EACD;CACF"}
1
+ {"version":3,"file":"shared-value-transformers.js","names":["sharedValueTransformers","trimOnBlur","ifParam","transformer","value","trim","options","trigger","if","lowercaseOnChange","toLowerCase","uppercaseOnChange","toUpperCase","trimOnEnter"],"sources":["../../../src/ui/lib/shared-value-transformers.ts"],"sourcesContent":["import type { TransformerObject } from \"./types.js\";\n\nexport const sharedValueTransformers: Record<\n string,\n (ifParam?: boolean) => TransformerObject\n> = {\n trimOnBlur: (ifParam = true) => ({\n transformer: (value?: string) => value?.trim(),\n options: {\n trigger: \"blur\",\n if: ifParam,\n },\n }),\n lowercaseOnChange: (ifParam = true) => ({\n transformer: (value?: string) => value?.toLowerCase(),\n options: {\n trigger: \"change\",\n if: ifParam,\n },\n }),\n uppercaseOnChange: (ifParam = true) => ({\n transformer: (value?: string) => value?.toUpperCase(),\n options: {\n trigger: \"change\",\n if: ifParam,\n },\n }),\n trimOnEnter: (ifParam = true) => ({\n transformer: (value?: string) => value?.trim(),\n options: {\n trigger: \"keyDown\",\n if: ifParam,\n },\n }),\n};\n"],"mappings":";AAEA,MAAaA,0BAGT;CACFC,aAAaC,UAAU,UAAU;EAC/BC,cAAcC,UAAmBA,OAAOC,KAAK;EAC7CC,SAAS;GACPC,SAAS;GACTC,IAAIN;EACN;CACF;CACAO,oBAAoBP,UAAU,UAAU;EACtCC,cAAcC,UAAmBA,OAAOM,YAAY;EACpDJ,SAAS;GACPC,SAAS;GACTC,IAAIN;EACN;CACF;CACAS,oBAAoBT,UAAU,UAAU;EACtCC,cAAcC,UAAmBA,OAAOQ,YAAY;EACpDN,SAAS;GACPC,SAAS;GACTC,IAAIN;EACN;CACF;CACAW,cAAcX,UAAU,UAAU;EAChCC,cAAcC,UAAmBA,OAAOC,KAAK;EAC7CC,SAAS;GACPC,SAAS;GACTC,IAAIN;EACN;CACF;AACF"}
@@ -1,2 +1,3 @@
1
- import { a as TransformerType, c as WeekStartDayNumber, i as TransformerTrigger, n as DatePickerView, o as ValueTransformerFn, r as TransformerObject, s as ValueTransformerProps, t as DateFieldValue } from "../../types-BTq-St7H.js";
2
- export { DateFieldValue, DatePickerView, TransformerObject, TransformerTrigger, TransformerType, ValueTransformerFn, ValueTransformerProps, WeekStartDayNumber };
1
+ import { a as TransformerType, c as WeekStartDayNumber, i as TransformerTrigger, n as DatePickerView, o as ValueTransformerFn, r as TransformerObject, s as ValueTransformerProps, t as DateFieldValue } from "../../types-CpFPFB1a.js";
2
+ export { DateFieldValue, DatePickerView, TransformerObject, TransformerTrigger, TransformerType, ValueTransformerFn, ValueTransformerProps, WeekStartDayNumber };
3
+ export {};
@@ -1,7 +1,7 @@
1
1
  //#region src/ui/lib/value-cast.d.ts
2
- type ValueCast = "BigInt" | "Number" | "URLTrim" | "AmountNumber" | "AmountBigInt" | "DateString" | "DateTimeString";
3
- declare const castFunctions: Record<ValueCast, (value: any, castParams?: string) => any>;
4
- declare function castValue(value: any, cast: string): any;
2
+ export type ValueCast = "BigInt" | "Number" | "URLTrim" | "AmountNumber" | "AmountBigInt" | "DateString" | "DateTimeString";
3
+ export declare const castFunctions: Record<ValueCast, (value: any, castParams?: string) => any>;
4
+ export declare function castValue(value: any, cast: string): any;
5
5
  //#endregion
6
- export { ValueCast, castFunctions, castValue };
6
+ export {};
7
7
  //# sourceMappingURL=value-cast.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"value-cast.d.ts","names":[],"sources":["../../../src/ui/lib/value-cast.ts"],"mappings":";KASY,SAAA;AAAA,cASC,aAAA,EAAe,MAAA,CAC1B,SAAA,GACC,KAAA,OAAY,UAAA;AAAA,iBAiEC,SAAA,CAAU,KAAA,OAAY,IAAA"}
1
+ {"version":3,"file":"value-cast.d.ts","names":[],"sources":["../../../src/ui/lib/value-cast.ts"],"mappings":";YASY;qBASC,eAAe,OAC1B,YACC,YAAY;wBAiEC,UAAU,YAAY"}
@@ -26,15 +26,21 @@ const castFunctions = {
26
26
  };
27
27
  },
28
28
  DateString: (value, dateFormat = "yyyy-MM-dd") => {
29
- const date = normalizeMonthFormat(getDateFromValue(value));
29
+ const momentDate = getDateFromValue(value);
30
+ const date = normalizeMonthFormat(momentDate);
30
31
  const correctFormat = getDateFormat(dateFormat);
31
- return format(parse(parseInputString(date, correctFormat), correctFormat ?? "yyyy-MM-dd", /* @__PURE__ */ new Date()), "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'");
32
+ const newValue = parseInputString(date, correctFormat);
33
+ const fechaUTC = parse(newValue, correctFormat ?? "yyyy-MM-dd", /* @__PURE__ */ new Date());
34
+ return format(fechaUTC, "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'");
32
35
  },
33
36
  DateTimeString: (value, dateFormat = "yyyy-MM-dd") => {
34
37
  const [datePart, timePart] = value.split("T");
35
- const date = normalizeMonthFormat(getDateFromValue(datePart));
38
+ const unFormattedDate = getDateFromValue(datePart);
39
+ const date = normalizeMonthFormat(unFormattedDate);
36
40
  const correctFormat = getDateFormat(dateFormat);
37
- return `${format(parse(parseInputString(date, correctFormat), correctFormat ?? "yyyy-MM-dd", /* @__PURE__ */ new Date()), "yyyy-MM-dd")}T${timePart}`;
41
+ const normalizedDate = parseInputString(date, correctFormat);
42
+ const parsedDate = parse(normalizedDate, correctFormat ?? "yyyy-MM-dd", /* @__PURE__ */ new Date());
43
+ return `${format(parsedDate, "yyyy-MM-dd")}T${timePart}`;
38
44
  }
39
45
  };
40
46
  function castValue(value, cast) {
@@ -1 +1 @@
1
- {"version":3,"file":"value-cast.js","names":["format","parse","getDateFromValue","getDateFormat","normalizeMonthFormat","parseInputString","castFunctions","BigInt","value","Number","URLTrim","trim","AmountNumber","amount","undefined","unit","AmountBigInt","DateString","dateFormat","momentDate","date","correctFormat","newValue","fechaUTC","Date","isoDate","DateTimeString","datePart","timePart","split","unFormattedDate","normalizedDate","parsedDate","castValue","cast","castType","params"],"sources":["../../../src/ui/lib/value-cast.ts"],"sourcesContent":["import type { AmountValue } from \"#design-system\";\nimport { format, parse } from \"date-fns\";\nimport { getDateFromValue } from \"./date-picker.js\";\nimport {\n getDateFormat,\n normalizeMonthFormat,\n parseInputString,\n} from \"./date-time-picker.js\";\n\nexport type ValueCast =\n | \"BigInt\"\n | \"Number\"\n | \"URLTrim\"\n | \"AmountNumber\"\n | \"AmountBigInt\"\n | \"DateString\"\n | \"DateTimeString\";\n\nexport const castFunctions: Record<\n ValueCast,\n (value: any, castParams?: string) => any\n> = {\n BigInt: (value: string) => BigInt(value),\n Number: (value: string) => Number(value),\n URLTrim: (value?: string) => value?.trim(),\n AmountNumber: (value: AmountValue) => {\n if (typeof value === \"object\" && \"unit\" in value) {\n return {\n ...value,\n\n amount: value.amount !== undefined ? Number(value.amount) : null,\n unit: value.unit !== \"\" ? value.unit : null,\n };\n }\n if (typeof value === \"object\") {\n return {\n ...value,\n\n amount: Number(value.amount),\n };\n }\n return Number(value);\n },\n\n AmountBigInt: (value: AmountValue) => {\n if (typeof value === \"object\" && \"unit\" in value) {\n return {\n ...value,\n\n amount: value.amount !== undefined ? BigInt(value.amount) : null,\n unit: value.unit !== \"\" ? value.unit : null,\n };\n }\n },\n DateString: (value: string, dateFormat = \"yyyy-MM-dd\") => {\n const momentDate = getDateFromValue(value);\n const date = normalizeMonthFormat(momentDate);\n const correctFormat = getDateFormat(dateFormat);\n const newValue = parseInputString(date, correctFormat);\n\n const fechaUTC = parse(newValue, correctFormat ?? \"yyyy-MM-dd\", new Date());\n\n const isoDate = format(fechaUTC, \"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\");\n return isoDate;\n },\n DateTimeString: (value: string, dateFormat = \"yyyy-MM-dd\") => {\n const [datePart, timePart] = value.split(\"T\");\n\n const unFormattedDate = getDateFromValue(datePart);\n const date = normalizeMonthFormat(unFormattedDate);\n const correctFormat = getDateFormat(dateFormat);\n\n const normalizedDate = parseInputString(date, correctFormat);\n const parsedDate = parse(\n normalizedDate,\n correctFormat ?? \"yyyy-MM-dd\",\n new Date(),\n );\n\n const isoDate = format(parsedDate, \"yyyy-MM-dd\");\n\n return `${isoDate}T${timePart}`;\n },\n};\n\nexport function castValue(value: any, cast: string): any {\n const [castType, ...params] = cast.split(\":\");\n return castFunctions[castType as ValueCast](value, ...params);\n}\n"],"mappings":";;;;AAkBA,MAAaM,gBAGT;CACFC,SAASC,UAAkBD,OAAOC,MAAM;CACxCC,SAASD,UAAkBC,OAAOD,MAAM;CACxCE,UAAUF,UAAmBA,OAAOG,MAAM;CAC1CC,eAAeJ,UAAuB;AACpC,MAAI,OAAOA,UAAU,YAAY,UAAUA,MACzC,QAAO;GACL,GAAGA;GAEHK,QAAQL,MAAMK,WAAWC,KAAAA,IAAYL,OAAOD,MAAMK,OAAO,GAAG;GAC5DE,MAAMP,MAAMO,SAAS,KAAKP,MAAMO,OAAO;GACxC;AAEH,MAAI,OAAOP,UAAU,SACnB,QAAO;GACL,GAAGA;GAEHK,QAAQJ,OAAOD,MAAMK,OAAM;GAC5B;AAEH,SAAOJ,OAAOD,MAAM;;CAGtBQ,eAAeR,UAAuB;AACpC,MAAI,OAAOA,UAAU,YAAY,UAAUA,MACzC,QAAO;GACL,GAAGA;GAEHK,QAAQL,MAAMK,WAAWC,KAAAA,IAAYP,OAAOC,MAAMK,OAAO,GAAG;GAC5DE,MAAMP,MAAMO,SAAS,KAAKP,MAAMO,OAAO;GACxC;;CAGLE,aAAaT,OAAeU,aAAa,iBAAiB;EAExD,MAAME,OAAOhB,qBADMF,iBAAiBM,MAAM,CACG;EAC7C,MAAMa,gBAAgBlB,cAAce,WAAW;AAM/C,SADgBlB,OAFCC,MAFAI,iBAAiBe,MAAMC,cAAc,EAErBA,iBAAiB,8BAAc,IAAIG,MAAM,CAAC,EAE1C,+BAA+B;;CAGlEE,iBAAiBlB,OAAeU,aAAa,iBAAiB;EAC5D,MAAM,CAACS,UAAUC,YAAYpB,MAAMqB,MAAM,IAAI;EAG7C,MAAMT,OAAOhB,qBADWF,iBAAiByB,SAAS,CACA;EAClD,MAAMN,gBAAgBlB,cAAce,WAAW;AAW/C,SAAO,GAFSlB,OANGC,MADII,iBAAiBe,MAAMC,cAAc,EAG1DA,iBAAiB,8BACjB,IAAIG,MACN,CAAC,EAEkC,aAAa,CAE/B,GAAII;;CAExB;AAED,SAAgBK,UAAUzB,OAAY0B,MAAmB;CACvD,MAAM,CAACC,UAAU,GAAGC,UAAUF,KAAKL,MAAM,IAAI;AAC7C,QAAOvB,cAAc6B,UAAuB3B,OAAO,GAAG4B,OAAO"}
1
+ {"version":3,"file":"value-cast.js","names":["format","parse","getDateFromValue","getDateFormat","normalizeMonthFormat","parseInputString","castFunctions","BigInt","value","Number","URLTrim","trim","AmountNumber","amount","undefined","unit","AmountBigInt","DateString","dateFormat","momentDate","date","correctFormat","newValue","fechaUTC","Date","isoDate","DateTimeString","datePart","timePart","split","unFormattedDate","normalizedDate","parsedDate","castValue","cast","castType","params"],"sources":["../../../src/ui/lib/value-cast.ts"],"sourcesContent":["import type { AmountValue } from \"#design-system\";\nimport { format, parse } from \"date-fns\";\nimport { getDateFromValue } from \"./date-picker.js\";\nimport {\n getDateFormat,\n normalizeMonthFormat,\n parseInputString,\n} from \"./date-time-picker.js\";\n\nexport type ValueCast =\n | \"BigInt\"\n | \"Number\"\n | \"URLTrim\"\n | \"AmountNumber\"\n | \"AmountBigInt\"\n | \"DateString\"\n | \"DateTimeString\";\n\nexport const castFunctions: Record<\n ValueCast,\n (value: any, castParams?: string) => any\n> = {\n BigInt: (value: string) => BigInt(value),\n Number: (value: string) => Number(value),\n URLTrim: (value?: string) => value?.trim(),\n AmountNumber: (value: AmountValue) => {\n if (typeof value === \"object\" && \"unit\" in value) {\n return {\n ...value,\n\n amount: value.amount !== undefined ? Number(value.amount) : null,\n unit: value.unit !== \"\" ? value.unit : null,\n };\n }\n if (typeof value === \"object\") {\n return {\n ...value,\n\n amount: Number(value.amount),\n };\n }\n return Number(value);\n },\n\n AmountBigInt: (value: AmountValue) => {\n if (typeof value === \"object\" && \"unit\" in value) {\n return {\n ...value,\n\n amount: value.amount !== undefined ? BigInt(value.amount) : null,\n unit: value.unit !== \"\" ? value.unit : null,\n };\n }\n },\n DateString: (value: string, dateFormat = \"yyyy-MM-dd\") => {\n const momentDate = getDateFromValue(value);\n const date = normalizeMonthFormat(momentDate);\n const correctFormat = getDateFormat(dateFormat);\n const newValue = parseInputString(date, correctFormat);\n\n const fechaUTC = parse(newValue, correctFormat ?? \"yyyy-MM-dd\", new Date());\n\n const isoDate = format(fechaUTC, \"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\");\n return isoDate;\n },\n DateTimeString: (value: string, dateFormat = \"yyyy-MM-dd\") => {\n const [datePart, timePart] = value.split(\"T\");\n\n const unFormattedDate = getDateFromValue(datePart);\n const date = normalizeMonthFormat(unFormattedDate);\n const correctFormat = getDateFormat(dateFormat);\n\n const normalizedDate = parseInputString(date, correctFormat);\n const parsedDate = parse(\n normalizedDate,\n correctFormat ?? \"yyyy-MM-dd\",\n new Date(),\n );\n\n const isoDate = format(parsedDate, \"yyyy-MM-dd\");\n\n return `${isoDate}T${timePart}`;\n },\n};\n\nexport function castValue(value: any, cast: string): any {\n const [castType, ...params] = cast.split(\":\");\n return castFunctions[castType as ValueCast](value, ...params);\n}\n"],"mappings":";;;;AAkBA,MAAaM,gBAGT;CACFC,SAASC,UAAkBD,OAAOC,KAAK;CACvCC,SAASD,UAAkBC,OAAOD,KAAK;CACvCE,UAAUF,UAAmBA,OAAOG,KAAK;CACzCC,eAAeJ,UAAuB;EACpC,IAAI,OAAOA,UAAU,YAAY,UAAUA,OACzC,OAAO;GACL,GAAGA;GAEHK,QAAQL,MAAMK,WAAWC,KAAAA,IAAYL,OAAOD,MAAMK,MAAM,IAAI;GAC5DE,MAAMP,MAAMO,SAAS,KAAKP,MAAMO,OAAO;EACzC;EAEF,IAAI,OAAOP,UAAU,UACnB,OAAO;GACL,GAAGA;GAEHK,QAAQJ,OAAOD,MAAMK,MAAM;EAC7B;EAEF,OAAOJ,OAAOD,KAAK;CACrB;CAEAQ,eAAeR,UAAuB;EACpC,IAAI,OAAOA,UAAU,YAAY,UAAUA,OACzC,OAAO;GACL,GAAGA;GAEHK,QAAQL,MAAMK,WAAWC,KAAAA,IAAYP,OAAOC,MAAMK,MAAM,IAAI;GAC5DE,MAAMP,MAAMO,SAAS,KAAKP,MAAMO,OAAO;EACzC;CAEJ;CACAE,aAAaT,OAAeU,aAAa,iBAAiB;EACxD,MAAMC,aAAajB,iBAAiBM,KAAK;EACzC,MAAMY,OAAOhB,qBAAqBe,UAAU;EAC5C,MAAME,gBAAgBlB,cAAce,UAAU;EAC9C,MAAMI,WAAWjB,iBAAiBe,MAAMC,aAAa;EAErD,MAAME,WAAWtB,MAAMqB,UAAUD,iBAAiB,8BAAc,IAAIG,KAAK,CAAC;EAG1E,OADgBxB,OAAOuB,UAAU,8BAC1BE;CACT;CACAC,iBAAiBlB,OAAeU,aAAa,iBAAiB;EAC5D,MAAM,CAACS,UAAUC,YAAYpB,MAAMqB,MAAM,GAAG;EAE5C,MAAMC,kBAAkB5B,iBAAiByB,QAAQ;EACjD,MAAMP,OAAOhB,qBAAqB0B,eAAe;EACjD,MAAMT,gBAAgBlB,cAAce,UAAU;EAE9C,MAAMa,iBAAiB1B,iBAAiBe,MAAMC,aAAa;EAC3D,MAAMW,aAAa/B,MACjB8B,gBACAV,iBAAiB,8BACjB,IAAIG,KAAK,CACX;EAIA,OAAO,GAFSxB,OAAOgC,YAAY,YAEzBP,EAAO,GAAIG;CACvB;AACF;AAEA,SAAgBK,UAAUzB,OAAY0B,MAAmB;CACvD,MAAM,CAACC,UAAU,GAAGC,UAAUF,KAAKL,MAAM,GAAG;CAC5C,OAAOvB,cAAc6B,SAAsB,CAAC3B,OAAO,GAAG4B,MAAM;AAC9D"}
@@ -1,3 +1,4 @@
1
- import { C as SelectProps, S as SelectOption, _ as WithDifference, a as AmountInputPropsGeneric, b as RadioGroupProps, c as Currency, d as ErrorMessage, f as FieldErrorHandling, g as ViewMode, h as ValidatorResult, i as AmountFiat, l as CurrencyTicker, m as ValidatorHandler, n as AmountCrypto, o as AmountPercentage, p as InputBaseProps, r as AmountCurrency, s as AmountValue, t as Amount, u as DiffMode, v as IdAutocompleteOption, x as SelectBaseProps, y as IdAutocompleteProps } from "../index--hDSfvJT.js";
2
- import { a as TransformerType, c as WeekStartDayNumber, i as TransformerTrigger, n as DatePickerView, o as ValueTransformerFn, r as TransformerObject, s as ValueTransformerProps, t as DateFieldValue } from "../types-BTq-St7H.js";
3
- export { Amount, AmountCrypto, AmountCurrency, AmountFiat, AmountInputPropsGeneric, AmountPercentage, AmountValue, Currency, CurrencyTicker, DateFieldValue, DatePickerView, DiffMode, ErrorMessage, FieldErrorHandling, IdAutocompleteOption, IdAutocompleteProps, InputBaseProps, RadioGroupProps, SelectBaseProps, SelectOption, SelectProps, TransformerObject, TransformerTrigger, TransformerType, ValidatorHandler, ValidatorResult, ValueTransformerFn, ValueTransformerProps, ViewMode, WeekStartDayNumber, WithDifference };
1
+ import { C as SelectProps, S as SelectOption, _ as WithDifference, a as AmountInputPropsGeneric, b as RadioGroupProps, c as Currency, d as ErrorMessage, f as FieldErrorHandling, g as ViewMode, h as ValidatorResult, i as AmountFiat, l as CurrencyTicker, m as ValidatorHandler, n as AmountCrypto, o as AmountPercentage, p as InputBaseProps, r as AmountCurrency, s as AmountValue, t as Amount, u as DiffMode, v as IdAutocompleteOption, x as SelectBaseProps, y as IdAutocompleteProps } from "../index-C05uhexJ.js";
2
+ import { a as TransformerType, c as WeekStartDayNumber, i as TransformerTrigger, n as DatePickerView, o as ValueTransformerFn, r as TransformerObject, s as ValueTransformerProps, t as DateFieldValue } from "../types-CpFPFB1a.js";
3
+ export { Amount, AmountCrypto, AmountCurrency, AmountFiat, AmountInputPropsGeneric, AmountPercentage, AmountValue, Currency, CurrencyTicker, type DateFieldValue, type DatePickerView, DiffMode, ErrorMessage, FieldErrorHandling, type IdAutocompleteOption, type IdAutocompleteProps, InputBaseProps, type RadioGroupProps, type SelectBaseProps, type SelectOption, type SelectProps, type TransformerObject, type TransformerTrigger, type TransformerType, ValidatorHandler, ValidatorResult, type ValueTransformerFn, type ValueTransformerProps, ViewMode, type WeekStartDayNumber, WithDifference };
4
+ export {};
@@ -1,6 +1,4 @@
1
- import { v as IdAutocompleteOption, y as IdAutocompleteProps } from "./index--hDSfvJT.js";
2
- import * as react from "react";
3
-
1
+ import { v as IdAutocompleteOption, y as IdAutocompleteProps } from "./index-C05uhexJ.js";
4
2
  //#region src/ui/components/id-autocomplete/use-id-autocomplete.d.ts
5
3
  interface UseIdAutocompleteParams {
6
4
  autoComplete: IdAutocompleteProps["autoComplete"];
@@ -13,21 +11,11 @@ interface UseIdAutocompleteParams {
13
11
  fetchOptions: IdAutocompleteProps["fetchOptionsCallback"];
14
12
  fetchSelectedOption: IdAutocompleteProps["fetchSelectedOptionCallback"];
15
13
  }
16
- declare function useIdAutocomplete({
17
- autoComplete,
18
- defaultValue,
19
- value,
20
- isOpenByDefault,
21
- initialOptions,
22
- onChange,
23
- onBlur,
24
- fetchOptions,
25
- fetchSelectedOption
26
- }: UseIdAutocompleteParams): {
14
+ declare function useIdAutocomplete({ autoComplete, defaultValue, value, isOpenByDefault, initialOptions, onChange, onBlur, fetchOptions, fetchSelectedOption }: UseIdAutocompleteParams): {
27
15
  selectedValue: string;
28
16
  selectedOption: IdAutocompleteOption | undefined;
29
17
  isPopoverOpen: boolean;
30
- commandListRef: react.RefObject<HTMLDivElement | null>;
18
+ commandListRef: import("react").RefObject<HTMLDivElement | null>;
31
19
  options: IdAutocompleteOption[];
32
20
  isLoading: boolean;
33
21
  isLoadingSelectedOption: boolean;
@@ -44,4 +32,5 @@ declare function useIdAutocomplete({
44
32
  };
45
33
  //#endregion
46
34
  export { useIdAutocomplete as t };
47
- //# sourceMappingURL=use-id-autocomplete-By7YSChC.d.ts.map
35
+ export {};
36
+ //# sourceMappingURL=use-id-autocomplete-wdw3CfYc.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-id-autocomplete-wdw3CfYc.d.ts","names":[],"sources":["../src/ui/components/id-autocomplete/use-id-autocomplete.ts"],"mappings":";;UAKU;EACR,cAAc;EACd;EACA;EACA,iBAAiB;EACjB,gBAAgB;EAChB,WAAW;EACX,SAAS,MAAM,kBAAkB;EACjC,cAAc;EACd,qBAAqB;;iBAGP,oBACd,cACA,cACA,OACA,iBACA,gBACA,UACA,QACA,cACA,uBACC;;;;;;;;;;;EAuIe,eAAA;EAVP,mBAAA;EAqCH,gBAAA,GAAA,MAAM,WAAW;EAfjB,eAAA,GAAA,MAAM,YAAY;EAUuB,qBAAA;EAjFrC,4BAAA;EA+FJ,cAAA,GAAA,MAAM,eAAe"}
@@ -1,6 +1,4 @@
1
- import { t as SearchAutocompleteOption } from "./types-C04Q_Fan.js";
2
- import * as react from "react";
3
-
1
+ import { t as SearchAutocompleteOption } from "./types-D4CirgNk.js";
4
2
  //#region src/ui/components/search-autocomplete/use-search-autocomplete.d.ts
5
3
  interface UseSearchAutocompleteOptions {
6
4
  fetchOptions?: (query: string) => Promise<SearchAutocompleteOption[]>;
@@ -8,14 +6,15 @@ interface UseSearchAutocompleteOptions {
8
6
  }
9
7
  declare function useSearchAutocomplete(options: UseSearchAutocompleteOptions): {
10
8
  query: string;
11
- setQuery: react.Dispatch<react.SetStateAction<string>>;
9
+ setQuery: import("react").Dispatch<import("react").SetStateAction<string>>;
12
10
  results: SearchAutocompleteOption[];
13
11
  isLoading: boolean;
14
12
  error: string | undefined;
15
13
  isOpen: boolean;
16
- setIsOpen: react.Dispatch<react.SetStateAction<boolean>>;
14
+ setIsOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
17
15
  handleQueryChange: (value: string) => void;
18
16
  };
19
17
  //#endregion
20
18
  export { useSearchAutocomplete as t };
21
- //# sourceMappingURL=use-search-autocomplete-IfcQ_gKh.d.ts.map
19
+ export {};
20
+ //# sourceMappingURL=use-search-autocomplete-vSvcsvcB.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-search-autocomplete-vSvcsvcB.d.ts","names":[],"sources":["../src/ui/components/search-autocomplete/use-search-autocomplete.ts"],"mappings":";;UAGU;EACR,gBAAgB,kBAAkB,QAAQ;EAC1C;;iBAGc,sBAAsB,SAAS;;;WAAA;;;;;EAoDnC,oBAAA"}
@@ -1,6 +1,6 @@
1
- import { s as ValueTransformerProps } from "./types-BTq-St7H.js";
1
+ import "./index-C05uhexJ.js";
2
+ import { s as ValueTransformerProps } from "./types-CpFPFB1a.js";
2
3
  import React from "react";
3
-
4
4
  //#region src/ui/components/value-transformer/value-transformer.d.ts
5
5
  /**
6
6
  * Apply transformers to the value of the input element. A transformer is a function that
@@ -36,10 +36,8 @@ import React from "react";
36
36
  * <Input />
37
37
  * </ValueTransformer>
38
38
  */
39
- declare function ValueTransformer({
40
- transformers,
41
- children
42
- }: ValueTransformerProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
39
+ declare function ValueTransformer({ transformers, children }: ValueTransformerProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
43
40
  //#endregion
44
41
  export { ValueTransformer as t };
45
- //# sourceMappingURL=value-transformer-DQjqtNih.d.ts.map
42
+ export {};
43
+ //# sourceMappingURL=value-transformer-BAD6r8Ol.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"value-transformer-BAD6r8Ol.d.ts","names":[],"sources":["../src/ui/components/value-transformer/value-transformer.tsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA2FgB,mBACd,cACA,YACC,wBAAqB,MAAA,+BAAA,MAAA"}
@@ -1,6 +1,5 @@
1
- import { f as FieldErrorHandling, m as ValidatorHandler, p as InputBaseProps } from "./index--hDSfvJT.js";
1
+ import { f as FieldErrorHandling, m as ValidatorHandler, p as InputBaseProps } from "./index-C05uhexJ.js";
2
2
  import { ComponentType, ElementRef, ForwardRefExoticComponent, PropsWithoutRef, RefAttributes } from "react";
3
-
4
3
  //#region src/ui/components/with-field-validation/with-field-validation.d.ts
5
4
  interface PossibleProps extends InputBaseProps<unknown>, FieldErrorHandling {
6
5
  pattern?: RegExp;
@@ -16,4 +15,5 @@ interface ValidationOptions<T> {
16
15
  declare const withFieldValidation: <T extends PossibleProps, R extends ElementRef<any> = ElementRef<any>>(Component: ComponentType<T>, options?: ValidationOptions<T>) => ForwardRefExoticComponent<PropsWithoutRef<T> & RefAttributes<R>>;
17
16
  //#endregion
18
17
  export { withFieldValidation as n, ValidationOptions as t };
19
- //# sourceMappingURL=with-field-validation-Di5D8vU-.d.ts.map
18
+ export {};
19
+ //# sourceMappingURL=with-field-validation-Bt02MQn2.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"with-field-validation-Bt02MQn2.d.ts","names":[],"sources":["../src/ui/components/with-field-validation/with-field-validation.tsx"],"mappings":";;;UAiBU,sBAAsB,yBAAyB;EACvD,UAAU;EACV;EACA;EACA;EACA;;UAQe,kBAAkB;EACjC,cAAc,gBAAgB,aAAa,MAAM;EACjD,kBAAkB;;cAGP,sBACX,UAAU,eACV,UAAU,kBAAkB,iBAAe,WAEhC,cAAc,IAAE,UACjB,kBAAkB,OAC3B,0BAA0B,gBAAgB,KAAK,cAAc"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerhousedao/design-system",
3
- "version": "6.2.3-dev.8",
3
+ "version": "6.2.3-staging.0",
4
4
  "description": "Powerhouse document-engineering design system — GraphQL scalar UI components for building consistent Powerhouse editors.",
5
5
  "files": [
6
6
  "dist",
@@ -70,7 +70,7 @@
70
70
  "@babel/core": "^7.29.0",
71
71
  "@babel/plugin-transform-react-pure-annotations": "^7.27.1",
72
72
  "@babel/preset-typescript": "^7.28.5",
73
- "@powerhousedao/config": "6.2.3-dev.8",
73
+ "@powerhousedao/config": "6.2.3-staging.0",
74
74
  "@prettier/sync": "^0.5.2",
75
75
  "@rollup/plugin-babel": "^7.0.0",
76
76
  "@storybook/addon-actions": "^8.6.18",
@@ -100,16 +100,15 @@
100
100
  "@types/react-virtualized": "^9.22.3",
101
101
  "camelcase": "^8.0.0",
102
102
  "happy-dom": "^20.8.9",
103
- "jsdom": "^24.0.0",
104
103
  "react": "19.2.6",
105
104
  "react-dom": "19.2.6",
106
105
  "storybook": "^8.6.18",
107
106
  "storybook-addon-pseudo-states": "^4.0.4",
108
107
  "tailwind-scrollbar": "^4.0.1",
109
108
  "tailwindcss": "4.2.2",
110
- "tsdown": "0.21.1",
111
- "tsx": "4.21.0",
112
- "vite": "8.0.10",
109
+ "tsdown": "0.23.0",
110
+ "tsx": "4.23.13",
111
+ "vite": "8.3.0",
113
112
  "vitest": "4.1.1"
114
113
  },
115
114
  "peerDependencies": {
@@ -117,8 +116,8 @@
117
116
  "react-dom": ">=19.0.0"
118
117
  },
119
118
  "dependencies": {
120
- "@powerhousedao/reactor-browser": "6.2.3-dev.8",
121
- "@powerhousedao/shared": "6.2.3-dev.8",
119
+ "@powerhousedao/reactor-browser": "6.2.3-staging.0",
120
+ "@powerhousedao/shared": "6.2.3-staging.0",
122
121
  "@radix-ui/react-checkbox": "^1.1.2",
123
122
  "@radix-ui/react-dialog": "^1.1.2",
124
123
  "@radix-ui/react-dropdown-menu": "^2.1.5",
@@ -163,7 +162,7 @@
163
162
  ],
164
163
  "scripts": {
165
164
  "tsc": "tsc",
166
- "lint": "eslint",
165
+ "lint": "cd ../.. && oxlint packages/design-system",
167
166
  "create-icon-components": "tsx scripts/create-icon-components.ts",
168
167
  "build": "tsdown && pnpm run build:css",
169
168
  "build:css": "pnpm exec tailwindcss -i style.css -o dist/style.css",
@@ -1,15 +0,0 @@
1
- import * as react from "react";
2
- import { VariantProps } from "class-variance-authority";
3
- import * as class_variance_authority_types0 from "class-variance-authority/types";
4
-
5
- //#region src/ui/components/button/button.d.ts
6
- declare const buttonVariants: (props?: ({
7
- variant?: "default" | "outline" | "ghost" | null | undefined;
8
- } & class_variance_authority_types0.ClassProp) | undefined) => string;
9
- interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
10
- asChild?: boolean;
11
- }
12
- declare const Button: react.ForwardRefExoticComponent<ButtonProps & react.RefAttributes<HTMLButtonElement>>;
13
- //#endregion
14
- export { ButtonProps as n, buttonVariants as r, Button as t };
15
- //# sourceMappingURL=button-C8doazjv.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"button-C8doazjv.d.ts","names":[],"sources":["../src/ui/components/button/button.tsx"],"mappings":";;;;;cAMM,cAAA,GAAc,KAAA;;IAqBnB,+BAAA,CAAA,SAAA;AAAA,UAEgB,WAAA,SAEb,KAAA,CAAM,oBAAA,CAAqB,iBAAA,GAC3B,YAAA,QAAoB,cAAA;EACtB,OAAA;AAAA;AAAA,cAGI,MAAA,EAAM,KAAA,CAAA,yBAAA,CAAA,WAAA,GAAA,KAAA,CAAA,aAAA,CAAA,iBAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"character-counter-BWoglM2P.d.ts","names":[],"sources":["../src/ui/components/character-counter/character-counter.tsx"],"mappings":";UAAiB,qBAAA;EACf,SAAA;EACA,KAAA;AAAA;AAAA,cAeW,gBAAA,EAAkB,KAAA,CAAM,EAAA,CAAG,qBAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"checkbox-CGBtXQnI.d.ts","names":[],"sources":["../src/ui/components/checkbox/checkbox.tsx"],"mappings":";;;;;KAQK,iBAAA,GAAoB,IAAA,CACvB,KAAA,CAAM,oBAAA,CAAqB,iBAAA,SACrB,cAAA,CAAe,aAAA;AAAA,UAGN,aAAA,SACP,iBAAA,EAAmB,cAAA,CAAe,aAAA;EAC1C,QAAA,KAAa,OAAA,EAAS,aAAA,eAA4B,OAAA;AAAA;AAAA,cAG9C,QAAA,EAAQ,KAAA,CAAA,yBAAA,CAAA,aAAA,GAAA,KAAA,CAAA,aAAA,CAAA,iBAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"checkbox-base-CZo-4eL0.d.ts","names":[],"sources":["../src/ui/components/checkbox/checkbox-base.tsx"],"mappings":";;;;KAIK,aAAA;AAAA,cAQC,YAAA,EAAY,OAAA,CAAA,yBAAA,CAAA,IAAA,CAAA,iBAAA,CAAA,aAAA,GAAA,OAAA,CAAA,aAAA,CAAA,iBAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"command-CbTi7Jj2.d.ts","names":[],"sources":["../src/ui/components/command/command.tsx"],"mappings":";;;cAKM,OAAA,EAAO,KAAA,CAAA,yBAAA,CAAA,IAAA;;;;;;;;;;;;;;;;;cAeP,YAAA,EAAY,KAAA,CAAA,yBAAA,CAAA,IAAA,CAAA,IAAA,CAAA,IAAA,CAAA,IAAA,CAAA,KAAA,CAAA,iBAAA,CAAA,KAAA,CAAA,mBAAA,CAAA,gBAAA,GAAA,gBAAA,SAAA,KAAA,CAAA,mBAAA,CAAA,gBAAA;;;;;;;;;;cAyCZ,WAAA,EAAW,KAAA,CAAA,yBAAA,CAAA,IAAA;;;;;;;;;cAoBX,cAAA,EAAc,KAAA,CAAA,yBAAA,CAAA,IAAA;;;;;;;;;;cAMd,YAAA,EAAY,KAAA,CAAA,yBAAA,CAAA,IAAA;;;;;;;cAMZ,YAAA,EAAY,KAAA,CAAA,yBAAA,CAAA,IAAA;;;;;;;;;;;cAgBZ,WAAA,EAAW,KAAA,CAAA,yBAAA,CAAA,IAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"content-BHWIqmio.d.ts","names":[],"sources":["../src/ui/components/select-field/content.tsx"],"mappings":";;;;UAaU,YAAA;EACR,UAAA;EACA,cAAA,EAAgB,KAAA,CAAM,SAAA,CAAU,cAAA;EAChC,QAAA;EACA,cAAA;EACA,aAAA;EACA,qBAAA;EACA,OAAA,EAAS,WAAA;EACT,eAAA,GAAkB,WAAA;EAClB,SAAA;EACA,YAAA,GAAe,KAAA;AAAA;AAAA,cAGJ,OAAA,EAAS,KAAA,CAAM,EAAA,CAAG,YAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"enum-field-B1ZGimK6.d.ts","names":[],"sources":["../src/ui/components/enum-field/enum-field.tsx"],"mappings":";;;;;KAUY,cAAA;EAEN,OAAA;AAAA,KACG,oBAAA,GAAuB,gBAAA;EAE1B,OAAA;AAAA,IACE,oBAAA;EAEF,OAAA;AAAA,IACE,gBAAA;AAAA,cAEK,SAAA,EAAS,KAAA,CAAA,yBAAA,CAAA,cAAA,GAAA,KAAA,CAAA,aAAA,CAAA,cAAA,GAAA,iBAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"form-CKRKn0TQ.d.ts","names":[],"sources":["../src/ui/components/form/form.tsx"],"mappings":";;;;KAcK,WAAA,GAAc,aAAA;;;AALgD;EASjE,aAAA;;;;EAKA,MAAA;AAAA;AAAA,UAEQ,SAAA;EAFF;AAAA;;;;EAQN,QAAA,EAAU,KAAA,CAAM,SAAA,KAAc,OAAA,EAAS,WAAA,KAAgB,KAAA,CAAM,SAAA;EAAN;;;;;;EAQvD,QAAA,GAAW,IAAA,iBAAqB,OAAA;EAsDrB;;;;;EA/CX,uBAAA;EAfuD;;;;;;;;EAyBvD,iBAAA;EAcA;;;;EARA,aAAA,GAAgB,MAAA;EA6Bd;;;;;;EArBF,0BAAA;EAyND;;;;;EAlNC,cAAA,GAAiB,YAAA;EA2DF;;;;;;;;;;;EA9Cf,sBAAA,IACE,KAAA,EAAO,KAAA,EACP,UAAA,eACG,MAAA;;;;;EAML,SAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAqCW,IAAA,EAAI,KAAA,CAAA,yBAAA,CAAA,SAAA,GAAA,KAAA,CAAA,aAAA,CAAA,aAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"form-description-CYkcMEzm.d.ts","names":[],"sources":["../src/ui/components/form-description/form-description.tsx"],"mappings":";UAEiB,oBAAA,SAA6B,KAAA,CAAM,iBAAA;EAClD,EAAA,GAAK,KAAA,CAAM,WAAA;EACX,SAAA;AAAA;AAAA,cAGI,eAAA,EAAiB,KAAA,CAAM,EAAA,CAAG,oBAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"form-group-C8kL6pdZ.d.ts","names":[],"sources":["../src/ui/components/form-group/form-group.tsx"],"mappings":";cAAa,SAAA,EAAW,KAAA,CAAM,EAAA,CAAG,KAAA,CAAM,iBAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"form-label-b6nQi0XO.d.ts","names":[],"sources":["../src/ui/components/form-label/form-label.tsx"],"mappings":";UAIiB,cAAA,SACP,KAAA,CAAM,iBAAA,EAAmB,KAAA,CAAM,mBAAA,CAAoB,gBAAA;EAC3D,QAAA;EACA,QAAA;EACA,WAAA;EACA,QAAA;EACA,MAAA;EACA,SAAA;AAAA;AAAA,cAGW,SAAA,EAAW,KAAA,CAAM,EAAA,CAAG,cAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"form-message-Dq72nBXz.d.ts","names":[],"sources":["../src/ui/components/form-message/form-message.tsx"],"mappings":";KAEY,eAAA;AAAA,KAEP,mBAAA,WAA8B,KAAA,CAAM,WAAA,GAAc,KAAA,CAAM,WAAA;EAC3D,IAAA,GAAO,eAAA;EACP,EAAA,GAAK,CAAA;EACL,SAAA;AAAA;AAAA,KAGU,gBAAA,WAA2B,KAAA,CAAM,WAAA,IAC3C,mBAAA,CAAoB,CAAA,IAClB,IAAA,CAAK,KAAA,CAAM,wBAAA,CAAyB,CAAA,SAAU,mBAAA;AAAA,cAE5C,cAAA;AAAA,cAEO,WAAA,aAAwB,KAAA,CAAM,WAAA,UAAqB,cAAA,EAC9D,KAAA,EAAO,gBAAA,CAAiB,CAAA,MACrB,KAAA,CAAM,YAAA"}
@@ -1,7 +0,0 @@
1
- import * as react_jsx_runtime0 from "react/jsx-runtime";
2
-
3
- //#region src/ui/components/form-message/form-server-error-message.d.ts
4
- declare const FormServerErrorMessage: () => react_jsx_runtime0.JSX.Element | null;
5
- //#endregion
6
- export { FormServerErrorMessage as t };
7
- //# sourceMappingURL=form-server-error-message-DXbaiTfF.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"form-server-error-message-DXbaiTfF.d.ts","names":[],"sources":["../src/ui/components/form-message/form-server-error-message.tsx"],"mappings":";;;cAGa,sBAAA,QAAsB,kBAAA,CAAA,GAAA,CAAA,OAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"id-autocomplete-C-hwriS5.d.ts","names":[],"sources":["../src/ui/components/id-autocomplete/id-autocomplete.tsx"],"mappings":";;;;cAkBM,cAAA,EAAc,KAAA,CAAA,yBAAA,CAAA,mBAAA,GAAA,KAAA,CAAA,aAAA,CAAA,gBAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"id-autocomplete-input-container-DFEyPh5p.d.ts","names":[],"sources":["../src/ui/components/id-autocomplete/id-autocomplete-input-container.tsx"],"mappings":";;;;UAaU,iCAAA,SAA0C,IAAA,CAClD,cAAA;EAGA,SAAA;EACA,cAAA;EACA,QAAA,IAAY,CAAA,EAAG,KAAA,CAAM,WAAA,CAAY,gBAAA;EACjC,MAAA,IAAU,CAAA,EAAG,KAAA,CAAM,UAAA,CAAW,gBAAA;EAC9B,OAAA,IAAW,CAAA,EAAG,KAAA,CAAM,UAAA,CAAW,gBAAA;EAC/B,cAAA,GAAiB,oBAAA;EACjB,aAAA;EACA,gBAAA,IAAoB,IAAA;EACpB,SAAA,IAAa,CAAA,EAAG,KAAA,CAAM,aAAA,CAAc,gBAAA;EACpC,WAAA,IAAe,CAAA,EAAG,KAAA,CAAM,UAAA,CAAW,gBAAA;EACnC,WAAA;EACA,QAAA;EACA,aAAA;EACA,SAAA;EACA,WAAA,IAAe,CAAA,EAAG,KAAA,CAAM,cAAA,CAAe,gBAAA;EACvC,OAAA,IAAW,CAAA,EAAG,KAAA,CAAM,cAAA,CAAe,gBAAA;AAAA;AAAA,cAG/B,4BAAA,EAA4B,KAAA,CAAA,yBAAA,CAAA,iCAAA,GAAA,KAAA,CAAA,aAAA,CAAA,gBAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"id-autocomplete-list-EzLpF23C.d.ts","names":[],"sources":["../src/ui/components/id-autocomplete/id-autocomplete-list.tsx"],"mappings":";;;;UAYU,uBAAA;EACR,OAAA,EAAS,mBAAA;EACT,cAAA,GAAiB,KAAA,CAAM,SAAA,CAAU,cAAA;EACjC,aAAA;EACA,OAAA,GAAU,oBAAA;EACV,YAAA,IAAgB,KAAA;EAChB,YAAA,IACE,MAAA,EAAQ,oBAAA,EACR,YAAA;IACE,aAAA;IACA,SAAA;IACA,uBAAA;IACA,yBAAA,IAA6B,KAAA;IAC7B,SAAA;EAAA,MAEC,KAAA,CAAM,SAAA;EACX,kBAAA,GAAqB,oBAAA;AAAA;AAAA,cAGjB,kBAAA,EAAoB,KAAA,CAAM,EAAA,CAAG,uBAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"id-autocomplete-list-option-CB5B07Hi.d.ts","names":[],"sources":["../src/ui/components/id-autocomplete/id-autocomplete-list-option.tsx"],"mappings":";;;;KAyEK,6BAAA;EACH,OAAA,EAAS,mBAAA;EACT,aAAA;EACA,SAAA;EACA,uBAAA;EACA,yBAAA,IAA6B,KAAA;EAC7B,yBAAA;EACA,SAAA;EACA,eAAA,GAAkB,QAAA,GAAW,KAAA,CAAM,YAAA;AAAA,IACjC,oBAAA,CAAqB,MAAA;AAAA,cAEnB,wBAAA,EAA0B,KAAA,CAAM,EAAA,CAAG,6BAAA"}