winduum 2.2.8 → 2.2.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 (101) hide show
  1. package/package.json +13 -14
  2. package/plugin/index.cjs +219 -217
  3. package/plugin/index.js +94 -94
  4. package/plugin/utilities/color.js +52 -50
  5. package/plugin/utilities/common.js +60 -60
  6. package/plugin/utilities/divide-gap.js +19 -19
  7. package/plugin/utilities/dot.js +10 -10
  8. package/src/base/defaults.css +1 -1
  9. package/src/base/reset.css +4 -1
  10. package/src/common.js +6 -6
  11. package/src/components/badge/props/default.css +2 -1
  12. package/src/components/breadcrumb/default.css +2 -1
  13. package/src/components/breadcrumb/props/default.css +2 -1
  14. package/src/components/button/interactive.css +3 -1
  15. package/src/components/button/props/default.css +2 -1
  16. package/src/components/button/props/interactive.css +2 -1
  17. package/src/components/card/props/default.css +2 -1
  18. package/src/components/carousel/content.css +2 -1
  19. package/src/components/carousel/index.js +128 -126
  20. package/src/components/check/default.css +1 -1
  21. package/src/components/check/props/default.css +4 -3
  22. package/src/components/color/default.css +2 -1
  23. package/src/components/color/interactive.css +2 -1
  24. package/src/components/color/props/default.css +3 -2
  25. package/src/components/compare/default.css +2 -1
  26. package/src/components/compare/index.js +9 -9
  27. package/src/components/control/icon.css +4 -2
  28. package/src/components/control/interactive.css +2 -1
  29. package/src/components/control/props/color.css +2 -1
  30. package/src/components/control/props/default.css +5 -4
  31. package/src/components/control/props/floating.css +2 -1
  32. package/src/components/control/props/icon.css +2 -1
  33. package/src/components/control/props/select-picker.css +4 -3
  34. package/src/components/control/props/select.css +2 -1
  35. package/src/components/control/select-picker.css +4 -2
  36. package/src/components/control/select.css +1 -1
  37. package/src/components/details/index.js +39 -38
  38. package/src/components/dialog/default.css +2 -1
  39. package/src/components/dialog/index.d.ts +1 -1
  40. package/src/components/dialog/index.js +42 -40
  41. package/src/components/dialog/props/content.css +2 -1
  42. package/src/components/dialog/props/default.css +2 -1
  43. package/src/components/drawer/default.css +2 -1
  44. package/src/components/drawer/index.d.ts +2 -0
  45. package/src/components/drawer/index.js +46 -31
  46. package/src/components/drawer/props/content.css +2 -1
  47. package/src/components/drawer/props/default.css +2 -1
  48. package/src/components/form/index.js +83 -80
  49. package/src/components/heading/props/default.css +2 -1
  50. package/src/components/info/props/default.css +2 -1
  51. package/src/components/label/props/default.css +2 -1
  52. package/src/components/link/props/default.css +2 -1
  53. package/src/components/notice/props/default.css +2 -1
  54. package/src/components/popover/content.css +4 -2
  55. package/src/components/popover/index.js +45 -44
  56. package/src/components/popover/props/content.css +2 -1
  57. package/src/components/progress/props/default.css +2 -1
  58. package/src/components/range/index.js +37 -37
  59. package/src/components/range/props/default.css +2 -1
  60. package/src/components/rating/default.css +1 -1
  61. package/src/components/rating/props/default.css +2 -1
  62. package/src/components/switch/props/default.css +4 -3
  63. package/src/components/table/interactive.css +10 -5
  64. package/src/components/table/props/default.css +2 -1
  65. package/src/components/tabs/index.js +5 -5
  66. package/src/components/text/props/default.css +2 -1
  67. package/src/components/title/props/default.css +2 -1
  68. package/src/components/toast/index.js +25 -25
  69. package/src/components/toast/props/content.css +2 -1
  70. package/src/components/toast/props/default.css +2 -1
  71. package/src/components/toaster/index.js +3 -3
  72. package/src/components/toaster/props/default.css +2 -1
  73. package/src/components/tooltip/default.css +4 -2
  74. package/src/components/tooltip/props/default.css +2 -1
  75. package/src/theme/config/font.css +2 -1
  76. package/src/theme/config/radius.css +2 -1
  77. package/src/theme/config/spacing.css +2 -1
  78. package/src/theme/config/transition.css +2 -1
  79. package/src/theme/config/z.css +2 -1
  80. package/src/theme/dark-rgb.css +2 -1
  81. package/src/theme/dark.css +2 -1
  82. package/src/theme/default-p3.css +2 -1
  83. package/src/theme/default-rgb.css +3 -2
  84. package/src/theme/default.css +3 -2
  85. package/src/utilities/container/props/default.css +2 -1
  86. package/src/utilities/divider.css +5 -3
  87. package/src/utilities/dot.css +1 -1
  88. package/src/utilities/ripple/index.js +13 -13
  89. package/src/utilities/skeleton/props/default.css +2 -1
  90. package/src/utilities/spinner/default.css +4 -4
  91. package/src/utilities/spinner/ring.css +1 -1
  92. package/src/utilities/swap/index.js +4 -4
  93. package/tailwind.config.js +16 -17
  94. package/tailwindcss/base/defaults.css +3 -2
  95. package/tailwindcss/theme/config/transition.css +2 -1
  96. package/tailwindcss/theme/default.css +1 -1
  97. package/tailwindcss/utilities/divider.css +4 -2
  98. package/tailwindcss/utilities/dot.css +1 -1
  99. package/tailwindcss/utilities/spinner.css +5 -5
  100. package/types/index.d.ts +3 -1
  101. package/types/index.d.ts.map +3 -1
