winduum 2.0.0-next.1 → 2.0.0-next.2

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 (219) hide show
  1. package/package.json +12 -12
  2. package/plugin/index.js +10 -10
  3. package/plugin/utilities/dot.js +2 -2
  4. package/src/base/breakpoints.css +10 -10
  5. package/src/base/keyframes.css +3 -3
  6. package/src/components/badge/bordered.css +5 -15
  7. package/src/components/badge/circle.css +4 -4
  8. package/src/components/badge/default.css +34 -18
  9. package/src/components/badge/index.css +1 -1
  10. package/src/components/badge/lg.css +2 -2
  11. package/src/components/badge/muted.css +3 -3
  12. package/src/components/badge/props/default.css +9 -0
  13. package/src/components/badge/readme.md +12 -12
  14. package/src/components/badge/sm.css +3 -3
  15. package/src/components/badge/square.css +3 -3
  16. package/src/components/breadcrumb/default.css +7 -7
  17. package/src/components/breadcrumb/index.css +1 -1
  18. package/src/components/breadcrumb/props/default.css +5 -0
  19. package/src/components/breadcrumb/readme.md +1 -1
  20. package/src/components/button/bordered.css +18 -18
  21. package/src/components/button/circle.css +5 -5
  22. package/src/components/button/default.css +29 -29
  23. package/src/components/button/fill.css +5 -5
  24. package/src/components/button/ghosted.css +13 -13
  25. package/src/components/button/interactive.css +32 -32
  26. package/src/components/button/lg.css +3 -3
  27. package/src/components/button/muted.css +13 -13
  28. package/src/components/button/props/default.css +9 -9
  29. package/src/components/button/props/interactive.css +7 -7
  30. package/src/components/button/raised.css +5 -5
  31. package/src/components/button/readme.md +2 -2
  32. package/src/components/button/sm.css +3 -3
  33. package/src/components/button/square.css +4 -4
  34. package/src/components/card/default.css +4 -6
  35. package/src/components/card/index.css +1 -1
  36. package/src/components/card/props/default.css +6 -0
  37. package/src/components/card/readme.md +1 -1
  38. package/src/components/carousel/content.css +2 -2
  39. package/src/components/carousel/default.css +1 -1
  40. package/src/components/check/default.css +34 -41
  41. package/src/components/check/index.css +1 -2
  42. package/src/components/check/interactive.css +31 -25
  43. package/src/components/check/invalid.css +7 -6
  44. package/src/components/check/props/default.css +13 -0
  45. package/src/components/check/readme.md +8 -9
  46. package/src/components/color/default.css +13 -25
  47. package/src/components/color/index.css +1 -2
  48. package/src/components/color/interactive.css +18 -12
  49. package/src/components/color/props/default.css +7 -0
  50. package/src/components/color/readme.md +7 -8
  51. package/src/components/compare/default.css +17 -18
  52. package/src/components/compare/index.js +2 -2
  53. package/src/components/control/color.css +8 -8
  54. package/src/components/control/default.css +36 -39
  55. package/src/components/control/file.css +14 -12
  56. package/src/components/control/floating-interactive.css +5 -5
  57. package/src/components/control/floating.css +7 -7
  58. package/src/components/control/icon.css +8 -8
  59. package/src/components/control/index.css +5 -6
  60. package/src/components/control/interactive.css +9 -9
  61. package/src/components/control/invalid.css +7 -7
  62. package/src/components/control/props/color.css +5 -0
  63. package/src/components/control/props/default.css +16 -0
  64. package/src/components/control/props/floating.css +4 -0
  65. package/src/components/control/props/icon.css +4 -0
  66. package/src/components/control/props/select.css +4 -0
  67. package/src/components/control/readme.md +19 -20
  68. package/src/components/control/select-multiple.css +2 -2
  69. package/src/components/control/select.css +8 -8
  70. package/src/components/dialog/content.css +6 -6
  71. package/src/components/dialog/default.css +11 -8
  72. package/src/components/dialog/index.css +2 -2
  73. package/src/components/dialog/index.js +3 -3
  74. package/src/components/dialog/props/content.css +5 -0
  75. package/src/components/dialog/props/default.css +6 -0
  76. package/src/components/dialog/readme.md +2 -2
  77. package/src/components/drawer/content.css +4 -4
  78. package/src/components/drawer/default.css +8 -5
  79. package/src/components/drawer/index.css +2 -2
  80. package/src/components/drawer/index.js +3 -3
  81. package/src/components/drawer/props/content.css +7 -0
  82. package/src/components/drawer/props/default.css +3 -0
  83. package/src/components/drawer/readme.md +2 -2
  84. package/src/components/field/default.css +6 -6
  85. package/src/components/form/index.js +5 -5
  86. package/src/components/group/default.css +11 -11
  87. package/src/components/group/readme.md +6 -6
  88. package/src/components/group/vertical.css +2 -2
  89. package/src/components/heading/default.css +6 -6
  90. package/src/components/heading/index.css +1 -1
  91. package/src/components/heading/lg.css +2 -2
  92. package/src/components/heading/props/default.css +6 -0
  93. package/src/components/heading/readme.md +8 -8
  94. package/src/components/heading/sm.css +2 -2
  95. package/src/components/image/avatar.css +1 -1
  96. package/src/components/image/default.css +1 -1
  97. package/src/components/image/readme.md +6 -6
  98. package/src/components/index.css +0 -2
  99. package/src/components/info/default.css +6 -6
  100. package/src/components/info/index.css +1 -1
  101. package/src/components/info/props/default.css +4 -0
  102. package/src/components/info/readme.md +6 -6
  103. package/src/components/label/default.css +6 -6
  104. package/src/components/label/index.css +1 -1
  105. package/src/components/label/props/default.css +4 -0
  106. package/src/components/label/readme.md +6 -6
  107. package/src/components/link/default.css +6 -6
  108. package/src/components/link/index.css +1 -2
  109. package/src/components/link/interactive.css +3 -10
  110. package/src/components/link/props/default.css +4 -0
  111. package/src/components/link/readme.md +7 -7
  112. package/src/components/notice/default.css +16 -20
  113. package/src/components/notice/index.css +1 -1
  114. package/src/components/notice/props/default.css +8 -0
  115. package/src/components/notice/readme.md +6 -6
  116. package/src/components/pagination/default.css +2 -2
  117. package/src/components/popover/content.css +14 -15
  118. package/src/components/popover/default.css +1 -1
  119. package/src/components/popover/index.css +1 -1
  120. package/src/components/popover/props/content.css +8 -0
  121. package/src/components/popover/readme.md +1 -1
  122. package/src/components/progress/default.css +15 -16
  123. package/src/components/progress/index.css +1 -1
  124. package/src/components/progress/lg.css +2 -2
  125. package/src/components/progress/meter.css +7 -7
  126. package/src/components/progress/props/default.css +6 -0
  127. package/src/components/progress/readme.md +9 -9
  128. package/src/components/progress/sm.css +2 -2
  129. package/src/components/range/default.css +47 -49
  130. package/src/components/range/index.css +1 -1
  131. package/src/components/range/index.js +2 -2
  132. package/src/components/range/multi.css +6 -6
  133. package/src/components/range/props/default.css +9 -0
  134. package/src/components/range/readme.md +8 -8
  135. package/src/components/range/vertical.css +3 -3
  136. package/src/components/rating/default.css +11 -11
  137. package/src/components/rating/index.css +1 -1
  138. package/src/components/rating/invalid.css +3 -3
  139. package/src/components/rating/props/default.css +8 -0
  140. package/src/components/rating/readme.md +7 -7
  141. package/src/components/switch/default.css +23 -26
  142. package/src/components/switch/index.css +1 -1
  143. package/src/components/switch/interactive.css +13 -9
  144. package/src/components/switch/invalid.css +4 -4
  145. package/src/components/switch/props/default.css +17 -0
  146. package/src/components/switch/readme.md +8 -8
  147. package/src/components/table/default.css +11 -11
  148. package/src/components/table/index.css +1 -2
  149. package/src/components/table/interactive.css +14 -14
  150. package/src/components/table/props/default.css +8 -0
  151. package/src/components/table/readme.md +1 -2
  152. package/src/components/tabs/default.css +6 -6
  153. package/src/components/text/default.css +102 -72
  154. package/src/components/text/index.css +1 -1
  155. package/src/components/text/props/default.css +9 -0
  156. package/src/components/text/readme.md +6 -6
  157. package/src/components/title/default.css +6 -6
  158. package/src/components/title/index.css +1 -1
  159. package/src/components/title/lg.css +2 -2
  160. package/src/components/title/props/default.css +5 -0
  161. package/src/components/title/readme.md +8 -8
  162. package/src/components/title/sm.css +2 -2
  163. package/src/components/toast/content.css +16 -15
  164. package/src/components/toast/default.css +8 -8
  165. package/src/components/toast/index.css +2 -2
  166. package/src/components/toast/props/content.css +7 -0
  167. package/src/components/toast/props/default.css +4 -0
  168. package/src/components/toast/readme.md +2 -2
  169. package/src/components/toaster/default.css +4 -4
  170. package/src/components/toaster/index.css +1 -1
  171. package/src/components/toaster/index.js +8 -8
  172. package/src/components/toaster/props/default.css +4 -0
  173. package/src/components/toaster/readme.md +1 -1
  174. package/src/components/tooltip/default.css +15 -15
  175. package/src/components/tooltip/index.css +1 -1
  176. package/src/components/tooltip/props/default.css +12 -0
  177. package/src/components/tooltip/readme.md +2 -2
  178. package/src/utilities/divider.css +13 -3
  179. package/src/utilities/ripple/index.css +9 -4
  180. package/src/utilities/skeleton/default.css +8 -1
  181. package/src/utilities/skeleton/props/default.css +3 -3
  182. package/src/utilities/swap/default.css +3 -3
  183. package/src/components/badge/default-props.css +0 -8
  184. package/src/components/breadcrumb/default-props.css +0 -5
  185. package/src/components/card/default-props.css +0 -4
  186. package/src/components/check/default-props.css +0 -13
  187. package/src/components/check/interactive-props.css +0 -3
  188. package/src/components/color/default-props.css +0 -11
  189. package/src/components/color/interactive-props.css +0 -3
  190. package/src/components/control/color-props.css +0 -5
  191. package/src/components/control/default-props.css +0 -16
  192. package/src/components/control/floating-props.css +0 -4
  193. package/src/components/control/icon-props.css +0 -4
  194. package/src/components/control/interactive-props.css +0 -3
  195. package/src/components/control/select-props.css +0 -4
  196. package/src/components/dialog/content-props.css +0 -5
  197. package/src/components/dialog/default-props.css +0 -6
  198. package/src/components/drawer/content-props.css +0 -6
  199. package/src/components/drawer/default-props.css +0 -3
  200. package/src/components/heading/default-props.css +0 -6
  201. package/src/components/info/default-props.css +0 -4
  202. package/src/components/label/default-props.css +0 -4
  203. package/src/components/link/default-props.css +0 -4
  204. package/src/components/link/interactive-props.css +0 -5
  205. package/src/components/notice/default-props.css +0 -8
  206. package/src/components/popover/content-props.css +0 -8
  207. package/src/components/progress/default-props.css +0 -4
  208. package/src/components/range/default-props.css +0 -10
  209. package/src/components/rating/default-props.css +0 -5
  210. package/src/components/switch/default-props.css +0 -17
  211. package/src/components/switch/interactive-props.css +0 -3
  212. package/src/components/table/default-props.css +0 -8
  213. package/src/components/table/interactive-props.css +0 -4
  214. package/src/components/text/default-props.css +0 -9
  215. package/src/components/title/default-props.css +0 -5
  216. package/src/components/toast/content-props.css +0 -7
  217. package/src/components/toast/default-props.css +0 -4
  218. package/src/components/toaster/default-props.css +0 -4
  219. package/src/components/tooltip/default-props.css +0 -12
