winduum 3.0.0-next.1 → 3.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.
- package/dist/main.css +1 -1
- package/dist/tailwind.css +2 -1
- package/package.json +22 -17
- package/src/base/keyframes.css +32 -0
- package/src/components/carousel/content.css +1 -0
- package/src/components/carousel/index.js +58 -192
- package/src/components/dialog/content.css +0 -1
- package/src/components/dialog/drawer.css +20 -0
- package/src/components/dialog/index.css +1 -0
- package/src/components/drawer/content.css +2 -1
- package/src/components/drawer/default.css +13 -31
- package/src/components/drawer/index.css +3 -0
- package/src/components/drawer/index.js +68 -50
- package/src/components/drawer/keyframes/default.css +9 -0
- package/src/components/drawer/noscript.css +32 -0
- package/src/components/drawer/nosnap.css +32 -0
- package/src/components/drawer/props/content.css +2 -2
- package/src/components/drawer/props/default.css +6 -0
- package/src/components/drawer/scroller.css +32 -0
- package/src/polyfills/timelineTrigger.js +54 -0
- package/src/supports.js +19 -0
- package/tailwindcss/theme/config/radius.css +9 -1
- package/tailwindcss/utilities/animation-timeline.css +51 -0
- package/tailwindcss/utilities/animation-trigger.css +33 -0
- package/tailwindcss/utilities/animation.css +88 -0
- package/tailwindcss/utilities/grid-area.css +7 -0
- package/tailwindcss/utilities/index.css +3 -0
- package/tailwindcss/variants/index.css +2 -1
- package/tailwindcss/variants/scroll-state.css +245 -0
- package/types/index.d.ts +8 -0
- package/types/index.d.ts.map +21 -3
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
.x-drawer-scroller {
|
|
2
|
+
display: flex;
|
|
3
|
+
width: inherit;
|
|
4
|
+
height: inherit;
|
|
5
|
+
overflow: auto clip;
|
|
6
|
+
scrollbar-width: none;
|
|
7
|
+
scroll-behavior: smooth;
|
|
8
|
+
-webkit-overflow-scrolling: touch;
|
|
9
|
+
overscroll-behavior: none;
|
|
10
|
+
scroll-snap-type: x mandatory;
|
|
11
|
+
scroll-timeline: --x-drawer-backdrop x;
|
|
12
|
+
|
|
13
|
+
&::-webkit-scrollbar {
|
|
14
|
+
display: none;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&::after {
|
|
18
|
+
content: "";
|
|
19
|
+
min-inline-size: 100dvw;
|
|
20
|
+
scroll-snap-align: end;
|
|
21
|
+
scroll-initial-target: nearest;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&:where(.snap-y) {
|
|
25
|
+
overflow: clip auto;
|
|
26
|
+
scroll-timeline: --x-drawer-backdrop y;
|
|
27
|
+
|
|
28
|
+
&::after {
|
|
29
|
+
min-block-size: 100dvh;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
const selector = '[class*="timeline-trigger-"]'
|
|
2
|
+
|
|
3
|
+
const getThreshold = (style, property, fallback) => {
|
|
4
|
+
const value = parseFloat(style.getPropertyValue(property))
|
|
5
|
+
|
|
6
|
+
return Number.isNaN(value) ? fallback : value / 100
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
const observeElement = (element) => {
|
|
10
|
+
if (element._timelineTriggerObserver) return
|
|
11
|
+
|
|
12
|
+
const style = getComputedStyle(element)
|
|
13
|
+
const enter = getThreshold(style, '--tw-timeline-trigger-entry', 0.2)
|
|
14
|
+
const exit = getThreshold(style, '--tw-timeline-trigger-exit', 0)
|
|
15
|
+
|
|
16
|
+
element._timelineTriggerObserver = new IntersectionObserver(([entry]) => {
|
|
17
|
+
if (entry.isIntersecting && entry.intersectionRatio >= enter) {
|
|
18
|
+
element.setAttribute('data-enter', '')
|
|
19
|
+
}
|
|
20
|
+
else if (entry.intersectionRatio <= exit) {
|
|
21
|
+
element.removeAttribute('data-enter')
|
|
22
|
+
}
|
|
23
|
+
}, { threshold: [exit, enter] })
|
|
24
|
+
|
|
25
|
+
element._timelineTriggerObserver.observe(element)
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
const unobserveElement = (element) => {
|
|
29
|
+
element._timelineTriggerObserver?.disconnect()
|
|
30
|
+
delete element._timelineTriggerObserver
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const observe = (node) => {
|
|
34
|
+
if (node.nodeType !== 1) return
|
|
35
|
+
|
|
36
|
+
if (node.matches(selector)) observeElement(node)
|
|
37
|
+
|
|
38
|
+
node.querySelectorAll(selector).forEach(observeElement)
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
const unobserve = (node) => {
|
|
42
|
+
if (node.nodeType !== 1) return
|
|
43
|
+
|
|
44
|
+
if (node.matches(selector)) unobserveElement(node)
|
|
45
|
+
|
|
46
|
+
node.querySelectorAll(selector).forEach(unobserveElement)
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
document.querySelectorAll(selector).forEach(observeElement)
|
|
50
|
+
|
|
51
|
+
new MutationObserver(mutations => mutations.forEach(({ addedNodes, removedNodes }) => {
|
|
52
|
+
addedNodes.forEach(observe)
|
|
53
|
+
removedNodes.forEach(unobserve)
|
|
54
|
+
})).observe(document.documentElement, { childList: true, subtree: true })
|
package/src/supports.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @type {boolean}
|
|
3
|
+
*/
|
|
4
|
+
export const supportsTimelineTrigger = CSS.supports('timeline-trigger-name: --v')
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* @type {boolean}
|
|
8
|
+
*/
|
|
9
|
+
export const supportsInterestFor = Object.prototype.hasOwnProperty.call(HTMLButtonElement.prototype, 'interestForElement')
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @type {boolean}
|
|
13
|
+
*/
|
|
14
|
+
export const supportsScrollInitialTarget = CSS.supports('scroll-initial-target', 'nearest')
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* @type {boolean}
|
|
18
|
+
*/
|
|
19
|
+
export const supportsAnimationTimeline = CSS.supports('animation-timeline: scroll()')
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
@theme {
|
|
2
|
-
--radius:
|
|
2
|
+
--radius: 0.125rem;
|
|
3
|
+
--radius-xs: calc(var(--radius) * 1);
|
|
4
|
+
--radius-sm: calc(var(--radius) * 2);
|
|
5
|
+
--radius-md: calc(var(--radius) * 3);
|
|
6
|
+
--radius-lg: calc(var(--radius) * 4);
|
|
7
|
+
--radius-xl: calc(var(--radius) * 6);
|
|
8
|
+
--radius-2xl: calc(var(--radius) * 8);
|
|
9
|
+
--radius-3xl: calc(var(--radius) * 12);
|
|
10
|
+
--radius-4xl: calc(var(--radius) * 16);
|
|
3
11
|
--radius-full: calc(infinity * 1px);
|
|
4
12
|
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
@utility timeline-scope-* {
|
|
2
|
+
timeline-scope: --value([*]) y;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
@utility scroll-timeline-y-* {
|
|
6
|
+
scroll-timeline: --value([*]) y;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@utility scroll-timeline-x-* {
|
|
10
|
+
scroll-timeline: --value([*]) x;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@utility scroll-timeline-block {
|
|
14
|
+
scroll-timeline: --value([*]) block;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@utility view-timeline-y-* {
|
|
18
|
+
view-timeline: --value([*]) y;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@utility view-timeline-x-* {
|
|
22
|
+
view-timeline: --value([*]) x;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@utility view-timeline-block {
|
|
26
|
+
view-timeline: --value([*]) block;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@utility animation-timeline-scroll {
|
|
30
|
+
animation-timeline: scroll();
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@utility animation-timeline-scroll-y {
|
|
34
|
+
animation-timeline: scroll(y);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@utility animation-timeline-scroll-x {
|
|
38
|
+
animation-timeline: scroll(x);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@utility animation-timeline-view {
|
|
42
|
+
animation-timeline: view();
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@utility animation-timeline-* {
|
|
46
|
+
animation-timeline: --value("auto", "none", [ *]);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@utility animation-range-* {
|
|
50
|
+
animation-range: --value([*]);
|
|
51
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
@utility timeline-trigger-enter {
|
|
2
|
+
timeline-trigger: --enter view() entry var(--tw-timeline-trigger-entry, 20%) exit var(--tw-timeline-trigger-exit, 0%);
|
|
3
|
+
trigger-scope: --enter;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
@utility timeline-trigger-* {
|
|
7
|
+
timeline-trigger: --value([*]) view() entry var(--tw-timeline-trigger-entry, 20%) exit var(--tw-timeline-trigger-exit, 0%);
|
|
8
|
+
trigger-scope: --value([*]);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@utility animation-trigger-enter {
|
|
12
|
+
animation-duration: var(--tw-animation-duration, 1.75s);
|
|
13
|
+
animation-timing-function: var(--tw-animation-timing-function, var(--ease-emphasized));
|
|
14
|
+
animation-fill-mode: var(--tw-animation-fill-mode, both);
|
|
15
|
+
animation-trigger: --enter var(--tw-animation-trigger-action, play-once);
|
|
16
|
+
animation-name: enter;
|
|
17
|
+
|
|
18
|
+
@media (prefers-reduced-motion) {
|
|
19
|
+
animation: none;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@utility animation-trigger-* {
|
|
24
|
+
animation-duration: var(--tw-animation-duration, 1.75s);
|
|
25
|
+
animation-timing-function: var(--tw-animation-timing-function, var(--ease-emphasized));
|
|
26
|
+
animation-fill-mode: var(--tw-animation-fill-mode, both);
|
|
27
|
+
animation-trigger: --modifier([*]) var(--tw-animation-trigger-action, play-once);
|
|
28
|
+
animation-name: --value([*]);
|
|
29
|
+
|
|
30
|
+
@media (prefers-reduced-motion) {
|
|
31
|
+
animation: none;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -1,3 +1,91 @@
|
|
|
1
1
|
@utility animation-* {
|
|
2
2
|
animation-name: --value(--animation-*, [family-name]);
|
|
3
3
|
}
|
|
4
|
+
|
|
5
|
+
@utility from-translate-y-* {
|
|
6
|
+
--tw-animation-from-translate-y: --value([length]);
|
|
7
|
+
--tw-animation-from-translate-y: calc(var(--spacing) * --value(number, [number]));
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@utility to-translate-y-* {
|
|
11
|
+
--tw-animation-to-translate-y: --value([length]);
|
|
12
|
+
--tw-animation-to-translate-y: calc(var(--spacing) * --value(number, [number]));
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@utility -from-translate-y-* {
|
|
16
|
+
--tw-animation-from-translate-y: calc(--value([length]) * -1);
|
|
17
|
+
--tw-animation-from-translate-y: calc(var(--spacing) * --value(number, [number]) * -1);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@utility -to-translate-y-* {
|
|
21
|
+
--tw-animation-to-translate-y: calc(--value([length]) * -1);
|
|
22
|
+
--tw-animation-to-translate-y: calc(var(--spacing) * --value(number, [number]) * -1);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@utility from-translate-x-* {
|
|
26
|
+
--tw-animation-from-translate-x: --value([length]);
|
|
27
|
+
--tw-animation-from-translate-x: calc(var(--spacing) * --value(number, [number]));
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@utility to-translate-x-* {
|
|
31
|
+
--tw-animation-to-translate-x: --value([length]);
|
|
32
|
+
--tw-animation-to-translate-x: calc(var(--spacing) * --value(number, [number]));
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@utility -from-translate-x-* {
|
|
36
|
+
--tw-animation-from-translate-x: calc(--value([length]) * -1);
|
|
37
|
+
--tw-animation-from-translate-x: calc(var(--spacing) * --value(number, [number]) * -1);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@utility -to-translate-x-* {
|
|
41
|
+
--tw-animation-to-translate-x: calc(--value([length]) * -1);
|
|
42
|
+
--tw-animation-to-translate-x: calc(var(--spacing) * --value(number, [number]) * -1);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@utility from-opacity-* {
|
|
46
|
+
--tw-animation-from-opacity: --value(percentage, [percentage]);
|
|
47
|
+
--tw-animation-from-opacity: calc(--value(integer) * 1%);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@utility to-opacity-* {
|
|
51
|
+
--tw-animation-to-opacity: --value(percentage, [percentage]);
|
|
52
|
+
--tw-animation-to-opacity: calc(--value(integer) * 1%);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@utility -from-opacity-* {
|
|
56
|
+
--tw-animation-from-opacity: calc(--value([percentage]) * -1);
|
|
57
|
+
--tw-animation-from-opacity: calc(--value(integer) * -1 * 1%);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@utility -to-opacity-* {
|
|
61
|
+
--tw-animation-to-opacity: calc(--value([percentage]) * -1);
|
|
62
|
+
--tw-animation-to-opacity: calc(--value(integer) * -1 * 1%);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@utility from-scale-* {
|
|
66
|
+
--tw-animation-from-scale: --value(percentage, [percentage]);
|
|
67
|
+
--tw-animation-from-scale: calc(--value(integer) * 1%);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
@utility to-scale-* {
|
|
71
|
+
--tw-animation-to-scale: --value(percentage, [percentage]);
|
|
72
|
+
--tw-animation-to-scale: calc(--value(integer) * 1%);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
@utility -from-scale-* {
|
|
76
|
+
--tw-animation-from-scale: calc(--value([percentage]) * -1);
|
|
77
|
+
--tw-animation-from-scale: calc(--value(integer) * -1 * 1%);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
@utility -to-scale-* {
|
|
81
|
+
--tw-animation-to-scale: calc(--value([percentage]) * -1);
|
|
82
|
+
--tw-animation-to-scale: calc(--value(integer) * -1 * 1%);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
@utility from-rotate-* {
|
|
86
|
+
--tw-animation-from-rotate: --value([*]);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
@utility to-rotate-* {
|
|
90
|
+
--tw-animation-to-rotate: --value([*]);
|
|
91
|
+
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
@import "./accent.css";
|
|
2
2
|
@import "./animation.css";
|
|
3
|
+
@import "./animation-timeline.css";
|
|
4
|
+
@import "./animation-trigger.css";
|
|
3
5
|
@import "./divide-gap.css";
|
|
4
6
|
@import "./divider.css";
|
|
5
7
|
@import "./dot.css";
|
|
8
|
+
@import "./grid-area.css";
|
|
6
9
|
@import "./grid-cols-container.css";
|
|
7
10
|
@import "./link.css";
|
|
8
11
|
@import "./position.css";
|
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
@variant scrollable-none {
|
|
2
|
+
@container scroll-state(scrollable: none) {
|
|
3
|
+
@slot;
|
|
4
|
+
}
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
@variant scrollable-top {
|
|
8
|
+
@container scroll-state(scrollable: top) {
|
|
9
|
+
@slot;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@variant scrollable-right {
|
|
14
|
+
@container scroll-state(scrollable: right) {
|
|
15
|
+
@slot;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@variant scrollable-bottom {
|
|
20
|
+
@container scroll-state(scrollable: bottom) {
|
|
21
|
+
@slot;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@variant scrollable-left {
|
|
26
|
+
@container scroll-state(scrollable: left) {
|
|
27
|
+
@slot;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@variant scrollable-x {
|
|
32
|
+
@container scroll-state(scrollable: x) {
|
|
33
|
+
@slot;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@variant scrollable-y {
|
|
38
|
+
@container scroll-state(scrollable: y) {
|
|
39
|
+
@slot;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@variant scrollable-block-start {
|
|
44
|
+
@container scroll-state(scrollable: block-start) {
|
|
45
|
+
@slot;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@variant scrollable-block-end {
|
|
50
|
+
@container scroll-state(scrollable: block-end) {
|
|
51
|
+
@slot;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@variant scrollable-inline-start {
|
|
56
|
+
@container scroll-state(scrollable: inline-start) {
|
|
57
|
+
@slot;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@variant scrollable-inline-end {
|
|
62
|
+
@container scroll-state(scrollable: inline-end) {
|
|
63
|
+
@slot;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@variant scrollable-block {
|
|
68
|
+
@container scroll-state(scrollable: block) {
|
|
69
|
+
@slot;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@variant scrollable-inline {
|
|
74
|
+
@container scroll-state(scrollable: inline) {
|
|
75
|
+
@slot;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
@variant scrolled-none {
|
|
80
|
+
@container scroll-state(scrolled: none) {
|
|
81
|
+
@slot;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
@variant scrolled-top {
|
|
86
|
+
@container scroll-state(scrolled: top) {
|
|
87
|
+
@slot;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
@variant scrolled-right {
|
|
92
|
+
@container scroll-state(scrolled: right) {
|
|
93
|
+
@slot;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
@variant scrolled-bottom {
|
|
98
|
+
@container scroll-state(scrolled: bottom) {
|
|
99
|
+
@slot;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
@variant scrolled-left {
|
|
104
|
+
@container scroll-state(scrolled: left) {
|
|
105
|
+
@slot;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
@variant scrolled-x {
|
|
110
|
+
@container scroll-state(scrolled: x) {
|
|
111
|
+
@slot;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
@variant scrolled-y {
|
|
116
|
+
@container scroll-state(scrolled: y) {
|
|
117
|
+
@slot;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
@variant scrolled-block-start {
|
|
122
|
+
@container scroll-state(scrolled: block-start) {
|
|
123
|
+
@slot;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
@variant scrolled-block-end {
|
|
128
|
+
@container scroll-state(scrolled: block-end) {
|
|
129
|
+
@slot;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
@variant scrolled-inline-start {
|
|
134
|
+
@container scroll-state(scrolled: inline-start) {
|
|
135
|
+
@slot;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
@variant scrolled-inline-end {
|
|
140
|
+
@container scroll-state(scrolled: inline-end) {
|
|
141
|
+
@slot;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
@variant scrolled-block {
|
|
146
|
+
@container scroll-state(scrolled: block) {
|
|
147
|
+
@slot;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
@variant scrolled-inline {
|
|
152
|
+
@container scroll-state(scrolled: inline) {
|
|
153
|
+
@slot;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
@variant snapped-none {
|
|
158
|
+
@container scroll-state(snapped: none) {
|
|
159
|
+
@slot;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
@variant snapped-x {
|
|
164
|
+
@container scroll-state(snapped: x) {
|
|
165
|
+
@slot;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
@variant snapped-y {
|
|
170
|
+
@container scroll-state(snapped: y) {
|
|
171
|
+
@slot;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
@variant snapped-block {
|
|
176
|
+
@container scroll-state(snapped: block) {
|
|
177
|
+
@slot;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
@variant snapped-inline {
|
|
182
|
+
@container scroll-state(snapped: inline) {
|
|
183
|
+
@slot;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
@variant snapped-both {
|
|
188
|
+
@container scroll-state(snapped: both) {
|
|
189
|
+
@slot;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
@variant stuck-none {
|
|
194
|
+
@container scroll-state(stuck: none) {
|
|
195
|
+
@slot;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
@variant stuck-top {
|
|
200
|
+
@container scroll-state(stuck: top) {
|
|
201
|
+
@slot;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
@variant stuck-right {
|
|
206
|
+
@container scroll-state(stuck: right) {
|
|
207
|
+
@slot;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
@variant stuck-bottom {
|
|
212
|
+
@container scroll-state(stuck: bottom) {
|
|
213
|
+
@slot;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
@variant stuck-left {
|
|
218
|
+
@container scroll-state(stuck: left) {
|
|
219
|
+
@slot;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
@variant stuck-block-start {
|
|
224
|
+
@container scroll-state(stuck: block-start) {
|
|
225
|
+
@slot;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
@variant stuck-block-end {
|
|
230
|
+
@container scroll-state(stuck: block-end) {
|
|
231
|
+
@slot;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
@variant stuck-inline-start {
|
|
236
|
+
@container scroll-state(stuck: inline-start) {
|
|
237
|
+
@slot;
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
@variant stuck-inline-end {
|
|
242
|
+
@container scroll-state(stuck: inline-end) {
|
|
243
|
+
@slot;
|
|
244
|
+
}
|
|
245
|
+
}
|
package/types/index.d.ts
CHANGED
|
@@ -27,6 +27,14 @@ declare module 'winduum' {
|
|
|
27
27
|
export {};
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
+
declare module 'winduum/supports' {
|
|
31
|
+
export const supportsTimelineTrigger: boolean;
|
|
32
|
+
|
|
33
|
+
export const supportsInterestFor: boolean;
|
|
34
|
+
|
|
35
|
+
export {};
|
|
36
|
+
}
|
|
37
|
+
|
|
30
38
|
declare module 'winduum/src/components/carousel' {
|
|
31
39
|
export interface ObserveCarouselOptions {
|
|
32
40
|
visibleAttribute?: string
|
package/types/index.d.ts.map
CHANGED
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
"PluginOptions",
|
|
6
6
|
"defaultConfig",
|
|
7
7
|
"createPlugin",
|
|
8
|
+
"supportsTimelineTrigger",
|
|
9
|
+
"supportsInterestFor",
|
|
8
10
|
"ObserveCarouselOptions",
|
|
9
11
|
"PaginationCarouselOptions",
|
|
10
12
|
"ScrollCarouselOptions",
|
|
@@ -23,6 +25,13 @@
|
|
|
23
25
|
"setPosition",
|
|
24
26
|
"setKeyboardStep",
|
|
25
27
|
"setMouseStep",
|
|
28
|
+
"DefaultOptions",
|
|
29
|
+
"defaultOptions",
|
|
30
|
+
"showDetails",
|
|
31
|
+
"closeDetails",
|
|
32
|
+
"toggleDetails",
|
|
33
|
+
"showDialog",
|
|
34
|
+
"closeDialog",
|
|
26
35
|
"ScrollDrawerOptions",
|
|
27
36
|
"showDrawer",
|
|
28
37
|
"closeDrawer",
|
|
@@ -41,8 +50,11 @@
|
|
|
41
50
|
"closeToast",
|
|
42
51
|
"showToast",
|
|
43
52
|
"closeToaster",
|
|
44
|
-
"
|
|
45
|
-
"
|
|
53
|
+
"ShowPopoverOptions",
|
|
54
|
+
"HidePopoverOptions",
|
|
55
|
+
"showPopover",
|
|
56
|
+
"hidePopover",
|
|
57
|
+
"togglePopover",
|
|
46
58
|
"SetTrackPropertyOptions",
|
|
47
59
|
"SetValueOptions",
|
|
48
60
|
"SetOutputOptions",
|
|
@@ -55,8 +67,11 @@
|
|
|
55
67
|
],
|
|
56
68
|
"sources": [
|
|
57
69
|
"../plugin/index.d.ts",
|
|
70
|
+
"../src/supports.js",
|
|
58
71
|
"../src/components/carousel/index.d.ts",
|
|
59
72
|
"../src/components/compare/index.d.ts",
|
|
73
|
+
"../src/components/details/index.d.ts",
|
|
74
|
+
"../src/components/dialog/index.d.ts",
|
|
60
75
|
"../src/components/drawer/index.d.ts",
|
|
61
76
|
"../src/components/form/index.d.ts",
|
|
62
77
|
"../src/components/tabs/index.d.ts",
|
|
@@ -79,8 +94,11 @@
|
|
|
79
94
|
null,
|
|
80
95
|
null,
|
|
81
96
|
null,
|
|
97
|
+
null,
|
|
98
|
+
null,
|
|
99
|
+
null,
|
|
82
100
|
null
|
|
83
101
|
],
|
|
84
|
-
"mappings": ";;kBAEiBA,aAAaA;;;;;;;;;;;;;;;;;;;;cAoBjBC,aAAaA;;yBAEFC,YAAYA;;;;;;
|
|
102
|
+
"mappings": ";;kBAEiBA,aAAaA;;;;;;;;;;;;;;;;;;;;cAoBjBC,aAAaA;;yBAEFC,YAAYA;;;;;;cCrBvBC,uBAAuBA;;cAKvBC,mBAAmBA;;;;;;kBCRfC,sBAAsBA;;;;;;;;kBAQtBC,yBAAyBA;;;;;;kBAMzBC,qBAAqBA;;;;;;;;kBAQrBC,uBAAuBA;;;;;kBAKvBC,mBAAmBA;;;;iBAIpBC,UAAUA;iBACVC,UAAUA;iBACVC,QAAQA;iBACRC,YAAYA;iBACZC,eAAeA;iBACfC,cAAcA;iBACdC,kBAAkBA;iBAClBC,gBAAgBA;iBAChBC,YAAYA;;;;;;kBCvCXC,kBAAkBA;;;;;iBAKnBC,WAAWA;iBACXC,eAAeA;iBACfC,YAAYA;;;;;;kBCPXC,cAAcA;;;;;cAKlBC,cAAcA;iBACXC,WAAWA;iBACXC,YAAYA;iBACZC,aAAaA;;;;;;kBCRZJ,cAAcA;;;;;;;;;;cAUlBC,cAAcA;iBACXI,UAAUA;iBACVC,WAAWA;;;;;;kBCZVC,mBAAmBA;;;;;;;;;;iBAUpBC,UAAUA;iBACVC,WAAWA;iBACXC,gBAAgBA;iBAChBC,sBAAsBA;iBACtBC,iBAAiBA;iBACjBC,YAAYA;;;;;;kBCfXC,mBAAmBA;;;;;;;;kBAQnBC,oBAAoBA;;;;;;;;;;;;;;;;;;;iBAmBrBC,YAAYA;iBACZC,aAAaA;;;;;;WC5BnBC,gBAAgBA;;;;;iBAKVC,SAASA;;;;;;kBCLRC,gBAAgBA;;;;;;;kBAOhBC,iBAAiBA;;;;;;iBAMlBC,UAAUA;iBACVC,SAASA;;;;;;kBCdRF,iBAAiBA;;;;;iBAKlBG,YAAYA;;;;;;;kBCHXC,kBAAkBA;;;;;;;;;;;kBAWlBC,kBAAkBA;;;;iBAInBC,WAAWA;iBACXC,WAAWA;iBACXC,aAAaA;;;;;;kBCnBZC,uBAAuBA;;;;;;;kBAOvBC,eAAeA;;;;;kBAKfC,gBAAgBA;;;;;iBAKjBC,gBAAgBA;iBAChBC,QAAQA;iBACRC,cAAcA;;;;;;kBCnBbC,eAAeA;;;;;;iBAMhBC,UAAUA;;;;;;iBCNVC,UAAUA",
|
|
85
103
|
"ignoreList": []
|
|
86
104
|
}
|