@momo-webplatform/mobase 0.0.27 → 0.0.29
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/package.json
CHANGED
|
@@ -35,7 +35,7 @@ const Select = React.forwardRef(({ className, children, label, message, size, is
|
|
|
35
35
|
? "[&>.select-mobase-button]:border-red-500 [&>.select-mobase-button]:ring-red-500 [&>.select-mobase-button]:ring-1"
|
|
36
36
|
: "", size === "lg"
|
|
37
37
|
? "[&>.select-mobase-button]:text-base [&>.select-mobase-button]:h-12"
|
|
38
|
-
: ""), children: [label && ((0, jsx_runtime_1.jsx)("span", { className: (0, utils_1.cn)("mobase-select-label absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500", size === "lg" && "text-sm -top-2.5", disabled && "text-gray-400", isError && "text-red-500"), children: label })), (0, jsx_runtime_1.jsx)(SelectPrimitive.Root, { disabled: disabled, ...props, children: children }), message && ((0, jsx_runtime_1.jsxs)("div", { className: (0, utils_1.cn)("mobase-select-message flex space-x-1 items-center mt-1 text-gray-500", disabled && "text-gray-400", isError && "text-red-500"), children: [isError ? ((0, jsx_runtime_1.jsx)(solid_2.XCircleIcon, { width: 16, height: 16 })) : ((0, jsx_runtime_1.jsx)(outline_1.QuestionMarkCircleIcon, { width: 16, height: 16 })), (0, jsx_runtime_1.jsx)("span", { className: (0, utils_1.cn)(size === "lg" ? "text-sm" : "text-xs"), children: message })] }))] })));
|
|
38
|
+
: ""), children: [label && ((0, jsx_runtime_1.jsx)("span", { className: (0, utils_1.cn)("mobase-select-label absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500 z-[1]", size === "lg" && "text-sm -top-2.5", disabled && "text-gray-400", isError && "text-red-500"), children: label })), (0, jsx_runtime_1.jsx)(SelectPrimitive.Root, { disabled: disabled, ...props, children: children }), message && ((0, jsx_runtime_1.jsxs)("div", { className: (0, utils_1.cn)("mobase-select-message flex space-x-1 items-center mt-1 text-gray-500", disabled && "text-gray-400", isError && "text-red-500"), children: [isError ? ((0, jsx_runtime_1.jsx)(solid_2.XCircleIcon, { width: 16, height: 16 })) : ((0, jsx_runtime_1.jsx)(outline_1.QuestionMarkCircleIcon, { width: 16, height: 16 })), (0, jsx_runtime_1.jsx)("span", { className: (0, utils_1.cn)(size === "lg" ? "text-sm" : "text-xs"), children: message })] }))] })));
|
|
39
39
|
exports.Select = Select;
|
|
40
40
|
const SelectValue = SelectPrimitive.Value;
|
|
41
41
|
exports.SelectValue = SelectValue;
|
|
@@ -56,7 +56,7 @@ exports.SelectContent = SelectContent;
|
|
|
56
56
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
57
57
|
const SelectGroup = React.forwardRef(({ className, children, ...props }, ref) => ((0, jsx_runtime_1.jsx)(SelectPrimitive.Group, { ref: ref, className: (0, utils_1.cn)("relative p-1 after:w-full border-b border-gray-200 last:border-0", className), ...props, children: children })));
|
|
58
58
|
exports.SelectGroup = SelectGroup;
|
|
59
|
-
const SelectLabel = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)(SelectPrimitive.Label, { ref: ref, className: (0, utils_1.cn)("pr-2 pl-8 py-1.5 text-sm font-semibold", className), ...props })));
|
|
59
|
+
const SelectLabel = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)(SelectPrimitive.Label, { ref: ref, className: (0, utils_1.cn)("pr-2 pl-8 py-1.5 text-sm font-semibold z-[1]", className), ...props })));
|
|
60
60
|
exports.SelectLabel = SelectLabel;
|
|
61
61
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
62
62
|
const SelectItem = React.forwardRef(({ className, children, ...props }, ref) => {
|