@wonderflow/react-components 10.9.1 → 10.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (371) 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/accordion/accordion-context.d.ts +1 -1
  5. package/dist/components/accordion/accordion-context.d.ts.map +1 -1
  6. package/dist/components/accordion/accordion-context.js +16 -1
  7. package/dist/components/accordion/accordion-item.d.ts.map +1 -1
  8. package/dist/components/accordion/accordion-item.js +15 -0
  9. package/dist/components/accordion/accordion.d.ts +17 -3
  10. package/dist/components/accordion/accordion.d.ts.map +1 -1
  11. package/dist/components/accordion/accordion.js +15 -0
  12. package/dist/components/accordion/accordion.module.css +1 -1
  13. package/dist/components/accordion/accordion.stories.d.ts +18 -2
  14. package/dist/components/accordion/accordion.stories.d.ts.map +1 -1
  15. package/dist/components/accordion/accordion.stories.js +1 -1
  16. package/dist/components/accordion/index.d.ts.map +1 -1
  17. package/dist/components/accordion/index.js +15 -0
  18. package/dist/components/aspect-ratio/aspect-ratio.d.ts.map +1 -1
  19. package/dist/components/aspect-ratio/aspect-ratio.js +15 -0
  20. package/dist/components/aspect-ratio/aspect-ratio.stories.js +1 -1
  21. package/dist/components/aspect-ratio/index.d.ts +1 -1
  22. package/dist/components/aspect-ratio/index.d.ts.map +1 -1
  23. package/dist/components/aspect-ratio/index.js +15 -0
  24. package/dist/components/autocomplete/autocomplete-option.d.ts.map +1 -1
  25. package/dist/components/autocomplete/autocomplete-option.js +15 -0
  26. package/dist/components/autocomplete/autocomplete.d.ts +2 -2
  27. package/dist/components/autocomplete/autocomplete.d.ts.map +1 -1
  28. package/dist/components/autocomplete/autocomplete.js +20 -2
  29. package/dist/components/autocomplete/autocomplete.module.css +1 -1
  30. package/dist/components/autocomplete/autocomplete.stories.js +2 -2
  31. package/dist/components/autocomplete/index.d.ts.map +1 -1
  32. package/dist/components/autocomplete/index.js +15 -0
  33. package/dist/components/avatar/avatar.d.ts.map +1 -1
  34. package/dist/components/avatar/avatar.js +15 -0
  35. package/dist/components/avatar/avatar.module.css +1 -1
  36. package/dist/components/avatar/avatar.stories.js +1 -1
  37. package/dist/components/avatar/index.d.ts.map +1 -1
  38. package/dist/components/avatar/index.js +15 -0
  39. package/dist/components/button/button.d.ts.map +1 -1
  40. package/dist/components/button/button.js +15 -0
  41. package/dist/components/button/button.module.css +1 -1
  42. package/dist/components/button/button.stories.js +1 -1
  43. package/dist/components/button/index.d.ts.map +1 -1
  44. package/dist/components/button/index.js +15 -0
  45. package/dist/components/card/card.module.css +1 -1
  46. package/dist/components/card/index.d.ts.map +1 -1
  47. package/dist/components/card/index.js +15 -0
  48. package/dist/components/chip/chip.d.ts.map +1 -1
  49. package/dist/components/chip/chip.js +15 -0
  50. package/dist/components/chip/chip.module.css +1 -1
  51. package/dist/components/chip/chip.stories.js +1 -1
  52. package/dist/components/chip/index.d.ts.map +1 -1
  53. package/dist/components/chip/index.js +15 -0
  54. package/dist/components/circular-progress/circular-progress.d.ts.map +1 -1
  55. package/dist/components/circular-progress/circular-progress.js +15 -0
  56. package/dist/components/circular-progress/circular-progress.module.css +1 -1
  57. package/dist/components/circular-progress/circular-progress.stories.js +1 -1
  58. package/dist/components/circular-progress/index.d.ts.map +1 -1
  59. package/dist/components/circular-progress/index.js +15 -0
  60. package/dist/components/clamp-text/clamp-text.d.ts.map +1 -1
  61. package/dist/components/clamp-text/clamp-text.js +16 -1
  62. package/dist/components/clamp-text/clamp-text.module.css +1 -1
  63. package/dist/components/clamp-text/clamp-text.stories.js +1 -1
  64. package/dist/components/clamp-text/index.d.ts.map +1 -1
  65. package/dist/components/clamp-text/index.js +15 -0
  66. package/dist/components/container/container.d.ts.map +1 -1
  67. package/dist/components/container/container.js +15 -0
  68. package/dist/components/container/container.module.css +1 -1
  69. package/dist/components/container/index.d.ts.map +1 -1
  70. package/dist/components/container/index.js +15 -0
  71. package/dist/components/datetime/datetime.d.ts.map +1 -1
  72. package/dist/components/datetime/datetime.js +15 -0
  73. package/dist/components/datetime/datetime.stories.js +1 -1
  74. package/dist/components/datetime/index.d.ts.map +1 -1
  75. package/dist/components/datetime/index.js +15 -0
  76. package/dist/components/disclosure/disclosure.d.ts.map +1 -1
  77. package/dist/components/disclosure/disclosure.js +15 -0
  78. package/dist/components/disclosure/disclosure.module.css +1 -1
  79. package/dist/components/disclosure/disclosure.stories.js +1 -1
  80. package/dist/components/disclosure/index.d.ts.map +1 -1
  81. package/dist/components/disclosure/index.js +15 -0
  82. package/dist/components/drawer/drawer.d.ts.map +1 -1
  83. package/dist/components/drawer/drawer.js +15 -0
  84. package/dist/components/drawer/drawer.module.css +1 -1
  85. package/dist/components/drawer/drawer.stories.js +3 -3
  86. package/dist/components/drawer/index.d.ts.map +1 -1
  87. package/dist/components/drawer/index.js +15 -0
  88. package/dist/components/elevator/elevator.d.ts.map +1 -1
  89. package/dist/components/elevator/elevator.js +15 -0
  90. package/dist/components/elevator/elevator.stories.js +1 -1
  91. package/dist/components/elevator/index.d.ts.map +1 -1
  92. package/dist/components/elevator/index.js +15 -0
  93. package/dist/components/expander/expander.d.ts +20 -0
  94. package/dist/components/expander/expander.d.ts.map +1 -0
  95. package/dist/components/expander/expander.js +35 -0
  96. package/dist/components/expander/expander.module.css +1 -0
  97. package/dist/components/expander/expander.stories.d.ts +7 -0
  98. package/dist/components/expander/expander.stories.d.ts.map +1 -0
  99. package/dist/components/expander/expander.stories.js +16 -0
  100. package/dist/components/expander/index.d.ts +3 -0
  101. package/dist/components/expander/index.d.ts.map +1 -0
  102. package/dist/components/expander/index.js +16 -0
  103. package/dist/components/grid/grid.module.css +1 -1
  104. package/dist/components/grid/index.d.ts.map +1 -1
  105. package/dist/components/grid/index.js +15 -0
  106. package/dist/components/grid/item/grid-item.d.ts.map +1 -1
  107. package/dist/components/grid/item/grid-item.js +15 -0
  108. package/dist/components/grid/item/grid-item.module.css +1 -1
  109. package/dist/components/icon-button/icon-button.d.ts +2 -2
  110. package/dist/components/icon-button/icon-button.d.ts.map +1 -1
  111. package/dist/components/icon-button/icon-button.js +15 -0
  112. package/dist/components/icon-button/icon-button.module.css +1 -1
  113. package/dist/components/icon-button/icon-button.stories.d.ts +1 -1
  114. package/dist/components/icon-button/icon-button.stories.d.ts.map +1 -1
  115. package/dist/components/icon-button/icon-button.stories.js +1 -1
  116. package/dist/components/icon-button/index.d.ts.map +1 -1
  117. package/dist/components/icon-button/index.js +15 -0
  118. package/dist/components/index.d.ts +1 -0
  119. package/dist/components/index.d.ts.map +1 -1
  120. package/dist/components/index.js +16 -0
  121. package/dist/components/info-state/index.d.ts.map +1 -1
  122. package/dist/components/info-state/index.js +15 -0
  123. package/dist/components/info-state/info-state.d.ts.map +1 -1
  124. package/dist/components/info-state/info-state.js +15 -0
  125. package/dist/components/info-state/info-state.module.css +1 -1
  126. package/dist/components/info-state/info-state.stories.js +1 -1
  127. package/dist/components/input-group/index.d.ts.map +1 -1
  128. package/dist/components/input-group/index.js +15 -0
  129. package/dist/components/input-group/input-group.d.ts.map +1 -1
  130. package/dist/components/input-group/input-group.js +15 -0
  131. package/dist/components/input-group/input-group.module.css +1 -1
  132. package/dist/components/input-group/input-group.stories.js +1 -1
  133. package/dist/components/linear-progress/index.d.ts.map +1 -1
  134. package/dist/components/linear-progress/index.js +15 -0
  135. package/dist/components/linear-progress/linear-progress.d.ts.map +1 -1
  136. package/dist/components/linear-progress/linear-progress.js +15 -0
  137. package/dist/components/linear-progress/linear-progress.module.css +1 -1
  138. package/dist/components/linear-progress/linear-progress.stories.js +1 -1
  139. package/dist/components/list/index.d.ts.map +1 -1
  140. package/dist/components/list/index.js +15 -0
  141. package/dist/components/list/list-item.d.ts.map +1 -1
  142. package/dist/components/list/list-item.js +15 -0
  143. package/dist/components/list/list.d.ts +3 -3
  144. package/dist/components/list/list.d.ts.map +1 -1
  145. package/dist/components/list/list.js +15 -0
  146. package/dist/components/list/list.module.css +1 -1
  147. package/dist/components/list/list.stories.js +1 -1
  148. package/dist/components/masonry/index.d.ts.map +1 -1
  149. package/dist/components/masonry/index.js +15 -0
  150. package/dist/components/masonry/masonry.d.ts.map +1 -1
  151. package/dist/components/masonry/masonry.module.css +1 -1
  152. package/dist/components/menu/index.d.ts.map +1 -1
  153. package/dist/components/menu/index.js +15 -0
  154. package/dist/components/menu/menu-item/menu-item-checkbox.d.ts.map +1 -1
  155. package/dist/components/menu/menu-item/menu-item-checkbox.js +15 -0
  156. package/dist/components/menu/menu-item/menu-item.d.ts.map +1 -1
  157. package/dist/components/menu/menu-item/menu-item.js +18 -3
  158. package/dist/components/menu/menu-item/menu-item.module.css +1 -1
  159. package/dist/components/menu/menu-item/menu-item.stories.js +1 -1
  160. package/dist/components/menu/menu-separator/menu-separator.d.ts.map +1 -1
  161. package/dist/components/menu/menu-separator/menu-separator.js +15 -0
  162. package/dist/components/menu/menu.d.ts.map +1 -1
  163. package/dist/components/menu/menu.js +15 -0
  164. package/dist/components/menu/menu.module.css +1 -1
  165. package/dist/components/menu/menu.stories.js +3 -3
  166. package/dist/components/modal/content/modal-content.d.ts +0 -4
  167. package/dist/components/modal/content/modal-content.d.ts.map +1 -1
  168. package/dist/components/modal/content/modal-content.js +15 -0
  169. package/dist/components/modal/content/modal-content.module.css +1 -1
  170. package/dist/components/modal/index.d.ts.map +1 -1
  171. package/dist/components/modal/index.js +15 -0
  172. package/dist/components/modal/modal.d.ts.map +1 -1
  173. package/dist/components/modal/modal.js +15 -0
  174. package/dist/components/modal/modal.module.css +1 -1
  175. package/dist/components/modal/modal.stories.js +3 -3
  176. package/dist/components/overlay-container/index.d.ts.map +1 -1
  177. package/dist/components/overlay-container/index.js +15 -0
  178. package/dist/components/overlay-container/overlay-container.d.ts.map +1 -1
  179. package/dist/components/overlay-container/overlay-container.js +15 -0
  180. package/dist/components/overlay-container/overlay-container.module.css +1 -1
  181. package/dist/components/pagination/index.d.ts.map +1 -1
  182. package/dist/components/pagination/index.js +15 -0
  183. package/dist/components/pagination/pagination.d.ts.map +1 -1
  184. package/dist/components/pagination/pagination.js +15 -0
  185. package/dist/components/pagination/pagination.module.css +1 -1
  186. package/dist/components/pagination/pagination.stories.js +1 -1
  187. package/dist/components/popover/index.d.ts.map +1 -1
  188. package/dist/components/popover/index.js +15 -0
  189. package/dist/components/popover/popover.d.ts.map +1 -1
  190. package/dist/components/popover/popover.js +3 -1
  191. package/dist/components/popover/popover.module.css +1 -1
  192. package/dist/components/popover/popover.stories.js +6 -6
  193. package/dist/components/prose/index.d.ts.map +1 -1
  194. package/dist/components/prose/index.js +15 -0
  195. package/dist/components/prose/prose.d.ts.map +1 -1
  196. package/dist/components/prose/prose.js +15 -0
  197. package/dist/components/prose/prose.module.css +1 -1
  198. package/dist/components/prose/prose.stories.js +1 -1
  199. package/dist/components/select/index.d.ts.map +1 -1
  200. package/dist/components/select/index.js +15 -0
  201. package/dist/components/select/select.d.ts.map +1 -1
  202. package/dist/components/select/select.js +15 -0
  203. package/dist/components/select/select.module.css +1 -1
  204. package/dist/components/select/select.stories.js +1 -1
  205. package/dist/components/selection-controls/checkbox.d.ts.map +1 -1
  206. package/dist/components/selection-controls/checkbox.js +15 -0
  207. package/dist/components/selection-controls/checkbox.stories.js +1 -1
  208. package/dist/components/selection-controls/index.d.ts.map +1 -1
  209. package/dist/components/selection-controls/index.js +15 -0
  210. package/dist/components/selection-controls/radio.d.ts.map +1 -1
  211. package/dist/components/selection-controls/radio.js +15 -0
  212. package/dist/components/selection-controls/radio.stories.js +1 -1
  213. package/dist/components/selection-controls/selection-controls.module.css +1 -1
  214. package/dist/components/selection-controls/toggle.d.ts.map +1 -1
  215. package/dist/components/selection-controls/toggle.js +15 -0
  216. package/dist/components/selection-controls/toggle.stories.js +1 -1
  217. package/dist/components/separator/index.d.ts.map +1 -1
  218. package/dist/components/separator/index.js +15 -0
  219. package/dist/components/separator/separator.d.ts.map +1 -1
  220. package/dist/components/separator/separator.js +15 -0
  221. package/dist/components/separator/separator.module.css +1 -1
  222. package/dist/components/skeleton/index.d.ts.map +1 -1
  223. package/dist/components/skeleton/index.js +15 -0
  224. package/dist/components/skeleton/skeleton.d.ts.map +1 -1
  225. package/dist/components/skeleton/skeleton.module.css +1 -1
  226. package/dist/components/skeleton/skeleton.stories.js +1 -1
  227. package/dist/components/slider/index.d.ts.map +1 -1
  228. package/dist/components/slider/index.js +15 -0
  229. package/dist/components/slider/slider.d.ts.map +1 -1
  230. package/dist/components/slider/slider.js +15 -0
  231. package/dist/components/slider/slider.module.css +1 -1
  232. package/dist/components/slider/slider.stories.js +1 -1
  233. package/dist/components/snackbar/index.d.ts.map +1 -1
  234. package/dist/components/snackbar/index.js +15 -0
  235. package/dist/components/snackbar/snackbar.d.ts.map +1 -1
  236. package/dist/components/snackbar/snackbar.js +15 -0
  237. package/dist/components/snackbar/snackbar.module.css +1 -1
  238. package/dist/components/snackbar/snackbar.stories.js +1 -1
  239. package/dist/components/spinner/index.d.ts.map +1 -1
  240. package/dist/components/spinner/index.js +15 -0
  241. package/dist/components/spinner/spinner.d.ts.map +1 -1
  242. package/dist/components/spinner/spinner.js +15 -0
  243. package/dist/components/spinner/spinner.stories.js +1 -1
  244. package/dist/components/split-button/index.d.ts.map +1 -1
  245. package/dist/components/split-button/index.js +15 -0
  246. package/dist/components/split-button/split-button.d.ts.map +1 -1
  247. package/dist/components/split-button/split-button.js +15 -0
  248. package/dist/components/split-button/split-button.module.css +1 -1
  249. package/dist/components/split-button/split-button.stories.js +1 -1
  250. package/dist/components/stack/index.d.ts.map +1 -1
  251. package/dist/components/stack/index.js +15 -0
  252. package/dist/components/stack/stack.d.ts.map +1 -1
  253. package/dist/components/stack/stack.module.css +1 -1
  254. package/dist/components/star-meter/index.d.ts.map +1 -1
  255. package/dist/components/star-meter/index.js +15 -0
  256. package/dist/components/star-meter/star-meter.d.ts.map +1 -1
  257. package/dist/components/star-meter/star-meter.js +15 -0
  258. package/dist/components/star-meter/star-meter.module.css +1 -1
  259. package/dist/components/star-meter/star-meter.stories.js +1 -1
  260. package/dist/components/symbol/index.d.ts.map +1 -1
  261. package/dist/components/symbol/index.js +15 -0
  262. package/dist/components/symbol/symbol.d.ts.map +1 -1
  263. package/dist/components/symbol/symbol.module.css +1 -1
  264. package/dist/components/symbol/symbol.stories.js +1 -1
  265. package/dist/components/tab/index.d.ts.map +1 -1
  266. package/dist/components/tab/index.js +15 -0
  267. package/dist/components/tab/tab.d.ts +2 -1
  268. package/dist/components/tab/tab.d.ts.map +1 -1
  269. package/dist/components/tab/tab.js +16 -1
  270. package/dist/components/tab/tab.module.css +1 -1
  271. package/dist/components/tab/tab.stories.js +1 -1
  272. package/dist/components/tab/tabs-panel.d.ts.map +1 -1
  273. package/dist/components/tab/tabs-panel.js +15 -0
  274. package/dist/components/table/index.d.ts.map +1 -1
  275. package/dist/components/table/index.js +15 -0
  276. package/dist/components/table/table-cell/index.d.ts.map +1 -1
  277. package/dist/components/table/table-cell/index.js +15 -0
  278. package/dist/components/table/table-cell/table-cell.d.ts.map +1 -1
  279. package/dist/components/table/table-cell/table-cell.js +15 -0
  280. package/dist/components/table/table-cell/table-cell.module.css +1 -1
  281. package/dist/components/table/table-checkbox/index.d.ts.map +1 -1
  282. package/dist/components/table/table-checkbox/index.js +15 -0
  283. package/dist/components/table/table-checkbox/table-checkbox.d.ts.map +1 -1
  284. package/dist/components/table/table-checkbox/table-checkbox.js +15 -0
  285. package/dist/components/table/table-checkbox/table-checkbox.module.css +1 -1
  286. package/dist/components/table/table-controls/index.d.ts.map +1 -1
  287. package/dist/components/table/table-controls/index.js +15 -0
  288. package/dist/components/table/table-controls/toggle-columns.d.ts.map +1 -1
  289. package/dist/components/table/table-controls/toggle-columns.js +18 -3
  290. package/dist/components/table/table-expand/index.d.ts.map +1 -1
  291. package/dist/components/table/table-expand/index.js +15 -0
  292. package/dist/components/table/table-expand/table-expand.module.css +1 -1
  293. package/dist/components/table/table-header/index.d.ts +1 -1
  294. package/dist/components/table/table-header/index.d.ts.map +1 -1
  295. package/dist/components/table/table-header/index.js +15 -0
  296. package/dist/components/table/table-header/table-header.d.ts.map +1 -1
  297. package/dist/components/table/table-header/table-header.module.css +1 -1
  298. package/dist/components/table/table-pagination/index.d.ts +1 -1
  299. package/dist/components/table/table-pagination/index.d.ts.map +1 -1
  300. package/dist/components/table/table-pagination/index.js +15 -0
  301. package/dist/components/table/table-pagination/table-pagination.d.ts.map +1 -1
  302. package/dist/components/table/table-pagination/table-pagination.js +15 -0
  303. package/dist/components/table/table-row/index.d.ts.map +1 -1
  304. package/dist/components/table/table-row/index.js +15 -0
  305. package/dist/components/table/table-row/table-row.d.ts.map +1 -1
  306. package/dist/components/table/table-row/table-row.js +17 -2
  307. package/dist/components/table/table.d.ts +5 -1
  308. package/dist/components/table/table.d.ts.map +1 -1
  309. package/dist/components/table/table.js +17 -1
  310. package/dist/components/table/table.module.css +1 -1
  311. package/dist/components/table/table.stories.d.ts +16 -16
  312. package/dist/components/table/table.stories.d.ts.map +1 -1
  313. package/dist/components/table/types.d.ts.map +1 -1
  314. package/dist/components/table/types.js +15 -0
  315. package/dist/components/text/index.d.ts.map +1 -1
  316. package/dist/components/text/index.js +15 -0
  317. package/dist/components/text/text.d.ts.map +1 -1
  318. package/dist/components/text/text.module.css +1 -1
  319. package/dist/components/text/text.stories.js +1 -1
  320. package/dist/components/textfield/base-field/base-field.d.ts +2 -2
  321. package/dist/components/textfield/base-field/base-field.d.ts.map +1 -1
  322. package/dist/components/textfield/base-field/base-field.js +1 -1
  323. package/dist/components/textfield/base-field/base-field.module.css +1 -1
  324. package/dist/components/textfield/base-field/index.d.ts.map +1 -1
  325. package/dist/components/textfield/base-field/index.js +15 -0
  326. package/dist/components/textfield/index.d.ts.map +1 -1
  327. package/dist/components/textfield/index.js +15 -0
  328. package/dist/components/textfield/textfield.d.ts +3 -54
  329. package/dist/components/textfield/textfield.d.ts.map +1 -1
  330. package/dist/components/textfield/textfield.js +2 -2
  331. package/dist/components/textfield/textfield.module.css +1 -1
  332. package/dist/components/textfield/textfield.stories.d.ts +4 -56
  333. package/dist/components/textfield/textfield.stories.d.ts.map +1 -1
  334. package/dist/components/textfield/textfield.stories.js +1 -1
  335. package/dist/components/title/index.d.ts.map +1 -1
  336. package/dist/components/title/index.js +15 -0
  337. package/dist/components/title/title.d.ts.map +1 -1
  338. package/dist/components/title/title.js +16 -1
  339. package/dist/components/title/title.module.css +1 -1
  340. package/dist/components/title/title.stories.d.ts +1 -0
  341. package/dist/components/title/title.stories.d.ts.map +1 -1
  342. package/dist/components/title/title.stories.js +10 -1
  343. package/dist/components/toggle-button/index.d.ts.map +1 -1
  344. package/dist/components/toggle-button/index.js +15 -0
  345. package/dist/components/toggle-button/toggle-button.d.ts +4 -3
  346. package/dist/components/toggle-button/toggle-button.d.ts.map +1 -1
  347. package/dist/components/toggle-button/toggle-button.js +19 -4
  348. package/dist/components/toggle-button/toggle-button.module.css +1 -1
  349. package/dist/components/toggle-button/toggle-button.stories.d.ts +2 -11
  350. package/dist/components/toggle-button/toggle-button.stories.d.ts.map +1 -1
  351. package/dist/components/toggle-button/toggle-button.stories.js +1 -1
  352. package/dist/components/tooltip/index.d.ts.map +1 -1
  353. package/dist/components/tooltip/index.js +15 -0
  354. package/dist/components/tooltip/tooltip.d.ts.map +1 -1
  355. package/dist/components/tooltip/tooltip.js +3 -1
  356. package/dist/components/tooltip/tooltip.module.css +1 -1
  357. package/dist/components/tooltip/tooltip.stories.js +1 -1
  358. package/dist/index.d.ts.map +1 -1
  359. package/dist/index.js +15 -0
  360. package/dist/providers/index.d.ts.map +1 -1
  361. package/dist/providers/index.js +15 -0
  362. package/dist/providers/overlay.d.ts.map +1 -1
  363. package/dist/providers/overlay.js +15 -0
  364. package/dist/providers/responsive.d.ts.map +1 -1
  365. package/dist/providers/responsive.js +15 -0
  366. package/dist/types/index.d.ts.map +1 -1
  367. package/dist/types/index.js +15 -0
  368. package/dist/types/polymorphic/index.d.ts +1 -6
  369. package/dist/types/polymorphic/index.d.ts.map +1 -1
  370. package/dist/types/polymorphic/index.js +15 -0
  371. package/package.json +6 -6
