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.
- package/README.md +178 -3
- package/dist/component-names.d.ts +1 -1
- package/dist/component-names.js +4 -0
- package/dist/{packages/iryx-ui/src/components → components}/Alert.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/{packages/iryx-ui/src/components → components}/Banner.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BarChart.vue.d.ts +61 -2
- package/dist/components/BarChart.vue_vue_type_script_setup_true_lang.js +258 -0
- package/dist/{packages/iryx-ui/src/components → components}/Breadcrumb.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/{packages/iryx-ui/src/components → components}/Button.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/ChartLegend.js +5 -0
- package/dist/components/ChartLegend.vue.d.ts +12 -0
- package/dist/components/ChartLegend.vue_vue_type_script_setup_true_lang.js +31 -0
- package/dist/{packages/iryx-ui/src/components → components}/Checkbox.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/{packages/iryx-ui/src/components → components}/Combobox.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/{packages/iryx-ui/src/components → components}/DatePicker.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/{packages/iryx-ui/src/components → components}/DateRangePicker.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/Dialog.vue_vue_type_script_setup_true_lang.js +99 -0
- package/dist/{packages/iryx-ui/src/components → components}/DropdownMenuItems.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/{packages/iryx-ui/src/components → components}/FileUpload.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/{packages/iryx-ui/src/components → components}/Icon.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/{packages/iryx-ui/src/components → components}/Input.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/LineChart.js +5 -0
- package/dist/components/LineChart.vue.d.ts +100 -0
- package/dist/components/LineChart.vue_vue_type_script_setup_true_lang.js +265 -0
- package/dist/{packages/iryx-ui/src/components → components}/NumberInput.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/{packages/iryx-ui/src/components → components}/Pagination.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/{packages/iryx-ui/src/components → components}/PasswordInput.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/{packages/iryx-ui/src/components → components}/Select.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/{packages/iryx-ui/src/components → components}/Stat.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/{packages/iryx-ui/src/components → components}/Stepper.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/{packages/iryx-ui/src/components → components}/Table.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/{packages/iryx-ui/src/components → components}/Toaster.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +88 -0
- package/dist/composables/cartesian.d.ts +105 -0
- package/dist/composables/cartesian.js +43 -0
- package/dist/{packages/iryx-ui/src/composables → composables}/date.js +4 -4
- package/dist/index.d.ts +3 -0
- package/dist/index.js +94 -89
- package/dist/nuxt.js +1 -1
- package/dist/theme/bar-chart.d.ts +21 -0
- package/dist/{packages/iryx-ui/src/theme → theme}/bar-chart.js +2 -1
- package/dist/theme/breadcrumb.d.ts +3 -3
- package/dist/theme/chart-legend.d.ts +55 -0
- package/dist/theme/chart-legend.js +10 -0
- package/dist/theme/index.d.ts +2 -0
- package/dist/theme/line-chart.d.ts +143 -0
- package/dist/theme/line-chart.js +22 -0
- package/package.json +8 -8
- package/theme.css +42 -0
- package/dist/packages/iryx-ui/src/component-names.js +0 -4
- package/dist/packages/iryx-ui/src/components/BarChart.vue_vue_type_script_setup_true_lang.js +0 -178
- package/dist/packages/iryx-ui/src/components/Dialog.vue_vue_type_script_setup_true_lang.js +0 -99
- package/dist/packages/iryx-ui/src/components/index.js +0 -84
- /package/dist/{packages/iryx-ui/src/components → components}/Alert.js +0 -0
- /package/dist/{packages/iryx-ui/src/components → components}/App.js +0 -0
- /package/dist/{packages/iryx-ui/src/components → components}/App.vue_vue_type_script_setup_true_lang.js +0 -0
- /package/dist/{packages/iryx-ui/src/components → components}/Badge.js +0 -0
- /package/dist/{packages/iryx-ui/src/components → components}/Badge.vue_vue_type_script_setup_true_lang.js +0 -0
- /package/dist/{packages/iryx-ui/src/components → components}/Banner.js +0 -0
- /package/dist/{packages/iryx-ui/src/components → components}/BarChart.js +0 -0
- /package/dist/{packages/iryx-ui/src/components → components}/Breadcrumb.js +0 -0
- /package/dist/{packages/iryx-ui/src/components → components}/Button.js +0 -0
- /package/dist/{packages/iryx-ui/src/components → components}/ButtonGroup.js +0 -0
- /package/dist/{packages/iryx-ui/src/components → components}/ButtonGroup.vue_vue_type_script_setup_true_lang.js +0 -0
- /package/dist/{packages/iryx-ui/src/components → components}/Card.js +0 -0
- /package/dist/{packages/iryx-ui/src/components → components}/Card.vue_vue_type_script_setup_true_lang.js +0 -0
- /package/dist/{packages/iryx-ui/src/components → components}/Checkbox.js +0 -0
- /package/dist/{packages/iryx-ui/src/components → components}/Combobox.js +0 -0
- /package/dist/{packages/iryx-ui/src/components → components}/ConfirmDialog.js +0 -0
- /package/dist/{packages/iryx-ui/src/components → components}/ConfirmDialog.vue_vue_type_script_setup_true_lang.js +0 -0
- /package/dist/{packages/iryx-ui/src/components → components}/DatePicker.js +0 -0
- /package/dist/{packages/iryx-ui/src/components → components}/DateRangePicker.js +0 -0
- /package/dist/{packages/iryx-ui/src/components → components}/Dialog.js +0 -0
- /package/dist/{packages/iryx-ui/src/components → components}/DropdownMenu.js +0 -0
- /package/dist/{packages/iryx-ui/src/components → components}/DropdownMenu.vue_vue_type_script_setup_true_lang.js +0 -0
- /package/dist/{packages/iryx-ui/src/components → components}/DropdownMenuItems.js +0 -0
- /package/dist/{packages/iryx-ui/src/components → components}/EmptyState.js +0 -0
- /package/dist/{packages/iryx-ui/src/components → components}/EmptyState.vue_vue_type_script_setup_true_lang.js +0 -0
- /package/dist/{packages/iryx-ui/src/components → components}/FileUpload.js +0 -0
- /package/dist/{packages/iryx-ui/src/components → components}/Form.js +0 -0
- /package/dist/{packages/iryx-ui/src/components → components}/Form.vue_vue_type_script_setup_true_lang.js +0 -0
- /package/dist/{packages/iryx-ui/src/components → components}/FormField.js +0 -0
- /package/dist/{packages/iryx-ui/src/components → components}/FormField.vue_vue_type_script_setup_true_lang.js +0 -0
- /package/dist/{packages/iryx-ui/src/components → components}/Icon.js +0 -0
- /package/dist/{packages/iryx-ui/src/components → components}/Input.js +0 -0
- /package/dist/{packages/iryx-ui/src/components → components}/Label.js +0 -0
- /package/dist/{packages/iryx-ui/src/components → components}/Label.vue_vue_type_script_setup_true_lang.js +0 -0
- /package/dist/{packages/iryx-ui/src/components → components}/NumberInput.js +0 -0
- /package/dist/{packages/iryx-ui/src/components → components}/Pagination.js +0 -0
- /package/dist/{packages/iryx-ui/src/components → components}/PasswordInput.js +0 -0
- /package/dist/{packages/iryx-ui/src/components → components}/Progress.js +0 -0
- /package/dist/{packages/iryx-ui/src/components → components}/Progress.vue_vue_type_script_setup_true_lang.js +0 -0
- /package/dist/{packages/iryx-ui/src/components → components}/RadioGroup.js +0 -0
- /package/dist/{packages/iryx-ui/src/components → components}/RadioGroup.vue_vue_type_script_setup_true_lang.js +0 -0
- /package/dist/{packages/iryx-ui/src/components → components}/Select.js +0 -0
- /package/dist/{packages/iryx-ui/src/components → components}/Separator.js +0 -0
- /package/dist/{packages/iryx-ui/src/components → components}/Separator.vue_vue_type_script_setup_true_lang.js +0 -0
- /package/dist/{packages/iryx-ui/src/components → components}/Skeleton.js +0 -0
- /package/dist/{packages/iryx-ui/src/components → components}/Skeleton.vue_vue_type_script_setup_true_lang.js +0 -0
- /package/dist/{packages/iryx-ui/src/components → components}/Sparkline.js +0 -0
- /package/dist/{packages/iryx-ui/src/components → components}/Sparkline.vue_vue_type_script_setup_true_lang.js +0 -0
- /package/dist/{packages/iryx-ui/src/components → components}/Stat.js +0 -0
- /package/dist/{packages/iryx-ui/src/components → components}/Stepper.js +0 -0
- /package/dist/{packages/iryx-ui/src/components → components}/Switch.js +0 -0
- /package/dist/{packages/iryx-ui/src/components → components}/Switch.vue_vue_type_script_setup_true_lang.js +0 -0
- /package/dist/{packages/iryx-ui/src/components → components}/Table.js +0 -0
- /package/dist/{packages/iryx-ui/src/components → components}/Tabs.js +0 -0
- /package/dist/{packages/iryx-ui/src/components → components}/Tabs.vue_vue_type_script_setup_true_lang.js +0 -0
- /package/dist/{packages/iryx-ui/src/components → components}/Textarea.js +0 -0
- /package/dist/{packages/iryx-ui/src/components → components}/Textarea.vue_vue_type_script_setup_true_lang.js +0 -0
- /package/dist/{packages/iryx-ui/src/components → components}/Toaster.js +0 -0
- /package/dist/{packages/iryx-ui/src/components → components}/Tooltip.js +0 -0
- /package/dist/{packages/iryx-ui/src/components → components}/Tooltip.vue_vue_type_script_setup_true_lang.js +0 -0
- /package/dist/{packages/iryx-ui/src/composables → composables}/appearance.js +0 -0
- /package/dist/{packages/iryx-ui/src/composables → composables}/button-group.js +0 -0
- /package/dist/{packages/iryx-ui/src/composables → composables}/confirm.js +0 -0
- /package/dist/{packages/iryx-ui/src/composables → composables}/data-table.js +0 -0
- /package/dist/{packages/iryx-ui/src/composables → composables}/decimal.js +0 -0
- /package/dist/{packages/iryx-ui/src/composables → composables}/dropdown-menu.js +0 -0
- /package/dist/{packages/iryx-ui/src/composables → composables}/element-size.js +0 -0
- /package/dist/{packages/iryx-ui/src/composables → composables}/form.js +0 -0
- /package/dist/{packages/iryx-ui/src/composables → composables}/icon.js +0 -0
- /package/dist/{packages/iryx-ui/src/composables → composables}/scale.js +0 -0
- /package/dist/{packages/iryx-ui/src/composables → composables}/toast.js +0 -0
- /package/dist/{packages/iryx-ui/src/config.js → config.js} +0 -0
- /package/dist/{packages/iryx-ui/src/plugin.js → plugin.js} +0 -0
- /package/dist/{packages/iryx-ui/src/theme → theme}/alert.js +0 -0
- /package/dist/{packages/iryx-ui/src/theme → theme}/badge.js +0 -0
- /package/dist/{packages/iryx-ui/src/theme → theme}/banner.js +0 -0
- /package/dist/{packages/iryx-ui/src/theme → theme}/breadcrumb.js +0 -0
- /package/dist/{packages/iryx-ui/src/theme → theme}/button-group.js +0 -0
- /package/dist/{packages/iryx-ui/src/theme → theme}/button.js +0 -0
- /package/dist/{packages/iryx-ui/src/theme → theme}/card.js +0 -0
- /package/dist/{packages/iryx-ui/src/theme → theme}/checkbox.js +0 -0
- /package/dist/{packages/iryx-ui/src/theme → theme}/combobox.js +0 -0
- /package/dist/{packages/iryx-ui/src/theme → theme}/date-picker.js +0 -0
- /package/dist/{packages/iryx-ui/src/theme → theme}/dialog.js +0 -0
- /package/dist/{packages/iryx-ui/src/theme → theme}/dropdown-menu.js +0 -0
- /package/dist/{packages/iryx-ui/src/theme → theme}/empty-state.js +0 -0
- /package/dist/{packages/iryx-ui/src/theme → theme}/file-upload.js +0 -0
- /package/dist/{packages/iryx-ui/src/theme → theme}/form.js +0 -0
- /package/dist/{packages/iryx-ui/src/theme → theme}/input.js +0 -0
- /package/dist/{packages/iryx-ui/src/theme → theme}/label.js +0 -0
- /package/dist/{packages/iryx-ui/src/theme → theme}/number-input.js +0 -0
- /package/dist/{packages/iryx-ui/src/theme → theme}/pagination.js +0 -0
- /package/dist/{packages/iryx-ui/src/theme → theme}/password-input.js +0 -0
- /package/dist/{packages/iryx-ui/src/theme → theme}/presets.js +0 -0
- /package/dist/{packages/iryx-ui/src/theme → theme}/progress.js +0 -0
- /package/dist/{packages/iryx-ui/src/theme → theme}/radio-group.js +0 -0
- /package/dist/{packages/iryx-ui/src/theme → theme}/select.js +0 -0
- /package/dist/{packages/iryx-ui/src/theme → theme}/separator.js +0 -0
- /package/dist/{packages/iryx-ui/src/theme → theme}/skeleton.js +0 -0
- /package/dist/{packages/iryx-ui/src/theme → theme}/sparkline.js +0 -0
- /package/dist/{packages/iryx-ui/src/theme → theme}/stat.js +0 -0
- /package/dist/{packages/iryx-ui/src/theme → theme}/stepper.js +0 -0
- /package/dist/{packages/iryx-ui/src/theme → theme}/switch.js +0 -0
- /package/dist/{packages/iryx-ui/src/theme → theme}/table.js +0 -0
- /package/dist/{packages/iryx-ui/src/theme → theme}/tabs.js +0 -0
- /package/dist/{packages/iryx-ui/src/theme → theme}/toast.js +0 -0
- /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 "
|
|
2
|
-
import { $58246871e4652552$export$6b862160d295c8e as n } from "
|
|
3
|
-
import "
|
|
4
|
-
import { $12a3c853105e5a70$export$ad991b66133851cf as r } from "
|
|
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 "./
|
|
2
|
-
import { defaultConfig as t, iryxUiConfigKey as n, useIryxUiConfig as r } from "./
|
|
3
|
-
import { alertTheme as i } from "./
|
|
4
|
-
import a from "./
|
|
5
|
-
import { initAppearance as o, useAppearance as s } from "./
|
|
6
|
-
import { applyTheme as c, clearTheme as l, themes as u } from "./
|
|
7
|
-
import d from "./
|
|
8
|
-
import { badgeTheme as f } from "./
|
|
9
|
-
import p from "./
|
|
10
|
-
import { bannerTheme as m } from "./
|
|
11
|
-
import h from "./
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import
|
|
16
|
-
import {
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import {
|
|
20
|
-
import
|
|
21
|
-
import {
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import {
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import {
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import {
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import {
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import
|
|
47
|
-
import
|
|
48
|
-
import {
|
|
49
|
-
import
|
|
50
|
-
import
|
|
51
|
-
import
|
|
52
|
-
import
|
|
53
|
-
import
|
|
54
|
-
import Me from "./
|
|
55
|
-
import {
|
|
56
|
-
import Pe from "./
|
|
57
|
-
import {
|
|
58
|
-
import
|
|
59
|
-
import
|
|
60
|
-
import
|
|
61
|
-
import
|
|
62
|
-
import
|
|
63
|
-
import
|
|
64
|
-
import
|
|
65
|
-
import
|
|
66
|
-
import
|
|
67
|
-
import
|
|
68
|
-
import
|
|
69
|
-
import
|
|
70
|
-
import
|
|
71
|
-
import
|
|
72
|
-
import
|
|
73
|
-
import
|
|
74
|
-
import
|
|
75
|
-
import
|
|
76
|
-
import
|
|
77
|
-
import
|
|
78
|
-
import {
|
|
79
|
-
import
|
|
80
|
-
import {
|
|
81
|
-
import
|
|
82
|
-
import
|
|
83
|
-
import {
|
|
84
|
-
import
|
|
85
|
-
import
|
|
86
|
-
import
|
|
87
|
-
import
|
|
88
|
-
import {
|
|
89
|
-
|
|
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 "./
|
|
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: "
|
|
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
|
};
|