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