package/core/basic.css CHANGED
@@ -1 +1 @@
1
- html{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;background-color:var(--global-background);box-sizing:border-box;font-size:100%;line-height:1.5}*,:after,:before{-webkit-tap-highlight-color:hsl(0 100% 47%/20%);box-sizing:inherit;margin:0;outline-offset:5px;transition:outline-offset .2s ease-out}:focus-visible{outline:5px auto Highlight;outline:5px auto -webkit-focus-ring-color;outline-offset:2px}body{font-feature-settings:"calt" off;color:var(--global-foreground);font-family:system-ui,sans-serif;font-size:1.125rem;margin:0;scroll-padding:5rem}::selection{background-color:var(--dimmed-7);color:var(--dimmed-0);text-shadow:none}img{display:block;inline-size:100%;max-inline-size:100%}svg:not([fill]){fill:currentcolor}fieldset{border:0;padding:0}
1
+ @layer core{html{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;background-color:var(--global-background);box-sizing:border-box;font-size:100%;line-height:1.5}*,:after,:before{-webkit-tap-highlight-color:hsl(0 100% 47%/20%);box-sizing:inherit;margin:0;outline-offset:5px;transition:outline-offset .2s ease-out}:focus-visible{outline:5px auto Highlight;outline:5px auto -webkit-focus-ring-color;outline-offset:2px}body{font-feature-settings:"calt" off;color:var(--global-foreground);font-family:system-ui,sans-serif;font-size:1.125rem;margin:0;scroll-padding:5rem}::selection{background-color:var(--dimmed-7);color:var(--dimmed-0);text-shadow:none}img{display:block;inline-size:100%;max-inline-size:100%}svg:not([fill]){fill:currentcolor}fieldset{border:0;padding:0}}
@@ -1 +1 @@
1
- :where(p){font-size:1rem;line-height:1.5;min-block-size:.01vh}small{font-size:.7em}b,strong{font-weight:600}:where(a:any-link){color:var(--global-interactive-text);text-decoration:none;word-break:break-word}:where(a:any-link):not([class]){background-image:linear-gradient(currentcolor,currentcolor);background-position:0 100%;background-repeat:no-repeat;background-size:0 1px;transition:background-size .2s cubic-bezier(0,0,.34,1)}:where(a:any-link):not([class]):focus,:where(a:any-link):not([class]):hover{background-size:100% 1px}del{background-color:var(--highlight-red-background);box-shadow:0 0 0 2px var(--highlight-red-background);color:var(--highlight-red-foreground)}del,ins{border-radius:.25rem;padding:2px 4px}ins{background-color:var(--highlight-green-background);box-shadow:0 0 0 2px var(--highlight-green-background);color:var(--highlight-green-foreground);text-decoration:none}address{font-style:normal;line-height:inherit}dt{font-weight:600}dd{margin:0;padding:0}ol,ul{padding-left:1rem}ul li::marker{font-size:inherit;font-weight:600;min-inline-size:2rem;text-align:right}ol li::marker{font-feature-settings:"tnum";font-size:inherit;font-variant-numeric:tabular-nums;font-weight:600;min-inline-size:2rem;white-space:nowrap}kbd{border:1px solid var(--dimmed-1);border-radius:.25rem;box-shadow:0 2px 0 var(--dimmed-1);font-weight:600;padding:2px 4px}mark{background:var(--highlight-yellow-background);color:var(--highlight-yellow-foreground);padding:0 2px}abbr{text-decoration:underline dashed var(--cta-default)}label,legend{font-size:inherit}code{background-color:var(--global-vibrancy-background);border-radius:.25rem;font-family:monospace;font-size:1em;padding:0 4px 3px}
1
+ @layer core{p{font-size:1rem;line-height:1.5;min-block-size:.01vh}small{font-size:.7em}b,strong{font-weight:600}a:any-link{color:var(--global-interactive-text);text-decoration:none;word-break:break-word}a:any-link:not([class]){background-image:linear-gradient(currentcolor,currentcolor);background-position:0 100%;background-repeat:no-repeat;background-size:0 1px;transition:background-size .2s cubic-bezier(0,0,.34,1)}a:any-link:not([class]):focus,a:any-link:not([class]):hover{background-size:100% 1px}del{background-color:var(--highlight-red-background);box-shadow:0 0 0 2px var(--highlight-red-background);color:var(--highlight-red-foreground)}del,ins{border-radius:.25rem;padding:2px 4px}ins{background-color:var(--highlight-green-background);box-shadow:0 0 0 2px var(--highlight-green-background);color:var(--highlight-green-foreground);text-decoration:none}address{font-style:normal;line-height:inherit}dt{font-weight:600}dd{margin:0;padding:0}ol,ul{padding-left:1rem}ul li::marker{font-size:inherit;font-weight:600;min-inline-size:2rem;text-align:right}ol li::marker{font-feature-settings:"tnum";font-size:inherit;font-variant-numeric:tabular-nums;font-weight:600;min-inline-size:2rem;white-space:nowrap}kbd{border:1px solid var(--dimmed-1);border-radius:.25rem;box-shadow:0 2px 0 var(--dimmed-1);font-weight:600;padding:2px 4px}mark{background:var(--highlight-yellow-background);color:var(--highlight-yellow-foreground);padding:0 2px}abbr{-webkit-text-decoration:underline dashed var(--cta-default);text-decoration:underline dashed var(--cta-default)}label,legend{font-size:inherit}code:not([class*=language-]){color:var(--highlight-magenta-foreground);display:inline-block;font-family:monospace;font-size:.9em;padding:0 4px 3px;position:relative}code:not([class*=language-]):before{background-color:var(--highlight-magenta-background);border-radius:.25rem;content:"";display:block;inset:0 0 2px 0;opacity:.3;position:absolute;z-index:-1}}
package/core.css CHANGED
@@ -1 +1 @@
1
- html{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;background-color:var(--global-background);box-sizing:border-box;font-size:100%;line-height:1.5}*,:after,:before{-webkit-tap-highlight-color:hsl(0 100% 47%/20%);box-sizing:inherit;margin:0;outline-offset:5px;transition:outline-offset .2s ease-out}:focus-visible{outline:5px auto Highlight;outline:5px auto -webkit-focus-ring-color;outline-offset:2px}body{font-feature-settings:"calt" off;color:var(--global-foreground);font-family:system-ui,sans-serif;font-size:1.125rem;margin:0;scroll-padding:5rem}::selection{background-color:var(--dimmed-7);color:var(--dimmed-0);text-shadow:none}img{display:block;inline-size:100%;max-inline-size:100%}svg:not([fill]){fill:currentcolor}fieldset{border:0;padding:0}[data-elevation]{--shadow-color:0deg 0% 0%}[data-elevation-hover="0"]:hover,[data-elevation="0"]{box-shadow:none;transition:box-shadow .1s cubic-bezier(.3,.07,.34,1)}[data-elevation-hover="1"]:hover,[data-elevation="1"]{box-shadow:0 3px 13px hsl(var(--shadow-color)/6%),0 2.5px 4.59px hsl(var(--shadow-color)/4.06%),0 1.34px 2.45px hsl(var(--shadow-color)/2.35%),0 .75px 1.37px hsl(var(--shadow-color)/4%),0 .39px .73px hsl(var(--shadow-color)/1.65%),0 .16px .3px hsl(var(--shadow-color)/.94%);transition:box-shadow .1s cubic-bezier(.3,.07,.34,1)}[data-elevation-hover="2"]:hover,[data-elevation="2"]{box-shadow:0 9px 25px hsl(var(--shadow-color)/8%),0 3.75px 10.44px hsl(var(--shadow-color)/6.35%),0 2.01px 5.58px hsl(var(--shadow-color)/4.75%),0 1.12px 3.13px hsl(var(--shadow-color)/4.5%),0 .6px 1.66px hsl(var(--shadow-color)/4.25%),0 .25px .69px hsl(var(--shadow-color)/3.65%);transition:box-shadow .1s cubic-bezier(.3,.07,.34,1)}[data-elevation-hover="3"]:hover,[data-elevation="3"]{box-shadow:0 18px 40px hsl(var(--shadow-color)/9%),0 7.51px 16.71px hsl(var(--shadow-color)/5.63%),0 4.02px 8.93px hsl(var(--shadow-color)/4.15%),0 2.25px 5px hsl(var(--shadow-color)/4%),0 1.19px 2.66px hsl(var(--shadow-color)/3.85%),0 .49px 1.1px hsl(var(--shadow-color)/3.37%);transition:box-shadow .1s cubic-bezier(.3,.07,.34,1)}[data-elevation-hover="4"]:hover,[data-elevation="4"]{box-shadow:0 33px 78px hsl(var(--shadow-color)/11%),0 12.04px 28.47px hsl(var(--shadow-color)/7.59%),0 5.84px 13.82px hsl(var(--shadow-color)/6.12%),0 2.86px 6.77px hsl(var(--shadow-color)/4.88%),0 1.13px 2.67px hsl(var(--shadow-color)/5.41%);transition:box-shadow .1s cubic-bezier(.3,.07,.34,1)}:where(p){font-size:1rem;line-height:1.5;min-block-size:.01vh}small{font-size:.7em}b,strong{font-weight:600}:where(a:any-link){color:var(--global-interactive-text);text-decoration:none;word-break:break-word}:where(a:any-link):not([class]){background-image:linear-gradient(currentcolor,currentcolor);background-position:0 100%;background-repeat:no-repeat;background-size:0 1px;transition:background-size .2s cubic-bezier(0,0,.34,1)}:where(a:any-link):not([class]):focus,:where(a:any-link):not([class]):hover{background-size:100% 1px}del{background-color:var(--highlight-red-background);box-shadow:0 0 0 2px var(--highlight-red-background);color:var(--highlight-red-foreground)}del,ins{border-radius:.25rem;padding:2px 4px}ins{background-color:var(--highlight-green-background);box-shadow:0 0 0 2px var(--highlight-green-background);color:var(--highlight-green-foreground);text-decoration:none}address{font-style:normal;line-height:inherit}dt{font-weight:600}dd{margin:0;padding:0}ol,ul{padding-left:1rem}ul li::marker{font-size:inherit;font-weight:600;min-inline-size:2rem;text-align:right}ol li::marker{font-feature-settings:"tnum";font-size:inherit;font-variant-numeric:tabular-nums;font-weight:600;min-inline-size:2rem;white-space:nowrap}kbd{border:1px solid var(--dimmed-1);border-radius:.25rem;box-shadow:0 2px 0 var(--dimmed-1);font-weight:600;padding:2px 4px}mark{background:var(--highlight-yellow-background);color:var(--highlight-yellow-foreground);padding:0 2px}abbr{text-decoration:underline dashed var(--cta-default)}label,legend{font-size:inherit}code{background-color:var(--global-vibrancy-background);border-radius:.25rem;font-family:monospace;font-size:1em;padding:0 4px 3px}
1
+ @layer core, utilities, components, overrides;@layer core{@layer core{html{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;background-color:var(--global-background);box-sizing:border-box;font-size:100%;line-height:1.5}*,:after,:before{-webkit-tap-highlight-color:hsl(0 100% 47%/20%);box-sizing:inherit;margin:0;outline-offset:5px;transition:outline-offset .2s ease-out}:focus-visible{outline:5px auto Highlight;outline:5px auto -webkit-focus-ring-color;outline-offset:2px}body{font-feature-settings:"calt" off;color:var(--global-foreground);font-family:system-ui,sans-serif;font-size:1.125rem;margin:0;scroll-padding:5rem}::selection{background-color:var(--dimmed-7);color:var(--dimmed-0);text-shadow:none}img{display:block;inline-size:100%;max-inline-size:100%}svg:not([fill]){fill:currentcolor}fieldset{border:0;padding:0}}}@layer core{[data-elevation]{--shadow-color:0deg 0% 0%}[data-elevation-hover="0"]:hover,[data-elevation="0"]{box-shadow:none;transition:box-shadow .1s cubic-bezier(.3,.07,.34,1)}[data-elevation-hover="1"]:hover,[data-elevation="1"]{box-shadow:0 3px 13px hsl(var(--shadow-color)/6%),0 2.5px 4.59px hsl(var(--shadow-color)/4.06%),0 1.34px 2.45px hsl(var(--shadow-color)/2.35%),0 .75px 1.37px hsl(var(--shadow-color)/4%),0 .39px .73px hsl(var(--shadow-color)/1.65%),0 .16px .3px hsl(var(--shadow-color)/.94%);transition:box-shadow .1s cubic-bezier(.3,.07,.34,1)}[data-elevation-hover="2"]:hover,[data-elevation="2"]{box-shadow:0 9px 25px hsl(var(--shadow-color)/8%),0 3.75px 10.44px hsl(var(--shadow-color)/6.35%),0 2.01px 5.58px hsl(var(--shadow-color)/4.75%),0 1.12px 3.13px hsl(var(--shadow-color)/4.5%),0 .6px 1.66px hsl(var(--shadow-color)/4.25%),0 .25px .69px hsl(var(--shadow-color)/3.65%);transition:box-shadow .1s cubic-bezier(.3,.07,.34,1)}[data-elevation-hover="3"]:hover,[data-elevation="3"]{box-shadow:0 18px 40px hsl(var(--shadow-color)/9%),0 7.51px 16.71px hsl(var(--shadow-color)/5.63%),0 4.02px 8.93px hsl(var(--shadow-color)/4.15%),0 2.25px 5px hsl(var(--shadow-color)/4%),0 1.19px 2.66px hsl(var(--shadow-color)/3.85%),0 .49px 1.1px hsl(var(--shadow-color)/3.37%);transition:box-shadow .1s cubic-bezier(.3,.07,.34,1)}[data-elevation-hover="4"]:hover,[data-elevation="4"]{box-shadow:0 33px 78px hsl(var(--shadow-color)/11%),0 12.04px 28.47px hsl(var(--shadow-color)/7.59%),0 5.84px 13.82px hsl(var(--shadow-color)/6.12%),0 2.86px 6.77px hsl(var(--shadow-color)/4.88%),0 1.13px 2.67px hsl(var(--shadow-color)/5.41%);transition:box-shadow .1s cubic-bezier(.3,.07,.34,1)}}@layer core{@layer core{p{font-size:1rem;line-height:1.5;min-block-size:.01vh}small{font-size:.7em}b,strong{font-weight:600}a:any-link{color:var(--global-interactive-text);text-decoration:none;word-break:break-word}a:any-link:not([class]){background-image:linear-gradient(currentcolor,currentcolor);background-position:0 100%;background-repeat:no-repeat;background-size:0 1px;transition:background-size .2s cubic-bezier(0,0,.34,1)}a:any-link:not([class]):focus,a:any-link:not([class]):hover{background-size:100% 1px}del{background-color:var(--highlight-red-background);box-shadow:0 0 0 2px var(--highlight-red-background);color:var(--highlight-red-foreground)}del,ins{border-radius:.25rem;padding:2px 4px}ins{background-color:var(--highlight-green-background);box-shadow:0 0 0 2px var(--highlight-green-background);color:var(--highlight-green-foreground);text-decoration:none}address{font-style:normal;line-height:inherit}dt{font-weight:600}dd{margin:0;padding:0}ol,ul{padding-left:1rem}ul li::marker{font-size:inherit;font-weight:600;min-inline-size:2rem;text-align:right}ol li::marker{font-feature-settings:"tnum";font-size:inherit;font-variant-numeric:tabular-nums;font-weight:600;min-inline-size:2rem;white-space:nowrap}kbd{border:1px solid var(--dimmed-1);border-radius:.25rem;box-shadow:0 2px 0 var(--dimmed-1);font-weight:600;padding:2px 4px}mark{background:var(--highlight-yellow-background);color:var(--highlight-yellow-foreground);padding:0 2px}abbr{-webkit-text-decoration:underline dashed var(--cta-default);text-decoration:underline dashed var(--cta-default)}label,legend{font-size:inherit}code:not([class*=language-]){color:var(--highlight-magenta-foreground);display:inline-block;font-family:monospace;font-size:.9em;padding:0 4px 3px;position:relative}code:not([class*=language-]):before{background-color:var(--highlight-magenta-background);border-radius:.25rem;content:"";display:block;inset:0 0 2px 0;opacity:.3;position:absolute;z-index:-1}}}
@@ -5,7 +5,7 @@ declare type AccordionContextProps = {
5
5
  defaultOpen?: AccordionItemProps['value'];
6
6
  };
