myshell-react-lib 0.2.2 → 0.2.4
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 +8 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +8 -8
- package/dist/index.js.map +1 -1
- package/dist/styles/components-dark.scss +8 -8
- package/dist/styles/components-light.scss +8 -8
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -132,11 +132,11 @@ interface BadgeProps extends VariantProps<typeof badgeVariants> {
|
|
|
132
132
|
declare function Badge(props: BadgeProps): react_jsx_runtime.JSX.Element;
|
|
133
133
|
|
|
134
134
|
declare const buttonVariants: (props?: ({
|
|
135
|
-
variant?: "link" | "opacity" | "static" | "primary" | "secondary" | "tertiary" | "
|
|
135
|
+
variant?: "link" | "opacity" | "static" | "primary" | "secondary" | "tertiary" | "ghost" | "plain" | null | undefined;
|
|
136
136
|
color?: "default" | "brand" | "error" | null | undefined;
|
|
137
137
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
138
138
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
139
|
-
type VariantType$1 = 'primary' | 'secondary' | 'tertiary' | 'link' | 'plain' | 'opacity' | '
|
|
139
|
+
type VariantType$1 = 'primary' | 'secondary' | 'tertiary' | 'link' | 'plain' | 'opacity' | 'ghost' | 'static';
|
|
140
140
|
type ButtonBaseProps = VariantProps<typeof buttonVariants>;
|
|
141
141
|
type VariantColorMap$1 = {
|
|
142
142
|
primary: 'default' | 'brand' | 'error';
|
|
@@ -145,7 +145,7 @@ type VariantColorMap$1 = {
|
|
|
145
145
|
link: 'default';
|
|
146
146
|
plain: 'default' | 'brand';
|
|
147
147
|
opacity: never;
|
|
148
|
-
|
|
148
|
+
ghost: never;
|
|
149
149
|
static: never;
|
|
150
150
|
};
|
|
151
151
|
type ButtonProps$1<V extends VariantType$1 = VariantType$1> = Omit<ButtonBaseProps, 'color'> & {
|
|
@@ -403,7 +403,7 @@ declare const Icon: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTM
|
|
|
403
403
|
} & React$1.RefAttributes<HTMLSpanElement>>;
|
|
404
404
|
type IconComponent = React$1.ForwardRefExoticComponent<IconProps>;
|
|
405
405
|
|
|
406
|
-
type VariantType = 'primary' | 'secondary' | 'tertiary' | 'plain' | 'opacity' | '
|
|
406
|
+
type VariantType = 'primary' | 'secondary' | 'tertiary' | 'plain' | 'opacity' | 'ghost' | 'static';
|
|
407
407
|
type ColorType = 'default' | 'brand' | 'error' | 'gray';
|
|
408
408
|
type SizeType = 'xs' | 'sm' | 'md' | 'lg';
|
|
409
409
|
declare const iconButtonVariants: (props?: ({
|
|
@@ -419,7 +419,7 @@ type VariantColorMap = {
|
|
|
419
419
|
tertiary: 'default';
|
|
420
420
|
plain: 'default' | 'error' | 'gray';
|
|
421
421
|
opacity: never;
|
|
422
|
-
|
|
422
|
+
ghost: never;
|
|
423
423
|
static: never;
|
|
424
424
|
};
|
|
425
425
|
type IconButtonProps<V extends VariantType = VariantType> = Omit<IconButtonBaseProps, 'color'> & {
|
package/dist/index.d.ts
CHANGED
|
@@ -132,11 +132,11 @@ interface BadgeProps extends VariantProps<typeof badgeVariants> {
|
|
|
132
132
|
declare function Badge(props: BadgeProps): react_jsx_runtime.JSX.Element;
|
|
133
133
|
|
|
134
134
|
declare const buttonVariants: (props?: ({
|
|
135
|
-
variant?: "link" | "opacity" | "static" | "primary" | "secondary" | "tertiary" | "
|
|
135
|
+
variant?: "link" | "opacity" | "static" | "primary" | "secondary" | "tertiary" | "ghost" | "plain" | null | undefined;
|
|
136
136
|
color?: "default" | "brand" | "error" | null | undefined;
|
|
137
137
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
138
138
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
139
|
-
type VariantType$1 = 'primary' | 'secondary' | 'tertiary' | 'link' | 'plain' | 'opacity' | '
|
|
139
|
+
type VariantType$1 = 'primary' | 'secondary' | 'tertiary' | 'link' | 'plain' | 'opacity' | 'ghost' | 'static';
|
|
140
140
|
type ButtonBaseProps = VariantProps<typeof buttonVariants>;
|
|
141
141
|
type VariantColorMap$1 = {
|
|
142
142
|
primary: 'default' | 'brand' | 'error';
|
|
@@ -145,7 +145,7 @@ type VariantColorMap$1 = {
|
|
|
145
145
|
link: 'default';
|
|
146
146
|
plain: 'default' | 'brand';
|
|
147
147
|
opacity: never;
|
|
148
|
-
|
|
148
|
+
ghost: never;
|
|
149
149
|
static: never;
|
|
150
150
|
};
|
|
151
151
|
type ButtonProps$1<V extends VariantType$1 = VariantType$1> = Omit<ButtonBaseProps, 'color'> & {
|
|
@@ -403,7 +403,7 @@ declare const Icon: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTM
|
|
|
403
403
|
} & React$1.RefAttributes<HTMLSpanElement>>;
|
|
404
404
|
type IconComponent = React$1.ForwardRefExoticComponent<IconProps>;
|
|
405
405
|
|
|
406
|
-
type VariantType = 'primary' | 'secondary' | 'tertiary' | 'plain' | 'opacity' | '
|
|
406
|
+
type VariantType = 'primary' | 'secondary' | 'tertiary' | 'plain' | 'opacity' | 'ghost' | 'static';
|
|
407
407
|
type ColorType = 'default' | 'brand' | 'error' | 'gray';
|
|
408
408
|
type SizeType = 'xs' | 'sm' | 'md' | 'lg';
|
|
409
409
|
declare const iconButtonVariants: (props?: ({
|
|
@@ -419,7 +419,7 @@ type VariantColorMap = {
|
|
|
419
419
|
tertiary: 'default';
|
|
420
420
|
plain: 'default' | 'error' | 'gray';
|
|
421
421
|
opacity: never;
|
|
422
|
-
|
|
422
|
+
ghost: never;
|
|
423
423
|
static: never;
|
|
424
424
|
};
|
|
425
425
|
type IconButtonProps<V extends VariantType = VariantType> = Omit<IconButtonBaseProps, 'color'> & {
|
package/dist/index.js
CHANGED
|
@@ -4740,7 +4740,7 @@ var VARIANT_BASE = {
|
|
|
4740
4740
|
link: "",
|
|
4741
4741
|
plain: "",
|
|
4742
4742
|
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",
|
|
4743
|
-
|
|
4743
|
+
ghost: "shadow-none text-Colors-Text-Subtle bg-cc-Button-Ghost-bg-default border border-cc-Button-Ghost-border-default hover:bg-cc-Button-Ghost-bg-hover hover:border-cc-Button-Ghost-border-alt active:bg-cc-Button-Ghost-bg-active disabled:text-cc-Button-Ghost-fg-alt"
|
|
4744
4744
|
};
|
|
4745
4745
|
var SPECIAL_LAYOUTS = {
|
|
4746
4746
|
link: "h-fit w-fit min-w-auto px-0.5 py-0.5",
|
|
@@ -4838,17 +4838,17 @@ var buttonVariants = cva4(BASE_BUTTON, {
|
|
|
4838
4838
|
className: SIZE_CLASSES.sm.withPadding
|
|
4839
4839
|
},
|
|
4840
4840
|
{
|
|
4841
|
-
variant: "
|
|
4841
|
+
variant: "ghost",
|
|
4842
4842
|
size: "lg",
|
|
4843
4843
|
className: SIZE_CLASSES.lg.withPadding
|
|
4844
4844
|
},
|
|
4845
4845
|
{
|
|
4846
|
-
variant: "
|
|
4846
|
+
variant: "ghost",
|
|
4847
4847
|
size: "md",
|
|
4848
4848
|
className: SIZE_CLASSES.md.withPadding
|
|
4849
4849
|
},
|
|
4850
4850
|
{
|
|
4851
|
-
variant: "
|
|
4851
|
+
variant: "ghost",
|
|
4852
4852
|
size: "sm",
|
|
4853
4853
|
className: SIZE_CLASSES.sm.withPadding
|
|
4854
4854
|
},
|
|
@@ -4957,7 +4957,7 @@ var iconVariants2 = cva4("relative shrink-0 text-inherit inline-flex items-cente
|
|
|
4957
4957
|
link: "font-normal",
|
|
4958
4958
|
plain: "font-medium",
|
|
4959
4959
|
static: "",
|
|
4960
|
-
|
|
4960
|
+
ghost: "",
|
|
4961
4961
|
opacity: ""
|
|
4962
4962
|
},
|
|
4963
4963
|
size: {
|
|
@@ -5653,7 +5653,7 @@ var VARIANT_STYLES = {
|
|
|
5653
5653
|
tertiary: "shadow-none",
|
|
5654
5654
|
plain: "",
|
|
5655
5655
|
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",
|
|
5656
|
-
|
|
5656
|
+
ghost: "shadow-none text-Colors-Text-Subtle bg-cc-Button-Ghost-bg-default border border-cc-Button-Ghost-border-default hover:bg-cc-Button-Ghost-bg-hover hover:border-cc-Button-Ghost-border-alt active:bg-cc-Button-Ghost-bg-active disabled:text-cc-Button-Ghost-fg-alt",
|
|
5657
5657
|
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"
|
|
5658
5658
|
};
|
|
5659
5659
|
var COLOR_STYLES = {
|
|
@@ -10983,9 +10983,9 @@ var SelectTrigger = React33.forwardRef(function(_param, ref) {
|
|
|
10983
10983
|
return /* @__PURE__ */ jsxs27(SelectPrimitive.Trigger, _object_spread_props(_object_spread({
|
|
10984
10984
|
ref: ref,
|
|
10985
10985
|
className: cn("flex h-7 md:h-10 w-full items-center justify-between rounded-sm border border-transparent hover:border-cc-Input-border-default bg-cc-Input-bg-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 space-x-1.5", isButtonVariant && buttonVariants({
|
|
10986
|
-
variant: "
|
|
10986
|
+
variant: "ghost",
|
|
10987
10987
|
size: "lg"
|
|
10988
|
-
}), isButtonVariant && "w-auto min-w-max inline-flex", className)
|
|
10988
|
+
}), isButtonVariant && "w-auto min-w-max inline-flex px-4", className)
|
|
10989
10989
|
}, props), {
|
|
10990
10990
|
children: [
|
|
10991
10991
|
children,
|