@refineui/react 0.0.7 → 0.0.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 +25 -38
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -8
- package/dist/index.d.ts +4 -8
- package/dist/index.js +69 -81
- package/dist/index.js.map +1 -1
- package/dist/spec/contract-index.json +1 -1
- package/dist/spec/token-trace-v2.json +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -122,7 +122,6 @@ __export(index_exports, {
|
|
|
122
122
|
Divider: () => Divider,
|
|
123
123
|
Drawer: () => Drawer,
|
|
124
124
|
DrawerBody: () => DrawerBody,
|
|
125
|
-
DrawerClose: () => DrawerClose,
|
|
126
125
|
DrawerContent: () => DrawerContent,
|
|
127
126
|
DrawerDescription: () => DrawerDescription,
|
|
128
127
|
DrawerFooter: () => DrawerFooter,
|
|
@@ -8650,7 +8649,6 @@ function DrawerContent({
|
|
|
8650
8649
|
function DrawerHeader({
|
|
8651
8650
|
className,
|
|
8652
8651
|
children,
|
|
8653
|
-
showClose = true,
|
|
8654
8652
|
actions,
|
|
8655
8653
|
...props
|
|
8656
8654
|
}) {
|
|
@@ -8666,8 +8664,7 @@ function DrawerHeader({
|
|
|
8666
8664
|
...props,
|
|
8667
8665
|
children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: drawerStyles.headerMain, children: [
|
|
8668
8666
|
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: drawerStyles.headerMainText, children }),
|
|
8669
|
-
hasActions ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: drawerStyles.headerActions, children: actions }) : null
|
|
8670
|
-
showClose ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(DrawerClose, {}) : null
|
|
8667
|
+
hasActions ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: drawerStyles.headerActions, children: actions }) : null
|
|
8671
8668
|
] })
|
|
8672
8669
|
}
|
|
8673
8670
|
);
|
|
@@ -8746,36 +8743,6 @@ function DrawerFooter({ className, ...props }) {
|
|
|
8746
8743
|
}
|
|
8747
8744
|
);
|
|
8748
8745
|
}
|
|
8749
|
-
function DrawerClose({
|
|
8750
|
-
children,
|
|
8751
|
-
onClick,
|
|
8752
|
-
className,
|
|
8753
|
-
type = "button",
|
|
8754
|
-
variant,
|
|
8755
|
-
size,
|
|
8756
|
-
layout,
|
|
8757
|
-
...props
|
|
8758
|
-
}) {
|
|
8759
|
-
const { setOpen } = useDrawerContext("DrawerClose");
|
|
8760
|
-
const iconOnly = children == null;
|
|
8761
|
-
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
8762
|
-
Button,
|
|
8763
|
-
{
|
|
8764
|
-
...props,
|
|
8765
|
-
type,
|
|
8766
|
-
variant: variant ?? (iconOnly ? "ghost" : "outline"),
|
|
8767
|
-
size: size ?? "md",
|
|
8768
|
-
layout: layout ?? (iconOnly ? "icon" : "label"),
|
|
8769
|
-
"aria-label": iconOnly ? "Close" : void 0,
|
|
8770
|
-
className,
|
|
8771
|
-
onClick: (e) => {
|
|
8772
|
-
onClick?.(e);
|
|
8773
|
-
if (!e.defaultPrevented) setOpen(false);
|
|
8774
|
-
},
|
|
8775
|
-
children: iconOnly ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(WebIcon, { name: "dismiss", size: import_tokens19.iconSizes.xlarge, color: "currentColor", iconStyle: "regular", "aria-hidden": true }) : children
|
|
8776
|
-
}
|
|
8777
|
-
);
|
|
8778
|
-
}
|
|
8779
8746
|
|
|
8780
8747
|
// src/components/Dropdown/Dropdown.tsx
|
|
8781
8748
|
var import_clsx70 = require("clsx");
|
|
@@ -15538,7 +15505,18 @@ var Collapsible = (0, import_react59.forwardRef)(function Collapsible2({ open: o
|
|
|
15538
15505
|
return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(CollapsibleContext.Provider, { value: contextValue, children: asChild ? /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_react60.Slot, { ...shared, children }) : /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { ...shared, children }) });
|
|
15539
15506
|
});
|
|
15540
15507
|
var CollapsibleTrigger = (0, import_react59.forwardRef)(
|
|
15541
|
-
function CollapsibleTrigger2({
|
|
15508
|
+
function CollapsibleTrigger2({
|
|
15509
|
+
asChild = false,
|
|
15510
|
+
onClick,
|
|
15511
|
+
className,
|
|
15512
|
+
children,
|
|
15513
|
+
variant = "ghost",
|
|
15514
|
+
size,
|
|
15515
|
+
layout,
|
|
15516
|
+
fullWidth,
|
|
15517
|
+
type = "button",
|
|
15518
|
+
...props
|
|
15519
|
+
}, ref) {
|
|
15542
15520
|
const { open, toggle, contentId, triggerId } = useCollapsibleContext("CollapsibleTrigger");
|
|
15543
15521
|
const shared = {
|
|
15544
15522
|
...props,
|
|
@@ -15547,7 +15525,6 @@ var CollapsibleTrigger = (0, import_react59.forwardRef)(
|
|
|
15547
15525
|
"aria-expanded": open,
|
|
15548
15526
|
"aria-controls": contentId,
|
|
15549
15527
|
"data-state": open ? "open" : "closed",
|
|
15550
|
-
"data-refineui": "collapsible-trigger",
|
|
15551
15528
|
className,
|
|
15552
15529
|
onClick: (event) => {
|
|
15553
15530
|
onClick?.(event);
|
|
@@ -15555,7 +15532,18 @@ var CollapsibleTrigger = (0, import_react59.forwardRef)(
|
|
|
15555
15532
|
}
|
|
15556
15533
|
};
|
|
15557
15534
|
if (asChild) return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_react60.Slot, { ...shared, children });
|
|
15558
|
-
return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
15535
|
+
return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
15536
|
+
Button,
|
|
15537
|
+
{
|
|
15538
|
+
...shared,
|
|
15539
|
+
type,
|
|
15540
|
+
variant,
|
|
15541
|
+
size,
|
|
15542
|
+
layout,
|
|
15543
|
+
fullWidth,
|
|
15544
|
+
children
|
|
15545
|
+
}
|
|
15546
|
+
);
|
|
15559
15547
|
}
|
|
15560
15548
|
);
|
|
15561
15549
|
var CollapsibleContent = (0, import_react59.forwardRef)(
|
|
@@ -16081,7 +16069,6 @@ var ContextMenuSubContent = (0, import_react61.forwardRef)(
|
|
|
16081
16069
|
Divider,
|
|
16082
16070
|
Drawer,
|
|
16083
16071
|
DrawerBody,
|
|
16084
|
-
DrawerClose,
|
|
16085
16072
|
DrawerContent,
|
|
16086
16073
|
DrawerDescription,
|
|
16087
16074
|
DrawerFooter,
|