winduum 1.2.1 → 2.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 (332) hide show
  1. package/dist/main.css +1 -1
  2. package/dist/tailwind.css +1 -1
  3. package/package.json +15 -15
  4. package/plugin/index.cjs +81 -43
  5. package/plugin/index.js +73 -22
  6. package/plugin/utilities/common.js +4 -4
  7. package/plugin/utilities/dot.js +4 -5
  8. package/src/base/breakpoints.css +10 -10
  9. package/src/base/config/font.css +22 -9
  10. package/src/base/config/rounded.css +12 -12
  11. package/src/base/config/transition.css +14 -14
  12. package/src/base/config/z.css +5 -5
  13. package/src/base/config.css +0 -1
  14. package/src/base/defaults.css +10 -12
  15. package/src/base/keyframes.css +13 -1
  16. package/src/base/reset.css +2 -7
  17. package/src/base/theme/dark-rgb.css +1 -1
  18. package/src/base/theme/dark.css +1 -1
  19. package/src/base/theme/default-rgb.css +6 -6
  20. package/src/base/theme/default.css +6 -6
  21. package/src/components/badge/bordered.css +6 -0
  22. package/src/components/badge/circle.css +5 -0
  23. package/src/components/badge/default.css +42 -0
  24. package/src/{ui → components}/badge/index.css +1 -1
  25. package/src/components/badge/lg.css +3 -0
  26. package/src/components/badge/muted.css +4 -0
  27. package/src/components/badge/props/default.css +9 -0
  28. package/src/components/badge/readme.md +37 -0
  29. package/src/components/badge/sm.css +4 -0
  30. package/src/components/badge/square.css +4 -0
  31. package/src/components/breadcrumb/default.css +7 -7
  32. package/src/components/breadcrumb/index.css +1 -1
  33. package/src/components/breadcrumb/props/default.css +5 -0
  34. package/src/components/breadcrumb/readme.md +1 -1
  35. package/src/components/button/bordered.css +19 -0
  36. package/src/components/button/circle.css +6 -0
  37. package/src/components/button/default.css +63 -0
  38. package/src/components/button/fill.css +6 -0
  39. package/src/components/button/ghosted.css +14 -0
  40. package/src/{ui/btn → components/button}/index.css +2 -7
  41. package/src/components/button/interactive.css +56 -0
  42. package/src/components/button/lg.css +4 -0
  43. package/src/components/button/muted.css +14 -0
  44. package/src/components/button/props/default.css +11 -0
  45. package/src/components/button/props/interactive.css +9 -0
  46. package/src/components/button/raised.css +6 -0
  47. package/src/components/button/readme.md +46 -0
  48. package/src/components/button/sm.css +4 -0
  49. package/src/components/button/square.css +5 -0
  50. package/src/components/card/default.css +4 -6
  51. package/src/components/card/index.css +1 -1
  52. package/src/components/card/props/default.css +6 -0
  53. package/src/components/card/readme.md +1 -1
  54. package/src/components/carousel/content.css +2 -2
  55. package/src/components/carousel/default.css +1 -1
  56. package/src/components/carousel/index.d.ts +3 -3
  57. package/src/components/carousel/index.js +13 -11
  58. package/src/components/check/default.css +67 -0
  59. package/src/{ui/switch → components/check}/index.css +1 -1
  60. package/src/components/check/interactive.css +56 -0
  61. package/src/components/check/invalid.css +9 -0
  62. package/src/components/check/props/default.css +13 -0
  63. package/src/{ui/color → components/check}/readme.md +8 -9
  64. package/src/components/color/default.css +36 -0
  65. package/src/components/color/index.css +3 -0
  66. package/src/components/color/interactive.css +36 -0
  67. package/src/components/color/props/default.css +7 -0
  68. package/src/{ui/title → components/color}/readme.md +7 -8
  69. package/src/components/compare/default.css +17 -18
  70. package/src/components/compare/index.js +2 -2
  71. package/src/components/control/color.css +24 -0
  72. package/src/components/control/default.css +74 -0
  73. package/src/components/control/file.css +27 -0
  74. package/src/components/control/floating-interactive.css +13 -0
  75. package/src/components/control/floating.css +36 -0
  76. package/src/components/control/icon.css +32 -0
  77. package/src/{ui → components}/control/index.css +5 -6
  78. package/src/components/control/interactive.css +19 -0
  79. package/src/components/control/invalid.css +10 -0
  80. package/src/components/control/props/color.css +5 -0
  81. package/src/components/control/props/default.css +16 -0
  82. package/src/components/control/props/floating.css +4 -0
  83. package/src/components/control/props/icon.css +4 -0
  84. package/src/components/control/props/select.css +4 -0
  85. package/src/components/control/readme.md +43 -0
  86. package/src/{ui → components}/control/select-multiple.css +2 -2
  87. package/src/components/control/select.css +23 -0
  88. package/src/components/dialog/content.css +7 -7
  89. package/src/components/dialog/default.css +14 -12
  90. package/src/components/dialog/index.css +2 -2
  91. package/src/components/dialog/index.d.ts +4 -19
  92. package/src/components/dialog/index.js +24 -83
  93. package/src/components/dialog/props/content.css +5 -0
  94. package/src/components/dialog/props/default.css +6 -0
  95. package/src/components/dialog/readme.md +2 -2
  96. package/src/components/drawer/content.css +4 -4
  97. package/src/components/drawer/default.css +9 -6
  98. package/src/components/drawer/index.css +2 -2
  99. package/src/components/drawer/index.js +3 -3
  100. package/src/components/drawer/props/content.css +7 -0
  101. package/src/components/drawer/props/default.css +3 -0
  102. package/src/components/drawer/readme.md +2 -2
  103. package/src/components/field/default.css +6 -6
  104. package/src/components/form/index.js +5 -5
  105. package/src/components/group/default.css +42 -0
  106. package/src/{ui → components}/group/readme.md +6 -6
  107. package/src/{ui → components}/group/vertical.css +2 -2
  108. package/src/components/heading/default.css +8 -0
  109. package/src/{ui → components}/heading/index.css +1 -1
  110. package/src/components/heading/lg.css +3 -0
  111. package/src/components/heading/props/default.css +6 -0
  112. package/src/{ui/check → components/heading}/readme.md +8 -9
  113. package/src/components/heading/sm.css +3 -0
  114. package/src/{ui → components}/image/avatar.css +3 -3
  115. package/src/{ui → components}/image/default.css +2 -2
  116. package/src/{ui/notice → components/image}/readme.md +6 -6
  117. package/src/components/index.css +18 -0
  118. package/src/components/info/default.css +8 -0
  119. package/src/components/info/index.css +2 -0
  120. package/src/components/info/props/default.css +4 -0
  121. package/src/{ui/rating → components/info}/readme.md +6 -7
  122. package/src/components/label/default.css +8 -0
  123. package/src/components/label/index.css +2 -0
  124. package/src/components/label/props/default.css +4 -0
  125. package/src/{ui → components}/label/readme.md +6 -6
  126. package/src/components/link/default.css +8 -0
  127. package/src/components/link/index.css +3 -0
  128. package/src/components/link/interactive.css +9 -0
  129. package/src/components/link/props/default.css +4 -0
  130. package/src/{ui → components}/link/readme.md +7 -7
  131. package/src/components/notice/default.css +21 -0
  132. package/src/components/notice/index.css +2 -0
  133. package/src/components/notice/props/default.css +8 -0
  134. package/src/{ui/image → components/notice}/readme.md +6 -6
  135. package/src/components/pagination/default.css +2 -2
  136. package/src/components/popover/content.css +18 -19
  137. package/src/components/popover/default.css +1 -1
  138. package/src/components/popover/index.css +1 -1
  139. package/src/components/popover/index.d.ts +5 -1
  140. package/src/components/popover/index.js +11 -9
  141. package/src/components/popover/props/content.css +8 -0
  142. package/src/components/popover/readme.md +1 -1
  143. package/src/components/progress/default.css +46 -0
  144. package/src/{ui → components}/progress/index.css +1 -1
  145. package/src/components/progress/lg.css +3 -0
  146. package/src/{ui → components}/progress/meter.css +7 -7
  147. package/src/components/progress/props/default.css +6 -0
  148. package/src/components/progress/readme.md +33 -0
  149. package/src/components/progress/sm.css +3 -0
  150. package/src/components/range/default.css +99 -0
  151. package/src/{ui → components}/range/index.css +1 -1
  152. package/src/{ui → components}/range/index.js +2 -2
  153. package/src/components/range/multi.css +22 -0
  154. package/src/components/range/props/default.css +9 -0
  155. package/src/{ui → components}/range/readme.md +8 -8
  156. package/src/{ui → components}/range/vertical.css +3 -3
  157. package/src/{ui → components}/rating/default.css +11 -11
  158. package/src/{ui → components}/rating/index.css +1 -1
  159. package/src/components/rating/invalid.css +5 -0
  160. package/src/components/rating/props/default.css +8 -0
  161. package/src/components/rating/readme.md +31 -0
  162. package/src/components/switch/default.css +43 -0
  163. package/src/{ui/check → components/switch}/index.css +1 -2
  164. package/src/components/switch/interactive.css +43 -0
  165. package/src/components/switch/invalid.css +6 -0
  166. package/src/components/switch/props/default.css +17 -0
  167. package/src/{ui/progress → components/switch}/readme.md +8 -9
  168. package/src/components/table/default.css +11 -11
  169. package/src/components/table/index.css +1 -2
  170. package/src/components/table/interactive.css +14 -14
  171. package/src/components/table/props/default.css +8 -0
  172. package/src/components/table/readme.md +1 -2
  173. package/src/components/tabs/index.css +1 -1
  174. package/src/components/tabs/list.css +8 -0
  175. package/src/components/tabs/readme.md +1 -1
  176. package/src/components/text/default.css +223 -0
  177. package/src/components/text/index.css +2 -0
  178. package/src/components/text/props/default.css +9 -0
  179. package/src/{ui/info → components/text}/readme.md +6 -6
  180. package/src/components/title/default.css +8 -0
  181. package/src/{ui → components}/title/index.css +1 -1
  182. package/src/components/title/lg.css +3 -0
  183. package/src/components/title/props/default.css +5 -0
  184. package/src/{ui/heading → components/title}/readme.md +9 -8
  185. package/src/components/title/sm.css +3 -0
  186. package/src/components/toast/content.css +16 -15
  187. package/src/components/toast/default.css +8 -8
  188. package/src/components/toast/index.css +2 -2
  189. package/src/components/toast/props/content.css +7 -0
  190. package/src/components/toast/props/default.css +4 -0
  191. package/src/components/toast/readme.md +2 -2
  192. package/src/components/toaster/default.css +4 -4
  193. package/src/components/toaster/index.css +1 -1
  194. package/src/components/toaster/index.js +8 -8
  195. package/src/components/toaster/props/default.css +4 -0
  196. package/src/components/toaster/readme.md +1 -1
  197. package/src/components/tooltip/default.css +15 -15
  198. package/src/components/tooltip/index.css +1 -1
  199. package/src/components/tooltip/props/default.css +12 -0
  200. package/src/components/tooltip/readme.md +2 -2
  201. package/src/main.css +0 -1
  202. package/src/test.css +7 -0
  203. package/src/utilities/common.css +2 -6
  204. package/src/utilities/container/default.css +3 -4
  205. package/src/utilities/container/index.css +1 -1
  206. package/src/utilities/divider.css +13 -4
  207. package/src/utilities/ripple/index.css +9 -6
  208. package/src/utilities/skeleton/default.css +8 -1
  209. package/src/utilities/skeleton/index.css +1 -1
  210. package/src/utilities/skeleton/props/default.css +5 -0
  211. package/src/utilities/swap/default.css +6 -6
  212. package/src/utilities/underline.css +3 -3
  213. package/types/index.d.ts +39 -24
  214. package/types/index.d.ts.map +3 -8
  215. package/plugin/utilities/flex.js +0 -12
  216. package/src/base/config/text.css +0 -15
  217. package/src/components/breadcrumb/default-props.css +0 -5
  218. package/src/components/card/default-props.css +0 -4
  219. package/src/components/dialog/content-props.css +0 -5
  220. package/src/components/dialog/default-props.css +0 -6
  221. package/src/components/drawer/content-props.css +0 -6
  222. package/src/components/drawer/default-props.css +0 -3
  223. package/src/components/popover/content-props.css +0 -8
  224. package/src/components/table/default-props.css +0 -8
  225. package/src/components/table/interactive-props.css +0 -4
  226. package/src/components/tabs/default.css +0 -8
  227. package/src/components/toast/content-props.css +0 -7
  228. package/src/components/toast/default-props.css +0 -4
  229. package/src/components/toaster/default-props.css +0 -4
  230. package/src/components/tooltip/default-props.css +0 -12
  231. package/src/ui/badge/bordered.css +0 -16
  232. package/src/ui/badge/circle.css +0 -5
  233. package/src/ui/badge/default-props.css +0 -8
  234. package/src/ui/badge/default.css +0 -26
  235. package/src/ui/badge/lg.css +0 -3
  236. package/src/ui/badge/muted.css +0 -4
  237. package/src/ui/badge/readme.md +0 -37
  238. package/src/ui/badge/sm.css +0 -4
  239. package/src/ui/badge/square.css +0 -4
  240. package/src/ui/btn/bordered.css +0 -21
  241. package/src/ui/btn/circle.css +0 -6
  242. package/src/ui/btn/default-props.css +0 -10
  243. package/src/ui/btn/default.css +0 -49
  244. package/src/ui/btn/fill.css +0 -6
  245. package/src/ui/btn/ghosted.css +0 -9
  246. package/src/ui/btn/gradient-bordered.css +0 -24
  247. package/src/ui/btn/gradient.css +0 -10
  248. package/src/ui/btn/interactive-props.css +0 -9
  249. package/src/ui/btn/interactive.css +0 -53
  250. package/src/ui/btn/lg.css +0 -4
  251. package/src/ui/btn/loading-props.css +0 -4
  252. package/src/ui/btn/loading.css +0 -24
  253. package/src/ui/btn/muted.css +0 -9
  254. package/src/ui/btn/raised.css +0 -7
  255. package/src/ui/btn/readme.md +0 -51
  256. package/src/ui/btn/sm.css +0 -4
  257. package/src/ui/btn/square.css +0 -5
  258. package/src/ui/btn/wide.css +0 -3
  259. package/src/ui/check/default-props.css +0 -13
  260. package/src/ui/check/default.css +0 -74
  261. package/src/ui/check/interactive-props.css +0 -3
  262. package/src/ui/check/interactive.css +0 -50
  263. package/src/ui/check/invalid.css +0 -8
  264. package/src/ui/color/default-props.css +0 -11
  265. package/src/ui/color/default.css +0 -48
  266. package/src/ui/color/index.css +0 -4
  267. package/src/ui/color/interactive-props.css +0 -3
  268. package/src/ui/color/interactive.css +0 -30
  269. package/src/ui/control/color-props.css +0 -5
  270. package/src/ui/control/color.css +0 -24
  271. package/src/ui/control/default-props.css +0 -16
  272. package/src/ui/control/default.css +0 -77
  273. package/src/ui/control/file.css +0 -25
  274. package/src/ui/control/floating-interactive.css +0 -13
  275. package/src/ui/control/floating-props.css +0 -4
  276. package/src/ui/control/floating.css +0 -36
  277. package/src/ui/control/icon-props.css +0 -4
  278. package/src/ui/control/icon.css +0 -32
  279. package/src/ui/control/interactive-props.css +0 -3
  280. package/src/ui/control/interactive.css +0 -19
  281. package/src/ui/control/invalid.css +0 -10
  282. package/src/ui/control/readme.md +0 -44
  283. package/src/ui/control/select-props.css +0 -4
  284. package/src/ui/control/select.css +0 -23
  285. package/src/ui/group/default.css +0 -42
  286. package/src/ui/heading/default-props.css +0 -6
  287. package/src/ui/heading/default.css +0 -8
  288. package/src/ui/heading/lg.css +0 -3
  289. package/src/ui/heading/sm.css +0 -3
  290. package/src/ui/index.css +0 -18
  291. package/src/ui/info/default-props.css +0 -4
  292. package/src/ui/info/default.css +0 -8
  293. package/src/ui/info/index.css +0 -2
  294. package/src/ui/label/default-props.css +0 -4
  295. package/src/ui/label/default.css +0 -8
  296. package/src/ui/label/index.css +0 -2
  297. package/src/ui/link/default-props.css +0 -4
  298. package/src/ui/link/default.css +0 -8
  299. package/src/ui/link/index.css +0 -4
  300. package/src/ui/link/interactive-props.css +0 -5
  301. package/src/ui/link/interactive.css +0 -16
  302. package/src/ui/notice/default-props.css +0 -8
  303. package/src/ui/notice/default.css +0 -25
  304. package/src/ui/notice/index.css +0 -2
  305. package/src/ui/progress/default-props.css +0 -4
  306. package/src/ui/progress/default.css +0 -47
  307. package/src/ui/progress/lg.css +0 -3
  308. package/src/ui/progress/sm.css +0 -3
  309. package/src/ui/range/default-props.css +0 -10
  310. package/src/ui/range/default.css +0 -101
  311. package/src/ui/range/multi.css +0 -22
  312. package/src/ui/rating/default-props.css +0 -5
  313. package/src/ui/rating/invalid.css +0 -5
  314. package/src/ui/switch/default-props.css +0 -17
  315. package/src/ui/switch/default.css +0 -46
  316. package/src/ui/switch/interactive-props.css +0 -3
  317. package/src/ui/switch/interactive.css +0 -39
  318. package/src/ui/switch/invalid.css +0 -6
  319. package/src/ui/switch/readme.md +0 -32
  320. package/src/ui/text/default-props.css +0 -9
  321. package/src/ui/text/default.css +0 -193
  322. package/src/ui/text/index.css +0 -2
  323. package/src/ui/text/readme.md +0 -30
  324. package/src/ui/title/default-props.css +0 -5
  325. package/src/ui/title/default.css +0 -8
  326. package/src/ui/title/lg.css +0 -3
  327. package/src/ui/title/sm.css +0 -3
  328. package/src/utilities/skeleton/default-props.css +0 -5
  329. /package/src/{ui → components}/group/index.css +0 -0
  330. /package/src/{ui → components}/image/index.css +0 -0
  331. /package/src/{ui → components}/range/index.d.ts +0 -0
  332. /package/src/utilities/container/{default-props.css → props/default.css} +0 -0
