@opencxh/ui-kit 3.137.6 → 3.137.8
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 +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +63 -57
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -522,64 +522,70 @@ function qe({
|
|
|
522
522
|
menuLabel: y = "More options"
|
|
523
523
|
}) {
|
|
524
524
|
const x = o || m, h = l.length > 0;
|
|
525
|
-
return
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
525
|
+
return (
|
|
526
|
+
// De scheiding tussen beide helften is een kier in de vulling, niet een
|
|
527
|
+
// lijn: bij een ink-gevulde knop leest 2px als een spleet. 1px is genoeg
|
|
528
|
+
// om te zien dat het twee doelen zijn. De omrande varianten hebben hun
|
|
529
|
+
// eigen randen al en houden de helften tegen elkaar.
|
|
530
|
+
/* @__PURE__ */ c("div", { className: d("inline-flex items-center", n === "primary" && "gap-px"), children: [
|
|
531
|
+
/* @__PURE__ */ e(
|
|
532
|
+
ae,
|
|
533
|
+
{
|
|
534
|
+
variant: n,
|
|
535
|
+
size: s,
|
|
536
|
+
onClick: r,
|
|
537
|
+
disabled: o,
|
|
538
|
+
loading: m,
|
|
539
|
+
leftIcon: a,
|
|
540
|
+
className: d(h && "rounded-r-none"),
|
|
541
|
+
children: t
|
|
542
|
+
}
|
|
543
|
+
),
|
|
544
|
+
h && /* @__PURE__ */ e(
|
|
545
|
+
Ve,
|
|
546
|
+
{
|
|
547
|
+
placement: u,
|
|
548
|
+
disabled: x,
|
|
549
|
+
triggerLabel: y,
|
|
550
|
+
className: "min-w-menu py-1",
|
|
551
|
+
trigger: /* @__PURE__ */ e(
|
|
552
|
+
"span",
|
|
553
|
+
{
|
|
554
|
+
"aria-hidden": "true",
|
|
555
|
+
className: d(
|
|
556
|
+
"inline-flex items-center justify-center rounded-md rounded-l-none",
|
|
557
|
+
"transition-colors duration-fast ease-out",
|
|
558
|
+
Bt[n],
|
|
559
|
+
Rt[s],
|
|
560
|
+
x && "cursor-not-allowed opacity-50"
|
|
561
|
+
),
|
|
562
|
+
children: /* @__PURE__ */ e(Se, { className: "size-icon-md" })
|
|
563
|
+
}
|
|
564
|
+
),
|
|
565
|
+
children: (b) => /* @__PURE__ */ e(ve, { children: l.map((v) => /* @__PURE__ */ c(
|
|
566
|
+
"button",
|
|
567
|
+
{
|
|
568
|
+
type: "button",
|
|
569
|
+
onClick: () => {
|
|
570
|
+
v.onClick(), b();
|
|
571
|
+
},
|
|
572
|
+
className: d(
|
|
573
|
+
"flex w-full items-center gap-2 px-3 py-1.5 text-left text-sm",
|
|
574
|
+
"transition-colors duration-fast ease-out",
|
|
575
|
+
"focus-visible:outline-none focus-visible:focus-ring",
|
|
576
|
+
v.variant === "destructive" ? "text-danger-fg hover:bg-danger-soft" : "text-text hover:bg-surface-hover"
|
|
577
|
+
),
|
|
578
|
+
children: [
|
|
579
|
+
v.icon && /* @__PURE__ */ e("span", { className: "shrink-0", children: v.icon }),
|
|
580
|
+
v.label
|
|
581
|
+
]
|
|
566
582
|
},
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
children: [
|
|
574
|
-
v.icon && /* @__PURE__ */ e("span", { className: "shrink-0", children: v.icon }),
|
|
575
|
-
v.label
|
|
576
|
-
]
|
|
577
|
-
},
|
|
578
|
-
v.id
|
|
579
|
-
)) })
|
|
580
|
-
}
|
|
581
|
-
)
|
|
582
|
-
] });
|
|
583
|
+
v.id
|
|
584
|
+
)) })
|
|
585
|
+
}
|
|
586
|
+
)
|
|
587
|
+
] })
|
|
588
|
+
);
|
|
583
589
|
}
|
|
584
590
|
const Ht = {
|
|
585
591
|
sm: "size-checkbox-sm",
|