@2urgseui/core 0.1.6 → 0.1.7
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 +23 -18
- package/dist/index.js +23 -18
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2450,23 +2450,28 @@ function hasLabelTooltip(tooltip) {
|
|
|
2450
2450
|
if (typeof tooltip === "string" && tooltip.trim() === "") return false;
|
|
2451
2451
|
return true;
|
|
2452
2452
|
}
|
|
2453
|
-
var Label2 = React25.forwardRef(({ className, tone, size, required, tooltip, children, ...props }, ref) =>
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
)
|
|
2453
|
+
var Label2 = React25.forwardRef(({ className, tone, size, required, tooltip, children, ...props }, ref) => {
|
|
2454
|
+
const hasTooltip = hasLabelTooltip(tooltip);
|
|
2455
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
|
2456
|
+
LabelPrimitive.Root,
|
|
2457
|
+
{
|
|
2458
|
+
ref,
|
|
2459
|
+
className: cn(
|
|
2460
|
+
labelVariants({ tone, size }),
|
|
2461
|
+
hasTooltip ? "flex w-full min-w-0 items-center justify-between gap-2" : "inline-flex items-center gap-1",
|
|
2462
|
+
className
|
|
2463
|
+
),
|
|
2464
|
+
...props,
|
|
2465
|
+
children: [
|
|
2466
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("span", { className: "inline-flex min-w-0 items-center gap-1", children: [
|
|
2467
|
+
children,
|
|
2468
|
+
required && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "text-destructive", children: "*" })
|
|
2469
|
+
] }),
|
|
2470
|
+
hasTooltip && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(LabelTooltip, { content: tooltip })
|
|
2471
|
+
]
|
|
2472
|
+
}
|
|
2473
|
+
);
|
|
2474
|
+
});
|
|
2470
2475
|
Label2.displayName = LabelPrimitive.Root.displayName;
|
|
2471
2476
|
|
|
2472
2477
|
// source/components/primitive/RadioGroup/radiogroup.tsx
|
|
@@ -3359,7 +3364,7 @@ function FormField({
|
|
|
3359
3364
|
required,
|
|
3360
3365
|
size: "sm",
|
|
3361
3366
|
tooltip: labelTooltip,
|
|
3362
|
-
className: "font-normal leading-snug",
|
|
3367
|
+
className: "min-w-0 flex-1 font-normal leading-snug",
|
|
3363
3368
|
children: label
|
|
3364
3369
|
}
|
|
3365
3370
|
)
|
package/dist/index.js
CHANGED
|
@@ -2209,23 +2209,28 @@ function hasLabelTooltip(tooltip) {
|
|
|
2209
2209
|
if (typeof tooltip === "string" && tooltip.trim() === "") return false;
|
|
2210
2210
|
return true;
|
|
2211
2211
|
}
|
|
2212
|
-
var Label2 = React25.forwardRef(({ className, tone, size, required, tooltip, children, ...props }, ref) =>
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
)
|
|
2212
|
+
var Label2 = React25.forwardRef(({ className, tone, size, required, tooltip, children, ...props }, ref) => {
|
|
2213
|
+
const hasTooltip = hasLabelTooltip(tooltip);
|
|
2214
|
+
return /* @__PURE__ */ jsxs16(
|
|
2215
|
+
LabelPrimitive.Root,
|
|
2216
|
+
{
|
|
2217
|
+
ref,
|
|
2218
|
+
className: cn(
|
|
2219
|
+
labelVariants({ tone, size }),
|
|
2220
|
+
hasTooltip ? "flex w-full min-w-0 items-center justify-between gap-2" : "inline-flex items-center gap-1",
|
|
2221
|
+
className
|
|
2222
|
+
),
|
|
2223
|
+
...props,
|
|
2224
|
+
children: [
|
|
2225
|
+
/* @__PURE__ */ jsxs16("span", { className: "inline-flex min-w-0 items-center gap-1", children: [
|
|
2226
|
+
children,
|
|
2227
|
+
required && /* @__PURE__ */ jsx26("span", { className: "text-destructive", children: "*" })
|
|
2228
|
+
] }),
|
|
2229
|
+
hasTooltip && /* @__PURE__ */ jsx26(LabelTooltip, { content: tooltip })
|
|
2230
|
+
]
|
|
2231
|
+
}
|
|
2232
|
+
);
|
|
2233
|
+
});
|
|
2229
2234
|
Label2.displayName = LabelPrimitive.Root.displayName;
|
|
2230
2235
|
|
|
2231
2236
|
// source/components/primitive/RadioGroup/radiogroup.tsx
|
|
@@ -3118,7 +3123,7 @@ function FormField({
|
|
|
3118
3123
|
required,
|
|
3119
3124
|
size: "sm",
|
|
3120
3125
|
tooltip: labelTooltip,
|
|
3121
|
-
className: "font-normal leading-snug",
|
|
3126
|
+
className: "min-w-0 flex-1 font-normal leading-snug",
|
|
3122
3127
|
children: label
|
|
3123
3128
|
}
|
|
3124
3129
|
)
|