iryx-ui 0.20.0 → 0.21.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/dist/component-names.d.ts +1 -1
- package/dist/component-names.js +1 -1
- package/dist/components/Carousel.js +5 -0
- package/dist/components/Carousel.vue.d.ts +74 -0
- package/dist/components/Carousel.vue_vue_type_script_setup_true_lang.js +220 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +124 -122
- package/dist/index.d.ts +1 -0
- package/dist/index.js +127 -126
- package/dist/theme/carousel.d.ts +65 -0
- package/dist/theme/carousel.js +22 -0
- package/dist/theme/form.d.ts +3 -3
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Consumed by the Vue plugin (global registration) and the Nuxt module
|
|
4
4
|
* (auto-imports). Keep in sync with `src/components/index.ts`.
|
|
5
5
|
*/
|
|
6
|
-
export declare const componentNames: readonly ["Accordion", "Alert", "App", "AppShell", "AspectRatio", "AuthProviders", "Avatar", "AvatarGroup", "Badge", "BarChart", "Banner", "Breadcrumb", "Button", "ButtonGroup", "Calendar", "Card", "ChartLegend", "Checkbox", "ColorPicker", "Combobox", "Collapsible", "CommandPalette", "Container", "ConfirmDialog", "ContextMenu", "DateField", "DatePicker", "DateRangePicker", "Dialog", "DonutChart", "Drawer", "DropdownMenu", "Editable", "EmptyState", "FileUpload", "Form", "FormField", "HoverCard", "Icon", "Input", "Kbd", "Label", "LineChart", "NavigationMenu", "NumberInput", "Menubar", "PageHeader", "Pagination", "PasswordInput", "PinInput", "Popover", "Progress", "RadioGroup", "Rating", "ScrollArea", "ScrollFade", "Select", "Separator", "Sidebar", "SignaturePad", "Skeleton", "Slider", "Sparkline", "Splitter", "Stat", "Stepper", "Switch", "Table", "Tabs", "TagsInput", "Textarea", "Toaster", "Toggle", "ToggleGroup", "TimeField", "Timeline", "Toolbar", "Tooltip", "Tree"];
|
|
6
|
+
export declare const componentNames: readonly ["Accordion", "Alert", "App", "AppShell", "AspectRatio", "AuthProviders", "Avatar", "AvatarGroup", "Badge", "BarChart", "Banner", "Breadcrumb", "Button", "ButtonGroup", "Calendar", "Card", "Carousel", "ChartLegend", "Checkbox", "ColorPicker", "Combobox", "Collapsible", "CommandPalette", "Container", "ConfirmDialog", "ContextMenu", "DateField", "DatePicker", "DateRangePicker", "Dialog", "DonutChart", "Drawer", "DropdownMenu", "Editable", "EmptyState", "FileUpload", "Form", "FormField", "HoverCard", "Icon", "Input", "Kbd", "Label", "LineChart", "NavigationMenu", "NumberInput", "Menubar", "PageHeader", "Pagination", "PasswordInput", "PinInput", "Popover", "Progress", "RadioGroup", "Rating", "ScrollArea", "ScrollFade", "Select", "Separator", "Sidebar", "SignaturePad", "Skeleton", "Slider", "Sparkline", "Splitter", "Stat", "Stepper", "Switch", "Table", "Tabs", "TagsInput", "Textarea", "Toaster", "Toggle", "ToggleGroup", "TimeField", "Timeline", "Toolbar", "Tooltip", "Tree"];
|
|
7
7
|
export type ComponentName = (typeof componentNames)[number];
|
|
8
8
|
/**
|
|
9
9
|
* Names of every block exported from `iryx-ui/marketing`.
|
package/dist/component-names.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/component-names.ts
|
|
2
|
-
var e = /* @__PURE__ */ "Accordion.Alert.App.AppShell.AspectRatio.AuthProviders.Avatar.AvatarGroup.Badge.BarChart.Banner.Breadcrumb.Button.ButtonGroup.Calendar.Card.ChartLegend.Checkbox.ColorPicker.Combobox.Collapsible.CommandPalette.Container.ConfirmDialog.ContextMenu.DateField.DatePicker.DateRangePicker.Dialog.DonutChart.Drawer.DropdownMenu.Editable.EmptyState.FileUpload.Form.FormField.HoverCard.Icon.Input.Kbd.Label.LineChart.NavigationMenu.NumberInput.Menubar.PageHeader.Pagination.PasswordInput.PinInput.Popover.Progress.RadioGroup.Rating.ScrollArea.ScrollFade.Select.Separator.Sidebar.SignaturePad.Skeleton.Slider.Sparkline.Splitter.Stat.Stepper.Switch.Table.Tabs.TagsInput.Textarea.Toaster.Toggle.ToggleGroup.TimeField.Timeline.Toolbar.Tooltip.Tree".split("."), t = [
|
|
2
|
+
var e = /* @__PURE__ */ "Accordion.Alert.App.AppShell.AspectRatio.AuthProviders.Avatar.AvatarGroup.Badge.BarChart.Banner.Breadcrumb.Button.ButtonGroup.Calendar.Card.Carousel.ChartLegend.Checkbox.ColorPicker.Combobox.Collapsible.CommandPalette.Container.ConfirmDialog.ContextMenu.DateField.DatePicker.DateRangePicker.Dialog.DonutChart.Drawer.DropdownMenu.Editable.EmptyState.FileUpload.Form.FormField.HoverCard.Icon.Input.Kbd.Label.LineChart.NavigationMenu.NumberInput.Menubar.PageHeader.Pagination.PasswordInput.PinInput.Popover.Progress.RadioGroup.Rating.ScrollArea.ScrollFade.Select.Separator.Sidebar.SignaturePad.Skeleton.Slider.Sparkline.Splitter.Stat.Stepper.Switch.Table.Tabs.TagsInput.Textarea.Toaster.Toggle.ToggleGroup.TimeField.Timeline.Toolbar.Tooltip.Tree".split("."), t = [
|
|
3
3
|
"BrowserFrame",
|
|
4
4
|
"FeatureCard",
|
|
5
5
|
"Hero",
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import type { ClassValue } from '../class-value';
|
|
2
|
+
export interface CarouselProps<Item = unknown> {
|
|
3
|
+
/** What to lay out. Each one is rendered through the default slot. */
|
|
4
|
+
items?: Item[];
|
|
5
|
+
/**
|
|
6
|
+
* How many fit across, at the widest. Below `sm` it is always one, and
|
|
7
|
+
* `'auto'` leaves the width to the slide's own content.
|
|
8
|
+
*/
|
|
9
|
+
perView?: 1 | 2 | 3 | 4 | 'auto';
|
|
10
|
+
gap?: 'none' | 'sm' | 'md' | 'lg';
|
|
11
|
+
/** Show the previous and next buttons. */
|
|
12
|
+
arrows?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Let a mouse drag the track. Touch and trackpad pan it natively either way.
|
|
15
|
+
*/
|
|
16
|
+
draggable?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* How far a drag has to travel before it moves on, as a fraction of a slide.
|
|
19
|
+
* A quarter by default: enough that a nudge does not count, little enough
|
|
20
|
+
* that the track goes where it was pushed. `1` demands a whole slide.
|
|
21
|
+
*/
|
|
22
|
+
dragThreshold?: number;
|
|
23
|
+
/** Show the row of dots under the track. */
|
|
24
|
+
dots?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Accessible name for the carousel — "Customer stories", "Screenshots".
|
|
27
|
+
* A carousel with no name is a scroll region a screen reader cannot place.
|
|
28
|
+
*/
|
|
29
|
+
label?: string;
|
|
30
|
+
/** Accessible names for the buttons — override for non-English sites. */
|
|
31
|
+
previousLabel?: string;
|
|
32
|
+
nextLabel?: string;
|
|
33
|
+
/** Skip built-in classes; you take over styling entirely. */
|
|
34
|
+
unstyled?: boolean;
|
|
35
|
+
class?: ClassValue;
|
|
36
|
+
/** Override classes per element, e.g. `{ dot: 'size-3' }`. */
|
|
37
|
+
ui?: {
|
|
38
|
+
root?: string;
|
|
39
|
+
track?: string;
|
|
40
|
+
item?: string;
|
|
41
|
+
viewport?: string;
|
|
42
|
+
control?: string;
|
|
43
|
+
dots?: string;
|
|
44
|
+
dot?: string;
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
declare const __VLS_export: <Item>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
48
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<(CarouselProps<Item> & {
|
|
49
|
+
active?: number;
|
|
50
|
+
}) & {
|
|
51
|
+
"onUpdate:active"?: ((value: number) => any) | undefined;
|
|
52
|
+
}> & (typeof globalThis extends {
|
|
53
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
54
|
+
} ? P : {});
|
|
55
|
+
expose: (exposed: {}) => void;
|
|
56
|
+
attrs: any;
|
|
57
|
+
slots: {
|
|
58
|
+
default?: (props: {
|
|
59
|
+
item: Item;
|
|
60
|
+
index: number;
|
|
61
|
+
active: boolean;
|
|
62
|
+
}) => any;
|
|
63
|
+
};
|
|
64
|
+
emit: (event: "update:active", value: number) => void;
|
|
65
|
+
}>) => import("vue").VNode & {
|
|
66
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
67
|
+
};
|
|
68
|
+
declare const _default: typeof __VLS_export;
|
|
69
|
+
export default _default;
|
|
70
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
71
|
+
[K in keyof T]: T[K];
|
|
72
|
+
} : {
|
|
73
|
+
[K in keyof T as K]: T[K];
|
|
74
|
+
}) & {};
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
import { useIryxUiConfig as e } from "../config.js";
|
|
2
|
+
import t from "./Icon.js";
|
|
3
|
+
import n from "./Button.js";
|
|
4
|
+
import { useScrollEdges as r } from "../composables/scroll-fade.js";
|
|
5
|
+
import { carouselTheme as i } from "../theme/carousel.js";
|
|
6
|
+
import { Fragment as a, computed as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createVNode as u, defineComponent as d, mergeModels as f, nextTick as p, normalizeClass as m, normalizeStyle as h, onBeforeUnmount as g, openBlock as _, ref as v, renderList as y, renderSlot as b, unref as x, useModel as S, watch as C, withCtx as w, withModifiers as ee } from "vue";
|
|
7
|
+
import { ArrowLeft01Icon as te, ArrowRight01Icon as ne } from "@hugeicons/core-free-icons";
|
|
8
|
+
//#region src/components/Carousel.vue?vue&type=script&setup=true&lang.ts
|
|
9
|
+
var T = ["aria-label"], E = ["aria-label"], D = ["aria-label", "data-state"], O = [
|
|
10
|
+
"aria-label",
|
|
11
|
+
"aria-current",
|
|
12
|
+
"data-state",
|
|
13
|
+
"onClick"
|
|
14
|
+
], k = /*@__PURE__*/ d({
|
|
15
|
+
__name: "Carousel",
|
|
16
|
+
props: /*@__PURE__*/ f({
|
|
17
|
+
items: {},
|
|
18
|
+
perView: { default: 1 },
|
|
19
|
+
gap: {},
|
|
20
|
+
arrows: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
default: void 0
|
|
23
|
+
},
|
|
24
|
+
draggable: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
default: void 0
|
|
27
|
+
},
|
|
28
|
+
dragThreshold: { default: .25 },
|
|
29
|
+
dots: {
|
|
30
|
+
type: Boolean,
|
|
31
|
+
default: void 0
|
|
32
|
+
},
|
|
33
|
+
label: { default: "Carousel" },
|
|
34
|
+
previousLabel: { default: "Previous" },
|
|
35
|
+
nextLabel: { default: "Next" },
|
|
36
|
+
unstyled: {
|
|
37
|
+
type: Boolean,
|
|
38
|
+
default: void 0
|
|
39
|
+
},
|
|
40
|
+
class: { type: [
|
|
41
|
+
String,
|
|
42
|
+
Boolean,
|
|
43
|
+
null,
|
|
44
|
+
Array
|
|
45
|
+
] },
|
|
46
|
+
ui: {}
|
|
47
|
+
}, {
|
|
48
|
+
active: { default: 0 },
|
|
49
|
+
activeModifiers: {}
|
|
50
|
+
}),
|
|
51
|
+
emits: ["update:active"],
|
|
52
|
+
setup(d) {
|
|
53
|
+
let f = d, k = S(d, "active"), A = e(), j = o(() => f.unstyled ?? A.unstyled), M = o(() => i({ gap: f.gap }));
|
|
54
|
+
function N(e, t) {
|
|
55
|
+
return j.value ? [f.ui?.[e], t] : M.value[e]({ class: [f.ui?.[e], t] });
|
|
56
|
+
}
|
|
57
|
+
let P = v(), { atStart: re, atEnd: ie, overflowing: ae } = r(P, v("horizontal")), oe = o(() => ({
|
|
58
|
+
none: 0,
|
|
59
|
+
sm: .5,
|
|
60
|
+
md: 1,
|
|
61
|
+
lg: 1.5
|
|
62
|
+
})[f.gap ?? "md"]);
|
|
63
|
+
function F(e) {
|
|
64
|
+
let t = oe.value * (e - 1) / e;
|
|
65
|
+
return `calc(${100 / e}% - ${t}rem)`;
|
|
66
|
+
}
|
|
67
|
+
let I = o(() => {
|
|
68
|
+
if (f.perView !== "auto") return {
|
|
69
|
+
"--iryx-carousel-item": F(f.perView),
|
|
70
|
+
"--iryx-carousel-item-sm": F(Math.min(f.perView, 2))
|
|
71
|
+
};
|
|
72
|
+
}), L = o(() => f.items?.length ?? 0), R = v(), z = o(() => R.value ?? Math.max(L.value, 1)), B;
|
|
73
|
+
function V() {
|
|
74
|
+
let e = P.value;
|
|
75
|
+
if (!e) return;
|
|
76
|
+
if (!e.clientWidth) {
|
|
77
|
+
R.value = void 0;
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
let t = e.scrollWidth - e.clientWidth + 1, n = [...e.children].filter((n) => n.offsetLeft - e.offsetLeft <= t).length;
|
|
81
|
+
R.value = Math.max(n, 1);
|
|
82
|
+
}
|
|
83
|
+
C(P, (e) => {
|
|
84
|
+
if (B?.disconnect(), B = void 0, e && (V(), !(typeof ResizeObserver > "u"))) {
|
|
85
|
+
B = new ResizeObserver(V), B.observe(e);
|
|
86
|
+
for (let t of e.children) B.observe(t);
|
|
87
|
+
}
|
|
88
|
+
}, { immediate: !0 }), C(L, () => p(V)), g(() => B?.disconnect());
|
|
89
|
+
let H = v(), U;
|
|
90
|
+
function W(e) {
|
|
91
|
+
let t = P.value, n = t?.children[e];
|
|
92
|
+
!t || !n || (H.value = e, k.value = e, t.scrollTo({ left: n.offsetLeft - t.offsetLeft }), clearTimeout(U), U = setTimeout(() => H.value = void 0, 1e3));
|
|
93
|
+
}
|
|
94
|
+
function G(e) {
|
|
95
|
+
W(Math.min(Math.max(k.value + e, 0), z.value - 1));
|
|
96
|
+
}
|
|
97
|
+
function K() {
|
|
98
|
+
let e = P.value;
|
|
99
|
+
if (!e) return k.value;
|
|
100
|
+
let t = [...e.children], n = e.scrollLeft + e.offsetLeft;
|
|
101
|
+
return t.reduce((e, r, i) => Math.abs(r.offsetLeft - n) < Math.abs(t[e].offsetLeft - n) ? i : e, 0);
|
|
102
|
+
}
|
|
103
|
+
C(k, (e) => {
|
|
104
|
+
H.value === void 0 && e !== K() && W(e);
|
|
105
|
+
});
|
|
106
|
+
function se() {
|
|
107
|
+
if (!P.value) return;
|
|
108
|
+
V();
|
|
109
|
+
let e = Math.min(K(), z.value - 1);
|
|
110
|
+
if (H.value !== void 0) {
|
|
111
|
+
e === H.value && (H.value = void 0, clearTimeout(U));
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
k.value = e;
|
|
115
|
+
}
|
|
116
|
+
let q = v(!1), J = 0, Y = 0, X = 0, Z = 0;
|
|
117
|
+
function ce(e) {
|
|
118
|
+
let t = P.value;
|
|
119
|
+
!(f.draggable ?? !0) || e.pointerType === "touch" || !t || (q.value = !0, Z = 0, J = e.clientX, Y = t.scrollLeft, X = k.value, t.setPointerCapture(e.pointerId), t.style.scrollBehavior = "auto");
|
|
120
|
+
}
|
|
121
|
+
function Q(e) {
|
|
122
|
+
let t = [...e.children], n = (t[1]?.offsetLeft ?? 0) - (t[0]?.offsetLeft ?? 0);
|
|
123
|
+
if (n <= 0) return k.value;
|
|
124
|
+
let r = (e.scrollLeft - Y) / n, i = Math.trunc(r), a = Math.abs(r - i) >= Math.min(Math.max(f.dragThreshold, 0), 1) ? Math.sign(r) : 0;
|
|
125
|
+
return Math.min(Math.max(X + i + a, 0), z.value - 1);
|
|
126
|
+
}
|
|
127
|
+
function le(e) {
|
|
128
|
+
let t = P.value;
|
|
129
|
+
if (!q.value || !t) return;
|
|
130
|
+
let n = e.clientX - J;
|
|
131
|
+
Z = Math.max(Z, Math.abs(n)), t.scrollLeft = Y - n;
|
|
132
|
+
}
|
|
133
|
+
function $(e) {
|
|
134
|
+
let t = P.value;
|
|
135
|
+
if (!q.value || !t) return;
|
|
136
|
+
q.value = !1, t.releasePointerCapture(e.pointerId), t.style.scrollBehavior = "";
|
|
137
|
+
let n = Q(t);
|
|
138
|
+
p(() => W(n));
|
|
139
|
+
}
|
|
140
|
+
function ue(e) {
|
|
141
|
+
Z > 4 && (e.preventDefault(), e.stopPropagation(), Z = 0);
|
|
142
|
+
}
|
|
143
|
+
function de(e) {
|
|
144
|
+
e.key === "ArrowRight" ? (e.preventDefault(), G(1)) : e.key === "ArrowLeft" && (e.preventDefault(), G(-1));
|
|
145
|
+
}
|
|
146
|
+
let fe = o(() => (f.arrows ?? !0) && ae.value), pe = o(() => (f.dots ?? !0) && z.value > 1);
|
|
147
|
+
return (e, r) => (_(), c("div", {
|
|
148
|
+
role: "group",
|
|
149
|
+
"aria-roledescription": "carousel",
|
|
150
|
+
"aria-label": f.label,
|
|
151
|
+
class: m(N("root", f.class))
|
|
152
|
+
}, [l("div", { class: m(N("viewport")) }, [l("div", {
|
|
153
|
+
ref_key: "track",
|
|
154
|
+
ref: P,
|
|
155
|
+
tabindex: "0",
|
|
156
|
+
role: "group",
|
|
157
|
+
"aria-label": f.label,
|
|
158
|
+
class: m(N("track", q.value ? "snap-none scroll-auto cursor-grabbing select-none" : f.draggable ?? !0 ? "cursor-grab" : void 0)),
|
|
159
|
+
onScroll: se,
|
|
160
|
+
onKeydown: de,
|
|
161
|
+
onPointerdown: ce,
|
|
162
|
+
onPointermove: le,
|
|
163
|
+
onPointerup: $,
|
|
164
|
+
onPointercancel: $,
|
|
165
|
+
onClickCapture: ue,
|
|
166
|
+
onDragstart: r[0] ||= ee(() => {}, ["prevent"])
|
|
167
|
+
}, [(_(!0), c(a, null, y(f.items, (t, n) => (_(), c("div", {
|
|
168
|
+
key: n,
|
|
169
|
+
role: "group",
|
|
170
|
+
"aria-roledescription": "slide",
|
|
171
|
+
"aria-label": `${n + 1} of ${L.value}`,
|
|
172
|
+
"data-state": n === k.value ? "active" : "inactive",
|
|
173
|
+
style: h(I.value),
|
|
174
|
+
class: m(N("item", f.perView === "auto" ? "w-auto" : "w-full sm:w-[var(--iryx-carousel-item-sm)] lg:w-[var(--iryx-carousel-item)]"))
|
|
175
|
+
}, [b(e.$slots, "default", {
|
|
176
|
+
item: t,
|
|
177
|
+
index: n,
|
|
178
|
+
active: n === k.value
|
|
179
|
+
})], 14, D))), 128))], 42, E), fe.value ? (_(), c(a, { key: 0 }, [l("div", { class: m(N("control", "left-2")) }, [u(n, {
|
|
180
|
+
variant: "outline",
|
|
181
|
+
size: "sm",
|
|
182
|
+
square: "",
|
|
183
|
+
"aria-label": f.previousLabel,
|
|
184
|
+
disabled: x(re),
|
|
185
|
+
onClick: r[1] ||= (e) => G(-1)
|
|
186
|
+
}, {
|
|
187
|
+
default: w(() => [u(t, {
|
|
188
|
+
icon: x(te),
|
|
189
|
+
"data-icon": ""
|
|
190
|
+
}, null, 8, ["icon"])]),
|
|
191
|
+
_: 1
|
|
192
|
+
}, 8, ["aria-label", "disabled"])], 2), l("div", { class: m(N("control", "right-2")) }, [u(n, {
|
|
193
|
+
variant: "outline",
|
|
194
|
+
size: "sm",
|
|
195
|
+
square: "",
|
|
196
|
+
"aria-label": f.nextLabel,
|
|
197
|
+
disabled: x(ie),
|
|
198
|
+
onClick: r[2] ||= (e) => G(1)
|
|
199
|
+
}, {
|
|
200
|
+
default: w(() => [u(t, {
|
|
201
|
+
icon: x(ne),
|
|
202
|
+
"data-icon": ""
|
|
203
|
+
}, null, 8, ["icon"])]),
|
|
204
|
+
_: 1
|
|
205
|
+
}, 8, ["aria-label", "disabled"])], 2)], 64)) : s("", !0)], 2), pe.value ? (_(), c("div", {
|
|
206
|
+
key: 0,
|
|
207
|
+
class: m(N("dots"))
|
|
208
|
+
}, [(_(!0), c(a, null, y(z.value, (e, t) => (_(), c("button", {
|
|
209
|
+
key: t,
|
|
210
|
+
type: "button",
|
|
211
|
+
"aria-label": `Go to slide ${t + 1}`,
|
|
212
|
+
"aria-current": t === k.value,
|
|
213
|
+
"data-state": t === k.value ? "active" : "inactive",
|
|
214
|
+
class: m(N("dot")),
|
|
215
|
+
onClick: (e) => W(t)
|
|
216
|
+
}, null, 10, O))), 128))], 2)) : s("", !0)], 10, T));
|
|
217
|
+
}
|
|
218
|
+
});
|
|
219
|
+
//#endregion
|
|
220
|
+
export { k as default };
|
|
@@ -14,6 +14,7 @@ export { default as Button } from './Button.vue';
|
|
|
14
14
|
export { default as ButtonGroup } from './ButtonGroup.vue';
|
|
15
15
|
export { default as Calendar } from './Calendar.vue';
|
|
16
16
|
export { default as Card } from './Card.vue';
|
|
17
|
+
export { default as Carousel } from './Carousel.vue';
|
|
17
18
|
export { default as ChartLegend } from './ChartLegend.vue';
|
|
18
19
|
export { default as Checkbox } from './Checkbox.vue';
|
|
19
20
|
export { default as Collapsible } from './Collapsible.vue';
|
package/dist/components/index.js
CHANGED
|
@@ -18,68 +18,69 @@ import g from "./Breadcrumb.js";
|
|
|
18
18
|
import _ from "./ButtonGroup.js";
|
|
19
19
|
import v from "./Calendar.js";
|
|
20
20
|
import y from "./Card.js";
|
|
21
|
-
import b from "./
|
|
22
|
-
import x from "./
|
|
23
|
-
import S from "./
|
|
24
|
-
import C from "./
|
|
25
|
-
import w from "./
|
|
26
|
-
import T from "./
|
|
27
|
-
import E from "./
|
|
28
|
-
import D from "./
|
|
29
|
-
import O from "./
|
|
30
|
-
import k from "./
|
|
31
|
-
import A from "./
|
|
32
|
-
import j from "./
|
|
33
|
-
import M from "./
|
|
34
|
-
import N from "./
|
|
35
|
-
import P from "./
|
|
36
|
-
import F from "./
|
|
37
|
-
import I from "./
|
|
38
|
-
import L from "./
|
|
39
|
-
import R from "./
|
|
40
|
-
import z from "./
|
|
41
|
-
import B from "./
|
|
42
|
-
import V from "./
|
|
43
|
-
import H from "./
|
|
44
|
-
import U from "./
|
|
45
|
-
import W from "./
|
|
46
|
-
import G from "./
|
|
47
|
-
import K from "./
|
|
48
|
-
import q from "./
|
|
49
|
-
import J from "./
|
|
50
|
-
import Y from "./
|
|
51
|
-
import X from "./
|
|
52
|
-
import Z from "./
|
|
53
|
-
import Q from "./
|
|
54
|
-
import $ from "./
|
|
55
|
-
import ee from "./
|
|
56
|
-
import te from "./
|
|
57
|
-
import ne from "./
|
|
58
|
-
import re from "./
|
|
59
|
-
import ie from "./
|
|
60
|
-
import ae from "./
|
|
61
|
-
import oe from "./
|
|
62
|
-
import se from "./
|
|
63
|
-
import ce from "./
|
|
64
|
-
import le from "./
|
|
65
|
-
import ue from "./
|
|
66
|
-
import de from "./
|
|
67
|
-
import fe from "./
|
|
68
|
-
import pe from "./
|
|
69
|
-
import me from "./
|
|
70
|
-
import he from "./
|
|
71
|
-
import ge from "./
|
|
72
|
-
import _e from "./
|
|
73
|
-
import ve from "./
|
|
74
|
-
import ye from "./
|
|
75
|
-
import be from "./
|
|
76
|
-
import xe from "./
|
|
77
|
-
import Se from "./
|
|
78
|
-
import Ce from "./
|
|
79
|
-
import we from "./
|
|
80
|
-
import Te from "./
|
|
21
|
+
import b from "./Carousel.js";
|
|
22
|
+
import x from "./Checkbox.js";
|
|
23
|
+
import S from "./Collapsible.js";
|
|
24
|
+
import C from "./ColorPicker.js";
|
|
25
|
+
import w from "./Combobox.js";
|
|
26
|
+
import T from "./Kbd.js";
|
|
27
|
+
import E from "./CommandPalette.js";
|
|
28
|
+
import D from "./Dialog.js";
|
|
29
|
+
import O from "./ConfirmDialog.js";
|
|
30
|
+
import k from "./Container.js";
|
|
31
|
+
import A from "./ContextMenu.js";
|
|
32
|
+
import j from "./DateField.js";
|
|
33
|
+
import M from "./DatePicker.js";
|
|
34
|
+
import N from "./DateRangePicker.js";
|
|
35
|
+
import P from "./DonutChart.js";
|
|
36
|
+
import F from "./DropdownMenu.js";
|
|
37
|
+
import I from "./Editable.js";
|
|
38
|
+
import L from "./EmptyState.js";
|
|
39
|
+
import R from "./FileUpload.js";
|
|
40
|
+
import z from "./Form.js";
|
|
41
|
+
import B from "./Label.js";
|
|
42
|
+
import V from "./FormField.js";
|
|
43
|
+
import H from "./HoverCard.js";
|
|
44
|
+
import U from "./Input.js";
|
|
45
|
+
import W from "./LineChart.js";
|
|
46
|
+
import G from "./Menubar.js";
|
|
47
|
+
import K from "./NavigationMenu.js";
|
|
48
|
+
import q from "./NumberInput.js";
|
|
49
|
+
import J from "./PageHeader.js";
|
|
50
|
+
import Y from "./Pagination.js";
|
|
51
|
+
import X from "./PasswordInput.js";
|
|
52
|
+
import Z from "./PinInput.js";
|
|
53
|
+
import Q from "./Popover.js";
|
|
54
|
+
import $ from "./Progress.js";
|
|
55
|
+
import ee from "./RadioGroup.js";
|
|
56
|
+
import te from "./Rating.js";
|
|
57
|
+
import ne from "./ScrollArea.js";
|
|
58
|
+
import re from "./ScrollFade.js";
|
|
59
|
+
import ie from "./Select.js";
|
|
60
|
+
import ae from "./Separator.js";
|
|
61
|
+
import oe from "./Sidebar.js";
|
|
62
|
+
import se from "./SignaturePad.js";
|
|
63
|
+
import ce from "./Skeleton.js";
|
|
64
|
+
import le from "./Slider.js";
|
|
65
|
+
import ue from "./Sparkline.js";
|
|
66
|
+
import de from "./Splitter.js";
|
|
67
|
+
import fe from "./Stat.js";
|
|
68
|
+
import pe from "./Stepper.js";
|
|
69
|
+
import me from "./Switch.js";
|
|
70
|
+
import he from "./Table.js";
|
|
71
|
+
import ge from "./Tabs.js";
|
|
72
|
+
import _e from "./TagsInput.js";
|
|
73
|
+
import ve from "./Textarea.js";
|
|
74
|
+
import ye from "./TimeField.js";
|
|
75
|
+
import be from "./Timeline.js";
|
|
76
|
+
import xe from "./Toaster.js";
|
|
77
|
+
import Se from "./Toggle.js";
|
|
78
|
+
import Ce from "./ToggleGroup.js";
|
|
79
|
+
import we from "./Toolbar.js";
|
|
80
|
+
import Te from "./Tooltip.js";
|
|
81
|
+
import Ee from "./Tree.js";
|
|
81
82
|
//#region src/components/index.ts
|
|
82
|
-
var
|
|
83
|
+
var De = /* @__PURE__ */ e({
|
|
83
84
|
Accordion: () => n,
|
|
84
85
|
Alert: () => r,
|
|
85
86
|
App: () => i,
|
|
@@ -96,69 +97,70 @@ var Ee = /* @__PURE__ */ e({
|
|
|
96
97
|
ButtonGroup: () => _,
|
|
97
98
|
Calendar: () => v,
|
|
98
99
|
Card: () => y,
|
|
100
|
+
Carousel: () => b,
|
|
99
101
|
ChartLegend: () => m,
|
|
100
|
-
Checkbox: () =>
|
|
101
|
-
Collapsible: () =>
|
|
102
|
-
ColorPicker: () =>
|
|
103
|
-
Combobox: () =>
|
|
104
|
-
CommandPalette: () =>
|
|
105
|
-
ConfirmDialog: () =>
|
|
106
|
-
Container: () =>
|
|
107
|
-
ContextMenu: () =>
|
|
108
|
-
DateField: () =>
|
|
109
|
-
DatePicker: () =>
|
|
110
|
-
DateRangePicker: () =>
|
|
111
|
-
Dialog: () =>
|
|
112
|
-
DonutChart: () =>
|
|
102
|
+
Checkbox: () => x,
|
|
103
|
+
Collapsible: () => S,
|
|
104
|
+
ColorPicker: () => C,
|
|
105
|
+
Combobox: () => w,
|
|
106
|
+
CommandPalette: () => E,
|
|
107
|
+
ConfirmDialog: () => O,
|
|
108
|
+
Container: () => k,
|
|
109
|
+
ContextMenu: () => A,
|
|
110
|
+
DateField: () => j,
|
|
111
|
+
DatePicker: () => M,
|
|
112
|
+
DateRangePicker: () => N,
|
|
113
|
+
Dialog: () => D,
|
|
114
|
+
DonutChart: () => P,
|
|
113
115
|
Drawer: () => a,
|
|
114
|
-
DropdownMenu: () =>
|
|
115
|
-
Editable: () =>
|
|
116
|
-
EmptyState: () =>
|
|
117
|
-
FileUpload: () =>
|
|
118
|
-
Form: () =>
|
|
119
|
-
FormField: () =>
|
|
120
|
-
HoverCard: () =>
|
|
116
|
+
DropdownMenu: () => F,
|
|
117
|
+
Editable: () => I,
|
|
118
|
+
EmptyState: () => L,
|
|
119
|
+
FileUpload: () => R,
|
|
120
|
+
Form: () => z,
|
|
121
|
+
FormField: () => V,
|
|
122
|
+
HoverCard: () => H,
|
|
121
123
|
Icon: () => t,
|
|
122
|
-
Input: () =>
|
|
123
|
-
Kbd: () =>
|
|
124
|
-
Label: () =>
|
|
125
|
-
LineChart: () =>
|
|
126
|
-
Menubar: () =>
|
|
127
|
-
NavigationMenu: () =>
|
|
128
|
-
NumberInput: () =>
|
|
129
|
-
PageHeader: () =>
|
|
130
|
-
Pagination: () =>
|
|
131
|
-
PasswordInput: () =>
|
|
132
|
-
PinInput: () =>
|
|
133
|
-
Popover: () =>
|
|
134
|
-
Progress: () =>
|
|
135
|
-
RadioGroup: () =>
|
|
136
|
-
Rating: () =>
|
|
137
|
-
ScrollArea: () =>
|
|
138
|
-
ScrollFade: () =>
|
|
139
|
-
Select: () =>
|
|
140
|
-
Separator: () =>
|
|
141
|
-
Sidebar: () =>
|
|
142
|
-
SignaturePad: () =>
|
|
143
|
-
Skeleton: () =>
|
|
144
|
-
Slider: () =>
|
|
145
|
-
Sparkline: () =>
|
|
146
|
-
Splitter: () =>
|
|
147
|
-
Stat: () =>
|
|
148
|
-
Stepper: () =>
|
|
149
|
-
Switch: () =>
|
|
150
|
-
Table: () =>
|
|
151
|
-
Tabs: () =>
|
|
152
|
-
TagsInput: () =>
|
|
153
|
-
Textarea: () =>
|
|
154
|
-
TimeField: () =>
|
|
155
|
-
Timeline: () =>
|
|
156
|
-
Toaster: () =>
|
|
157
|
-
Toggle: () =>
|
|
158
|
-
ToggleGroup: () =>
|
|
159
|
-
Toolbar: () =>
|
|
160
|
-
Tooltip: () =>
|
|
161
|
-
Tree: () =>
|
|
124
|
+
Input: () => U,
|
|
125
|
+
Kbd: () => T,
|
|
126
|
+
Label: () => B,
|
|
127
|
+
LineChart: () => W,
|
|
128
|
+
Menubar: () => G,
|
|
129
|
+
NavigationMenu: () => K,
|
|
130
|
+
NumberInput: () => q,
|
|
131
|
+
PageHeader: () => J,
|
|
132
|
+
Pagination: () => Y,
|
|
133
|
+
PasswordInput: () => X,
|
|
134
|
+
PinInput: () => Z,
|
|
135
|
+
Popover: () => Q,
|
|
136
|
+
Progress: () => $,
|
|
137
|
+
RadioGroup: () => ee,
|
|
138
|
+
Rating: () => te,
|
|
139
|
+
ScrollArea: () => ne,
|
|
140
|
+
ScrollFade: () => re,
|
|
141
|
+
Select: () => ie,
|
|
142
|
+
Separator: () => ae,
|
|
143
|
+
Sidebar: () => oe,
|
|
144
|
+
SignaturePad: () => se,
|
|
145
|
+
Skeleton: () => ce,
|
|
146
|
+
Slider: () => le,
|
|
147
|
+
Sparkline: () => ue,
|
|
148
|
+
Splitter: () => de,
|
|
149
|
+
Stat: () => fe,
|
|
150
|
+
Stepper: () => pe,
|
|
151
|
+
Switch: () => me,
|
|
152
|
+
Table: () => he,
|
|
153
|
+
Tabs: () => ge,
|
|
154
|
+
TagsInput: () => _e,
|
|
155
|
+
Textarea: () => ve,
|
|
156
|
+
TimeField: () => ye,
|
|
157
|
+
Timeline: () => be,
|
|
158
|
+
Toaster: () => xe,
|
|
159
|
+
Toggle: () => Se,
|
|
160
|
+
ToggleGroup: () => Ce,
|
|
161
|
+
Toolbar: () => we,
|
|
162
|
+
Tooltip: () => Te,
|
|
163
|
+
Tree: () => Ee
|
|
162
164
|
});
|
|
163
165
|
//#endregion
|
|
164
|
-
export {
|
|
166
|
+
export { De as components_exports };
|
package/dist/index.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export type { ButtonProps } from './components/Button.vue';
|
|
|
18
18
|
export type { ButtonGroupProps } from './components/ButtonGroup.vue';
|
|
19
19
|
export type { CalendarProps } from './components/Calendar.vue';
|
|
20
20
|
export type { CardProps } from './components/Card.vue';
|
|
21
|
+
export type { CarouselProps } from './components/Carousel.vue';
|
|
21
22
|
export type { ChartLegendProps } from './components/ChartLegend.vue';
|
|
22
23
|
export type { CheckboxProps } from './components/Checkbox.vue';
|
|
23
24
|
export type { CollapsibleProps } from './components/Collapsible.vue';
|
package/dist/index.js
CHANGED
|
@@ -43,129 +43,130 @@ import { calendarTheme as _e } from "./theme/calendar.js";
|
|
|
43
43
|
import ve from "./components/Calendar.js";
|
|
44
44
|
import { cardTheme as ye } from "./theme/card.js";
|
|
45
45
|
import be from "./components/Card.js";
|
|
46
|
-
import {
|
|
47
|
-
import
|
|
48
|
-
import ke from "./
|
|
49
|
-
import {
|
|
50
|
-
import
|
|
51
|
-
import {
|
|
52
|
-
import
|
|
53
|
-
import Ie from "./
|
|
54
|
-
import {
|
|
55
|
-
import
|
|
56
|
-
import {
|
|
57
|
-
import
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import
|
|
61
|
-
import
|
|
62
|
-
import
|
|
63
|
-
import
|
|
64
|
-
import et from "./
|
|
65
|
-
import
|
|
66
|
-
import
|
|
67
|
-
import
|
|
68
|
-
import {
|
|
69
|
-
import
|
|
70
|
-
import st from "./
|
|
71
|
-
import {
|
|
72
|
-
import
|
|
73
|
-
import {
|
|
74
|
-
import
|
|
75
|
-
import
|
|
76
|
-
import
|
|
77
|
-
import
|
|
78
|
-
import
|
|
79
|
-
import
|
|
80
|
-
import
|
|
81
|
-
import {
|
|
82
|
-
import
|
|
83
|
-
import {
|
|
84
|
-
import
|
|
85
|
-
import
|
|
86
|
-
import
|
|
87
|
-
import
|
|
88
|
-
import
|
|
89
|
-
import
|
|
90
|
-
import
|
|
91
|
-
import
|
|
92
|
-
import
|
|
93
|
-
import
|
|
94
|
-
import {
|
|
95
|
-
import
|
|
96
|
-
import {
|
|
97
|
-
import
|
|
98
|
-
import
|
|
99
|
-
import {
|
|
100
|
-
import
|
|
101
|
-
import Jt from "./
|
|
102
|
-
import {
|
|
103
|
-
import
|
|
104
|
-
import {
|
|
105
|
-
import
|
|
106
|
-
import {
|
|
107
|
-
import
|
|
108
|
-
import {
|
|
109
|
-
import
|
|
110
|
-
import {
|
|
111
|
-
import
|
|
112
|
-
import {
|
|
113
|
-
import
|
|
114
|
-
import {
|
|
115
|
-
import
|
|
116
|
-
import
|
|
117
|
-
import
|
|
118
|
-
import
|
|
119
|
-
import {
|
|
120
|
-
import
|
|
121
|
-
import gn from "./
|
|
122
|
-
import
|
|
123
|
-
import vn from "./
|
|
124
|
-
import
|
|
125
|
-
import bn from "./
|
|
126
|
-
import
|
|
127
|
-
import {
|
|
128
|
-
import Tn from "./
|
|
129
|
-
import
|
|
130
|
-
import {
|
|
131
|
-
import kn from "./
|
|
132
|
-
import
|
|
133
|
-
import jn from "./
|
|
134
|
-
import
|
|
135
|
-
import Nn from "./
|
|
136
|
-
import
|
|
137
|
-
import Fn from "./
|
|
138
|
-
import
|
|
139
|
-
import Ln from "./
|
|
140
|
-
import
|
|
141
|
-
import zn from "./
|
|
142
|
-
import
|
|
143
|
-
import Vn from "./
|
|
144
|
-
import
|
|
145
|
-
import Un from "./
|
|
146
|
-
import
|
|
147
|
-
import {
|
|
148
|
-
import qn from "./
|
|
149
|
-
import
|
|
150
|
-
import Yn from "./
|
|
151
|
-
import
|
|
152
|
-
import Zn from "./
|
|
153
|
-
import Qn from "./components/
|
|
154
|
-
import
|
|
155
|
-
import er from "./
|
|
156
|
-
import
|
|
157
|
-
import nr from "./
|
|
158
|
-
import
|
|
159
|
-
import {
|
|
160
|
-
import or from "./
|
|
161
|
-
import
|
|
162
|
-
import lr from "./
|
|
163
|
-
import ur from "./components/
|
|
164
|
-
import
|
|
165
|
-
import fr from "./
|
|
166
|
-
import
|
|
167
|
-
import mr from "./
|
|
168
|
-
import
|
|
169
|
-
import gr from "./
|
|
170
|
-
import
|
|
171
|
-
|
|
46
|
+
import { scrollFadeMask as xe, useScrollEdges as Se } from "./composables/scroll-fade.js";
|
|
47
|
+
import Ce from "./components/Carousel.js";
|
|
48
|
+
import { formContextKey as we, formFieldContextKey as Te, getByPath as Ee, isStandardSchema as De, issuePath as Oe, useForm as ke, useFormField as Ae } from "./composables/form.js";
|
|
49
|
+
import { checkboxTheme as je } from "./theme/checkbox.js";
|
|
50
|
+
import Me from "./components/Checkbox.js";
|
|
51
|
+
import { collapsibleTheme as Ne } from "./theme/collapsible.js";
|
|
52
|
+
import Pe from "./components/Collapsible.js";
|
|
53
|
+
import { fieldBase as Fe, inputTheme as Ie, textareaTheme as Le } from "./theme/input.js";
|
|
54
|
+
import { colorPickerTheme as Re } from "./theme/color-picker.js";
|
|
55
|
+
import ze from "./components/ColorPicker.js";
|
|
56
|
+
import { comboboxTheme as Be } from "./theme/combobox.js";
|
|
57
|
+
import Ve from "./components/Combobox.js";
|
|
58
|
+
import { isApplePlatform as He, parseHotkey as Ue, useApplePlatform as We } from "./composables/kbd.js";
|
|
59
|
+
import { commandHaystack as Ge, isCommandGroup as Ke, matchesHotkey as qe, toCommandGroups as Je } from "./composables/command-palette.js";
|
|
60
|
+
import { commandPaletteTheme as Ye } from "./theme/command-palette.js";
|
|
61
|
+
import { kbdTheme as Xe } from "./theme/kbd.js";
|
|
62
|
+
import Ze from "./components/Kbd.js";
|
|
63
|
+
import Qe from "./components/CommandPalette.js";
|
|
64
|
+
import { resolveConfirm as $e, useConfirm as et, useConfirmState as tt } from "./composables/confirm.js";
|
|
65
|
+
import { dialogTheme as nt } from "./theme/dialog.js";
|
|
66
|
+
import rt from "./components/Dialog.js";
|
|
67
|
+
import it from "./components/ConfirmDialog.js";
|
|
68
|
+
import { containerTheme as at } from "./theme/container.js";
|
|
69
|
+
import ot from "./components/Container.js";
|
|
70
|
+
import { dropdownMenuTheme as st } from "./theme/dropdown-menu.js";
|
|
71
|
+
import { isSeparator as ct, isSubmenu as lt } from "./composables/dropdown-menu.js";
|
|
72
|
+
import ut from "./components/ContextMenu.js";
|
|
73
|
+
import { dateFieldTheme as dt } from "./theme/date-field.js";
|
|
74
|
+
import ft from "./components/DateField.js";
|
|
75
|
+
import { datePickerTheme as pt } from "./theme/date-picker.js";
|
|
76
|
+
import mt from "./components/DatePicker.js";
|
|
77
|
+
import ht from "./components/DateRangePicker.js";
|
|
78
|
+
import { donutChartTheme as gt } from "./theme/donut-chart.js";
|
|
79
|
+
import _t from "./components/DonutChart.js";
|
|
80
|
+
import vt from "./components/DropdownMenu.js";
|
|
81
|
+
import { editableTheme as yt } from "./theme/editable.js";
|
|
82
|
+
import bt from "./components/Editable.js";
|
|
83
|
+
import { emptyStateTheme as xt } from "./theme/empty-state.js";
|
|
84
|
+
import St from "./components/EmptyState.js";
|
|
85
|
+
import { fileUploadTheme as Ct } from "./theme/file-upload.js";
|
|
86
|
+
import wt from "./components/FileUpload.js";
|
|
87
|
+
import Tt from "./components/Form.js";
|
|
88
|
+
import { labelTheme as Et } from "./theme/label.js";
|
|
89
|
+
import Dt from "./components/Label.js";
|
|
90
|
+
import Ot from "./components/FormField.js";
|
|
91
|
+
import { hoverCardTheme as kt } from "./theme/hover-card.js";
|
|
92
|
+
import At from "./components/HoverCard.js";
|
|
93
|
+
import jt from "./components/Input.js";
|
|
94
|
+
import { lineChartTheme as Mt } from "./theme/line-chart.js";
|
|
95
|
+
import Nt from "./components/LineChart.js";
|
|
96
|
+
import { menubarTheme as Pt } from "./theme/menubar.js";
|
|
97
|
+
import Ft from "./components/Menubar.js";
|
|
98
|
+
import { isNavigationGroup as It } from "./composables/navigation-menu.js";
|
|
99
|
+
import { navigationMenuTheme as Lt } from "./theme/navigation-menu.js";
|
|
100
|
+
import Rt from "./components/NavigationMenu.js";
|
|
101
|
+
import { addDecimals as zt, clampDecimal as Bt, compareDecimals as Vt, formatDecimal as Ht, formatForLocale as Ut, isDecimal as Wt, localeSeparators as Gt, parseDecimal as Kt, parseFromLocale as qt, roundDecimal as Jt, toEditable as Yt } from "./composables/decimal.js";
|
|
102
|
+
import { numberInputTheme as Xt } from "./theme/number-input.js";
|
|
103
|
+
import Zt from "./components/NumberInput.js";
|
|
104
|
+
import { pageHeaderTheme as Qt } from "./theme/page-header.js";
|
|
105
|
+
import $t from "./components/PageHeader.js";
|
|
106
|
+
import { paginationTheme as en } from "./theme/pagination.js";
|
|
107
|
+
import tn from "./components/Pagination.js";
|
|
108
|
+
import { passwordInputTheme as nn } from "./theme/password-input.js";
|
|
109
|
+
import rn from "./components/PasswordInput.js";
|
|
110
|
+
import { pinInputTheme as an } from "./theme/pin-input.js";
|
|
111
|
+
import on from "./components/PinInput.js";
|
|
112
|
+
import { popoverTheme as sn } from "./theme/popover.js";
|
|
113
|
+
import cn from "./components/Popover.js";
|
|
114
|
+
import { progressTheme as ln } from "./theme/progress.js";
|
|
115
|
+
import un from "./components/Progress.js";
|
|
116
|
+
import { radioGroupTheme as dn } from "./theme/radio-group.js";
|
|
117
|
+
import fn from "./components/RadioGroup.js";
|
|
118
|
+
import pn from "./components/Rating.js";
|
|
119
|
+
import { scrollAreaTheme as mn } from "./theme/scroll-area.js";
|
|
120
|
+
import hn from "./components/ScrollArea.js";
|
|
121
|
+
import { scrollFadeTheme as gn } from "./theme/scroll-fade.js";
|
|
122
|
+
import _n from "./components/ScrollFade.js";
|
|
123
|
+
import { selectTheme as vn } from "./theme/select.js";
|
|
124
|
+
import yn from "./components/Select.js";
|
|
125
|
+
import { separatorTheme as bn } from "./theme/separator.js";
|
|
126
|
+
import xn from "./components/Separator.js";
|
|
127
|
+
import { isSidebarGroup as Sn, isSidebarSection as Cn, toSidebarSections as wn } from "./composables/sidebar.js";
|
|
128
|
+
import { sidebarTheme as Tn } from "./theme/sidebar.js";
|
|
129
|
+
import En from "./components/Sidebar.js";
|
|
130
|
+
import { hasInk as Dn, strokeWidth as On } from "./composables/signature.js";
|
|
131
|
+
import { signaturePadTheme as kn } from "./theme/signature-pad.js";
|
|
132
|
+
import An from "./components/SignaturePad.js";
|
|
133
|
+
import { skeletonTheme as jn } from "./theme/skeleton.js";
|
|
134
|
+
import Mn from "./components/Skeleton.js";
|
|
135
|
+
import { sliderTheme as Nn } from "./theme/slider.js";
|
|
136
|
+
import Pn from "./components/Slider.js";
|
|
137
|
+
import { sparklineTheme as Fn } from "./theme/sparkline.js";
|
|
138
|
+
import In from "./components/Sparkline.js";
|
|
139
|
+
import { splitterTheme as Ln } from "./theme/splitter.js";
|
|
140
|
+
import Rn from "./components/Splitter.js";
|
|
141
|
+
import { statTheme as zn } from "./theme/stat.js";
|
|
142
|
+
import Bn from "./components/Stat.js";
|
|
143
|
+
import { stepperTheme as Vn } from "./theme/stepper.js";
|
|
144
|
+
import Hn from "./components/Stepper.js";
|
|
145
|
+
import { switchTheme as Un } from "./theme/switch.js";
|
|
146
|
+
import Wn from "./components/Switch.js";
|
|
147
|
+
import { getRowValue as Gn, useDataTable as Kn } from "./composables/data-table.js";
|
|
148
|
+
import { tableTheme as qn } from "./theme/table.js";
|
|
149
|
+
import Jn from "./components/Table.js";
|
|
150
|
+
import { tabsTheme as Yn } from "./theme/tabs.js";
|
|
151
|
+
import Xn from "./components/Tabs.js";
|
|
152
|
+
import { tagsInputTheme as Zn } from "./theme/tags-input.js";
|
|
153
|
+
import Qn from "./components/TagsInput.js";
|
|
154
|
+
import $n from "./components/Textarea.js";
|
|
155
|
+
import { timeFieldTheme as er } from "./theme/time-field.js";
|
|
156
|
+
import tr from "./components/TimeField.js";
|
|
157
|
+
import { timelineTheme as nr } from "./theme/timeline.js";
|
|
158
|
+
import rr from "./components/Timeline.js";
|
|
159
|
+
import { useToast as ir, useToastState as ar } from "./composables/toast.js";
|
|
160
|
+
import { toastTheme as or } from "./theme/toast.js";
|
|
161
|
+
import sr from "./components/Toaster.js";
|
|
162
|
+
import { toggleGroupTheme as cr, toggleTheme as lr } from "./theme/toggle.js";
|
|
163
|
+
import ur from "./components/Toggle.js";
|
|
164
|
+
import dr from "./components/ToggleGroup.js";
|
|
165
|
+
import { toolbarTheme as fr } from "./theme/toolbar.js";
|
|
166
|
+
import pr from "./components/Toolbar.js";
|
|
167
|
+
import { tooltipTheme as mr } from "./theme/tooltip.js";
|
|
168
|
+
import hr from "./components/Tooltip.js";
|
|
169
|
+
import { treeTheme as gr } from "./theme/tree.js";
|
|
170
|
+
import _r from "./components/Tree.js";
|
|
171
|
+
import { IryxUi as vr, createIryxUi as yr } from "./plugin.js";
|
|
172
|
+
export { B as AXIS_GAP, s as Accordion, l as Alert, h as App, b as AppShell, x as AspectRatio, D as AuthProviders, A as Avatar, j as AvatarGroup, N as Badge, F as Banner, ie as BarChart, oe as Breadcrumb, E as Button, ce as ButtonGroup, V as CATEGORY_HEIGHT, H as CHAR_WIDTH, ve as Calendar, le as CalendarDate, be as Card, Ce as Carousel, re as ChartLegend, Me as Checkbox, Pe as Collapsible, ze as ColorPicker, Ve as Combobox, Qe as CommandPalette, it as ConfirmDialog, ot as Container, ut as ContextMenu, ft as DateField, mt as DatePicker, ht as DateRangePicker, rt as Dialog, _t as DonutChart, y as Drawer, vt as DropdownMenu, bt as Editable, St as EmptyState, wt as FileUpload, Tt as Form, Ot as FormField, At as HoverCard, o as Icon, jt as Input, vr as IryxUi, Ze as Kbd, Dt as Label, Nt as LineChart, Ft as Menubar, Rt as NavigationMenu, Zt as NumberInput, $t as PageHeader, tn as Pagination, rn as PasswordInput, on as PinInput, cn as Popover, un as Progress, Z as REVEAL_DURATION, fn as RadioGroup, pn as Rating, U as SERIES_SLOTS, hn as ScrollArea, _n as ScrollFade, yn as Select, xn as Separator, En as Sidebar, An as SignaturePad, Mn as Skeleton, Pn as Slider, In as Sparkline, Rn as Splitter, Bn as Stat, Hn as Stepper, Wn as Switch, W as TOP_PAD, Jn as Table, Xn as Tabs, Qn as TagsInput, $n as Textarea, ue as Time, tr as TimeField, rr as Timeline, sr as Toaster, ur as Toggle, dr as ToggleGroup, pr as Toolbar, hr as Tooltip, _r as Tree, i as accordionTheme, zt as addDecimals, c as alertTheme, _ as appShellTheme, f as applyTheme, S as authProvidersTheme, O as avatarGroupTheme, k as avatarTheme, M as badgeTheme, P as bannerTheme, te as barChartTheme, ae as breadcrumbTheme, C as buttonGroupContextKey, se as buttonGroupTheme, T as buttonTheme, _e as calendarTheme, ye as cardTheme, G as cartesianLayout, ne as chartLegendTheme, je as checkboxTheme, Bt as clampDecimal, K as clampTooltip, p as clearTheme, Ne as collapsibleTheme, Re as colorPickerTheme, Be as comboboxTheme, Ge as commandHaystack, Ye as commandPaletteTheme, Vt as compareDecimals, e as componentNames, at as containerTheme, yr as createIryxUi, dt as dateFieldTheme, pt as datePickerTheme, t as defaultConfig, nt as dialogTheme, gt as donutChartTheme, v as drawerTheme, st as dropdownMenuTheme, yt as editableTheme, xt as emptyStateTheme, I as extent, Fe as fieldBase, Ct as fileUploadTheme, L as finiteValues, we as formContextKey, Te as formFieldContextKey, Ht as formatDecimal, Ut as formatForLocale, de as formatIsoDate, Ee as getByPath, Gn as getRowValue, Dn as hasInk, kt as hoverCardTheme, u as initAppearance, Ie as inputTheme, n as iryxUiConfigKey, He as isApplePlatform, Ke as isCommandGroup, Wt as isDecimal, a as isIconArray, It as isNavigationGroup, ct as isSeparator, Sn as isSidebarGroup, Cn as isSidebarSection, De as isStandardSchema, lt as isSubmenu, fe as isoToday, Oe as issuePath, Xe as kbdTheme, Et as labelTheme, Mt as lineChartTheme, R as linearScale, Gt as localeSeparators, qe as matchesHotkey, Pt as menubarTheme, Lt as navigationMenuTheme, z as niceTicks, Xt as numberInputTheme, Qt as pageHeaderTheme, en as paginationTheme, Kt as parseDecimal, qt as parseFromLocale, Ue as parseHotkey, nn as passwordInputTheme, an as pinInputTheme, sn as popoverTheme, ln as progressTheme, dn as radioGroupTheme, $e as resolveConfirm, Jt as roundDecimal, mn as scrollAreaTheme, xe as scrollFadeMask, gn as scrollFadeTheme, vn as selectTheme, bn as separatorTheme, q as seriesColor, Tn as sidebarTheme, kn as signaturePadTheme, jn as skeletonTheme, Nn as sliderTheme, J as slotOf, Fn as sparklineTheme, Ln as splitterTheme, zn as statTheme, Vn as stepperTheme, On as strokeWidth, Un as switchTheme, qn as tableTheme, Yn as tabsTheme, Zn as tagsInputTheme, Le as textareaTheme, m as themes, er as timeFieldTheme, nr as timelineTheme, pe as toCalendarDate, Je as toCommandGroups, Yt as toEditable, me as toIsoDate, he as toIsoTime, wn as toSidebarSections, ge as toTime, or as toastTheme, cr as toggleGroupTheme, lr as toggleTheme, fr as toolbarTheme, Y as tooltipHalfWidth, mr as tooltipTheme, gr as treeTheme, d as useAppearance, We as useApplePlatform, w as useButtonGroup, Q as useChartAnimation, $ as useChartProgress, ee as useChartReveal, et as useConfirm, tt as useConfirmState, Kn as useDataTable, g as useElementSize, ke as useForm, Ae as useFormField, r as useIryxUiConfig, Se as useScrollEdges, ir as useToast, ar as useToastState, X as warnOnSlotOverflow };
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
export declare const carouselTheme: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
gap: {
|
|
3
|
+
none: {};
|
|
4
|
+
sm: {
|
|
5
|
+
track: string;
|
|
6
|
+
};
|
|
7
|
+
md: {
|
|
8
|
+
track: string;
|
|
9
|
+
};
|
|
10
|
+
lg: {
|
|
11
|
+
track: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
}, {
|
|
15
|
+
root: string;
|
|
16
|
+
track: string;
|
|
17
|
+
item: string;
|
|
18
|
+
viewport: string;
|
|
19
|
+
control: string;
|
|
20
|
+
dots: string;
|
|
21
|
+
dot: string;
|
|
22
|
+
}, undefined, {
|
|
23
|
+
gap: {
|
|
24
|
+
none: {};
|
|
25
|
+
sm: {
|
|
26
|
+
track: string;
|
|
27
|
+
};
|
|
28
|
+
md: {
|
|
29
|
+
track: string;
|
|
30
|
+
};
|
|
31
|
+
lg: {
|
|
32
|
+
track: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
}, {
|
|
36
|
+
root: string;
|
|
37
|
+
track: string;
|
|
38
|
+
item: string;
|
|
39
|
+
viewport: string;
|
|
40
|
+
control: string;
|
|
41
|
+
dots: string;
|
|
42
|
+
dot: string;
|
|
43
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
44
|
+
gap: {
|
|
45
|
+
none: {};
|
|
46
|
+
sm: {
|
|
47
|
+
track: string;
|
|
48
|
+
};
|
|
49
|
+
md: {
|
|
50
|
+
track: string;
|
|
51
|
+
};
|
|
52
|
+
lg: {
|
|
53
|
+
track: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
}, {
|
|
57
|
+
root: string;
|
|
58
|
+
track: string;
|
|
59
|
+
item: string;
|
|
60
|
+
viewport: string;
|
|
61
|
+
control: string;
|
|
62
|
+
dots: string;
|
|
63
|
+
dot: string;
|
|
64
|
+
}>>;
|
|
65
|
+
export type CarouselSlots = keyof ReturnType<typeof carouselTheme>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { tv as e } from "tailwind-variants";
|
|
2
|
+
//#region src/theme/carousel.ts
|
|
3
|
+
var t = e({
|
|
4
|
+
slots: {
|
|
5
|
+
root: "relative",
|
|
6
|
+
track: "flex snap-x snap-mandatory [scrollbar-width:none] overflow-x-auto scroll-smooth outline-none focus-visible:ring-2 focus-visible:ring-primary/50 motion-reduce:scroll-auto [&::-webkit-scrollbar]:hidden",
|
|
7
|
+
item: "shrink-0 snap-start px-px",
|
|
8
|
+
viewport: "relative",
|
|
9
|
+
control: "absolute inset-y-0 z-10 flex items-center",
|
|
10
|
+
dots: "mt-4 flex items-center justify-center gap-2",
|
|
11
|
+
dot: "h-2 w-2 rounded-full bg-border transition-none outline-none focus-visible:ring-2 focus-visible:ring-primary/50 data-[state=active]:w-6 data-[state=active]:bg-primary"
|
|
12
|
+
},
|
|
13
|
+
variants: { gap: {
|
|
14
|
+
none: {},
|
|
15
|
+
sm: { track: "gap-2" },
|
|
16
|
+
md: { track: "gap-4" },
|
|
17
|
+
lg: { track: "gap-6" }
|
|
18
|
+
} },
|
|
19
|
+
defaultVariants: { gap: "md" }
|
|
20
|
+
});
|
|
21
|
+
//#endregion
|
|
22
|
+
export { t as carouselTheme };
|
package/dist/theme/form.d.ts
CHANGED
|
@@ -5,8 +5,8 @@ export declare const formFieldTheme: import("tailwind-variants").TVReturnType<{
|
|
|
5
5
|
header?: import("tailwind-variants").ClassValue;
|
|
6
6
|
label?: import("tailwind-variants").ClassValue;
|
|
7
7
|
description?: import("tailwind-variants").ClassValue;
|
|
8
|
-
control?: import("tailwind-variants").ClassValue;
|
|
9
8
|
error?: import("tailwind-variants").ClassValue;
|
|
9
|
+
control?: import("tailwind-variants").ClassValue;
|
|
10
10
|
hint?: import("tailwind-variants").ClassValue;
|
|
11
11
|
help?: import("tailwind-variants").ClassValue;
|
|
12
12
|
};
|
|
@@ -18,8 +18,8 @@ export declare const formFieldTheme: import("tailwind-variants").TVReturnType<{
|
|
|
18
18
|
header?: import("tailwind-variants").ClassValue;
|
|
19
19
|
label?: import("tailwind-variants").ClassValue;
|
|
20
20
|
description?: import("tailwind-variants").ClassValue;
|
|
21
|
-
control?: import("tailwind-variants").ClassValue;
|
|
22
21
|
error?: import("tailwind-variants").ClassValue;
|
|
22
|
+
control?: import("tailwind-variants").ClassValue;
|
|
23
23
|
hint?: import("tailwind-variants").ClassValue;
|
|
24
24
|
help?: import("tailwind-variants").ClassValue;
|
|
25
25
|
};
|
|
@@ -40,8 +40,8 @@ export declare const formFieldTheme: import("tailwind-variants").TVReturnType<{
|
|
|
40
40
|
header?: import("tailwind-variants").ClassValue;
|
|
41
41
|
label?: import("tailwind-variants").ClassValue;
|
|
42
42
|
description?: import("tailwind-variants").ClassValue;
|
|
43
|
-
control?: import("tailwind-variants").ClassValue;
|
|
44
43
|
error?: import("tailwind-variants").ClassValue;
|
|
44
|
+
control?: import("tailwind-variants").ClassValue;
|
|
45
45
|
hint?: import("tailwind-variants").ClassValue;
|
|
46
46
|
help?: import("tailwind-variants").ClassValue;
|
|
47
47
|
};
|