@zazz-ui/core 0.13.0 → 0.14.0
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/CHANGELOG.md +93 -0
- package/README.md +5 -9
- package/dist/sri.json +34 -30
- package/dist/zazz.css +1 -1
- package/dist/zazz.js +1 -1
- package/editor/zazz.css-data.json +173 -3
- package/editor/zazz.html-data.json +138 -0
- package/editor/zazz.language-data.json +313 -125
- package/editor/zazz.lint-data.json +1501 -1383
- package/package.json +1 -5
- package/src/base/_defaults.css +1 -1
- package/src/base/_reset.css +16 -2
- package/src/base/_variables.css +43 -31
- package/src/base/carousel-scroll.d.ts +161 -0
- package/src/base/carousel-scroll.d.ts.map +1 -0
- package/src/base/carousel-scroll.js +1035 -0
- package/src/base/carousel-scroll.ts +1227 -0
- package/src/base/carousel.d.ts +34 -0
- package/src/base/carousel.d.ts.map +1 -0
- package/src/base/carousel.js +279 -0
- package/src/base/carousel.ts +292 -0
- package/src/base/dialog-lifecycle.js +1 -1
- package/src/base/dialog-lifecycle.ts +1 -1
- package/src/base/gesture.d.ts +201 -0
- package/src/base/gesture.d.ts.map +1 -0
- package/src/base/gesture.js +317 -0
- package/src/base/gesture.ts +494 -0
- package/src/base/kit-styling.d.ts.map +1 -1
- package/src/base/kit-styling.js +182 -162
- package/src/base/kit-styling.ts +182 -162
- package/src/base/utils.d.ts +1 -1
- package/src/base/utils.js +2 -2
- package/src/base/utils.ts +2 -2
- package/src/globals.d.ts +7 -30
- package/src/head.d.ts.map +1 -1
- package/src/head.js +1 -25
- package/src/head.ts +1 -25
- package/src/index.css +1 -0
- package/src/index.d.ts +6 -5
- package/src/index.d.ts.map +1 -1
- package/src/index.js +6 -5
- package/src/index.ts +6 -5
- package/src/manifest.d.ts +1 -1
- package/src/manifest.d.ts.map +1 -1
- package/src/manifest.js +25 -13
- package/src/manifest.ts +26 -14
- package/src/primitives/button/button.css +1 -1
- package/src/primitives/carousel/carousel.css +103 -20
- package/src/primitives/carousel/carousel.d.ts +4 -32
- package/src/primitives/carousel/carousel.d.ts.map +1 -1
- package/src/primitives/carousel/carousel.js +39 -14
- package/src/primitives/carousel/carousel.ts +21 -25
- package/src/primitives/dialog/dialog.css +14 -8
- package/src/primitives/drawer/drawer-indent.html +27 -0
- package/src/primitives/drawer/drawer-nested.html +72 -0
- package/src/primitives/drawer/drawer-responsive-dialog.html +44 -0
- package/src/primitives/drawer/drawer-snap.html +26 -0
- package/src/primitives/drawer/drawer.css +528 -0
- package/src/primitives/drawer/drawer.d.ts +24 -0
- package/src/primitives/drawer/drawer.d.ts.map +1 -0
- package/src/primitives/drawer/drawer.html +42 -0
- package/src/primitives/drawer/drawer.js +765 -0
- package/src/primitives/drawer/drawer.ts +823 -0
- package/src/primitives/fields/fields.css +4 -2
- package/src/primitives/input/input.css +4 -3
- package/src/primitives/input-group/input-group.css +5 -5
- package/src/primitives/lightbox/lightbox.css +2 -2
- package/src/primitives/lightbox/lightbox.d.ts.map +1 -1
- package/src/primitives/lightbox/lightbox.js +9 -8
- package/src/primitives/lightbox/lightbox.ts +9 -8
- package/src/primitives/password-group/password-group.css +5 -5
- package/src/primitives/radio/radio.css +15 -10
- package/src/primitives/slider/slider.css +2 -2
- package/src/primitives/switch/switch.css +6 -6
- package/src/primitives/tabs/tabs.css +10 -10
- package/src/primitives/toaster/toaster.css +29 -1
- package/src/primitives/toaster/toaster.d.ts.map +1 -1
- package/src/primitives/toaster/toaster.js +117 -9
- package/src/primitives/toaster/toaster.ts +136 -9
- package/src/primitives/tooltip/tooltip.css +93 -10
- package/src/base/embla.d.ts +0 -90
- package/src/base/embla.d.ts.map +0 -1
- package/src/base/embla.js +0 -878
- package/src/base/embla.ts +0 -1066
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zazz-ui/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"description": "Zazz Design Framework — a zero-build, semantic-token CSS + vanilla JS UI kit built on modern web standards.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cascade-layers",
|
|
@@ -65,10 +65,6 @@
|
|
|
65
65
|
"access": "public"
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"embla-carousel": "9.0.0-rc04",
|
|
69
|
-
"embla-carousel-auto-scroll": "9.0.0-rc04",
|
|
70
|
-
"embla-carousel-autoplay": "9.0.0-rc04",
|
|
71
|
-
"embla-carousel-class-names": "9.0.0-rc04",
|
|
72
68
|
"signal-polyfill": "0.2.2"
|
|
73
69
|
},
|
|
74
70
|
"devDependencies": {
|
package/src/base/_defaults.css
CHANGED
|
@@ -355,7 +355,7 @@
|
|
|
355
355
|
corner-shape: var(--radius-corner-shape);
|
|
356
356
|
}
|
|
357
357
|
|
|
358
|
-
:where(:is([style*="--display: grid"], [style*="--display: inline-grid"]):not([style*="grid-pile"], [style*="--place-items"], [style*="--items"], [data-ui], ui-accordion, ui-autocomplete, ui-button-group, ui-card, ui-carousel, ui-combobox, ui-command, ui-group, ui-kbd-group, ui-layout, ui-lightbox, ui-menu, ui-multiselect, ui-otp, ui-password, ui-tabs, ui-toaster, ui-toggle-group, ui-tooltip, [popover], kbd)) {
|
|
358
|
+
:where(:is([style*="--display: grid"], [style*="--display: inline-grid"]):not([style*="grid-pile"], [style*="--place-items"], [style*="--items"], [data-ui], ui-accordion, ui-autocomplete, ui-button-group, ui-card, ui-carousel, ui-combobox, ui-command, ui-drawer-indent, ui-group, ui-kbd-group, ui-layout, ui-lightbox, ui-menu, ui-multiselect, ui-otp, ui-password, ui-tabs, ui-toaster, ui-toggle-group, ui-tooltip, [popover], kbd)) {
|
|
359
359
|
place-content: var(--_place-content-resolved, start stretch);
|
|
360
360
|
}
|
|
361
361
|
}
|
package/src/base/_reset.css
CHANGED
|
@@ -62,7 +62,6 @@
|
|
|
62
62
|
:where(body) {
|
|
63
63
|
display: flex;
|
|
64
64
|
flex-direction: column;
|
|
65
|
-
font-optical-sizing: auto;
|
|
66
65
|
position: relative;
|
|
67
66
|
-webkit-text-size-adjust: 100%;
|
|
68
67
|
text-rendering: optimizeLegibility;
|
|
@@ -75,10 +74,25 @@
|
|
|
75
74
|
min-block-size: 100svh;
|
|
76
75
|
/* clip, not hidden: no scroll container, so the viewport keeps scrolling */
|
|
77
76
|
overflow-x: clip;
|
|
77
|
+
|
|
78
|
+
font-synthesis-weight: none;
|
|
78
79
|
font-size: var(--font-size-md);
|
|
79
80
|
line-height: var(--leading-md);
|
|
80
81
|
letter-spacing: var(--tracking-md);
|
|
81
|
-
font-
|
|
82
|
+
font-feature-settings: var(--font-feature-body);
|
|
83
|
+
font-kerning: var(--font-kerning-body);
|
|
84
|
+
font-language-override: var(--font-language-body);
|
|
85
|
+
font-optical-sizing: var(--font-optical-sizing-body, auto);
|
|
86
|
+
font-size-adjust: var(--font-size-adjust-body);
|
|
87
|
+
font-variant-alternates: var(--font-alternates-body);
|
|
88
|
+
font-variant-caps: var(--font-caps-body);
|
|
89
|
+
font-variant-east-asian: var(--font-east-asian-body);
|
|
90
|
+
font-variant-emoji: var(--font-emoji-body);
|
|
91
|
+
font-variant-ligatures: var(--font-ligatures-body);
|
|
92
|
+
font-variant-numeric: var(--font-numeric-body);
|
|
93
|
+
font-variant-position: var(--font-position-body);
|
|
94
|
+
font-variation-settings: var(--font-settings-body);
|
|
95
|
+
font-weight: var(--font-weight-body);
|
|
82
96
|
}
|
|
83
97
|
|
|
84
98
|
/* --focus-ring sets the width; a negative one draws the outline inside the box */
|
package/src/base/_variables.css
CHANGED
|
@@ -281,39 +281,51 @@
|
|
|
281
281
|
--font-weight-strong: 500;
|
|
282
282
|
--font-weight-eyebrow: 600;
|
|
283
283
|
|
|
284
|
-
/* letter
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
--tracking-
|
|
288
|
-
--tracking-
|
|
289
|
-
--tracking-
|
|
290
|
-
--tracking-h5: -0.01em;
|
|
291
|
-
--tracking-h6: -0.005em;
|
|
292
|
-
--tracking-2xl: -0.01em;
|
|
293
|
-
--tracking-xl: 0em;
|
|
294
|
-
--tracking-lg: 0em;
|
|
295
|
-
--tracking-md: 0em;
|
|
296
|
-
--tracking-sm: 0em;
|
|
297
|
-
--tracking-xs: 0em;
|
|
298
|
-
--tracking-2xs: 0em;
|
|
299
|
-
--tracking-eyebrow: 0.05em;
|
|
284
|
+
/* letter spacing modifiers — additive shifts, lengths with a unit (a bare 0 would
|
|
285
|
+
invalidate the calc() below). --tracking-modifier moves every role; set the
|
|
286
|
+
heading or body one to move just that group. */
|
|
287
|
+
--tracking-modifier: 0em;
|
|
288
|
+
--tracking-heading-modifier: var(--tracking-modifier);
|
|
289
|
+
--tracking-body-modifier: var(--tracking-modifier);
|
|
300
290
|
|
|
291
|
+
/* letter-spacing */
|
|
292
|
+
--tracking-display: calc(-0.025em + var(--tracking-heading-modifier));
|
|
293
|
+
--tracking-h1: calc(-0.025em + var(--tracking-heading-modifier));
|
|
294
|
+
--tracking-h2: calc(-0.025em + var(--tracking-heading-modifier));
|
|
295
|
+
--tracking-h3: calc(-0.025em + var(--tracking-heading-modifier));
|
|
296
|
+
--tracking-h4: calc(-0.015em + var(--tracking-heading-modifier));
|
|
297
|
+
--tracking-h5: calc(-0.01em + var(--tracking-heading-modifier));
|
|
298
|
+
--tracking-h6: calc(-0.005em + var(--tracking-heading-modifier));
|
|
299
|
+
--tracking-2xl: calc(-0.01em + var(--tracking-body-modifier));
|
|
300
|
+
--tracking-xl: calc(0em + var(--tracking-body-modifier));
|
|
301
|
+
--tracking-lg: calc(0em + var(--tracking-body-modifier));
|
|
302
|
+
--tracking-md: calc(0em + var(--tracking-body-modifier));
|
|
303
|
+
--tracking-sm: calc(0em + var(--tracking-body-modifier));
|
|
304
|
+
--tracking-xs: calc(0em + var(--tracking-body-modifier));
|
|
305
|
+
--tracking-2xs: calc(0em + var(--tracking-body-modifier));
|
|
306
|
+
--tracking-eyebrow: calc(0.05em + var(--tracking-body-modifier));
|
|
307
|
+
|
|
308
|
+
/* leading multipliers */
|
|
309
|
+
--leading-heading-multiplier: 1;
|
|
310
|
+
--leading-body-multiplier: 1;
|
|
311
|
+
|
|
312
|
+
/* leading */
|
|
313
|
+
--leading-display: calc(0.95 * var(--leading-heading-multiplier));
|
|
314
|
+
--leading-h1: calc(0.95 * var(--leading-heading-multiplier));
|
|
315
|
+
--leading-h2: calc(0.95 * var(--leading-heading-multiplier));
|
|
316
|
+
--leading-h3: calc(1 * var(--leading-heading-multiplier));
|
|
317
|
+
--leading-h4: calc(1 * var(--leading-heading-multiplier));
|
|
318
|
+
--leading-h5: calc(1 * var(--leading-heading-multiplier));
|
|
319
|
+
--leading-h6: calc(1 * var(--leading-heading-multiplier));
|
|
320
|
+
--leading-2xl: calc(1.25 * var(--leading-body-multiplier));
|
|
321
|
+
--leading-xl: calc(1.5 * var(--leading-body-multiplier));
|
|
322
|
+
--leading-lg: calc(1.5 * var(--leading-body-multiplier));
|
|
323
|
+
--leading-md: calc(1.6 * var(--leading-body-multiplier));
|
|
324
|
+
--leading-sm: calc(1.5 * var(--leading-body-multiplier));
|
|
325
|
+
--leading-xs: calc(1.5 * var(--leading-body-multiplier));
|
|
326
|
+
--leading-2xs: calc(1.5 * var(--leading-body-multiplier));
|
|
301
327
|
/* line-height */
|
|
302
|
-
--leading-
|
|
303
|
-
--leading-h1: 0.95;
|
|
304
|
-
--leading-h2: 0.95;
|
|
305
|
-
--leading-h3: 1;
|
|
306
|
-
--leading-h4: 1;
|
|
307
|
-
--leading-h5: 1;
|
|
308
|
-
--leading-h6: 1;
|
|
309
|
-
--leading-2xl: 1.25;
|
|
310
|
-
--leading-xl: 1.5;
|
|
311
|
-
--leading-lg: 1.5;
|
|
312
|
-
--leading-md: 1.6;
|
|
313
|
-
--leading-sm: 1.5;
|
|
314
|
-
--leading-xs: 1.5;
|
|
315
|
-
--leading-2xs: 1.5;
|
|
316
|
-
--leading-eyebrow: 1.2;
|
|
328
|
+
--leading-eyebrow: calc(1.2 * var(--leading-body-multiplier));
|
|
317
329
|
|
|
318
330
|
/* paragraph-spacing — the space above a block in prose; the multiplier
|
|
319
331
|
loosens or tightens every step at once (--ui-prose-flow scales it again per prose) */
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
/** The engine's public API, stored on the root as `_carousel`. */
|
|
2
|
+
interface CarouselApi {
|
|
3
|
+
/** Scrolls to a snap (or, with loop, a slide) by index. */
|
|
4
|
+
goTo(index: number, instant?: boolean): void;
|
|
5
|
+
goToNext(): void;
|
|
6
|
+
goToPrev(): void;
|
|
7
|
+
/** The current snap (or, with loop, slide) index. */
|
|
8
|
+
selectedSnap(): number;
|
|
9
|
+
/** Snap scroll positions in px from the track's start edge, in track order. */
|
|
10
|
+
snapList(): number[];
|
|
11
|
+
/** Scrolls the least distance that brings a slide fully into view. */
|
|
12
|
+
revealSlide(index: number, instant?: boolean): void;
|
|
13
|
+
/** Starts autoplay / auto-scroll, when the root lists one in `data-carousel-plugins`. */
|
|
14
|
+
play(): void;
|
|
15
|
+
stop(): void;
|
|
16
|
+
isPlaying(): boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Reports a manual step (Prev/Next, a dot, a thumb, an arrow key) to
|
|
19
|
+
* autoplay / auto-scroll: stops it, or with `…-stop-on-interaction="false"`
|
|
20
|
+
* restarts its delay. Call before the step.
|
|
21
|
+
*/
|
|
22
|
+
interact(): void;
|
|
23
|
+
/** True for a vertical track (`data-carousel-axis="y"`). */
|
|
24
|
+
readonly vertical: boolean;
|
|
25
|
+
/** True when the track runs right to left. */
|
|
26
|
+
readonly rtl: boolean;
|
|
27
|
+
}
|
|
28
|
+
/** Options read off the root's `data-carousel-*` attributes. */
|
|
29
|
+
interface NativeOptions {
|
|
30
|
+
loop: boolean;
|
|
31
|
+
draggable: boolean;
|
|
32
|
+
dragFree: boolean;
|
|
33
|
+
skipSnaps: boolean;
|
|
34
|
+
startSnap: number;
|
|
35
|
+
vertical: boolean;
|
|
36
|
+
}
|
|
37
|
+
/** How one engine instance reads its options and which controls it owns. */
|
|
38
|
+
interface EngineConfig {
|
|
39
|
+
/** Attribute prefix the options are read from (default `data-carousel-`). */
|
|
40
|
+
prefix?: string;
|
|
41
|
+
/** Defaults for options the attributes leave out. */
|
|
42
|
+
defaults?: Partial<Pick<NativeOptions, "loop" | "dragFree">>;
|
|
43
|
+
/** Wire the root's prev / next / dots slots and its autoplay (false for a thumb strip). */
|
|
44
|
+
controls?: boolean;
|
|
45
|
+
}
|
|
46
|
+
/** Autoplay / auto-scroll settings (see `readAutoOptions`). */
|
|
47
|
+
interface AutoOptions {
|
|
48
|
+
mode: "autoplay" | "auto-scroll";
|
|
49
|
+
delay: number;
|
|
50
|
+
speed: number;
|
|
51
|
+
startDelay: number;
|
|
52
|
+
backward: boolean;
|
|
53
|
+
playOnInit: boolean;
|
|
54
|
+
stopOnInteraction: boolean;
|
|
55
|
+
stopOnMouseEnter: boolean;
|
|
56
|
+
stopOnLastSnap: boolean;
|
|
57
|
+
}
|
|
58
|
+
/** One snap point: a scroll position and the slides that rest at it. */
|
|
59
|
+
interface Snap {
|
|
60
|
+
pos: number;
|
|
61
|
+
slides: number[];
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* @description Adds or removes one token of an element's `data-carousel-state`
|
|
65
|
+
* list, leaving the other tokens in place.
|
|
66
|
+
*/
|
|
67
|
+
declare function setCarouselState(node: Element, token: string, on: boolean): void;
|
|
68
|
+
/**
|
|
69
|
+
* @description The distance a release coasts at constant deceleration
|
|
70
|
+
* (v² / 2a), signed like the velocity.
|
|
71
|
+
*/
|
|
72
|
+
declare function projectRelease(velocity: number, deceleration?: number): number;
|
|
73
|
+
/**
|
|
74
|
+
* @description Visual order for a looped track: rotates the slides so `center`
|
|
75
|
+
* has `before` slides ahead of it (by default half the track).
|
|
76
|
+
*
|
|
77
|
+
* @returns The `order` value per slide, in DOM order.
|
|
78
|
+
*/
|
|
79
|
+
declare function loopOrders(count: number, center: number, before?: number): number[];
|
|
80
|
+
/**
|
|
81
|
+
* @description How many slides a looped track keeps ahead of the current one:
|
|
82
|
+
* the spare slides (those not in view) split evenly around the view, so a
|
|
83
|
+
* drag or flick in either direction has the same room before an end.
|
|
84
|
+
*
|
|
85
|
+
* @param count - Slides in the track.
|
|
86
|
+
* @param perView - Slides the viewport shows at once (current included).
|
|
87
|
+
*/
|
|
88
|
+
declare function loopLead(count: number, perView: number): number;
|
|
89
|
+
/**
|
|
90
|
+
* @description How far to rotate a looped track so a step fits: the slides in
|
|
91
|
+
* view and the slides the target shows must all sit inside the track, in
|
|
92
|
+
* order. Ranges are positions along the track (`order` values); the target's
|
|
93
|
+
* may run past either end.
|
|
94
|
+
*
|
|
95
|
+
* @param count - Slides in the track.
|
|
96
|
+
* @param view - First and last position in view now.
|
|
97
|
+
* @param target - First and last position in view once the step lands.
|
|
98
|
+
* @returns Positions to rotate by (0 when the step already fits, with the
|
|
99
|
+
* span centred otherwise), or null when the span needs more slides than exist.
|
|
100
|
+
*/
|
|
101
|
+
declare function loopShift(count: number, view: {
|
|
102
|
+
first: number;
|
|
103
|
+
last: number;
|
|
104
|
+
}, target: {
|
|
105
|
+
first: number;
|
|
106
|
+
last: number;
|
|
107
|
+
}): number | null;
|
|
108
|
+
/**
|
|
109
|
+
* @description Which snap a release lands on: the one nearest to the
|
|
110
|
+
* projected position, stepping at least one snap in the flick's direction
|
|
111
|
+
* when the release was fast but the projection fell back to the start.
|
|
112
|
+
*
|
|
113
|
+
* @param velocity - Logical px/ms: positive moves the content toward the end
|
|
114
|
+
* edge, which scrolls toward the start.
|
|
115
|
+
*/
|
|
116
|
+
declare function releaseTarget(snaps: readonly Snap[], from: number, projected: number, velocity: number, skipSnaps?: boolean): number;
|
|
117
|
+
/**
|
|
118
|
+
* @description Reads autoplay / auto-scroll from the root: the slug in
|
|
119
|
+
* `data-carousel-plugins` picks the mode (auto-scroll wins when both are
|
|
120
|
+
* listed), and its options come from that plugin's attributes:
|
|
121
|
+
* - autoplay (`data-carousel-autoplay-*`): `delay` (ms, 4000),
|
|
122
|
+
* `stop-on-last-snap` (false; otherwise wraps to the first snap).
|
|
123
|
+
* - auto-scroll (`data-carousel-auto-scroll-*`): `speed` (px per 60 Hz frame,
|
|
124
|
+
* 2), `start-delay` (ms before it moves, and before it resumes, 1000),
|
|
125
|
+
* `direction` (`forward` | `backward`). It doesn't start on its own under
|
|
126
|
+
* `prefers-reduced-motion: reduce`.
|
|
127
|
+
* - both: `play-on-init` (true), `stop-on-interaction` (true: a drag, a
|
|
128
|
+
* scroll, slide focus, or a manual step stops it for good; `false` holds it
|
|
129
|
+
* until the interaction ends), `stop-on-mouse-enter` (false).
|
|
130
|
+
*
|
|
131
|
+
* @returns The settings, or null when neither slug is listed.
|
|
132
|
+
*/
|
|
133
|
+
declare function readAutoOptions(root: Element): AutoOptions | null;
|
|
134
|
+
/**
|
|
135
|
+
* @description Starts the engine on a carousel root.
|
|
136
|
+
*
|
|
137
|
+
* @param root - The carousel root (`<ui-carousel>` or `[data-ui~="carousel"]`),
|
|
138
|
+
* or a thumbs slot.
|
|
139
|
+
* @param viewport - Its viewport slot.
|
|
140
|
+
* @param signal - Aborting it tears everything down.
|
|
141
|
+
* @param config - Where options come from and which controls to wire.
|
|
142
|
+
* @returns The API, or null when the markup has no container.
|
|
143
|
+
*/
|
|
144
|
+
declare function createCarousel(root: Element, viewport: HTMLElement, signal: AbortSignal, config?: EngineConfig): CarouselApi | null;
|
|
145
|
+
/**
|
|
146
|
+
* @description Runs a thumb strip on its own engine (options from
|
|
147
|
+
* `data-carousel-thumbs-*` on the thumbs slot; drag-free by default) and links
|
|
148
|
+
* it to the main carousel: a thumb click steps the main carousel there, and
|
|
149
|
+
* each main selection marks its thumb (`active` token and `aria-current`) and
|
|
150
|
+
* scrolls the strip just enough to show it.
|
|
151
|
+
*
|
|
152
|
+
* @param main - The main carousel's API.
|
|
153
|
+
* @param root - The main carousel root (its `zazz:carousel-select` drives the strip).
|
|
154
|
+
* @param thumbsNode - The thumbs slot.
|
|
155
|
+
* @param signal - Aborting it tears the strip down.
|
|
156
|
+
* @returns The strip's API, or null when it has no viewport or container.
|
|
157
|
+
*/
|
|
158
|
+
declare function linkThumbs(main: CarouselApi, root: Element, thumbsNode: Element, signal: AbortSignal): CarouselApi | null;
|
|
159
|
+
export { createCarousel, linkThumbs, loopLead, loopShift, loopOrders, projectRelease, readAutoOptions, releaseTarget, setCarouselState, };
|
|
160
|
+
export type { CarouselApi };
|
|
161
|
+
//# sourceMappingURL=carousel-scroll.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"carousel-scroll.d.ts","sourceRoot":"","sources":["carousel-scroll.ts"],"names":[],"mappings":"AA6CA,kEAAkE;AAClE,UAAU,WAAW;IACnB,2DAA2D;IAC3D,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAC7C,QAAQ,IAAI,IAAI,CAAC;IACjB,QAAQ,IAAI,IAAI,CAAC;IACjB,qDAAqD;IACrD,YAAY,IAAI,MAAM,CAAC;IACvB,+EAA+E;IAC/E,QAAQ,IAAI,MAAM,EAAE,CAAC;IACrB,sEAAsE;IACtE,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IACpD,yFAAyF;IACzF,IAAI,IAAI,IAAI,CAAC;IACb,IAAI,IAAI,IAAI,CAAC;IACb,SAAS,IAAI,OAAO,CAAC;IACrB;;;;OAIG;IACH,QAAQ,IAAI,IAAI,CAAC;IACjB,4DAA4D;IAC5D,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,8CAA8C;IAC9C,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAC;CACvB;AAED,gEAAgE;AAChE,UAAU,aAAa;IACrB,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,E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