canny-ui-react 6.0.0 → 6.1.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/dist/components/Accordion/Accordion.d.ts +38 -28
- package/dist/components/Button/ToggleButtonGroup.d.ts +39 -4
- package/dist/components/Checkbox/Checkbox.d.ts +13 -3
- package/dist/components/Dialog/Dialog.d.ts +6 -4
- package/dist/components/Drawer/Drawer.d.ts +6 -4
- package/dist/components/Menu/Menu.d.ts +27 -8
- package/dist/components/Popover/Popover.d.ts +10 -6
- package/dist/components/Radio/Radio.d.ts +16 -4
- package/dist/components/Select/Select.d.ts +16 -4
- package/dist/components/Switch/Switch.d.ts +12 -3
- package/dist/components/Tabs/Tabs.d.ts +12 -3
- package/dist/components/Tooltip/Tooltip.d.ts +23 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +19 -7
- package/dist/index.js.map +1 -1
- package/dist/utils/primitiveProps.d.ts +94 -0
- package/package.json +6 -5
package/dist/index.js
CHANGED
|
@@ -6106,7 +6106,15 @@ const ch = xt({ variant: "outline", color: "primary" }), oN = z(
|
|
|
6106
6106
|
s && "round",
|
|
6107
6107
|
i
|
|
6108
6108
|
);
|
|
6109
|
-
return /* @__PURE__ */ f(ch.Provider, { value: { variant: t, color: n, size: r }, children: /* @__PURE__ */ f(
|
|
6109
|
+
return /* @__PURE__ */ f(ch.Provider, { value: { variant: t, color: n, size: r }, children: /* @__PURE__ */ f(
|
|
6110
|
+
VS,
|
|
6111
|
+
{
|
|
6112
|
+
ref: l,
|
|
6113
|
+
className: u,
|
|
6114
|
+
...c,
|
|
6115
|
+
children: a
|
|
6116
|
+
}
|
|
6117
|
+
) });
|
|
6110
6118
|
}
|
|
6111
6119
|
), sN = z(
|
|
6112
6120
|
function({ icon: t, shape: n, className: r, children: o, ...s }, i) {
|
|
@@ -10474,9 +10482,11 @@ const _N = z(function({ className: t, children: n, ...r }, o) {
|
|
|
10474
10482
|
return /* @__PURE__ */ f(AR, { ref: n, ...t });
|
|
10475
10483
|
}), $N = z(function({ className: t, ...n }, r) {
|
|
10476
10484
|
return /* @__PURE__ */ f(MR, { ref: r, className: Y("cny-select-group-label", t), ...n });
|
|
10477
|
-
}), VN = z(
|
|
10478
|
-
|
|
10479
|
-
});
|
|
10485
|
+
}), VN = z(
|
|
10486
|
+
function({ className: t, ...n }, r) {
|
|
10487
|
+
return /* @__PURE__ */ f(IR, { ref: r, className: Y("cny-select-separator", t), ...n });
|
|
10488
|
+
}
|
|
10489
|
+
);
|
|
10480
10490
|
function OR(e, t) {
|
|
10481
10491
|
return m.useReducer((n, r) => t[n][r] ?? n, e);
|
|
10482
10492
|
}
|
|
@@ -14550,9 +14560,11 @@ const pD = W1, mD = z(function({
|
|
|
14550
14560
|
}
|
|
14551
14561
|
) })
|
|
14552
14562
|
] });
|
|
14553
|
-
}), gD = Mg, yD = Ng, vD = z(
|
|
14554
|
-
|
|
14555
|
-
|
|
14563
|
+
}), gD = Mg, yD = Ng, vD = z(
|
|
14564
|
+
function({ className: t, ...n }, r) {
|
|
14565
|
+
return /* @__PURE__ */ f(Dg, { children: /* @__PURE__ */ f(kg, { ref: r, className: Y("cny-tooltip-content", t), ...n }) });
|
|
14566
|
+
}
|
|
14567
|
+
), bD = Qa, wD = Ja, xD = zR, SD = jR, CD = z(
|
|
14556
14568
|
function({ className: t, style: n, sx: r, withArrow: o = !1, sideOffset: s = 8, children: i, ...a }, c) {
|
|
14557
14569
|
const { className: l, style: u, styleTag: d } = oe(
|
|
14558
14570
|
r,
|