myshell-react-lib 0.1.24 → 0.1.26
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 +36 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +36 -6
- package/dist/index.js.map +1 -1
- package/dist/styles/components-light.scss +4 -4
- package/dist/styles/new-tokens.scss +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -5453,7 +5453,7 @@ var VARIANT_BASE = {
|
|
|
5453
5453
|
primary: "",
|
|
5454
5454
|
secondary: "border shadow-none",
|
|
5455
5455
|
tertiary: "",
|
|
5456
|
-
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",
|
|
5456
|
+
static: "border 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",
|
|
5457
5457
|
link: "",
|
|
5458
5458
|
plain: "",
|
|
5459
5459
|
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",
|
|
@@ -5539,6 +5539,36 @@ var buttonVariants = (0, import_class_variance_authority4.cva)(BASE_BUTTON, {
|
|
|
5539
5539
|
size: "sm",
|
|
5540
5540
|
className: SIZE_CLASSES.sm.withPadding
|
|
5541
5541
|
},
|
|
5542
|
+
{
|
|
5543
|
+
variant: "opacity",
|
|
5544
|
+
size: "lg",
|
|
5545
|
+
className: SIZE_CLASSES.lg.withPadding
|
|
5546
|
+
},
|
|
5547
|
+
{
|
|
5548
|
+
variant: "opacity",
|
|
5549
|
+
size: "md",
|
|
5550
|
+
className: SIZE_CLASSES.md.withPadding
|
|
5551
|
+
},
|
|
5552
|
+
{
|
|
5553
|
+
variant: "opacity",
|
|
5554
|
+
size: "sm",
|
|
5555
|
+
className: SIZE_CLASSES.sm.withPadding
|
|
5556
|
+
},
|
|
5557
|
+
{
|
|
5558
|
+
variant: "solid",
|
|
5559
|
+
size: "lg",
|
|
5560
|
+
className: SIZE_CLASSES.lg.withPadding
|
|
5561
|
+
},
|
|
5562
|
+
{
|
|
5563
|
+
variant: "solid",
|
|
5564
|
+
size: "md",
|
|
5565
|
+
className: SIZE_CLASSES.md.withPadding
|
|
5566
|
+
},
|
|
5567
|
+
{
|
|
5568
|
+
variant: "solid",
|
|
5569
|
+
size: "sm",
|
|
5570
|
+
className: SIZE_CLASSES.sm.withPadding
|
|
5571
|
+
},
|
|
5542
5572
|
// 颜色主题变体
|
|
5543
5573
|
{
|
|
5544
5574
|
variant: "primary",
|
|
@@ -5679,7 +5709,7 @@ var iconVariants2 = (0, import_class_variance_authority4.cva)("relative shrink-0
|
|
|
5679
5709
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
5680
5710
|
function createButtonWithVariant(props, ref) {
|
|
5681
5711
|
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
|
|
5682
|
-
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, [
|
|
5712
|
+
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, _props_roundedFull = props.roundedFull, roundedFull = _props_roundedFull === void 0 ? false : _props_roundedFull, passProps = _object_without_properties(props, [
|
|
5683
5713
|
"className",
|
|
5684
5714
|
"iconClassName",
|
|
5685
5715
|
"variant",
|
|
@@ -5696,7 +5726,8 @@ function createButtonWithVariant(props, ref) {
|
|
|
5696
5726
|
"children",
|
|
5697
5727
|
"autoFocus",
|
|
5698
5728
|
"asset",
|
|
5699
|
-
"assetNumber"
|
|
5729
|
+
"assetNumber",
|
|
5730
|
+
"roundedFull"
|
|
5700
5731
|
]);
|
|
5701
5732
|
var color = userProvidedColor || "default";
|
|
5702
5733
|
var Comp = asChild ? import_react_slot.Slot : "button";
|
|
@@ -5705,9 +5736,8 @@ function createButtonWithVariant(props, ref) {
|
|
|
5705
5736
|
className: noStyle ? className : cn(buttonVariants({
|
|
5706
5737
|
variant: variant,
|
|
5707
5738
|
color: color,
|
|
5708
|
-
size: size
|
|
5709
|
-
|
|
5710
|
-
}), disable && "!pointer-events-auto cursor-not-allowed", isBlock && "w-full"),
|
|
5739
|
+
size: size
|
|
5740
|
+
}), className, disable && "!pointer-events-auto cursor-not-allowed", isBlock && "w-full", roundedFull && variant !== "plain" && variant !== "link" && "rounded-full"),
|
|
5711
5741
|
ref: ref,
|
|
5712
5742
|
disabled: disable,
|
|
5713
5743
|
autoFocus: autoFocus
|