winduum 2.2.9 → 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.
- package/package.json +13 -14
- package/plugin/index.cjs +219 -217
- package/plugin/index.js +94 -94
- package/plugin/utilities/color.js +52 -50
- package/plugin/utilities/common.js +60 -60
- package/plugin/utilities/divide-gap.js +19 -19
- package/plugin/utilities/dot.js +10 -10
- package/src/base/defaults.css +1 -1
- package/src/base/reset.css +4 -1
- package/src/common.js +6 -6
- package/src/components/badge/props/default.css +2 -1
- package/src/components/breadcrumb/default.css +2 -1
- package/src/components/breadcrumb/props/default.css +2 -1
- package/src/components/button/interactive.css +3 -1
- package/src/components/button/props/default.css +2 -1
- package/src/components/button/props/interactive.css +2 -1
- package/src/components/card/props/default.css +2 -1
- package/src/components/carousel/content.css +2 -1
- package/src/components/carousel/index.js +128 -126
- package/src/components/check/default.css +1 -1
- package/src/components/check/props/default.css +4 -3
- package/src/components/color/default.css +2 -1
- package/src/components/color/interactive.css +2 -1
- package/src/components/color/props/default.css +3 -2
- package/src/components/compare/default.css +2 -1
- package/src/components/compare/index.js +9 -9
- package/src/components/control/icon.css +4 -2
- package/src/components/control/interactive.css +2 -1
- package/src/components/control/props/color.css +2 -1
- package/src/components/control/props/default.css +5 -4
- package/src/components/control/props/floating.css +2 -1
- package/src/components/control/props/icon.css +2 -1
- package/src/components/control/props/select-picker.css +4 -3
- package/src/components/control/props/select.css +2 -1
- package/src/components/control/select-picker.css +4 -2
- package/src/components/control/select.css +1 -1
- package/src/components/details/index.js +39 -38
- package/src/components/dialog/default.css +2 -1
- package/src/components/dialog/index.d.ts +1 -1
- package/src/components/dialog/index.js +42 -40
- package/src/components/dialog/props/content.css +2 -1
- package/src/components/dialog/props/default.css +2 -1
- package/src/components/drawer/default.css +2 -1
- package/src/components/drawer/index.js +29 -29
- package/src/components/drawer/props/content.css +2 -1
- package/src/components/drawer/props/default.css +2 -1
- package/src/components/form/index.js +83 -80
- package/src/components/heading/props/default.css +2 -1
- package/src/components/info/props/default.css +2 -1
- package/src/components/label/props/default.css +2 -1
- package/src/components/link/props/default.css +2 -1
- package/src/components/notice/props/default.css +2 -1
- package/src/components/popover/content.css +4 -2
- package/src/components/popover/index.js +45 -44
- package/src/components/popover/props/content.css +2 -1
- package/src/components/progress/props/default.css +2 -1
- package/src/components/range/index.js +37 -37
- package/src/components/range/props/default.css +2 -1
- package/src/components/rating/default.css +1 -1
- package/src/components/rating/props/default.css +2 -1
- package/src/components/switch/props/default.css +4 -3
- package/src/components/table/interactive.css +10 -5
- package/src/components/table/props/default.css +2 -1
- package/src/components/tabs/index.js +5 -5
- package/src/components/text/props/default.css +2 -1
- package/src/components/title/props/default.css +2 -1
- package/src/components/toast/index.js +25 -25
- package/src/components/toast/props/content.css +2 -1
- package/src/components/toast/props/default.css +2 -1
- package/src/components/toaster/index.js +3 -3
- package/src/components/toaster/props/default.css +2 -1
- package/src/components/tooltip/default.css +4 -2
- package/src/components/tooltip/props/default.css +2 -1
- package/src/theme/config/font.css +2 -1
- package/src/theme/config/radius.css +2 -1
- package/src/theme/config/spacing.css +2 -1
- package/src/theme/config/transition.css +2 -1
- package/src/theme/config/z.css +2 -1
- package/src/theme/dark-rgb.css +2 -1
- package/src/theme/dark.css +2 -1
- package/src/theme/default-p3.css +2 -1
- package/src/theme/default-rgb.css +3 -2
- package/src/theme/default.css +3 -2
- package/src/utilities/container/props/default.css +2 -1
- package/src/utilities/divider.css +5 -3
- package/src/utilities/dot.css +1 -1
- package/src/utilities/ripple/index.js +13 -13
- package/src/utilities/skeleton/props/default.css +2 -1
- package/src/utilities/spinner/default.css +4 -4
- package/src/utilities/spinner/ring.css +1 -1
- package/src/utilities/swap/index.js +4 -4
- package/tailwind.config.js +16 -17
- package/tailwindcss/base/defaults.css +3 -2
- package/tailwindcss/theme/config/transition.css +2 -1
- package/tailwindcss/theme/default.css +1 -1
- package/tailwindcss/utilities/divider.css +4 -2
- package/tailwindcss/utilities/dot.css +1 -1
- package/tailwindcss/utilities/spinner.css +5 -5
- package/types/index.d.ts +1 -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,
|
|
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);
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* @returns void
|
|
5
5
|
*/
|
|
6
6
|
export const scrollTo = (element, index = 0) => {
|
|
7
|
-
|
|
7
|
+
const scrollPaddingLeft = parseInt(getComputedStyle(element).scrollPaddingLeft)
|
|
8
8
|
|
|
9
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
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
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
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
|
-
|
|
65
|
+
const activeElement = [...element.children].find(children => children.hasAttribute(options.visibleAttribute))
|
|
65
66
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
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
|
-
|
|
76
|
+
;[...element.children].forEach(children => element._observer.observe(children))
|
|
76
77
|
|
|
77
|
-
|
|
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
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
87
|
+
options.pagination = {
|
|
88
|
+
activeAttribute: 'data-active',
|
|
89
|
+
...options.pagination,
|
|
90
|
+
}
|
|
90
91
|
|
|
91
|
-
|
|
92
|
-
|
|
92
|
+
const activeItem = getItemCount(element, element.scrollLeft, element.scrollLeft < element._lastScrollLeft)
|
|
93
|
+
const activeItemMax = getItemCount(element)
|
|
93
94
|
|
|
94
|
-
|
|
95
|
-
|
|
95
|
+
if (options?.pagination?.element) {
|
|
96
|
+
;[...options.pagination.element.children].forEach(children => children.removeAttribute(options.pagination.activeAttribute))
|
|
96
97
|
|
|
97
|
-
|
|
98
|
-
|
|
98
|
+
options.pagination.element.children[activeItem - 1]?.setAttribute(options.pagination.activeAttribute, '')
|
|
99
|
+
}
|
|
99
100
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
101
|
+
if (options.progressElement) {
|
|
102
|
+
options.progressElement.value = activeItem / activeItemMax * 100
|
|
103
|
+
}
|
|
103
104
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
105
|
+
if (options.counterMinElement) {
|
|
106
|
+
options.counterMinElement.innerHTML = `${activeItem}`
|
|
107
|
+
}
|
|
107
108
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
109
|
+
if (options.counterMaxElement) {
|
|
110
|
+
options.counterMaxElement.innerHTML = `${activeItemMax}`
|
|
111
|
+
}
|
|
111
112
|
|
|
112
|
-
|
|
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
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
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
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
148
|
+
options = {
|
|
149
|
+
delay: 4000,
|
|
150
|
+
pauseElements: [],
|
|
151
|
+
...options,
|
|
152
|
+
}
|
|
152
153
|
|
|
153
|
-
|
|
154
|
+
let paused
|
|
154
155
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
156
|
+
options.pauseElements.forEach((element) => {
|
|
157
|
+
element?.addEventListener('mouseenter', () => (paused = true))
|
|
158
|
+
element?.addEventListener('mouseleave', () => (paused = false))
|
|
159
|
+
})
|
|
159
160
|
|
|
160
|
-
|
|
161
|
-
|
|
161
|
+
setInterval(() => {
|
|
162
|
+
if (paused) return
|
|
162
163
|
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
}
|
|
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
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
179
|
+
options = {
|
|
180
|
+
activeAttribute: 'data-grabbing',
|
|
181
|
+
...options,
|
|
182
|
+
}
|
|
181
183
|
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
184
|
+
if (!matchMedia('(hover: hover) and (pointer: fine)').matches) {
|
|
185
|
+
return
|
|
186
|
+
}
|
|
185
187
|
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
188
|
+
let isDown
|
|
189
|
+
let startX
|
|
190
|
+
let scrollLeft
|
|
191
|
+
let timeout
|
|
190
192
|
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
193
|
+
const endGrabbing = () => {
|
|
194
|
+
isDown = false
|
|
195
|
+
element.removeAttribute(options.activeAttribute)
|
|
194
196
|
|
|
195
|
-
|
|
197
|
+
scrollTo(element, element._activeIndex)
|
|
196
198
|
|
|
197
|
-
|
|
199
|
+
clearTimeout(timeout)
|
|
198
200
|
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
201
|
+
timeout = setTimeout(() => {
|
|
202
|
+
element.style.scrollSnapType = ''
|
|
203
|
+
}, 300)
|
|
204
|
+
}
|
|
203
205
|
|
|
204
|
-
|
|
206
|
+
element.addEventListener('mouseleave', endGrabbing)
|
|
205
207
|
|
|
206
|
-
|
|
208
|
+
element.addEventListener('mouseup', endGrabbing)
|
|
207
209
|
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
210
|
+
element.addEventListener('mousedown', ({ pageX }) => {
|
|
211
|
+
isDown = true
|
|
212
|
+
startX = pageX - element.offsetLeft
|
|
213
|
+
scrollLeft = element.scrollLeft
|
|
214
|
+
})
|
|
213
215
|
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
216
|
+
element.addEventListener('mousemove', (e) => {
|
|
217
|
+
if (!isDown) return
|
|
218
|
+
e.preventDefault()
|
|
217
219
|
|
|
218
|
-
|
|
220
|
+
const x = e.pageX - element.offsetLeft
|
|
219
221
|
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
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
|
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
:root,
|
|
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:
|
|
9
|
-
--x-check-border-color:
|
|
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>');
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
* @returns void
|
|
5
5
|
*/
|
|
6
6
|
export const setPosition = (element, options = {}) => {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
const { selector, positionProperty } = {
|
|
8
|
+
selector: '.x-compare',
|
|
9
|
+
positionProperty: '--x-compare-position',
|
|
10
|
+
...options,
|
|
11
|
+
}
|
|
12
12
|
|
|
13
|
-
|
|
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
|
-
|
|
23
|
+
if (key?.toLowerCase() !== 'arrowright' && key?.toLowerCase() !== 'arrowleft') return
|
|
24
24
|
|
|
25
|
-
|
|
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
|
-
|
|
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),
|
|
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),
|
|
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,
|
|
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,16 +1,17 @@
|
|
|
1
|
-
:root,
|
|
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:
|
|
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:
|
|
13
|
+
--x-control-color: currentcolor;
|
|
13
14
|
--x-control-outline-width: 3px;
|
|
14
|
-
--x-control-placeholder-color:
|
|
15
|
+
--x-control-placeholder-color: currentcolor;
|
|
15
16
|
--x-control-placeholder-opacity: 50%;
|
|
16
17
|
}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
:root,
|
|
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:
|
|
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:
|
|
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,
|
|
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
|
-
&,
|
|
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,
|
|
69
|
+
&:hover,
|
|
70
|
+
&:focus-visible {
|
|
69
71
|
background-color: var(--x-control-select-option-hocus-background-color);
|
|
70
72
|
}
|
|
71
73
|
|