7
7
  export declare const AccordionContextProvider: import("react").FC<import("react").PropsWithChildren<AccordionContextProps>>, useAccordionContext: () => {
8
- openItem: string;
8
+ openItem: string | undefined;
9
9
  setOpen: (value: AccProps['value']) => void;
10
10
  };
11
11
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"accordion-context.d.ts","sourceRoot":"","sources":["../../../src/components/accordion/accordion-context.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEtD,aAAK,QAAQ,GAAG,kBAAkB,CAAA;AAElC,aAAK,qBAAqB,GAAG;IAC3B,WAAW,CAAC,EAAE,kBAAkB,CAAC,OAAO,CAAC,CAAC;CAC3C,CAAA;AAiBD,eAAO,MACL,wBAAwB,gFACxB,mBAAmB;;qBAZiB,QAAQ,CAAC,OAAO,CAAC;CAa7B,CAAC"}
1
+ {"version":3,"file":"accordion-context.d.ts","sourceRoot":"","sources":["../../../src/components/accordion/accordion-context.tsx"],"names":[],"mappings":";AAqBA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEtD,aAAK,QAAQ,GAAG,kBAAkB,CAAA;AAElC,aAAK,qBAAqB,GAAG;IAC3B,WAAW,CAAC,EAAE,kBAAkB,CAAC,OAAO,CAAC,CAAC;CAC3C,CAAA;AAiBD,eAAO,MACL,wBAAwB,gFACxB,mBAAmB;;qBAZiB,QAAQ,CAAC,OAAO,CAAC;CAa7B,CAAC"}
@@ -1,6 +1,21 @@
1
+ /*
2
+ * Copyright 2022 Wonderflow <authored by Mattia Astorino>
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
1
16
  import constate from 'constate';
2
17
  import { useCallback, useState, } from 'react';
3
- const useAccordion = ({ defaultOpen = '', }) => {
18
+ const useAccordion = ({ defaultOpen, }) => {
4
19
  const [openItem, setOpenItem] = useState(defaultOpen);
5
20
  const setOpen = useCallback((value) => {
6
21
  setOpenItem(value);
@@ -1 +1 @@
1
- {"version":3,"file":"accordion-item.d.ts","sourceRoot":"","sources":["../../../src/components/accordion/accordion-item.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAc,eAAe,EAAE,MAAM,cAAc,CAAC;AAK3D,oBAAY,kBAAkB,GAAG,IAAI,CACrC,eAAe,EACf,SAAS,GACR,WAAW,GACX,SAAS,GACT,cAAc,GACd,kBAAkB,CAClB,GAAG;IACF;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,eAAe,CAAC,kBAAkB,CAoB7D,CAAC"}
1
+ {"version":3,"file":"accordion-item.d.ts","sourceRoot":"","sources":["../../../src/components/accordion/accordion-item.tsx"],"names":[],"mappings":"AAkBA,OAAO,EAAc,eAAe,EAAE,MAAM,cAAc,CAAC;AAK3D,oBAAY,kBAAkB,GAAG,IAAI,CACrC,eAAe,EACf,SAAS,GACR,WAAW,GACX,SAAS,GACT,cAAc,GACd,kBAAkB,CAClB,GAAG;IACF;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,eAAe,CAAC,kBAAkB,CAoB7D,CAAC"}
@@ -1,4 +1,19 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
+ /*
3
+ * Copyright 2022 Wonderflow <authored by Mattia Astorino>
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
2
17
  import clsx from 'clsx';
3
18
  import { Disclosure } from '../..';
4
19
  import * as styles from './accordion.module.css';
@@ -1,6 +1,6 @@
1
1
  import { PropsWithChildren } from 'react';
2
2
  import { AccordionItemProps } from '../..';
3
- export declare type AccordionProps = PropsWithChildren<PropsWithClass> & {
3
+ export declare type AccordionProps = PropsWithChildren<PropsWithClass<{
4
4
  /**
5
5
  * Set the item to open by default when the accordion is rendered.
6
6
  */
