@yakavkaz/uikit 0.0.30 → 0.0.31

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
@@ -1530,66 +1530,75 @@ const y = c(
1530
1530
  ({
1531
1531
  children: e,
1532
1532
  className: g,
1533
- defaultValue: i,
1534
- triggerIcon: Y,
1535
- style: M,
1536
- placeholder: x,
1537
- label: m,
1538
- labelColor: n,
1539
- ...h
1540
- }, w) => {
1541
- const J = h.value !== void 0 ? h : { ...h, defaultValue: i };
1542
- return /* @__PURE__ */ B("div", { className: I("bg-light-100 flex flex-col gap-1", g), children: [
1543
- m && /* @__PURE__ */ A(l, { style: { color: n }, variant: "text_16_regular", children: m[0]?.toUpperCase() + m.slice(1) }),
1544
- /* @__PURE__ */ B(G.Root, { ...J, children: [
1545
- /* @__PURE__ */ B(
1546
- G.Trigger,
1547
- {
1548
- ref: w,
1549
- style: M,
1550
- "aria-label": m,
1551
- className: I(
1552
- "inline-flex items-center justify-between gap-2",
1553
- "text-black",
1554
- "transition-colors",
1555
- "hover:text-light-900",
1556
- "data-[disabled]:text-light-700",
1557
- "data-[placeholder]:text-light-900",
1558
- "data-[state=open]:text-light-900 outline-none"
1559
- ),
1560
- children: [
1561
- /* @__PURE__ */ A("div", { className: "flex items-center gap-2", children: Y && /* @__PURE__ */ A(G.Icon, { className: "h-6 w-6", children: Y }) }),
1562
- /* @__PURE__ */ A(G.Value, { placeholder: x }),
1563
- /* @__PURE__ */ A(G.Icon, { className: "text-black transition-transform duration-300 data-[state=open]:rotate-180", children: /* @__PURE__ */ A(C, { iconId: "KeyboardArrowDown", className: "h-6 w-6" }) })
1564
- ]
1565
- }
1566
- ),
1567
- /* @__PURE__ */ A(G.Portal, { children: /* @__PURE__ */ A(
1568
- G.Content,
1569
- {
1570
- className: "z-50 w-[var(--radix-select-trigger-width)] overflow-hidden bg-white shadow-lg",
1571
- position: "popper",
1572
- sideOffset: 4,
1573
- collisionPadding: 10,
1574
- children: /* @__PURE__ */ A(G.Viewport, { className: "max-h-[200px] overflow-y-auto p-1", children: e })
1575
- }
1576
- ) })
1577
- ] })
1578
- ] });
1579
- }
1533
+ triggerClassName: i,
1534
+ valueClassName: Y,
1535
+ triggerIcon: M,
1536
+ style: x,
1537
+ placeholder: m,
1538
+ label: n,
1539
+ labelColor: h,
1540
+ ...w
1541
+ }, J) => /* @__PURE__ */ B("div", { className: I("flex flex-col gap-1", g), children: [
1542
+ n && /* @__PURE__ */ A(
1543
+ l,
1544
+ {
1545
+ style: { color: h },
1546
+ variant: "text_16_regular",
1547
+ className: "capitalize",
1548
+ children: n
1549
+ }
1550
+ ),
1551
+ /* @__PURE__ */ B(G.Root, { ...w, children: [
1552
+ /* @__PURE__ */ B(
1553
+ G.Trigger,
1554
+ {
1555
+ ref: J,
1556
+ style: x,
1557
+ "aria-label": n,
1558
+ className: I(
1559
+ "inline-flex items-center justify-between",
1560
+ "border border-gray-200 bg-white px-3 py-2",
1561
+ "text-black transition-colors",
1562
+ "hover:border-gray-300",
1563
+ "focus:ring-2 focus:ring-blue-500 focus:outline-none",
1564
+ "data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50",
1565
+ "data-[placeholder]:text-gray-500",
1566
+ i
1567
+ ),
1568
+ children: [
1569
+ /* @__PURE__ */ B("div", { className: I("flex items-center", M && "gap-2"), children: [
1570
+ M && /* @__PURE__ */ A("span", { className: "flex h-6 w-6 flex-shrink-0 items-center justify-center", children: M }),
1571
+ /* @__PURE__ */ A(G.Value, { placeholder: m, className: Y })
1572
+ ] }),
1573
+ /* @__PURE__ */ A(G.Icon, { className: "text-gray-600 transition-transform duration-200 data-[state=open]:rotate-180", children: /* @__PURE__ */ A(C, { iconId: "KeyboardArrowDown", className: "h-4 w-4" }) })
1574
+ ]
1575
+ }
1576
+ ),
1577
+ /* @__PURE__ */ A(G.Portal, { children: /* @__PURE__ */ A(
1578
+ G.Content,
1579
+ {
1580
+ className: "z-50 min-w-[var(--radix-select-trigger-width)] overflow-hidden border border-gray-200 bg-white shadow-lg",
1581
+ position: "popper",
1582
+ sideOffset: 4,
1583
+ collisionPadding: 10,
1584
+ children: /* @__PURE__ */ A(G.Viewport, { className: "max-h-60 overflow-y-auto p-1", children: e })
1585
+ }
1586
+ ) })
1587
+ ] })
1588
+ ] })
1580
1589
  );
1581
1590
  y.displayName = "Selector";
1582
1591
  const K = c(
1583
- ({ children: e, className: g = "", value: i, disabled: Y }, M) => /* @__PURE__ */ A(
1592
+ ({ children: e, className: g, ...i }, Y) => /* @__PURE__ */ A(
1584
1593
  G.Item,
1585
1594
  {
1586
- ref: M,
1587
- value: i,
1588
- disabled: Y,
1595
+ ref: Y,
1596
+ ...i,
1589
1597
  className: I(
1590
- "relative flex cursor-pointer items-center px-3 py-1.5 text-sm select-none",
1591
- "data-[highlighted]:text-success-300",
1592
- "data-[disabled]:text-primary-900 data-[disabled]:pointer-events-none",
1598
+ "relative flex cursor-pointer items-center rounded px-3 py-2 text-sm select-none",
1599
+ "hover:bg-gray-100 focus:bg-gray-100",
1600
+ "data-[highlighted]:bg-blue-50 data-[highlighted]:text-blue-900",
1601
+ "data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1593
1602
  "outline-none",
1594
1603
  g
1595
1604
  ),