iryx-ui 0.9.0 → 0.10.2

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 (161) hide show
  1. package/README.md +178 -3
  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.vue.d.ts +61 -2
  7. package/dist/components/BarChart.vue_vue_type_script_setup_true_lang.js +258 -0
  8. package/dist/{packages/iryx-ui/src/components → components}/Breadcrumb.vue_vue_type_script_setup_true_lang.js +1 -1
  9. package/dist/{packages/iryx-ui/src/components → components}/Button.vue_vue_type_script_setup_true_lang.js +1 -1
  10. package/dist/components/ChartLegend.js +5 -0
  11. package/dist/components/ChartLegend.vue.d.ts +12 -0
  12. package/dist/components/ChartLegend.vue_vue_type_script_setup_true_lang.js +31 -0
  13. package/dist/{packages/iryx-ui/src/components → components}/Checkbox.vue_vue_type_script_setup_true_lang.js +1 -1
  14. package/dist/{packages/iryx-ui/src/components → components}/Combobox.vue_vue_type_script_setup_true_lang.js +1 -1
  15. package/dist/{packages/iryx-ui/src/components → components}/DatePicker.vue_vue_type_script_setup_true_lang.js +1 -1
  16. package/dist/{packages/iryx-ui/src/components → components}/DateRangePicker.vue_vue_type_script_setup_true_lang.js +1 -1
  17. package/dist/components/Dialog.vue_vue_type_script_setup_true_lang.js +99 -0
  18. package/dist/{packages/iryx-ui/src/components → components}/DropdownMenuItems.vue_vue_type_script_setup_true_lang.js +1 -1
  19. package/dist/{packages/iryx-ui/src/components → components}/FileUpload.vue_vue_type_script_setup_true_lang.js +1 -1
  20. package/dist/{packages/iryx-ui/src/components → components}/Icon.vue_vue_type_script_setup_true_lang.js +1 -1
  21. package/dist/{packages/iryx-ui/src/components → components}/Input.vue_vue_type_script_setup_true_lang.js +1 -1
  22. package/dist/components/LineChart.js +5 -0
  23. package/dist/components/LineChart.vue.d.ts +100 -0
  24. package/dist/components/LineChart.vue_vue_type_script_setup_true_lang.js +265 -0
  25. package/dist/{packages/iryx-ui/src/components → components}/NumberInput.vue_vue_type_script_setup_true_lang.js +1 -1
  26. package/dist/{packages/iryx-ui/src/components → components}/Pagination.vue_vue_type_script_setup_true_lang.js +1 -1
  27. package/dist/{packages/iryx-ui/src/components → components}/PasswordInput.vue_vue_type_script_setup_true_lang.js +1 -1
  28. package/dist/{packages/iryx-ui/src/components → components}/Select.vue_vue_type_script_setup_true_lang.js +1 -1
  29. package/dist/{packages/iryx-ui/src/components → components}/Stat.vue_vue_type_script_setup_true_lang.js +1 -1
  30. package/dist/{packages/iryx-ui/src/components → components}/Stepper.vue_vue_type_script_setup_true_lang.js +1 -1
  31. package/dist/{packages/iryx-ui/src/components → components}/Table.vue_vue_type_script_setup_true_lang.js +1 -1
  32. package/dist/{packages/iryx-ui/src/components → components}/Toaster.vue_vue_type_script_setup_true_lang.js +1 -1
  33. package/dist/components/index.d.ts +2 -0
  34. package/dist/components/index.js +88 -0
  35. package/dist/composables/cartesian.d.ts +105 -0
  36. package/dist/composables/cartesian.js +43 -0
  37. package/dist/{packages/iryx-ui/src/composables → composables}/date.js +4 -4
  38. package/dist/index.d.ts +3 -0
  39. package/dist/index.js +94 -89
  40. package/dist/nuxt.js +1 -1
  41. package/dist/theme/bar-chart.d.ts +21 -0
  42. package/dist/{packages/iryx-ui/src/theme → theme}/bar-chart.js +2 -1
  43. package/dist/theme/breadcrumb.d.ts +3 -3
  44. package/dist/theme/chart-legend.d.ts +55 -0
  45. package/dist/theme/chart-legend.js +10 -0
  46. package/dist/theme/index.d.ts +2 -0
  47. package/dist/theme/line-chart.d.ts +143 -0
  48. package/dist/theme/line-chart.js +22 -0
  49. package/package.json +8 -8
  50. package/theme.css +42 -0
  51. package/dist/packages/iryx-ui/src/component-names.js +0 -4
  52. package/dist/packages/iryx-ui/src/components/BarChart.vue_vue_type_script_setup_true_lang.js +0 -178
  53. package/dist/packages/iryx-ui/src/components/Dialog.vue_vue_type_script_setup_true_lang.js +0 -99
  54. package/dist/packages/iryx-ui/src/components/index.js +0 -84
  55. /package/dist/{packages/iryx-ui/src/components → components}/Alert.js +0 -0
  56. /package/dist/{packages/iryx-ui/src/components → components}/App.js +0 -0
  57. /package/dist/{packages/iryx-ui/src/components → components}/App.vue_vue_type_script_setup_true_lang.js +0 -0
  58. /package/dist/{packages/iryx-ui/src/components → components}/Badge.js +0 -0
  59. /package/dist/{packages/iryx-ui/src/components → components}/Badge.vue_vue_type_script_setup_true_lang.js +0 -0
  60. /package/dist/{packages/iryx-ui/src/components → components}/Banner.js +0 -0
  61. /package/dist/{packages/iryx-ui/src/components → components}/BarChart.js +0 -0
  62. /package/dist/{packages/iryx-ui/src/components → components}/Breadcrumb.js +0 -0
  63. /package/dist/{packages/iryx-ui/src/components → components}/Button.js +0 -0
  64. /package/dist/{packages/iryx-ui/src/components → components}/ButtonGroup.js +0 -0
  65. /package/dist/{packages/iryx-ui/src/components → components}/ButtonGroup.vue_vue_type_script_setup_true_lang.js +0 -0
  66. /package/dist/{packages/iryx-ui/src/components → components}/Card.js +0 -0
  67. /package/dist/{packages/iryx-ui/src/components → components}/Card.vue_vue_type_script_setup_true_lang.js +0 -0
  68. /package/dist/{packages/iryx-ui/src/components → components}/Checkbox.js +0 -0
  69. /package/dist/{packages/iryx-ui/src/components → components}/Combobox.js +0 -0
  70. /package/dist/{packages/iryx-ui/src/components → components}/ConfirmDialog.js +0 -0
  71. /package/dist/{packages/iryx-ui/src/components → components}/ConfirmDialog.vue_vue_type_script_setup_true_lang.js +0 -0
  72. /package/dist/{packages/iryx-ui/src/components → components}/DatePicker.js +0 -0
  73. /package/dist/{packages/iryx-ui/src/components → components}/DateRangePicker.js +0 -0
  74. /package/dist/{packages/iryx-ui/src/components → components}/Dialog.js +0 -0
  75. /package/dist/{packages/iryx-ui/src/components → components}/DropdownMenu.js +0 -0
  76. /package/dist/{packages/iryx-ui/src/components → components}/DropdownMenu.vue_vue_type_script_setup_true_lang.js +0 -0
  77. /package/dist/{packages/iryx-ui/src/components → components}/DropdownMenuItems.js +0 -0
  78. /package/dist/{packages/iryx-ui/src/components → components}/EmptyState.js +0 -0
  79. /package/dist/{packages/iryx-ui/src/components → components}/EmptyState.vue_vue_type_script_setup_true_lang.js +0 -0
  80. /package/dist/{packages/iryx-ui/src/components → components}/FileUpload.js +0 -0
  81. /package/dist/{packages/iryx-ui/src/components → components}/Form.js +0 -0
  82. /package/dist/{packages/iryx-ui/src/components → components}/Form.vue_vue_type_script_setup_true_lang.js +0 -0
  83. /package/dist/{packages/iryx-ui/src/components → components}/FormField.js +0 -0
  84. /package/dist/{packages/iryx-ui/src/components → components}/FormField.vue_vue_type_script_setup_true_lang.js +0 -0
  85. /package/dist/{packages/iryx-ui/src/components → components}/Icon.js +0 -0
  86. /package/dist/{packages/iryx-ui/src/components → components}/Input.js +0 -0
  87. /package/dist/{packages/iryx-ui/src/components → components}/Label.js +0 -0
  88. /package/dist/{packages/iryx-ui/src/components → components}/Label.vue_vue_type_script_setup_true_lang.js +0 -0
  89. /package/dist/{packages/iryx-ui/src/components → components}/NumberInput.js +0 -0
  90. /package/dist/{packages/iryx-ui/src/components → components}/Pagination.js +0 -0
  91. /package/dist/{packages/iryx-ui/src/components → components}/PasswordInput.js +0 -0
  92. /package/dist/{packages/iryx-ui/src/components → components}/Progress.js +0 -0
  93. /package/dist/{packages/iryx-ui/src/components → components}/Progress.vue_vue_type_script_setup_true_lang.js +0 -0
  94. /package/dist/{packages/iryx-ui/src/components → components}/RadioGroup.js +0 -0
  95. /package/dist/{packages/iryx-ui/src/components → components}/RadioGroup.vue_vue_type_script_setup_true_lang.js +0 -0
  96. /package/dist/{packages/iryx-ui/src/components → components}/Select.js +0 -0
  97. /package/dist/{packages/iryx-ui/src/components → components}/Separator.js +0 -0
  98. /package/dist/{packages/iryx-ui/src/components → components}/Separator.vue_vue_type_script_setup_true_lang.js +0 -0
  99. /package/dist/{packages/iryx-ui/src/components → components}/Skeleton.js +0 -0
  100. /package/dist/{packages/iryx-ui/src/components → components}/Skeleton.vue_vue_type_script_setup_true_lang.js +0 -0
  101. /package/dist/{packages/iryx-ui/src/components → components}/Sparkline.js +0 -0
  102. /package/dist/{packages/iryx-ui/src/components → components}/Sparkline.vue_vue_type_script_setup_true_lang.js +0 -0
  103. /package/dist/{packages/iryx-ui/src/components → components}/Stat.js +0 -0
  104. /package/dist/{packages/iryx-ui/src/components → components}/Stepper.js +0 -0
  105. /package/dist/{packages/iryx-ui/src/components → components}/Switch.js +0 -0
  106. /package/dist/{packages/iryx-ui/src/components → components}/Switch.vue_vue_type_script_setup_true_lang.js +0 -0
  107. /package/dist/{packages/iryx-ui/src/components → components}/Table.js +0 -0
  108. /package/dist/{packages/iryx-ui/src/components → components}/Tabs.js +0 -0
  109. /package/dist/{packages/iryx-ui/src/components → components}/Tabs.vue_vue_type_script_setup_true_lang.js +0 -0
  110. /package/dist/{packages/iryx-ui/src/components → components}/Textarea.js +0 -0
  111. /package/dist/{packages/iryx-ui/src/components → components}/Textarea.vue_vue_type_script_setup_true_lang.js +0 -0
  112. /package/dist/{packages/iryx-ui/src/components → components}/Toaster.js +0 -0
  113. /package/dist/{packages/iryx-ui/src/components → components}/Tooltip.js +0 -0
  114. /package/dist/{packages/iryx-ui/src/components → components}/Tooltip.vue_vue_type_script_setup_true_lang.js +0 -0
  115. /package/dist/{packages/iryx-ui/src/composables → composables}/appearance.js +0 -0
  116. /package/dist/{packages/iryx-ui/src/composables → composables}/button-group.js +0 -0
  117. /package/dist/{packages/iryx-ui/src/composables → composables}/confirm.js +0 -0
  118. /package/dist/{packages/iryx-ui/src/composables → composables}/data-table.js +0 -0
  119. /package/dist/{packages/iryx-ui/src/composables → composables}/decimal.js +0 -0
  120. /package/dist/{packages/iryx-ui/src/composables → composables}/dropdown-menu.js +0 -0
  121. /package/dist/{packages/iryx-ui/src/composables → composables}/element-size.js +0 -0
  122. /package/dist/{packages/iryx-ui/src/composables → composables}/form.js +0 -0
  123. /package/dist/{packages/iryx-ui/src/composables → composables}/icon.js +0 -0
  124. /package/dist/{packages/iryx-ui/src/composables → composables}/scale.js +0 -0
  125. /package/dist/{packages/iryx-ui/src/composables → composables}/toast.js +0 -0
  126. /package/dist/{packages/iryx-ui/src/config.js → config.js} +0 -0
  127. /package/dist/{packages/iryx-ui/src/plugin.js → plugin.js} +0 -0
  128. /package/dist/{packages/iryx-ui/src/theme → theme}/alert.js +0 -0
  129. /package/dist/{packages/iryx-ui/src/theme → theme}/badge.js +0 -0
  130. /package/dist/{packages/iryx-ui/src/theme → theme}/banner.js +0 -0
  131. /package/dist/{packages/iryx-ui/src/theme → theme}/breadcrumb.js +0 -0
  132. /package/dist/{packages/iryx-ui/src/theme → theme}/button-group.js +0 -0
  133. /package/dist/{packages/iryx-ui/src/theme → theme}/button.js +0 -0
  134. /package/dist/{packages/iryx-ui/src/theme → theme}/card.js +0 -0
  135. /package/dist/{packages/iryx-ui/src/theme → theme}/checkbox.js +0 -0
  136. /package/dist/{packages/iryx-ui/src/theme → theme}/combobox.js +0 -0
  137. /package/dist/{packages/iryx-ui/src/theme → theme}/date-picker.js +0 -0
  138. /package/dist/{packages/iryx-ui/src/theme → theme}/dialog.js +0 -0
  139. /package/dist/{packages/iryx-ui/src/theme → theme}/dropdown-menu.js +0 -0
  140. /package/dist/{packages/iryx-ui/src/theme → theme}/empty-state.js +0 -0
  141. /package/dist/{packages/iryx-ui/src/theme → theme}/file-upload.js +0 -0
  142. /package/dist/{packages/iryx-ui/src/theme → theme}/form.js +0 -0
  143. /package/dist/{packages/iryx-ui/src/theme → theme}/input.js +0 -0
  144. /package/dist/{packages/iryx-ui/src/theme → theme}/label.js +0 -0
  145. /package/dist/{packages/iryx-ui/src/theme → theme}/number-input.js +0 -0
  146. /package/dist/{packages/iryx-ui/src/theme → theme}/pagination.js +0 -0
  147. /package/dist/{packages/iryx-ui/src/theme → theme}/password-input.js +0 -0
  148. /package/dist/{packages/iryx-ui/src/theme → theme}/presets.js +0 -0
  149. /package/dist/{packages/iryx-ui/src/theme → theme}/progress.js +0 -0
  150. /package/dist/{packages/iryx-ui/src/theme → theme}/radio-group.js +0 -0
  151. /package/dist/{packages/iryx-ui/src/theme → theme}/select.js +0 -0
  152. /package/dist/{packages/iryx-ui/src/theme → theme}/separator.js +0 -0
  153. /package/dist/{packages/iryx-ui/src/theme → theme}/skeleton.js +0 -0
  154. /package/dist/{packages/iryx-ui/src/theme → theme}/sparkline.js +0 -0
  155. /package/dist/{packages/iryx-ui/src/theme → theme}/stat.js +0 -0
  156. /package/dist/{packages/iryx-ui/src/theme → theme}/stepper.js +0 -0
  157. /package/dist/{packages/iryx-ui/src/theme → theme}/switch.js +0 -0
  158. /package/dist/{packages/iryx-ui/src/theme → theme}/table.js +0 -0
  159. /package/dist/{packages/iryx-ui/src/theme → theme}/tabs.js +0 -0
  160. /package/dist/{packages/iryx-ui/src/theme → theme}/toast.js +0 -0
  161. /package/dist/{packages/iryx-ui/src/theme → theme}/tooltip.js +0 -0