@@ -9,6 +9,20 @@ export declare type AccordionProps = PropsWithChildren<PropsWithClass> & {
9
9
  * Show visual separator between accordion items
10
10
  */
11
11
  showSeparators?: boolean;
12
- };
13
- export declare const Accordion: import("react").ForwardRefExoticComponent<Pick<AccordionProps, string> & import("react").RefAttributes<HTMLDivElement>>;
12
+ }>>;
13
+ export declare const Accordion: import("react").ForwardRefExoticComponent<{
14
+ style?: Record<string, any> | undefined;
15
+ className?: string | undefined;
16
+ } & {
17
+ /**
18
+ * Set the item to open by default when the accordion is rendered.
19
+ */
20
+ defaultOpen?: string | undefined;
21
+ /**
22
+ * Show visual separator between accordion items
23
+ */
24
+ showSeparators?: boolean | undefined;
25
+ } & {
26
+ children?: import("react").ReactNode;
27
+ } & import("react").RefAttributes<HTMLDivElement>>;
14
28
  //# sourceMappingURL=accordion.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"accordion.d.ts","sourceRoot":"","sources":["../../../src/components/accordion/accordion.tsx"],"names":[],"mappings":"AACA,OAAO,EACO,iBAAiB,EAC9B,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,kBAAkB,EAAS,MAAM,cAAc,CAAC;AAKzD,oBAAY,cAAc,GAAG,iBAAiB,CAAC,cAAc,CAAC,GAAG;IAC/D;;OAEG;IACH,WAAW,CAAC,EAAE,kBAAkB,CAAC,OAAO,CAAC,CAAC;IAC1C;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAA;AAED,eAAO,MAAM,SAAS,yHAkBpB,CAAC"}
