@fluid-app/ui-primitives 0.1.11 → 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 +32 -0
- 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 +32 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/index.ts +2 -0
package/dist/index.cjs
CHANGED
|
@@ -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, {
|
|
@@ -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;
|