@@ -0,0 +1,88 @@
1
+ import { __exportAll as e } from "../_virtual/_rolldown/runtime.js";
2
+ import t from "./Alert.js";
3
+ import n from "./App.js";
4
+ import r from "./Badge.js";
5
+ import i from "./Banner.js";
6
+ import a from "./ChartLegend.js";
7
+ import o from "./BarChart.js";
8
+ import s from "./Breadcrumb.js";
9
+ import c from "./Button.js";
10
+ import l from "./ButtonGroup.js";
11
+ import u from "./Card.js";
12
+ import d from "./Checkbox.js";
13
+ import f from "./Combobox.js";
14
+ import p from "./Dialog.js";
15
+ import m from "./ConfirmDialog.js";
16
+ import h from "./DatePicker.js";
17
+ import g from "./DateRangePicker.js";
18
+ import _ from "./DropdownMenu.js";
19
+ import v from "./EmptyState.js";
20
+ import y from "./FileUpload.js";
21
+ import b from "./Form.js";
22
+ import x from "./Label.js";
23
+ import S from "./FormField.js";
24
+ import C from "./Input.js";
25
+ import w from "./LineChart.js";
26
+ import T from "./NumberInput.js";
27
+ import E from "./Pagination.js";
28
+ import D from "./PasswordInput.js";
29
+ import O from "./Progress.js";
30
+ import k from "./RadioGroup.js";
31
+ import A from "./Select.js";
32
+ import j from "./Separator.js";
33
+ import M from "./Skeleton.js";
34
+ import N from "./Sparkline.js";
35
+ import P from "./Stat.js";
36
+ import F from "./Stepper.js";
37
+ import I from "./Switch.js";
38
+ import L from "./Table.js";
39
+ import R from "./Tabs.js";
40
+ import z from "./Textarea.js";
41
+ import B from "./Toaster.js";
42
+ import V from "./Tooltip.js";
43
+ //#region src/components/index.ts
44
+ var H = /* @__PURE__ */ e({
45
+ Alert: () => t,
46
+ App: () => n,
47
+ Badge: () => r,
48
+ Banner: () => i,
49
+ BarChart: () => o,
50
+ Breadcrumb: () => s,
51
+ Button: () => c,
52
+ ButtonGroup: () => l,
53
+ Card: () => u,
54
+ ChartLegend: () => a,
55
+ Checkbox: () => d,
56
+ Combobox: () => f,
57
+ ConfirmDialog: () => m,
58
+ DatePicker: () => h,
59
+ DateRangePicker: () => g,
60
+ Dialog: () => p,
61
+ DropdownMenu: () => _,
62
+ EmptyState: () => v,
63
+ FileUpload: () => y,
64
+ Form: () => b,
65
+ FormField: () => S,
66
+ Input: () => C,
67
+ Label: () => x,
68
+ LineChart: () => w,
69
+ NumberInput: () => T,
70
+ Pagination: () => E,
71
+ PasswordInput: () => D,
72
+ Progress: () => O,
73
+ RadioGroup: () => k,
74
+ Select: () => A,
75
+ Separator: () => j,
76
+ Skeleton: () => M,
77
+ Sparkline: () => N,
78
+ Stat: () => P,
79
+ Stepper: () => F,
80
+ Switch: () => I,
81
+ Table: () => L,
82
+ Tabs: () => R,
83
+ Textarea: () => z,
84
+ Toaster: () => B,
85
+ Tooltip: () => V
86
+ });
87
+ //#endregion
88
+ export { H as components_exports };
@@ -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) {
package/dist/index.d.ts CHANGED
@@ -10,6 +10,7 @@ export type { BreadcrumbItem, BreadcrumbProps } from './components/Breadcrumb.vu
10
10
  export type { ButtonProps } from './components/Button.vue';
11
11
  export type { ButtonGroupProps } from './components/ButtonGroup.vue';
12
12
  export type { CardProps } from './components/Card.vue';
13
+ export type { ChartLegendProps } from './components/ChartLegend.vue';
13
14
  export type { CheckboxProps } from './components/Checkbox.vue';
14
15
  export type { ComboboxItemGroup, ComboboxItemOption, ComboboxItems, ComboboxProps } from './components/Combobox.vue';
15
16
  export type { ConfirmDialogProps } from './components/ConfirmDialog.vue';
@@ -23,6 +24,7 @@ export type { FormProps } from './components/Form.vue';
23
24
  export type { FormFieldProps } from './components/FormField.vue';
24
25
  export type { InputProps } from './components/Input.vue';
25
26
  export type { LabelProps } from './components/Label.vue';
27
+ export type { LineChartDatum, LineChartProps } from './components/LineChart.vue';
26
28
  export type { NumberInputProps } from './components/NumberInput.vue';
27
29
  export type { PaginationProps } from './components/Pagination.vue';
28
30
  export type { PasswordInputProps } from './components/PasswordInput.vue';
@@ -42,6 +44,7 @@ export type { ToasterProps } from './components/Toaster.vue';
42
44
  export type { TooltipProps } from './components/Tooltip.vue';
43
45
  export * from './composables/appearance';
44
46
  export * from './composables/button-group';
47
+ export * from './composables/cartesian';
45
48
  export * from './composables/confirm';
46
49
  export * from './composables/data-table';
47
50
  export * from './composables/date';
package/dist/index.js CHANGED
@@ -1,89 +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 { useElementSize as g } from "./packages/iryx-ui/src/composables/element-size.js";
13
- import { extent as _, finiteValues as v, linearScale as y, niceTicks as b } from "./packages/iryx-ui/src/composables/scale.js";
14
- import { barChartTheme as x } from "./packages/iryx-ui/src/theme/bar-chart.js";
15
- import S from "./packages/iryx-ui/src/components/BarChart.js";
16
- import { breadcrumbTheme as C } from "./packages/iryx-ui/src/theme/breadcrumb.js";
17
- import w from "./packages/iryx-ui/src/components/Breadcrumb.js";
18
- import { buttonGroupContextKey as T, useButtonGroup as E } from "./packages/iryx-ui/src/composables/button-group.js";
19
- import { buttonTheme as D } from "./packages/iryx-ui/src/theme/button.js";
20
- import O from "./packages/iryx-ui/src/components/Button.js";
21
- import { buttonGroupTheme as k } from "./packages/iryx-ui/src/theme/button-group.js";
22
- import A from "./packages/iryx-ui/src/components/ButtonGroup.js";
23
- import { cardTheme as j } from "./packages/iryx-ui/src/theme/card.js";
24
- import M from "./packages/iryx-ui/src/components/Card.js";
25
- import { checkboxTheme as N } from "./packages/iryx-ui/src/theme/checkbox.js";
26
- import P from "./packages/iryx-ui/src/components/Checkbox.js";
27
- import { formContextKey as F, formFieldContextKey as I, getByPath as L, isStandardSchema as R, issuePath as z, useForm as B, useFormField as V } from "./packages/iryx-ui/src/composables/form.js";
28
- import { fieldBase as H, inputTheme as U, textareaTheme as W } from "./packages/iryx-ui/src/theme/input.js";
29
- import { comboboxTheme as G } from "./packages/iryx-ui/src/theme/combobox.js";
30
- import K from "./packages/iryx-ui/src/components/Combobox.js";
31
- import { resolveConfirm as q, useConfirm as J, useConfirmState as Y } from "./packages/iryx-ui/src/composables/confirm.js";
32
- import { dialogTheme as X } from "./packages/iryx-ui/src/theme/dialog.js";
33
- import Z from "./packages/iryx-ui/src/components/Dialog.js";
34
- import Q from "./packages/iryx-ui/src/components/ConfirmDialog.js";
35
- import { $2aaf608024c21ca1$export$99faa760c7908e4f as $ } from "./node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/CalendarDate.js";
36
- import { formatIsoDate as ee, isoToday as te, toCalendarDate as ne, toIsoDate as re } from "./packages/iryx-ui/src/composables/date.js";
37
- import { datePickerTheme as ie } from "./packages/iryx-ui/src/theme/date-picker.js";
38
- import ae from "./packages/iryx-ui/src/components/DatePicker.js";
39
- import oe from "./packages/iryx-ui/src/components/DateRangePicker.js";
40
- import { dropdownMenuTheme as se } from "./packages/iryx-ui/src/theme/dropdown-menu.js";
41
- import { isSeparator as ce, isSubmenu as le } from "./packages/iryx-ui/src/composables/dropdown-menu.js";
42
- import ue from "./packages/iryx-ui/src/components/DropdownMenu.js";
43
- import { emptyStateTheme as de } from "./packages/iryx-ui/src/theme/empty-state.js";
44
- import fe from "./packages/iryx-ui/src/components/EmptyState.js";
45
- import { fileUploadTheme as pe } from "./packages/iryx-ui/src/theme/file-upload.js";
46
- import me from "./packages/iryx-ui/src/components/FileUpload.js";
47
- import he from "./packages/iryx-ui/src/components/Form.js";
48
- import { labelTheme as ge } from "./packages/iryx-ui/src/theme/label.js";
49
- import _e from "./packages/iryx-ui/src/components/Label.js";
50
- import ve from "./packages/iryx-ui/src/components/FormField.js";
51
- import ye from "./packages/iryx-ui/src/components/Input.js";
52
- import { addDecimals as be, clampDecimal as xe, compareDecimals as Se, formatDecimal as Ce, formatForLocale as we, isDecimal as Te, localeSeparators as Ee, parseDecimal as De, parseFromLocale as Oe, roundDecimal as ke, toEditable as Ae } from "./packages/iryx-ui/src/composables/decimal.js";
53
- import { numberInputTheme as je } from "./packages/iryx-ui/src/theme/number-input.js";
54
- import Me from "./packages/iryx-ui/src/components/NumberInput.js";
55
- import { paginationTheme as Ne } from "./packages/iryx-ui/src/theme/pagination.js";
56
- import Pe from "./packages/iryx-ui/src/components/Pagination.js";
57
- import { passwordInputTheme as Fe } from "./packages/iryx-ui/src/theme/password-input.js";
58
- import Ie from "./packages/iryx-ui/src/components/PasswordInput.js";
59
- import { progressTheme as Le } from "./packages/iryx-ui/src/theme/progress.js";
60
- import Re from "./packages/iryx-ui/src/components/Progress.js";
61
- import { radioGroupTheme as ze } from "./packages/iryx-ui/src/theme/radio-group.js";
62
- import Be from "./packages/iryx-ui/src/components/RadioGroup.js";
63
- import { selectTheme as Ve } from "./packages/iryx-ui/src/theme/select.js";
64
- import He from "./packages/iryx-ui/src/components/Select.js";
65
- import { separatorTheme as Ue } from "./packages/iryx-ui/src/theme/separator.js";
66
- import We from "./packages/iryx-ui/src/components/Separator.js";
67
- import { skeletonTheme as Ge } from "./packages/iryx-ui/src/theme/skeleton.js";
68
- import Ke from "./packages/iryx-ui/src/components/Skeleton.js";
69
- import { sparklineTheme as qe } from "./packages/iryx-ui/src/theme/sparkline.js";
70
- import Je from "./packages/iryx-ui/src/components/Sparkline.js";
71
- import { statTheme as Ye } from "./packages/iryx-ui/src/theme/stat.js";
72
- import Xe from "./packages/iryx-ui/src/components/Stat.js";
73
- import { stepperTheme as Ze } from "./packages/iryx-ui/src/theme/stepper.js";
74
- import Qe from "./packages/iryx-ui/src/components/Stepper.js";
75
- import { switchTheme as $e } from "./packages/iryx-ui/src/theme/switch.js";
76
- import et from "./packages/iryx-ui/src/components/Switch.js";
77
- import { getRowValue as tt, useDataTable as nt } from "./packages/iryx-ui/src/composables/data-table.js";
78
- import { tableTheme as rt } from "./packages/iryx-ui/src/theme/table.js";
79
- import it from "./packages/iryx-ui/src/components/Table.js";
80
- import { tabsTheme as at } from "./packages/iryx-ui/src/theme/tabs.js";
81
- import ot from "./packages/iryx-ui/src/components/Tabs.js";
82
- import st from "./packages/iryx-ui/src/components/Textarea.js";
83
- import { useToast as ct, useToastState as lt } from "./packages/iryx-ui/src/composables/toast.js";
84
- import { toastTheme as ut } from "./packages/iryx-ui/src/theme/toast.js";
85
- import dt from "./packages/iryx-ui/src/components/Toaster.js";
86
- import { tooltipTheme as ft } from "./packages/iryx-ui/src/theme/tooltip.js";
87
- import pt from "./packages/iryx-ui/src/components/Tooltip.js";
88
- import { IryxUi as mt, createIryxUi as ht } from "./packages/iryx-ui/src/plugin.js";
89
- export { a as Alert, d as App, p as Badge, h as Banner, S as BarChart, w as Breadcrumb, O as Button, A as ButtonGroup, $ as CalendarDate, M as Card, P as Checkbox, K as Combobox, Q as ConfirmDialog, ae as DatePicker, oe as DateRangePicker, Z as Dialog, ue as DropdownMenu, fe as EmptyState, me as FileUpload, he as Form, ve as FormField, ye as Input, mt as IryxUi, _e as Label, Me as NumberInput, Pe as Pagination, Ie as PasswordInput, Re as Progress, Be as RadioGroup, He as Select, We as Separator, Ke as Skeleton, Je as Sparkline, Xe as Stat, Qe as Stepper, et as Switch, it as Table, ot as Tabs, st as Textarea, dt as Toaster, pt as Tooltip, be as addDecimals, i as alertTheme, c as applyTheme, f as badgeTheme, m as bannerTheme, x as barChartTheme, C as breadcrumbTheme, T as buttonGroupContextKey, k as buttonGroupTheme, D as buttonTheme, j as cardTheme, N as checkboxTheme, xe as clampDecimal, l as clearTheme, G as comboboxTheme, Se as compareDecimals, e as componentNames, ht as createIryxUi, ie as datePickerTheme, t as defaultConfig, X as dialogTheme, se as dropdownMenuTheme, de as emptyStateTheme, _ as extent, H as fieldBase, pe as fileUploadTheme, v as finiteValues, F as formContextKey, I as formFieldContextKey, Ce as formatDecimal, we as formatForLocale, ee as formatIsoDate, L as getByPath, tt as getRowValue, o as initAppearance, U as inputTheme, n as iryxUiConfigKey, Te as isDecimal, ce as isSeparator, R as isStandardSchema, le as isSubmenu, te as isoToday, z as issuePath, ge as labelTheme, y as linearScale, Ee as localeSeparators, b as niceTicks, je as numberInputTheme, Ne as paginationTheme, De as parseDecimal, Oe as parseFromLocale, Fe as passwordInputTheme, Le as progressTheme, ze as radioGroupTheme, q as resolveConfirm, ke as roundDecimal, Ve as selectTheme, Ue as separatorTheme, Ge as skeletonTheme, qe as sparklineTheme, Ye as statTheme, Ze as stepperTheme, $e as switchTheme, rt as tableTheme, at as tabsTheme, W as textareaTheme, u as themes, ne as toCalendarDate, Ae as toEditable, re as toIsoDate, ut as toastTheme, ft as tooltipTheme, s as useAppearance, E as useButtonGroup, J as useConfirm, Y as useConfirmState, nt as useDataTable, g as useElementSize, B as useForm, V as useFormField, r as useIryxUiConfig, ct as useToast, lt 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({
@@ -8,6 +8,7 @@ export declare const barChartTheme: import("tailwind-variants").TVReturnType<{
8
8
  root?: import("tailwind-variants").ClassValue;
9
9
  svg?: import("tailwind-variants").ClassValue;
10
10
  table?: import("tailwind-variants").ClassValue;
11
+ plot?: import("tailwind-variants").ClassValue;
11
12
  grid?: import("tailwind-variants").ClassValue;
12
13
  tick?: import("tailwind-variants").ClassValue;
13
14
  category?: import("tailwind-variants").ClassValue;
@@ -25,6 +26,7 @@ export declare const barChartTheme: import("tailwind-variants").TVReturnType<{
25
26
  root?: import("tailwind-variants").ClassValue;
26
27
  svg?: import("tailwind-variants").ClassValue;
27
28
  table?: import("tailwind-variants").ClassValue;
29
+ plot?: import("tailwind-variants").ClassValue;
28
30
  grid?: import("tailwind-variants").ClassValue;
29
31
  tick?: import("tailwind-variants").ClassValue;
30
32
  category?: import("tailwind-variants").ClassValue;
@@ -38,6 +40,12 @@ export declare const barChartTheme: import("tailwind-variants").TVReturnType<{
38
40
  };
39
41
  } | {}, {
40
42
  root: string;
43
+ /**
44
+ * The tooltip's coordinates come from the SVG, so the SVG has to be its
45
+ * positioning context. Anchoring to the root instead shifts it up by the
46
+ * height of anything above the plot — the legend, most obviously.
47
+ */
48
+ plot: string;
41
49
  svg: string;
42
50
  /** Hairline and solid — a dashed grid competes with the marks. */
43
51
  grid: string;
@@ -60,6 +68,7 @@ export declare const barChartTheme: import("tailwind-variants").TVReturnType<{
60
68
  root?: import("tailwind-variants").ClassValue;
61
69
  svg?: import("tailwind-variants").ClassValue;
62
70
  table?: import("tailwind-variants").ClassValue;
71
+ plot?: import("tailwind-variants").ClassValue;
63
72
  grid?: import("tailwind-variants").ClassValue;
64
73
  tick?: import("tailwind-variants").ClassValue;
65
74
  category?: import("tailwind-variants").ClassValue;
@@ -73,6 +82,12 @@ export declare const barChartTheme: import("tailwind-variants").TVReturnType<{
73
82
  };
74
83
  } | {}, {
75
84
  root: string;
85
+ /**
86
+ * The tooltip's coordinates come from the SVG, so the SVG has to be its
87
+ * positioning context. Anchoring to the root instead shifts it up by the
88
+ * height of anything above the plot — the legend, most obviously.
89
+ */
90
+ plot: string;
76
91
  svg: string;
77
92
  /** Hairline and solid — a dashed grid competes with the marks. */
78
93
  grid: string;
@@ -91,6 +106,12 @@ export declare const barChartTheme: import("tailwind-variants").TVReturnType<{
91
106
  table: string;
92
107
  }, import("tailwind-variants").TVReturnType<unknown, {
93
108
  root: string;
109
+ /**
110
+ * The tooltip's coordinates come from the SVG, so the SVG has to be its
111
+ * positioning context. Anchoring to the root instead shifts it up by the
112
+ * height of anything above the plot — the legend, most obviously.
113
+ */
114
+ plot: string;
94
115
  svg: string;
95
116
  /** Hairline and solid — a dashed grid competes with the marks. */
96
117
  grid: string;
@@ -1,7 +1,8 @@
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: "relative w-full text-primary",
4
+ root: "w-full text-primary",
5
+ plot: "relative",
5
6
  svg: "block w-full overflow-visible",
6
7
  grid: "stroke-border",
7
8
  tick: "fill-muted-foreground text-xs [font-variant-numeric:tabular-nums]",
@@ -3,8 +3,8 @@ export declare const breadcrumbTheme: import("tailwind-variants").TVReturnType<{
3
3
  [key: string]: import("tailwind-variants").ClassValue | {
4
4
  root?: import("tailwind-variants").ClassValue;
5
5
  link?: import("tailwind-variants").ClassValue;
6
- list?: import("tailwind-variants").ClassValue;
7
6
  item?: import("tailwind-variants").ClassValue;
7
+ list?: import("tailwind-variants").ClassValue;
8
8
  current?: import("tailwind-variants").ClassValue;
9
9
  separator?: import("tailwind-variants").ClassValue;
10
10
  };
@@ -14,8 +14,8 @@ export declare const breadcrumbTheme: import("tailwind-variants").TVReturnType<{
14
14
  [x: string]: import("tailwind-variants").ClassValue | {
15
15
  root?: import("tailwind-variants").ClassValue;
16
16
  link?: import("tailwind-variants").ClassValue;
17
- list?: import("tailwind-variants").ClassValue;
18
17
  item?: import("tailwind-variants").ClassValue;
18
+ list?: import("tailwind-variants").ClassValue;
19
19
  current?: import("tailwind-variants").ClassValue;
20
20
  separator?: import("tailwind-variants").ClassValue;
21
21
  };
@@ -33,8 +33,8 @@ export declare const breadcrumbTheme: import("tailwind-variants").TVReturnType<{
33
33
  [key: string]: import("tailwind-variants").ClassValue | {
34
34
  root?: import("tailwind-variants").ClassValue;
35
35
  link?: import("tailwind-variants").ClassValue;
36
- list?: import("tailwind-variants").ClassValue;
37
36
  item?: import("tailwind-variants").ClassValue;
37
+ list?: import("tailwind-variants").ClassValue;
38
38
  current?: import("tailwind-variants").ClassValue;
39
39
  separator?: import("tailwind-variants").ClassValue;
40
40
  };