@nadicodeai/ui 12.1.179 → 12.1.181
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/brand.d.ts +29 -1
- package/dist/components/brand.d.ts.map +1 -1
- package/dist/components/brand.js +33 -2
- package/dist/components/platform-mark.d.ts.map +1 -1
- package/dist/components/platform-mark.js +17 -20
- package/dist/components/portal-sidebar-frame.d.ts +4 -4
- package/dist/components/portal-sidebar-frame.d.ts.map +1 -1
- package/dist/components/portal-sidebar-frame.js +3 -3
- package/dist/components/sidebar.d.ts +6 -6
- package/dist/components/sidebar.d.ts.map +1 -1
- package/dist/components/sidebar.js +7 -7
- package/dist/showcase/specimens/index.d.ts +1 -0
- package/dist/showcase/specimens/index.d.ts.map +1 -1
- package/dist/showcase/specimens/navigation.js +3 -3
- package/dist/showcase/specimens/status.d.ts +1 -0
- package/dist/showcase/specimens/status.d.ts.map +1 -1
- package/dist/showcase/specimens/status.js +2 -1
- package/dist/showcase/usage.generated.d.ts +1 -1
- package/dist/showcase/usage.generated.d.ts.map +1 -1
- package/dist/showcase/usage.generated.js +16 -5
- package/package.json +2 -2
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type VariantProps } from "class-variance-authority";
|
|
1
2
|
import * as React from "react";
|
|
2
3
|
type BrandLogoProps = Omit<React.ComponentProps<"svg">, "aria-hidden" | "aria-label" | "children" | "role"> & {
|
|
3
4
|
alt?: string;
|
|
@@ -21,5 +22,32 @@ declare function BrandMark({ alt, className, width, height, decoding, ...props }
|
|
|
21
22
|
* it, and it is hidden.
|
|
22
23
|
*/
|
|
23
24
|
declare function BrandWordmark({ alt, className, width, height, decoding, ...props }: BrandLogoProps): React.JSX.Element;
|
|
24
|
-
|
|
25
|
+
declare const productWordmarkVariants: (props?: ({
|
|
26
|
+
size?: "header" | "inherit" | null | undefined;
|
|
27
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
28
|
+
type ProductWordmarkProps = Omit<React.ComponentProps<"span">, "children" | "role"> & VariantProps<typeof productWordmarkVariants> & {
|
|
29
|
+
/** The product's name in the page's language: "Portal", "Portale". */
|
|
30
|
+
product: string;
|
|
31
|
+
/** Defaults to "nadicode" and the product; `""` where a link or control already names it. */
|
|
32
|
+
alt?: string;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* The wordmark followed by the name of the nadicode product it heads: *nadicode Portal*.
|
|
36
|
+
*
|
|
37
|
+
* @family Status
|
|
38
|
+
* @when The head of a product that is nadicode's own and named after it: the Portal's sidebar and
|
|
39
|
+
* the header of its sign-in and other entry pages, the same form in both.
|
|
40
|
+
* @instead `BrandWordmark` alone where the company, not a product, is named. Nadia and Alveare stand
|
|
41
|
+
* on their own names and marks, never after the wordmark.
|
|
42
|
+
* @behaviour One line on one baseline. The font size is the wordmark's height: `size="header"` in an
|
|
43
|
+
* entry page's header, and `SidebarBrand` fits it to the column. The name is set at the
|
|
44
|
+
* wordmark's x-height, a word space after it, in regular weight and the muted text colour, so the
|
|
45
|
+
* company leads and the product follows. Its glyphs stand above the box, which is as tall as the
|
|
46
|
+
* wordmark, so the pair centres on the logo. Narrower than the pair, the name ends in an ellipsis.
|
|
47
|
+
* @words The product's name as the glossary writes it in the page's language.
|
|
48
|
+
* @access One image named "nadicode" and the product by default; `alt=""` hides it where a link or
|
|
49
|
+
* control around it carries the name.
|
|
50
|
+
*/
|
|
51
|
+
declare function ProductWordmark({ product, alt, size, className, ...props }: ProductWordmarkProps): React.JSX.Element;
|
|
52
|
+
export { BrandMark, BrandWordmark, ProductWordmark };
|
|
25
53
|
//# sourceMappingURL=brand.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brand.d.ts","sourceRoot":"","sources":["../../src/components/brand.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,KAAK,cAAc,GAAG,IAAI,CACxB,KAAK,CAAC,cAAc,CAAC,KAA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EACX,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,cAAc,qBAkBhB;AAED,QAAA,MAAM,uBAAuB;;8EAQ3B,CAAC;AAEH,KAAK,oBAAoB,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,UAAU,GAAG,MAAM,CAAC,GACjF,YAAY,CAAC,OAAO,uBAAuB,CAAC,GAAG;IAC7C,sEAAsE;IACtE,OAAO,EAAE,MAAM,CAAC;IAChB,6FAA6F;IAC7F,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAEJ;;;;;;;;;;;;;;;;GAgBG;AACH,iBAAS,eAAe,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,oBAAoB,qBAezF;AAED,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,eAAe,EAAE,CAAC"}
|
package/dist/components/brand.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { logoMarkGeometry, logoWordmarkGeometry, resolveLogoGeometry, } from "@nadicodeai/design-system/assets/logo-geometry";
|
|
4
|
+
import { cva } from "class-variance-authority";
|
|
4
5
|
import * as React from "react";
|
|
5
6
|
import { cn } from "../lib/utils.js";
|
|
6
7
|
function accessibilityProps(alt) {
|
|
@@ -54,4 +55,34 @@ function BrandWordmark({ alt = "nadicode", className, width = 137, height = 24,
|
|
|
54
55
|
const geometry = resolved(logoWordmarkGeometry);
|
|
55
56
|
return (_jsx("svg", { "data-slot": "brand-wordmark", xmlns: "http://www.w3.org/2000/svg", viewBox: geometry.viewBox, width: width, height: height, className: cn("block h-6 w-auto", className), ...accessibilityProps(alt), ...props, children: renderGeometryNodes(geometry.nodes) }));
|
|
56
57
|
}
|
|
57
|
-
|
|
58
|
+
const productWordmarkVariants = cva("inline-flex min-w-0 items-baseline gap-[0.4em]", {
|
|
59
|
+
variants: {
|
|
60
|
+
size: {
|
|
61
|
+
inherit: "",
|
|
62
|
+
header: "text-xl sm:text-2xl",
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
defaultVariants: { size: "inherit" },
|
|
66
|
+
});
|
|
67
|
+
/**
|
|
68
|
+
* The wordmark followed by the name of the nadicode product it heads: *nadicode Portal*.
|
|
69
|
+
*
|
|
70
|
+
* @family Status
|
|
71
|
+
* @when The head of a product that is nadicode's own and named after it: the Portal's sidebar and
|
|
72
|
+
* the header of its sign-in and other entry pages, the same form in both.
|
|
73
|
+
* @instead `BrandWordmark` alone where the company, not a product, is named. Nadia and Alveare stand
|
|
74
|
+
* on their own names and marks, never after the wordmark.
|
|
75
|
+
* @behaviour One line on one baseline. The font size is the wordmark's height: `size="header"` in an
|
|
76
|
+
* entry page's header, and `SidebarBrand` fits it to the column. The name is set at the
|
|
77
|
+
* wordmark's x-height, a word space after it, in regular weight and the muted text colour, so the
|
|
78
|
+
* company leads and the product follows. Its glyphs stand above the box, which is as tall as the
|
|
79
|
+
* wordmark, so the pair centres on the logo. Narrower than the pair, the name ends in an ellipsis.
|
|
80
|
+
* @words The product's name as the glossary writes it in the page's language.
|
|
81
|
+
* @access One image named "nadicode" and the product by default; `alt=""` hides it where a link or
|
|
82
|
+
* control around it carries the name.
|
|
83
|
+
*/
|
|
84
|
+
function ProductWordmark({ product, alt, size, className, ...props }) {
|
|
85
|
+
const name = alt ?? `nadicode ${product}`;
|
|
86
|
+
return (_jsxs("span", { "data-slot": "product-wordmark", className: cn(productWordmarkVariants({ size }), className), ...accessibilityProps(name), ...props, children: [_jsx(BrandWordmark, { alt: "", className: "h-[1em] shrink-0" }), _jsx("span", { className: "min-w-0 overflow-x-clip text-ellipsis whitespace-nowrap [font-size-adjust:calc(100/150)] leading-0 font-normal tracking-[-0.01em] text-muted-foreground", children: product })] }));
|
|
87
|
+
}
|
|
88
|
+
export { BrandMark, BrandWordmark, ProductWordmark };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platform-mark.d.ts","sourceRoot":"","sources":["../../src/components/platform-mark.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,WAAW,EAAE,KAAK,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAWhF,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"platform-mark.d.ts","sourceRoot":"","sources":["../../src/components/platform-mark.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,WAAW,EAAE,KAAK,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAWhF,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAyC/B;;;;GAIG;AACH,QAAA,MAAM,SAAS;;;;;;;;;;;;CAYwB,CAAC;AAExC,KAAK,YAAY,GAAG,MAAM,OAAO,SAAS,CAAC;AAE3C,qFAAqF;AACrF,iBAAS,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,IAAI,YAAY,CAEtD;AAOD,KAAK,iBAAiB,GAAG,IAAI,CAAC,SAAS,EAAE,UAAU,GAAG,MAAM,GAAG,KAAK,CAAC,GAAG;IACtE,QAAQ,EAAE,YAAY,CAAC;IACvB,wEAAwE;IACxE,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,iBAAS,YAAY,CAAC,EAAE,QAAQ,EAAE,IAAS,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,qBAgBzE;AAED,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC;AACpC,YAAY,EAAE,iBAAiB,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -13,43 +13,40 @@ import whatsapp from "@iconify-icons/logos/whatsapp-icon";
|
|
|
13
13
|
import * as React from "react";
|
|
14
14
|
/**
|
|
15
15
|
* Alveare, nadicode's own chat, which no catalogue carries: the mark of its app
|
|
16
|
-
* icon (`apps/alveare/brand/icons/app-icon.svg`, its `mark` group),
|
|
17
|
-
*
|
|
18
|
-
* and boxed to
|
|
19
|
-
*
|
|
16
|
+
* icon (`apps/alveare/brand/icons/app-icon.svg`, its `mark` group), six
|
|
17
|
+
* honeycomb cells stacked one, two, three, without the icon's tile and shadow,
|
|
18
|
+
* in the group's own units and boxed to the cells. Each cell keeps its identity
|
|
19
|
+
* colour, row by row from the top.
|
|
20
20
|
*/
|
|
21
|
-
const
|
|
21
|
+
const CELLS = [
|
|
22
|
+
["M100 25.39L124.35 39.44L124.35 67.56L100 81.61L75.65 67.56L75.65 39.44Z", "--nc-dark-logo-dot"],
|
|
22
23
|
[
|
|
23
|
-
"
|
|
24
|
-
"--nc-dark-logo-dot",
|
|
25
|
-
],
|
|
26
|
-
[
|
|
27
|
-
"M-1.5 150V100A51.5 51.5 0 0 1 94.6 74.25L118.586 115.25A30.5 30.5 0 0 0 175.5 100V50",
|
|
24
|
+
"M73.15 71.89L97.5 85.94L97.5 114.06L73.15 128.11L48.81 114.06L48.81 85.94Z",
|
|
28
25
|
"--nc-identity-arancio",
|
|
29
26
|
],
|
|
30
27
|
[
|
|
31
|
-
"
|
|
28
|
+
"M126.85 71.89L151.19 85.94L151.19 114.06L126.85 128.11L102.5 114.06L102.5 85.94Z",
|
|
32
29
|
"--nc-identity-verde",
|
|
33
30
|
],
|
|
34
31
|
[
|
|
35
|
-
"
|
|
32
|
+
"M46.31 118.39L70.65 132.44L70.65 160.56L46.31 174.61L21.96 160.56L21.96 132.44Z",
|
|
36
33
|
"--nc-identity-rosso",
|
|
37
34
|
],
|
|
38
35
|
[
|
|
39
|
-
"
|
|
36
|
+
"M100 118.39L124.35 132.44L124.35 160.56L100 174.61L75.65 160.56L75.65 132.44Z",
|
|
40
37
|
"--nc-identity-giallo",
|
|
41
38
|
],
|
|
42
39
|
[
|
|
43
|
-
"
|
|
40
|
+
"M153.69 118.39L178.04 132.44L178.04 160.56L153.69 174.61L129.35 160.56L129.35 132.44Z",
|
|
44
41
|
"--nc-identity-azzurro",
|
|
45
42
|
],
|
|
46
43
|
];
|
|
47
44
|
const alveare = {
|
|
48
|
-
left:
|
|
49
|
-
top:
|
|
50
|
-
width:
|
|
51
|
-
height:
|
|
52
|
-
body:
|
|
45
|
+
left: 21.96,
|
|
46
|
+
top: 25.39,
|
|
47
|
+
width: 156.08,
|
|
48
|
+
height: 149.22,
|
|
49
|
+
body: CELLS.map(([path, colour]) => `<path d="${path}" style="fill:var(${colour})"/>`).join(""),
|
|
53
50
|
};
|
|
54
51
|
/**
|
|
55
52
|
* The platforms the products name, operating systems, messaging channels and
|
|
@@ -75,7 +72,7 @@ function isPlatform(name) {
|
|
|
75
72
|
}
|
|
76
73
|
/** A mark that declares no paint of its own is one silhouette, so it takes the text colour. */
|
|
77
74
|
function silhouette(icon) {
|
|
78
|
-
return !/\b(?:fill|stroke|stop-color)
|
|
75
|
+
return !/\b(?:fill|stroke|stop-color)[=:]/.test(icon.body);
|
|
79
76
|
}
|
|
80
77
|
/**
|
|
81
78
|
* A platform's genuine mark: an operating system, a messaging channel or a sign-in provider.
|
|
@@ -21,13 +21,13 @@ export type PortalSidebarBand = {
|
|
|
21
21
|
* and Nadia draw their columns with the same `Sidebar`, `SidebarFrame` and rows.
|
|
22
22
|
*
|
|
23
23
|
* @family Navigation
|
|
24
|
-
* @when A static picture of the Portal's column on the website; all of `account`, `bands`, `findLabel`, `
|
|
24
|
+
* @when A static picture of the Portal's column on the website; all of `account`, `bands`, `findLabel`, `product` and `toggleLabel` are required.
|
|
25
25
|
* @instead A product's own navigation is a `Sidebar` filled by `SidebarFrame`, never this sample.
|
|
26
26
|
* @behaviour Wordmark and product name beside the collapse control, then Find with ⌘K, the groups, the way out (Get Nadia) and the account; 1 px rules sit under the header and above the way out and the account, none between groups. The selected row takes the selection fill; every other row stays neutral.
|
|
27
27
|
* @words Find is one word beside ⌘K. Bands are short nouns; items are nouns, one or two words, sentence case.
|
|
28
28
|
* @access The collapse control is named by `toggleLabel` and Find by `findLabel`; the wordmark is decorative beside the product name.
|
|
29
29
|
*/
|
|
30
|
-
export declare function PortalSidebarFrame({ account, bands, className, findLabel, footerItem,
|
|
30
|
+
export declare function PortalSidebarFrame({ account, bands, className, findLabel, footerItem, product, toggleLabel, }: {
|
|
31
31
|
account: AccountIdentity;
|
|
32
32
|
bands: PortalSidebarBand[];
|
|
33
33
|
className?: string;
|
|
@@ -35,8 +35,8 @@ export declare function PortalSidebarFrame({ account, bands, className, findLabe
|
|
|
35
35
|
findLabel: string;
|
|
36
36
|
/** The band under the navigation that leads out of the Portal, such as Get Nadia. */
|
|
37
37
|
footerItem?: PortalSidebarItem;
|
|
38
|
-
/**
|
|
39
|
-
|
|
38
|
+
/** After the wordmark: which product this navigation belongs to. */
|
|
39
|
+
product: string;
|
|
40
40
|
toggleLabel: string;
|
|
41
41
|
}): import("react").JSX.Element;
|
|
42
42
|
//# sourceMappingURL=portal-sidebar-frame.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"portal-sidebar-frame.d.ts","sourceRoot":"","sources":["../../src/components/portal-sidebar-frame.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAuB,KAAK,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAiBtF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,oEAAoE;IACpE,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,sEAAsE;IACtE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,iBAAiB,EAAE,CAAC;CAC5B,CAAC;AAaF;;;;;;;;;;;;;GAaG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,OAAO,EACP,KAAK,EACL,SAAS,EACT,SAAS,EACT,UAAU,EACV,
|
|
1
|
+
{"version":3,"file":"portal-sidebar-frame.d.ts","sourceRoot":"","sources":["../../src/components/portal-sidebar-frame.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAuB,KAAK,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAiBtF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,oEAAoE;IACpE,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,sEAAsE;IACtE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,iBAAiB,EAAE,CAAC;CAC5B,CAAC;AAaF;;;;;;;;;;;;;GAaG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,OAAO,EACP,KAAK,EACL,SAAS,EACT,SAAS,EACT,UAAU,EACV,OAAO,EACP,WAAW,GACZ,EAAE;IACD,OAAO,EAAE,eAAe,CAAC;IACzB,KAAK,EAAE,iBAAiB,EAAE,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,8CAA8C;IAC9C,SAAS,EAAE,MAAM,CAAC;IAClB,qFAAqF;IACrF,UAAU,CAAC,EAAE,iBAAiB,CAAC;IAC/B,oEAAoE;IACpE,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;CACrB,+BAwCA"}
|
|
@@ -15,12 +15,12 @@ function ItemRow({ item, variant }) {
|
|
|
15
15
|
* and Nadia draw their columns with the same `Sidebar`, `SidebarFrame` and rows.
|
|
16
16
|
*
|
|
17
17
|
* @family Navigation
|
|
18
|
-
* @when A static picture of the Portal's column on the website; all of `account`, `bands`, `findLabel`, `
|
|
18
|
+
* @when A static picture of the Portal's column on the website; all of `account`, `bands`, `findLabel`, `product` and `toggleLabel` are required.
|
|
19
19
|
* @instead A product's own navigation is a `Sidebar` filled by `SidebarFrame`, never this sample.
|
|
20
20
|
* @behaviour Wordmark and product name beside the collapse control, then Find with ⌘K, the groups, the way out (Get Nadia) and the account; 1 px rules sit under the header and above the way out and the account, none between groups. The selected row takes the selection fill; every other row stays neutral.
|
|
21
21
|
* @words Find is one word beside ⌘K. Bands are short nouns; items are nouns, one or two words, sentence case.
|
|
22
22
|
* @access The collapse control is named by `toggleLabel` and Find by `findLabel`; the wordmark is decorative beside the product name.
|
|
23
23
|
*/
|
|
24
|
-
export function PortalSidebarFrame({ account, bands, className, findLabel, footerItem,
|
|
25
|
-
return (_jsx(Sidebar, { collapsible: "none", className: cn("h-auto shrink-0", className), children: _jsx(SidebarFrame, { account: _jsx(SidebarMenu, { children: _jsx(SidebarMenuItem, { className: "group/account flex min-h-9 items-center pr-2 pl-2.5", children: _jsx(AccountMenuIdentity, { identity: account }) }) }), band: footerItem ? (_jsx(SidebarMenu, { children: _jsx(ItemRow, { item: footerItem, variant: "outline" }) })) : undefined, find: _jsx(SidebarFind, { label: findLabel, shortcut: _jsx(Kbd, { meta: true, size: "sm", keyName: "K" }) }), header: _jsx(SidebarBrand, {
|
|
24
|
+
export function PortalSidebarFrame({ account, bands, className, findLabel, footerItem, product, toggleLabel, }) {
|
|
25
|
+
return (_jsx(Sidebar, { collapsible: "none", className: cn("h-auto shrink-0", className), children: _jsx(SidebarFrame, { account: _jsx(SidebarMenu, { children: _jsx(SidebarMenuItem, { className: "group/account flex min-h-9 items-center pr-2 pl-2.5", children: _jsx(AccountMenuIdentity, { identity: account }) }) }), band: footerItem ? (_jsx(SidebarMenu, { children: _jsx(ItemRow, { item: footerItem, variant: "outline" }) })) : undefined, find: _jsx(SidebarFind, { label: findLabel, shortcut: _jsx(Kbd, { meta: true, size: "sm", keyName: "K" }) }), header: _jsx(SidebarBrand, { product: product }), toggle: _jsx(SidebarTrigger, { "aria-label": toggleLabel, className: "shrink-0" }), children: bands.map((band) => (_jsxs(SidebarGroup, { children: [band.label ? (_jsx(SidebarGroupLabel, { render: _jsx("h2", {}), children: band.label })) : null, _jsx(SidebarGroupContent, { children: _jsx(SidebarMenu, { children: band.items.map((item) => (_jsx(ItemRow, { item: item }, item.id))) }) })] }, band.id))) }) }));
|
|
26
26
|
}
|
|
@@ -132,17 +132,17 @@ declare function SidebarMenuSubButton({ render, size, isActive, className, ...pr
|
|
|
132
132
|
*/
|
|
133
133
|
declare function SidebarMenuChevron({ className, ...props }: React.ComponentProps<typeof ChevronRightIcon>): React.JSX.Element;
|
|
134
134
|
/**
|
|
135
|
-
* The company's wordmark
|
|
135
|
+
* The company's wordmark and the product's name on one line: what the header of a product's column says.
|
|
136
136
|
*
|
|
137
137
|
* @family Navigation
|
|
138
138
|
* @when The `header` of a `SidebarFrame` in the Portal and its sample. Nadia's header is her company row instead.
|
|
139
139
|
* @instead A switcher between companies or teams is a menu in the header, not this mark.
|
|
140
|
-
* @behaviour A
|
|
141
|
-
* @words
|
|
142
|
-
* @access
|
|
140
|
+
* @behaviour A `ProductWordmark` with an 18 px wordmark, smaller as the column narrows, so the name stays whole. Inside a link, the link is the row.
|
|
141
|
+
* @words `product` names the product the column belongs to: "Portal".
|
|
142
|
+
* @access Decorative: the link or button around it carries the accessible name.
|
|
143
143
|
*/
|
|
144
|
-
declare function SidebarBrand({
|
|
145
|
-
|
|
144
|
+
declare function SidebarBrand({ product, className }: {
|
|
145
|
+
product: string;
|
|
146
146
|
className?: string;
|
|
147
147
|
}): React.JSX.Element;
|
|
148
148
|
type SidebarFindProps = Omit<React.ComponentProps<"button">, "children" | "aria-label"> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sidebar.d.ts","sourceRoot":"","sources":["../../src/components/sidebar.tsx"],"names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BAAiB,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,yBAAyB,EACzB,UAAU,GACX,CAAC"}
|
|
@@ -7,7 +7,7 @@ import { cva } from "class-variance-authority";
|
|
|
7
7
|
import { isMobileNow, useIsMobile } from "../hooks/use-mobile.js";
|
|
8
8
|
import { cn } from "../lib/utils.js";
|
|
9
9
|
import { cssVariables } from "../lib/css-variables.js";
|
|
10
|
-
import {
|
|
10
|
+
import { ProductWordmark } from "./brand.js";
|
|
11
11
|
import { Button } from "./button.js";
|
|
12
12
|
import { Input } from "./input.js";
|
|
13
13
|
import { Separator } from "./separator.js";
|
|
@@ -369,17 +369,17 @@ function SidebarMenuChevron({ className, ...props }) {
|
|
|
369
369
|
return (_jsx(ChevronRightIcon, { "aria-hidden": "true", "data-slot": "sidebar-menu-chevron", className: cn("ms-auto size-4! shrink-0 text-muted-foreground group-data-[collapsible=icon]:hidden rtl:rotate-180", className), ...props }));
|
|
370
370
|
}
|
|
371
371
|
/**
|
|
372
|
-
* The company's wordmark
|
|
372
|
+
* The company's wordmark and the product's name on one line: what the header of a product's column says.
|
|
373
373
|
*
|
|
374
374
|
* @family Navigation
|
|
375
375
|
* @when The `header` of a `SidebarFrame` in the Portal and its sample. Nadia's header is her company row instead.
|
|
376
376
|
* @instead A switcher between companies or teams is a menu in the header, not this mark.
|
|
377
|
-
* @behaviour A
|
|
378
|
-
* @words
|
|
379
|
-
* @access
|
|
377
|
+
* @behaviour A `ProductWordmark` with an 18 px wordmark, smaller as the column narrows, so the name stays whole. Inside a link, the link is the row.
|
|
378
|
+
* @words `product` names the product the column belongs to: "Portal".
|
|
379
|
+
* @access Decorative: the link or button around it carries the accessible name.
|
|
380
380
|
*/
|
|
381
|
-
function SidebarBrand({
|
|
382
|
-
return (
|
|
381
|
+
function SidebarBrand({ product, className }) {
|
|
382
|
+
return (_jsx("span", { "data-slot": "sidebar-brand", className: cn("@container block w-full min-w-0", className), children: _jsx(ProductWordmark, { alt: "", className: "max-w-full text-[clamp(0.9375rem,calc(100cqi/10.3),1.125rem)]", product: product }) }));
|
|
383
383
|
}
|
|
384
384
|
/**
|
|
385
385
|
* The row that opens the product's Find: a field-shaped button under the header, with its key hint.
|
|
@@ -101,6 +101,7 @@ export declare const SPECIMENS: {
|
|
|
101
101
|
Avatar: () => import("react").JSX.Element;
|
|
102
102
|
Badge: () => import("react").JSX.Element;
|
|
103
103
|
BrandWordmark: () => import("react").JSX.Element;
|
|
104
|
+
ProductWordmark: () => import("react").JSX.Element;
|
|
104
105
|
CheckCounts: () => import("react").JSX.Element;
|
|
105
106
|
FileTypeIcon: () => import("react").JSX.Element;
|
|
106
107
|
Gauge: () => import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/showcase/specimens/index.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/showcase/specimens/index.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYiB,CAAC"}
|
|
@@ -117,12 +117,12 @@ export const NAVIGATION = {
|
|
|
117
117
|
},
|
|
118
118
|
],
|
|
119
119
|
},
|
|
120
|
-
], findLabel: "Find", footerItem: { id: "get-nadia", label: "Get Nadia", icon: _jsx(Download, { "aria-hidden": "true" }) },
|
|
120
|
+
], findLabel: "Find", footerItem: { id: "get-nadia", label: "Get Nadia", icon: _jsx(Download, { "aria-hidden": "true" }) }, product: "Portal", toggleLabel: "Collapse navigation" }) })),
|
|
121
121
|
ScopeSwitcher: ScopeSwitcherSpecimen,
|
|
122
122
|
Sidebar: () => (_jsx(Navigation, { children: _jsx(Sidebar, { collapsible: "none", children: _jsx(SidebarContent, { children: _jsxs(SidebarGroup, { children: [_jsx(SidebarGroupLabel, { children: "Company" }), _jsxs(SidebarMenu, { children: [_jsx(SidebarMenuItem, { children: _jsxs(SidebarMenuButton, { isActive: true, children: [_jsx(Building2, { "aria-hidden": "true" }), "Statements"] }) }), _jsx(SidebarMenuItem, { children: _jsxs(SidebarMenuButton, { children: [_jsx(CreditCard, { "aria-hidden": "true" }), "Usage and billing"] }) })] })] }) }) }) })),
|
|
123
|
-
SidebarBrand: () => (_jsx("div", { className: "w-56", children: _jsx(SidebarBrand, {
|
|
123
|
+
SidebarBrand: () => (_jsx("div", { className: "w-56", children: _jsx(SidebarBrand, { product: "Portal" }) })),
|
|
124
124
|
SidebarFind: () => (_jsx(Navigation, { children: _jsx("div", { className: "w-64", children: _jsx(SidebarFind, { label: "Find", onClick: nothing, shortcut: _jsx(Kbd, { meta: true, size: "sm", keyName: "K" }) }) }) })),
|
|
125
|
-
SidebarFrame: () => (_jsx(Navigation, { children: _jsx("div", { className: "h-96 w-64 overflow-hidden rounded-md border border-border", children: _jsx(Sidebar, { collapsible: "none", children: _jsx(SidebarFrame, { account: _jsx(AccountMenuIdentity, { identity: { name: "Ada Rossi", initials: "AR", lines: ["Acme S.r.l."] } }), find: _jsx(SidebarFind, { label: "Find", onClick: nothing, shortcut: _jsx(Kbd, { meta: true, size: "sm", keyName: "K" }) }), header: _jsx(SidebarBrand, {
|
|
125
|
+
SidebarFrame: () => (_jsx(Navigation, { children: _jsx("div", { className: "h-96 w-64 overflow-hidden rounded-md border border-border", children: _jsx(Sidebar, { collapsible: "none", children: _jsx(SidebarFrame, { account: _jsx(AccountMenuIdentity, { identity: { name: "Ada Rossi", initials: "AR", lines: ["Acme S.r.l."] } }), find: _jsx(SidebarFind, { label: "Find", onClick: nothing, shortcut: _jsx(Kbd, { meta: true, size: "sm", keyName: "K" }) }), header: _jsx(SidebarBrand, { product: "Portal" }), children: _jsxs(SidebarGroup, { children: [_jsx(SidebarGroupLabel, { children: "Work" }), _jsxs(SidebarMenu, { children: [_jsx(SidebarMenuItem, { children: _jsxs(SidebarMenuButton, { isActive: true, children: [_jsx(AgentIcon, { "aria-hidden": "true" }), "Agents"] }) }), _jsx(SidebarMenuItem, { children: _jsxs(SidebarMenuButton, { children: [_jsx(ApprovalsIcon, { "aria-hidden": "true" }), "Approvals"] }) })] })] }) }) }) }) })),
|
|
126
126
|
SidebarMenuChevron: () => (_jsx(Navigation, { children: _jsx(SidebarMenu, { className: "w-64", children: _jsx(SidebarMenuItem, { children: _jsxs(SidebarMenuButton, { children: [_jsx(Settings, { "aria-hidden": "true" }), "Settings", _jsx(SidebarMenuChevron, {})] }) }) }) })),
|
|
127
127
|
SidebarSections: SidebarSectionsSpecimen,
|
|
128
128
|
Tabs: TabsSpecimen,
|
|
@@ -9,6 +9,7 @@ export declare const STATUS: {
|
|
|
9
9
|
Avatar: () => import("react").JSX.Element;
|
|
10
10
|
Badge: () => import("react").JSX.Element;
|
|
11
11
|
BrandWordmark: () => import("react").JSX.Element;
|
|
12
|
+
ProductWordmark: () => import("react").JSX.Element;
|
|
12
13
|
CheckCounts: () => import("react").JSX.Element;
|
|
13
14
|
FileTypeIcon: () => import("react").JSX.Element;
|
|
14
15
|
Gauge: typeof GaugeSpecimen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../../src/showcase/specimens/status.tsx"],"names":[],"mappings":"AA0DA,iBAAS,oBAAoB,gCAiB5B;AAkBD,iBAAS,aAAa,gCA2DrB;AAWD,iBAAS,gBAAgB,gCAkExB;AAED,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../../src/showcase/specimens/status.tsx"],"names":[],"mappings":"AA0DA,iBAAS,oBAAoB,gCAiB5B;AAkBD,iBAAS,aAAa,gCA2DrB;AAWD,iBAAS,gBAAgB,gCAkExB;AAED,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;CA0QQ,CAAC"}
|
|
@@ -9,7 +9,7 @@ import { Avatar, AvatarFallback, AvatarGroup, AvatarWithIcon } from "../../compo
|
|
|
9
9
|
import { Badge } from "../../components/badge.js";
|
|
10
10
|
import { Button } from "../../components/button.js";
|
|
11
11
|
import { CategoryTag } from "../../components/catalog-category.js";
|
|
12
|
-
import { BrandMark, BrandWordmark } from "../../components/brand.js";
|
|
12
|
+
import { BrandMark, BrandWordmark, ProductWordmark } from "../../components/brand.js";
|
|
13
13
|
import { CheckCounts, CheckState } from "../../components/check-counts.js";
|
|
14
14
|
import { FileTypeIcon } from "../../components/file-type-icon.js";
|
|
15
15
|
import { Gauge } from "../../components/gauge.js";
|
|
@@ -64,6 +64,7 @@ export const STATUS = {
|
|
|
64
64
|
Avatar: () => (_jsxs("div", { className: "grid gap-6", children: [_jsx("div", { className: "flex flex-wrap items-center gap-4", children: ["xs", "sm", "default", "lg"].map((size) => (_jsx(Avatar, { label: "Ada Rossi", size: size, children: _jsx(AvatarFallback, { children: size === "xs" ? "A" : "AR" }) }, size))) }), _jsxs("div", { className: "flex flex-wrap items-center gap-6", children: [_jsx(AvatarGroup, { label: "5 members", limit: 3, members: MEMBERS }), _jsx(AvatarGroup, { label: "5 members, last on top", limit: 3, members: MEMBERS, reverse: true }), _jsx(AvatarGroup, { label: "5 members, tight", limit: 3, members: MEMBERS, overlap: 6 })] }), _jsxs("div", { className: "flex flex-wrap items-center gap-6 text-sm", children: [_jsxs("span", { className: "flex items-center gap-2", children: [_jsx(AvatarWithIcon, { icon: _jsx(Check, {}), iconBackground: true, label: "Ada Rossi, approved", name: "Ada Rossi" }), "Ada Rossi"] }), _jsxs("span", { className: "flex items-center gap-2", children: [_jsx(AvatarWithIcon, { icon: _jsx(Pause, {}), iconBackground: true, label: "Marco Bianchi, paused", name: "Marco Bianchi" }), "Marco Bianchi"] }), _jsx(AvatarWithIcon, { icon: _jsx(Clock, {}), iconBackground: true, label: "Luca Conti, waiting for approval", name: "Luca Conti" })] })] })),
|
|
65
65
|
Badge: () => (_jsxs("div", { className: "grid gap-4", children: [_jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [_jsx(Badge, { children: "Owner" }), _jsx(Badge, { variant: "secondary", children: "Business plan" }), _jsx(Badge, { variant: "outline", children: "Beta" })] }), _jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [_jsx(Badge, { size: "sm", variant: "secondary", children: "Small" }), _jsx(Badge, { size: "md", variant: "secondary", children: "Medium" }), _jsx(Badge, { size: "lg", variant: "secondary", children: "Large" })] }), _jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [_jsx(Badge, { icon: Mail, variant: "secondary", children: "Mailbox" }), _jsx(Badge, { icon: Lock, title: "Read only", variant: "secondary" }), _jsx(Badge, { render: _jsx("a", { href: "#release-notes" }), variant: "outline", children: "Release notes" })] })] })),
|
|
66
66
|
BrandWordmark: () => (_jsxs("div", { className: "flex flex-wrap items-center gap-6", children: [_jsx(BrandWordmark, {}), _jsx(BrandMark, {})] })),
|
|
67
|
+
ProductWordmark: () => (_jsxs("div", { className: "flex flex-wrap items-center gap-8", children: [_jsx(ProductWordmark, { className: "text-lg", product: "Portal" }), _jsx(ProductWordmark, { className: "text-[2rem]", product: "Portal" })] })),
|
|
67
68
|
CheckCounts: () => (_jsxs("div", { className: "grid max-w-md gap-2 text-sm", children: [_jsxs("span", { className: "flex items-center gap-3", children: [_jsx("span", { className: "flex-1", children: "Health checks" }), _jsx(CheckCounts, { counts: [
|
|
68
69
|
{ outcome: "passed", count: 12, label: "12 tasks completed" },
|
|
69
70
|
{ outcome: "failed", count: 1, label: "1 task failed" },
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type UsageName = "ActivityFeed" | "AgentProfileCard" | "CatalogDrawer" | "CollectionFilters" | "CollectionPage" | "CollectionToolbar" | "ConfirmDialog" | "EntryPicture" | "EntryScene" | "FormDialog" | "FormDrawer" | "InviteCard" | "LibraryShelf" | "ObjectPage" | "ObjectSection" | "OverviewPage" | "PageHeader" | "RecordList" | "RecordSheet" | "RowEditForm" | "SettingsPage" | "SettingsSection" | "useCatalogRows" | "Button" | "ButtonGroup" | "ButtonLink" | "CardActionsRow" | "CopyButton" | "LoadMoreButton" | "PageActions" | "Calendar" | "ClearableInput" | "CollectionSearch" | "Field" | "Form" | "Input" | "InputGroup" | "InputOTP" | "Label" | "NativeSelect" | "SettingsField" | "SettingsRows" | "Slider" | "Textarea" | "Checkbox" | "ChoiceboxGroup" | "CollectionSort" | "Combobox" | "ModelSelect" | "MultiSelect" | "RadioGroup" | "SegmentedChoice" | "SegmentedControl" | "Select" | "Switch" | "ThemeModeSegments" | "ThemeModeSwitcher" | "Toggle" | "ToggleGroup" | "ActionStatus" | "AgentOrb" | "AppMark" | "ArchIcon" | "Avatar" | "Badge" | "BrandWordmark" | "CategoryTag" | "CheckCounts" | "FileTypeIcon" | "IdentityMark" | "ModelIdentity" | "ModelMark" | "ObjectFactValue" | "PlatformMark" | "ProgressChecklist" | "RecordIdentity" | "StatusBadge" | "Tag" | "AgentListRow" | "Breadcrumb" | "CommandDialog" | "Footer" | "PortalSidebarFrame" | "ScopeSwitcher" | "Sidebar" | "SidebarBrand" | "SidebarFind" | "SidebarFrame" | "SidebarMenuChevron" | "SidebarSections" | "Tabs" | "TabsNav" | "textLinkVariants" | "AgentCard" | "Card" | "CardRow" | "CodeBlock" | "DataTable" | "DiffCount" | "DisclosureRow" | "FileDiff" | "Gauge" | "Item" | "Kbd" | "MiddleTruncate" | "ObjectFacts" | "PairingCode" | "Progress" | "QrCode" | "RecordTime" | "RunTimeline" | "SettingsFactsSection" | "Snippet" | "Table" | "TableCard" | "TableValue" | "TextWithCopyButton" | "UsageMeter" | "Alert" | "EmptyState" | "EntryProgress" | "EntryStageList" | "HoverCard" | "MessageNotice" | "NoticeBanner" | "PendingLabel" | "Skeleton" | "SkeletonRegion" | "Toaster" | "Tooltip" | "UpdateCard" | "WaitingLine" | "AccountMenu" | "ActionContextMenu" | "ActionMenu" | "AlertDialog" | "ContextMenu" | "Dialog" | "Drawer" | "DropdownMenu" | "GlassControl" | "MenuChoiceRow" | "Popover" | "Sheet" | "SiteMenu" | "ThemeModeMenu" | "ActivityCalendar" | "ChartAreaStacked" | "ChartBarHorizontal" | "ChartBarMultiple" | "ChartBarStacked" | "ChartCard" | "ChartContainer" | "ChartRanking" | "ChartSparkline" | "DateRangeControl" | "KpiCard" | "TrendBadge" | "createEntityColorMap" | "Accordion" | "AspectRatio" | "BrandField" | "Collapsible" | "CompanyCard" | "Disclosure" | "HiveScene" | "NadiaPresence" | "NumberedSteps" | "Prose" | "ReadingColumn" | "ResizablePanelGroup" | "ScrollArea" | "Separator" | "ToolIcon";
|
|
1
|
+
export type UsageName = "ActivityFeed" | "AgentProfileCard" | "CatalogDrawer" | "CollectionFilters" | "CollectionPage" | "CollectionToolbar" | "ConfirmDialog" | "EntryPicture" | "EntryScene" | "FormDialog" | "FormDrawer" | "InviteCard" | "LibraryShelf" | "ObjectPage" | "ObjectSection" | "OverviewPage" | "PageHeader" | "RecordList" | "RecordSheet" | "RowEditForm" | "SettingsPage" | "SettingsSection" | "useCatalogRows" | "Button" | "ButtonGroup" | "ButtonLink" | "CardActionsRow" | "CopyButton" | "LoadMoreButton" | "PageActions" | "Calendar" | "ClearableInput" | "CollectionSearch" | "Field" | "Form" | "Input" | "InputGroup" | "InputOTP" | "Label" | "NativeSelect" | "SettingsField" | "SettingsRows" | "Slider" | "Textarea" | "Checkbox" | "ChoiceboxGroup" | "CollectionSort" | "Combobox" | "ModelSelect" | "MultiSelect" | "RadioGroup" | "SegmentedChoice" | "SegmentedControl" | "Select" | "Switch" | "ThemeModeSegments" | "ThemeModeSwitcher" | "Toggle" | "ToggleGroup" | "ActionStatus" | "AgentOrb" | "AppMark" | "ArchIcon" | "Avatar" | "Badge" | "BrandWordmark" | "CategoryTag" | "CheckCounts" | "FileTypeIcon" | "IdentityMark" | "ModelIdentity" | "ModelMark" | "ObjectFactValue" | "PlatformMark" | "ProductWordmark" | "ProgressChecklist" | "RecordIdentity" | "StatusBadge" | "Tag" | "AgentListRow" | "Breadcrumb" | "CommandDialog" | "Footer" | "PortalSidebarFrame" | "ScopeSwitcher" | "Sidebar" | "SidebarBrand" | "SidebarFind" | "SidebarFrame" | "SidebarMenuChevron" | "SidebarSections" | "Tabs" | "TabsNav" | "textLinkVariants" | "AgentCard" | "Card" | "CardRow" | "CodeBlock" | "DataTable" | "DiffCount" | "DisclosureRow" | "FileDiff" | "Gauge" | "Item" | "Kbd" | "MiddleTruncate" | "ObjectFacts" | "PairingCode" | "Progress" | "QrCode" | "RecordTime" | "RunTimeline" | "SettingsFactsSection" | "Snippet" | "Table" | "TableCard" | "TableValue" | "TextWithCopyButton" | "UsageMeter" | "Alert" | "EmptyState" | "EntryProgress" | "EntryStageList" | "HoverCard" | "MessageNotice" | "NoticeBanner" | "PendingLabel" | "Skeleton" | "SkeletonRegion" | "Toaster" | "Tooltip" | "UpdateCard" | "WaitingLine" | "AccountMenu" | "ActionContextMenu" | "ActionMenu" | "AlertDialog" | "ContextMenu" | "Dialog" | "Drawer" | "DropdownMenu" | "GlassControl" | "MenuChoiceRow" | "Popover" | "Sheet" | "SiteMenu" | "ThemeModeMenu" | "ActivityCalendar" | "ChartAreaStacked" | "ChartBarHorizontal" | "ChartBarMultiple" | "ChartBarStacked" | "ChartCard" | "ChartContainer" | "ChartRanking" | "ChartSparkline" | "DateRangeControl" | "KpiCard" | "TrendBadge" | "createEntityColorMap" | "Accordion" | "AspectRatio" | "BrandField" | "Collapsible" | "CompanyCard" | "Disclosure" | "HiveScene" | "NadiaPresence" | "NumberedSteps" | "Prose" | "ReadingColumn" | "ResizablePanelGroup" | "ScrollArea" | "Separator" | "ToolIcon";
|
|
2
2
|
export type UsageFamily = "Compositions" | "Actions" | "Inputs" | "Choices" | "Status" | "Navigation" | "Data" | "Feedback" | "Menus" | "Charts" | "Other";
|
|
3
3
|
export type ComponentUsage = {
|
|
4
4
|
name: UsageName;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usage.generated.d.ts","sourceRoot":"","sources":["../../src/showcase/usage.generated.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,SAAS,GACjB,cAAc,GACd,kBAAkB,GAClB,eAAe,GACf,mBAAmB,GACnB,gBAAgB,GAChB,mBAAmB,GACnB,eAAe,GACf,cAAc,GACd,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,cAAc,GACd,YAAY,GACZ,eAAe,GACf,cAAc,GACd,YAAY,GACZ,YAAY,GACZ,aAAa,GACb,aAAa,GACb,cAAc,GACd,iBAAiB,GACjB,gBAAgB,GAChB,QAAQ,GACR,aAAa,GACb,YAAY,GACZ,gBAAgB,GAChB,YAAY,GACZ,gBAAgB,GAChB,aAAa,GACb,UAAU,GACV,gBAAgB,GAChB,kBAAkB,GAClB,OAAO,GACP,MAAM,GACN,OAAO,GACP,YAAY,GACZ,UAAU,GACV,OAAO,GACP,cAAc,GACd,eAAe,GACf,cAAc,GACd,QAAQ,GACR,UAAU,GACV,UAAU,GACV,gBAAgB,GAChB,gBAAgB,GAChB,UAAU,GACV,aAAa,GACb,aAAa,GACb,YAAY,GACZ,iBAAiB,GACjB,kBAAkB,GAClB,QAAQ,GACR,QAAQ,GACR,mBAAmB,GACnB,mBAAmB,GACnB,QAAQ,GACR,aAAa,GACb,cAAc,GACd,UAAU,GACV,SAAS,GACT,UAAU,GACV,QAAQ,GACR,OAAO,GACP,eAAe,GACf,aAAa,GACb,aAAa,GACb,cAAc,GACd,cAAc,GACd,eAAe,GACf,WAAW,GACX,iBAAiB,GACjB,cAAc,GACd,mBA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AQ,GACR,SAAS,GACT,QAAQ,GACR,YAAY,GACZ,MAAM,GACN,UAAU,GACV,OAAO,GACP,QAAQ,GACR,OAAO,CAAC;AAEZ,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,SAAS,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,WAAW,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,SAAS,WAAW,EAYhD,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,SAAS,cAAc,
|
|
1
|
+
{"version":3,"file":"usage.generated.d.ts","sourceRoot":"","sources":["../../src/showcase/usage.generated.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,SAAS,GACjB,cAAc,GACd,kBAAkB,GAClB,eAAe,GACf,mBAAmB,GACnB,gBAAgB,GAChB,mBAAmB,GACnB,eAAe,GACf,cAAc,GACd,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,cAAc,GACd,YAAY,GACZ,eAAe,GACf,cAAc,GACd,YAAY,GACZ,YAAY,GACZ,aAAa,GACb,aAAa,GACb,cAAc,GACd,iBAAiB,GACjB,gBAAgB,GAChB,QAAQ,GACR,aAAa,GACb,YAAY,GACZ,gBAAgB,GAChB,YAAY,GACZ,gBAAgB,GAChB,aAAa,GACb,UAAU,GACV,gBAAgB,GAChB,kBAAkB,GAClB,OAAO,GACP,MAAM,GACN,OAAO,GACP,YAAY,GACZ,UAAU,GACV,OAAO,GACP,cAAc,GACd,eAAe,GACf,cAAc,GACd,QAAQ,GACR,UAAU,GACV,UAAU,GACV,gBAAgB,GAChB,gBAAgB,GAChB,UAAU,GACV,aAAa,GACb,aAAa,GACb,YAA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c,GACd,gBAAgB,GAChB,kBAAkB,GAClB,SAAS,GACT,YAAY,GACZ,sBAAsB,GACtB,WAAW,GACX,aAAa,GACb,YAAY,GACZ,aAAa,GACb,aAAa,GACb,YAAY,GACZ,WAAW,GACX,eAAe,GACf,eAAe,GACf,OAAO,GACP,eAAe,GACf,qBAAqB,GACrB,YAAY,GACZ,WAAW,GACX,UAAU,CAAC;AAEf,MAAM,MAAM,WAAW,GACnB,cAAc,GACd,SAAS,GACT,QAAQ,GACR,SAAS,GACT,QAAQ,GACR,YAAY,GACZ,MAAM,GACN,UAAU,GACV,OAAO,GACP,QAAQ,GACR,OAAO,CAAC;AAEZ,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,SAAS,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,WAAW,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,SAAS,WAAW,EAYhD,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,SAAS,cAAc,EA6iF1C,CAAC"}
|
|
@@ -828,6 +828,17 @@ export const USAGE = [
|
|
|
828
828
|
words: "None of its own; the platform's name always stands beside it.",
|
|
829
829
|
access: "Always `aria-hidden`: the name beside it is the reading.",
|
|
830
830
|
},
|
|
831
|
+
{
|
|
832
|
+
name: "ProductWordmark",
|
|
833
|
+
module: "brand",
|
|
834
|
+
family: "Status",
|
|
835
|
+
summary: "The wordmark followed by the name of the nadicode product it heads: *nadicode Portal*.",
|
|
836
|
+
when: "The head of a product that is nadicode's own and named after it: the Portal's sidebar and the header of its sign-in and other entry pages, the same form in both.",
|
|
837
|
+
instead: "`BrandWordmark` alone where the company, not a product, is named. Nadia and Alveare stand on their own names and marks, never after the wordmark.",
|
|
838
|
+
behaviour: "One line on one baseline. The font size is the wordmark's height: `size=\"header\"` in an entry page's header, and `SidebarBrand` fits it to the column. The name is set at the wordmark's x-height, a word space after it, in regular weight and the muted text colour, so the company leads and the product follows. Its glyphs stand above the box, which is as tall as the wordmark, so the pair centres on the logo. Narrower than the pair, the name ends in an ellipsis.",
|
|
839
|
+
words: "The product's name as the glossary writes it in the page's language.",
|
|
840
|
+
access: 'One image named "nadicode" and the product by default; `alt=""` hides it where a link or control around it carries the name.',
|
|
841
|
+
},
|
|
831
842
|
{
|
|
832
843
|
name: "ProgressChecklist",
|
|
833
844
|
module: "progress-checklist",
|
|
@@ -921,7 +932,7 @@ export const USAGE = [
|
|
|
921
932
|
module: "portal-sidebar-frame",
|
|
922
933
|
family: "Navigation",
|
|
923
934
|
summary: "The website's sample of the Portal's navigation column, drawn from data and without the Portal's routing.",
|
|
924
|
-
when: "A static picture of the Portal's column on the website; all of `account`, `bands`, `findLabel`, `
|
|
935
|
+
when: "A static picture of the Portal's column on the website; all of `account`, `bands`, `findLabel`, `product` and `toggleLabel` are required.",
|
|
925
936
|
instead: "A product's own navigation is a `Sidebar` filled by `SidebarFrame`, never this sample.",
|
|
926
937
|
behaviour: "Wordmark and product name beside the collapse control, then Find with ⌘K, the groups, the way out (Get Nadia) and the account; 1 px rules sit under the header and above the way out and the account, none between groups. The selected row takes the selection fill; every other row stays neutral.",
|
|
927
938
|
words: "Find is one word beside ⌘K. Bands are short nouns; items are nouns, one or two words, sentence case.",
|
|
@@ -953,12 +964,12 @@ export const USAGE = [
|
|
|
953
964
|
name: "SidebarBrand",
|
|
954
965
|
module: "sidebar",
|
|
955
966
|
family: "Navigation",
|
|
956
|
-
summary: "The company's wordmark
|
|
967
|
+
summary: "The company's wordmark and the product's name on one line: what the header of a product's column says.",
|
|
957
968
|
when: "The `header` of a `SidebarFrame` in the Portal and its sample. Nadia's header is her company row instead.",
|
|
958
969
|
instead: "A switcher between companies or teams is a menu in the header, not this mark.",
|
|
959
|
-
behaviour: "A
|
|
960
|
-
words: '
|
|
961
|
-
access: "
|
|
970
|
+
behaviour: "A `ProductWordmark` with an 18 px wordmark, smaller as the column narrows, so the name stays whole. Inside a link, the link is the row.",
|
|
971
|
+
words: '`product` names the product the column belongs to: "Portal".',
|
|
972
|
+
access: "Decorative: the link or button around it carries the accessible name.",
|
|
962
973
|
},
|
|
963
974
|
{
|
|
964
975
|
name: "SidebarFind",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nadicodeai/ui",
|
|
3
|
-
"version": "12.1.
|
|
3
|
+
"version": "12.1.181",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"imports": {
|
|
6
6
|
"#jsx": "./src/jsx/index.ts",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"@base-ui/react": "^1.9.0",
|
|
73
73
|
"@iconify-icons/logos": "^2.0.3",
|
|
74
74
|
"@iconify/react": "^6.0.2",
|
|
75
|
-
"@nadicodeai/design-system": "12.1.
|
|
75
|
+
"@nadicodeai/design-system": "12.1.181",
|
|
76
76
|
"@tanstack/react-table": "^9.3.1",
|
|
77
77
|
"@vgpu/wgsl": "0.6.0",
|
|
78
78
|
"class-variance-authority": "^0.7.1",
|