@gryt/ui 0.12.1 → 0.12.2
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.js
CHANGED
|
@@ -1723,9 +1723,10 @@ function vo({
|
|
|
1723
1723
|
options: r = [],
|
|
1724
1724
|
placeholder: e = "Select",
|
|
1725
1725
|
size: n = "medium",
|
|
1726
|
-
|
|
1726
|
+
portalContainer: c,
|
|
1727
|
+
...d
|
|
1727
1728
|
}) {
|
|
1728
|
-
return /* @__PURE__ */ m(v.Root, { items: r, ...
|
|
1729
|
+
return /* @__PURE__ */ m(v.Root, { items: r, ...d, children: [
|
|
1729
1730
|
/* @__PURE__ */ m("div", { className: s("gryt-select flex w-full flex-col gap-1.5", a), children: [
|
|
1730
1731
|
t ? /* @__PURE__ */ o(v.Label, { className: "text-xs font-medium text-gryt-muted", children: t }) : null,
|
|
1731
1732
|
/* @__PURE__ */ m(
|
|
@@ -1747,15 +1748,15 @@ function vo({
|
|
|
1747
1748
|
}
|
|
1748
1749
|
)
|
|
1749
1750
|
] }),
|
|
1750
|
-
/* @__PURE__ */ o(v.Portal, { children: /* @__PURE__ */ o(v.Positioner, { sideOffset: 6, className: "outline-none", children: /* @__PURE__ */ o(
|
|
1751
|
+
/* @__PURE__ */ o(v.Portal, { container: c, children: /* @__PURE__ */ o(v.Positioner, { sideOffset: 6, className: "outline-none", children: /* @__PURE__ */ o(
|
|
1751
1752
|
v.Popup,
|
|
1752
1753
|
{
|
|
1753
1754
|
className: s("min-w-(--anchor-width) p-1", E, H),
|
|
1754
|
-
children: /* @__PURE__ */ o(v.List, { children: r.map((
|
|
1755
|
+
children: /* @__PURE__ */ o(v.List, { children: r.map((l) => /* @__PURE__ */ m(
|
|
1755
1756
|
v.Item,
|
|
1756
1757
|
{
|
|
1757
|
-
value:
|
|
1758
|
-
disabled:
|
|
1758
|
+
value: l.value,
|
|
1759
|
+
disabled: l.disabled,
|
|
1759
1760
|
className: s(
|
|
1760
1761
|
"flex cursor-pointer items-center justify-between gap-2",
|
|
1761
1762
|
"rounded-(--gryt-radius-md) px-3 py-2 text-sm text-gryt-text",
|
|
@@ -1763,11 +1764,11 @@ function vo({
|
|
|
1763
1764
|
"data-disabled:cursor-not-allowed data-disabled:opacity-50"
|
|
1764
1765
|
),
|
|
1765
1766
|
children: [
|
|
1766
|
-
/* @__PURE__ */ o(v.ItemText, { children:
|
|
1767
|
+
/* @__PURE__ */ o(v.ItemText, { children: l.label }),
|
|
1767
1768
|
/* @__PURE__ */ o(v.ItemIndicator, { className: "text-gryt-accent-11", children: /* @__PURE__ */ o(Ce, { size: 14, weight: "bold" }) })
|
|
1768
1769
|
]
|
|
1769
1770
|
},
|
|
1770
|
-
String(
|
|
1771
|
+
String(l.value)
|
|
1771
1772
|
)) })
|
|
1772
1773
|
}
|
|
1773
1774
|
) }) })
|