iryx-ui 0.12.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -1315
- package/dist/component-names.d.ts +1 -1
- package/dist/component-names.js +1 -1
- package/dist/components/Accordion.js +5 -0
- package/dist/components/Accordion.vue.d.ts +80 -0
- package/dist/components/Accordion.vue_vue_type_script_setup_true_lang.js +87 -0
- package/dist/components/Alert.vue.d.ts +1 -1
- package/dist/components/Alert.vue_vue_type_script_setup_true_lang.js +7 -7
- package/dist/components/App.vue.d.ts +1 -1
- package/dist/components/AppShell.js +5 -0
- package/dist/components/AppShell.vue.d.ts +46 -0
- package/dist/components/AppShell.vue_vue_type_script_setup_true_lang.js +59 -0
- package/dist/components/AspectRatio.js +5 -0
- package/dist/components/AspectRatio.vue.d.ts +26 -0
- package/dist/components/AspectRatio.vue_vue_type_script_setup_true_lang.js +27 -0
- package/dist/components/Avatar.js +5 -0
- package/dist/components/Avatar.vue.d.ts +52 -0
- package/dist/components/Avatar.vue_vue_type_script_setup_true_lang.js +67 -0
- package/dist/components/AvatarGroup.js +5 -0
- package/dist/components/AvatarGroup.vue.d.ts +39 -0
- package/dist/components/AvatarGroup.vue_vue_type_script_setup_true_lang.js +45 -0
- package/dist/components/Badge.vue.d.ts +1 -1
- package/dist/components/Banner.vue.d.ts +2 -2
- package/dist/components/BarChart.vue.d.ts +1 -1
- package/dist/components/BarChart.vue_vue_type_script_setup_true_lang.js +14 -14
- package/dist/components/Breadcrumb.vue.d.ts +1 -1
- package/dist/components/Button.vue.d.ts +2 -2
- package/dist/components/ButtonGroup.vue.d.ts +1 -1
- package/dist/components/Card.vue.d.ts +1 -1
- package/dist/components/Collapsible.js +5 -0
- package/dist/components/Collapsible.vue.d.ts +58 -0
- package/dist/components/Collapsible.vue_vue_type_script_setup_true_lang.js +67 -0
- package/dist/components/ColorPicker.js +5 -0
- package/dist/components/ColorPicker.vue.d.ts +49 -0
- package/dist/components/ColorPicker.vue_vue_type_script_setup_true_lang.js +172 -0
- package/dist/components/Combobox.vue.d.ts +40 -13
- package/dist/components/Combobox.vue_vue_type_script_setup_true_lang.js +172 -103
- package/dist/components/CommandPalette.js +5 -0
- package/dist/components/CommandPalette.vue.d.ts +63 -0
- package/dist/components/CommandPalette.vue_vue_type_script_setup_true_lang.js +185 -0
- package/dist/components/Container.js +5 -0
- package/dist/components/Container.vue.d.ts +33 -0
- package/dist/components/Container.vue_vue_type_script_setup_true_lang.js +40 -0
- package/dist/components/ContextMenu.js +5 -0
- package/dist/components/ContextMenu.vue.d.ts +42 -0
- package/dist/components/ContextMenu.vue_vue_type_script_setup_true_lang.js +49 -0
- package/dist/components/DatePicker.vue.d.ts +1 -1
- package/dist/components/DateRangePicker.vue.d.ts +2 -2
- package/dist/components/Dialog.vue.d.ts +1 -1
- package/dist/components/Drawer.vue.d.ts +2 -2
- package/dist/components/EmptyState.vue.d.ts +1 -1
- package/dist/components/FileUpload.vue.d.ts +2 -2
- package/dist/components/Icon.vue.d.ts +6 -0
- package/dist/components/Icon.vue_vue_type_script_setup_true_lang.js +11 -9
- package/dist/components/Input.vue.d.ts +1 -1
- package/dist/components/Input.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/components/Kbd.js +5 -0
- package/dist/components/Kbd.vue.d.ts +46 -0
- package/dist/components/Kbd.vue_vue_type_script_setup_true_lang.js +41 -0
- package/dist/components/LineChart.vue_vue_type_script_setup_true_lang.js +19 -19
- package/dist/components/Menubar.js +5 -0
- package/dist/components/Menubar.vue.d.ts +62 -0
- package/dist/components/Menubar.vue_vue_type_script_setup_true_lang.js +79 -0
- package/dist/components/NavigationMenu.js +5 -0
- package/dist/components/NavigationMenu.vue.d.ts +75 -0
- package/dist/components/NavigationMenu.vue_vue_type_script_setup_true_lang.js +167 -0
- package/dist/components/NumberInput.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/PageHeader.js +5 -0
- package/dist/components/PageHeader.vue.d.ts +52 -0
- package/dist/components/PageHeader.vue_vue_type_script_setup_true_lang.js +59 -0
- package/dist/components/Pagination.vue.d.ts +1 -1
- package/dist/components/PinInput.js +5 -0
- package/dist/components/PinInput.vue.d.ts +65 -0
- package/dist/components/PinInput.vue_vue_type_script_setup_true_lang.js +76 -0
- package/dist/components/Popover.js +5 -0
- package/dist/components/Popover.vue.d.ts +75 -0
- package/dist/components/Popover.vue_vue_type_script_setup_true_lang.js +99 -0
- package/dist/components/Progress.vue.d.ts +20 -1
- package/dist/components/Progress.vue_vue_type_script_setup_true_lang.js +84 -44
- package/dist/components/RadioGroup.vue_vue_type_script_setup_true_lang.js +4 -1
- package/dist/components/ScrollArea.js +5 -0
- package/dist/components/ScrollArea.vue.d.ts +41 -0
- package/dist/components/ScrollArea.vue_vue_type_script_setup_true_lang.js +68 -0
- package/dist/components/ScrollFade.js +5 -0
- package/dist/components/ScrollFade.vue.d.ts +36 -0
- package/dist/components/ScrollFade.vue_vue_type_script_setup_true_lang.js +59 -0
- package/dist/components/Select.vue.d.ts +2 -2
- package/dist/components/Sidebar.js +5 -0
- package/dist/components/Sidebar.vue.d.ts +72 -0
- package/dist/components/Sidebar.vue_vue_type_script_setup_true_lang.js +183 -0
- package/dist/components/SignaturePad.js +5 -0
- package/dist/components/SignaturePad.vue.d.ts +60 -0
- package/dist/components/SignaturePad.vue_vue_type_script_setup_true_lang.js +158 -0
- package/dist/components/Skeleton.vue.d.ts +2 -2
- package/dist/components/Skeleton.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/components/Slider.js +5 -0
- package/dist/components/Slider.vue.d.ts +80 -0
- package/dist/components/Slider.vue_vue_type_script_setup_true_lang.js +115 -0
- package/dist/components/Splitter.js +5 -0
- package/dist/components/Splitter.vue.d.ts +59 -0
- package/dist/components/Splitter.vue_vue_type_script_setup_true_lang.js +69 -0
- package/dist/components/Stat.vue.d.ts +1 -1
- package/dist/components/Switch.vue.d.ts +1 -0
- package/dist/components/Switch.vue_vue_type_script_setup_true_lang.js +7 -3
- package/dist/components/Table.vue.d.ts +7 -1
- package/dist/components/Table.vue_vue_type_script_setup_true_lang.js +73 -58
- package/dist/components/TagsInput.js +5 -0
- package/dist/components/TagsInput.vue.d.ts +71 -0
- package/dist/components/TagsInput.vue_vue_type_script_setup_true_lang.js +119 -0
- package/dist/components/Textarea.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/components/TimeField.js +5 -0
- package/dist/components/TimeField.vue.d.ts +50 -0
- package/dist/components/TimeField.vue_vue_type_script_setup_true_lang.js +85 -0
- package/dist/components/Timeline.js +5 -0
- package/dist/components/Timeline.vue.d.ts +61 -0
- package/dist/components/Timeline.vue_vue_type_script_setup_true_lang.js +60 -0
- package/dist/components/Toaster.vue.d.ts +1 -1
- package/dist/components/Toggle.js +5 -0
- package/dist/components/Toggle.vue.d.ts +42 -0
- package/dist/components/Toggle.vue_vue_type_script_setup_true_lang.js +52 -0
- package/dist/components/ToggleGroup.js +5 -0
- package/dist/components/ToggleGroup.vue.d.ts +64 -0
- package/dist/components/ToggleGroup.vue_vue_type_script_setup_true_lang.js +78 -0
- package/dist/components/Toolbar.js +5 -0
- package/dist/components/Toolbar.vue.d.ts +52 -0
- package/dist/components/Toolbar.vue_vue_type_script_setup_true_lang.js +94 -0
- package/dist/components/Tree.js +5 -0
- package/dist/components/Tree.vue.d.ts +70 -0
- package/dist/components/Tree.vue_vue_type_script_setup_true_lang.js +112 -0
- package/dist/components/index.d.ts +30 -0
- package/dist/components/index.js +146 -86
- package/dist/composables/appearance.js +5 -1
- package/dist/composables/cartesian.d.ts +11 -0
- package/dist/composables/cartesian.js +18 -19
- package/dist/composables/command-palette.d.ts +42 -0
- package/dist/composables/command-palette.js +32 -0
- package/dist/composables/date.d.ts +18 -2
- package/dist/composables/date.js +23 -12
- package/dist/composables/kbd.d.ts +26 -0
- package/dist/composables/kbd.js +161 -0
- package/dist/composables/navigation-menu.d.ts +29 -0
- package/dist/composables/navigation-menu.js +6 -0
- package/dist/composables/scroll-fade.d.ts +35 -0
- package/dist/composables/scroll-fade.js +36 -0
- package/dist/composables/sidebar.d.ts +35 -0
- package/dist/composables/sidebar.js +23 -0
- package/dist/composables/signature.d.ts +22 -0
- package/dist/composables/signature.js +13 -0
- package/dist/index.d.ts +37 -0
- package/dist/index.js +155 -93
- package/dist/theme/accordion.d.ts +68 -0
- package/dist/theme/accordion.js +24 -0
- package/dist/theme/alert.d.ts +0 -3
- package/dist/theme/app-shell.d.ts +77 -0
- package/dist/theme/app-shell.js +35 -0
- package/dist/theme/avatar.d.ts +253 -0
- package/dist/theme/avatar.js +84 -0
- package/dist/theme/banner.d.ts +0 -9
- package/dist/theme/bar-chart.d.ts +0 -16
- package/dist/theme/breadcrumb.d.ts +3 -3
- package/dist/theme/button-group.d.ts +0 -3
- package/dist/theme/button.d.ts +0 -3
- package/dist/theme/card.js +2 -2
- package/dist/theme/chart-legend.d.ts +3 -11
- package/dist/theme/collapsible.d.ts +44 -0
- package/dist/theme/collapsible.js +17 -0
- package/dist/theme/color-picker.d.ts +98 -0
- package/dist/theme/color-picker.js +19 -0
- package/dist/theme/combobox.d.ts +48 -0
- package/dist/theme/combobox.js +23 -3
- package/dist/theme/command-palette.d.ts +122 -0
- package/dist/theme/command-palette.js +22 -0
- package/dist/theme/container.d.ts +101 -0
- package/dist/theme/container.js +26 -0
- package/dist/theme/date-picker.d.ts +12 -0
- package/dist/theme/date-picker.js +1 -1
- package/dist/theme/dropdown-menu.d.ts +0 -9
- package/dist/theme/file-upload.d.ts +0 -3
- package/dist/theme/form.d.ts +12 -12
- package/dist/theme/index.d.ts +25 -0
- package/dist/theme/kbd.d.ts +71 -0
- package/dist/theme/kbd.js +29 -0
- package/dist/theme/line-chart.d.ts +0 -9
- package/dist/theme/menubar.d.ts +29 -0
- package/dist/theme/menubar.js +11 -0
- package/dist/theme/navigation-menu.d.ts +161 -0
- package/dist/theme/navigation-menu.js +43 -0
- package/dist/theme/number-input.d.ts +0 -3
- package/dist/theme/page-header.d.ts +47 -0
- package/dist/theme/page-header.js +17 -0
- package/dist/theme/pagination.d.ts +0 -3
- package/dist/theme/pin-input.d.ts +86 -0
- package/dist/theme/pin-input.js +32 -0
- package/dist/theme/popover.d.ts +119 -0
- package/dist/theme/popover.js +31 -0
- package/dist/theme/presets.d.ts +0 -2
- package/dist/theme/progress.d.ts +93 -0
- package/dist/theme/progress.js +37 -7
- package/dist/theme/radio-group.d.ts +24 -0
- package/dist/theme/radio-group.js +23 -14
- package/dist/theme/scroll-area.d.ts +65 -0
- package/dist/theme/scroll-area.js +57 -0
- package/dist/theme/scroll-fade.d.ts +35 -0
- package/dist/theme/scroll-fade.js +12 -0
- package/dist/theme/sidebar.d.ts +167 -0
- package/dist/theme/sidebar.js +43 -0
- package/dist/theme/signature-pad.d.ts +50 -0
- package/dist/theme/signature-pad.js +17 -0
- package/dist/theme/slider.d.ts +128 -0
- package/dist/theme/slider.js +49 -0
- package/dist/theme/sparkline.d.ts +0 -6
- package/dist/theme/splitter.d.ts +59 -0
- package/dist/theme/splitter.js +25 -0
- package/dist/theme/stat.d.ts +0 -3
- package/dist/theme/stepper.js +2 -2
- package/dist/theme/switch.d.ts +53 -29
- package/dist/theme/switch.js +33 -8
- package/dist/theme/table.d.ts +51 -3
- package/dist/theme/table.js +8 -3
- package/dist/theme/tabs.d.ts +0 -3
- package/dist/theme/tags-input.d.ts +110 -0
- package/dist/theme/tags-input.js +42 -0
- package/dist/theme/time-field.d.ts +68 -0
- package/dist/theme/time-field.js +21 -0
- package/dist/theme/timeline.d.ts +182 -0
- package/dist/theme/timeline.js +83 -0
- package/dist/theme/toggle.d.ts +145 -0
- package/dist/theme/toggle.js +84 -0
- package/dist/theme/toolbar.d.ts +56 -0
- package/dist/theme/toolbar.js +21 -0
- package/dist/theme/tree.d.ts +68 -0
- package/dist/theme/tree.js +28 -0
- package/package.json +2 -2
- package/theme.css +221 -0
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
export declare const timelineTheme: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
size: {
|
|
3
|
+
sm: {
|
|
4
|
+
marker: string;
|
|
5
|
+
content: string;
|
|
6
|
+
title: string;
|
|
7
|
+
};
|
|
8
|
+
md: {
|
|
9
|
+
marker: string;
|
|
10
|
+
content: string;
|
|
11
|
+
title: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
variant: {
|
|
15
|
+
neutral: {
|
|
16
|
+
marker: string;
|
|
17
|
+
};
|
|
18
|
+
primary: {
|
|
19
|
+
marker: string;
|
|
20
|
+
};
|
|
21
|
+
success: {
|
|
22
|
+
marker: string;
|
|
23
|
+
};
|
|
24
|
+
warning: {
|
|
25
|
+
marker: string;
|
|
26
|
+
};
|
|
27
|
+
danger: {
|
|
28
|
+
marker: string;
|
|
29
|
+
};
|
|
30
|
+
info: {
|
|
31
|
+
marker: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* An icon needs a real box to sit in, so the marker grows from a dot to a
|
|
36
|
+
* ringed circle and the fill moves to a tint.
|
|
37
|
+
*/
|
|
38
|
+
withIcon: {
|
|
39
|
+
true: {
|
|
40
|
+
marker: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
/** The last item has nothing to connect to, so its spine is dropped. */
|
|
44
|
+
last: {
|
|
45
|
+
true: {
|
|
46
|
+
content: string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
}, {
|
|
50
|
+
root: string;
|
|
51
|
+
item: string;
|
|
52
|
+
rail: string;
|
|
53
|
+
marker: string;
|
|
54
|
+
line: string;
|
|
55
|
+
content: string;
|
|
56
|
+
header: string;
|
|
57
|
+
title: string;
|
|
58
|
+
/** Timestamps are numeric, so they line up when they are tabular. */
|
|
59
|
+
time: string;
|
|
60
|
+
description: string;
|
|
61
|
+
}, undefined, {
|
|
62
|
+
size: {
|
|
63
|
+
sm: {
|
|
64
|
+
marker: string;
|
|
65
|
+
content: string;
|
|
66
|
+
title: string;
|
|
67
|
+
};
|
|
68
|
+
md: {
|
|
69
|
+
marker: string;
|
|
70
|
+
content: string;
|
|
71
|
+
title: string;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
variant: {
|
|
75
|
+
neutral: {
|
|
76
|
+
marker: string;
|
|
77
|
+
};
|
|
78
|
+
primary: {
|
|
79
|
+
marker: string;
|
|
80
|
+
};
|
|
81
|
+
success: {
|
|
82
|
+
marker: string;
|
|
83
|
+
};
|
|
84
|
+
warning: {
|
|
85
|
+
marker: string;
|
|
86
|
+
};
|
|
87
|
+
danger: {
|
|
88
|
+
marker: string;
|
|
89
|
+
};
|
|
90
|
+
info: {
|
|
91
|
+
marker: string;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* An icon needs a real box to sit in, so the marker grows from a dot to a
|
|
96
|
+
* ringed circle and the fill moves to a tint.
|
|
97
|
+
*/
|
|
98
|
+
withIcon: {
|
|
99
|
+
true: {
|
|
100
|
+
marker: string;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
/** The last item has nothing to connect to, so its spine is dropped. */
|
|
104
|
+
last: {
|
|
105
|
+
true: {
|
|
106
|
+
content: string;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
}, {
|
|
110
|
+
root: string;
|
|
111
|
+
item: string;
|
|
112
|
+
rail: string;
|
|
113
|
+
marker: string;
|
|
114
|
+
line: string;
|
|
115
|
+
content: string;
|
|
116
|
+
header: string;
|
|
117
|
+
title: string;
|
|
118
|
+
/** Timestamps are numeric, so they line up when they are tabular. */
|
|
119
|
+
time: string;
|
|
120
|
+
description: string;
|
|
121
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
122
|
+
size: {
|
|
123
|
+
sm: {
|
|
124
|
+
marker: string;
|
|
125
|
+
content: string;
|
|
126
|
+
title: string;
|
|
127
|
+
};
|
|
128
|
+
md: {
|
|
129
|
+
marker: string;
|
|
130
|
+
content: string;
|
|
131
|
+
title: string;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
variant: {
|
|
135
|
+
neutral: {
|
|
136
|
+
marker: string;
|
|
137
|
+
};
|
|
138
|
+
primary: {
|
|
139
|
+
marker: string;
|
|
140
|
+
};
|
|
141
|
+
success: {
|
|
142
|
+
marker: string;
|
|
143
|
+
};
|
|
144
|
+
warning: {
|
|
145
|
+
marker: string;
|
|
146
|
+
};
|
|
147
|
+
danger: {
|
|
148
|
+
marker: string;
|
|
149
|
+
};
|
|
150
|
+
info: {
|
|
151
|
+
marker: string;
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
/**
|
|
155
|
+
* An icon needs a real box to sit in, so the marker grows from a dot to a
|
|
156
|
+
* ringed circle and the fill moves to a tint.
|
|
157
|
+
*/
|
|
158
|
+
withIcon: {
|
|
159
|
+
true: {
|
|
160
|
+
marker: string;
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
/** The last item has nothing to connect to, so its spine is dropped. */
|
|
164
|
+
last: {
|
|
165
|
+
true: {
|
|
166
|
+
content: string;
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
}, {
|
|
170
|
+
root: string;
|
|
171
|
+
item: string;
|
|
172
|
+
rail: string;
|
|
173
|
+
marker: string;
|
|
174
|
+
line: string;
|
|
175
|
+
content: string;
|
|
176
|
+
header: string;
|
|
177
|
+
title: string;
|
|
178
|
+
/** Timestamps are numeric, so they line up when they are tabular. */
|
|
179
|
+
time: string;
|
|
180
|
+
description: string;
|
|
181
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
182
|
+
export type TimelineSlots = keyof ReturnType<typeof timelineTheme>;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { tv as e } from "tailwind-variants";
|
|
2
|
+
//#region src/theme/timeline.ts
|
|
3
|
+
var t = e({
|
|
4
|
+
slots: {
|
|
5
|
+
root: "flex flex-col",
|
|
6
|
+
item: "relative grid grid-cols-[auto_1fr] gap-x-3",
|
|
7
|
+
rail: "flex flex-col items-center",
|
|
8
|
+
marker: "z-10 flex shrink-0 items-center justify-center rounded-full",
|
|
9
|
+
line: "w-px flex-1 bg-border",
|
|
10
|
+
content: "min-w-0 pb-6",
|
|
11
|
+
header: "flex flex-wrap items-baseline gap-x-2",
|
|
12
|
+
title: "font-medium text-foreground",
|
|
13
|
+
time: "text-xs text-muted-foreground tabular-nums",
|
|
14
|
+
description: "mt-1 text-sm text-muted-foreground"
|
|
15
|
+
},
|
|
16
|
+
variants: {
|
|
17
|
+
size: {
|
|
18
|
+
sm: {
|
|
19
|
+
marker: "size-2.5",
|
|
20
|
+
content: "pb-4 text-sm",
|
|
21
|
+
title: "text-sm"
|
|
22
|
+
},
|
|
23
|
+
md: {
|
|
24
|
+
marker: "size-3",
|
|
25
|
+
content: "pb-6 text-sm",
|
|
26
|
+
title: "text-sm"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
variant: {
|
|
30
|
+
neutral: { marker: "bg-muted-foreground" },
|
|
31
|
+
primary: { marker: "bg-primary" },
|
|
32
|
+
success: { marker: "bg-success" },
|
|
33
|
+
warning: { marker: "bg-warning" },
|
|
34
|
+
danger: { marker: "bg-danger" },
|
|
35
|
+
info: { marker: "bg-info" }
|
|
36
|
+
},
|
|
37
|
+
withIcon: { true: { marker: "border border-border bg-background text-muted-foreground" } },
|
|
38
|
+
last: { true: { content: "pb-0" } }
|
|
39
|
+
},
|
|
40
|
+
compoundVariants: [
|
|
41
|
+
{
|
|
42
|
+
withIcon: !0,
|
|
43
|
+
size: "sm",
|
|
44
|
+
class: { marker: "size-6 [&_svg]:size-3" }
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
withIcon: !0,
|
|
48
|
+
size: "md",
|
|
49
|
+
class: { marker: "size-7 [&_svg]:size-3.5" }
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
withIcon: !0,
|
|
53
|
+
variant: "primary",
|
|
54
|
+
class: { marker: "border-primary/30 bg-primary/10 text-primary" }
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
withIcon: !0,
|
|
58
|
+
variant: "success",
|
|
59
|
+
class: { marker: "border-success/30 bg-success/10 text-success" }
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
withIcon: !0,
|
|
63
|
+
variant: "warning",
|
|
64
|
+
class: { marker: "border-warning/30 bg-warning/10 text-warning" }
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
withIcon: !0,
|
|
68
|
+
variant: "danger",
|
|
69
|
+
class: { marker: "border-danger/30 bg-danger/10 text-danger" }
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
withIcon: !0,
|
|
73
|
+
variant: "info",
|
|
74
|
+
class: { marker: "border-info/30 bg-info/10 text-info" }
|
|
75
|
+
}
|
|
76
|
+
],
|
|
77
|
+
defaultVariants: {
|
|
78
|
+
size: "md",
|
|
79
|
+
variant: "neutral"
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
//#endregion
|
|
83
|
+
export { t as timelineTheme };
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
export declare const toggleTheme: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
size: {
|
|
3
|
+
xs: string;
|
|
4
|
+
sm: string;
|
|
5
|
+
md: string;
|
|
6
|
+
lg: string;
|
|
7
|
+
xl: string;
|
|
8
|
+
};
|
|
9
|
+
square: {
|
|
10
|
+
true: string;
|
|
11
|
+
false: string;
|
|
12
|
+
};
|
|
13
|
+
block: {
|
|
14
|
+
true: string;
|
|
15
|
+
};
|
|
16
|
+
}, undefined, "inline-flex shrink-0 items-center justify-center gap-2 rounded-xl border border-border bg-input font-medium whitespace-nowrap text-foreground transition-[color,background-color,border-color,box-shadow,opacity] outline-none hover:bg-accent hover:text-accent-foreground focus-visible:ring-2 focus-visible:ring-primary/50 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0", {
|
|
17
|
+
size: {
|
|
18
|
+
xs: string;
|
|
19
|
+
sm: string;
|
|
20
|
+
md: string;
|
|
21
|
+
lg: string;
|
|
22
|
+
xl: string;
|
|
23
|
+
};
|
|
24
|
+
square: {
|
|
25
|
+
true: string;
|
|
26
|
+
false: string;
|
|
27
|
+
};
|
|
28
|
+
block: {
|
|
29
|
+
true: string;
|
|
30
|
+
};
|
|
31
|
+
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
32
|
+
size: {
|
|
33
|
+
xs: string;
|
|
34
|
+
sm: string;
|
|
35
|
+
md: string;
|
|
36
|
+
lg: string;
|
|
37
|
+
xl: string;
|
|
38
|
+
};
|
|
39
|
+
square: {
|
|
40
|
+
true: string;
|
|
41
|
+
false: string;
|
|
42
|
+
};
|
|
43
|
+
block: {
|
|
44
|
+
true: string;
|
|
45
|
+
};
|
|
46
|
+
}, undefined, "inline-flex shrink-0 items-center justify-center gap-2 rounded-xl border border-border bg-input font-medium whitespace-nowrap text-foreground transition-[color,background-color,border-color,box-shadow,opacity] outline-none hover:bg-accent hover:text-accent-foreground focus-visible:ring-2 focus-visible:ring-primary/50 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0", unknown, unknown, undefined>>;
|
|
47
|
+
export type ToggleVariants = Parameters<typeof toggleTheme>[0];
|
|
48
|
+
/**
|
|
49
|
+
* The group is the container; each item is a {@link toggleTheme} button. With
|
|
50
|
+
* a single toggle look, the group's variant only decides how the items are
|
|
51
|
+
* spaced — whether they touch or stand apart.
|
|
52
|
+
*/
|
|
53
|
+
export declare const toggleGroupTheme: import("tailwind-variants").TVReturnType<{
|
|
54
|
+
variant: {
|
|
55
|
+
/**
|
|
56
|
+
* Squared off where they meet and pulled together by a pixel, so
|
|
57
|
+
* adjacent borders collapse into one — the same trick `IButtonGroup`
|
|
58
|
+
* uses. The raised z-index keeps a focus ring from being clipped by
|
|
59
|
+
* the neighbour that overlaps it.
|
|
60
|
+
*/
|
|
61
|
+
joined: {
|
|
62
|
+
item: string;
|
|
63
|
+
};
|
|
64
|
+
plain: {
|
|
65
|
+
root: string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
orientation: {
|
|
69
|
+
horizontal: {};
|
|
70
|
+
vertical: {
|
|
71
|
+
root: string;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
block: {
|
|
75
|
+
true: {
|
|
76
|
+
root: string;
|
|
77
|
+
item: string;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
}, {
|
|
81
|
+
root: string;
|
|
82
|
+
item: string;
|
|
83
|
+
}, undefined, {
|
|
84
|
+
variant: {
|
|
85
|
+
/**
|
|
86
|
+
* Squared off where they meet and pulled together by a pixel, so
|
|
87
|
+
* adjacent borders collapse into one — the same trick `IButtonGroup`
|
|
88
|
+
* uses. The raised z-index keeps a focus ring from being clipped by
|
|
89
|
+
* the neighbour that overlaps it.
|
|
90
|
+
*/
|
|
91
|
+
joined: {
|
|
92
|
+
item: string;
|
|
93
|
+
};
|
|
94
|
+
plain: {
|
|
95
|
+
root: string;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
orientation: {
|
|
99
|
+
horizontal: {};
|
|
100
|
+
vertical: {
|
|
101
|
+
root: string;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
block: {
|
|
105
|
+
true: {
|
|
106
|
+
root: string;
|
|
107
|
+
item: string;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
}, {
|
|
111
|
+
root: string;
|
|
112
|
+
item: string;
|
|
113
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
114
|
+
variant: {
|
|
115
|
+
/**
|
|
116
|
+
* Squared off where they meet and pulled together by a pixel, so
|
|
117
|
+
* adjacent borders collapse into one — the same trick `IButtonGroup`
|
|
118
|
+
* uses. The raised z-index keeps a focus ring from being clipped by
|
|
119
|
+
* the neighbour that overlaps it.
|
|
120
|
+
*/
|
|
121
|
+
joined: {
|
|
122
|
+
item: string;
|
|
123
|
+
};
|
|
124
|
+
plain: {
|
|
125
|
+
root: string;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
orientation: {
|
|
129
|
+
horizontal: {};
|
|
130
|
+
vertical: {
|
|
131
|
+
root: string;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
block: {
|
|
135
|
+
true: {
|
|
136
|
+
root: string;
|
|
137
|
+
item: string;
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
}, {
|
|
141
|
+
root: string;
|
|
142
|
+
item: string;
|
|
143
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
144
|
+
export type ToggleGroupSlots = keyof ReturnType<typeof toggleGroupTheme>;
|
|
145
|
+
export type ToggleGroupVariant = 'joined' | 'plain';
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { tv as e } from "tailwind-variants";
|
|
2
|
+
//#region src/theme/toggle.ts
|
|
3
|
+
var t = e({
|
|
4
|
+
base: "inline-flex shrink-0 items-center justify-center gap-2 rounded-xl border border-border bg-input font-medium whitespace-nowrap text-foreground transition-[color,background-color,border-color,box-shadow,opacity] outline-none hover:bg-accent hover:text-accent-foreground focus-visible:ring-2 focus-visible:ring-primary/50 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
5
|
+
variants: {
|
|
6
|
+
size: {
|
|
7
|
+
xs: "h-7 gap-1.5 px-2 text-xs has-[[data-icon=inline-end]]:pr-1.5 has-[[data-icon=inline-start]]:pl-1.5 [&_svg]:size-3.5",
|
|
8
|
+
sm: "h-8 px-3 text-sm has-[[data-icon=inline-end]]:pr-2 has-[[data-icon=inline-start]]:pl-2 [&_svg]:size-4",
|
|
9
|
+
md: "h-9 px-4 text-sm has-[[data-icon=inline-end]]:pr-3 has-[[data-icon=inline-start]]:pl-3 [&_svg]:size-4",
|
|
10
|
+
lg: "h-10 px-5 text-base has-[[data-icon=inline-end]]:pr-4 has-[[data-icon=inline-start]]:pl-4 [&_svg]:size-5",
|
|
11
|
+
xl: "h-12 px-6 text-base has-[[data-icon=inline-end]]:pr-5 has-[[data-icon=inline-start]]:pl-5 [&_svg]:size-5"
|
|
12
|
+
},
|
|
13
|
+
square: {
|
|
14
|
+
true: "",
|
|
15
|
+
false: ""
|
|
16
|
+
},
|
|
17
|
+
block: { true: "w-full" }
|
|
18
|
+
},
|
|
19
|
+
compoundVariants: [
|
|
20
|
+
{
|
|
21
|
+
square: !0,
|
|
22
|
+
size: "xs",
|
|
23
|
+
class: "w-7 px-0 has-[[data-icon]]:px-0"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
square: !0,
|
|
27
|
+
size: "sm",
|
|
28
|
+
class: "w-8 px-0 has-[[data-icon]]:px-0"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
square: !0,
|
|
32
|
+
size: "md",
|
|
33
|
+
class: "w-9 px-0 has-[[data-icon]]:px-0"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
square: !0,
|
|
37
|
+
size: "lg",
|
|
38
|
+
class: "w-10 px-0 has-[[data-icon]]:px-0"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
square: !0,
|
|
42
|
+
size: "xl",
|
|
43
|
+
class: "w-12 px-0 has-[[data-icon]]:px-0"
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
defaultVariants: {
|
|
47
|
+
size: "md",
|
|
48
|
+
square: !1
|
|
49
|
+
}
|
|
50
|
+
}), n = e({
|
|
51
|
+
slots: {
|
|
52
|
+
root: "isolate inline-flex items-center",
|
|
53
|
+
item: ""
|
|
54
|
+
},
|
|
55
|
+
variants: {
|
|
56
|
+
variant: {
|
|
57
|
+
joined: { item: "relative hover:z-10 focus-visible:z-10" },
|
|
58
|
+
plain: { root: "gap-1" }
|
|
59
|
+
},
|
|
60
|
+
orientation: {
|
|
61
|
+
horizontal: {},
|
|
62
|
+
vertical: { root: "flex-col items-stretch" }
|
|
63
|
+
},
|
|
64
|
+
block: { true: {
|
|
65
|
+
root: "flex w-full",
|
|
66
|
+
item: "flex-1"
|
|
67
|
+
} }
|
|
68
|
+
},
|
|
69
|
+
compoundVariants: [{
|
|
70
|
+
variant: "joined",
|
|
71
|
+
orientation: "horizontal",
|
|
72
|
+
class: { item: "[&:not(:first-child)]:-ml-px [&:not(:first-child)]:rounded-l-none [&:not(:last-child)]:rounded-r-none" }
|
|
73
|
+
}, {
|
|
74
|
+
variant: "joined",
|
|
75
|
+
orientation: "vertical",
|
|
76
|
+
class: { item: "[&:not(:first-child)]:-mt-px [&:not(:first-child)]:rounded-t-none [&:not(:last-child)]:rounded-b-none" }
|
|
77
|
+
}],
|
|
78
|
+
defaultVariants: {
|
|
79
|
+
variant: "joined",
|
|
80
|
+
orientation: "horizontal"
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
//#endregion
|
|
84
|
+
export { n as toggleGroupTheme, t as toggleTheme };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
export declare const toolbarTheme: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
orientation: {
|
|
3
|
+
horizontal: {
|
|
4
|
+
separator: string;
|
|
5
|
+
};
|
|
6
|
+
vertical: {
|
|
7
|
+
root: string;
|
|
8
|
+
separator: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
bare: {
|
|
12
|
+
true: {
|
|
13
|
+
root: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
}, {
|
|
17
|
+
root: string;
|
|
18
|
+
separator: string;
|
|
19
|
+
}, undefined, {
|
|
20
|
+
orientation: {
|
|
21
|
+
horizontal: {
|
|
22
|
+
separator: string;
|
|
23
|
+
};
|
|
24
|
+
vertical: {
|
|
25
|
+
root: string;
|
|
26
|
+
separator: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
bare: {
|
|
30
|
+
true: {
|
|
31
|
+
root: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
}, {
|
|
35
|
+
root: string;
|
|
36
|
+
separator: string;
|
|
37
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
38
|
+
orientation: {
|
|
39
|
+
horizontal: {
|
|
40
|
+
separator: string;
|
|
41
|
+
};
|
|
42
|
+
vertical: {
|
|
43
|
+
root: string;
|
|
44
|
+
separator: string;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
bare: {
|
|
48
|
+
true: {
|
|
49
|
+
root: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
}, {
|
|
53
|
+
root: string;
|
|
54
|
+
separator: string;
|
|
55
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
56
|
+
export type ToolbarSlots = keyof ReturnType<typeof toolbarTheme>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { tv as e } from "tailwind-variants";
|
|
2
|
+
//#region src/theme/toolbar.ts
|
|
3
|
+
var t = e({
|
|
4
|
+
slots: {
|
|
5
|
+
root: "flex items-center gap-1 rounded-xl border border-border bg-background p-1",
|
|
6
|
+
separator: "shrink-0 bg-border"
|
|
7
|
+
},
|
|
8
|
+
variants: {
|
|
9
|
+
orientation: {
|
|
10
|
+
horizontal: { separator: "mx-1 h-5 w-px" },
|
|
11
|
+
vertical: {
|
|
12
|
+
root: "flex-col items-stretch",
|
|
13
|
+
separator: "my-1 h-px w-full"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
bare: { true: { root: "rounded-none border-0 bg-transparent p-0" } }
|
|
17
|
+
},
|
|
18
|
+
defaultVariants: { orientation: "horizontal" }
|
|
19
|
+
});
|
|
20
|
+
//#endregion
|
|
21
|
+
export { t as toolbarTheme };
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
export declare const treeTheme: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
size: {
|
|
3
|
+
sm: {
|
|
4
|
+
item: string;
|
|
5
|
+
expander: string;
|
|
6
|
+
spacer: string;
|
|
7
|
+
};
|
|
8
|
+
md: {
|
|
9
|
+
item: string;
|
|
10
|
+
expander: string;
|
|
11
|
+
spacer: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
}, {
|
|
15
|
+
root: string;
|
|
16
|
+
item: string;
|
|
17
|
+
expander: string;
|
|
18
|
+
/** Keeps a leaf's label aligned with its siblings that do have a chevron. */
|
|
19
|
+
spacer: string;
|
|
20
|
+
icon: string;
|
|
21
|
+
label: string;
|
|
22
|
+
count: string;
|
|
23
|
+
}, undefined, {
|
|
24
|
+
size: {
|
|
25
|
+
sm: {
|
|
26
|
+
item: string;
|
|
27
|
+
expander: string;
|
|
28
|
+
spacer: string;
|
|
29
|
+
};
|
|
30
|
+
md: {
|
|
31
|
+
item: string;
|
|
32
|
+
expander: string;
|
|
33
|
+
spacer: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
}, {
|
|
37
|
+
root: string;
|
|
38
|
+
item: string;
|
|
39
|
+
expander: string;
|
|
40
|
+
/** Keeps a leaf's label aligned with its siblings that do have a chevron. */
|
|
41
|
+
spacer: string;
|
|
42
|
+
icon: string;
|
|
43
|
+
label: string;
|
|
44
|
+
count: string;
|
|
45
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
46
|
+
size: {
|
|
47
|
+
sm: {
|
|
48
|
+
item: string;
|
|
49
|
+
expander: string;
|
|
50
|
+
spacer: string;
|
|
51
|
+
};
|
|
52
|
+
md: {
|
|
53
|
+
item: string;
|
|
54
|
+
expander: string;
|
|
55
|
+
spacer: string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
}, {
|
|
59
|
+
root: string;
|
|
60
|
+
item: string;
|
|
61
|
+
expander: string;
|
|
62
|
+
/** Keeps a leaf's label aligned with its siblings that do have a chevron. */
|
|
63
|
+
spacer: string;
|
|
64
|
+
icon: string;
|
|
65
|
+
label: string;
|
|
66
|
+
count: string;
|
|
67
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
68
|
+
export type TreeSlots = keyof ReturnType<typeof treeTheme>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { tv as e } from "tailwind-variants";
|
|
2
|
+
//#region src/theme/tree.ts
|
|
3
|
+
var t = e({
|
|
4
|
+
slots: {
|
|
5
|
+
root: "flex w-full list-none flex-col gap-0.5 outline-none select-none",
|
|
6
|
+
item: "flex cursor-pointer items-center gap-1.5 rounded-lg py-1.5 pr-2 text-sm text-foreground outline-none hover:bg-accent/60 focus-visible:ring-2 focus-visible:ring-primary/50 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[selected]:bg-accent data-[selected]:text-accent-foreground [&_svg]:size-4 [&_svg]:shrink-0",
|
|
7
|
+
expander: "shrink-0 text-muted-foreground transition-transform duration-200 data-[expanded]:rotate-90",
|
|
8
|
+
spacer: "shrink-0",
|
|
9
|
+
icon: "shrink-0 text-muted-foreground",
|
|
10
|
+
label: "truncate",
|
|
11
|
+
count: "ml-auto shrink-0 pr-1 pl-2 text-xs text-muted-foreground tabular-nums"
|
|
12
|
+
},
|
|
13
|
+
variants: { size: {
|
|
14
|
+
sm: {
|
|
15
|
+
item: "py-1 text-xs",
|
|
16
|
+
expander: "size-3.5",
|
|
17
|
+
spacer: "size-3.5"
|
|
18
|
+
},
|
|
19
|
+
md: {
|
|
20
|
+
item: "py-1.5 text-sm",
|
|
21
|
+
expander: "size-4",
|
|
22
|
+
spacer: "size-4"
|
|
23
|
+
}
|
|
24
|
+
} },
|
|
25
|
+
defaultVariants: { size: "md" }
|
|
26
|
+
});
|
|
27
|
+
//#endregion
|
|
28
|
+
export { t as treeTheme };
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "iryx-ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.14.0",
|
|
5
5
|
"description": "A Vue 3 component library built on Reka UI and Tailwind CSS v4.",
|
|
6
6
|
"author": "therok1",
|
|
7
7
|
"license": "MIT",
|
|
8
|
-
"homepage": "https://
|
|
8
|
+
"homepage": "https://iryx-ui.com",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
11
|
"url": "git+https://github.com/therok1/iryx-ui.git"
|