iryx-ui 0.8.0 → 0.10.1

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 (164) hide show
  1. package/README.md +279 -7
  2. package/dist/component-names.d.ts +1 -1
  3. package/dist/component-names.js +4 -0
  4. package/dist/{packages/iryx-ui/src/components → components}/Alert.vue_vue_type_script_setup_true_lang.js +1 -1
  5. package/dist/{packages/iryx-ui/src/components → components}/Banner.vue_vue_type_script_setup_true_lang.js +1 -1
  6. package/dist/components/BarChart.js +5 -0
  7. package/dist/components/BarChart.vue.d.ts +95 -0
  8. package/dist/components/BarChart.vue_vue_type_script_setup_true_lang.js +258 -0
  9. package/dist/{packages/iryx-ui/src/components → components}/Breadcrumb.vue_vue_type_script_setup_true_lang.js +1 -1
  10. package/dist/{packages/iryx-ui/src/components → components}/Button.vue_vue_type_script_setup_true_lang.js +1 -1
  11. package/dist/components/ChartLegend.js +5 -0
  12. package/dist/components/ChartLegend.vue.d.ts +12 -0
  13. package/dist/components/ChartLegend.vue_vue_type_script_setup_true_lang.js +31 -0
  14. package/dist/{packages/iryx-ui/src/components → components}/Checkbox.vue_vue_type_script_setup_true_lang.js +1 -1
  15. package/dist/{packages/iryx-ui/src/components → components}/Combobox.vue_vue_type_script_setup_true_lang.js +1 -1
  16. package/dist/{packages/iryx-ui/src/components → components}/DatePicker.vue_vue_type_script_setup_true_lang.js +1 -1
  17. package/dist/{packages/iryx-ui/src/components → components}/DateRangePicker.vue_vue_type_script_setup_true_lang.js +1 -1
  18. package/dist/components/Dialog.vue_vue_type_script_setup_true_lang.js +102 -0
  19. package/dist/{packages/iryx-ui/src/components → components}/DropdownMenuItems.vue_vue_type_script_setup_true_lang.js +1 -1
  20. package/dist/{packages/iryx-ui/src/components → components}/FileUpload.vue_vue_type_script_setup_true_lang.js +1 -1
  21. package/dist/{packages/iryx-ui/src/components → components}/Icon.vue_vue_type_script_setup_true_lang.js +1 -1
  22. package/dist/{packages/iryx-ui/src/components → components}/Input.vue_vue_type_script_setup_true_lang.js +1 -1
  23. package/dist/components/LineChart.js +5 -0
  24. package/dist/components/LineChart.vue.d.ts +100 -0
  25. package/dist/components/LineChart.vue_vue_type_script_setup_true_lang.js +265 -0
  26. package/dist/{packages/iryx-ui/src/components → components}/NumberInput.vue_vue_type_script_setup_true_lang.js +1 -1
  27. package/dist/{packages/iryx-ui/src/components → components}/Pagination.vue_vue_type_script_setup_true_lang.js +1 -1
  28. package/dist/{packages/iryx-ui/src/components → components}/PasswordInput.vue_vue_type_script_setup_true_lang.js +1 -1
  29. package/dist/{packages/iryx-ui/src/components → components}/Select.vue_vue_type_script_setup_true_lang.js +1 -1
  30. package/dist/components/Sparkline.js +5 -0
  31. package/dist/components/Sparkline.vue.d.ts +38 -0
  32. package/dist/components/Sparkline.vue_vue_type_script_setup_true_lang.js +110 -0
  33. package/dist/{packages/iryx-ui/src/components → components}/Stat.vue_vue_type_script_setup_true_lang.js +1 -1
  34. package/dist/{packages/iryx-ui/src/components → components}/Stepper.vue_vue_type_script_setup_true_lang.js +1 -1
  35. package/dist/{packages/iryx-ui/src/components → components}/Table.vue_vue_type_script_setup_true_lang.js +1 -1
  36. package/dist/{packages/iryx-ui/src/components → components}/Toaster.vue_vue_type_script_setup_true_lang.js +1 -1
  37. package/dist/components/index.d.ts +4 -0
  38. package/dist/components/index.js +88 -0
  39. package/dist/composables/cartesian.d.ts +105 -0
  40. package/dist/composables/cartesian.js +43 -0
  41. package/dist/{packages/iryx-ui/src/composables → composables}/date.js +4 -4
  42. package/dist/composables/element-size.d.ts +15 -0
  43. package/dist/composables/element-size.js +22 -0
  44. package/dist/composables/scale.d.ts +36 -0
  45. package/dist/composables/scale.js +43 -0
  46. package/dist/index.d.ts +7 -0
  47. package/dist/index.js +94 -83
  48. package/dist/nuxt.js +1 -1
  49. package/dist/theme/bar-chart.d.ts +132 -0
  50. package/dist/theme/bar-chart.js +19 -0
  51. package/dist/theme/breadcrumb.d.ts +3 -3
  52. package/dist/theme/chart-legend.d.ts +55 -0
  53. package/dist/theme/chart-legend.js +10 -0
  54. package/dist/theme/index.d.ts +4 -0
  55. package/dist/theme/line-chart.d.ts +143 -0
  56. package/dist/theme/line-chart.js +22 -0
  57. package/dist/theme/sparkline.d.ts +58 -0
  58. package/dist/theme/sparkline.js +15 -0
  59. package/package.json +8 -8
  60. package/theme.css +42 -0
  61. package/dist/packages/iryx-ui/src/component-names.js +0 -4
  62. package/dist/packages/iryx-ui/src/components/Dialog.vue_vue_type_script_setup_true_lang.js +0 -99
  63. package/dist/packages/iryx-ui/src/components/index.js +0 -80
  64. /package/dist/{packages/iryx-ui/src/components → components}/Alert.js +0 -0
  65. /package/dist/{packages/iryx-ui/src/components → components}/App.js +0 -0
  66. /package/dist/{packages/iryx-ui/src/components → components}/App.vue_vue_type_script_setup_true_lang.js +0 -0
  67. /package/dist/{packages/iryx-ui/src/components → components}/Badge.js +0 -0
  68. /package/dist/{packages/iryx-ui/src/components → components}/Badge.vue_vue_type_script_setup_true_lang.js +0 -0
  69. /package/dist/{packages/iryx-ui/src/components → components}/Banner.js +0 -0
  70. /package/dist/{packages/iryx-ui/src/components → components}/Breadcrumb.js +0 -0
  71. /package/dist/{packages/iryx-ui/src/components → components}/Button.js +0 -0
  72. /package/dist/{packages/iryx-ui/src/components → components}/ButtonGroup.js +0 -0
  73. /package/dist/{packages/iryx-ui/src/components → components}/ButtonGroup.vue_vue_type_script_setup_true_lang.js +0 -0
  74. /package/dist/{packages/iryx-ui/src/components → components}/Card.js +0 -0
  75. /package/dist/{packages/iryx-ui/src/components → components}/Card.vue_vue_type_script_setup_true_lang.js +0 -0
  76. /package/dist/{packages/iryx-ui/src/components → components}/Checkbox.js +0 -0
  77. /package/dist/{packages/iryx-ui/src/components → components}/Combobox.js +0 -0
  78. /package/dist/{packages/iryx-ui/src/components → components}/ConfirmDialog.js +0 -0
  79. /package/dist/{packages/iryx-ui/src/components → components}/ConfirmDialog.vue_vue_type_script_setup_true_lang.js +0 -0
  80. /package/dist/{packages/iryx-ui/src/components → components}/DatePicker.js +0 -0
  81. /package/dist/{packages/iryx-ui/src/components → components}/DateRangePicker.js +0 -0
  82. /package/dist/{packages/iryx-ui/src/components → components}/Dialog.js +0 -0
  83. /package/dist/{packages/iryx-ui/src/components → components}/DropdownMenu.js +0 -0
  84. /package/dist/{packages/iryx-ui/src/components → components}/DropdownMenu.vue_vue_type_script_setup_true_lang.js +0 -0
  85. /package/dist/{packages/iryx-ui/src/components → components}/DropdownMenuItems.js +0 -0
  86. /package/dist/{packages/iryx-ui/src/components → components}/EmptyState.js +0 -0
  87. /package/dist/{packages/iryx-ui/src/components → components}/EmptyState.vue_vue_type_script_setup_true_lang.js +0 -0
  88. /package/dist/{packages/iryx-ui/src/components → components}/FileUpload.js +0 -0
  89. /package/dist/{packages/iryx-ui/src/components → components}/Form.js +0 -0
  90. /package/dist/{packages/iryx-ui/src/components → components}/Form.vue_vue_type_script_setup_true_lang.js +0 -0
  91. /package/dist/{packages/iryx-ui/src/components → components}/FormField.js +0 -0
  92. /package/dist/{packages/iryx-ui/src/components → components}/FormField.vue_vue_type_script_setup_true_lang.js +0 -0
  93. /package/dist/{packages/iryx-ui/src/components → components}/Icon.js +0 -0
  94. /package/dist/{packages/iryx-ui/src/components → components}/Input.js +0 -0
  95. /package/dist/{packages/iryx-ui/src/components → components}/Label.js +0 -0
  96. /package/dist/{packages/iryx-ui/src/components → components}/Label.vue_vue_type_script_setup_true_lang.js +0 -0
  97. /package/dist/{packages/iryx-ui/src/components → components}/NumberInput.js +0 -0
  98. /package/dist/{packages/iryx-ui/src/components → components}/Pagination.js +0 -0
  99. /package/dist/{packages/iryx-ui/src/components → components}/PasswordInput.js +0 -0
  100. /package/dist/{packages/iryx-ui/src/components → components}/Progress.js +0 -0
  101. /package/dist/{packages/iryx-ui/src/components → components}/Progress.vue_vue_type_script_setup_true_lang.js +0 -0
  102. /package/dist/{packages/iryx-ui/src/components → components}/RadioGroup.js +0 -0
  103. /package/dist/{packages/iryx-ui/src/components → components}/RadioGroup.vue_vue_type_script_setup_true_lang.js +0 -0
  104. /package/dist/{packages/iryx-ui/src/components → components}/Select.js +0 -0
  105. /package/dist/{packages/iryx-ui/src/components → components}/Separator.js +0 -0
  106. /package/dist/{packages/iryx-ui/src/components → components}/Separator.vue_vue_type_script_setup_true_lang.js +0 -0
  107. /package/dist/{packages/iryx-ui/src/components → components}/Skeleton.js +0 -0
  108. /package/dist/{packages/iryx-ui/src/components → components}/Skeleton.vue_vue_type_script_setup_true_lang.js +0 -0
  109. /package/dist/{packages/iryx-ui/src/components → components}/Stat.js +0 -0
  110. /package/dist/{packages/iryx-ui/src/components → components}/Stepper.js +0 -0
  111. /package/dist/{packages/iryx-ui/src/components → components}/Switch.js +0 -0
  112. /package/dist/{packages/iryx-ui/src/components → components}/Switch.vue_vue_type_script_setup_true_lang.js +0 -0
  113. /package/dist/{packages/iryx-ui/src/components → components}/Table.js +0 -0
  114. /package/dist/{packages/iryx-ui/src/components → components}/Tabs.js +0 -0
  115. /package/dist/{packages/iryx-ui/src/components → components}/Tabs.vue_vue_type_script_setup_true_lang.js +0 -0
  116. /package/dist/{packages/iryx-ui/src/components → components}/Textarea.js +0 -0
  117. /package/dist/{packages/iryx-ui/src/components → components}/Textarea.vue_vue_type_script_setup_true_lang.js +0 -0
  118. /package/dist/{packages/iryx-ui/src/components → components}/Toaster.js +0 -0
  119. /package/dist/{packages/iryx-ui/src/components → components}/Tooltip.js +0 -0
  120. /package/dist/{packages/iryx-ui/src/components → components}/Tooltip.vue_vue_type_script_setup_true_lang.js +0 -0
  121. /package/dist/{packages/iryx-ui/src/composables → composables}/appearance.js +0 -0
  122. /package/dist/{packages/iryx-ui/src/composables → composables}/button-group.js +0 -0
  123. /package/dist/{packages/iryx-ui/src/composables → composables}/confirm.js +0 -0
  124. /package/dist/{packages/iryx-ui/src/composables → composables}/data-table.js +0 -0
  125. /package/dist/{packages/iryx-ui/src/composables → composables}/decimal.js +0 -0
  126. /package/dist/{packages/iryx-ui/src/composables → composables}/dropdown-menu.js +0 -0
  127. /package/dist/{packages/iryx-ui/src/composables → composables}/form.js +0 -0
  128. /package/dist/{packages/iryx-ui/src/composables → composables}/icon.js +0 -0
  129. /package/dist/{packages/iryx-ui/src/composables → composables}/toast.js +0 -0
  130. /package/dist/{packages/iryx-ui/src/config.js → config.js} +0 -0
  131. /package/dist/{packages/iryx-ui/src/plugin.js → plugin.js} +0 -0
  132. /package/dist/{packages/iryx-ui/src/theme → theme}/alert.js +0 -0
  133. /package/dist/{packages/iryx-ui/src/theme → theme}/badge.js +0 -0
  134. /package/dist/{packages/iryx-ui/src/theme → theme}/banner.js +0 -0
  135. /package/dist/{packages/iryx-ui/src/theme → theme}/breadcrumb.js +0 -0
  136. /package/dist/{packages/iryx-ui/src/theme → theme}/button-group.js +0 -0
  137. /package/dist/{packages/iryx-ui/src/theme → theme}/button.js +0 -0
  138. /package/dist/{packages/iryx-ui/src/theme → theme}/card.js +0 -0
  139. /package/dist/{packages/iryx-ui/src/theme → theme}/checkbox.js +0 -0
  140. /package/dist/{packages/iryx-ui/src/theme → theme}/combobox.js +0 -0
  141. /package/dist/{packages/iryx-ui/src/theme → theme}/date-picker.js +0 -0
  142. /package/dist/{packages/iryx-ui/src/theme → theme}/dialog.js +0 -0
  143. /package/dist/{packages/iryx-ui/src/theme → theme}/dropdown-menu.js +0 -0
  144. /package/dist/{packages/iryx-ui/src/theme → theme}/empty-state.js +0 -0
  145. /package/dist/{packages/iryx-ui/src/theme → theme}/file-upload.js +0 -0
  146. /package/dist/{packages/iryx-ui/src/theme → theme}/form.js +0 -0
  147. /package/dist/{packages/iryx-ui/src/theme → theme}/input.js +0 -0
  148. /package/dist/{packages/iryx-ui/src/theme → theme}/label.js +0 -0
  149. /package/dist/{packages/iryx-ui/src/theme → theme}/number-input.js +0 -0
  150. /package/dist/{packages/iryx-ui/src/theme → theme}/pagination.js +0 -0
  151. /package/dist/{packages/iryx-ui/src/theme → theme}/password-input.js +0 -0
  152. /package/dist/{packages/iryx-ui/src/theme → theme}/presets.js +0 -0
  153. /package/dist/{packages/iryx-ui/src/theme → theme}/progress.js +0 -0
  154. /package/dist/{packages/iryx-ui/src/theme → theme}/radio-group.js +0 -0
  155. /package/dist/{packages/iryx-ui/src/theme → theme}/select.js +0 -0
  156. /package/dist/{packages/iryx-ui/src/theme → theme}/separator.js +0 -0
  157. /package/dist/{packages/iryx-ui/src/theme → theme}/skeleton.js +0 -0
  158. /package/dist/{packages/iryx-ui/src/theme → theme}/stat.js +0 -0
  159. /package/dist/{packages/iryx-ui/src/theme → theme}/stepper.js +0 -0
  160. /package/dist/{packages/iryx-ui/src/theme → theme}/switch.js +0 -0
  161. /package/dist/{packages/iryx-ui/src/theme → theme}/table.js +0 -0
  162. /package/dist/{packages/iryx-ui/src/theme → theme}/tabs.js +0 -0
  163. /package/dist/{packages/iryx-ui/src/theme → theme}/toast.js +0 -0
  164. /package/dist/{packages/iryx-ui/src/theme → theme}/tooltip.js +0 -0
