myshell-react-lib 0.2.10 → 0.2.12
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 +64 -79
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +17 -32
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -495,11 +495,11 @@ interface ImageProps {
|
|
|
495
495
|
/**
|
|
496
496
|
* 圆角,默认为 none
|
|
497
497
|
*/
|
|
498
|
-
rounded?:
|
|
498
|
+
rounded?: 'none' | 'sm' | 'default' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | 'full';
|
|
499
499
|
/**
|
|
500
500
|
* 填充类型
|
|
501
501
|
*/
|
|
502
|
-
object?:
|
|
502
|
+
object?: 'contain' | 'cover' | 'fill' | 'none';
|
|
503
503
|
/**
|
|
504
504
|
* 图像描述
|
|
505
505
|
*/
|
|
@@ -522,8 +522,8 @@ interface ImageProps {
|
|
|
522
522
|
*
|
|
523
523
|
* @default auto
|
|
524
524
|
*/
|
|
525
|
-
fetchPriority?:
|
|
526
|
-
loading?:
|
|
525
|
+
fetchPriority?: 'auto' | 'high' | 'low' | 'low';
|
|
526
|
+
loading?: 'eager' | 'lazy';
|
|
527
527
|
style?: React.CSSProperties;
|
|
528
528
|
onLoad?: ReactEventHandler<HTMLImageElement>;
|
|
529
529
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -495,11 +495,11 @@ interface ImageProps {
|
|
|
495
495
|
/**
|
|
496
496
|
* 圆角,默认为 none
|
|
497
497
|
*/
|
|
498
|
-
rounded?:
|
|
498
|
+
rounded?: 'none' | 'sm' | 'default' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | 'full';
|
|
499
499
|
/**
|
|
500
500
|
* 填充类型
|
|
501
501
|
*/
|
|
502
|
-
object?:
|
|
502
|
+
object?: 'contain' | 'cover' | 'fill' | 'none';
|
|
503
503
|
/**
|
|
504
504
|
* 图像描述
|
|
505
505
|
*/
|
|
@@ -522,8 +522,8 @@ interface ImageProps {
|
|
|
522
522
|
*
|
|
523
523
|
* @default auto
|
|
524
524
|
*/
|
|
525
|
-
fetchPriority?:
|
|
526
|
-
loading?:
|
|
525
|
+
fetchPriority?: 'auto' | 'high' | 'low' | 'low';
|
|
526
|
+
loading?: 'eager' | 'lazy';
|
|
527
527
|
style?: React.CSSProperties;
|
|
528
528
|
onLoad?: ReactEventHandler<HTMLImageElement>;
|
|
529
529
|
/**
|
package/dist/index.js
CHANGED
|
@@ -4518,9 +4518,9 @@ var CircleErrorIcon = React5.forwardRef(function(props, ref) {
|
|
|
4518
4518
|
/* @__PURE__ */ jsx5("path", {
|
|
4519
4519
|
d: "M12 8L8 12M8 8L12 12",
|
|
4520
4520
|
stroke: "#FFFEFD",
|
|
4521
|
-
|
|
4522
|
-
|
|
4523
|
-
|
|
4521
|
+
strokeWidth: "1.25",
|
|
4522
|
+
strokeLinecap: "round",
|
|
4523
|
+
strokeLinejoin: "round"
|
|
4524
4524
|
})
|
|
4525
4525
|
]
|
|
4526
4526
|
})
|
|
@@ -4546,9 +4546,9 @@ var CircleInfoIcon = React6.forwardRef(function(props, ref) {
|
|
|
4546
4546
|
/* @__PURE__ */ jsx6("path", {
|
|
4547
4547
|
d: "M10 12.3333V9.66667M10 7H10.0067",
|
|
4548
4548
|
stroke: "#FFFEFD",
|
|
4549
|
-
|
|
4550
|
-
|
|
4551
|
-
|
|
4549
|
+
strokeWidth: "1.25",
|
|
4550
|
+
strokeLinecap: "round",
|
|
4551
|
+
strokeLinejoin: "round"
|
|
4552
4552
|
})
|
|
4553
4553
|
]
|
|
4554
4554
|
})
|
|
@@ -4574,9 +4574,9 @@ var CircleWarningIcon = React7.forwardRef(function(props, ref) {
|
|
|
4574
4574
|
/* @__PURE__ */ jsx7("path", {
|
|
4575
4575
|
d: "M9.99994 7V9.66667M9.99994 12.3333H10.0066",
|
|
4576
4576
|
stroke: "#FFFEFD",
|
|
4577
|
-
|
|
4578
|
-
|
|
4579
|
-
|
|
4577
|
+
strokeWidth: "1.25",
|
|
4578
|
+
strokeLinecap: "round",
|
|
4579
|
+
strokeLinejoin: "round"
|
|
4580
4580
|
})
|
|
4581
4581
|
]
|
|
4582
4582
|
})
|
|
@@ -4602,9 +4602,9 @@ var CircleSuccessIcon = React8.forwardRef(function(props, ref) {
|
|
|
4602
4602
|
/* @__PURE__ */ jsx8("path", {
|
|
4603
4603
|
d: "M8 10.3333L9.33333 11.6667L12 9",
|
|
4604
4604
|
stroke: "#FFFEFD",
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4605
|
+
strokeWidth: "1.25",
|
|
4606
|
+
strokeLinecap: "round",
|
|
4607
|
+
strokeLinejoin: "round"
|
|
4608
4608
|
})
|
|
4609
4609
|
]
|
|
4610
4610
|
})
|
|
@@ -6428,24 +6428,8 @@ import { jsx as jsx24, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
|
6428
6428
|
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
6429
6429
|
import { cva as cva8 } from "class-variance-authority";
|
|
6430
6430
|
import * as React19 from "react";
|
|
6431
|
+
import { CheckIcon } from "lucide-react";
|
|
6431
6432
|
import { jsx as jsx25, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
6432
|
-
var CheckIcon = function(param) {
|
|
6433
|
-
var className = param.className;
|
|
6434
|
-
return /* @__PURE__ */ jsx25("svg", {
|
|
6435
|
-
className: className,
|
|
6436
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
6437
|
-
width: "12",
|
|
6438
|
-
height: "12",
|
|
6439
|
-
viewBox: "0 0 12 12",
|
|
6440
|
-
fill: "none",
|
|
6441
|
-
children: /* @__PURE__ */ jsx25("path", {
|
|
6442
|
-
d: "M2.25 6.375L5.25 9.375L9.75 2.625",
|
|
6443
|
-
"stroke-width": "1.5",
|
|
6444
|
-
"stroke-linecap": "round",
|
|
6445
|
-
"stroke-linejoin": "round"
|
|
6446
|
-
})
|
|
6447
|
-
});
|
|
6448
|
-
};
|
|
6449
6433
|
var checkboxVariants = cva8("peer w-5 h-5 shrink-0 border-[1.5px] overflow-hidden flex items-center justify-center text-current focus-visible-style", {
|
|
6450
6434
|
variants: {
|
|
6451
6435
|
variant: {
|
|
@@ -6480,11 +6464,12 @@ var Checkbox = React19.forwardRef(function(_param, ref) {
|
|
|
6480
6464
|
}))
|
|
6481
6465
|
}, props), {
|
|
6482
6466
|
children: /* @__PURE__ */ jsx25(CheckboxPrimitive.Indicator, {
|
|
6483
|
-
className: cn(variant === "radio" && "[&>div]:data-[disabled]:bg-cc-Check-Box-bg-disabled [&>div]:data-[state=checked]:bg-cc-Check-Box-bg-disabled", variant === "static" && "[&>div]:data-[disabled]:bg-cc-Check-Box-bg-disabled text-Colors-Beta-White-100 !border-none"),
|
|
6467
|
+
className: cn("flex items-center justify-center", variant === "radio" && "[&>div]:data-[disabled]:bg-cc-Check-Box-bg-disabled [&>div]:data-[state=checked]:bg-cc-Check-Box-bg-disabled", variant === "static" && "[&>div]:data-[disabled]:bg-cc-Check-Box-bg-disabled text-Colors-Beta-White-100 !border-none"),
|
|
6484
6468
|
children: variant === "radio" ? /* @__PURE__ */ jsx25("div", {
|
|
6485
6469
|
className: cn("w-2 h-2 rounded-full")
|
|
6486
|
-
}) : /* @__PURE__ */ jsx25(
|
|
6487
|
-
|
|
6470
|
+
}) : /* @__PURE__ */ jsx25(Icon, {
|
|
6471
|
+
component: CheckIcon,
|
|
6472
|
+
className: "w-3 h-3 stroke-current text-current"
|
|
6488
6473
|
})
|
|
6489
6474
|
})
|
|
6490
6475
|
})),
|