@wonderflow/react-components 3.0.0-next.1 → 3.0.0-next.10

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 (364) hide show
  1. package/avatar/avatar.d.ts +3 -3
  2. package/avatar/avatar.js +4 -7
  3. package/avatar/avatar.module.css +1 -31
  4. package/button/button.d.ts +4 -4
  5. package/button/button.js +8 -12
  6. package/button/button.module.css +1 -151
  7. package/card/card.d.ts +1 -1
  8. package/card/card.js +4 -7
  9. package/card/card.module.css +1 -51
  10. package/chip/chip.d.ts +10 -3
  11. package/chip/chip.js +4 -6
  12. package/chip/chip.module.css +1 -60
  13. package/circular-progress/circular-progress.d.ts +3 -3
  14. package/circular-progress/circular-progress.js +4 -3
  15. package/circular-progress/circular-progress.module.css +1 -55
  16. package/clamp-text/clamp-text.d.ts +1 -1
  17. package/clamp-text/clamp-text.js +4 -4
  18. package/clamp-text/clamp-text.module.css +1 -7
  19. package/container/container.js +4 -4
  20. package/container/container.module.css +1 -35
  21. package/core/basic.css +1 -49
  22. package/core/elevations.css +1 -56
  23. package/core/typography.css +1 -122
  24. package/core/{media.css → utils/media.css} +0 -0
  25. package/core/{vibrancy.css → utils/vibrancy.css} +0 -0
  26. package/core.css +1 -1
  27. package/disclosure/disclosure.d.ts +3 -3
  28. package/disclosure/disclosure.js +5 -8
  29. package/disclosure/disclosure.module.css +1 -93
  30. package/dropdown/dropdown-item.d.ts +1 -1
  31. package/dropdown/dropdown-item.js +8 -9
  32. package/dropdown/dropdown-item.module.css +1 -63
  33. package/dropdown/dropdown-menu.d.ts +4 -4
  34. package/dropdown/dropdown-menu.js +8 -6
  35. package/dropdown/dropdown-menu.module.css +1 -13
  36. package/dropdown/dropdown.d.ts +9 -19
  37. package/dropdown/dropdown.js +17 -17
  38. package/dropdown/dropdown.module.css +1 -9
  39. package/elevator/elevator.d.ts +2 -2
  40. package/elevator/elevator.js +6 -5
  41. package/grid/grid-item.d.ts +6 -2
  42. package/grid/grid-item.js +6 -4
  43. package/grid/grid.d.ts +6 -22
  44. package/grid/grid.js +5 -4
  45. package/grid/grid.module.css +1 -29
  46. package/grid/index.d.ts +1 -1
  47. package/grid/index.js +1 -1
  48. package/icon/icon.d.ts +3 -3
  49. package/icon/icon.js +4 -4
  50. package/icon-button/icon-button.d.ts +1 -1
  51. package/icon-button/icon-button.js +3 -3
  52. package/icon-button/icon-button.module.css +1 -22
  53. package/icons/all.svg +15 -7
  54. package/icons/structure.json +2 -0
  55. package/icons/svgs/16/arrow-down-16.svg +3 -0
  56. package/icons/svgs/16/arrow-down-left-16.svg +3 -0
  57. package/icons/svgs/16/arrow-down-right-16.svg +3 -0
  58. package/icons/svgs/16/arrow-down-to-bracket-16.svg +3 -0
  59. package/icons/svgs/16/arrow-left-16.svg +3 -0
  60. package/icons/svgs/16/arrow-right-16.svg +3 -0
  61. package/icons/svgs/16/arrow-rotate-right-16.svg +3 -0
  62. package/icons/svgs/16/arrow-trend-down-16.svg +3 -0
  63. package/icons/svgs/16/arrow-trend-up-16.svg +3 -0
  64. package/icons/svgs/16/arrow-up-16.svg +3 -0
  65. package/icons/svgs/16/arrow-up-left-16.svg +3 -0
  66. package/icons/svgs/16/arrow-up-right-16.svg +3 -0
  67. package/icons/svgs/16/backward-step-16.svg +3 -0
  68. package/icons/svgs/16/ban-16.svg +3 -0
  69. package/icons/svgs/16/bars-16.svg +3 -0
  70. package/icons/svgs/16/bars-sort-down-16.svg +3 -0
  71. package/icons/svgs/16/bars-sort-up-16.svg +3 -0
  72. package/icons/svgs/16/bell-16.svg +3 -0
  73. package/icons/svgs/16/bookmark-16.svg +3 -0
  74. package/icons/svgs/16/calendar-16.svg +3 -0
  75. package/icons/svgs/16/calendar-plus-16.svg +3 -0
  76. package/icons/svgs/16/cart-shopping-16.svg +3 -0
  77. package/icons/svgs/16/check-16.svg +3 -0
  78. package/icons/svgs/16/chevron-down-16.svg +3 -0
  79. package/icons/svgs/16/chevron-left-16.svg +3 -0
  80. package/icons/svgs/16/chevron-right-16.svg +3 -0
  81. package/icons/svgs/16/chevron-up-16.svg +3 -0
  82. package/icons/svgs/16/circle-16.svg +3 -0
  83. package/icons/svgs/16/circle-check-16.svg +3 -0
  84. package/icons/svgs/16/circle-exclamation-16.svg +3 -0
  85. package/icons/svgs/16/circle-info-16.svg +3 -0
  86. package/icons/svgs/16/circle-question-16.svg +3 -0
  87. package/icons/svgs/16/circle-x-16.svg +3 -0
  88. package/icons/svgs/16/clock-rotate-left-16.svg +3 -0
  89. package/icons/svgs/16/code-16.svg +3 -0
  90. package/icons/svgs/16/comment-16.svg +3 -0
  91. package/icons/svgs/16/compass-16.svg +3 -0
  92. package/icons/svgs/16/crown-16.svg +3 -0
  93. package/icons/svgs/16/earth-europa-16.svg +3 -0
  94. package/icons/svgs/16/envelope-16.svg +3 -0
  95. package/icons/svgs/16/eye-16.svg +3 -0
  96. package/icons/svgs/16/eye-slash-16.svg +10 -0
  97. package/icons/svgs/16/facebook-16.svg +3 -0
  98. package/icons/svgs/16/file-16.svg +3 -0
  99. package/icons/svgs/16/file-alt-16.svg +3 -0
  100. package/icons/svgs/16/file-image-16.svg +3 -0
  101. package/icons/svgs/16/file-pdf-16.svg +3 -0
  102. package/icons/svgs/16/file-xmark-16.svg +3 -0
  103. package/icons/svgs/16/filter-16.svg +3 -0
  104. package/icons/svgs/16/forward-step-16.svg +3 -0
  105. package/icons/svgs/16/frown-16.svg +3 -0
  106. package/icons/svgs/16/gear-16.svg +3 -0
  107. package/icons/svgs/16/github-16.svg +3 -0
  108. package/icons/svgs/16/graduation-cap-16.svg +10 -0
  109. package/icons/svgs/16/grid-2-16.svg +3 -0
  110. package/icons/svgs/16/grip-vertical-16.svg +3 -0
  111. package/icons/svgs/16/hand-pointer-16.svg +3 -0
  112. package/icons/svgs/16/house-16.svg +3 -0
  113. package/icons/svgs/16/layer-group-16.svg +3 -0
  114. package/icons/svgs/16/link-16.svg +3 -0
  115. package/icons/svgs/16/linkedin-16.svg +3 -0
  116. package/icons/svgs/16/lock-16.svg +3 -0
  117. package/icons/svgs/16/lock-open-16.svg +10 -0
  118. package/icons/svgs/16/magnifying-glass-16.svg +3 -0
  119. package/icons/svgs/16/meh-16.svg +3 -0
  120. package/icons/svgs/16/message-16.svg +3 -0
  121. package/icons/svgs/16/minus-16.svg +3 -0
  122. package/icons/svgs/16/moon-16.svg +3 -0
  123. package/icons/svgs/16/nps-16.svg +3 -0
  124. package/icons/svgs/16/pause-16.svg +3 -0
  125. package/icons/svgs/16/pc-16.svg +3 -0
  126. package/icons/svgs/16/play-16.svg +3 -0
  127. package/icons/svgs/16/plus-16.svg +3 -0
  128. package/icons/svgs/16/rectangle-barcode-16.svg +3 -0
  129. package/icons/svgs/16/right-from-bracket-16.svg +3 -0
  130. package/icons/svgs/16/share-from-square-16.svg +10 -0
  131. package/icons/svgs/16/signal-stream-16.svg +3 -0
  132. package/icons/svgs/16/smile-16.svg +3 -0
  133. package/icons/svgs/16/smile-rotate-right-16.svg +10 -0
  134. package/icons/svgs/16/sort-16.svg +3 -0
  135. package/icons/svgs/16/sort-alt-16.svg +3 -0
  136. package/icons/svgs/16/sort-down-16.svg +3 -0
  137. package/icons/svgs/16/sort-left-16.svg +3 -0
  138. package/icons/svgs/16/sort-right-16.svg +3 -0
  139. package/icons/svgs/16/sort-up-16.svg +3 -0
  140. package/icons/svgs/16/star-16.svg +3 -0
  141. package/icons/svgs/16/stop-16.svg +3 -0
  142. package/icons/svgs/16/sun-bright-16.svg +3 -0
  143. package/icons/svgs/16/tags-16.svg +3 -0
  144. package/icons/svgs/16/text-slash-16.svg +10 -0
  145. package/icons/svgs/16/thumbs-down-16.svg +3 -0
  146. package/icons/svgs/16/thumbs-up-16.svg +3 -0
  147. package/icons/svgs/16/thumbtack-16.svg +3 -0
  148. package/icons/svgs/16/triangle-exclamation-16.svg +3 -0
  149. package/icons/svgs/16/turn-down-right-16.svg +3 -0
  150. package/icons/svgs/16/twitter-16.svg +10 -0
  151. package/icons/svgs/16/user-16.svg +3 -0
  152. package/icons/svgs/16/wave-sine-16.svg +3 -0
  153. package/icons/svgs/16/xmark-16.svg +3 -0
  154. package/icons/svgs/24/arrow-down-24.svg +3 -0
  155. package/icons/svgs/24/arrow-down-left-24.svg +3 -0
  156. package/icons/svgs/24/arrow-down-right-24.svg +3 -0
  157. package/icons/svgs/24/arrow-down-to-bracket-24.svg +3 -0
  158. package/icons/svgs/24/arrow-left-24.svg +3 -0
  159. package/icons/svgs/24/arrow-right-24.svg +3 -0
  160. package/icons/svgs/24/arrow-rotate-right-24.svg +3 -0
  161. package/icons/svgs/24/arrow-trend-down-24.svg +3 -0
  162. package/icons/svgs/24/arrow-trend-up-24.svg +3 -0
  163. package/icons/svgs/24/arrow-up-24.svg +3 -0
  164. package/icons/svgs/24/arrow-up-left-24.svg +3 -0
  165. package/icons/svgs/24/arrow-up-right-24.svg +3 -0
  166. package/icons/svgs/24/backward-step-24.svg +3 -0
  167. package/icons/svgs/24/ban-24.svg +3 -0
  168. package/icons/svgs/24/bars-24.svg +3 -0
  169. package/icons/svgs/24/bars-sort-down-24.svg +3 -0
  170. package/icons/svgs/24/bars-sort-up-24.svg +3 -0
  171. package/icons/svgs/24/bell-24.svg +3 -0
  172. package/icons/svgs/24/bookmark-24.svg +3 -0
  173. package/icons/svgs/24/calendar-24.svg +3 -0
  174. package/icons/svgs/24/calendar-plus-24.svg +3 -0
  175. package/icons/svgs/24/cart-shopping-24.svg +3 -0
  176. package/icons/svgs/24/check-24.svg +3 -0
  177. package/icons/svgs/24/chevron-down-24.svg +3 -0
  178. package/icons/svgs/24/chevron-left-24.svg +3 -0
  179. package/icons/svgs/24/chevron-right-24.svg +3 -0
  180. package/icons/svgs/24/chevron-up-24.svg +3 -0
  181. package/icons/svgs/24/circle-24.svg +3 -0
  182. package/icons/svgs/24/circle-check-24.svg +3 -0
  183. package/icons/svgs/24/circle-exclamation-24.svg +3 -0
  184. package/icons/svgs/24/circle-info-24.svg +3 -0
  185. package/icons/svgs/24/circle-question-24.svg +3 -0
  186. package/icons/svgs/24/circle-x-24.svg +3 -0
  187. package/icons/svgs/24/clock-rotate-left-24.svg +3 -0
  188. package/icons/svgs/24/code-24.svg +3 -0
  189. package/icons/svgs/24/comment-24.svg +3 -0
  190. package/icons/svgs/24/compass-24.svg +3 -0
  191. package/icons/svgs/24/crown-24.svg +3 -0
  192. package/icons/svgs/24/earth-europa-24.svg +3 -0
  193. package/icons/svgs/24/envelope-24.svg +3 -0
  194. package/icons/svgs/24/eye-24.svg +3 -0
  195. package/icons/svgs/24/eye-slash-24.svg +3 -0
  196. package/icons/svgs/24/facebook-24.svg +3 -0
  197. package/icons/svgs/24/file-24.svg +3 -0
  198. package/icons/svgs/24/file-alt-24.svg +3 -0
  199. package/icons/svgs/24/file-image-24.svg +3 -0
  200. package/icons/svgs/24/file-pdf-24.svg +3 -0
  201. package/icons/svgs/24/file-xmark-24.svg +3 -0
  202. package/icons/svgs/24/filter-24.svg +3 -0
  203. package/icons/svgs/24/forward-step-24.svg +3 -0
  204. package/icons/svgs/24/frown-24.svg +3 -0
  205. package/icons/svgs/24/gear-24.svg +3 -0
  206. package/icons/svgs/24/github-24.svg +3 -0
  207. package/icons/svgs/24/graduation-cap-24.svg +3 -0
  208. package/icons/svgs/24/grid-2-24.svg +3 -0
  209. package/icons/svgs/24/grip-vertical-24.svg +3 -0
  210. package/icons/svgs/24/hand-pointer-24.svg +3 -0
  211. package/icons/svgs/24/house-24.svg +3 -0
  212. package/icons/svgs/24/layer-group-24.svg +3 -0
  213. package/icons/svgs/24/link-24.svg +3 -0
  214. package/icons/svgs/24/linkedin-24.svg +3 -0
  215. package/icons/svgs/24/lock-24.svg +3 -0
  216. package/icons/svgs/24/lock-open-24.svg +3 -0
  217. package/icons/svgs/24/magnifying-glass-24.svg +3 -0
  218. package/icons/svgs/24/meh-24.svg +3 -0
  219. package/icons/svgs/24/message-24.svg +3 -0
  220. package/icons/svgs/24/minus-24.svg +3 -0
  221. package/icons/svgs/24/moon-24.svg +3 -0
  222. package/icons/svgs/24/nps-24.svg +3 -0
  223. package/icons/svgs/24/pause-24.svg +3 -0
  224. package/icons/svgs/24/pc-24.svg +3 -0
  225. package/icons/svgs/24/play-24.svg +3 -0
  226. package/icons/svgs/24/plus-24.svg +3 -0
  227. package/icons/svgs/24/rectangle-barcode-24.svg +3 -0
  228. package/icons/svgs/24/right-from-bracket-24.svg +3 -0
  229. package/icons/svgs/24/share-from-square-24.svg +3 -0
  230. package/icons/svgs/24/signal-stream-24.svg +3 -0
  231. package/icons/svgs/24/smile-24.svg +3 -0
  232. package/icons/svgs/24/smile-rotate-right-24.svg +3 -0
  233. package/icons/svgs/24/sort-24.svg +3 -0
  234. package/icons/svgs/24/sort-alt-24.svg +3 -0
  235. package/icons/svgs/24/sort-down-24.svg +3 -0
  236. package/icons/svgs/24/sort-left-24.svg +3 -0
  237. package/icons/svgs/24/sort-right-24.svg +3 -0
  238. package/icons/svgs/24/sort-up-24.svg +3 -0
  239. package/icons/svgs/24/star-24.svg +3 -0
  240. package/icons/svgs/24/stop-24.svg +3 -0
  241. package/icons/svgs/24/sun-bright-24.svg +3 -0
  242. package/icons/svgs/24/tags-24.svg +3 -0
  243. package/icons/svgs/24/text-slash-24.svg +3 -0
  244. package/icons/svgs/24/thumbs-down-24.svg +3 -0
  245. package/icons/svgs/24/thumbs-up-24.svg +3 -0
  246. package/icons/svgs/24/thumbtack-24.svg +3 -0
  247. package/icons/svgs/24/triangle-exclamation-24.svg +3 -0
  248. package/icons/svgs/24/turn-down-right-24.svg +3 -0
  249. package/icons/svgs/24/twitter-24.svg +3 -0
  250. package/icons/svgs/24/user-24.svg +3 -0
  251. package/icons/svgs/24/wave-sine-24.svg +3 -0
  252. package/icons/svgs/24/xmark-24.svg +3 -0
  253. package/icons/types.d.ts +4 -0
  254. package/index.d.ts +77 -39
  255. package/index.js +2 -3
  256. package/info-state/info-state.d.ts +12 -3
  257. package/info-state/info-state.js +4 -10
  258. package/info-state/info-state.module.css +1 -77
  259. package/input-group/input-group.d.ts +3 -3
  260. package/input-group/input-group.js +11 -15
  261. package/input-group/input-group.module.css +1 -36
  262. package/linear-progress/linear-progress.d.ts +4 -4
  263. package/linear-progress/linear-progress.js +7 -8
  264. package/linear-progress/linear-progress.module.css +1 -81
  265. package/list/list.d.ts +2 -1
  266. package/list/list.js +4 -6
  267. package/list/list.module.css +1 -48
  268. package/masonry/masonry.d.ts +2 -2
  269. package/masonry/masonry.js +6 -5
  270. package/masonry/masonry.module.css +1 -14
  271. package/modal/content/modal-content.d.ts +9 -0
  272. package/modal/content/modal-content.js +11 -0
  273. package/modal/content/modal-content.module.css +1 -0
  274. package/modal/index.d.ts +1 -1
  275. package/modal/index.js +1 -1
  276. package/modal/modal-context.d.ts +4 -4
  277. package/modal/modal-context.js +10 -0
  278. package/modal/modal.d.ts +6 -9
  279. package/modal/modal.js +8 -25
  280. package/modal/modal.module.css +1 -48
  281. package/overlay-container/index.d.ts +2 -0
  282. package/overlay-container/index.js +1 -0
  283. package/overlay-container/overlay-container.d.ts +7 -0
  284. package/overlay-container/overlay-container.js +13 -0
  285. package/package.json +47 -39
  286. package/pagination/pagination.d.ts +2 -4
  287. package/pagination/pagination.js +4 -3
  288. package/pagination/pagination.module.css +1 -31
  289. package/prose/prose.js +4 -4
  290. package/prose/prose.module.css +1 -23
  291. package/select/select.d.ts +3 -3
  292. package/select/select.js +4 -7
  293. package/select/select.module.css +1 -108
  294. package/selection-controls/checkbox.d.ts +3 -3
  295. package/selection-controls/checkbox.js +4 -3
  296. package/selection-controls/radio.d.ts +3 -3
  297. package/selection-controls/radio.js +4 -3
  298. package/selection-controls/selection-controls.module.css +1 -119
  299. package/selection-controls/toggle.d.ts +3 -3
  300. package/selection-controls/toggle.js +4 -3
  301. package/separator/index.d.ts +1 -0
  302. package/separator/separator.d.ts +3 -2
  303. package/separator/separator.js +4 -3
  304. package/separator/separator.module.css +1 -6
  305. package/skeleton-block/skeleton-block.d.ts +1 -1
  306. package/skeleton-block/skeleton-block.js +3 -3
  307. package/slider/slider.d.ts +3 -3
  308. package/slider/slider.js +4 -8
  309. package/slider/slider.module.css +1 -101
  310. package/snackbar/snackbar.js +4 -12
  311. package/snackbar/snackbar.module.css +1 -46
  312. package/spinner/spinner.d.ts +4 -1
  313. package/spinner/spinner.js +7 -9
  314. package/split-button/split-button.js +4 -6
  315. package/split-button/split-button.module.css +1 -28
  316. package/stack/stack.js +4 -4
  317. package/stack/stack.module.css +1 -27
  318. package/star-meter/star-meter.d.ts +1 -1
  319. package/star-meter/star-meter.js +5 -14
  320. package/star-meter/star-meter.module.css +1 -30
  321. package/tab/index.d.ts +1 -1
  322. package/tab/index.js +1 -1
  323. package/tab/primitive-tab.d.ts +1 -1
  324. package/tab/primitive-tab.js +3 -3
  325. package/tab/tab-item.d.ts +4 -2
  326. package/tab/tab-item.js +6 -7
  327. package/tab/tab-list.d.ts +3 -2
  328. package/tab/tab-list.js +4 -3
  329. package/tab/tab-panel.d.ts +5 -2
  330. package/tab/tab-panel.js +5 -3
  331. package/tab/tab.d.ts +11 -9
  332. package/tab/tab.js +11 -14
  333. package/tab/tab.module.css +1 -103
  334. package/table/table.d.ts +3 -3
  335. package/table/table.js +9 -12
  336. package/table/table.module.css +1 -32
  337. package/text/text.d.ts +1 -1
  338. package/text/text.js +4 -4
  339. package/text/text.module.css +1 -89
  340. package/textfield/base-field/base-field.d.ts +1 -0
  341. package/textfield/base-field/base-field.js +4 -3
  342. package/textfield/base-field/base-field.module.css +1 -119
  343. package/textfield/base-field/index.d.ts +1 -1
  344. package/textfield/textfield.d.ts +6 -6
  345. package/textfield/textfield.js +6 -10
  346. package/textfield/textfield.module.css +1 -103
  347. package/themes/dark.css +1 -1
  348. package/themes/light.css +1 -1
  349. package/themes.css +1 -143
  350. package/title/title.d.ts +1 -1
  351. package/title/title.js +4 -4
  352. package/title/title.module.css +1 -85
  353. package/toggle-button/toggle-button.js +7 -7
  354. package/toggle-button/toggle-button.module.css +1 -37
  355. package/tooltip/tooltip.d.ts +2 -2
  356. package/tooltip/tooltip.js +6 -10
  357. package/tooltip/tooltip.module.css +1 -72
  358. package/modal/modal-content.d.ts +0 -7
  359. package/modal/modal-content.js +0 -15
  360. package/modal/modal-content.module.css +0 -40
  361. package/theme-switch/index.d.ts +0 -2
  362. package/theme-switch/index.js +0 -1
  363. package/theme-switch/theme-switch.d.ts +0 -9
  364. package/theme-switch/theme-switch.js +0 -14
