@nadicodeai/ui 12.1.240 → 12.1.242

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.
Files changed (108) hide show
  1. package/dist/components/action-menu.d.ts +5 -1
  2. package/dist/components/action-menu.d.ts.map +1 -1
  3. package/dist/components/assistant-panel-header.d.ts +25 -0
  4. package/dist/components/assistant-panel-header.d.ts.map +1 -0
  5. package/dist/components/assistant-panel-header.js +18 -0
  6. package/dist/components/assistant-welcome.d.ts +26 -0
  7. package/dist/components/assistant-welcome.d.ts.map +1 -0
  8. package/dist/components/assistant-welcome.js +16 -0
  9. package/dist/components/button.d.ts +6 -1
  10. package/dist/components/button.d.ts.map +1 -1
  11. package/dist/components/button.js +6 -1
  12. package/dist/components/collection-filters.d.ts +6 -3
  13. package/dist/components/collection-filters.d.ts.map +1 -1
  14. package/dist/components/collection-filters.js +5 -4
  15. package/dist/components/column-foot.d.ts +3 -2
  16. package/dist/components/column-foot.d.ts.map +1 -1
  17. package/dist/components/column-foot.js +2 -1
  18. package/dist/components/company-card-actions.d.ts +19 -0
  19. package/dist/components/company-card-actions.d.ts.map +1 -0
  20. package/dist/components/company-card-actions.js +16 -0
  21. package/dist/components/confirm-dialog.d.ts +6 -1
  22. package/dist/components/confirm-dialog.d.ts.map +1 -1
  23. package/dist/components/confirm-dialog.js +17 -3
  24. package/dist/components/drawer-steps.d.ts +8 -7
  25. package/dist/components/drawer-steps.d.ts.map +1 -1
  26. package/dist/components/drawer-steps.js +7 -6
  27. package/dist/components/figure-row.d.ts +2 -4
  28. package/dist/components/figure-row.d.ts.map +1 -1
  29. package/dist/components/figure-row.js +3 -3
  30. package/dist/components/filter-toolbar.d.ts +2 -4
  31. package/dist/components/filter-toolbar.d.ts.map +1 -1
  32. package/dist/components/filter-toolbar.js +2 -2
  33. package/dist/components/folder-field.d.ts +30 -0
  34. package/dist/components/folder-field.d.ts.map +1 -0
  35. package/dist/components/folder-field.js +22 -0
  36. package/dist/components/form-dialog.d.ts +11 -2
  37. package/dist/components/form-dialog.d.ts.map +1 -1
  38. package/dist/components/form-dialog.js +18 -3
  39. package/dist/components/item.d.ts +5 -9
  40. package/dist/components/item.d.ts.map +1 -1
  41. package/dist/components/item.js +5 -9
  42. package/dist/components/numbered-steps.d.ts +8 -5
  43. package/dist/components/numbered-steps.d.ts.map +1 -1
  44. package/dist/components/numbered-steps.js +5 -4
  45. package/dist/components/object-workspace.d.ts +2 -2
  46. package/dist/components/object-workspace.d.ts.map +1 -1
  47. package/dist/components/object-workspace.js +2 -2
  48. package/dist/components/page-actions.d.ts +5 -5
  49. package/dist/components/page-actions.d.ts.map +1 -1
  50. package/dist/components/page-actions.js +9 -4
  51. package/dist/components/plan-card.d.ts +14 -2
  52. package/dist/components/plan-card.d.ts.map +1 -1
  53. package/dist/components/plan-card.js +3 -2
  54. package/dist/components/product-band.d.ts +19 -7
  55. package/dist/components/product-band.d.ts.map +1 -1
  56. package/dist/components/product-band.js +12 -6
  57. package/dist/components/product-shell-bell.d.ts +71 -0
  58. package/dist/components/product-shell-bell.d.ts.map +1 -0
  59. package/dist/components/product-shell-bell.js +36 -0
  60. package/dist/components/product-shell.d.ts +21 -4
  61. package/dist/components/product-shell.d.ts.map +1 -1
  62. package/dist/components/product-shell.js +23 -2
  63. package/dist/components/record-list.d.ts +4 -2
  64. package/dist/components/record-list.d.ts.map +1 -1
  65. package/dist/components/record-list.js +10 -7
  66. package/dist/components/settings-facts.d.ts +5 -4
  67. package/dist/components/settings-facts.d.ts.map +1 -1
  68. package/dist/components/settings-facts.js +4 -3
  69. package/dist/components/settings-section.d.ts +11 -9
  70. package/dist/components/settings-section.d.ts.map +1 -1
  71. package/dist/components/settings-section.js +7 -6
  72. package/dist/internal/clear-filters.d.ts +7 -0
  73. package/dist/internal/clear-filters.d.ts.map +1 -0
  74. package/dist/internal/clear-filters.js +6 -0
  75. package/dist/internal/command-runner.d.ts +30 -5
  76. package/dist/internal/command-runner.d.ts.map +1 -1
  77. package/dist/internal/command-runner.js +61 -14
  78. package/dist/internal/footer-commands.d.ts +33 -0
  79. package/dist/internal/footer-commands.d.ts.map +1 -0
  80. package/dist/internal/footer-commands.js +27 -0
  81. package/dist/internal/footer-strip.d.ts.map +1 -1
  82. package/dist/internal/footer-strip.js +2 -4
  83. package/dist/internal/form-submit.d.ts +3 -2
  84. package/dist/internal/form-submit.d.ts.map +1 -1
  85. package/dist/internal/form-submit.js +2 -2
  86. package/dist/internal/page-command-button.d.ts +11 -1
  87. package/dist/internal/page-command-button.d.ts.map +1 -1
  88. package/dist/internal/page-command-button.js +3 -0
  89. package/dist/showcase/specimens/actions.d.ts +1 -0
  90. package/dist/showcase/specimens/actions.d.ts.map +1 -1
  91. package/dist/showcase/specimens/actions.js +12 -1
  92. package/dist/showcase/specimens/compositions.d.ts +2 -0
  93. package/dist/showcase/specimens/compositions.d.ts.map +1 -1
  94. package/dist/showcase/specimens/compositions.js +16 -7
  95. package/dist/showcase/specimens/data.d.ts.map +1 -1
  96. package/dist/showcase/specimens/data.js +1 -1
  97. package/dist/showcase/specimens/index.d.ts +5 -0
  98. package/dist/showcase/specimens/index.d.ts.map +1 -1
  99. package/dist/showcase/specimens/inputs.d.ts +1 -0
  100. package/dist/showcase/specimens/inputs.d.ts.map +1 -1
  101. package/dist/showcase/specimens/inputs.js +2 -0
  102. package/dist/showcase/specimens/navigation.d.ts +2 -0
  103. package/dist/showcase/specimens/navigation.d.ts.map +1 -1
  104. package/dist/showcase/specimens/navigation.js +28 -0
  105. package/dist/showcase/usage.generated.d.ts +1 -1
  106. package/dist/showcase/usage.generated.d.ts.map +1 -1
  107. package/dist/showcase/usage.generated.js +85 -30
  108. package/package.json +2 -2
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { createContext, useContext, useState } from "react";
4
4
  import { ConfirmDialog } from "../components/confirm-dialog.js";
5
5
  import { showMessageToast } from "../components/toast.js";
@@ -17,11 +17,17 @@ function reportDefect(error) {
17
17
  throw error;
18
18
  });
19
19
  }
