winduum 1.2.1 → 2.0.0-next.1

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 (278) hide show
  1. package/package.json +4 -4
  2. package/plugin/index.js +63 -12
  3. package/plugin/utilities/common.js +4 -4
  4. package/plugin/utilities/dot.js +1 -2
  5. package/src/base/config/font.css +22 -9
  6. package/src/base/config/rounded.css +12 -12
  7. package/src/base/config/transition.css +14 -14
  8. package/src/base/config/z.css +5 -5
  9. package/src/base/config.css +0 -1
  10. package/src/base/defaults.css +9 -11
  11. package/src/base/keyframes.css +12 -0
  12. package/src/base/reset.css +2 -7
  13. package/src/base/theme/dark-rgb.css +1 -1
  14. package/src/base/theme/dark.css +1 -1
  15. package/src/base/theme/default-rgb.css +6 -6
  16. package/src/base/theme/default.css +6 -6
  17. package/src/components/badge/bordered.css +16 -0
  18. package/src/components/badge/circle.css +5 -0
  19. package/src/components/badge/default-props.css +8 -0
  20. package/src/components/badge/default.css +26 -0
  21. package/src/components/badge/lg.css +3 -0
  22. package/src/components/badge/muted.css +4 -0
  23. package/src/components/badge/sm.css +4 -0
  24. package/src/components/badge/square.css +4 -0
  25. package/src/components/breadcrumb/default-props.css +3 -3
  26. package/src/components/breadcrumb/default.css +5 -5
  27. package/src/components/button/bordered.css +19 -0
  28. package/src/components/button/circle.css +6 -0
  29. package/src/components/button/default.css +63 -0
  30. package/src/components/button/fill.css +6 -0
  31. package/src/components/button/ghosted.css +14 -0
  32. package/src/{ui/btn → components/button}/index.css +2 -7
  33. package/src/components/button/interactive.css +56 -0
  34. package/src/components/button/lg.css +4 -0
  35. package/src/components/button/muted.css +14 -0
  36. package/src/components/button/props/default.css +11 -0
  37. package/src/components/button/props/interactive.css +9 -0
  38. package/src/components/button/raised.css +6 -0
  39. package/src/components/button/readme.md +46 -0
  40. package/src/components/button/sm.css +4 -0
  41. package/src/components/button/square.css +5 -0
  42. package/src/components/card/default-props.css +2 -2
  43. package/src/components/card/default.css +4 -4
  44. package/src/components/carousel/content.css +1 -1
  45. package/src/components/carousel/default.css +1 -1
  46. package/src/components/check/default-props.css +13 -0
  47. package/src/components/check/default.css +74 -0
  48. package/src/components/check/interactive-props.css +3 -0
  49. package/src/components/check/interactive.css +50 -0
  50. package/src/components/check/invalid.css +8 -0
  51. package/src/components/color/default-props.css +11 -0
  52. package/src/{ui → components}/color/default.css +14 -14
  53. package/src/components/color/interactive-props.css +3 -0
  54. package/src/{ui → components}/color/interactive.css +5 -5
  55. package/src/components/compare/default.css +13 -13
  56. package/src/components/compare/index.js +2 -2
  57. package/src/components/control/color-props.css +5 -0
  58. package/src/components/control/color.css +24 -0
  59. package/src/components/control/default-props.css +16 -0
  60. package/src/components/control/default.css +77 -0
  61. package/src/components/control/file.css +25 -0
  62. package/src/components/control/floating-interactive.css +13 -0
  63. package/src/components/control/floating-props.css +4 -0
  64. package/src/{ui → components}/control/floating.css +5 -5
  65. package/src/components/control/icon-props.css +4 -0
  66. package/src/components/control/icon.css +32 -0
  67. package/src/components/control/interactive-props.css +3 -0
  68. package/src/components/control/interactive.css +19 -0
  69. package/src/components/control/invalid.css +10 -0
  70. package/src/{ui → components}/control/select-multiple.css +2 -2
  71. package/src/components/control/select-props.css +4 -0
  72. package/src/components/control/select.css +23 -0
  73. package/src/components/dialog/content-props.css +3 -3
  74. package/src/components/dialog/content.css +5 -5
  75. package/src/components/dialog/default-props.css +4 -4
  76. package/src/components/dialog/default.css +11 -12
  77. package/src/components/dialog/index.d.ts +3 -18
  78. package/src/components/dialog/index.js +21 -80
  79. package/src/components/drawer/content-props.css +4 -4
  80. package/src/components/drawer/content.css +3 -3
  81. package/src/components/drawer/default-props.css +1 -1
  82. package/src/components/drawer/default.css +3 -3
  83. package/src/components/drawer/index.js +2 -2
  84. package/src/components/field/default.css +3 -3
  85. package/src/components/form/index.js +4 -4
  86. package/src/{ui → components}/group/default.css +11 -11
  87. package/src/{ui → components}/group/vertical.css +2 -2
  88. package/src/components/heading/default-props.css +6 -0
  89. package/src/components/heading/default.css +8 -0
  90. package/src/components/heading/lg.css +3 -0
  91. package/src/components/heading/sm.css +3 -0
  92. package/src/{ui → components}/image/avatar.css +3 -3
  93. package/src/{ui → components}/image/default.css +1 -1
  94. package/src/components/index.css +20 -0
  95. package/src/components/info/default-props.css +4 -0
  96. package/src/components/info/default.css +8 -0
  97. package/src/components/label/default-props.css +4 -0
  98. package/src/components/label/default.css +8 -0
  99. package/src/components/link/default-props.css +4 -0
  100. package/src/components/link/default.css +8 -0
  101. package/src/components/link/interactive-props.css +5 -0
  102. package/src/components/link/interactive.css +16 -0
  103. package/src/components/notice/default-props.css +8 -0
  104. package/src/components/notice/default.css +25 -0
  105. package/src/components/pagination/default.css +1 -1
  106. package/src/components/popover/content-props.css +6 -6
  107. package/src/components/popover/content.css +12 -12
  108. package/src/components/popover/default.css +1 -1
  109. package/src/components/progress/default-props.css +4 -0
  110. package/src/{ui → components}/progress/default.css +9 -9
  111. package/src/components/progress/lg.css +3 -0
  112. package/src/{ui → components}/progress/meter.css +1 -1
  113. package/src/components/progress/sm.css +3 -0
  114. package/src/components/range/default-props.css +10 -0
  115. package/src/components/range/default.css +101 -0
  116. package/src/{ui → components}/range/index.js +2 -2
  117. package/src/components/range/multi.css +22 -0
  118. package/src/{ui → components}/range/vertical.css +2 -2
  119. package/src/components/rating/default-props.css +5 -0
  120. package/src/{ui → components}/rating/default.css +6 -6
  121. package/src/{ui → components}/rating/invalid.css +2 -2
  122. package/src/components/switch/default-props.css +17 -0
  123. package/src/components/switch/default.css +46 -0
  124. package/src/components/switch/interactive-props.css +3 -0
  125. package/src/components/switch/interactive.css +39 -0
  126. package/src/components/switch/invalid.css +6 -0
  127. package/src/components/table/default-props.css +6 -6
  128. package/src/components/table/default.css +8 -8
  129. package/src/components/table/interactive-props.css +2 -2
  130. package/src/components/table/interactive.css +11 -11
  131. package/src/components/tabs/default.css +2 -2
  132. package/src/components/text/default-props.css +9 -0
  133. package/src/components/text/default.css +193 -0
  134. package/src/components/title/default-props.css +5 -0
  135. package/src/components/title/default.css +8 -0
  136. package/src/components/title/lg.css +3 -0
  137. package/src/components/title/sm.css +3 -0
  138. package/src/components/toast/content-props.css +5 -5
  139. package/src/components/toast/content.css +12 -12
  140. package/src/components/toast/default-props.css +2 -2
  141. package/src/components/toast/default.css +5 -5
  142. package/src/components/toaster/default-props.css +2 -2
  143. package/src/components/toaster/default.css +4 -4
  144. package/src/components/toaster/index.js +6 -6
  145. package/src/components/tooltip/default-props.css +10 -10
  146. package/src/components/tooltip/default.css +14 -14
  147. package/src/main.css +0 -1
  148. package/src/utilities/common.css +2 -6
  149. package/src/utilities/container/default.css +3 -4
  150. package/src/utilities/container/index.css +1 -1
  151. package/src/utilities/divider.css +2 -3
  152. package/src/utilities/ripple/index.css +1 -3
  153. package/src/utilities/skeleton/index.css +1 -1
  154. package/src/utilities/skeleton/props/default.css +5 -0
  155. package/src/utilities/swap/default.css +4 -4
  156. package/src/utilities/underline.css +3 -3
  157. package/types/index.d.ts +4 -19
  158. package/types/index.d.ts.map +3 -8
  159. package/plugin/utilities/flex.js +0 -12
  160. package/src/base/config/text.css +0 -15
  161. package/src/ui/badge/bordered.css +0 -16
  162. package/src/ui/badge/circle.css +0 -5
  163. package/src/ui/badge/default-props.css +0 -8
  164. package/src/ui/badge/default.css +0 -26
  165. package/src/ui/badge/lg.css +0 -3
  166. package/src/ui/badge/muted.css +0 -4
  167. package/src/ui/badge/sm.css +0 -4
  168. package/src/ui/badge/square.css +0 -4
  169. package/src/ui/btn/bordered.css +0 -21
  170. package/src/ui/btn/circle.css +0 -6
  171. package/src/ui/btn/default-props.css +0 -10
  172. package/src/ui/btn/default.css +0 -49
  173. package/src/ui/btn/fill.css +0 -6
  174. package/src/ui/btn/ghosted.css +0 -9
  175. package/src/ui/btn/gradient-bordered.css +0 -24
  176. package/src/ui/btn/gradient.css +0 -10
  177. package/src/ui/btn/interactive-props.css +0 -9
  178. package/src/ui/btn/interactive.css +0 -53
  179. package/src/ui/btn/lg.css +0 -4
  180. package/src/ui/btn/loading-props.css +0 -4
  181. package/src/ui/btn/loading.css +0 -24
  182. package/src/ui/btn/muted.css +0 -9
  183. package/src/ui/btn/raised.css +0 -7
  184. package/src/ui/btn/readme.md +0 -51
  185. package/src/ui/btn/sm.css +0 -4
  186. package/src/ui/btn/square.css +0 -5
  187. package/src/ui/btn/wide.css +0 -3
  188. package/src/ui/check/default-props.css +0 -13
  189. package/src/ui/check/default.css +0 -74
  190. package/src/ui/check/interactive-props.css +0 -3
  191. package/src/ui/check/interactive.css +0 -50
  192. package/src/ui/check/invalid.css +0 -8
  193. package/src/ui/color/default-props.css +0 -11
  194. package/src/ui/color/interactive-props.css +0 -3
  195. package/src/ui/control/color-props.css +0 -5
  196. package/src/ui/control/color.css +0 -24
  197. package/src/ui/control/default-props.css +0 -16
  198. package/src/ui/control/default.css +0 -77
  199. package/src/ui/control/file.css +0 -25
  200. package/src/ui/control/floating-interactive.css +0 -13
  201. package/src/ui/control/floating-props.css +0 -4
  202. package/src/ui/control/icon-props.css +0 -4
  203. package/src/ui/control/icon.css +0 -32
  204. package/src/ui/control/interactive-props.css +0 -3
  205. package/src/ui/control/interactive.css +0 -19
  206. package/src/ui/control/invalid.css +0 -10
  207. package/src/ui/control/select-props.css +0 -4
  208. package/src/ui/control/select.css +0 -23
  209. package/src/ui/heading/default-props.css +0 -6
  210. package/src/ui/heading/default.css +0 -8
  211. package/src/ui/heading/lg.css +0 -3
  212. package/src/ui/heading/sm.css +0 -3
  213. package/src/ui/index.css +0 -18
  214. package/src/ui/info/default-props.css +0 -4
  215. package/src/ui/info/default.css +0 -8
  216. package/src/ui/label/default-props.css +0 -4
  217. package/src/ui/label/default.css +0 -8
  218. package/src/ui/link/default-props.css +0 -4
  219. package/src/ui/link/default.css +0 -8
  220. package/src/ui/link/interactive-props.css +0 -5
  221. package/src/ui/link/interactive.css +0 -16
  222. package/src/ui/notice/default-props.css +0 -8
  223. package/src/ui/notice/default.css +0 -25
  224. package/src/ui/progress/default-props.css +0 -4
  225. package/src/ui/progress/lg.css +0 -3
  226. package/src/ui/progress/sm.css +0 -3
  227. package/src/ui/range/default-props.css +0 -10
  228. package/src/ui/range/default.css +0 -101
  229. package/src/ui/range/multi.css +0 -22
  230. package/src/ui/rating/default-props.css +0 -5
  231. package/src/ui/switch/default-props.css +0 -17
  232. package/src/ui/switch/default.css +0 -46
  233. package/src/ui/switch/interactive-props.css +0 -3
  234. package/src/ui/switch/interactive.css +0 -39
  235. package/src/ui/switch/invalid.css +0 -6
  236. package/src/ui/text/default-props.css +0 -9
  237. package/src/ui/text/default.css +0 -193
  238. package/src/ui/title/default-props.css +0 -5
  239. package/src/ui/title/default.css +0 -8
  240. package/src/ui/title/lg.css +0 -3
  241. package/src/ui/title/sm.css +0 -3
  242. package/src/utilities/skeleton/default-props.css +0 -5
  243. /package/src/{ui → components}/badge/index.css +0 -0
  244. /package/src/{ui → components}/badge/readme.md +0 -0
  245. /package/src/{ui → components}/check/index.css +0 -0
  246. /package/src/{ui → components}/check/readme.md +0 -0
  247. /package/src/{ui → components}/color/index.css +0 -0
  248. /package/src/{ui → components}/color/readme.md +0 -0
  249. /package/src/{ui → components}/control/index.css +0 -0
  250. /package/src/{ui → components}/control/readme.md +0 -0
  251. /package/src/{ui → components}/group/index.css +0 -0
  252. /package/src/{ui → components}/group/readme.md +0 -0
  253. /package/src/{ui → components}/heading/index.css +0 -0
  254. /package/src/{ui → components}/heading/readme.md +0 -0
  255. /package/src/{ui → components}/image/index.css +0 -0
  256. /package/src/{ui → components}/image/readme.md +0 -0
  257. /package/src/{ui → components}/info/index.css +0 -0
  258. /package/src/{ui → components}/info/readme.md +0 -0
  259. /package/src/{ui → components}/label/index.css +0 -0
  260. /package/src/{ui → components}/label/readme.md +0 -0
  261. /package/src/{ui → components}/link/index.css +0 -0
  262. /package/src/{ui → components}/link/readme.md +0 -0
  263. /package/src/{ui → components}/notice/index.css +0 -0
  264. /package/src/{ui → components}/notice/readme.md +0 -0
  265. /package/src/{ui → components}/progress/index.css +0 -0
  266. /package/src/{ui → components}/progress/readme.md +0 -0
  267. /package/src/{ui → components}/range/index.css +0 -0
  268. /package/src/{ui → components}/range/index.d.ts +0 -0
  269. /package/src/{ui → components}/range/readme.md +0 -0
  270. /package/src/{ui → components}/rating/index.css +0 -0
  271. /package/src/{ui → components}/rating/readme.md +0 -0
  272. /package/src/{ui → components}/switch/index.css +0 -0
  273. /package/src/{ui → components}/switch/readme.md +0 -0
  274. /package/src/{ui → components}/text/index.css +0 -0
  275. /package/src/{ui → components}/text/readme.md +0 -0
  276. /package/src/{ui → components}/title/index.css +0 -0
  277. /package/src/{ui → components}/title/readme.md +0 -0
  278. /package/src/utilities/container/{default-props.css → props/default.css} +0 -0
