myshell-react-lib 0.1.65 → 0.1.67
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 +18 -18
- 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 +18 -18
- package/dist/index.js.map +1 -1
- package/dist/styles/components-dark.scss +34 -37
- package/dist/styles/components-light.scss +29 -32
- package/dist/styles/design2-light.scss +5 -5
- package/dist/styles/global.scss +2 -1
- package/dist/styles/new-tokens.scss +10 -9
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -916,7 +916,7 @@ type SearchBarProps = {
|
|
|
916
916
|
/**
|
|
917
917
|
* 大小 sm(default) | md
|
|
918
918
|
*
|
|
919
|
-
* @default
|
|
919
|
+
* @default xs
|
|
920
920
|
*/
|
|
921
921
|
size?: 'md' | 'sm' | 'xs';
|
|
922
922
|
/**
|
|
@@ -1018,6 +1018,7 @@ interface ISelectProps extends SelectPrimitive.SelectProps {
|
|
|
1018
1018
|
icon?: React$1.ReactNode | React$1.ElementType | string;
|
|
1019
1019
|
disabled?: boolean;
|
|
1020
1020
|
critical?: boolean;
|
|
1021
|
+
className?: string;
|
|
1021
1022
|
}>;
|
|
1022
1023
|
placeholder?: React$1.ReactNode;
|
|
1023
1024
|
triggerClassName?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -916,7 +916,7 @@ type SearchBarProps = {
|
|
|
916
916
|
/**
|
|
917
917
|
* 大小 sm(default) | md
|
|
918
918
|
*
|
|
919
|
-
* @default
|
|
919
|
+
* @default xs
|
|
920
920
|
*/
|
|
921
921
|
size?: 'md' | 'sm' | 'xs';
|
|
922
922
|
/**
|
|
@@ -1018,6 +1018,7 @@ interface ISelectProps extends SelectPrimitive.SelectProps {
|
|
|
1018
1018
|
icon?: React$1.ReactNode | React$1.ElementType | string;
|
|
1019
1019
|
disabled?: boolean;
|
|
1020
1020
|
critical?: boolean;
|
|
1021
|
+
className?: string;
|
|
1021
1022
|
}>;
|
|
1022
1023
|
placeholder?: React$1.ReactNode;
|
|
1023
1024
|
triggerClassName?: string;
|
package/dist/index.js
CHANGED
|
@@ -4719,7 +4719,7 @@ var COLOR_THEMES = {
|
|
|
4719
4719
|
default: {
|
|
4720
4720
|
primary: "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 disabled:text-cc-Button-Primary-fg-alt",
|
|
4721
4721
|
secondary: "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",
|
|
4722
|
-
tertiary: "
|
|
4722
|
+
tertiary: "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 ",
|
|
4723
4723
|
link: "rounded-none font-normal underline-offset-4 hover:underline active:underline text-cc-Link-Button-Primary-fg-default hover:text-cc-Link-Button-Primary-fg-hover active:text-cc-Link-Button-Primary-fg-active disabled:text-cc-Link-Button-Primary-fg-disabled",
|
|
4724
4724
|
plain: "text-cc-Button-Plain-fg-default hover:bg-cc-Button-Plain-bg-hover focus:shadow-cc-Focus-Rings-Brand-default active:bg-cc-Button-Plain-bg-active disabled:text-cc-Button-Plain-fg-alt "
|
|
4725
4725
|
},
|
|
@@ -5650,7 +5650,7 @@ var BASE_STYLES = "shrink-0 inline-flex items-center justify-center whitespace-n
|
|
|
5650
5650
|
var VARIANT_STYLES = {
|
|
5651
5651
|
primary: "",
|
|
5652
5652
|
secondary: "border shadow-none",
|
|
5653
|
-
tertiary: "
|
|
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
|
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",
|
|
@@ -7034,15 +7034,15 @@ var Input = React21.forwardRef(function(_param, ref) {
|
|
|
7034
7034
|
},
|
|
7035
7035
|
border: {
|
|
7036
7036
|
none: "border-none shadow-none",
|
|
7037
|
-
default: "border border-cc-Input-border-default
|
|
7037
|
+
default: "border border-transparent hover:border-cc-Input-border-default"
|
|
7038
7038
|
},
|
|
7039
7039
|
outline: {
|
|
7040
7040
|
none: "outline-none",
|
|
7041
|
-
default: ""
|
|
7041
|
+
default: "focus-visible-style"
|
|
7042
7042
|
},
|
|
7043
7043
|
background: {
|
|
7044
7044
|
none: "bg-transparent",
|
|
7045
|
-
default: "bg-cc-Input-bg-default
|
|
7045
|
+
default: "bg-cc-Input-bg-default"
|
|
7046
7046
|
},
|
|
7047
7047
|
shadow: {
|
|
7048
7048
|
none: "shadow-none",
|
|
@@ -8063,7 +8063,7 @@ var Modal = function(_param) {
|
|
|
8063
8063
|
className: cn("gap-x-5 min-h-[76px] p-5 border-none justify-center w-full"),
|
|
8064
8064
|
children: [
|
|
8065
8065
|
showCancel && /* @__PURE__ */ jsx34(Button, {
|
|
8066
|
-
variant: "
|
|
8066
|
+
variant: "solid",
|
|
8067
8067
|
onClick: onClose,
|
|
8068
8068
|
className: "flex-1",
|
|
8069
8069
|
children: cancelText || "Cancel"
|
|
@@ -8185,7 +8185,7 @@ var searchBarVariants = cva13("rounded-sm", {
|
|
|
8185
8185
|
}
|
|
8186
8186
|
});
|
|
8187
8187
|
function SearchBar(_param) {
|
|
8188
|
-
var className = _param.className, inputClassName = _param.inputClassName, placeholder = _param.placeholder, type = _param.type,
|
|
8188
|
+
var className = _param.className, inputClassName = _param.inputClassName, placeholder = _param.placeholder, type = _param.type, _param_size = _param.size, size = _param_size === void 0 ? "xs" : _param_size, readOnly = _param.readOnly, searchValue = _param.searchValue, roundedFill = _param.roundedFill, onSearchChange = _param.onSearchChange, onValueChange = _param.onValueChange, props = _object_without_properties(_param, [
|
|
8189
8189
|
"className",
|
|
8190
8190
|
"inputClassName",
|
|
8191
8191
|
"placeholder",
|
|
@@ -8221,7 +8221,7 @@ function SearchBar(_param) {
|
|
|
8221
8221
|
placeholder: placeholder,
|
|
8222
8222
|
rounded: roundedFill ? "full" : "sm",
|
|
8223
8223
|
size: size,
|
|
8224
|
-
className: cn("relative w-full px-9 flex space-x-2 text-base shadow-none placeholder:text-Colors-Text-Subtlest", "
|
|
8224
|
+
className: cn("relative w-full px-9 flex space-x-2 text-base shadow-none placeholder:text-Colors-Text-Subtlest", "bg-cc-Search-Bar-bg-default focus-visible-style", {
|
|
8225
8225
|
"focus-visible:ring-transparent": readOnly
|
|
8226
8226
|
}, className),
|
|
8227
8227
|
value: value1,
|
|
@@ -10971,7 +10971,7 @@ var SelectTrigger = React33.forwardRef(function(_param, ref) {
|
|
|
10971
10971
|
]);
|
|
10972
10972
|
return /* @__PURE__ */ jsxs27(SelectPrimitive.Trigger, _object_spread_props(_object_spread({
|
|
10973
10973
|
ref: ref,
|
|
10974
|
-
className: cn("flex h-7 md:h-10 w-full items-center justify-between rounded-sm border border-
|
|
10974
|
+
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", className)
|
|
10975
10975
|
}, props), {
|
|
10976
10976
|
children: [
|
|
10977
10977
|
children,
|
|
@@ -11022,7 +11022,7 @@ var SelectContent = React33.forwardRef(function(_param, ref) {
|
|
|
11022
11022
|
]);
|
|
11023
11023
|
var Content13 = /* @__PURE__ */ jsx45(SelectPrimitive.Content, _object_spread_props(_object_spread({
|
|
11024
11024
|
ref: ref,
|
|
11025
|
-
className: cn("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-sm
|
|
11025
|
+
className: cn("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-sm bg-Colors-Background-Normal-Primary-Default text-Colors-Text-Default shadow-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),
|
|
11026
11026
|
position: position
|
|
11027
11027
|
}, props), {
|
|
11028
11028
|
children: /* @__PURE__ */ jsx45(SelectPrimitive.Viewport, {
|
|
@@ -11083,7 +11083,7 @@ var SelectItem = React33.forwardRef(function(_param, ref) {
|
|
|
11083
11083
|
]);
|
|
11084
11084
|
return /* @__PURE__ */ jsxs27(SelectPrimitive.Item, _object_spread_props(_object_spread({
|
|
11085
11085
|
ref: ref,
|
|
11086
|
-
className: cn("relative flex justify-between w-full
|
|
11086
|
+
className: cn("relative flex justify-between w-full cursor-pointer select-none items-center rounded-sm py-1 px-1.5 outline-none text-base", "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)
|
|
11087
11087
|
}, props), {
|
|
11088
11088
|
children: [
|
|
11089
11089
|
/* @__PURE__ */ jsxs27("span", {
|
|
@@ -11537,9 +11537,9 @@ var tabListVariants = cva17("w-full relative inline-flex items-center overflow-h
|
|
|
11537
11537
|
lg: "h-11"
|
|
11538
11538
|
},
|
|
11539
11539
|
variant: {
|
|
11540
|
-
button: "justify-center
|
|
11540
|
+
button: "justify-center bg-cc-Tabbar-bg-default text-cc-Tabbar-fg-default p-0.5",
|
|
11541
11541
|
underline: 'justify-start space-x-6 rounded-none relative before:absolute before:content-[""] before:bottom-0 before:left-0 before:right-0 before:h-[1px] before:bg-[var(--Colors-Border-Default)]',
|
|
11542
|
-
icon: "justify-center
|
|
11542
|
+
icon: "justify-center bg-cc-Tabbar-bg-default text-cc-Tabbar-fg-default p-0.5"
|
|
11543
11543
|
},
|
|
11544
11544
|
rounded: {
|
|
11545
11545
|
default: "",
|
|
@@ -11824,7 +11824,7 @@ var Textarea = React38.forwardRef(function(_param, ref) {
|
|
|
11824
11824
|
className: "relative",
|
|
11825
11825
|
children: [
|
|
11826
11826
|
/* @__PURE__ */ jsx52("textarea", _object_spread({
|
|
11827
|
-
className: cn("w-full min-h-[123px] p-3 rounded-sm border border-Colors-Border-Default bg-Colors-Background-Normal-Primary-Active ", "text-sm text-Colors-Text-Default placeholder:text-Colors-Text-Subtlest", "
|
|
11827
|
+
className: cn("w-full min-h-[123px] p-3 rounded-sm border border-Colors-Border-Default bg-Colors-Background-Normal-Primary-Active ", "text-sm text-Colors-Text-Default placeholder:text-Colors-Text-Subtlest", "border border-transparent hover:border-cc-Input-border-default bg-cc-Input-bg-default aria-[invalid=true]:border-Colors-Border-Critical aria-[invalid=true]:hover:bg-Colors-Background-Critical-Subtle", "focus-visible-style file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-Colors-Text-Subtler", "disabled:cursor-not-allowed disabled:opacity-30", className),
|
|
11828
11828
|
ref: ref,
|
|
11829
11829
|
maxLength: maxLength,
|
|
11830
11830
|
value: value1,
|
|
@@ -11944,11 +11944,11 @@ ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;
|
|
|
11944
11944
|
// src/components/chips.tsx
|
|
11945
11945
|
import { cva as cva19 } from "class-variance-authority";
|
|
11946
11946
|
import { jsx as jsx55, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
11947
|
-
var chipsVariants = cva19('
|
|
11947
|
+
var chipsVariants = cva19('flex items-center justify-center text-Colors-Text-Subtle rounded-sm px-1.5 text-sm cursor-pointer focus-visible-style data-[disabled="true"]:cursor-not-allowed font-medium data-[selected="true"]:text-Colors-Text-Bolder data-[disabled="true"]:data-[selected="true"]:text-Colors-Text-Bolder data-[selected="true"]:bg-cc-Chips-Primary-bg-select data-[disabled="true"]:data-[selected="true"]:bg-cc-Chips-Primary-bg-select-disabled', {
|
|
11948
11948
|
variants: {
|
|
11949
11949
|
variant: {
|
|
11950
|
-
primary: 'border-cc-Chips-Primary-border-default bg-cc-Chips-Primary-bg-default hover:bg-cc-Chips-Primary-bg-hover data-[
|
|
11951
|
-
basic: '
|
|
11950
|
+
primary: 'border border-cc-Chips-Primary-border-default bg-cc-Chips-Primary-bg-default hover:bg-cc-Chips-Primary-bg-hover data-[disabled="true"]:text-Colors-Text-Disabled data-[disabled="true"]:bg-cc-Chips-Primary-bg-disabled',
|
|
11951
|
+
basic: 'bg-cc-Button-Tertiary-bg-default hover:bg-cc-Button-Tertiary-bg-hover focus-visible:bg-cc-Button-Tertiary-bg-default data-[disabled="true"]:text-Colors-Text-Disabled data-[disabled="true"]:bg-cc-Button-Tertiary-bg-default'
|
|
11952
11952
|
},
|
|
11953
11953
|
size: {
|
|
11954
11954
|
lg: "h-9",
|
|
@@ -12187,7 +12187,7 @@ import * as React42 from "react";
|
|
|
12187
12187
|
import XMarkIcon3 from "@heroicons/react/24/outline/esm/XMarkIcon";
|
|
12188
12188
|
import { jsx as jsx58 } from "react/jsx-runtime";
|
|
12189
12189
|
var ToastProvider = ToastPrimitives.Provider;
|
|
12190
|
-
var viewportPositionVariants = cva20("fixed z-[1000001] flex max-h-screen w-
|
|
12190
|
+
var viewportPositionVariants = cva20("fixed z-[1000001] flex max-h-screen w-max-content p-0 gap-2", {
|
|
12191
12191
|
variants: {
|
|
12192
12192
|
position: {
|
|
12193
12193
|
"top-left": "top-6 left-6 flex-col items-start",
|