1
+ {"version":3,"file":"accordion.d.ts","sourceRoot":"","sources":["../../../src/components/accordion/accordion.tsx"],"names":[],"mappings":"AAiBA,OAAO,EACO,iBAAiB,EAC9B,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,kBAAkB,EAAS,MAAM,cAAc,CAAC;AAKzD,oBAAY,cAAc,GAAG,iBAAiB,CAAC,cAAc,CAAC;IAC5D;;OAEG;IACH,WAAW,CAAC,EAAE,kBAAkB,CAAC,OAAO,CAAC,CAAC;IAC1C;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC,CAAC,CAAA;AAEH,eAAO,MAAM,SAAS;;;;IAVpB;;OAEG;;IAEH;;OAEG;;;;kDAsBH,CAAC"}
@@ -1,4 +1,19 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
+ /*
3
+ * Copyright 2022 Wonderflow <authored by Mattia Astorino>
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
2
17
  import clsx from 'clsx';
3
18
  import { forwardRef, } from 'react';
4
19
  import { Stack } from '../..';
@@ -1 +1 @@
1
- .Accordion[data-accordion-separators=true]>*+*{border-top:1px solid var(--dimmed-1)}.Item{padding-top:.5rem}
1
+ @layer components{.Accordion[data-accordion-separators=true]>*+*{border-top:1px solid var(--dimmed-1)}.Item{padding-top:.5rem}}
@@ -3,6 +3,22 @@ import { ComponentMeta, ComponentStory } from '@storybook/react';
3
3
  import { Accordion } from './accordion';
4
4
  declare const story: ComponentMeta<typeof Accordion>;
5
5
  export default story;
6
- export declare const Default: ComponentStory<import("react").ForwardRefExoticComponent<Pick<import("./accordion").AccordionProps, string> & import("react").RefAttributes<HTMLDivElement>>>;
7
- export declare const Nested: ComponentStory<import("react").ForwardRefExoticComponent<Pick<import("./accordion").AccordionProps, string> & import("react").RefAttributes<HTMLDivElement>>>;
6
+ export declare const Default: ComponentStory<import("react").ForwardRefExoticComponent<{
7
+ style?: Record<string, any> | undefined;
8
+ className?: string | undefined;
9
+ } & {
10
+ defaultOpen?: string | undefined;
11
+ showSeparators?: boolean | undefined;
12
+ } & {
13
+ children?: import("react").ReactNode;
14
+ } & import("react").RefAttributes<HTMLDivElement>>>;
15
+ export declare const Nested: ComponentStory<import("react").ForwardRefExoticComponent<{
16
+ style?: Record<string, any> | undefined;
17
+ className?: string | undefined;
18
+ } & {
19
+ defaultOpen?: string | undefined;
20
+ showSeparators?: boolean | undefined;
21
+ } & {
22
+ children?: import("react").ReactNode;
23
+ } & import("react").RefAttributes<HTMLDivElement>>>;
8
24
  //# sourceMappingURL=accordion.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"accordion.stories.d.ts","sourceRoot":"","sources":["../../../src/components/accordion/accordion.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEjE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC,QAAA,MAAM,KAAK,EAAE,aAAa,CAAC,OAAO,SAAS,CAG1C,CAAC;AAEF,eAAe,KAAK,CAAC;AAyBrB,eAAO,MAAM,OAAO,+JAAoB,CAAC;AA8BzC,eAAO,MAAM,MAAM,+JAA0B,CAAC"}
1
+ {"version":3,"file":"accordion.stories.d.ts","sourceRoot":"","sources":["../../../src/components/accordion/accordion.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEjE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC,QAAA,MAAM,KAAK,EAAE,aAAa,CAAC,OAAO,SAAS,CAG1C,CAAC;AAEF,eAAe,KAAK,CAAC;AAyBrB,eAAO,MAAM,OAAO;;;;;;;;mDAAoB,CAAC;AA8BzC,eAAO,MAAM,MAAM;;;;;;;;mDAA0B,CAAC"}
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Accordion } from './accordion';
3
3
  import { AccordionItem } from './accordion-item';
4
4
  const story = {
5
- title: 'Components/Actions/Accordion',
5
+ title: 'Actions/Accordion',
6
6
  component: Accordion,
7
7
  };
8
8
  export default story;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/accordion/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/accordion/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC"}
@@ -1,2 +1,17 @@
1
+ /*
2
+ * Copyright 2022 Wonderflow <authored by Mattia Astorino>
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
1
16
  export { Accordion } from './accordion';
2
17
  export { AccordionItem } from './accordion-item';
@@ -1 +1 @@
1
- {"version":3,"file":"aspect-ratio.d.ts","sourceRoot":"","sources":["../../../src/components/aspect-ratio/aspect-ratio.tsx"],"names":[],"mappings":"AAIA,oBAAY,gBAAgB,GAAG;IAC7B,KAAK,EAAE,MAAM,CAAC;CACf,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,eAAe,CAAC,gBAAgB,CAUzD,CAAC"}
1
+ {"version":3,"file":"aspect-ratio.d.ts","sourceRoot":"","sources":["../../../src/components/aspect-ratio/aspect-ratio.tsx"],"names":[],"mappings":"AAoBA,oBAAY,gBAAgB,GAAG;IAC7B,KAAK,EAAE,MAAM,CAAC;CACf,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,eAAe,CAAC,gBAAgB,CAUzD,CAAC"}
@@ -1,3 +1,18 @@
1
1
  import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
2
+ /*
3
+ * Copyright 2022 Wonderflow <authored by Mattia Astorino>
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
2
17
  import { Children, cloneElement, isValidElement, } from 'react';
3
18
  export const AspectRatio = ({ children, ratio, }) => (_jsx(_Fragment, { children: Children.map(children, child => isValidElement(child) && cloneElement(child, { style: { ...child.props.style, aspectRatio: ratio } })) }));
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { AspectRatio } from './aspect-ratio';
3
3
  const story = {
4
- title: 'Components/Widgets/Aspect ratio',
4
+ title: 'Widgets/Aspect ratio',
5
5
  component: AspectRatio,
6
6
  };
7
7
  export default story;
@@ -1,3 +1,3 @@
1
- export { AspectRatio } from './aspect-ratio';
2
1
  export type { AspectRatioProps } from './aspect-ratio';
2
+ export { AspectRatio } from './aspect-ratio';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/aspect-ratio/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC5C,YAAY,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/aspect-ratio/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC"}
@@ -1 +1,16 @@
1
+ /*
2
+ * Copyright 2022 Wonderflow <authored by Mattia Astorino>
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
1
16
  export { AspectRatio } from './aspect-ratio';
@@ -1 +1 @@
1
- {"version":3,"file":"autocomplete-option.d.ts","sourceRoot":"","sources":["../../../src/components/autocomplete/autocomplete-option.tsx"],"names":[],"mappings":"AAAA,OAAO,EACO,iBAAiB,EAC9B,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC,OAAO,EAAQ,aAAa,EAAE,MAAM,cAAc,CAAC;AAEnD,oBAAY,uBAAuB,GAAG,iBAAiB,CAAC,cAAc,CAAC,GAAG,MAAM,CAChF,aAAa,EACb,SAAS,GAAG,WAAW,GAAG,aAAa,GAAG,SAAS,CAClD,GAAG;IACF;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACrD;;;OAGG;IACH,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CAC7B,CAAA;AAED,eAAO,MAAM,kBAAkB,qIA0B7B,CAAC"}
1
+ {"version":3,"file":"autocomplete-option.d.ts","sourceRoot":"","sources":["../../../src/components/autocomplete/autocomplete-option.tsx"],"names":[],"mappings":"AAgBA,OAAO,EACO,iBAAiB,EAC9B,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC,OAAO,EAAQ,aAAa,EAAE,MAAM,cAAc,CAAC;AAEnD,oBAAY,uBAAuB,GAAG,iBAAiB,CAAC,cAAc,CAAC,GAAG,MAAM,CAChF,aAAa,EACb,SAAS,GAAG,WAAW,GAAG,aAAa,GAAG,SAAS,CAClD,GAAG;IACF;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACrD;;;OAGG;IACH,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CAC7B,CAAA;AAED,eAAO,MAAM,kBAAkB,qIA0B7B,CAAC"}
@@ -1,4 +1,19 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
+ /*
3
+ * Copyright 2022 Wonderflow <authored by Mattia Astorino>
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
2
17
  import { forwardRef, useCallback, useRef, } from 'react';
3
18
  import { Menu } from '../..';
4
19
  export const AutocompleteOption = forwardRef(({ children, value, onClick, ...otherProps }, forwardedRef) => {
@@ -6,7 +6,7 @@ declare type ValueType = {
6
6
  query: string;
7
7
  value: string;
8
8
  };
9
- export declare type AutocompleteProps = TextfieldProps & {
9
+ export declare type AutocompleteProps = PropsWithClass<TextfieldProps<{
10
10
  /**
11
11
  * The callback called when an option is picked from the list
12
12
  */
