myshell-react-lib 0.1.58 → 0.1.60
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 +27 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +27 -18
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4879,7 +4879,7 @@ var lineClampMap = {
|
|
|
4879
4879
|
5: "line-clamp-5",
|
|
4880
4880
|
6: "line-clamp-6"
|
|
4881
4881
|
};
|
|
4882
|
-
var displayVariants = (0, import_class_variance_authority2.cva)("font-
|
|
4882
|
+
var displayVariants = (0, import_class_variance_authority2.cva)("font-medium font-ABCDiatype", {
|
|
4883
4883
|
variants: {
|
|
4884
4884
|
size: {
|
|
4885
4885
|
"2xl": "text-7xl",
|
|
@@ -11661,11 +11661,12 @@ var import_lucide_react10 = require("lucide-react");
|
|
|
11661
11661
|
var React33 = __toESM(require("react"), 1);
|
|
11662
11662
|
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
11663
11663
|
var Select = React33.forwardRef(function(_param, ref) {
|
|
11664
|
-
var children = _param.children, placeholder = _param.placeholder, options = _param.options, triggerClassName = _param.triggerClassName, props = _object_without_properties(_param, [
|
|
11664
|
+
var children = _param.children, placeholder = _param.placeholder, options = _param.options, triggerClassName = _param.triggerClassName, side = _param.side, props = _object_without_properties(_param, [
|
|
11665
11665
|
"children",
|
|
11666
11666
|
"placeholder",
|
|
11667
11667
|
"options",
|
|
11668
|
-
"triggerClassName"
|
|
11668
|
+
"triggerClassName",
|
|
11669
|
+
"side"
|
|
11669
11670
|
]);
|
|
11670
11671
|
var _options_find;
|
|
11671
11672
|
var icon = options === null || options === void 0 ? void 0 : (_options_find = options.find(function(item) {
|
|
@@ -11689,6 +11690,8 @@ var Select = React33.forwardRef(function(_param, ref) {
|
|
|
11689
11690
|
})
|
|
11690
11691
|
}),
|
|
11691
11692
|
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SelectContent, {
|
|
11693
|
+
side: side,
|
|
11694
|
+
noPortal: true,
|
|
11692
11695
|
children: options.map(function(item, i) {
|
|
11693
11696
|
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SelectItem, _object_spread_props(_object_spread({}, item), {
|
|
11694
11697
|
children: item.label
|
|
@@ -11751,22 +11754,27 @@ var SelectScrollDownButton = React33.forwardRef(function(_param, ref) {
|
|
|
11751
11754
|
});
|
|
11752
11755
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
11753
11756
|
var SelectContent = React33.forwardRef(function(_param, ref) {
|
|
11754
|
-
var className = _param.className, children = _param.children, _param_position = _param.position, position = _param_position === void 0 ? "popper" : _param_position, props = _object_without_properties(_param, [
|
|
11757
|
+
var className = _param.className, children = _param.children, _param_position = _param.position, position = _param_position === void 0 ? "popper" : _param_position, noPortal = _param.noPortal, props = _object_without_properties(_param, [
|
|
11755
11758
|
"className",
|
|
11756
11759
|
"children",
|
|
11757
|
-
"position"
|
|
11760
|
+
"position",
|
|
11761
|
+
"noPortal"
|
|
11758
11762
|
]);
|
|
11763
|
+
var Content13 = /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SelectPrimitive.Content, _object_spread_props(_object_spread({
|
|
11764
|
+
ref: ref,
|
|
11765
|
+
className: cn("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-sm border border-Colors-Border-Opaque 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),
|
|
11766
|
+
position: position
|
|
11767
|
+
}, props), {
|
|
11768
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SelectPrimitive.Viewport, {
|
|
11769
|
+
className: cn("p-1.5 space-y-1.5", position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),
|
|
11770
|
+
children: children
|
|
11771
|
+
})
|
|
11772
|
+
}));
|
|
11773
|
+
if (noPortal) {
|
|
11774
|
+
return Content13;
|
|
11775
|
+
}
|
|
11759
11776
|
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SelectPrimitive.Portal, {
|
|
11760
|
-
children:
|
|
11761
|
-
ref: ref,
|
|
11762
|
-
className: cn("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-sm border border-Colors-Border-Opaque 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),
|
|
11763
|
-
position: position
|
|
11764
|
-
}, props), {
|
|
11765
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SelectPrimitive.Viewport, {
|
|
11766
|
-
className: cn("p-1.5 space-y-1.5", position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),
|
|
11767
|
-
children: children
|
|
11768
|
-
})
|
|
11769
|
-
}))
|
|
11777
|
+
children: Content13
|
|
11770
11778
|
});
|
|
11771
11779
|
});
|
|
11772
11780
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
@@ -12210,11 +12218,12 @@ var switchThumbIconVariants = (0, import_class_variance_authority16.cva)("flex i
|
|
|
12210
12218
|
}
|
|
12211
12219
|
});
|
|
12212
12220
|
var Switch = React36.forwardRef(function(_param, ref) {
|
|
12213
|
-
var className = _param.className, size = _param.size, label = _param.label, labelClassName = _param.labelClassName, vertical = _param.vertical, icon = _param.icon, props = _object_without_properties(_param, [
|
|
12221
|
+
var className = _param.className, size = _param.size, label = _param.label, labelClassName = _param.labelClassName, iconClassName = _param.iconClassName, vertical = _param.vertical, icon = _param.icon, props = _object_without_properties(_param, [
|
|
12214
12222
|
"className",
|
|
12215
12223
|
"size",
|
|
12216
12224
|
"label",
|
|
12217
12225
|
"labelClassName",
|
|
12226
|
+
"iconClassName",
|
|
12218
12227
|
"vertical",
|
|
12219
12228
|
"icon"
|
|
12220
12229
|
]);
|
|
@@ -12236,9 +12245,9 @@ var Switch = React36.forwardRef(function(_param, ref) {
|
|
|
12236
12245
|
}), "flex items-center justify-center"),
|
|
12237
12246
|
children: icon && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Icon, {
|
|
12238
12247
|
component: icon,
|
|
12239
|
-
className: switchThumbIconVariants({
|
|
12248
|
+
className: cn("text-Colors-Foreground-Static-Black", switchThumbIconVariants({
|
|
12240
12249
|
size: size
|
|
12241
|
-
})
|
|
12250
|
+
}), iconClassName)
|
|
12242
12251
|
})
|
|
12243
12252
|
})
|
|
12244
12253
|
})),
|