package/src/main.css CHANGED
@@ -1,3 +1,2 @@
1
1
  @import "base/index.css";
2
- @import "ui/index.css";
3
2
  @import "components/index.css";
@@ -1,12 +1,8 @@
1
- .animate {
2
- animation-duration: var(--duration);
1
+ .animation {
2
+ animation-duration: var(--default-transition-duration);
3
3
  animation-fill-mode: both;
4
4
  }
5
5
 
6
- .flex-col {
7
- display: flex;
8
- }
9
-
10
6
  [hidden] {
11
7
  display: none;
12
8
  }
@@ -1,13 +1,12 @@
1
1
  .grid-cols-container {
2
- display: grid;
3
2
  grid-template-columns:
4
3
  [container-full-start] minmax(var(--container-padding), 1fr)
5
4
  [container-lg-start] minmax(0, calc((var(--container-lg-width) - var(--container-width)) / 2))
6
5
  [container-start] min(100% - (var(--container-padding) * 2), var(--container-width)) [container-end]
7
6
  minmax(0, calc((var(--container-lg-width) - var(--container-width)) / 2)) [container-lg-end]
8
7
  minmax(var(--container-padding), 1fr) [container-full-end];
9
- }
10
8
 
11
- :where(.grid-cols-container > *) {
12
- grid-column: container;
9
+ & > :where(*) {
10
+ grid-column: container;
11
+ }
13
12
  }
@@ -1,2 +1,2 @@
1
1
  @import "default.css";
2
- @import "default-props.css";
2
+ @import "props/default.css";
@@ -1,6 +1,5 @@
1
1
  .divider {
2
2
  --color-accent: currentColor;
3
- --tw-border-opacity: 0.15;
4
3
 
5
4
  display: flex;
6
5
  align-items: center;
@@ -13,13 +12,13 @@
13
12
  &::before, &::after {
14
13
  content: "";
15
14
  flex-grow: 1;
16
- border-block-start: 1px solid color-mix(in var(--space), var(--color-accent) calc(var(--tw-border-opacity) * 100%), transparent);
15
+ border-block-start: 1px solid color-mix(in var(--default-color-space), var(--color-accent) 15%, transparent);
17
16
  }
18
17
 
19
18
  &:where(.flex-col) {
20
19
  &::before, &::after {
21
20
  border-block-start: 0;
22
- border-inline-start: 1px solid color-mix(in var(--space), var(--color-accent) calc(var(--tw-border-opacity) * 100%), transparent);
21
+ border-inline-start: 1px solid color-mix(in var(--default-color-space), var(--color-accent) 15%, transparent);
23
22
  }
24
23
  }
25
24
  }
@@ -1,7 +1,5 @@
1
1
  .ripple {
2
- --tw-bg-opacity: 0.4;
3
-
4
- background-color: color-mix(in var(--space), currentcolor calc(var(--tw-bg-opacity) * 100%), transparent);
2
+ background-color: color-mix(in var(--default-color-space), currentcolor 40%, transparent);
5
3
  position: absolute;
6
4
  border-radius: 50%;
7
5
  transform: scale(0);
@@ -1,2 +1,2 @@
1
1
  @import "default.css";
2
- @import "default-props.css";
2
+ @import "props/default.css";
@@ -0,0 +1,5 @@
1
+ :root, :host {
2
+ --skeleton-opacity: 0.5;
3
+ --skeleton-from: color-mix(in var(--default-color-space), var(--color-body) 50%, var(--color-main));
4
+ --skeleton-to: color-mix(in var(--default-color-space), var(--color-body) 80%, var(--color-main));
5
+ }
@@ -1,11 +1,11 @@
1
1
  .swap {
2
2
  display: inline-grid;
3
- cursor: var(--cursor, pointer);
3
+ cursor: var(--cursor-pointer, pointer);
4
4
 
5
5
  > :where(*) {
6
- transition-property: var(--transition);
7
- transition-timing-function: var(--ease-in-out);
8
- transition-duration: var(--duration);
6
+ transition-property: var(--default-transition-property);
7
+ transition-timing-function: var(--transition-timing-function-in-out);
8
+ transition-duration: var(--default-transition-duration);
9
9
  grid-area: 1/-1;
10
10
  opacity: 0;
11
11
  }
@@ -1,13 +1,13 @@
1
1
  .underline {
2
- text-underline-offset: var(--tw-underline-offset, 0.125em);
2
+ text-underline-offset: var(--default-underline-offset, 0.125em);
3
3
  }
4
4
 
5
5
  .underline-transparent {
6
6
  &:where(:any-link, button:enabled, [role="button"]) {
7
- transition: all var(--duration) var(--ease-in-out);
7
+ transition: all var(--default-transition-duration) var(--transition-timing-function-in-out);
8
8
 
9
9
  &:not(:hover, :focus-visible) {
10
- text-underline-offset: var(--tw-underline-transparent-offset, -0.25em);
10
+ text-underline-offset: var(--default-underline-transparent-offset, -0.25em);
11
11
  text-decoration-color: transparent;
12
12
  }
13
13
  }
package/types/index.d.ts CHANGED
@@ -96,28 +96,13 @@ declare module 'winduum/src/components/dialog' {
96
96
  remove?: boolean | null
97
97
  closable?: boolean | null
98
98
  openClass?: string
99
+ overflowClass?: string
99
100
  scrollbarWidthProperty?: string
100
101
  }
101
102
 
102
- export interface InsertDialogOptions {
103
- selector?: string | null
104
- class?: string | null
105
- append?: boolean | null
106
- show?: DefaultOptions
107
- }
108
-
109
- export interface FetchDialogOptions {
110
- url: string
111
- insert?: InsertDialogOptions
112
- }
113
-
114
103
  export const defaultOptions: DefaultOptions
115
- export function dialogSelector(selector: string): HTMLDialogElement
116
- export function dismissDialog(element: HTMLDialogElement, options?: DefaultOptions): Promise<void>
117
- export function showDialog(element: HTMLDialogElement, options?: DefaultOptions): Promise<void>
118
- export function closeDialog(element: HTMLDialogElement, options?: DefaultOptions): Promise<void>
119
- export function insertDialog(content: string, options?: InsertDialogOptions): Promise<void>
120
- export function fetchDialog({ url, insert }: FetchDialogOptions): Promise<void>
104
+ export function showDialog(element: HTMLDialogElement | HTMLElement, options?: DefaultOptions): Promise<void>
105
+ export function closeDialog(element: HTMLDialogElement | HTMLElement, options?: DefaultOptions): Promise<void>
121
106
  }
122
107
 
123
108
  declare module 'winduum/src/components/drawer' {
@@ -224,7 +209,7 @@ declare module 'winduum/src/components/popover' {
224
209
  export function togglePopover(element: HTMLElement | Element, options?: ShowPopoverOptions): Promise<void>
225
210
  }
226
211
 
227
- declare module 'winduum/src/ui/range' {
212
+ declare module 'winduum/src/components/range' {
228
213
  export interface SetTrackPropertyOptions {
229
214
  element: HTMLElement | Element
230
215
  value: string
@@ -27,14 +27,8 @@
27
27
  "showDetails",
28
28
  "closeDetails",
29
29
  "toggleDetails",
30
- "InsertDialogOptions",
31
- "FetchDialogOptions",
32
- "dialogSelector",
33
- "dismissDialog",
34
30
  "showDialog",
35
31
  "closeDialog",
36
- "insertDialog",
37
- "fetchDialog",
38
32
  "ScrollDrawerOptions",
39
33
  "showDrawer",
40
34
  "closeDrawer",
@@ -77,7 +71,7 @@
77
71
  "../src/components/tabs/index.d.ts",
78
72
  "../src/components/toaster/index.d.ts",
79
73
  "../src/components/popover/index.d.ts",
80
- "../src/ui/range/index.d.ts",
74
+ "../src/components/range/index.d.ts",
81
75
  "../src/utilities/ripple/index.d.ts",
82
76
  "../src/utilities/swap/index.d.ts"
83
77
  ],
@@ -96,5 +90,6 @@
96
90
  null,
97
91
  null
98
92
  ],
99
- "mappings": ";;kBAEiBA,aAAaA;;;;;;;;;;;;;;;;;;;;cAoBjBC,aAAaA;;;;;;kBCtBTC,sBAAsBA;;;;;;;;kBAQtBC,yBAAyBA;;;;;;kBAMzBC,qBAAqBA;;;;;;;;kBAQrBC,uBAAuBA;;;;;kBAKvBC,mBAAmBA;;;;iBAIpBC,UAAUA;iBACVC,UAAUA;iBACVC,QAAQA;iBACRC,YAAYA;iBACZC,eAAeA;iBACfC,cAAcA;iBACdC,kBAAkBA;iBAClBC,gBAAgBA;iBAChBC,YAAYA;;;;kBCvCXC,kBAAkBA;;;;;iBAKnBC,WAAWA;iBACXC,eAAeA;iBACfC,YAAYA;;;;kBCPXC,cAAcA;;;;;cAKlBC,cAAcA;iBACXC,WAAWA;iBACXC,YAAYA;iBACZC,aAAaA;;;;kBCRZJ,cAAcA;;;;;;;kBAOdK,mBAAmBA;;;;;;;kBAOnBC,kBAAkBA;;;;;cAKtBL,cAAcA;iBACXM,cAAcA;iBACdC,aAAaA;iBACbC,UAAUA;iBACVC,WAAWA;iBACXC,YAAYA;iBACZC,WAAWA;;;;kBCzBVC,mBAAmBA;;;;;;;;;;iBAUpBC,UAAUA;iBACVC,WAAWA;iBACXC,YAAYA;;;;kBCZXC,mBAAmBA;;;;;;kBAMnBC,oBAAoBA;;;;;;;;;;;;;;;;;;iBAkBrBC,YAAYA;iBACZC,aAAaA;;;;;;;;;iBCpBbC,SAASA;;;;kBCLRC,gBAAgBA;;;;;;;kBAOhBC,iBAAiBA;;;;;kBAKjBC,oBAAoBA;;;;kBAIpBC,kBAAkBA;;;;;;;;;iBASnBC,UAAUA;iBACVC,SAASA;iBACTC,aAAaA;iBACbC,WAAWA;iBACXC,YAAYA;;;;;kBC3BXC,kBAAkBA;;;;;;;;;;iBAUnBC,WAAWA;iBACXC,WAAWA;iBACXC,aAAaA;;;;kBCdZC,uBAAuBA;;;;;;kBAMvBC,eAAeA;;;;;kBAKfC,gBAAgBA;;;;;iBAKjBC,gBAAgBA;iBAChBC,QAAQA;iBACRC,cAAcA;;;;iBClBdC,UAAUA;;;;iBCAVC,UAAUA"
93
+ "mappings": ";;kBAEiBA,aAAaA;;;;;;;;;;;;;;;;;;;;cAoBjBC,aAAaA;;;;;;kBCtBTC,sBAAsBA;;;;;;;;kBAQtBC,yBAAyBA;;;;;;kBAMzBC,qBAAqBA;;;;;;;;kBAQrBC,uBAAuBA;;;;;kBAKvBC,mBAAmBA;;;;iBAIpBC,UAAUA;iBACVC,UAAUA;iBACVC,QAAQA;iBACRC,YAAYA;iBACZC,eAAeA;iBACfC,cAAcA;iBACdC,kBAAkBA;iBAClBC,gBAAgBA;iBAChBC,YAAYA;;;;kBCvCXC,kBAAkBA;;;;;iBAKnBC,WAAWA;iBACXC,eAAeA;iBACfC,YAAYA;;;;kBCPXC,cAAcA;;;;;cAKlBC,cAAcA;iBACXC,WAAWA;iBACXC,YAAYA;iBACZC,aAAaA;;;;kBCRZJ,cAAcA;;;;;;;;cAQlBC,cAAcA;iBACXI,UAAUA;iBACVC,WAAWA;;;;kBCVVC,mBAAmBA;;;;;;;;;;iBAUpBC,UAAUA;iBACVC,WAAWA;iBACXC,YAAYA;;;;kBCZXC,mBAAmBA;;;;;;kBAMnBC,oBAAoBA;;;;;;;;;;;;;;;;;;iBAkBrBC,YAAYA;iBACZC,aAAaA;;;;;;;;;iBCpBbC,SAASA;;;;kBCLRC,gBAAgBA;;;;;;;kBAOhBC,iBAAiBA;;;;;kBAKjBC,oBAAoBA;;;;kBAIpBC,kBAAkBA;;;;;;;;;iBASnBC,UAAUA;iBACVC,SAASA;iBACTC,aAAaA;iBACbC,WAAWA;iBACXC,YAAYA;;;;;kBC3BXC,kBAAkBA;;;;;;;;;;iBAUnBC,WAAWA;iBACXC,WAAWA;iBACXC,aAAaA;;;;kBCdZC,uBAAuBA;;;;;;kBAMvBC,eAAeA;;;;;kBAKfC,gBAAgBA;;;;;iBAKjBC,gBAAgBA;iBAChBC,QAAQA;iBACRC,cAAcA;;;;iBClBdC,UAAUA;;;;iBCAVC,UAAUA",
94
+ "ignoreList": []
100
95
  }
@@ -1,12 +0,0 @@
1
- export default {
2
- '.flex-center': {
3
- display: 'flex',
4
- alignItems: 'center',
5
- gap: 'var(--spacing-sm)'
6
- },
7
- '.flex-between': {
8
- display: 'flex',
9
- justifyContent: 'space-between',
10
- gap: 'var(--spacing-sm)'
11
- }
12
- }
@@ -1,15 +0,0 @@
1
- :root, :host {
2
- --text-xs: 0.75rem;
3
- --text-sm: 0.875rem;
4
- --text-base: 1rem;
5
- --text-lg: 1.125rem;
6
- --text-xl: 1.25rem;
7
- --text-2xl: 1.5rem;
8
- --text-3xl: 1.875rem;
9
- --text-4xl: 2.25rem;
10
- --text-5xl: 3rem;
11
- --text-6xl: 3.75rem;
12
- --text-7xl: 4.5rem;
13
- --text-8xl: 6rem;
14
- --text-9xl: 8rem;
15
- }
@@ -1,16 +0,0 @@
1
- .ui-badge {
2
- &:where(.bordered) {
3
- --ui-badge-border-color: var(--color-accent);
4
- --ui-badge-border-width: 1px;
5
- --tw-border-opacity: 1;
6
- --tw-border-mix: transparent;
7
-
8
- border: var(--ui-badge-border-width) solid color-mix(in var(--space), var(--ui-badge-border-color) calc(var(--tw-border-opacity) * 100%), var(--tw-border-mix));
9
- padding-inline: calc(var(--ui-badge-px) - var(--ui-badge-border-width));
10
- }
11
-
12
- &:is(.bordered) {
13
- --ui-badge-color: var(--color-accent);
14
- --tw-bg-opacity: 0;
15
- }
16
- }
@@ -1,5 +0,0 @@
1
- .ui-badge:is(.circle) {
2
- --ui-badge-px: var(--ui-badge-py);
3
- --ui-badge-width: var(--ui-badge-height);
4
- --ui-badge-border-radius: var(--rounded-full);
5
- }
@@ -1,8 +0,0 @@
1
- :root, :host {
2
- --ui-badge-font-size: var(--text-xs);
3
- --ui-badge-height: 1.5rem;
4
- --ui-badge-py: 0;
5
- --ui-badge-px: 0.5rem;
6
- --ui-badge-gap: var(--spacing-xs);
7
- --ui-badge-border-radius: var(--rounded-lg);
8
- }
@@ -1,26 +0,0 @@
1
- .ui-badge {
2
- --ui-badge-bg: var(--color-accent);
3
- --ui-badge-color: var(--color-accent-foreground);
4
- --tw-bg-opacity: 1;
5
- --tw-text-opacity: 1;
6
- --tw-bg-mix: transparent;
7
- --tw-text-mix: transparent;
8
-
9
- width: var(--ui-badge-width);
10
- height: var(--ui-badge-height);
11
- padding: var(--ui-badge-py) var(--ui-badge-px);
12
- border-radius: var(--ui-badge-border-radius);
13
- font-family: var(--ui-badge-font-family);
14
- font-weight: var(--ui-badge-font-weight);
15
- font-size: var(--ui-badge-font-size);
16
- letter-spacing: var(--ui-badge-letter-spacing);
17
- background-color: color-mix(in var(--space), var(--ui-badge-bg) calc(var(--tw-bg-opacity) * 100%), var(--tw-bg-mix));
18
- color: color-mix(in var(--space), var(--ui-badge-color) calc(var(--tw-text-opacity) * 100%), var(--tw-text-mix));
19
- gap: var(--ui-badge-gap);
20
- display: inline-flex;
21
- text-align: center;
22
- align-items: center;
23
- justify-content: center;
24
- line-height: 1;
25
- flex-shrink: 0;
26
- }
@@ -1,3 +0,0 @@
1
- .ui-badge:is(.lg) {
2
- --ui-badge-height: 1.75rem;
3
- }
@@ -1,4 +0,0 @@
1
- .ui-badge:is(.muted) {
2
- --ui-badge-color: var(--color-accent);
3
- --tw-bg-opacity: 0.1;
4
- }
@@ -1,4 +0,0 @@
1
- .ui-badge:is(.sm) {
2
- --ui-badge-height: 1.25rem;
3
- --ui-badge-font-size: 0.625rem;
4
- }
@@ -1,4 +0,0 @@
1
- .ui-badge:is(.square) {
2
- --ui-badge-px: var(--ui-badge-py);
3
- --ui-badge-width: var(--ui-badge-height);
4
- }
@@ -1,21 +0,0 @@
1
- .ui-btn {
2
- &:where(.bordered) {
3
- --ui-btn-border-width: 1px;
4
- --ui-btn-border-color: var(--color-accent);
5
- --tw-border-opacity: 0.3;
6
- --tw-border-mix: transparent;
7
-
8
- border: var(--ui-btn-border-width) solid color-mix(in var(--space), var(--ui-btn-border-color) calc(var(--tw-border-opacity) * 100%), var(--tw-border-mix));
9
- padding-inline: calc(var(--ui-btn-px) - var(--ui-btn-border-width));
10
- }
11
-
12
- &:is(.bordered) {
13
- --ui-btn-hover-bg-mix: transparent;
14
- --ui-btn-hover-bg-opacity: 0.1;
15
- --ui-btn-active-bg-mix: transparent;
16
- --ui-btn-active-bg-opacity: 0.2;
17
- --ui-btn-focus-outline-offset: -2px;
18
- --ui-btn-color: var(--color-accent);
19
- --tw-bg-opacity: 0;
20
- }
21
- }
@@ -1,6 +0,0 @@
1
- .ui-btn:is(.circle) {
2
- --ui-btn-py: 0;
3
- --ui-btn-px: 0;
4
- --ui-btn-width: var(--ui-btn-height);
5
- --ui-btn-border-radius: var(--rounded-full);
6
- }
@@ -1,10 +0,0 @@
1
- :root, :host {
2
- --ui-btn-border-radius: var(--rounded);
3
- --ui-btn-font-size: var(--text-sm);
4
- --ui-btn-font-weight: var(--font-medium);
5
- --ui-btn-gap: var(--spacing-sm);
6
- --ui-btn-outline-width: 2px;
7
- --ui-btn-height: 2.25rem;
8
- --ui-btn-py: 0.375rem;
9
- --ui-btn-px: 0.75rem;
10
- }
@@ -1,49 +0,0 @@
1
- .ui-btn {
2
- --ui-btn-bg: var(--color-accent);
3
- --ui-btn-color: var(--color-accent-foreground);
4
- --ui-btn-outline-color: var(--color-accent);
5
- --tw-bg-opacity: 1;
6
- --tw-bg-mix: transparent;
7
- --tw-text-opacity: 1;
8
- --tw-text-mix: transparent;
9
- --tw-outline-opacity: 0;
10
- --tw-outline-mix: transparent;
11
-
12
- inline-size: var(--ui-btn-width);
13
- block-size: var(--ui-btn-height);
14
- padding: var(--ui-btn-py) var(--ui-btn-px);
15
- border-radius: var(--ui-btn-border-radius);
16
- font-family: var(--ui-btn-font-family);
17
- font-size: var(--ui-btn-font-size);
18
- font-weight: var(--ui-btn-font-weight);
19
- letter-spacing: var(--ui-btn-letter-spacing);
20
- background-color: color-mix(in var(--space), var(--ui-btn-bg) calc(var(--tw-bg-opacity) * 100%), var(--tw-bg-mix));
21
- color: color-mix(in var(--space), var(--ui-btn-color) calc(var(--tw-text-opacity) * 100%), var(--tw-text-mix));
22
- outline:
23
- var(--ui-btn-outline-width) solid
24
- color-mix(
25
- in var(--space),
26
- var(--ui-btn-outline-color) calc(var(--tw-outline-opacity) * 100%),
27
- var(--tw-outline-mix)
28
- );
29
- outline-offset: var(--ui-btn-outline-offset);
30
- gap: var(--ui-btn-gap);
31
- user-select: none;
32
- overflow: clip;
33
- display: inline-flex;
34
- text-align: center;
35
- align-items: center;
36
- justify-content: center;
37
- position: relative;
38
- line-height: 1;
39
- flex-shrink: 0;
40
- z-index: 0;
41
-
42
- :where(*) {
43
- pointer-events: none;
44
- }
45
-
46
- &:where(input)::after {
47
- content: attr(aria-label);
48
- }
49
- }
@@ -1,6 +0,0 @@
1
- .ui-btn:is(.fill) {
2
- --ui-btn-hover-bg-mix: var(--color-dark);
3
- --ui-btn-hover-bg-opacity: 1;
4
- --ui-btn-active-bg-mix: var(--color-dark);
5
- --ui-btn-active-bg-opacity: 0.9;
6
- }
@@ -1,9 +0,0 @@
1
- .ui-btn:is(.ghosted) {
2
- --ui-btn-hover-bg-mix: transparent;
3
- --ui-btn-hover-bg-opacity: 0.1;
4
- --ui-btn-active-bg-mix: transparent;
5
- --ui-btn-active-bg-opacity: 0.2;
6
- --ui-btn-focus-outline-offset: -2px;
7
- --ui-btn-color: var(--color-accent);
8
- --tw-bg-opacity: 0;
9
- }
@@ -1,24 +0,0 @@
1
- .ui-btn {
2
- &:where(.gradient-bordered) {
3
- &::before {
4
- content: "";
5
- position: absolute;
6
- background-color: color-mix(in var(--space), var(--color-body) calc(100% - var(--tw-bg-opacity) * 100%), transparent);
7
- inset: var(--ui-btn-border-width);
8
- border-radius: calc(var(--ui-btn-border-radius) / 1.25);
9
- z-index: -1;
10
- transition: var(--transition-background);
11
- }
12
- }
13
-
14
- &:is(.gradient-bordered) {
15
- --ui-btn-hover-bg-mix: transparent;
16
- --ui-btn-hover-bg-opacity: 0.1;
17
- --ui-btn-active-bg-mix: transparent;
18
- --ui-btn-active-bg-opacity: 0.2;
19
- --ui-btn-focus-outline-offset: 0;
20
- --ui-btn-border-width: 2px;
21
- --ui-btn-color: currentColor;
22
- --tw-bg-opacity: 0;
23
- }
24
- }
@@ -1,10 +0,0 @@
1
- .ui-btn:where(.gradient) {
2
- &::before {
3
- content: "";
4
- position: absolute;
5
- inset: 0;
6
- background-color: color-mix(in var(--space), var(--tw-bg-mix) calc(100% - var(--tw-bg-opacity) * 100%), transparent);
7
- z-index: -1;
8
- transition: var(--transition-background);
9
- }
10
- }
@@ -1,9 +0,0 @@
1
- :root, :host {
2
- --ui-btn-hover-bg-mix: var(--color-dark);
3
- --ui-btn-hover-bg-opacity: 0.8;
4
- --ui-btn-focus-outline-offset: 2px;
5
- --ui-btn-focus-outline-opacity: 0.5;
6
- --ui-btn-active-bg-mix: var(--color-dark);
7
- --ui-btn-active-bg-opacity: 0.9;
8
- --ui-btn-disabled-opacity: 0.75;
9
- }
@@ -1,53 +0,0 @@
1
- .ui-btn {
2
- transition-property: var(--transition);
3
- transition-timing-function: var(--ease-in-out);
4
- transition-duration: var(--duration);
5
-
6
- &:where(.accent-main) {
7
- --ui-btn-hover-bg-mix: var(--color-main-foreground);
8
- }
9
-
10
- &:where(.accent-body) {
11
- --ui-btn-hover-bg-mix: var(--color-body-foreground);
12
- }
13
-
14
- &:where(.accent-light) {
15
- --ui-btn-hover-bg-mix: var(--color-light-foreground);
16
- }
17
-
18
- &:where(.accent-dark) {
19
- --ui-btn-hover-bg-mix: var(--color-dark-foreground);
20
- }
21
-
22
- &:is(:any-link, button, [role="button"], input) {
23
- cursor: var(--cursor, pointer);
24
-
25
- &:disabled {
26
- opacity: var(--ui-btn-disabled-opacity);
27
- cursor: not-allowed;
28
- }
29
-
30
- &:not(:disabled) {
31
- &:hover {
32
- @media (hover: hover) and (pointer: fine) {
33
- --ui-btn-bg: var(--ui-btn-hover-bg, var(--color-accent));
34
- --ui-btn-border-color: var(--ui-btn-hover-border-color, var(--color-accent));
35
- --tw-bg-mix: var(--ui-btn-hover-bg-mix);
36
- --tw-bg-opacity: var(--ui-btn-hover-bg-opacity);
37
- }
38
- }
39
-
40
- &:focus {
41
- --ui-btn-outline-offset: var(--ui-btn-focus-outline-offset);
42
- --tw-outline-opacity: var(--ui-btn-focus-outline-opacity);
43
- }
44
-
45
- &:active, &:checked, &.active {
46
- --ui-btn-bg: var(--ui-btn-active-bg, var(--color-accent));
47
- --ui-btn-border-color: var(--ui-btn-active-border-color, var(--color-accent));
48
- --tw-bg-mix: var(--ui-btn-active-bg-mix);
49
- --tw-bg-opacity: var(--ui-btn-active-bg-opacity);
50
- }
51
- }
52
- }
53
- }
package/src/ui/btn/lg.css DELETED
@@ -1,4 +0,0 @@
1
- .ui-btn:is(.lg) {
2
- --ui-btn-height: 3rem;
3
- --ui-btn-px: 1.75rem;
4
- }
@@ -1,4 +0,0 @@
1
- :root, :host {
2
- --ui-btn-loading-width: 1rem;
3
- --ui-btn-loading-border-width: 2px;
4
- }
@@ -1,24 +0,0 @@
1
- .ui-btn:is(.loading) {
2
- pointer-events: none;
3
- color: transparent;
4
-
5
- > * {
6
- opacity: 0;
7
- }
8
-
9
- &::after {
10
- z-index: 1;
11
- width: var(--ui-btn-loading-width);
12
- height: var(--ui-btn-loading-width);
13
- content: "";
14
- border: var(--ui-btn-loading-border-width) solid var(--ui-btn-color);
15
- border-right-color: transparent;
16
- border-radius: 50%;
17
- animation: spin 0.5s infinite linear;
18
- position: absolute;
19
- margin-left: calc(var(--ui-btn-loading-width) / 2 * -1);
20
- margin-top: calc(var(--ui-btn-loading-width) / 2 * -1);
21
- left: 50%;
22
- top: 50%;
23
- }
24
- }
@@ -1,9 +0,0 @@
1
- .ui-btn:is(.muted) {
2
- --ui-btn-hover-bg-mix: transparent;
3
- --ui-btn-hover-bg-opacity: 0.3;
4
- --ui-btn-active-bg-mix: transparent;
5
- --ui-btn-active-bg-opacity: 0.2;
6
- --ui-btn-focus-outline-offset: -2px;
7
- --ui-btn-color: var(--color-accent);
8
- --tw-bg-opacity: 0.1;
9
- }
@@ -1,7 +0,0 @@
1
- .ui-btn:where(.raised) {
2
- --ui-btn-border-width: 2px;
3
- --tw-border-opacity: 0.85;
4
-
5
- border: var(--ui-btn-border-width) solid color-mix(in var(--space), var(--ui-btn-bg) calc(var(--tw-border-opacity) * 100%), var(--ui-btn-color));
6
- padding-inline: calc(var(--ui-btn-px) - var(--ui-btn-border-width));
7
- }
@@ -1,51 +0,0 @@
1
- # [Button](https://winduum.dev/docs/ui/button.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/btn/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/btn/default.css" layer(components);
18
- @import "winduum/src/ui/btn/default-props.css" layer(components);
19
- @import "winduum/src/ui/btn/interactive.css" layer(components);
20
- @import "winduum/src/ui/btn/interactive-props.css" layer(components);
21
- @import "winduum/src/ui/btn/sm.css" layer(components);
22
- @import "winduum/src/ui/btn/lg.css" layer(components);
23
- @import "winduum/src/ui/btn/loading.css" layer(components);
24
- @import "winduum/src/ui/btn/loading-props.css" layer(components);
25
- @import "winduum/src/ui/btn/wide.css" layer(components);
26
- @import "winduum/src/ui/btn/bordered.css" layer(components);
27
- @import "winduum/src/ui/btn/ghosted.css" layer(components);
28
- @import "winduum/src/ui/btn/hover-fill.css" layer(components);
29
- @import "winduum/src/ui/btn/gradient.css" layer(components);
30
- @import "winduum/src/ui/btn/gradient-bordered.css" layer(components);
31
- @import "winduum/src/ui/btn/muted.css" layer(components);
32
- @import "winduum/src/ui/btn/raised.css" layer(components);
33
- @import "winduum/src/ui/btn/square.css" layer(components);
34
- @import "winduum/src/ui/btn/circle.css" layer(components);
35
- ```
36
-
37
-
38
- ### Local imports
39
- By default, imports are directly from `npm` so you can leverage updates.
40
- You can also copy and paste the code from this directory to your project and remap the imports to local.
41
-
42
- ```css
43
- @import "@/components/ui/btn/assets/index.css" layer(components);
44
- ```
45
-
46
- ### Docs
47
- Visit [docs](https://winduum.dev/docs/ui/button.html) to learn more about usage examples.
48
-
49
- ### Frameworks
50
- * [winduum/winduum-vue](https://github.com/winduum/winduum-vue/blob/main/src/ui/btn)
51
- * [winduum/winduum-react](https://github.com/winduum/winduum-react/blob/main/src/ui/btn)
package/src/ui/btn/sm.css DELETED
@@ -1,4 +0,0 @@
1
- .ui-btn:is(.sm) {
2
- --ui-btn-height: 2rem;
3
- --ui-btn-px: 1rem;
4
- }
@@ -1,5 +0,0 @@
1
- .ui-btn:is(.square) {
2
- --ui-btn-py: 0;
3
- --ui-btn-px: 0;
4
- --ui-btn-width: var(--ui-btn-height);
5
- }
@@ -1,3 +0,0 @@
1
- .ui-btn:where(.wide) {
2
- padding-inline: calc(var(--ui-btn-px) * 1.5);
3
- }