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.
- 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.d.ts +2 -0
- package/src/components/drawer/index.js +46 -31
- 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 +3 -1
- package/types/index.d.ts.map +3 -1
|
@@ -5,21 +5,21 @@
|
|
|
5
5
|
* @returns void
|
|
6
6
|
*/
|
|
7
7
|
export const showRipple = ({ currentTarget, offsetX, offsetY }, rippleElement = currentTarget.querySelector('.ripple')) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
if (!rippleElement) {
|
|
9
|
+
currentTarget.insertAdjacentHTML('beforeend', '<div class="ripple"></div>')
|
|
10
|
+
rippleElement = currentTarget.querySelector('.ripple')
|
|
11
|
+
}
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
rippleElement.classList.remove('animation-[ripple]')
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
if (rippleElement.clientWidth === 0 && rippleElement.clientHeight === 0) {
|
|
16
|
+
const d = Math.max(currentTarget.offsetWidth, currentTarget.offsetHeight)
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
rippleElement.style.width = d + 'px'
|
|
19
|
+
rippleElement.style.height = d + 'px'
|
|
20
|
+
}
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
rippleElement.style.top = offsetY - (rippleElement.clientHeight / 2) + 'px'
|
|
23
|
+
rippleElement.style.left = offsetX - (rippleElement.clientWidth / 2) + 'px'
|
|
24
|
+
rippleElement.classList.add('animation-[ripple]')
|
|
25
25
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
:root,
|
|
1
|
+
:root,
|
|
2
|
+
:host {
|
|
2
3
|
--skeleton-opacity: 50%;
|
|
3
4
|
--skeleton-gradient-from: color-mix(in var(--default-color-space), var(--color-body) 50%, var(--color-main));
|
|
4
5
|
--skeleton-gradient-to: color-mix(in var(--default-color-space), var(--color-body) 80%, var(--color-main));
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
border-radius: 50%;
|
|
5
5
|
border-width: var(--spinner-border-width, 2px);
|
|
6
6
|
border-color:
|
|
7
|
-
color-mix(in var(--default-color-space),
|
|
8
|
-
color-mix(in var(--default-color-space),
|
|
9
|
-
color-mix(in var(--default-color-space),
|
|
10
|
-
color-mix(in var(--default-color-space),
|
|
7
|
+
color-mix(in var(--default-color-space), currentcolor var(--spinner-border-block-start-color-opacity, 100%), transparent)
|
|
8
|
+
color-mix(in var(--default-color-space), currentcolor var(--spinner-border-inline-end-color-opacity, 100%), transparent)
|
|
9
|
+
color-mix(in var(--default-color-space), currentcolor var(--spinner-border-block-end-color-opacity, 100%), transparent)
|
|
10
|
+
color-mix(in var(--default-color-space), currentcolor var(--spinner-border-inline-start-color-opacity, 0%), transparent);
|
|
11
11
|
border-style: solid;
|
|
12
12
|
animation: linear var(--spinner-animation-duration, 1s) infinite spin;
|
|
13
13
|
}
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* @returns void
|
|
5
5
|
*/
|
|
6
6
|
export const toggleSwap = (element) => {
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
const ariaVisible = element.querySelector('[aria-hidden="false"]')
|
|
8
|
+
const ariaHidden = element.querySelector('[aria-hidden="true"]')
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
ariaVisible.ariaHidden = 'true'
|
|
11
|
+
ariaHidden.ariaHidden = 'false'
|
|
12
12
|
}
|
package/tailwind.config.js
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
import winduum from './plugin/index.js'
|
|
2
|
-
import
|
|
2
|
+
import process from 'node:process'
|
|
3
3
|
|
|
4
4
|
export default {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
5
|
+
darkMode: 'class',
|
|
6
|
+
content: [
|
|
7
|
+
'./src/**/*.{js,html}',
|
|
8
|
+
process.argv.includes('vite.config.prod.js') ? './playground/tailwind.html' : './playground/**/*.{js,html,vue}',
|
|
9
|
+
],
|
|
10
|
+
plugins: [
|
|
11
|
+
winduum({
|
|
12
|
+
settings: {
|
|
13
|
+
rgb: false,
|
|
14
|
+
},
|
|
15
|
+
}),
|
|
16
|
+
],
|
|
17
|
+
future: {
|
|
18
|
+
hoverOnlyWhenSupported: true,
|
|
19
|
+
},
|
|
21
20
|
}
|
|
@@ -7,7 +7,8 @@
|
|
|
7
7
|
gap: var(--divider-gap, calc(var(--spacing) * 3));
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
&::before,
|
|
10
|
+
&::before,
|
|
11
|
+
&::after {
|
|
11
12
|
content: "";
|
|
12
13
|
flex-grow: 1;
|
|
13
14
|
border: 0;
|
|
@@ -23,7 +24,8 @@
|
|
|
23
24
|
@utility divider-vertical {
|
|
24
25
|
flex-direction: column;
|
|
25
26
|
|
|
26
|
-
&::before,
|
|
27
|
+
&::before,
|
|
28
|
+
&::after {
|
|
27
29
|
border: 0;
|
|
28
30
|
border-inline-start:
|
|
29
31
|
1px solid color-mix(
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
border-radius: 50%;
|
|
5
5
|
border-width: var(--spinner-border-width, 2px);
|
|
6
6
|
border-color:
|
|
7
|
-
color-mix(in var(--default-color-space),
|
|
8
|
-
color-mix(in var(--default-color-space),
|
|
9
|
-
color-mix(in var(--default-color-space),
|
|
10
|
-
color-mix(in var(--default-color-space),
|
|
7
|
+
color-mix(in var(--default-color-space), currentcolor var(--spinner-border-block-start-color-opacity, 100%), transparent)
|
|
8
|
+
color-mix(in var(--default-color-space), currentcolor var(--spinner-border-inline-end-color-opacity, 100%), transparent)
|
|
9
|
+
color-mix(in var(--default-color-space), currentcolor var(--spinner-border-block-end-color-opacity, 100%), transparent)
|
|
10
|
+
color-mix(in var(--default-color-space), currentcolor var(--spinner-border-inline-start-color-opacity, 0%), transparent);
|
|
11
11
|
border-style: solid;
|
|
12
12
|
animation: linear var(--spinner-animation-duration, 1s) infinite spin;
|
|
13
13
|
}
|
|
@@ -30,6 +30,6 @@
|
|
|
30
30
|
stroke-linecap: round;
|
|
31
31
|
animation: spinner-ring-stretch calc(var(--spinner-animation-duration) * 0.75) ease-in-out infinite;
|
|
32
32
|
fill: none;
|
|
33
|
-
stroke:
|
|
33
|
+
stroke: currentcolor;
|
|
34
34
|
}
|
|
35
35
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -107,7 +107,7 @@ declare module 'winduum/src/components/dialog' {
|
|
|
107
107
|
openAttribute?: string
|
|
108
108
|
closedAttribute?: string
|
|
109
109
|
contentSelector?: string
|
|
110
|
-
scrollbarWidthProperty?: string
|
|
110
|
+
scrollbarWidthProperty?: string | null
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
export const defaultOptions: DefaultOptions
|
|
@@ -131,6 +131,8 @@ declare module 'winduum/src/components/drawer' {
|
|
|
131
131
|
export function showDrawer(element: HTMLElement | Element, distance?: number, direction?: 'left' | 'top'): void
|
|
132
132
|
export function closeDrawer(element: HTMLElement | Element, distance?: number, direction?: 'left' | 'top'): void
|
|
133
133
|
export function scrollInitDrawer(element: HTMLElement | Element, distance?: number, direction?: 'left' | 'top'): void
|
|
134
|
+
export function toggleDrawerAttributes(element: HTMLDialogElement | Element, state?: 'open' | 'close', snapClass?: string): void
|
|
135
|
+
export function scrollDrawerState(scrollState: number, scrollDirection: number): boolean
|
|
134
136
|
export function scrollDrawer(element: HTMLDialogElement | Element, options?: ScrollDrawerOptions): void
|
|
135
137
|
|
|
136
138
|
export {};
|
package/types/index.d.ts.map
CHANGED
|
@@ -34,6 +34,8 @@
|
|
|
34
34
|
"showDrawer",
|
|
35
35
|
"closeDrawer",
|
|
36
36
|
"scrollInitDrawer",
|
|
37
|
+
"toggleDrawerAttributes",
|
|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