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