@nadicodeai/ui 12.1.176 → 12.1.178
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/catalog-categories.d.ts +9 -0
- package/dist/components/catalog-categories.d.ts.map +1 -0
- package/dist/components/catalog-categories.js +36 -0
- package/dist/components/catalog-category.d.ts +16 -0
- package/dist/components/catalog-category.d.ts.map +1 -0
- package/dist/components/catalog-category.js +40 -0
- package/dist/components/catalog-entry.d.ts +1 -1
- package/dist/components/catalog-row.d.ts +61 -0
- package/dist/components/catalog-row.d.ts.map +1 -0
- package/dist/components/catalog-row.js +86 -0
- package/dist/components/collection-page.d.ts +1 -1
- package/dist/components/collection-page.d.ts.map +1 -1
- package/dist/components/collection-page.js +6 -3
- package/dist/components/identity-mark.d.ts +2 -2
- package/dist/components/identity-mark.d.ts.map +1 -1
- package/dist/components/identity-mark.js +1 -2
- package/dist/components/page-actions.d.ts +9 -1
- package/dist/components/page-actions.d.ts.map +1 -1
- package/dist/components/page-actions.js +12 -5
- package/dist/components/page-header.d.ts +6 -1
- package/dist/components/page-header.d.ts.map +1 -1
- package/dist/components/page-header.js +4 -1
- package/dist/components/record-list.d.ts +1 -1
- package/dist/components/record-list.d.ts.map +1 -1
- package/dist/components/record-list.js +7 -2
- package/dist/components/sonner.d.ts +5 -2
- package/dist/components/sonner.d.ts.map +1 -1
- package/dist/components/sonner.js +13 -10
- package/dist/components/tag.d.ts +9 -4
- package/dist/components/tag.d.ts.map +1 -1
- package/dist/components/tag.js +24 -4
- package/dist/showcase/specimens/compositions.d.ts +2 -0
- package/dist/showcase/specimens/compositions.d.ts.map +1 -1
- package/dist/showcase/specimens/compositions.js +36 -1
- package/dist/showcase/specimens/feedback.d.ts.map +1 -1
- package/dist/showcase/specimens/feedback.js +1 -1
- package/dist/showcase/specimens/index.d.ts +2 -0
- package/dist/showcase/specimens/index.d.ts.map +1 -1
- 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 -0
- 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 +27 -5
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"record-list.d.ts","sourceRoot":"","sources":["../../src/components/record-list.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAErD,OAAO,EAAiB,KAAK,YAAY,EAAE,KAAK,SAAS,EAAqB,MAAM,OAAO,CAAC;AAE5F,OAAO,EAAc,KAAK,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAExE,OAAO,EAEL,KAAK,qBAAqB,EAE3B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAc,KAAK,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC3E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,KAAK,WAAW,EAAqB,MAAM,2BAA2B,CAAC;AAChF,OAAO,EAAqB,KAAK,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAIjG,OAAO,EAAe,KAAK,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAI9E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,KAAK,UAAU,EAAqC,MAAM,wBAAwB,CAAC;AAG5F,YAAY,EAAE,UAAU,EAAE,CAAC;AAE3B,MAAM,MAAM,UAAU,GAAG;IACvB,uFAAuF;IACvF,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,0GAA0G;IAC1G,IAAI,EAAE,iBAAiB,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,UAAU,CAAC,OAAO,IAAI;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,kDAAkD;IAClD,K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OAAO,EAAE,KAAK,EAAE,eAAe,CAAC,OAAO,CAAC,sCAqClF"}
|
|
@@ -120,12 +120,15 @@ function FactCell({ column, row }) {
|
|
|
120
120
|
const facts = useShownList().facts ?? [];
|
|
121
121
|
return _jsx(_Fragment, { children: facts.find((each) => each.id === column.id)?.of(row.original) });
|
|
122
122
|
}
|
|
123
|
+
function hasValue(value) {
|
|
124
|
+
return value !== null && value !== undefined && value !== "";
|
|
125
|
+
}
|
|
123
126
|
function summaryOf(list, record) {
|
|
124
127
|
const facts = list.facts ?? [];
|
|
125
128
|
const status = list.status?.of(record) ?? null;
|
|
126
129
|
const said = facts.flatMap((fact) => {
|
|
127
130
|
const value = fact.of(record);
|
|
128
|
-
return value
|
|
131
|
+
return hasValue(value) ? [{ id: fact.id, value }] : [];
|
|
129
132
|
});
|
|
130
133
|
return status || said.length > 0 ? { status, said } : undefined;
|
|
131
134
|
}
|
|
@@ -205,6 +208,8 @@ function recordColumns(props) {
|
|
|
205
208
|
}
|
|
206
209
|
else {
|
|
207
210
|
for (const fact of facts) {
|
|
211
|
+
if (!props.records.some((record) => hasValue(fact.of(record))))
|
|
212
|
+
continue;
|
|
208
213
|
columns.push({
|
|
209
214
|
id: fact.id,
|
|
210
215
|
header: fact.label,
|
|
@@ -288,7 +293,7 @@ function RecordRows(props) {
|
|
|
288
293
|
* @instead “For tabular data with sortable columns and shared row shape, use `Table` instead.” (https://vercel.com/geist/entity)
|
|
289
294
|
* “For a static key/value metadata block on a detail page, use `Description`.” (https://vercel.com/geist/entity)
|
|
290
295
|
* Ours: Geist's `Table` is a `DataTable`: this list has no visible headings and at most three facts, so a fourth fact is a table, and anything more than a few facts lives on the record's page. A screen gives `RecordList` the records and what each one says, never its own toolbar, table, rows or menus, and nothing else draws a record row. Its `Description` is `ObjectFacts`. Events in time are an `ActivityFeed`. Reusable things a person adds from a catalogue are a `LibraryShelf`. A descriptive row with prose is an `Item`.
|
|
291
|
-
* @behaviour One bordered card, a 1 px rule between records and none after the last. A row is 72 px, with 16 px above and below, and its columns stand left to right at the widths the list declares, so a person reads every list the same way: the `select` box (40 px, only when the list is picked from, an optional column), the identity (the rest: the one column without a size), the facts (each its `size`), the status (`status.size`), the time (`time.size`, tabular), the `checklist` ring (52 px, only when the record has steps to be ready) and the commands (as wide as the widest row's buttons, a failed action's next steps and the three dots or the chevron after them need, worked out from their labels, each label at most 8 px a character and a button holding the longer of its label and its pending label, the dots at their 44 px touch target; 64 px for the three dots or the chevron alone; a row that draws a button or next steps is never narrower than a `commandsSize` the caller gives). A `checklist` puts the record's `ProgressChecklist` ring just before its commands, where Vercel ends a project's row with its Production Checklist; the ring opens its own drawer, never the row. Every row has its 32 px mark, its name (600) and, under it, one muted 14 px line; `name` and the mark are required; a record with nothing to say under its name leaves the line out and is the name alone, never a dash. Give every column a `size` in pixels; the name takes the rest. With `layout="line"`, as on Vercel's Projects page, the facts and the status share one muted line, joined by a middle dot, in a column as wide as the name's, and the row stays one line (mark, name over its line, that summary, the time, the ring, the three dots) on a card wide enough for its sized columns and 160 px each for the name and the summary, and on a narrower card the summary and the time move under the name as muted text joined by a middle dot that wraps, the status keeping its mark whole and breaking between its words only when it alone is wider than the line, in the same row, their labels read by assistive technology only. Rows of `columns` follow the same rule once the card is narrower than their columns: the facts and the time leave the row for that muted text, wrapping so every value stays readable, never a labelled list, and the status stands beside the name, which ends in an ellipsis before it, so the exception is never the part a phone's line cuts. `facts` takes at most three. A menu of one command that is not destructive, with no row command, is that command's button, except in a `line` row, which keeps it in the three dots as Vercel's project row does, and the column is as wide as the widest such button, so its label is never cut. The commands never take the name's room: once the row is compact, its commands column holds only the three dots or the chevron, a sole menu command stays in the dots and the row's own buttons stand under the name, beside a failed action's next steps, outside the row's link, so pressing one never opens the record. Status is only for the exception, empty for the usual record, and its column stands only while a record in the list shows one, so the name and its line keep the room; the commands column likewise stands only while a record has a command, a menu or a message, or the rows open, and it widens for a failed action's next steps only while a row shows one. Never the three dots before the button, a decorative icon for the record's mark, a status on every row, or a destructive button on every row: a destructive command stays in the three dots. A `line` row's summary joins only the facts the record has, so it never ends in a dot. A failed or refused action of the record shows as its catalogue message inside its own row, never a notice under the row: it replaces the detail line, with its next steps beside its commands, or under the message on a card too narrow for the row's columns. With `open` the whole row is one target and takes the `accent` hover, and a row that only opens ends in a muted chevron; a row that opens nothing never reacts to hover. With `editor` the record's row opens its form under its line. `empty` is required: `null` is the choice to draw nothing for a list with no records, and any other value is the state it draws. A note about the whole list is `footer.note`: one muted line, an optional *Learn more* after it at the left and one secondary action at the right, in a strip of its own under the count and the paging, as Vercel ends its deployments list ("Deployment retention is enabled. Learn more", *View recently deleted*). Colour is neutral, the name in ink and every other cell in the body grey, except the status badge and a failed action's message.
|
|
296
|
+
* @behaviour One bordered card, a 1 px rule between records and none after the last. A row is 72 px, with 16 px above and below, and its columns stand left to right at the widths the list declares, so a person reads every list the same way: the `select` box (40 px, only when the list is picked from, an optional column), the identity (the rest: the one column without a size), the facts (each its `size`), the status (`status.size`), the time (`time.size`, tabular), the `checklist` ring (52 px, only when the record has steps to be ready) and the commands (as wide as the widest row's buttons, a failed action's next steps and the three dots or the chevron after them need, worked out from their labels, each label at most 8 px a character and a button holding the longer of its label and its pending label, the dots at their 44 px touch target; 64 px for the three dots or the chevron alone; a row that draws a button or next steps is never narrower than a `commandsSize` the caller gives). A `checklist` puts the record's `ProgressChecklist` ring just before its commands, where Vercel ends a project's row with its Production Checklist; the ring opens its own drawer, never the row. Every row has its 32 px mark, its name (600) and, under it, one muted 14 px line; `name` and the mark are required; a record with nothing to say under its name leaves the line out and is the name alone, never a dash. Give every column a `size` in pixels; the name takes the rest. With `layout="line"`, as on Vercel's Projects page, the facts and the status share one muted line, joined by a middle dot, in a column as wide as the name's, and the row stays one line (mark, name over its line, that summary, the time, the ring, the three dots) on a card wide enough for its sized columns and 160 px each for the name and the summary, and on a narrower card the summary and the time move under the name as muted text joined by a middle dot that wraps, the status keeping its mark whole and breaking between its words only when it alone is wider than the line, in the same row, their labels read by assistive technology only. Rows of `columns` follow the same rule once the card is narrower than their columns: the facts and the time leave the row for that muted text, wrapping so every value stays readable, never a labelled list, and the status stands beside the name, which ends in an ellipsis before it, so the exception is never the part a phone's line cuts. `facts` takes at most three. A menu of one command that is not destructive, with no row command, is that command's button, except in a `line` row, which keeps it in the three dots as Vercel's project row does, and the column is as wide as the widest such button, so its label is never cut. The commands never take the name's room: once the row is compact, its commands column holds only the three dots or the chevron, a sole menu command stays in the dots and the row's own buttons stand under the name, beside a failed action's next steps, outside the row's link, so pressing one never opens the record. Status is only for the exception, empty for the usual record, and its column stands only while a record in the list shows one, so the name and its line keep the room; a fact's column likewise stands only while a record in the list has its value; the commands column likewise stands only while a record has a command, a menu or a message, or the rows open, and it widens for a failed action's next steps only while a row shows one. Never the three dots before the button, a decorative icon for the record's mark, a status on every row, or a destructive button on every row: a destructive command stays in the three dots. A `line` row's summary joins only the facts the record has, so it never ends in a dot. A failed or refused action of the record shows as its catalogue message inside its own row, never a notice under the row: it replaces the detail line, with its next steps beside its commands, or under the message on a card too narrow for the row's columns. With `open` the whole row is one target and takes the `accent` hover, and a row that only opens ends in a muted chevron; a row that opens nothing never reacts to hover. With `editor` the record's row opens its form under its line. `empty` is required: `null` is the choice to draw nothing for a list with no records, and any other value is the state it draws. A note about the whole list is `footer.note`: one muted line, an optional *Learn more* after it at the left and one secondary action at the right, in a strip of its own under the count and the paging, as Vercel ends its deployments list ("Deployment retention is enabled. Learn more", *View recently deleted*). Colour is neutral, the name in ink and every other cell in the body grey, except the status badge and a failed action's message.
|
|
292
297
|
* “Pick the variant by what the user needs: no-results for a filtered list that returned zero rows, blank slate or informational for a resource the user hasn’t created, cleared for completed work, permission for role or tier denials, error for a failed load.” (https://vercel.com/geist/empty-state)
|
|
293
298
|
* Ours: `failed`, `noMatch` and `empty` are those variants, drawn inside the card.
|
|
294
299
|
* “The right column holds at most one or two controls. If the row needs more, move secondary actions into a `Dots Menu`.” (https://vercel.com/geist/entity)
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { type ToasterProps } from "sonner";
|
|
2
|
+
import type { MessageToastTone } from "./toast.js";
|
|
2
3
|
type ToasterLabels = {
|
|
3
4
|
/** The close button's name: "Close notification". */
|
|
4
5
|
closeLabel: string;
|
|
5
6
|
/** The region's name, for a keyboard or screen reader user: "Notifications". */
|
|
6
7
|
regionLabel: string;
|
|
8
|
+
/** Each tone's word, read before the toast's words and never shown: "Success", "Error". */
|
|
9
|
+
toneLabels: Record<MessageToastTone, string>;
|
|
7
10
|
};
|
|
8
11
|
type ToasterOwnProps = Omit<ToasterProps, "closeButton" | "containerAriaLabel" | "duration" | "icons" | "toastOptions">;
|
|
9
12
|
/**
|
|
@@ -12,10 +15,10 @@ type ToasterOwnProps = Omit<ToasterProps, "closeButton" | "containerAriaLabel" |
|
|
|
12
15
|
* @family Feedback
|
|
13
16
|
* @when "A succinct message that is displayed temporarily." (https://vercel.com/geist/toast) "Use a toast for non-blocking acknowledgments of user-initiated actions: `Domain added`, `Project archived`, `Deployment canceled`." (https://vercel.com/geist/toast) "Pick the method by how the user experienced the event, not by HTTP status. A user-canceled deploy is `toasts.message('Deployment canceled')`, not `success`. A partial deploy with skipped routes is `toasts.warning(...)`." (https://vercel.com/geist/toast) Ours: mount it once and raise toasts through `showMessageToast` from `@nadicodeai/ui/components/toast`. `toasts.message` is the tone `info`, and `success`, `warning` and `error` keep their names.
|
|
14
17
|
* @instead "Don’t use a toast alone for billing failures, permission denials, or build failures the user has to triage. Pair a ≤6-word toast (`Build failed`) with a persistent row carrying the recovery step and a stable identifier." (https://vercel.com/geist/toast) "Field-level validation belongs on the `Input`, not in a toast. Persistent configuration warnings belong in `Note` or `Banner`." (https://vercel.com/geist/toast) Ours: the persistent row is a `MessageNotice`, a field's wrong value stays on the field (`FieldError`), and a lasting condition is a `NoticeBanner`.
|
|
15
|
-
* @behaviour "Default toasts auto-dismiss; pass `preserve` only when the user must read or act on the message before it disappears." (https://vercel.com/geist/toast) "Undo snackbars stay on screen for 5–10 seconds and pair the past-tense toast with a single `Undo` action button." (https://vercel.com/geist/toast) "Don’t stack toasts to narrate one async flow; emit the success or error toast at the terminal step." (https://vercel.com/geist/toast) Ours: `showMessageToast` takes no `preserve`, so every toast leaves after 6 s, which is also the Undo window; the first action with a handler becomes the toast's one button, and its label is the catalogue's, so a literal `Undo` is not enforced. A toast always has a tone
|
|
18
|
+
* @behaviour "Default toasts auto-dismiss; pass `preserve` only when the user must read or act on the message before it disappears." (https://vercel.com/geist/toast) "Undo snackbars stay on screen for 5–10 seconds and pair the past-tense toast with a single `Undo` action button." (https://vercel.com/geist/toast) "Don’t stack toasts to narrate one async flow; emit the success or error toast at the terminal step." (https://vercel.com/geist/toast) Ours: `showMessageToast` takes no `preserve`, so every toast leaves after 6 s, which is also the Undo window; the first action with a handler becomes the toast's one button, and its label is the catalogue's, so a literal `Undo` is not enforced. A toast always has a tone: `info` is the nearest to a neutral one. Colour sits on the whole toast: `success` fills it with the accent blue (Geist's blue success, the same hue as an `info` note), `warning` and `error` with their solid colour, each with that colour's text; `info` stays the solid floating surface, never glass. A toast draws no tone mark, as Geist's: its words sit alone beside the close button, on one centre line, and the tone is read as a hidden word in the product's language (`toneLabels`), so it reads without colour. A toast is 420 px wide at most, 16 px padded, with a close button of 32 px at its trailing edge. A toast that stays up shows the waiting line, not a spinner. Required: `closeLabel`, `regionLabel` and `toneLabels`, because the close button, the region and each tone need a name in the product's language.
|
|
16
19
|
* @words "One sentence, sentence case, no trailing period when the toast is a single sentence." (https://vercel.com/geist/toast) "Completion toasts follow `{Noun} {past-participle}`: `Blob deleted`, `Domain added`, `Environment variable saved`. Never include `successfully`; the action name implies it." (https://vercel.com/geist/toast) "Error toasts are two sentences with periods and end with a recovery step: `Couldn’t verify domain. Try again.` Use `Couldn’t` for user-state errors and `Failed to` for system or infra errors; match adjacent shipped copy and don’t flip mid-flow." (https://vercel.com/geist/toast) "Pair the toast verb 1:1 with the destructive button verb (`Delete Project` then `Project deleted`, never `Project removed`)." (https://vercel.com/geist/toast) "Undo snackbars use the literal label `Undo`, never `Restore`, `Bring Back`, or `Cancel`. Only use the pattern when the rollback is safe." (https://vercel.com/geist/toast) Ours: the words come from the catalogue; *Mailbox removed* pairs with its button *Remove mailbox*.
|
|
17
20
|
* @access "The toast region announces with `aria-live="polite"`; reserve `assertive` for blocking errors that interrupt a flow." (https://vercel.com/geist/toast) "Don’t put primary navigation inside a toast; transient surfaces vanish before keyboard users can reach them." (https://vercel.com/geist/toast) Ours: the toaster's live region is named by `regionLabel` and the close button by `closeLabel`. Navigation is never the only route to recovery: the record's own row keeps its controls. Undo is reachable by keyboard (Alt+T moves focus to the toasts) while it shows.
|
|
18
21
|
*/
|
|
19
|
-
declare const Toaster: ({ closeLabel, regionLabel, ...props }: ToasterOwnProps & ToasterLabels) => import("react").JSX.Element;
|
|
22
|
+
declare const Toaster: ({ closeLabel, regionLabel, toneLabels, ...props }: ToasterOwnProps & ToasterLabels) => import("react").JSX.Element;
|
|
20
23
|
export { Toaster };
|
|
21
24
|
//# sourceMappingURL=sonner.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sonner.d.ts","sourceRoot":"","sources":["../../src/components/sonner.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAqB,KAAK,YAAY,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"sonner.d.ts","sourceRoot":"","sources":["../../src/components/sonner.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAqB,KAAK,YAAY,EAAE,MAAM,QAAQ,CAAC;AAM9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAO3D,KAAK,aAAa,GAAG;IACnB,qDAAqD;IACrD,UAAU,EAAE,MAAM,CAAC;IACnB,gFAAgF;IAChF,WAAW,EAAE,MAAM,CAAC;IACpB,2FAA2F;IAC3F,UAAU,EAAE,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAC;CAC9C,CAAC;AAEF,KAAK,eAAe,GAAG,IAAI,CACzB,YAAY,EACZ,aAAa,GAAG,oBAAoB,GAAG,UAAU,GAAG,OAAO,GAAG,cAAc,CAC7E,CAAC;AAEF;;;;;;;;;GASG;AACH,QAAA,MAAM,OAAO,GAAI,mDAKd,eAAe,GAAG,aAAa,gCA8CjC,CAAC;AAEF,OAAO,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -2,28 +2,30 @@
|
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useTheme } from "next-themes";
|
|
4
4
|
import { Toaster as Sonner } from "sonner";
|
|
5
|
-
import {
|
|
5
|
+
import { XIcon } from "lucide-react";
|
|
6
6
|
import { WaitingLine } from "./waiting-line.js";
|
|
7
7
|
import { cssVariables } from "../lib/css-variables.js";
|
|
8
8
|
import { isThemeMode } from "../lib/theme-mode.js";
|
|
9
9
|
const TOAST_DURATION_MS = 6000;
|
|
10
|
+
// A tone toast keeps its tone word for a screen reader and shows no mark.
|
|
11
|
+
const TONE_WORD_ONLY = "[&_[data-icon]]:sr-only";
|
|
10
12
|
/**
|
|
11
13
|
* The one place toasts appear, mounted once per product.
|
|
12
14
|
*
|
|
13
15
|
* @family Feedback
|
|
14
16
|
* @when "A succinct message that is displayed temporarily." (https://vercel.com/geist/toast) "Use a toast for non-blocking acknowledgments of user-initiated actions: `Domain added`, `Project archived`, `Deployment canceled`." (https://vercel.com/geist/toast) "Pick the method by how the user experienced the event, not by HTTP status. A user-canceled deploy is `toasts.message('Deployment canceled')`, not `success`. A partial deploy with skipped routes is `toasts.warning(...)`." (https://vercel.com/geist/toast) Ours: mount it once and raise toasts through `showMessageToast` from `@nadicodeai/ui/components/toast`. `toasts.message` is the tone `info`, and `success`, `warning` and `error` keep their names.
|
|
15
17
|
* @instead "Don’t use a toast alone for billing failures, permission denials, or build failures the user has to triage. Pair a ≤6-word toast (`Build failed`) with a persistent row carrying the recovery step and a stable identifier." (https://vercel.com/geist/toast) "Field-level validation belongs on the `Input`, not in a toast. Persistent configuration warnings belong in `Note` or `Banner`." (https://vercel.com/geist/toast) Ours: the persistent row is a `MessageNotice`, a field's wrong value stays on the field (`FieldError`), and a lasting condition is a `NoticeBanner`.
|
|
16
|
-
* @behaviour "Default toasts auto-dismiss; pass `preserve` only when the user must read or act on the message before it disappears." (https://vercel.com/geist/toast) "Undo snackbars stay on screen for 5–10 seconds and pair the past-tense toast with a single `Undo` action button." (https://vercel.com/geist/toast) "Don’t stack toasts to narrate one async flow; emit the success or error toast at the terminal step." (https://vercel.com/geist/toast) Ours: `showMessageToast` takes no `preserve`, so every toast leaves after 6 s, which is also the Undo window; the first action with a handler becomes the toast's one button, and its label is the catalogue's, so a literal `Undo` is not enforced. A toast always has a tone
|
|
18
|
+
* @behaviour "Default toasts auto-dismiss; pass `preserve` only when the user must read or act on the message before it disappears." (https://vercel.com/geist/toast) "Undo snackbars stay on screen for 5–10 seconds and pair the past-tense toast with a single `Undo` action button." (https://vercel.com/geist/toast) "Don’t stack toasts to narrate one async flow; emit the success or error toast at the terminal step." (https://vercel.com/geist/toast) Ours: `showMessageToast` takes no `preserve`, so every toast leaves after 6 s, which is also the Undo window; the first action with a handler becomes the toast's one button, and its label is the catalogue's, so a literal `Undo` is not enforced. A toast always has a tone: `info` is the nearest to a neutral one. Colour sits on the whole toast: `success` fills it with the accent blue (Geist's blue success, the same hue as an `info` note), `warning` and `error` with their solid colour, each with that colour's text; `info` stays the solid floating surface, never glass. A toast draws no tone mark, as Geist's: its words sit alone beside the close button, on one centre line, and the tone is read as a hidden word in the product's language (`toneLabels`), so it reads without colour. A toast is 420 px wide at most, 16 px padded, with a close button of 32 px at its trailing edge. A toast that stays up shows the waiting line, not a spinner. Required: `closeLabel`, `regionLabel` and `toneLabels`, because the close button, the region and each tone need a name in the product's language.
|
|
17
19
|
* @words "One sentence, sentence case, no trailing period when the toast is a single sentence." (https://vercel.com/geist/toast) "Completion toasts follow `{Noun} {past-participle}`: `Blob deleted`, `Domain added`, `Environment variable saved`. Never include `successfully`; the action name implies it." (https://vercel.com/geist/toast) "Error toasts are two sentences with periods and end with a recovery step: `Couldn’t verify domain. Try again.` Use `Couldn’t` for user-state errors and `Failed to` for system or infra errors; match adjacent shipped copy and don’t flip mid-flow." (https://vercel.com/geist/toast) "Pair the toast verb 1:1 with the destructive button verb (`Delete Project` then `Project deleted`, never `Project removed`)." (https://vercel.com/geist/toast) "Undo snackbars use the literal label `Undo`, never `Restore`, `Bring Back`, or `Cancel`. Only use the pattern when the rollback is safe." (https://vercel.com/geist/toast) Ours: the words come from the catalogue; *Mailbox removed* pairs with its button *Remove mailbox*.
|
|
18
20
|
* @access "The toast region announces with `aria-live="polite"`; reserve `assertive` for blocking errors that interrupt a flow." (https://vercel.com/geist/toast) "Don’t put primary navigation inside a toast; transient surfaces vanish before keyboard users can reach them." (https://vercel.com/geist/toast) Ours: the toaster's live region is named by `regionLabel` and the close button by `closeLabel`. Navigation is never the only route to recovery: the record's own row keeps its controls. Undo is reachable by keyboard (Alt+T moves focus to the toasts) while it shows.
|
|
19
21
|
*/
|
|
20
|
-
const Toaster = ({ closeLabel, regionLabel, ...props }) => {
|
|
22
|
+
const Toaster = ({ closeLabel, regionLabel, toneLabels, ...props }) => {
|
|
21
23
|
const { theme = "system" } = useTheme();
|
|
22
24
|
return (_jsx(Sonner, { theme: isThemeMode(theme) ? theme : "system", className: "toaster group", closeButton: true, containerAriaLabel: regionLabel, duration: TOAST_DURATION_MS, icons: {
|
|
23
|
-
success: _jsx(
|
|
24
|
-
info: _jsx(
|
|
25
|
-
warning: _jsx(
|
|
26
|
-
error: _jsx(
|
|
25
|
+
success: _jsx("span", { children: toneLabels.success }),
|
|
26
|
+
info: _jsx("span", { children: toneLabels.info }),
|
|
27
|
+
warning: _jsx("span", { children: toneLabels.warning }),
|
|
28
|
+
error: _jsx("span", { children: toneLabels.error }),
|
|
27
29
|
close: _jsx(XIcon, { className: "size-4" }),
|
|
28
30
|
// A toast that stays up is already past a second, so its mark is the
|
|
29
31
|
// one waiting line rather than a spinning glyph.
|
|
@@ -42,9 +44,10 @@ const Toaster = ({ closeLabel, regionLabel, ...props }) => {
|
|
|
42
44
|
description: "text-current!",
|
|
43
45
|
closeButton: "top-4! right-4! left-auto! size-8! transform-none! rounded-sm! border-0! bg-transparent! opacity-100! hover:bg-current/10!",
|
|
44
46
|
actionButton: "h-nadicode-control-height-sm! rounded-sm! bg-primary! px-button-padding-inline-sm! text-button! font-medium! text-primary-foreground!",
|
|
45
|
-
success:
|
|
46
|
-
|
|
47
|
-
|
|
47
|
+
success: `${TONE_WORD_ONLY} [--normal-bg:var(--info)] [--normal-text:var(--info-foreground)]`,
|
|
48
|
+
info: TONE_WORD_ONLY,
|
|
49
|
+
warning: `${TONE_WORD_ONLY} [--normal-bg:var(--warning)] [--normal-text:var(--warning-foreground)]`,
|
|
50
|
+
error: `${TONE_WORD_ONLY} [--normal-bg:var(--destructive)] [--normal-text:var(--destructive-foreground)]`,
|
|
48
51
|
},
|
|
49
52
|
}, ...props }));
|
|
50
53
|
};
|
package/dist/components/tag.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { ComponentProps, ReactNode } from "react";
|
|
2
|
-
type TagTone = "neutral" | "blue" | "teal" | "purple" | "pink";
|
|
2
|
+
type TagTone = "neutral" | "blue" | "teal" | "purple" | "pink" | "green" | "orange" | "yellow" | "red";
|
|
3
3
|
type TagProps = Omit<ComponentProps<"span">, "children"> & {
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
tone?: TagTone;
|
|
6
|
+
/** The tone's hue itself rather than its soft step, for a category label (`CategoryTag`). */
|
|
7
|
+
vivid?: boolean;
|
|
6
8
|
/** A 12px mark at the leading edge. */
|
|
7
9
|
mark?: ReactNode;
|
|
8
10
|
/** A dashed, muted tag, for an absence such as "Direct customer". */
|
|
@@ -18,12 +20,15 @@ type TagProps = Omit<ComponentProps<"span">, "children"> & {
|
|
|
18
20
|
* to. A 24 px pill with its 12 px mark.
|
|
19
21
|
* @instead For a state use `StatusBadge`; a tag never carries one. For a removable filter use
|
|
20
22
|
* `CollectionFilters`. For a way to the thing, a link.
|
|
21
|
-
* @behaviour Static, truncates inside its width.
|
|
22
|
-
*
|
|
23
|
+
* @behaviour Static, truncates inside its width. A tone is one of the palette's eight hues (blue,
|
|
24
|
+
* teal, purple, pink, green, orange, yellow, red) on its soft step with its deep ink, or neutral,
|
|
25
|
+
* and its mark takes the same ink; a vivid tag, a category label's, is the hue itself with the
|
|
26
|
+
* pole that clears AA as its ink. The same category keeps the same tone across a surface and
|
|
27
|
+
* after sorting; a tag is a pill and never a status, which is `StatusBadge`'s shape and word. Dashed and muted when it states an absence.
|
|
23
28
|
* @words The thing's own name. A quiet tag names the absence in two or three words (*Direct
|
|
24
29
|
* customer*); the note says whose (*Your account*).
|
|
25
30
|
* @access Text; the mark is decorative. Never focusable unless wrapped by a real link.
|
|
26
31
|
*/
|
|
27
|
-
declare function Tag({ children, className, mark, note, quiet, tone, ...props }: TagProps): import("react").JSX.Element;
|
|
32
|
+
declare function Tag({ children, className, mark, note, quiet, tone, vivid, ...props }: TagProps): import("react").JSX.Element;
|
|
28
33
|
export { Tag, type TagProps, type TagTone };
|
|
29
34
|
//# sourceMappingURL=tag.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../src/components/tag.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvD,KAAK,OAAO,
|
|
1
|
+
{"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../src/components/tag.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvD,KAAK,OAAO,GACR,SAAS,GACT,MAAM,GACN,MAAM,GACN,QAAQ,GACR,MAAM,GACN,OAAO,GACP,QAAQ,GACR,QAAQ,GACR,KAAK,CAAC;AA0BV,KAAK,QAAQ,GAAG,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,UAAU,CAAC,GAAG;IACzD,QAAQ,EAAE,SAAS,CAAC;IACpB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,6FAA6F;IAC7F,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,uCAAuC;IACvC,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,qEAAqE;IACrE,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,wEAAwE;IACxE,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,iBAAS,GAAG,CAAC,EACX,QAAQ,EACR,SAAS,EACT,IAAI,EACJ,IAAI,EACJ,KAAa,EACb,IAAgB,EAChB,KAAa,EACb,GAAG,KAAK,EACT,EAAE,QAAQ,+BA8BV;AAED,OAAO,EAAE,GAAG,EAAE,KAAK,QAAQ,EAAE,KAAK,OAAO,EAAE,CAAC"}
|
package/dist/components/tag.js
CHANGED
|
@@ -6,6 +6,21 @@ const TONE_CLASS = {
|
|
|
6
6
|
teal: "border-transparent bg-category-teal text-category-teal-foreground",
|
|
7
7
|
purple: "border-transparent bg-category-purple text-category-purple-foreground",
|
|
8
8
|
pink: "border-transparent bg-category-pink text-category-pink-foreground",
|
|
9
|
+
green: "border-transparent bg-category-green text-category-green-foreground",
|
|
10
|
+
orange: "border-transparent bg-category-orange text-category-orange-foreground",
|
|
11
|
+
yellow: "border-transparent bg-category-yellow text-category-yellow-foreground",
|
|
12
|
+
red: "border-transparent bg-category-red text-category-red-foreground",
|
|
13
|
+
};
|
|
14
|
+
const VIVID_CLASS = {
|
|
15
|
+
neutral: TONE_CLASS.neutral,
|
|
16
|
+
blue: "border-transparent bg-label-blue text-label-blue-foreground",
|
|
17
|
+
teal: "border-transparent bg-label-teal text-label-teal-foreground",
|
|
18
|
+
purple: "border-transparent bg-label-purple text-label-purple-foreground",
|
|
19
|
+
pink: "border-transparent bg-label-pink text-label-pink-foreground",
|
|
20
|
+
green: "border-transparent bg-label-green text-label-green-foreground",
|
|
21
|
+
orange: "border-transparent bg-label-orange text-label-orange-foreground",
|
|
22
|
+
yellow: "border-transparent bg-label-yellow text-label-yellow-foreground",
|
|
23
|
+
red: "border-transparent bg-label-red text-label-red-foreground",
|
|
9
24
|
};
|
|
10
25
|
/**
|
|
11
26
|
* One categorical fact in a row, as a pill.
|
|
@@ -15,13 +30,18 @@ const TONE_CLASS = {
|
|
|
15
30
|
* to. A 24 px pill with its 12 px mark.
|
|
16
31
|
* @instead For a state use `StatusBadge`; a tag never carries one. For a removable filter use
|
|
17
32
|
* `CollectionFilters`. For a way to the thing, a link.
|
|
18
|
-
* @behaviour Static, truncates inside its width.
|
|
19
|
-
*
|
|
33
|
+
* @behaviour Static, truncates inside its width. A tone is one of the palette's eight hues (blue,
|
|
34
|
+
* teal, purple, pink, green, orange, yellow, red) on its soft step with its deep ink, or neutral,
|
|
35
|
+
* and its mark takes the same ink; a vivid tag, a category label's, is the hue itself with the
|
|
36
|
+
* pole that clears AA as its ink. The same category keeps the same tone across a surface and
|
|
37
|
+
* after sorting; a tag is a pill and never a status, which is `StatusBadge`'s shape and word. Dashed and muted when it states an absence.
|
|
20
38
|
* @words The thing's own name. A quiet tag names the absence in two or three words (*Direct
|
|
21
39
|
* customer*); the note says whose (*Your account*).
|
|
22
40
|
* @access Text; the mark is decorative. Never focusable unless wrapped by a real link.
|
|
23
41
|
*/
|
|
24
|
-
function Tag({ children, className, mark, note, quiet = false, tone = "neutral", ...props }) {
|
|
25
|
-
return (_jsxs("span", { className: cn("inline-flex h-6 max-w-full min-w-0 shrink-0 items-center gap-1.5 rounded-full border ps-2 pe-2.5 text-xs whitespace-nowrap", quiet
|
|
42
|
+
function Tag({ children, className, mark, note, quiet = false, tone = "neutral", vivid = false, ...props }) {
|
|
43
|
+
return (_jsxs("span", { className: cn("inline-flex h-6 max-w-full min-w-0 shrink-0 items-center gap-1.5 rounded-full border ps-2 pe-2.5 text-xs whitespace-nowrap", quiet
|
|
44
|
+
? "border-dashed border-border text-muted-foreground"
|
|
45
|
+
: (vivid ? VIVID_CLASS : TONE_CLASS)[tone], className), "data-quiet": quiet ? "" : undefined, "data-slot": "tag", ...props, children: [mark ? (_jsx("span", { className: "flex size-3 shrink-0 items-center justify-center [&>svg]:size-3", "data-slot": "tag-mark", children: mark })) : null, _jsx("span", { className: "truncate", children: children }), note ? (_jsx("span", { className: "shrink-0 text-muted-foreground", "data-slot": "tag-note", children: note })) : null] }));
|
|
26
46
|
}
|
|
27
47
|
export { Tag };
|
|
@@ -2,6 +2,7 @@ declare function ActivityFeedSpecimen(): import("react").JSX.Element;
|
|
|
2
2
|
declare function AgentProfileCardSpecimen(): import("react").JSX.Element;
|
|
3
3
|
declare function CatalogDrawerSpecimen(): import("react").JSX.Element;
|
|
4
4
|
declare function CollectionFiltersSpecimen(): import("react").JSX.Element;
|
|
5
|
+
declare function CatalogRowsSpecimen(): import("react").JSX.Element;
|
|
5
6
|
declare function CollectionPageSpecimen(): import("react").JSX.Element;
|
|
6
7
|
declare function CollectionToolbarSpecimen(): import("react").JSX.Element;
|
|
7
8
|
declare function ConfirmDialogSpecimen(): import("react").JSX.Element;
|
|
@@ -22,6 +23,7 @@ export declare const COMPOSITIONS: {
|
|
|
22
23
|
CollectionFilters: typeof CollectionFiltersSpecimen;
|
|
23
24
|
CollectionPage: typeof CollectionPageSpecimen;
|
|
24
25
|
CollectionToolbar: typeof CollectionToolbarSpecimen;
|
|
26
|
+
useCatalogRows: typeof CatalogRowsSpecimen;
|
|
25
27
|
ConfirmDialog: typeof ConfirmDialogSpecimen;
|
|
26
28
|
EntryPicture: typeof EntryPictureSpecimen;
|
|
27
29
|
EntryScene: typeof EntrySceneSpecimen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compositions.d.ts","sourceRoot":"","sources":["../../../src/showcase/specimens/compositions.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"compositions.d.ts","sourceRoot":"","sources":["../../../src/showcase/specimens/compositions.tsx"],"names":[],"mappings":"AAuIA,iBAAS,oBAAoB,gCA+B5B;AAMD,iBAAS,wBAAwB,gCAahC;AAED,iBAAS,qBAAqB,gCA0B7B;AAED,iBAAS,yBAAyB,gCAGjC;AAoBD,iBAAS,mBAAmB,gCAwB3B;AAED,iBAAS,sBAAsB,gCAyD9B;AAED,iBAAS,yBAAyB,gCAUjC;AAED,iBAAS,qBAAqB,gCAwC7B;AAED,iBAAS,kBAAkB,gCAiB1B;AAED,iBAAS,oBAAoB,gCAS5B;AAED,iBAAS,kBAAkB,gCA0B1B;AAED,iBAAS,kBAAkB,gCAuE1B;AAED,iBAAS,kBAAkB,gCAwB1B;AAED,iBAAS,oBAAoB,gCAkD5B;AAED,iBAAS,oBAAoB,gCAqC5B;AAED,iBAAS,mBAAmB,gCA2B3B;AAED,iBAAS,mBAAmB,gCAoB3B;AAwBD,iBAAS,uBAAuB,gCAkD/B;AA+BD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;CA6FE,CAAC"}
|
|
@@ -9,6 +9,7 @@ import { AgentProfileCard } from "../../components/agent-profile.js";
|
|
|
9
9
|
import { BrandWordmark } from "../../components/brand.js";
|
|
10
10
|
import { Button } from "../../components/button.js";
|
|
11
11
|
import { CatalogDrawer } from "../../components/catalog-drawer.js";
|
|
12
|
+
import { useCatalogRows } from "../../components/catalog-row.js";
|
|
12
13
|
import { CollectionFilters } from "../../components/collection-filters.js";
|
|
13
14
|
import { CollectionPage } from "../../components/collection-page.js";
|
|
14
15
|
import { CollectionSearch } from "../../components/collection-search.js";
|
|
@@ -73,7 +74,7 @@ const CATALOG = [
|
|
|
73
74
|
},
|
|
74
75
|
{
|
|
75
76
|
id: "weather",
|
|
76
|
-
mark: { kind: "record", icon: Puzzle
|
|
77
|
+
mark: { kind: "record", icon: Puzzle },
|
|
77
78
|
name: "Weather",
|
|
78
79
|
description: "The forecast for each delivery address.",
|
|
79
80
|
add: { label: "Add plugin", onClick: nothing, added: { label: "Added" } },
|
|
@@ -154,6 +155,39 @@ function CollectionFiltersSpecimen() {
|
|
|
154
155
|
const { filters } = useMailboxFilter();
|
|
155
156
|
return _jsx(CollectionFilters, { ...filters });
|
|
156
157
|
}
|
|
158
|
+
const SKILLS = [
|
|
159
|
+
{
|
|
160
|
+
name: "Quote builder",
|
|
161
|
+
detail: "Writes a quote from the price list and the customer's request.",
|
|
162
|
+
icon: "receipt",
|
|
163
|
+
category: "sales",
|
|
164
|
+
source: "From the Library",
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
name: "Invoice reminders",
|
|
168
|
+
detail: "Reminds a customer of an invoice past its due date, politely, once a week.",
|
|
169
|
+
icon: "mail",
|
|
170
|
+
category: "finance",
|
|
171
|
+
source: "From the Library",
|
|
172
|
+
},
|
|
173
|
+
{ name: "Price list", detail: "The shop's prices, kept up to date.", source: "Added in Nadia" },
|
|
174
|
+
];
|
|
175
|
+
function CatalogRowsSpecimen() {
|
|
176
|
+
const art = useEmptyArt();
|
|
177
|
+
const rows = useCatalogRows("skill", SKILLS, (skill) => skill, {
|
|
178
|
+
category: "Category",
|
|
179
|
+
allCategories: "All categories",
|
|
180
|
+
categoryName: (category) => category.charAt(0).toUpperCase() + category.slice(1),
|
|
181
|
+
source: "Source",
|
|
182
|
+
filter: FILTER_COPY,
|
|
183
|
+
});
|
|
184
|
+
return (_jsx(CollectionPage, { ...rows.list, ...(rows.filters ? { filters: rows.filters } : {}), empty: {
|
|
185
|
+
kind: "firstUse",
|
|
186
|
+
title: "No skills yet",
|
|
187
|
+
description: "Skills you add from the Library show here.",
|
|
188
|
+
picture: art.mail,
|
|
189
|
+
}, getId: (skill) => skill.name, label: "Skills", records: rows.keep(SKILLS) }));
|
|
190
|
+
}
|
|
157
191
|
function CollectionPageSpecimen() {
|
|
158
192
|
const art = useEmptyArt();
|
|
159
193
|
const { records, search, filters } = useMailboxFilter();
|
|
@@ -381,6 +415,7 @@ export const COMPOSITIONS = {
|
|
|
381
415
|
CollectionFilters: CollectionFiltersSpecimen,
|
|
382
416
|
CollectionPage: CollectionPageSpecimen,
|
|
383
417
|
CollectionToolbar: CollectionToolbarSpecimen,
|
|
418
|
+
useCatalogRows: CatalogRowsSpecimen,
|
|
384
419
|
ConfirmDialog: ConfirmDialogSpecimen,
|
|
385
420
|
EntryPicture: EntryPictureSpecimen,
|
|
386
421
|
EntryScene: EntrySceneSpecimen,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feedback.d.ts","sourceRoot":"","sources":["../../../src/showcase/specimens/feedback.tsx"],"names":[],"mappings":"AA4CA,iBAAS,kBAAkB,gCAoE1B;AAED,iBAAS,oBAAoB,gCAkB5B;AAED,iBAAS,eAAe,
|
|
1
|
+
{"version":3,"file":"feedback.d.ts","sourceRoot":"","sources":["../../../src/showcase/specimens/feedback.tsx"],"names":[],"mappings":"AA4CA,iBAAS,kBAAkB,gCAoE1B;AAED,iBAAS,oBAAoB,gCAkB5B;AAED,iBAAS,eAAe,gCA6BvB;AAED,iBAAS,kBAAkB,gCA2B1B;AAED,iBAAS,sBAAsB,gCAwB9B;AAED,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;CAyLM,CAAC"}
|
|
@@ -41,7 +41,7 @@ function PendingLabelSpecimen() {
|
|
|
41
41
|
return (_jsxs(DropdownMenu, { onOpenChange: (open) => (open ? undefined : setPending(false)), children: [_jsx(DropdownMenuTrigger, { render: _jsx(Button, { variant: "outline" }), children: "Account" }), _jsx(DropdownMenuContent, { align: "start", children: _jsx(DropdownMenuCommand, { closeOnClick: false, icon: _jsx(LogOut, {}), loading: pending, loadingLabel: "Signing out", onClick: () => setPending(true), children: "Sign out" }) })] }));
|
|
42
42
|
}
|
|
43
43
|
function ToasterSpecimen() {
|
|
44
|
-
return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [_jsx(Button, { onClick: () => showMessageToast(sampleMessage("Mailbox removed"), { tone: "success" }), variant: "outline", children: "Remove mailbox" }), _jsx(Button, { onClick: () => showMessageToast(sampleMessage("Couldn't remove pec@acme.it", "The mailbox is still connected."), { tone: "error" }), variant: "outline", children: "Remove mailbox that fails" })] }), _jsx(Toaster, { closeLabel: "Close notification", regionLabel: "Notifications" })] }));
|
|
44
|
+
return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [_jsx(Button, { onClick: () => showMessageToast(sampleMessage("Mailbox removed"), { tone: "success" }), variant: "outline", children: "Remove mailbox" }), _jsx(Button, { onClick: () => showMessageToast(sampleMessage("Couldn't remove pec@acme.it", "The mailbox is still connected."), { tone: "error" }), variant: "outline", children: "Remove mailbox that fails" })] }), _jsx(Toaster, { closeLabel: "Close notification", regionLabel: "Notifications", toneLabels: { success: "Success", info: "Information", warning: "Warning", error: "Error" } })] }));
|
|
45
45
|
}
|
|
46
46
|
function UpdateCardSpecimen() {
|
|
47
47
|
const [updated, setUpdated] = useState(false);
|
|
@@ -113,6 +113,7 @@ export declare const SPECIMENS: {
|
|
|
113
113
|
StatusBadge: () => import("react").JSX.Element;
|
|
114
114
|
ObjectFactValue: () => import("react").JSX.Element;
|
|
115
115
|
Tag: () => import("react").JSX.Element;
|
|
116
|
+
CategoryTag: () => import("react").JSX.Element;
|
|
116
117
|
Checkbox: () => import("react").JSX.Element;
|
|
117
118
|
ChoiceboxGroup: () => import("react").JSX.Element;
|
|
118
119
|
CollectionSort: () => import("react").JSX.Element;
|
|
@@ -155,6 +156,7 @@ export declare const SPECIMENS: {
|
|
|
155
156
|
CollectionFilters: () => import("react").JSX.Element;
|
|
156
157
|
CollectionPage: () => import("react").JSX.Element;
|
|
157
158
|
CollectionToolbar: () => import("react").JSX.Element;
|
|
159
|
+
useCatalogRows: () => import("react").JSX.Element;
|
|
158
160
|
ConfirmDialog: () => import("react").JSX.Element;
|
|
159
161
|
EntryPicture: () => import("react").JSX.Element;
|
|
160
162
|
EntryScene: () => 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"}
|
|
@@ -21,6 +21,7 @@ export declare const STATUS: {
|
|
|
21
21
|
StatusBadge: () => import("react").JSX.Element;
|
|
22
22
|
ObjectFactValue: () => import("react").JSX.Element;
|
|
23
23
|
Tag: () => import("react").JSX.Element;
|
|
24
|
+
CategoryTag: () => import("react").JSX.Element;
|
|
24
25
|
};
|
|
25
26
|
export {};
|
|
26
27
|
//# sourceMappingURL=status.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../../src/showcase/specimens/status.tsx"],"names":[],"mappings":"
|
|
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;;;;;;;;;;;;;;;;;;;;;CAoQQ,CAAC"}
|
|
@@ -8,6 +8,7 @@ import { AppMark, composioLogo } from "../../components/app-mark.js";
|
|
|
8
8
|
import { Avatar, AvatarFallback, AvatarGroup, AvatarWithIcon } from "../../components/avatar.js";
|
|
9
9
|
import { Badge } from "../../components/badge.js";
|
|
10
10
|
import { Button } from "../../components/button.js";
|
|
11
|
+
import { CategoryTag } from "../../components/catalog-category.js";
|
|
11
12
|
import { BrandMark, BrandWordmark } from "../../components/brand.js";
|
|
12
13
|
import { CheckCounts, CheckState } from "../../components/check-counts.js";
|
|
13
14
|
import { FileTypeIcon } from "../../components/file-type-icon.js";
|
|
@@ -107,4 +108,5 @@ export const STATUS = {
|
|
|
107
108
|
StatusBadge: () => (_jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [_jsx(StatusBadge, { label: "Connected", tone: "success" }), _jsx(StatusBadge, { label: "Waiting for you", since: "2h", tone: "warning" }), _jsx(StatusBadge, { label: "Failed", tone: "danger" }), _jsx(StatusBadge, { label: "Running", tone: "info" }), _jsx(StatusBadge, { label: "Paused", tone: "neutral" })] })),
|
|
108
109
|
ObjectFactValue: () => (_jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [_jsx(ObjectFactValue, { kind: "agents", children: "5 active" }), _jsx(ObjectFactValue, { kind: "installations", children: "2" }), _jsx(ObjectFactValue, { kind: "customers", children: "12" })] })),
|
|
109
110
|
Tag: () => (_jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [_jsx(Tag, { tone: "blue", children: "Rossi Ottica" }), _jsx(Tag, { tone: "teal", children: "Partner" }), _jsx(Tag, { note: "Your account", quiet: true, children: "Direct customer" })] })),
|
|
111
|
+
CategoryTag: () => (_jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [_jsx(CategoryTag, { category: "finance", label: "Finance" }), _jsx(CategoryTag, { category: "calendar", label: "Calendar" }), _jsx(CategoryTag, { category: "office", label: "Office" }), _jsx(CategoryTag, { category: "email", label: "Email" }), _jsx(CategoryTag, { category: "documents", label: "Documents" }), _jsx(CategoryTag, { category: "sales", label: "Sales" }), _jsx(CategoryTag, { category: "people", label: "People" }), _jsx(CategoryTag, { category: "legal", label: "Legal" }), _jsx(CategoryTag, { category: "other", label: "Other" })] })),
|
|
110
112
|
};
|
|
@@ -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" | "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" | "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" | "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,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,cAAc,GACd,cAAc,GACd,eAAe,GACf,WAAW,GACX,iBAAiB,GACjB,cAAc,GACd,mBAAmB,GACnB,gBAAgB,GAChB,aAAa,GACb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AY,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,YAAY,GACZ,iBAAiB,GACjB,kBAAkB,GACl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