@@ -0,0 +1,105 @@
1
+ import type { SparseValue } from './scale';
2
+ /**
3
+ * The frame every category-versus-value chart draws inside: an axis of round
4
+ * numbers, a gutter wide enough for its labels, and the plot rectangle left
5
+ * over. A pure function rather than a composable, so it can be called from a
6
+ * single `computed` in each chart and tested without mounting anything.
7
+ */
8
+ /** Rough text metrics. Measuring for real costs a layout pass per label. */
9
+ export declare const CHAR_WIDTH = 6.5;
10
+ export declare const AXIS_GAP = 8;
11
+ export declare const CATEGORY_HEIGHT = 20;
12
+ export declare const TOP_PAD = 8;
13
+ /**
14
+ * Which way the bands run. `vertical` puts categories along the bottom;
15
+ * `horizontal` puts them down the side, where a long name has room to be read
16
+ * instead of being thinned out or rotated.
17
+ */
18
+ export type ChartOrientation = 'vertical' | 'horizontal';
19
+ export interface CartesianInput {
20
+ orientation?: ChartOrientation;
21
+ /** Every plotted value, gaps included — only the finite ones set the domain. */
22
+ values: readonly SparseValue[];
23
+ /** How many slots along the x axis. */
24
+ categories: number;
25
+ /** Longest category label, in characters. */
26
+ longestLabel: number;
27
+ /** Measured container width in px. Zero before the first measurement. */
28
+ width: number;
29
+ /** Requested total height in px. */
30
+ height: number;
31
+ tickCount: number;
32
+ showAxis: boolean;
33
+ /** Renders a tick for the gutter measurement, and the tooltip elsewhere. */
34
+ formatTick: (value: number) => string;
35
+ /**
36
+ * Force zero into the domain. True for bars, which are read by length and
37
+ * lie under a truncated baseline; false for lines, where the shape is the
38
+ * message and a forced zero can flatten it into nothing.
39
+ */
40
+ includeZero: boolean;
41
+ }
42
+ export interface CartesianLayout {
43
+ orientation: ChartOrientation;
44
+ ticks: number[];
45
+ plot: {
46
+ left: number;
47
+ top: number;
48
+ width: number;
49
+ height: number;
50
+ };
51
+ /**
52
+ * A value to its pixel along the value axis — y when vertical, x when
53
+ * horizontal. Named for the job rather than the axis, so callers do not have
54
+ * to care which way round the chart is.
55
+ */
56
+ value: (value: number) => number;
57
+ /** Backwards-compatible alias for the vertical case. */
58
+ y: (value: number) => number;
59
+ /** Size of one category slot, along whichever axis carries the categories. */
60
+ bandWidth: number;
61
+ /** Draw every nth category label; the rest would collide. */
62
+ labelStep: number;
63
+ /** Centre of a category slot, in px along the category axis. */
64
+ bandCentre: (index: number) => number;
65
+ }
66
+ export declare function cartesianLayout(input: CartesianInput): CartesianLayout;
67
+ /** One plotted measure. `key` reads a field off each row; `name` labels it. */
68
+ export interface ChartSeries {
69
+ key: string;
70
+ name?: string;
71
+ /**
72
+ * Pin this series to a palette slot (0-based), instead of taking its
73
+ * position in the array.
74
+ *
75
+ * Colour has to follow the entity, not its rank: filter a series out of a
76
+ * chart and the survivors must keep the colours the reader already learned.
77
+ * Without a pin, removing the first of three repaints the other two.
78
+ */
79
+ slot?: number;
80
+ }
81
+ /** How many categorical slots the palette actually defines. */
82
+ export declare const SERIES_SLOTS = 8;
83
+ /**
84
+ * The colour for a series slot.
85
+ *
86
+ * Callers pass the series' pinned `slot` where it has one, and its array
87
+ * position otherwise — see `ChartSeries.slot` for why that distinction exists.
88
+ *
89
+ * Slots are never cycled: a ninth hue has not been checked for separation
90
+ * against its neighbours, so past eight the answer is folding into "Other" or
91
+ * splitting into small multiples. Beyond the eighth the last slot repeats and
92
+ * a warning is emitted, because silently colliding two identities is worse
93
+ * than saying so.
94
+ */
95
+ export declare function seriesColor(index: number): string;
96
+ /** A series' palette slot: pinned if it has one, otherwise its position. */
97
+ export declare function slotOf(entry: ChartSeries, index: number): number;
98
+ export declare function warnOnSlotOverflow(count: number): void;
99
+ /**
100
+ * Keep a tooltip inside the chart's own box. Estimated from the text rather
101
+ * than measured: measuring needs an extra tick, during which the tooltip is
102
+ * visible at the unclamped position and visibly jumps.
103
+ */
104
+ export declare function clampTooltip(centre: number, text: string, width: number): number;
105
+ export declare function tooltipHalfWidth(text: string): number;
@@ -0,0 +1,43 @@
1
+ import { extent as e, linearScale as t, niceTicks as n } from "./scale.js";
2
+ import r from "node:process";
3
+ //#region src/composables/cartesian.ts
4
+ var i = 6.5, a = 8, o = 20, s = 8;
5
+ function c(r) {
6
+ let a = r.orientation ?? "vertical", o = a === "horizontal", s = e(r.values), c = s ? n(r.includeZero ? Math.min(0, s[0]) : s[0], r.includeZero ? Math.max(0, s[1]) : s[1], r.tickCount) : n(0, 1, r.tickCount), l = Math.ceil(Math.max(...c.ticks.map((e) => r.formatTick(e).length), 1) * i) + 8, u = o ? Math.ceil(r.longestLabel * i) + 8 : r.showAxis ? l : 0, d = o && !r.showAxis ? 0 : 20, f = o && r.showAxis ? Math.ceil(l / 2) : 0, p = {
7
+ left: u,
8
+ top: 8,
9
+ width: Math.max(r.width - u - f, 0),
10
+ height: Math.max(r.height - 8 - d, 0)
11
+ }, m = o ? t([c.min, c.max], [p.left, p.left + p.width]) : t([c.min, c.max], [p.top + p.height, p.top]), h = o ? p.height : p.width, g = r.categories ? h / r.categories : 0, _ = o ? p.top : p.left, v = o ? 16 : r.longestLabel * i + 8, y = g ? Math.max(1, Math.ceil(v / g)) : 1;
12
+ return {
13
+ orientation: a,
14
+ ticks: c.ticks,
15
+ plot: p,
16
+ value: m,
17
+ y: m,
18
+ bandWidth: g,
19
+ labelStep: y,
20
+ bandCentre: (e) => _ + g * (e + .5)
21
+ };
22
+ }
23
+ var l = 8;
24
+ function u(e) {
25
+ return `var(--iryx-chart-${Math.min(Math.max(e, 0), 7) + 1})`;
26
+ }
27
+ function d(e, t) {
28
+ return e.slot ?? t;
29
+ }
30
+ var f = !1;
31
+ function p(e) {
32
+ e <= 8 || f || r.env.NODE_ENV === "production" || (f = !0, console.warn(`[iryx-ui] ${e} chart series exceeds the 8 categorical slots. Colours past the eighth repeat and stop identifying anything — fold the tail into "Other", or use small multiples.`));
33
+ }
34
+ function m(e, t, n) {
35
+ let r = g(t);
36
+ return n <= r * 2 ? n / 2 : Math.min(Math.max(e, r), Math.max(n - r, r));
37
+ }
38
+ var h = 5.6;
39
+ function g(e) {
40
+ return (e.length * h + 28) / 2;
41
+ }
42
+ //#endregion
43
+ export { a as AXIS_GAP, o as CATEGORY_HEIGHT, i as CHAR_WIDTH, l as SERIES_SLOTS, s as TOP_PAD, c as cartesianLayout, m as clampTooltip, u as seriesColor, d as slotOf, g as tooltipHalfWidth, p as warnOnSlotOverflow };
@@ -1,7 +1,7 @@
1
- import { $ad063034c8620db8$export$aa8b41735afcabd2 as e, $ad063034c8620db8$export$d0bdf45af03a6ea3 as t } from "../../../../node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/queries.js";
2
- import { $58246871e4652552$export$6b862160d295c8e as n } from "../../../../node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/string.js";
3
- import "../../../../node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/CalendarDate.js";
4
- import { $12a3c853105e5a70$export$ad991b66133851cf as r } from "../../../../node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/DateFormatter.js";
1
+ import { $ad063034c8620db8$export$aa8b41735afcabd2 as e, $ad063034c8620db8$export$d0bdf45af03a6ea3 as t } from "../node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/queries.js";
2
+ import { $58246871e4652552$export$6b862160d295c8e as n } from "../node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/string.js";
3
+ import "../node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/CalendarDate.js";
4
+ import { $12a3c853105e5a70$export$ad991b66133851cf as r } from "../node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/DateFormatter.js";
5
5
  //#region src/composables/date.ts
