myshell-react-lib 0.1.17 → 0.1.20
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/index.cjs +173 -160
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +53 -11
- package/dist/index.d.ts +53 -11
- package/dist/index.js +173 -160
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4689,10 +4689,10 @@ var imageVariants = cva4("", {
|
|
|
4689
4689
|
variants: {
|
|
4690
4690
|
rounded: {
|
|
4691
4691
|
none: "rounded-none",
|
|
4692
|
-
sm: "rounded-
|
|
4692
|
+
sm: "rounded-xxs",
|
|
4693
4693
|
default: "rounded",
|
|
4694
|
-
md: "rounded-
|
|
4695
|
-
lg: "rounded-
|
|
4694
|
+
md: "rounded-sm",
|
|
4695
|
+
lg: "rounded-md",
|
|
4696
4696
|
xl: "rounded-xl",
|
|
4697
4697
|
"2xl": "rounded-2xl",
|
|
4698
4698
|
"3xl": "rounded-3xl",
|
|
@@ -4743,7 +4743,7 @@ function Image2(_param) {
|
|
|
4743
4743
|
}
|
|
4744
4744
|
// src/components/button/button.styles.ts
|
|
4745
4745
|
import { cva as cva5 } from "class-variance-authority";
|
|
4746
|
-
var BASE_BUTTON = "relative shrink-0 inline-flex items-center justify-center whitespace-nowrap rounded-
|
|
4746
|
+
var BASE_BUTTON = "relative shrink-0 inline-flex items-center justify-center whitespace-nowrap rounded-sm font-medium transition-colors focus-visible:secondary-none focus-visible:shadow-none focus-visible:ring-2 focus-visible:ring-cc-Focus-Rings-Brand-default focus-visible:ring-offset-1 disabled:pointer-events-none disabled:opacity-30 disabled:shadow-none [&>span>svg]:text-inherit [&>span>span>svg]:text-inherit";
|
|
4747
4747
|
var SIZE_CLASSES = {
|
|
4748
4748
|
lg: {
|
|
4749
4749
|
base: "h-11",
|
|
@@ -4788,7 +4788,7 @@ var VARIANT_BASE = {
|
|
|
4788
4788
|
static: "text-cc-Button-Static-fg-default border-cc-Button-Static-border-default bg-cc-Button-Static-bg-default hover:bg-cc-Button-Static-bg-hover active:bg-cc-Button-Static-bg-active disabled:bg-cc-Button-Static-bg-disabled disabled:text-cc-Button-Static-fg-alt",
|
|
4789
4789
|
link: "",
|
|
4790
4790
|
plain: "",
|
|
4791
|
-
opacity: "text-Colors-Text-Static-White bg-Colors-Beta-White-30 border border-Colors-Beta-White-12 shadow-none hover:bg-Colors-Beta-White-40 focus:shadow-cc-Focus-Rings-Brand-default active:bg-Colors-Beta-White-50 disabled:bg-Colors-Beta-White-60 disabled:text-Colors-Beta-White-80",
|
|
4791
|
+
opacity: "backdrop-blur-2xl text-Colors-Text-Static-White bg-Colors-Beta-White-30 border border-Colors-Beta-White-12 shadow-none hover:bg-Colors-Beta-White-40 focus:shadow-cc-Focus-Rings-Brand-default active:bg-Colors-Beta-White-50 disabled:bg-Colors-Beta-White-60 disabled:text-Colors-Beta-White-80",
|
|
4792
4792
|
solid: "shadow-none text-Colors-Text-Subtle bg-cc-Button-Solid-bg-default border border-cc-Button-Solid-border-default hover:bg-cc-Button-Solid-bg-hover hover:border-cc-Button-Solid-border-alt active:bg-cc-Button-Solid-bg-active disabled:text-cc-Button-Solid-fg-alt"
|
|
4793
4793
|
};
|
|
4794
4794
|
var SPECIAL_LAYOUTS = {
|
|
@@ -4967,7 +4967,7 @@ var buttonVariants = cva5(BASE_BUTTON, {
|
|
|
4967
4967
|
size: "lg"
|
|
4968
4968
|
}
|
|
4969
4969
|
});
|
|
4970
|
-
var iconVariants2 = cva5("relative shrink-0 text-inherit inline-flex items-center justify-center whitespace-nowrap transition-colors
|
|
4970
|
+
var iconVariants2 = cva5("relative shrink-0 text-inherit inline-flex items-center justify-center whitespace-nowrap transition-colors", {
|
|
4971
4971
|
variants: {
|
|
4972
4972
|
variant: {
|
|
4973
4973
|
primary: "",
|
|
@@ -5009,8 +5009,9 @@ var iconVariants2 = cva5("relative shrink-0 text-inherit inline-flex items-cente
|
|
|
5009
5009
|
});
|
|
5010
5010
|
// src/components/button/button.tsx
|
|
5011
5011
|
import { Fragment, jsx as jsx8, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
5012
|
-
|
|
5013
|
-
var
|
|
5012
|
+
function createButtonWithVariant(props, ref) {
|
|
5013
|
+
var _props_className = props.className, className = _props_className === void 0 ? "" : _props_className, iconClassName = props.iconClassName, _props_variant = props.variant, variant = _props_variant === void 0 ? "primary" : _props_variant, // 设置默认值为primary
|
|
5014
|
+
userProvidedColor = props.color, icon = props.icon, _props_iconDirection = props.iconDirection, iconDirection = _props_iconDirection === void 0 ? "left" : _props_iconDirection, _props_size = props.size, size = _props_size === void 0 ? "lg" : _props_size, _props_asChild = props.asChild, asChild = _props_asChild === void 0 ? false : _props_asChild, _props_loading = props.loading, loading = _props_loading === void 0 ? false : _props_loading, _props_noStyle = props.noStyle, noStyle = _props_noStyle === void 0 ? false : _props_noStyle, _props_iconOutBox = props.iconOutBox, iconOutBox = _props_iconOutBox === void 0 ? false : _props_iconOutBox, _props_isBlock = props.isBlock, isBlock = _props_isBlock === void 0 ? false : _props_isBlock, disabled = props.disabled, children = props.children, autoFocus = props.autoFocus, asset = props.asset, _props_assetNumber = props.assetNumber, assetNumber = _props_assetNumber === void 0 ? 0 : _props_assetNumber, passProps = _object_without_properties(props, [
|
|
5014
5015
|
"className",
|
|
5015
5016
|
"iconClassName",
|
|
5016
5017
|
"variant",
|
|
@@ -5029,6 +5030,7 @@ var Button = React6.forwardRef(function(_param, ref) {
|
|
|
5029
5030
|
"asset",
|
|
5030
5031
|
"assetNumber"
|
|
5031
5032
|
]);
|
|
5033
|
+
var color = userProvidedColor || "default";
|
|
5032
5034
|
var Comp = asChild ? Slot : "button";
|
|
5033
5035
|
var disable = disabled || loading;
|
|
5034
5036
|
return /* @__PURE__ */ jsxs2(Comp, _object_spread_props(_object_spread({
|
|
@@ -5041,7 +5043,7 @@ var Button = React6.forwardRef(function(_param, ref) {
|
|
|
5041
5043
|
ref: ref,
|
|
5042
5044
|
disabled: disable,
|
|
5043
5045
|
autoFocus: autoFocus
|
|
5044
|
-
},
|
|
5046
|
+
}, passProps), {
|
|
5045
5047
|
children: [
|
|
5046
5048
|
loading && /* @__PURE__ */ jsx8("span", {
|
|
5047
5049
|
className: "absolute left-1/2 top-1/2 flex -translate-x-1/2 -translate-y-1/2 items-center justify-center",
|
|
@@ -5112,9 +5114,12 @@ var Button = React6.forwardRef(function(_param, ref) {
|
|
|
5112
5114
|
})
|
|
5113
5115
|
]
|
|
5114
5116
|
}));
|
|
5117
|
+
}
|
|
5118
|
+
var Button = React6.forwardRef(function(props, ref) {
|
|
5119
|
+
return createButtonWithVariant(props, ref);
|
|
5115
5120
|
});
|
|
5116
|
-
var renderIcon = function(icon, direction,
|
|
5117
|
-
var loading =
|
|
5121
|
+
var renderIcon = function(icon, direction, props) {
|
|
5122
|
+
var loading = props.loading, noStyle = props.noStyle, iconClassName = props.iconClassName, variant = props.variant, size = props.size;
|
|
5118
5123
|
return /* @__PURE__ */ jsx8(Icon, {
|
|
5119
5124
|
component: icon,
|
|
5120
5125
|
className: noStyle ? iconClassName : cn(iconVariants2({
|
|
@@ -5134,7 +5139,7 @@ var AlertDialogTrigger = React7.forwardRef(function(_param, ref) {
|
|
|
5134
5139
|
]);
|
|
5135
5140
|
return /* @__PURE__ */ jsx9(AlertDialogPrimitive.Trigger, _object_spread({
|
|
5136
5141
|
ref: ref,
|
|
5137
|
-
className: cn("
|
|
5142
|
+
className: cn("focus-visible:outline-none focus-visible:shadow-none focus-visible:ring-2 focus-visible:ring-cc-Focus-Rings-Brand-default focus-visible:ring-offset-1", className)
|
|
5138
5143
|
}, props));
|
|
5139
5144
|
});
|
|
5140
5145
|
AlertDialogTrigger.displayName = AlertDialogPrimitive.Trigger.displayName;
|
|
@@ -5158,7 +5163,7 @@ var AlertDialogContent = React7.forwardRef(function(_param, ref) {
|
|
|
5158
5163
|
/* @__PURE__ */ jsx9(AlertDialogOverlay, {}),
|
|
5159
5164
|
/* @__PURE__ */ jsx9(AlertDialogPrimitive.Content, _object_spread({
|
|
5160
5165
|
ref: ref,
|
|
5161
|
-
className: cn("fixed left-[50%] top-[50%] z-50 grid w-full rounded-4xl max-w-lg translate-x-[-50%] translate-y-[-50%] bg-Colors-Background-Normal-Primary-Default shadow-modal-default duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]
|
|
5166
|
+
className: cn("fixed left-[50%] top-[50%] z-50 grid w-full rounded-4xl max-w-lg translate-x-[-50%] translate-y-[-50%] bg-Colors-Background-Normal-Primary-Default shadow-modal-default duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-cc-Focus-Rings-Brand-default focus-visible:ring-offset-1", className)
|
|
5162
5167
|
}, props))
|
|
5163
5168
|
]
|
|
5164
5169
|
});
|
|
@@ -5462,7 +5467,7 @@ var PopoverContent = React8.forwardRef(function(_param, ref) {
|
|
|
5462
5467
|
arrowPadding: arrowPadding,
|
|
5463
5468
|
side: side,
|
|
5464
5469
|
forceMount: true,
|
|
5465
|
-
className: cn("relative z-[49] mx-4 w-fit max-w-72 rounded-
|
|
5470
|
+
className: cn("relative z-[49] mx-4 w-fit max-w-72 rounded-md border border-Colors-Border-Opaque p-3 text-left text-xs shadow-modal-default outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 [&[data-state=open]>span]:animate-none", variant === "default" ? "bg-cc-Tooltip-bg-default text-cc-Tooltip-fg-default border border-cc-Tooltip-border-default" : "bg-Colors-Utility-Lake-Blue-50 text-Colors-Text-Static-White", className)
|
|
5466
5471
|
}, props), {
|
|
5467
5472
|
children: [
|
|
5468
5473
|
children,
|
|
@@ -5641,7 +5646,7 @@ var TooltipContent = React9.forwardRef(function(_param, ref) {
|
|
|
5641
5646
|
sideOffset: sideOffset,
|
|
5642
5647
|
alignOffset: alignOffset,
|
|
5643
5648
|
side: side,
|
|
5644
|
-
className: cn("relative z-[49] mx-4 w-fit max-w-72 rounded-
|
|
5649
|
+
className: cn("relative z-[49] mx-4 w-fit max-w-72 rounded-md px-3 py-2 text-left text-xs shadow-modal-default", "outline-none delay-0 data-[state=open]:animate-in data-[state=open]:fade-in-0 [&[data-state=open]>span]:animate-none", "data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 [&[data-state=delayed-open]>span]:animate-none", "data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95", "data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", variant === "default" ? "bg-cc-Tooltip-bg-default text-cc-Tooltip-fg-default border border-cc-Tooltip-border-default" : "bg-Colors-Utility-Lake-Blue-50 text-cc-Tooltip-fg-default", className)
|
|
5645
5650
|
}, props), {
|
|
5646
5651
|
children: [
|
|
5647
5652
|
props.children,
|
|
@@ -5657,87 +5662,83 @@ var TooltipContent = React9.forwardRef(function(_param, ref) {
|
|
|
5657
5662
|
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
|
5658
5663
|
// src/components/button/icon-button.styles.ts
|
|
5659
5664
|
import { cva as cva6 } from "class-variance-authority";
|
|
5660
|
-
var
|
|
5661
|
-
|
|
5662
|
-
|
|
5663
|
-
|
|
5664
|
-
|
|
5665
|
-
|
|
5666
|
-
|
|
5667
|
-
|
|
5668
|
-
|
|
5669
|
-
|
|
5670
|
-
|
|
5671
|
-
|
|
5672
|
-
|
|
5673
|
-
|
|
5674
|
-
|
|
5675
|
-
|
|
5676
|
-
|
|
5677
|
-
|
|
5678
|
-
|
|
5679
|
-
|
|
5680
|
-
|
|
5681
|
-
|
|
5682
|
-
|
|
5683
|
-
|
|
5684
|
-
compoundVariants: [
|
|
5685
|
-
{
|
|
5686
|
-
variant: "primary",
|
|
5687
|
-
color: "default",
|
|
5688
|
-
className: "bg-cc-Button-Primary-bg-default text-cc-Button-Primary-fg-default hover:bg-cc-Button-Primary-bg-hover active:bg-cc-Button-Primary-bg-active disabled:bg-cc-Button-Primary-bg-disabled"
|
|
5689
|
-
},
|
|
5690
|
-
{
|
|
5691
|
-
variant: "primary",
|
|
5692
|
-
color: "brand",
|
|
5693
|
-
className: "text-cc-Icon-Button-Brand-fg-default bg-cc-Icon-Button-Brand-bg-default hover:bg-cc-Icon-Button-Brand-bg-hover active:bg-cc-Icon-Button-Brand-bg-active disabled:bg-cc-Icon-Button-Brand-bg-disabled disabled:text-cc-Icon-Button-Brand-fg-alt"
|
|
5694
|
-
},
|
|
5695
|
-
{
|
|
5696
|
-
variant: "primary",
|
|
5697
|
-
color: "error",
|
|
5698
|
-
className: "text-cc-Button-Error-Primary-fg-default bg-cc-Button-Error-Primary-bg-default hover:bg-cc-Button-Error-Primary-bg-hover active:bg-cc-Button-Error-Primary-bg-active disabled:bg-cc-Button-Error-Primary-bg-disabled"
|
|
5699
|
-
},
|
|
5700
|
-
{
|
|
5701
|
-
variant: "secondary",
|
|
5702
|
-
color: "default",
|
|
5703
|
-
className: "border-cc-Button-Secondary-border-default text-cc-Button-Secondary-fg-default bg-cc-Button-Secondary-bg-default hover:bg-cc-Button-Secondary-bg-hover active:bg-cc-Button-Secondary-bg-active disabled:text-cc-Button-Secondary-fg-alt disabled:border-cc-Button-Secondary-border-disabled"
|
|
5704
|
-
},
|
|
5705
|
-
{
|
|
5706
|
-
variant: "tertiary",
|
|
5707
|
-
color: "default",
|
|
5708
|
-
className: "border-cc-Button-Tertiary-border-default text-cc-Button-Tertiary-fg-default bg-cc-Button-Tertiary-bg-default hover:bg-cc-Button-Tertiary-bg-hover hover:border-cc-Button-Tertiary-border-alt focus:shadow-button-tertiary-shadow active:bg-cc-Button-Tertiary-bg-active disabled:text-cc-Button-Tertiary-fg-alt"
|
|
5709
|
-
},
|
|
5710
|
-
{
|
|
5711
|
-
variant: "secondary",
|
|
5712
|
-
color: "error",
|
|
5713
|
-
className: "border-cc-Button-Error-Secondary-border-default text-cc-Button-Error-Secondary-fg-default bg-cc-Button-Error-Secondary-bg-default hover:bg-cc-Button-Error-Secondary-bg-hover active:bg-cc-Button-Error-Secondary-bg-active disabled:text-cc-Button-Error-Secondary-fg-alt disabled:border-cc-Button-Error-Secondary-border-disabled"
|
|
5714
|
-
},
|
|
5715
|
-
{
|
|
5716
|
-
variant: "secondary",
|
|
5717
|
-
color: "gray",
|
|
5718
|
-
className: "text-Colors-Foreground-Subtle hover:bg-Colors-Background-Normal-Primary-Hover"
|
|
5719
|
-
},
|
|
5720
|
-
{
|
|
5721
|
-
variant: "plain",
|
|
5722
|
-
color: "default",
|
|
5723
|
-
className: "text-cc-Button-Plain-fg-default hover:bg-cc-Button-Plain-bg-hover focus:shadow-rings-brand active:bg-cc-Button-Plain-bg-active disabled:text-cc-Button-Plain-fg-alt"
|
|
5724
|
-
},
|
|
5725
|
-
{
|
|
5726
|
-
variant: "plain",
|
|
5727
|
-
color: "gray",
|
|
5728
|
-
className: "text-cc-Icon-Button-Plain-Gray-fg-default bg-cc-Button-Plain-Brand-bg-default hover:bg-cc-Button-Plain-Brand-bg-hover active:bg-cc-Button-Plain-Brand-bg-active disabled:text-cc-Button-Plain-Gray-fg-alt"
|
|
5729
|
-
},
|
|
5730
|
-
{
|
|
5731
|
-
variant: "plain",
|
|
5732
|
-
color: "error",
|
|
5733
|
-
className: "text-cc-Button-Error-Secondary-fg-default bg-cc-Button-Plain-bg-default hover:bg-cc-Button-Error-Secondary-bg-hover active:bg-cc-Button-Error-Secondary-bg-active disabled:text-cc-Button-Plain-fg-default"
|
|
5734
|
-
}
|
|
5735
|
-
],
|
|
5736
|
-
defaultVariants: {
|
|
5665
|
+
var BASE_STYLES = "shrink-0 inline-flex items-center justify-center whitespace-nowrap rounded-sm font-medium transition-colors focus-visible:outline-none focus-visible:shadow-none focus-visible:ring-2 focus-visible:ring-cc-Focus-Rings-Brand-default focus-visible:ring-offset-1 disabled:pointer-events-none disabled:opacity-30 disabled:shadow-none";
|
|
5666
|
+
var VARIANT_STYLES = {
|
|
5667
|
+
primary: "",
|
|
5668
|
+
secondary: "border shadow-none",
|
|
5669
|
+
tertiary: "border shadow-none",
|
|
5670
|
+
plain: "",
|
|
5671
|
+
opacity: "backdrop-blur-2xl text-Colors-Text-Static-White bg-Colors-Beta-White-30 border border-Colors-Beta-White-12 shadow-none hover:bg-Colors-Beta-White-40 focus:shadow-cc-Focus-Rings-Brand-default active:bg-Colors-Beta-White-50 disabled:bg-Colors-Beta-White-60 disabled:text-Colors-Beta-White-80",
|
|
5672
|
+
solid: "shadow-none text-Colors-Text-Subtle bg-cc-Button-Solid-bg-default border border-cc-Button-Solid-border-default hover:bg-cc-Button-Solid-bg-hover hover:border-cc-Button-Solid-border-alt active:bg-cc-Button-Solid-bg-active disabled:text-cc-Button-Solid-fg-alt",
|
|
5673
|
+
static: "text-cc-Button-Static-fg-default border-cc-Button-Static-border-default bg-cc-Button-Static-bg-default hover:bg-cc-Button-Static-bg-hover active:bg-cc-Button-Static-bg-active disabled:bg-cc-Button-Static-bg-disabled disabled:text-cc-Button-Static-fg-alt"
|
|
5674
|
+
};
|
|
5675
|
+
var COLOR_STYLES = {
|
|
5676
|
+
default: "",
|
|
5677
|
+
brand: "",
|
|
5678
|
+
error: "",
|
|
5679
|
+
gray: ""
|
|
5680
|
+
};
|
|
5681
|
+
var SIZE_STYLES = {
|
|
5682
|
+
xs: "h-5 w-5 text-xs",
|
|
5683
|
+
sm: "h-7 w-7 text-sm",
|
|
5684
|
+
md: "h-9 w-9 text-sm",
|
|
5685
|
+
lg: "h-11 w-11"
|
|
5686
|
+
};
|
|
5687
|
+
var COMPOUND_VARIANTS = [
|
|
5688
|
+
{
|
|
5737
5689
|
variant: "primary",
|
|
5738
5690
|
color: "brand",
|
|
5739
|
-
|
|
5691
|
+
className: "text-cc-Icon-Button-Brand-fg-default bg-cc-Icon-Button-Brand-bg-default hover:bg-cc-Icon-Button-Brand-bg-hover active:bg-cc-Icon-Button-Brand-bg-active disabled:bg-cc-Icon-Button-Brand-bg-disabled disabled:text-cc-Icon-Button-Brand-fg-alt"
|
|
5692
|
+
},
|
|
5693
|
+
{
|
|
5694
|
+
variant: "primary",
|
|
5695
|
+
color: "error",
|
|
5696
|
+
className: "text-cc-Button-Error-Primary-fg-default bg-cc-Button-Error-Primary-bg-default hover:bg-cc-Button-Error-Primary-bg-hover active:bg-cc-Button-Error-Primary-bg-active disabled:bg-cc-Button-Error-Primary-bg-disabled"
|
|
5697
|
+
},
|
|
5698
|
+
{
|
|
5699
|
+
variant: "secondary",
|
|
5700
|
+
color: "default",
|
|
5701
|
+
className: "border-cc-Button-Secondary-border-default text-cc-Button-Secondary-fg-default bg-cc-Button-Secondary-bg-default hover:bg-cc-Button-Secondary-bg-hover active:bg-cc-Button-Secondary-bg-active disabled:text-cc-Button-Secondary-fg-alt disabled:border-cc-Button-Secondary-border-disabled"
|
|
5702
|
+
},
|
|
5703
|
+
{
|
|
5704
|
+
variant: "secondary",
|
|
5705
|
+
color: "error",
|
|
5706
|
+
className: "border-cc-Button-Error-Secondary-border-default text-cc-Button-Error-Secondary-fg-default bg-cc-Button-Error-Secondary-bg-default hover:bg-cc-Button-Error-Secondary-bg-hover active:bg-cc-Button-Error-Secondary-bg-active disabled:text-cc-Button-Error-Secondary-fg-alt disabled:border-cc-Button-Error-Secondary-border-disabled"
|
|
5707
|
+
},
|
|
5708
|
+
{
|
|
5709
|
+
variant: "tertiary",
|
|
5710
|
+
color: "default",
|
|
5711
|
+
className: "border-cc-Button-Tertiary-border-default text-cc-Button-Tertiary-fg-default bg-cc-Button-Tertiary-bg-default hover:bg-cc-Button-Tertiary-bg-hover hover:border-cc-Button-Tertiary-border-alt focus:shadow-button-tertiary-shadow active:bg-cc-Button-Tertiary-bg-active disabled:text-cc-Button-Tertiary-fg-alt"
|
|
5712
|
+
},
|
|
5713
|
+
{
|
|
5714
|
+
variant: "plain",
|
|
5715
|
+
color: "default",
|
|
5716
|
+
className: "text-cc-Button-Plain-fg-default hover:bg-cc-Button-Plain-bg-hover focus:shadow-rings-brand active:bg-cc-Button-Plain-bg-active disabled:text-cc-Button-Plain-fg-alt"
|
|
5717
|
+
},
|
|
5718
|
+
{
|
|
5719
|
+
variant: "plain",
|
|
5720
|
+
color: "gray",
|
|
5721
|
+
className: "text-cc-Icon-Button-Plain-Gray-fg-default bg-cc-Button-Plain-Brand-bg-default hover:bg-cc-Button-Plain-Brand-bg-hover active:bg-cc-Button-Plain-Brand-bg-active disabled:text-cc-Button-Plain-Gray-fg-alt"
|
|
5722
|
+
},
|
|
5723
|
+
{
|
|
5724
|
+
variant: "plain",
|
|
5725
|
+
color: "error",
|
|
5726
|
+
className: "text-cc-Button-Error-Secondary-fg-default bg-cc-Button-Plain-bg-default hover:bg-cc-Button-Error-Secondary-bg-hover active:bg-cc-Button-Error-Secondary-bg-active disabled:text-cc-Button-Plain-fg-default"
|
|
5740
5727
|
}
|
|
5728
|
+
];
|
|
5729
|
+
var DEFAULT_VARIANTS = {
|
|
5730
|
+
variant: "primary",
|
|
5731
|
+
color: "default",
|
|
5732
|
+
size: "lg"
|
|
5733
|
+
};
|
|
5734
|
+
var iconButtonVariants = cva6(BASE_STYLES, {
|
|
5735
|
+
variants: {
|
|
5736
|
+
variant: VARIANT_STYLES,
|
|
5737
|
+
color: COLOR_STYLES,
|
|
5738
|
+
size: SIZE_STYLES
|
|
5739
|
+
},
|
|
5740
|
+
compoundVariants: COMPOUND_VARIANTS,
|
|
5741
|
+
defaultVariants: DEFAULT_VARIANTS
|
|
5741
5742
|
});
|
|
5742
5743
|
var iconSizeVariants = {
|
|
5743
5744
|
xs: "w-3 h-3",
|
|
@@ -5747,8 +5748,16 @@ var iconSizeVariants = {
|
|
|
5747
5748
|
};
|
|
5748
5749
|
// src/components/button/icon-button.tsx
|
|
5749
5750
|
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
5750
|
-
|
|
5751
|
-
|
|
5751
|
+
function getDefaultColorForVariant(variant) {
|
|
5752
|
+
switch(variant){
|
|
5753
|
+
case "primary":
|
|
5754
|
+
return "brand";
|
|
5755
|
+
default:
|
|
5756
|
+
return "default";
|
|
5757
|
+
}
|
|
5758
|
+
}
|
|
5759
|
+
function createIconButtonWithVariant(props, ref) {
|
|
5760
|
+
var iconClassName = props.iconClassName, className = props.className, _props_variant = props.variant, variant = _props_variant === void 0 ? "primary" : _props_variant, _props_size = props.size, size = _props_size === void 0 ? "lg" : _props_size, userProvidedColor = props.color, _props_asChild = props.asChild, asChild = _props_asChild === void 0 ? false : _props_asChild, _props_loading = props.loading, loading = _props_loading === void 0 ? false : _props_loading, children = props.children, IconEle = props.icon, disabled = props.disabled, hoverText = props.hoverText, hoverSide = props.hoverSide, passProps = _object_without_properties(props, [
|
|
5752
5761
|
"iconClassName",
|
|
5753
5762
|
"className",
|
|
5754
5763
|
"variant",
|
|
@@ -5762,6 +5771,7 @@ var IconButton = React10.forwardRef(function(_param, ref) {
|
|
|
5762
5771
|
"hoverText",
|
|
5763
5772
|
"hoverSide"
|
|
5764
5773
|
]);
|
|
5774
|
+
var color = userProvidedColor || getDefaultColorForVariant(variant);
|
|
5765
5775
|
var isMobile2 = useMedia2("(max-width: 768px)");
|
|
5766
5776
|
var Comp = asChild ? Slot2 : "button";
|
|
5767
5777
|
var iconCls = cn(iconSizeVariants[size], iconClassName);
|
|
@@ -5790,6 +5800,9 @@ var IconButton = React10.forwardRef(function(_param, ref) {
|
|
|
5790
5800
|
}) : null
|
|
5791
5801
|
}))
|
|
5792
5802
|
});
|
|
5803
|
+
}
|
|
5804
|
+
var IconButton = React10.forwardRef(function(props, ref) {
|
|
5805
|
+
return createIconButtonWithVariant(props, ref);
|
|
5793
5806
|
});
|
|
5794
5807
|
// src/components/audio-playing.tsx
|
|
5795
5808
|
import Lottie from "lottie-web";
|
|
@@ -5924,11 +5937,11 @@ var avatarVariants = cva7("relative flex shrink-0 overflow-hidden bg-Colors-Back
|
|
|
5924
5937
|
size: {
|
|
5925
5938
|
xs: "w-5 h-5 rounded",
|
|
5926
5939
|
// 20 4
|
|
5927
|
-
sm: "w-6 h-6 rounded-
|
|
5940
|
+
sm: "w-6 h-6 rounded-sm",
|
|
5928
5941
|
// 24 6
|
|
5929
|
-
md: "w-8 h-8 rounded-
|
|
5942
|
+
md: "w-8 h-8 rounded-md",
|
|
5930
5943
|
// 32 8
|
|
5931
|
-
lg: "w-9 h-9 rounded-
|
|
5944
|
+
lg: "w-9 h-9 rounded-md",
|
|
5932
5945
|
// 36 8
|
|
5933
5946
|
xl: "w-12 h-12 rounded-xl",
|
|
5934
5947
|
// 48 10 no
|
|
@@ -6073,7 +6086,7 @@ var DropdownMenuSubTrigger = React13.forwardRef(function(_param, ref) {
|
|
|
6073
6086
|
]);
|
|
6074
6087
|
return /* @__PURE__ */ jsxs7(DropdownMenuPrimitive.SubTrigger, _object_spread_props(_object_spread({
|
|
6075
6088
|
ref: ref,
|
|
6076
|
-
className: cn("flex cursor-default select-none items-center rounded-
|
|
6089
|
+
className: cn("flex cursor-default select-none items-center rounded-md px-3 py-2 outline-none focus:bg-Colors-Background-Neutral-Primary-Default data-[state=open]:bg-Colors-Background-Neutral-Primary-Default", inset && "pl-8", className)
|
|
6077
6090
|
}, props), {
|
|
6078
6091
|
children: [
|
|
6079
6092
|
children,
|
|
@@ -6113,7 +6126,7 @@ var DropdownMenuItem = React13.forwardRef(function(_param, ref) {
|
|
|
6113
6126
|
]);
|
|
6114
6127
|
return /* @__PURE__ */ jsx19(DropdownMenuPrimitive.Item, _object_spread({
|
|
6115
6128
|
ref: ref,
|
|
6116
|
-
className: cn("relative flex cursor-default select-none items-center rounded-
|
|
6129
|
+
className: cn("relative flex cursor-default select-none items-center rounded-md px-2 py-1 outline-none transition-colors focus:bg-Colors-Background-Neutral-Primary-Default data-[disabled]:pointer-events-none data-[disabled]:opacity-30", inset && "pl-8", className)
|
|
6117
6130
|
}, props));
|
|
6118
6131
|
});
|
|
6119
6132
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
@@ -6125,7 +6138,7 @@ var DropdownMenuCheckboxItem = React13.forwardRef(function(_param, ref) {
|
|
|
6125
6138
|
]);
|
|
6126
6139
|
return /* @__PURE__ */ jsxs7(DropdownMenuPrimitive.CheckboxItem, _object_spread_props(_object_spread({
|
|
6127
6140
|
ref: ref,
|
|
6128
|
-
className: cn("relative flex cursor-default select-none items-center rounded-
|
|
6141
|
+
className: cn("relative flex cursor-default select-none items-center rounded-xxs py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-slate-100 focus:text-slate-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-30", className),
|
|
6129
6142
|
checked: checked
|
|
6130
6143
|
}, props), {
|
|
6131
6144
|
children: [
|
|
@@ -6149,7 +6162,7 @@ var DropdownMenuRadioItem = React13.forwardRef(function(_param, ref) {
|
|
|
6149
6162
|
]);
|
|
6150
6163
|
return /* @__PURE__ */ jsxs7(DropdownMenuPrimitive.RadioItem, _object_spread_props(_object_spread({
|
|
6151
6164
|
ref: ref,
|
|
6152
|
-
className: cn("relative flex cursor-default select-none items-center rounded-
|
|
6165
|
+
className: cn("relative flex cursor-default select-none items-center rounded-xxs py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-slate-100 focus:text-slate-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-slate-800 dark:focus:text-slate-50", className)
|
|
6153
6166
|
}, props), {
|
|
6154
6167
|
children: [
|
|
6155
6168
|
/* @__PURE__ */ jsx19("span", {
|
|
@@ -6219,13 +6232,13 @@ var CheckIcon = function(param) {
|
|
|
6219
6232
|
})
|
|
6220
6233
|
});
|
|
6221
6234
|
};
|
|
6222
|
-
var checkboxVariants = cva9("peer w-5 h-5 shrink-0 border-[1.5px] border-cc-Check-Box-border-default hover:border-cc-Check-Box-border-hover data-[state=checked]:border-cc-Check-Box-bg-default
|
|
6235
|
+
var checkboxVariants = cva9("peer w-5 h-5 shrink-0 border-[1.5px] border-cc-Check-Box-border-default hover:border-cc-Check-Box-border-hover data-[state=checked]:border-cc-Check-Box-bg-default hover:disabled:border-cc-Check-Box-border-disabled disabled:data-[state=checked]:border-cc-Check-Box-border-default focus-visible:border-cc-Check-Box-border-default focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-cc-Focus-Rings-Brand-default focus-visible:ring-offset-1 disabled:bg-cc-Check-Box-bg-disabled disabled:cursor-not-allowed data-[state=checked]:bg-cc-Check-Box-bg-default data-[state=checked]:text-cc-Check-Box-fg-default hover:data-[state=checked]:bg-cc-Check-Box-bg-hovered disabled:data-[state=checked]:text-cc-Check-Box-fg-alt disabled:data-[state=checked]:bg-cc-Check-Box-bg-disabled rounded-xxs overflow-hidden flex items-center justify-center text-current", {
|
|
6223
6236
|
variants: {
|
|
6224
6237
|
variant: {
|
|
6225
|
-
checkbox: "rounded-
|
|
6238
|
+
checkbox: "rounded-xxs",
|
|
6226
6239
|
circle: "rounded-full",
|
|
6227
|
-
radio: "rounded-full",
|
|
6228
|
-
|
|
6240
|
+
radio: "rounded-full disabled:data-[state=checked]:border-none disabled:data-[state=checked]:bg-cc-Check-Box-border-disabled",
|
|
6241
|
+
static: "rounded-full hover:border-none hover:disabled:border-none !bg-Colors-Beta-Black-12 border-Colors-Beta-White-100 hover:bg-Colors-Beta-Black-20 hover:!border-none hover:disabled:!border-none disabled:border-Colors-Beta-White-80 disabled:data-[state=checked]:border-none disabled:data-[state=checked]:text-cc-Colors-Beta-White-80 disabled:data-[state=checked]:backdrop-blur-2xl"
|
|
6229
6242
|
}
|
|
6230
6243
|
},
|
|
6231
6244
|
defaultVariants: {
|
|
@@ -6253,10 +6266,11 @@ var Checkbox = React14.forwardRef(function(_param, ref) {
|
|
|
6253
6266
|
}))
|
|
6254
6267
|
}, props), {
|
|
6255
6268
|
children: /* @__PURE__ */ jsx21(CheckboxPrimitive.Indicator, {
|
|
6269
|
+
className: cn(variant === "radio" && "[&>div]:data-[disabled]:bg-cc-Check-Box-bg-disabled"),
|
|
6256
6270
|
children: variant === "radio" ? /* @__PURE__ */ jsx21("div", {
|
|
6257
|
-
className: "w-2 h-2
|
|
6271
|
+
className: cn("w-2 h-2 rounded-full")
|
|
6258
6272
|
}) : /* @__PURE__ */ jsx21(CheckIcon, {
|
|
6259
|
-
className: "w-3 h-3 stroke-
|
|
6273
|
+
className: "w-3 h-3 stroke-current"
|
|
6260
6274
|
})
|
|
6261
6275
|
})
|
|
6262
6276
|
})),
|
|
@@ -6292,7 +6306,7 @@ var DialogTrigger = React15.forwardRef(function(_param, ref) {
|
|
|
6292
6306
|
]);
|
|
6293
6307
|
return /* @__PURE__ */ jsx22(DialogPrimitive.Trigger, _object_spread({
|
|
6294
6308
|
ref: ref,
|
|
6295
|
-
className: cn("
|
|
6309
|
+
className: cn("focus-visible:outline-none focus-visible:shadow-none focus-visible:ring-2 focus-visible:ring-cc-Focus-Rings-Brand-default focus-visible:ring-offset-1", className)
|
|
6296
6310
|
}, props));
|
|
6297
6311
|
});
|
|
6298
6312
|
DialogTrigger.displayName = DialogPrimitive.Trigger.displayName;
|
|
@@ -6327,7 +6341,7 @@ var DialogContent = React15.forwardRef(function(_param, ref) {
|
|
|
6327
6341
|
}),
|
|
6328
6342
|
/* @__PURE__ */ jsxs10(DialogPrimitive.Content, _object_spread_props(_object_spread({
|
|
6329
6343
|
ref: ref,
|
|
6330
|
-
className: cn("fixed left-[50%] top-[50%] z-50 grid w-[90%] rounded-4xl max-w-lg translate-x-[-50%] translate-y-[-50%] bg-Colors-Background-Normal-Primary-Default shadow-modal-default duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]
|
|
6344
|
+
className: cn("fixed left-[50%] top-[50%] z-50 grid w-[90%] rounded-4xl max-w-lg translate-x-[-50%] translate-y-[-50%] bg-Colors-Background-Normal-Primary-Default shadow-modal-default duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-cc-Focus-Rings-Brand-default focus-visible:ring-offset-1 focus-visible:outline-0", className)
|
|
6331
6345
|
}, props), {
|
|
6332
6346
|
children: [
|
|
6333
6347
|
children,
|
|
@@ -6398,7 +6412,7 @@ var Command = React16.forwardRef(function(_param, ref) {
|
|
|
6398
6412
|
]);
|
|
6399
6413
|
return /* @__PURE__ */ jsx23(CommandPrimitive, _object_spread({
|
|
6400
6414
|
ref: ref,
|
|
6401
|
-
className: cn("flex h-full w-full flex-col overflow-hidden rounded-
|
|
6415
|
+
className: cn("flex h-full w-full flex-col overflow-hidden rounded-sm bg-white text-slate-950 dark:bg-slate-950 dark:text-slate-50", className)
|
|
6402
6416
|
}, props));
|
|
6403
6417
|
});
|
|
6404
6418
|
Command.displayName = CommandPrimitive.displayName;
|
|
@@ -6429,7 +6443,7 @@ var CommandInput = React16.forwardRef(function(_param, ref) {
|
|
|
6429
6443
|
}),
|
|
6430
6444
|
/* @__PURE__ */ jsx23(CommandPrimitive.Input, _object_spread({
|
|
6431
6445
|
ref: ref,
|
|
6432
|
-
className: cn("flex h-11 w-full rounded-
|
|
6446
|
+
className: cn("flex h-11 w-full rounded-sm bg-transparent py-3 text-sm outline-none placeholder:text-slate-500 disabled:cursor-not-allowed disabled:opacity-50 dark:placeholder:text-slate-400", className)
|
|
6433
6447
|
}, props))
|
|
6434
6448
|
]
|
|
6435
6449
|
});
|
|
@@ -6478,7 +6492,7 @@ var CommandItem = React16.forwardRef(function(_param, ref) {
|
|
|
6478
6492
|
]);
|
|
6479
6493
|
return /* @__PURE__ */ jsx23(CommandPrimitive.Item, _object_spread({
|
|
6480
6494
|
ref: ref,
|
|
6481
|
-
className: cn("relative flex cursor-default select-none items-center rounded-
|
|
6495
|
+
className: cn("relative flex cursor-default select-none items-center rounded-xxs px-2 py-1.5 text-sm outline-none aria-selected:bg-slate-100 aria-selected:text-slate-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:aria-selected:bg-slate-800 dark:aria-selected:text-slate-50", className)
|
|
6482
6496
|
}, props));
|
|
6483
6497
|
});
|
|
6484
6498
|
CommandItem.displayName = CommandPrimitive.Item.displayName;
|
|
@@ -6510,7 +6524,7 @@ var ContextMenuSubTrigger = React17.forwardRef(function(_param, ref) {
|
|
|
6510
6524
|
]);
|
|
6511
6525
|
return /* @__PURE__ */ jsxs12(ContextMenuPrimitive.SubTrigger, _object_spread_props(_object_spread({
|
|
6512
6526
|
ref: ref,
|
|
6513
|
-
className: cn("flex cursor-default select-none items-center rounded-
|
|
6527
|
+
className: cn("flex cursor-default select-none items-center rounded-md py-1 px-2 text-sm outline-none hover:bg-Colors-Background-Normal-Primary-Hover data-[state=open]:bg-slate-100 data-[state=open]:text-slate-900 dark:focus:bg-slate-800 dark:focus:text-slate-50 dark:data-[state=open]:bg-slate-800 dark:data-[state=open]:text-slate-50", inset && "pl-8", className)
|
|
6514
6528
|
}, props), {
|
|
6515
6529
|
children: [
|
|
6516
6530
|
children,
|
|
@@ -6550,7 +6564,7 @@ var ContextMenuItem = React17.forwardRef(function(_param, ref) {
|
|
|
6550
6564
|
]);
|
|
6551
6565
|
return /* @__PURE__ */ jsx24(ContextMenuPrimitive.Item, _object_spread({
|
|
6552
6566
|
ref: ref,
|
|
6553
|
-
className: cn("relative flex cursor-default select-none items-center rounded-
|
|
6567
|
+
className: cn("relative flex cursor-default select-none items-center rounded-md py-1 px-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-30 focus:bg-Colors-Background-Neutral-Primary-Default", inset && "pl-8", className)
|
|
6554
6568
|
}, props));
|
|
6555
6569
|
});
|
|
6556
6570
|
ContextMenuItem.displayName = ContextMenuPrimitive.Item.displayName;
|
|
@@ -6562,7 +6576,7 @@ var ContextMenuCheckboxItem = React17.forwardRef(function(_param, ref) {
|
|
|
6562
6576
|
]);
|
|
6563
6577
|
return /* @__PURE__ */ jsxs12(ContextMenuPrimitive.CheckboxItem, _object_spread_props(_object_spread({
|
|
6564
6578
|
ref: ref,
|
|
6565
|
-
className: cn("relative flex cursor-default select-none items-center rounded-
|
|
6579
|
+
className: cn("relative flex cursor-default select-none items-center rounded-md py-1 px-2 text-sm outline-none hover:bg-Colors-Background-Normal-Primary-Hover data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-slate-800 dark:focus:text-slate-50", className),
|
|
6566
6580
|
checked: checked
|
|
6567
6581
|
}, props), {
|
|
6568
6582
|
children: [
|
|
@@ -6586,7 +6600,7 @@ var ContextMenuRadioItem = React17.forwardRef(function(_param, ref) {
|
|
|
6586
6600
|
]);
|
|
6587
6601
|
return /* @__PURE__ */ jsxs12(ContextMenuPrimitive.RadioItem, _object_spread_props(_object_spread({
|
|
6588
6602
|
ref: ref,
|
|
6589
|
-
className: cn("relative flex cursor-default select-none items-center rounded-
|
|
6603
|
+
className: cn("relative flex cursor-default select-none items-center rounded-md py-1 px-2 text-sm outline-none hover:bg-Colors-Background-Normal-Primary-Hover data-[disabled]:pointer-events-none data-[disabled]:opacity-50", className)
|
|
6590
6604
|
}, props), {
|
|
6591
6605
|
children: [
|
|
6592
6606
|
/* @__PURE__ */ jsx24("span", {
|
|
@@ -7009,10 +7023,10 @@ var Input = React21.forwardRef(function(_param, ref) {
|
|
|
7009
7023
|
variants: {
|
|
7010
7024
|
rounded: {
|
|
7011
7025
|
none: "rounded-none",
|
|
7012
|
-
sm: "rounded-
|
|
7026
|
+
sm: "rounded-xxs",
|
|
7013
7027
|
default: "rounded",
|
|
7014
|
-
md: "rounded-
|
|
7015
|
-
lg: "rounded-
|
|
7028
|
+
md: "rounded-sm",
|
|
7029
|
+
lg: "rounded-md",
|
|
7016
7030
|
xl: "rounded-xl",
|
|
7017
7031
|
"2xl": "rounded-2xl",
|
|
7018
7032
|
"3xl": "rounded-3xl",
|
|
@@ -7051,7 +7065,7 @@ var Input = React21.forwardRef(function(_param, ref) {
|
|
|
7051
7065
|
});
|
|
7052
7066
|
return /* @__PURE__ */ jsx30("input", _object_spread({
|
|
7053
7067
|
type: type,
|
|
7054
|
-
className: cn("flex space-x-2 p-3 text-base text-Colors-Text-Default placeholder:text-Colors-Text-Subtlest
|
|
7068
|
+
className: cn("flex space-x-2 p-3 text-base text-Colors-Text-Default placeholder:text-Colors-Text-Subtlest", "aria-[invalid=true]:border-Colors-Border-Critical aria-[invalid=true]:hover:bg-Colors-Background-Critical-Subtle", "file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:cursor-not-allowed disabled:opacity-30", inputVariants({
|
|
7055
7069
|
rounded: rounded,
|
|
7056
7070
|
size: size,
|
|
7057
7071
|
border: border,
|
|
@@ -7259,7 +7273,7 @@ var Menubar = React23.forwardRef(function(_param, ref) {
|
|
|
7259
7273
|
]);
|
|
7260
7274
|
return /* @__PURE__ */ jsx33(MenubarPrimitive.Root, _object_spread({
|
|
7261
7275
|
ref: ref,
|
|
7262
|
-
className: cn("flex h-10 items-center space-x-1 rounded-
|
|
7276
|
+
className: cn("flex h-10 items-center space-x-1 rounded-sm border border-slate-200 bg-white p-1 dark:border-slate-800 dark:bg-slate-950", className)
|
|
7263
7277
|
}, props));
|
|
7264
7278
|
});
|
|
7265
7279
|
Menubar.displayName = MenubarPrimitive.Root.displayName;
|
|
@@ -7269,7 +7283,7 @@ var MenubarTrigger = React23.forwardRef(function(_param, ref) {
|
|
|
7269
7283
|
]);
|
|
7270
7284
|
return /* @__PURE__ */ jsx33(MenubarPrimitive.Trigger, _object_spread({
|
|
7271
7285
|
ref: ref,
|
|
7272
|
-
className: cn("flex cursor-default select-none items-center rounded-
|
|
7286
|
+
className: cn("flex cursor-default select-none items-center rounded-xxs px-3 py-1.5 text-sm font-medium outline-none focus:bg-slate-100 focus:text-slate-900 data-[state=open]:bg-slate-100 data-[state=open]:text-slate-900 dark:focus:bg-slate-800 dark:focus:text-slate-50 dark:data-[state=open]:bg-slate-800 dark:data-[state=open]:text-slate-50", className)
|
|
7273
7287
|
}, props));
|
|
7274
7288
|
});
|
|
7275
7289
|
MenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;
|
|
@@ -7281,7 +7295,7 @@ var MenubarSubTrigger = React23.forwardRef(function(_param, ref) {
|
|
|
7281
7295
|
]);
|
|
7282
7296
|
return /* @__PURE__ */ jsxs16(MenubarPrimitive.SubTrigger, _object_spread_props(_object_spread({
|
|
7283
7297
|
ref: ref,
|
|
7284
|
-
className: cn("flex cursor-default select-none items-center rounded-
|
|
7298
|
+
className: cn("flex cursor-default select-none items-center rounded-xxs px-2 py-1.5 text-sm outline-none focus:bg-slate-100 focus:text-slate-900 data-[state=open]:bg-slate-100 data-[state=open]:text-slate-900 dark:focus:bg-slate-800 dark:focus:text-slate-50 dark:data-[state=open]:bg-slate-800 dark:data-[state=open]:text-slate-50", inset && "pl-8", className)
|
|
7285
7299
|
}, props), {
|
|
7286
7300
|
children: [
|
|
7287
7301
|
children,
|
|
@@ -7298,7 +7312,7 @@ var MenubarSubContent = React23.forwardRef(function(_param, ref) {
|
|
|
7298
7312
|
]);
|
|
7299
7313
|
return /* @__PURE__ */ jsx33(MenubarPrimitive.SubContent, _object_spread({
|
|
7300
7314
|
ref: ref,
|
|
7301
|
-
className: cn("z-50 min-w-[8rem] overflow-hidden rounded-
|
|
7315
|
+
className: cn("z-50 min-w-[8rem] overflow-hidden rounded-sm border border-slate-200 bg-white p-1 text-slate-950 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-slate-800 dark:bg-slate-950 dark:text-slate-50", className)
|
|
7302
7316
|
}, props));
|
|
7303
7317
|
});
|
|
7304
7318
|
MenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;
|
|
@@ -7315,7 +7329,7 @@ var MenubarContent = React23.forwardRef(function(_param, ref) {
|
|
|
7315
7329
|
align: align,
|
|
7316
7330
|
alignOffset: alignOffset,
|
|
7317
7331
|
sideOffset: sideOffset,
|
|
7318
|
-
className: cn("z-50 min-w-[12rem] overflow-hidden rounded-
|
|
7332
|
+
className: cn("z-50 min-w-[12rem] overflow-hidden rounded-sm border border-slate-200 bg-white p-1 text-slate-950 shadow-md data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-slate-800 dark:bg-slate-950 dark:text-slate-50", className)
|
|
7319
7333
|
}, props))
|
|
7320
7334
|
});
|
|
7321
7335
|
});
|
|
@@ -7327,7 +7341,7 @@ var MenubarItem = React23.forwardRef(function(_param, ref) {
|
|
|
7327
7341
|
]);
|
|
7328
7342
|
return /* @__PURE__ */ jsx33(MenubarPrimitive.Item, _object_spread({
|
|
7329
7343
|
ref: ref,
|
|
7330
|
-
className: cn("relative flex cursor-default select-none items-center rounded-
|
|
7344
|
+
className: cn("relative flex cursor-default select-none items-center rounded-xxs px-2 py-1.5 text-sm outline-none focus:bg-slate-100 focus:text-slate-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-slate-800 dark:focus:text-slate-50", inset && "pl-8", className)
|
|
7331
7345
|
}, props));
|
|
7332
7346
|
});
|
|
7333
7347
|
MenubarItem.displayName = MenubarPrimitive.Item.displayName;
|
|
@@ -7339,7 +7353,7 @@ var MenubarCheckboxItem = React23.forwardRef(function(_param, ref) {
|
|
|
7339
7353
|
]);
|
|
7340
7354
|
return /* @__PURE__ */ jsxs16(MenubarPrimitive.CheckboxItem, _object_spread_props(_object_spread({
|
|
7341
7355
|
ref: ref,
|
|
7342
|
-
className: cn("relative flex cursor-default select-none items-center rounded-
|
|
7356
|
+
className: cn("relative flex cursor-default select-none items-center rounded-xxs py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-slate-100 focus:text-slate-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-slate-800 dark:focus:text-slate-50", className),
|
|
7343
7357
|
checked: checked
|
|
7344
7358
|
}, props), {
|
|
7345
7359
|
children: [
|
|
@@ -7363,7 +7377,7 @@ var MenubarRadioItem = React23.forwardRef(function(_param, ref) {
|
|
|
7363
7377
|
]);
|
|
7364
7378
|
return /* @__PURE__ */ jsxs16(MenubarPrimitive.RadioItem, _object_spread_props(_object_spread({
|
|
7365
7379
|
ref: ref,
|
|
7366
|
-
className: cn("relative flex cursor-default select-none items-center rounded-
|
|
7380
|
+
className: cn("relative flex cursor-default select-none items-center rounded-xxs py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-slate-100 focus:text-slate-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-slate-800 dark:focus:text-slate-50", className)
|
|
7367
7381
|
}, props), {
|
|
7368
7382
|
children: [
|
|
7369
7383
|
/* @__PURE__ */ jsx33("span", {
|
|
@@ -7854,9 +7868,9 @@ ModalTitle.displayName = DialogPrimitive2.Title.displayName;
|
|
|
7854
7868
|
var modalVariants = cva13("", {
|
|
7855
7869
|
variants: {
|
|
7856
7870
|
size: {
|
|
7857
|
-
lg: "w-[
|
|
7858
|
-
md: "w-[620px] max-h-[
|
|
7859
|
-
sm: "w-[380px] max-h-[
|
|
7871
|
+
lg: "w-[720px] max-h-[600px]",
|
|
7872
|
+
md: "w-[620px] max-h-[600px]",
|
|
7873
|
+
sm: "w-[380px] max-h-[600px]"
|
|
7860
7874
|
},
|
|
7861
7875
|
zIndex: {
|
|
7862
7876
|
9: "z-[9]",
|
|
@@ -8146,7 +8160,7 @@ import { cva as cva14 } from "class-variance-authority";
|
|
|
8146
8160
|
import * as React28 from "react";
|
|
8147
8161
|
import { useEffect as useEffect9 } from "react";
|
|
8148
8162
|
import { jsx as jsx36, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
8149
|
-
var searchBarVariants = cva14("rounded-
|
|
8163
|
+
var searchBarVariants = cva14("rounded-sm", {
|
|
8150
8164
|
variants: {
|
|
8151
8165
|
size: {
|
|
8152
8166
|
md: "h-11",
|
|
@@ -10681,7 +10695,7 @@ var RadioGroupItem = React30.forwardRef(function(_param, ref) {
|
|
|
10681
10695
|
]);
|
|
10682
10696
|
return /* @__PURE__ */ jsx42(RadioGroupPrimitive.Item, _object_spread_props(_object_spread({
|
|
10683
10697
|
ref: ref,
|
|
10684
|
-
className: cn("aspect-square h-5 w-5 rounded-full border-[1.5px] border-Colors-Border-Active text-transparent aria-checked:border-[6px] aria-checked:border-Colors-Utility-Lake-Blue-40
|
|
10698
|
+
className: cn("aspect-square h-5 w-5 rounded-full border-[1.5px] border-Colors-Border-Active text-transparent aria-checked:border-[6px] aria-checked:border-Colors-Utility-Lake-Blue-40 focus:outline-none focus-visible:ring-2 focus-visible:ring-cc-Focus-Rings-Brand-default focus-visible:ring-offset-1 disabled:cursor-not-allowed disabled:opacity-30", className)
|
|
10685
10699
|
}, props), {
|
|
10686
10700
|
children: /* @__PURE__ */ jsx42(RadioGroupPrimitive.Indicator, {
|
|
10687
10701
|
className: "flex items-center justify-center",
|
|
@@ -10962,7 +10976,7 @@ function SecondaryNavigationBar(param) {
|
|
|
10962
10976
|
icons && icons.map(function(icon, index) {
|
|
10963
10977
|
return /* @__PURE__ */ jsx46(IconButton, {
|
|
10964
10978
|
variant: !hasBackground ? "tertiary" : "plain",
|
|
10965
|
-
color:
|
|
10979
|
+
color: "default",
|
|
10966
10980
|
size: "md",
|
|
10967
10981
|
icon: icon.icon,
|
|
10968
10982
|
onClick: icon.onClick
|
|
@@ -11015,7 +11029,6 @@ function SecondaryNavigationBar(param) {
|
|
|
11015
11029
|
"aria-label": clearText || "Clear Filters",
|
|
11016
11030
|
size: "md",
|
|
11017
11031
|
variant: "primary",
|
|
11018
|
-
color: "default",
|
|
11019
11032
|
onClick: onClear,
|
|
11020
11033
|
children: /* @__PURE__ */ jsx46("div", {
|
|
11021
11034
|
className: "relative",
|
|
@@ -11084,7 +11097,7 @@ var SelectTrigger = React33.forwardRef(function(_param, ref) {
|
|
|
11084
11097
|
]);
|
|
11085
11098
|
return /* @__PURE__ */ jsxs26(SelectPrimitive.Trigger, _object_spread_props(_object_spread({
|
|
11086
11099
|
ref: ref,
|
|
11087
|
-
className: cn("flex h-10 w-full items-center justify-between rounded-
|
|
11100
|
+
className: cn("flex h-10 w-full items-center justify-between rounded-sm border border-Colors-Border-Default bg-Colors-Background-Neutral-On-Surface-Default text-Colors-Text-Default text-sm p-3 focus:shadow-cc-Focus-Rings-Brand-default placeholder:text-Colors-Text-Subtlest focus:outline-none focus:ring-0 focus:ring-offset-0 disabled:cursor-not-allowed disabled:opacity-30 [&>span]:line-clamp-1 [&>.select-chevron]:aria-expanded:rotate-180", className)
|
|
11088
11101
|
}, props), {
|
|
11089
11102
|
children: [
|
|
11090
11103
|
children,
|
|
@@ -11135,7 +11148,7 @@ var SelectContent = React33.forwardRef(function(_param, ref) {
|
|
|
11135
11148
|
return /* @__PURE__ */ jsx47(SelectPrimitive.Portal, {
|
|
11136
11149
|
children: /* @__PURE__ */ jsx47(SelectPrimitive.Content, _object_spread_props(_object_spread({
|
|
11137
11150
|
ref: ref,
|
|
11138
|
-
className: cn("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-
|
|
11151
|
+
className: cn("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-sm border border-Colors-Border-Opaque bg-Colors-Background-Normal-Primary-Default text-Colors-Text-Default shadow-cc-Shadows-Modal-default data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", className),
|
|
11139
11152
|
position: position
|
|
11140
11153
|
}, props), {
|
|
11141
11154
|
children: /* @__PURE__ */ jsx47(SelectPrimitive.Viewport, {
|
|
@@ -11164,7 +11177,7 @@ function SelectIcon(props) {
|
|
|
11164
11177
|
return /* @__PURE__ */ jsx47(SelectPrimitive.Icon, {
|
|
11165
11178
|
children: typeof icon === "string" ? // 如果是字符串URL,作为背景图片显示
|
|
11166
11179
|
/* @__PURE__ */ jsx47("div", {
|
|
11167
|
-
className: cn("aspect-[20/20] w-5 h-5 relative bg-cover bg-no-repeat rounded-
|
|
11180
|
+
className: cn("aspect-[20/20] w-5 h-5 relative bg-cover bg-no-repeat rounded-sm overflow-hidden mr-1.5", critical && "text-Colors-Text-Critical-Default"),
|
|
11168
11181
|
style: {
|
|
11169
11182
|
backgroundImage: "url('".concat(icon, "')")
|
|
11170
11183
|
}
|
|
@@ -11191,7 +11204,7 @@ var SelectItem = React33.forwardRef(function(_param, ref) {
|
|
|
11191
11204
|
]);
|
|
11192
11205
|
return /* @__PURE__ */ jsxs26(SelectPrimitive.Item, _object_spread_props(_object_spread({
|
|
11193
11206
|
ref: ref,
|
|
11194
|
-
className: cn("relative flex justify-between w-full text-sm cursor-pointer select-none items-center rounded-
|
|
11207
|
+
className: cn("relative flex justify-between w-full text-sm cursor-pointer select-none items-center rounded-sm py-1 px-1.5 outline-none", "bg-Colors-Background-Normal-Secondary-Alt hover:bg-Colors-Background-Normal-Primary-Hover focus:bg-Colors-Background-Neutral-Primary-Default data-[disabled]:opacity-30 data-[disabled]:cursor-not-allowed", critical ? "text-Colors-Text-Critical-Default" : "focus:text-Colors-Text-Default", className)
|
|
11195
11208
|
}, props), {
|
|
11196
11209
|
children: [
|
|
11197
11210
|
/* @__PURE__ */ jsxs26("span", {
|
|
@@ -11280,7 +11293,7 @@ var SheetContent = React34.forwardRef(function(_param, ref) {
|
|
|
11280
11293
|
children: [
|
|
11281
11294
|
children,
|
|
11282
11295
|
/* @__PURE__ */ jsxs27(SheetPrimitive.Close, {
|
|
11283
|
-
className: "absolute right-4 top-4 rounded-
|
|
11296
|
+
className: "absolute right-4 top-4 rounded-xxs opacity-70 ring-offset-white transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-slate-950 focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-slate-100 dark:ring-offset-slate-950 dark:focus:ring-slate-300 dark:data-[state=open]:bg-slate-800",
|
|
11284
11297
|
children: [
|
|
11285
11298
|
/* @__PURE__ */ jsx48(X2, {
|
|
11286
11299
|
className: "h-4 w-4"
|
|
@@ -11343,7 +11356,7 @@ function Skeleton(_param) {
|
|
|
11343
11356
|
"animate"
|
|
11344
11357
|
]);
|
|
11345
11358
|
return /* @__PURE__ */ jsx49("div", _object_spread({
|
|
11346
|
-
className: cn("rounded-
|
|
11359
|
+
className: cn("rounded-sm bg-Colors-Background-Normal-Secondary-Default", className, animate && "animate-pulse")
|
|
11347
11360
|
}, props));
|
|
11348
11361
|
}
|
|
11349
11362
|
// src/components/slider.tsx
|
|
@@ -11356,7 +11369,7 @@ var Slider = React35.forwardRef(function(_param, ref) {
|
|
|
11356
11369
|
"size"
|
|
11357
11370
|
]);
|
|
11358
11371
|
return /* @__PURE__ */ jsx50("div", {
|
|
11359
|
-
className: "w-full p-3 flex justify-center items-center h-10 rounded-
|
|
11372
|
+
className: "w-full p-3 flex justify-center items-center h-10 rounded-md border border-Colors-Border-Default bg-Colors-Background-Normal-Primary-Active shadow-background-default text-sm text-Colors-Text-Default hover:border-Colors-Border-Hover hover:bg-Colors-Foreground-Subtle aria-[invalid=true]:border-Colors-Border-Critical aria-[invalid=true]:hover:border-Colors-Border-Critical aria-[invalid=true]:hover:bg-Colors-Utility-Terracotta-5 aria-[invalid=true]:focus-visible:ring-error file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-Colors-Text-Subtler focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-cc-Focus-Rings-Brand-default focus-visible:ring-offset-1 disabled:cursor-not-allowed disabled:opacity-30",
|
|
11360
11373
|
children: /* @__PURE__ */ jsxs28(SliderPrimitive.Root, _object_spread_props(_object_spread({
|
|
11361
11374
|
ref: ref,
|
|
11362
11375
|
className: cn("relative flex w-full touch-none select-none items-center", className)
|
|
@@ -11369,7 +11382,7 @@ var Slider = React35.forwardRef(function(_param, ref) {
|
|
|
11369
11382
|
})
|
|
11370
11383
|
}),
|
|
11371
11384
|
/* @__PURE__ */ jsx50(SliderPrimitive.Thumb, {
|
|
11372
|
-
className: cn("block rounded-full border-Colors-Utility-Lake-Blue-40 bg-Colors-Background-Normal-Primary-Default
|
|
11385
|
+
className: cn("block rounded-full border-Colors-Utility-Lake-Blue-40 bg-Colors-Background-Normal-Primary-Default transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-cc-Focus-Rings-Brand-default focus-visible:ring-offset-1 data-[disabled]:pointer-events-none data-[disabled]:opacity-30", size === "sm" ? "w-2 h-2 border-[1.5px]" : "w-5 h-5 border-[3px]")
|
|
11373
11386
|
})
|
|
11374
11387
|
]
|
|
11375
11388
|
}))
|
|
@@ -11394,7 +11407,7 @@ var SliderSingle = React35.forwardRef(function(_param, ref) {
|
|
|
11394
11407
|
className: "flex w-full items-center space-x-1.5",
|
|
11395
11408
|
children: [
|
|
11396
11409
|
/* @__PURE__ */ jsx50("div", {
|
|
11397
|
-
className: cn("w-full p-3 flex justify-center items-center h-10 rounded-
|
|
11410
|
+
className: cn("w-full p-3 flex justify-center items-center h-10 rounded-md border border-Colors-Border-Default bg-Colors-Background-Normal-Primary-Active shadow-background-default text-sm text-Colors-Text-Default hover:border-Colors-Border-Hover hover:bg-Colors-Foreground-Subtle aria-[invalid=true]:border-Colors-Border-Critical aria-[invalid=true]:hover:border-Colors-Border-Critical aria-[invalid=true]:hover:bg-Colors-Utility-Terracotta-5 aria-[invalid=true]:focus-visible:ring-error file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-Colors-Text-Subtler focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-cc-Focus-Rings-Brand-default focus-visible:ring-offset-1 disabled:cursor-not-allowed disabled:opacity-30", containerClassName),
|
|
11398
11411
|
children: /* @__PURE__ */ jsxs28(SliderPrimitive.Root, _object_spread_props(_object_spread({
|
|
11399
11412
|
ref: ref,
|
|
11400
11413
|
className: cn("relative flex w-full touch-none select-none items-center", className),
|
|
@@ -11419,13 +11432,13 @@ var SliderSingle = React35.forwardRef(function(_param, ref) {
|
|
|
11419
11432
|
})
|
|
11420
11433
|
}),
|
|
11421
11434
|
/* @__PURE__ */ jsx50(SliderPrimitive.Thumb, {
|
|
11422
|
-
className: cn("cursor-pointer block rounded-full border-Colors-Utility-Lake-Blue-40 bg-Colors-Background-Normal-Primary-Default
|
|
11435
|
+
className: cn("cursor-pointer block rounded-full border-Colors-Utility-Lake-Blue-40 bg-Colors-Background-Normal-Primary-Default transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-cc-Focus-Rings-Brand-default focus-visible:ring-offset-1 data-[disabled]:pointer-events-none data-[disabled]:opacity-30", size === "sm" ? "w-2 h-2 border-[1.5px]" : "w-5 h-5 border-[3px]", thumbClassName)
|
|
11423
11436
|
})
|
|
11424
11437
|
]
|
|
11425
11438
|
}))
|
|
11426
11439
|
}),
|
|
11427
11440
|
settable && /* @__PURE__ */ jsx50("div", {
|
|
11428
|
-
className: "flex-shrink-0 w-14 h-9 flex justify-center items-center rounded-
|
|
11441
|
+
className: "flex-shrink-0 w-14 h-9 flex justify-center items-center rounded-md",
|
|
11429
11442
|
children: /* @__PURE__ */ jsx50(NumberInput, {
|
|
11430
11443
|
value: value1,
|
|
11431
11444
|
min: props === null || props === void 0 ? void 0 : props.min,
|
|
@@ -11670,12 +11683,12 @@ var tabListVariants = cva18("relative inline-flex items-center justify-center ov
|
|
|
11670
11683
|
{
|
|
11671
11684
|
rounded: "default",
|
|
11672
11685
|
size: "lg",
|
|
11673
|
-
className: "rounded-
|
|
11686
|
+
className: "rounded-sm"
|
|
11674
11687
|
},
|
|
11675
11688
|
{
|
|
11676
11689
|
rounded: "default",
|
|
11677
11690
|
size: "md",
|
|
11678
|
-
className: "rounded-
|
|
11691
|
+
className: "rounded-sm"
|
|
11679
11692
|
},
|
|
11680
11693
|
{
|
|
11681
11694
|
rounded: "default",
|
|
@@ -11720,12 +11733,12 @@ var tabVariants = cva18("relative inline-flex w-full h-full items-center justify
|
|
|
11720
11733
|
{
|
|
11721
11734
|
rounded: "default",
|
|
11722
11735
|
size: "lg",
|
|
11723
|
-
className: "rounded-
|
|
11736
|
+
className: "rounded-sm"
|
|
11724
11737
|
},
|
|
11725
11738
|
{
|
|
11726
11739
|
rounded: "default",
|
|
11727
11740
|
size: "md",
|
|
11728
|
-
className: "rounded-
|
|
11741
|
+
className: "rounded-sm"
|
|
11729
11742
|
},
|
|
11730
11743
|
{
|
|
11731
11744
|
rounded: "default",
|
|
@@ -11911,7 +11924,7 @@ var Textarea = React38.forwardRef(function(_param, ref) {
|
|
|
11911
11924
|
className: "relative",
|
|
11912
11925
|
children: [
|
|
11913
11926
|
/* @__PURE__ */ jsx54("textarea", _object_spread({
|
|
11914
|
-
className: cn("w-full min-h-[123px] p-3 pb-10 rounded-
|
|
11927
|
+
className: cn("w-full min-h-[123px] p-3 pb-10 rounded-md border border-Colors-Border-Default bg-Colors-Background-Normal-Primary-Active ", "text-sm text-Colors-Text-Default placeholder:text-Colors-Text-Subtlest", "hover:border-Colors-Border-Hover bg-cc-Input-bg-default hover:bg-cc-Input-bg-hover disabled:bg-cc-Input-bg-disabled aria-[invalid=true]:border-Colors-Border-Critical aria-[invalid=true]:hover:bg-Colors-Background-Critical-Subtle", "aria-[invalid=true]:focus-visible:ring-error file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-Colors-Text-Subtler", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-cc-Focus-Rings-Brand-default focus-visible:ring-offset-1 disabled:cursor-not-allowed disabled:opacity-30", maxLength && ((value1 === null || value1 === void 0 ? void 0 : (_value_toString = value1.toString()) === null || _value_toString === void 0 ? void 0 : _value_toString.length) || 0) > maxLength || error ? "border-Colors-Border-Critical hover:bg-Colors-Background-Critical-Subtle focus-visible:ring-error" : "", className),
|
|
11915
11928
|
ref: ref,
|
|
11916
11929
|
maxLength: maxLength,
|
|
11917
11930
|
value: value1
|
|
@@ -11945,7 +11958,7 @@ import * as TogglePrimitive from "@radix-ui/react-toggle";
|
|
|
11945
11958
|
import { cva as cva19 } from "class-variance-authority";
|
|
11946
11959
|
import * as React39 from "react";
|
|
11947
11960
|
import { jsx as jsx55 } from "react/jsx-runtime";
|
|
11948
|
-
var toggleVariants = cva19("inline-flex items-center justify-center rounded-
|
|
11961
|
+
var toggleVariants = cva19("inline-flex items-center justify-center rounded-sm text-sm font-medium ring-offset-white text-Colors-Text-Subtlest hover:bg-slate-100 hover:text-slate-500 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-950 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-Colors-Background-Normal-Primary-Active data-[state=on]:text-Colors-Text-Brand-Default [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 gap-2 dark:ring-offset-slate-950 dark:hover:bg-slate-800 dark:hover:text-Colors-Text-Brand-Default dark:focus-visible:ring-slate-300 dark:data-[state=on]:bg-Colors-Background-Normal-Primary-Active dark:data-[state=on]:text-Colors-Text-Brand-Default", {
|
|
11949
11962
|
variants: {
|
|
11950
11963
|
variant: {
|
|
11951
11964
|
default: "bg-transparent",
|
|
@@ -11996,7 +12009,7 @@ var ToggleGroup = React40.forwardRef(function(_param, ref) {
|
|
|
11996
12009
|
]);
|
|
11997
12010
|
return /* @__PURE__ */ jsx56(ToggleGroupPrimitive.Root, _object_spread_props(_object_spread({
|
|
11998
12011
|
ref: ref,
|
|
11999
|
-
className: cn("flex items-center justify-center gap-1 p-0.5 rounded-
|
|
12012
|
+
className: cn("flex items-center justify-center gap-1 p-0.5 rounded-sm border border-Colors-Border-Default bg-Colors-Background-Neutral-Primary-Default", className)
|
|
12000
12013
|
}, props), {
|
|
12001
12014
|
children: /* @__PURE__ */ jsx56(ToggleGroupContext.Provider, {
|
|
12002
12015
|
value: {
|
|
@@ -12064,7 +12077,7 @@ var ToastViewport = React41.forwardRef(function(_param, ref) {
|
|
|
12064
12077
|
}, props));
|
|
12065
12078
|
});
|
|
12066
12079
|
ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
|
12067
|
-
var toastVariants = cva20("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-
|
|
12080
|
+
var toastVariants = cva20("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-sm border border-Colors-Border-Opaque p-6 pr-8 shadow-modal-default transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 max-w-md", {
|
|
12068
12081
|
variants: {
|
|
12069
12082
|
variant: {
|
|
12070
12083
|
info: "bg-Colors-Background-Normal-Primary-Default p-4",
|
|
@@ -12110,7 +12123,7 @@ var ToastAction = React41.forwardRef(function(_param, ref) {
|
|
|
12110
12123
|
]);
|
|
12111
12124
|
return /* @__PURE__ */ jsx57(ToastPrimitives.Action, _object_spread({
|
|
12112
12125
|
ref: ref,
|
|
12113
|
-
className: cn("inline-flex h-8 shrink-0 items-center justify-center rounded-
|
|
12126
|
+
className: cn("inline-flex h-8 shrink-0 items-center justify-center rounded-sm border border-slate-200 bg-transparent px-3 text-sm font-medium ring-offset-white transition-colors hover:bg-slate-100 focus:outline-none focus:ring-2 focus:ring-slate-950 focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-slate-100/40 group-[.destructive]:hover:border-red-500/30 group-[.destructive]:hover:bg-red-500 group-[.destructive]:hover:text-slate-50 group-[.destructive]:focus:ring-red-500 dark:border-slate-800 dark:ring-offset-slate-950 dark:hover:bg-slate-800 dark:focus:ring-slate-300 dark:group-[.destructive]:border-slate-800/40 dark:group-[.destructive]:hover:border-red-900/30 dark:group-[.destructive]:hover:bg-red-900 dark:group-[.destructive]:hover:text-slate-50 dark:group-[.destructive]:focus:ring-red-900", className)
|
|
12114
12127
|
}, props));
|
|
12115
12128
|
});
|
|
12116
12129
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
|
@@ -12120,7 +12133,7 @@ var ToastClose = React41.forwardRef(function(_param, ref) {
|
|
|
12120
12133
|
]);
|
|
12121
12134
|
return /* @__PURE__ */ jsx57(ToastPrimitives.Close, _object_spread_props(_object_spread({
|
|
12122
12135
|
ref: ref,
|
|
12123
|
-
className: cn("absolute right-4 top-4 rounded-
|
|
12136
|
+
className: cn("absolute right-4 top-4 rounded-sm p-1 text-slate-950/50 transition-opacity hover:text-slate-950 outline-none focus:outline-none focus:ring-2 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600 dark:text-slate-50/50 dark:hover:text-slate-50", className),
|
|
12124
12137
|
"toast-close": ""
|
|
12125
12138
|
}, props), {
|
|
12126
12139
|
children: /* @__PURE__ */ jsx57(XMarkIcon3, {
|
|
@@ -12460,10 +12473,10 @@ var swiperVariants = cva21("", {
|
|
|
12460
12473
|
variants: {
|
|
12461
12474
|
rounded: {
|
|
12462
12475
|
none: "rounded-none",
|
|
12463
|
-
sm: "rounded-
|
|
12476
|
+
sm: "rounded-xxs",
|
|
12464
12477
|
default: "rounded",
|
|
12465
|
-
md: "rounded-
|
|
12466
|
-
lg: "rounded-
|
|
12478
|
+
md: "rounded-sm",
|
|
12479
|
+
lg: "rounded-md",
|
|
12467
12480
|
xl: "rounded-xl",
|
|
12468
12481
|
"2xl": "rounded-2xl",
|
|
12469
12482
|
"3xl": "rounded-3xl",
|