@adam-milo/ui 1.0.34 → 1.0.40

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 (354) hide show
  1. package/README.md +217 -337
  2. package/dist/index.cjs +1 -1
  3. package/dist/index.js +1 -108
  4. package/dist/index10.cjs +1 -1
  5. package/dist/index10.js +4 -103
  6. package/dist/index11.cjs +1 -1
  7. package/dist/index11.js +4 -230
  8. package/dist/index12.cjs +1 -1
  9. package/dist/index12.js +9 -325
  10. package/dist/index13.cjs +1 -1
  11. package/dist/index13.js +11 -279
  12. package/dist/index14.cjs +1 -1
  13. package/dist/index14.js +2 -150
  14. package/dist/index15.cjs +1 -1
  15. package/dist/index15.js +5 -65
  16. package/dist/index16.cjs +1 -1
  17. package/dist/index16.js +4 -71
  18. package/dist/index17.cjs +1 -1
  19. package/dist/index17.js +4 -125
  20. package/dist/index18.cjs +1 -1
  21. package/dist/index18.js +8 -93
  22. package/dist/index19.cjs +1 -1
  23. package/dist/index19.js +4 -42
  24. package/dist/index20.cjs +1 -1
  25. package/dist/index20.js +2 -482
  26. package/dist/index21.cjs +1 -1
  27. package/dist/index21.js +5 -169
  28. package/dist/index22.cjs +1 -1
  29. package/dist/index22.js +11 -44
  30. package/dist/index23.cjs +1 -1
  31. package/dist/index23.js +2 -38
  32. package/dist/index24.cjs +1 -1
  33. package/dist/index24.js +2 -46
  34. package/dist/index25.cjs +1 -1
  35. package/dist/index25.js +2 -118
  36. package/dist/index26.cjs +1 -1
  37. package/dist/index26.js +7 -55
  38. package/dist/index27.cjs +1 -1
  39. package/dist/index27.js +2 -45
  40. package/dist/index28.cjs +1 -1
  41. package/dist/index28.js +2 -53
  42. package/dist/index29.cjs +1 -1
  43. package/dist/index29.js +2 -55
  44. package/dist/index3.cjs +1 -1
  45. package/dist/index3.js +2 -45
  46. package/dist/index30.cjs +1 -1
  47. package/dist/index30.js +2 -72
  48. package/dist/index31.cjs +1 -1
  49. package/dist/index31.js +10 -14
  50. package/dist/index32.cjs +1 -1
  51. package/dist/index32.js +1 -332
  52. package/dist/index33.cjs +1 -0
  53. package/dist/index33.js +1 -0
  54. package/dist/index34.cjs +1 -0
  55. package/dist/index34.js +1 -0
  56. package/dist/index35.cjs +1 -0
  57. package/dist/index35.js +1 -0
  58. package/dist/index36.cjs +1 -1
  59. package/dist/index36.js +1 -386
  60. package/dist/index37.cjs +1 -1
  61. package/dist/index37.js +15 -16
  62. package/dist/index38.cjs +1 -0
  63. package/dist/index38.js +1 -0
  64. package/dist/index39.cjs +1 -0
  65. package/dist/index39.js +1 -0
  66. package/dist/index4.cjs +1 -1
  67. package/dist/index4.js +3 -70
  68. package/dist/index40.cjs +1 -0
  69. package/dist/index40.js +1 -0
  70. package/dist/index41.cjs +1 -0
  71. package/dist/index41.js +1 -0
  72. package/dist/index42.cjs +1 -0
  73. package/dist/index42.js +1 -0
  74. package/dist/index43.cjs +1 -0
  75. package/dist/index43.js +1 -0
  76. package/dist/index44.cjs +1 -0
  77. package/dist/index44.js +1 -0
  78. package/dist/index45.cjs +1 -0
  79. package/dist/index45.js +1 -0
  80. package/dist/index46.cjs +1 -0
  81. package/dist/index46.js +1 -0
  82. package/dist/index47.cjs +1 -0
  83. package/dist/index47.js +1 -0
  84. package/dist/index48.cjs +1 -0
  85. package/dist/index48.js +1 -0
  86. package/dist/index49.cjs +1 -0
  87. package/dist/index49.js +1 -0
  88. package/dist/index5.cjs +1 -1
  89. package/dist/index5.js +2 -45
  90. package/dist/index50.cjs +1 -1
  91. package/dist/index50.js +1 -9
  92. package/dist/index51.cjs +1 -0
  93. package/dist/index51.js +1 -0
  94. package/dist/index52.cjs +1 -0
  95. package/dist/index52.js +1 -0
  96. package/dist/index53.cjs +1 -0
  97. package/dist/index53.js +1 -0
  98. package/dist/index54.cjs +1 -0
  99. package/dist/index54.js +1 -0
  100. package/dist/index55.cjs +1 -0
  101. package/dist/index55.js +1 -0
  102. package/dist/index56.cjs +1 -0
  103. package/dist/index56.js +1 -0
  104. package/dist/index57.cjs +1 -0
  105. package/dist/index57.js +1 -0
  106. package/dist/index58.cjs +1 -0
  107. package/dist/index58.js +1 -0
  108. package/dist/index59.cjs +1 -0
  109. package/dist/index59.js +1 -0
  110. package/dist/index6.cjs +1 -1
  111. package/dist/index6.js +2 -22
  112. package/dist/index60.cjs +1 -0
  113. package/dist/index60.js +1 -0
  114. package/dist/index61.cjs +1 -1
  115. package/dist/index61.js +1 -21
  116. package/dist/index62.cjs +1 -1
  117. package/dist/index62.js +1 -502
  118. package/dist/index63.cjs +1 -0
  119. package/dist/index63.js +5 -0
  120. package/dist/index64.cjs +1 -1
  121. package/dist/index64.js +1 -11
  122. package/dist/index65.cjs +1 -1
  123. package/dist/index65.js +1 -39
  124. package/dist/index66.cjs +1 -1
  125. package/dist/index66.js +1 -64
  126. package/dist/index67.cjs +1 -1
  127. package/dist/index67.js +2 -212
  128. package/dist/index68.cjs +1 -1
  129. package/dist/index68.js +1 -14
  130. package/dist/index69.cjs +1 -1
  131. package/dist/index69.js +1 -293
  132. package/dist/index7.cjs +1 -1
  133. package/dist/index7.js +1 -61
  134. package/dist/index70.cjs +1 -1
  135. package/dist/index70.js +4 -18
  136. package/dist/index71.cjs +1 -1
  137. package/dist/index71.js +1 -129
  138. package/dist/index72.cjs +1 -1
  139. package/dist/index72.js +1 -43
  140. package/dist/index73.cjs +1 -1
  141. package/dist/index73.js +1 -99
  142. package/dist/index74.cjs +1 -1
  143. package/dist/index74.js +3 -71
  144. package/dist/index75.cjs +1 -1
  145. package/dist/index75.js +1 -36
  146. package/dist/index76.cjs +1 -1
  147. package/dist/index76.js +1 -14
  148. package/dist/index77.cjs +1 -1
  149. package/dist/index77.js +1 -17
  150. package/dist/index78.cjs +1 -1
  151. package/dist/index78.js +1 -6
  152. package/dist/index79.cjs +1 -1
  153. package/dist/index79.js +1 -297
  154. package/dist/index8.cjs +1 -1
  155. package/dist/index8.js +2 -112
  156. package/dist/index80.cjs +1 -1
  157. package/dist/index80.js +1 -25
  158. package/dist/index81.cjs +1 -1
  159. package/dist/index81.js +2 -39
  160. package/dist/index82.cjs +1 -1
  161. package/dist/index82.js +1 -625
  162. package/dist/index83.cjs +1 -1
  163. package/dist/index83.js +1 -721
  164. package/dist/index84.cjs +1 -1
  165. package/dist/index84.js +1 -154
  166. package/dist/index85.cjs +1 -1
  167. package/dist/index85.js +1 -173
  168. package/dist/index86.cjs +1 -0
  169. package/dist/index86.js +1 -0
  170. package/dist/index9.cjs +1 -1
  171. package/dist/index9.js +2 -112
  172. package/dist/src/components/core/button/Button.component.d.ts +2 -35
  173. package/dist/src/components/core/button/Button.component.d.ts.map +1 -1
  174. package/dist/src/components/core/button/Button.styles.d.ts +5 -0
  175. package/dist/src/components/core/button/Button.styles.d.ts.map +1 -0
  176. package/dist/src/components/core/button/Button.types.d.ts +11 -0
  177. package/dist/src/components/core/button/Button.types.d.ts.map +1 -0
  178. package/dist/src/components/core/icon-button/IconButton.component.d.ts +2 -33
  179. package/dist/src/components/core/icon-button/IconButton.component.d.ts.map +1 -1
  180. package/dist/src/components/core/icon-button/IconButton.styles.d.ts +3 -0
  181. package/dist/src/components/core/icon-button/IconButton.styles.d.ts.map +1 -0
  182. package/dist/src/components/core/icon-button/IconButton.types.d.ts +12 -0
  183. package/dist/src/components/core/icon-button/IconButton.types.d.ts.map +1 -0
  184. package/dist/src/components/core/menu-icon-button/MenuIconButton.component.d.ts +2 -76
  185. package/dist/src/components/core/menu-icon-button/MenuIconButton.component.d.ts.map +1 -1
  186. package/dist/src/components/core/menu-icon-button/MenuIconButton.styles.d.ts +9 -0
  187. package/dist/src/components/core/menu-icon-button/MenuIconButton.styles.d.ts.map +1 -0
  188. package/dist/src/components/core/menu-icon-button/MenuIconButton.types.d.ts +11 -0
  189. package/dist/src/components/core/menu-icon-button/MenuIconButton.types.d.ts.map +1 -0
  190. package/dist/src/components/data-display/card/Card.component.d.ts +2 -34
  191. package/dist/src/components/data-display/card/Card.component.d.ts.map +1 -1
  192. package/dist/src/components/data-display/card/Card.styles.d.ts +12 -0
  193. package/dist/src/components/data-display/card/Card.styles.d.ts.map +1 -0
  194. package/dist/src/components/data-display/card/Card.types.d.ts +28 -0
  195. package/dist/src/components/data-display/card/Card.types.d.ts.map +1 -0
  196. package/dist/src/components/data-display/chip/Chip.component.d.ts +2 -33
  197. package/dist/src/components/data-display/chip/Chip.component.d.ts.map +1 -1
  198. package/dist/src/components/data-display/chip/Chip.styles.d.ts +24 -0
  199. package/dist/src/components/data-display/chip/Chip.styles.d.ts.map +1 -0
  200. package/dist/src/components/data-display/chip/Chip.types.d.ts +11 -0
  201. package/dist/src/components/data-display/chip/Chip.types.d.ts.map +1 -0
  202. package/dist/src/components/data-display/chip-group/ChipGroup.component.d.ts +2 -69
  203. package/dist/src/components/data-display/chip-group/ChipGroup.component.d.ts.map +1 -1
  204. package/dist/src/components/data-display/chip-group/ChipGroup.styles.d.ts +14 -0
  205. package/dist/src/components/data-display/chip-group/ChipGroup.styles.d.ts.map +1 -0
  206. package/dist/src/components/data-display/chip-group/ChipGroup.types.d.ts +21 -0
  207. package/dist/src/components/data-display/chip-group/ChipGroup.types.d.ts.map +1 -0
  208. package/dist/src/components/data-display/datatable/DataTable.component.d.ts +2 -22
  209. package/dist/src/components/data-display/datatable/DataTable.component.d.ts.map +1 -1
  210. package/dist/src/components/data-display/datatable/DataTable.styles.d.ts +10 -0
  211. package/dist/src/components/data-display/datatable/DataTable.styles.d.ts.map +1 -0
  212. package/dist/src/components/data-display/datatable/DataTable.types.d.ts +16 -0
  213. package/dist/src/components/data-display/datatable/DataTable.types.d.ts.map +1 -0
  214. package/dist/src/components/feedback/alert/Alert.component.d.ts +2 -16
  215. package/dist/src/components/feedback/alert/Alert.component.d.ts.map +1 -1
  216. package/dist/src/components/feedback/alert/Alert.styles.d.ts +10 -0
  217. package/dist/src/components/feedback/alert/Alert.styles.d.ts.map +1 -0
  218. package/dist/src/components/feedback/alert/Alert.types.d.ts +10 -0
  219. package/dist/src/components/feedback/alert/Alert.types.d.ts.map +1 -0
  220. package/dist/src/components/feedback/spinner/Spinner.component.d.ts +2 -59
  221. package/dist/src/components/feedback/spinner/Spinner.component.d.ts.map +1 -1
  222. package/dist/src/components/feedback/spinner/Spinner.styles.d.ts +7 -0
  223. package/dist/src/components/feedback/spinner/Spinner.styles.d.ts.map +1 -0
  224. package/dist/src/components/feedback/spinner/Spinner.types.d.ts +14 -0
  225. package/dist/src/components/feedback/spinner/Spinner.types.d.ts.map +1 -0
  226. package/dist/src/components/forms/alphanumeric-input/AlphanumericInput.component.d.ts +2 -44
  227. package/dist/src/components/forms/alphanumeric-input/AlphanumericInput.component.d.ts.map +1 -1
  228. package/dist/src/components/forms/alphanumeric-input/AlphanumericInput.types.d.ts +10 -0
  229. package/dist/src/components/forms/alphanumeric-input/AlphanumericInput.types.d.ts.map +1 -0
  230. package/dist/src/components/forms/checkbox/Checkbox.component.d.ts +2 -99
  231. package/dist/src/components/forms/checkbox/Checkbox.component.d.ts.map +1 -1
  232. package/dist/src/components/forms/checkbox/Checkbox.styles.d.ts +10 -0
  233. package/dist/src/components/forms/checkbox/Checkbox.styles.d.ts.map +1 -0
  234. package/dist/src/components/forms/checkbox/Checkbox.types.d.ts +17 -0
  235. package/dist/src/components/forms/checkbox/Checkbox.types.d.ts.map +1 -0
  236. package/dist/src/components/forms/email-input/EmailInput.component.d.ts +2 -28
  237. package/dist/src/components/forms/email-input/EmailInput.component.d.ts.map +1 -1
  238. package/dist/src/components/forms/email-input/EmailInput.types.d.ts +7 -0
  239. package/dist/src/components/forms/email-input/EmailInput.types.d.ts.map +1 -0
  240. package/dist/src/components/forms/input/Input.component.d.ts +2 -107
  241. package/dist/src/components/forms/input/Input.component.d.ts.map +1 -1
  242. package/dist/src/components/forms/input/Input.styles.d.ts +13 -0
  243. package/dist/src/components/forms/input/Input.styles.d.ts.map +1 -0
  244. package/dist/src/components/forms/input/Input.types.d.ts +17 -0
  245. package/dist/src/components/forms/input/Input.types.d.ts.map +1 -0
  246. package/dist/src/components/forms/numeric-input/NumericInput.component.d.ts +2 -41
  247. package/dist/src/components/forms/numeric-input/NumericInput.component.d.ts.map +1 -1
  248. package/dist/src/components/forms/numeric-input/NumericInput.types.d.ts +9 -0
  249. package/dist/src/components/forms/numeric-input/NumericInput.types.d.ts.map +1 -0
  250. package/dist/src/components/forms/otp-input/OTPInput.component.d.ts +2 -79
  251. package/dist/src/components/forms/otp-input/OTPInput.component.d.ts.map +1 -1
  252. package/dist/src/components/forms/otp-input/OTPInput.styles.d.ts +12 -0
  253. package/dist/src/components/forms/otp-input/OTPInput.styles.d.ts.map +1 -0
  254. package/dist/src/components/forms/otp-input/OTPInput.types.d.ts +23 -0
  255. package/dist/src/components/forms/otp-input/OTPInput.types.d.ts.map +1 -0
  256. package/dist/src/components/forms/password-input/PasswordInput.component.d.ts +2 -25
  257. package/dist/src/components/forms/password-input/PasswordInput.component.d.ts.map +1 -1
  258. package/dist/src/components/forms/password-input/PasswordInput.types.d.ts +6 -0
  259. package/dist/src/components/forms/password-input/PasswordInput.types.d.ts.map +1 -0
  260. package/dist/src/components/forms/phone-input/PhoneInput.component.d.ts +2 -91
  261. package/dist/src/components/forms/phone-input/PhoneInput.component.d.ts.map +1 -1
  262. package/dist/src/components/forms/phone-input/PhoneInput.styles.d.ts +22 -0
  263. package/dist/src/components/forms/phone-input/PhoneInput.styles.d.ts.map +1 -0
  264. package/dist/src/components/forms/phone-input/PhoneInput.types.d.ts +19 -0
  265. package/dist/src/components/forms/phone-input/PhoneInput.types.d.ts.map +1 -0
  266. package/dist/src/components/forms/phone-input/countries.d.ts +3 -79
  267. package/dist/src/components/forms/phone-input/countries.d.ts.map +1 -1
  268. package/dist/src/components/forms/phone-input/countries.types.d.ts +12 -0
  269. package/dist/src/components/forms/phone-input/countries.types.d.ts.map +1 -0
  270. package/dist/src/components/forms/radio/Radio.component.d.ts +2 -97
  271. package/dist/src/components/forms/radio/Radio.component.d.ts.map +1 -1
  272. package/dist/src/components/forms/radio/Radio.styles.d.ts +10 -0
  273. package/dist/src/components/forms/radio/Radio.styles.d.ts.map +1 -0
  274. package/dist/src/components/forms/radio/Radio.types.d.ts +16 -0
  275. package/dist/src/components/forms/radio/Radio.types.d.ts.map +1 -0
  276. package/dist/src/components/forms/select/Select.component.d.ts +2 -94
  277. package/dist/src/components/forms/select/Select.component.d.ts.map +1 -1
  278. package/dist/src/components/forms/select/Select.styles.d.ts +18 -0
  279. package/dist/src/components/forms/select/Select.styles.d.ts.map +1 -0
  280. package/dist/src/components/forms/select/Select.types.d.ts +34 -0
  281. package/dist/src/components/forms/select/Select.types.d.ts.map +1 -0
  282. package/dist/src/components/forms/toggle/Toggle.component.d.ts +2 -77
  283. package/dist/src/components/forms/toggle/Toggle.component.d.ts.map +1 -1
  284. package/dist/src/components/forms/toggle/Toggle.styles.d.ts +23 -0
  285. package/dist/src/components/forms/toggle/Toggle.styles.d.ts.map +1 -0
  286. package/dist/src/components/forms/toggle/Toggle.types.d.ts +14 -0
  287. package/dist/src/components/forms/toggle/Toggle.types.d.ts.map +1 -0
  288. package/dist/src/components/layout/auth-layout/AuthLayout.component.d.ts +2 -83
  289. package/dist/src/components/layout/auth-layout/AuthLayout.component.d.ts.map +1 -1
  290. package/dist/src/components/layout/auth-layout/AuthLayout.styles.d.ts +11 -0
  291. package/dist/src/components/layout/auth-layout/AuthLayout.styles.d.ts.map +1 -0
  292. package/dist/src/components/layout/auth-layout/AuthLayout.types.d.ts +16 -0
  293. package/dist/src/components/layout/auth-layout/AuthLayout.types.d.ts.map +1 -0
  294. package/dist/src/components/layout/container/Container.component.d.ts +2 -23
  295. package/dist/src/components/layout/container/Container.component.d.ts.map +1 -1
  296. package/dist/src/components/layout/container/Container.styles.d.ts +15 -0
  297. package/dist/src/components/layout/container/Container.styles.d.ts.map +1 -0
  298. package/dist/src/components/layout/container/Container.types.d.ts +9 -0
  299. package/dist/src/components/layout/container/Container.types.d.ts.map +1 -0
  300. package/dist/src/components/layout/divider/Divider.component.d.ts +2 -36
  301. package/dist/src/components/layout/divider/Divider.component.d.ts.map +1 -1
  302. package/dist/src/components/layout/divider/Divider.styles.d.ts +4 -0
  303. package/dist/src/components/layout/divider/Divider.styles.d.ts.map +1 -0
  304. package/dist/src/components/layout/divider/Divider.types.d.ts +11 -0
  305. package/dist/src/components/layout/divider/Divider.types.d.ts.map +1 -0
  306. package/dist/src/components/layout/grid/Grid.component.d.ts +2 -50
  307. package/dist/src/components/layout/grid/Grid.component.d.ts.map +1 -1
  308. package/dist/src/components/layout/grid/Grid.styles.d.ts +79 -0
  309. package/dist/src/components/layout/grid/Grid.styles.d.ts.map +1 -0
  310. package/dist/src/components/layout/grid/Grid.types.d.ts +15 -0
  311. package/dist/src/components/layout/grid/Grid.types.d.ts.map +1 -0
  312. package/dist/src/components/layout/stack/Stack.component.d.ts +2 -18
  313. package/dist/src/components/layout/stack/Stack.component.d.ts.map +1 -1
  314. package/dist/src/components/layout/stack/Stack.styles.d.ts +5 -0
  315. package/dist/src/components/layout/stack/Stack.styles.d.ts.map +1 -0
  316. package/dist/src/components/layout/stack/Stack.types.d.ts +12 -0
  317. package/dist/src/components/layout/stack/Stack.types.d.ts.map +1 -0
  318. package/dist/src/components/navigation/tabs/Tabs.component.d.ts +2 -38
  319. package/dist/src/components/navigation/tabs/Tabs.component.d.ts.map +1 -1
  320. package/dist/src/components/navigation/tabs/Tabs.styles.d.ts +4 -0
  321. package/dist/src/components/navigation/tabs/Tabs.styles.d.ts.map +1 -0
  322. package/dist/src/components/navigation/tabs/Tabs.types.d.ts +17 -0
  323. package/dist/src/components/navigation/tabs/Tabs.types.d.ts.map +1 -0
  324. package/dist/src/components/overlays/dialog/Dialog.component.d.ts +2 -55
  325. package/dist/src/components/overlays/dialog/Dialog.component.d.ts.map +1 -1
  326. package/dist/src/components/overlays/dialog/Dialog.styles.d.ts +20 -0
  327. package/dist/src/components/overlays/dialog/Dialog.styles.d.ts.map +1 -0
  328. package/dist/src/components/overlays/dialog/Dialog.types.d.ts +41 -0
  329. package/dist/src/components/overlays/dialog/Dialog.types.d.ts.map +1 -0
  330. package/dist/src/components/typography/heading/Heading.component.d.ts +2 -89
  331. package/dist/src/components/typography/heading/Heading.component.d.ts.map +1 -1
  332. package/dist/src/components/typography/heading/Heading.styles.d.ts +9 -0
  333. package/dist/src/components/typography/heading/Heading.styles.d.ts.map +1 -0
  334. package/dist/src/components/typography/heading/Heading.types.d.ts +19 -0
  335. package/dist/src/components/typography/heading/Heading.types.d.ts.map +1 -0
  336. package/dist/src/components/typography/link/Link.component.d.ts +2 -77
  337. package/dist/src/components/typography/link/Link.component.d.ts.map +1 -1
  338. package/dist/src/components/typography/link/Link.styles.d.ts +9 -0
  339. package/dist/src/components/typography/link/Link.styles.d.ts.map +1 -0
  340. package/dist/src/components/typography/link/Link.types.d.ts +17 -0
  341. package/dist/src/components/typography/link/Link.types.d.ts.map +1 -0
  342. package/dist/src/components/typography/text/Text.component.d.ts +4 -91
  343. package/dist/src/components/typography/text/Text.component.d.ts.map +1 -1
  344. package/dist/src/components/typography/text/Text.styles.d.ts +8 -0
  345. package/dist/src/components/typography/text/Text.styles.d.ts.map +1 -0
  346. package/dist/src/components/typography/text/Text.types.d.ts +20 -0
  347. package/dist/src/components/typography/text/Text.types.d.ts.map +1 -0
  348. package/dist/src/index.d.ts +3 -2
  349. package/dist/src/index.d.ts.map +1 -1
  350. package/dist/styles.css +1 -0
  351. package/package.json +8 -13
  352. package/dist/index2.cjs +0 -1
  353. package/dist/index2.js +0 -40
  354. package/dist/style.css +0 -1
