@fluid-app/ui-primitives 0.1.10 → 0.1.12
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 +35 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -2
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +14 -2
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +35 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/index.ts +2 -0
package/dist/index.cjs
CHANGED
|
@@ -234,7 +234,7 @@ function AlertDialogPortal({ ...props }) {
|
|
|
234
234
|
function AlertDialogOverlay({ className, ...props }) {
|
|
235
235
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(radix_ui.AlertDialog.Overlay, {
|
|
236
236
|
"data-slot": "alert-dialog-overlay",
|
|
237
|
-
className: cn("data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-
|
|
237
|
+
className: cn("data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-[#030712]/70", className),
|
|
238
238
|
...props
|
|
239
239
|
});
|
|
240
240
|
}
|
|
@@ -740,7 +740,7 @@ function DialogClose({ ...props }) {
|
|
|
740
740
|
function DialogOverlay({ className, ...props }) {
|
|
741
741
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_radix_ui_react_dialog.Overlay, {
|
|
742
742
|
"data-slot": "dialog-overlay",
|
|
743
|
-
className: cn("data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-
|
|
743
|
+
className: cn("data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-[#030712]/70 backdrop-blur-sm", className),
|
|
744
744
|
...props
|
|
745
745
|
});
|
|
746
746
|
}
|
|
@@ -1166,6 +1166,36 @@ function RadioGroupItem({ className, ...props }) {
|
|
|
1166
1166
|
});
|
|
1167
1167
|
}
|
|
1168
1168
|
//#endregion
|
|
1169
|
+
//#region src/components/ScrollArea.tsx
|
|
1170
|
+
function ScrollArea({ className, children, ...props }) {
|
|
1171
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(radix_ui.ScrollArea.Root, {
|
|
1172
|
+
"data-slot": "scroll-area",
|
|
1173
|
+
className: cn("relative", className),
|
|
1174
|
+
...props,
|
|
1175
|
+
children: [
|
|
1176
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(radix_ui.ScrollArea.Viewport, {
|
|
1177
|
+
"data-slot": "scroll-area-viewport",
|
|
1178
|
+
className: "focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",
|
|
1179
|
+
children
|
|
1180
|
+
}),
|
|
1181
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(ScrollBar, {}),
|
|
1182
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(radix_ui.ScrollArea.Corner, {})
|
|
1183
|
+
]
|
|
1184
|
+
});
|
|
1185
|
+
}
|
|
1186
|
+
function ScrollBar({ className, orientation = "vertical", ...props }) {
|
|
1187
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(radix_ui.ScrollArea.ScrollAreaScrollbar, {
|
|
1188
|
+
"data-slot": "scroll-area-scrollbar",
|
|
1189
|
+
orientation,
|
|
1190
|
+
className: cn("flex touch-none p-px transition-colors select-none", orientation === "vertical" && "h-full w-2.5 border-l border-l-transparent", orientation === "horizontal" && "h-2.5 flex-col border-t border-t-transparent", className),
|
|
1191
|
+
...props,
|
|
1192
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(radix_ui.ScrollArea.ScrollAreaThumb, {
|
|
1193
|
+
"data-slot": "scroll-area-thumb",
|
|
1194
|
+
className: "bg-border relative flex-1 rounded-full"
|
|
1195
|
+
})
|
|
1196
|
+
});
|
|
1197
|
+
}
|
|
1198
|
+
//#endregion
|
|
1169
1199
|
//#region src/components/Select.tsx
|
|
1170
1200
|
function Select({ ...props }) {
|
|
1171
1201
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_radix_ui_react_select.Root, {
|
|
@@ -1283,7 +1313,7 @@ function SheetPortal(props) {
|
|
|
1283
1313
|
});
|
|
1284
1314
|
}
|
|
1285
1315
|
const SheetOverlay = react.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_radix_ui_react_dialog.Overlay, {
|
|
1286
|
-
className: cn("data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0 fixed inset-0 z-[1040] bg-
|
|
1316
|
+
className: cn("data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0 fixed inset-0 z-[1040] bg-[#030712]/70", className),
|
|
1287
1317
|
...props,
|
|
1288
1318
|
ref
|
|
1289
1319
|
}));
|
|
@@ -1707,6 +1737,8 @@ exports.PopoverTrigger = PopoverTrigger;
|
|
|
1707
1737
|
exports.PortalContainerProvider = PortalContainerProvider;
|
|
1708
1738
|
exports.RadioGroup = RadioGroup;
|
|
1709
1739
|
exports.RadioGroupItem = RadioGroupItem;
|
|
1740
|
+
exports.ScrollArea = ScrollArea;
|
|
1741
|
+
exports.ScrollBar = ScrollBar;
|
|
1710
1742
|
exports.Select = Select;
|
|
1711
1743
|
exports.SelectContent = SelectContent;
|
|
1712
1744
|
exports.SelectGroup = SelectGroup;
|