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.
@@ -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`.
@@ -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,5 @@
1
+ import e from "./Carousel.vue_vue_type_script_setup_true_lang.js";
2
+ //#region src/components/Carousel.vue
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };
@@ -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';
@@ -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 "./Checkbox.js";
22
- import x from "./Collapsible.js";
23
- import S from "./ColorPicker.js";
24
- import C from "./Combobox.js";
25
- import w from "./Kbd.js";
26
- import T from "./CommandPalette.js";
27
- import E from "./Dialog.js";
28
- import D from "./ConfirmDialog.js";
29
- import O from "./Container.js";
30
- import k from "./ContextMenu.js";
31
- import A from "./DateField.js";
32
- import j from "./DatePicker.js";
33
- import M from "./DateRangePicker.js";
34
- import N from "./DonutChart.js";
35
- import P from "./DropdownMenu.js";
36
- import F from "./Editable.js";
37
- import I from "./EmptyState.js";
38
- import L from "./FileUpload.js";
39
- import R from "./Form.js";
40
- import z from "./Label.js";
41
- import B from "./FormField.js";
42
- import V from "./HoverCard.js";
43
- import H from "./Input.js";
44
- import U from "./LineChart.js";
45
- import W from "./Menubar.js";
46
- import G from "./NavigationMenu.js";
47
- import K from "./NumberInput.js";
48
- import q from "./PageHeader.js";
49
- import J from "./Pagination.js";
50
- import Y from "./PasswordInput.js";
51
- import X from "./PinInput.js";
52
- import Z from "./Popover.js";
53
- import Q from "./Progress.js";
54
- import $ from "./RadioGroup.js";
55
- import ee from "./Rating.js";
56
- import te from "./ScrollArea.js";
57
- import ne from "./ScrollFade.js";
58
- import re from "./Select.js";
59
- import ie from "./Separator.js";
60
- import ae from "./Sidebar.js";
61
- import oe from "./SignaturePad.js";
62
- import se from "./Skeleton.js";
63
- import ce from "./Slider.js";
64
- import le from "./Sparkline.js";
65
- import ue from "./Splitter.js";
66
- import de from "./Stat.js";
67
- import fe from "./Stepper.js";
68
- import pe from "./Switch.js";
69
- import me from "./Table.js";
70
- import he from "./Tabs.js";
71
- import ge from "./TagsInput.js";
72
- import _e from "./Textarea.js";
73
- import ve from "./TimeField.js";
74
- import ye from "./Timeline.js";
75
- import be from "./Toaster.js";
76
- import xe from "./Toggle.js";
77
- import Se from "./ToggleGroup.js";
78
- import Ce from "./Toolbar.js";
79
- import we from "./Tooltip.js";
80
- import Te from "./Tree.js";
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 Ee = /* @__PURE__ */ e({
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: () => b,
101
- Collapsible: () => x,
102
- ColorPicker: () => S,
103
- Combobox: () => C,
104
- CommandPalette: () => T,
105
- ConfirmDialog: () => D,
106
- Container: () => O,
107
- ContextMenu: () => k,
108
- DateField: () => A,
109
- DatePicker: () => j,
110
- DateRangePicker: () => M,
111
- Dialog: () => E,
112
- DonutChart: () => N,
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: () => P,
115
- Editable: () => F,
116
- EmptyState: () => I,
117
- FileUpload: () => L,
118
- Form: () => R,
119
- FormField: () => B,
120
- HoverCard: () => V,
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: () => H,
123
- Kbd: () => w,
124
- Label: () => z,
125
- LineChart: () => U,
126
- Menubar: () => W,
127
- NavigationMenu: () => G,
128
- NumberInput: () => K,
129
- PageHeader: () => q,
130
- Pagination: () => J,
131
- PasswordInput: () => Y,
132
- PinInput: () => X,
133
- Popover: () => Z,
134
- Progress: () => Q,
135
- RadioGroup: () => $,
136
- Rating: () => ee,
137
- ScrollArea: () => te,
138
- ScrollFade: () => ne,
139
- Select: () => re,
140
- Separator: () => ie,
141
- Sidebar: () => ae,
142
- SignaturePad: () => oe,
143
- Skeleton: () => se,
144
- Slider: () => ce,
145
- Sparkline: () => le,
146
- Splitter: () => ue,
147
- Stat: () => de,
148
- Stepper: () => fe,
149
- Switch: () => pe,
150
- Table: () => me,
151
- Tabs: () => he,
152
- TagsInput: () => ge,
153
- Textarea: () => _e,
154
- TimeField: () => ve,
155
- Timeline: () => ye,
156
- Toaster: () => be,
157
- Toggle: () => xe,
158
- ToggleGroup: () => Se,
159
- Toolbar: () => Ce,
160
- Tooltip: () => we,
161
- Tree: () => Te
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 { Ee as components_exports };
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 { formContextKey as xe, formFieldContextKey as Se, getByPath as Ce, isStandardSchema as we, issuePath as Te, useForm as Ee, useFormField as De } from "./composables/form.js";
47
- import { checkboxTheme as Oe } from "./theme/checkbox.js";
48
- import ke from "./components/Checkbox.js";
49
- import { collapsibleTheme as Ae } from "./theme/collapsible.js";
50
- import je from "./components/Collapsible.js";
51
- import { fieldBase as Me, inputTheme as Ne, textareaTheme as Pe } from "./theme/input.js";
52
- import { colorPickerTheme as Fe } from "./theme/color-picker.js";
53
- import Ie from "./components/ColorPicker.js";
54
- import { comboboxTheme as Le } from "./theme/combobox.js";
55
- import Re from "./components/Combobox.js";
56
- import { isApplePlatform as ze, parseHotkey as Be, useApplePlatform as Ve } from "./composables/kbd.js";
57
- import { commandHaystack as He, isCommandGroup as Ue, matchesHotkey as We, toCommandGroups as Ge } from "./composables/command-palette.js";
58
- import { commandPaletteTheme as Ke } from "./theme/command-palette.js";
59
- import { kbdTheme as qe } from "./theme/kbd.js";
60
- import Je from "./components/Kbd.js";
61
- import Ye from "./components/CommandPalette.js";
62
- import { resolveConfirm as Xe, useConfirm as Ze, useConfirmState as Qe } from "./composables/confirm.js";
63
- import { dialogTheme as $e } from "./theme/dialog.js";
64
- import et from "./components/Dialog.js";
65
- import tt from "./components/ConfirmDialog.js";
66
- import { containerTheme as nt } from "./theme/container.js";
67
- import rt from "./components/Container.js";
68
- import { dropdownMenuTheme as it } from "./theme/dropdown-menu.js";
69
- import { isSeparator as at, isSubmenu as ot } from "./composables/dropdown-menu.js";
70
- import st from "./components/ContextMenu.js";
71
- import { dateFieldTheme as ct } from "./theme/date-field.js";
72
- import lt from "./components/DateField.js";
73
- import { datePickerTheme as ut } from "./theme/date-picker.js";
74
- import dt from "./components/DatePicker.js";
75
- import ft from "./components/DateRangePicker.js";
76
- import { donutChartTheme as pt } from "./theme/donut-chart.js";
77
- import mt from "./components/DonutChart.js";
78
- import ht from "./components/DropdownMenu.js";
79
- import { editableTheme as gt } from "./theme/editable.js";
80
- import _t from "./components/Editable.js";
81
- import { emptyStateTheme as vt } from "./theme/empty-state.js";
82
- import yt from "./components/EmptyState.js";
83
- import { fileUploadTheme as bt } from "./theme/file-upload.js";
84
- import xt from "./components/FileUpload.js";
85
- import St from "./components/Form.js";
86
- import { labelTheme as Ct } from "./theme/label.js";
87
- import wt from "./components/Label.js";
88
- import Tt from "./components/FormField.js";
89
- import { hoverCardTheme as Et } from "./theme/hover-card.js";
90
- import Dt from "./components/HoverCard.js";
91
- import Ot from "./components/Input.js";
92
- import { lineChartTheme as kt } from "./theme/line-chart.js";
93
- import At from "./components/LineChart.js";
94
- import { menubarTheme as jt } from "./theme/menubar.js";
95
- import Mt from "./components/Menubar.js";
96
- import { isNavigationGroup as Nt } from "./composables/navigation-menu.js";
97
- import { navigationMenuTheme as Pt } from "./theme/navigation-menu.js";
98
- import Ft from "./components/NavigationMenu.js";
99
- import { addDecimals as It, clampDecimal as Lt, compareDecimals as Rt, formatDecimal as zt, formatForLocale as Bt, isDecimal as Vt, localeSeparators as Ht, parseDecimal as Ut, parseFromLocale as Wt, roundDecimal as Gt, toEditable as Kt } from "./composables/decimal.js";
100
- import { numberInputTheme as qt } from "./theme/number-input.js";
101
- import Jt from "./components/NumberInput.js";
102
- import { pageHeaderTheme as Yt } from "./theme/page-header.js";
103
- import Xt from "./components/PageHeader.js";
104
- import { paginationTheme as Zt } from "./theme/pagination.js";
105
- import Qt from "./components/Pagination.js";
106
- import { passwordInputTheme as $t } from "./theme/password-input.js";
107
- import en from "./components/PasswordInput.js";
108
- import { pinInputTheme as tn } from "./theme/pin-input.js";
109
- import nn from "./components/PinInput.js";
110
- import { popoverTheme as rn } from "./theme/popover.js";
111
- import an from "./components/Popover.js";
112
- import { progressTheme as on } from "./theme/progress.js";
113
- import sn from "./components/Progress.js";
114
- import { radioGroupTheme as cn } from "./theme/radio-group.js";
115
- import ln from "./components/RadioGroup.js";
116
- import un from "./components/Rating.js";
117
- import { scrollAreaTheme as dn } from "./theme/scroll-area.js";
118
- import fn from "./components/ScrollArea.js";
119
- import { scrollFadeMask as pn, useScrollEdges as mn } from "./composables/scroll-fade.js";
120
- import { scrollFadeTheme as hn } from "./theme/scroll-fade.js";
121
- import gn from "./components/ScrollFade.js";
122
- import { selectTheme as _n } from "./theme/select.js";
123
- import vn from "./components/Select.js";
124
- import { separatorTheme as yn } from "./theme/separator.js";
125
- import bn from "./components/Separator.js";
126
- import { isSidebarGroup as xn, isSidebarSection as Sn, toSidebarSections as Cn } from "./composables/sidebar.js";
127
- import { sidebarTheme as wn } from "./theme/sidebar.js";
128
- import Tn from "./components/Sidebar.js";
129
- import { hasInk as En, strokeWidth as Dn } from "./composables/signature.js";
130
- import { signaturePadTheme as On } from "./theme/signature-pad.js";
131
- import kn from "./components/SignaturePad.js";
132
- import { skeletonTheme as An } from "./theme/skeleton.js";
133
- import jn from "./components/Skeleton.js";
134
- import { sliderTheme as Mn } from "./theme/slider.js";
135
- import Nn from "./components/Slider.js";
136
- import { sparklineTheme as Pn } from "./theme/sparkline.js";
137
- import Fn from "./components/Sparkline.js";
138
- import { splitterTheme as In } from "./theme/splitter.js";
139
- import Ln from "./components/Splitter.js";
140
- import { statTheme as Rn } from "./theme/stat.js";
141
- import zn from "./components/Stat.js";
142
- import { stepperTheme as Bn } from "./theme/stepper.js";
143
- import Vn from "./components/Stepper.js";
144
- import { switchTheme as Hn } from "./theme/switch.js";
145
- import Un from "./components/Switch.js";
146
- import { getRowValue as Wn, useDataTable as Gn } from "./composables/data-table.js";
147
- import { tableTheme as Kn } from "./theme/table.js";
148
- import qn from "./components/Table.js";
149
- import { tabsTheme as Jn } from "./theme/tabs.js";
150
- import Yn from "./components/Tabs.js";
151
- import { tagsInputTheme as Xn } from "./theme/tags-input.js";
152
- import Zn from "./components/TagsInput.js";
153
- import Qn from "./components/Textarea.js";
154
- import { timeFieldTheme as $n } from "./theme/time-field.js";
155
- import er from "./components/TimeField.js";
156
- import { timelineTheme as tr } from "./theme/timeline.js";
157
- import nr from "./components/Timeline.js";
158
- import { useToast as rr, useToastState as ir } from "./composables/toast.js";
159
- import { toastTheme as ar } from "./theme/toast.js";
160
- import or from "./components/Toaster.js";
161
- import { toggleGroupTheme as sr, toggleTheme as cr } from "./theme/toggle.js";
162
- import lr from "./components/Toggle.js";
163
- import ur from "./components/ToggleGroup.js";
164
- import { toolbarTheme as dr } from "./theme/toolbar.js";
165
- import fr from "./components/Toolbar.js";
166
- import { tooltipTheme as pr } from "./theme/tooltip.js";
167
- import mr from "./components/Tooltip.js";
168
- import { treeTheme as hr } from "./theme/tree.js";
169
- import gr from "./components/Tree.js";
170
- import { IryxUi as _r, createIryxUi as vr } from "./plugin.js";
171
- 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, re as ChartLegend, ke as Checkbox, je as Collapsible, Ie as ColorPicker, Re as Combobox, Ye as CommandPalette, tt as ConfirmDialog, rt as Container, st as ContextMenu, lt as DateField, dt as DatePicker, ft as DateRangePicker, et as Dialog, mt as DonutChart, y as Drawer, ht as DropdownMenu, _t as Editable, yt as EmptyState, xt as FileUpload, St as Form, Tt as FormField, Dt as HoverCard, o as Icon, Ot as Input, _r as IryxUi, Je as Kbd, wt as Label, At as LineChart, Mt as Menubar, Ft as NavigationMenu, Jt as NumberInput, Xt as PageHeader, Qt as Pagination, en as PasswordInput, nn as PinInput, an as Popover, sn as Progress, Z as REVEAL_DURATION, ln as RadioGroup, un as Rating, U as SERIES_SLOTS, fn as ScrollArea, gn as ScrollFade, vn as Select, bn as Separator, Tn as Sidebar, kn as SignaturePad, jn as Skeleton, Nn as Slider, Fn as Sparkline, Ln as Splitter, zn as Stat, Vn as Stepper, Un as Switch, W as TOP_PAD, qn as Table, Yn as Tabs, Zn as TagsInput, Qn as Textarea, ue as Time, er as TimeField, nr as Timeline, or as Toaster, lr as Toggle, ur as ToggleGroup, fr as Toolbar, mr as Tooltip, gr as Tree, i as accordionTheme, It 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, Oe as checkboxTheme, Lt as clampDecimal, K as clampTooltip, p as clearTheme, Ae as collapsibleTheme, Fe as colorPickerTheme, Le as comboboxTheme, He as commandHaystack, Ke as commandPaletteTheme, Rt as compareDecimals, e as componentNames, nt as containerTheme, vr as createIryxUi, ct as dateFieldTheme, ut as datePickerTheme, t as defaultConfig, $e as dialogTheme, pt as donutChartTheme, v as drawerTheme, it as dropdownMenuTheme, gt as editableTheme, vt as emptyStateTheme, I as extent, Me as fieldBase, bt as fileUploadTheme, L as finiteValues, xe as formContextKey, Se as formFieldContextKey, zt as formatDecimal, Bt as formatForLocale, de as formatIsoDate, Ce as getByPath, Wn as getRowValue, En as hasInk, Et as hoverCardTheme, u as initAppearance, Ne as inputTheme, n as iryxUiConfigKey, ze as isApplePlatform, Ue as isCommandGroup, Vt as isDecimal, a as isIconArray, Nt as isNavigationGroup, at as isSeparator, xn as isSidebarGroup, Sn as isSidebarSection, we as isStandardSchema, ot as isSubmenu, fe as isoToday, Te as issuePath, qe as kbdTheme, Ct as labelTheme, kt as lineChartTheme, R as linearScale, Ht as localeSeparators, We as matchesHotkey, jt as menubarTheme, Pt as navigationMenuTheme, z as niceTicks, qt as numberInputTheme, Yt as pageHeaderTheme, Zt as paginationTheme, Ut as parseDecimal, Wt as parseFromLocale, Be as parseHotkey, $t as passwordInputTheme, tn as pinInputTheme, rn as popoverTheme, on as progressTheme, cn as radioGroupTheme, Xe as resolveConfirm, Gt as roundDecimal, dn as scrollAreaTheme, pn as scrollFadeMask, hn as scrollFadeTheme, _n as selectTheme, yn as separatorTheme, q as seriesColor, wn as sidebarTheme, On as signaturePadTheme, An as skeletonTheme, Mn as sliderTheme, J as slotOf, Pn as sparklineTheme, In as splitterTheme, Rn as statTheme, Bn as stepperTheme, Dn as strokeWidth, Hn as switchTheme, Kn as tableTheme, Jn as tabsTheme, Xn as tagsInputTheme, Pe as textareaTheme, m as themes, $n as timeFieldTheme, tr as timelineTheme, pe as toCalendarDate, Ge as toCommandGroups, Kt as toEditable, me as toIsoDate, he as toIsoTime, Cn as toSidebarSections, ge as toTime, ar as toastTheme, sr as toggleGroupTheme, cr as toggleTheme, dr as toolbarTheme, Y as tooltipHalfWidth, pr as tooltipTheme, hr as treeTheme, d as useAppearance, Ve as useApplePlatform, w as useButtonGroup, Q as useChartAnimation, $ as useChartProgress, ee as useChartReveal, Ze as useConfirm, Qe as useConfirmState, Gn as useDataTable, g as useElementSize, Ee as useForm, De as useFormField, r as useIryxUiConfig, mn as useScrollEdges, rr as useToast, ir as useToastState, X as warnOnSlotOverflow };
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 };
@@ -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
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "iryx-ui",
3
3
  "type": "module",
4
- "version": "0.20.0",
4
+ "version": "0.21.0",
5
5
  "description": "A Vue 3 component library built on Reka UI and Tailwind CSS v4.",
6
6
  "author": "therok1",
7
7
  "license": "MIT",