20
- function withAction(command, onClick) {
20
+ function withAction(command, onClick, running = false) {
21
21
  const { confirm: _confirm, undo: _undo, link: _link, render: _render, ...face } = command;
22
- return { ...face, onClick };
22
+ if (!running)
23
+ return { ...face, onClick };
24
+ return { ...face, onClick, pending: true, pendingLabel: command.pendingLabel ?? command.label };
23
25
  }
24
26
  const HostedArm = createContext(null);
27
+ const ReturnFocus = createContext(null);
28
+ export function CommandFocusFallback({ to, children }) {
29
+ return _jsx(ReturnFocus, { value: to, children: children });
30
+ }
25
31
  /**
26
32
  * Holds the confirmations every composition inside it opens, so a confirmation raised from a
27
33
  * phone's navigation sheet opens over the page once the sheet has closed, never over the sheet:
@@ -31,19 +37,58 @@ export function CommandRunnerHost({ children, onAsk }) {
31
37
  const { arm, dialog } = useOwnRunner(onAsk);
32
38
  return (_jsxs(HostedArm, { value: arm, children: [children, dialog] }));
33
39
  }
34
- export function useCommandRunner() {
40
+ export function useCommandRunner(focusFallback) {
35
41
  const hosted = useContext(HostedArm);
42
+ const given = useContext(ReturnFocus);
36
43
  const own = useOwnRunner();
37
- return hosted ? { arm: hosted, dialog: null } : own;
44
+ const run = hosted ?? own.arm;
45
+ const fallback = focusFallback ?? given;
46
+ return {
47
+ arm: (command) => run(command, fallback),
48
+ dialog: hosted ? null : own.dialog,
49
+ };
50
+ }
51
+ function nameOf(command) {
52
+ return command.accessibleName ?? command.label;
53
+ }
54
+ async function runUndo(undo) {
55
+ const failure = await undo.onClick();
56
+ if (failure)
57
+ showMessageToast(failure, { tone: "error" });
38
58
  }
39
59
  function useOwnRunner(onAsk) {
40
60
  const [asked, setAsked] = useState(null);
61
+ const [running, setRunning] = useState(() => new Set());
41
62
  async function runAtOnce(command) {
42
- const failure = await command.onClick();
43
- if (failure)
63
+ const name = nameOf(command);
64
+ setRunning((names) => new Set(names).add(name));
65
+ let failure;
66
+ try {
67
+ failure = await command.onClick();
68
+ }
69
+ finally {
70
+ setRunning((names) => {
71
+ const left = new Set(names);
72
+ left.delete(name);
73
+ return left;
74
+ });
75
+ }
76
+ if (failure) {
44
77
  showMessageToast(failure, { tone: "error" });
45
- else
46
- showMessageToast(command.undo.message, { tone: "success" });
78
+ return;
79
+ }
80
+ const { undo } = command;
81
+ showMessageToast({
82
+ ...undo.message,
83
+ actions: [
84
+ {
85
+ label: undo.label,
86
+ onClick: () => {
87
+ runUndo(undo).catch(reportDefect);
88
+ },
89
+ },
90
+ ],
91
+ }, { tone: "success" });
47
92
  }
48
93
  async function confirmAsked(current) {
49
94
  const settle = (next) => setAsked((state) => (state !== null && state.command === current ? next(state) : state));
@@ -60,24 +105,26 @@ function useOwnRunner(onAsk) {
60
105
  ? { ...state, pending: false, error: failure }
61
106
  : { ...state, open: false, pending: false, error: null });
62
107
  }
63
- function arm(command) {
108
+ function arm(command, focusFallback) {
64
109
  if (asksFirst(command)) {
65
110
  return withAction(command, () => {
66
111
  onAsk?.();
67
- setAsked({ command, open: true, pending: false, error: null });
112
+ setAsked({ command, open: true, pending: false, error: null, focusFallback });
68
113
  });
69
114
  }
70
115
  if (undoes(command)) {
116
+ const busy = running.has(nameOf(command));
71
117
  return withAction(command, () => {
72
- runAtOnce(command).catch(reportDefect);
73
- });
118
+ if (!busy)
119
+ runAtOnce(command).catch(reportDefect);
120
+ }, busy);
74
121
  }
75
122
  // SAFETY: a command with neither `confirm` nor `undo` is drawn as it was given.
76
123
  // oxlint-disable-next-line typescript/no-unsafe-type-assertion -- the narrowing above leaves the union's plain member, which TypeScript does not name.
77
124
  return command;
78
125
  }
79
126
  const shown = asked?.command;
80
- const dialog = shown ? (_jsx(ConfirmDialog, { confirmLabel: shown.confirm.confirmLabel, confirmPendingLabel: shown.pendingLabel, description: shown.confirm.description, destructive: shown.destructive === true, error: asked.error, irreversible: shown.confirm.irreversible, loading: asked.pending, onCancel: () => setAsked((state) => (state ? { ...state, open: false } : state)), onConfirm: () => {
127
+ const dialog = shown ? (_jsx(ConfirmDialog, { confirmLabel: shown.confirm.confirmLabel, confirmPendingLabel: shown.pendingLabel, description: shown.confirm.description, destructive: shown.destructive === true, error: asked.error, focusFallback: asked.focusFallback ?? undefined, irreversible: shown.confirm.irreversible, loading: asked.pending, onCancel: () => setAsked((state) => (state ? { ...state, open: false } : state)), onConfirm: () => {
81
128
  if (!asked.pending)
82
129
  confirmAsked(shown).catch(reportDefect);
83
130
  }, open: asked.open, title: shown.confirm.title, verify: shown.confirm.verify })) : null;
@@ -0,0 +1,33 @@
1
+ import type { CommandConfirmation, ConfirmedRun } from "../components/action-menu.js";
2
+ import { type PageCommand, type PageCommandFace } from "./page-command-button.js";
3
+ /**
4
+ * What a footer command does to what the card holds: `destructive` loses it for good (red: Delete, Turn
5
+ * off two-factor), `disruptive` stops it until someone starts it again (amber: Pause, Suspend, Sign out
6
+ * everywhere). Absent: neither, and the command takes the card's tone, or the filled look.
7
+ */
8
+ export type FooterConsequence = "destructive" | "disruptive";
9
+ type FooterMeaning = {
10
+ consequence?: FooterConsequence | undefined;
11
+ };
12
+ /** A footer command that asks first: the kit opens its confirmation, keeps it busy while it runs, and shows its failure there. */
13
+ export type ConfirmedFooterCommand = PageCommandFace & FooterMeaning & {
14
+ onClick: ConfirmedRun;
15
+ confirm: CommandConfirmation;
16
+ link?: never;
17
+ render?: never;
18
+ };
19
+ /** A command at a settings card's footer: it runs, follows its link, draws its `render`, or asks first. */
20
+ export type FooterCommand = (PageCommand & FooterMeaning & {
21
+ confirm?: never;
22
+ }) | ConfirmedFooterCommand;
23
+ export type SettingsFooter = {
24
+ /** The card's one command, at the footer's right: filled, red when `destructive`, amber when `disruptive`, else in the card's tone. */
25
+ action: FooterCommand;
26
+ /** A lesser command before it, outline: "Open Telegram". */
27
+ secondary?: FooterCommand | undefined;
28
+ };
29
+ export declare function FooterCommands({ action, secondary, tone, }: SettingsFooter & {
30
+ tone?: "error" | "warning" | undefined;
31
+ }): import("react").JSX.Element;
32
+ export {};
33
+ //# sourceMappingURL=footer-commands.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"footer-commands.d.ts","sourceRoot":"","sources":["../../src/internal/footer-commands.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAElF,OAAO,EAEL,KAAK,WAAW,EAEhB,KAAK,eAAe,EACrB,MAAM,gCAAgC,CAAC;AAExC;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG,aAAa,GAAG,YAAY,CAAC;AAE7D,KAAK,aAAa,GAAG;IAAE,WAAW,CAAC,EAAE,iBAAiB,GAAG,SAAS,CAAA;CAAE,CAAC;AAErE,kIAAkI;AAClI,MAAM,MAAM,sBAAsB,GAAG,eAAe,GAClD,aAAa,GAAG;IACd,OAAO,EAAE,YAAY,CAAC;IACtB,OAAO,EAAE,mBAAmB,CAAC;IAC7B,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,MAAM,CAAC,EAAE,KAAK,CAAC;CAChB,CAAC;AAEJ,2GAA2G;AAC3G,MAAM,MAAM,aAAa,GACrB,CAAC,WAAW,GAAG,aAAa,GAAG;IAAE,OAAO,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC,GACnD,sBAAsB,CAAC;AAE3B,MAAM,MAAM,cAAc,GAAG;IAC3B,uIAAuI;IACvI,MAAM,EAAE,aAAa,CAAC;IACtB,4DAA4D;IAC5D,SAAS,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;CACvC,CAAC;AAqBF,wBAAgB,cAAc,CAAC,EAC7B,MAAM,EACN,SAAS,EACT,IAAI,GACL,EAAE,cAAc,GAAG;IAAE,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,SAAS,CAAA;CAAE,+BAmB7D"}
@@ -0,0 +1,27 @@
1
+ "use client";
2
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { useCommandRunner } from "./command-runner.js";
4
+ import { PageCommandButton, } from "./page-command-button.js";
5
+ const CONSEQUENCE_LOOK = {
6
+ destructive: "destructive",
7
+ disruptive: "warning",
8
+ };
9
+ const TONE_LOOK = {
10
+ error: "destructive",
11
+ warning: "warning",
12
+ };
13
+ function meaningOf(command, tone) {
14
+ const { consequence, ...rest } = command;
15
+ const look = consequence
16
+ ? CONSEQUENCE_LOOK[consequence]
17
+ : tone
18
+ ? TONE_LOOK[tone]
19
+ : "default";
20
+ return { command: rest, destructive: look === "destructive", look };
21
+ }
22
+ export function FooterCommands({ action, secondary, tone, }) {
23
+ const { arm, dialog } = useCommandRunner();
24
+ const main = meaningOf(action, tone);
25
+ const lesser = secondary ? meaningOf(secondary, undefined) : undefined;
26
+ return (_jsxs(_Fragment, { children: [lesser ? (_jsx(PageCommandButton, { command: arm({ ...lesser.command, destructive: lesser.destructive }), variant: "outline" })) : null, _jsx(PageCommandButton, { command: arm({ ...main.command, destructive: main.destructive }), variant: main.look }), dialog] }));
27
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"footer-strip.d.ts","sourceRoot":"","sources":["../../src/internal/footer-strip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,iBAAS,WAAW,CAAC,EACnB,IAAI,EACJ,QAAQ,EACR,QAAQ,GACT,EAAE;IACD,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,4BA+BA;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"}
1
+ {"version":3,"file":"footer-strip.d.ts","sourceRoot":"","sources":["../../src/internal/footer-strip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,iBAAS,WAAW,CAAC,EACnB,IAAI,EACJ,QAAQ,EACR,QAAQ,GACT,EAAE;IACD,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,4BA0BA;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"}
@@ -5,9 +5,7 @@ function FooterStrip({ hint, hintSlot, children, }) {
5
5
  if (!hint && !children) {
6
6
  return null;
7
7
  }
8
- const stacksWhenNarrow = hintSlot === "settings-section-hint";
9
- // A conversation card's answers name what they make, so under its hint each keeps its width.
10
- const hintAloneWhenNarrow = stacksWhenNarrow || hintSlot === "conversation-card-hint";
11
- return (_jsxs(CardFooter, { className: "relative", children: [hint && (_jsx("div", { "data-slot": hintSlot, className: cn("min-w-0 flex-1", hintAloneWhenNarrow && "max-sm:basis-full"), children: hint })), children && (_jsx("div", { className: cn("ml-auto flex flex-wrap items-center gap-3", stacksWhenNarrow && "max-sm:ml-0 max-sm:w-full max-sm:*:flex-1"), children: children }))] }));
8
+ const commandsKeepWidth = hintSlot === "conversation-card-hint";
9
+ return (_jsxs(CardFooter, { className: "relative", children: [hint && (_jsx("div", { "data-slot": hintSlot, className: "min-w-0 flex-1 max-sm:basis-full", children: hint })), children && (_jsx("div", { className: cn("ml-auto flex flex-wrap items-center gap-3", !commandsKeepWidth && "max-sm:ml-0 max-sm:w-full max-sm:*:flex-auto"), children: children }))] }));
12
10
  }
13
11
  export { FooterStrip };
@@ -1,4 +1,4 @@
1
- import type { ComponentProps, ReactNode } from "react";
1
+ import type { ComponentProps, ReactNode, Ref } from "react";
2
2
  import type { Form } from "../components/form.js";
3
3
  /** The save of a drawer's, a dialog's or a row's form. */
4
4
  export type FormSubmit = {
@@ -23,8 +23,9 @@ export type FormProps = Omit<ComponentProps<typeof Form>, "children" | "classNam
23
23
  notice?: ReactNode;
24
24
  children: ReactNode;
25
25
  };
26
- export declare function FormSubmitButton({ submit, destructive, }: {
26
+ export declare function FormSubmitButton({ submit, destructive, ref, }: {
27
27
  submit: FormSubmit;
28
28
  destructive?: boolean;
29
+ ref?: Ref<HTMLButtonElement>;
29
30
  }): import("react").JSX.Element;
30
31
  //# sourceMappingURL=form-submit.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"form-submit.d.ts","sourceRoot":"","sources":["../../src/internal/form-submit.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAE9C,0DAA0D;AAC1D,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,6DAA6D;IAC7D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gEAAgE;IAChE,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,CACA;IAAE,OAAO,CAAC,EAAE,SAAS,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAAE,GAC9C;IACE,uFAAuF;IACvF,OAAO,EAAE,OAAO,CAAC;IACjB,kFAAkF;IAClF,YAAY,EAAE,MAAM,CAAC;CACtB,CACJ,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC,EAAE,UAAU,GAAG,WAAW,CAAC,GAAG;IACpF,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,UAAU,CAAC;IACnB,iFAAiF;IACjF,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAoCF,wBAAgB,gBAAgB,CAAC,EAC/B,MAAM,EACN,WAAmB,GACpB,EAAE;IACD,MAAM,EAAE,UAAU,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,+BAeA"}
1
+ {"version":3,"file":"form-submit.d.ts","sourceRoot":"","sources":["../../src/internal/form-submit.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAG5D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAE9C,0DAA0D;AAC1D,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,6DAA6D;IAC7D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gEAAgE;IAChE,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,CACA;IAAE,OAAO,CAAC,EAAE,SAAS,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAAE,GAC9C;IACE,uFAAuF;IACvF,OAAO,EAAE,OAAO,CAAC;IACjB,kFAAkF;IAClF,YAAY,EAAE,MAAM,CAAC;CACtB,CACJ,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC,EAAE,UAAU,GAAG,WAAW,CAAC,GAAG;IACpF,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,UAAU,CAAC;IACnB,iFAAiF;IACjF,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAoCF,wBAAgB,gBAAgB,CAAC,EAC/B,MAAM,EACN,WAAmB,EACnB,GAAG,GACJ,EAAE;IACD,MAAM,EAAE,UAAU,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,GAAG,CAAC,EAAE,GAAG,CAAC,iBAAiB,CAAC,CAAC;CAC9B,+BAgBA"}
@@ -31,7 +31,7 @@ function trimTextFields(form) {
31
31
  replaceValue(field, trimmed);
32
32
  }
33
33
  }
34
- export function FormSubmitButton({ submit, destructive = false, }) {
34
+ export function FormSubmitButton({ submit, destructive = false, ref, }) {
35
35
  const pending = submit.pending === true;
36
- return (_jsx(Button, { "aria-describedby": submit.describedBy, disabled: submit.disabled, loading: pending, loadingLabel: submit.pendingLabel ?? submit.label, onClick: (event) => trimTextFields(event.currentTarget.form), type: "submit", variant: destructive ? "destructive" : "default", children: submit.label }));
36
+ return (_jsx(Button, { "aria-describedby": submit.describedBy, disabled: submit.disabled, loading: pending, loadingLabel: submit.pendingLabel ?? submit.label, onClick: (event) => trimTextFields(event.currentTarget.form), ref: ref, type: "submit", variant: destructive ? "destructive" : "default", children: submit.label }));
37
37
  }
@@ -44,10 +44,17 @@ export type PageCommandFace = PendingWord & {
44
44
  disabled?: boolean | undefined;
45
45
  /** Why it cannot run now: the button stays, disabled, and says why in its tooltip. */
46
46
  disabledReason?: string | undefined;
47
+ /** Shows and hides a part of the page: the id of what it shows, and whether that is shown now. */
48
+ expands?: {
49
+ id: string;
50
+ open: boolean;
51
+ } | undefined;
52
+ /** Takes focus as it appears: the Edit a card's in-place editor gives back to when it closes. */
53
+ autoFocus?: boolean | undefined;
47
54
  };
48
55
  /** A command drawn as a button: on the title row, in an empty state, in a row. Its icon leads the label. */
49
56
  export type PageCommand = PageCommandAction & PageCommandFace;
50
- type CommandVariant = "default" | "outline" | "ghost" | "link";
57
+ type CommandVariant = "default" | "outline" | "ghost" | "link" | "destructive" | "warning" | "brandSolid" | "brandGhost";
51
58
  export type CommandLook = {
52
59
  shape?: TextButtonProps["shape"];
53
60
  size?: TextButtonProps["size"];
@@ -55,6 +62,9 @@ export type CommandLook = {
55
62
  };
56
63
  export declare function lookOf(command: PageCommandFace, reasonId: string, { shape, size, variant }: CommandLook): {
57
64
  "aria-label": string | undefined;
65
+ "aria-controls": string | undefined;
66
+ "aria-expanded": boolean | undefined;
67
+ autoFocus: boolean | undefined;
58
68
  "aria-describedby": string | undefined;
59
69
  disabled: boolean;
60
70
  focusableWhenDisabled: boolean | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"page-command-button.d.ts","sourceRoot":"","sources":["../../src/internal/page-command-button.tsx"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,cAAc,EAEnB,KAAK,UAAU,EACf,KAAK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GAAG;IAAE,OAAO,EAAE,WAAW,CAAA;CAAE,+BASxC"}
@@ -8,6 +8,9 @@ export function lookOf(command, reasonId, { shape, size, variant }) {
8
8
  const reason = command.disabledReason;
9
9
  return {
10
10
  "aria-label": command.accessibleName,
11
+ "aria-controls": command.expands?.id,
12
+ "aria-expanded": command.expands?.open,
13
+ autoFocus: command.autoFocus,
11
14
  "aria-describedby": reason === undefined ? undefined : reasonId,
12
15
  disabled: command.disabled === true || reason !== undefined,
13
16
  focusableWhenDisabled: reason === undefined ? undefined : true,
@@ -4,6 +4,7 @@ export declare const ACTIONS: {
4
4
  ButtonGroup: () => import("react").JSX.Element;
5
5
  LoadMoreButton: () => import("react").JSX.Element;
6
6
  CopyButton: () => import("react").JSX.Element;
7
+ CompanyCardActions: () => import("react").JSX.Element;
7
8
  CardActionsRow: () => import("react").JSX.Element;
8
9
  PageActions: () => import("react").JSX.Element;
9
10
  RecordCommands: () => import("react").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../src/showcase/specimens/actions.tsx"],"names":[],"mappings":"AAoDA,eAAO,MAAM,OAAO;;;;;;;;;;CAuQO,CAAC"}
1
+ {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../src/showcase/specimens/actions.tsx"],"names":[],"mappings":"AAgEA,eAAO,MAAM,OAAO;;;;;;;;;;;CAuRO,CAAC"}
@@ -1,9 +1,11 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { ArrowUpRight, ChevronLeft, ChevronRight, Download, Plus, X } from "lucide-react";
3
+ import { ArrowUpRight, ChevronLeft, ChevronRight, Download, Mail, Plus, QrCode, Share2, X, } from "lucide-react";
4
4
  import { Button, ButtonLink } from "../../components/button.js";
5
5
  import { ButtonGroup } from "../../components/button-group.js";
6
+ import { BrandField } from "../../components/brand-field.js";
6
7
  import { Card } from "../../components/card.js";
8
+ import { CompanyCardActions } from "../../components/company-card-actions.js";
7
9
  import { CopyButton } from "../../components/copy-button.js";
8
10
  import { LoadMoreButton } from "../../components/load-more-button.js";
9
11
  import { CardActionsRow, PageActionsRow } from "../../components/page-actions.js";
@@ -37,6 +39,15 @@ export const ACTIONS = {
37
39
  ButtonGroup: () => (_jsxs("div", { className: "flex flex-wrap items-center gap-4", children: [_jsxs(ButtonGroup, { "aria-label": "Status filter", children: [_jsx(Button, { variant: "outline", children: "Status: Needs attention" }), _jsx(Button, { "aria-label": "Remove filter: Status", size: "icon", variant: "outline", children: _jsx(X, { "aria-hidden": "true" }) })] }), _jsxs(ButtonGroup, { "aria-label": "Pages", children: [_jsx(Button, { "aria-label": "Previous page", disabled: true, size: "icon", variant: "outline", children: _jsx(ChevronLeft, { "aria-hidden": "true" }) }), _jsx(Button, { "aria-label": "Next page", size: "icon", variant: "outline", children: _jsx(ChevronRight, { "aria-hidden": "true" }) })] })] })),
38
40
  LoadMoreButton: () => (_jsxs("div", { className: "flex flex-col gap-6", children: [_jsxs("div", { className: "flex flex-col", children: [_jsx("ul", { className: "flex flex-col gap-1 text-body-sm", children: EVENTS.map((event) => (_jsx("li", { children: event }, event))) }), _jsx(LoadMoreButton, { loading: false, loadingLabel: "Loading more events", onClick: nothing, children: "Load more events" })] }), _jsxs("div", { className: "flex flex-col", children: [_jsx("ul", { className: "flex flex-col gap-1 text-body-sm", children: EVENTS.map((event) => (_jsx("li", { children: event }, event))) }), _jsx(LoadMoreButton, { loading: true, loadingLabel: "Loading more events", children: "Load more events" })] }), _jsxs(Card, { className: "gap-0 py-0", surface: "outlined", children: [_jsx("ul", { className: "flex flex-col gap-1 p-4 text-body-sm", children: EVENTS.map((event) => (_jsx("li", { children: event }, event))) }), _jsx(LoadMoreButton, { className: "border-x-0 border-b-0", loading: false, loadingLabel: "Loading more events", noBorderRadius: true, noGap: true, onClick: nothing, children: "Load more events" })] })] })),
39
41
  CopyButton: () => (_jsxs("div", { className: "flex items-center gap-2 font-mono text-sm", children: ["agt_0042", _jsx(CopyButton, { copiedLabel: "Copied", copyFailedLabel: "Couldn't copy", copyLabel: "Copy Agent ID", value: "agt_0042" })] })),
42
+ CompanyCardActions: () => (_jsx(BrandField, { className: "rounded-md p-6", children: _jsx(CompanyCardActions, { primary: { label: "Share your card", icon: _jsx(Share2, {}), onClick: nothing }, secondary: [
43
+ { label: "Invite by email", icon: _jsx(Mail, {}), onClick: nothing },
44
+ {
45
+ label: "QR code",
46
+ icon: _jsx(QrCode, {}),
47
+ expands: { id: "specimen-qr", open: false },
48
+ onClick: nothing,
49
+ },
50
+ ] }) })),
40
51
  CardActionsRow: () => (_jsx(CardActionsRow, { meta: "2 of 5 Agents", secondary: [
41
52
  { label: "Statements", link: _jsx("a", { href: "#statements" }) },
42
53
  { label: "Buy Extra usage for Customers", onClick: nothing },
@@ -26,6 +26,8 @@ declare function PageFrameSpecimen(): import("react").JSX.Element;
26
26
  declare function CatalogCardSpecimen(): import("react").JSX.Element;
27
27
  declare function StepCardsSpecimen(): import("react").JSX.Element;
28
28
  export declare const COMPOSITIONS: {
29
+ AssistantPanelHeader: () => import("react").JSX.Element;
30
+ AssistantWelcome: () => import("react").JSX.Element;
29
31
  CatalogCard: typeof CatalogCardSpecimen;
30
32
  StepCards: typeof StepCardsSpecimen;
31
33
  ActivityFeed: typeof ActivityFeedSpecimen;
@@ -1 +1 @@
1
- {"version":3,"file":"compositions.d.ts","sourceRoot":"","sources":["../../../src/showcase/specimens/compositions.tsx"],"names":[],"mappings":"AAkJA,iBAAS,oBAAoB,gCA+B5B;AAED,iBAAS,qBAAqB,gCA0B7B;AAED,iBAAS,yBAAyB,gCAGjC;AAwBD,iBAAS,mBAAmB,gCAoC3B;AAED,iBAAS,sBAAsB,gCAwD9B;AAED,iBAAS,yBAAyB,gCAUjC;AAED,iBAAS,qBAAqB,gCAoB7B;AAED,iBAAS,mBAAmB,gCAQ3B;AAED,iBAAS,qBAAqB,gCAsC7B;AAED,iBAAS,iBAAiB,gCAmBzB;AAED,iBAAS,kBAAkB,gCAiB1B;AAED,iBAAS,oBAAoB,gCAS5B;AAED,iBAAS,kBAAkB,gCA0B1B;AAED,iBAAS,kBAAkB,gCAsE1B;AAED,iBAAS,kBAAkB,gCAwB1B;AAED,iBAAS,mBAAmB,gCA6B3B;AAED,iBAAS,oBAAoB,gCAkD5B;AAED,iBAAS,oBAAoB,gCAqC5B;AAED,iBAAS,mBAAmB,gCA2B3B;AAED,iBAAS,mBAAmB,gCAoB3B;AAwBD,iBAAS,uBAAuB,gCAkD/B;AAuCD,iBAAS,mBAAmB,gCAwB3B;AAED,iBAAS,kBAAkB,gCAa1B;AAED,iBAAS,wBAAwB,gCAuBhC;AAED,iBAAS,iBAAiB,gCAezB;AAED,iBAAS,mBAAmB,gCAW3B;AAED,iBAAS,iBAAiB,gCAkBzB;AAED,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2GE,CAAC"}
1
+ {"version":3,"file":"compositions.d.ts","sourceRoot":"","sources":["../../../src/showcase/specimens/compositions.tsx"],"names":[],"mappings":"AAoJA,iBAAS,oBAAoB,gCA+B5B;AAED,iBAAS,qBAAqB,gCA0B7B;AAED,iBAAS,yBAAyB,gCAGjC;AAwBD,iBAAS,mBAAmB,gCAoC3B;AAED,iBAAS,sBAAsB,gCAwD9B;AAED,iBAAS,yBAAyB,gCAUjC;AAED,iBAAS,qBAAqB,gCAoB7B;AAED,iBAAS,mBAAmB,gCAc3B;AAED,iBAAS,qBAAqB,gCAsC7B;AAED,iBAAS,iBAAiB,gCAmBzB;AAED,iBAAS,kBAAkB,gCAiB1B;AAED,iBAAS,oBAAoB,gCAa5B;AAED,iBAAS,kBAAkB,gCA0B1B;AAED,iBAAS,kBAAkB,gCAsE1B;AAED,iBAAS,kBAAkB,gCAwB1B;AAED,iBAAS,mBAAmB,gCA2B3B;AAED,iBAAS,oBAAoB,gCAkD5B;AAED,iBAAS,oBAAoB,gCAqC5B;AAED,iBAAS,mBAAmB,gCA2B3B;AAED,iBAAS,mBAAmB,gCAoB3B;AAwBD,iBAAS,uBAAuB,gCAkD/B;AAuCD,iBAAS,mBAAmB,gCAwB3B;AAED,iBAAS,kBAAkB,gCAa1B;AAED,iBAAS,wBAAwB,gCAuBhC;AAED,iBAAS,iBAAiB,gCAezB;AAED,iBAAS,mBAAmB,gCAW3B;AAED,iBAAS,iBAAiB,gCAkBzB;AAED,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+HE,CAAC"}
@@ -6,6 +6,8 @@ import { ActivityFeed } from "../../components/activity-feed.js";
6
6
  import { AgentCard } from "../../components/agent-card.js";
7
7
  import { DrawerStepBody, DrawerStepFooter, DrawerSteps } from "../../components/drawer-steps.js";
8
8
  import { AgentOrb } from "../../components/agent-orb.js";
9
+ import { AssistantPanelHeader } from "../../components/assistant-panel-header.js";
10
+ import { AssistantWelcome } from "../../components/assistant-welcome.js";
9
11
  import { BoardEmpty, BoardHeader } from "../../components/board.js";
10
12
  import { Badge } from "../../components/badge.js";
11
13
  import { BrandWordmark } from "../../components/brand.js";
@@ -273,7 +275,11 @@ function FilterToolbarSpecimen() {
273
275
  }
274
276
  function ProductBandSpecimen() {
275
277
  const art = useEmptyArt();
276
- return (_jsxs(ProductBand, { picture: _jsx("img", { alt: "", className: "size-full object-contain", src: art.agents }), children: [_jsx("h4", { className: "text-heading-sm", children: "Nadia" }), _jsx(Button, { className: "w-fit", children: "Download for macOS" })] }));
278
+ return (_jsx(ProductBand, { downloads: {
279
+ main: { label: "Download for macOS", onClick: nothing },
280
+ others: [{ label: "Windows", onClick: nothing }],
281
+ note: "Apple Silicon · 512 MB · Version 0.1.0",
282
+ }, picture: _jsx("img", { alt: "", className: "size-full object-contain", src: art.agents }), children: _jsx("h4", { className: "text-heading-sm", children: "Nadia" }) }));
277
283
  }
278
284
  function ConfirmDialogSpecimen() {
279
285
  const [open, setOpen] = useState(null);
@@ -298,9 +304,10 @@ function EntrySceneSpecimen() {
298
304
  }
299
305
  function EntryPictureSpecimen() {
300
306
  const art = useEmptyArt();
301
- // A transform makes the box the picture's containing block, so it stands at this box's floor
302
- // rather than the showcase window's.
303
- return (_jsx("div", { className: "relative h-80 w-full overflow-hidden rounded-md border border-border [transform:translateZ(0)]", children: _jsx(EntryPicture, { column: "0rem", height: 1024, src: art.agents, width: 1024 }) }));
307
+ // Paint containment makes the box the picture's containing block, so it stands at this box's
308
+ // floor rather than the showcase window's. It is a style, not a class: a product's stylesheet
309
+ // compiles only the classes its components use, never the showcase's own.
310
+ return (_jsx("div", { className: "relative h-80 w-full overflow-hidden rounded-md border border-border", style: { contain: "paint" }, children: _jsx(EntryPicture, { column: "0rem", height: 1024, src: art.agents, width: 1024 }) }));
304
311
  }
305
312
  function InviteCardSpecimen() {
306
313
  return (_jsx("div", { className: "max-w-130", children: _jsx(InviteCard, { description: "Alveare opens by itself with your invite. If it doesn't open, install it, then open the invite link again.", install: {
@@ -354,7 +361,7 @@ function DrawerStepsSpecimen() {
354
361
  id: "configure",
355
362
  state: "current",
356
363
  title: "Configure",
357
- children: (_jsxs(_Fragment, { children: [_jsx(DrawerStepBody, { children: "The fields of this step." }), _jsx(DrawerStepFooter, { children: _jsx(Button, { children: "Create Agent" }) })] })),
364
+ children: (_jsxs(_Fragment, { children: [_jsx(DrawerStepBody, { children: "The fields of this step." }), _jsx(DrawerStepFooter, { submit: { label: "Create Agent" } })] })),
358
365
  },
359
366
  ] }) }));
360
367
  }
@@ -446,7 +453,7 @@ function SenderSection() {
446
453
  }, title: "Sender", children: _jsx(SettingsField, { id: "showcase-sender-name", label: "Sender name", children: ({ controlProps }) => (_jsx(Input, { ...controlProps, defaultValue: "Acme Quotes", name: "senderName" })) }) }));
447
454
  }
448
455
  function SettingsSectionSpecimen() {
449
- return (_jsxs(SettingsPage, { children: [_jsx(SenderSection, {}), _jsx(SettingsSection, { description: "The last payment of \u20AC 49 did not go through. Update your card to keep the Business plan.", footer: _jsx(Button, { variant: "outline", children: "Update payment method" }), title: "Payment failed", tone: "error" }), _jsx(SettingsSection, { description: "Your Pro trial ends on 30 November. Add a payment method to keep your Agents running.", footer: _jsx(Button, { variant: "outline", children: "Add payment method" }), title: "Trial ending soon", tone: "warning" }), _jsx(SettingsSection, { description: "Move this project to another team.", lockedReason: "You need additional permissions to transfer projects.", title: "Transfer project", children: _jsx(SettingsField, { id: "showcase-transfer-team", label: "New team", children: ({ controlProps }) => (_jsx(Input, { ...controlProps, defaultValue: "Rossi Ottica", name: "team" })) }) }), _jsx(SettingsSection, { description: "Invoices and receipts go to this address.", save: {
456
+ return (_jsxs(SettingsPage, { children: [_jsx(SenderSection, {}), _jsx(SettingsSection, { description: "The last payment of \u20AC 49 did not go through. Update your card to keep the Business plan.", footer: { action: { label: "Update payment method", onClick: nothing } }, title: "Payment failed", tone: "error" }), _jsx(SettingsSection, { description: "Your Pro trial ends on 30 November. Add a payment method to keep your Agents running.", footer: { action: { label: "Add payment method", onClick: nothing } }, title: "Trial ending soon", tone: "warning" }), _jsx(SettingsSection, { description: "Move this project to another team.", lockedReason: "You need additional permissions to transfer projects.", title: "Transfer project", children: _jsx(SettingsField, { id: "showcase-transfer-team", label: "New team", children: ({ controlProps }) => (_jsx(Input, { ...controlProps, defaultValue: "Rossi Ottica", name: "team" })) }) }), _jsx(SettingsSection, { description: "Invoices and receipts go to this address.", save: {
450
457
  action: async () => null,
451
458
  label: "Save",
452
459
  pendingLabel: "Saving",
@@ -527,6 +534,8 @@ function StepCardsSpecimen() {
527
534
  ] }));
528
535
  }
529
536
  export const COMPOSITIONS = {
537
+ AssistantPanelHeader: () => (_jsx("div", { className: "max-w-md rounded-md border", children: _jsx(AssistantPanelHeader, { close: { label: "Close", onClick: nothing }, mark: _jsx(AgentOrb, { color: COBALTO, decorative: true, form: "orbit", size: 24 }), name: "Sofia" }) })),
538
+ AssistantWelcome: () => (_jsx("div", { className: "max-w-md", children: _jsx(AssistantWelcome, { body: "I can show you where everything is in the Portal.", mark: _jsx(AgentOrb, { color: COBALTO, decorative: true, form: "orbit", size: 64 }), primary: { label: "Show me around", onClick: nothing }, secondary: { label: "Not now", onClick: nothing }, title: "Hi, I'm Sofia" }) })),
530
539
  CatalogCard: CatalogCardSpecimen,
531
540
  StepCards: StepCardsSpecimen,
532
541
  ActivityFeed: ActivityFeedSpecimen,
@@ -565,7 +574,7 @@ export const COMPOSITIONS = {
565
574
  PageFrame: PageFrameSpecimen,
566
575
  ProductBand: ProductBandSpecimen,
567
576
  PageHeader: () => (_jsxs(PageActionsHostProvider, { children: [_jsx(PageHeader, { title: "Customers" }), _jsx(PageActions, { primary: { label: "Invite customer", icon: _jsx(Plus, {}), onClick: nothing } })] })),
568
- PlanCard: () => (_jsx("div", { className: "grid max-w-md gap-4", children: _jsx(PlanCard, { action: _jsx(Button, { children: "Subscribe" }), allowance: { figure: "3×", label: "Three times the usage of Pro" }, inclusions: { label: "Included", items: ["A Granola seat for each technician"] }, name: "Business", price: { amount: "€149", period: "/mo", note: "VAT excluded" }, status: _jsx(Badge, { variant: "outline", children: "Recommended" }) }) })),
577
+ PlanCard: () => (_jsx("div", { className: "grid max-w-md gap-4", children: _jsx(PlanCard, { action: { command: { label: "Subscribe", onClick: () => { } }, recommended: true }, allowance: { figure: "3×", label: "Three times the usage of Pro" }, inclusions: { label: "Included", items: ["A Granola seat for each technician"] }, name: "Business", price: { amount: "€149", period: "/mo", note: "VAT excluded" }, status: _jsx(Badge, { variant: "outline", children: "Recommended" }) }) })),
569
578
  RecordList: () => (_jsxs("div", { className: "grid gap-6", children: [_jsx(RecordList, { ...MAILBOX_LIST, label: "Mailboxes", records: MAILBOXES }), _jsx(RecordList, { ...MAILBOX_LIST, commands: reconnect, label: "Mailboxes with one command", records: MAILBOXES }), _jsx(RecordList, { ...MAILBOX_LIST, commands: (mailbox) => [
570
579
  ...reconnect(mailbox).map((command) => ({ ...command, main: true })),
571
580
  ...RECORD_COMMANDS,
@@ -1 +1 @@
1
- {"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../src/showcase/specimens/data.tsx"],"names":[],"mappings":"AA8HA,iBAAS,iBAAiB,gCAazB;AAsCD,iBAAS,iBAAiB,gCAkDzB;AAUD,iBAAS,eAAe,gCASvB;AAED,iBAAS,YAAY,gCAoCpB;AAED,iBAAS,WAAW,gCAuBnB;AAQD,iBAAS,gBAAgB,gCAqBxB;AAED,iBAAS,qBAAqB,gCAc7B;AAED,iBAAS,UAAU,gCAqClB;AAED,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiSU,CAAC"}
1
+ {"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../src/showcase/specimens/data.tsx"],"names":[],"mappings":"AA8HA,iBAAS,iBAAiB,gCAazB;AAsCD,iBAAS,iBAAiB,gCAkDzB;AAUD,iBAAS,eAAe,gCASvB;AAED,iBAAS,YAAY,gCAkCpB;AAED,iBAAS,WAAW,gCAuBnB;AAQD,iBAAS,gBAAgB,gCAqBxB;AAED,iBAAS,qBAAqB,gCAc7B;AAED,iBAAS,UAAU,gCAqClB;AAED,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiSU,CAAC"}
@@ -136,7 +136,7 @@ function SnippetSpecimen() {
136
136
  }
137
137
  function ItemSpecimen() {
138
138
  const [selected, setSelected] = useState(false);
139
- return (_jsxs(ItemGroup, { className: "max-w-lg", divided: true, children: [_jsxs(Item, { children: [_jsx(ItemMedia, { variant: "icon", children: _jsx(MessageCircle, { "aria-hidden": "true" }) }), _jsxs(ItemContent, { children: [_jsx(ItemTitle, { children: "Telegram" }), _jsx(ItemDescription, { children: "Invoices answers the sales group here." })] }), _jsx(ItemActions, { children: _jsx(Button, { size: "sm", variant: "outline", children: "Disconnect Telegram" }) })] }), _jsxs(Item, { children: [_jsx(ItemMedia, { variant: "icon", children: _jsx(RotateCw, { "aria-hidden": "true" }) }), _jsxs(ItemContent, { children: [_jsx(ItemTitle, { children: "Nadia filed 12 invoices" }), _jsx(ItemDescription, { children: "From the October statement, in the archive folder." })] })] }), _jsxs(Item, { children: [_jsx(ItemSelect, { checked: selected, label: "Select Chrome, Mac", onCheckedChange: setSelected }), _jsxs(ItemContent, { children: [_jsx(ItemTitle, { children: "Chrome, Mac" }), _jsx(ItemDescription, { children: "Signed in today at 09:14." })] })] })] }));
139
+ return (_jsxs(ItemGroup, { className: "max-w-lg", divided: true, children: [_jsxs(Item, { children: [_jsx(ItemMedia, { variant: "icon", children: _jsx(MessageCircle, { "aria-hidden": "true" }) }), _jsxs(ItemContent, { children: [_jsx(ItemTitle, { children: "Telegram" }), _jsx(ItemDescription, { children: "Invoices answers the sales group here." })] }), _jsx(ItemActions, { children: _jsx(StatusBadge, { label: "Connected", tone: "success" }) })] }), _jsxs(Item, { children: [_jsx(ItemMedia, { variant: "icon", children: _jsx(RotateCw, { "aria-hidden": "true" }) }), _jsxs(ItemContent, { children: [_jsx(ItemTitle, { children: "Nadia filed 12 invoices" }), _jsx(ItemDescription, { children: "From the October statement, in the archive folder." })] })] }), _jsxs(Item, { children: [_jsx(ItemSelect, { checked: selected, label: "Select Chrome, Mac", onCheckedChange: setSelected }), _jsxs(ItemContent, { children: [_jsx(ItemTitle, { children: "Chrome, Mac" }), _jsx(ItemDescription, { children: "Signed in today at 09:14." })] })] })] }));
140
140
  }
141
141
  function KbdSpecimen() {
142
142
  return (_jsxs("div", { className: "grid gap-3 text-sm", children: [_jsxs("span", { className: "flex items-center gap-2", children: ["Find", _jsx(Kbd, { meta: true, keyName: "K" }), _jsx(Kbd, { meta: true, shift: true, keyName: "K" })] }), _jsxs("span", { className: "flex items-center gap-2", children: ["Find, small", _jsx(Kbd, { meta: true, size: "sm", keyName: "K" }), _jsx(Kbd, { meta: true, shift: true, size: "sm", keyName: "K" })] }), _jsxs("span", { className: "flex items-center gap-2", children: ["Close", _jsx(Kbd, { keyName: "Esc" })] }), _jsxs("span", { className: "flex items-center gap-2", children: ["Previous Agent", _jsx(Kbd, { keyName: "ArrowUp" })] })] }));
@@ -82,6 +82,7 @@ export declare const SPECIMENS: {
82
82
  TextWithCopyButton: () => import("react").JSX.Element;
83
83
  UsageMeter: () => import("react").JSX.Element;
84
84
  ProductShell: () => import("react").JSX.Element;
85
+ ProductShellBell: () => import("react").JSX.Element;
85
86
  ColumnFoot: () => import("react").JSX.Element;
86
87
  SidebarFoot: () => import("react").JSX.Element;
87
88
  PlaceCount: () => import("react").JSX.Element;
@@ -150,6 +151,7 @@ export declare const SPECIMENS: {
150
151
  InputGroup: () => import("react").JSX.Element;
151
152
  InputOTP: () => import("react").JSX.Element;
152
153
  Label: () => import("react").JSX.Element;
154
+ FolderField: () => import("react").JSX.Element;
153
155
  NativeSelect: () => import("react").JSX.Element;
154
156
  SettingsRows: () => import("react").JSX.Element;
155
157
  SettingsField: () => import("react").JSX.Element;
@@ -160,10 +162,13 @@ export declare const SPECIMENS: {
160
162
  ButtonGroup: () => import("react").JSX.Element;
161
163
  LoadMoreButton: () => import("react").JSX.Element;
162
164
  CopyButton: () => import("react").JSX.Element;
165
+ CompanyCardActions: () => import("react").JSX.Element;
163
166
  CardActionsRow: () => import("react").JSX.Element;
164
167
  PageActions: () => import("react").JSX.Element;
165
168
  RecordCommands: () => import("react").JSX.Element;
166
169
  RecordContextMenu: () => import("react").JSX.Element;
170
+ AssistantPanelHeader: () => import("react").JSX.Element;
171
+ AssistantWelcome: () => import("react").JSX.Element;
167
172
  CatalogCard: () => import("react").JSX.Element;
168
173
  StepCards: () => import("react").JSX.Element;
169
174
  ActivityFeed: () => 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/showcase/specimens/index.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYiB,CAAC"}
@@ -15,6 +15,7 @@ export declare const INPUTS: {
15
15
  InputGroup: typeof InputGroupSpecimen;
16
16
  InputOTP: typeof InputOTPSpecimen;
17
17
  Label: () => import("react").JSX.Element;
18
+ FolderField: () => import("react").JSX.Element;
18
19
  NativeSelect: () => import("react").JSX.Element;
19
20
  SettingsRows: typeof SettingsRowsSpecimen;
20
21
  SettingsField: () => import("react").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"inputs.d.ts","sourceRoot":"","sources":["../../../src/showcase/specimens/inputs.tsx"],"names":[],"mappings":"AA+BA,iBAAS,gBAAgB,gCAgBxB;AAED,iBAAS,wBAAwB,gCAqBhC;AAED,iBAAS,sBAAsB,gCAiC9B;AAED,iBAAS,kBAAkB,gCAqC1B;AAED,iBAAS,gBAAgB,gCA2BxB;AAED,iBAAS,cAAc,gCAuCtB;AAqBD,iBAAS,oBAAoB,gCAoD5B;AAED,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;CAkIQ,CAAC"}
1
+ {"version":3,"file":"inputs.d.ts","sourceRoot":"","sources":["../../../src/showcase/specimens/inputs.tsx"],"names":[],"mappings":"AAgCA,iBAAS,gBAAgB,gCAgBxB;AAED,iBAAS,wBAAwB,gCAqBhC;AAED,iBAAS,sBAAsB,gCAiC9B;AAED,iBAAS,kBAAkB,gCAqC1B;AAED,iBAAS,gBAAgB,gCA2BxB;AAED,iBAAS,cAAc,gCAuCtB;AAqBD,iBAAS,oBAAoB,gCAoD5B;AAED,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;CA6IQ,CAAC"}
@@ -7,6 +7,7 @@ import { Calendar } from "../../components/calendar.js";
7
7
  import { ClearableInput } from "../../components/clearable-input.js";
8
8
  import { CollectionSearch } from "../../components/collection-search.js";
9
9
  import { Field, FieldDescription, FieldError, FieldLabel } from "../../components/field.js";
10
+ import { FolderField } from "../../components/folder-field.js";
10
11
  import { Form } from "../../components/form.js";
11
12
  import { Input } from "../../components/input.js";
12
13
  import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, } from "../../components/input-group.js";
@@ -98,6 +99,7 @@ export const INPUTS = {
98
99
  InputGroup: InputGroupSpecimen,
99
100
  InputOTP: InputOTPSpecimen,
100
101
  Label: () => (_jsxs("div", { className: "flex items-center gap-2", children: [_jsx(Switch, { id: "showcase-approvals" }), _jsx(Label, { htmlFor: "showcase-approvals", children: "Approvals" })] })),
102
+ FolderField: () => (_jsxs("div", { className: "grid max-w-sm gap-4", children: [_jsx(FolderField, { buttonLabel: "Choose folder", label: "Folder", onFolderChange: nothing }), _jsx(FolderField, { buttonLabel: "Choose folder", chosen: "quote-builder: 12 files, 48 kB", label: "Folder", onFolderChange: nothing })] })),
101
103
  NativeSelect: () => (_jsxs("div", { className: "grid max-w-sm gap-4", children: [_jsxs(NativeSelect, { defaultValue: "Europe/Rome", id: "showcase-zone", label: "Time zone", children: [_jsx(NativeSelectOption, { value: "Europe/London", children: "London" }), _jsx(NativeSelectOption, { value: "Europe/Rome", children: "Rome" }), _jsx(NativeSelectOption, { value: "America/New_York", children: "New York" }), _jsx(NativeSelectOption, { value: "Asia/Tokyo", children: "Tokyo" })] }), _jsxs(NativeSelect, { "aria-label": "Time zone, large", defaultValue: "Europe/Rome", prefix: _jsx(Clock, { "aria-hidden": "true" }), size: "lg", children: [_jsx(NativeSelectOption, { value: "Europe/London", children: "London" }), _jsx(NativeSelectOption, { value: "Europe/Rome", children: "Rome" }), _jsx(NativeSelectOption, { value: "America/New_York", children: "New York" }), _jsx(NativeSelectOption, { value: "Asia/Tokyo", children: "Tokyo" })] })] })),
102
104
  SettingsRows: SettingsRowsSpecimen,
103
105
  SettingsField: () => (_jsx("div", { className: "max-w-md", children: _jsx(SettingsField, { id: "showcase-sender", label: "Sender name", children: ({ controlProps }) => _jsx(Input, { ...controlProps, defaultValue: "Acme Quotes" }) }) })),
@@ -4,8 +4,10 @@ declare function ScopeSwitcherSpecimen(): import("react").JSX.Element;
4
4
  declare function SidebarSectionsSpecimen(): import("react").JSX.Element;
5
5
  declare function TabsSpecimen(): import("react").JSX.Element;
6
6
  declare function ProductShellSpecimen(): import("react").JSX.Element;
7
+ declare function ProductShellBellSpecimen(): import("react").JSX.Element;
7
8
  export declare const NAVIGATION: {
8
9
  ProductShell: typeof ProductShellSpecimen;
10
+ ProductShellBell: typeof ProductShellBellSpecimen;
9
11
  ColumnFoot: typeof ColumnFootSpecimen;
10
12
  SidebarFoot: () => import("react").JSX.Element;
11
13
  PlaceCount: () => import("react").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../../src/showcase/specimens/navigation.tsx"],"names":[],"mappings":"AAsFA,iBAAS,kBAAkB,gCA4B1B;AAED,iBAAS,qBAAqB,gCAkC7B;AAED,iBAAS,qBAAqB,gCAmB7B;AAED,iBAAS,uBAAuB,gCAiE/B;AAED,iBAAS,YAAY,gCAqCpB;AA6ED,iBAAS,oBAAoB,gCAsE5B;AAED,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;CAkUI,CAAC"}
1
+ {"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../../src/showcase/specimens/navigation.tsx"],"names":[],"mappings":"AAuFA,iBAAS,kBAAkB,gCA4B1B;AAED,iBAAS,qBAAqB,gCAkC7B;AAED,iBAAS,qBAAqB,gCAmB7B;AAED,iBAAS,uBAAuB,gCAiE/B;AAED,iBAAS,YAAY,gCAqCpB;AA6ED,iBAAS,oBAAoB,gCAsE5B;AAED,iBAAS,wBAAwB,gCAmChC;AAED,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;CAmUI,CAAC"}
@@ -17,6 +17,7 @@ import { AgentIcon, ApprovalsIcon } from "../../components/house-icons.js";
17
17
  import { Kbd } from "../../components/kbd.js";
18
18
  import { PortalSidebarFrame } from "../../components/portal-sidebar-frame.js";
19
19
  import { ProductShell } from "../../components/product-shell.js";
20
+ import { ProductShellBell } from "../../components/product-shell-bell.js";
20
21
  import { ScopeSwitcher } from "../../components/scope-switcher.js";
21
22
  import { Sidebar, SidebarBrand, SidebarContent, SidebarFind, SidebarFrame, SidebarGroup, SidebarGroupLabel, SidebarEntryCard, SidebarFoot, SidebarMenu, SidebarMenuButton, SidebarMenuChevron, SidebarMenuItem, SidebarProvider, } from "../../components/sidebar.js";
22
23
  import { SidebarSections } from "../../components/sidebar-sections.js";
@@ -214,8 +215,35 @@ function ProductShellSpecimen() {
214
215
  },
215
216
  ], width: { ...width, onChange: setWidth }, children: _jsx("h1", { className: "text-xl font-semibold", children: current }) }) }));
216
217
  }
218
+ function ProductShellBellSpecimen() {
219
+ const [open, setOpen] = useState(false);
220
+ const [view, setView] = useState("unread");
221
+ return (_jsx(ProductShellBell, { label: "Notifications: 2 unread, needs attention", onOpenChange: setOpen, open: open, preferences: {
222
+ label: "Preferences",
223
+ title: "Notification preferences",
224
+ back: "Back",
225
+ content: _jsx("p", { className: "p-3 text-sm", children: "Choose where each alert reaches you." }),
226
+ }, title: "Notifications", unread: { severity: "warning" }, views: {
227
+ label: "Notification views",
228
+ current: view,
229
+ onChange: setView,
230
+ items: [
231
+ {
232
+ id: "unread",
233
+ label: "To read",
234
+ content: _jsx("p", { className: "p-3 text-sm", children: "Acme passed 80% of its Included usage." }),
235
+ },
236
+ {
237
+ id: "archive",
238
+ label: "Archive",
239
+ content: _jsx("p", { className: "p-3 text-sm", children: "No archived notifications." }),
240
+ },
241
+ ],
242
+ } }));
243
+ }
217
244
  export const NAVIGATION = {
218
245
  ProductShell: ProductShellSpecimen,
246
+ ProductShellBell: ProductShellBellSpecimen,
219
247
  ColumnFoot: ColumnFootSpecimen,
220
248
  SidebarFoot: () => (_jsx(Navigation, { children: _jsx("div", { className: "relative w-64 bg-sidebar", children: _jsx(SidebarFoot, { account: _jsx(SidebarMenu, { children: _jsx(SidebarMenuItem, { children: _jsx(SidebarMenuButton, { children: "Ada Rossi" }) }) }) }) }) })),
221
249
  PlaceCount: () => (_jsx(Navigation, { children: _jsxs(SidebarMenu, { className: "w-64", children: [_jsxs(SidebarMenuItem, { children: [_jsxs(SidebarMenuButton, { children: [_jsx(Users, { "aria-hidden": "true" }), _jsx("span", { children: "Colleagues" })] }), _jsx(PlaceCount, { count: 3, spoken: "unread messages" })] }), _jsxs(SidebarMenuItem, { children: [_jsxs(SidebarMenuButton, { children: [_jsx(Laptop, { "aria-hidden": "true" }), _jsx("span", { children: "Installations" })] }), _jsx(PlaceCount, { count: 120, tone: "attention" })] })] }) })),