@@ -31,7 +31,9 @@
31
31
  --x-button-outline-color-opacity: var(--x-button-focus-outline-color-opacity);
32
32
  }
33
33
 
34
- &:active, &:checked, &.active {
34
+ &:active,
35
+ &:checked,
36
+ &.active {
35
37
  --x-button-background-color: var(--x-button-active-background-color, var(--color-accent));
36
38
  --x-button-background-color-mix: var(--x-button-active-background-color-mix);
37
39
  --x-button-background-color-opacity: var(--x-button-active-background-color-opacity);
@@ -1,4 +1,5 @@
1
- :root, :host {
1
+ :root,
2
+ :host {
2
3
  --x-button-outline-width: 2px;
3
4
  --x-button-border-width: 0px;
4
5
  --x-button-border-radius: var(--radius-xl);
@@ -1,4 +1,5 @@
1
- :root, :host {
1
+ :root,
2
+ :host {
2
3
  --x-button-hover-background-color-mix: var(--color-dark);
3
4
  --x-button-hover-background-color-opacity: 80%;
4
5
  --x-button-focus-outline-offset: 2px;
@@ -1,4 +1,5 @@
1
- :root, :host {
1
+ :root,
2
+ :host {
2
3
  --x-card-background-color: var(--color-body-primary);
3
4
  --x-card-border-radius: var(--radius-2xl);
4
5
  --x-card-padding-block: calc(var(--spacing) * 6);
@@ -23,7 +23,8 @@
23
23
 
24
24
  /* TODO grabbing */
25
25
  &:is(.grabbing) {
26
- &, & * {
26
+ &,
27
+ & * {
27
28
  cursor: grabbing;
28
29
  }
29
30
 
@@ -4,9 +4,9 @@
4
4
  * @returns void
5
5
  */
6
6
  export const scrollTo = (element, index = 0) => {
7
- const scrollPaddingLeft = parseInt(getComputedStyle(element).scrollPaddingLeft)
7
+ const scrollPaddingLeft = parseInt(getComputedStyle(element).scrollPaddingLeft)
8
8
 
9
- element.scroll({ left: element?.children[index]?.offsetLeft - (isNaN(scrollPaddingLeft) ? 0 : scrollPaddingLeft) })
9
+ element.scroll({ left: element?.children[index]?.offsetLeft - (isNaN(scrollPaddingLeft) ? 0 : scrollPaddingLeft) })
10
10
  }
11
11
 
12
12
  /**
@@ -14,7 +14,7 @@ export const scrollTo = (element, index = 0) => {
14
14
  * @returns void
15
15
  */
16
16
  export const scrollPrev = (element) => {
17
- scrollTo(element, element._activeIndex - 1)
17
+ scrollTo(element, element._activeIndex - 1)
18
18
  }
19
19
 
20
20
  /**
@@ -22,7 +22,7 @@ export const scrollPrev = (element) => {
22
22
  * @returns void
23
23
  */
24
24
  export const scrollNext = (element) => {
25
- scrollTo(element, element._activeIndex + 1)
25
+ scrollTo(element, element._activeIndex + 1)
26
26
  }
27
27
 
28
28
  /**
@@ -32,16 +32,17 @@ export const scrollNext = (element) => {
32
32
  * @returns number
33
33
  */
34
34
  export const getItemCount = (element, scrollWidth = element.scrollWidth - element.clientWidth, mathFloor = false) => {
35
- const gap = parseInt(getComputedStyle(element).rowGap)
36
- const mathRound = (value, floor) => floor ? Math.floor(value) : Math.ceil(value)
37
-
38
- return [...element.children].reduce((count, children) => {
39
- if (mathRound(scrollWidth / (children.offsetWidth + (isNaN(gap) ? 0 : gap)), mathFloor) > count) {
40
- return count + 1
41
- } else {
42
- return count
43
- }
44
- }, 0) + 1
35
+ const gap = parseInt(getComputedStyle(element).rowGap)
36
+ const mathRound = (value, floor) => floor ? Math.floor(value) : Math.ceil(value)
37
+
38
+ return [...element.children].reduce((count, children) => {
39
+ if (mathRound(scrollWidth / (children.offsetWidth + (isNaN(gap) ? 0 : gap)), mathFloor) > count) {
40
+ return count + 1
41
+ }
42
+ else {
43
+ return count
44
+ }
45
+ }, 0) + 1
45
46
  }
46
47
 
47
48
  /**
@@ -50,31 +51,31 @@ export const getItemCount = (element, scrollWidth = element.scrollWidth - elemen
50
51
  * @returns IntersectionObserver
51
52
  */
52
53
  export const observeCarousel = (element, options = {}) => {
53
- options = {
54
- visibleAttribute: 'data-visible',
55
- observerOptions: {},
56
- ...options
57
- }
58
-
59
- element._observer = new IntersectionObserver((entries) => {
60
- entries.forEach((entry) => {
61
- entry.target.toggleAttribute(options.visibleAttribute, entry.isIntersecting)
62
- })
54
+ options = {
55
+ visibleAttribute: 'data-visible',
56
+ observerOptions: {},
57
+ ...options,
58
+ }
59
+
60
+ element._observer = new IntersectionObserver((entries) => {
61
+ entries.forEach((entry) => {
62
+ entry.target.toggleAttribute(options.visibleAttribute, entry.isIntersecting)
63
+ })
63
64
 
64
- const activeElement = [...element.children].find(children => children.hasAttribute(options.visibleAttribute))
65
+ const activeElement = [...element.children].find(children => children.hasAttribute(options.visibleAttribute))
65
66
 
66
- if (activeElement) {
67
- element._activeIndex = [...element.children].indexOf(activeElement)
68
- }
69
- }, {
70
- root: element,
71
- threshold: 0.75,
72
- ...options.observerOptions
73
- })
67
+ if (activeElement) {
68
+ element._activeIndex = [...element.children].indexOf(activeElement)
69
+ }
70
+ }, {
71
+ root: element,
72
+ threshold: 0.75,
73
+ ...options.observerOptions,
74
+ })
74
75
 
75
- ;[...element.children].forEach(children => element._observer.observe(children))
76
+ ;[...element.children].forEach(children => element._observer.observe(children))
76
77
 
77
- return element._observer
78
+ return element._observer
78
79
  }
79
80
 
80
81
  /**
@@ -83,33 +84,33 @@ export const observeCarousel = (element, options = {}) => {
83
84
  * @returns void
84
85
  */
85
86
  export const scrollCarousel = (element, options = {}) => {
86
- options.pagination = {
87
- activeAttribute: 'data-active',
88
- ...options.pagination
89
- }
87
+ options.pagination = {
88
+ activeAttribute: 'data-active',
89
+ ...options.pagination,
90
+ }
90
91
 
91
- const activeItem = getItemCount(element, element.scrollLeft, element.scrollLeft < element._lastScrollLeft)
92
- const activeItemMax = getItemCount(element)
92
+ const activeItem = getItemCount(element, element.scrollLeft, element.scrollLeft < element._lastScrollLeft)
93
+ const activeItemMax = getItemCount(element)
93
94
 
94
- if (options?.pagination?.element) {
95
- ;[...options.pagination.element.children].forEach(children => children.removeAttribute(options.pagination.activeAttribute))
95
+ if (options?.pagination?.element) {
96
+ ;[...options.pagination.element.children].forEach(children => children.removeAttribute(options.pagination.activeAttribute))
96
97
 
97
- options.pagination.element.children[activeItem - 1]?.setAttribute(options.pagination.activeAttribute, '')
98
- }
98
+ options.pagination.element.children[activeItem - 1]?.setAttribute(options.pagination.activeAttribute, '')
99
+ }
99
100
 
100
- if (options.progressElement) {
101
- options.progressElement.value = activeItem / activeItemMax * 100
102
- }
101
+ if (options.progressElement) {
102
+ options.progressElement.value = activeItem / activeItemMax * 100
103
+ }
103
104
 
104
- if (options.counterMinElement) {
105
- options.counterMinElement.innerHTML = `${activeItem}`
106
- }
105
+ if (options.counterMinElement) {
106
+ options.counterMinElement.innerHTML = `${activeItem}`
107
+ }
107
108
 
108
- if (options.counterMaxElement) {
109
- options.counterMaxElement.innerHTML = `${activeItemMax}`
110
- }
109
+ if (options.counterMaxElement) {
110
+ options.counterMaxElement.innerHTML = `${activeItemMax}`
111
+ }
111
112
 
112
- element._lastScrollLeft = element.scrollLeft <= 0 ? 0 : element.scrollLeft
113
+ element._lastScrollLeft = element.scrollLeft <= 0 ? 0 : element.scrollLeft
113
114
  }
114
115
 
115
116
  /**
@@ -118,24 +119,24 @@ export const scrollCarousel = (element, options = {}) => {
118
119
  * @returns void
119
120
  */
120
121
  export const paginationCarousel = (element, options = {}) => {
121
- options = {
122
- itemContent: '<div aria-hidden="true"></div>',
123
- activeAttribute: 'data-active',
124
- ...options
125
- }
126
-
127
- if (!options.element) return
128
-
129
- options.element.insertAdjacentHTML('beforeend', [...Array(getItemCount(element))].map(
130
- () => options.itemContent
131
- ).join(''))
132
-
133
- ;[...options.element.children].forEach((children, i) => {
134
- (i === 0) && children.setAttribute(options.activeAttribute, '')
135
- children.addEventListener('click', ({ currentTarget }) => {
136
- scrollTo(element, [...options.element.children].indexOf(currentTarget))
137
- })
122
+ options = {
123
+ itemContent: '<div aria-hidden="true"></div>',
124
+ activeAttribute: 'data-active',
125
+ ...options,
126
+ }
127
+
128
+ if (!options.element) return
129
+
130
+ options.element.insertAdjacentHTML('beforeend', [...Array(getItemCount(element))].map(
131
+ () => options.itemContent,
132
+ ).join(''))
133
+
134
+ ;[...options.element.children].forEach((children, i) => {
135
+ (i === 0) && children.setAttribute(options.activeAttribute, '')
136
+ children.addEventListener('click', ({ currentTarget }) => {
137
+ scrollTo(element, [...options.element.children].indexOf(currentTarget))
138
138
  })
139
+ })
139
140
  }
140
141
 
141
142
  /**
@@ -144,28 +145,29 @@ export const paginationCarousel = (element, options = {}) => {
144
145
  * @returns void
145
146
  */
146
147
  export const autoplayCarousel = (element, options = {}) => {
147
- options = {
148
- delay: 4000,
149
- pauseElements: [],
150
- ...options
151
- }
148
+ options = {
149
+ delay: 4000,
150
+ pauseElements: [],
151
+ ...options,
152
+ }
152
153
 
153
- let paused
154
+ let paused
154
155
 
155
- options.pauseElements.forEach((element) => {
156
- element?.addEventListener('mouseenter', () => (paused = true))
157
- element?.addEventListener('mouseleave', () => (paused = false))
158
- })
156
+ options.pauseElements.forEach((element) => {
157
+ element?.addEventListener('mouseenter', () => (paused = true))
158
+ element?.addEventListener('mouseleave', () => (paused = false))
159
+ })
159
160
 
160
- setInterval(() => {
161
- if (paused) return
161
+ setInterval(() => {
162
+ if (paused) return
162
163
 
163
- if (element.scrollLeft < element.scrollWidth - element.clientWidth) {
164
- scrollNext(element)
165
- } else {
166
- scrollTo(element, 0)
167
- }
168
- }, options.delay)
164
+ if (element.scrollLeft < element.scrollWidth - element.clientWidth) {
165
+ scrollNext(element)
166
+ }
167
+ else {
168
+ scrollTo(element, 0)
169
+ }
170
+ }, options.delay)
169
171
  }
170
172
 
171
173
  /**
@@ -174,52 +176,52 @@ export const autoplayCarousel = (element, options = {}) => {
174
176
  * @returns void
175
177
  */
176
178
  export const dragCarousel = (element, options = {}) => {
177
- options = {
178
- activeAttribute: 'data-grabbing',
179
- ...options
180
- }
179
+ options = {
180
+ activeAttribute: 'data-grabbing',
181
+ ...options,
182
+ }
181
183
 
182
- if (!matchMedia('(hover: hover) and (pointer: fine)').matches) {
183
- return
184
- }
184
+ if (!matchMedia('(hover: hover) and (pointer: fine)').matches) {
185
+ return
186
+ }
185
187
 
186
- let isDown
187
- let startX
188
- let scrollLeft
189
- let timeout
188
+ let isDown
189
+ let startX
190
+ let scrollLeft
191
+ let timeout
190
192
 
191
- const endGrabbing = () => {
192
- isDown = false
193
- element.removeAttribute(options.activeAttribute)
193
+ const endGrabbing = () => {
194
+ isDown = false
195
+ element.removeAttribute(options.activeAttribute)
194
196
 
195
- scrollTo(element, element._activeIndex)
197
+ scrollTo(element, element._activeIndex)
196
198
 
197
- clearTimeout(timeout)
199
+ clearTimeout(timeout)
198
200
 
199
- timeout = setTimeout(() => {
200
- element.style.scrollSnapType = ''
201
- }, 300)
202
- }
201
+ timeout = setTimeout(() => {
202
+ element.style.scrollSnapType = ''
203
+ }, 300)
204
+ }
203
205
 
204
- element.addEventListener('mouseleave', endGrabbing)
206
+ element.addEventListener('mouseleave', endGrabbing)
205
207
 
206
- element.addEventListener('mouseup', endGrabbing)
208
+ element.addEventListener('mouseup', endGrabbing)
207
209
 
208
- element.addEventListener('mousedown', ({ pageX }) => {
209
- isDown = true
210
- startX = pageX - element.offsetLeft
211
- scrollLeft = element.scrollLeft
212
- })
210
+ element.addEventListener('mousedown', ({ pageX }) => {
211
+ isDown = true
212
+ startX = pageX - element.offsetLeft
213
+ scrollLeft = element.scrollLeft
214
+ })
213
215
 
214
- element.addEventListener('mousemove', (e) => {
215
- if (!isDown) return
216
- e.preventDefault()
216
+ element.addEventListener('mousemove', (e) => {
217
+ if (!isDown) return
218
+ e.preventDefault()
217
219
 
218
- const x = e.pageX - element.offsetLeft
220
+ const x = e.pageX - element.offsetLeft
219
221
 
220
- element.setAttribute(options.activeAttribute, '')
221
- element.style.scrollSnapType = 'unset'
222
- element.scroll({ left: scrollLeft - ((x - startX) * 1.25), behavior: 'instant' })
223
- element.ondragstart = e => e.preventDefault()
224
- })
222
+ element.setAttribute(options.activeAttribute, '')
223
+ element.style.scrollSnapType = 'unset'
224
+ element.scroll({ left: scrollLeft - ((x - startX) * 1.25), behavior: 'instant' })
225
+ element.ondragstart = e => e.preventDefault()
226
+ })
225
227
  }
@@ -50,7 +50,7 @@
50
50
  mask: var(--x-check-icon-mask);
51
51
  transition: inherit;
52
52
  content: "";
53
- background-color: currentColor;
53
+ background-color: currentcolor;
54
54
  opacity: 0%;
55
55
  transform: scale(0);
56
56
  will-change: transform;
@@ -1,12 +1,13 @@
1
- :root, :host {
1
+ :root,
2
+ :host {
2
3
  --x-check-size: 1.25rem;
3
4
  --x-check-gap: calc(var(--spacing) * 3);
4
5
  --x-check-font-size: var(--text-sm);
5
6
  --x-check-line-height: calc(1em + 0.25rem);
6
7
  --x-check-border-radius: var(--radius-md);
7
8
  --x-check-border-width: 1px;
8
- --x-check-background-color: currentColor;
9
- --x-check-border-color: currentColor;
9
+ --x-check-background-color: currentcolor;
10
+ --x-check-border-color: currentcolor;
10
11
  --x-check-outline-width: 2px;
11
12
  --x-check-icon-size: 1.125rem;
12
13
  --x-check-icon-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" /></svg>');
@@ -17,7 +17,8 @@
17
17
  outline-offset: var(--x-color-outline-offset);
18
18
  display: inline-grid;
19
19
 
20
- &::before, &::after {
20
+ &::before,
21
+ &::after {
21
22
  border: 1px solid transparent;
22
23
  border-radius: inherit;
23
24
  grid-area: 1/-1;
@@ -7,7 +7,8 @@
7
7
  &:disabled {
8
8
  cursor: not-allowed;
9
9
 
10
- &::before, &::after {
10
+ &::before,
11
+ &::after {
11
12
  opacity: var(--x-color-disabled-opacity, 50%);
12
13
  }
13
14
  }
@@ -1,5 +1,6 @@
1
- :root, :host {
2
- --x-color-primary: currentColor;
1
+ :root,
2
+ :host {
3
+ --x-color-primary: currentcolor;
3
4
  --x-color-secondary: transparent;
4
5
  --x-color-size: 1.5rem;
5
6
  --x-color-border-radius: var(--radius-full);
@@ -6,7 +6,8 @@
6
6
  overflow: hidden;
7
7
  border-radius: inherit;
8
8
 
9
- > *, &::before {
9
+ > *,
10
+ &::before {
10
11
  position: relative;
11
12
  pointer-events: none;
12
13
  grid-area: 1/1;
@@ -4,13 +4,13 @@
4
4
  * @returns void
5
5
  */
6
6
  export const setPosition = (element, options = {}) => {
7
- const { selector, positionProperty } = {
8
- selector: '.x-compare',
9
- positionProperty: '--x-compare-position',
10
- ...options
11
- }
7
+ const { selector, positionProperty } = {
8
+ selector: '.x-compare',
9
+ positionProperty: '--x-compare-position',
10
+ ...options,
11
+ }
12
12
 
13
- element?.closest(selector)?.style.setProperty(positionProperty, `${element.value}%`)
13
+ element?.closest(selector)?.style.setProperty(positionProperty, `${element.value}%`)
14
14
  }
15
15
 
16
16
  /**
@@ -20,9 +20,9 @@ export const setPosition = (element, options = {}) => {
20
20
  * @returns void
21
21
  */
22
22
  export const setKeyboardStep = (element, key, step = '10') => {
23
- if (key?.toLowerCase() !== 'arrowright' && key?.toLowerCase() !== 'arrowleft') return
23
+ if (key?.toLowerCase() !== 'arrowright' && key?.toLowerCase() !== 'arrowleft') return
24
24
 
25
- element.step = step
25
+ element.step = step
26
26
  }
27
27
 
28
28
  /**
@@ -31,5 +31,5 @@ export const setKeyboardStep = (element, key, step = '10') => {
31
31
  * @returns void
32
32
  */
33
33
  export const setMouseStep = (element, step = '0.1') => {
34
- element.step = step
34
+ element.step = step
35
35
  }
@@ -3,7 +3,8 @@
3
3
  --x-control-end: calc(var(--x-control-icon-count-end, 1) * (var(--x-control-icon-size) + var(--x-control-icon-gap)) - var(--x-control-icon-gap));
4
4
 
5
5
  &:has(textarea) {
6
- :where(.me-auto), :where(.ms-auto) {
6
+ :where(.me-auto),
7
+ :where(.ms-auto) {
7
8
  align-self: start;
8
9
  }
9
10
  }
@@ -24,7 +25,8 @@
24
25
  --x-control-icon-count-end: 2;
25
26
  }
26
27
 
27
- :where(.me-auto), :where(.ms-auto) {
28
+ :where(.me-auto),
29
+ :where(.ms-auto) {
28
30
  gap: var(--x-control-icon-gap);
29
31
  display: flex;
30
32
  align-items: center;
@@ -10,7 +10,8 @@
10
10
  --x-control-outline-color-opacity: var(--x-control-focus-outline-color-opacity, 20%);
11
11
  }
12
12
 
13
- &.disabled, &:has(:where(input, textarea, select):disabled) {
13
+ &.disabled,
14
+ &:has(:where(input, textarea, select):disabled) {
14
15
  --x-control-background-color: var(--x-control-disabled-background-color, currentColor);
15
16
  --x-control-background-color-opacity: var(--x-control-disabled-background-color-opacity, 5%);
16
17
  --x-control-border-color: var(--x-control-disabled-border-color, currentColor);
@@ -1,4 +1,5 @@
1
- :root, :host {
1
+ :root,
2
+ :host {
2
3
  --x-control-color-swatch-inline-size: 1.25rem;
3
4
  --x-control-color-swatch-block-size: 1.25rem;
4
5
  --x-control-color-swatch-border-radius: var(--radius-full);
@@ -1,16 +1,17 @@
1
- :root, :host {
1
+ :root,
2
+ :host {
2
3
  --x-control-block-size: 3rem;
3
4
  --x-control-block-size-textarea: 8rem;
4
5
  --x-control-padding-inline: 0.75rem;
5
6
  --x-control-padding-block: 0.75rem;
6
7
  --x-control-border-width: 1px;
7
8
  --x-control-border-radius: var(--radius-xl);
8
- --x-control-border-color: currentColor;
9
+ --x-control-border-color: currentcolor;
9
10
  --x-control-font-weight: var(--font-weight-medium);
10
11
  --x-control-font-size: var(--text-base);
11
12
  --x-control-background-color: var(--color-body-primary);
12
- --x-control-color: currentColor;
13
+ --x-control-color: currentcolor;
13
14
  --x-control-outline-width: 3px;
14
- --x-control-placeholder-color: currentColor;
15
+ --x-control-placeholder-color: currentcolor;
15
16
  --x-control-placeholder-opacity: 50%;
16
17
  }
@@ -1,4 +1,5 @@
1
- :root, :host {
1
+ :root,
2
+ :host {
2
3
  --x-control-label-translate-y: 0.625rem;
3
4
  --x-control-label-scale: 0.8;
4
5
  }
@@ -1,4 +1,5 @@
1
- :root, :host {
1
+ :root,
2
+ :host {
2
3
  --x-control-icon-size: 1.25rem;
3
4
  --x-control-icon-gap: 0.375rem;
4
5
  }
@@ -1,13 +1,14 @@
1
- :root, :host {
1
+ :root,
2
+ :host {
2
3
  --x-control-select-picker-border-width: 1px;
3
4
  --x-control-select-picker-border-radius: var(--radius-lg);
4
- --x-control-select-picker-border-color: currentColor;
5
+ --x-control-select-picker-border-color: currentcolor;
5
6
  --x-control-select-picker-background-color: var(--color-body-primary);
6
7
  --x-control-select-picker-margin-block: 0.375rem;
7
8
  --x-control-select-picker-padding-block: 0.375rem;
8
9
  --x-control-select-picker-padding-inline: 0.375rem;
9
10
  --x-control-select-picker-gap: 0.25rem;
10
- --x-control-select-picker-scrollbar-color: currentColor var(--color-body-primary);
11
+ --x-control-select-picker-scrollbar-color: currentcolor var(--color-body-primary);
11
12
  --x-control-select-option-padding-block: 0.75rem;
12
13
  --x-control-select-option-padding-inline: 0.75rem;
13
14
  --x-control-select-option-border-radius: var(--radius-md);
@@ -1,4 +1,5 @@
1
- :root, :host {
1
+ :root,
2
+ :host {
2
3
  --x-control-select-icon-size: 1.25rem;
3
4
  --x-control-select-icon-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24" stroke="currentColor"><path d="M10.998 15.467c.491.71 1.513.71 2.004 0l3.767-5.453c.581-.843 0-2.013-1.002-2.014H8.234C7.232 8 6.65 9.17 7.231 10.014z" /></svg>');
4
5
  --x-control-select-icon-margin-inline-end: -0.25rem;
@@ -1,6 +1,7 @@
1
1
  .x-control:has(select:not([multiple])) {
2
2
  select {
3
- &, &::picker(select) {
3
+ &,
4
+ &::picker(select) {
4
5
  appearance: base-select;
5
6
  }
6
7
 
@@ -65,7 +66,8 @@
65
66
  display: none;
66
67
  }
67
68
 
68
- &:hover, &:focus-visible {
69
+ &:hover,
70
+ &:focus-visible {
69
71
  background-color: var(--x-control-select-option-hocus-background-color);
70
72
  }
71
73
 
@@ -13,7 +13,7 @@
13
13
  transition: var(--transition-transform);
14
14
  will-change: transform;
15
15
  grid-area: x-control-padding;
16
- background-color: currentColor;
16
+ background-color: currentcolor;
17
17
  pointer-events: none;
18
18
  align-self: center;
19
19
  content: "";