@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 +1 @@
1
- {"version":3,"file":"spinner.d.ts","sourceRoot":"","sources":["../../../src/components/spinner/spinner.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAc,aAAa,EAAE,MAAM,OAAO,CAAC;AAElD,oBAAY,YAAY,GAAG,aAAa,CAAC,UAAU,CAAC,GAAG;IACrD;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,KAAK,CAAC;IACxC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAA;AAED,eAAO,MAAM,OAAO;IAVlB;;OAEG;;IAEH;;OAEG;;iDA8DH,CAAC"}
1
+ {"version":3,"file":"spinner.d.ts","sourceRoot":"","sources":["../../../src/components/spinner/spinner.tsx"],"names":[],"mappings":"AAkBA,OAAO,EAAc,aAAa,EAAE,MAAM,OAAO,CAAC;AAElD,oBAAY,YAAY,GAAG,aAAa,CAAC,UAAU,CAAC,GAAG;IACrD;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,KAAK,CAAC;IACxC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAA;AAED,eAAO,MAAM,OAAO;IAVlB;;OAEG;;IAEH;;OAEG;;iDA8DH,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 { domMax, LazyMotion, m } from 'framer-motion';
4
19
  import { forwardRef } from 'react';
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { Spinner } from './spinner';
3
3
  const story = {
4
- title: 'Components/Loading/Spinner',
4
+ title: 'Loading/Spinner',
5
5
  component: Spinner,
6
6
  args: {
7
7
  dimension: 'big',
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/split-button/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/split-button/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 { SplitButton } from './split-button';
@@ -1 +1 @@
1
- {"version":3,"file":"split-button.d.ts","sourceRoot":"","sources":["../../../src/components/split-button/split-button.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC,OAAO,EACL,MAAM,EAAE,WAAW,EAAW,YAAY,EAC3C,MAAM,cAAc,CAAC;AAItB,oBAAY,gBAAgB,GAAG,IAAI,CAAC,YAAY,EAAE,WAAW,GAAG,QAAQ,CAAC,GAAG;IAC1E;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,CAAA;AAED,aAAK,sBAAsB,GAAG,WAAW,CAAC,mBAAmB,CAC7D,WAAW,CAAC,gBAAgB,CAAC,OAAO,MAAM,CAAC,EAC3C,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC,OAAO,MAAM,CAAC,EAAE,cAAc,GAAG,WAAW,GAAG,SAAS,CAAC,GAAG,gBAAgB,CACvG,CAAC;AAEF,eAAO,MAAM,WAAW,wBA+CI,CAAC"}
1
+ {"version":3,"file":"split-button.d.ts","sourceRoot":"","sources":["../../../src/components/split-button/split-button.tsx"],"names":[],"mappings":"AAkBA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC,OAAO,EACL,MAAM,EAAE,WAAW,EAAW,YAAY,EAC3C,MAAM,cAAc,CAAC;AAItB,oBAAY,gBAAgB,GAAG,IAAI,CAAC,YAAY,EAAE,WAAW,GAAG,QAAQ,CAAC,GAAG;IAC1E;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,CAAA;AAED,aAAK,sBAAsB,GAAG,WAAW,CAAC,mBAAmB,CAC7D,WAAW,CAAC,gBAAgB,CAAC,OAAO,MAAM,CAAC,EAC3C,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC,OAAO,MAAM,CAAC,EAAE,cAAc,GAAG,WAAW,GAAG,SAAS,CAAC,GAAG,gBAAgB,CACvG,CAAC;AAEF,eAAO,MAAM,WAAW,wBA+CI,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 { Button, Popover, Stack, } from '../..';
@@ -1 +1 @@
1
- .SplitButton>:first-child{border-bottom-right-radius:0;border-top-right-radius:0}.SplitButton>[data-button-dimension=big]:first-child{padding-left:1rem;padding-right:1rem}.SplitButton>*>button{--separator-color:hsla(0,0%,40%,.4);border-bottom-left-radius:0;border-top-left-radius:0;box-shadow:inset 1px 0 0 0 var(--separator-color)}.SplitButton>*>button[data-button-kind=primary]{--separator-color:hsla(0,0%,100%,.3)}.SplitButton>*>button:is([data-button-dimension=big],[data-button-dimension=regular]){padding-left:.5rem;padding-right:.5rem}
1
+ @layer components{.SplitButton>:first-child{border-bottom-right-radius:0;border-top-right-radius:0}.SplitButton>[data-button-dimension=big]:first-child{padding-left:1rem;padding-right:1rem}.SplitButton>*>button{--separator-color:hsla(0,0%,40%,.4);border-bottom-left-radius:0;border-top-left-radius:0;box-shadow:inset 1px 0 0 0 var(--separator-color)}.SplitButton>*>button[data-button-kind=primary]{--separator-color:hsla(0,0%,100%,.3)}.SplitButton>*>button:is([data-button-dimension=big],[data-button-dimension=regular]){padding-left:.5rem;padding-right:.5rem}}
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Menu } from '../..';
3
3
  import { SplitButton } from './split-button';
4
4
  const story = {
5
- title: 'Components/Actions/Split button',
5
+ title: 'Actions/Split button',
6
6
  component: SplitButton,
7
7
  args: {
8
8
  dimension: 'regular',
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/stack/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/stack/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 { Stack } from './stack';
@@ -1 +1 @@
1
- {"version":3,"file":"stack.d.ts","sourceRoot":"","sources":["../../../src/components/stack/stack.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAK/D,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAI3C,oBAAY,UAAU,GAAG;IACvB;;OAEG;IACH,MAAM,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAC9B;;OAEG;IACH,SAAS,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IACjC;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,QAAQ,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAChC;;OAEG;IACH,QAAQ,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAChC;;;OAGG;IACH,SAAS,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,aAAa,GAAG,gBAAgB,CAAC;IAChE;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAA;AAED,aAAK,gBAAgB,GAAG,WAAW,CAAC,mBAAmB,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;AAE3E,eAAO,MAAM,KAAK,kBAkDI,CAAC"}
1
+ {"version":3,"file":"stack.d.ts","sourceRoot":"","sources":["../../../src/components/stack/stack.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAK/D,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAI3C,oBAAY,UAAU,GAAG;IACvB;;OAEG;IACH,MAAM,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAC9B;;OAEG;IACH,SAAS,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IACjC;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,QAAQ,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAChC;;OAEG;IACH,QAAQ,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAChC;;;OAGG;IACH,SAAS,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,aAAa,GAAG,gBAAgB,CAAC;IAChE;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAA;AAED,aAAK,gBAAgB,GAAG,WAAW,CAAC,mBAAmB,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;AAE3E,eAAO,MAAM,KAAK,kBAmDI,CAAC"}
@@ -1 +1 @@
1
- .Stack{grid-gap:var(--r-gap,0) var(--c-gap,0);align-items:var(--h-align);display:flex;flex-direction:column;justify-content:var(--v-align);max-inline-size:var(--max-w)}.Stack:where([data-stack-has-padding=true]){padding:var(--v-padding,0) var(--h-padding,0)}.Stack:where([data-stack-fill=true])>*{flex-grow:1}.Stack[data-stack-direction=column-reverse]{flex-direction:column-reverse}.Stack[data-stack-direction^=row]{align-items:var(--v-align);justify-content:var(--h-align)}.Stack[data-stack-direction=row]{flex-direction:row}.Stack[data-stack-direction=row-reverse]{flex-direction:row-reverse}.Stack[data-stack-inline=true]{display:inline-flex;flex-grow:0}.Stack[data-stack-wrap=true]{flex-wrap:wrap}
1
+ @layer components{.Stack{grid-gap:var(--r-gap,0) var(--c-gap,0);align-items:var(--h-align);display:flex;flex-direction:column;justify-content:var(--v-align);max-inline-size:var(--max-w)}.Stack:where([data-stack-has-padding=true]){padding:var(--v-padding,0) var(--h-padding,0)}.Stack:where([data-stack-fill=true])>*{flex-grow:1}.Stack[data-stack-direction=column-reverse]{flex-direction:column-reverse}.Stack[data-stack-direction^=row]{align-items:var(--v-align);justify-content:var(--h-align)}.Stack[data-stack-direction=row]{flex-direction:row}.Stack[data-stack-direction=row-reverse]{flex-direction:row-reverse}.Stack[data-stack-inline=true]{display:inline-flex;flex-grow:0}.Stack[data-stack-wrap=true]{flex-wrap:wrap}}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/star-meter/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/star-meter/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,SAAS,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 { StarMeter } from './star-meter';
@@ -1 +1 @@
1
- {"version":3,"file":"star-meter.d.ts","sourceRoot":"","sources":["../../../src/components/star-meter/star-meter.tsx"],"names":[],"mappings":"AACA,OAAO,EACO,SAAS,EACtB,MAAM,OAAO,CAAC;AAGf,OAAO,EACL,WAAW,EAAE,KAAK,EACnB,MAAM,cAAc,CAAC;AAItB,oBAAY,cAAc,GAAG;IAC3B;;;;;;;;;;;OAWG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,KAAK,CAAC;IACxC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAA;AAED,aAAK,oBAAoB,GAAG,WAAW,CAAC,mBAAmB,CAC3D,WAAW,CAAC,gBAAgB,CAAC,OAAO,KAAK,CAAC,EAC1C,WAAW,CAAC,QAAQ,CAAC,OAAO,KAAK,CAAC,GAAG,cAAc,CAClD,CAAC;AAEF,eAAO,MAAM,SAAS,sBA6GI,CAAC"}
1
+ {"version":3,"file":"star-meter.d.ts","sourceRoot":"","sources":["../../../src/components/star-meter/star-meter.tsx"],"names":[],"mappings":"AAiBA,OAAO,EACO,SAAS,EACtB,MAAM,OAAO,CAAC;AAGf,OAAO,EACL,WAAW,EAAE,KAAK,EACnB,MAAM,cAAc,CAAC;AAItB,oBAAY,cAAc,GAAG;IAC3B;;;;;;;;;;;OAWG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,KAAK,CAAC;IACxC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAA;AAED,aAAK,oBAAoB,GAAG,WAAW,CAAC,mBAAmB,CAC3D,WAAW,CAAC,gBAAgB,CAAC,OAAO,KAAK,CAAC,EAC1C,WAAW,CAAC,QAAQ,CAAC,OAAO,KAAK,CAAC,GAAG,cAAc,CAClD,CAAC;AAEF,eAAO,MAAM,SAAS,sBA6GI,CAAC"}
@@ -1,4 +1,19 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } 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, } from 'react';
4
19
  import { useUIDSeed } from 'react-uid';
@@ -1 +1 @@
1
- .StarMeter{--star-color:#f5a856;--star-dimmed-color:var(--dimmed-2);--icon-size:1.00rem;position:relative}.StarMeter[data-star-meter-dimension=small]{--icon-size:token(--icon-size-14)}.StarMeter[data-star-meter-dimension=big]{--icon-size:1.50rem}.Gradient{clip:rect(0 0 0 0);block-size:1px;clip-path:inset(50%);inline-size:1px;overflow:hidden;position:absolute;white-space:nowrap}.Icon{block-size:var(--icon-size);inline-size:var(--icon-size)}
1
+ @layer components{.StarMeter{--star-color:#f5a856;--star-dimmed-color:var(--dimmed-2);--icon-size:1.00rem;position:relative}.StarMeter[data-star-meter-dimension=small]{--icon-size:token(--icon-size-14)}.StarMeter[data-star-meter-dimension=big]{--icon-size:1.50rem}.Gradient{clip:rect(0 0 0 0);block-size:1px;clip-path:inset(50%);inline-size:1px;overflow:hidden;position:absolute;white-space:nowrap}.Icon{block-size:var(--icon-size);inline-size:var(--icon-size)}}
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { Stack } from '../..';
3
3
  import { StarMeter } from './star-meter';
4
4
  const story = {
5
- title: 'Components/Widgets/Star meter',
5
+ title: 'Widgets/Star meter',
6
6
  component: StarMeter,
7
7
  args: {
8
8
  dimension: 'regular',
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/symbol/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/symbol/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 { Symbol } from './symbol';
@@ -1 +1 @@
1
- {"version":3,"file":"symbol.d.ts","sourceRoot":"","sources":["../../../src/components/symbol/symbol.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAGlD,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAE/D,OAAO,EAIL,YAAY,EACZ,aAAa,EAEd,MAAM,OAAO,CAAC;AAIf,oBAAY,WAAW,GAAG,aAAa,CAAC,UAAU,GAAG,aAAa,CAAC,GAAG;IACpE;;;;;OAKG;IACH,MAAM,EAAE,WAAW,GAAG,YAAY,CAAC,gBAAgB,CAAC,CAAC;IACrD;;;OAGG;IACH,SAAS,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC;IACxC;;;;;MAKE;IACF,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,SAAS,CAAC;CAC1C,CAAA;AAED,eAAO,MAAM,MAAM;IArBjB;;;;;OAKG;YACK,WAAW,GAAG,aAAa,gBAAgB,CAAC;IACpD;;;OAGG;;IAEH;;;;;MAKE;;iDAyCF,CAAC"}
1
+ {"version":3,"file":"symbol.d.ts","sourceRoot":"","sources":["../../../src/components/symbol/symbol.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAGlD,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAE/D,OAAO,EAIL,YAAY,EACZ,aAAa,EAEd,MAAM,OAAO,CAAC;AAIf,oBAAY,WAAW,GAAG,aAAa,CAAC,UAAU,GAAG,aAAa,CAAC,GAAG;IACpE;;;;;OAKG;IACH,MAAM,EAAE,WAAW,GAAG,YAAY,CAAC,gBAAgB,CAAC,CAAC;IACrD;;;OAGG;IACH,SAAS,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC;IACxC;;;;;MAKE;IACF,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,SAAS,CAAC;CAC1C,CAAA;AAED,eAAO,MAAM,MAAM;IArBjB;;;;;OAKG;YACK,WAAW,GAAG,aAAa,gBAAgB,CAAC;IACpD;;;OAGG;;IAEH;;;;;MAKE;;iDAyCF,CAAC"}
@@ -1 +1 @@
1
- .Icon [fill]{fill:currentcolor}.Icon [fill=none][stroke]{fill:none;stroke:currentcolor}
1
+ @layer components{.Icon [fill]{fill:currentcolor}.Icon [fill=none][stroke]{fill:none;stroke:currentcolor}}
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { Symbol } from './symbol';
3
3
  const story = {
4
- title: 'Components/Widgets/Symbol',
4
+ title: 'Widgets/Symbol',
5
5
  component: Symbol,
6
6
  args: {
7
7
  weight: 'outline',
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/tab/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/tab/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,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 { Tab } from './tab';
@@ -1,5 +1,6 @@
1
1
  import * as TabsPrimitive from '@radix-ui/react-tabs';
2
2
  import { PropsWithChildren } from 'react';
3
+ import { TabPanelProps } from './tabs-panel';
3
4
  export declare type TabProps = PropsWithChildren<PropsWithClass> & {
4
5
  /**
5
6
  * The value for the selected tab, if controlled
@@ -37,6 +38,6 @@ export declare type TabProps = PropsWithChildren<PropsWithClass> & {
37
38
  };
38
39
  export declare const Tab: {
39
40
  ({ className, children, onValueChange, defaultValue, value, loop, dimension, ...otherProps }: TabProps): JSX.Element;
40
- Panel: FCChildrenClass<import("./tabs-panel").TabPanelProps>;
41
+ Panel: FCChildrenClass<TabPanelProps>;
41
42
  };
42
43
  //# sourceMappingURL=tab.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tab.d.ts","sourceRoot":"","sources":["../../../src/components/tab/tab.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,sBAAsB,CAAC;AAEtD,OAAO,EACqB,iBAAiB,EAC5C,MAAM,OAAO,CAAC;AAQf,oBAAY,QAAQ,GAAG,iBAAiB,CAAC,cAAc,CAAC,GAAG;IACzD;;OAEG;IACH,KAAK,CAAC,EAAE,aAAa,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;IACzC;;OAEG;IACH,YAAY,CAAC,EAAE,aAAa,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;IACvD;;OAEG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;IACzD;;;OAGG;IACH,GAAG,CAAC,EAAE,aAAa,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IACrC;;;OAGG;IACH,cAAc,CAAC,EAAE,aAAa,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC3D;;;OAGG;IACH,IAAI,CAAC,EAAE,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;IAC3C;;;;OAIG;IACH,SAAS,CAAC,EAAE,SAAS,GAAG,KAAK,CAAC;CAC/B,CAAC;AAEF,eAAO,MAAM,GAAG;kGASb,QAAQ;;CA2CV,CAAC"}
1
+ {"version":3,"file":"tab.d.ts","sourceRoot":"","sources":["../../../src/components/tab/tab.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,aAAa,MAAM,sBAAsB,CAAC;AAEtD,OAAO,EACqB,iBAAiB,EAC5C,MAAM,OAAO,CAAC;AAMf,OAAO,EAAY,aAAa,EAAE,MAAM,cAAc,CAAC;AAEvD,oBAAY,QAAQ,GAAG,iBAAiB,CAAC,cAAc,CAAC,GAAG;IACzD;;OAEG;IACH,KAAK,CAAC,EAAE,aAAa,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;IACzC;;OAEG;IACH,YAAY,CAAC,EAAE,aAAa,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;IACvD;;OAEG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;IACzD;;;OAGG;IACH,GAAG,CAAC,EAAE,aAAa,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IACrC;;;OAGG;IACH,cAAc,CAAC,EAAE,aAAa,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC3D;;;OAGG;IACH,IAAI,CAAC,EAAE,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;IAC3C;;;;OAIG;IACH,SAAS,CAAC,EAAE,SAAS,GAAG,KAAK,CAAC;CAC/B,CAAC;AAEF,eAAO,MAAM,GAAG;kGASb,QAAQ;;CA2CV,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 * as TabsPrimitive from '@radix-ui/react-tabs';
3
18
  import { domMax, LazyMotion, m } from 'framer-motion';
4
19
  import { Children, isValidElement, useCallback, useState, } from 'react';
@@ -13,6 +28,6 @@ export const Tab = ({ className, children, onValueChange, defaultValue, value, l
13
28
  onValueChange?.(value);
14
29
  setActiveItem(value);
15
30
  }, [onValueChange]);
16
- return (_jsxs(TabsPrimitive.Root, { defaultValue: defaultValue, onValueChange: handleOnVlaueChange, className: className, value: value, ...otherProps, children: [_jsx(LazyMotion, { features: domMax, strict: true, children: _jsx(TabsPrimitive.List, { className: styles.List, loop: loop, children: Children.map(children, child => isValidElement(child) && (_jsx(TabsPrimitive.Trigger, { value: child.props.value, disabled: child.props.disabled, className: styles.Trigger, "data-tab-dimension": dimension, asChild: true, children: _jsxs(Button, { kind: "flat", dimension: "big", children: [_jsx(Symbol, { source: child.props.icon, dimension: dimension === 'big' ? 24 : 16, weight: dimension === 'big' ? 'duotone' : 'solid' }), child.props.label, (child.props.value === activeItem) && (_jsx(m.span, { className: styles.Highlight, layoutId: uid('tab-highlight') }))] }) }))) }) }), children] }));
31
+ return (_jsxs(TabsPrimitive.Root, { defaultValue: defaultValue, onValueChange: handleOnVlaueChange, className: className, value: value, ...otherProps, children: [_jsx(LazyMotion, { features: domMax, strict: true, children: _jsx(TabsPrimitive.List, { className: styles.List, loop: loop, children: Children.map(children, child => isValidElement(child) && (_jsx(TabsPrimitive.Trigger, { value: child.props.value, disabled: child.props.disabled, className: styles.Trigger, "data-tab-dimension": dimension, asChild: true, children: _jsxs(Button, { kind: "flat", dimension: "big", children: [child.props.icon && _jsx(Symbol, { source: child.props.icon, dimension: dimension === 'big' ? 24 : 16, weight: dimension === 'big' ? 'duotone' : 'solid' }), child.props.label, (child.props.value === activeItem) && (_jsx(m.span, { className: styles.Highlight, layoutId: uid('tab-highlight') }))] }) }))) }) }), children] }));
17
32
  };
18
33
  Tab.Panel = TabPanel;
@@ -1 +1 @@
1
- .List{--separator-size:2px;box-shadow:inset 0 calc(var(--separator-size)*-1) 0 var(--dimmed-1);overflow:auto;white-space:nowrap}.Trigger.Trigger{appearance:none;-webkit-backdrop-filter:none;backdrop-filter:none;background:none;background-color:transparent;block-size:3rem;border:0;border-radius:0;color:var(--dimmed-6);flex-shrink:0;font-family:inherit;font-weight:400;outline-offset:calc(var(--separator-size)*-1);overflow:unset;padding:.5rem 1rem;position:relative;white-space:nowrap}.Trigger.Trigger[data-tab-dimension=big]{font-size:1.38rem;height:calc(3.5rem - var(--separator-size))}.Trigger.Trigger:active{transform:none}.Trigger.Trigger:not([aria-disabled=true]){-webkit-backdrop-filter:none;backdrop-filter:none;color:var(--dimmed-5)}.Trigger.Trigger.Trigger:not([aria-disabled=true]):is(:hover,:focus,:active){-webkit-backdrop-filter:none;backdrop-filter:none;background:none;color:var(--global-foreground)}.Trigger.Trigger.Trigger[aria-disabled=true]{-webkit-backdrop-filter:none;backdrop-filter:none;background:none;color:var(--global-disabled-foreground)}.Trigger.Trigger[data-state=active]{-webkit-text-stroke:.4px var(--global-foreground);color:var(--global-foreground)}.Highlight{background:var(--cta-default);border-radius:2px 2px 0 0;bottom:0;height:4px;pointer-events:none;position:absolute;width:100%}.Panel{animation:fade-in .2s;animation-timing-function:cubic-bezier(0,0,.34,1))}@keyframes fade-in{0%{opacity:0;transform:translate(var(--fade-from-x,0),var(--fade-from-y,0))}to{opacity:unset;transform:none}}
1
+ @layer components{.List{--separator-size:2px;box-shadow:inset 0 calc(var(--separator-size)*-1) 0 var(--dimmed-1);overflow:auto;white-space:nowrap}.Highlight{background:var(--cta-default);border-radius:2px 2px 0 0;bottom:0;height:4px;pointer-events:none;position:absolute;width:100%}.Panel{animation:fade-in .2s;animation-timing-function:cubic-bezier(0,0,.34,1))}}@layer overrides{.Trigger{appearance:none;-webkit-backdrop-filter:none;backdrop-filter:none;background:none;background-color:transparent;block-size:3rem;border:0;border-radius:0;color:var(--dimmed-6);flex-shrink:0;font-family:inherit;font-weight:400;outline-offset:calc(var(--separator-size)*-1);overflow:unset;padding:.5rem 1rem;position:relative;white-space:nowrap}.Trigger[data-tab-dimension=big]{font-size:1.38rem;height:calc(3.5rem - var(--separator-size))}.Trigger:active{transform:none}.Trigger:not([aria-disabled=true]){-webkit-backdrop-filter:none;backdrop-filter:none;color:var(--dimmed-5)}.Trigger.Trigger:not([aria-disabled=true]):is(:hover,:focus,:active){-webkit-backdrop-filter:none;backdrop-filter:none;background:none;color:var(--global-foreground)}.Trigger.Trigger[aria-disabled=true]{-webkit-backdrop-filter:none;backdrop-filter:none;background:none;color:var(--global-disabled-foreground)}.Trigger[data-state=active]{-webkit-text-stroke:.4px var(--global-foreground);color:var(--global-foreground)}}@keyframes fade-in{0%{opacity:0;transform:translate(var(--fade-from-x,0),var(--fade-from-y,0))}to{opacity:unset;transform:none}}
@@ -3,7 +3,7 @@ import { useState } from 'react';
3
3
  import { Button } from '../..';
4
4
  import { Tab } from './tab';
5
5
  const story = {
6
- title: 'Components/Navigation/Tab',
6
+ title: 'Navigation/Tab',
7
7
  component: Tab,
8
8
  args: {
9
9
  defaultValue: '1',
@@ -1 +1 @@
1
- {"version":3,"file":"tabs-panel.d.ts","sourceRoot":"","sources":["../../../src/components/tab/tabs-panel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,sBAAsB,CAAC;AAGtD,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAI3C,oBAAY,aAAa,GAAG;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC;IAC7B,KAAK,EAAE,aAAa,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAC/C,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,eAAe,CAAC,aAAa,CAanD,CAAC"}
1
+ {"version":3,"file":"tabs-panel.d.ts","sourceRoot":"","sources":["../../../src/components/tab/tabs-panel.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,aAAa,MAAM,sBAAsB,CAAC;AAGtD,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAI3C,oBAAY,aAAa,GAAG;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC;IAC7B,KAAK,EAAE,aAAa,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAC/C,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,eAAe,CAAC,aAAa,CAanD,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 * as TabsPrimitive from '@radix-ui/react-tabs';
3
18
  import clsx from 'clsx';
4
19
  import * as styles from './tab.module.css';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/table/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/table/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 { Table } from './table';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/table/table-cell/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/table/table-cell/index.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,SAAS,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 { TableCell } from './table-cell';
@@ -1 +1 @@
1
- {"version":3,"file":"table-cell.d.ts","sourceRoot":"","sources":["../../../../src/components/table/table-cell/table-cell.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAU,MAAM,cAAc,CAAC;AAEnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAG/C,aAAK,cAAc,GAAG;IACpB,SAAS,CAAC,EAAE,mBAAmB,CAAC,aAAa,CAAC,CAAC;IAC/C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,KAAK,CAAC,EAAE,mBAAmB,CAAC,OAAO,CAAC,CAAC;IACrC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACzB,CAAA;AAED,aAAK,eAAe,GAAG,WAAW,CAAC,mBAAmB,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC;AAE7E,eAAO,MAAM,SAAS,iBA8CD,CAAC"}
1
+ {"version":3,"file":"table-cell.d.ts","sourceRoot":"","sources":["../../../../src/components/table/table-cell/table-cell.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAE,WAAW,EAAU,MAAM,cAAc,CAAC;AAEnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAG/C,aAAK,cAAc,GAAG;IACpB,SAAS,CAAC,EAAE,mBAAmB,CAAC,aAAa,CAAC,CAAC;IAC/C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,KAAK,CAAC,EAAE,mBAAmB,CAAC,OAAO,CAAC,CAAC;IACrC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACzB,CAAA;AAED,aAAK,eAAe,GAAG,WAAW,CAAC,mBAAmB,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC;AAE7E,eAAO,MAAM,SAAS,iBA8CD,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 { Symbol } from '../../..';
@@ -1 +1 @@
1
- .TableCell{--indent-guide-width:24px;font-feature-settings:"tnum";word-wrap:break-word;font-variant-numeric:tabular-nums;line-height:1.2;margin:0;max-width:var(--width);padding:0;position:relative;text-align:start}.TableCell:not(:only-child){text-align:var(--text-align,start)}.TableCell[data-table-cell-fixed=true]{width:var(--width,1%)}.TableCell[data-table-cell-collapsed=true]{width:1e-10%}.TableCell[data-table-cell-padding=true]{padding:.75rem .5rem}.HeadCellIcon{margin-inline-start:.5rem}
1
+ @layer components{.TableCell{--indent-guide-width:24px;font-feature-settings:"tnum";word-wrap:break-word;font-variant-numeric:tabular-nums;line-height:1.2;margin:0;max-width:var(--width);padding:0;position:relative;text-align:start}.TableCell:not(:only-child){text-align:var(--text-align,start)}.TableCell[data-table-cell-fixed=true]{width:var(--width,1%)}.TableCell[data-table-cell-collapsed=true]{width:1e-10%}.TableCell[data-table-cell-padding=true]{padding:.75rem .5rem}.HeadCellIcon{margin-inline-start:.5rem}}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/table/table-checkbox/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/table/table-checkbox/index.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,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 { TableCheckbox } from './table-checkbox';
@@ -1 +1 @@
1
- {"version":3,"file":"table-checkbox.d.ts","sourceRoot":"","sources":["../../../../src/components/table/table-checkbox/table-checkbox.tsx"],"names":[],"mappings":";AAIA,eAAO,MAAM,aAAa;;iBAMzB,CAAC"}
1
+ {"version":3,"file":"table-checkbox.d.ts","sourceRoot":"","sources":["../../../../src/components/table/table-checkbox/table-checkbox.tsx"],"names":[],"mappings":";AAoBA,eAAO,MAAM,aAAa;;iBAMzB,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 { Checkbox } from '../../..';
3
18
  import * as styles from './table-checkbox.module.css';
4
19
  export const TableCheckbox = ({ ...otherProps }) => (_jsx(Checkbox, { className: styles.TableCheckbox, dimension: "small", ...otherProps }));
@@ -1 +1 @@
1
- .TableCheckbox{display:block}
1
+ @layer components{.TableCheckbox{display:block}}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/table/table-controls/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/table/table-controls/index.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,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 { ToggleColumnsControl } from './toggle-columns';
@@ -1 +1 @@
1
- {"version":3,"file":"toggle-columns.d.ts","sourceRoot":"","sources":["../../../../src/components/table/table-controls/toggle-columns.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAEpD,aAAK,yBAAyB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI;IAClE,OAAO,EAAE,KAAK,CAAC,wBAAwB,CAAC,CAAC,CAAC,CAAC,CAAC;IAC5C,cAAc,EAAE,KAAK,CAAC,wBAAwB,CAAC,CAAC,CAAC,CAAC,CAAC;CACpD,CAAA;AAED,eAAO,MAAM,oBAAoB,gHAuDhC,CAAC"}
1
+ {"version":3,"file":"toggle-columns.d.ts","sourceRoot":"","sources":["../../../../src/components/table/table-controls/toggle-columns.tsx"],"names":[],"mappings":";AAoBA,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAEpD,aAAK,yBAAyB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI;IAClE,OAAO,EAAE,KAAK,CAAC,wBAAwB,CAAC,CAAC,CAAC,CAAC,CAAC;IAC5C,cAAc,EAAE,KAAK,CAAC,wBAAwB,CAAC,CAAC,CAAC,CAAC,CAAC;CACpD,CAAA;AAED,eAAO,MAAM,oBAAoB,gHAwDhC,CAAC"}
@@ -1,15 +1,30 @@
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 { useCallback, useMemo } from 'react';
3
18
  import { Button, Menu, Popover } from '../../..';
4
19
  export const ToggleColumnsControl = ({ columns, visibleColumns, }) => {
5
- const someVisibleColums = useMemo(() => visibleColumns.length !== 0, [visibleColumns]);
20
+ const hasSomeVisibleColums = useMemo(() => visibleColumns.length !== 0, [visibleColumns]);
6
21
  const filteredColumns = useMemo(() => columns.filter(col => !col.isToggable), [columns]);
7
22
  const handleToggleAll = useCallback(() => {
8
23
  /**
9
24
  * If there are visible columns (excluding artificial ones),
10
25
  * hide them all by calling `toggleHidden(true)` for each column
11
26
  */
12
- if (someVisibleColums) {
27
+ if (hasSomeVisibleColums) {
13
28
  visibleColumns.forEach(col => col.toggleHidden(true));
14
29
  return;
15
30
  }
@@ -18,6 +33,6 @@ export const ToggleColumnsControl = ({ columns, visibleColumns, }) => {
18
33
  * toggleHidden(false) for each column
19
34
  */
20
35
  filteredColumns.forEach(col => col.toggleHidden(false));
21
- }, [someVisibleColums, filteredColumns, visibleColumns]);
36
+ }, [hasSomeVisibleColums, filteredColumns, visibleColumns]);
22
37
  return (_jsx(Popover, { placement: "bottom-start", trigger: _jsx(Button, { kind: "secondary", children: "Toggle columns" }), children: _jsxs(Menu, { maxHeight: "350px", children: [_jsx(Menu.ItemCheckbox, { value: "toggle-all", onClick: () => handleToggleAll(), checked: true, icon: visibleColumns.length === 0 ? 'check' : 'minus', children: "Toggle All" }), columns.filter(col => !col.isToggable).map((column, i) => (_jsx(Menu.ItemCheckbox, { value: column.id, autoFocus: i === 0, checked: column.isVisible, icon: column.isVisible ? 'check' : undefined, onClick: () => column.toggleHidden(), children: column.render('Header') }, column.id)))] }) }));
23
38
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/table/table-expand/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/table/table-expand/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 { TableExpand } from './table-expand';
@@ -1 +1 @@
1
- .TableExpand{overflow:hidden}.ExpandContent{--fade-from-y:-5px;animation:fade-in .2s;animation-timing-function:cubic-bezier(0,0,.34,1)}@keyframes fade-in{0%{opacity:0;transform:translate(var(--fade-from-x,0),var(--fade-from-y,0))}to{opacity:unset;transform:none}}
1
+ @layer components{.TableExpand{overflow:hidden}.ExpandContent{--fade-from-y:-5px;animation:fade-in .2s;animation-timing-function:cubic-bezier(0,0,.34,1)}}@keyframes fade-in{0%{opacity:0;transform:translate(var(--fade-from-x,0),var(--fade-from-y,0))}to{opacity:unset;transform:none}}