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.cjs
CHANGED
|
@@ -5460,7 +5460,7 @@ var COLOR_THEMES = {
|
|
|
5460
5460
|
default: {
|
|
5461
5461
|
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",
|
|
5462
5462
|
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",
|
|
5463
|
-
tertiary: "
|
|
5463
|
+
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 ",
|
|
5464
5464
|
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",
|
|
5465
5465
|
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 "
|
|
5466
5466
|
},
|
|
@@ -6391,7 +6391,7 @@ var BASE_STYLES = "shrink-0 inline-flex items-center justify-center whitespace-n
|
|
|
6391
6391
|
var VARIANT_STYLES = {
|
|
6392
6392
|
primary: "",
|
|
6393
6393
|
secondary: "border shadow-none",
|
|
6394
|
-
tertiary: "
|
|
6394
|
+
tertiary: "shadow-none",
|
|
6395
6395
|
plain: "",
|
|
6396
6396
|
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",
|
|
6397
6397
|
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",
|
|
@@ -7775,15 +7775,15 @@ var Input = React21.forwardRef(function(_param, ref) {
|
|
|
7775
7775
|
},
|
|
7776
7776
|
border: {
|
|
7777
7777
|
none: "border-none shadow-none",
|
|
7778
|
-
default: "border border-cc-Input-border-default
|
|
7778
|
+
default: "border border-transparent hover:border-cc-Input-border-default"
|
|
7779
7779
|
},
|
|
7780
7780
|
outline: {
|
|
7781
7781
|
none: "outline-none",
|
|
7782
|
-
default: ""
|
|
7782
|
+
default: "focus-visible-style"
|
|
7783
7783
|
},
|
|
7784
7784
|
background: {
|
|
7785
7785
|
none: "bg-transparent",
|
|
7786
|
-
default: "bg-cc-Input-bg-default
|
|
7786
|
+
default: "bg-cc-Input-bg-default"
|
|
7787
7787
|
},
|
|
7788
7788
|
shadow: {
|
|
7789
7789
|
none: "shadow-none",
|
|
@@ -8804,7 +8804,7 @@ var Modal = function(_param) {
|
|
|
8804
8804
|
className: cn("gap-x-5 min-h-[76px] p-5 border-none justify-center w-full"),
|
|
8805
8805
|
children: [
|
|
8806
8806
|
showCancel && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Button, {
|
|
8807
|
-
variant: "
|
|
8807
|
+
variant: "solid",
|
|
8808
8808
|
onClick: onClose,
|
|
8809
8809
|
className: "flex-1",
|
|
8810
8810
|
children: cancelText || "Cancel"
|
|
@@ -8926,7 +8926,7 @@ var searchBarVariants = (0, import_class_variance_authority13.cva)("rounded-sm",
|
|
|
8926
8926
|
}
|
|
8927
8927
|
});
|
|
8928
8928
|
function SearchBar(_param) {
|
|
8929
|
-
var className = _param.className, inputClassName = _param.inputClassName, placeholder = _param.placeholder, type = _param.type,
|
|
8929
|
+
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, [
|
|
8930
8930
|
"className",
|
|
8931
8931
|
"inputClassName",
|
|
8932
8932
|
"placeholder",
|
|
@@ -8962,7 +8962,7 @@ function SearchBar(_param) {
|
|
|
8962
8962
|
placeholder: placeholder,
|
|
8963
8963
|
rounded: roundedFill ? "full" : "sm",
|
|
8964
8964
|
size: size,
|
|
8965
|
-
className: cn("relative w-full px-9 flex space-x-2 text-base shadow-none placeholder:text-Colors-Text-Subtlest", "
|
|
8965
|
+
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", {
|
|
8966
8966
|
"focus-visible:ring-transparent": readOnly
|
|
8967
8967
|
}, className),
|
|
8968
8968
|
value: value1,
|
|
@@ -11712,7 +11712,7 @@ var SelectTrigger = React33.forwardRef(function(_param, ref) {
|
|
|
11712
11712
|
]);
|
|
11713
11713
|
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(SelectPrimitive.Trigger, _object_spread_props(_object_spread({
|
|
11714
11714
|
ref: ref,
|
|
11715
|
-
className: cn("flex h-7 md:h-10 w-full items-center justify-between rounded-sm border border-
|
|
11715
|
+
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)
|
|
11716
11716
|
}, props), {
|
|
11717
11717
|
children: [
|
|
11718
11718
|
children,
|
|
@@ -11763,7 +11763,7 @@ var SelectContent = React33.forwardRef(function(_param, ref) {
|
|
|
11763
11763
|
]);
|
|
11764
11764
|
var Content13 = /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SelectPrimitive.Content, _object_spread_props(_object_spread({
|
|
11765
11765
|
ref: ref,
|
|
11766
|
-
className: cn("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-sm
|
|
11766
|
+
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),
|
|
11767
11767
|
position: position
|
|
11768
11768
|
}, props), {
|
|
11769
11769
|
children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SelectPrimitive.Viewport, {
|
|
@@ -11824,7 +11824,7 @@ var SelectItem = React33.forwardRef(function(_param, ref) {
|
|
|
11824
11824
|
]);
|
|
11825
11825
|
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(SelectPrimitive.Item, _object_spread_props(_object_spread({
|
|
11826
11826
|
ref: ref,
|
|
11827
|
-
className: cn("relative flex justify-between w-full
|
|
11827
|
+
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)
|
|
11828
11828
|
}, props), {
|
|
11829
11829
|
children: [
|
|
11830
11830
|
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("span", {
|
|
@@ -12278,9 +12278,9 @@ var tabListVariants = (0, import_class_variance_authority17.cva)("w-full relativ
|
|
|
12278
12278
|
lg: "h-11"
|
|
12279
12279
|
},
|
|
12280
12280
|
variant: {
|
|
12281
|
-
button: "justify-center
|
|
12281
|
+
button: "justify-center bg-cc-Tabbar-bg-default text-cc-Tabbar-fg-default p-0.5",
|
|
12282
12282
|
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)]',
|
|
12283
|
-
icon: "justify-center
|
|
12283
|
+
icon: "justify-center bg-cc-Tabbar-bg-default text-cc-Tabbar-fg-default p-0.5"
|
|
12284
12284
|
},
|
|
12285
12285
|
rounded: {
|
|
12286
12286
|
default: "",
|
|
@@ -12565,7 +12565,7 @@ var Textarea = React38.forwardRef(function(_param, ref) {
|
|
|
12565
12565
|
className: "relative",
|
|
12566
12566
|
children: [
|
|
12567
12567
|
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("textarea", _object_spread({
|
|
12568
|
-
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", "
|
|
12568
|
+
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),
|
|
12569
12569
|
ref: ref,
|
|
12570
12570
|
maxLength: maxLength,
|
|
12571
12571
|
value: value1,
|
|
@@ -12685,11 +12685,11 @@ ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;
|
|
|
12685
12685
|
// src/components/chips.tsx
|
|
12686
12686
|
var import_class_variance_authority19 = require("class-variance-authority");
|
|
12687
12687
|
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
12688
|
-
var chipsVariants = (0, import_class_variance_authority19.cva)('
|
|
12688
|
+
var chipsVariants = (0, import_class_variance_authority19.cva)('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', {
|
|
12689
12689
|
variants: {
|
|
12690
12690
|
variant: {
|
|
12691
|
-
primary: 'border-cc-Chips-Primary-border-default bg-cc-Chips-Primary-bg-default hover:bg-cc-Chips-Primary-bg-hover data-[
|
|
12692
|
-
basic: '
|
|
12691
|
+
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',
|
|
12692
|
+
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'
|
|
12693
12693
|
},
|
|
12694
12694
|
size: {
|
|
12695
12695
|
lg: "h-9",
|
|
@@ -12928,7 +12928,7 @@ var React42 = __toESM(require("react"), 1);
|
|
|
12928
12928
|
var import_XMarkIcon3 = __toESM(require("@heroicons/react/24/outline/esm/XMarkIcon"), 1);
|
|
12929
12929
|
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
12930
12930
|
var ToastProvider = ToastPrimitives.Provider;
|
|
12931
|
-
var viewportPositionVariants = (0, import_class_variance_authority20.cva)("fixed z-[1000001] flex max-h-screen w-
|
|
12931
|
+
var viewportPositionVariants = (0, import_class_variance_authority20.cva)("fixed z-[1000001] flex max-h-screen w-max-content p-0 gap-2", {
|
|
12932
12932
|
variants: {
|
|
12933
12933
|
position: {
|
|
12934
12934
|
"top-left": "top-6 left-6 flex-col items-start",
|