@@ -25,7 +25,7 @@ export declare type AutocompleteProps = TextfieldProps & {
25
25
  * Show skeletons while loading options.
26
26
  */
27
27
  busy?: boolean;
28
- };
28
+ }>>;
29
29
  declare type AutocompleteComponent = ForwardRefExoticComponent<AutocompleteProps> & {
30
30
  Option: ForwardRefExoticComponent<AutocompleteOptionProps>;
31
31
  };
@@ -1 +1 @@
1
- {"version":3,"file":"autocomplete.d.ts","sourceRoot":"","sources":["../../../src/components/autocomplete/autocomplete.tsx"],"names":[],"mappings":"AAMA,OAAO,EAC+B,yBAAyB,EAE7D,SAAS,EAEV,MAAM,OAAO,CAAC;AAKf,OAAO,EACmC,cAAc,EACvD,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,OAAO,EAAsB,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAEpF,aAAK,SAAS,GAAG;IACf,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf,CAAA;AAED,oBAAY,iBAAiB,GAAG,cAAc,GAAG;IAC/C;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;IACtC;;;OAGG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC,WAAW,CAAC,CAAC;IACnC;;;OAGG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF,aAAK,qBAAqB,GAAG,yBAAyB,CAAC,iBAAiB,CAAC,GAAG;IAC1E,MAAM,EAAE,yBAAyB,CAAC,uBAAuB,CAAC,CAAC;CAC5D,CAAA;AAqBD,eAAO,MAAM,YAAY,uBA8JE,CAAC"}
1
+ {"version":3,"file":"autocomplete.d.ts","sourceRoot":"","sources":["../../../src/components/autocomplete/autocomplete.tsx"],"names":[],"mappings":"AAsBA,OAAO,EAC+B,yBAAyB,EAG7D,SAAS,EAEV,MAAM,OAAO,CAAC;AAKf,OAAO,EACmC,cAAc,EACvD,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAiB,SAAS,EAAE,MAAM,SAAS,CAAC;AAEnD,OAAO,EAAsB,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAEpF,aAAK,SAAS,GAAG;IACf,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf,CAAA;AAED,oBAAY,iBAAiB,GAAG,cAAc,CAAC,cAAc,CAAC;IAC5D;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;IACtC;;;OAGG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC,WAAW,CAAC,CAAC;IACnC;;;OAGG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC,CAAC,CAAC;AAEJ,aAAK,qBAAqB,GAAG,yBAAyB,CAAC,iBAAiB,CAAC,GAAG;IAC1E,MAAM,EAAE,yBAAyB,CAAC,uBAAuB,CAAC,CAAC;CAC5D,CAAA;AAqBD,eAAO,MAAM,YAAY,uBAmKE,CAAC"}
@@ -1,4 +1,19 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /*
3
+ * Copyright 2022 Wonderflow <authored by Mattia Astorino>
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
2
17
  import { useDebounce, useFocusWithin, useKeyPress, useSize, } from 'ahooks';
3
18
  import { AnimatePresence, domMax, LazyMotion, m, } from 'framer-motion';
4
19
  import { Children, cloneElement, forwardRef, isValidElement, useCallback, useEffect, useMemo, useRef, useState, } from 'react';
@@ -39,7 +54,8 @@ export const Autocomplete = forwardRef(({ children, onChange, disabled, readOnly
39
54
  const items = Children.toArray(children);
40
55
  return debounceQuery
41
56
  ? items.filter((o) => {
42
- const stringToMatch = typeof o.props.children === 'string' ? o.props.children : o.props.children.join('');
57
+ const props = isValidElement(o) && o.props.children;
58
+ const stringToMatch = typeof props === 'string' ? props : props.join('');
43
59
  return stringToMatch?.toLowerCase().includes(debounceQuery.toLowerCase());
44
60
  })
45
61
  : items;
@@ -55,7 +71,9 @@ export const Autocomplete = forwardRef(({ children, onChange, disabled, readOnly
55
71
  },
56
72
  });
57
73
  useKeyPress('esc', () => setIsOpen(false));
58
- const { getTooltipProps, setTooltipRef, setTriggerRef, triggerRef, visible, } = usePopperTooltip({
74
+ const { getTooltipProps, setTooltipRef, setTriggerRef, triggerRef,
75
+ // eslint-disable-next-line @typescript-eslint/naming-convention
76
+ visible, } = usePopperTooltip({
59
77
  delayShow: 0,
60
78
  delayHide: 0,
61
79
  trigger: null,
@@ -1 +1 @@
1
- .Autocomplete{display:contents}.PopUp{z-index:2}.OptionsList{-webkit-overflow-scrolling:touch;max-block-size:var(--max-h);overflow:auto;overscroll-behavior:contain}
1
+ @layer components{.Autocomplete{display:contents}.PopUp{z-index:2}.OptionsList{-webkit-overflow-scrolling:touch;max-block-size:var(--max-h);overflow:auto;overscroll-behavior:contain}}
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
2
2
  import { Chip, List } from '../..';
3
3
  import { Autocomplete } from './autocomplete';
4
4
  const story = {
5
- title: 'Components/Inputs/Autocomplete',
5
+ title: 'Inputs/Autocomplete',
6
6
  component: Autocomplete,
7
7
  args: {
8
8
  invalid: false,
@@ -15,5 +15,5 @@ const BusyTemplate = args => (_jsx(Autocomplete, { onChange: value => console.lo
15
15
  export const Busy = BusyTemplate.bind({});
16
16
  export const WithValue = Template.bind({});
17
17
  WithValue.args = {
18
- value: 1,
18
+ value: '1',
19
19
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/autocomplete/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/autocomplete/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
@@ -1 +1,16 @@
1
+ /*
2
+ * Copyright 2022 Wonderflow <authored by Mattia Astorino>
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
1
16
  export { Autocomplete } from './autocomplete';
@@ -1 +1 @@
1
- {"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../src/components/avatar/avatar.tsx"],"names":[],"mappings":"AACA,OAAO,EAAc,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAItD,oBAAY,WAAW,GAAG,iBAAiB,CAAC,gBAAgB,CAAC,GAAG;IAC9D;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,KAAK,CAAC;CACzC,CAAA;AAED,eAAO,MAAM,MAAM;IAVjB;;OAEG;;IAEH;;OAEG;;oDA0CH,CAAC"}
1
+ {"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../src/components/avatar/avatar.tsx"],"names":[],"mappings":"AAiBA,OAAO,EAAc,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAItD,oBAAY,WAAW,GAAG,iBAAiB,CAAC,gBAAgB,CAAC,GAAG;IAC9D;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,KAAK,CAAC;CACzC,CAAA;AAED,eAAO,MAAM,MAAM;IAVjB;;OAEG;;IAEH;;OAEG;;oDA0CH,CAAC"}
@@ -1,4 +1,19 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /*
3
+ * Copyright 2022 Wonderflow <authored by Mattia Astorino>
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
2
17
  import clsx from 'clsx';
3
18
  import { forwardRef } from 'react';
4
19
  import * as styles from './avatar.module.css';
@@ -1 +1 @@
1
- .Avatar{--size:1.50rem;align-items:flex-end;aspect-ratio:1/1;background-color:var(--highlight-blue-background);border-radius:100%;display:flex;inline-size:var(--size);justify-content:center;overflow:hidden;position:relative}.Avatar[data-avatar-dimension=regular]{--size:2.50rem}.Avatar[data-avatar-dimension=big]{--size:3.00rem}.Avatar img{bottom:0;left:0;max-width:100%;object-fit:cover;position:absolute;right:0;top:0}.Placeholder{height:calc(var(--size) - 25%)}
1
+ @layer components{.Avatar{--size:1.50rem;align-items:flex-end;aspect-ratio:1/1;background-color:var(--highlight-blue-background);border-radius:100%;display:flex;inline-size:var(--size);justify-content:center;overflow:hidden;position:relative}.Avatar[data-avatar-dimension=regular]{--size:2.50rem}.Avatar[data-avatar-dimension=big]{--size:3.00rem}.Avatar img{bottom:0;left:0;max-width:100%;object-fit:cover;position:absolute;right:0;top:0}.Placeholder{height:calc(var(--size) - 25%)}}
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { Avatar } from './avatar';
3
3
  const story = {
4
- title: 'Components/Widgets/Avatar',
4
+ title: 'Widgets/Avatar',
5
5
  component: Avatar,
6
6
  args: {
7
7
  dimension: 'regular',
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/avatar/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/avatar/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC"}
@@ -1 +1,16 @@
1
+ /*
2
+ * Copyright 2022 Wonderflow <authored by Mattia Astorino>
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
1
16
  export { Avatar } from './avatar';
@@ -1 +1 @@
1
- {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/button/button.tsx"],"names":[],"mappings":"AACA,OAAO,EAC+C,UAAU,EAC/D,MAAM,OAAO,CAAC;AAEf,OAAO,EACL,WAAW,EACH,WAAW,EACpB,MAAM,cAAc,CAAC;AAItB,oBAAY,WAAW,GAAG;IACxB;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,MAAM,CAAC;IACxC;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,KAAK,CAAC;IACxC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC;IAC7B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAChC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;IACrC;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,iBAAiB,GAAG,iBAAiB,CAAC,KAAK,IAAI,CAAC;CAC9E,CAAA;AAED,aAAK,iBAAiB,GAAG,WAAW,CAAC,mBAAmB,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC;AAEhF,eAAO,MAAM,MAAM,mBAiEI,CAAC;AAExB,oBAAY,iBAAiB,GAAG,cAAc,GAAG,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM,CAAC,CAAA;AAExF,eAAO,MAAM,YAAY,EAAE,UAAU,CAAC,iBAAiB,CAetD,CAAC"}
1
+ {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/button/button.tsx"],"names":[],"mappings":"AAiBA,OAAO,EAC+C,UAAU,EAC/D,MAAM,OAAO,CAAC;AAEf,OAAO,EACL,WAAW,EACH,WAAW,EACpB,MAAM,cAAc,CAAC;AAItB,oBAAY,WAAW,GAAG;IACxB;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,MAAM,CAAC;IACxC;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,KAAK,CAAC;IACxC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC;IAC7B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAChC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;IACrC;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,iBAAiB,GAAG,iBAAiB,CAAC,KAAK,IAAI,CAAC;CAC9E,CAAA;AAED,aAAK,iBAAiB,GAAG,WAAW,CAAC,mBAAmB,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC;AAEhF,eAAO,MAAM,MAAM,mBAiEI,CAAC;AAExB,oBAAY,iBAAiB,GAAG,cAAc,GAAG,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM,CAAC,CAAA;AAExF,eAAO,MAAM,YAAY,EAAE,UAAU,CAAC,iBAAiB,CAetD,CAAC"}
@@ -1,4 +1,19 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /*
3
+ * Copyright 2022 Wonderflow <authored by Mattia Astorino>
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
2
17
  import clsx from 'clsx';
3
18
  import { Children, cloneElement, forwardRef, isValidElement, useCallback, } from 'react';
4
19
  import { Spinner, Symbol, } from '../..';
@@ -1 +1 @@
1
- .Button{-webkit-touch-callout:none;grid-gap:.5rem;align-items:center;appearance:none;background:none;border:0;border-radius:.25rem;box-sizing:border-box;cursor:pointer;display:inline-flex;font-family:inherit;font-weight:600;justify-content:center;margin:0;min-inline-size:min-content;overflow:hidden;position:relative;text-decoration:none;transition:all .1s cubic-bezier(.3,.07,.34,1);-webkit-user-select:none;user-select:none;white-space:nowrap}.Button:not([aria-pressed=true],[aria-disabled=true],[aria-busy=true]):active{transform:scale(.98);transform-origin:center}.Button[data-button-dimension=big]{block-size:3rem;font-size:1.13rem;padding:.55rem 1.5rem .66rem}.Button[data-button-dimension=regular]{block-size:2.5rem;font-size:1rem;padding:.33rem 1rem .5rem}.Button[data-button-dimension=small]{grid-gap:.25rem;block-size:1.5rem;font-size:.88rem;padding:0 .5rem .11rem}.Button[data-button-kind=primary]{background:var(--cta-default);color:var(--cta-foreground)}.Button[data-button-kind=primary]:where([aria-pressed=true]),.Button[data-button-kind=primary]:where([aria-pressed=true]:hover){background:#9e0018;color:#fff}.Button[data-button-kind=primary]:not([aria-pressed=true],[aria-disabled=true],[aria-busy=true]):is(:hover){background:var(--cta-dark)}.Button[data-button-kind=secondary]{-webkit-backdrop-filter:saturate(180%) blur(62px);backdrop-filter:saturate(180%) blur(62px);background-color:var(--global-vibrancy-background);color:var(--global-vibrancy-foreground)}.Button[data-button-kind=secondary]:where([aria-pressed=true]),.Button[data-button-kind=secondary]:where([aria-pressed=true]:hover){background:var(--dimmed-7);color:var(--dimmed-0)}.Button[data-button-kind=secondary]:not([aria-pressed=true],[aria-disabled=true],[aria-busy=true]):is(:hover){background-color:var(--global-vibrancy-background-hard);color:var(--global-vibrancy-foreground)}.Button[data-button-kind=flat]{color:var(--global-vibrancy-foreground)}.Button[data-button-kind=flat]:where([aria-pressed=true]),.Button[data-button-kind=flat]:where([aria-pressed=true]:is(:active,:focus)){background:var(--dimmed-7);color:var(--dimmed-0)}.Button[data-button-kind=flat]:is(:hover,:focus){-webkit-backdrop-filter:saturate(180%) blur(62px);backdrop-filter:saturate(180%) blur(62px);background-color:var(--global-vibrancy-background);color:var(--global-vibrancy-foreground)}.Button[data-button-kind=flat]:not([aria-pressed=true],[aria-disabled=true],[aria-busy=true]):is(:hover){background-color:var(--global-vibrancy-background)}.Button[data-button-fullwidth=true]{inline-size:100%}.Button[data-button-icon-position=right]{flex-direction:row-reverse}.Button[aria-disabled=true],.Button[aria-disabled=true]:is(:hover,:focus,:active){-webkit-backdrop-filter:saturate(180%) blur(62px);backdrop-filter:saturate(180%) blur(62px);background-color:var(--global-disabled-background);color:var(--global-disabled-foreground);cursor:not-allowed;pointer-events:none}.Button[aria-busy=true]{pointer-events:none}.Button[aria-busy=true]>:not(.SpinnerIndicator){visibility:hidden}.SpinnerIndicator{bottom:0;display:grid;left:0;place-content:center;position:absolute;right:0;top:0}.ButtonsGroup{display:inline-flex}.ButtonsGroup>*+*{box-shadow:inset 1px 0 0 hsla(0,0%,40%,.2)}.ButtonsGroup>:not(:first-child,:last-child,:only-of-type){border-radius:0}.ButtonsGroup>:first-child:not(:only-of-type){border-bottom-right-radius:0;border-top-right-radius:0}.ButtonsGroup>:last-child:not(:only-of-type){border-bottom-left-radius:0;border-top-left-radius:0}
1
+ @layer components{.Button{-webkit-touch-callout:none;grid-gap:.5rem;align-items:center;appearance:none;background:none;border:0;border-radius:.25rem;box-sizing:border-box;cursor:pointer;display:inline-flex;font-family:inherit;font-weight:600;justify-content:center;margin:0;min-inline-size:min-content;overflow:hidden;position:relative;text-decoration:none;transition:all .1s cubic-bezier(.3,.07,.34,1);-webkit-user-select:none;user-select:none;white-space:nowrap}.Button:not([aria-pressed=true],[aria-disabled=true],[aria-busy=true]):active{transform:scale(.98);transform-origin:center}.Button[data-button-dimension=big]{block-size:3rem;font-size:1.13rem;padding:.55rem 1.5rem .66rem}.Button[data-button-dimension=regular]{block-size:2.5rem;font-size:1rem;padding:.33rem 1rem .5rem}.Button[data-button-dimension=small]{grid-gap:.25rem;block-size:1.5rem;font-size:.88rem;padding:0 .5rem .11rem}.Button[data-button-kind=primary]{background:var(--cta-default);color:var(--cta-foreground)}.Button[data-button-kind=primary]:where([aria-pressed=true]),.Button[data-button-kind=primary]:where([aria-pressed=true]:hover){background:#9e0018;color:#fff}.Button[data-button-kind=primary]:not([aria-pressed=true],[aria-disabled=true],[aria-busy=true]):is(:hover){background:var(--cta-dark)}.Button[data-button-kind=secondary]{-webkit-backdrop-filter:saturate(180%) blur(62px);backdrop-filter:saturate(180%) blur(62px);background-color:var(--global-vibrancy-background);color:var(--global-vibrancy-foreground)}.Button[data-button-kind=secondary]:where([aria-pressed=true]),.Button[data-button-kind=secondary]:where([aria-pressed=true]:hover){background:var(--dimmed-7);color:var(--dimmed-0)}.Button[data-button-kind=secondary]:not([aria-pressed=true],[aria-disabled=true],[aria-busy=true]):is(:hover){background-color:var(--global-vibrancy-background-hard);color:var(--global-vibrancy-foreground)}.Button[data-button-kind=flat]{color:var(--global-vibrancy-foreground)}.Button[data-button-kind=flat]:where([aria-pressed=true]),.Button[data-button-kind=flat]:where([aria-pressed=true]:is(:active,:focus)){background:var(--dimmed-7);color:var(--dimmed-0)}.Button[data-button-kind=flat]:is(:hover,:focus){-webkit-backdrop-filter:saturate(180%) blur(62px);backdrop-filter:saturate(180%) blur(62px);background-color:var(--global-vibrancy-background);color:var(--global-vibrancy-foreground)}.Button[data-button-kind=flat]:not([aria-pressed=true],[aria-disabled=true],[aria-busy=true]):is(:hover){background-color:var(--global-vibrancy-background)}.Button[data-button-fullwidth=true]{inline-size:100%}.Button[data-button-icon-position=right]{flex-direction:row-reverse}.Button[aria-disabled=true],.Button[aria-disabled=true]:is(:hover,:focus,:active){-webkit-backdrop-filter:saturate(180%) blur(62px);backdrop-filter:saturate(180%) blur(62px);background-color:var(--global-disabled-background);color:var(--global-disabled-foreground);cursor:not-allowed;pointer-events:none}.Button[aria-busy=true]{pointer-events:none}.Button[aria-busy=true]>:not(.SpinnerIndicator){visibility:hidden}.SpinnerIndicator{bottom:0;display:grid;left:0;place-content:center;position:absolute;right:0;top:0}.ButtonsGroup{display:inline-flex}.ButtonsGroup>*+*{box-shadow:inset 1px 0 0 hsla(0,0%,40%,.2)}.ButtonsGroup>:not(:first-child,:last-child,:only-of-type){border-radius:0}.ButtonsGroup>:first-child:not(:only-of-type){border-bottom-right-radius:0;border-top-right-radius:0}.ButtonsGroup>:last-child:not(:only-of-type){border-bottom-left-radius:0;border-top-left-radius:0}}
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Button, ButtonsGroup } from './button';
3
3
  const story = {
4
- title: 'Components/Actions/Button',
4
+ title: 'Actions/Button',
5
5
  component: Button,
6
6
  args: {
7
7
  dimension: 'regular',
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/button/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/button/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC"}
@@ -1 +1,16 @@
1
+ /*
2
+ * Copyright 2022 Wonderflow <authored by Mattia Astorino>
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
1
16
  export { Button, ButtonsGroup } from './button';
@@ -1 +1 @@
1
- .Card{background-color:var(--global-background);border-radius:var(--radius);padding:var(--padding);position:relative}.Card[data-card-highlight-hover=true]:is(:hover,:focus-visible){background-color:var(--dimmed-0)}.Card[data-card-dimmed="0"]{background-color:var(--dimmed-0)}.Card[data-card-dimmed="0"][data-card-highlight-hover=true]:is(:hover,:focus-visible){background-color:var(--global-background)}.Card[data-card-dimmed="0"][data-card-bordered=true]{border:1px solid var(--dimmed-1)}.Card[data-card-dimmed="1"]{background-color:var(--dimmed-1)}.Card[data-card-dimmed="1"][data-card-highlight-hover=true]:is(:hover,:focus-visible){background-color:var(--dimmed-0)}.Card[data-card-dimmed="1"][data-card-bordered=true]{border:1px solid var(--dimmed-2)}.Card[data-card-dimmed="2"]{background-color:var(--dimmed-2)}.Card[data-card-dimmed="2"][data-card-highlight-hover=true]:is(:hover,:focus-visible){background-color:var(--dimmed-1)}.Card[data-card-dimmed="2"][data-card-bordered=true]{border:1px solid var(--dimmed-3)}.Card[data-card-vibrant=true]{-webkit-backdrop-filter:saturate(180%) blur(62px);backdrop-filter:saturate(180%) blur(62px);background-color:var(--global-vibrancy-background)}.Card[data-card-vibrant=true][data-card-highlight-hover=true]:is(:hover,:focus-visible){background-color:var(--global-vibrancy-background-soft)}.Card[data-card-vibrant=true][data-card-dimmed="0"]{background-color:var(--global-vibrancy-background-soft)}.Card[data-card-vibrant=true][data-card-dimmed="0"][data-card-highlight-hover=true]:is(:hover,:focus-visible){background-color:var(--global-background)}.Card[data-card-vibrant=true][data-card-dimmed="1"]{background-color:var(--global-vibrancy-background)}.Card[data-card-vibrant=true][data-card-dimmed="1"][data-card-highlight-hover=true]:is(:hover,:focus-visible){background-color:var(--global-vibrancy-background-soft)}.Card[data-card-vibrant=true][data-card-dimmed="2"]{background-color:var(--global-vibrancy-background-hard)}.Card[data-card-vibrant=true][data-card-dimmed="2"][data-card-highlight-hover=true]:is(:hover,:focus-visible){background-color:var(--global-vibrancy-background)}.Left{flex-shrink:0}.Content{flex-grow:1}.Right{flex-shrink:0}
1
+ @layer components{.Card{background-color:var(--global-background);border-radius:var(--radius);padding:var(--padding);position:relative}.Card[data-card-highlight-hover=true]:is(:hover,:focus-visible){background-color:var(--dimmed-0)}.Card[data-card-dimmed="0"]{background-color:var(--dimmed-0)}.Card[data-card-dimmed="0"][data-card-highlight-hover=true]:is(:hover,:focus-visible){background-color:var(--global-background)}.Card[data-card-dimmed="0"][data-card-bordered=true]{border:1px solid var(--dimmed-1)}.Card[data-card-dimmed="1"]{background-color:var(--dimmed-1)}.Card[data-card-dimmed="1"][data-card-highlight-hover=true]:is(:hover,:focus-visible){background-color:var(--dimmed-0)}.Card[data-card-dimmed="1"][data-card-bordered=true]{border:1px solid var(--dimmed-2)}.Card[data-card-dimmed="2"]{background-color:var(--dimmed-2)}.Card[data-card-dimmed="2"][data-card-highlight-hover=true]:is(:hover,:focus-visible){background-color:var(--dimmed-1)}.Card[data-card-dimmed="2"][data-card-bordered=true]{border:1px solid var(--dimmed-3)}.Card[data-card-vibrant=true]{-webkit-backdrop-filter:saturate(180%) blur(62px);backdrop-filter:saturate(180%) blur(62px);background-color:var(--global-vibrancy-background)}.Card[data-card-vibrant=true][data-card-highlight-hover=true]:is(:hover,:focus-visible){background-color:var(--global-vibrancy-background-soft)}.Card[data-card-vibrant=true][data-card-dimmed="0"]{background-color:var(--global-vibrancy-background-soft)}.Card[data-card-vibrant=true][data-card-dimmed="0"][data-card-highlight-hover=true]:is(:hover,:focus-visible){background-color:var(--global-background)}.Card[data-card-vibrant=true][data-card-dimmed="1"]{background-color:var(--global-vibrancy-background)}.Card[data-card-vibrant=true][data-card-dimmed="1"][data-card-highlight-hover=true]:is(:hover,:focus-visible){background-color:var(--global-vibrancy-background-soft)}.Card[data-card-vibrant=true][data-card-dimmed="2"]{background-color:var(--global-vibrancy-background-hard)}.Card[data-card-vibrant=true][data-card-dimmed="2"][data-card-highlight-hover=true]:is(:hover,:focus-visible){background-color:var(--global-vibrancy-background)}.Left{flex-shrink:0}.Content{flex-grow:1}.Right{flex-shrink:0}}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/card/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/card/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC"}