package/dist/index21.js CHANGED
@@ -1,169 +1,5 @@
1
- import { jsxs, jsx } from "react/jsx-runtime";
2
- import { forwardRef } from "react";
3
- import * as DialogPrimitive from "@radix-ui/react-dialog";
4
- import { cn } from "./index31.js";
5
- /* empty css */
6
- import { Icon } from "@adam-milo/icons";
7
- const Dialog = DialogPrimitive.Root;
8
- const DialogTrigger = DialogPrimitive.Trigger;
9
- const DialogPortal = DialogPrimitive.Portal;
10
- const DialogClose = DialogPrimitive.Close;
11
- const DialogCloseButton = forwardRef(({ className, "data-cy": dataCy, "data-testid": dataTestId, ...props }, ref) => {
12
- const finalDataCy = dataCy || "dialog-close-button";
13
- const finalTestId = dataTestId || "dialog-close-button";
14
- return /* @__PURE__ */ jsx(
15
- DialogPrimitive.Close,
16
- {
17
- ref,
18
- className: cn("dialog-close-button", className),
19
- "data-cy": finalDataCy,
20
- "data-testid": finalTestId,
21
- "aria-label": "Close dialog",
22
- ...props,
23
- children: /* @__PURE__ */ jsx(Icon, { name: "Cross2Icon", size: "sm", decorative: true })
24
- }
25
- );
26
- });
27
- DialogCloseButton.displayName = "DialogCloseButton";
28
- const DialogIcon = ({
29
- children,
30
- variant = "default",
31
- className,
32
- "data-cy": dataCy,
33
- "data-testid": dataTestId,
34
- ...props
35
- }) => {
36
- const finalDataCy = dataCy || "dialog-icon";
37
- const finalTestId = dataTestId || "dialog-icon";
38
- return /* @__PURE__ */ jsx(
39
- "div",
40
- {
41
- className: cn("dialog-icon", `dialog-icon--${variant}`, className),
42
- "data-cy": finalDataCy,
43
- "data-testid": finalTestId,
44
- "aria-hidden": "true",
45
- ...props,
46
- children
47
- }
48
- );
49
- };
50
- DialogIcon.displayName = "DialogIcon";
51
- const DialogOverlay = forwardRef(({ className, "data-cy": dataCy, "data-testid": dataTestId, ...props }, ref) => {
52
- const finalDataCy = dataCy || "dialog-overlay";
53
- const finalTestId = dataTestId || "dialog-overlay";
54
- return /* @__PURE__ */ jsx(
55
- DialogPrimitive.Overlay,
56
- {
57
- ref,
58
- className: cn("dialog-overlay", className),
59
- "data-cy": finalDataCy,
60
- "data-testid": finalTestId,
61
- ...props
62
- }
63
- );
64
- });
65
- DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
66
- const DialogContent = forwardRef(({ className, children, "data-cy": dataCy, "data-testid": dataTestId, ...props }, ref) => {
67
- const finalDataCy = dataCy || "dialog-content";
68
- const finalTestId = dataTestId || "dialog-content";
69
- return /* @__PURE__ */ jsxs(DialogPortal, { children: [
70
- /* @__PURE__ */ jsx(DialogOverlay, {}),
71
- /* @__PURE__ */ jsx(
72
- DialogPrimitive.Content,
73
- {
74
- ref,
75
- className: cn("dialog-content", className),
76
- "data-cy": finalDataCy,
77
- "data-testid": finalTestId,
78
- ...props,
79
- children
80
- }
81
- )
82
- ] });
83
- });
84
- DialogContent.displayName = DialogPrimitive.Content.displayName;
85
- const DialogHeader = ({
86
- centered = false,
87
- className,
88
- "data-cy": dataCy,
89
- "data-testid": dataTestId,
90
- ...props
91
- }) => {
92
- const finalDataCy = dataCy || "dialog-header";
93
- const finalTestId = dataTestId || "dialog-header";
94
- return /* @__PURE__ */ jsx(
95
- "div",
96
- {
97
- className: cn("dialog-header", centered && "dialog-header--centered", className),
98
- "data-cy": finalDataCy,
99
- "data-testid": finalTestId,
100
- ...props
101
- }
102
- );
103
- };
104
- DialogHeader.displayName = "DialogHeader";
105
- const DialogFooter = ({
106
- className,
107
- "data-cy": dataCy,
108
- "data-testid": dataTestId,
109
- ...props
110
- }) => {
111
- const finalDataCy = dataCy || "dialog-footer";
112
- const finalTestId = dataTestId || "dialog-footer";
113
- return /* @__PURE__ */ jsx(
114
- "div",
115
- {
116
- className: cn("dialog-footer", className),
117
- "data-cy": finalDataCy,
118
- "data-testid": finalTestId,
119
- ...props
120
- }
121
- );
122
- };
123
- DialogFooter.displayName = "DialogFooter";
124
- const DialogTitle = forwardRef(
125
- ({ className, "data-cy": dataCy, "data-testid": dataTestId, ...props }, ref) => {
126
- const finalDataCy = dataCy || "dialog-title";
127
- const finalTestId = dataTestId || "dialog-title";
128
- return /* @__PURE__ */ jsx(
129
- DialogPrimitive.Title,
130
- {
131
- ref,
132
- className: cn("dialog-title", className),
133
- "data-cy": finalDataCy,
134
- "data-testid": finalTestId,
135
- ...props
136
- }
137
- );
138
- }
139
- );
140
- DialogTitle.displayName = DialogPrimitive.Title.displayName;
141
- const DialogDescription = forwardRef(({ className, "data-cy": dataCy, "data-testid": dataTestId, ...props }, ref) => {
142
- const finalDataCy = dataCy || "dialog-description";
143
- const finalTestId = dataTestId || "dialog-description";
144
- return /* @__PURE__ */ jsx(
145
- DialogPrimitive.Description,
146
- {
147
- ref,
148
- className: cn("dialog-description", className),
149
- "data-cy": finalDataCy,
150
- "data-testid": finalTestId,
151
- ...props
152
- }
153
- );
154
- });
155
- DialogDescription.displayName = DialogPrimitive.Description.displayName;
156
- export {
157
- Dialog,
158
- DialogClose,
159
- DialogCloseButton,
160
- DialogContent,
161
- DialogDescription,
162
- DialogFooter,
163
- DialogHeader,
164
- DialogIcon,
165
- DialogOverlay,
166
- DialogPortal,
167
- DialogTitle,
168
- DialogTrigger
169
- };
1
+ import{jsxs as e,jsx as t}from"react/jsx-runtime";import{forwardRef as r,useRef as a,useState as n,useCallback as i,useEffect as o}from"react";import{cn as l}from"./index32.js";import{Chip as c}from"./index20.js";import{containerStyles as s,itemWrapperStyles as u,itemButtonStyles as d,removeButtonStyles as p,overflowButtonStyles as m,overflowChipClassMap as h,tooltipItemStyles as v,rootStyles as g}from"./index50.js";import{devWarn as f}from"./index51.js";import{Icon as b}from"@adam-milo/icons";const y=(e,t,r,l,c)=>{const[s,u]=n(e.length),d=i(()=>{if(void 0!==c)return void u(Math.min(c,e.length));const a=t.current;if(!a)return;const n=a.clientWidth,i=parseFloat(getComputedStyle(document.documentElement).fontSize)||16,o=window.getComputedStyle(a),s=((e,t,r)=>{if(!e)return.5*t;const a=e.match(/^([\d.]+)(px|rem|em)?/);if(!a)return.5*t;const n=parseFloat(a[1]);switch(a[2]||"px"){case"px":return n;case"rem":return n*t;case"em":return n*r;default:return.5*t}})(o.gap,i,parseFloat(o.fontSize)||16),d=3.75*i;for(let t=0;t<e.length;t++){const a=e[t],n=r.current[t];n&&l.current.set(a.value,n.offsetWidth)}const p=((e,t,r,a,n)=>{let i=0,o=0;for(let l=0;l<e.length;l++){const c=e[l],s=t.get(c.value)||0;if(0===s){o++;break}const u=i+(l>0?a:0)+s;if(l<e.length-1){if(u+a+n>r&&o>0)break}else if(u>r&&o>0)break;i=u,o++}return Math.max(1,o)})(e,l.current,n,s,d);u(p)},[e,c,t,r,l]),p=((e,t)=>{const r=a(null);return o(()=>()=>{r.current&&clearTimeout(r.current)},[]),i((...a)=>{r.current&&clearTimeout(r.current),r.current=setTimeout(()=>e(...a),t)},[e,t])})(d,100);o(()=>{r.current.length>e.length&&(r.current=r.current.slice(0,e.length));const t=new Set(e.map(e=>e.value));if(l.current.forEach((e,r)=>{t.has(r)||l.current.delete(r)}),void 0===c){e.some(e=>!l.current.has(e.value))?u(e.length):setTimeout(d,0)}},[e,c,d,r,l]),o(()=>{const e=t.current;if(!e)return;const r=new ResizeObserver(()=>{p()});return r.observe(e),setTimeout(d,0),()=>{r.disconnect()}},[d,p,t]);const m=e.slice(0,s),h=e.slice(s);return{visibleCount:s,visibleItems:m,hiddenItems:h,hasOverflow:h.length>0}},w=r(({items:r,selectedValue:w,onSelectionChange:k,removable:N=!1,onRemove:x,variant:E="primary",disabled:$=!1,maxVisible:D,className:C,"data-testid":I,"data-cy":S,...j},A)=>{const z=(r&&Array.isArray(r)?r:[]).filter(e=>null!=e&&"object"==typeof e),L=a(null),M=a([]),P=a(/* @__PURE__ */new Map),T=a(null),[O,F]=n(!1),[K,R]=n(!1),V=a([]),{visibleItems:G,hiddenItems:W,hasOverflow:q}=y(z,L,M,P,D),H=i((e,t,r)=>{if(!$&&!t&&k){k(w===e?null:e,r)}},[$,w,k]),U=i((e,t)=>{e.stopPropagation(),$||x&&x(t,e)},[$,x]),_=i((e,t,r)=>{$||r||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),H(t,r,e))},[$,H]),B=i(e=>{e.stopPropagation(),R(e=>!e),F(!1)},[]),J=i((e,t)=>{switch(e.key){case"ArrowDown":e.preventDefault(),t<W.length-1&&V.current[t+1]?.focus();break;case"ArrowUp":e.preventDefault(),t>0&&V.current[t-1]?.focus();break;case"Home":e.preventDefault(),V.current[0]?.focus();break;case"End":e.preventDefault(),V.current[W.length-1]?.focus()}},[W.length]),Q=a(null),X=a(null);return o(()=>{Q.current=e=>{T.current&&!T.current.contains(e.target)&&R(!1)},X.current=e=>{"Escape"===e.key&&R(!1)}}),o(()=>{if(!K)return;const e=e=>Q.current?.(e),t=e=>X.current?.(e);return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[K]),o(()=>{if("development"===process.env.NODE_ENV&&z.length>0){const e=z.map(e=>e.value),t=new Set(e);e.length!==t.size&&f("[ChipGroup] Duplicate values detected in items array. Each item should have a unique value.")}},[z]),o(()=>{V.current.length>W.length&&(V.current=V.current.slice(0,W.length))},[W]),r&&Array.isArray(r)?/* @__PURE__ */e("div",{ref:A,className:l(g,$&&"opacity-40 pointer-events-none",C),role:"group","aria-label":"Chip group","data-testid":I||"chip-group","data-cy":S||"chip-group",...j,children:[q&&/* @__PURE__ */e("div",{className:"sr-only",role:"status","aria-live":"polite","aria-atomic":"true","data-testid":"chip-group-live-region","data-cy":"chip-group-live-region",children:[W.length," additional ",1===W.length?"chip":"chips"," hidden"]}),
2
+ /* @__PURE__ */e("div",{ref:L,className:s,children:[G.map(r=>{const a=w===r.value,n=r.variant||E,i=$||r.disabled||!1,o=z.findIndex(e=>e.value===r.value);/* @__PURE__ */
3
+ return t("div",{ref:e=>{M.current[o]=e||null},className:u,"data-cy":`chip-group-item-wrapper-${r.value}`,"data-testid":`chip-group-item-wrapper-${r.value}`,children:/* @__PURE__ */e("div",{className:d,onClick:e=>H(r.value,i,e),onKeyDown:e=>_(e,r.value,i),tabIndex:i?-1:0,role:"button","aria-pressed":a?"true":"false","aria-disabled":i?"true":"false","data-cy":`chip-group-item-${r.value}`,"data-testid":`chip-group-item-${r.value}`,children:[
4
+ /* @__PURE__ */t(c,{variant:n,selected:a,disabled:i,className:!N||$||i?void 0:"pe-6","data-cy":`chip-${r.value}`,"data-testid":`chip-${r.value}`,children:r.label}),N&&!$&&!i&&/* @__PURE__ */t("button",{className:p,onClick:e=>U(e,r.value),"aria-label":`Remove ${r.label}`,"data-cy":`chip-remove-${r.value}`,"data-testid":`chip-remove-${r.value}`,type:"button",children:/* @__PURE__ */t(b,{name:"Cross2Icon",size:"sm",decorative:!0})})]})},r.value)}),q&&/* @__PURE__ */e("div",{ref:T,className:m,role:"button",tabIndex:0,"aria-expanded":K?"true":"false","aria-haspopup":"menu","aria-label":`Show ${W.length} more ${1===W.length?"chip":"chips"}`,onMouseEnter:()=>!K&&F(!0),onMouseLeave:()=>F(!1),onClick:B,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),e.stopPropagation(),R(!K),F(!1))},"data-cy":"chip-group-overflow","data-testid":"chip-group-overflow",children:[
5
+ /* @__PURE__ */e(c,{variant:E,className:h[E],"data-cy":"chip-overflow","data-testid":"chip-overflow",children:["+",W.length]}),O&&!K&&/* @__PURE__ */t("div",{className:"chip-group-tooltip",role:"tooltip","data-cy":"chip-group-tooltip","data-testid":"chip-group-tooltip",children:W.map(e=>/* @__PURE__ */t("div",{className:v,"data-cy":`chip-group-tooltip-item-${e.value}`,"data-testid":`chip-group-tooltip-item-${e.value}`,children:e.label},e.value))}),K&&/* @__PURE__ */t("div",{className:"chip-group-dropdown",role:"menu","data-cy":"chip-group-dropdown","data-testid":"chip-group-dropdown",children:W.map((e,r)=>/* @__PURE__ */t("div",{ref:e=>{V.current[r]=e||null},className:l("chip-group-dropdown-item",e.disabled&&"chip-group-dropdown-item--disabled"),role:"menuitem",tabIndex:e.disabled?-1:0,"aria-disabled":e.disabled?"true":"false",onClick:t=>{t.stopPropagation(),e.disabled||(H(e.value,!1,t),R(!1))},onKeyDown:t=>{J(t,r),"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.stopPropagation(),e.disabled||(H(e.value,!1,t),R(!1)))},"data-cy":`chip-group-dropdown-item-${e.value}`,"data-testid":`chip-group-dropdown-item-${e.value}`,children:e.label},e.value))})]})]})]}):null});w.displayName="ChipGroup";export{w as ChipGroup};
package/dist/index22.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),a=require("react"),e=require("./index31.cjs");;/* empty css */const s=a.forwardRef(({direction:a="vertical",spacing:s="4",align:c="stretch",justify:r="start",wrap:i=!1,className:n,children:d,"data-cy":l,"data-testid":o,...u},k)=>{const p=l||`stack-${a}`,j=o||`stack-${a}`;return t.jsx("div",{ref:k,className:e.cn("stack",`stack--${a}`,`stack--spacing-${s}`,`stack--align-${c}`,`stack--justify-${r}`,i&&"stack--wrap",n),"data-cy":p,"data-testid":j,...u,children:d})});s.displayName="Stack",exports.Stack=s;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("react"),t=require("@radix-ui/react-dialog"),o=require("./index32.cjs"),s=require("./index52.cjs"),r=require("@adam-milo/icons");function i(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const t in e)if("default"!==t){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(a,t,o.get?o:{enumerable:!0,get:()=>e[t]})}return a.default=e,Object.freeze(a)}const l=i(t),d=l.Root,c=l.Trigger,n=l.Portal,y=l.Close,g=a.forwardRef(({className:a,"data-cy":t,"data-testid":i,...d},c)=>{const n=t||"dialog-close-button",y=i||"dialog-close-button";return e.jsx(l.Close,{ref:c,className:o.cn(s.closeButtonStyles,a),"data-cy":n,"data-testid":y,"aria-label":"Close dialog",...d,children:e.jsx(r.Icon,{name:"Cross2Icon",size:"sm",decorative:!0})})});g.displayName="DialogCloseButton";const m=({children:a,variant:t="default",className:r,"data-cy":i,"data-testid":l,...d})=>{const c=i||"dialog-icon",n=l||"dialog-icon";return e.jsx("div",{className:o.cn(s.iconRootStyles,s.iconVariantColor[t],r),"data-cy":c,"data-testid":n,"aria-hidden":"true",...d,children:a})};m.displayName="DialogIcon";const p=a.forwardRef(({className:a,variant:t="default","data-cy":r,"data-testid":i,...d},c)=>{const n=r||"dialog-overlay",y=i||"dialog-overlay";return e.jsx(l.Overlay,{ref:c,className:o.cn(s.overlayRootStyles,s.overlayBgStyles[t],a),"data-cy":n,"data-testid":y,...d})});p.displayName=l.Overlay.displayName;const u=a.forwardRef(({className:a,children:t,overlayVariant:r="default","data-cy":i,"data-testid":d,...c},y)=>{const g=i||"dialog-content",m=d||"dialog-content";return e.jsxs(n,{children:[e.jsx(p,{variant:r}),e.jsx("div",{className:s.contentWrapperStyles,children:e.jsx(l.Content,{ref:y,className:o.cn(s.contentStyles,a),"data-cy":g,"data-testid":m,...c,children:t})})]})});u.displayName=l.Content.displayName;const f=({centered:a=!1,className:t,"data-cy":r,"data-testid":i,...l})=>{const d=r||"dialog-header",c=i||"dialog-header";return e.jsx("div",{className:o.cn(s.headerStyles,a&&s.headerCenteredStyles,t),"data-cy":d,"data-testid":c,...l})};f.displayName="DialogHeader";const x=({className:a,"data-cy":t,"data-testid":r,...i})=>{const l=t||"dialog-footer",d=r||"dialog-footer";return e.jsx("div",{className:o.cn(s.footerStyles,a),"data-cy":l,"data-testid":d,...i})};x.displayName="DialogFooter";const N=a.forwardRef(({className:a,"data-cy":t,"data-testid":r,...i},d)=>{const c=t||"dialog-title",n=r||"dialog-title";return e.jsx(l.Title,{ref:d,className:o.cn(s.titleStyles,a),"data-cy":c,"data-testid":n,...i})});N.displayName=l.Title.displayName;const j=a.forwardRef(({className:a,"data-cy":t,"data-testid":r,...i},d)=>{const c=t||"dialog-description",n=r||"dialog-description";return e.jsx(l.Description,{ref:d,className:o.cn(s.descriptionStyles,a),"data-cy":c,"data-testid":n,...i})});j.displayName=l.Description.displayName,exports.Dialog=d,exports.DialogClose=y,exports.DialogCloseButton=g,exports.DialogContent=u,exports.DialogDescription=j,exports.DialogFooter=x,exports.DialogHeader=f,exports.DialogIcon=m,exports.DialogOverlay=p,exports.DialogPortal=n,exports.DialogTitle=N,exports.DialogTrigger=c;
package/dist/index22.js CHANGED
@@ -1,44 +1,11 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import { forwardRef } from "react";
3
- import { cn } from "./index31.js";
4
- /* empty css */
5
- const Stack = forwardRef(
6
- ({
7
- direction = "vertical",
8
- spacing = "4",
9
- align = "stretch",
10
- justify = "start",
11
- wrap = false,
12
- className,
13
- children,
14
- "data-cy": dataCy,
15
- "data-testid": dataTestId,
16
- ...props
17
- }, ref) => {
18
- const finalDataCy = dataCy || `stack-${direction}`;
19
- const finalTestId = dataTestId || `stack-${direction}`;
20
- return /* @__PURE__ */ jsx(
21
- "div",
22
- {
23
- ref,
24
- className: cn(
25
- "stack",
26
- `stack--${direction}`,
27
- `stack--spacing-${spacing}`,
28
- `stack--align-${align}`,
29
- `stack--justify-${justify}`,
30
- wrap && "stack--wrap",
31
- className
32
- ),
33
- "data-cy": finalDataCy,
34
- "data-testid": finalTestId,
35
- ...props,
36
- children
37
- }
38
- );
39
- }
40
- );
41
- Stack.displayName = "Stack";
42
- export {
43
- Stack
44
- };
1
+ import{jsx as a,jsxs as t}from"react/jsx-runtime";import{forwardRef as e}from"react";import*as d from"@radix-ui/react-dialog";import{cn as i}from"./index32.js";import{contentWrapperStyles as s,closeButtonStyles as o,iconVariantColor as l,iconRootStyles as c,overlayBgStyles as r,overlayRootStyles as n,contentStyles as m,headerCenteredStyles as y,headerStyles as N,footerStyles as g,titleStyles as p,descriptionStyles as u}from"./index52.js";import{Icon as f}from"@adam-milo/icons";const v=d.Root,h=d.Trigger,C=d.Portal,D=d.Close,x=e(({className:t,"data-cy":e,"data-testid":s,...l},c)=>{const r=e||"dialog-close-button",n=s||"dialog-close-button";/* @__PURE__ */
2
+ return a(d.Close,{ref:c,className:i(o,t),"data-cy":r,"data-testid":n,"aria-label":"Close dialog",...l,children:/* @__PURE__ */a(f,{name:"Cross2Icon",size:"sm",decorative:!0})})});x.displayName="DialogCloseButton";const b=({children:t,variant:e="default",className:d,"data-cy":s,"data-testid":o,...r})=>{const n=s||"dialog-icon",m=o||"dialog-icon";/* @__PURE__ */
3
+ return a("div",{className:i(c,l[e],d),"data-cy":n,"data-testid":m,"aria-hidden":"true",...r,children:t})};b.displayName="DialogIcon";const j=e(({className:t,variant:e="default","data-cy":s,"data-testid":o,...l},c)=>{const m=s||"dialog-overlay",y=o||"dialog-overlay";/* @__PURE__ */
4
+ return a(d.Overlay,{ref:c,className:i(n,r[e],t),"data-cy":m,"data-testid":y,...l})});j.displayName=d.Overlay.displayName;const T=e(({className:e,children:o,overlayVariant:l="default","data-cy":c,"data-testid":r,...n},y)=>{const N=c||"dialog-content",g=r||"dialog-content";/* @__PURE__ */
5
+ return t(C,{children:[
6
+ /* @__PURE__ */a(j,{variant:l}),
7
+ /* @__PURE__ */a("div",{className:s,children:/* @__PURE__ */a(d.Content,{ref:y,className:i(m,e),"data-cy":N,"data-testid":g,...n,children:o})})]})});T.displayName=d.Content.displayName;const I=({centered:t=!1,className:e,"data-cy":d,"data-testid":s,...o})=>{const l=d||"dialog-header",c=s||"dialog-header";/* @__PURE__ */
8
+ return a("div",{className:i(N,t&&y,e),"data-cy":l,"data-testid":c,...o})};I.displayName="DialogHeader";const O=({className:t,"data-cy":e,"data-testid":d,...s})=>{const o=e||"dialog-footer",l=d||"dialog-footer";/* @__PURE__ */
9
+ return a("div",{className:i(g,t),"data-cy":o,"data-testid":l,...s})};O.displayName="DialogFooter";const z=e(({className:t,"data-cy":e,"data-testid":s,...o},l)=>{const c=e||"dialog-title",r=s||"dialog-title";/* @__PURE__ */
10
+ return a(d.Title,{ref:l,className:i(p,t),"data-cy":c,"data-testid":r,...o})});z.displayName=d.Title.displayName;const B=e(({className:t,"data-cy":e,"data-testid":s,...o},l)=>{const c=e||"dialog-description",r=s||"dialog-description";/* @__PURE__ */
11
+ return a(d.Description,{ref:l,className:i(u,t),"data-cy":c,"data-testid":r,...o})});B.displayName=d.Description.displayName;export{v as Dialog,D as DialogClose,x as DialogCloseButton,T as DialogContent,B as DialogDescription,O as DialogFooter,I as DialogHeader,b as DialogIcon,j as DialogOverlay,C as DialogPortal,z as DialogTitle,h as DialogTrigger};
package/dist/index23.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),r=require("./index31.cjs");;/* empty css */const a=t.forwardRef(({className:t,maxWidth:a="lg",padding:n="md","data-cy":i,"data-testid":d,children:c,...s},o)=>{const l=i||"container",u=d||"container";return e.jsx("div",{ref:o,className:r.cn("container",`container--max-width-${a}`,`container--padding-${n}`,t),"data-cy":l,"data-testid":u,...s,children:c})});a.displayName="Container",exports.Container=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),a=require("./index32.cjs"),r=require("./index53.cjs"),s=t.forwardRef(({direction:t="vertical",spacing:s="4",align:i="stretch",justify:c="start",wrap:l=!1,className:n,children:d,"data-cy":u,"data-testid":o,...y},f)=>{const p=u||`stack-${t}`,x=o||`stack-${t}`;return e.jsx("div",{ref:f,className:a.cn("flex w-full min-w-0",r.directionStyles[t],r.spacingStyles[s],r.alignStyles[i],r.justifyStyles[c],l&&"flex-wrap",n),"data-cy":p,"data-testid":x,...y,children:d})});s.displayName="Stack",exports.Stack=s;
package/dist/index23.js CHANGED
@@ -1,38 +1,2 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import { forwardRef } from "react";
3
- import { cn } from "./index31.js";
4
- /* empty css */
5
- const Container = forwardRef(
6
- ({
7
- className,
8
- maxWidth = "lg",
9
- padding = "md",
10
- "data-cy": dataCy,
11
- "data-testid": dataTestId,
12
- children,
13
- ...props
14
- }, ref) => {
15
- const finalDataCy = dataCy || "container";
16
- const finalTestId = dataTestId || "container";
17
- return /* @__PURE__ */ jsx(
18
- "div",
19
- {
20
- ref,
21
- className: cn(
22
- "container",
23
- `container--max-width-${maxWidth}`,
24
- `container--padding-${padding}`,
25
- className
26
- ),
27
- "data-cy": finalDataCy,
28
- "data-testid": finalTestId,
29
- ...props,
30
- children
31
- }
32
- );
33
- }
34
- );
35
- Container.displayName = "Container";
36
- export {
37
- Container
38
- };
1
+ import{jsx as t}from"react/jsx-runtime";import{forwardRef as a}from"react";import{cn as r}from"./index32.js";import{justifyStyles as e,alignStyles as i,spacingStyles as s,directionStyles as c}from"./index53.js";const d=a(({direction:a="vertical",spacing:d="4",align:m="stretch",justify:n="start",wrap:o=!1,className:l,children:f,"data-cy":p,"data-testid":x,...j},u)=>{const w=p||`stack-${a}`,y=x||`stack-${a}`;/* @__PURE__ */
2
+ return t("div",{ref:u,className:r("flex w-full min-w-0",c[a],s[d],i[m],e[n],o&&"flex-wrap",l),"data-cy":w,"data-testid":y,...j,children:f})});d.displayName="Stack";export{d as Stack};
package/dist/index24.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("react"),t=require("@radix-ui/react-separator"),i=require("./index31.cjs");function a(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const t in e)if("default"!==t){const i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,i.get?i:{enumerable:!0,get:()=>e[t]})}return r.default=e,Object.freeze(r)};/* empty css */const o=a(t),d=r.forwardRef(({orientation:r="horizontal",decorative:t=!0,spacing:a="0",color:d,className:c,style:n,"data-cy":s,"data-testid":u,...l},f)=>{const v=s||`divider-${r}`,g=u||`divider-${r}`;return e.jsx(o.Root,{ref:f,decorative:t,orientation:r,className:i.cn("divider",`divider--${r}`,`divider--spacing-${a}`,c),style:{...d&&{backgroundColor:d},...n},"data-cy":v,"data-testid":g,...l})});d.displayName="Divider",exports.Divider=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("react"),r=require("./index32.cjs"),t=require("./index54.cjs"),i=a.forwardRef(({className:a,maxWidth:i="lg",padding:d="md","data-cy":n,"data-testid":c,children:s,...o},l)=>{const u=n||"container",x=c||"container";return e.jsx("div",{ref:l,className:r.cn("w-full mx-auto box-border",t.maxWidthMap[i],t.paddingMap[d],a),"data-cy":u,"data-testid":x,...o,children:s})});i.displayName="Container",exports.Container=i;
package/dist/index24.js CHANGED
@@ -1,46 +1,2 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import { forwardRef } from "react";
3
- import * as SeparatorPrimitive from "@radix-ui/react-separator";
4
- import { cn } from "./index31.js";
5
- /* empty css */
6
- const Divider = forwardRef(
7
- ({
8
- orientation = "horizontal",
9
- decorative = true,
10
- spacing = "0",
11
- color,
12
- className,
13
- style,
14
- "data-cy": dataCy,
15
- "data-testid": dataTestId,
16
- ...props
17
- }, ref) => {
18
- const finalDataCy = dataCy || `divider-${orientation}`;
19
- const finalTestId = dataTestId || `divider-${orientation}`;
20
- return /* @__PURE__ */ jsx(
21
- SeparatorPrimitive.Root,
22
- {
23
- ref,
24
- decorative,
25
- orientation,
26
- className: cn(
27
- "divider",
28
- `divider--${orientation}`,
29
- `divider--spacing-${spacing}`,
30
- className
31
- ),
32
- style: {
33
- ...color && { backgroundColor: color },
34
- ...style
35
- },
36
- "data-cy": finalDataCy,
37
- "data-testid": finalTestId,
38
- ...props
39
- }
40
- );
41
- }
42
- );
43
- Divider.displayName = "Divider";
44
- export {
45
- Divider
46
- };
1
+ import{jsx as t}from"react/jsx-runtime";import{forwardRef as a}from"react";import{cn as r}from"./index32.js";import{paddingMap as e,maxWidthMap as i}from"./index54.js";const d=a(({className:a,maxWidth:d="lg",padding:o="md","data-cy":m,"data-testid":n,children:c,...s},l)=>{const p=m||"container",x=n||"container";/* @__PURE__ */
2
+ return t("div",{ref:l,className:r("w-full mx-auto box-border",i[d],e[o],a),"data-cy":p,"data-testid":x,...s,children:c})});d.displayName="Container";export{d as Container};
package/dist/index25.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),t=require("react"),e=require("./index31.cjs"),s=require("./index4.cjs");;/* empty css */const d=t.forwardRef(({children:t,cardSize:d="lg",logo:i,showSettings:n=!0,showUserMenu:r=!0,userInitials:u,onSettingsClick:c,onUserMenuClick:l,activeMenu:o=null,"data-testid":h,"data-cy":y,...m},$)=>{const g=y||"auth-layout",x=h||"auth-layout";return a.jsxs("div",{ref:$,className:"auth-layout","data-testid":x,"data-cy":g,...m,children:[a.jsx("div",{className:"auth-layout__background","data-testid":`${x}-background`,"data-cy":`${g}-background`,"aria-hidden":"true"}),a.jsxs("header",{className:"auth-layout__header","data-testid":`${x}-header`,"data-cy":`${g}-header`,children:[a.jsx("div",{className:"auth-layout__logo","data-testid":`${x}-logo`,"data-cy":`${g}-logo`,children:i}),a.jsxs("div",{className:"auth-layout__menu","data-testid":`${x}-menu`,"data-cy":`${g}-menu`,children:[n&&a.jsx(s.MenuIconButton,{variant:"settings",selected:"settings"===o,onClick:c,"aria-label":"Settings","data-testid":`${x}-settings-btn`,"data-cy":`${g}-settings-btn`}),r&&a.jsx(s.MenuIconButton,{variant:"user",initials:u,selected:"user"===o,onClick:l,"aria-label":u?`User menu - ${u}`:"User menu","data-testid":`${x}-user-btn`,"data-cy":`${g}-user-btn`})]})]}),a.jsx("main",{className:"auth-layout__main","data-testid":`${x}-main`,"data-cy":`${g}-main`,children:a.jsx("div",{className:e.cn("auth-layout__card",`auth-layout__card--${d}`),"data-testid":`${x}-card`,"data-cy":`${g}-card`,children:t})})]})});d.displayName="AuthLayout",exports.AuthLayout=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),r=require("@radix-ui/react-separator"),i=require("./index32.cjs"),a=require("./index55.cjs");function o(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const r in e)if("default"!==r){const i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:()=>e[r]})}return t.default=e,Object.freeze(t)}const n=o(r),c=t.forwardRef(({orientation:t="horizontal",decorative:r=!0,spacing:o="0",color:c,className:s,style:d,"data-cy":l,"data-testid":u,...y},f)=>{const b=l||`divider-${t}`,g=u||`divider-${t}`;return e.jsx(n.Root,{ref:f,decorative:r,orientation:t,className:i.cn(a.baseStyles,a.orientationStyles[t],a.spacingStyles[o][t],s),style:{...c&&{backgroundColor:c},...d},"data-cy":b,"data-testid":g,...y})});c.displayName="Divider",exports.Divider=c;
package/dist/index25.js CHANGED
@@ -1,118 +1,2 @@
1
- import { jsxs, jsx } from "react/jsx-runtime";
2
- import { forwardRef } from "react";
3
- import { cn } from "./index31.js";
4
- import { MenuIconButton } from "./index4.js";
5
- /* empty css */
6
- const AuthLayout = forwardRef(
7
- ({
8
- children,
9
- cardSize = "lg",
10
- logo,
11
- showSettings = true,
12
- showUserMenu = true,
13
- userInitials,
14
- onSettingsClick,
15
- onUserMenuClick,
16
- activeMenu = null,
17
- "data-testid": dataTestId,
18
- "data-cy": dataCy,
19
- ...props
20
- }, ref) => {
21
- const finalDataCy = dataCy || "auth-layout";
22
- const finalTestId = dataTestId || "auth-layout";
23
- return /* @__PURE__ */ jsxs(
24
- "div",
25
- {
26
- ref,
27
- className: "auth-layout",
28
- "data-testid": finalTestId,
29
- "data-cy": finalDataCy,
30
- ...props,
31
- children: [
32
- /* @__PURE__ */ jsx(
33
- "div",
34
- {
35
- className: "auth-layout__background",
36
- "data-testid": `${finalTestId}-background`,
37
- "data-cy": `${finalDataCy}-background`,
38
- "aria-hidden": "true"
39
- }
40
- ),
41
- /* @__PURE__ */ jsxs(
42
- "header",
43
- {
44
- className: "auth-layout__header",
45
- "data-testid": `${finalTestId}-header`,
46
- "data-cy": `${finalDataCy}-header`,
47
- children: [
48
- /* @__PURE__ */ jsx(
49
- "div",
50
- {
51
- className: "auth-layout__logo",
52
- "data-testid": `${finalTestId}-logo`,
53
- "data-cy": `${finalDataCy}-logo`,
54
- children: logo
55
- }
56
- ),
57
- /* @__PURE__ */ jsxs(
58
- "div",
59
- {
60
- className: "auth-layout__menu",
61
- "data-testid": `${finalTestId}-menu`,
62
- "data-cy": `${finalDataCy}-menu`,
63
- children: [
64
- showSettings && /* @__PURE__ */ jsx(
65
- MenuIconButton,
66
- {
67
- variant: "settings",
68
- selected: activeMenu === "settings",
69
- onClick: onSettingsClick,
70
- "aria-label": "Settings",
71
- "data-testid": `${finalTestId}-settings-btn`,
72
- "data-cy": `${finalDataCy}-settings-btn`
73
- }
74
- ),
75
- showUserMenu && /* @__PURE__ */ jsx(
76
- MenuIconButton,
77
- {
78
- variant: "user",
79
- initials: userInitials,
80
- selected: activeMenu === "user",
81
- onClick: onUserMenuClick,
82
- "aria-label": userInitials ? `User menu - ${userInitials}` : "User menu",
83
- "data-testid": `${finalTestId}-user-btn`,
84
- "data-cy": `${finalDataCy}-user-btn`
85
- }
86
- )
87
- ]
88
- }
89
- )
90
- ]
91
- }
92
- ),
93
- /* @__PURE__ */ jsx(
94
- "main",
95
- {
96
- className: "auth-layout__main",
97
- "data-testid": `${finalTestId}-main`,
98
- "data-cy": `${finalDataCy}-main`,
99
- children: /* @__PURE__ */ jsx(
100
- "div",
101
- {
102
- className: cn("auth-layout__card", `auth-layout__card--${cardSize}`),
103
- "data-testid": `${finalTestId}-card`,
104
- "data-cy": `${finalDataCy}-card`,
105
- children
106
- }
107
- )
108
- }
109
- )
110
- ]
111
- }
112
- );
113
- }
114
- );
115
- AuthLayout.displayName = "AuthLayout";
116
- export {
117
- AuthLayout
118
- };
1
+ import{jsx as r}from"react/jsx-runtime";import{forwardRef as t}from"react";import*as o from"@radix-ui/react-separator";import{cn as a}from"./index32.js";import{spacingStyles as i,orientationStyles as e,baseStyles as d}from"./index55.js";const s=t(({orientation:t="horizontal",decorative:s=!0,spacing:c="0",color:m,className:n,style:p,"data-cy":l,"data-testid":f,...v},x)=>{const y=l||`divider-${t}`,u=f||`divider-${t}`;/* @__PURE__ */
2
+ return r(o.Root,{ref:x,decorative:s,orientation:t,className:a(d,e[t],i[c][t],n),style:{...m&&{backgroundColor:m},...p},"data-cy":y,"data-testid":u,...v})});s.displayName="Divider";export{s as Divider};
package/dist/index26.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),i=require("react"),e=require("./index31.cjs");;/* empty css */const t=i.forwardRef(({columns:i=3,rows:t,gap:a="4",rowGap:d,columnGap:s,align:c="stretch",justify:o="stretch",autoFitMinWidth:n="15rem",className:g,children:l,style:u,"data-cy":m,"data-testid":p,...y},$)=>{const f=m||`grid-${i}col`,j=p||`grid-${i}col`,x={...u,..."auto"===i&&{"--grid-auto-fit-min":n}};return r.jsx("div",{ref:$,className:e.cn("grid",`grid--columns-${i}`,t&&`grid--rows-${t}`,`grid--gap-${a}`,d&&`grid--row-gap-${d}`,s&&`grid--column-gap-${s}`,`grid--align-${c}`,`grid--justify-${o}`,g),style:x,"data-cy":f,"data-testid":j,...y,children:l})});t.displayName="Grid",exports.Grid=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("react"),t=require("./index32.cjs"),s=require("./index5.cjs"),d=require("./index56.cjs"),r=a.forwardRef(({children:a,cardSize:r="lg",logo:i,showSettings:n=!0,showUserMenu:c=!0,userInitials:l,onSettingsClick:u,onUserMenuClick:o,activeMenu:y=null,"data-testid":m,"data-cy":h,...g},x)=>{const $=h||"auth-layout",j=m||"auth-layout";return e.jsxs("div",{ref:x,className:t.cn(d.rootStyles),"data-testid":j,"data-cy":$,...g,children:[e.jsx("div",{className:t.cn(d.backgroundStyles),"data-testid":`${j}-background`,"data-cy":`${$}-background`,"aria-hidden":"true"}),e.jsxs("header",{className:t.cn(d.headerStyles),"data-testid":`${j}-header`,"data-cy":`${$}-header`,children:[e.jsx("div",{className:t.cn(d.logoWrapperStyles),"data-testid":`${j}-logo`,"data-cy":`${$}-logo`,children:i}),e.jsxs("div",{className:t.cn(d.menuWrapperStyles),"data-testid":`${j}-menu`,"data-cy":`${$}-menu`,children:[n&&e.jsx(s.MenuIconButton,{variant:"settings",selected:"settings"===y,onClick:u,"aria-label":"Settings","data-testid":`${j}-settings-btn`,"data-cy":`${$}-settings-btn`}),c&&e.jsx(s.MenuIconButton,{variant:"user",initials:l,selected:"user"===y,onClick:o,"aria-label":l?`User menu - ${l}`:"User menu","data-testid":`${j}-user-btn`,"data-cy":`${$}-user-btn`})]})]}),e.jsx("main",{className:t.cn(d.mainStyles),"data-testid":`${j}-main`,"data-cy":`${$}-main`,children:e.jsx("div",{className:t.cn(d.cardWrapperStyles,d.cardSizeClasses[r],"max-md:max-w-full"),"data-testid":`${j}-card`,"data-cy":`${$}-card`,"data-card-size":r,children:a})})]})});r.displayName="AuthLayout",exports.AuthLayout=r;
package/dist/index26.js CHANGED
@@ -1,55 +1,7 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import { forwardRef } from "react";
3
- import { cn } from "./index31.js";
4
- /* empty css */
5
- const Grid = forwardRef(
6
- ({
7
- columns = 3,
8
- rows,
9
- gap = "4",
10
- rowGap,
11
- columnGap,
12
- align = "stretch",
13
- justify = "stretch",
14
- autoFitMinWidth = "15rem",
15
- className,
16
- children,
17
- style,
18
- "data-cy": dataCy,
19
- "data-testid": dataTestId,
20
- ...props
21
- }, ref) => {
22
- const finalDataCy = dataCy || `grid-${columns}col`;
23
- const finalTestId = dataTestId || `grid-${columns}col`;
24
- const customStyle = {
25
- ...style,
26
- ...columns === "auto" && { "--grid-auto-fit-min": autoFitMinWidth }
27
- };
28
- return /* @__PURE__ */ jsx(
29
- "div",
30
- {
31
- ref,
32
- className: cn(
33
- "grid",
34
- `grid--columns-${columns}`,
35
- rows && `grid--rows-${rows}`,
36
- `grid--gap-${gap}`,
37
- rowGap && `grid--row-gap-${rowGap}`,
38
- columnGap && `grid--column-gap-${columnGap}`,
39
- `grid--align-${align}`,
40
- `grid--justify-${justify}`,
41
- className
42
- ),
43
- style: customStyle,
44
- "data-cy": finalDataCy,
45
- "data-testid": finalTestId,
46
- ...props,
47
- children
48
- }
49
- );
50
- }
51
- );
52
- Grid.displayName = "Grid";
53
- export {
54
- Grid
55
- };
1
+ import{jsxs as a,jsx as t}from"react/jsx-runtime";import{forwardRef as e}from"react";import{cn as d}from"./index32.js";import{MenuIconButton as i}from"./index5.js";import{backgroundStyles as s,logoWrapperStyles as r,menuWrapperStyles as n,headerStyles as c,cardSizeClasses as l,cardWrapperStyles as o,mainStyles as m,rootStyles as u}from"./index56.js";const $=e(({children:e,cardSize:$="lg",logo:h,showSettings:y=!0,showUserMenu:g=!0,userInitials:b,onSettingsClick:v,onUserMenuClick:N,activeMenu:f=null,"data-testid":p,"data-cy":x,...k},j)=>{const C=x||"auth-layout",S=p||"auth-layout";/* @__PURE__ */
2
+ return a("div",{ref:j,className:d(u),"data-testid":S,"data-cy":C,...k,children:[
3
+ /* @__PURE__ */t("div",{className:d(s),"data-testid":`${S}-background`,"data-cy":`${C}-background`,"aria-hidden":"true"}),
4
+ /* @__PURE__ */a("header",{className:d(c),"data-testid":`${S}-header`,"data-cy":`${C}-header`,children:[
5
+ /* @__PURE__ */t("div",{className:d(r),"data-testid":`${S}-logo`,"data-cy":`${C}-logo`,children:h}),
6
+ /* @__PURE__ */a("div",{className:d(n),"data-testid":`${S}-menu`,"data-cy":`${C}-menu`,children:[y&&/* @__PURE__ */t(i,{variant:"settings",selected:"settings"===f,onClick:v,"aria-label":"Settings","data-testid":`${S}-settings-btn`,"data-cy":`${C}-settings-btn`}),g&&/* @__PURE__ */t(i,{variant:"user",initials:b,selected:"user"===f,onClick:N,"aria-label":b?`User menu - ${b}`:"User menu","data-testid":`${S}-user-btn`,"data-cy":`${C}-user-btn`})]})]}),
7
+ /* @__PURE__ */t("main",{className:d(m),"data-testid":`${S}-main`,"data-cy":`${C}-main`,children:/* @__PURE__ */t("div",{className:d(o,l[$],"max-md:max-w-full"),"data-testid":`${S}-card`,"data-cy":`${C}-card`,"data-card-size":$,children:e})})]})});$.displayName="AuthLayout";export{$ as AuthLayout};
package/dist/index27.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),e=require("react");;/* empty css */const r=e.forwardRef(({size:e="md",weight:r="regular",as:a="p",color:i="text",align:s="start",truncate:c=!1,className:o="","data-cy":n,"data-testid":x,children:l,...d},u)=>{const $=n||`text-${e}-${r}`,g=x||`text-${e}-${r}`,m=["text",`text--size-${e}`,`text--weight-${r}`,`text--color-${i}`,`text--align-${s}`,c&&"text--truncate",o].filter(Boolean).join(" ");return t.jsx(a,{ref:u,className:m,"data-cy":$,"data-testid":g,...d,children:l})});r.displayName="Text",exports.Text=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),r=require("react"),e=require("./index32.cjs"),t=require("./index57.cjs"),i=r.forwardRef(({columns:r=3,rows:i,gap:s="4",rowGap:o,columnGap:p,align:c="stretch",justify:d="stretch",autoFitMinWidth:n="15rem",className:l,children:u,style:m,"data-cy":M,"data-testid":g,...G},y)=>{const $=M||`grid-${r}col`,f=g||`grid-${r}col`,j=o&&p?`${t.columnGapMap[p]} ${t.rowGapMap[o]}`:o?`${t.columnGapMap[s]} ${t.rowGapMap[o]}`:p?`${t.columnGapMap[p]} ${t.rowGapMap[s]}`:t.gapMap[s],w={...m,..."auto"===r&&{"--grid-auto-fit-min":n}};return a.jsx("div",{ref:y,className:e.cn("grid",t.gridColumnsMap[r],i&&t.gridRowsMap[i],j,t.alignMap[c],t.justifyMap[d],l),style:w,"data-cy":$,"data-testid":f,...G,children:u})});i.displayName="Grid",exports.Grid=i;
package/dist/index27.js CHANGED
@@ -1,45 +1,2 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import { forwardRef } from "react";
3
- /* empty css */
4
- const Text = forwardRef(
5
- ({
6
- size = "md",
7
- weight = "regular",
8
- as: Component = "p",
9
- color = "text",
10
- align = "start",
11
- truncate = false,
12
- className = "",
13
- "data-cy": dataCy,
14
- "data-testid": dataTestId,
15
- children,
16
- ...props
17
- }, ref) => {
18
- const finalDataCy = dataCy || `text-${size}-${weight}`;
19
- const finalDataTestId = dataTestId || `text-${size}-${weight}`;
20
- const classes = [
21
- "text",
22
- `text--size-${size}`,
23
- `text--weight-${weight}`,
24
- `text--color-${color}`,
25
- `text--align-${align}`,
26
- truncate && "text--truncate",
27
- className
28
- ].filter(Boolean).join(" ");
29
- return /* @__PURE__ */ jsx(
30
- Component,
31
- {
32
- ref,
33
- className: classes,
34
- "data-cy": finalDataCy,
35
- "data-testid": finalDataTestId,
36
- ...props,
37
- children
38
- }
39
- );
40
- }
41
- );
42
- Text.displayName = "Text";
43
- export {
44
- Text
45
- };
1
+ import{jsx as t}from"react/jsx-runtime";import{forwardRef as r}from"react";import{cn as i}from"./index32.js";import{justifyMap as a,alignMap as e,columnGapMap as o,rowGapMap as s,gapMap as d,gridRowsMap as c,gridColumnsMap as m}from"./index57.js";const n=r(({columns:r=3,rows:n,gap:l="4",rowGap:p,columnGap:u,align:$="stretch",justify:f="stretch",autoFitMinWidth:g="15rem",className:y,children:h,style:j,"data-cy":x,"data-testid":G,...N},w)=>{const v=x||`grid-${r}col`,F=G||`grid-${r}col`,M=p&&u?`${o[u]} ${s[p]}`:p?`${o[l]} ${s[p]}`:u?`${o[u]} ${s[l]}`:d[l],W={...j,..."auto"===r&&{"--grid-auto-fit-min":g}};/* @__PURE__ */
2
+ return t("div",{ref:w,className:i("grid",m[r],n&&c[n],M,e[$],a[f],y),style:W,"data-cy":v,"data-testid":F,...N,children:h})});n.displayName="Grid";export{n as Grid};