@trading-game/design-intelligence-layer 0.8.7 → 0.8.9
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 +19 -0
- package/dist/index.cjs +28 -24
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +28 -24
- package/dist/index.js.map +1 -1
- package/guides/design-system-guide/trading-game-ds-guide.md +43 -3
- package/package.json +1 -1
- package/src/styles.css +28 -1
package/dist/index.d.cts
CHANGED
|
@@ -112,7 +112,6 @@ declare function CarouselNext({ className, variant, size, ...props }: React$1.Co
|
|
|
112
112
|
|
|
113
113
|
declare const THEMES: {
|
|
114
114
|
readonly light: "";
|
|
115
|
-
readonly dark: ".dark";
|
|
116
115
|
};
|
|
117
116
|
type ChartConfig = {
|
|
118
117
|
[k in string]: {
|
|
@@ -460,8 +459,9 @@ declare function ScrollBar({ className, orientation, ...props }: React$1.Compone
|
|
|
460
459
|
declare function Select({ ...props }: React$1.ComponentProps<typeof Select$1.Root>): react_jsx_runtime.JSX.Element;
|
|
461
460
|
declare function SelectGroup({ ...props }: React$1.ComponentProps<typeof Select$1.Group>): react_jsx_runtime.JSX.Element;
|
|
462
461
|
declare function SelectValue({ ...props }: React$1.ComponentProps<typeof Select$1.Value>): react_jsx_runtime.JSX.Element;
|
|
463
|
-
declare function SelectTrigger({ className, size, children, ...props }: React$1.ComponentProps<typeof Select$1.Trigger> & {
|
|
462
|
+
declare function SelectTrigger({ className, size, readOnly, children, ...props }: React$1.ComponentProps<typeof Select$1.Trigger> & {
|
|
464
463
|
size?: "sm" | "default";
|
|
464
|
+
readOnly?: boolean;
|
|
465
465
|
}): react_jsx_runtime.JSX.Element;
|
|
466
466
|
declare function SelectContent({ className, children, position, align, ...props }: React$1.ComponentProps<typeof Select$1.Content>): react_jsx_runtime.JSX.Element;
|
|
467
467
|
declare function SelectLabel({ className, ...props }: React$1.ComponentProps<typeof Select$1.Label>): react_jsx_runtime.JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -112,7 +112,6 @@ declare function CarouselNext({ className, variant, size, ...props }: React$1.Co
|
|
|
112
112
|
|
|
113
113
|
declare const THEMES: {
|
|
114
114
|
readonly light: "";
|
|
115
|
-
readonly dark: ".dark";
|
|
116
115
|
};
|
|
117
116
|
type ChartConfig = {
|
|
118
117
|
[k in string]: {
|
|
@@ -460,8 +459,9 @@ declare function ScrollBar({ className, orientation, ...props }: React$1.Compone
|
|
|
460
459
|
declare function Select({ ...props }: React$1.ComponentProps<typeof Select$1.Root>): react_jsx_runtime.JSX.Element;
|
|
461
460
|
declare function SelectGroup({ ...props }: React$1.ComponentProps<typeof Select$1.Group>): react_jsx_runtime.JSX.Element;
|
|
462
461
|
declare function SelectValue({ ...props }: React$1.ComponentProps<typeof Select$1.Value>): react_jsx_runtime.JSX.Element;
|
|
463
|
-
declare function SelectTrigger({ className, size, children, ...props }: React$1.ComponentProps<typeof Select$1.Trigger> & {
|
|
462
|
+
declare function SelectTrigger({ className, size, readOnly, children, ...props }: React$1.ComponentProps<typeof Select$1.Trigger> & {
|
|
464
463
|
size?: "sm" | "default";
|
|
464
|
+
readOnly?: boolean;
|
|
465
465
|
}): react_jsx_runtime.JSX.Element;
|
|
466
466
|
declare function SelectContent({ className, children, position, align, ...props }: React$1.ComponentProps<typeof Select$1.Content>): react_jsx_runtime.JSX.Element;
|
|
467
467
|
declare function SelectLabel({ className, ...props }: React$1.ComponentProps<typeof Select$1.Label>): react_jsx_runtime.JSX.Element;
|
package/dist/index.js
CHANGED
|
@@ -178,7 +178,7 @@ import { cva as cva2 } from "class-variance-authority";
|
|
|
178
178
|
import { Slot } from "radix-ui";
|
|
179
179
|
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
180
180
|
var buttonVariants = cva2(
|
|
181
|
-
"inline-flex shrink-0 items-center justify-center whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 active:opacity-60 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20
|
|
181
|
+
"inline-flex shrink-0 items-center justify-center whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 active:opacity-60 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 [&_svg]:pointer-events-none [&_svg]:shrink-0 font-display font-bold",
|
|
182
182
|
{
|
|
183
183
|
variants: {
|
|
184
184
|
variant: {
|
|
@@ -1168,7 +1168,7 @@ function CarouselNext(_a) {
|
|
|
1168
1168
|
import * as React3 from "react";
|
|
1169
1169
|
import * as RechartsPrimitive from "recharts";
|
|
1170
1170
|
import { Fragment, jsx as jsx12, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
1171
|
-
var THEMES = { light: ""
|
|
1171
|
+
var THEMES = { light: "" };
|
|
1172
1172
|
var ChartContext = React3.createContext(null);
|
|
1173
1173
|
function useChart() {
|
|
1174
1174
|
const context = React3.useContext(ChartContext);
|
|
@@ -1284,7 +1284,7 @@ function ChartTooltipContent({
|
|
|
1284
1284
|
"div",
|
|
1285
1285
|
{
|
|
1286
1286
|
className: cn(
|
|
1287
|
-
"grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border-subtle/50 bg-
|
|
1287
|
+
"grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border-subtle/50 bg-prominent px-2.5 py-1.5 text-xs shadow-xl",
|
|
1288
1288
|
className
|
|
1289
1289
|
),
|
|
1290
1290
|
children: [
|
|
@@ -1421,7 +1421,7 @@ function Checkbox(_a) {
|
|
|
1421
1421
|
__spreadProps(__spreadValues({
|
|
1422
1422
|
"data-slot": "checkbox",
|
|
1423
1423
|
className: cn(
|
|
1424
|
-
"peer size-4 shrink-0 rounded-[2px] border border-input shadow-xs transition-shadow outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-on-prominent-static-inverse
|
|
1424
|
+
"peer size-4 shrink-0 rounded-[2px] border border-input shadow-xs transition-shadow outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-on-prominent-static-inverse",
|
|
1425
1425
|
className
|
|
1426
1426
|
)
|
|
1427
1427
|
}, props), {
|
|
@@ -1498,7 +1498,7 @@ function Textarea(_a) {
|
|
|
1498
1498
|
__spreadValues({
|
|
1499
1499
|
"data-slot": "textarea",
|
|
1500
1500
|
className: cn(
|
|
1501
|
-
"flex field-sizing-content min-h-16 w-full rounded-sm border border-border-subtle bg-white/5 px-3 py-2 text-base text-on-prominent font-body shadow-xs transition-[color,box-shadow] outline-none placeholder:text-on-muted focus-visible:border-primary focus-visible:ring-[3px] focus-visible:ring-primary/[0.08] disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 md:text-sm
|
|
1501
|
+
"flex field-sizing-content min-h-16 w-full rounded-sm border border-border-subtle bg-white/5 px-3 py-2 text-base text-on-prominent font-body shadow-xs transition-[color,box-shadow] outline-none placeholder:text-on-muted focus-visible:border-primary focus-visible:ring-[3px] focus-visible:ring-primary/[0.08] disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 md:text-sm",
|
|
1502
1502
|
className
|
|
1503
1503
|
)
|
|
1504
1504
|
}, props)
|
|
@@ -1525,7 +1525,7 @@ function InputGroup(_a) {
|
|
|
1525
1525
|
// Focus state.
|
|
1526
1526
|
"has-[[data-slot=input-group-control]:focus-visible]:border-primary has-[[data-slot=input-group-control]:focus-visible]:ring-[3px] has-[[data-slot=input-group-control]:focus-visible]:ring-primary/[0.08]",
|
|
1527
1527
|
// Error state.
|
|
1528
|
-
"has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-destructive/20
|
|
1528
|
+
"has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-destructive/20",
|
|
1529
1529
|
className
|
|
1530
1530
|
)
|
|
1531
1531
|
}, props)
|
|
@@ -1633,7 +1633,7 @@ function InputGroupInput(_a) {
|
|
|
1633
1633
|
__spreadValues({
|
|
1634
1634
|
"data-slot": "input-group-control",
|
|
1635
1635
|
className: cn(
|
|
1636
|
-
"flex-1 rounded-none border-0 bg-transparent shadow-none focus-visible:ring-0
|
|
1636
|
+
"flex-1 rounded-none border-0 bg-transparent shadow-none focus-visible:ring-0",
|
|
1637
1637
|
className
|
|
1638
1638
|
)
|
|
1639
1639
|
}, props)
|
|
@@ -1650,7 +1650,7 @@ function InputGroupTextarea(_a) {
|
|
|
1650
1650
|
__spreadValues({
|
|
1651
1651
|
"data-slot": "input-group-control",
|
|
1652
1652
|
className: cn(
|
|
1653
|
-
"flex-1 resize-none rounded-none border-0 bg-transparent py-3 shadow-none focus-visible:ring-0
|
|
1653
|
+
"flex-1 resize-none rounded-none border-0 bg-transparent py-3 shadow-none focus-visible:ring-0",
|
|
1654
1654
|
className
|
|
1655
1655
|
)
|
|
1656
1656
|
}, props)
|
|
@@ -1895,7 +1895,7 @@ function ComboboxChips(_a) {
|
|
|
1895
1895
|
__spreadValues({
|
|
1896
1896
|
"data-slot": "combobox-chips",
|
|
1897
1897
|
className: cn(
|
|
1898
|
-
"flex min-h-9 flex-wrap items-center gap-1.5 rounded-md border border-input bg-transparent bg-clip-padding px-2.5 py-1.5 text-sm shadow-xs transition-[color,box-shadow] focus-within:border-ring focus-within:ring-[3px] focus-within:ring-ring/50 has-aria-invalid:border-destructive has-aria-invalid:ring-[3px] has-aria-invalid:ring-destructive/20 has-data-[slot=combobox-chip]:px-1.5
|
|
1898
|
+
"flex min-h-9 flex-wrap items-center gap-1.5 rounded-md border border-input bg-transparent bg-clip-padding px-2.5 py-1.5 text-sm shadow-xs transition-[color,box-shadow] focus-within:border-ring focus-within:ring-[3px] focus-within:ring-ring/50 has-aria-invalid:border-destructive has-aria-invalid:ring-[3px] has-aria-invalid:ring-destructive/20 has-data-[slot=combobox-chip]:px-1.5",
|
|
1899
1899
|
className
|
|
1900
1900
|
)
|
|
1901
1901
|
}, props)
|
|
@@ -2379,7 +2379,7 @@ function ContextMenuItem(_a) {
|
|
|
2379
2379
|
"data-inset": inset,
|
|
2380
2380
|
"data-variant": variant,
|
|
2381
2381
|
className: cn(
|
|
2382
|
-
"relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-secondary-hover focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive
|
|
2382
|
+
"relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-secondary-hover focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-on-subtle data-[variant=destructive]:*:[svg]:text-destructive!",
|
|
2383
2383
|
className
|
|
2384
2384
|
)
|
|
2385
2385
|
}, props)
|
|
@@ -2681,7 +2681,7 @@ function DropdownMenuItem(_a) {
|
|
|
2681
2681
|
"data-inset": inset,
|
|
2682
2682
|
"data-variant": variant,
|
|
2683
2683
|
className: cn(
|
|
2684
|
-
"relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-secondary-hover focus:text-on-prominent data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive
|
|
2684
|
+
"relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-secondary-hover focus:text-on-prominent data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-on-subtle data-[variant=destructive]:*:[svg]:text-destructive!",
|
|
2685
2685
|
className
|
|
2686
2686
|
)
|
|
2687
2687
|
}, props)
|
|
@@ -3114,7 +3114,7 @@ function FieldLabel(_a) {
|
|
|
3114
3114
|
className: cn(
|
|
3115
3115
|
"group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50",
|
|
3116
3116
|
"has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border [&>*]:data-[slot=field]:p-4",
|
|
3117
|
-
"has-data-[state=checked]:border-primary has-data-[state=checked]:bg-primary/5
|
|
3117
|
+
"has-data-[state=checked]:border-primary has-data-[state=checked]:bg-primary/5",
|
|
3118
3118
|
className
|
|
3119
3119
|
)
|
|
3120
3120
|
}, props)
|
|
@@ -3171,7 +3171,7 @@ function FieldSeparator(_a) {
|
|
|
3171
3171
|
children && /* @__PURE__ */ jsx28(
|
|
3172
3172
|
"span",
|
|
3173
3173
|
{
|
|
3174
|
-
className: "relative mx-auto block w-fit bg-
|
|
3174
|
+
className: "relative mx-auto block w-fit bg-prominent px-2 text-on-subtle",
|
|
3175
3175
|
"data-slot": "field-separator-content",
|
|
3176
3176
|
children
|
|
3177
3177
|
}
|
|
@@ -3422,7 +3422,7 @@ function InputOTPSlot(_a) {
|
|
|
3422
3422
|
"data-slot": "input-otp-slot",
|
|
3423
3423
|
"data-active": isActive,
|
|
3424
3424
|
className: cn(
|
|
3425
|
-
"relative flex h-9 w-9 items-center justify-center border border-border-subtle bg-white/5 text-sm font-body text-on-prominent shadow-xs transition-[color,box-shadow] outline-none first:rounded-l-sm last:rounded-r-sm aria-invalid:border-destructive aria-invalid:ring-destructive/20
|
|
3425
|
+
"relative flex h-9 w-9 items-center justify-center border border-border-subtle bg-white/5 text-sm font-body text-on-prominent shadow-xs transition-[color,box-shadow] outline-none first:rounded-l-sm last:rounded-r-sm aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[active=true]:z-10 data-[active=true]:border-primary data-[active=true]:ring-[3px] data-[active=true]:ring-primary/[0.08] data-[active=true]:aria-invalid:border-destructive data-[active=true]:aria-invalid:ring-destructive/20",
|
|
3426
3426
|
className
|
|
3427
3427
|
)
|
|
3428
3428
|
}, props), {
|
|
@@ -3703,7 +3703,7 @@ function Menubar(_a) {
|
|
|
3703
3703
|
__spreadValues({
|
|
3704
3704
|
"data-slot": "menubar",
|
|
3705
3705
|
className: cn(
|
|
3706
|
-
"flex h-9 items-center gap-1 rounded-md border border-border-subtle bg-
|
|
3706
|
+
"flex h-9 items-center gap-1 rounded-md border border-border-subtle bg-prominent p-1 shadow-xs",
|
|
3707
3707
|
className
|
|
3708
3708
|
)
|
|
3709
3709
|
}, props)
|
|
@@ -3785,7 +3785,7 @@ function MenubarItem(_a) {
|
|
|
3785
3785
|
"data-inset": inset,
|
|
3786
3786
|
"data-variant": variant,
|
|
3787
3787
|
className: cn(
|
|
3788
|
-
"relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none hover:bg-secondary-hover hover:text-on-prominent focus:bg-secondary-hover focus:text-on-prominent data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive
|
|
3788
|
+
"relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none hover:bg-secondary-hover hover:text-on-prominent focus:bg-secondary-hover focus:text-on-prominent data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-on-subtle data-[variant=destructive]:*:[svg]:text-destructive!",
|
|
3789
3789
|
className
|
|
3790
3790
|
)
|
|
3791
3791
|
}, props)
|
|
@@ -3965,7 +3965,7 @@ function NativeSelect(_a) {
|
|
|
3965
3965
|
"data-slot": "native-select",
|
|
3966
3966
|
"data-size": size,
|
|
3967
3967
|
className: cn(
|
|
3968
|
-
"h-9 w-full min-w-0 appearance-none rounded-md border border-input bg-transparent px-3 py-2 pr-9 text-sm shadow-xs transition-[color,box-shadow] outline-none selection:bg-primary selection:text-on-prominent-static-inverse placeholder:text-on-subtle disabled:pointer-events-none disabled:cursor-not-allowed data-[size=sm]:h-8 data-[size=sm]:py-1
|
|
3968
|
+
"h-9 w-full min-w-0 appearance-none rounded-md border border-input bg-transparent px-3 py-2 pr-9 text-sm shadow-xs transition-[color,box-shadow] outline-none selection:bg-primary selection:text-on-prominent-static-inverse placeholder:text-on-subtle disabled:pointer-events-none disabled:cursor-not-allowed data-[size=sm]:h-8 data-[size=sm]:py-1",
|
|
3969
3969
|
"focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50",
|
|
3970
3970
|
className
|
|
3971
3971
|
)
|
|
@@ -4408,7 +4408,7 @@ function RadioGroupItem(_a) {
|
|
|
4408
4408
|
__spreadProps(__spreadValues({
|
|
4409
4409
|
"data-slot": "radio-group-item",
|
|
4410
4410
|
className: cn(
|
|
4411
|
-
"aspect-square size-4 shrink-0 rounded-full border border-input text-primary shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20
|
|
4411
|
+
"aspect-square size-4 shrink-0 rounded-full border border-input text-primary shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20",
|
|
4412
4412
|
className
|
|
4413
4413
|
)
|
|
4414
4414
|
}, props), {
|
|
@@ -4554,10 +4554,12 @@ function SelectTrigger(_a) {
|
|
|
4554
4554
|
var _b = _a, {
|
|
4555
4555
|
className,
|
|
4556
4556
|
size = "default",
|
|
4557
|
+
readOnly = false,
|
|
4557
4558
|
children
|
|
4558
4559
|
} = _b, props = __objRest(_b, [
|
|
4559
4560
|
"className",
|
|
4560
4561
|
"size",
|
|
4562
|
+
"readOnly",
|
|
4561
4563
|
"children"
|
|
4562
4564
|
]);
|
|
4563
4565
|
return /* @__PURE__ */ jsxs19(
|
|
@@ -4565,14 +4567,16 @@ function SelectTrigger(_a) {
|
|
|
4565
4567
|
__spreadProps(__spreadValues({
|
|
4566
4568
|
"data-slot": "select-trigger",
|
|
4567
4569
|
"data-size": size,
|
|
4570
|
+
"data-readonly": readOnly ? "" : void 0,
|
|
4571
|
+
disabled: readOnly || props.disabled,
|
|
4568
4572
|
className: cn(
|
|
4569
|
-
"flex w-fit items-center justify-between gap-2 rounded-sm border border-input bg-
|
|
4573
|
+
"flex w-fit items-center justify-between gap-2 rounded-sm border border-input bg-prominent appearance-none px-3 py-2 text-sm whitespace-nowrap transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[placeholder]:text-on-subtle data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-on-subtle data-[readonly]:cursor-default data-[readonly]:opacity-100",
|
|
4570
4574
|
className
|
|
4571
4575
|
)
|
|
4572
4576
|
}, props), {
|
|
4573
4577
|
children: [
|
|
4574
4578
|
children,
|
|
4575
|
-
/* @__PURE__ */ jsx44(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx44(ChevronDownIcon6, { className: "size-4 opacity-50" }) })
|
|
4579
|
+
/* @__PURE__ */ jsx44(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx44(ChevronDownIcon6, { className: cn("size-4", readOnly ? "opacity-30" : "opacity-50") }) })
|
|
4576
4580
|
]
|
|
4577
4581
|
})
|
|
4578
4582
|
);
|
|
@@ -5730,7 +5734,7 @@ function Switch(_a) {
|
|
|
5730
5734
|
"data-slot": "switch",
|
|
5731
5735
|
"data-size": size,
|
|
5732
5736
|
className: cn(
|
|
5733
|
-
"peer group/switch inline-flex shrink-0 items-center rounded-[6px] border border-transparent p-[3px] shadow-xs transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-6 data-[size=default]:w-11 data-[size=sm]:h-5 data-[size=sm]:w-9 data-[state=checked]:bg-slider-range data-[state=unchecked]:bg-input
|
|
5737
|
+
"peer group/switch inline-flex shrink-0 items-center rounded-[6px] border border-transparent p-[3px] shadow-xs transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-6 data-[size=default]:w-11 data-[size=sm]:h-5 data-[size=sm]:w-9 data-[state=checked]:bg-slider-range data-[state=unchecked]:bg-input",
|
|
5734
5738
|
className
|
|
5735
5739
|
)
|
|
5736
5740
|
}, props), {
|
|
@@ -5883,7 +5887,7 @@ var tabsListVariants = cva11(
|
|
|
5883
5887
|
{
|
|
5884
5888
|
variants: {
|
|
5885
5889
|
variant: {
|
|
5886
|
-
default: "bg-
|
|
5890
|
+
default: "bg-tabs",
|
|
5887
5891
|
line: "gap-1 bg-transparent"
|
|
5888
5892
|
},
|
|
5889
5893
|
size: {
|
|
@@ -5936,7 +5940,7 @@ function TabsTrigger(_a) {
|
|
|
5936
5940
|
"group-data-[size=sm]/tabs-list:gap-1 group-data-[size=sm]/tabs-list:rounded-sm group-data-[size=sm]/tabs-list:px-2 group-data-[size=sm]/tabs-list:text-xs",
|
|
5937
5941
|
"group-data-[size=lg]/tabs-list:gap-2 group-data-[size=lg]/tabs-list:rounded-lg group-data-[size=lg]/tabs-list:px-4 group-data-[size=lg]/tabs-list:text-base",
|
|
5938
5942
|
"group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:hover:bg-transparent group-data-[variant=line]/tabs-list:hover:text-primary group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent group-data-[variant=line]/tabs-list:data-[state=active]:border-transparent",
|
|
5939
|
-
"data-[state=active]:bg-
|
|
5943
|
+
"data-[state=active]:bg-tabs-active data-[state=active]:border-transparent data-[state=active]:text-primary data-[state=active]:font-semibold",
|
|
5940
5944
|
"after:absolute after:bg-primary after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-[state=active]:after:opacity-100",
|
|
5941
5945
|
iconPosition === "top" && "h-auto flex-col gap-1 py-2",
|
|
5942
5946
|
iconPosition === "top" && "group-data-[size=sm]/tabs-list:gap-0.5 group-data-[size=sm]/tabs-list:py-1.5",
|
|
@@ -6057,7 +6061,7 @@ import { cva as cva12 } from "class-variance-authority";
|
|
|
6057
6061
|
import { Toggle as TogglePrimitive } from "radix-ui";
|
|
6058
6062
|
import { jsx as jsx56 } from "react/jsx-runtime";
|
|
6059
6063
|
var toggleVariants = cva12(
|
|
6060
|
-
"inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-[color,box-shadow] outline-none hover:bg-secondary-hover hover:text-on-prominent focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=on]:bg-secondary-hover data-[state=on]:border-transparent data-[state=on]:text-primary
|
|
6064
|
+
"inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-[color,box-shadow] outline-none hover:bg-secondary-hover hover:text-on-prominent focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=on]:bg-secondary-hover data-[state=on]:border-transparent data-[state=on]:text-primary [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
6061
6065
|
{
|
|
6062
6066
|
variants: {
|
|
6063
6067
|
variant: {
|