@@ -1,4 +1,4 @@
1
- @import "default-props.css";
1
+ @import "props/default.css";
2
+ @import "props/content.css";
2
3
  @import "default.css";
3
- @import "content-props.css";
4
4
  @import "content.css";
@@ -6,7 +6,7 @@ import { animationsFinished } from '../../common.js'
6
6
  export const defaultOptions = {
7
7
  openClass: 'open',
8
8
  overflowClass: 'overflow-auto',
9
- scrollbarWidthProperty: '--scrollbar-width',
9
+ scrollbarWidthProperty: '--default-scrollbar-width',
10
10
  remove: false
11
11
  }
12
12
 
@@ -48,7 +48,7 @@ export const showDialog = async (element, options = {}) => {
48
48
  element.classList.add(options.openClass)
49
49
  await animationsFinished(element.lastElementChild)
50
50
  element.classList.add(options.overflowClass)
51
- element.dispatchEvent(new CustomEvent('dialog:show'))
51
+ element.dispatchEvent(new CustomEvent('x-dialog:show'))
52
52
  }
53
53
 
54
54
  /**
@@ -71,6 +71,6 @@ export const closeDialog = async (element, options = {}) => {
71
71
  ? element.close()
72
72
  : element.removeAttribute('open')
73
73
 
74
- element.dispatchEvent(new CustomEvent('dialog:close'))
74
+ element.dispatchEvent(new CustomEvent('x-dialog:close'))
75
75
  options.remove && element.remove()
76
76
  }
@@ -0,0 +1,5 @@
1
+ :root, :host {
2
+ --x-dialog-content-padding-block: 2rem;
3
+ --x-dialog-content-padding-inline: 1.5rem;
4
+ --x-dialog-content-inline-size: 35rem;
5
+ }
@@ -0,0 +1,6 @@
1
+ :root, :host {
2
+ --x-dialog-padding-block: 2rem;
3
+ --x-dialog-padding-inline: 1.5rem;
4
+ --x-dialog-background-color: var(--color-dark);
5
+ --x-dialog-background-color-opacity: 80%;
6
+ }
@@ -14,9 +14,9 @@ Include CSS either globally or to your component _([you can't use TailwindCSS la
14
14
  or modular (you can use your own props or CSS)
15
15
 
16
16
  ```css
17
- @import "winduum/src/components/dialog/default-props.css" layer(components);
17
+ @import "winduum/src/components/dialog/props/default.css" layer(components);
18
+ @import "winduum/src/components/dialog/props/content.css" layer(components);
18
19
  @import "winduum/src/components/dialog/default.css" layer(components);
19
- @import "winduum/src/components/dialog/content-props.css" layer(components);
20
20
  @import "winduum/src/components/dialog/content.css" layer(components);
21
21
  ```
22
22
 
@@ -1,7 +1,7 @@
1
- .drawer-content {
2
- width: var(--drawer-content-width);
3
- height: var(--drawer-content-height);
1
+ .x-drawer-content {
2
+ inline-size: var(--x-drawer-content-inline-size);
3
+ block-size: var(--x-drawer-content-block-size);
4
+ background-color: var(--x-drawer-content-background-color);
4
5
  flex-shrink: 0;
5
6
  scroll-snap-align: end;
6
- background-color: var(--color-body-primary);
7
7
  }
@@ -1,12 +1,15 @@
1
- .drawer {
2
- --tw-bg-opacity: 0;
3
-
4
- z-index: var(--z-index-30);
1
+ .x-drawer {
2
+ z-index: var(--x-drawer-z-index, var(--z-index-30));
3
+ background-color:
4
+ color-mix(
5
+ in var(--x-drawer-background-color-space, srgb),
6
+ var(--color-dark) calc(var(--background-color-opacity, 0) * var(--x-drawer-background-color-opacity)),
7
+ var(--x-drawer-background-color-mix, transparent)
8
+ );
5
9
  position: fixed;
6
10
  inset: 0;
7
11
  display: flex;
8
12
  overflow: auto hidden;
9
- background-color: color-mix(in sRGB, var(--color-dark) calc(var(--tw-bg-opacity) * var(--drawer-bg-opacity) * 100%), transparent);
10
13
  scrollbar-width: none;
11
14
  scroll-behavior: smooth;
12
15
  -webkit-overflow-scrolling: touch;
@@ -1,4 +1,4 @@
1
- @import "default-props.css";
1
+ @import "props/default.css";
2
+ @import "props/content.css";
2
3
  @import "default.css";
3
- @import "content-props.css";
4
4
  @import "content.css";
@@ -26,7 +26,7 @@ export const closeDrawer = (element, distance = element.scrollWidth, direction =
26
26
  export const scrollDrawer = (element, options = {}) => {
27
27
  options = {
28
28
  snapClass: 'snap-x snap-mandatory',
29
- opacityProperty: '--tw-bg-opacity',
29
+ opacityProperty: '--background-color-opacity',
30
30
  opacityRatio: 1,
31
31
  scrollOpen: 0,
32
32
  scrollClose: element.scrollWidth - element.clientWidth,
@@ -43,12 +43,12 @@ export const scrollDrawer = (element, options = {}) => {
43
43
  if (options.scrollDirection === options.scrollOpen) {
44
44
  element.classList.add(...options.snapClass.split(/\s/))
45
45
  element.inert = false
46
- element.dispatchEvent(new CustomEvent('drawer:open'))
46
+ element.dispatchEvent(new CustomEvent('x-drawer:open'))
47
47
  }
48
48
 
49
49
  if ((options.scrollDirection === options.scrollClose) && !element.inert) {
50
50
  element.classList.remove(...options.snapClass.split(/\s/))
51
51
  element.inert = true
52
- element.dispatchEvent(new CustomEvent('drawer:close'))
52
+ element.dispatchEvent(new CustomEvent('x-drawer:close'))
53
53
  }
54
54
  }
@@ -0,0 +1,7 @@
1
+ :root, :host {
2
+ --x-drawer-content-background-color: var(--color-body-primary);
3
+ --x-drawer-content-padding-block: 2rem;
4
+ --x-drawer-content-padding-inline: 1.5rem;
5
+ --x-drawer-content-inline-size: calc(100vw - 4rem);
6
+ --x-drawer-content-block-size: 100%;
7
+ }
@@ -0,0 +1,3 @@
1
+ :root, :host {
2
+ --x-drawer-background-color-opacity: 75%;
3
+ }
@@ -14,9 +14,9 @@ Include CSS either globally or to your component _([you can't use TailwindCSS la
14
14
  or modular (you can use your own props or CSS)
15
15
 
16
16
  ```css
17
- @import "winduum/src/components/drawer/default-props.css" layer(components);
17
+ @import "winduum/src/components/drawer/props/default.css" layer(components);
18
+ @import "winduum/src/components/drawer/props/content.css" layer(components);
18
19
  @import "winduum/src/components/drawer/default.css" layer(components);
19
- @import "winduum/src/components/drawer/content-props.css" layer(components);
20
20
  @import "winduum/src/components/drawer/content.css" layer(components);
21
21
  ```
22
22
 
@@ -1,17 +1,17 @@
1
- .field {
2
- gap: var(--spacing-sm);
1
+ .x-field {
2
+ gap: var(--x-field-gap, var(--spacing-sm));
3
3
  display: flex;
4
4
  flex-direction: column;
5
5
 
6
6
  .validated &:has(:invalid) {
7
- :where(.info[hidden]) {
8
- display: flex;
7
+ :where(.x-info[hidden]) {
8
+ display: revert;
9
9
  }
10
10
  }
11
11
 
12
- &:has([required]) :where(.label) {
12
+ &:has([required]) :where(.x-label) {
13
13
  &::after {
14
- color: var(--color-error);
14
+ color: var(--x-field-required-color, var(--color-error));
15
15
  content: " *";
16
16
  }
17
17
  }
@@ -5,7 +5,7 @@
5
5
  */
