@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
@@ -1,7 +1,7 @@
1
- import { PropsWithChildren } from 'react';
1
+ /// <reference types="react" />
2
2
  import { Polymorphic } from '../..';
3
3
  import { ListItemProps } from './list-item';
4
- export declare type ListProps = PropsWithChildren<{
4
+ export declare type ListProps = {
5
5
  /**
6
6
  * Set the dimension of the items in the list. This affects also the marker size.
7
7
  */
@@ -10,7 +10,7 @@ export declare type ListProps = PropsWithChildren<{
10
10
  * Set to show or hide the marker indicator beside each item in the list.
11
11
  */
12
12
  hideMarker?: boolean;
13
- }>;
13
+ };
14
14
  declare type PolymorphicList = Polymorphic.ForwardRefComponent<'ul', ListProps> & {
15
15
  Li: React.ForwardRefExoticComponent<ListItemProps>;
16
16
  };
@@ -1 +1 @@
1
- {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/components/list/list.tsx"],"names":[],"mappings":"AACA,OAAO,EAC+C,iBAAiB,EACtE,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAG3C,OAAO,EAAY,aAAa,EAAE,MAAM,aAAa,CAAC;AAEtD,oBAAY,SAAS,GAAG,iBAAiB,CAAC;IACxC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,KAAK,CAAC;IACxC;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC,CAAA;AAEF,aAAK,eAAe,GAAG,WAAW,CAAC,mBAAmB,CAAC,IAAI,EAAE,SAAS,CAAC,GAAG;IACxE,EAAE,EAAE,KAAK,CAAC,yBAAyB,CAAC,aAAa,CAAC,CAAC;CACpD,CAAC;AAEF,eAAO,MAAM,IAAI,iBA4BI,CAAC"}
1
+ {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/components/list/list.tsx"],"names":[],"mappings":";AAqBA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAG3C,OAAO,EAAY,aAAa,EAAE,MAAM,aAAa,CAAC;AAEtD,oBAAY,SAAS,GAAG;IACtB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,KAAK,CAAC;IACxC;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAA;AAED,aAAK,eAAe,GAAG,WAAW,CAAC,mBAAmB,CAAC,IAAI,EAAE,SAAS,CAAC,GAAG;IACxE,EAAE,EAAE,KAAK,CAAC,yBAAyB,CAAC,aAAa,CAAC,CAAC;CACpD,CAAC;AAEF,eAAO,MAAM,IAAI,iBA4BI,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 { Children, cloneElement, forwardRef, isValidElement, useMemo, } from 'react';
4
19
  import * as styles from './list.module.css';
@@ -1 +1 @@
1
- .List{--marker-size:1.00rem;--marker-gap:0.50rem}.List[data-list-ordered=false]{list-style:none;padding:0}.List[data-list-size=small]{--marker-size:0.75rem;--marker-gap:0.50rem}.List[data-list-size=big]{--marker-size:1.13rem;--marker-gap:1.00rem}.List[data-list-no-marker=true]{--marker-size:0;--marker-gap:0;list-style:none;padding:0}.ListItem.ListItem{gap:var(--marker-gap)}[data-list-ordered=true] .ListItem.ListItem{display:list-item}[data-list-ordered=true] .ListItem.ListItem::marker{color:var(--dimmed-5)}.Marker{block-size:var(--marker-size);flex-shrink:0;inline-size:var(--marker-size);margin-block-start:calc(var(--marker-size)/2.5)}.List[data-list-size=big] .Marker{margin-block-start:calc(var(--marker-size)/2.8)}
1
+ @layer components{.List{--marker-size:1.00rem;--marker-gap:0.50rem}.List[data-list-ordered=false]{list-style:none;padding:0}.List[data-list-size=small]{--marker-size:0.75rem;--marker-gap:0.50rem}.List[data-list-size=big]{--marker-size:1.13rem;--marker-gap:1.00rem}.List[data-list-no-marker=true]{--marker-size:0;--marker-gap:0;list-style:none;padding:0}.Marker{block-size:var(--marker-size);flex-shrink:0;inline-size:var(--marker-size);margin-block-start:calc(var(--marker-size)/2.5)}.List[data-list-size=big] .Marker{margin-block-start:calc(var(--marker-size)/2.8)}}@layer overrides{.ListItem{gap:var(--marker-gap)}[data-list-ordered=true] .ListItem{display:list-item}[data-list-ordered=true] .ListItem::marker{color:var(--dimmed-5)}}
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { List } from './list';
3
3
  const story = {
4
- title: 'Components/Typography/List',
4
+ title: 'Typography/List',
5
5
  component: List,
6
6
  args: {
7
7
  hideMarker: false,
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/masonry/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/masonry/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,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 { Masonry } from './masonry';
@@ -1 +1 @@
1
- {"version":3,"file":"masonry.d.ts","sourceRoot":"","sources":["../../../src/components/masonry/masonry.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAU/D,aAAK,OAAO,GAAG;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAA;AAED,oBAAY,YAAY,GAAG;IACzB;;;OAGG;IACH,MAAM,CAAC,EAAE,CAAC,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;IAClC;;;;;;;;;;;;;;;;;OAiBG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B,CAAA;AAED,eAAO,MAAM,OAAO,EAAE,eAAe,CAAC,YAAY,CA6CjD,CAAC"}
1
+ {"version":3,"file":"masonry.d.ts","sourceRoot":"","sources":["../../../src/components/masonry/masonry.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAU/D,aAAK,OAAO,GAAG;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAA;AAED,oBAAY,YAAY,GAAG;IACzB;;;OAGG;IACH,MAAM,CAAC,EAAE,CAAC,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;IAClC;;;;;;;;;;;;;;;;;OAiBG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B,CAAA;AAED,eAAO,MAAM,OAAO,EAAE,eAAe,CAAC,YAAY,CA6CjD,CAAC"}
@@ -1 +1 @@
1
- .Masonry{display:flex;margin-left:calc(var(--gutter)*-1);width:auto}.Column{background-clip:padding-box;padding-left:var(--gutter)}.Column>*{margin-bottom:var(--gutter)}
1
+ @layer components{.Masonry{display:flex;margin-left:calc(var(--gutter)*-1);width:auto}.Column{background-clip:padding-box;padding-left:var(--gutter)}.Column>*{margin-bottom:var(--gutter)}}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/menu/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,uBAAuB,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,YAAY,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/menu/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,YAAY,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC"}
@@ -1,3 +1,18 @@
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 { Menu } from './menu';
2
17
  export { MenuItem } from './menu-item/menu-item';
3
18
  export { MenuItemCheckbox } from './menu-item/menu-item-checkbox';
@@ -1 +1 @@
1
- {"version":3,"file":"menu-item-checkbox.d.ts","sourceRoot":"","sources":["../../../../src/components/menu/menu-item/menu-item-checkbox.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEpE,oBAAY,qBAAqB,GAAG,aAAa,GAAG;IAClD;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAA;AAED,aAAK,yBAAyB,GAAG,WAAW,CAAC,mBAAmB,CAChE,WAAW,CAAC,gBAAgB,CAAC,OAAO,QAAQ,CAAC,EAC7C,WAAW,CAAC,QAAQ,CAAC,OAAO,QAAQ,CAAC,GAAG,qBAAqB,CAC5D,CAAC;AAEF,eAAO,MAAM,gBAAgB,2BAaE,CAAC"}
1
+ {"version":3,"file":"menu-item-checkbox.d.ts","sourceRoot":"","sources":["../../../../src/components/menu/menu-item/menu-item-checkbox.tsx"],"names":[],"mappings":"AAkBA,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEpE,oBAAY,qBAAqB,GAAG,aAAa,GAAG;IAClD;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAA;AAED,aAAK,yBAAyB,GAAG,WAAW,CAAC,mBAAmB,CAChE,WAAW,CAAC,gBAAgB,CAAC,OAAO,QAAQ,CAAC,EAC7C,WAAW,CAAC,QAAQ,CAAC,OAAO,QAAQ,CAAC,GAAG,qBAAqB,CAC5D,CAAC;AAEF,eAAO,MAAM,gBAAgB,2BAaE,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 } from 'react';
3
18
  import { MenuItem } from '../../..';
4
19
  export const MenuItemCheckbox = forwardRef(({ children, checked, ...otherProps }, forwardedRef) => (_jsx(MenuItem, { role: "menuitemcheckbox", "aria-checked": checked, ref: forwardedRef, ...otherProps, children: children })));
@@ -1 +1 @@
1
- {"version":3,"file":"menu-item.d.ts","sourceRoot":"","sources":["../../../../src/components/menu/menu-item/menu-item.tsx"],"names":[],"mappings":"AACA,OAAO,EACO,SAAS,EACtB,MAAM,OAAO,CAAC;AAGf,OAAO,EACL,WAAW,EAAiB,WAAW,EACxC,MAAM,cAAc,CAAC;AAItB,oBAAY,aAAa,GAAG;IAC1B;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC;IAC7B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAChC;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAChC;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAChD;;;OAGG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,CAAA;AAED,aAAK,mBAAmB,GAAG,WAAW,CAAC,mBAAmB,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC;AAEpF,eAAO,MAAM,QAAQ,qBA8FI,CAAC"}
1
+ {"version":3,"file":"menu-item.d.ts","sourceRoot":"","sources":["../../../../src/components/menu/menu-item/menu-item.tsx"],"names":[],"mappings":"AAiBA,OAAO,EACO,SAAS,EACtB,MAAM,OAAO,CAAC;AAGf,OAAO,EACL,WAAW,EAAiB,WAAW,EACxC,MAAM,cAAc,CAAC;AAItB,oBAAY,aAAa,GAAG;IAC1B;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC;IAC7B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAChC;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAChC;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAChD;;;OAGG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,CAAA;AAED,aAAK,mBAAmB,GAAG,WAAW,CAAC,mBAAmB,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC;AAEpF,eAAO,MAAM,QAAQ,qBA8FI,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, useCallback, useMemo, useRef, } from 'react';
4
19
  import { useFocusEffect, useRovingTabIndex } from 'react-roving-tabindex';
@@ -6,9 +21,9 @@ import { Stack, Symbol, Tooltip, } from '../../..';
6
21
  import * as styles from './menu-item.module.css';
7
22
  export const MenuItem = forwardRef(({ className, children, onClick, icon, dimension = 'regular', as: Wrapper = 'button', iconPosition = 'left', description, padding = true, disabled = false, autoFocus, decoration, value, ...otherProps }, forwardedRef) => {
8
23
  const itemRef = useRef(forwardedRef);
9
- const [tabIndex, focused, handleKeyDown, handleClick] = useRovingTabIndex(itemRef, disabled);
24
+ const [tabIndex, isFocused, handleKeyDown, handleClick] = useRovingTabIndex(itemRef, disabled);
10
25
  const isIconRight = iconPosition === 'right';
11
- useFocusEffect(focused, itemRef);
26
+ useFocusEffect(isFocused, itemRef);
12
27
  const triggerClick = useCallback((e) => {
13
28
  if (onClick) {
14
29
  handleClick();
@@ -17,7 +32,7 @@ export const MenuItem = forwardRef(({ className, children, onClick, icon, dimens
17
32
  }, [handleClick, onClick, value]);
18
33
  const InnerContent = useMemo(() => (_jsxs(Stack, { direction: isIconRight ? 'row-reverse' : 'row', as: "span", fill: false, className: styles.ItemContent, hAlign: isIconRight ? 'space-between' : 'start', vAlign: "center", columnGap: 8, hPadding: 16, vPadding: 8, "data-menu-item-icon-right": isIconRight, "data-menu-item-has-icon": Boolean(icon), "data-menu-item-padding": padding, style: { inlineSize: '100%' }, children: [icon && (_jsx(Symbol, { className: styles.Icon, source: icon, dimension: dimension === 'small' ? 12 : 16 })), _jsxs(Stack, { className: styles.DecorationContent, columnGap: 16, fill: false, direction: "row", hAlign: "space-between", children: [children, decoration] })] })), [children, dimension, icon, isIconRight, decoration, padding]);
19
34
  return (_jsx(Stack, { as: "li", role: "none", children: _jsx(Wrapper, { autoFocus: autoFocus, ref: itemRef, role: "menuitem", className: clsx(styles.MenuItem, className), onClick: disabled ? undefined : triggerClick, onKeyDown: disabled ? undefined : handleKeyDown, tabIndex: tabIndex, "aria-disabled": disabled, type: Wrapper === 'button' ? 'button' : undefined, "data-menu-item-dimension": dimension, ...otherProps, children: description
20
- ? (_jsx(Tooltip, { fill: true, open: focused, placement: "right-start", interactive: true, trigger: InnerContent, children: description }))
35
+ ? (_jsx(Tooltip, { fill: true, open: isFocused, placement: "right-start", interactive: true, trigger: InnerContent, children: description }))
21
36
  : InnerContent }) }));
22
37
  });
23
38
  MenuItem.displayName = 'Menu.Item';
@@ -1 +1 @@
1
- .MenuItem{--padding:2.50rem;background:none;border:0;box-sizing:border-box;color:var(--dimmed-6);cursor:pointer;font:inherit;font-size:1rem;font-weight:600;inline-size:100%;padding:0;position:relative;text-align:start}.MenuItem:hover{color:var(--global-foreground)}.MenuItem[aria-checked=true]{color:var(--global-interactive-text)}.MenuItem:before{border-radius:.25rem;bottom:0;content:"";left:.5rem;opacity:.6;position:absolute;right:.5rem;top:0;z-index:0}.MenuItem:is(:hover,:focus-visible,[aria-pressed=true]):not([aria-disabled=true]){outline:none}.MenuItem:is(:hover,:focus-visible,[aria-pressed=true]):not([aria-disabled=true]):before{background-color:var(--dimmed-1)}.MenuItem[data-menu-item-dimension=small]{--padding:2.25rem;font-size:.88rem}.MenuItem>*{position:relative}.MenuItem[aria-disabled=true]{color:var(--global-disabled-foreground);cursor:not-allowed}.MenuItem [data-menu-item-padding=true][data-menu-item-has-icon=false][data-menu-item-icon-right=false]{padding-left:var(--padding)}.MenuItem [data-menu-item-padding=true][data-menu-item-has-icon=false][data-menu-item-icon-right=true]{padding-right:var(--padding)}.ItemContent{position:relative}.DecorationContent{flex-grow:1}.Icon{align-self:flex-start;flex-grow:0;flex-shrink:0;margin-top:4px}
1
+ @layer components{.MenuItem{--padding:2.50rem;background:none;border:0;box-sizing:border-box;color:var(--dimmed-6);cursor:pointer;font:inherit;font-size:1rem;font-weight:600;inline-size:100%;padding:0;position:relative;text-align:start}.MenuItem:hover{color:var(--global-foreground)}.MenuItem[aria-checked=true]{color:var(--global-interactive-text)}.MenuItem:before{border-radius:.25rem;bottom:0;content:"";left:.5rem;opacity:.6;position:absolute;right:.5rem;top:0;z-index:0}.MenuItem:is(:hover,:focus-visible,[aria-pressed=true]):not([aria-disabled=true]){outline:none}.MenuItem:is(:hover,:focus-visible,[aria-pressed=true]):not([aria-disabled=true]):before{background-color:var(--dimmed-1)}.MenuItem[data-menu-item-dimension=small]{--padding:2.25rem;font-size:.88rem}.MenuItem>*{position:relative}.MenuItem[aria-disabled=true]{color:var(--global-disabled-foreground);cursor:not-allowed}.MenuItem [data-menu-item-padding=true][data-menu-item-has-icon=false][data-menu-item-icon-right=false]{padding-left:var(--padding)}.MenuItem [data-menu-item-padding=true][data-menu-item-has-icon=false][data-menu-item-icon-right=true]{padding-right:var(--padding)}.ItemContent{position:relative}.DecorationContent{flex-grow:1}.Icon{align-self:flex-start;flex-grow:0;flex-shrink:0;margin-top:4px}}
@@ -3,7 +3,7 @@ import { useState } from 'react';
3
3
  import { Chip, Text } from '../..';
4
4
  import { Menu } from '..';
5
5
  const story = {
6
- title: 'Components/Navigation/Menu/Menu Item',
6
+ title: 'Navigation/Menu/Menu Item',
7
7
  component: Menu.Item,
8
8
  args: {
9
9
  dimension: 'regular',
@@ -1 +1 @@
1
- {"version":3,"file":"menu-separator.d.ts","sourceRoot":"","sources":["../../../../src/components/menu/menu-separator/menu-separator.tsx"],"names":[],"mappings":";AAEA,eAAO,MAAM,aAAa,mBAAsE,CAAC"}
1
+ {"version":3,"file":"menu-separator.d.ts","sourceRoot":"","sources":["../../../../src/components/menu/menu-separator/menu-separator.tsx"],"names":[],"mappings":";AAkBA,eAAO,MAAM,aAAa,mBAAsE,CAAC"}
@@ -1,3 +1,18 @@
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 { Separator, Stack } from '../../..';
3
18
  export const MenuSeparator = () => _jsx(Stack, { as: "li", role: "none", vPadding: 8, children: _jsx(Separator, {}) });
@@ -1 +1 @@
1
- {"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../../src/components/menu/menu.tsx"],"names":[],"mappings":"AAEA,OAAO,EACsB,yBAAyB,EAAE,cAAc,EAAE,SAAS,EAChF,MAAM,OAAO,CAAC;AAGf,OAAO,EAAY,WAAW,EAAS,MAAM,cAAc,CAAC;AAG5D,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AACzF,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAEhE,oBAAY,SAAS,GAAG,cAAc,CAAC,gBAAgB,CAAC,GAAG;IACzD;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAA;AAED,aAAK,aAAa,GAAG,yBAAyB,CAAC,SAAS,CAAC,GAAG;IAC1D,IAAI,EAAE,WAAW,CAAC,mBAAmB,CACrC,WAAW,CAAC,gBAAgB,CAAC,OAAO,QAAQ,CAAC,EAC7C,WAAW,CAAC,QAAQ,CAAC,OAAO,QAAQ,CAAC,GAAG,aAAa,CACpD,CAAC;IACF,YAAY,EAAE,WAAW,CAAC,mBAAmB,CAC7C,WAAW,CAAC,gBAAgB,CAAC,OAAO,gBAAgB,CAAC,EACrD,WAAW,CAAC,QAAQ,CAAC,OAAO,gBAAgB,CAAC,GAAG,qBAAqB,CACpE,CAAC;IACF,SAAS,EAAE,OAAO,aAAa,CAAC;CACjC,CAAA;AAED,eAAO,MAAM,IAAI,eA6BE,CAAC"}
1
+ {"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../../src/components/menu/menu.tsx"],"names":[],"mappings":"AAiBA,OAAO,EACsB,yBAAyB,EAAE,cAAc,EAAE,SAAS,EAChF,MAAM,OAAO,CAAC;AAGf,OAAO,EAAY,WAAW,EAAS,MAAM,cAAc,CAAC;AAG5D,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AACzF,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAEhE,oBAAY,SAAS,GAAG,cAAc,CAAC,gBAAgB,CAAC,GAAG;IACzD;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAA;AAED,aAAK,aAAa,GAAG,yBAAyB,CAAC,SAAS,CAAC,GAAG;IAC1D,IAAI,EAAE,WAAW,CAAC,mBAAmB,CACrC,WAAW,CAAC,gBAAgB,CAAC,OAAO,QAAQ,CAAC,EAC7C,WAAW,CAAC,QAAQ,CAAC,OAAO,QAAQ,CAAC,GAAG,aAAa,CACpD,CAAC;IACF,YAAY,EAAE,WAAW,CAAC,mBAAmB,CAC7C,WAAW,CAAC,gBAAgB,CAAC,OAAO,gBAAgB,CAAC,EACrD,WAAW,CAAC,QAAQ,CAAC,OAAO,gBAAgB,CAAC,GAAG,qBAAqB,CACpE,CAAC;IACF,SAAS,EAAE,OAAO,aAAa,CAAC;CACjC,CAAA;AAED,eAAO,MAAM,IAAI,eA6BE,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 { RovingTabIndexProvider } from 'react-roving-tabindex';
@@ -1 +1 @@
1
- .Menu{background-color:var(--global-background);border:1px solid var(--dimmed-1);border-radius:.5rem;list-style-type:none;overflow:hidden;position:relative}.Menu hr{margin:0 .5rem}.Menu[data-menu-should-scroll=true]{-webkit-overflow-scrolling:touch;max-height:var(--max-height);overflow:auto;overscroll-behavior:contain}
1
+ @layer components{.Menu{background-color:var(--global-background);border:1px solid var(--dimmed-1);border-radius:.5rem;list-style-type:none;overflow:hidden;position:relative}.Menu hr{margin:0 .5rem}.Menu[data-menu-should-scroll=true]{-webkit-overflow-scrolling:touch;max-height:var(--max-height);overflow:auto;overscroll-behavior:contain}}
@@ -3,7 +3,7 @@ import { useState } from 'react';
3
3
  import { Chip, Text, Title } from '../..';
4
4
  import { Menu } from './menu';
5
5
  const story = {
6
- title: 'Components/Navigation/Menu',
6
+ title: 'Navigation/Menu',
7
7
  component: Menu,
8
8
  };
9
9
  export default story;
@@ -16,8 +16,8 @@ WithMaxHeight.args = {
16
16
  const WithIconsTemplate = args => (_jsxs(Menu, { ...args, children: [_jsx(Menu.Item, { value: "1", icon: "user", children: "List item text" }), _jsx(Menu.Item, { value: "2", icon: "message", children: "List item text List item" }), _jsx(Menu.Separator, {}), _jsx(Menu.Item, { value: "3", children: "List item text" }), _jsx(Menu.Item, { value: "4", icon: "bell", children: "List item text" })] }));
17
17
  export const WithIcons = WithIconsTemplate.bind({});
18
18
  const WithCheckboxTemplate = (args) => {
19
- const [checked, setChecked] = useState(false);
20
- return (_jsxs(Menu, { ...args, children: [_jsx(Menu.ItemCheckbox, { value: "1", checked: checked, icon: checked ? 'check' : undefined, onClick: () => setChecked(val => !val), children: "Checkable item" }), _jsx(Menu.Item, { value: "2", icon: "compass", decoration: _jsx(Chip, { dimension: "small", color: "blue", children: "Decoration" }), children: "List item text" })] }));
19
+ const [isChecked, setIsChecked] = useState(false);
20
+ return (_jsxs(Menu, { ...args, children: [_jsx(Menu.ItemCheckbox, { value: "1", checked: isChecked, icon: isChecked ? 'check' : undefined, onClick: () => setIsChecked(val => !val), children: "Checkable item" }), _jsx(Menu.Item, { value: "2", icon: "compass", decoration: _jsx(Chip, { dimension: "small", color: "blue", children: "Decoration" }), children: "List item text" })] }));
21
21
  };
22
22
  export const WithCheckboxes = WithCheckboxTemplate.bind({});
23
23
  const LinksTemplate = args => (_jsxs(Menu, { ...args, children: [_jsx(Menu.Item, { value: "1", as: "a", href: "https://design.wonderflow.ai", icon: "user", children: "List item text" }), _jsx(Menu.Item, { value: "2", icon: "message", children: "List item text List item" }), _jsx(Menu.Separator, {}), _jsx(Menu.Item, { value: "3", children: "List item text" }), _jsx(Menu.Item, { value: "4", as: "a", href: "https://design.wonderflow.ai", icon: "bell", children: "List item text" })] }));
@@ -12,10 +12,6 @@ export declare type ModalContentProps = PropsWithChildren<PropsWithClass<{
12
12
  theme?: 'dark' | 'light' | 'auto';
13
13
  }>>;
14
14
  export declare const ModalContent: import("react").ForwardRefExoticComponent<{
15
- /**
16
- * Set the theme of the content card. To ensure contrast with the default overlay color (dark),
17
- * this is set to `light` by default.
18
- */
19
15
  style?: Record<string, any> | undefined;
20
16
  className?: string | undefined;
21
17
  } & {
@@ -1 +1 @@
1
- {"version":3,"file":"modal-content.d.ts","sourceRoot":"","sources":["../../../../src/components/modal/content/modal-content.tsx"],"names":[],"mappings":"AACA,OAAO,EAAc,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AASjE,oBAAY,iBAAiB,GAAG,iBAAiB,CAAC,cAAc,CAAC;IAC/D;;;OAGG;IACH,KAAK,EAAE,SAAS,CAAC;IACjB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;CACnC,CAAC,CAAC,CAAA;AAEH,eAAO,MAAM,YAAY;IAPvB;;;OAGG;;;;IARH;;;OAGG;WACI,SAAS;IAChB;;;OAGG;;;;kDA+BH,CAAC"}
1
+ {"version":3,"file":"modal-content.d.ts","sourceRoot":"","sources":["../../../../src/components/modal/content/modal-content.tsx"],"names":[],"mappings":"AAiBA,OAAO,EAAc,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AASjE,oBAAY,iBAAiB,GAAG,iBAAiB,CAAC,cAAc,CAAC;IAC/D;;;OAGG;IACH,KAAK,EAAE,SAAS,CAAC;IACjB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;CACnC,CAAC,CAAC,CAAA;AAEH,eAAO,MAAM,YAAY;;;;IAZvB;;;OAGG;WACI,SAAS;IAChB;;;OAGG;;;;kDA+BH,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 { AutoFocusInside } from 'react-focus-on';
@@ -1 +1 @@
1
- .Content{-webkit-overflow-scrolling:touch;align-self:end;background-color:var(--global-background);border-radius:1rem 1rem 0 0;inline-size:100%;justify-self:center;max-block-size:95vh;overflow:auto;overscroll-behavior:contain}@media (min-width:48em){.Content{align-self:center;border-radius:.5rem;justify-self:center;max-block-size:80vh;max-inline-size:600px}}.Header{background-color:inherit;border-bottom:1px solid var(--dimmed-1);padding:1rem 5rem 1rem 1.5rem;position:sticky;top:0}.CloseButton.CloseButton{position:absolute;right:.5rem;top:.5rem}
1
+ @layer components{.Content{-webkit-overflow-scrolling:touch;align-self:end;background-color:var(--global-background);border-radius:1rem 1rem 0 0;inline-size:100%;justify-self:center;max-block-size:95vh;overflow:auto;overscroll-behavior:contain}@media (min-width:48em){.Content{align-self:center;border-radius:.5rem;justify-self:center;max-block-size:80vh;max-inline-size:600px}}.Header{background-color:inherit;border-bottom:1px solid var(--dimmed-1);padding:1rem 5rem 1rem 1.5rem;position:sticky;top:0}}@layer overrides{.CloseButton{position:absolute;right:.5rem;top:.5rem}}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/modal/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/modal/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,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 { Modal } from './modal';
@@ -1 +1 @@
1
- {"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../../src/components/modal/modal.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAc,iBAAiB,EAAW,MAAM,OAAO,CAAC;AAK/D,OAAO,EAAgB,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAG1E,oBAAY,UAAU,GAAG,iBAAiB,CAAC,cAAc,CAAC;IACxD;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B,CAAC,CAAC,CAAA;AAEH,aAAK,cAAc,GAAG,KAAK,CAAC,yBAAyB,CAAC,UAAU,CAAC,GAAG;IAClE,OAAO,EAAE,KAAK,CAAC,yBAAyB,CAAC,iBAAiB,CAAC,CAAC;CAC7D,CAAA;AAOD,eAAO,MAAM,KAAK,gBAyDE,CAAC"}
1
+ {"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../../src/components/modal/modal.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAc,iBAAiB,EAAW,MAAM,OAAO,CAAC;AAK/D,OAAO,EAAgB,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAG1E,oBAAY,UAAU,GAAG,iBAAiB,CAAC,cAAc,CAAC;IACxD;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B,CAAC,CAAC,CAAA;AAEH,aAAK,cAAc,GAAG,KAAK,CAAC,yBAAyB,CAAC,UAAU,CAAC,GAAG;IAClE,OAAO,EAAE,KAAK,CAAC,yBAAyB,CAAC,iBAAiB,CAAC,CAAC;CAC7D,CAAA;AAOD,eAAO,MAAM,KAAK,gBAyDE,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 tkns from '@wonderflow/tokens/platforms/web/tokens.json';
3
18
  import clsx from 'clsx';
4
19
  import { domMax, LazyMotion, m } from 'framer-motion';
@@ -1 +1 @@
1
- .Modal{display:contents}.Container{align-items:center;bottom:0;display:grid;justify-content:center;left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:1}@media (min-width:48em){.Container{overflow:auto;padding:0 1.5rem}}.Container>*{pointer-events:auto}
1
+ @layer components{.Modal{display:contents}.Container{align-items:center;bottom:0;display:grid;justify-content:center;left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:1}@media (min-width:48em){.Container{overflow:auto;padding:0 1.5rem}}.Container>*{pointer-events:auto}}
@@ -3,15 +3,15 @@ import { useState } from 'react';
3
3
  import { Button, IconButton, OverlayContainer, ResponsiveProvider, Stack, Title, useOverlayContext, } from '../..';
4
4
  import { Modal } from './modal';
5
5
  const story = {
6
- title: 'Components/Dialogs/Modal',
6
+ title: 'Dialogs/Modal',
7
7
  component: Modal,
8
8
  argTypes: {},
9
9
  args: {},
10
10
  };
11
11
  export default story;
12
12
  const ModalShell = ({ children, ...otherProps }) => {
13
- const [visible, setVisible] = useState(false);
14
- return (_jsxs(ResponsiveProvider, { children: [_jsx(Button, { onClick: () => setVisible(true), children: "Show Modal" }), _jsx(OverlayContainer, { onClose: () => setVisible(false), children: visible && (_jsx(Modal, { ...otherProps, children: children }, "dynamic-modal")) })] }));
13
+ const [isVisible, setIsVisible] = useState(false);
14
+ return (_jsxs(ResponsiveProvider, { children: [_jsx(Button, { onClick: () => setIsVisible(true), children: "Show Modal" }), _jsx(OverlayContainer, { onClose: () => setIsVisible(false), children: isVisible && (_jsx(Modal, { ...otherProps, children: children }, "dynamic-modal")) })] }));
15
15
  };
16
16
  const DefaultTemplate = args => (_jsx(ModalShell, { ...args, children: _jsxs(Modal.Content, { title: "Modal title", theme: "auto", children: ["Lorem ipsum dolor sit amet consectetur adipisicing elit. Doloribus et magnam distinctio qui quod ducimus libero magni earum perspiciatis.", _jsx("img", { width: "100%", height: "400", alt: "", src: "https://images.unsplash.com/photo-1579332649290-10b7da0cd111?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=cover&w=1600&q=80" }), _jsx("button", { type: "button", children: "click" })] }) }));
17
17
  export const Default = DefaultTemplate.bind({});
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/overlay-container/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/overlay-container/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,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 { OverlayContainer } from './overlay-container';
@@ -1 +1 @@
1
- {"version":3,"file":"overlay-container.d.ts","sourceRoot":"","sources":["../../../src/components/overlay-container/overlay-container.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAa,MAAM,OAAO,CAAC;AAQ7C,oBAAY,qBAAqB,GAAG;IAClC;;;;OAIG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,YAAY,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;IACzC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,UAAU,CAAC,qBAAqB,CA8C9D,CAAC"}
1
+ {"version":3,"file":"overlay-container.d.ts","sourceRoot":"","sources":["../../../src/components/overlay-container/overlay-container.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAE,SAAS,EAAa,MAAM,OAAO,CAAC;AAQ7C,oBAAY,qBAAqB,GAAG;IAClC;;;;OAIG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,YAAY,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;IACzC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,UAAU,CAAC,qBAAqB,CA8C9D,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 { AnimatePresence, domMax, LazyMotion, m, } from 'framer-motion';
3
18
  import { useEffect } from 'react';
4
19
  import { createPortal } from 'react-dom';
@@ -1 +1 @@
1
- .OverlayContainer{bottom:0;display:block;left:0;position:fixed;right:0;top:0}.OverlayContainer[data-overlay-container-obfuscate=false]{pointer-events:none}.OverlayContainer[data-overlay-container-obfuscate=false]>*{pointer-events:auto}.Backdrop{background-color:var(--dimmed-0);bottom:0;left:0;position:fixed;right:0;top:0;z-index:-1}.Backdrop[data-overlay-color=light]{background-color:#f9fafb}.Backdrop[data-overlay-color=dark]{background-color:#202328}
1
+ @layer components{.OverlayContainer{bottom:0;display:block;left:0;position:fixed;right:0;top:0}.OverlayContainer[data-overlay-container-obfuscate=false]{pointer-events:none}.OverlayContainer[data-overlay-container-obfuscate=false]>*{pointer-events:auto}.Backdrop{background-color:var(--dimmed-0);bottom:0;left:0;position:fixed;right:0;top:0;z-index:-1}.Backdrop[data-overlay-color=light]{background-color:#f9fafb}.Backdrop[data-overlay-color=dark]{background-color:#202328}}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/pagination/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/pagination/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,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 { Pagination } from './pagination';
@@ -1 +1 @@
1
- {"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../../src/components/pagination/pagination.tsx"],"names":[],"mappings":";AAEA,OAAsB,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACnE,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAMnC,oBAAY,eAAe,GAAG,MAAM,CAAC,kBAAkB,EAAE,WAAW,CAAC,GAAG;IACtE;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC;IACrD;;OAEG;IACH,kBAAkB,CAAC,EAAE,kBAAkB,CAAC,oBAAoB,CAAC,CAAC;IAC9D;;OAEG;IACH,oBAAoB,CAAC,EAAE,kBAAkB,CAAC,sBAAsB,CAAC,CAAC;CACnE,CAAA;AAED,eAAO,MAAM,UAAU,6HASpB,eAAe,gBAyBjB,CAAC"}
1
+ {"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../../src/components/pagination/pagination.tsx"],"names":[],"mappings":";AAkBA,OAAsB,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACnE,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAMnC,oBAAY,eAAe,GAAG,MAAM,CAAC,kBAAkB,EAAE,WAAW,CAAC,GAAG;IACtE;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC;IACrD;;OAEG;IACH,kBAAkB,CAAC,EAAE,kBAAkB,CAAC,oBAAoB,CAAC,CAAC;IAC9D;;OAEG;IACH,oBAAoB,CAAC,EAAE,kBAAkB,CAAC,sBAAsB,CAAC,CAAC;CACnE,CAAA;AAED,eAAO,MAAM,UAAU,6HASpB,eAAe,gBAyBjB,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 { useEffect, useState } from 'react';
4
19
  import ReactPaginate from 'react-paginate';
@@ -1 +1 @@
1
- .Pagination{list-style:none;margin:0;padding:0}.Pagination,.Pagination>li>a{align-items:center;display:inline-flex}.Pagination>li>a{border-radius:.25rem;color:var(--dimmed-5);cursor:pointer;font-weight:700;height:2rem;justify-content:center;line-height:1;padding:0 .5rem;-webkit-user-select:none;user-select:none}.Pagination>li>a[aria-current=page]{background-color:var(--cta-default);color:var(--cta-foreground)}.Pagination>li>a[aria-disabled=true]{opacity:.5}
1
+ @layer components{.Pagination{list-style:none;margin:0;padding:0}.Pagination,.Pagination>li>a{align-items:center;display:inline-flex}.Pagination>li>a{border-radius:.25rem;color:var(--dimmed-5);cursor:pointer;font-weight:700;height:2rem;justify-content:center;line-height:1;padding:0 .5rem;-webkit-user-select:none;user-select:none}.Pagination>li>a[aria-current=page]{background-color:var(--cta-default);color:var(--cta-foreground)}.Pagination>li>a[aria-disabled=true]{opacity:.5}}
@@ -2,7 +2,7 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
2
2
  import { useEffect, useMemo, useState } from 'react';
3
3
  import { Pagination } from './pagination';
4
4
  const story = {
5
- title: 'Components/Navigation/Pagination',
5
+ title: 'Navigation/Pagination',
6
6
  component: Pagination,
7
7
  args: {
8
8
  itemsPerPage: 3,
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/popover/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/popover/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,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 { Popover } from './popover';
@@ -1 +1 @@
1
- {"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../../src/components/popover/popover.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EAAE,aAAa,EAAY,kBAAkB,EAC3D,MAAM,gBAAgB,CAAC;AAOxB,OAAO,EAML,SAAS,EAKV,MAAM,OAAO,CAAC;AAOf,oBAAY,YAAY,GAAG;IACzB;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,OAAO,EAAE,SAAS,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;;;;;OAQG;IACH,SAAS,CAAC,EAAE,aAAa,GAAG,aAAa,GAAG,kBAAkB,CAAC;IAC/D;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B,CAAA;AA0BD,eAAO,MAAM,OAAO;;;iEA6HlB,CAAC"}
1
+ {"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../../src/components/popover/popover.tsx"],"names":[],"mappings":"AAgBA,OAAO,EACL,aAAa,EAAE,aAAa,EAAY,kBAAkB,EAC3D,MAAM,gBAAgB,CAAC;AAOxB,OAAO,EAML,SAAS,EAKV,MAAM,OAAO,CAAC;AAOf,oBAAY,YAAY,GAAG;IACzB;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,OAAO,EAAE,SAAS,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;;;;;OAQG;IACH,SAAS,CAAC,EAAE,aAAa,GAAG,aAAa,GAAG,kBAAkB,CAAC;IAC/D;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B,CAAA;AA0BD,eAAO,MAAM,OAAO;;;iEA8HlB,CAAC"}
@@ -51,7 +51,9 @@ export const Popover = forwardRef(({ children, trigger, offset = 8, placement =
51
51
  s.elements.popper.style.width = `${referenceElement.offsetWidth ?? 0}px`;
52
52
  },
53
53
  }), [matchTriggerWidth]);
54
- const { getTooltipProps, setTooltipRef, setTriggerRef, visible, } = usePopperTooltip({
54
+ const { getTooltipProps, setTooltipRef, setTriggerRef,
55
+ // eslint-disable-next-line @typescript-eslint/naming-convention
56
+ visible, } = usePopperTooltip({
55
57
  delayShow: 0,
56
58
  delayHide: 0,
57
59
  trigger: !disabled ? ['click'] : null,
@@ -1 +1 @@
1
- .Popover{display:contents}.PopUp{inline-size:max-content;z-index:2}
1
+ @layer components{.Popover{display:contents}.PopUp{inline-size:max-content;z-index:2}}