@wonderflow/react-components 9.5.0 → 10.0.0-next.2

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 (319) hide show
  1. package/core/basic.css +1 -1
  2. package/core/typography.css +1 -1
  3. package/core.css +1 -1
  4. package/dist/components/aspect-ratio/aspect-ratio.d.ts +2 -3
  5. package/dist/components/aspect-ratio/aspect-ratio.d.ts.map +1 -1
  6. package/dist/components/aspect-ratio/aspect-ratio.js +3 -5
  7. package/dist/components/autocomplete/autocomplete-option.d.ts +3 -16
  8. package/dist/components/autocomplete/autocomplete-option.d.ts.map +1 -1
  9. package/dist/components/autocomplete/autocomplete-option.js +2 -2
  10. package/dist/components/autocomplete/autocomplete.d.ts +5 -5
  11. package/dist/components/autocomplete/autocomplete.d.ts.map +1 -1
  12. package/dist/components/autocomplete/autocomplete.js +28 -26
  13. package/dist/components/autocomplete/index.d.ts +1 -1
  14. package/dist/components/autocomplete/index.d.ts.map +1 -1
  15. package/dist/components/avatar/avatar.d.ts.map +1 -1
  16. package/dist/components/avatar/avatar.js +2 -4
  17. package/dist/components/avatar/avatar.module.css +1 -1
  18. package/dist/components/avatar/index.d.ts +1 -1
  19. package/dist/components/avatar/index.d.ts.map +1 -1
  20. package/dist/components/button/button.d.ts +5 -5
  21. package/dist/components/button/button.d.ts.map +1 -1
  22. package/dist/components/button/button.js +6 -6
  23. package/dist/components/button/button.module.css +1 -1
  24. package/dist/components/button/index.d.ts +1 -1
  25. package/dist/components/button/index.d.ts.map +1 -1
  26. package/dist/components/card/card.d.ts +2 -2
  27. package/dist/components/card/card.d.ts.map +1 -1
  28. package/dist/components/card/card.js +3 -3
  29. package/dist/components/card/card.module.css +1 -1
  30. package/dist/components/card/index.d.ts +1 -1
  31. package/dist/components/card/index.d.ts.map +1 -1
  32. package/dist/components/chip/chip.d.ts +4 -24
  33. package/dist/components/chip/chip.d.ts.map +1 -1
  34. package/dist/components/chip/chip.js +6 -6
  35. package/dist/components/chip/chip.module.css +1 -1
  36. package/dist/components/chip/index.d.ts +1 -1
  37. package/dist/components/chip/index.d.ts.map +1 -1
  38. package/dist/components/circular-progress/circular-progress.d.ts +5 -22
  39. package/dist/components/circular-progress/circular-progress.d.ts.map +1 -1
  40. package/dist/components/circular-progress/circular-progress.js +3 -3
  41. package/dist/components/circular-progress/circular-progress.module.css +1 -1
  42. package/dist/components/circular-progress/index.d.ts +1 -1
  43. package/dist/components/circular-progress/index.d.ts.map +1 -1
  44. package/dist/components/clamp-text/clamp-text.d.ts.map +1 -1
  45. package/dist/components/clamp-text/clamp-text.js +2 -2
  46. package/dist/components/clamp-text/index.d.ts +1 -1
  47. package/dist/components/clamp-text/index.d.ts.map +1 -1
  48. package/dist/components/container/container.d.ts.map +1 -1
  49. package/dist/components/container/container.js +2 -4
  50. package/dist/components/container/container.module.css +1 -1
  51. package/dist/components/container/index.d.ts +1 -1
  52. package/dist/components/container/index.d.ts.map +1 -1
  53. package/dist/components/datetime/datetime.d.ts.map +1 -1
  54. package/dist/components/datetime/datetime.js +1 -1
  55. package/dist/components/datetime/index.d.ts +1 -1
  56. package/dist/components/datetime/index.d.ts.map +1 -1
  57. package/dist/components/disclosure/disclosure.d.ts.map +1 -1
  58. package/dist/components/disclosure/disclosure.js +11 -10
  59. package/dist/components/disclosure/disclosure.module.css +1 -1
  60. package/dist/components/disclosure/index.d.ts +1 -1
  61. package/dist/components/disclosure/index.d.ts.map +1 -1
  62. package/dist/components/drawer/drawer.d.ts +3 -45
  63. package/dist/components/drawer/drawer.d.ts.map +1 -1
  64. package/dist/components/drawer/drawer.js +12 -12
  65. package/dist/components/drawer/drawer.module.css +1 -1
  66. package/dist/components/drawer/index.d.ts +1 -1
  67. package/dist/components/drawer/index.d.ts.map +1 -1
  68. package/dist/components/elevator/elevator.d.ts +2 -2
  69. package/dist/components/elevator/elevator.d.ts.map +1 -1
  70. package/dist/components/elevator/elevator.js +6 -8
  71. package/dist/components/elevator/index.d.ts +1 -1
  72. package/dist/components/elevator/index.d.ts.map +1 -1
  73. package/dist/components/grid/grid.d.ts +2 -2
  74. package/dist/components/grid/grid.d.ts.map +1 -1
  75. package/dist/components/grid/grid.js +4 -4
  76. package/dist/components/grid/grid.module.css +1 -1
  77. package/dist/components/grid/index.d.ts +1 -1
  78. package/dist/components/grid/index.d.ts.map +1 -1
  79. package/dist/components/grid/item/grid-item.d.ts +7 -4
  80. package/dist/components/grid/item/grid-item.d.ts.map +1 -1
  81. package/dist/components/grid/item/grid-item.js +3 -3
  82. package/dist/components/icon-button/icon-button.d.ts.map +1 -1
  83. package/dist/components/icon-button/icon-button.js +2 -2
  84. package/dist/components/icon-button/icon-button.module.css +1 -1
  85. package/dist/components/icon-button/index.d.ts +1 -1
  86. package/dist/components/icon-button/index.d.ts.map +1 -1
  87. package/dist/components/index.d.ts +3 -4
  88. package/dist/components/index.d.ts.map +1 -1
  89. package/dist/components/index.js +3 -4
  90. package/dist/components/info-state/index.d.ts +1 -1
  91. package/dist/components/info-state/index.d.ts.map +1 -1
  92. package/dist/components/info-state/info-state.d.ts +8 -36
  93. package/dist/components/info-state/info-state.d.ts.map +1 -1
  94. package/dist/components/info-state/info-state.js +5 -5
  95. package/dist/components/info-state/info-state.module.css +1 -1
  96. package/dist/components/input-group/index.d.ts +1 -1
  97. package/dist/components/input-group/index.d.ts.map +1 -1
  98. package/dist/components/input-group/input-group.d.ts +5 -23
  99. package/dist/components/input-group/input-group.d.ts.map +1 -1
  100. package/dist/components/input-group/input-group.js +8 -8
  101. package/dist/components/linear-progress/index.d.ts +1 -1
  102. package/dist/components/linear-progress/index.d.ts.map +1 -1
  103. package/dist/components/linear-progress/linear-progress.d.ts.map +1 -1
  104. package/dist/components/linear-progress/linear-progress.js +4 -4
  105. package/dist/components/linear-progress/linear-progress.module.css +1 -1
  106. package/dist/components/list/index.d.ts +1 -1
  107. package/dist/components/list/index.d.ts.map +1 -1
  108. package/dist/components/list/list-item.d.ts +4 -16
  109. package/dist/components/list/list-item.d.ts.map +1 -1
  110. package/dist/components/list/list-item.js +10 -10
  111. package/dist/components/list/list.d.ts.map +1 -1
  112. package/dist/components/list/list.js +4 -4
  113. package/dist/components/list/list.module.css +1 -1
  114. package/dist/components/masonry/index.d.ts +1 -1
  115. package/dist/components/masonry/index.d.ts.map +1 -1
  116. package/dist/components/masonry/masonry.d.ts +10 -11
  117. package/dist/components/masonry/masonry.d.ts.map +1 -1
  118. package/dist/components/masonry/masonry.js +7 -7
  119. package/dist/components/menu/index.d.ts +3 -3
  120. package/dist/components/menu/index.d.ts.map +1 -1
  121. package/dist/components/menu/menu-item/menu-item-checkbox.d.ts.map +1 -1
  122. package/dist/components/menu/menu-item/menu-item.d.ts +3 -3
  123. package/dist/components/menu/menu-item/menu-item.d.ts.map +1 -1
  124. package/dist/components/menu/menu-item/menu-item.js +5 -5
  125. package/dist/components/menu/menu-item/menu-item.module.css +1 -1
  126. package/dist/components/menu/menu-separator/menu-separator.d.ts.map +1 -1
  127. package/dist/components/menu/menu-separator/menu-separator.js +1 -1
  128. package/dist/components/menu/menu.d.ts +3 -3
  129. package/dist/components/menu/menu.d.ts.map +1 -1
  130. package/dist/components/menu/menu.js +6 -6
  131. package/dist/components/menu/menu.module.css +1 -1
  132. package/dist/components/modal/content/modal-content.d.ts +6 -16
  133. package/dist/components/modal/content/modal-content.d.ts.map +1 -1
  134. package/dist/components/modal/content/modal-content.js +1 -1
  135. package/dist/components/modal/content/modal-content.module.css +1 -1
  136. package/dist/components/modal/index.d.ts +1 -1
  137. package/dist/components/modal/index.d.ts.map +1 -1
  138. package/dist/components/modal/modal.d.ts +2 -2
  139. package/dist/components/modal/modal.d.ts.map +1 -1
  140. package/dist/components/modal/modal.js +11 -11
  141. package/dist/components/modal/modal.module.css +1 -1
  142. package/dist/components/overlay-container/index.d.ts +2 -2
  143. package/dist/components/overlay-container/index.d.ts.map +1 -1
  144. package/dist/components/overlay-container/index.js +1 -1
  145. package/dist/components/overlay-container/overlay-container.d.ts +2 -2
  146. package/dist/components/overlay-container/overlay-container.d.ts.map +1 -1
  147. package/dist/components/overlay-container/overlay-container.js +3 -3
  148. package/dist/components/overlay-container/overlay-context.d.ts +2 -2
  149. package/dist/components/overlay-container/overlay-context.d.ts.map +1 -1
  150. package/dist/components/overlay-container/overlay-context.js +4 -3
  151. package/dist/components/pagination/index.d.ts +1 -1
  152. package/dist/components/pagination/index.d.ts.map +1 -1
  153. package/dist/components/pagination/pagination.d.ts +1 -1
  154. package/dist/components/pagination/pagination.d.ts.map +1 -1
  155. package/dist/components/pagination/pagination.js +5 -4
  156. package/dist/components/pagination/pagination.module.css +1 -1
  157. package/dist/components/popover/index.d.ts +1 -1
  158. package/dist/components/popover/index.d.ts.map +1 -1
  159. package/dist/components/popover/popover.d.ts +6 -48
  160. package/dist/components/popover/popover.d.ts.map +1 -1
  161. package/dist/components/popover/popover.js +32 -29
  162. package/dist/components/prose/index.d.ts +1 -1
  163. package/dist/components/prose/index.d.ts.map +1 -1
  164. package/dist/components/prose/prose.d.ts +2 -2
  165. package/dist/components/prose/prose.d.ts.map +1 -1
  166. package/dist/components/prose/prose.js +2 -4
  167. package/dist/components/select/index.d.ts +1 -1
  168. package/dist/components/select/index.d.ts.map +1 -1
  169. package/dist/components/select/select.d.ts +6 -6
  170. package/dist/components/select/select.d.ts.map +1 -1
  171. package/dist/components/select/select.js +5 -5
  172. package/dist/components/select/select.module.css +1 -1
  173. package/dist/components/selection-controls/checkbox.d.ts +2 -2
  174. package/dist/components/selection-controls/checkbox.d.ts.map +1 -1
  175. package/dist/components/selection-controls/checkbox.js +2 -2
  176. package/dist/components/selection-controls/index.d.ts +3 -3
  177. package/dist/components/selection-controls/index.d.ts.map +1 -1
  178. package/dist/components/selection-controls/radio.d.ts +2 -2
  179. package/dist/components/selection-controls/radio.d.ts.map +1 -1
  180. package/dist/components/selection-controls/radio.js +2 -4
  181. package/dist/components/selection-controls/selection-controls.module.css +1 -1
  182. package/dist/components/selection-controls/toggle.d.ts +2 -2
  183. package/dist/components/selection-controls/toggle.d.ts.map +1 -1
  184. package/dist/components/selection-controls/toggle.js +1 -3
  185. package/dist/components/separator/index.d.ts +1 -1
  186. package/dist/components/separator/index.d.ts.map +1 -1
  187. package/dist/components/separator/separator.d.ts.map +1 -1
  188. package/dist/components/separator/separator.js +2 -4
  189. package/dist/components/skeleton/index.d.ts +1 -1
  190. package/dist/components/skeleton/index.d.ts.map +1 -1
  191. package/dist/components/skeleton/skeleton.d.ts +2 -3
  192. package/dist/components/skeleton/skeleton.d.ts.map +1 -1
  193. package/dist/components/skeleton/skeleton.js +4 -6
  194. package/dist/components/skeleton/skeleton.module.css +1 -1
  195. package/dist/components/slider/index.d.ts +1 -1
  196. package/dist/components/slider/index.d.ts.map +1 -1
  197. package/dist/components/slider/slider.d.ts +7 -7
  198. package/dist/components/slider/slider.d.ts.map +1 -1
  199. package/dist/components/slider/slider.js +5 -5
  200. package/dist/components/snackbar/index.d.ts +1 -1
  201. package/dist/components/snackbar/index.d.ts.map +1 -1
  202. package/dist/components/snackbar/snackbar.d.ts +3 -3
  203. package/dist/components/snackbar/snackbar.d.ts.map +1 -1
  204. package/dist/components/snackbar/snackbar.js +4 -4
  205. package/dist/components/snackbar/snackbar.module.css +1 -1
  206. package/dist/components/spinner/index.d.ts +1 -1
  207. package/dist/components/spinner/index.d.ts.map +1 -1
  208. package/dist/components/spinner/spinner.d.ts.map +1 -1
  209. package/dist/components/spinner/spinner.js +8 -8
  210. package/dist/components/split-button/index.d.ts +1 -1
  211. package/dist/components/split-button/index.d.ts.map +1 -1
  212. package/dist/components/split-button/split-button.d.ts +1 -1
  213. package/dist/components/split-button/split-button.d.ts.map +1 -1
  214. package/dist/components/split-button/split-button.js +2 -2
  215. package/dist/components/split-button/split-button.module.css +1 -1
  216. package/dist/components/stack/index.d.ts +1 -1
  217. package/dist/components/stack/index.d.ts.map +1 -1
  218. package/dist/components/stack/stack.d.ts.map +1 -1
  219. package/dist/components/stack/stack.js +4 -4
  220. package/dist/components/star-meter/index.d.ts +1 -1
  221. package/dist/components/star-meter/index.d.ts.map +1 -1
  222. package/dist/components/star-meter/star-meter.d.ts +1 -1
  223. package/dist/components/star-meter/star-meter.d.ts.map +1 -1
  224. package/dist/components/star-meter/star-meter.js +8 -8
  225. package/dist/components/star-meter/star-meter.module.css +1 -1
  226. package/dist/components/symbol/index.d.ts +3 -0
  227. package/dist/components/symbol/index.d.ts.map +1 -0
  228. package/dist/components/symbol/index.js +1 -0
  229. package/dist/components/{icon/icon.d.ts → symbol/symbol.d.ts} +11 -11
  230. package/dist/components/symbol/symbol.d.ts.map +1 -0
  231. package/dist/components/{icon/icon.js → symbol/symbol.js} +8 -7
  232. package/dist/components/symbol/symbol.module.css +1 -0
  233. package/dist/components/tab/index.d.ts +1 -1
  234. package/dist/components/tab/index.d.ts.map +1 -1
  235. package/dist/components/tab/tab.d.ts +2 -2
  236. package/dist/components/tab/tab.d.ts.map +1 -1
  237. package/dist/components/tab/tab.js +5 -5
  238. package/dist/components/tab/tab.module.css +1 -1
  239. package/dist/components/tab/tabs-panel.d.ts +4 -5
  240. package/dist/components/tab/tabs-panel.d.ts.map +1 -1
  241. package/dist/components/tab/tabs-panel.js +1 -1
  242. package/dist/components/table/index.d.ts +1 -1
  243. package/dist/components/table/index.d.ts.map +1 -1
  244. package/dist/components/table/table-cell/index.d.ts.map +1 -1
  245. package/dist/components/table/table-cell/table-cell.d.ts +1 -1
  246. package/dist/components/table/table-cell/table-cell.d.ts.map +1 -1
  247. package/dist/components/table/table-cell/table-cell.js +4 -4
  248. package/dist/components/table/table-cell/table-cell.module.css +1 -1
  249. package/dist/components/table/table-checkbox/index.d.ts.map +1 -1
  250. package/dist/components/table/table-checkbox/table-checkbox.d.ts.map +1 -1
  251. package/dist/components/table/table-controls/index.d.ts.map +1 -1
  252. package/dist/components/table/table-controls/toggle-columns.d.ts +1 -1
  253. package/dist/components/table/table-controls/toggle-columns.d.ts.map +1 -1
  254. package/dist/components/table/table-controls/toggle-columns.js +1 -1
  255. package/dist/components/table/table-expand/index.d.ts +1 -1
  256. package/dist/components/table/table-expand/index.d.ts.map +1 -1
  257. package/dist/components/table/table-expand/table-expand.d.ts +1 -1
  258. package/dist/components/table/table-expand/table-expand.d.ts.map +1 -1
  259. package/dist/components/table/table-expand/table-expand.js +2 -1
  260. package/dist/components/table/table-header/table-header.d.ts +2 -2
  261. package/dist/components/table/table-header/table-header.d.ts.map +1 -1
  262. package/dist/components/table/table-header/table-header.module.css +1 -1
  263. package/dist/components/table/table-pagination/table-pagination.d.ts +1 -2
  264. package/dist/components/table/table-pagination/table-pagination.d.ts.map +1 -1
  265. package/dist/components/table/table-pagination/table-pagination.js +1 -1
  266. package/dist/components/table/table-row/index.d.ts.map +1 -1
  267. package/dist/components/table/table-row/table-row.d.ts +2 -2
  268. package/dist/components/table/table-row/table-row.d.ts.map +1 -1
  269. package/dist/components/table/table-row/table-row.module.css +1 -1
  270. package/dist/components/table/table.d.ts +18 -18
  271. package/dist/components/table/table.d.ts.map +1 -1
  272. package/dist/components/table/table.js +27 -31
  273. package/dist/components/table/table.module.css +1 -1
  274. package/dist/components/table/types.d.ts.map +1 -1
  275. package/dist/components/text/index.d.ts +1 -1
  276. package/dist/components/text/index.d.ts.map +1 -1
  277. package/dist/components/text/text.d.ts +1 -1
  278. package/dist/components/text/text.d.ts.map +1 -1
  279. package/dist/components/text/text.js +2 -2
  280. package/dist/components/text/text.module.css +1 -1
  281. package/dist/components/textfield/base-field/base-field.d.ts.map +1 -1
  282. package/dist/components/textfield/base-field/base-field.js +2 -4
  283. package/dist/components/textfield/base-field/base-field.module.css +1 -1
  284. package/dist/components/textfield/base-field/index.d.ts +1 -1
  285. package/dist/components/textfield/base-field/index.d.ts.map +1 -1
  286. package/dist/components/textfield/index.d.ts +1 -1
  287. package/dist/components/textfield/index.d.ts.map +1 -1
  288. package/dist/components/textfield/textfield.d.ts +4 -4
  289. package/dist/components/textfield/textfield.d.ts.map +1 -1
  290. package/dist/components/textfield/textfield.js +9 -9
  291. package/dist/components/textfield/textfield.module.css +1 -1
  292. package/dist/components/title/index.d.ts +1 -1
  293. package/dist/components/title/index.d.ts.map +1 -1
  294. package/dist/components/title/title.d.ts.map +1 -1
  295. package/dist/components/title/title.js +9 -6
  296. package/dist/components/title/title.module.css +1 -1
  297. package/dist/components/toggle-button/index.d.ts +1 -1
  298. package/dist/components/toggle-button/index.d.ts.map +1 -1
  299. package/dist/components/toggle-button/toggle-button.d.ts +1 -1
  300. package/dist/components/toggle-button/toggle-button.d.ts.map +1 -1
  301. package/dist/components/toggle-button/toggle-button.js +11 -11
  302. package/dist/components/tooltip/index.d.ts +1 -1
  303. package/dist/components/tooltip/index.d.ts.map +1 -1
  304. package/dist/components/tooltip/tooltip.d.ts +3 -3
  305. package/dist/components/tooltip/tooltip.d.ts.map +1 -1
  306. package/dist/components/tooltip/tooltip.js +14 -14
  307. package/dist/components/tooltip/tooltip.module.css +1 -1
  308. package/dist/index.d.ts +1 -1
  309. package/dist/index.d.ts.map +1 -1
  310. package/dist/index.js +1 -1
  311. package/dist/types/index.d.ts.map +1 -1
  312. package/dist/types/polymorphic/index.d.ts +4 -4
  313. package/dist/types/polymorphic/index.d.ts.map +1 -1
  314. package/package.json +25 -25
  315. package/dist/components/icon/icon.d.ts.map +0 -1
  316. package/dist/components/icon/icon.module.css +0 -1
  317. package/dist/components/icon/index.d.ts +0 -3
  318. package/dist/components/icon/index.d.ts.map +0 -1
  319. package/dist/components/icon/index.js +0 -1
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare type CircularProgressProps = PropsWithClass & {
2
+ export declare type CircularProgressProps = {
3
3
  /**
4
4
  * Set the current progress of the progress bar.
5
5
  * This value should be between 0 and 'max'. The percentage is
@@ -20,25 +20,8 @@ export declare type CircularProgressProps = PropsWithClass & {
20
20
  */
21
21
  showProgress?: boolean;
22
22
  };
23
- export declare const CircularProgress: import("react").ForwardRefExoticComponent<PropsWithClass & {
24
- /**
25
- * Set the current progress of the progress bar.
26
- * This value should be between 0 and 'max'. The percentage is
27
- * automatically computed.
28
- */
29
- value: number;
30
- /**
31
- * Set the max value of the progress bar. This determines the
32
- * computed percentage.
33
- */
34
- max?: number | undefined;
35
- /**
36
- * Set the dimension of the progress bar.
37
- */
38
- dimension?: "big" | "small" | "regular" | undefined;
39
- /**
40
- * Show or hide the progress value.
41
- */
42
- showProgress?: boolean | undefined;
43
- } & import("react").RefAttributes<HTMLDivElement>>;
23
+ export declare const CircularProgress: import("react").ForwardRefExoticComponent<{
24
+ style?: Record<string, any> | undefined;
25
+ className?: string | undefined;
26
+ } & CircularProgressProps & import("react").RefAttributes<HTMLDivElement>>;
44
27
  //# sourceMappingURL=circular-progress.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"circular-progress.d.ts","sourceRoot":"","sources":["../../../src/components/circular-progress/circular-progress.tsx"],"names":[],"mappings":";AAIA,oBAAY,qBAAqB,GAAG,cAAc,GAAG;IACnD;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,KAAK,CAAC;IACxC;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAA;AAED,eAAO,MAAM,gBAAgB;IArB3B;;;;OAIG;WACI,MAAM;IACb;;;OAGG;;IAEH;;OAEG;;IAEH;;OAEG;;kDAuCH,CAAA"}
1
+ {"version":3,"file":"circular-progress.d.ts","sourceRoot":"","sources":["../../../src/components/circular-progress/circular-progress.tsx"],"names":[],"mappings":";AAOA,oBAAY,qBAAqB,GAAG;IAClC;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,KAAK,CAAC;IACxC;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAA;AAED,eAAO,MAAM,gBAAgB;;;0EAmC3B,CAAC"}
@@ -1,12 +1,12 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { forwardRef, useCallback, useMemo } from 'react';
3
2
  import clsx from 'clsx';
3
+ import { forwardRef, useCallback, useMemo, } from 'react';
4
4
  import styles from './circular-progress.module.css';
5
5
  export const CircularProgress = forwardRef(({ className, value, max = 100, dimension = 'regular', showProgress, style, ...otherProps }, forwardedRef) => {
6
- const getPercentage = useCallback(() => value ? Math.round((100 * value) / max) : 0, [max, value]);
6
+ const getPercentage = useCallback(() => (value ? Math.round((100 * value) / max) : 0), [max, value]);
7
7
  const clamp = useMemo(() => (num, min, max) => Math.min(Math.max(num, min), max), []);
8
8
  const dynamicStyle = {
9
- '--progress': `${getPercentage()}%`
9
+ '--progress': `${getPercentage()}%`,
10
10
  };
11
11
  return (_jsx("div", { ref: forwardedRef, role: "progressbar", "aria-valuenow": value, "aria-valuemin": 0, "aria-valuemax": max, className: clsx(styles.CircularProgress, className), "data-circular-progress": clamp(getPercentage(), 0, 100), "data-circular-progress-dimension": dimension, "data-circular-progress-show-progress": showProgress, style: { ...dynamicStyle, ...style }, ...otherProps }));
12
12
  });
@@ -1 +1 @@
1
- .CircularProgress{--hue:220;--track-size:4px;--track-bg:var(--dimmed-1);aspect-ratio:1/1;display:grid;font-size:1rem;font-weight:700;inline-size:3.56rem;min-inline-size:64px;place-items:center;position:relative}.CircularProgress[data-circular-progress-show-progress=true]:after{content:attr(data-circular-progress);display:block}.CircularProgress[data-circular-progress-dimension=regular]{--track-size:8px;font-size:1.77rem;inline-size:7.56rem}.CircularProgress[data-circular-progress-dimension=big]{--track-size:16px;font-size:2.37rem;inline-size:10.22rem}.CircularProgress:before{background:conic-gradient(var(--progress-color,var(--cta-default)),var(--progress-color,var(--cta-default)) var(--progress,0),var(--track-bg) var(--progress,0) 100%);border-radius:50%;bottom:0;content:"";left:0;-webkit-mask-image:radial-gradient(transparent calc(71% - var(--track-size)),#000 calc(71% - var(--track-size) + .5px));mask-image:radial-gradient(transparent calc(71% - var(--track-size)),#000 calc(71% - var(--track-size) + .5px));position:absolute;right:0;top:0;z-index:-1}
1
+ .CircularProgress{--hue:220;--track-size:4px;--track-bg:var(--dimmed-1);aspect-ratio:1/1;display:grid;font-size:1rem;font-weight:700;inline-size:4rem;min-inline-size:64px;place-items:center;position:relative}.CircularProgress[data-circular-progress-show-progress=true]:after{content:attr(data-circular-progress);display:block}.CircularProgress[data-circular-progress-dimension=regular]{--track-size:8px;font-size:1.77rem;inline-size:8.5rem}.CircularProgress[data-circular-progress-dimension=big]{--track-size:16px;font-size:2.37rem;inline-size:11.5rem}.CircularProgress:before{background:conic-gradient(var(--progress-color,var(--cta-default)),var(--progress-color,var(--cta-default)) var(--progress,0),var(--track-bg) var(--progress,0) 100%);border-radius:50%;bottom:0;content:"";left:0;-webkit-mask-image:radial-gradient(transparent calc(71% - var(--track-size)),#000 calc(71% - var(--track-size) + .5px));mask-image:radial-gradient(transparent calc(71% - var(--track-size)),#000 calc(71% - var(--track-size) + .5px));position:absolute;right:0;top:0;z-index:-1}
@@ -1,3 +1,3 @@
1
- export { CircularProgress } from './circular-progress';
2
1
  export type { CircularProgressProps } from './circular-progress';
2
+ export { CircularProgress } from './circular-progress';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/circular-progress/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACtD,YAAY,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/circular-progress/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"clamp-text.d.ts","sourceRoot":"","sources":["../../../src/components/clamp-text/clamp-text.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,SAAS,EAAE,MAAM,OAAO,CAAA;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAK1C,oBAAY,cAAc,GAAG;IAC3B;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAA;AAED,aAAK,oBAAoB,GAAG,WAAW,CAAC,mBAAmB,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;AAEpF,eAAO,MAAM,SAAS,sBAsBI,CAAA"}
1
+ {"version":3,"file":"clamp-text.d.ts","sourceRoot":"","sources":["../../../src/components/clamp-text/clamp-text.tsx"],"names":[],"mappings":"AACA,OAAO,EAA6B,SAAS,EAAE,MAAM,OAAO,CAAC;AAE7D,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAI3C,oBAAY,cAAc,GAAG;IAC3B;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAA;AAED,aAAK,oBAAoB,GAAG,WAAW,CAAC,mBAAmB,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;AAEpF,eAAO,MAAM,SAAS,sBAsBI,CAAC"}
@@ -1,10 +1,10 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { forwardRef } from 'react';
3
2
  import clsx from 'clsx';
3
+ import { forwardRef } from 'react';
4
4
  import styles from './clamp-text.module.css';
5
5
  export const ClampText = forwardRef(({ className, children, rows = 1, style, as: Wrapper = 'span', ...otherProps }, forwardedRef) => {
6
6
  const dynamicStyle = {
7
- '--r': rows
7
+ '--r': rows,
8
8
  };
9
9
  return (_jsx(Wrapper, { ref: forwardedRef, style: { ...dynamicStyle, ...style }, className: clsx(styles.ClampText, className), ...otherProps, children: children }));
10
10
  });
@@ -1,3 +1,3 @@
1
- export { ClampText } from './clamp-text';
2
1
  export type { ClampTextProps } from './clamp-text';
2
+ export { ClampText } from './clamp-text';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/clamp-text/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACxC,YAAY,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/clamp-text/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../../../src/components/container/container.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAI1C,oBAAY,cAAc,GAAG;IAC3B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IAClD;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAA;AAED,aAAK,oBAAoB,GAAG,WAAW,CAAC,mBAAmB,CAAC,KAAK,EAAE,cAAc,CAAC,CAAC;AAEnF,eAAO,MAAM,SAAS,sBAmBI,CAAA"}
1
+ {"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../../../src/components/container/container.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAI3C,oBAAY,cAAc,GAAG;IAC3B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IAClD;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAA;AAED,aAAK,oBAAoB,GAAG,WAAW,CAAC,mBAAmB,CAAC,KAAK,EAAE,cAAc,CAAC,CAAC;AAEnF,eAAO,MAAM,SAAS,sBAiBI,CAAC"}
@@ -1,7 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
+ import clsx from 'clsx';
2
3
  import { forwardRef } from 'react';
3
4
  import styles from './container.module.css';
4
- import clsx from 'clsx';
5
- export const Container = forwardRef(({ children, className, dimension = 'full', padding = true, as: Wrapper = 'div', ...otherProps }, forwardedRef) => {
6
- return (_jsx(Wrapper, { ref: forwardedRef, className: clsx(styles.Container, className), "data-container-dimension": dimension, "data-container-padding": padding, ...otherProps, children: children }));
7
- });
5
+ export const Container = forwardRef(({ children, className, dimension = 'full', padding = true, as: Wrapper = 'div', ...otherProps }, forwardedRef) => (_jsx(Wrapper, { ref: forwardedRef, className: clsx(styles.Container, className), "data-container-dimension": dimension, "data-container-padding": padding, ...otherProps, children: children })));
@@ -1 +1 @@
1
- .Container{inline-size:100%;margin:0 auto;padding:0 .89rem}.Container[data-container-dimension=small]{max-inline-size:35.56rem}@media (min-width:48em){.Container[data-container-dimension=small]{padding:0 1.78rem}}.Container[data-container-dimension=medium]{max-inline-size:55.56rem}@media (min-width:48em){.Container[data-container-dimension=medium]{padding:0 1.78rem}}.Container[data-container-dimension=large]{max-inline-size:80rem}@media (min-width:48em){.Container[data-container-dimension=large]{padding:0 1.78rem}}.Container[data-container-dimension=full]{max-inline-size:100%}@media (min-width:48em){.Container[data-container-dimension=full]{padding:0 1.78rem}}.Container[data-container-padding=false]{padding:0}
1
+ .Container{inline-size:100%;margin:0 auto;padding:0 1rem}.Container[data-container-dimension=small]{max-inline-size:40rem}@media (min-width:48em){.Container[data-container-dimension=small]{padding:0 2rem}}.Container[data-container-dimension=medium]{max-inline-size:62.5rem}@media (min-width:48em){.Container[data-container-dimension=medium]{padding:0 2rem}}.Container[data-container-dimension=large]{max-inline-size:90rem}@media (min-width:48em){.Container[data-container-dimension=large]{padding:0 2rem}}.Container[data-container-dimension=full]{max-inline-size:100%}@media (min-width:48em){.Container[data-container-dimension=full]{padding:0 2rem}}.Container[data-container-padding=false]{padding:0}
@@ -1,3 +1,3 @@
1
- export { Container } from './container';
2
1
  export type { ContainerProps } from './container';
2
+ export { Container } from './container';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/container/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/container/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"datetime.d.ts","sourceRoot":"","sources":["../../../src/components/datetime/datetime.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAuB,MAAM,OAAO,CAAA;AAE3D,oBAAY,aAAa,GAAG,cAAc,CAAC,eAAe,CAAC,GAAG;IAC5D;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC3B;;;;OAIG;IACH,OAAO,CAAC,EAAE,IAAI,CAAC,qBAAqB,CAAC;CACtC,CAAA;AAED,eAAO,MAAM,QAAQ,6CAKlB,aAAa,gBAuBf,CAAA"}
1
+ {"version":3,"file":"datetime.d.ts","sourceRoot":"","sources":["../../../src/components/datetime/datetime.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAuB,MAAM,OAAO,CAAC;AAE5D,oBAAY,aAAa,GAAG,cAAc,CAAC,eAAe,CAAC,GAAG;IAC5D;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC3B;;;;OAIG;IACH,OAAO,CAAC,EAAE,IAAI,CAAC,qBAAqB,CAAC;CACtC,CAAA;AAED,eAAO,MAAM,QAAQ,6CAKlB,aAAa,gBAuBf,CAAC"}
@@ -8,7 +8,7 @@ export const Datetime = ({ date, locale = 'en-US', options, ...otherProps }) =>
8
8
  year: 'numeric',
9
9
  month: 'long',
10
10
  day: 'numeric',
11
- ...options
11
+ ...options,
12
12
  }).format(timeDate);
13
13
  setDateTime(humanDate);
14
14
  }, [date, locale, options]);
@@ -1,3 +1,3 @@
1
- export { Datetime } from './datetime';
2
1
  export type { DatetimeProps } from './datetime';
2
+ export { Datetime } from './datetime';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/datetime/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/datetime/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"disclosure.d.ts","sourceRoot":"","sources":["../../../src/components/disclosure/disclosure.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,qBAAqB,EACrB,SAAS,EACV,MAAM,OAAO,CAAA;AAMd,oBAAY,eAAe,GAAG,qBAAqB,CAAC,kBAAkB,CAAC,GAAG;IACxE;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;OAGG;IACH,OAAO,EAAE,SAAS,CAAC;IACnB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,KAAK,CAAC;IACxC;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAChC;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAA;AAED,eAAO,MAAM,UAAU;IAnCrB;;OAEG;;IAEH;;;OAGG;aACM,SAAS;IAClB;;;;OAIG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;;OAGG;;IAEH;;;OAGG;;sDA0GH,CAAA"}
1
+ {"version":3,"file":"disclosure.d.ts","sourceRoot":"","sources":["../../../src/components/disclosure/disclosure.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEL,qBAAqB,EACrB,SAAS,EACV,MAAM,OAAO,CAAC;AAQf,oBAAY,eAAe,GAAG,qBAAqB,CAAC,kBAAkB,CAAC,GAAG;IACxE;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;OAGG;IACH,OAAO,EAAE,SAAS,CAAC;IACnB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,KAAK,CAAC;IACxC;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAChC;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAA;AAED,eAAO,MAAM,UAAU;IAnCrB;;OAEG;;IAEH;;;OAGG;aACM,SAAS;IAClB;;;;OAIG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;;OAGG;;IAEH;;;OAGG;;sDAwGH,CAAC"}
@@ -1,9 +1,9 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { forwardRef, useCallback, useEffect, useRef, useState } from 'react';
3
2
  import clsx from 'clsx';
4
- import styles from './disclosure.module.css';
5
- import { Text, Icon } from '../..';
6
3
  import { domMax, LazyMotion, m } from 'framer-motion';
4
+ import { forwardRef, useCallback, useEffect, useRef, useState, } from 'react';
5
+ import { Symbol, Text, } from '../..';
6
+ import styles from './disclosure.module.css';
7
7
  export const Disclosure = forwardRef(({ children, open = false, padding = true, className, summary, contentMaxHeight, dimension = 'regular', iconPosition = 'left', expandable = true, style, onToggle, ...otherProps }, forwardedRef) => {
8
8
  const ref = useRef(forwardedRef);
9
9
  const [isOpen, setIsOpen] = useState(open);
@@ -15,26 +15,27 @@ export const Disclosure = forwardRef(({ children, open = false, padding = true,
15
15
  const handleOpen = useCallback(() => () => {
16
16
  if (ref.current && expandable)
17
17
  setIsOpen(ref.current.open);
18
- expandable && onToggle?.(ref.current.open);
18
+ if (expandable)
19
+ onToggle?.(ref.current.open);
19
20
  }, [expandable, onToggle]);
20
21
  const dynamicStyle = {
21
- '--max-height': contentMaxHeight
22
+ '--max-height': contentMaxHeight,
22
23
  };
23
24
  const sizes = {
24
25
  small: {
25
26
  summary: 16,
26
- icon: 12
27
+ icon: 12,
27
28
  },
28
29
  regular: {
29
30
  summary: 18,
30
- icon: 18
31
+ icon: 18,
31
32
  },
32
33
  big: {
33
34
  summary: 22,
34
- icon: 24
35
- }
35
+ icon: 24,
36
+ },
36
37
  };
37
38
  const renderContent = useCallback(() => (_jsx(LazyMotion, { features: domMax, children: _jsx(m.div, { className: styles.Content, "data-disclosure-padding": padding, "data-disclosure-height": Boolean(contentMaxHeight), animate: isOpen ? { y: 5, opacity: 1 } : { y: 0, opacity: 0 }, transition: { ease: 'easeOut', duration: 0.1, delay: 0.1 }, initial: false, children: children }) })), [children, contentMaxHeight, padding, isOpen]);
38
- return (_jsxs("details", { style: { ...dynamicStyle, ...style }, className: clsx(styles.Disclosure, className), "data-disclosure-icon-position": iconPosition, "data-disclosure-dimension": dimension, "data-disclosure-expandable": expandable, onToggle: handleOpen(), "aria-expanded": isOpen ? 'true' : 'false', ref: ref, open: isOpen, ...otherProps, children: [_jsxs(Text, { as: "summary", responsive: false, className: styles.Summary, "aria-expanded": isOpen, tabIndex: !expandable ? -1 : 0, size: dimension ? sizes[dimension].summary : undefined, weight: "bold", children: [summary, expandable && (_jsx(Icon, { className: styles.ExpandIcon, source: "chevron-right", dimension: sizes[dimension].icon }))] }), renderContent()] }));
39
+ return (_jsxs("details", { style: { ...dynamicStyle, ...style }, className: clsx(styles.Disclosure, className), "data-disclosure-icon-position": iconPosition, "data-disclosure-dimension": dimension, "data-disclosure-expandable": expandable, onToggle: handleOpen(), ref: ref, open: isOpen, ...otherProps, children: [_jsxs(Text, { as: "summary", responsive: false, className: styles.Summary, tabIndex: !expandable ? -1 : 0, size: dimension ? sizes[dimension].summary : undefined, weight: "bold", children: [summary, expandable && (_jsx(Symbol, { className: styles.ExpandIcon, source: "chevron-right", dimension: sizes[dimension].icon }))] }), renderContent()] }));
39
40
  });
40
41
  Disclosure.displayName = 'Disclosure';
@@ -1 +1 @@
1
- .Disclosure{--icon-size:1.11rem;--icon-padding:0.44rem;--padding:calc(var(--icon-size) + var(--icon-padding) + var(--icon-size)/2);--icon-top-offset:calc(var(--icon-size)/2);display:block;position:relative;transform:translateZ(0);z-index:0}.Disclosure *{box-sizing:border-box}.Disclosure[data-disclosure-dimension=small]{--icon-top-offset:calc(var(--icon-size)/1.5);--icon-size:0.67rem}.Disclosure[data-disclosure-dimension=regular]{--icon-size:0.89rem}.Disclosure[data-disclosure-dimension=big]{--icon-top-offset:calc(var(--icon-size)/4);--icon-size:1.33rem;--icon-padding:0.89rem}.Summary{color:var(--dimmed-9);display:list-item;outline-offset:-2px;padding:.11rem 0;position:relative;touch-action:manipulation;-webkit-user-select:none;user-select:none}.Disclosure[data-disclosure-icon-position=right][data-disclosure-expandable=true] .Summary{padding-inline-end:var(--padding)}.Disclosure[data-disclosure-icon-position=left][data-disclosure-expandable=true] .Summary{padding-inline-start:var(--padding)}.Disclosure[data-disclosure-expandable=true] .Summary{cursor:pointer}.Summary::marker{content:""}.Summary::-webkit-details-marker{display:none}.ExpandIcon{block-size:var(--icon-size);content:"";inline-size:var(--icon-size);position:absolute;right:calc(var(--icon-size)/2);top:var(--icon-top-offset);transform-box:fill-box;transform-origin:50% center;transition:transform .1s cubic-bezier(.3,.07,.34,1)}.Disclosure[data-disclosure-icon-position=left] .ExpandIcon{left:calc(var(--icon-size)/2);right:auto}.Disclosure[open]>.Summary>.ExpandIcon{transform:rotate(90deg)}.Content{box-sizing:border-box}.Disclosure[data-disclosure-icon-position=left] .Content[data-disclosure-padding=true]{padding-inline-start:var(--padding)}.Disclosure[data-disclosure-icon-position=right] .Content[data-disclosure-padding=true]{padding-right:var(--padding)}.Content[data-disclosure-height=true]{-webkit-overflow-scrolling:touch;max-block-size:var(--max-height);overflow:auto;overscroll-behavior:contain}
1
+ .Disclosure{--icon-size:1.11rem;--icon-padding:0.50rem;--padding:calc(var(--icon-size) + var(--icon-padding) + var(--icon-size)/2);--icon-top-offset:calc(var(--icon-size)/2);display:block;position:relative;transform:translateZ(0);z-index:0}.Disclosure *{box-sizing:border-box}.Disclosure[data-disclosure-dimension=small]{--icon-top-offset:calc(var(--icon-size)/1.5);--icon-size:0.75rem}.Disclosure[data-disclosure-dimension=regular]{--icon-size:1.00rem}.Disclosure[data-disclosure-dimension=big]{--icon-top-offset:calc(var(--icon-size)/4);--icon-size:1.50rem;--icon-padding:1.00rem}.Summary{color:var(--dimmed-9);display:list-item;outline-offset:-2px;padding:.13rem 0;position:relative;touch-action:manipulation;-webkit-user-select:none;user-select:none}.Disclosure[data-disclosure-icon-position=right][data-disclosure-expandable=true] .Summary{padding-inline-end:var(--padding)}.Disclosure[data-disclosure-icon-position=left][data-disclosure-expandable=true] .Summary{padding-inline-start:var(--padding)}.Disclosure[data-disclosure-expandable=true] .Summary{cursor:pointer}.Summary::marker{content:""}.Summary::-webkit-details-marker{display:none}.ExpandIcon{block-size:var(--icon-size);content:"";inline-size:var(--icon-size);position:absolute;right:calc(var(--icon-size)/2);top:var(--icon-top-offset);transform-box:fill-box;transform-origin:50% center;transition:transform .1s cubic-bezier(.3,.07,.34,1)}.Disclosure[data-disclosure-icon-position=left] .ExpandIcon{left:calc(var(--icon-size)/2);right:auto}.Disclosure[open]>.Summary>.ExpandIcon{transform:rotate(90deg)}.Content{box-sizing:border-box}.Disclosure[data-disclosure-icon-position=left] .Content[data-disclosure-padding=true]{padding-inline-start:var(--padding)}.Disclosure[data-disclosure-icon-position=right] .Content[data-disclosure-padding=true]{padding-right:var(--padding)}.Content[data-disclosure-height=true]{-webkit-overflow-scrolling:touch;max-block-size:var(--max-height);overflow:auto;overscroll-behavior:contain}
@@ -1,3 +1,3 @@
1
- export { Disclosure } from './disclosure';
2
1
  export type { DisclosureProps } from './disclosure';
2
+ export { Disclosure } from './disclosure';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/disclosure/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/disclosure/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC"}
@@ -1,5 +1,5 @@
1
- import { PropsWithChildren, ReactNode } from 'react';
2
- export declare type DrawerProps = PropsWithChildren<PropsWithClass> & {
1
+ import { ReactNode } from 'react';
2
+ export declare type DrawerProps = {
3
3
  /**
4
4
  * This enable the drawer to be closed by clicking on the overlay.
5
5
  * Even if this can be set to `false` we strongly recommend to leave
@@ -40,47 +40,5 @@ export declare type DrawerProps = PropsWithChildren<PropsWithClass> & {
40
40
  */
41
41
  isModal?: boolean;
42
42
  };
43
- export declare const Drawer: import("react").ForwardRefExoticComponent<PropsWithClass & {
44
- children?: ReactNode;
45
- } & {
46
- /**
47
- * This enable the drawer to be closed by clicking on the overlay.
48
- * Even if this can be set to `false` we strongly recommend to leave
49
- * it to `true` as it ensures the accessibility of the drawer.
50
- *
51
- * @important This property is considered only when `isModal` is `true`.
52
- */
53
- closeOnClickOutside?: boolean | undefined;
54
- /**
55
- * Set the accessible title of the drawer. This is used by screen readers to
56
- * announce the title of the drawer when opened.
57
- */
58
- title?: ReactNode;
59
- /**
60
- * Hide or show the drawer header which includes the title and the close button.
61
- * If you hide the title, make sure to add yuor own title element in order
62
- * to provide an accessible label to the drawer.
63
- */
64
- showHeader?: boolean | undefined;
65
- /**
66
- * Set the maximum width of the drawer, on mobile the drawer will be
67
- * automatically collapsed when the width is reached.
68
- */
69
- maxWidth?: string | undefined;
70
- /**
71
- * Set the theme of the content card. To ensure contrast with the default overlay color (dark),
72
- * this is set to `light` by default.
73
- */
74
- theme?: "auto" | "dark" | "light" | undefined;
75
- /**
76
- * Set the side on which the drawer will be positioned.
77
- */
78
- side?: "left" | "right" | undefined;
79
- /**
80
- * Disable the modal behavior of the drawer.
81
- * If `false`, disable the prop `closeOnClickOutside` and
82
- * the page is not blocked when the drawer is open.
83
- */
84
- isModal?: boolean | undefined;
85
- } & import("react").RefAttributes<HTMLDivElement>>;
43
+ export declare const Drawer: FCChildrenClass<DrawerProps>;
86
44
  //# sourceMappingURL=drawer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../../src/components/drawer/drawer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAS/E,oBAAY,WAAW,GAAG,iBAAiB,CAAC,cAAc,CAAC,GAAG;IAC5D;;;;;;OAMG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;IAClC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACxB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAA;AAED,eAAO,MAAM,MAAM;;;IAzCjB;;;;;;OAMG;;IAEH;;;OAGG;YACK,SAAS;IACjB;;;;OAIG;;IAEH;;;OAGG;;IAEH;;;OAGG;;IAEH;;OAEG;;IAEH;;;;OAIG;;kDAkGH,CAAA"}
1
+ {"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../../src/components/drawer/drawer.tsx"],"names":[],"mappings":"AAIA,OAAO,EACsB,SAAS,EACrC,MAAM,OAAO,CAAC;AASf,oBAAY,WAAW,GAAG;IACxB;;;;;;OAMG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;IAClC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACxB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAA;AAED,eAAO,MAAM,MAAM,EAAE,eAAe,CAAC,WAAW,CA8F9C,CAAC"}
@@ -1,12 +1,12 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { forwardRef } from 'react';
3
- import { domMax, LazyMotion, m } from 'framer-motion';
4
- import clsx from 'clsx';
5
- import { FocusOn, AutoFocusInside } from 'react-focus-on';
2
+ import tkns from '@wonderflow/tokens/platforms/web/tokens.json';
6
3
  import { useKeyPress } from 'ahooks';
4
+ import clsx from 'clsx';
5
+ import { domMax, LazyMotion, m } from 'framer-motion';
6
+ import { forwardRef, } from 'react';
7
+ import { AutoFocusInside, FocusOn } from 'react-focus-on';
8
+ import { Elevator, IconButton, Stack, Title, useOverlayContext, } from '../..';
7
9
  import styles from './drawer.module.css';
8
- import { useOverlayContext, Elevator, IconButton, Stack, Title } from '../..';
9
- import tkns from '@wonderflow/tokens/platforms/web/tokens.json';
10
10
  export const Drawer = forwardRef(({ children, className, closeOnClickOutside = true, showHeader = true, maxWidth = '400px', side = 'right', theme = 'light', isModal = true, title, ...otherProps }, forwardedRef) => {
11
11
  const { titleId, onClose } = useOverlayContext();
12
12
  const cssEasingToArray = (cssEasing) => {
@@ -15,23 +15,23 @@ export const Drawer = forwardRef(({ children, className, closeOnClickOutside = t
15
15
  };
16
16
  useKeyPress('esc', () => (!isModal && onClose) && onClose());
17
17
  const dynamicStyle = {
18
- '--max-w': maxWidth
18
+ '--max-w': maxWidth,
19
19
  };
20
20
  const DrawerAnimation = {
21
21
  visible: {
22
22
  x: 0,
23
23
  transition: {
24
24
  ease: cssEasingToArray(tkns.easing.entrance),
25
- duration: parseFloat(tkns.duration[500].replace('s', ''))
26
- }
25
+ duration: parseFloat(tkns.duration[500].replace('s', '')),
26
+ },
27
27
  },
28
28
  hidden: {
29
29
  x: side === 'right' ? '100%' : '-100%',
30
30
  transition: {
31
31
  ease: cssEasingToArray(tkns.easing.exit),
32
- duration: parseFloat(tkns.duration[500].replace('s', ''))
33
- }
34
- }
32
+ duration: parseFloat(tkns.duration[500].replace('s', '')),
33
+ },
34
+ },
35
35
  };
36
36
  return (_jsx("div", { role: "dialog", "aria-modal": isModal, "data-theme": theme, "aria-labelledby": titleId, className: clsx(styles.Drawer, className), ref: forwardedRef, ...otherProps, children: _jsx(FocusOn, { enabled: isModal, onClickOutside: closeOnClickOutside ? onClose : undefined, onEscapeKey: onClose, children: _jsx(LazyMotion, { features: domMax, children: _jsx(m.div, { variants: DrawerAnimation, initial: "hidden", animate: "visible", exit: "hidden", className: styles.Container, "data-drawer-side": side, children: _jsx(Elevator, { resting: 4, children: _jsxs("div", { className: styles.Content, style: dynamicStyle, ref: forwardedRef, ...otherProps, children: [(showHeader && title) && (_jsxs(Stack, { vAlign: "center", hAlign: "space-between", direction: "row", className: styles.Header, columnGap: 24, children: [_jsx(Title, { responsive: false, level: "6", id: titleId, children: title }), onClose && _jsx(IconButton, { onClick: onClose, className: styles.CloseButton, icon: "xmark", kind: "flat" })] })), _jsx(AutoFocusInside, { children: children })] }) }) }) }) }) }));
37
37
  });
@@ -1 +1 @@
1
- .Drawer{display:contents}.Container{align-items:stretch;bottom:0;display:grid;left:0;pointer-events:none;position:absolute;right:0;top:0}.Container[data-drawer-side=right]{justify-content:flex-end}.Container[data-drawer-side=left]{justify-content:flex-start}@media (min-width:30em){.Container{overflow:auto}}.Container>*{pointer-events:auto}.Content{-webkit-overflow-scrolling:touch;background-color:var(--global-background);inline-size:100%;max-inline-size:var(--max-w);overflow:auto;overscroll-behavior:contain}.Header{background-color:inherit;border-bottom:1px solid var(--dimmed-1);padding:.89rem .89rem 1.33rem 1.33rem;position:sticky;top:0}.CloseButton.CloseButton{flex-grow:0}
1
+ .Drawer{display:contents}.Container{align-items:stretch;bottom:0;display:grid;left:0;pointer-events:none;position:absolute;right:0;top:0}.Container[data-drawer-side=right]{justify-content:flex-end}.Container[data-drawer-side=left]{justify-content:flex-start}@media (min-width:30em){.Container{overflow:auto}}.Container>*{pointer-events:auto}.Content{-webkit-overflow-scrolling:touch;background-color:var(--global-background);inline-size:100%;max-inline-size:var(--max-w);overflow:auto;overscroll-behavior:contain}.Header{background-color:inherit;border-bottom:1px solid var(--dimmed-1);padding:1rem 1rem 1.5rem 1.5rem;position:sticky;top:0}.CloseButton.CloseButton{flex-grow:0}
@@ -1,3 +1,3 @@
1
- export { Drawer } from './drawer';
2
1
  export type { DrawerProps } from './drawer';
2
+ export { Drawer } from './drawer';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/drawer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/drawer/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC"}
@@ -1,4 +1,4 @@
1
- import { FC, ReactElement } from 'react';
1
+ import { ReactElement } from 'react';
2
2
  export declare type ElevatorProps = {
3
3
  /**
4
4
  * Set the elevation of the component when is resting.
@@ -15,5 +15,5 @@ export declare type ElevatorProps = {
15
15
  */
16
16
  children: ReactElement;
17
17
  };
18
- export declare const Elevator: FC<ElevatorProps>;
18
+ export declare const Elevator: FCChildren<ElevatorProps>;
19
19
  //# sourceMappingURL=elevator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"elevator.d.ts","sourceRoot":"","sources":["../../../src/components/elevator/elevator.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAoC,YAAY,EAAkB,MAAM,OAAO,CAAA;AAE1F,oBAAY,aAAa,GAAG;IAC1B;;MAEE;IACF,OAAO,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC3B;;OAEG;IACH,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC1B;;;;OAIG;IACH,QAAQ,EAAE,YAAY,CAAC;CACxB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CAgBtC,CAAA"}
1
+ {"version":3,"file":"elevator.d.ts","sourceRoot":"","sources":["../../../src/components/elevator/elevator.tsx"],"names":[],"mappings":"AAAA,OAAO,EACmC,YAAY,EACrD,MAAM,OAAO,CAAC;AAEf,oBAAY,aAAa,GAAG;IAC1B;;MAEE;IACF,OAAO,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC3B;;OAEG;IACH,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC1B;;;;OAIG;IACH,QAAQ,EAAE,YAAY,CAAC;CACxB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,UAAU,CAAC,aAAa,CAc9C,CAAC"}
@@ -1,8 +1,6 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { Fragment, Children, cloneElement, isValidElement } from 'react';
3
- export const Elevator = ({ children, resting, hover }) => {
4
- return (_jsx(Fragment, { children: Children.map(children, (child) => isValidElement(child) && cloneElement(child, {
5
- 'data-elevation': resting,
6
- 'data-elevation-hover': hover
7
- })) }));
8
- };
1
+ import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
2
+ import { Children, cloneElement, isValidElement, } from 'react';
3
+ export const Elevator = ({ children, resting, hover, }) => (_jsx(_Fragment, { children: Children.map(children, child => isValidElement(child) && cloneElement(child, {
4
+ 'data-elevation': resting,
5
+ 'data-elevation-hover': hover,
6
+ })) }));
@@ -1,3 +1,3 @@
1
- export { Elevator } from './elevator';
2
1
  export type { ElevatorProps } from './elevator';
2
+ export { Elevator } from './elevator';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/elevator/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/elevator/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC"}
@@ -1,7 +1,7 @@
1
- import { ReactNode } from 'react';
2
1
  import { TokensTypes } from '@wonderflow/tokens/platforms/web';
2
+ import { ReactNode } from 'react';
3
3
  import { GridItemProps } from './item/grid-item';
4
- export declare type GridProps = PropsWithClass & {
4
+ export declare type GridProps = {
5
5
  /**
6
6
  * The children to be rendered in the grid.
7
7
  * Even though this component doesn't block you to use any elements as children,
@@ -1 +1 @@
1
- {"version":3,"file":"grid.d.ts","sourceRoot":"","sources":["../../../src/components/grid/grid.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,SAAS,EAAc,MAAM,OAAO,CAAA;AAG5D,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAC9D,OAAO,EAAY,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAG1D,oBAAY,SAAS,GAAG,cAAc,GAAG;IACvC;;;;OAIG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAC9B;;OAEG;IACH,SAAS,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IACjC;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,KAAK,CAAC;IACjC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAA;AAED,aAAK,aAAa,GAAG,KAAK,CAAC,yBAAyB,CAAC,SAAS,CAAC,GAAG;IAChE,IAAI,EAAE,KAAK,CAAC,yBAAyB,CAAC,aAAa,CAAC,CAAC;CACtD,CAAA;AAED,eAAO,MAAM,IAAI,eAiCE,CAAA"}
1
+ {"version":3,"file":"grid.d.ts","sourceRoot":"","sources":["../../../src/components/grid/grid.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAG/D,OAAO,EAA6B,SAAS,EAAE,MAAM,OAAO,CAAC;AAG7D,OAAO,EAAY,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAE3D,oBAAY,SAAS,GAAG;IACtB;;;;OAIG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAC9B;;OAEG;IACH,SAAS,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IACjC;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,KAAK,CAAC;IACjC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAA;AAED,aAAK,aAAa,GAAG,KAAK,CAAC,yBAAyB,CAAC,SAAS,CAAC,GAAG;IAChE,IAAI,EAAE,KAAK,CAAC,yBAAyB,CAAC,aAAa,CAAC,CAAC;CACtD,CAAA;AAED,eAAO,MAAM,IAAI,eAiCE,CAAC"}
@@ -1,9 +1,9 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { forwardRef } from 'react';
3
- import clsx from 'clsx';
4
2
  import tkns from '@wonderflow/tokens/platforms/web/tokens.json';
5
- import { GridItem } from './item/grid-item';
3
+ import clsx from 'clsx';
4
+ import { forwardRef } from 'react';
6
5
  import styles from './grid.module.css';
6
+ import { GridItem } from './item/grid-item';
7
7
  export const Grid = forwardRef(({ className, children, columns, rows, rowGap, columnGap, style, filling = 'fill', colMinWidth = '10rem', rowMinHeight = '1fr', ...otherProps }, forwardedRef) => {
8
8
  const computedStyle = {
9
9
  '--row-gap': rowGap ? tkns.space[rowGap] : 0,
@@ -11,7 +11,7 @@ export const Grid = forwardRef(({ className, children, columns, rows, rowGap, co
11
11
  '--columns': columns,
12
12
  '--column-min-w': colMinWidth,
13
13
  '--rows': rows,
14
- '--row-min-h': rowMinHeight
14
+ '--row-min-h': rowMinHeight,
15
15
  };
16
16
  return (_jsx("ul", { className: clsx(styles.Grid, className), style: { ...computedStyle, ...style }, "data-grid-filling-type": filling, ref: forwardedRef, ...otherProps, children: children }));
17
17
  });
@@ -1 +1 @@
1
- .Grid{--column-size:minmax(min(var(--column-min-w),100%),1fr);grid-gap:var(--row-gap,.44rem) var(--column-gap,.44rem);display:grid;grid-template-columns:repeat(var(--columns),var(--column-size));grid-template-rows:repeat(var(--rows),var(--row-min-h));list-style:none;margin:0;padding:0}.Grid[data-grid-filling-type=fill]{grid-template-columns:repeat(auto-fill,var(--column-size))}.Grid[data-grid-filling-type=fit]{grid-template-columns:repeat(auto-fit,var(--column-size))}
1
+ .Grid{--column-size:minmax(min(var(--column-min-w),100%),1fr);grid-gap:var(--row-gap,.5rem) var(--column-gap,.5rem);display:grid;grid-template-columns:repeat(var(--columns),var(--column-size));grid-template-rows:repeat(var(--rows),var(--row-min-h));list-style:none;margin:0;padding:0}.Grid[data-grid-filling-type=fill]{grid-template-columns:repeat(auto-fill,var(--column-size))}.Grid[data-grid-filling-type=fit]{grid-template-columns:repeat(auto-fit,var(--column-size))}
@@ -1,4 +1,4 @@
1
- export { Grid } from './grid';
2
1
  export type { GridProps } from './grid';
2
+ export { Grid } from './grid';
3
3
  export type { GridItemProps } from './item/grid-item';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/grid/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AACvC,YAAY,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/grid/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,YAAY,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { PropsWithChildren } from 'react';
2
- export declare type GridItemProps = PropsWithChildren<PropsWithClass> & {
2
+ export declare type GridItemProps = PropsWithChildren<PropsWithClass<{
3
3
  /**
4
4
  * Make the item span the entire row.
5
5
  */
@@ -18,9 +18,10 @@ export declare type GridItemProps = PropsWithChildren<PropsWithClass> & {
18
18
  * Read more: https://developer.mozilla.org/en-US/docs/Web/CSS/grid-row
19
19
  */
20
20
  row?: string;
21
- };
22
- export declare const GridItem: import("react").ForwardRefExoticComponent<PropsWithClass & {
23
- children?: import("react").ReactNode;
21
+ }>>;
22
+ export declare const GridItem: import("react").ForwardRefExoticComponent<{
23
+ style?: Record<string, any> | undefined;
24
+ className?: string | undefined;
24
25
  } & {
25
26
  /**
26
27
  * Make the item span the entire row.
@@ -40,5 +41,7 @@ export declare const GridItem: import("react").ForwardRefExoticComponent<PropsWi
40
41
  * Read more: https://developer.mozilla.org/en-US/docs/Web/CSS/grid-row
41
42
  */
42
43
  row?: string | undefined;
44
+ } & {
45
+ children?: import("react").ReactNode;
43
46
  } & import("react").RefAttributes<HTMLLIElement>>;
44
47
  //# sourceMappingURL=grid-item.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"grid-item.d.ts","sourceRoot":"","sources":["../../../../src/components/grid/item/grid-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAIpE,oBAAY,aAAa,GAAG,iBAAiB,CAAC,cAAc,CAAC,GAAG;IAC9D;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;;OAKG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAA;AAED,eAAO,MAAM,QAAQ;;;IApBnB;;OAEG;;IAEH;;;;;OAKG;;IAEH;;;;;OAKG;;iDA6BH,CAAA"}
1
+ {"version":3,"file":"grid-item.d.ts","sourceRoot":"","sources":["../../../../src/components/grid/item/grid-item.tsx"],"names":[],"mappings":"AACA,OAAO,EAA6B,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAIrE,oBAAY,aAAa,GAAG,iBAAiB,CAAC,cAAc,CAAC;IAC3D;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;;OAKG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC,CAAC,CAAA;AAEH,eAAO,MAAM,QAAQ;;;;IApBnB;;OAEG;;IAEH;;;;;OAKG;;IAEH;;;;;OAKG;;;;iDA6BH,CAAC"}
@@ -1,11 +1,11 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { forwardRef } from 'react';
3
2
  import clsx from 'clsx';
3
+ import { forwardRef } from 'react';
4
4
  import styles from './grid-item.module.css';
5
- export const GridItem = forwardRef(({ children, style, className, fullWidth = false, column, row, ...otherProps }, forwardedRef) => {
5
+ export const GridItem = forwardRef(({ style, children, className, fullWidth = false, column, row, ...otherProps }, forwardedRef) => {
6
6
  const dynamicStyle = {
7
7
  '--column': column,
8
- '--row': row
8
+ '--row': row,
9
9
  };
10
10
  return (_jsx("li", { ref: forwardedRef, className: clsx(styles.GridItem, className), style: { ...dynamicStyle, ...style }, "data-grid-item-fullwidth": fullWidth, ...otherProps, children: children }));
11
11
  });
@@ -1 +1 @@
1
- {"version":3,"file":"icon-button.d.ts","sourceRoot":"","sources":["../../../src/components/icon-button/icon-button.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAG/D,oBAAY,eAAe,GAAG,IAAI,CAClC,WAAW,EACT,MAAM,GAAG,WAAW,GAAG,MAAM,GAAG,UAAU,GAAG,SAAS,GAAG,MAAM,CAChE,CAAA;AAED,aAAK,qBAAqB,GAAG,WAAW,CAAC,mBAAmB,CAC1D,WAAW,CAAC,gBAAgB,CAAC,OAAO,MAAM,CAAC,EAC3C,WAAW,CAAC,QAAQ,CAAC,OAAO,MAAM,CAAC,GAAG,eAAe,CACtD,CAAC;AAEF,eAAO,MAAM,UAAU,uBAmBI,CAAA"}
1
+ {"version":3,"file":"icon-button.d.ts","sourceRoot":"","sources":["../../../src/components/icon-button/icon-button.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAIhE,oBAAY,eAAe,GAAG,IAAI,CAClC,WAAW,EACX,MAAM,GAAG,WAAW,GAAG,MAAM,GAAG,UAAU,GAAG,SAAS,GAAG,MAAM,CAC9D,CAAA;AAED,aAAK,qBAAqB,GAAG,WAAW,CAAC,mBAAmB,CAC5D,WAAW,CAAC,gBAAgB,CAAC,OAAO,MAAM,CAAC,EAC3C,WAAW,CAAC,QAAQ,CAAC,OAAO,MAAM,CAAC,GAAG,eAAe,CACpD,CAAC;AAEF,eAAO,MAAM,UAAU,uBAmBI,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
+ import clsx from 'clsx';
2
3
  import { forwardRef } from 'react';
3
- import styles from './icon-button.module.css';
4
4
  import { Button } from '../..';
5
- import clsx from 'clsx';
5
+ import styles from './icon-button.module.css';
6
6
  export const IconButton = forwardRef(({ className, icon, dimension, kind, disabled, busy, ...otherProps }, forwardedRef) => (_jsx(Button, { ref: forwardedRef, icon: icon, dimension: dimension, kind: kind, disabled: disabled, busy: busy, className: clsx(styles.IconButton, className), ...otherProps })));
@@ -1 +1 @@
1
- .IconButton.IconButton{border-radius:200px;padding:0}.IconButton.IconButton[data-button-dimension=small]{inline-size:1.33rem;min-inline-size:1.33rem;padding:0}.IconButton.IconButton[data-button-dimension=regular]{inline-size:2.22rem;min-inline-size:2.22rem;padding:0}.IconButton.IconButton[data-button-dimension=big]{inline-size:2.67rem;min-inline-size:2.67rem;padding:0}
1
+ .IconButton.IconButton{border-radius:200px;padding:0}.IconButton.IconButton[data-button-dimension=small]{inline-size:1.5rem;min-inline-size:1.5rem;padding:0}.IconButton.IconButton[data-button-dimension=regular]{inline-size:2.5rem;min-inline-size:2.5rem;padding:0}.IconButton.IconButton[data-button-dimension=big]{inline-size:3rem;min-inline-size:3rem;padding:0}
@@ -1,3 +1,3 @@
1
- export { IconButton } from './icon-button';
2
1
  export type { IconButtonProps } from './icon-button';
2
+ export { IconButton } from './icon-button';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/icon-button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,YAAY,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/icon-button/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC"}