@@ -1,85 +1 @@
1
- .Title {
2
- &:is(.H1, .H2, .H3, .H4, .H5, .H6, .Display) {
3
- display: block;
4
- line-height: env(--font-lh-small);
5
- color: var(--heading-foreground);
6
- min-block-size: 0.01vh;
7
- font-size: var(--fluid-type-max);
8
- max-inline-size: var(--maxW, initial);
9
- text-align: var(--tAlign);
10
- overflow-wrap: break-word;
11
-
12
- &[data-title-is-fluid='true'] {
13
- font-size:
14
- clamp(
15
- var(--fluid-type-min, env(--font-size-16)),
16
- var(--fluid-type-factor, calc(0.6rem + 0.92vw)),
17
- var(--fluid-type-max, 1rem)
18
- );
19
- }
20
-
21
- &[data-title-line-height='none'] {
22
- line-height: 0.3;
23
- }
24
-
25
- &[data-title-line-height='small'] {
26
- line-height: 1;
27
- }
28
- }
29
-
30
- &:is(.H6) {
31
- --fluid-type-min: env(--font-size-14);
32
- --fluid-type-factor: calc(env(--font-size-16) + 0.44vw);
33
- --fluid-type-max: env(--font-size-18);
34
-
35
- font-weight: 700;
36
- }
37
-
38
- &:is(.H5) {
39
- --fluid-type-min: 1rem;
40
- --fluid-type-factor: calc(0.76rem + 1.32vw);
41
- --fluid-type-max: 1.33rem;
42
-
43
- font-weight: 700;
44
- }
45
-
46
- &:is(.H4) {
47
- --fluid-type-min: 1.33rem;
48
- --fluid-type-factor: calc(1.01rem + 1.76vw);
49
- --fluid-type-max: 1.77rem;
50
-
51
- font-weight: 700;
52
- }
53
-
54
- &:is(.H3) {
55
- --fluid-type-min: 1.77rem;
56
- --fluid-type-factor: calc(1.35rem + 2.37vw);
57
- --fluid-type-max: 2.37rem;
58
-
59
- font-weight: 800;
60
- }
61
-
62
- &:is(.H2) {
63
- --fluid-type-min: 2.37rem;
64
- --fluid-type-factor: calc(1.8rem + 3.17vw);
65
- --fluid-type-max: 3.16rem;
66
-
67
- font-weight: 800;
68
- }
69
-
70
- &:is(.H1) {
71
- --fluid-type-min: 3.16rem;
72
- --fluid-type-factor: calc(2.23rem + 4.17vw);
73
- --fluid-type-max: 4.2rem;
74
-
75
- font-weight: 800;
76
- }
77
-
78
- &.Display {
79
- --fluid-type-min: 4.2rem;
80
- --fluid-type-factor: calc(3.19rem + 5.66vw);
81
- --fluid-type-max: 5.6rem;
82
-
83
- font-weight: 800;
84
- }
85
- }
1
+ .Title:is(.H1,.H2,.H3,.H4,.H5,.H6,.Display){--lh:0.3;color:var(--heading-foreground);display:block;font-size:var(--fs-max);line-height:1.2;max-inline-size:var(--maxW,initial);min-block-size:.01vh;overflow-wrap:break-word;text-align:var(--tAlign)}.Title:is(.H1,.H2,.H3,.H4,.H5,.H6,.Display)[data-title-line-height=small]{--lh:1.33}.Title:is(.H6){--fs-min:0.78rem;--fs-max:1.00rem;font-weight:700}.Title:is(.H5){--fs-min:1rem;--fs-max:1.33rem;font-weight:700}.Title:is(.H4){--fs-min:1.33rem;--fs-max:1.77rem;font-weight:700}.Title:is(.H3){--fs-min:1.77rem;--fs-max:2.37rem;font-weight:800}.Title:is(.H3):before{content:"";display:block;height:0;margin-top:calc((1 - var(--lh))*.6em);width:0}.Title:is(.H2){--fs-min:2.37rem;--fs-max:3.16rem;font-weight:800}.Title:is(.H2):before{content:"";display:block;height:0;margin-top:calc((1 - var(--lh))*.6em);width:0}.Title:is(.H1){--fs-min:3.16rem;--fs-max:4.2rem;font-weight:800}.Title:is(.H1):before{content:"";display:block;height:0;margin-top:calc((1 - var(--lh))*.6em);width:0}.Title.Display{--fs-min:4.2rem;--fs-max:5.6rem;font-weight:800}.Title.Display:before{content:"";display:block;height:0;margin-top:calc((1 - var(--lh))*.6em);width:0}.Title[data-title-responsive=true]{font-size:var(--fs-min)}@media (min-width:48em){.Title[data-title-responsive=true]{font-size:var(--fs-max)}}
@@ -1,4 +1,5 @@
1
- import React, { forwardRef, useCallback, useEffect, useState } from 'react';
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { forwardRef, useCallback, useEffect, useState } from 'react';
2
3
  import { ToggleButton as ToggleButtonClass } from './toggle-button.module.css';
