@nadicodeai/ui 12.1.122 → 12.1.123
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/scroll-area.d.ts.map +1 -1
- package/dist/components/scroll-area.js +1 -1
- package/dist/components/sidebar.d.ts +2 -2
- package/dist/components/sidebar.d.ts.map +1 -1
- package/dist/components/sidebar.js +4 -3
- package/dist/showcase/usage.generated.js +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scroll-area.d.ts","sourceRoot":"","sources":["../../src/components/scroll-area.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,UAAU,IAAI,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAM/E,KAAK,YAAY,GAAG;IAClB,+EAA+E;IAC/E,QAAQ,EAAE,MAAM,CAAC;IACjB,mFAAmF;IACnF,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,KAAK,UAAU,GACX;IAAE,QAAQ,EAAE,GAAG,GAAG,GAAG,GAAG,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,SAAS,CAAA;CAAE,GAC1D;IAAE,QAAQ,EAAE,GAAG,GAAG,GAAG,CAAC;IAAC,YAAY,EAAE,YAAY,CAAA;CAAE,CAAC;AAExD,KAAK,eAAe,GAAG,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,KAAK,EAAE,UAAU,GAAG,QAAQ,CAAC,GAChF,UAAU,GAAG;IACX,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,mGAAmG;IACnG,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACtC,oGAAoG;IACpG,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACrC,CAAC;AAmCJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,iBAAS,UAAU,CAAC,EAClB,SAAS,EACT,QAAQ,EACR,gBAAgB,EAChB,cAAc,EACd,QAAQ,EACR,YAAY,EACZ,GAAG,KAAK,EACT,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"scroll-area.d.ts","sourceRoot":"","sources":["../../src/components/scroll-area.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,UAAU,IAAI,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAM/E,KAAK,YAAY,GAAG;IAClB,+EAA+E;IAC/E,QAAQ,EAAE,MAAM,CAAC;IACjB,mFAAmF;IACnF,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,KAAK,UAAU,GACX;IAAE,QAAQ,EAAE,GAAG,GAAG,GAAG,GAAG,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,SAAS,CAAA;CAAE,GAC1D;IAAE,QAAQ,EAAE,GAAG,GAAG,GAAG,CAAC;IAAC,YAAY,EAAE,YAAY,CAAA;CAAE,CAAC;AAExD,KAAK,eAAe,GAAG,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,KAAK,EAAE,UAAU,GAAG,QAAQ,CAAC,GAChF,UAAU,GAAG;IACX,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,mGAAmG;IACnG,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACtC,oGAAoG;IACpG,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACrC,CAAC;AAmCJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,iBAAS,UAAU,CAAC,EAClB,SAAS,EACT,QAAQ,EACR,gBAAgB,EAChB,cAAc,EACd,QAAQ,EACR,YAAY,EACZ,GAAG,KAAK,EACT,EAAE,eAAe,qBA0EjB;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -77,6 +77,6 @@ function ScrollArea({ className, children, contentClassName, frameClassName, ove
|
|
|
77
77
|
next: axis === "y" ? !state.overflowYEnd : !state.overflowXEnd,
|
|
78
78
|
});
|
|
79
79
|
return (_jsxs("div", { ...rootProps, children: [axis === "y" ? row : null, _jsx("div", { className: cn("relative min-h-0 flex-1 rounded-[inherit]", frameClassName), children: rootProps.children }), axis === "x" ? row : null] }));
|
|
80
|
-
}, ...props, children: _jsx(ScrollAreaPrimitive.Viewport, { ref: viewport, "data-slot": "scroll-area-viewport", className: cn("size-full scroll-smooth rounded-[inherit] transition-colors motion-reduce:scroll-auto", viewportAxis[overflow]), children: _jsx(ScrollAreaPrimitive.Content, { ref: content, "data-slot": "scroll-area-content", className: contentClassName, children: children }) }) }));
|
|
80
|
+
}, ...props, children: _jsx(ScrollAreaPrimitive.Viewport, { ref: viewport, "data-slot": "scroll-area-viewport", className: cn("size-full overscroll-contain scroll-smooth rounded-[inherit] transition-colors motion-reduce:scroll-auto", viewportAxis[overflow]), children: _jsx(ScrollAreaPrimitive.Content, { ref: content, "data-slot": "scroll-area-content", className: contentClassName, style: overflow === "y" ? { minWidth: 0 } : undefined, children: children }) }) }));
|
|
81
81
|
}
|
|
82
82
|
export { ScrollArea };
|
|
@@ -92,7 +92,7 @@ declare function SidebarInput({ className, ...props }: React.ComponentProps<type
|
|
|
92
92
|
declare function SidebarHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
93
93
|
declare function SidebarFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
94
94
|
declare function SidebarSeparator({ className, ...props }: React.ComponentProps<typeof Separator>): React.JSX.Element;
|
|
95
|
-
declare function SidebarContent({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
95
|
+
declare function SidebarContent({ className, children, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
96
96
|
declare function SidebarGroup({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
97
97
|
declare function SidebarGroupLabel({ className, render, ...props }: useRender.ComponentProps<"div"> & React.ComponentProps<"div">): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
98
98
|
declare function SidebarGroupAction({ className, render, ...props }: useRender.ComponentProps<"button"> & React.ComponentProps<"button">): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
@@ -184,7 +184,7 @@ type SidebarFrameProps = {
|
|
|
184
184
|
* @family Navigation
|
|
185
185
|
* @when The content of every product's `Sidebar`: the Portal's brand and Nadia's company row go in `header`, their Find in `find`, their places in the children.
|
|
186
186
|
* @instead A product lays no region of its own: no grid of rows, no hand-drawn rule between regions.
|
|
187
|
-
* @behaviour A 56 px header with the collapse control under a 1 px rule, Find under it, the groups scrolling in the middle, then the band and the account pinned at the foot above 1 px rules. `header`, `find` and `account` are required; an absent band leaves no rule. Collapsed, the header shows only the collapse control.
|
|
187
|
+
* @behaviour A 56 px header with the collapse control under a 1 px rule, Find under it, the groups scrolling in the middle and fading at an edge with more beyond it, then the band and the account pinned at the foot above 1 px rules. The host gives the frame a bounded height. `header`, `find` and `account` are required; an absent band leaves no rule. Collapsed, the header shows only the collapse control and the icon rows still scroll.
|
|
188
188
|
* @words None of its own; every word arrives in the regions.
|
|
189
189
|
* @access The regions are plain containers; the landmark is the `Sidebar` around them and the nav inside each group.
|
|
190
190
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sidebar.d.ts","sourceRoot":"","sources":["../../src/components/sidebar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAKlE,OAAO,EAAE,KAAK,cAAc,EAAU,KAAK,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC5F,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,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EAClB,mBAAmB,EACnB,iBAAiB,EACjB,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,EACf,cAAc,EACd,oBAAoB,EACpB,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,UAAU,GACX,CAAC"}
|
|
@@ -10,6 +10,7 @@ import { BrandWordmark } from "./brand.js";
|
|
|
10
10
|
import { Button } from "./button.js";
|
|
11
11
|
import { Input } from "./input.js";
|
|
12
12
|
import { Separator } from "./separator.js";
|
|
13
|
+
import { ScrollArea } from "./scroll-area.js";
|
|
13
14
|
import { Sheet, SheetContent, SheetDescription, SheetHeader, SheetTitle } from "./sheet.js";
|
|
14
15
|
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./tooltip.js";
|
|
15
16
|
import { ChevronRightIcon, PanelLeftIcon, SearchIcon } from "lucide-react";
|
|
@@ -232,8 +233,8 @@ function SidebarFooter({ className, ...props }) {
|
|
|
232
233
|
function SidebarSeparator({ className, ...props }) {
|
|
233
234
|
return (_jsx(Separator, { "data-slot": "sidebar-separator", "data-sidebar": "separator", className: cn("mx-2 w-auto bg-sidebar-border", className), ...props }));
|
|
234
235
|
}
|
|
235
|
-
function SidebarContent({ className, ...props }) {
|
|
236
|
-
return (_jsx(
|
|
236
|
+
function SidebarContent({ className, children, ...props }) {
|
|
237
|
+
return (_jsx(ScrollArea, { "data-slot": "sidebar-content", "data-sidebar": "content", overflow: "y", contentClassName: "flex min-w-0 flex-col gap-0", className: cn("min-h-0 flex-1", className), ...props, children: children }));
|
|
237
238
|
}
|
|
238
239
|
function SidebarGroup({ className, ...props }) {
|
|
239
240
|
return (_jsx("div", { "data-slot": "sidebar-group", "data-sidebar": "group", className: cn("relative flex w-full min-w-0 flex-col p-2 group-data-[collapsible=icon]:px-1.5", className), ...props }));
|
|
@@ -402,7 +403,7 @@ function SidebarFind({ label, shortcut, ...props }) {
|
|
|
402
403
|
* @family Navigation
|
|
403
404
|
* @when The content of every product's `Sidebar`: the Portal's brand and Nadia's company row go in `header`, their Find in `find`, their places in the children.
|
|
404
405
|
* @instead A product lays no region of its own: no grid of rows, no hand-drawn rule between regions.
|
|
405
|
-
* @behaviour A 56 px header with the collapse control under a 1 px rule, Find under it, the groups scrolling in the middle, then the band and the account pinned at the foot above 1 px rules. `header`, `find` and `account` are required; an absent band leaves no rule. Collapsed, the header shows only the collapse control.
|
|
406
|
+
* @behaviour A 56 px header with the collapse control under a 1 px rule, Find under it, the groups scrolling in the middle and fading at an edge with more beyond it, then the band and the account pinned at the foot above 1 px rules. The host gives the frame a bounded height. `header`, `find` and `account` are required; an absent band leaves no rule. Collapsed, the header shows only the collapse control and the icon rows still scroll.
|
|
406
407
|
* @words None of its own; every word arrives in the regions.
|
|
407
408
|
* @access The regions are plain containers; the landmark is the `Sidebar` around them and the nav inside each group.
|
|
408
409
|
*/
|
|
@@ -912,7 +912,7 @@ export const USAGE = [
|
|
|
912
912
|
summary: "The regions of a product's `Sidebar`, in order: header, Find, groups, band, account.",
|
|
913
913
|
when: "The content of every product's `Sidebar`: the Portal's brand and Nadia's company row go in `header`, their Find in `find`, their places in the children.",
|
|
914
914
|
instead: "A product lays no region of its own: no grid of rows, no hand-drawn rule between regions.",
|
|
915
|
-
behaviour: "A 56 px header with the collapse control under a 1 px rule, Find under it, the groups scrolling in the middle, then the band and the account pinned at the foot above 1 px rules. `header`, `find` and `account` are required; an absent band leaves no rule. Collapsed, the header shows only the collapse control.",
|
|
915
|
+
behaviour: "A 56 px header with the collapse control under a 1 px rule, Find under it, the groups scrolling in the middle and fading at an edge with more beyond it, then the band and the account pinned at the foot above 1 px rules. The host gives the frame a bounded height. `header`, `find` and `account` are required; an absent band leaves no rule. Collapsed, the header shows only the collapse control and the icon rows still scroll.",
|
|
916
916
|
words: "None of its own; every word arrives in the regions.",
|
|
917
917
|
access: "The regions are plain containers; the landmark is the `Sidebar` around them and the nav inside each group.",
|
|
918
918
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nadicodeai/ui",
|
|
3
|
-
"version": "12.1.
|
|
3
|
+
"version": "12.1.123",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"@base-ui/react": "^1.9.0",
|
|
84
84
|
"@iconify-icons/logos": "^2.0.3",
|
|
85
85
|
"@iconify/react": "^6.0.2",
|
|
86
|
-
"@nadicodeai/design-system": "12.1.
|
|
86
|
+
"@nadicodeai/design-system": "12.1.123",
|
|
87
87
|
"@tanstack/react-table": "^9.3.1",
|
|
88
88
|
"@vgpu/wgsl": "0.6.0",
|
|
89
89
|
"class-variance-authority": "^0.7.1",
|