@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 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) => /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
2454
- LabelPrimitive.Root,
2455
- {
2456
- ref,
2457
- className: cn(
2458
- labelVariants({ tone, size }),
2459
- "inline-flex items-center gap-1",
2460
- className
2461
- ),
2462
- ...props,
2463
- children: [
2464
- children,
2465
- hasLabelTooltip(tooltip) && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(LabelTooltip, { content: tooltip }),
2466
- required && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "text-destructive", children: "*" })
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) => /* @__PURE__ */ jsxs16(
2213
- LabelPrimitive.Root,
2214
- {
2215
- ref,
2216
- className: cn(
2217
- labelVariants({ tone, size }),
2218
- "inline-flex items-center gap-1",
2219
- className
2220
- ),
2221
- ...props,
2222
- children: [
2223
- children,
2224
- hasLabelTooltip(tooltip) && /* @__PURE__ */ jsx26(LabelTooltip, { content: tooltip }),
2225
- required && /* @__PURE__ */ jsx26("span", { className: "text-destructive", children: "*" })
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
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@2urgseui/core",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "2URGSE Shared UI component library",
5
5
  "license": "UNLICENSED",
6
6
  "main": "./dist/index.cjs",