6
6
  var i = /^\d{4}-\d{2}-\d{2}$/;
7
7
  function a(e) {
@@ -0,0 +1,15 @@
1
+ import type { Ref } from 'vue';
2
+ /**
3
+ * Track an element's rendered width.
4
+ *
5
+ * A sparkline can stretch a fixed box because strokes opt out of the scaling.
6
+ * A chart with axes cannot: text stretched by `preserveAspectRatio="none"`
7
+ * comes out distorted, so the drawing has to happen in real pixels and the
8
+ * width has to be measured.
9
+ *
10
+ * One observer per chart, not per mark — cheap enough at that granularity.
11
+ */
12
+ export declare function useElementSize(target: Ref<HTMLElement | undefined>): {
13
+ width: Ref<number, number>;
14
+ height: Ref<number, number>;
15
+ };
@@ -0,0 +1,22 @@
1
+ import { onBeforeUnmount as e, ref as t, watch as n } from "vue";
2
+ //#region src/composables/element-size.ts
3
+ function r(r) {
4
+ let i = t(0), a = t(0), o;
5
+ function s() {
6
+ o?.disconnect(), o = void 0;
7
+ }
8
+ return n(r, (e) => {
9
+ s(), e && (i.value = e.clientWidth, a.value = e.clientHeight, !(typeof ResizeObserver > "u") && (o = new ResizeObserver((e) => {
10
+ let t = e[0];
11
+ t && (i.value = t.contentRect.width, a.value = t.contentRect.height);
12
+ }), o.observe(e)));
13
+ }, {
14
+ immediate: !0,
15
+ flush: "post"
16
+ }), e(s), {
17
+ width: i,
18
+ height: a
19
+ };
20
+ }
21
+ //#endregion
22
+ export { r as useElementSize };
@@ -0,0 +1,36 @@
1
+ /**
2
+ * The arithmetic every chart shares: find a domain, map it onto a range, and
3
+ * choose the numbers an axis is allowed to show.
4
+ *
5
+ * Deliberately not a charting engine — no band scales or stacking yet. Those
6
+ * arrive with the components that need them rather than being guessed at now.
7
+ */
8
+ /** A gap in a series. `null` reads as "no reading", not as zero. */
9
+ export type SparseValue = number | null | undefined;
10
+ /** Finite values only, so gaps and stray `NaN` cannot poison a domain. */
11
+ export declare function finiteValues(values: readonly SparseValue[]): number[];
12
+ /** Smallest and largest finite value, or `undefined` when there are none. */
13
+ export declare function extent(values: readonly SparseValue[]): [number, number] | undefined;
14
+ /**
15
+ * Map `domain` onto `range`.
16
+ *
17
+ * A zero-width domain — every value identical, or a single point — maps to the
18
+ * middle of the range instead of dividing by zero. A flat series should draw a
19
+ * flat line through the centre, not vanish or spike to an edge.
20
+ */
21
+ export declare function linearScale(domain: readonly [number, number], range: readonly [number, number]): (value: number) => number;
22
+ /**
23
+ * Axis values a person would actually write down.
24
+ *
25
+ * The difference between an axis reading `0 / 1,000 / 2,000` and one reading
26
+ * `0 / 863.4 / 1,726.8` is the single clearest tell of a hand-rolled chart, so
27
+ * the step is snapped to a 1/2/5 multiple of a power of ten and the domain is
28
+ * widened outwards to land on it. The returned bounds are therefore usually
29
+ * wider than the data — that is the point, and the caller should scale to the
30
+ * first and last tick rather than to its own min and max.
31
+ */
32
+ export declare function niceTicks(min: number, max: number, count?: number): {
33
+ ticks: number[];
34
+ min: number;
35
+ max: number;
36
+ };
@@ -0,0 +1,43 @@
1
+ //#region src/composables/scale.ts
2
+ function e(e) {
3
+ return e.filter((e) => typeof e == "number" && Number.isFinite(e));
4
+ }
5
+ function t(t) {
6
+ let n = e(t);
7
+ if (n.length) return [Math.min(...n), Math.max(...n)];
8
+ }
9
+ function n(e, t) {
10
+ let [n, r] = e, [i, a] = t, o = r - n;
11
+ if (o === 0) return () => (i + a) / 2;
12
+ let s = (a - i) / o;
13
+ return (e) => i + (e - n) * s;
14
+ }
15
+ function r(e, t) {
16
+ let n = 10 ** Math.floor(Math.log10(e)), r = e / n, i;
17
+ return i = t ? r < 1.5 ? 1 : r < 3 ? 2 : r < 7 ? 5 : 10 : r <= 1 ? 1 : r <= 2 ? 2 : r <= 5 ? 5 : 10, i * n;
18
+ }
19
+ function i(e, t, n = 5) {
20
+ if (!Number.isFinite(e) || !Number.isFinite(t)) return {
21
+ ticks: [0, 1],
22
+ min: 0,
23
+ max: 1
24
+ };
25
+ if (e === t) {
26
+ if (e === 0) return {
27
+ ticks: [0, 1],
28
+ min: 0,
29
+ max: 1
30
+ };
31
+ let n = Math.abs(e);
32
+ e -= n / 2, t += n / 2;
33
+ }
34
+ let i = r(r(t - e, !1) / Math.max(n - 1, 1), !0), a = Math.floor(e / i) * i, o = Math.ceil(t / i) * i, s = Math.max(0, -Math.floor(Math.log10(i))), c = [], l = Math.round((o - a) / i);
35
+ for (let e = 0; e <= l; e++) c.push(Number((a + e * i).toFixed(s)));
36
+ return {
37
+ ticks: c,
38
+ min: c[0],
39
+ max: c[c.length - 1]
40
+ };
41
+ }
42
+ //#endregion
43
+ export { t as extent, e as finiteValues, n as linearScale, i as niceTicks };
package/dist/index.d.ts CHANGED
@@ -5,10 +5,12 @@ export type { AlertProps } from './components/Alert.vue';
5
5
  export type { AppProps } from './components/App.vue';
6
6
  export type { BadgeProps } from './components/Badge.vue';
7
7
  export type { BannerProps } from './components/Banner.vue';
8
+ export type { BarChartDatum, BarChartProps } from './components/BarChart.vue';
8
9
  export type { BreadcrumbItem, BreadcrumbProps } from './components/Breadcrumb.vue';
9
10
  export type { ButtonProps } from './components/Button.vue';
10
11
  export type { ButtonGroupProps } from './components/ButtonGroup.vue';
11
12
  export type { CardProps } from './components/Card.vue';
13
+ export type { ChartLegendProps } from './components/ChartLegend.vue';
12
14
  export type { CheckboxProps } from './components/Checkbox.vue';
13
15
  export type { ComboboxItemGroup, ComboboxItemOption, ComboboxItems, ComboboxProps } from './components/Combobox.vue';
14
16
  export type { ConfirmDialogProps } from './components/ConfirmDialog.vue';
@@ -22,6 +24,7 @@ export type { FormProps } from './components/Form.vue';
22
24
  export type { FormFieldProps } from './components/FormField.vue';
23
25
  export type { InputProps } from './components/Input.vue';
24
26
  export type { LabelProps } from './components/Label.vue';
27
+ export type { LineChartDatum, LineChartProps } from './components/LineChart.vue';
25
28
  export type { NumberInputProps } from './components/NumberInput.vue';
26
29
  export type { PaginationProps } from './components/Pagination.vue';
27
30
  export type { PasswordInputProps } from './components/PasswordInput.vue';
@@ -30,6 +33,7 @@ export type { RadioGroupItemOption, RadioGroupProps } from './components/RadioGr
30
33
  export type { SelectItemGroup, SelectItemOption, SelectItems, SelectProps } from './components/Select.vue';
31
34
  export type { SeparatorProps } from './components/Separator.vue';
32
35
  export type { SkeletonProps } from './components/Skeleton.vue';
36
+ export type { SparklineProps } from './components/Sparkline.vue';
33
37
  export type { StatProps } from './components/Stat.vue';
34
38
  export type { StepperItemOption, StepperProps } from './components/Stepper.vue';
35
39
  export type { SwitchProps } from './components/Switch.vue';
@@ -40,12 +44,15 @@ export type { ToasterProps } from './components/Toaster.vue';
40
44
  export type { TooltipProps } from './components/Tooltip.vue';
41
45
  export * from './composables/appearance';
42
46
  export * from './composables/button-group';
47
+ export * from './composables/cartesian';
43
48
  export * from './composables/confirm';
44
49
  export * from './composables/data-table';
45
50
  export * from './composables/date';
46
51
  export * from './composables/decimal';
47
52
  export * from './composables/dropdown-menu';
53
+ export * from './composables/element-size';
48
54
  export * from './composables/form';
55
+ export * from './composables/scale';
49
56
  export * from './composables/toast';
50
57
  export { defaultConfig, iryxUiConfigKey, useIryxUiConfig } from './config';
51
58
  export type { IryxUiConfig } from './config';
package/dist/index.js CHANGED
@@ -1,83 +1,94 @@
1
- import { componentNames as e } from "./packages/iryx-ui/src/component-names.js";
2
- import { defaultConfig as t, iryxUiConfigKey as n, useIryxUiConfig as r } from "./packages/iryx-ui/src/config.js";
3
- import { alertTheme as i } from "./packages/iryx-ui/src/theme/alert.js";
4
- import a from "./packages/iryx-ui/src/components/Alert.js";
5
- import { initAppearance as o, useAppearance as s } from "./packages/iryx-ui/src/composables/appearance.js";
6
- import { applyTheme as c, clearTheme as l, themes as u } from "./packages/iryx-ui/src/theme/presets.js";
7
- import d from "./packages/iryx-ui/src/components/App.js";
8
- import { badgeTheme as f } from "./packages/iryx-ui/src/theme/badge.js";
9
- import p from "./packages/iryx-ui/src/components/Badge.js";
10
- import { bannerTheme as m } from "./packages/iryx-ui/src/theme/banner.js";
11
- import h from "./packages/iryx-ui/src/components/Banner.js";
12
- import { breadcrumbTheme as g } from "./packages/iryx-ui/src/theme/breadcrumb.js";
13
- import _ from "./packages/iryx-ui/src/components/Breadcrumb.js";
14
- import { buttonGroupContextKey as v, useButtonGroup as y } from "./packages/iryx-ui/src/composables/button-group.js";
15
- import { buttonTheme as b } from "./packages/iryx-ui/src/theme/button.js";
16
- import x from "./packages/iryx-ui/src/components/Button.js";
17
- import { buttonGroupTheme as S } from "./packages/iryx-ui/src/theme/button-group.js";
18
- import C from "./packages/iryx-ui/src/components/ButtonGroup.js";
19
- import { cardTheme as w } from "./packages/iryx-ui/src/theme/card.js";
20
- import T from "./packages/iryx-ui/src/components/Card.js";
21
- import { checkboxTheme as E } from "./packages/iryx-ui/src/theme/checkbox.js";
22
- import D from "./packages/iryx-ui/src/components/Checkbox.js";
23
- import { formContextKey as O, formFieldContextKey as k, getByPath as A, isStandardSchema as j, issuePath as M, useForm as N, useFormField as P } from "./packages/iryx-ui/src/composables/form.js";
24
- import { fieldBase as F, inputTheme as I, textareaTheme as L } from "./packages/iryx-ui/src/theme/input.js";
25
- import { comboboxTheme as R } from "./packages/iryx-ui/src/theme/combobox.js";
26
- import z from "./packages/iryx-ui/src/components/Combobox.js";
27
- import { resolveConfirm as B, useConfirm as V, useConfirmState as H } from "./packages/iryx-ui/src/composables/confirm.js";
28
- import { dialogTheme as U } from "./packages/iryx-ui/src/theme/dialog.js";
29
- import W from "./packages/iryx-ui/src/components/Dialog.js";
30
- import G from "./packages/iryx-ui/src/components/ConfirmDialog.js";
31
- import { $2aaf608024c21ca1$export$99faa760c7908e4f as K } from "./node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/CalendarDate.js";
32
- import { formatIsoDate as q, isoToday as J, toCalendarDate as Y, toIsoDate as X } from "./packages/iryx-ui/src/composables/date.js";
33
- import { datePickerTheme as Z } from "./packages/iryx-ui/src/theme/date-picker.js";
34
- import Q from "./packages/iryx-ui/src/components/DatePicker.js";
35
- import $ from "./packages/iryx-ui/src/components/DateRangePicker.js";
36
- import { dropdownMenuTheme as ee } from "./packages/iryx-ui/src/theme/dropdown-menu.js";
37
- import { isSeparator as te, isSubmenu as ne } from "./packages/iryx-ui/src/composables/dropdown-menu.js";
38
- import re from "./packages/iryx-ui/src/components/DropdownMenu.js";
39
- import { emptyStateTheme as ie } from "./packages/iryx-ui/src/theme/empty-state.js";
40
- import ae from "./packages/iryx-ui/src/components/EmptyState.js";
41
- import { fileUploadTheme as oe } from "./packages/iryx-ui/src/theme/file-upload.js";
42
- import se from "./packages/iryx-ui/src/components/FileUpload.js";
43
- import ce from "./packages/iryx-ui/src/components/Form.js";
44
- import { labelTheme as le } from "./packages/iryx-ui/src/theme/label.js";
45
- import ue from "./packages/iryx-ui/src/components/Label.js";
46
- import de from "./packages/iryx-ui/src/components/FormField.js";
47
- import fe from "./packages/iryx-ui/src/components/Input.js";
48
- import { addDecimals as pe, clampDecimal as me, compareDecimals as he, formatDecimal as ge, formatForLocale as _e, isDecimal as ve, localeSeparators as ye, parseDecimal as be, parseFromLocale as xe, roundDecimal as Se, toEditable as Ce } from "./packages/iryx-ui/src/composables/decimal.js";
49
- import { numberInputTheme as we } from "./packages/iryx-ui/src/theme/number-input.js";
50
- import Te from "./packages/iryx-ui/src/components/NumberInput.js";
51
- import { paginationTheme as Ee } from "./packages/iryx-ui/src/theme/pagination.js";
52
- import De from "./packages/iryx-ui/src/components/Pagination.js";
53
- import { passwordInputTheme as Oe } from "./packages/iryx-ui/src/theme/password-input.js";
54
- import ke from "./packages/iryx-ui/src/components/PasswordInput.js";
55
- import { progressTheme as Ae } from "./packages/iryx-ui/src/theme/progress.js";
56
- import je from "./packages/iryx-ui/src/components/Progress.js";
57
- import { radioGroupTheme as Me } from "./packages/iryx-ui/src/theme/radio-group.js";
58
- import Ne from "./packages/iryx-ui/src/components/RadioGroup.js";
59
- import { selectTheme as Pe } from "./packages/iryx-ui/src/theme/select.js";
60
- import Fe from "./packages/iryx-ui/src/components/Select.js";
61
- import { separatorTheme as Ie } from "./packages/iryx-ui/src/theme/separator.js";
62
- import Le from "./packages/iryx-ui/src/components/Separator.js";
63
- import { skeletonTheme as Re } from "./packages/iryx-ui/src/theme/skeleton.js";
64
- import ze from "./packages/iryx-ui/src/components/Skeleton.js";
65
- import { statTheme as Be } from "./packages/iryx-ui/src/theme/stat.js";
66
- import Ve from "./packages/iryx-ui/src/components/Stat.js";
67
- import { stepperTheme as He } from "./packages/iryx-ui/src/theme/stepper.js";
68
- import Ue from "./packages/iryx-ui/src/components/Stepper.js";
69
- import { switchTheme as We } from "./packages/iryx-ui/src/theme/switch.js";
70
- import Ge from "./packages/iryx-ui/src/components/Switch.js";
71
- import { getRowValue as Ke, useDataTable as qe } from "./packages/iryx-ui/src/composables/data-table.js";
72
- import { tableTheme as Je } from "./packages/iryx-ui/src/theme/table.js";
73
- import Ye from "./packages/iryx-ui/src/components/Table.js";
74
- import { tabsTheme as Xe } from "./packages/iryx-ui/src/theme/tabs.js";
75
- import Ze from "./packages/iryx-ui/src/components/Tabs.js";
76
- import Qe from "./packages/iryx-ui/src/components/Textarea.js";
77
- import { useToast as $e, useToastState as et } from "./packages/iryx-ui/src/composables/toast.js";
78
- import { toastTheme as tt } from "./packages/iryx-ui/src/theme/toast.js";
79
- import nt from "./packages/iryx-ui/src/components/Toaster.js";
80
- import { tooltipTheme as rt } from "./packages/iryx-ui/src/theme/tooltip.js";
81
- import it from "./packages/iryx-ui/src/components/Tooltip.js";
82
- import { IryxUi as at, createIryxUi as ot } from "./packages/iryx-ui/src/plugin.js";
83
- export { a as Alert, d as App, p as Badge, h as Banner, _ as Breadcrumb, x as Button, C as ButtonGroup, K as CalendarDate, T as Card, D as Checkbox, z as Combobox, G as ConfirmDialog, Q as DatePicker, $ as DateRangePicker, W as Dialog, re as DropdownMenu, ae as EmptyState, se as FileUpload, ce as Form, de as FormField, fe as Input, at as IryxUi, ue as Label, Te as NumberInput, De as Pagination, ke as PasswordInput, je as Progress, Ne as RadioGroup, Fe as Select, Le as Separator, ze as Skeleton, Ve as Stat, Ue as Stepper, Ge as Switch, Ye as Table, Ze as Tabs, Qe as Textarea, nt as Toaster, it as Tooltip, pe as addDecimals, i as alertTheme, c as applyTheme, f as badgeTheme, m as bannerTheme, g as breadcrumbTheme, v as buttonGroupContextKey, S as buttonGroupTheme, b as buttonTheme, w as cardTheme, E as checkboxTheme, me as clampDecimal, l as clearTheme, R as comboboxTheme, he as compareDecimals, e as componentNames, ot as createIryxUi, Z as datePickerTheme, t as defaultConfig, U as dialogTheme, ee as dropdownMenuTheme, ie as emptyStateTheme, F as fieldBase, oe as fileUploadTheme, O as formContextKey, k as formFieldContextKey, ge as formatDecimal, _e as formatForLocale, q as formatIsoDate, A as getByPath, Ke as getRowValue, o as initAppearance, I as inputTheme, n as iryxUiConfigKey, ve as isDecimal, te as isSeparator, j as isStandardSchema, ne as isSubmenu, J as isoToday, M as issuePath, le as labelTheme, ye as localeSeparators, we as numberInputTheme, Ee as paginationTheme, be as parseDecimal, xe as parseFromLocale, Oe as passwordInputTheme, Ae as progressTheme, Me as radioGroupTheme, B as resolveConfirm, Se as roundDecimal, Pe as selectTheme, Ie as separatorTheme, Re as skeletonTheme, Be as statTheme, He as stepperTheme, We as switchTheme, Je as tableTheme, Xe as tabsTheme, L as textareaTheme, u as themes, Y as toCalendarDate, Ce as toEditable, X as toIsoDate, tt as toastTheme, rt as tooltipTheme, s as useAppearance, y as useButtonGroup, V as useConfirm, H as useConfirmState, qe as useDataTable, N as useForm, P as useFormField, r as useIryxUiConfig, $e as useToast, et as useToastState };
1
+ import { componentNames as e } from "./component-names.js";
2
+ import { defaultConfig as t, iryxUiConfigKey as n, useIryxUiConfig as r } from "./config.js";
3
+ import { alertTheme as i } from "./theme/alert.js";
4
+ import a from "./components/Alert.js";
5
+ import { initAppearance as o, useAppearance as s } from "./composables/appearance.js";
6
+ import { applyTheme as c, clearTheme as l, themes as u } from "./theme/presets.js";
7
+ import d from "./components/App.js";
8
+ import { badgeTheme as f } from "./theme/badge.js";
9
+ import p from "./components/Badge.js";
10
+ import { bannerTheme as m } from "./theme/banner.js";
11
+ import h from "./components/Banner.js";
12
+ import { extent as g, finiteValues as _, linearScale as v, niceTicks as y } from "./composables/scale.js";
13
+ import { AXIS_GAP as b, CATEGORY_HEIGHT as x, CHAR_WIDTH as S, SERIES_SLOTS as C, TOP_PAD as w, cartesianLayout as T, clampTooltip as E, seriesColor as D, slotOf as O, tooltipHalfWidth as k, warnOnSlotOverflow as A } from "./composables/cartesian.js";
14
+ import { useElementSize as j } from "./composables/element-size.js";
15
+ import { barChartTheme as M } from "./theme/bar-chart.js";
16
+ import { chartLegendTheme as N } from "./theme/chart-legend.js";
17
+ import P from "./components/ChartLegend.js";
18
+ import F from "./components/BarChart.js";
19
+ import { breadcrumbTheme as I } from "./theme/breadcrumb.js";
20
+ import L from "./components/Breadcrumb.js";
21
+ import { buttonGroupContextKey as R, useButtonGroup as z } from "./composables/button-group.js";
22
+ import { buttonTheme as B } from "./theme/button.js";
23
+ import V from "./components/Button.js";
24
+ import { buttonGroupTheme as H } from "./theme/button-group.js";
25
+ import U from "./components/ButtonGroup.js";
26
+ import { cardTheme as W } from "./theme/card.js";
27
+ import G from "./components/Card.js";
28
+ import { checkboxTheme as K } from "./theme/checkbox.js";
29
+ import q from "./components/Checkbox.js";
30
+ import { formContextKey as J, formFieldContextKey as Y, getByPath as X, isStandardSchema as Z, issuePath as Q, useForm as $, useFormField as ee } from "./composables/form.js";
31
+ import { fieldBase as te, inputTheme as ne, textareaTheme as re } from "./theme/input.js";
32
+ import { comboboxTheme as ie } from "./theme/combobox.js";
33
+ import ae from "./components/Combobox.js";
34
+ import { resolveConfirm as oe, useConfirm as se, useConfirmState as ce } from "./composables/confirm.js";
35
+ import { dialogTheme as le } from "./theme/dialog.js";
36
+ import ue from "./components/Dialog.js";
37
+ import de from "./components/ConfirmDialog.js";
38
+ import { $2aaf608024c21ca1$export$99faa760c7908e4f as fe } from "./node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/CalendarDate.js";
39
+ import { formatIsoDate as pe, isoToday as me, toCalendarDate as he, toIsoDate as ge } from "./composables/date.js";
40
+ import { datePickerTheme as _e } from "./theme/date-picker.js";
41
+ import ve from "./components/DatePicker.js";
42
+ import ye from "./components/DateRangePicker.js";
43
+ import { dropdownMenuTheme as be } from "./theme/dropdown-menu.js";
44
+ import { isSeparator as xe, isSubmenu as Se } from "./composables/dropdown-menu.js";
45
+ import Ce from "./components/DropdownMenu.js";
46
+ import { emptyStateTheme as we } from "./theme/empty-state.js";
47
+ import Te from "./components/EmptyState.js";
48
+ import { fileUploadTheme as Ee } from "./theme/file-upload.js";
49
+ import De from "./components/FileUpload.js";
50
+ import Oe from "./components/Form.js";
51
+ import { labelTheme as ke } from "./theme/label.js";
52
+ import Ae from "./components/Label.js";
53
+ import je from "./components/FormField.js";
54
+ import Me from "./components/Input.js";
55
+ import { lineChartTheme as Ne } from "./theme/line-chart.js";
56
+ import Pe from "./components/LineChart.js";
57
+ import { addDecimals as Fe, clampDecimal as Ie, compareDecimals as Le, formatDecimal as Re, formatForLocale as ze, isDecimal as Be, localeSeparators as Ve, parseDecimal as He, parseFromLocale as Ue, roundDecimal as We, toEditable as Ge } from "./composables/decimal.js";
58
+ import { numberInputTheme as Ke } from "./theme/number-input.js";
59
+ import qe from "./components/NumberInput.js";
60
+ import { paginationTheme as Je } from "./theme/pagination.js";
61
+ import Ye from "./components/Pagination.js";
62
+ import { passwordInputTheme as Xe } from "./theme/password-input.js";
63
+ import Ze from "./components/PasswordInput.js";
64
+ import { progressTheme as Qe } from "./theme/progress.js";
65
+ import $e from "./components/Progress.js";
66
+ import { radioGroupTheme as et } from "./theme/radio-group.js";
67
+ import tt from "./components/RadioGroup.js";
68
+ import { selectTheme as nt } from "./theme/select.js";
69
+ import rt from "./components/Select.js";
70
+ import { separatorTheme as it } from "./theme/separator.js";
71
+ import at from "./components/Separator.js";
72
+ import { skeletonTheme as ot } from "./theme/skeleton.js";
73
+ import st from "./components/Skeleton.js";
74
+ import { sparklineTheme as ct } from "./theme/sparkline.js";
75
+ import lt from "./components/Sparkline.js";
76
+ import { statTheme as ut } from "./theme/stat.js";
77
+ import dt from "./components/Stat.js";
78
+ import { stepperTheme as ft } from "./theme/stepper.js";
79
+ import pt from "./components/Stepper.js";
80
+ import { switchTheme as mt } from "./theme/switch.js";
81
+ import ht from "./components/Switch.js";
82
+ import { getRowValue as gt, useDataTable as _t } from "./composables/data-table.js";
83
+ import { tableTheme as vt } from "./theme/table.js";
84
+ import yt from "./components/Table.js";
85
+ import { tabsTheme as bt } from "./theme/tabs.js";
86
+ import xt from "./components/Tabs.js";
87
+ import St from "./components/Textarea.js";
88
+ import { useToast as Ct, useToastState as wt } from "./composables/toast.js";
89
+ import { toastTheme as Tt } from "./theme/toast.js";
90
+ import Et from "./components/Toaster.js";
91
+ import { tooltipTheme as Dt } from "./theme/tooltip.js";
92
+ import Ot from "./components/Tooltip.js";
93
+ import { IryxUi as kt, createIryxUi as At } from "./plugin.js";
94
+ export { b as AXIS_GAP, a as Alert, d as App, p as Badge, h as Banner, F as BarChart, L as Breadcrumb, V as Button, U as ButtonGroup, x as CATEGORY_HEIGHT, S as CHAR_WIDTH, fe as CalendarDate, G as Card, P as ChartLegend, q as Checkbox, ae as Combobox, de as ConfirmDialog, ve as DatePicker, ye as DateRangePicker, ue as Dialog, Ce as DropdownMenu, Te as EmptyState, De as FileUpload, Oe as Form, je as FormField, Me as Input, kt as IryxUi, Ae as Label, Pe as LineChart, qe as NumberInput, Ye as Pagination, Ze as PasswordInput, $e as Progress, tt as RadioGroup, C as SERIES_SLOTS, rt as Select, at as Separator, st as Skeleton, lt as Sparkline, dt as Stat, pt as Stepper, ht as Switch, w as TOP_PAD, yt as Table, xt as Tabs, St as Textarea, Et as Toaster, Ot as Tooltip, Fe as addDecimals, i as alertTheme, c as applyTheme, f as badgeTheme, m as bannerTheme, M as barChartTheme, I as breadcrumbTheme, R as buttonGroupContextKey, H as buttonGroupTheme, B as buttonTheme, W as cardTheme, T as cartesianLayout, N as chartLegendTheme, K as checkboxTheme, Ie as clampDecimal, E as clampTooltip, l as clearTheme, ie as comboboxTheme, Le as compareDecimals, e as componentNames, At as createIryxUi, _e as datePickerTheme, t as defaultConfig, le as dialogTheme, be as dropdownMenuTheme, we as emptyStateTheme, g as extent, te as fieldBase, Ee as fileUploadTheme, _ as finiteValues, J as formContextKey, Y as formFieldContextKey, Re as formatDecimal, ze as formatForLocale, pe as formatIsoDate, X as getByPath, gt as getRowValue, o as initAppearance, ne as inputTheme, n as iryxUiConfigKey, Be as isDecimal, xe as isSeparator, Z as isStandardSchema, Se as isSubmenu, me as isoToday, Q as issuePath, ke as labelTheme, Ne as lineChartTheme, v as linearScale, Ve as localeSeparators, y as niceTicks, Ke as numberInputTheme, Je as paginationTheme, He as parseDecimal, Ue as parseFromLocale, Xe as passwordInputTheme, Qe as progressTheme, et as radioGroupTheme, oe as resolveConfirm, We as roundDecimal, nt as selectTheme, it as separatorTheme, D as seriesColor, ot as skeletonTheme, O as slotOf, ct as sparklineTheme, ut as statTheme, ft as stepperTheme, mt as switchTheme, vt as tableTheme, bt as tabsTheme, re as textareaTheme, u as themes, he as toCalendarDate, Ge as toEditable, ge as toIsoDate, Tt as toastTheme, k as tooltipHalfWidth, Dt as tooltipTheme, s as useAppearance, z as useButtonGroup, se as useConfirm, ce as useConfirmState, _t as useDataTable, j as useElementSize, $ as useForm, ee as useFormField, r as useIryxUiConfig, Ct as useToast, wt as useToastState, A as warnOnSlotOverflow };
package/dist/nuxt.js CHANGED
@@ -1,4 +1,4 @@
1
- import { componentNames as e } from "./packages/iryx-ui/src/component-names.js";
1
+ import { componentNames as e } from "./component-names.js";
2
2
  import { addComponent as t, addPluginTemplate as n, defineNuxtModule as r } from "@nuxt/kit";
3
3
  //#region src/nuxt.ts
4
4
  var i = r({