3
4
  import { IconButton, Icon } from '../';
4
5
  import clsx from 'clsx';
@@ -21,7 +22,7 @@ const scaleAnimation = {
21
22
  }
22
23
  }
23
24
  };
24
- export const ToggleButton = forwardRef(({ className, restingIcon, pressedIcon, dimension, kind, disabled, pressed = false, onClick, ...props }, forwardedRef) => {
25
+ export const ToggleButton = forwardRef(({ className, restingIcon, pressedIcon, dimension, kind, disabled, iconColor, pressed = false, onClick, ...otherProps }, forwardedRef) => {
25
26
  const [isPressed, setIsPressed] = useState(pressed);
26
27
  const [firstRender, setFirstRender] = useState(true);
27
28
  useEffect(() => {
@@ -37,10 +38,9 @@ export const ToggleButton = forwardRef(({ className, restingIcon, pressedIcon, d
37
38
  regular: 16,
38
39
  small: 16
39
40
  };
40
- return (React.createElement(Icon, { name: icon, dimension: iconSize[dimension] }));
41
+ return (_jsx(Icon, { name: icon, dimension: iconSize[dimension] }, void 0));
41
42
  }, []);
42
- return (React.createElement(IconButton, { as: "button", ref: forwardedRef, dimension: dimension, "aria-pressed": isPressed, kind: kind, disabled: disabled, onClick: handleClick, className: clsx(ToggleButtonClass, className), ...props }, isPressed && pressedIcon
43
- ? (React.createElement(motion.span, { key: "pressedIcon", variants: scaleAnimation, initial: firstRender && isPressed ? false : 'scaleOut', animate: "scaleIn" }, renderIcon(pressedIcon, dimension)))
44
- : restingIcon && (React.createElement(motion.span, { key: "restingIcon", variants: scaleAnimation, initial: firstRender && !isPressed ? false : 'scaleOut', animate: "scaleIn" }, renderIcon(restingIcon, dimension)))));
43
+ return (_jsx(IconButton, { as: "button", ref: forwardedRef, dimension: dimension, "aria-pressed": isPressed, kind: kind, disabled: disabled, onClick: handleClick, className: clsx(ToggleButtonClass, className), ...otherProps, children: isPressed && pressedIcon
44
+ ? (_jsx(motion.span, { variants: scaleAnimation, initial: firstRender && isPressed ? false : 'scaleOut', animate: "scaleIn", children: renderIcon(pressedIcon, dimension) }, "pressedIcon"))
45
+ : restingIcon && (_jsx(motion.span, { variants: scaleAnimation, initial: firstRender && !isPressed ? false : 'scaleOut', animate: "scaleIn", children: renderIcon(restingIcon, dimension) }, "restingIcon")) }, void 0));
45
46
  });
46
- ToggleButton.displayName = 'ToggleButton';
@@ -1,37 +1 @@
1
- .ToggleButton {
2
- border-radius: 200px;
3
- line-height: 1;
4
- padding: 0;
5
- transition: box-shadow env(--duration-300) env(--easing-entrance);
6
-
7
- &[aria-pressed='true'] {
8
- box-shadow:
9
- 0 0 0 var(--border-width) var(--border-color),
10
- 0 0 0 var(--border-width) var(--border-color),
11
- inset 0 0 0 calc(var(--border-width) / 2) hsl(0deg 0% 0% / 20%);
12
- }
13
-
14
- &[data-button-kind='primary'] {
15
- --border-color: hsl(env(--color-red-30) / 25%);
16
- }
17
-
18
- &[data-button-kind='secondary'] {
19
- --border-color: var(--dimmed-2);
20
- }
21
-
22
- &[data-button-kind='flat'] {
23
- --border-color: var(--dimmed-2);
24
- }
25
-
26
- &[data-button-dimension='small'] {
27
- --border-width: 2px;
28
- }
29
-
30
- &[data-button-dimension='regular'] {
31
- --border-width: 4px;
32
- }
33
-
34
- &[data-button-dimension='big'] {
35
- --border-width: 6px;
36
- }
37
- }
1
+ .ToggleButton{border-radius:200px;line-height:1;padding:0;transition:box-shadow .3s cubic-bezier(0,0,.34,1)}.ToggleButton[aria-pressed=true]{box-shadow:0 0 0 var(--border-width) var(--border-color),0 0 0 var(--border-width) var(--border-color)}.ToggleButton[data-button-kind=primary]{--border-color:#cf2a4340}.ToggleButton[data-button-kind=primary][aria-pressed=true]{background:none;color:var(--cta-default)}.ToggleButton[data-button-kind=secondary]{--border-color:var(--dimmed-2)}.ToggleButton[data-button-kind=secondary][aria-pressed=true]{background:none;color:var(--global-vibrancy-foreground)}.ToggleButton[data-button-kind=flat]{--border-color:var(--dimmed-2)}.ToggleButton[data-button-kind=flat][aria-pressed=true]{background:none;color:var(--global-vibrancy-foreground)}.ToggleButton[data-button-dimension=small]{--border-width:2px}.ToggleButton[data-button-dimension=regular]{--border-width:4px}.ToggleButton[data-button-dimension=big]{--border-width:6px}
@@ -1,4 +1,4 @@
1
- import React, { ReactNode } from 'react';
1
+ import { FC, ReactNode } from 'react';
2
2
  import { AutoPlacement, BasePlacement, VariationPlacement } from '@popperjs/core/lib';
3
3
  export declare type TooltipProps = PropsWithClass & {
4
4
  children: ReactNode;
@@ -9,4 +9,4 @@ export declare type TooltipProps = PropsWithClass & {
9
9
  maxWidth?: string;
10
10
  fill?: boolean;
11
11
  };
12
- export declare const Tooltip: React.FC<TooltipProps>;
12
+ export declare const Tooltip: FC<TooltipProps>;
@@ -1,4 +1,5 @@
1
- import React, { Children, cloneElement, useState } from 'react';
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Children, cloneElement, useState } from 'react';
2
3
  import { useUIDSeed } from 'react-uid';
3
4
  import { useKey } from 'react-use';
4
5
  import { Elevator } from '../';
@@ -33,13 +34,8 @@ export const Tooltip = ({ children, trigger, placement = 'bottom-start', show, s
33
34
  const dynamycStyle = {
34
35
  '--maxW': maxWidth
35
36
  };
36
- return (React.createElement("div", { "data-tooltip-fill": fill, className: Trigger, ...focusWithinProps, style: { ...style } },
37
- Children.map(trigger, (child) => cloneElement(child, {
38
- ref: setTriggerRef,
39
- 'aria-describedby': seedID('tooltip-content')
40
- })),
41
- visible && (React.createElement(Elevator, { resting: 2 },
42
- React.createElement("div", { ref: setTooltipRef, role: "tooltip", id: seedID('tooltip-content'), "data-theme": "dark", ...getTooltipProps({ className: TooltipClass, style: dynamycStyle }) },
43
- children,
44
- React.createElement("div", { ...getArrowProps({ className: Arrow }) }))))));
37
+ return (_jsxs("div", { "data-tooltip-fill": fill, className: Trigger, ...focusWithinProps, style: { ...style }, children: [Children.map(trigger, (child) => cloneElement(child, {
38
+ ref: setTriggerRef,
39
+ 'aria-describedby': seedID('tooltip-content')
40
+ })), visible && (_jsx(Elevator, { resting: 2, children: _jsxs("div", { ref: setTooltipRef, role: "tooltip", id: seedID('tooltip-content'), "data-theme": "dark", ...getTooltipProps({ className: TooltipClass, style: dynamycStyle }), children: [children, _jsx("div", { ...getArrowProps({ className: Arrow }) }, void 0)] }, void 0) }, void 0))] }, void 0));
45
41
  };
@@ -1,72 +1 @@
1
- .Tooltip {
2
- position: relative;
3
- padding: env(--space-8) env(--space-16);
4
- border-radius: env(--radius-4);
5
- background-color: hsl(env(--color-primary-80));
6
- font-size: env(--font-size-16);
7
- max-inline-size: var(--maxW);
8
- word-wrap: break-word;
9
-
10
- /* max-inline-size: var(--w, 40ch); */
11
- z-index: 2;
12
-
13
- &[data-popper-reference-hidden='true'] {
14
- visibility: hidden;
15
- pointer-events: none;
16
- }
17
- }
18
-
19
- .Trigger {
20
- display: inline-flex;
21
-
22
- &[data-tooltip-fill='true'] {
23
- display: flex;
24
- }
25
- }
26
-
27
-
28
- .Arrow {
29
- &::before {
30
- content: '';
31
- position: absolute;
32
- inline-size: 12px;
33
- block-size: 12px;
34
- background-color: hsl(env(--color-primary-80));
35
- visibility: visible;
36
- transform: rotate(45deg);
37
- }
38
-
39
- @nest .Tooltip[data-popper-reference-hidden='true'] & {
40
- visibility: hidden;
41
- pointer-events: none;
42
- }
43
- @nest .Tooltip[data-popper-placement^='top'] & {
44
- bottom: 6px;
45
-
46
-
47
- &::before {
48
- transform: translateX(-50%) rotate(45deg);
49
- }
50
- }
51
- @nest .Tooltip[data-popper-placement^='left'] & {
52
- right: 6px;
53
-
54
- &::before {
55
- transform: translateY(-50%) rotate(45deg);
56
- }
57
- }
58
- @nest .Tooltip[data-popper-placement^='bottom'] & {
59
- top: -6px;
60
-
61
- &::before {
62
- transform: translateX(-50%) rotate(45deg);
63
- }
64
- }
65
- @nest .Tooltip[data-popper-placement^='right'] & {
66
- left: -6px;
67
-
68
- &::before {
69
- transform: translateY(-50%) rotate(45deg);
70
- }
71
- }
72
- }
1
+ .Tooltip{word-wrap:break-word;background-color:#31363f;border-radius:.22rem;font-size:.89rem;max-inline-size:var(--maxW);padding:.44rem .89rem;position:relative;z-index:2}.Tooltip[data-popper-reference-hidden=true]{pointer-events:none;visibility:hidden}.Trigger{display:inline-flex}.Trigger[data-tooltip-fill=true]{display:flex}.Arrow:before{background-color:#31363f;block-size:12px;content:"";inline-size:12px;position:absolute;transform:rotate(45deg);visibility:visible}.Tooltip[data-popper-reference-hidden=true] .Arrow{pointer-events:none;visibility:hidden}.Tooltip[data-popper-placement^=top] .Arrow{bottom:6px}.Tooltip[data-popper-placement^=top] .Arrow:before{transform:translateX(-50%) rotate(45deg)}.Tooltip[data-popper-placement^=left] .Arrow{right:6px}.Tooltip[data-popper-placement^=left] .Arrow:before{transform:translateY(-50%) rotate(45deg)}.Tooltip[data-popper-placement^=bottom] .Arrow{top:-6px}.Tooltip[data-popper-placement^=bottom] .Arrow:before{transform:translateX(-50%) rotate(45deg)}.Tooltip[data-popper-placement^=right] .Arrow{left:-6px}.Tooltip[data-popper-placement^=right] .Arrow:before{transform:translateY(-50%) rotate(45deg)}
@@ -1,7 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- export declare type ModalContentProps = PropsWithClass & {
3
- title: ReactNode;
4
- };
5
- export declare const ModalContent: React.ForwardRefExoticComponent<PropsWithClass & {
6
- title: ReactNode;
7
- } & React.RefAttributes<HTMLDivElement>>;
@@ -1,15 +0,0 @@
1
- import clsx from 'clsx';
2
- import React, { forwardRef } from 'react';
3
- import { Content, Header, CloseButton } from './modal-content.module.css';
4
- import { Title, Elevator, IconButton, Stack } from '../';
5
- import { useModalContext } from './modal-context';
6
- export const ModalContent = forwardRef(({ children, className, title, ...props }, forwardedRef) => {
7
- const { onClose, titleId } = useModalContext();
8
- return (React.createElement(Elevator, { resting: 4 },
9
- React.createElement("div", { className: clsx(Content, className), ref: forwardedRef, "data-theme": "light", ...props },
10
- React.createElement(Stack, { as: "header", verticalAlign: "center", fill: false, horizontalAlign: "space-between", direction: "row", className: Header },
11
- React.createElement(Title, { level: "5", id: titleId }, title),
12
- onClose && React.createElement(IconButton, { onClick: onClose, className: CloseButton, icon: "xmark", kind: "flat" })),
13
- children)));
14
- });
15
- ModalContent.displayName = 'Modal.Content';
@@ -1,40 +0,0 @@
1
- @import '../core/media.css';
2
-
3
- .Content {
4
- background-color: var(--global-background);
5
- color: var(--global-foreground);
6
- overscroll-behavior: contain;
7
- inline-size: 100%;
8
- overflow: auto;
9
- -webkit-overflow-scrolling: touch;
10
- max-block-size: 95vh;
11
- border-radius: env(--radius-16) env(--radius-16) 0 0;
12
- justify-self: center;
13
- align-self: end;
14
-
15
- @media (--from-extra-small) {
16
- max-inline-size: 600px;
17
- max-block-size: 80vh;
18
- border-radius: env(--radius-8);
19
- justify-self: center;
20
- align-self: center;
21
- }
22
- }
23
-
24
- .Header {
25
- position: sticky;
26
- top: 0;
27
- background-color: inherit;
28
- border-bottom: 1px solid var(--dimmed-1);
29
- padding:
30
- env(--space-16)
31
- env(--space-80)
32
- env(--space-16)
33
- env(--space-24);
34
- }
35
-
36
- .CloseButton.CloseButton {
37
- position: absolute;
38
- top: env(--space-8);
39
- right: env(--space-8);
40
- }
@@ -1,2 +0,0 @@
1
- export { ThemeSwitch } from './theme-switch';
2
- export type { ThemeSwitchProps } from './theme-switch';
@@ -1 +0,0 @@
1
- export { ThemeSwitch } from './theme-switch';
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- import { SelectProps } from '../';
3
- import { Except } from 'type-fest';
4
- export declare type ThemeSwitchProps = Except<SelectProps, 'children'> & {
5
- currentTheme?: string;
6
- onChange: SelectProps['onChange'];
7
- dimension?: SelectProps['dimension'];
8
- };
9
- export declare const ThemeSwitch: ({ className, currentTheme, onChange, dimension }: ThemeSwitchProps) => JSX.Element;
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- import { Select } from '../';
3
- import clsx from 'clsx';
4
- export const ThemeSwitch = ({ className, currentTheme = 'system', onChange, dimension }) => {
5
- const icon = {
6
- light: 'sun-bright',
7
- system: 'pc',
8
- dark: 'moon'
9
- };
10
- return (React.createElement(Select, { dimension: dimension, onChange: onChange, icon: currentTheme === 'system' ? icon.system : icon[currentTheme], defaultValue: currentTheme, className: clsx(className), "aria-label": "Change color scheme" },
11
- React.createElement("option", { value: "light" }, "Light"),
12
- React.createElement("option", { value: "system" }, "System"),
13
- React.createElement("option", { value: "dark" }, "Dark")));
14
- };