@powerhousedao/document-engineering 1.38.0 → 1.39.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 (722) hide show
  1. package/dist/setupTests.d.ts +2 -0
  2. package/dist/setupTests.d.ts.map +1 -0
  3. package/dist/setupTests.js +2 -0
  4. package/dist/setupTests.js.map +1 -0
  5. package/dist/src/scalars/components/aid-field/aid-field.stories.d.ts +71 -0
  6. package/dist/src/scalars/components/aid-field/aid-field.stories.d.ts.map +1 -0
  7. package/dist/src/scalars/components/aid-field/aid-field.stories.js +495 -0
  8. package/dist/src/scalars/components/aid-field/aid-field.stories.js.map +1 -0
  9. package/dist/src/scalars/components/aid-field/aid-field.test.d.ts +2 -0
  10. package/dist/src/scalars/components/aid-field/aid-field.test.d.ts.map +1 -0
  11. package/dist/src/scalars/components/aid-field/aid-field.test.js +180 -0
  12. package/dist/src/scalars/components/aid-field/aid-field.test.js.map +1 -0
  13. package/dist/src/scalars/components/amount-field/amount-field.stories.d.ts +267 -0
  14. package/dist/src/scalars/components/amount-field/amount-field.stories.d.ts.map +1 -0
  15. package/dist/src/scalars/components/amount-field/amount-field.stories.js +339 -0
  16. package/dist/src/scalars/components/amount-field/amount-field.stories.js.map +1 -0
  17. package/dist/src/scalars/components/amount-field/amount-field.test.d.ts +2 -0
  18. package/dist/src/scalars/components/amount-field/amount-field.test.d.ts.map +1 -0
  19. package/dist/src/scalars/components/amount-field/amount-field.test.js +53 -0
  20. package/dist/src/scalars/components/amount-field/amount-field.test.js.map +1 -0
  21. package/dist/src/scalars/components/boolean-field/boolean-field.stories.d.ts +85 -0
  22. package/dist/src/scalars/components/boolean-field/boolean-field.stories.d.ts.map +1 -0
  23. package/dist/src/scalars/components/boolean-field/boolean-field.stories.js +113 -0
  24. package/dist/src/scalars/components/boolean-field/boolean-field.stories.js.map +1 -0
  25. package/dist/src/scalars/components/boolean-field/boolean-field.test.d.ts +2 -0
  26. package/dist/src/scalars/components/boolean-field/boolean-field.test.d.ts.map +1 -0
  27. package/dist/src/scalars/components/boolean-field/boolean-field.test.js +82 -0
  28. package/dist/src/scalars/components/boolean-field/boolean-field.test.js.map +1 -0
  29. package/dist/src/scalars/components/country-code-field/country-code-field.js +1 -1
  30. package/dist/src/scalars/components/country-code-field/country-code-field.js.map +1 -1
  31. package/dist/src/scalars/components/country-code-field/country-code-field.stories.d.ts +19 -0
  32. package/dist/src/scalars/components/country-code-field/country-code-field.stories.d.ts.map +1 -0
  33. package/dist/src/scalars/components/country-code-field/country-code-field.stories.js +173 -0
  34. package/dist/src/scalars/components/country-code-field/country-code-field.stories.js.map +1 -0
  35. package/dist/src/scalars/components/country-code-field/country-code-field.test.d.ts +2 -0
  36. package/dist/src/scalars/components/country-code-field/country-code-field.test.d.ts.map +1 -0
  37. package/dist/src/scalars/components/country-code-field/country-code-field.test.js +116 -0
  38. package/dist/src/scalars/components/country-code-field/country-code-field.test.js.map +1 -0
  39. package/dist/src/scalars/components/currency-code-field/currency-code-field.stories.d.ts +12 -0
  40. package/dist/src/scalars/components/currency-code-field/currency-code-field.stories.d.ts.map +1 -0
  41. package/dist/src/scalars/components/currency-code-field/currency-code-field.stories.js +160 -0
  42. package/dist/src/scalars/components/currency-code-field/currency-code-field.stories.js.map +1 -0
  43. package/dist/src/scalars/components/currency-code-field/currency-code-field.test.d.ts +2 -0
  44. package/dist/src/scalars/components/currency-code-field/currency-code-field.test.d.ts.map +1 -0
  45. package/dist/src/scalars/components/currency-code-field/currency-code-field.test.js +47 -0
  46. package/dist/src/scalars/components/currency-code-field/currency-code-field.test.js.map +1 -0
  47. package/dist/src/scalars/components/date-picker-field/date-picker-field.stories.d.ts +26 -0
  48. package/dist/src/scalars/components/date-picker-field/date-picker-field.stories.d.ts.map +1 -0
  49. package/dist/src/scalars/components/date-picker-field/date-picker-field.stories.js +296 -0
  50. package/dist/src/scalars/components/date-picker-field/date-picker-field.stories.js.map +1 -0
  51. package/dist/src/scalars/components/date-picker-field/date-picker-field.test.d.ts +2 -0
  52. package/dist/src/scalars/components/date-picker-field/date-picker-field.test.d.ts.map +1 -0
  53. package/dist/src/scalars/components/date-picker-field/date-picker-field.test.js +119 -0
  54. package/dist/src/scalars/components/date-picker-field/date-picker-field.test.js.map +1 -0
  55. package/dist/src/scalars/components/date-time-picker-field/date-time-picker-field.stories.d.ts +19 -0
  56. package/dist/src/scalars/components/date-time-picker-field/date-time-picker-field.stories.d.ts.map +1 -0
  57. package/dist/src/scalars/components/date-time-picker-field/date-time-picker-field.stories.js +218 -0
  58. package/dist/src/scalars/components/date-time-picker-field/date-time-picker-field.stories.js.map +1 -0
  59. package/dist/src/scalars/components/date-time-picker-field/date-time-picker-field.test.d.ts +2 -0
  60. package/dist/src/scalars/components/date-time-picker-field/date-time-picker-field.test.d.ts.map +1 -0
  61. package/dist/src/scalars/components/date-time-picker-field/date-time-picker-field.test.js +125 -0
  62. package/dist/src/scalars/components/date-time-picker-field/date-time-picker-field.test.js.map +1 -0
  63. package/dist/src/scalars/components/email-field/email-field.stories.d.ts +12 -0
  64. package/dist/src/scalars/components/email-field/email-field.stories.d.ts.map +1 -0
  65. package/dist/src/scalars/components/email-field/email-field.stories.js +108 -0
  66. package/dist/src/scalars/components/email-field/email-field.stories.js.map +1 -0
  67. package/dist/src/scalars/components/email-field/email-field.test.d.ts +2 -0
  68. package/dist/src/scalars/components/email-field/email-field.test.d.ts.map +1 -0
  69. package/dist/src/scalars/components/email-field/email-field.test.js +162 -0
  70. package/dist/src/scalars/components/email-field/email-field.test.js.map +1 -0
  71. package/dist/src/scalars/components/enum-field/enum-field.stories.d.ts +46 -0
  72. package/dist/src/scalars/components/enum-field/enum-field.stories.d.ts.map +1 -0
  73. package/dist/src/scalars/components/enum-field/enum-field.stories.js +360 -0
  74. package/dist/src/scalars/components/enum-field/enum-field.stories.js.map +1 -0
  75. package/dist/src/scalars/components/enum-field/enum-field.test.d.ts +2 -0
  76. package/dist/src/scalars/components/enum-field/enum-field.test.d.ts.map +1 -0
  77. package/dist/src/scalars/components/enum-field/enum-field.test.js +89 -0
  78. package/dist/src/scalars/components/enum-field/enum-field.test.js.map +1 -0
  79. package/dist/src/scalars/components/examples/enum-field-example/enum-field-example.stories.d.ts +21 -0
  80. package/dist/src/scalars/components/examples/enum-field-example/enum-field-example.stories.d.ts.map +1 -0
  81. package/dist/src/scalars/components/examples/enum-field-example/enum-field-example.stories.js +76 -0
  82. package/dist/src/scalars/components/examples/enum-field-example/enum-field-example.stories.js.map +1 -0
  83. package/dist/src/scalars/components/examples/multiple-fields-with-complex-layout/multiple-fields-with-complex-layout.stories.d.ts +21 -0
  84. package/dist/src/scalars/components/examples/multiple-fields-with-complex-layout/multiple-fields-with-complex-layout.stories.d.ts.map +1 -0
  85. package/dist/src/scalars/components/examples/multiple-fields-with-complex-layout/multiple-fields-with-complex-layout.stories.js +141 -0
  86. package/dist/src/scalars/components/examples/multiple-fields-with-complex-layout/multiple-fields-with-complex-layout.stories.js.map +1 -0
  87. package/dist/src/scalars/components/examples/reset-button/reset-button.stories.d.ts +21 -0
  88. package/dist/src/scalars/components/examples/reset-button/reset-button.stories.d.ts.map +1 -0
  89. package/dist/src/scalars/components/examples/reset-button/reset-button.stories.js +48 -0
  90. package/dist/src/scalars/components/examples/reset-button/reset-button.stories.js.map +1 -0
  91. package/dist/src/scalars/components/examples/reset-on-successful-submit/reset-on-successful-submit.stories.d.ts +21 -0
  92. package/dist/src/scalars/components/examples/reset-on-successful-submit/reset-on-successful-submit.stories.d.ts.map +1 -0
  93. package/dist/src/scalars/components/examples/reset-on-successful-submit/reset-on-successful-submit.stories.js +47 -0
  94. package/dist/src/scalars/components/examples/reset-on-successful-submit/reset-on-successful-submit.stories.js.map +1 -0
  95. package/dist/src/scalars/components/examples/submit-changes-only/submit-changes-only.stories.d.ts +21 -0
  96. package/dist/src/scalars/components/examples/submit-changes-only/submit-changes-only.stories.d.ts.map +1 -0
  97. package/dist/src/scalars/components/examples/submit-changes-only/submit-changes-only.stories.js +19 -0
  98. package/dist/src/scalars/components/examples/submit-changes-only/submit-changes-only.stories.js.map +1 -0
  99. package/dist/src/scalars/components/file-field/file-field.stories.d.ts +15 -0
  100. package/dist/src/scalars/components/file-field/file-field.stories.d.ts.map +1 -0
  101. package/dist/src/scalars/components/file-field/file-field.stories.js +199 -0
  102. package/dist/src/scalars/components/file-field/file-field.stories.js.map +1 -0
  103. package/dist/src/scalars/components/file-field/index.js +1 -0
  104. package/dist/src/scalars/components/file-field/index.js.map +1 -1
  105. package/dist/src/scalars/components/form/form.test.d.ts +2 -0
  106. package/dist/src/scalars/components/form/form.test.d.ts.map +1 -0
  107. package/dist/src/scalars/components/form/form.test.js +129 -0
  108. package/dist/src/scalars/components/form/form.test.js.map +1 -0
  109. package/dist/src/scalars/components/fragments/button/button.test.d.ts +2 -0
  110. package/dist/src/scalars/components/fragments/button/button.test.d.ts.map +1 -0
  111. package/dist/src/scalars/components/fragments/button/button.test.js +11 -0
  112. package/dist/src/scalars/components/fragments/button/button.test.js.map +1 -0
  113. package/dist/src/scalars/components/fragments/character-counter/character-counter.stories.d.ts +30 -0
  114. package/dist/src/scalars/components/fragments/character-counter/character-counter.stories.d.ts.map +1 -0
  115. package/dist/src/scalars/components/fragments/character-counter/character-counter.stories.js +48 -0
  116. package/dist/src/scalars/components/fragments/character-counter/character-counter.stories.js.map +1 -0
  117. package/dist/src/scalars/components/fragments/character-counter/character-counter.test.d.ts +2 -0
  118. package/dist/src/scalars/components/fragments/character-counter/character-counter.test.d.ts.map +1 -0
  119. package/dist/src/scalars/components/fragments/character-counter/character-counter.test.js +36 -0
  120. package/dist/src/scalars/components/fragments/character-counter/character-counter.test.js.map +1 -0
  121. package/dist/src/scalars/components/fragments/checkbox-field/checkbox-field.test.d.ts +2 -0
  122. package/dist/src/scalars/components/fragments/checkbox-field/checkbox-field.test.d.ts.map +1 -0
  123. package/dist/src/scalars/components/fragments/checkbox-field/checkbox-field.test.js +53 -0
  124. package/dist/src/scalars/components/fragments/checkbox-field/checkbox-field.test.js.map +1 -0
  125. package/dist/src/scalars/components/fragments/command/command.d.ts +3 -3
  126. package/dist/src/scalars/components/fragments/command/command.d.ts.map +1 -1
  127. package/dist/src/scalars/components/fragments/command/command.test.d.ts +2 -0
  128. package/dist/src/scalars/components/fragments/command/command.test.d.ts.map +1 -0
  129. package/dist/src/scalars/components/fragments/command/command.test.js +11 -0
  130. package/dist/src/scalars/components/fragments/command/command.test.js.map +1 -0
  131. package/dist/src/scalars/components/fragments/form-description/form-description.stories.d.ts +18 -0
  132. package/dist/src/scalars/components/fragments/form-description/form-description.stories.d.ts.map +1 -0
  133. package/dist/src/scalars/components/fragments/form-description/form-description.stories.js +25 -0
  134. package/dist/src/scalars/components/fragments/form-description/form-description.stories.js.map +1 -0
  135. package/dist/src/scalars/components/fragments/form-description/form-description.test.d.ts +2 -0
  136. package/dist/src/scalars/components/fragments/form-description/form-description.test.d.ts.map +1 -0
  137. package/dist/src/scalars/components/fragments/form-description/form-description.test.js +29 -0
  138. package/dist/src/scalars/components/fragments/form-description/form-description.test.js.map +1 -0
  139. package/dist/src/scalars/components/fragments/form-group/form-group.test.d.ts +2 -0
  140. package/dist/src/scalars/components/fragments/form-group/form-group.test.d.ts.map +1 -0
  141. package/dist/src/scalars/components/fragments/form-group/form-group.test.js +16 -0
  142. package/dist/src/scalars/components/fragments/form-group/form-group.test.js.map +1 -0
  143. package/dist/src/scalars/components/fragments/form-label/form-label.stories.d.ts +11 -0
  144. package/dist/src/scalars/components/fragments/form-label/form-label.stories.d.ts.map +1 -0
  145. package/dist/src/scalars/components/fragments/form-label/form-label.stories.js +74 -0
  146. package/dist/src/scalars/components/fragments/form-label/form-label.stories.js.map +1 -0
  147. package/dist/src/scalars/components/fragments/form-label/form-label.test.d.ts +2 -0
  148. package/dist/src/scalars/components/fragments/form-label/form-label.test.d.ts.map +1 -0
  149. package/dist/src/scalars/components/fragments/form-label/form-label.test.js +53 -0
  150. package/dist/src/scalars/components/fragments/form-label/form-label.test.js.map +1 -0
  151. package/dist/src/scalars/components/fragments/form-message/form-message.stories.d.ts +9 -0
  152. package/dist/src/scalars/components/fragments/form-message/form-message.stories.d.ts.map +1 -0
  153. package/dist/src/scalars/components/fragments/form-message/form-message.stories.js +43 -0
  154. package/dist/src/scalars/components/fragments/form-message/form-message.stories.js.map +1 -0
  155. package/dist/src/scalars/components/fragments/form-message/form-message.test.d.ts +2 -0
  156. package/dist/src/scalars/components/fragments/form-message/form-message.test.d.ts.map +1 -0
  157. package/dist/src/scalars/components/fragments/form-message/form-message.test.js +49 -0
  158. package/dist/src/scalars/components/fragments/form-message/form-message.test.js.map +1 -0
  159. package/dist/src/scalars/components/fragments/id-autocomplete/id-autocomplete-input-container.js +1 -1
  160. package/dist/src/scalars/components/fragments/id-autocomplete/id-autocomplete-input-container.js.map +1 -1
  161. package/dist/src/scalars/components/fragments/id-autocomplete/id-autocomplete-list.d.ts +1 -1
  162. package/dist/src/scalars/components/fragments/id-autocomplete/id-autocomplete-list.d.ts.map +1 -1
  163. package/dist/src/scalars/components/fragments/id-autocomplete/id-autocomplete.d.ts +1 -2
  164. package/dist/src/scalars/components/fragments/id-autocomplete/id-autocomplete.d.ts.map +1 -1
  165. package/dist/src/scalars/components/fragments/id-autocomplete/id-autocomplete.js +13 -13
  166. package/dist/src/scalars/components/fragments/id-autocomplete/id-autocomplete.js.map +1 -1
  167. package/dist/src/scalars/components/fragments/id-autocomplete/id-autocomplete.test.d.ts +2 -0
  168. package/dist/src/scalars/components/fragments/id-autocomplete/id-autocomplete.test.d.ts.map +1 -0
  169. package/dist/src/scalars/components/fragments/id-autocomplete/id-autocomplete.test.js +136 -0
  170. package/dist/src/scalars/components/fragments/id-autocomplete/id-autocomplete.test.js.map +1 -0
  171. package/dist/src/scalars/components/fragments/id-autocomplete/use-id-autocomplete.d.ts +1 -1
  172. package/dist/src/scalars/components/fragments/popover/popover.test.d.ts +2 -0
  173. package/dist/src/scalars/components/fragments/popover/popover.test.d.ts.map +1 -0
  174. package/dist/src/scalars/components/fragments/popover/popover.test.js +11 -0
  175. package/dist/src/scalars/components/fragments/popover/popover.test.js.map +1 -0
  176. package/dist/src/scalars/components/fragments/progress-bar/progress-bar.test.d.ts +2 -0
  177. package/dist/src/scalars/components/fragments/progress-bar/progress-bar.test.d.ts.map +1 -0
  178. package/dist/src/scalars/components/fragments/progress-bar/progress-bar.test.js +18 -0
  179. package/dist/src/scalars/components/fragments/progress-bar/progress-bar.test.js.map +1 -0
  180. package/dist/src/scalars/components/fragments/radio-group-field/radio-group-field.test.d.ts +2 -0
  181. package/dist/src/scalars/components/fragments/radio-group-field/radio-group-field.test.d.ts.map +1 -0
  182. package/dist/src/scalars/components/fragments/radio-group-field/radio-group-field.test.js +133 -0
  183. package/dist/src/scalars/components/fragments/radio-group-field/radio-group-field.test.js.map +1 -0
  184. package/dist/src/scalars/components/fragments/select-field/select-field.test.d.ts +2 -0
  185. package/dist/src/scalars/components/fragments/select-field/select-field.test.d.ts.map +1 -0
  186. package/dist/src/scalars/components/fragments/select-field/select-field.test.js +160 -0
  187. package/dist/src/scalars/components/fragments/select-field/select-field.test.js.map +1 -0
  188. package/dist/src/scalars/components/fragments/tabs/tabs.test.d.ts +2 -0
  189. package/dist/src/scalars/components/fragments/tabs/tabs.test.d.ts.map +1 -0
  190. package/dist/src/scalars/components/fragments/tabs/tabs.test.js +47 -0
  191. package/dist/src/scalars/components/fragments/tabs/tabs.test.js.map +1 -0
  192. package/dist/src/scalars/components/fragments/text-field/text-field.test.d.ts +2 -0
  193. package/dist/src/scalars/components/fragments/text-field/text-field.test.d.ts.map +1 -0
  194. package/dist/src/scalars/components/fragments/text-field/text-field.test.js +106 -0
  195. package/dist/src/scalars/components/fragments/text-field/text-field.test.js.map +1 -0
  196. package/dist/src/scalars/components/fragments/textarea-field/textarea-field.test.d.ts +2 -0
  197. package/dist/src/scalars/components/fragments/textarea-field/textarea-field.test.d.ts.map +1 -0
  198. package/dist/src/scalars/components/fragments/textarea-field/textarea-field.test.js +100 -0
  199. package/dist/src/scalars/components/fragments/textarea-field/textarea-field.test.js.map +1 -0
  200. package/dist/src/scalars/components/fragments/toggle-field/toggle-field.test.d.ts +2 -0
  201. package/dist/src/scalars/components/fragments/toggle-field/toggle-field.test.d.ts.map +1 -0
  202. package/dist/src/scalars/components/fragments/toggle-field/toggle-field.test.js +56 -0
  203. package/dist/src/scalars/components/fragments/toggle-field/toggle-field.test.js.map +1 -0
  204. package/dist/src/scalars/components/fragments/value-transformer/value-transformer.d.ts +1 -1
  205. package/dist/src/scalars/components/fragments/value-transformer/value-transformer.d.ts.map +1 -1
  206. package/dist/src/scalars/components/fragments/value-transformer/value-transformer.js +2 -1
  207. package/dist/src/scalars/components/fragments/value-transformer/value-transformer.js.map +1 -1
  208. package/dist/src/scalars/components/fragments/value-transformer/value-transformer.test.d.ts +2 -0
  209. package/dist/src/scalars/components/fragments/value-transformer/value-transformer.test.d.ts.map +1 -0
  210. package/dist/src/scalars/components/fragments/value-transformer/value-transformer.test.js +102 -0
  211. package/dist/src/scalars/components/fragments/value-transformer/value-transformer.test.js.map +1 -0
  212. package/dist/src/scalars/components/fragments/with-field-validation/with-field-validation.test.d.ts +2 -0
  213. package/dist/src/scalars/components/fragments/with-field-validation/with-field-validation.test.d.ts.map +1 -0
  214. package/dist/src/scalars/components/fragments/with-field-validation/with-field-validation.test.js +141 -0
  215. package/dist/src/scalars/components/fragments/with-field-validation/with-field-validation.test.js.map +1 -0
  216. package/dist/src/scalars/components/id-field/id-field.stories.d.ts +58 -0
  217. package/dist/src/scalars/components/id-field/id-field.stories.d.ts.map +1 -0
  218. package/dist/src/scalars/components/id-field/id-field.stories.js +73 -0
  219. package/dist/src/scalars/components/id-field/id-field.stories.js.map +1 -0
  220. package/dist/src/scalars/components/id-field/id-field.test.d.ts +2 -0
  221. package/dist/src/scalars/components/id-field/id-field.test.d.ts.map +1 -0
  222. package/dist/src/scalars/components/id-field/id-field.test.js +80 -0
  223. package/dist/src/scalars/components/id-field/id-field.test.js.map +1 -0
  224. package/dist/src/scalars/components/number-field/number-field.d.ts +2 -1
  225. package/dist/src/scalars/components/number-field/number-field.d.ts.map +1 -1
  226. package/dist/src/scalars/components/number-field/number-field.js.map +1 -1
  227. package/dist/src/scalars/components/number-field/number-field.stories.d.ts +156 -0
  228. package/dist/src/scalars/components/number-field/number-field.stories.d.ts.map +1 -0
  229. package/dist/src/scalars/components/number-field/number-field.stories.js +228 -0
  230. package/dist/src/scalars/components/number-field/number-field.stories.js.map +1 -0
  231. package/dist/src/scalars/components/number-field/number-field.test.d.ts +2 -0
  232. package/dist/src/scalars/components/number-field/number-field.test.d.ts.map +1 -0
  233. package/dist/src/scalars/components/number-field/number-field.test.js +336 -0
  234. package/dist/src/scalars/components/number-field/number-field.test.js.map +1 -0
  235. package/dist/src/scalars/components/oid-field/oid-field.stories.d.ts +69 -0
  236. package/dist/src/scalars/components/oid-field/oid-field.stories.d.ts.map +1 -0
  237. package/dist/src/scalars/components/oid-field/oid-field.stories.js +447 -0
  238. package/dist/src/scalars/components/oid-field/oid-field.stories.js.map +1 -0
  239. package/dist/src/scalars/components/oid-field/oid-field.test.d.ts +2 -0
  240. package/dist/src/scalars/components/oid-field/oid-field.test.d.ts.map +1 -0
  241. package/dist/src/scalars/components/oid-field/oid-field.test.js +161 -0
  242. package/dist/src/scalars/components/oid-field/oid-field.test.js.map +1 -0
  243. package/dist/src/scalars/components/password-field/password-field.stories.d.ts +23 -0
  244. package/dist/src/scalars/components/password-field/password-field.stories.d.ts.map +1 -0
  245. package/dist/src/scalars/components/password-field/password-field.stories.js +234 -0
  246. package/dist/src/scalars/components/password-field/password-field.stories.js.map +1 -0
  247. package/dist/src/scalars/components/password-field/password-field.test.d.ts +2 -0
  248. package/dist/src/scalars/components/password-field/password-field.test.d.ts.map +1 -0
  249. package/dist/src/scalars/components/password-field/password-field.test.js +112 -0
  250. package/dist/src/scalars/components/password-field/password-field.test.js.map +1 -0
  251. package/dist/src/scalars/components/phid-field/phid-field.stories.d.ts +69 -0
  252. package/dist/src/scalars/components/phid-field/phid-field.stories.d.ts.map +1 -0
  253. package/dist/src/scalars/components/phid-field/phid-field.stories.js +476 -0
  254. package/dist/src/scalars/components/phid-field/phid-field.stories.js.map +1 -0
  255. package/dist/src/scalars/components/phid-field/phid-field.test.d.ts +2 -0
  256. package/dist/src/scalars/components/phid-field/phid-field.test.d.ts.map +1 -0
  257. package/dist/src/scalars/components/phid-field/phid-field.test.js +164 -0
  258. package/dist/src/scalars/components/phid-field/phid-field.test.js.map +1 -0
  259. package/dist/src/scalars/components/phone-number-field/phone-number-field.stories.d.ts +19 -0
  260. package/dist/src/scalars/components/phone-number-field/phone-number-field.stories.d.ts.map +1 -0
  261. package/dist/src/scalars/components/phone-number-field/phone-number-field.stories.js +116 -0
  262. package/dist/src/scalars/components/phone-number-field/phone-number-field.stories.js.map +1 -0
  263. package/dist/src/scalars/components/phone-number-field/phone-number-field.test.d.ts +2 -0
  264. package/dist/src/scalars/components/phone-number-field/phone-number-field.test.d.ts.map +1 -0
  265. package/dist/src/scalars/components/phone-number-field/phone-number-field.test.js +225 -0
  266. package/dist/src/scalars/components/phone-number-field/phone-number-field.test.js.map +1 -0
  267. package/dist/src/scalars/components/string-field/string-field.stories.d.ts +18 -0
  268. package/dist/src/scalars/components/string-field/string-field.stories.d.ts.map +1 -0
  269. package/dist/src/scalars/components/string-field/string-field.stories.js +143 -0
  270. package/dist/src/scalars/components/string-field/string-field.stories.js.map +1 -0
  271. package/dist/src/scalars/components/string-field/string-field.test.d.ts +2 -0
  272. package/dist/src/scalars/components/string-field/string-field.test.d.ts.map +1 -0
  273. package/dist/src/scalars/components/string-field/string-field.test.js +60 -0
  274. package/dist/src/scalars/components/string-field/string-field.test.js.map +1 -0
  275. package/dist/src/scalars/components/time-picker-field/time-picker-field.stories.d.ts +25 -0
  276. package/dist/src/scalars/components/time-picker-field/time-picker-field.stories.d.ts.map +1 -0
  277. package/dist/src/scalars/components/time-picker-field/time-picker-field.stories.js +150 -0
  278. package/dist/src/scalars/components/time-picker-field/time-picker-field.stories.js.map +1 -0
  279. package/dist/src/scalars/components/time-picker-field/time-picker-field.test.d.ts +2 -0
  280. package/dist/src/scalars/components/time-picker-field/time-picker-field.test.d.ts.map +1 -0
  281. package/dist/src/scalars/components/time-picker-field/time-picker-field.test.js +123 -0
  282. package/dist/src/scalars/components/time-picker-field/time-picker-field.test.js.map +1 -0
  283. package/dist/src/scalars/components/url-field/url-field.stories.d.ts +17 -0
  284. package/dist/src/scalars/components/url-field/url-field.stories.d.ts.map +1 -0
  285. package/dist/src/scalars/components/url-field/url-field.stories.js +146 -0
  286. package/dist/src/scalars/components/url-field/url-field.stories.js.map +1 -0
  287. package/dist/src/scalars/components/url-field/url-field.test.d.ts +2 -0
  288. package/dist/src/scalars/components/url-field/url-field.test.d.ts.map +1 -0
  289. package/dist/src/scalars/components/url-field/url-field.test.js +131 -0
  290. package/dist/src/scalars/components/url-field/url-field.test.js.map +1 -0
  291. package/dist/src/scalars/graphql/test/Amount.test.d.ts +2 -0
  292. package/dist/src/scalars/graphql/test/Amount.test.d.ts.map +1 -0
  293. package/dist/src/scalars/graphql/test/Amount.test.js +135 -0
  294. package/dist/src/scalars/graphql/test/Amount.test.js.map +1 -0
  295. package/dist/src/scalars/graphql/test/AmountCrypto.test.d.ts +2 -0
  296. package/dist/src/scalars/graphql/test/AmountCrypto.test.d.ts.map +1 -0
  297. package/dist/src/scalars/graphql/test/AmountCrypto.test.js +138 -0
  298. package/dist/src/scalars/graphql/test/AmountCrypto.test.js.map +1 -0
  299. package/dist/src/scalars/graphql/test/AmountCurrency.test.d.ts +2 -0
  300. package/dist/src/scalars/graphql/test/AmountCurrency.test.d.ts.map +1 -0
  301. package/dist/src/scalars/graphql/test/AmountCurrency.test.js +141 -0
  302. package/dist/src/scalars/graphql/test/AmountCurrency.test.js.map +1 -0
  303. package/dist/src/scalars/graphql/test/AmountFiat.test.d.ts +2 -0
  304. package/dist/src/scalars/graphql/test/AmountFiat.test.d.ts.map +1 -0
  305. package/dist/src/scalars/graphql/test/AmountFiat.test.js +129 -0
  306. package/dist/src/scalars/graphql/test/AmountFiat.test.js.map +1 -0
  307. package/dist/src/scalars/graphql/test/AmountMoney.test.d.ts +2 -0
  308. package/dist/src/scalars/graphql/test/AmountMoney.test.d.ts.map +1 -0
  309. package/dist/src/scalars/graphql/test/AmountMoney.test.js +50 -0
  310. package/dist/src/scalars/graphql/test/AmountMoney.test.js.map +1 -0
  311. package/dist/src/scalars/graphql/test/AmountPercentage.test.d.ts +2 -0
  312. package/dist/src/scalars/graphql/test/AmountPercentage.test.d.ts.map +1 -0
  313. package/dist/src/scalars/graphql/test/AmountPercentage.test.js +50 -0
  314. package/dist/src/scalars/graphql/test/AmountPercentage.test.js.map +1 -0
  315. package/dist/src/scalars/graphql/test/AmountTokens.test.d.ts +2 -0
  316. package/dist/src/scalars/graphql/test/AmountTokens.test.d.ts.map +1 -0
  317. package/dist/src/scalars/graphql/test/AmountTokens.test.js +50 -0
  318. package/dist/src/scalars/graphql/test/AmountTokens.test.js.map +1 -0
  319. package/dist/src/scalars/graphql/test/Currency.test.d.ts +2 -0
  320. package/dist/src/scalars/graphql/test/Currency.test.d.ts.map +1 -0
  321. package/dist/src/scalars/graphql/test/Currency.test.js +35 -0
  322. package/dist/src/scalars/graphql/test/Currency.test.js.map +1 -0
  323. package/dist/src/scalars/graphql/test/Date.test.d.ts +2 -0
  324. package/dist/src/scalars/graphql/test/Date.test.d.ts.map +1 -0
  325. package/dist/src/scalars/graphql/test/Date.test.js +50 -0
  326. package/dist/src/scalars/graphql/test/Date.test.js.map +1 -0
  327. package/dist/src/scalars/graphql/test/DateTime.test.d.ts +2 -0
  328. package/dist/src/scalars/graphql/test/DateTime.test.d.ts.map +1 -0
  329. package/dist/src/scalars/graphql/test/DateTime.test.js +50 -0
  330. package/dist/src/scalars/graphql/test/DateTime.test.js.map +1 -0
  331. package/dist/src/scalars/graphql/test/EmailAddress.test.d.ts +2 -0
  332. package/dist/src/scalars/graphql/test/EmailAddress.test.d.ts.map +1 -0
  333. package/dist/src/scalars/graphql/test/EmailAddress.test.js +50 -0
  334. package/dist/src/scalars/graphql/test/EmailAddress.test.js.map +1 -0
  335. package/dist/src/scalars/graphql/test/EthereumAddress.test.d.ts +2 -0
  336. package/dist/src/scalars/graphql/test/EthereumAddress.test.d.ts.map +1 -0
  337. package/dist/src/scalars/graphql/test/EthereumAddress.test.js +50 -0
  338. package/dist/src/scalars/graphql/test/EthereumAddress.test.js.map +1 -0
  339. package/dist/src/scalars/graphql/test/OID.test.d.ts +2 -0
  340. package/dist/src/scalars/graphql/test/OID.test.d.ts.map +1 -0
  341. package/dist/src/scalars/graphql/test/OID.test.js +35 -0
  342. package/dist/src/scalars/graphql/test/OID.test.js.map +1 -0
  343. package/dist/src/scalars/graphql/test/OLabel.test.d.ts +2 -0
  344. package/dist/src/scalars/graphql/test/OLabel.test.d.ts.map +1 -0
  345. package/dist/src/scalars/graphql/test/OLabel.test.js +35 -0
  346. package/dist/src/scalars/graphql/test/OLabel.test.js.map +1 -0
  347. package/dist/src/scalars/graphql/test/PHID.test.d.ts +2 -0
  348. package/dist/src/scalars/graphql/test/PHID.test.d.ts.map +1 -0
  349. package/dist/src/scalars/graphql/test/PHID.test.js +35 -0
  350. package/dist/src/scalars/graphql/test/PHID.test.js.map +1 -0
  351. package/dist/src/scalars/graphql/test/URL.test.d.ts +2 -0
  352. package/dist/src/scalars/graphql/test/URL.test.d.ts.map +1 -0
  353. package/dist/src/scalars/graphql/test/URL.test.js +50 -0
  354. package/dist/src/scalars/graphql/test/URL.test.js.map +1 -0
  355. package/dist/src/scalars/hooks/useEllipsis.d.ts +1 -1
  356. package/dist/src/scalars/hooks/useEllipsis.d.ts.map +1 -1
  357. package/dist/src/scalars/hooks/useEllipsis.js.map +1 -1
  358. package/dist/src/scalars/lib/deep-equal.test.d.ts +2 -0
  359. package/dist/src/scalars/lib/deep-equal.test.d.ts.map +1 -0
  360. package/dist/src/scalars/lib/deep-equal.test.js +70 -0
  361. package/dist/src/scalars/lib/deep-equal.test.js.map +1 -0
  362. package/dist/src/scalars/lib/is-empty.test.d.ts +2 -0
  363. package/dist/src/scalars/lib/is-empty.test.d.ts.map +1 -0
  364. package/dist/src/scalars/lib/is-empty.test.js +87 -0
  365. package/dist/src/scalars/lib/is-empty.test.js.map +1 -0
  366. package/dist/src/table/components/cells/render-cell/use-cell-logic.d.ts +1 -1
  367. package/dist/src/table/components/default-cell-editors/amount-editor.js.map +1 -1
  368. package/dist/src/table/components/default-cell-renderers/country-render.js +1 -1
  369. package/dist/src/table/components/default-cell-renderers/country-render.js.map +1 -1
  370. package/dist/src/table/components/rows/row-actions.d.ts +1 -1
  371. package/dist/src/table/components/rows/row-actions.d.ts.map +1 -1
  372. package/dist/src/table/components/table-focus-trap.js.map +1 -1
  373. package/dist/src/table/components/table-provider/table-provider.d.ts +1 -1
  374. package/dist/src/table/components/table-provider/table-provider.d.ts.map +1 -1
  375. package/dist/src/table/components/table-provider/table-provider.js +1 -1
  376. package/dist/src/table/components/table-provider/table-provider.js.map +1 -1
  377. package/dist/src/table/components/table-provider/table-reducer.d.ts +1 -1
  378. package/dist/src/table/components/table-provider/table-reducer.d.ts.map +1 -1
  379. package/dist/src/table/examples/api-usage/api-usage.stories.d.ts +16 -0
  380. package/dist/src/table/examples/api-usage/api-usage.stories.d.ts.map +1 -0
  381. package/dist/src/table/examples/api-usage/api-usage.stories.js +15 -0
  382. package/dist/src/table/examples/api-usage/api-usage.stories.js.map +1 -0
  383. package/dist/src/table/examples/column-visibility/column-visibility.stories.d.ts +23 -0
  384. package/dist/src/table/examples/column-visibility/column-visibility.stories.d.ts.map +1 -0
  385. package/dist/src/table/examples/column-visibility/column-visibility.stories.js +127 -0
  386. package/dist/src/table/examples/column-visibility/column-visibility.stories.js.map +1 -0
  387. package/dist/src/table/examples/computed-columns/computed-columns.stories.d.ts +23 -0
  388. package/dist/src/table/examples/computed-columns/computed-columns.stories.d.ts.map +1 -0
  389. package/dist/src/table/examples/computed-columns/computed-columns.stories.js +89 -0
  390. package/dist/src/table/examples/computed-columns/computed-columns.stories.js.map +1 -0
  391. package/dist/src/table/examples/custom-cell-editors/custom-cell-editors.stories.d.ts +23 -0
  392. package/dist/src/table/examples/custom-cell-editors/custom-cell-editors.stories.d.ts.map +1 -0
  393. package/dist/src/table/examples/custom-cell-editors/custom-cell-editors.stories.js +332 -0
  394. package/dist/src/table/examples/custom-cell-editors/custom-cell-editors.stories.js.map +1 -0
  395. package/dist/src/table/examples/custom-rendering/custom-rendering.stories.d.ts +23 -0
  396. package/dist/src/table/examples/custom-rendering/custom-rendering.stories.d.ts.map +1 -0
  397. package/dist/src/table/examples/custom-rendering/custom-rendering.stories.js +112 -0
  398. package/dist/src/table/examples/custom-rendering/custom-rendering.stories.js.map +1 -0
  399. package/dist/src/table/examples/events/events.stories.d.ts +16 -0
  400. package/dist/src/table/examples/events/events.stories.d.ts.map +1 -0
  401. package/dist/src/table/examples/events/events.stories.js +15 -0
  402. package/dist/src/table/examples/events/events.stories.js.map +1 -0
  403. package/dist/src/table/examples/row-reordering/row-reordering.stories.d.ts +37 -0
  404. package/dist/src/table/examples/row-reordering/row-reordering.stories.d.ts.map +1 -0
  405. package/dist/src/table/examples/row-reordering/row-reordering.stories.js +143 -0
  406. package/dist/src/table/examples/row-reordering/row-reordering.stories.js.map +1 -0
  407. package/dist/src/table/examples/table-editing/table-editing.stories.d.ts +43 -0
  408. package/dist/src/table/examples/table-editing/table-editing.stories.d.ts.map +1 -0
  409. package/dist/src/table/examples/table-editing/table-editing.stories.js +163 -0
  410. package/dist/src/table/examples/table-editing/table-editing.stories.js.map +1 -0
  411. package/dist/src/table/logic/table-api.d.ts +1 -1
  412. package/dist/src/table/logic/table-api.d.ts.map +1 -1
  413. package/dist/src/table/logic/table-api.js.map +1 -1
  414. package/dist/src/table/table/object-set-table.stories.d.ts +97 -0
  415. package/dist/src/table/table/object-set-table.stories.d.ts.map +1 -0
  416. package/dist/src/table/table/object-set-table.stories.js +300 -0
  417. package/dist/src/table/table/object-set-table.stories.js.map +1 -0
  418. package/dist/src/table/table/utils.d.ts +1 -1
  419. package/dist/src/table/table/utils.d.ts.map +1 -1
  420. package/dist/src/table/table/utils.js.map +1 -1
  421. package/dist/src/ui/components/button/button.stories.d.ts +32 -0
  422. package/dist/src/ui/components/button/button.stories.d.ts.map +1 -0
  423. package/dist/src/ui/components/button/button.stories.js +121 -0
  424. package/dist/src/ui/components/button/button.stories.js.map +1 -0
  425. package/dist/src/ui/components/button/button.test.d.ts +2 -0
  426. package/dist/src/ui/components/button/button.test.d.ts.map +1 -0
  427. package/dist/src/ui/components/button/button.test.js +71 -0
  428. package/dist/src/ui/components/button/button.test.js.map +1 -0
  429. package/dist/src/ui/components/confirm/alert-dialog.test.d.ts +2 -0
  430. package/dist/src/ui/components/confirm/alert-dialog.test.d.ts.map +1 -0
  431. package/dist/src/ui/components/confirm/alert-dialog.test.js +20 -0
  432. package/dist/src/ui/components/confirm/alert-dialog.test.js.map +1 -0
  433. package/dist/src/ui/components/confirm/confirm.stories.d.ts +37 -0
  434. package/dist/src/ui/components/confirm/confirm.stories.d.ts.map +1 -0
  435. package/dist/src/ui/components/confirm/confirm.stories.js +75 -0
  436. package/dist/src/ui/components/confirm/confirm.stories.js.map +1 -0
  437. package/dist/src/ui/components/data-entry/aid-input/aid-input.stories.d.ts +74 -0
  438. package/dist/src/ui/components/data-entry/aid-input/aid-input.stories.d.ts.map +1 -0
  439. package/dist/src/ui/components/data-entry/aid-input/aid-input.stories.js +505 -0
  440. package/dist/src/ui/components/data-entry/aid-input/aid-input.stories.js.map +1 -0
  441. package/dist/src/ui/components/data-entry/aid-input/aid-input.test.d.ts +2 -0
  442. package/dist/src/ui/components/data-entry/aid-input/aid-input.test.d.ts.map +1 -0
  443. package/dist/src/ui/components/data-entry/aid-input/aid-input.test.js +191 -0
  444. package/dist/src/ui/components/data-entry/aid-input/aid-input.test.js.map +1 -0
  445. package/dist/src/ui/components/data-entry/amount-input/amount-input.d.ts +1 -1
  446. package/dist/src/ui/components/data-entry/amount-input/amount-input.d.ts.map +1 -1
  447. package/dist/src/ui/components/data-entry/amount-input/amount-input.stories.d.ts +269 -0
  448. package/dist/src/ui/components/data-entry/amount-input/amount-input.stories.d.ts.map +1 -0
  449. package/dist/src/ui/components/data-entry/amount-input/amount-input.stories.js +363 -0
  450. package/dist/src/ui/components/data-entry/amount-input/amount-input.stories.js.map +1 -0
  451. package/dist/src/ui/components/data-entry/amount-input/amount-input.test.d.ts +2 -0
  452. package/dist/src/ui/components/data-entry/amount-input/amount-input.test.d.ts.map +1 -0
  453. package/dist/src/ui/components/data-entry/amount-input/amount-input.test.js +98 -0
  454. package/dist/src/ui/components/data-entry/amount-input/amount-input.test.js.map +1 -0
  455. package/dist/src/ui/components/data-entry/amount-input/utils.test.d.ts +2 -0
  456. package/dist/src/ui/components/data-entry/amount-input/utils.test.d.ts.map +1 -0
  457. package/dist/src/ui/components/data-entry/amount-input/utils.test.js +64 -0
  458. package/dist/src/ui/components/data-entry/amount-input/utils.test.js.map +1 -0
  459. package/dist/src/ui/components/data-entry/checkbox/checkbox-base.test.d.ts +2 -0
  460. package/dist/src/ui/components/data-entry/checkbox/checkbox-base.test.d.ts.map +1 -0
  461. package/dist/src/ui/components/data-entry/checkbox/checkbox-base.test.js +57 -0
  462. package/dist/src/ui/components/data-entry/checkbox/checkbox-base.test.js.map +1 -0
  463. package/dist/src/ui/components/data-entry/checkbox/checkbox.stories.d.ts +73 -0
  464. package/dist/src/ui/components/data-entry/checkbox/checkbox.stories.d.ts.map +1 -0
  465. package/dist/src/ui/components/data-entry/checkbox/checkbox.stories.js +139 -0
  466. package/dist/src/ui/components/data-entry/checkbox/checkbox.stories.js.map +1 -0
  467. package/dist/src/ui/components/data-entry/checkbox/index.js +1 -0
  468. package/dist/src/ui/components/data-entry/checkbox/index.js.map +1 -1
  469. package/dist/src/ui/components/data-entry/country-code-picker/country-code-picker.js +1 -1
  470. package/dist/src/ui/components/data-entry/country-code-picker/country-code-picker.js.map +1 -1
  471. package/dist/src/ui/components/data-entry/country-code-picker/country-code-picker.stories.d.ts +33 -0
  472. package/dist/src/ui/components/data-entry/country-code-picker/country-code-picker.stories.d.ts.map +1 -0
  473. package/dist/src/ui/components/data-entry/country-code-picker/country-code-picker.stories.js +194 -0
  474. package/dist/src/ui/components/data-entry/country-code-picker/country-code-picker.stories.js.map +1 -0
  475. package/dist/src/ui/components/data-entry/country-code-picker/country-code-picker.test.d.ts +2 -0
  476. package/dist/src/ui/components/data-entry/country-code-picker/country-code-picker.test.d.ts.map +1 -0
  477. package/dist/src/ui/components/data-entry/country-code-picker/country-code-picker.test.js +173 -0
  478. package/dist/src/ui/components/data-entry/country-code-picker/country-code-picker.test.js.map +1 -0
  479. package/dist/src/ui/components/data-entry/currency-code-picker/currency-code-picker.stories.d.ts +28 -0
  480. package/dist/src/ui/components/data-entry/currency-code-picker/currency-code-picker.stories.d.ts.map +1 -0
  481. package/dist/src/ui/components/data-entry/currency-code-picker/currency-code-picker.stories.js +185 -0
  482. package/dist/src/ui/components/data-entry/currency-code-picker/currency-code-picker.stories.js.map +1 -0
  483. package/dist/src/ui/components/data-entry/currency-code-picker/currency-code-picker.test.d.ts +2 -0
  484. package/dist/src/ui/components/data-entry/currency-code-picker/currency-code-picker.test.d.ts.map +1 -0
  485. package/dist/src/ui/components/data-entry/currency-code-picker/currency-code-picker.test.js +161 -0
  486. package/dist/src/ui/components/data-entry/currency-code-picker/currency-code-picker.test.js.map +1 -0
  487. package/dist/src/ui/components/data-entry/date-picker/date-picker.stories.d.ts +104 -0
  488. package/dist/src/ui/components/data-entry/date-picker/date-picker.stories.d.ts.map +1 -0
  489. package/dist/src/ui/components/data-entry/date-picker/date-picker.stories.js +360 -0
  490. package/dist/src/ui/components/data-entry/date-picker/date-picker.stories.js.map +1 -0
  491. package/dist/src/ui/components/data-entry/date-picker/date-picker.test.d.ts +2 -0
  492. package/dist/src/ui/components/data-entry/date-picker/date-picker.test.d.ts.map +1 -0
  493. package/dist/src/ui/components/data-entry/date-picker/date-picker.test.js +225 -0
  494. package/dist/src/ui/components/data-entry/date-picker/date-picker.test.js.map +1 -0
  495. package/dist/src/ui/components/data-entry/date-picker/index.js +1 -0
  496. package/dist/src/ui/components/data-entry/date-picker/index.js.map +1 -1
  497. package/dist/src/ui/components/data-entry/date-picker/subcomponents/calendar-nav/calendar-nav.d.ts +1 -1
  498. package/dist/src/ui/components/data-entry/date-picker/subcomponents/calendar-nav/calendar-nav.d.ts.map +1 -1
  499. package/dist/src/ui/components/data-entry/date-picker/subcomponents/calendar-nav/calendar-nav.js.map +1 -1
  500. package/dist/src/ui/components/data-entry/date-picker/subcomponents/caption-label/caption-label.d.ts +1 -1
  501. package/dist/src/ui/components/data-entry/date-picker/subcomponents/caption-label/caption-label.d.ts.map +1 -1
  502. package/dist/src/ui/components/data-entry/date-time-picker/date-time-picker.stories.d.ts +152 -0
  503. package/dist/src/ui/components/data-entry/date-time-picker/date-time-picker.stories.d.ts.map +1 -0
  504. package/dist/src/ui/components/data-entry/date-time-picker/date-time-picker.stories.js +376 -0
  505. package/dist/src/ui/components/data-entry/date-time-picker/date-time-picker.stories.js.map +1 -0
  506. package/dist/src/ui/components/data-entry/date-time-picker/date-time-picker.test.d.ts +2 -0
  507. package/dist/src/ui/components/data-entry/date-time-picker/date-time-picker.test.d.ts.map +1 -0
  508. package/dist/src/ui/components/data-entry/date-time-picker/date-time-picker.test.js +241 -0
  509. package/dist/src/ui/components/data-entry/date-time-picker/date-time-picker.test.js.map +1 -0
  510. package/dist/src/ui/components/data-entry/date-time-picker/use-date-time-picker.d.ts.map +1 -1
  511. package/dist/src/ui/components/data-entry/date-time-picker/utils.test.d.ts +2 -0
  512. package/dist/src/ui/components/data-entry/date-time-picker/utils.test.d.ts.map +1 -0
  513. package/dist/src/ui/components/data-entry/date-time-picker/utils.test.js +38 -0
  514. package/dist/src/ui/components/data-entry/date-time-picker/utils.test.js.map +1 -0
  515. package/dist/src/ui/components/data-entry/email-input/email-input.stories.d.ts +17 -0
  516. package/dist/src/ui/components/data-entry/email-input/email-input.stories.d.ts.map +1 -0
  517. package/dist/src/ui/components/data-entry/email-input/email-input.stories.js +80 -0
  518. package/dist/src/ui/components/data-entry/email-input/email-input.stories.js.map +1 -0
  519. package/dist/src/ui/components/data-entry/email-input/index.js +1 -0
  520. package/dist/src/ui/components/data-entry/email-input/index.js.map +1 -1
  521. package/dist/src/ui/components/data-entry/file-input/examples/file-upload-item-example.stories.d.ts +31 -0
  522. package/dist/src/ui/components/data-entry/file-input/examples/file-upload-item-example.stories.d.ts.map +1 -0
  523. package/dist/src/ui/components/data-entry/file-input/examples/file-upload-item-example.stories.js +193 -0
  524. package/dist/src/ui/components/data-entry/file-input/examples/file-upload-item-example.stories.js.map +1 -0
  525. package/dist/src/ui/components/data-entry/file-input/file-input.stories.d.ts +16 -0
  526. package/dist/src/ui/components/data-entry/file-input/file-input.stories.d.ts.map +1 -0
  527. package/dist/src/ui/components/data-entry/file-input/file-input.stories.js +199 -0
  528. package/dist/src/ui/components/data-entry/file-input/file-input.stories.js.map +1 -0
  529. package/dist/src/ui/components/data-entry/file-input/file-input.test.d.ts +2 -0
  530. package/dist/src/ui/components/data-entry/file-input/file-input.test.d.ts.map +1 -0
  531. package/dist/src/ui/components/data-entry/file-input/file-input.test.js +114 -0
  532. package/dist/src/ui/components/data-entry/file-input/file-input.test.js.map +1 -0
  533. package/dist/src/ui/components/data-entry/file-input/index.js +1 -0
  534. package/dist/src/ui/components/data-entry/file-input/index.js.map +1 -1
  535. package/dist/src/ui/components/data-entry/file-input/sub-components/loading-bar.d.ts +1 -0
  536. package/dist/src/ui/components/data-entry/file-input/sub-components/loading-bar.d.ts.map +1 -1
  537. package/dist/src/ui/components/data-entry/file-input/sub-components/loading-bar.js.map +1 -1
  538. package/dist/src/ui/components/data-entry/input/input.stories.d.ts +41 -0
  539. package/dist/src/ui/components/data-entry/input/input.stories.d.ts.map +1 -0
  540. package/dist/src/ui/components/data-entry/input/input.stories.js +70 -0
  541. package/dist/src/ui/components/data-entry/input/input.stories.js.map +1 -0
  542. package/dist/src/ui/components/data-entry/input/input.test.d.ts +2 -0
  543. package/dist/src/ui/components/data-entry/input/input.test.d.ts.map +1 -0
  544. package/dist/src/ui/components/data-entry/input/input.test.js +46 -0
  545. package/dist/src/ui/components/data-entry/input/input.test.js.map +1 -0
  546. package/dist/src/ui/components/data-entry/input/splitted-input-diff.d.ts +1 -0
  547. package/dist/src/ui/components/data-entry/input/splitted-input-diff.d.ts.map +1 -1
  548. package/dist/src/ui/components/data-entry/input/splitted-input-diff.js.map +1 -1
  549. package/dist/src/ui/components/data-entry/input/subcomponent/text-diff.d.ts +1 -0
  550. package/dist/src/ui/components/data-entry/input/subcomponent/text-diff.d.ts.map +1 -1
  551. package/dist/src/ui/components/data-entry/input/subcomponent/text-diff.js.map +1 -1
  552. package/dist/src/ui/components/data-entry/number-input/number-input.stories.d.ts +173 -0
  553. package/dist/src/ui/components/data-entry/number-input/number-input.stories.d.ts.map +1 -0
  554. package/dist/src/ui/components/data-entry/number-input/number-input.stories.js +249 -0
  555. package/dist/src/ui/components/data-entry/number-input/number-input.stories.js.map +1 -0
  556. package/dist/src/ui/components/data-entry/number-input/number-input.test.d.ts +2 -0
  557. package/dist/src/ui/components/data-entry/number-input/number-input.test.d.ts.map +1 -0
  558. package/dist/src/ui/components/data-entry/number-input/number-input.test.js +234 -0
  559. package/dist/src/ui/components/data-entry/number-input/number-input.test.js.map +1 -0
  560. package/dist/src/ui/components/data-entry/number-input/use-number-input.d.ts +1 -1
  561. package/dist/src/ui/components/data-entry/oid-input/oid-input.stories.d.ts +72 -0
  562. package/dist/src/ui/components/data-entry/oid-input/oid-input.stories.d.ts.map +1 -0
  563. package/dist/src/ui/components/data-entry/oid-input/oid-input.stories.js +457 -0
  564. package/dist/src/ui/components/data-entry/oid-input/oid-input.stories.js.map +1 -0
  565. package/dist/src/ui/components/data-entry/oid-input/oid-input.test.d.ts +2 -0
  566. package/dist/src/ui/components/data-entry/oid-input/oid-input.test.d.ts.map +1 -0
  567. package/dist/src/ui/components/data-entry/oid-input/oid-input.test.js +176 -0
  568. package/dist/src/ui/components/data-entry/oid-input/oid-input.test.js.map +1 -0
  569. package/dist/src/ui/components/data-entry/password-input/password-input.stories.d.ts +21 -0
  570. package/dist/src/ui/components/data-entry/password-input/password-input.stories.d.ts.map +1 -0
  571. package/dist/src/ui/components/data-entry/password-input/password-input.stories.js +101 -0
  572. package/dist/src/ui/components/data-entry/password-input/password-input.stories.js.map +1 -0
  573. package/dist/src/ui/components/data-entry/password-input/password-input.test.d.ts +2 -0
  574. package/dist/src/ui/components/data-entry/password-input/password-input.test.d.ts.map +1 -0
  575. package/dist/src/ui/components/data-entry/password-input/password-input.test.js +92 -0
  576. package/dist/src/ui/components/data-entry/password-input/password-input.test.js.map +1 -0
  577. package/dist/src/ui/components/data-entry/phid-input/phid-input.stories.d.ts +72 -0
  578. package/dist/src/ui/components/data-entry/phid-input/phid-input.stories.d.ts.map +1 -0
  579. package/dist/src/ui/components/data-entry/phid-input/phid-input.stories.js +486 -0
  580. package/dist/src/ui/components/data-entry/phid-input/phid-input.stories.js.map +1 -0
  581. package/dist/src/ui/components/data-entry/phid-input/phid-input.test.d.ts +2 -0
  582. package/dist/src/ui/components/data-entry/phid-input/phid-input.test.d.ts.map +1 -0
  583. package/dist/src/ui/components/data-entry/phid-input/phid-input.test.js +179 -0
  584. package/dist/src/ui/components/data-entry/phid-input/phid-input.test.js.map +1 -0
  585. package/dist/src/ui/components/data-entry/phone-number-input/phone-number-input.stories.d.ts +21 -0
  586. package/dist/src/ui/components/data-entry/phone-number-input/phone-number-input.stories.d.ts.map +1 -0
  587. package/dist/src/ui/components/data-entry/phone-number-input/phone-number-input.stories.js +122 -0
  588. package/dist/src/ui/components/data-entry/phone-number-input/phone-number-input.stories.js.map +1 -0
  589. package/dist/src/ui/components/data-entry/phone-number-input/phone-number-input.test.d.ts +2 -0
  590. package/dist/src/ui/components/data-entry/phone-number-input/phone-number-input.test.d.ts.map +1 -0
  591. package/dist/src/ui/components/data-entry/phone-number-input/phone-number-input.test.js +190 -0
  592. package/dist/src/ui/components/data-entry/phone-number-input/phone-number-input.test.js.map +1 -0
  593. package/dist/src/ui/components/data-entry/phone-number-input/use-phone-number-input.d.ts +1 -1
  594. package/dist/src/ui/components/data-entry/phone-number-input/use-phone-number-input.js +1 -1
  595. package/dist/src/ui/components/data-entry/phone-number-input/use-phone-number-input.js.map +1 -1
  596. package/dist/src/ui/components/data-entry/radio-group/customizable-radio-group.test.d.ts +2 -0
  597. package/dist/src/ui/components/data-entry/radio-group/customizable-radio-group.test.d.ts.map +1 -0
  598. package/dist/src/ui/components/data-entry/radio-group/customizable-radio-group.test.js +76 -0
  599. package/dist/src/ui/components/data-entry/radio-group/customizable-radio-group.test.js.map +1 -0
  600. package/dist/src/ui/components/data-entry/radio-group/radio-group.stories.d.ts +86 -0
  601. package/dist/src/ui/components/data-entry/radio-group/radio-group.stories.d.ts.map +1 -0
  602. package/dist/src/ui/components/data-entry/radio-group/radio-group.stories.js +250 -0
  603. package/dist/src/ui/components/data-entry/radio-group/radio-group.stories.js.map +1 -0
  604. package/dist/src/ui/components/data-entry/radio-group/radio-group.test.d.ts +2 -0
  605. package/dist/src/ui/components/data-entry/radio-group/radio-group.test.d.ts.map +1 -0
  606. package/dist/src/ui/components/data-entry/radio-group/radio-group.test.js +136 -0
  607. package/dist/src/ui/components/data-entry/radio-group/radio-group.test.js.map +1 -0
  608. package/dist/src/ui/components/data-entry/radio-group/radio.test.d.ts +2 -0
  609. package/dist/src/ui/components/data-entry/radio-group/radio.test.d.ts.map +1 -0
  610. package/dist/src/ui/components/data-entry/radio-group/radio.test.js +63 -0
  611. package/dist/src/ui/components/data-entry/radio-group/radio.test.js.map +1 -0
  612. package/dist/src/ui/components/data-entry/select/content.d.ts +1 -1
  613. package/dist/src/ui/components/data-entry/select/content.d.ts.map +1 -1
  614. package/dist/src/ui/components/data-entry/select/select-diff.d.ts +1 -0
  615. package/dist/src/ui/components/data-entry/select/select-diff.d.ts.map +1 -1
  616. package/dist/src/ui/components/data-entry/select/select-diff.js.map +1 -1
  617. package/dist/src/ui/components/data-entry/select/select.stories.d.ts +75 -0
  618. package/dist/src/ui/components/data-entry/select/select.stories.d.ts.map +1 -0
  619. package/dist/src/ui/components/data-entry/select/select.stories.js +439 -0
  620. package/dist/src/ui/components/data-entry/select/select.stories.js.map +1 -0
  621. package/dist/src/ui/components/data-entry/select/select.test.d.ts +2 -0
  622. package/dist/src/ui/components/data-entry/select/select.test.d.ts.map +1 -0
  623. package/dist/src/ui/components/data-entry/select/select.test.js +218 -0
  624. package/dist/src/ui/components/data-entry/select/select.test.js.map +1 -0
  625. package/dist/src/ui/components/data-entry/select/use-select.d.ts +1 -1
  626. package/dist/src/ui/components/data-entry/select/use-select.js.map +1 -1
  627. package/dist/src/ui/components/data-entry/text-input/index.js +1 -0
  628. package/dist/src/ui/components/data-entry/text-input/index.js.map +1 -1
  629. package/dist/src/ui/components/data-entry/text-input/text-input.js +1 -1
  630. package/dist/src/ui/components/data-entry/text-input/text-input.js.map +1 -1
  631. package/dist/src/ui/components/data-entry/text-input/text-input.stories.d.ts +171 -0
  632. package/dist/src/ui/components/data-entry/text-input/text-input.stories.d.ts.map +1 -0
  633. package/dist/src/ui/components/data-entry/text-input/text-input.stories.js +133 -0
  634. package/dist/src/ui/components/data-entry/text-input/text-input.stories.js.map +1 -0
  635. package/dist/src/ui/components/data-entry/textarea/textarea.d.ts +2 -3
  636. package/dist/src/ui/components/data-entry/textarea/textarea.d.ts.map +1 -1
  637. package/dist/src/ui/components/data-entry/textarea/textarea.js +10 -10
  638. package/dist/src/ui/components/data-entry/textarea/textarea.js.map +1 -1
  639. package/dist/src/ui/components/data-entry/textarea/textarea.stories.d.ts +177 -0
  640. package/dist/src/ui/components/data-entry/textarea/textarea.stories.d.ts.map +1 -0
  641. package/dist/src/ui/components/data-entry/textarea/textarea.stories.js +167 -0
  642. package/dist/src/ui/components/data-entry/textarea/textarea.stories.js.map +1 -0
  643. package/dist/src/ui/components/data-entry/time-picker/index.js +1 -0
  644. package/dist/src/ui/components/data-entry/time-picker/index.js.map +1 -1
  645. package/dist/src/ui/components/data-entry/time-picker/subcomponents/time-selector.js +2 -2
  646. package/dist/src/ui/components/data-entry/time-picker/subcomponents/time-selector.js.map +1 -1
  647. package/dist/src/ui/components/data-entry/time-picker/subcomponents/use-time-selector.d.ts +2 -2
  648. package/dist/src/ui/components/data-entry/time-picker/subcomponents/use-time-selector.d.ts.map +1 -1
  649. package/dist/src/ui/components/data-entry/time-picker/time-picker.stories.d.ts +66 -0
  650. package/dist/src/ui/components/data-entry/time-picker/time-picker.stories.d.ts.map +1 -0
  651. package/dist/src/ui/components/data-entry/time-picker/time-picker.stories.js +228 -0
  652. package/dist/src/ui/components/data-entry/time-picker/time-picker.stories.js.map +1 -0
  653. package/dist/src/ui/components/data-entry/time-picker/time-picker.test.d.ts +2 -0
  654. package/dist/src/ui/components/data-entry/time-picker/time-picker.test.d.ts.map +1 -0
  655. package/dist/src/ui/components/data-entry/time-picker/time-picker.test.js +235 -0
  656. package/dist/src/ui/components/data-entry/time-picker/time-picker.test.js.map +1 -0
  657. package/dist/src/ui/components/data-entry/time-picker/utils.test.d.ts +2 -0
  658. package/dist/src/ui/components/data-entry/time-picker/utils.test.d.ts.map +1 -0
  659. package/dist/src/ui/components/data-entry/time-picker/utils.test.js +149 -0
  660. package/dist/src/ui/components/data-entry/time-picker/utils.test.js.map +1 -0
  661. package/dist/src/ui/components/data-entry/toggle/toggle-base.test.d.ts +2 -0
  662. package/dist/src/ui/components/data-entry/toggle/toggle-base.test.d.ts.map +1 -0
  663. package/dist/src/ui/components/data-entry/toggle/toggle-base.test.js +98 -0
  664. package/dist/src/ui/components/data-entry/toggle/toggle-base.test.js.map +1 -0
  665. package/dist/src/ui/components/data-entry/toggle/toggle.stories.d.ts +68 -0
  666. package/dist/src/ui/components/data-entry/toggle/toggle.stories.d.ts.map +1 -0
  667. package/dist/src/ui/components/data-entry/toggle/toggle.stories.js +131 -0
  668. package/dist/src/ui/components/data-entry/toggle/toggle.stories.js.map +1 -0
  669. package/dist/src/ui/components/data-entry/url-input/url-input.stories.d.ts +34 -0
  670. package/dist/src/ui/components/data-entry/url-input/url-input.stories.d.ts.map +1 -0
  671. package/dist/src/ui/components/data-entry/url-input/url-input.stories.js +156 -0
  672. package/dist/src/ui/components/data-entry/url-input/url-input.stories.js.map +1 -0
  673. package/dist/src/ui/components/data-entry/url-input/url-input.test.d.ts +2 -0
  674. package/dist/src/ui/components/data-entry/url-input/url-input.test.d.ts.map +1 -0
  675. package/dist/src/ui/components/data-entry/url-input/url-input.test.js +72 -0
  676. package/dist/src/ui/components/data-entry/url-input/url-input.test.js.map +1 -0
  677. package/dist/src/ui/components/dropdown/dropdown.stories.d.ts +169 -0
  678. package/dist/src/ui/components/dropdown/dropdown.stories.d.ts.map +1 -0
  679. package/dist/src/ui/components/dropdown/dropdown.stories.js +194 -0
  680. package/dist/src/ui/components/dropdown/dropdown.stories.js.map +1 -0
  681. package/dist/src/ui/components/icon/icon.stories.d.ts +16 -0
  682. package/dist/src/ui/components/icon/icon.stories.d.ts.map +1 -0
  683. package/dist/src/ui/components/icon/icon.stories.js +37 -0
  684. package/dist/src/ui/components/icon/icon.stories.js.map +1 -0
  685. package/dist/src/ui/components/icon/index.js +1 -0
  686. package/dist/src/ui/components/icon/index.js.map +1 -1
  687. package/dist/src/ui/components/sidebar/sidebar.stories.d.ts +147 -0
  688. package/dist/src/ui/components/sidebar/sidebar.stories.d.ts.map +1 -0
  689. package/dist/src/ui/components/sidebar/sidebar.stories.js +420 -0
  690. package/dist/src/ui/components/sidebar/sidebar.stories.js.map +1 -0
  691. package/dist/src/ui/components/sidebar/sidebar.test.d.ts +2 -0
  692. package/dist/src/ui/components/sidebar/sidebar.test.d.ts.map +1 -0
  693. package/dist/src/ui/components/sidebar/sidebar.test.js +357 -0
  694. package/dist/src/ui/components/sidebar/sidebar.test.js.map +1 -0
  695. package/dist/src/ui/components/sidebar/subcomponents/sidebar-item.d.ts.map +1 -1
  696. package/dist/src/ui/components/sidebar/subcomponents/sidebar-item.js +3 -1
  697. package/dist/src/ui/components/sidebar/subcomponents/sidebar-item.js.map +1 -1
  698. package/dist/src/ui/components/sidebar/subcomponents/sidebar-provider/sidebar-provider.d.ts +1 -1
  699. package/dist/src/ui/components/sidebar/subcomponents/sidebar-provider/sidebar-provider.d.ts.map +1 -1
  700. package/dist/src/ui/components/sidebar/subcomponents/status-icon.d.ts +1 -1
  701. package/dist/src/ui/components/sidebar/subcomponents/status-icon.d.ts.map +1 -1
  702. package/dist/src/ui/components/sidebar/use-sidebar-resize.d.ts +1 -1
  703. package/dist/src/ui/components/tooltip/tooltip.stories.d.ts +11 -0
  704. package/dist/src/ui/components/tooltip/tooltip.stories.d.ts.map +1 -0
  705. package/dist/src/ui/components/tooltip/tooltip.stories.js +87 -0
  706. package/dist/src/ui/components/tooltip/tooltip.stories.js.map +1 -0
  707. package/dist/src/ui/components/tooltip/tooltip.test.d.ts +2 -0
  708. package/dist/src/ui/components/tooltip/tooltip.test.d.ts.map +1 -0
  709. package/dist/src/ui/components/tooltip/tooltip.test.js +60 -0
  710. package/dist/src/ui/components/tooltip/tooltip.test.js.map +1 -0
  711. package/dist/style.css +15 -13
  712. package/dist/tsconfig.tsbuildinfo +1 -0
  713. package/dist/vitest.config.d.ts +3 -0
  714. package/dist/vitest.config.d.ts.map +1 -0
  715. package/dist/vitest.config.js +16 -0
  716. package/dist/vitest.config.js.map +1 -0
  717. package/package.json +90 -88
  718. package/dist/scripts/create-icon-components.d.ts +0 -2
  719. package/dist/scripts/create-icon-components.d.ts.map +0 -1
  720. package/dist/scripts/create-icon-components.js +0 -91
  721. package/dist/scripts/create-icon-components.js.map +0 -1
  722. package/dist/tsconfig.lib.tsbuildinfo +0 -1