6
6
  export const validateForm = (event, options = {}) => {
7
7
  options = {
8
- validateSelectors: '.control, .check, .switch, .rating, .color',
8
+ validateSelectors: '.x-control, .x-check, .x-switch, .x-rating, .x-color',
9
9
  validateOptions: {},
10
10
  submitterLoadingClass: 'loading',
11
11
  ...options
@@ -37,10 +37,10 @@ export const validateField = (element, options = {}) => {
37
37
  selector: 'input:not([type="hidden"]), textarea, select',
38
38
  ignoreMatch: /(data-novalidate|readonly)/,
39
39
  validitySelector: '.validity',
40
- infoParentSelector: '.field',
41
- infoSelector: '.info',
42
- infoContent: '<div class="ui-info text-error validity"></div>',
43
- endParentSelector: '.control',
40
+ infoParentSelector: '.x-field',
41
+ infoSelector: '.x-info',
42
+ infoContent: '<div class="x-info text-error validity"></div>',
43
+ endParentSelector: '.x-control',
44
44
  endSelector: '.ms-auto',
45
45
  endContent: '<div class="ms-auto"></div>',
46
46
  validClass: 'valid',
@@ -1,27 +1,27 @@
1
- .group {
1
+ .x-group {
2
2
  display: flex;
3
3
  border-radius: var(--radius);
4
4
 
5
- &:has(.control) {
6
- > :where(.button) {
7
- min-width: var(--control-height);
5
+ &:has(.x-control) {
6
+ > :where(.x-button) {
7
+ min-width: var(--x-control-height);
8
8
  height: auto;
9
9
  }
10
10
 
11
- > :is(.button) {
12
- --button-border-width: var(--control-border-width);
11
+ > :is(.x-button) {
12
+ --x-button-border-width: var(--x-control-border-width);
13
13
  }
14
14
  }
15
15
 
16
16
  > :where(*) {
17
17
  border-radius: inherit;
18
18
 
19
- &:is(.control) {
20
- --tw-border-mix: var(--color-body-primary);
19
+ &:is(.x-control) {
20
+ --x-control-border-color-mix: var(--color-body-primary);
21
21
  }
22
22
 
23
- &:is(.button) {
24
- --button-focus-outline-offset: 0;
23
+ &:is(.x-button) {
24
+ --x-button-focus-outline-offset: 0;
25
25
  }
26
26
 
27
27
  &:focus-within {
@@ -29,7 +29,7 @@
29
29
  }
30
30
 
31
31
  &:where(:not(:first-child)) {
32
- margin-inline-start: calc(var(--control-border-width) * -1);
32
+ margin-inline-start: calc(var(--x-control-border-width) * -1);
33
33
  border-start-start-radius: 0;
34
34
  border-end-start-radius: 0;
35
35
  }
@@ -1,4 +1,4 @@
1
- # [Group](https://winduum.dev/docs/ui/group.html)
1
+ # [Group](https://winduum.dev/docs/components/group.html)
2
2
 
3
3
  ## Installation
4
4
  ```shell
@@ -8,14 +8,14 @@ Learn more how to set up Winduum [here](https://winduum.dev/docs/).
8
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
9
 
10
10
  ```css
11
- @import "winduum/src/ui/group/index.css" layer(components);
11
+ @import "winduum/src/components/group/index.css" layer(components);
12
12
  ```
13
13
 
14
14
  or modular (you can use your own props or CSS)
15
15
 
16
16
  ```css
17
- @import "winduum/src/ui/group/default.css" layer(components);
18
- @import "winduum/src/ui/group/vertical.css" layer(components);
17
+ @import "winduum/src/components/group/default.css" layer(components);
18
+ @import "winduum/src/components/group/vertical.css" layer(components);
19
19
  ```
20
20
 
21
21
  ### Local imports
@@ -23,8 +23,8 @@ By default, imports are directly from `npm` so you can leverage updates.
23
23
  You can also copy and paste the code from this directory to your project and remap the imports to local.
24
24
 
25
25
  ```css
26
- @import "@/components/ui/group/assets/index.css" layer(components);
26
+ @import "@/components/group/assets/index.css" layer(components);
27
27
  ```
28
28
 
29
29
  ### Docs
30
- Visit [docs](https://winduum.dev/docs/ui/group.html) to learn more about usage examples.
30
+ Visit [docs](https://winduum.dev/docs/components/group.html) to learn more about usage examples.
@@ -1,11 +1,11 @@
1
- .group:where(.vertical) {
1
+ .x-group:where(.vertical) {
2
2
  flex-direction: column;
3
3
 
4
4
  > :where(*) {
5
5
  border-radius: inherit;
6
6
 
7
7
  &:where(:not(:first-child)) {
8
- margin-block-start: calc(var(--control-border-width) * -1);
8
+ margin-block-start: calc(var(--x-control-border-width) * -1);
9
9
  border-start-start-radius: 0;
10
10
  border-start-end-radius: 0;
11
11
  margin-inline-start: 0;
@@ -1,8 +1,8 @@
1
- .heading {
2
- font-family: var(--heading-font-family);
3
- font-weight: var(--heading-font-weight);
4
- font-size: var(--heading-font-size);
5
- line-height: var(--heading-line-height);
6
- letter-spacing: var(--heading-letter-spacing);
1
+ .x-heading {
2
+ font-family: var(--x-heading-font-family);
3
+ font-weight: var(--x-heading-font-weight);
4
+ font-size: var(--x-heading-font-size);
5
+ line-height: var(--x-heading-line-height);
6
+ letter-spacing: var(--x-heading-letter-spacing);
7
7
  text-wrap: balance;
8
8
  }
@@ -1,4 +1,4 @@
1
- @import "default-props.css";
1
+ @import "props/default.css";
2
2
  @import "default.css";
3
3
  @import "sm.css";
4
4
  @import "lg.css";
@@ -1,3 +1,3 @@
1
- .heading:is(.lg) {
2
- --heading-font-size: var(--font-size-3xl);
1
+ .x-heading:is(.lg) {
2
+ --x-heading-font-size: var(--font-size-3xl);
3
3
  }
@@ -0,0 +1,6 @@
1
+ :root, :host {
2
+ --x-heading-font-family: var(--font-family-primary);
3
+ --x-heading-font-weight: var(--font-weight-semibold);
4
+ --x-heading-font-size: var(--font-size-xl);
5
+ --x-heading-line-height: calc(1em + 0.375rem);
6
+ }
@@ -1,4 +1,4 @@
1
- # [Heading](https://winduum.dev/docs/ui/heading.html)
1
+ # [Heading](https://winduum.dev/docs/components/heading.html)
2
2
 
3
3
  ## Installation
4
4
  ```shell
@@ -8,16 +8,16 @@ Learn more how to set up Winduum [here](https://winduum.dev/docs/).
8
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
9
 
10
10
  ```css
11
- @import "winduum/src/ui/heading/index.css" layer(components);
11
+ @import "winduum/src/components/heading/index.css" layer(components);
12
12
  ```
13
13
 
14
14
  or modular (you can use your own props or CSS)
15
15
 
16
16
  ```css
17
- @import "winduum/src/ui/heading/default-props.css" layer(components);
18
- @import "winduum/src/ui/heading/default.css" layer(components);
19
- @import "winduum/src/ui/heading/sm.css" layer(components);
20
- @import "winduum/src/ui/heading/lg.css" layer(components);
17
+ @import "winduum/src/components/heading/props/default.css" layer(components);
18
+ @import "winduum/src/components/heading/default.css" layer(components);
19
+ @import "winduum/src/components/heading/sm.css" layer(components);
20
+ @import "winduum/src/components/heading/lg.css" layer(components);
21
21
  ```
22
22
 
23
23
  ### Local imports
@@ -25,8 +25,8 @@ By default, imports are directly from `npm` so you can leverage updates.
25
25
  You can also copy and paste the code from this directory to your project and remap the imports to local.
26
26
 
27
27
  ```css
28
- @import "@/components/ui/heading/assets/index.css" layer(components);
28
+ @import "@/components/heading/assets/index.css" layer(components);
29
29
  ```
30
30
 
31
31
  ### Docs
32
- Visit [docs](https://winduum.dev/docs/ui/heading.html) to learn more about usage examples.
32
+ Visit [docs](https://winduum.dev/docs/components/heading.html) to learn more about usage examples.
@@ -1,3 +1,3 @@
1
- .heading:is(.sm) {
2
- --heading-font-size: var(--font-size-lg);
1
+ .x-heading:is(.sm) {
2
+ --x-heading-font-size: var(--font-size-lg);
3
3
  }
@@ -1,4 +1,4 @@
1
- .image:where(.avatar) {
1
+ .x-image:where(.avatar) {
2
2
  border-radius: var(--radius-full);
3
3
  background-color: var(--color-accent);
4
4
  color: var(--color-accent-foreground);
@@ -1,4 +1,4 @@
1
- .image {
1
+ .x-image {
2
2
  position: relative;
3
3
  display: inline-flex;
4
4
  border-radius: inherit;
@@ -1,4 +1,4 @@
1
- # [Image](https://winduum.dev/docs/ui/image.html)
1
+ # [Image](https://winduum.dev/docs/components/image.html)
2
2
 
3
3
  ## Installation
4
4
  ```shell
@@ -8,14 +8,14 @@ Learn more how to set up Winduum [here](https://winduum.dev/docs/).
8
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
9
 
10
10
  ```css
11
- @import "winduum/src/ui/image/index.css" layer(components);
11
+ @import "winduum/src/components/image/index.css" layer(components);
12
12
  ```
13
13
 
14
14
  or modular (you can use your own props or CSS)
15
15
 
16
16
  ```css
17
- @import "winduum/src/ui/image/default.css" layer(components);
18
- @import "winduum/src/ui/image/avatar.css" layer(components);
17
+ @import "winduum/src/components/image/default.css" layer(components);
18
+ @import "winduum/src/components/image/avatar.css" layer(components);
19
19
  ```
20
20
 
21
21
  ### Local imports
@@ -23,8 +23,8 @@ By default, imports are directly from `npm` so you can leverage updates.
23
23
  You can also copy and paste the code from this directory to your project and remap the imports to local.
24
24
 
25
25
  ```css
26
- @import "@/components/ui/image/assets/index.css" layer(components);
26
+ @import "@/components/image/assets/index.css" layer(components);
27
27
  ```
28
28
 
29
29
  ### Docs
30
- Visit [docs](https://winduum.dev/docs/ui/image.html) to learn more about usage examples.
30
+ Visit [docs](https://winduum.dev/docs/components/image.html) to learn more about usage examples.
@@ -1,9 +1,7 @@
1
1
  @import "badge/index.css";
2
2
  @import "button/index.css";
3
3
  @import "check/index.css";
4
- /*
5
4
  @import "color/index.css";
6
- */
7
5
  @import "control/index.css";
8
6
  @import "group/index.css";
9
7
  @import "heading/index.css";
@@ -1,8 +1,8 @@
1
- .info {
2
- font-family: var(--info-font-family);
3
- font-weight: var(--info-font-weight);
4
- font-size: var(--info-font-size);
5
- line-height: var(--info-line-height);
6
- letter-spacing: var(--info-letter-spacing);
1
+ .x-info {
2
+ font-family: var(--x-info-font-family);
3
+ font-weight: var(--x-info-font-weight);
4
+ font-size: var(--x-info-font-size);
5
+ line-height: var(--x-info-line-height);
6
+ letter-spacing: var(--x-info-letter-spacing);
7
7
  text-wrap: pretty;
8
8
  }
@@ -1,2 +1,2 @@
1
- @import "default-props.css";
1
+ @import "props/default.css";
2
2
  @import "default.css";
@@ -0,0 +1,4 @@
1
+ :root, :host {
2
+ --x-info-font-size: var(--font-size-xs);
3
+ --x-info-line-height: calc(1em + 0.25rem);
4
+ }
@@ -1,4 +1,4 @@
1
- # [Info](https://winduum.dev/docs/ui/info.html)
1
+ # [Info](https://winduum.dev/docs/components/info.html)
2
2
 
3
3
  ## Installation
4
4
  ```shell
@@ -8,14 +8,14 @@ Learn more how to set up Winduum [here](https://winduum.dev/docs/).
8
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
9
 
10
10
  ```css
11
- @import "winduum/src/ui/info/index.css" layer(components);
11
+ @import "winduum/src/components/info/index.css" layer(components);
12
12
  ```
13
13
 
14
14
  or modular (you can use your own props or CSS)
15
15
 
16
16
  ```css
17
- @import "winduum/src/ui/info/default-props.css" layer(components);
18
- @import "winduum/src/ui/info/default.css" layer(components);
17
+ @import "winduum/src/components/info/props/default.css" layer(components);
18
+ @import "winduum/src/components/info/default.css" layer(components);
19
19
  ```
20
20
 
21
21
  ### Local imports
@@ -23,8 +23,8 @@ By default, imports are directly from `npm` so you can leverage updates.
23
23
  You can also copy and paste the code from this directory to your project and remap the imports to local.
24
24
 
25
25
  ```css
26
- @import "@/components/ui/info/assets/index.css" layer(components);
26
+ @import "@/components/info/assets/index.css" layer(components);
27
27
  ```
28
28
 
29
29
  ### Docs
30
- Visit [docs](https://winduum.dev/docs/ui/info.html) to learn more about usage examples.
30
+ Visit [docs](https://winduum.dev/docs/components/info.html) to learn more about usage examples.
@@ -1,8 +1,8 @@
1
- .label {
2
- font-family: var(--label-font-family);
3
- font-weight: var(--label-font-weight);
4
- font-size: var(--label-font-size);
5
- line-height: var(--label-line-height);
6
- letter-spacing: var(--label-letter-spacing);
1
+ .x-label {
2
+ font-family: var(--x-label-font-family);
3
+ font-weight: var(--x-label-font-weight);
4
+ font-size: var(--x-label-font-size);
5
+ line-height: var(--x-label-line-height);
6
+ letter-spacing: var(--x-label-letter-spacing);
7
7
  text-wrap: pretty;
8
8
  }
@@ -1,2 +1,2 @@
1
- @import "default-props.css";
1
+ @import "props/default.css";
2
2
  @import "default.css";
@@ -0,0 +1,4 @@
1
+ :root, :host {
2
+ --x-label-font-size: var(--font-size-sm);
3
+ --x-label-line-height: calc(1em + 0.25rem);
4
+ }
@@ -1,4 +1,4 @@
1
- # [Label](https://winduum.dev/docs/ui/label.html)
1
+ # [Label](https://winduum.dev/docs/components/label.html)
2
2
 
3
3
  ## Installation
4
4
  ```shell
@@ -8,14 +8,14 @@ Learn more how to set up Winduum [here](https://winduum.dev/docs/).
8
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
9
 
10
10
  ```css
11
- @import "winduum/src/ui/label/index.css" layer(components);
11
+ @import "winduum/src/components/label/index.css" layer(components);
12
12
  ```
13
13
 
14
14
  or modular (you can use your own props or CSS)
15
15
 
16
16
  ```css
17
- @import "winduum/src/ui/label/default-props.css" layer(components);
18
- @import "winduum/src/ui/label/default.css" layer(components);
17
+ @import "winduum/src/components/label/props/default.css" layer(components);
18
+ @import "winduum/src/components/label/default.css" layer(components);
19
19
  ```
20
20
 
21
21
  ### Local imports
@@ -23,8 +23,8 @@ By default, imports are directly from `npm` so you can leverage updates.
23
23
  You can also copy and paste the code from this directory to your project and remap the imports to local.
24
24
 
25
25
  ```css
26
- @import "@/components/ui/label/assets/index.css" layer(components);
26
+ @import "@/components/label/assets/index.css" layer(components);
27
27
  ```
28
28
 
29
29
  ### Docs
30
- Visit [docs](https://winduum.dev/docs/ui/label.html) to learn more about usage examples.
30
+ Visit [docs](https://winduum.dev/docs/components/label.html) to learn more about usage examples.
@@ -1,8 +1,8 @@
1
- .link {
2
- font-family: var(--link-font-family);
3
- font-weight: var(--link-font-weight);
4
- font-size: var(--link-font-size);
5
- line-height: var(--link-line-height);
6
- letter-spacing: var(--link-letter-spacing);
1
+ .x-link {
2
+ font-family: var(--x-link-font-family);
3
+ font-weight: var(--x-link-font-weight);
4
+ font-size: var(--x-link-font-size);
5
+ line-height: var(--x-link-line-height);
6
+ letter-spacing: var(--x-link-letter-spacing);
7
7
  text-wrap: pretty;
8
8
  }
@@ -1,4 +1,3 @@
1
+ @import "props/default.css";
1
2
  @import "default.css";
2
- @import "default-props.css";
3
3
  @import "interactive.css";
4
- @import "interactive-props.css";
@@ -1,16 +1,9 @@
1
- .link {
2
- --tw-text-opacity: var(--link-hover-color-opacity);
3
-
1
+ .x-link {
4
2
  &:where(:any-link, button:enabled, [role="button"]) {
5
3
  transition: all var(--default-transition-duration) var(--transition-timing-function-in-out);
6
4
 
7
- &:hover {
8
- color: color-mix(in var(--default-color-space), var(--link-hover-color) calc(var(--tw-text-opacity) * 100%), var(--link-hover-color-mix));
9
- }
10
-
11
- &:focus-visible {
12
- outline: 2px dotted currentColor;
13
- outline-offset: 2px;
5
+ &:is(:hover, :focus-visible) {
6
+ color: var(--x-link-hover-color, var(--color-accent));
14
7
  }
15
8
  }
16
9
  }
@@ -0,0 +1,4 @@
1
+ :root, :host {
2
+ --x-link-font-size: var(--font-size-sm);
3
+ --x-link-line-height: calc(1em + 0.25rem);
4
+ }