iryx-ui 0.14.0 → 0.16.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/README.md +3 -1
- package/dist/component-names.d.ts +1 -1
- package/dist/component-names.js +1 -1
- package/dist/components/AppShell.vue.d.ts +31 -6
- package/dist/components/AppShell.vue_vue_type_script_setup_true_lang.js +68 -28
- package/dist/components/BarChart.vue.d.ts +10 -0
- package/dist/components/BarChart.vue_vue_type_script_setup_true_lang.js +170 -152
- package/dist/components/DonutChart.js +5 -0
- package/dist/components/DonutChart.vue.d.ts +96 -0
- package/dist/components/DonutChart.vue_vue_type_script_setup_true_lang.js +234 -0
- package/dist/components/Drawer.vue.d.ts +1 -1
- package/dist/components/LineChart.vue.d.ts +26 -0
- package/dist/components/LineChart.vue_vue_type_script_setup_true_lang.js +205 -139
- package/dist/components/Popover.vue.d.ts +1 -1
- package/dist/components/Sparkline.vue.d.ts +9 -0
- package/dist/components/Sparkline.vue_vue_type_script_setup_true_lang.js +90 -53
- package/dist/components/Stat.vue.d.ts +1 -1
- package/dist/components/Stat.vue_vue_type_script_setup_true_lang.js +13 -13
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +140 -138
- package/dist/composables/cartesian.d.ts +17 -2
- package/dist/composables/cartesian.js +6 -1
- package/dist/composables/chart-reveal.d.ts +45 -0
- package/dist/composables/chart-reveal.js +93 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +147 -144
- package/dist/theme/app-shell.d.ts +42 -0
- package/dist/theme/app-shell.js +13 -1
- package/dist/theme/bar-chart.js +1 -1
- package/dist/theme/button.d.ts +2 -2
- package/dist/theme/button.js +1 -1
- package/dist/theme/command-palette.d.ts +3 -3
- package/dist/theme/donut-chart.d.ts +104 -0
- package/dist/theme/donut-chart.js +17 -0
- package/dist/theme/form.js +1 -1
- package/dist/theme/index.d.ts +1 -0
- package/dist/theme/line-chart.js +2 -2
- package/dist/theme/sidebar.js +1 -1
- package/dist/theme/sparkline.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { computed as e, onBeforeUnmount as t, ref as n, watch as r } from "vue";
|
|
2
|
+
//#region src/composables/chart-reveal.ts
|
|
3
|
+
var i = 700, a = {
|
|
4
|
+
"ease-out": [
|
|
5
|
+
.16,
|
|
6
|
+
1,
|
|
7
|
+
.3,
|
|
8
|
+
1
|
|
9
|
+
],
|
|
10
|
+
"ease-in": [
|
|
11
|
+
.7,
|
|
12
|
+
0,
|
|
13
|
+
.84,
|
|
14
|
+
0
|
|
15
|
+
],
|
|
16
|
+
"ease-in-out": [
|
|
17
|
+
.65,
|
|
18
|
+
0,
|
|
19
|
+
.35,
|
|
20
|
+
1
|
|
21
|
+
],
|
|
22
|
+
linear: [
|
|
23
|
+
0,
|
|
24
|
+
0,
|
|
25
|
+
1,
|
|
26
|
+
1
|
|
27
|
+
]
|
|
28
|
+
};
|
|
29
|
+
function o([e, t, n, r]) {
|
|
30
|
+
let i = (e, t, n) => {
|
|
31
|
+
let r = 1 - n;
|
|
32
|
+
return 3 * r * r * n * e + 3 * r * n * n * t + n * n * n;
|
|
33
|
+
};
|
|
34
|
+
return (a) => {
|
|
35
|
+
if (a <= 0) return 0;
|
|
36
|
+
if (a >= 1) return 1;
|
|
37
|
+
let o = 0, s = 1, c = a;
|
|
38
|
+
for (let t = 0; t < 20; t++) i(e, n, c) < a ? o = c : s = c, c = (o + s) / 2;
|
|
39
|
+
return i(t, r, c);
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function s(t) {
|
|
43
|
+
return e(() => {
|
|
44
|
+
let e = t.value ?? !0, n = typeof e == "object" ? e : {}, r = a[n.easing ?? "ease-out"] ?? a["ease-out"];
|
|
45
|
+
return {
|
|
46
|
+
enabled: e !== !1,
|
|
47
|
+
duration: Math.max(n.duration ?? 700, 0),
|
|
48
|
+
css: `cubic-bezier(${r.join(", ")})`,
|
|
49
|
+
ease: o(r)
|
|
50
|
+
};
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
function c() {
|
|
54
|
+
return typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
55
|
+
}
|
|
56
|
+
function l(e) {
|
|
57
|
+
return e.enabled && e.duration > 0 && typeof requestAnimationFrame < "u" && !c();
|
|
58
|
+
}
|
|
59
|
+
function u(e, t) {
|
|
60
|
+
let i = n(!1), a = !1;
|
|
61
|
+
return r(e, (e) => {
|
|
62
|
+
if (!(!e || a)) {
|
|
63
|
+
if (a = !0, !l(t.value)) {
|
|
64
|
+
i.value = !0;
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
requestAnimationFrame(() => requestAnimationFrame(() => {
|
|
68
|
+
i.value = !0;
|
|
69
|
+
}));
|
|
70
|
+
}
|
|
71
|
+
}, { immediate: !0 }), { revealed: i };
|
|
72
|
+
}
|
|
73
|
+
function d(e, i) {
|
|
74
|
+
let a = n(0), o = !1, s;
|
|
75
|
+
return r(e, (e) => {
|
|
76
|
+
if (!e || o) return;
|
|
77
|
+
if (o = !0, !l(i.value)) {
|
|
78
|
+
a.value = 1;
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
let { duration: t, ease: n } = i.value, r;
|
|
82
|
+
function c(e) {
|
|
83
|
+
r ??= e;
|
|
84
|
+
let i = Math.min((e - r) / t, 1);
|
|
85
|
+
a.value = n(i), i < 1 && (s = requestAnimationFrame(c));
|
|
86
|
+
}
|
|
87
|
+
s = requestAnimationFrame(c);
|
|
88
|
+
}, { immediate: !0 }), t(() => {
|
|
89
|
+
s != null && cancelAnimationFrame(s);
|
|
90
|
+
}), { progress: a };
|
|
91
|
+
}
|
|
92
|
+
//#endregion
|
|
93
|
+
export { i as REVEAL_DURATION, s as useChartAnimation, d as useChartProgress, u as useChartReveal };
|
package/dist/index.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ export type { ContextMenuProps } from './components/ContextMenu.vue';
|
|
|
27
27
|
export type { DatePickerProps } from './components/DatePicker.vue';
|
|
28
28
|
export type { DateRange, DateRangePickerProps } from './components/DateRangePicker.vue';
|
|
29
29
|
export type { DialogProps } from './components/Dialog.vue';
|
|
30
|
+
export type { DonutChartDatum, DonutChartProps } from './components/DonutChart.vue';
|
|
30
31
|
export type { DrawerProps, DrawerSide, DrawerSnapPoint } from './components/Drawer.vue';
|
|
31
32
|
export type { DropdownMenuProps } from './components/DropdownMenu.vue';
|
|
32
33
|
export type { EmptyStateProps } from './components/EmptyState.vue';
|
|
@@ -76,6 +77,7 @@ export type { TreeItemOption, TreeProps } from './components/Tree.vue';
|
|
|
76
77
|
export * from './composables/appearance';
|
|
77
78
|
export * from './composables/button-group';
|
|
78
79
|
export * from './composables/cartesian';
|
|
80
|
+
export * from './composables/chart-reveal';
|
|
79
81
|
export * from './composables/command-palette';
|
|
80
82
|
export * from './composables/confirm';
|
|
81
83
|
export * from './composables/data-table';
|
package/dist/index.js
CHANGED
|
@@ -11,147 +11,150 @@ import { applyTheme as f, clearTheme as p, themes as m } from "./theme/presets.j
|
|
|
11
11
|
import h from "./components/App.js";
|
|
12
12
|
import { useElementSize as g } from "./composables/element-size.js";
|
|
13
13
|
import { appShellTheme as _ } from "./theme/app-shell.js";
|
|
14
|
-
import v from "./
|
|
15
|
-
import y from "./components/
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import C from "./
|
|
19
|
-
import
|
|
20
|
-
import T from "./components/
|
|
21
|
-
import {
|
|
22
|
-
import D from "./components/
|
|
23
|
-
import {
|
|
24
|
-
import
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import G from "./
|
|
28
|
-
import
|
|
29
|
-
import {
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import {
|
|
33
|
-
import
|
|
34
|
-
import {
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import {
|
|
44
|
-
import
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import
|
|
51
|
-
import {
|
|
52
|
-
import Ae from "./
|
|
53
|
-
import
|
|
54
|
-
import {
|
|
55
|
-
import
|
|
56
|
-
import
|
|
57
|
-
import
|
|
58
|
-
import {
|
|
59
|
-
import
|
|
60
|
-
import
|
|
61
|
-
import {
|
|
62
|
-
import
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import
|
|
66
|
-
import et from "./
|
|
67
|
-
import {
|
|
68
|
-
import
|
|
69
|
-
import
|
|
70
|
-
import {
|
|
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
|
|
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
|
|
122
|
-
import
|
|
123
|
-
import
|
|
124
|
-
import
|
|
125
|
-
import
|
|
126
|
-
import
|
|
127
|
-
import
|
|
128
|
-
import
|
|
129
|
-
import
|
|
130
|
-
import
|
|
131
|
-
import
|
|
132
|
-
import
|
|
133
|
-
import {
|
|
134
|
-
import
|
|
135
|
-
import {
|
|
136
|
-
import
|
|
137
|
-
import
|
|
138
|
-
import
|
|
139
|
-
import
|
|
140
|
-
import {
|
|
141
|
-
import
|
|
142
|
-
import
|
|
143
|
-
import
|
|
144
|
-
import
|
|
145
|
-
import {
|
|
146
|
-
import
|
|
147
|
-
import {
|
|
148
|
-
import
|
|
149
|
-
import
|
|
150
|
-
import {
|
|
151
|
-
import
|
|
152
|
-
import
|
|
153
|
-
import
|
|
154
|
-
import
|
|
155
|
-
import
|
|
156
|
-
import
|
|
157
|
-
|
|
14
|
+
import { drawerTheme as v } from "./theme/drawer.js";
|
|
15
|
+
import y from "./components/Drawer.js";
|
|
16
|
+
import b from "./components/AppShell.js";
|
|
17
|
+
import x from "./components/AspectRatio.js";
|
|
18
|
+
import { avatarGroupTheme as S, avatarTheme as C } from "./theme/avatar.js";
|
|
19
|
+
import w from "./components/Avatar.js";
|
|
20
|
+
import T from "./components/AvatarGroup.js";
|
|
21
|
+
import { badgeTheme as E } from "./theme/badge.js";
|
|
22
|
+
import D from "./components/Badge.js";
|
|
23
|
+
import { bannerTheme as O } from "./theme/banner.js";
|
|
24
|
+
import k from "./components/Banner.js";
|
|
25
|
+
import { extent as A, finiteValues as j, linearScale as M, niceTicks as N } from "./composables/scale.js";
|
|
26
|
+
import { AXIS_GAP as P, CATEGORY_HEIGHT as F, CHAR_WIDTH as I, SERIES_SLOTS as L, TOP_PAD as R, cartesianLayout as z, clampTooltip as B, seriesColor as V, slotOf as H, tooltipHalfWidth as U, warnOnSlotOverflow as W } from "./composables/cartesian.js";
|
|
27
|
+
import { REVEAL_DURATION as G, useChartAnimation as K, useChartProgress as q, useChartReveal as J } from "./composables/chart-reveal.js";
|
|
28
|
+
import { barChartTheme as Y } from "./theme/bar-chart.js";
|
|
29
|
+
import { chartLegendTheme as X } from "./theme/chart-legend.js";
|
|
30
|
+
import Z from "./components/ChartLegend.js";
|
|
31
|
+
import Q from "./components/BarChart.js";
|
|
32
|
+
import { breadcrumbTheme as $ } from "./theme/breadcrumb.js";
|
|
33
|
+
import ee from "./components/Breadcrumb.js";
|
|
34
|
+
import { buttonGroupContextKey as te, useButtonGroup as ne } from "./composables/button-group.js";
|
|
35
|
+
import { buttonTheme as re } from "./theme/button.js";
|
|
36
|
+
import ie from "./components/Button.js";
|
|
37
|
+
import { buttonGroupTheme as ae } from "./theme/button-group.js";
|
|
38
|
+
import oe from "./components/ButtonGroup.js";
|
|
39
|
+
import { cardTheme as se } from "./theme/card.js";
|
|
40
|
+
import ce from "./components/Card.js";
|
|
41
|
+
import { checkboxTheme as le } from "./theme/checkbox.js";
|
|
42
|
+
import ue from "./components/Checkbox.js";
|
|
43
|
+
import { collapsibleTheme as de } from "./theme/collapsible.js";
|
|
44
|
+
import fe from "./components/Collapsible.js";
|
|
45
|
+
import { fieldBase as pe, inputTheme as me, textareaTheme as he } from "./theme/input.js";
|
|
46
|
+
import { colorPickerTheme as ge } from "./theme/color-picker.js";
|
|
47
|
+
import _e from "./components/ColorPicker.js";
|
|
48
|
+
import { formContextKey as ve, formFieldContextKey as ye, getByPath as be, isStandardSchema as xe, issuePath as Se, useForm as Ce, useFormField as we } from "./composables/form.js";
|
|
49
|
+
import { comboboxTheme as Te } from "./theme/combobox.js";
|
|
50
|
+
import Ee from "./components/Combobox.js";
|
|
51
|
+
import { isApplePlatform as De, parseHotkey as Oe, useApplePlatform as ke } from "./composables/kbd.js";
|
|
52
|
+
import { commandHaystack as Ae, isCommandGroup as je, matchesHotkey as Me, toCommandGroups as Ne } from "./composables/command-palette.js";
|
|
53
|
+
import { commandPaletteTheme as Pe } from "./theme/command-palette.js";
|
|
54
|
+
import { kbdTheme as Fe } from "./theme/kbd.js";
|
|
55
|
+
import Ie from "./components/Kbd.js";
|
|
56
|
+
import Le from "./components/CommandPalette.js";
|
|
57
|
+
import { resolveConfirm as Re, useConfirm as ze, useConfirmState as Be } from "./composables/confirm.js";
|
|
58
|
+
import { dialogTheme as Ve } from "./theme/dialog.js";
|
|
59
|
+
import He from "./components/Dialog.js";
|
|
60
|
+
import Ue from "./components/ConfirmDialog.js";
|
|
61
|
+
import { containerTheme as We } from "./theme/container.js";
|
|
62
|
+
import Ge from "./components/Container.js";
|
|
63
|
+
import { dropdownMenuTheme as Ke } from "./theme/dropdown-menu.js";
|
|
64
|
+
import { isSeparator as qe, isSubmenu as Je } from "./composables/dropdown-menu.js";
|
|
65
|
+
import Ye from "./components/ContextMenu.js";
|
|
66
|
+
import { CalendarDate as Xe, Time as Ze, formatIsoDate as Qe, isoToday as $e, toCalendarDate as et, toIsoDate as tt, toIsoTime as nt, toTime as rt } from "./composables/date.js";
|
|
67
|
+
import { datePickerTheme as it } from "./theme/date-picker.js";
|
|
68
|
+
import at from "./components/DatePicker.js";
|
|
69
|
+
import ot from "./components/DateRangePicker.js";
|
|
70
|
+
import { donutChartTheme as st } from "./theme/donut-chart.js";
|
|
71
|
+
import ct from "./components/DonutChart.js";
|
|
72
|
+
import lt from "./components/DropdownMenu.js";
|
|
73
|
+
import { emptyStateTheme as ut } from "./theme/empty-state.js";
|
|
74
|
+
import dt from "./components/EmptyState.js";
|
|
75
|
+
import { fileUploadTheme as ft } from "./theme/file-upload.js";
|
|
76
|
+
import pt from "./components/FileUpload.js";
|
|
77
|
+
import mt from "./components/Form.js";
|
|
78
|
+
import { labelTheme as ht } from "./theme/label.js";
|
|
79
|
+
import gt from "./components/Label.js";
|
|
80
|
+
import _t from "./components/FormField.js";
|
|
81
|
+
import vt from "./components/Input.js";
|
|
82
|
+
import { lineChartTheme as yt } from "./theme/line-chart.js";
|
|
83
|
+
import bt from "./components/LineChart.js";
|
|
84
|
+
import { menubarTheme as xt } from "./theme/menubar.js";
|
|
85
|
+
import St from "./components/Menubar.js";
|
|
86
|
+
import { isNavigationGroup as Ct } from "./composables/navigation-menu.js";
|
|
87
|
+
import { navigationMenuTheme as wt } from "./theme/navigation-menu.js";
|
|
88
|
+
import Tt from "./components/NavigationMenu.js";
|
|
89
|
+
import { addDecimals as Et, clampDecimal as Dt, compareDecimals as Ot, formatDecimal as kt, formatForLocale as At, isDecimal as jt, localeSeparators as Mt, parseDecimal as Nt, parseFromLocale as Pt, roundDecimal as Ft, toEditable as It } from "./composables/decimal.js";
|
|
90
|
+
import { numberInputTheme as Lt } from "./theme/number-input.js";
|
|
91
|
+
import Rt from "./components/NumberInput.js";
|
|
92
|
+
import { pageHeaderTheme as zt } from "./theme/page-header.js";
|
|
93
|
+
import Bt from "./components/PageHeader.js";
|
|
94
|
+
import { paginationTheme as Vt } from "./theme/pagination.js";
|
|
95
|
+
import Ht from "./components/Pagination.js";
|
|
96
|
+
import { passwordInputTheme as Ut } from "./theme/password-input.js";
|
|
97
|
+
import Wt from "./components/PasswordInput.js";
|
|
98
|
+
import { pinInputTheme as Gt } from "./theme/pin-input.js";
|
|
99
|
+
import Kt from "./components/PinInput.js";
|
|
100
|
+
import { popoverTheme as qt } from "./theme/popover.js";
|
|
101
|
+
import Jt from "./components/Popover.js";
|
|
102
|
+
import { progressTheme as Yt } from "./theme/progress.js";
|
|
103
|
+
import Xt from "./components/Progress.js";
|
|
104
|
+
import { radioGroupTheme as Zt } from "./theme/radio-group.js";
|
|
105
|
+
import Qt from "./components/RadioGroup.js";
|
|
106
|
+
import { scrollAreaTheme as $t } from "./theme/scroll-area.js";
|
|
107
|
+
import en from "./components/ScrollArea.js";
|
|
108
|
+
import { scrollFadeMask as tn, useScrollEdges as nn } from "./composables/scroll-fade.js";
|
|
109
|
+
import { scrollFadeTheme as rn } from "./theme/scroll-fade.js";
|
|
110
|
+
import an from "./components/ScrollFade.js";
|
|
111
|
+
import { selectTheme as on } from "./theme/select.js";
|
|
112
|
+
import sn from "./components/Select.js";
|
|
113
|
+
import { separatorTheme as cn } from "./theme/separator.js";
|
|
114
|
+
import ln from "./components/Separator.js";
|
|
115
|
+
import { isSidebarGroup as un, isSidebarSection as dn, toSidebarSections as fn } from "./composables/sidebar.js";
|
|
116
|
+
import { sidebarTheme as pn } from "./theme/sidebar.js";
|
|
117
|
+
import mn from "./components/Sidebar.js";
|
|
118
|
+
import { hasInk as hn, strokeWidth as gn } from "./composables/signature.js";
|
|
119
|
+
import { signaturePadTheme as _n } from "./theme/signature-pad.js";
|
|
120
|
+
import vn from "./components/SignaturePad.js";
|
|
121
|
+
import { skeletonTheme as yn } from "./theme/skeleton.js";
|
|
122
|
+
import bn from "./components/Skeleton.js";
|
|
123
|
+
import { sliderTheme as xn } from "./theme/slider.js";
|
|
124
|
+
import Sn from "./components/Slider.js";
|
|
125
|
+
import { sparklineTheme as Cn } from "./theme/sparkline.js";
|
|
126
|
+
import wn from "./components/Sparkline.js";
|
|
127
|
+
import { splitterTheme as Tn } from "./theme/splitter.js";
|
|
128
|
+
import En from "./components/Splitter.js";
|
|
129
|
+
import { statTheme as Dn } from "./theme/stat.js";
|
|
130
|
+
import On from "./components/Stat.js";
|
|
131
|
+
import { stepperTheme as kn } from "./theme/stepper.js";
|
|
132
|
+
import An from "./components/Stepper.js";
|
|
133
|
+
import { switchTheme as jn } from "./theme/switch.js";
|
|
134
|
+
import Mn from "./components/Switch.js";
|
|
135
|
+
import { getRowValue as Nn, useDataTable as Pn } from "./composables/data-table.js";
|
|
136
|
+
import { tableTheme as Fn } from "./theme/table.js";
|
|
137
|
+
import In from "./components/Table.js";
|
|
138
|
+
import { tabsTheme as Ln } from "./theme/tabs.js";
|
|
139
|
+
import Rn from "./components/Tabs.js";
|
|
140
|
+
import { tagsInputTheme as zn } from "./theme/tags-input.js";
|
|
141
|
+
import Bn from "./components/TagsInput.js";
|
|
142
|
+
import Vn from "./components/Textarea.js";
|
|
143
|
+
import { timeFieldTheme as Hn } from "./theme/time-field.js";
|
|
144
|
+
import Un from "./components/TimeField.js";
|
|
145
|
+
import { timelineTheme as Wn } from "./theme/timeline.js";
|
|
146
|
+
import Gn from "./components/Timeline.js";
|
|
147
|
+
import { useToast as Kn, useToastState as qn } from "./composables/toast.js";
|
|
148
|
+
import { toastTheme as Jn } from "./theme/toast.js";
|
|
149
|
+
import Yn from "./components/Toaster.js";
|
|
150
|
+
import { toggleGroupTheme as Xn, toggleTheme as Zn } from "./theme/toggle.js";
|
|
151
|
+
import Qn from "./components/Toggle.js";
|
|
152
|
+
import $n from "./components/ToggleGroup.js";
|
|
153
|
+
import { toolbarTheme as er } from "./theme/toolbar.js";
|
|
154
|
+
import tr from "./components/Toolbar.js";
|
|
155
|
+
import { tooltipTheme as nr } from "./theme/tooltip.js";
|
|
156
|
+
import rr from "./components/Tooltip.js";
|
|
157
|
+
import { treeTheme as ir } from "./theme/tree.js";
|
|
158
|
+
import ar from "./components/Tree.js";
|
|
159
|
+
import { IryxUi as or, createIryxUi as sr } from "./plugin.js";
|
|
160
|
+
export { P as AXIS_GAP, s as Accordion, l as Alert, h as App, b as AppShell, x as AspectRatio, w as Avatar, T as AvatarGroup, D as Badge, k as Banner, Q as BarChart, ee as Breadcrumb, ie as Button, oe as ButtonGroup, F as CATEGORY_HEIGHT, I as CHAR_WIDTH, Xe as CalendarDate, ce as Card, Z as ChartLegend, ue as Checkbox, fe as Collapsible, _e as ColorPicker, Ee as Combobox, Le as CommandPalette, Ue as ConfirmDialog, Ge as Container, Ye as ContextMenu, at as DatePicker, ot as DateRangePicker, He as Dialog, ct as DonutChart, y as Drawer, lt as DropdownMenu, dt as EmptyState, pt as FileUpload, mt as Form, _t as FormField, o as Icon, vt as Input, or as IryxUi, Ie as Kbd, gt as Label, bt as LineChart, St as Menubar, Tt as NavigationMenu, Rt as NumberInput, Bt as PageHeader, Ht as Pagination, Wt as PasswordInput, Kt as PinInput, Jt as Popover, Xt as Progress, G as REVEAL_DURATION, Qt as RadioGroup, L as SERIES_SLOTS, en as ScrollArea, an as ScrollFade, sn as Select, ln as Separator, mn as Sidebar, vn as SignaturePad, bn as Skeleton, Sn as Slider, wn as Sparkline, En as Splitter, On as Stat, An as Stepper, Mn as Switch, R as TOP_PAD, In as Table, Rn as Tabs, Bn as TagsInput, Vn as Textarea, Ze as Time, Un as TimeField, Gn as Timeline, Yn as Toaster, Qn as Toggle, $n as ToggleGroup, tr as Toolbar, rr as Tooltip, ar as Tree, i as accordionTheme, Et as addDecimals, c as alertTheme, _ as appShellTheme, f as applyTheme, S as avatarGroupTheme, C as avatarTheme, E as badgeTheme, O as bannerTheme, Y as barChartTheme, $ as breadcrumbTheme, te as buttonGroupContextKey, ae as buttonGroupTheme, re as buttonTheme, se as cardTheme, z as cartesianLayout, X as chartLegendTheme, le as checkboxTheme, Dt as clampDecimal, B as clampTooltip, p as clearTheme, de as collapsibleTheme, ge as colorPickerTheme, Te as comboboxTheme, Ae as commandHaystack, Pe as commandPaletteTheme, Ot as compareDecimals, e as componentNames, We as containerTheme, sr as createIryxUi, it as datePickerTheme, t as defaultConfig, Ve as dialogTheme, st as donutChartTheme, v as drawerTheme, Ke as dropdownMenuTheme, ut as emptyStateTheme, A as extent, pe as fieldBase, ft as fileUploadTheme, j as finiteValues, ve as formContextKey, ye as formFieldContextKey, kt as formatDecimal, At as formatForLocale, Qe as formatIsoDate, be as getByPath, Nn as getRowValue, hn as hasInk, u as initAppearance, me as inputTheme, n as iryxUiConfigKey, De as isApplePlatform, je as isCommandGroup, jt as isDecimal, a as isIconArray, Ct as isNavigationGroup, qe as isSeparator, un as isSidebarGroup, dn as isSidebarSection, xe as isStandardSchema, Je as isSubmenu, $e as isoToday, Se as issuePath, Fe as kbdTheme, ht as labelTheme, yt as lineChartTheme, M as linearScale, Mt as localeSeparators, Me as matchesHotkey, xt as menubarTheme, wt as navigationMenuTheme, N as niceTicks, Lt as numberInputTheme, zt as pageHeaderTheme, Vt as paginationTheme, Nt as parseDecimal, Pt as parseFromLocale, Oe as parseHotkey, Ut as passwordInputTheme, Gt as pinInputTheme, qt as popoverTheme, Yt as progressTheme, Zt as radioGroupTheme, Re as resolveConfirm, Ft as roundDecimal, $t as scrollAreaTheme, tn as scrollFadeMask, rn as scrollFadeTheme, on as selectTheme, cn as separatorTheme, V as seriesColor, pn as sidebarTheme, _n as signaturePadTheme, yn as skeletonTheme, xn as sliderTheme, H as slotOf, Cn as sparklineTheme, Tn as splitterTheme, Dn as statTheme, kn as stepperTheme, gn as strokeWidth, jn as switchTheme, Fn as tableTheme, Ln as tabsTheme, zn as tagsInputTheme, he as textareaTheme, m as themes, Hn as timeFieldTheme, Wn as timelineTheme, et as toCalendarDate, Ne as toCommandGroups, It as toEditable, tt as toIsoDate, nt as toIsoTime, fn as toSidebarSections, rt as toTime, Jn as toastTheme, Xn as toggleGroupTheme, Zn as toggleTheme, er as toolbarTheme, U as tooltipHalfWidth, nr as tooltipTheme, ir as treeTheme, d as useAppearance, ke as useApplePlatform, ne as useButtonGroup, K as useChartAnimation, q as useChartProgress, J as useChartReveal, ze as useConfirm, Be as useConfirmState, Pn as useDataTable, g as useElementSize, Ce as useForm, we as useFormField, r as useIryxUiConfig, nn as useScrollEdges, Kn as useToast, qn as useToastState, W as warnOnSlotOverflow };
|
|
@@ -10,6 +10,15 @@ export declare const appShellTheme: import("tailwind-variants").TVReturnType<{
|
|
|
10
10
|
sidebar: string;
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
+
mobileNav: {
|
|
14
|
+
true: {
|
|
15
|
+
sidebar: string;
|
|
16
|
+
navTrigger: string;
|
|
17
|
+
};
|
|
18
|
+
false: {
|
|
19
|
+
navTrigger: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
13
22
|
sidebarPosition: {
|
|
14
23
|
left: {};
|
|
15
24
|
right: {
|
|
@@ -19,10 +28,15 @@ export declare const appShellTheme: import("tailwind-variants").TVReturnType<{
|
|
|
19
28
|
}, {
|
|
20
29
|
root: string;
|
|
21
30
|
header: string;
|
|
31
|
+
headerRow: string;
|
|
32
|
+
headerContent: string;
|
|
33
|
+
navTrigger: string;
|
|
22
34
|
body: string;
|
|
23
35
|
sidebar: string;
|
|
24
36
|
main: string;
|
|
25
37
|
footer: string;
|
|
38
|
+
navDrawer: string;
|
|
39
|
+
navDrawerBody: string;
|
|
26
40
|
}, undefined, {
|
|
27
41
|
scroll: {
|
|
28
42
|
main: {
|
|
@@ -35,6 +49,15 @@ export declare const appShellTheme: import("tailwind-variants").TVReturnType<{
|
|
|
35
49
|
sidebar: string;
|
|
36
50
|
};
|
|
37
51
|
};
|
|
52
|
+
mobileNav: {
|
|
53
|
+
true: {
|
|
54
|
+
sidebar: string;
|
|
55
|
+
navTrigger: string;
|
|
56
|
+
};
|
|
57
|
+
false: {
|
|
58
|
+
navTrigger: string;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
38
61
|
sidebarPosition: {
|
|
39
62
|
left: {};
|
|
40
63
|
right: {
|
|
@@ -44,10 +67,15 @@ export declare const appShellTheme: import("tailwind-variants").TVReturnType<{
|
|
|
44
67
|
}, {
|
|
45
68
|
root: string;
|
|
46
69
|
header: string;
|
|
70
|
+
headerRow: string;
|
|
71
|
+
headerContent: string;
|
|
72
|
+
navTrigger: string;
|
|
47
73
|
body: string;
|
|
48
74
|
sidebar: string;
|
|
49
75
|
main: string;
|
|
50
76
|
footer: string;
|
|
77
|
+
navDrawer: string;
|
|
78
|
+
navDrawerBody: string;
|
|
51
79
|
}, import("tailwind-variants").TVReturnType<{
|
|
52
80
|
scroll: {
|
|
53
81
|
main: {
|
|
@@ -60,6 +88,15 @@ export declare const appShellTheme: import("tailwind-variants").TVReturnType<{
|
|
|
60
88
|
sidebar: string;
|
|
61
89
|
};
|
|
62
90
|
};
|
|
91
|
+
mobileNav: {
|
|
92
|
+
true: {
|
|
93
|
+
sidebar: string;
|
|
94
|
+
navTrigger: string;
|
|
95
|
+
};
|
|
96
|
+
false: {
|
|
97
|
+
navTrigger: string;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
63
100
|
sidebarPosition: {
|
|
64
101
|
left: {};
|
|
65
102
|
right: {
|
|
@@ -69,9 +106,14 @@ export declare const appShellTheme: import("tailwind-variants").TVReturnType<{
|
|
|
69
106
|
}, {
|
|
70
107
|
root: string;
|
|
71
108
|
header: string;
|
|
109
|
+
headerRow: string;
|
|
110
|
+
headerContent: string;
|
|
111
|
+
navTrigger: string;
|
|
72
112
|
body: string;
|
|
73
113
|
sidebar: string;
|
|
74
114
|
main: string;
|
|
75
115
|
footer: string;
|
|
116
|
+
navDrawer: string;
|
|
117
|
+
navDrawerBody: string;
|
|
76
118
|
}, undefined, unknown, unknown, undefined>>;
|
|
77
119
|
export type AppShellSlots = keyof ReturnType<typeof appShellTheme>;
|
package/dist/theme/app-shell.js
CHANGED
|
@@ -4,10 +4,15 @@ var t = e({
|
|
|
4
4
|
slots: {
|
|
5
5
|
root: "flex w-full flex-col bg-background text-foreground",
|
|
6
6
|
header: "z-30 shrink-0",
|
|
7
|
+
headerRow: "flex w-full items-center",
|
|
8
|
+
headerContent: "min-w-0 flex-1",
|
|
9
|
+
navTrigger: "ms-2 inline-flex size-9 shrink-0 cursor-pointer items-center justify-center rounded-lg text-muted-foreground transition-colors outline-none hover:bg-accent hover:text-accent-foreground focus-visible:ring-2 focus-visible:ring-primary/50 [&_svg]:size-5",
|
|
7
10
|
body: "flex min-h-0 w-full flex-1",
|
|
8
11
|
sidebar: "shrink-0",
|
|
9
12
|
main: "flex min-w-0 flex-1 flex-col",
|
|
10
|
-
footer: "shrink-0"
|
|
13
|
+
footer: "shrink-0",
|
|
14
|
+
navDrawer: "",
|
|
15
|
+
navDrawerBody: "p-0 pt-12 [&>*]:h-full [&>*]:w-full [&>*]:border-0"
|
|
11
16
|
},
|
|
12
17
|
variants: {
|
|
13
18
|
scroll: {
|
|
@@ -21,6 +26,13 @@ var t = e({
|
|
|
21
26
|
sidebar: "sticky top-[var(--iryx-shell-header-height,0px)] max-h-[calc(100svh-var(--iryx-shell-header-height,0px))] self-start overflow-y-auto"
|
|
22
27
|
}
|
|
23
28
|
},
|
|
29
|
+
mobileNav: {
|
|
30
|
+
true: {
|
|
31
|
+
sidebar: "hidden md:block",
|
|
32
|
+
navTrigger: "md:hidden"
|
|
33
|
+
},
|
|
34
|
+
false: { navTrigger: "hidden" }
|
|
35
|
+
},
|
|
24
36
|
sidebarPosition: {
|
|
25
37
|
left: {},
|
|
26
38
|
right: { body: "flex-row-reverse" }
|
package/dist/theme/bar-chart.js
CHANGED
package/dist/theme/button.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export declare const buttonTheme: import("tailwind-variants").TVReturnType<{
|
|
|
19
19
|
block: {
|
|
20
20
|
true: string;
|
|
21
21
|
};
|
|
22
|
-
}, undefined, "inline-flex shrink-0 items-center justify-center gap-2 rounded-xl border border-transparent font-medium transition-[color,background-color,border-color,box-shadow,opacity,filter,translate] outline-none focus-visible:ring-2 focus-visible:ring-primary/50 active:translate-y-px disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0", {
|
|
22
|
+
}, undefined, "inline-flex shrink-0 items-center justify-center gap-2 rounded-xl border border-transparent font-medium no-underline transition-[color,background-color,border-color,box-shadow,opacity,filter,translate] outline-none focus-visible:ring-2 focus-visible:ring-primary/50 active:translate-y-px disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0", {
|
|
23
23
|
variant: {
|
|
24
24
|
solid: string;
|
|
25
25
|
outline: string;
|
|
@@ -61,5 +61,5 @@ export declare const buttonTheme: import("tailwind-variants").TVReturnType<{
|
|
|
61
61
|
block: {
|
|
62
62
|
true: string;
|
|
63
63
|
};
|
|
64
|
-
}, undefined, "inline-flex shrink-0 items-center justify-center gap-2 rounded-xl border border-transparent font-medium transition-[color,background-color,border-color,box-shadow,opacity,filter,translate] outline-none focus-visible:ring-2 focus-visible:ring-primary/50 active:translate-y-px disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0", unknown, unknown, undefined>>;
|
|
64
|
+
}, undefined, "inline-flex shrink-0 items-center justify-center gap-2 rounded-xl border border-transparent font-medium no-underline transition-[color,background-color,border-color,box-shadow,opacity,filter,translate] outline-none focus-visible:ring-2 focus-visible:ring-primary/50 active:translate-y-px disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0", unknown, unknown, undefined>>;
|
|
65
65
|
export type ButtonVariants = Parameters<typeof buttonTheme>[0];
|
package/dist/theme/button.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { tv as e } from "tailwind-variants";
|
|
2
2
|
//#region src/theme/button.ts
|
|
3
3
|
var t = e({
|
|
4
|
-
base: "inline-flex shrink-0 items-center justify-center gap-2 rounded-xl border border-transparent font-medium transition-[color,background-color,border-color,box-shadow,opacity,filter,translate] outline-none focus-visible:ring-2 focus-visible:ring-primary/50 active:translate-y-px disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
4
|
+
base: "inline-flex shrink-0 items-center justify-center gap-2 rounded-xl border border-transparent font-medium no-underline transition-[color,background-color,border-color,box-shadow,opacity,filter,translate] outline-none focus-visible:ring-2 focus-visible:ring-primary/50 active:translate-y-px disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
5
5
|
variants: {
|
|
6
6
|
variant: {
|
|
7
7
|
solid: "bg-linear-to-b from-primary-from to-primary-to text-primary-foreground hover:brightness-110 active:brightness-95",
|