@@ -0,0 +1,114 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { fireEvent, render, screen, waitFor } from '@testing-library/react';
3
+ import { describe, expect, it } from 'vitest';
4
+ import { FileInput } from './file-input.js';
5
+ describe('FileInput Component', () => {
6
+ it('should match snapshot', () => {
7
+ const { asFragment } = render(_jsx(FileInput, { name: "file", label: "Upload File" }));
8
+ expect(asFragment()).toMatchSnapshot();
9
+ });
10
+ it('should render with label', () => {
11
+ render(_jsx(FileInput, { name: "file", label: "Upload File" }));
12
+ expect(screen.getByText('Upload File')).toBeInTheDocument();
13
+ });
14
+ it('should render with description', () => {
15
+ render(_jsx(FileInput, { name: "file", label: "Upload File", description: "Drop your file here or click to chose files", status: "idle" }));
16
+ expect(screen.getByText('Drop your file here or click to chose files')).toBeInTheDocument();
17
+ });
18
+ it('should handle disabled state', () => {
19
+ render(_jsx(FileInput, { name: "file", label: "Upload File", disabled: true }));
20
+ expect(screen.getByLabelText('Upload File')).toBeDisabled();
21
+ });
22
+ it('should display erros messages', () => {
23
+ render(_jsx(FileInput, { name: "file", label: "Upload File", errors: ['Invalid file'] }));
24
+ expect(screen.getByText('Invalid file')).toBeInTheDocument();
25
+ });
26
+ it('should have correct ARIA attributes', async () => {
27
+ render(_jsx(FileInput, { name: "file", label: "Upload File", required: true, errors: ['Invalid file'] }));
28
+ const input = screen.getByLabelText(/Upload File/);
29
+ expect(input).toHaveAttribute('aria-required', 'true');
30
+ await waitFor(() => {
31
+ expect(input).toHaveAttribute('aria-invalid', 'true');
32
+ });
33
+ });
34
+ it('should accept allowedFileTypes prop', () => {
35
+ const allowedTypes = ['application/pdf', 'image/jpeg', 'image/png'];
36
+ render(_jsx(FileInput, { name: "file", label: "Upload File", allowedFileTypes: allowedTypes }));
37
+ expect(screen.getByText(/Supports:/)).toBeInTheDocument();
38
+ expect(screen.getByText(/pdf/)).toBeInTheDocument();
39
+ expect(screen.getByText(/jpg/)).toBeInTheDocument();
40
+ expect(screen.getByText(/png/)).toBeInTheDocument();
41
+ });
42
+ it('should accept maxFileSize prop', () => {
43
+ render(_jsx(FileInput, { name: "file", label: "Upload File", maxFileSize: 10485760 }));
44
+ expect(screen.getByText('Max: 10.49 MB')).toBeInTheDocument();
45
+ });
46
+ it('should disable drag and drop when dragAndDropEnabled is false', () => {
47
+ render(_jsx(FileInput, { name: "file", label: "Upload File", dragAndDropEnabled: false }));
48
+ const dropArea = screen.getByTestId('file-drop-area');
49
+ expect(dropArea).toHaveClass('pointer-events-none');
50
+ expect(dropArea).toHaveClass('cursor-not-allowed');
51
+ });
52
+ it('should call onCancel when the cancel button is clicked', () => {
53
+ const handleCancel = vi.fn();
54
+ render(_jsx(FileInput, { status: "uploading", onCancel: handleCancel }));
55
+ const cancelButton = screen.getByRole('button', { name: /cancel upload/i });
56
+ fireEvent.click(cancelButton);
57
+ expect(handleCancel).toHaveBeenCalledTimes(1);
58
+ });
59
+ it('should call onReload when the onReload button is clicked', () => {
60
+ const onReload = vi.fn();
61
+ render(_jsx(FileInput, { status: "error", onReload: onReload }));
62
+ const reloadButton = screen.getByRole('button', { name: /Reload upload/i });
63
+ fireEvent.click(reloadButton);
64
+ expect(onReload).toHaveBeenCalledTimes(1);
65
+ });
66
+ it('should show fileName when file is uploaded', () => {
67
+ const handleCancel = vi.fn();
68
+ render(_jsx(FileInput, { status: "success", onCancel: handleCancel, fileName: "example.png", fileSize: 256000, description: "Upload files", allowedFileTypes: [] }));
69
+ const fileNameElement = screen.getByText('example.png');
70
+ expect(fileNameElement).toBeInTheDocument();
71
+ const fileSizeElement = screen.getByText('256 kB');
72
+ expect(fileSizeElement).toBeInTheDocument();
73
+ });
74
+ it('should reflect a "selected" state when a file is provided', () => {
75
+ const mockFile = new File(['test content'], 'test.pdf', { type: 'application/pdf' });
76
+ render(_jsx(FileInput, { name: "file", label: "Upload File", value: mockFile }));
77
+ const borderContainer = screen.getByTestId('file-input-border');
78
+ expect(borderContainer).toHaveAttribute('data-state', 'selected');
79
+ });
80
+ it('should reflect an "idle" state when no file is provided', () => {
81
+ render(_jsx(FileInput, { name: "file", label: "Upload File" }));
82
+ const borderContainer = screen.getByTestId('file-input-border');
83
+ expect(borderContainer).toHaveAttribute('data-state', 'idle');
84
+ });
85
+ it('should hide upload interface when status is not idle', () => {
86
+ render(_jsx(FileInput, { name: "file", label: "Upload File", status: "uploading", fileName: "test.pdf", fileSize: 1024 }));
87
+ expect(screen.queryByText('Drop your file here or click to chose files')).not.toBeInTheDocument();
88
+ expect(screen.queryByRole('button', { name: /search file/i })).not.toBeInTheDocument();
89
+ });
90
+ it('should display FileUploadItem when status is uploading', () => {
91
+ render(_jsx(FileInput, { name: "file", label: "Upload File", status: "uploading", fileName: "test.pdf", fileSize: 1024, progress: 50 }));
92
+ expect(screen.getByText('test.pdf')).toBeInTheDocument();
93
+ expect(screen.getByText('1.02 kB')).toBeInTheDocument();
94
+ expect(screen.getByText('50%')).toBeInTheDocument();
95
+ });
96
+ it('should display FileUploadItem when status is success', () => {
97
+ render(_jsx(FileInput, { name: "file", label: "Upload File", status: "success", fileName: "test.pdf", fileSize: 1024 }));
98
+ expect(screen.getByText('test.pdf')).toBeInTheDocument();
99
+ expect(screen.getByText('1.02 kB')).toBeInTheDocument();
100
+ expect(screen.getByText('Upload successful')).toBeInTheDocument();
101
+ });
102
+ it('should display FileUploadItem when status is error', () => {
103
+ render(_jsx(FileInput, { name: "file", label: "Upload File", status: "error", fileName: "test.pdf", fileSize: 1024, errorsUpload: ['Upload failed'] }));
104
+ expect(screen.getByText('test.pdf')).toBeInTheDocument();
105
+ expect(screen.getByText('1.02 kB')).toBeInTheDocument();
106
+ const errorMessages = screen.getAllByText('Upload failed');
107
+ expect(errorMessages).toHaveLength(2);
108
+ });
109
+ it('should display Preview action when status is success and showPreview is true', () => {
110
+ render(_jsx(FileInput, { name: "file", label: "Upload File", status: "success", fileName: "test.pdf", fileSize: 1024, showPreview: true, preview: "https://www.google.com" }));
111
+ expect(screen.getByRole('button', { name: /Preview/i })).toBeInTheDocument();
112
+ });
113
+ });
114
+ //# sourceMappingURL=file-input.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-input.test.js","sourceRoot":"","sources":["../../../../../../src/ui/components/data-entry/file-input/file-input.test.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AAC3E,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAA;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAE3C,QAAQ,CAAC,qBAAqB,EAAE,GAAG,EAAE;IACnC,EAAE,CAAC,uBAAuB,EAAE,GAAG,EAAE;QAC/B,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,CAAC,KAAC,SAAS,IAAC,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,aAAa,GAAG,CAAC,CAAA;QAC5E,MAAM,CAAC,UAAU,EAAE,CAAC,CAAC,eAAe,EAAE,CAAA;IACxC,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,0BAA0B,EAAE,GAAG,EAAE;QAClC,MAAM,CAAC,KAAC,SAAS,IAAC,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,aAAa,GAAG,CAAC,CAAA;QACrD,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC,iBAAiB,EAAE,CAAA;IAC7D,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,gCAAgC,EAAE,GAAG,EAAE;QACxC,MAAM,CACJ,KAAC,SAAS,IACR,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,aAAa,EACnB,WAAW,EAAC,6CAA6C,EACzD,MAAM,EAAC,MAAM,GACb,CACH,CAAA;QACD,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,6CAA6C,CAAC,CAAC,CAAC,iBAAiB,EAAE,CAAA;IAC7F,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,8BAA8B,EAAE,GAAG,EA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X,KAAK,EAAC,aAAa,EACnB,MAAM,EAAC,OAAO,EACd,QAAQ,EAAC,UAAU,EACnB,QAAQ,EAAE,IAAI,EACd,YAAY,EAAE,CAAC,eAAe,CAAC,GAC/B,CACH,CAAA;QAED,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,iBAAiB,EAAE,CAAA;QACxD,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,iBAAiB,EAAE,CAAA;QACvD,MAAM,aAAa,GAAG,MAAM,CAAC,YAAY,CAAC,eAAe,CAAC,CAAA;QAC1D,MAAM,CAAC,aAAa,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAA;IACvC,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,8EAA8E,EAAE,GAAG,EAAE;QACtF,MAAM,CACJ,KAAC,SAAS,IACR,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,aAAa,EACnB,MAAM,EAAC,SAAS,EAChB,QAAQ,EAAC,UAAU,EACnB,QAAQ,EAAE,IAAI,EACd,WAAW,EAAE,IAAI,EACjB,OAAO,EAAC,wBAAwB,GAChC,CACH,CAAA;QACD,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,iBAAiB,EAAE,CAAA;IAC9E,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
@@ -1,2 +1,3 @@
1
1
  export { FileInput } from './file-input.js';
