@locusgraph/components 0.2.0 → 0.2.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/dist/action/button-group.js +45 -17
- package/dist/action/button.js +44 -27
- package/dist/action/toggle-group.js +176 -12
- package/dist/action/toggle.js +70 -17
- package/dist/display/avatar.js +118 -7
- package/dist/display/badge.js +33 -20
- package/dist/display/chart/chart-container.js +205 -45
- package/dist/display/chart/chart-legend.js +79 -14
- package/dist/display/chart/chart-tooltip.js +211 -40
- package/dist/display/chat/attachment/attachment-parts.js +56 -13
- package/dist/display/chat/attachment/attachment.js +70 -28
- package/dist/display/chat/bubble.js +80 -37
- package/dist/display/chat/marker.js +44 -15
- package/dist/display/chat/message-scroller.js +276 -14
- package/dist/display/chat/message.js +58 -13
- package/dist/display/content/item.js +134 -47
- package/dist/display/content/kbd.js +19 -5
- package/dist/display/media/aspect-ratio.js +27 -3
- package/dist/display/media/carousel-controls.js +162 -11
- package/dist/display/media/carousel.js +325 -65
- package/dist/display/rule-grid/rule-grid.js +86 -29
- package/dist/display/separator.js +56 -3
- package/dist/display/skeletons/layouts/skeleton-rule-grid.js +30 -6
- package/dist/display/skeletons/layouts/skeleton-table.js +44 -6
- package/dist/display/skeletons/shapes/skeleton-avatar.js +31 -13
- package/dist/display/skeletons/shapes/skeleton-button.js +31 -13
- package/dist/display/skeletons/shapes/skeleton-text.js +25 -7
- package/dist/display/skeletons/skeleton-parts.js +22 -6
- package/dist/display/status/alert.js +44 -18
- package/dist/display/status/empty.js +69 -22
- package/dist/display/status/progress.js +116 -16
- package/dist/display/status/skeleton.js +10 -3
- package/dist/display/status/spinner.js +11 -3
- package/dist/display/table.js +77 -17
- package/dist/feedback/toaster.js +98 -21
- package/dist/form/advanced/calendar-day-button.js +89 -12
- package/dist/form/advanced/calendar.js +349 -56
- package/dist/form/advanced/combobox/combobox-chips.js +151 -8
- package/dist/form/advanced/combobox/combobox-items.js +239 -14
- package/dist/form/advanced/combobox/combobox.js +386 -13
- package/dist/form/advanced/input-otp.js +201 -11
- package/dist/form/choice/checkbox.js +58 -3
- package/dist/form/choice/radio-group.js +94 -5
- package/dist/form/choice/select.js +479 -25
- package/dist/form/choice/slider.js +118 -4
- package/dist/form/choice/switch.js +53 -3
- package/dist/form/field/field-error.js +34 -14
- package/dist/form/field/field-separator.js +19 -3
- package/dist/form/field/field-set.js +21 -5
- package/dist/form/field/field-text.js +28 -7
- package/dist/form/field/field.js +43 -25
- package/dist/form/hook-form/form.js +338 -40
- package/dist/form/input-group.js +297 -47
- package/dist/form/input.js +13 -3
- package/dist/form/label.js +42 -3
- package/dist/form/native-select.js +39 -7
- package/dist/form/textarea.js +11 -3
- package/dist/layout/accordion.js +165 -8
- package/dist/layout/collapsible.js +75 -7
- package/dist/layout/resizable.js +122 -7
- package/dist/layout/scroll/direction.js +25 -3
- package/dist/layout/scroll/scroll-area.js +138 -5
- package/dist/layout/sidebar/sidebar-context.js +184 -51
- package/dist/layout/sidebar/sidebar-menu-sub.js +219 -14
- package/dist/layout/sidebar/sidebar-menu.js +319 -38
- package/dist/layout/sidebar/sidebar-sections.js +369 -22
- package/dist/layout/sidebar/sidebar.js +384 -28
- package/dist/layout/tabs.js +183 -18
- package/dist/layout/use-mobile.js +11 -11
- package/dist/navigation/breadcrumb.js +82 -17
- package/dist/navigation/menubar/menubar-items.js +322 -16
- package/dist/navigation/menubar/menubar-sub.js +125 -7
- package/dist/navigation/menubar/menubar.js +213 -13
- package/dist/navigation/navigation-menu.js +90 -18
- package/dist/navigation/pagination.js +91 -20
- package/dist/overlay/alert-dialog.js +485 -26
- package/dist/overlay/context-menu/context-menu-items.js +322 -16
- package/dist/overlay/context-menu/context-menu-sub.js +125 -7
- package/dist/overlay/context-menu/context-menu.js +140 -11
- package/dist/overlay/dialog.js +405 -24
- package/dist/overlay/floating/command.js +423 -20
- package/dist/overlay/floating/drawer.js +354 -22
- package/dist/overlay/floating/hover-card.js +107 -7
- package/dist/overlay/menu/dropdown-menu-choice.js +149 -7
- package/dist/overlay/menu/dropdown-menu-item.js +174 -9
- package/dist/overlay/menu/dropdown-menu-sub.js +124 -7
- package/dist/overlay/menu/dropdown-menu.js +147 -12
- package/dist/overlay/popover.js +106 -7
- package/dist/overlay/sheet.js +379 -26
- package/dist/overlay/tooltip.js +145 -9
- package/dist/shell/app-header.js +29 -5
- package/dist/shell/app-shell.js +19 -3
- package/dist/shell/breadcrumbs.js +46 -14
- package/dist/shell/docs/docs-header.js +210 -10
- package/dist/shell/docs/docs-shell.js +36 -3
- package/dist/shell/docs/docs-sidebar.js +41 -7
- package/dist/shell/docs/on-this-page.js +78 -7
- package/dist/shell/docs/use-active-section.js +44 -42
- package/dist/shell/navigation/app-sidebar.js +66 -6
- package/dist/shell/navigation/nav-group.js +53 -11
- package/dist/shell/theme-toggle.js +51 -4
- package/package.json +2 -2
|
@@ -1,21 +1,211 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
3
4
|
import { Subtract as MinusIcon } from "@carbon/icons-react";
|
|
4
5
|
import { cn } from "cn";
|
|
5
6
|
import { OTPInput, OTPInputContext } from "input-otp";
|
|
6
7
|
import * as React from "react";
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
function InputOTP(t0) {
|
|
10
|
+
const $ = _c(12);
|
|
11
|
+
let className;
|
|
12
|
+
let containerClassName;
|
|
13
|
+
let props;
|
|
14
|
+
if ($[0] !== t0) {
|
|
15
|
+
({
|
|
16
|
+
className,
|
|
17
|
+
containerClassName,
|
|
18
|
+
...props
|
|
19
|
+
} = t0);
|
|
20
|
+
$[0] = t0;
|
|
21
|
+
$[1] = className;
|
|
22
|
+
$[2] = containerClassName;
|
|
23
|
+
$[3] = props;
|
|
24
|
+
} else {
|
|
25
|
+
className = $[1];
|
|
26
|
+
containerClassName = $[2];
|
|
27
|
+
props = $[3];
|
|
28
|
+
}
|
|
29
|
+
let t1;
|
|
30
|
+
if ($[4] !== containerClassName) {
|
|
31
|
+
t1 = cn("flex items-center gap-2 has-disabled:opacity-50", containerClassName);
|
|
32
|
+
$[4] = containerClassName;
|
|
33
|
+
$[5] = t1;
|
|
34
|
+
} else {
|
|
35
|
+
t1 = $[5];
|
|
36
|
+
}
|
|
37
|
+
let t2;
|
|
38
|
+
if ($[6] !== className) {
|
|
39
|
+
t2 = cn("disabled:cursor-not-allowed", className);
|
|
40
|
+
$[6] = className;
|
|
41
|
+
$[7] = t2;
|
|
42
|
+
} else {
|
|
43
|
+
t2 = $[7];
|
|
44
|
+
}
|
|
45
|
+
let t3;
|
|
46
|
+
if ($[8] !== props || $[9] !== t1 || $[10] !== t2) {
|
|
47
|
+
t3 = /*#__PURE__*/_jsx(OTPInput, {
|
|
48
|
+
"data-slot": "input-otp",
|
|
49
|
+
containerClassName: t1,
|
|
50
|
+
className: t2,
|
|
51
|
+
...props
|
|
52
|
+
});
|
|
53
|
+
$[8] = props;
|
|
54
|
+
$[9] = t1;
|
|
55
|
+
$[10] = t2;
|
|
56
|
+
$[11] = t3;
|
|
57
|
+
} else {
|
|
58
|
+
t3 = $[11];
|
|
59
|
+
}
|
|
60
|
+
return t3;
|
|
9
61
|
}
|
|
10
|
-
function InputOTPGroup(
|
|
11
|
-
|
|
62
|
+
function InputOTPGroup(t0) {
|
|
63
|
+
const $ = _c(8);
|
|
64
|
+
let className;
|
|
65
|
+
let props;
|
|
66
|
+
if ($[0] !== t0) {
|
|
67
|
+
({
|
|
68
|
+
className,
|
|
69
|
+
...props
|
|
70
|
+
} = t0);
|
|
71
|
+
$[0] = t0;
|
|
72
|
+
$[1] = className;
|
|
73
|
+
$[2] = props;
|
|
74
|
+
} else {
|
|
75
|
+
className = $[1];
|
|
76
|
+
props = $[2];
|
|
77
|
+
}
|
|
78
|
+
let t1;
|
|
79
|
+
if ($[3] !== className) {
|
|
80
|
+
t1 = cn("flex items-center", className);
|
|
81
|
+
$[3] = className;
|
|
82
|
+
$[4] = t1;
|
|
83
|
+
} else {
|
|
84
|
+
t1 = $[4];
|
|
85
|
+
}
|
|
86
|
+
let t2;
|
|
87
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
88
|
+
t2 = /*#__PURE__*/_jsx("div", {
|
|
89
|
+
"data-slot": "input-otp-group",
|
|
90
|
+
className: t1,
|
|
91
|
+
...props
|
|
92
|
+
});
|
|
93
|
+
$[5] = props;
|
|
94
|
+
$[6] = t1;
|
|
95
|
+
$[7] = t2;
|
|
96
|
+
} else {
|
|
97
|
+
t2 = $[7];
|
|
98
|
+
}
|
|
99
|
+
return t2;
|
|
12
100
|
}
|
|
13
|
-
function InputOTPSlot(
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
101
|
+
function InputOTPSlot(t0) {
|
|
102
|
+
const $ = _c(17);
|
|
103
|
+
let className;
|
|
104
|
+
let index;
|
|
105
|
+
let props;
|
|
106
|
+
if ($[0] !== t0) {
|
|
107
|
+
({
|
|
108
|
+
index,
|
|
109
|
+
className,
|
|
110
|
+
...props
|
|
111
|
+
} = t0);
|
|
112
|
+
$[0] = t0;
|
|
113
|
+
$[1] = className;
|
|
114
|
+
$[2] = index;
|
|
115
|
+
$[3] = props;
|
|
116
|
+
} else {
|
|
117
|
+
className = $[1];
|
|
118
|
+
index = $[2];
|
|
119
|
+
props = $[3];
|
|
120
|
+
}
|
|
121
|
+
const inputOTPContext = React.useContext(OTPInputContext);
|
|
122
|
+
let t1;
|
|
123
|
+
if ($[4] !== index || $[5] !== inputOTPContext?.slots) {
|
|
124
|
+
t1 = inputOTPContext?.slots[index] ?? {};
|
|
125
|
+
$[4] = index;
|
|
126
|
+
$[5] = inputOTPContext?.slots;
|
|
127
|
+
$[6] = t1;
|
|
128
|
+
} else {
|
|
129
|
+
t1 = $[6];
|
|
130
|
+
}
|
|
131
|
+
const {
|
|
132
|
+
char,
|
|
133
|
+
hasFakeCaret,
|
|
134
|
+
isActive
|
|
135
|
+
} = t1;
|
|
136
|
+
let t2;
|
|
137
|
+
if ($[7] !== className) {
|
|
138
|
+
t2 = cn("relative flex h-9 w-9 items-center justify-center border-y border-r border-input font-mono text-base tabular-nums shadow-xs transition-[color,background-color,border-color,box-shadow] duration-150 ease-out outline-none first:rounded-l-md first:border-l last:rounded-r-md aria-invalid:border-destructive data-[active=true]:z-10 data-[active=true]:border-ring data-[active=true]:ring-1 data-[active=true]:ring-ring data-[active=true]:aria-invalid:border-destructive data-[active=true]:aria-invalid:ring-destructive/20 dark:bg-input/30 dark:data-[active=true]:aria-invalid:ring-destructive/40", className);
|
|
139
|
+
$[7] = className;
|
|
140
|
+
$[8] = t2;
|
|
141
|
+
} else {
|
|
142
|
+
t2 = $[8];
|
|
143
|
+
}
|
|
144
|
+
let t3;
|
|
145
|
+
if ($[9] !== hasFakeCaret) {
|
|
146
|
+
t3 = hasFakeCaret && /*#__PURE__*/_jsx("div", {
|
|
147
|
+
className: "pointer-events-none absolute inset-0 flex items-center justify-center",
|
|
148
|
+
children: /*#__PURE__*/_jsx("div", {
|
|
149
|
+
className: "h-4 w-px animate-caret-blink bg-foreground duration-1000"
|
|
150
|
+
})
|
|
151
|
+
});
|
|
152
|
+
$[9] = hasFakeCaret;
|
|
153
|
+
$[10] = t3;
|
|
154
|
+
} else {
|
|
155
|
+
t3 = $[10];
|
|
156
|
+
}
|
|
157
|
+
let t4;
|
|
158
|
+
if ($[11] !== char || $[12] !== isActive || $[13] !== props || $[14] !== t2 || $[15] !== t3) {
|
|
159
|
+
t4 = /*#__PURE__*/_jsxs("div", {
|
|
160
|
+
"data-slot": "input-otp-slot",
|
|
161
|
+
"data-active": isActive,
|
|
162
|
+
className: t2,
|
|
163
|
+
...props,
|
|
164
|
+
children: [char, t3]
|
|
165
|
+
});
|
|
166
|
+
$[11] = char;
|
|
167
|
+
$[12] = isActive;
|
|
168
|
+
$[13] = props;
|
|
169
|
+
$[14] = t2;
|
|
170
|
+
$[15] = t3;
|
|
171
|
+
$[16] = t4;
|
|
172
|
+
} else {
|
|
173
|
+
t4 = $[16];
|
|
174
|
+
}
|
|
175
|
+
return t4;
|
|
17
176
|
}
|
|
18
|
-
function InputOTPSeparator(
|
|
19
|
-
|
|
177
|
+
function InputOTPSeparator(t0) {
|
|
178
|
+
const $ = _c(5);
|
|
179
|
+
let props;
|
|
180
|
+
if ($[0] !== t0) {
|
|
181
|
+
({
|
|
182
|
+
...props
|
|
183
|
+
} = t0);
|
|
184
|
+
$[0] = t0;
|
|
185
|
+
$[1] = props;
|
|
186
|
+
} else {
|
|
187
|
+
props = $[1];
|
|
188
|
+
}
|
|
189
|
+
let t1;
|
|
190
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
191
|
+
t1 = /*#__PURE__*/_jsx(MinusIcon, {});
|
|
192
|
+
$[2] = t1;
|
|
193
|
+
} else {
|
|
194
|
+
t1 = $[2];
|
|
195
|
+
}
|
|
196
|
+
let t2;
|
|
197
|
+
if ($[3] !== props) {
|
|
198
|
+
t2 = /*#__PURE__*/_jsx("div", {
|
|
199
|
+
"data-slot": "input-otp-separator",
|
|
200
|
+
role: "separator",
|
|
201
|
+
...props,
|
|
202
|
+
children: t1
|
|
203
|
+
});
|
|
204
|
+
$[3] = props;
|
|
205
|
+
$[4] = t2;
|
|
206
|
+
} else {
|
|
207
|
+
t2 = $[4];
|
|
208
|
+
}
|
|
209
|
+
return t2;
|
|
20
210
|
}
|
|
21
211
|
export { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot };
|
|
@@ -1,9 +1,64 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
3
4
|
import { Checkmark as CheckIcon, Subtract as MinusIcon } from "@carbon/icons-react";
|
|
4
5
|
import { cn } from "cn";
|
|
5
6
|
import * as CheckboxPrimitive from "radix-ui/checkbox";
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
import * as React from "react";
|
|
8
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
function Checkbox(t0) {
|
|
10
|
+
const $ = _c(9);
|
|
11
|
+
let className;
|
|
12
|
+
let props;
|
|
13
|
+
if ($[0] !== t0) {
|
|
14
|
+
({
|
|
15
|
+
className,
|
|
16
|
+
...props
|
|
17
|
+
} = t0);
|
|
18
|
+
$[0] = t0;
|
|
19
|
+
$[1] = className;
|
|
20
|
+
$[2] = props;
|
|
21
|
+
} else {
|
|
22
|
+
className = $[1];
|
|
23
|
+
props = $[2];
|
|
24
|
+
}
|
|
25
|
+
let t1;
|
|
26
|
+
if ($[3] !== className) {
|
|
27
|
+
t1 = cn("peer size-4 shrink-0 rounded-none border border-input shadow-xs transition-shadow outline-none", "data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground", "data-[state=indeterminate]:border-primary data-[state=indeterminate]:bg-primary data-[state=indeterminate]:text-primary-foreground", "focus-visible:ring-2 focus-visible:ring-ring/70 focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50", className);
|
|
28
|
+
$[3] = className;
|
|
29
|
+
$[4] = t1;
|
|
30
|
+
} else {
|
|
31
|
+
t1 = $[4];
|
|
32
|
+
}
|
|
33
|
+
let t2;
|
|
34
|
+
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
35
|
+
t2 = /*#__PURE__*/_jsxs(CheckboxPrimitive.Indicator, {
|
|
36
|
+
"data-slot": "checkbox-indicator",
|
|
37
|
+
className: "group/indicator flex items-center justify-center text-current",
|
|
38
|
+
children: [/*#__PURE__*/_jsx(CheckIcon, {
|
|
39
|
+
className: "size-3.5 group-data-[state=indeterminate]/indicator:hidden"
|
|
40
|
+
}), /*#__PURE__*/_jsx(MinusIcon, {
|
|
41
|
+
className: "hidden size-3.5 group-data-[state=indeterminate]/indicator:block"
|
|
42
|
+
})]
|
|
43
|
+
});
|
|
44
|
+
$[5] = t2;
|
|
45
|
+
} else {
|
|
46
|
+
t2 = $[5];
|
|
47
|
+
}
|
|
48
|
+
let t3;
|
|
49
|
+
if ($[6] !== props || $[7] !== t1) {
|
|
50
|
+
t3 = /*#__PURE__*/_jsx(CheckboxPrimitive.Root, {
|
|
51
|
+
"data-slot": "checkbox",
|
|
52
|
+
className: t1,
|
|
53
|
+
...props,
|
|
54
|
+
children: t2
|
|
55
|
+
});
|
|
56
|
+
$[6] = props;
|
|
57
|
+
$[7] = t1;
|
|
58
|
+
$[8] = t3;
|
|
59
|
+
} else {
|
|
60
|
+
t3 = $[8];
|
|
61
|
+
}
|
|
62
|
+
return t3;
|
|
8
63
|
}
|
|
9
64
|
export { Checkbox };
|
|
@@ -1,12 +1,101 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
3
4
|
import { CircleSolid as CircleIcon } from "@carbon/icons-react";
|
|
4
5
|
import { cn } from "cn";
|
|
5
6
|
import * as RadioGroupPrimitive from "radix-ui/radio-group";
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
import * as React from "react";
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
+
function RadioGroup(t0) {
|
|
10
|
+
const $ = _c(8);
|
|
11
|
+
let className;
|
|
12
|
+
let props;
|
|
13
|
+
if ($[0] !== t0) {
|
|
14
|
+
({
|
|
15
|
+
className,
|
|
16
|
+
...props
|
|
17
|
+
} = t0);
|
|
18
|
+
$[0] = t0;
|
|
19
|
+
$[1] = className;
|
|
20
|
+
$[2] = props;
|
|
21
|
+
} else {
|
|
22
|
+
className = $[1];
|
|
23
|
+
props = $[2];
|
|
24
|
+
}
|
|
25
|
+
let t1;
|
|
26
|
+
if ($[3] !== className) {
|
|
27
|
+
t1 = cn("grid gap-3", className);
|
|
28
|
+
$[3] = className;
|
|
29
|
+
$[4] = t1;
|
|
30
|
+
} else {
|
|
31
|
+
t1 = $[4];
|
|
32
|
+
}
|
|
33
|
+
let t2;
|
|
34
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
35
|
+
t2 = /*#__PURE__*/_jsx(RadioGroupPrimitive.Root, {
|
|
36
|
+
"data-slot": "radio-group",
|
|
37
|
+
className: t1,
|
|
38
|
+
...props
|
|
39
|
+
});
|
|
40
|
+
$[5] = props;
|
|
41
|
+
$[6] = t1;
|
|
42
|
+
$[7] = t2;
|
|
43
|
+
} else {
|
|
44
|
+
t2 = $[7];
|
|
45
|
+
}
|
|
46
|
+
return t2;
|
|
8
47
|
}
|
|
9
|
-
function RadioGroupItem(
|
|
10
|
-
|
|
48
|
+
function RadioGroupItem(t0) {
|
|
49
|
+
const $ = _c(9);
|
|
50
|
+
let className;
|
|
51
|
+
let props;
|
|
52
|
+
if ($[0] !== t0) {
|
|
53
|
+
({
|
|
54
|
+
className,
|
|
55
|
+
...props
|
|
56
|
+
} = t0);
|
|
57
|
+
$[0] = t0;
|
|
58
|
+
$[1] = className;
|
|
59
|
+
$[2] = props;
|
|
60
|
+
} else {
|
|
61
|
+
className = $[1];
|
|
62
|
+
props = $[2];
|
|
63
|
+
}
|
|
64
|
+
let t1;
|
|
65
|
+
if ($[3] !== className) {
|
|
66
|
+
t1 = cn("peer aspect-square size-4 shrink-0 rounded-full border border-input text-primary shadow-xs transition-[color,box-shadow] outline-none data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/70 focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40", className);
|
|
67
|
+
$[3] = className;
|
|
68
|
+
$[4] = t1;
|
|
69
|
+
} else {
|
|
70
|
+
t1 = $[4];
|
|
71
|
+
}
|
|
72
|
+
let t2;
|
|
73
|
+
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
74
|
+
t2 = /*#__PURE__*/_jsx(RadioGroupPrimitive.Indicator, {
|
|
75
|
+
"data-slot": "radio-group-indicator",
|
|
76
|
+
className: "relative flex items-center justify-center",
|
|
77
|
+
children: /*#__PURE__*/_jsx(CircleIcon, {
|
|
78
|
+
className: "absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 fill-primary"
|
|
79
|
+
})
|
|
80
|
+
});
|
|
81
|
+
$[5] = t2;
|
|
82
|
+
} else {
|
|
83
|
+
t2 = $[5];
|
|
84
|
+
}
|
|
85
|
+
let t3;
|
|
86
|
+
if ($[6] !== props || $[7] !== t1) {
|
|
87
|
+
t3 = /*#__PURE__*/_jsx(RadioGroupPrimitive.Item, {
|
|
88
|
+
"data-slot": "radio-group-item",
|
|
89
|
+
className: t1,
|
|
90
|
+
...props,
|
|
91
|
+
children: t2
|
|
92
|
+
});
|
|
93
|
+
$[6] = props;
|
|
94
|
+
$[7] = t1;
|
|
95
|
+
$[8] = t3;
|
|
96
|
+
} else {
|
|
97
|
+
t3 = $[8];
|
|
98
|
+
}
|
|
99
|
+
return t3;
|
|
11
100
|
}
|
|
12
101
|
export { RadioGroup, RadioGroupItem };
|