@@ -1,8 +0,0 @@
1
- .ui-heading {
2
- font-family: var(--ui-heading-font-family);
3
- font-weight: var(--ui-heading-font-weight);
4
- font-size: var(--ui-heading-font-size);
5
- line-height: var(--ui-heading-line-height);
6
- letter-spacing: var(--ui-heading-letter-spacing);
7
- text-wrap: balance;
8
- }
@@ -1,3 +0,0 @@
1
- .ui-heading:is(.lg) {
2
- --ui-heading-font-size: var(--text-3xl);
3
- }
@@ -1,3 +0,0 @@
1
- .ui-heading:is(.sm) {
2
- --ui-heading-font-size: var(--text-lg);
3
- }
package/src/ui/index.css DELETED
@@ -1,18 +0,0 @@
1
- @import "badge/index.css";
2
- @import "btn/index.css";
3
- @import "check/index.css";
4
- @import "color/index.css";
5
- @import "control/index.css";
6
- @import "group/index.css";
7
- @import "heading/index.css";
8
- @import "image/index.css";
9
- @import "info/index.css";
10
- @import "label/index.css";
11
- @import "link/index.css";
12
- @import "notice/index.css";
13
- @import "progress/index.css";
14
- @import "range/index.css";
15
- @import "rating/index.css";
16
- @import "switch/index.css";
17
- @import "text/index.css";
18
- @import "title/index.css";
@@ -1,4 +0,0 @@
1
- :root, :host {
2
- --ui-info-font-size: var(--text-xs);
3
- --ui-info-line-height: calc(1em + 0.25rem);
4
- }
@@ -1,8 +0,0 @@
1
- .ui-info {
2
- font-family: var(--ui-info-font-family);
3
- font-weight: var(--ui-info-font-weight);
4
- font-size: var(--ui-info-font-size);
5
- line-height: var(--ui-info-line-height);
6
- letter-spacing: var(--ui-info-letter-spacing);
7
- text-wrap: pretty;
8
- }
@@ -1,2 +0,0 @@
1
- @import "default-props.css";
2
- @import "default.css";
@@ -1,4 +0,0 @@
1
- :root, :host {
2
- --ui-label-font-size: var(--text-sm);
3
- --ui-label-line-height: calc(1em + 0.25rem);
4
- }
@@ -1,8 +0,0 @@
1
- .ui-label {
2
- font-family: var(--ui-label-font-family);
3
- font-weight: var(--ui-label-font-weight);
4
- font-size: var(--ui-label-font-size);
5
- line-height: var(--ui-label-line-height);
6
- letter-spacing: var(--ui-label-letter-spacing);
7
- text-wrap: pretty;
8
- }
@@ -1,2 +0,0 @@
1
- @import "default-props.css";
2
- @import "default.css";
@@ -1,4 +0,0 @@
1
- :root, :host {
2
- --ui-link-font-size: var(--text-sm);
3
- --ui-link-line-height: calc(1em + 0.25rem);
4
- }
@@ -1,8 +0,0 @@
1
- .ui-link {
2
- font-family: var(--ui-link-font-family);
3
- font-weight: var(--ui-link-font-weight);
4
- font-size: var(--ui-link-font-size);
5
- line-height: var(--ui-link-line-height);
6
- letter-spacing: var(--ui-link-letter-spacing);
7
- text-wrap: pretty;
8
- }
@@ -1,4 +0,0 @@
1
- @import "default.css";
2
- @import "default-props.css";
3
- @import "interactive.css";
4
- @import "interactive-props.css";
@@ -1,5 +0,0 @@
1
- :root, :host {
2
- --ui-link-hover-color: currentColor;
3
- --ui-link-hover-color-opacity: 0.75;
4
- --ui-link-hover-color-mix: transparent;
5
- }
@@ -1,16 +0,0 @@
1
- .ui-link {
2
- --tw-text-opacity: var(--ui-link-hover-color-opacity);
3
-
4
- &:where(:any-link, button:enabled, [role="button"]) {
5
- transition: all var(--duration) var(--ease-in-out);
6
-
7
- &:hover {
8
- color: color-mix(in var(--space), var(--ui-link-hover-color) calc(var(--tw-text-opacity) * 100%), var(--ui-link-hover-color-mix));
9
- }
10
-
11
- &:focus-visible {
12
- outline: 2px dotted currentColor;
13
- outline-offset: 2px;
14
- }
15
- }
16
- }
@@ -1,8 +0,0 @@
1
- :root, :host {
2
- --ui-notice-py: 1.25rem;
3
- --ui-notice-px: 1.5rem;
4
- --ui-notice-font-size: var(--text-sm);
5
- --ui-notice-border-radius: var(--rounded);
6
- --ui-notice-outline-width: 1px;
7
- --ui-notice-outline-offset: calc(var(--ui-notice-outline-width, 1px) * -1);
8
- }
@@ -1,25 +0,0 @@
1
- .ui-notice {
2
- --tw-bg-opacity: 0.1;
3
- --tw-bg-mix: transparent;
4
- --tw-outline-opacity: 0.1;
5
- --tw-outline-mix: transparent;
6
-
7
- padding: var(--ui-notice-py) var(--ui-notice-px);
8
- font-size: var(--ui-notice-font-size);
9
- border-radius: var(--ui-notice-border-radius);
10
- background-color: color-mix(in var(--space), var(--color-accent) calc(var(--tw-bg-opacity) * 100%), var(--tw-bg-mix));
11
- color: var(--color-accent);
12
- outline:
13
- var(--ui-notice-outline-width) solid
14
- color-mix(
15
- in var(--space),
16
- var(--color-accent) calc(var(--tw-outline-opacity) * 100%),
17
- var(--tw-outline-mix)
18
- );
19
- outline-offset: var(--ui-notice-outline-offset);
20
- text-wrap: pretty;
21
-
22
- :where(hr) {
23
- --tw-border-opacity: 0.2;
24
- }
25
- }
@@ -1,2 +0,0 @@
1
- @import "default-props.css";
2
- @import "default.css";
@@ -1,4 +0,0 @@
1
- :root, :host {
2
- --ui-progress-height: 1rem;
3
- --ui-progress-border-radius: var(--rounded-full);
4
- }
@@ -1,47 +0,0 @@
1
- .ui-progress {
2
- --tw-bg-opacity: 0.1;
3
- --tw-bg-mix: var(--color-body);
4
- --duration: 0.3s;
5
-
6
- inline-size: 100%;
7
- block-size: var(--ui-progress-height);
8
- border-radius: var(--ui-progress-border-radius);
9
- background-color: color-mix(in var(--space), var(--color-accent) calc(var(--tw-bg-opacity) * 100%), var(--tw-bg-mix));
10
- position: relative;
11
- overflow: clip;
12
-
13
- &::-moz-progress-bar {
14
- background-color: var(--color-accent);
15
- border-radius: inherit;
16
- transition: all var(--duration) var(--ease-in-out);
17
- }
18
-
19
- &::-webkit-progress-bar {
20
- background-color: transparent;
21
- border-radius: inherit;
22
- }
23
-
24
- &::-webkit-progress-inner-element {
25
- border-radius: inherit;
26
- }
27
-
28
- &::-webkit-progress-value {
29
- background-color: var(--color-accent);
30
- border-radius: inherit;
31
- transition: all var(--duration) var(--ease-in-out);
32
- }
33
-
34
- &:indeterminate {
35
- --duration: 1s;
36
-
37
- animation: var(--duration) var(--ease-linear) infinite move-indeterminate;
38
- background-image: linear-gradient(to right, var(--color-accent) 33.33%, transparent 0%);
39
- background-position: top left;
40
- background-repeat: no-repeat;
41
- background-size: 150%;
42
-
43
- &::-moz-progress-bar {
44
- background-color: transparent;
45
- }
46
- }
47
- }
@@ -1,3 +0,0 @@
1
- .ui-progress:is(.lg) {
2
- --ui-progress-height: 1.5rem;
3
- }
@@ -1,3 +0,0 @@
1
- .ui-progress:is(.sm) {
2
- --ui-progress-height: 0.5rem;
3
- }
@@ -1,10 +0,0 @@
1
- :root, :host {
2
- --ui-range-track-height: 0.375rem;
3
- --ui-range-thumb-size: 1.125rem;
4
- --ui-range-thumb-border-width: 0;
5
- --ui-range-thumb-outline-width: 2px;
6
- --ui-range-thumb-outline-opacity: 0;
7
- --ui-range-thumb-focus-outline-opacity: 0.5;
8
- --ui-range-track-start: 0%;
9
- --ui-range-track-end: 100%;
10
- }
@@ -1,101 +0,0 @@
1
- .ui-range {
2
- --ui-range-thumb-bg: var(--color-accent);
3
- --ui-range-thumb-border-color: var(--ui-range-thumb-bg);
4
- --ui-range-track-bg: var(--color-accent);
5
- --ui-range-track:
6
- linear-gradient(
7
- to right,
8
- var(--ui-range-track-bg) 0%,
9
- var(--ui-range-track-bg) var(--ui-range-track-start),
10
- transparent var(--ui-range-track-start),
11
- transparent var(--ui-range-track-end)
12
- );
13
-
14
- min-block-size: var(--ui-range-thumb-size);
15
- display: grid;
16
-
17
- :where(input) {
18
- --tw-bg-opacity: 0.1;
19
- --tw-bg-mix: var(--color-body);
20
-
21
- block-size: var(--ui-range-track-height);
22
- background-color: color-mix(in var(--space), var(--color-accent) calc(var(--tw-bg-opacity) * 100%), var(--tw-bg-mix));
23
- position: relative;
24
- grid-area: 1/1;
25
-
26
- &::-webkit-slider-runnable-track {
27
- block-size: var(--ui-range-track-height);
28
- border-radius: var(--rounded-full);
29
- background: var(--ui-range-track);
30
- }
31
-
32
- &::-moz-range-track {
33
- block-size: var(--ui-range-track-height);
34
- border-radius: var(--rounded-full);
35
- background: var(--ui-range-track);
36
- }
37
-
38
- &::-webkit-slider-thumb {
39
- --tw-outline-opacity: var(--ui-range-thumb-outline-opacity);
40
-
41
- width: var(--ui-range-thumb-size);
42
- height: var(--ui-range-thumb-size);
43
- background-color: var(--ui-range-thumb-bg);
44
- border-radius: var(--rounded-full);
45
- border: var(--ui-range-thumb-border-width) solid var(--ui-range-thumb-border-color);
46
- outline:
47
- var(--ui-range-thumb-outline-width) solid
48
- color-mix(
49
- in var(--space),
50
- var(--ui-range-thumb-bg) calc(var(--tw-outline-opacity) * 100%),
51
- transparent
52
- );
53
- margin-block-start: calc((var(--ui-range-thumb-size) - var(--ui-range-track-height)) / 2 * -1);
54
- transition: outline-color var(--duration), outline-offset var(--duration);
55
- cursor: var(--ui-range-thumb-cursor, grab);
56
- appearance: none;
57
- pointer-events: auto;
58
-
59
- &:active {
60
- --ui-range-thumb-cursor: grabbing;
61
- --tw-outline-opacity: var(--ui-range-thumb-focus-outline-opacity);
62
- }
63
- }
64
-
65
- &::-moz-range-thumb {
66
- --tw-outline-opacity: var(--ui-range-thumb-outline-opacity);
67
-
68
- width: var(--ui-range-thumb-size);
69
- height: var(--ui-range-thumb-size);
70
- background-color: var(--ui-range-thumb-bg);
71
- border-radius: var(--rounded-full);
72
- border: var(--ui-range-thumb-border-width) solid var(--ui-range-thumb-border-color);
73
- outline:
74
- var(--ui-range-thumb-outline-width) solid
75
- color-mix(
76
- in var(--space),
77
- var(--ui-range-thumb-bg) calc(var(--tw-outline-opacity) * 100%),
78
- transparent
79
- );
80
- transition: outline-color var(--duration), outline-offset var(--duration);
81
- cursor: var(--ui-range-thumb-cursor, grab);
82
- appearance: none;
83
- pointer-events: auto;
84
-
85
- &:active {
86
- --ui-range-thumb-cursor: grabbing;
87
- --tw-outline-opacity: var(--ui-range-thumb-focus-outline-opacity);
88
- }
89
- }
90
-
91
- &:focus-visible {
92
- &::-webkit-slider-thumb {
93
- --tw-outline-opacity: var(--ui-range-thumb-focus-outline-opacity);
94
- }
95
-
96
- &::-moz-range-thumb {
97
- --tw-outline-opacity: var(--ui-range-thumb-focus-outline-opacity);
98
- }
99
- }
100
- }
101
- }
@@ -1,22 +0,0 @@
1
- .ui-range {
2
- :where(input) {
3
- &:not(:only-of-type) {
4
- --ui-range-track:
5
- linear-gradient(
6
- to right,
7
- transparent 0%,
8
- transparent var(--ui-range-track-start),
9
- var(--ui-range-track-bg) var(--ui-range-track-start),
10
- var(--ui-range-track-bg) var(--ui-range-track-end),
11
- transparent var(--ui-range-track-end),
12
- transparent 100%
13
- );
14
-
15
- pointer-events: none;
16
-
17
- ~ input {
18
- background: transparent;
19
- }
20
- }
21
- }
22
- }
@@ -1,5 +0,0 @@
1
- :root, :host {
2
- --ui-rating-color: var(--color-accent);
3
- --c-rating-gap: 0.25rem;
4
- --c-rating-opacity: 0.2;
5
- }
@@ -1,5 +0,0 @@
1
- .ui-rating {
2
- &.invalid, .validated & :where(input):invalid {
3
- --ui-rating-color: var(--color-error);
4
- }
5
- }
@@ -1,17 +0,0 @@
1
- :root, :host {
2
- --ui-switch-width: 3rem;
3
- --ui-switch-height: 1.5rem;
4
- --ui-switch-icon-size: 1.125rem;
5
- --ui-switch-font-weight: var(--font-normal);
6
- --ui-switch-font-size: var(--text-sm);
7
- --ui-switch-line-height: calc(1em + 0.25rem);
8
- --ui-switch-gap: 0.75rem;
9
- --ui-switch-border-radius: var(--rounded-full);
10
- --ui-switch-bg: currentColor;
11
- --ui-switch-outline-width: 2px;
12
- --ui-switch-outline-color: currentColor;
13
-
14
- &.dark {
15
- --ui-switch-bg: var(--color-body-tertiary);
16
- }
17
- }
@@ -1,46 +0,0 @@
1
- .ui-switch {
2
- font-weight: var(--ui-switch-font-weight);
3
- font-size: var(--ui-switch-font-size);
4
- line-height: var(--ui-switch-line-height);
5
- letter-spacing: var(--ui-switch-letter-spacing);
6
- gap: var(--ui-switch-gap);
7
- display: inline-flex;
8
- text-wrap: pretty;
9
-
10
- :where(a) {
11
- color: var(--color-accent);
12
- text-decoration: underline;
13
- }
14
-
15
- :where(input) {
16
- --tw-outline-opacity: 0;
17
- --tw-outline-mix: transparent;
18
-
19
- inline-size: var(--ui-switch-width);
20
- block-size: var(--ui-switch-height);
21
- padding: calc((var(--ui-switch-height) - var(--ui-switch-icon-size)) / 2);
22
- border-radius: var(--ui-switch-border-radius);
23
- background-color: var(--ui-switch-bg);
24
- outline:
25
- var(--ui-switch-outline-width) solid
26
- color-mix(
27
- in var(--space),
28
- var(--ui-switch-outline-color) calc(var(--tw-outline-opacity) * 100%),
29
- var(--tw-outline-mix)
30
- );
31
- outline-offset: var(--ui-switch-outline-offset);
32
- display: flex;
33
- position: relative;
34
- flex-shrink: 0;
35
-
36
- &::before {
37
- width: var(--ui-switch-icon-size);
38
- height: var(--ui-switch-icon-size);
39
- background-color: var(--color-light);
40
- transition: var(--transition-all);
41
- border-radius: inherit;
42
- margin-block: auto;
43
- content: "";
44
- }
45
- }
46
- }
@@ -1,3 +0,0 @@
1
- :root, :host {
2
- --ui-switch-disabled-opacity: 0.5;
3
- }
@@ -1,39 +0,0 @@
1
- .ui-switch {
2
- :where(input) {
3
- transition-property: var(--transition);
4
- transition-timing-function: var(--ease-in-out);
5
- transition-duration: var(--duration);
6
-
7
- &:where(:required) {
8
- & + *::after {
9
- color: var(--color-error);
10
- content: " *";
11
- }
12
- }
13
-
14
- &:enabled:focus {
15
- --ui-switch-outline-offset: var(--ui-switch-focus-outline-offset);
16
- --tw-outline-opacity: 0.4;
17
- }
18
-
19
- &:disabled {
20
- opacity: var(--ui-switch-disabled-opacity);
21
- cursor: not-allowed;
22
- }
23
-
24
- &:checked {
25
- --ui-switch-outline-color: var(--color-accent);
26
- --ui-switch-bg: var(--color-accent);
27
-
28
- &::before {
29
- margin-inline-start: calc(100% - var(--ui-switch-icon-size));
30
- }
31
- }
32
-
33
- &:indeterminate {
34
- &::before {
35
- margin-inline-start: calc(50% - var(--ui-switch-icon-size) / 2);
36
- }
37
- }
38
- }
39
- }
@@ -1,6 +0,0 @@
1
- .ui-switch {
2
- &.invalid :where(input), .validated & :where(input):invalid {
3
- --ui-switch-outline-color: var(--color-error);
4
- --ui-switch-bg: var(--color-error);
5
- }
6
- }
@@ -1,32 +0,0 @@
1
- # [Switch](https://winduum.dev/docs/ui/switch.html)
2
-
3
- ## Installation
4
- ```shell
5
- npm i winduum
6
- ```
7
- Learn more how to set up Winduum [here](https://winduum.dev/docs/).
8
- Include CSS either globally or to your component _([you can't use TailwindCSS layers in per-component CSS](https://tailwindcss.com/docs/adding-custom-styles#layers-and-per-component-css))_
9
-
10
- ```css
11
- @import "winduum/src/ui/switch/index.css" layer(components);
12
- ```
13
-
14
- or modular (you can use your own props or CSS)
15
-
16
- ```css
17
- @import "winduum/src/ui/switch/default-props.css" layer(components);
18
- @import "winduum/src/ui/switch/default.css" layer(components);
19
- @import "winduum/src/ui/switch/interactive.css" layer(components);
20
- @import "winduum/src/ui/switch/invalid.css" layer(components);
21
- ```
22
-
23
- ### Local imports
24
- By default, imports are directly from `npm` so you can leverage updates.
25
- You can also copy and paste the code from this directory to your project and remap the imports to local.
26
-
27
- ```css
28
- @import "@/components/ui/switch/assets/index.css" layer(components);
29
- ```
30
-
31
- ### Docs
32
- Visit [docs](https://winduum.dev/docs/ui/switch.html) to learn more about usage examples.
@@ -1,9 +0,0 @@
1
- :root, :host {
2
- --ui-text-content-bold: var(--font-semibold);
3
- --ui-text-content-my: var(--spacing-xl);
4
- --ui-text-content-marker-size: 0.375em;
5
- --ui-text-line-height: calc(1em + 0.75rem);
6
- --ui-text-hr-my: 3em;
7
- --ui-text-heading-line-height: calc(1em + 0.375rem);
8
- --ui-text-heading-my: 1.5em 0.5em;
9
- }