2
+ export {} from './types.js';
2
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/ui/components/data-entry/file-input/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/ui/components/data-entry/file-input/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAwC,MAAM,YAAY,CAAA"}
@@ -1,3 +1,4 @@
1
+ import type { JSX } from 'react';
1
2
  interface LoadingBarProps {
2
3
  progress?: number;
3
4
  className?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"loading-bar.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/data-entry/file-input/sub-components/loading-bar.tsx"],"names":[],"mappings":"AAEA,UAAU,eAAe;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,QAAA,MAAM,UAAU,GAAI,yBAA8B,eAAe,KAAG,GAAG,CAAC,OAmBvE,CAAA;AAED,eAAe,UAAU,CAAA"}
1
+ {"version":3,"file":"loading-bar.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/data-entry/file-input/sub-components/loading-bar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAGhC,UAAU,eAAe;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,QAAA,MAAM,UAAU,GAAI,yBAA8B,eAAe,KAAG,GAAG,CAAC,OAmBvE,CAAA;AAED,eAAe,UAAU,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"loading-bar.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/data-entry/file-input/sub-components/loading-bar.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,qCAAqC,CAAA;AAOxD,MAAM,UAAU,GAAG,CAAC,EAAE,QAAQ,GAAG,EAAE,EAAE,SAAS,EAAmB,EAAe,EAAE;IAChF,MAAM,aAAa,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAA;IAE1D,OAAO,CACL,cAAK,SAAS,EAAE,EAAE,CAAC,iDAAiD,EAAE,SAAS,CAAC,YAC9E,mBACE,KAAK,EAAE,aAAa,EACpB,GAAG,EAAE,GAAG,gBACG,kBAAkB,EAC7B,SAAS,EAAE,EAAE,CACX,iBAAiB,EACjB,6DAA6D,EAC7D,uCAAuC,EACvC,yCAAyC,EACzC,oCAAoC,CACrC,GACD,GACE,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,UAAU,CAAA"}
1
+ {"version":3,"file":"loading-bar.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/data-entry/file-input/sub-components/loading-bar.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,EAAE,EAAE,MAAM,qCAAqC,CAAA;AAOxD,MAAM,UAAU,GAAG,CAAC,EAAE,QAAQ,GAAG,EAAE,EAAE,SAAS,EAAmB,EAAe,EAAE;IAChF,MAAM,aAAa,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAA;IAE1D,OAAO,CACL,cAAK,SAAS,EAAE,EAAE,CAAC,iDAAiD,EAAE,SAAS,CAAC,YAC9E,mBACE,KAAK,EAAE,aAAa,EACpB,GAAG,EAAE,GAAG,gBACG,kBAAkB,EAC7B,SAAS,EAAE,EAAE,CACX,iBAAiB,EACjB,6DAA6D,EAC7D,uCAAuC,EACvC,yCAAyC,EACzC,oCAAoC,CACrC,GACD,GACE,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,UAAU,CAAA"}
@@ -0,0 +1,41 @@
1
+ import type { StoryObj } from '@storybook/react';
2
+ import { Input } from './input.js';
3
+ /**
4
+ * The `Input` component is a basic HTML `input` component that allows users to enter text.
5
+ * It has the standard `input` HTML element attributes and design system styles.
6
+ */
7
+ declare const meta: {
8
+ title: string;
9
+ component: import("react").ForwardRefExoticComponent<import("./input.js").InputProps & import("react").RefAttributes<HTMLInputElement>>;
10
+ parameters: {
11
+ layout: string;
12
+ chromatic: {
13
+ disableSnapshot: boolean;
14
+ };
15
+ };
16
+ tags: string[];
17
+ argTypes: {
18
+ className: {
19
+ control: "text";
20
+ };
21
+ placeholder: {
22
+ control: "text";
23
+ };
24
+ disabled: {
25
+ control: "boolean";
26
+ };
27
+ value: {
28
+ control: "text";
29
+ };
30
+ };
31
+ };
32
+ export default meta;
33
+ type Story = StoryObj<typeof Input>;
34
+ export declare const Default: Story;
35
+ export declare const WithDefaultValue: Story;
36
+ export declare const Empty: Story;
37
+ export declare const Placeholder: Story;
38
+ export declare const Focused: Story;
39
+ export declare const Disabled: Story;
40
+ export declare const WithCustomWidth: Story;
41
+ //# sourceMappingURL=input.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/data-entry/input/input.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AACtD,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAElC;;;GAGG;AACH,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;CAwBoB,CAAA;AAE9B,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,KAAK,CAAC,CAAA;AAEnC,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,KAI9B,CAAA;AAED,eAAO,MAAM,KAAK,EAAE,KAEnB,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,KAIzB,CAAA;AAED,eAAO,MAAM,OAAO,EAAE,KAQrB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAKtB,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,KAI7B,CAAA"}
@@ -0,0 +1,70 @@
1
+ import { Input } from './input.js';
2
+ /**
3
+ * The `Input` component is a basic HTML `input` component that allows users to enter text.
4
+ * It has the standard `input` HTML element attributes and design system styles.
5
+ */
6
+ const meta = {
7
+ title: 'Data Entry/Input',
8
+ component: Input,
9
+ parameters: {
10
+ layout: 'centered',
11
+ chromatic: {
12
+ disableSnapshot: true,
13
+ },
14
+ },
15
+ tags: ['autodocs'],
16
+ argTypes: {
17
+ className: {
18
+ control: 'text',
19
+ },
20
+ placeholder: {
21
+ control: 'text',
22
+ },
23
+ disabled: {
24
+ control: 'boolean',
25
+ },
26
+ value: {
27
+ control: 'text',
28
+ },
29
+ },
30
+ };
31
+ export default meta;
32
+ export const Default = {
33
+ args: {
34
+ placeholder: 'Type something...',
35
+ },
36
+ };
37
+ export const WithDefaultValue = {
38
+ args: {
39
+ defaultValue: 'Hello World',
40
+ },
41
+ };
42
+ export const Empty = {
43
+ args: {},
44
+ };
45
+ export const Placeholder = {
46
+ args: {
47
+ placeholder: 'Enter your text here',
48
+ },
49
+ };
50
+ export const Focused = {
51
+ args: {
52
+ placeholder: 'This input is focused',
53
+ autoFocus: true,
54
+ },
55
+ parameters: {
56
+ pseudo: { focus: true },
57
+ },
58
+ };
59
+ export const Disabled = {
60
+ args: {
61
+ placeholder: 'This input is disabled',
62
+ disabled: true,
63
+ },
64
+ };
65
+ export const WithCustomWidth = {
66
+ args: {
67
+ className: 'w-[50px]',
68
+ },
69
+ };
70
+ //# sourceMappingURL=input.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input.stories.js","sourceRoot":"","sources":["../../../../../../src/ui/components/data-entry/input/input.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAElC;;;GAGG;AACH,MAAM,IAAI,GAAG;IACX,KAAK,EAAE,kBAAkB;IACzB,SAAS,EAAE,KAAK;IAChB,UAAU,EAAE;QACV,MAAM,EAAE,UAAU;QAClB,SAAS,EAAE;YACT,eAAe,EAAE,IAAI;SACtB;KACF;IACD,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,QAAQ,EAAE;QACR,SAAS,EAAE;YACT,OAAO,EAAE,MAAM;SAChB;QACD,WAAW,EAAE;YACX,OAAO,EAAE,MAAM;SAChB;QACD,QAAQ,EAAE;YACR,OAAO,EAAE,SAAS;SACnB;QACD,KAAK,EAAE;YACL,OAAO,EAAE,MAAM;SAChB;KACF;CAC2B,CAAA;AAE9B,eAAe,IAAI,CAAA;AAGnB,MAAM,CAAC,MAAM,OAAO,GAAU;IAC5B,IAAI,EAAE;QACJ,WAAW,EAAE,mBAAmB;KACjC;CACF,CAAA;AAED,MAAM,CAAC,MAAM,gBAAgB,GAAU;IACrC,IAAI,EAAE;QACJ,YAAY,EAAE,aAAa;KAC5B;CACF,CAAA;AAED,MAAM,CAAC,MAAM,KAAK,GAAU;IAC1B,IAAI,EAAE,EAAE;CACT,CAAA;AAED,MAAM,CAAC,MAAM,WAAW,GAAU;IAChC,IAAI,EAAE;QACJ,WAAW,EAAE,sBAAsB;KACpC;CACF,CAAA;AAED,MAAM,CAAC,MAAM,OAAO,GAAU;IAC5B,IAAI,EAAE;QACJ,WAAW,EAAE,uBAAuB;QACpC,SAAS,EAAE,IAAI;KAChB;IACD,UAAU,EAAE;QACV,MAAM,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE;KACxB;CACF,CAAA;AAED,MAAM,CAAC,MAAM,QAAQ,GAAU;IAC7B,IAAI,EAAE;QACJ,WAAW,EAAE,wBAAwB;QACrC,QAAQ,EAAE,IAAI;KACf;CACF,CAAA;AAED,MAAM,CAAC,MAAM,eAAe,GAAU;IACpC,IAAI,EAAE;QACJ,SAAS,EAAE,UAAU;KACtB;CACF,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=input.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input.test.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/data-entry/input/input.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,46 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { render, screen } from '@testing-library/react';
3
+ import { userEvent } from '@testing-library/user-event';
4
+ import { Input } from './input.js';
5
+ describe('Input', () => {
6
+ it('should match snapshot', () => {
7
+ const { container } = render(_jsx(Input, { placeholder: "Test placeholder" }));
8
+ expect(container).toMatchSnapshot();
9
+ });
10
+ it('should render an input element', () => {
11
+ render(_jsx(Input, {}));
12
+ expect(screen.getByRole('textbox')).toBeInTheDocument();
13
+ });
14
+ it('should render with a placeholder', () => {
15
+ render(_jsx(Input, { placeholder: "Enter text" }));
16
+ expect(screen.getByPlaceholderText('Enter text')).toBeInTheDocument();
17
+ });
18
+ it('should render with an initial value', () => {
19
+ render(_jsx(Input, { value: "Initial text" }));
20
+ expect(screen.getByDisplayValue('Initial text')).toBeInTheDocument();
21
+ });
22
+ it('should be disabled', () => {
23
+ render(_jsx(Input, { disabled: true }));
24
+ expect(screen.getByRole('textbox')).toBeDisabled();
25
+ });
26
+ it('should accept user input', async () => {
27
+ const user = userEvent.setup();
28
+ render(_jsx(Input, {}));
29
+ const input = screen.getByRole('textbox');
30
+ await user.type(input, 'Hello world');
31
+ expect(input).toHaveValue('Hello world');
32
+ });
33
+ it('should call onChange when value changes', async () => {
34
+ const user = userEvent.setup();
35
+ const handleChange = vi.fn();
36
+ render(_jsx(Input, { onChange: handleChange }));
37
+ await user.type(screen.getByRole('textbox'), 'a');
38
+ expect(handleChange).toHaveBeenCalled();
39
+ });
40
+ it('should apply custom className', () => {
41
+ // for testing purposes, we disable the custom class name rule
42
+ render(_jsx(Input, { className: "custom-class" }));
43
+ expect(screen.getByRole('textbox')).toHaveClass('custom-class');
44
+ });
45
+ });
46
+ //# sourceMappingURL=input.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input.test.js","sourceRoot":"","sources":["../../../../../../src/ui/components/data-entry/input/input.test.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAA;AACvD,OAAO,EAAE,SAAS,EA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,EAAE,CAAC,0BAA0B,EAAE,KAAK,IAAI,EAAE;QACxC,MAAM,IAAI,GAAG,SAAS,CAAC,KAAK,EAAE,CAAA;QAC9B,MAAM,CAAC,KAAC,KAAK,KAAG,CAAC,CAAA;QACjB,MAAM,KAAK,GAAG,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC,CAAA;QAEzC,MAAM,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,aAAa,CAAC,CAAA;QACrC,MAAM,CAAC,KAAK,CAAC,CAAC,WAAW,CAAC,aAAa,CAAC,CAAA;IAC1C,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,yCAAyC,EAAE,KAAK,IAAI,EAAE;QACvD,MAAM,IAAI,GAAG,SAAS,CAAC,KAAK,EAAE,CAAA;QAC9B,MAAM,YAAY,GAAG,EAAE,CAAC,EAAE,EAAE,CAAA;QAC5B,MAAM,CAAC,KAAC,KAAK,IAAC,QAAQ,EAAE,YAAY,GAAI,CAAC,CAAA;QAEzC,MAAM,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC,EAAE,GAAG,CAAC,CAAA;QACjD,MAAM,CAAC,YAAY,CAAC,CAAC,gBAAgB,EAAE,CAAA;IACzC,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,+BAA+B,EAAE,GAAG,EAAE;QACvC,8DAA8D;QAE9D,MAAM,CAAC,KAAC,KAAK,IAAC,SAAS,EAAC,cAAc,GAAG,CAAC,CAAA;QAC1C,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,cAAc,CAAC,CAAA;IACjE,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
@@ -1,4 +1,5 @@
1
1
  import type { WithDifference } from '../../../../scalars/components/types.js';
2
+ import { type JSX } from 'react';
2
3
  import type { PlatformIcon } from '../url-input/types.js';
3
4
  interface SplittedInputDiffProps extends WithDifference<string>, React.HTMLAttributes<HTMLDivElement> {
4
5
  value: string;
@@ -1 +1 @@
1
- {"version":3,"file":"splitted-input-diff.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/data-entry/input/splitted-input-diff.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAA;AAM7E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AA2CzD,UAAU,sBAAuB,SAAQ,cAAc,CAAC,MAAM,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACnG,KAAK,EAAE,MAAM,CAAA;IACb,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAA;IAC5C,QAAQ,CAAC,EAAE,GAAG,CAAC,OAAO,GAAG,IAAI,CAAA;IAC7B,IAAI,CAAC,EAAE,GAAG,CAAC,OAAO,GAAG,IAAI,CAAA;CAC1B;AAED,QAAA,MAAM,iBAAiB,GAAI,yGAWxB,sBAAsB,4CAyExB,CAAA;AAED,OAAO,EAAE,iBAAiB,EAAE,CAAA"}
1
+ {"version":3,"file":"splitted-input-diff.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/data-entry/input/splitted-input-diff.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAA;AAC7E,OAAO,EAAE,KAAK,GAAG,EAAyB,MAAM,OAAO,CAAA;AAKvD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AA2CzD,UAAU,sBAAuB,SAAQ,cAAc,CAAC,MAAM,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACnG,KAAK,EAAE,MAAM,CAAA;IACb,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAA;IAC5C,QAAQ,CAAC,EAAE,GAAG,CAAC,OAAO,GAAG,IAAI,CAAA;IAC7B,IAAI,CAAC,EAAE,GAAG,CAAC,OAAO,GAAG,IAAI,CAAA;CAC1B;AAED,QAAA,MAAM,iBAAiB,GAAI,yGAWxB,sBAAsB,4CAyExB,CAAA;AAED,OAAO,EAAE,iBAAiB,EAAE,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"splitted-input-diff.js","sourceRoot":"","sources":["../../../../../../src/ui/components/data-entry/input/splitted-input-diff.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;AAC1C,OAAO,EAAE,EAAE,EAAE,MAAM,kCAAkC,CAAA;AAErD,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAC3C,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAA;AACvF,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAA;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAA;AAEtD,OAAO,UAAU,MAAM,6BAA6B,CAAA;AASpD,MAAM,QAAQ,GAAG,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,QAAQ,EAAiB,EAAE,EAAE;IAC/E,MAAM,IAAI,GAAG,WAAW,CAAC,GAAG,EAAE;QAC5B,SAAS,CAAC,SAAS;aAChB,SAAS,CAAC,KAAK,CAAC;aAChB,IAAI,CAAC,GAAG,EAAE;YACT,YAAY,CAAC,IAAI,CAAC,CAAA;YAClB,UAAU,CAAC,GAAG,EAAE;gBACd,YAAY,CAAC,KAAK,CAAC,CAAA;YACrB,CAAC,EAAE,IAAI,CAAC,CAAA;QACV,CAAC,CAAC;aACD,KAAK,CAAC,CAAC,KA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Q,CAAC,EACvB,MAAM,EAAE,MAAM,EACd,IAAI,EACF,QAAQ,KAAK,SAAS;wBACpB,CAAC,CAAC,CAAC,QAAQ,IAAI,KAAC,UAAU,IAAC,GAAG,EAAE,SAAS,IAAI,EAAE,EAAE,aAAa,EAAE,aAAa,GAAI,CAAC;wBAClF,CAAC,CAAC,CAAC,IAAI,IAAI,KAAC,UAAU,IAAC,GAAG,EAAE,KAAK,EAAE,aAAa,EAAE,aAAa,GAAI,CAAC,GAExE,EACD,YAAY;oBACX,CAAC,CAAC,QAAQ,KAAK,SAAS,IAAI,SAAS,KAAK,SAAS,IAAI,SAAS,KAAK,EAAE,CAAC;wBACtE,CAAC,QAAQ,KAAK,UAAU,IAAI,KAAK,KAAK,EAAE,CAAC,CAAC,IAAI,CAC9C,KAAC,QAAQ,IACP,KAAK,EAAE,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,EACzD,SAAS,EAAE,aAAa,EACxB,YAAY,EAAE,gBAAgB,EAC9B,QAAQ,EAAE,QAAQ,GAClB,CACH,IACC,CACP,GACS,CACb,CAAA;AACH,CAAC,CAAA;AAED,OAAO,EAAE,iBAAiB,EAAE,CAAA"}
1
+ {"version":3,"file":"splitted-input-diff.js","sourceRoot":"","sources":["../../../../../../src/ui/components/data-entry/input/splitted-input-diff.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;AAC1C,OAAO,EAAE,EAAE,EAAE,MAAM,kCAAkC,CAAA;AAErD,OAAO,EAAY,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAC3C,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAA;AACvF,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAA;AACxD,OAAO,EAAE,QAAQ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AAO,EAAE,iBAAiB,EAAE,CAAA"}
@@ -1,4 +1,5 @@
1
1
  import type { WithDifference } from '../../../../../scalars/components/types.js';
2
+ import { type JSX } from 'react';
2
3
  interface TextDiffProps extends WithDifference<string> {
3
4
  value: string;
4
5
  className?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"text-diff.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/data-entry/input/subcomponent/text-diff.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAA;AAIhF,UAAU,aAAc,SAAQ,cAAc,CAAC,MAAM,CAAC;IACpD,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,IAAI,CAAC,EAAE,GAAG,CAAC,OAAO,GAAG,IAAI,CAAA;CAC1B;AAED,eAAO,MAAM,QAAQ,GAAI,uFAStB,aAAa,4CAgIf,CAAA"}
1
+ {"version":3,"file":"text-diff.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/data-entry/input/subcomponent/text-diff.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAA;AAEhF,OAAO,EAAE,KAAK,GAAG,EAAW,MAAM,OAAO,CAAA;AAEzC,UAAU,aAAc,SAAQ,cAAc,CAAC,MAAM,CAAC;IACpD,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,IAAI,CAAC,EAAE,GAAG,CAAC,OAAO,GAAG,IAAI,CAAA;CAC1B;AAED,eAAO,MAAM,QAAQ,GAAI,uFAStB,aAAa,4CAgIf,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"text-diff.js","source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E,EAAE,OAAO,EAAE,SAAS,CAAC,aAE5G,kBAAkB,IAAI,IAAI,EAC1B,OAAO,IACJ,CACP,CAAA;IACH,CAAC;IAED,OAAO,eAAM,SAAS,EAAE,EAAE,CAAC,8BAA8B,EAAE,OAAO,EAAE,SAAS,CAAC,YAAG,OAAO,GAAQ,CAAA;AAClG,CAAC,CAAA"}
1
+ {"version":3,"file":"text-diff.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/data-entry/input/subcomponent/text-diff.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,qCAAqC,CAAA;AAExD,OAAO,EAAe,aAAa,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AAC5D,OAAO,EAAY,OAAO,EAAE,MAAM,OAAO,CAAA;AAUzC,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,EACvB,SAAS,EACT,KAAK,EACL,QAAQ,EACR,QAAQ,GAAG,OAAO,EAClB,SAAS,EACT,iBAAiB,EACjB,MAAM,GAAG,KAAK,EACd,IAAI,GACU,EAAE,EAAE;IAClB,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,EAAE;QACxB,MAAM,IAAI,GAAG,SAAS,IAAI,EAAE,CAAA;QAC5B,OAAO,QAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;IACnF,CAAC,EAAE,CAAC,SAAS,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAA;IAEhC,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC,GAAG,EAAE;QACjD,OAAO;YACL,YAAY,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC;YAC7C,WAAW,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CA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AC,KAAK,EAChD,MAAM,EAAC,QAAQ,EACf,GAAG,EAAC,qBAAqB,EACzB,SAAS,EAAE,EAAE,CAAC,mEAAmE,CAAC,YAEjF,OAAO,GACN,IACA,CACP,CAAA;IACH,CAAC;IAED,IAAI,IAAI,IAAI,QAAQ,KAAK,WAAW,EAAE,CAAC;QACrC,OAAO,CACL,eACE,SAAS,EAAE,EAAE,CAAC,0EAA0E,EAAE,OAAO,EAAE,SAAS,CAAC,aAE5G,kBAAkB,IAAI,IAAI,EAC1B,OAAO,IACJ,CACP,CAAA;IACH,CAAC;IAED,OAAO,eAAM,SAAS,EAAE,EAAE,CAAC,8BAA8B,EAAE,OAAO,EAAE,SAAS,CAAC,YAAG,OAAO,GAAQ,CAAA;AAClG,CAAC,CAAA"}
@@ -0,0 +1,173 @@
1
+ import type { StoryObj } from '@storybook/react';
2
+ import { StorybookControlCategory } from '../../../../scalars/lib/storybook-arg-types.js';
3
+ import { NumberInput } from './number-input.js';
4
+ /**
5
+ * The `NumberField` component provides an input field for entering and selecting numbers.
6
+ * It supports multiple configuration properties like:
7
+ * - label
8
+ * - description
9
+ * - precision
10
+ * - step
11
+ *
12
+ * Features include:
13
+ * - Customizable decimal precision
14
+ * - Min/Max value restrictions
15
+ * - Negative value support
16
+ * - Trailing zeros option
17
+ *
18
+ * > **Note:** This component does not have built-in validation. If you need built-in validation
19
+ * > you can use the [NumberField](?path=/docs/scalars-number-field--readme)
20
+ * > component.
21
+ */
22
+ declare const meta: {
23
+ title: string;
24
+ component: import("react").ForwardRefExoticComponent<import("./types.js").InputNumberProps & import("../../../../index.js").WithDifference<string | number | bigint> & import("react").RefAttributes<HTMLInputElement>>;
25
+ parameters: {
26
+ layout: string;
27
+ };
28
+ tags: string[];
29
+ argTypes: {
30
+ baseValue: {
31
+ control: "text";
32
+ description: string;
33
+ table: {
34
+ type: {
35
+ summary: string;
36
+ };
37
+ category: StorybookControlCategory;
38
+ };
39
+ };
40
+ viewMode: {
41
+ control: "select";
42
+ description: string;
43
+ options: string[];
44
+ table: {
45
+ type: {
46
+ summary: string;
47
+ };
48
+ defaultValue: {
49
+ summary: string;
50
+ };
51
+ category: StorybookControlCategory;
52
+ };
53
+ };
54
+ trailingZeros: {
55
+ control: "boolean";
56
+ description: string;
57
+ table: {
58
+ type: {
59
+ summary: string;
60
+ };
61
+ category: StorybookControlCategory;
62
+ };
63
+ };
64
+ precision: {
65
+ control: "number";
66
+ description: string;
67
+ table: {
68
+ type: {
69
+ summary: string;
70
+ };
71
+ category: StorybookControlCategory;
72
+ };
73
+ };
74
+ maxValue: {
75
+ control: "number";
76
+ description: string;
77
+ table: {
78
+ type: {
79
+ summary: string;
80
+ };
81
+ category: StorybookControlCategory;
82
+ };
83
+ };
84
+ minValue: {
85
+ control: "number";
86
+ description: string;
87
+ table: {
88
+ type: {
89
+ summary: string;
90
+ };
91
+ category: StorybookControlCategory;
92
+ };
93
+ };
94
+ placeholder: {
95
+ control: "text";
96
+ description: string;
97
+ table: {
98
+ type: {
99
+ summary: string;
100
+ };
101
+ category: StorybookControlCategory;
102
+ };
103
+ };
104
+ step: {
105
+ control: "number";
106
+ description: string;
107
+ table: {
108
+ type: {
109
+ summary: string;
110
+ };
111
+ defaultValue: {
112
+ summary: string;
113
+ };
114
+ category: StorybookControlCategory;
115
+ };
116
+ };
117
+ autoFocus: {
118
+ table: {
119
+ disable: true;
120
+ };
121
+ };
122
+ numericType: {
123
+ control: {
124
+ type: "select";
125
+ };
126
+ options: string[];
127
+ description: string;
128
+ table: {
129
+ defaultValue: {
130
+ summary: string;
131
+ };
132
+ type: {
133
+ summary: string;
134
+ };
135
+ category: StorybookControlCategory;
136
+ };
137
+ };
138
+ enableStepCarets: {
139
+ control: "boolean";
140
+ description: string;
141
+ table: {
142
+ type: {
143
+ summary: string;
144
+ };
145
+ defaultValue: {
146
+ summary: string;
147
+ };
148
+ category: StorybookControlCategory;
149
+ };
150
+ };
151
+ };
152
+ args: {
153
+ name: string;
154
+ };
155
+ };
156
+ export default meta;
157
+ type Story = StoryObj<typeof NumberInput>;
158
+ export declare const Default: Story;
159
+ export declare const Active: Story;
160
+ export declare const Disable: Story;
161
+ export declare const Required: Story;
162
+ export declare const WithWarning: Story;
163
+ export declare const WithError: Story;
164
+ export declare const WithMultipleErrors: Story;
165
+ export declare const WithValue: Story;
166
+ export declare const WithDescription: Story;
167
+ export declare const WithFloatNumber: Story;
168
+ export declare const WithBigInt: Story;
169
+ export declare const WithStep: Story;
170
+ export declare const WithDifferencesAddition: Story;
171
+ export declare const WithDifferencesRemoval: Story;
172
+ export declare const WithDifferencesMixed: Story;
173
+ //# sourceMappingURL=number-input.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"number-input.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/data-entry/number-input/number-input.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AACtD,OAAO,EAIL,wBAAwB,EACzB,MAAM,gDAAgD,CAAA;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAE/C;;;;;;;;;;;;;;;;;GAiBG;AACH,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6F0B,CAAA;AAEpC,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,WAAW,CAAC,CAAA;AAEzC,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAA;AACD,eAAO,MAAM,MAAM,EAAE,KAWpB,CAAA;AACD,eAAO,MAAM,OAAO,EAAE,KAOrB,CAAA;AACD,eAAO,MAAM,QAAQ,EAAE,KAQtB,CAAA;AACD,eAAO,MAAM,WAAW,EAAE,KAQzB,CAAA;AACD,eAAO,MAAM,SAAS,EAAE,KAQvB,CAAA;AACD,eAAO,MAAM,kBAAkB,EAAE,KAQhC,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KAOvB,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,KAQ7B,CAAA;AAGD,eAAO,MAAM,eAAe,EAAE,KAS7B,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAQxB,CAAA;AAGD,eAAO,MAAM,QAAQ,EAAE,KAStB,CAAA;AAED,eAAO,MAAM,uBAAuB,EAAE,KAOrC,CAAA;AACD,eAAO,MAAM,sBAAsB,EAAE,KAOpC,CAAA;AACD,eAAO,MAAM,oBAAoB,EAAE,KAOlC,CAAA"}