@asanchez-sa/abby 0.1.3 → 0.3.0

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 (33) hide show
  1. package/README.md +1 -1
  2. package/dist/components/alert/alert.d.ts +1 -1
  3. package/dist/components/alert/alert.js +2 -1
  4. package/dist/components/alert-dialog/alert-dialog.d.ts +10 -1
  5. package/dist/components/alert-dialog/alert-dialog.js +80 -3
  6. package/dist/components/button/button.d.ts +1 -1
  7. package/dist/components/button/button.js +3 -2
  8. package/dist/components/dialog/dialog.d.ts +9 -1
  9. package/dist/components/dialog/dialog.js +82 -3
  10. package/dist/components/field/field.d.ts +5 -1
  11. package/dist/components/field/field.js +25 -21
  12. package/dist/components/input/input.d.ts +12 -2
  13. package/dist/components/input/input.js +33 -18
  14. package/dist/components/meter/meter.d.ts +52 -3
  15. package/dist/components/meter/meter.js +535 -33
  16. package/dist/components/note-editor/parts/suggestions.js +2 -2
  17. package/dist/components/otp-input/otp-input.d.ts +14 -4
  18. package/dist/components/otp-input/otp-input.js +74 -39
  19. package/dist/components/sheet/sheet.js +1 -1
  20. package/dist/components/switch/switch.d.ts +9 -2
  21. package/dist/components/switch/switch.js +23 -17
  22. package/dist/components/team-mark/team-mark.d.ts +26 -0
  23. package/dist/components/team-mark/team-mark.js +101 -0
  24. package/package.json +2 -1
  25. package/skills/agent-ready-ui/SKILL.md +1 -1
  26. package/skills/blocks/SKILL.md +1 -1
  27. package/skills/compose-screens/SKILL.md +89 -5
  28. package/skills/note-editor/SKILL.md +1 -1
  29. package/skills/note-status/SKILL.md +1 -1
  30. package/skills/setup/SKILL.md +1 -1
  31. package/skills/theming/SKILL.md +1 -1
  32. package/src/blocks/shell/parts/marks.tsx +18 -4
  33. package/src/blocks/shell/parts/rail.tsx +7 -7
package/README.md CHANGED
@@ -49,7 +49,7 @@ vp run bump minor --dry-run # comprueba todo y muestra el plan sin cambiar nada
49
49
 
50
50
  `scripts/bump.ts` comprueba que la etiqueta y la versión no existen y que Intent no tiene revisiones pendientes. Después cambia `version` en `package.json`, compila, marca la versión en las skills, registra su revisión, hace commit (`Release <versión>`), crea la etiqueta `v<versión>` y sube la rama y la etiqueta. Con `--no-push` se queda en el commit y la etiqueta. Una prerrelease (`0.2.0-beta.1`) se publica con la etiqueta `next` de npm, sin mover `latest`.
51
51
 
52
- La etiqueta lanza el workflow `Release` (`.github/workflows/release.yml`), que corre `vp check`, `vp test` y `vp run build`, y publica. npm confía en él por OIDC (trusted publishing): no hay token guardado en GitHub.
52
+ La etiqueta lanza el workflow `Release` (`.github/workflows/release.yml`), que corre `vp check`, `vp test` y `vp run build`, publica y escribe la release de GitHub con los commits de la versión (`scripts/release-notes.ts`). npm confía en él por OIDC (trusted publishing): no hay token guardado en GitHub. La versión tarda hasta unos 10 minutos en poder instalarse.
53
53
 
54
54
  A mano, con `npm login` hecho: `vp run build`, luego `vp run release -- --publish --dry-run` para ver qué se publicaría y `vp run release -- --publish` para publicar.
55
55
 
@@ -3,7 +3,7 @@ import { PartProps } from "../../core/ui-sdk.js";
3
3
  import { VariantProps } from "../../utilities/cn/index.js";
4
4
  import { ComponentProps } from "react";
5
5
  declare const alertVariants: (props?: ({
6
- variant?: "default" | "destructive" | null | undefined;
6
+ variant?: "default" | "destructive" | "warning" | null | undefined;
7
7
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
8
  type AlertProps = ComponentProps<"div"> & VariantProps<typeof alertVariants>;
9
9
  declare function Alert({ className, variant, role, ...props }: AlertProps): import("react").JSX.Element;
@@ -8,7 +8,8 @@ import { jsx } from "react/jsx-runtime";
8
8
  const alertVariants = cva("group/alert relative grid w-full gap-0.5 rounded-xl border px-2.5 py-2 text-start text-sm has-data-[slot=alert-action]:grid-cols-[1fr_auto] has-data-[slot=alert-action]:gap-x-2 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 has-[>svg]:has-data-[slot=alert-action]:grid-cols-[auto_1fr_auto] *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4", {
9
9
  variants: { variant: {
10
10
  default: "bg-card text-card-foreground",
11
- destructive: "bg-card text-destructive *:data-[slot=alert-description]:text-destructive"
11
+ destructive: "bg-card text-destructive *:data-[slot=alert-description]:text-destructive",
12
+ warning: "bg-card text-warning *:data-[slot=alert-description]:text-warning"
12
13
  } },
13
14
  defaultVariants: { variant: "default" }
14
15
  });
@@ -1,4 +1,5 @@
1
1
  import { ButtonLook } from "../button/button.js";
2
+ import { DialogFooterProps } from "../dialog/dialog.js";
2
3
  import { ComponentProps } from "react";
3
4
  import { AlertDialogBackdrop as AlertDialogBackdrop$1, AlertDialogClose as AlertDialogClose$1, AlertDialogCloseActionDetails, AlertDialogCloseState, AlertDialogContent as AlertDialogContent$1, AlertDialogContentState, AlertDialogController, AlertDialogDescription as AlertDialogDescription$1, AlertDialogOpenChangeReason, AlertDialogPayloadChangeReason, AlertDialogProps, AlertDialogShortcut as AlertDialogShortcut$1, AlertDialogShortcutState, AlertDialogTitle as AlertDialogTitle$1, AlertDialogTrigger as AlertDialogTrigger$1, AlertDialogTriggerState, ConfirmOptions, confirm, createAlertDialogController, createConfirm } from "@ui-sdk/react/alert-dialog";
4
5
  declare function AlertDialog(props: AlertDialogProps): import("react").JSX.Element;
@@ -7,9 +8,17 @@ declare function AlertDialogTrigger({ variant, size, className, ...props }: Aler
7
8
  declare function AlertDialogBackdrop({ className, ...props }: ComponentProps<typeof AlertDialogBackdrop$1>): import("react").JSX.Element;
8
9
  type AlertDialogContentProps<Payload = unknown> = ComponentProps<typeof AlertDialogContent$1<Payload>>;
9
10
  declare function AlertDialogContent<Payload = unknown>({ className, ...props }: AlertDialogContentProps<Payload>): import("react").JSX.Element;
11
+ /** The title and description, stacked 6px apart as in Alma's dialogs. */
12
+ declare function AlertDialogHeader({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
13
+ type AlertDialogFooterProps = DialogFooterProps;
14
+ /**
15
+ * The actions, as Dialog's footer: a band at the dialog's edges by default,
16
+ * or a plain row with `variant="inline"`.
17
+ */
18
+ declare function AlertDialogFooter({ className, variant, ...props }: AlertDialogFooterProps): import("react").JSX.Element;
10
19
  declare function AlertDialogTitle({ className, ...props }: ComponentProps<typeof AlertDialogTitle$1>): import("react").JSX.Element;
11
20
  declare function AlertDialogDescription({ className, ...props }: ComponentProps<typeof AlertDialogDescription$1>): import("react").JSX.Element;
12
21
  type AlertDialogCloseProps = ComponentProps<typeof AlertDialogClose$1> & ButtonLook;
13
22
  declare function AlertDialogClose({ variant, size, className, ...props }: AlertDialogCloseProps): import("react").JSX.Element;
14
23
  declare function AlertDialogShortcut({ className, ...props }: ComponentProps<typeof AlertDialogShortcut$1>): import("react").JSX.Element;
15
- export { AlertDialog, AlertDialogBackdrop, AlertDialogClose, type AlertDialogCloseActionDetails, type AlertDialogCloseProps, type AlertDialogCloseState, AlertDialogContent, type AlertDialogContentProps, type AlertDialogContentState, type AlertDialogController, AlertDialogDescription, type AlertDialogOpenChangeReason, type AlertDialogPayloadChangeReason, type AlertDialogProps, AlertDialogShortcut, type AlertDialogShortcutState, AlertDialogTitle, AlertDialogTrigger, type AlertDialogTriggerProps, type AlertDialogTriggerState, type ConfirmOptions, confirm, createAlertDialogController, createConfirm };
24
+ export { AlertDialog, AlertDialogBackdrop, AlertDialogClose, type AlertDialogCloseActionDetails, type AlertDialogCloseProps, type AlertDialogCloseState, AlertDialogContent, type AlertDialogContentProps, type AlertDialogContentState, type AlertDialogController, AlertDialogDescription, AlertDialogFooter, type AlertDialogFooterProps, AlertDialogHeader, type AlertDialogOpenChangeReason, type AlertDialogPayloadChangeReason, type AlertDialogProps, AlertDialogShortcut, type AlertDialogShortcutState, AlertDialogTitle, AlertDialogTrigger, type AlertDialogTriggerProps, type AlertDialogTriggerState, type ConfirmOptions, confirm, createAlertDialogController, createConfirm };
@@ -1,6 +1,7 @@
1
1
  "use client";
2
- import { cnState } from "../../utilities/cn/index.js";
2
+ import { cn, cnState } from "../../utilities/cn/index.js";
3
3
  import { buttonLook } from "../button/button.js";
4
+ import { dialogFooterVariants } from "../dialog/dialog.js";
4
5
  import { c } from "react/compiler-runtime";
5
6
  import { jsx } from "react/jsx-runtime";
6
7
  import { AlertDialog as AlertDialog$1, AlertDialogBackdrop as AlertDialogBackdrop$1, AlertDialogClose as AlertDialogClose$1, AlertDialogContent as AlertDialogContent$1, AlertDialogDescription as AlertDialogDescription$1, AlertDialogShortcut as AlertDialogShortcut$1, AlertDialogTitle as AlertDialogTitle$1, AlertDialogTrigger as AlertDialogTrigger$1, confirm, createAlertDialogController, createConfirm } from "@ui-sdk/react/alert-dialog";
@@ -103,7 +104,7 @@ function AlertDialogContent(t0) {
103
104
  }
104
105
  let t1;
105
106
  if ($[3] !== className) {
106
- t1 = cnState("fixed inset-0 m-auto grid h-fit max-h-[calc(100%-2rem)] w-full max-w-xs gap-4 overflow-y-auto rounded-2xl bg-popover p-4 text-sm text-popover-foreground shadow-lg ring-1 ring-foreground/10 outline-none popup-motion [--popup-duration:var(--transition-duration-modal)] data-starting-style:scale-[0.96] data-closed:scale-[0.96] sm:max-w-sm", className);
107
+ t1 = cnState("fixed inset-0 m-auto grid h-fit max-h-[calc(100%-2rem)] w-full max-w-xs gap-4 overflow-y-auto rounded-2xl bg-popover p-(--dialog-padding) [--dialog-padding:--spacing(4)] text-sm text-popover-foreground shadow-lg ring-1 ring-foreground/10 outline-none popup-motion [--popup-duration:var(--transition-duration-modal)] data-starting-style:scale-[0.96] data-closed:scale-[0.96] sm:max-w-sm", className);
107
108
  $[3] = className;
108
109
  $[4] = t1;
109
110
  } else t1 = $[4];
@@ -119,6 +120,82 @@ function AlertDialogContent(t0) {
119
120
  } else t2 = $[7];
120
121
  return t2;
121
122
  }
123
+ /** The title and description, stacked 6px apart as in Alma's dialogs. */
124
+ function AlertDialogHeader(t0) {
125
+ const $ = c(8);
126
+ let className;
127
+ let props;
128
+ if ($[0] !== t0) {
129
+ ({className, ...props} = t0);
130
+ $[0] = t0;
131
+ $[1] = className;
132
+ $[2] = props;
133
+ } else {
134
+ className = $[1];
135
+ props = $[2];
136
+ }
137
+ let t1;
138
+ if ($[3] !== className) {
139
+ t1 = cn("flex flex-col gap-1.5", className);
140
+ $[3] = className;
141
+ $[4] = t1;
142
+ } else t1 = $[4];
143
+ let t2;
144
+ if ($[5] !== props || $[6] !== t1) {
145
+ t2 = /* @__PURE__ */ jsx("div", {
146
+ "data-slot": "alert-dialog-header",
147
+ className: t1,
148
+ ...props
149
+ });
150
+ $[5] = props;
151
+ $[6] = t1;
152
+ $[7] = t2;
153
+ } else t2 = $[7];
154
+ return t2;
155
+ }
156
+ /**
157
+ * The actions, as Dialog's footer: a band at the dialog's edges by default,
158
+ * or a plain row with `variant="inline"`.
159
+ */
160
+ function AlertDialogFooter(t0) {
161
+ const $ = c(11);
162
+ let className;
163
+ let props;
164
+ let variant;
165
+ if ($[0] !== t0) {
166
+ ({className, variant, ...props} = t0);
167
+ $[0] = t0;
168
+ $[1] = className;
169
+ $[2] = props;
170
+ $[3] = variant;
171
+ } else {
172
+ className = $[1];
173
+ props = $[2];
174
+ variant = $[3];
175
+ }
176
+ const t1 = variant ?? "default";
177
+ let t2;
178
+ if ($[4] !== className || $[5] !== variant) {
179
+ t2 = cn(dialogFooterVariants({ variant }), className);
180
+ $[4] = className;
181
+ $[5] = variant;
182
+ $[6] = t2;
183
+ } else t2 = $[6];
184
+ let t3;
185
+ if ($[7] !== props || $[8] !== t1 || $[9] !== t2) {
186
+ t3 = /* @__PURE__ */ jsx("div", {
187
+ "data-slot": "alert-dialog-footer",
188
+ "data-variant": t1,
189
+ className: t2,
190
+ ...props
191
+ });
192
+ $[7] = props;
193
+ $[8] = t1;
194
+ $[9] = t2;
195
+ $[10] = t3;
196
+ } else t3 = $[10];
197
+ return t3;
198
+ }
122
199
  function AlertDialogTitle(t0) {
123
200
  const $ = c(8);
124
201
  let className;
@@ -254,4 +331,4 @@ function AlertDialogShortcut(t0) {
254
331
  } else t2 = $[7];
255
332
  return t2;
256
333
  }
257
- export { AlertDialog, AlertDialogBackdrop, AlertDialogClose, AlertDialogContent, AlertDialogDescription, AlertDialogShortcut, AlertDialogTitle, AlertDialogTrigger, confirm, createAlertDialogController, createConfirm };
334
+ export { AlertDialog, AlertDialogBackdrop, AlertDialogClose, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogShortcut, AlertDialogTitle, AlertDialogTrigger, confirm, createAlertDialogController, createConfirm };
@@ -2,7 +2,7 @@ import { VariantProps } from "../../utilities/cn/index.js";
2
2
  import { ComponentProps } from "react";
3
3
  import { Button as Button$1 } from "@ui-sdk/react/button";
4
4
  declare const buttonVariants: (props?: ({
5
- variant?: "default" | "destructive" | "ghost" | "outline" | "secondary" | null | undefined;
5
+ variant?: "default" | "destructive" | "destructive-outline" | "ghost" | "outline" | "secondary" | null | undefined;
6
6
  size?: "default" | "icon" | "icon-lg" | "icon-sm" | "icon-xs" | "lg" | "sm" | "xs" | null | undefined;
7
7
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
8
  type ButtonProps = ComponentProps<typeof Button$1> & VariantProps<typeof buttonVariants>;
@@ -11,13 +11,14 @@ const buttonVariants = cva("inline-flex items-center justify-center gap-2 rounde
11
11
  secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/70",
12
12
  outline: "border border-input bg-background text-foreground hover:bg-accent dark:bg-input/30 dark:hover:bg-accent",
13
13
  ghost: "text-muted-foreground hover:bg-accent hover:text-foreground",
14
- destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/85"
14
+ destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/85",
15
+ "destructive-outline": "border border-destructive/30 text-destructive hover:bg-destructive/8"
15
16
  },
16
17
  size: {
17
18
  xs: "h-6 gap-1 px-2 text-xs",
18
19
  sm: "h-7 gap-1.5 px-3 text-sm",
19
20
  default: "h-9 px-4 text-sm",
20
- lg: "h-11 px-5 text-base",
21
+ lg: "h-11 px-5 text-heading-3 font-medium",
21
22
  "icon-xs": "size-6",
22
23
  "icon-sm": "size-7",
23
24
  icon: "size-9",
@@ -1,3 +1,4 @@
1
+ import { VariantProps } from "../../utilities/cn/index.js";
1
2
  import { ButtonLook } from "../button/button.js";
2
3
  import { ComponentProps } from "react";
3
4
  import { DialogBackdrop as DialogBackdrop$1, DialogClose as DialogClose$1, DialogContent as DialogContent$1, DialogDescription as DialogDescription$1, DialogProps, DialogShortcut as DialogShortcut$1, DialogTitle as DialogTitle$1, DialogTrigger as DialogTrigger$1, createDialogController } from "@ui-sdk/react/dialog";
@@ -6,9 +7,16 @@ type DialogTriggerProps = ComponentProps<typeof DialogTrigger$1> & ButtonLook;
6
7
  declare function DialogTrigger({ variant, size, className, ...props }: DialogTriggerProps): import("react").JSX.Element;
7
8
  declare function DialogBackdrop({ className, ...props }: ComponentProps<typeof DialogBackdrop$1>): import("react").JSX.Element;
8
9
  declare function DialogContent({ className, ...props }: ComponentProps<typeof DialogContent$1>): import("react").JSX.Element;
10
+ /** The title and description, stacked 6px apart as in Alma's dialogs. */
11
+ declare function DialogHeader({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
12
+ declare const dialogFooterVariants: (props?: ({
13
+ variant?: "default" | "inline" | null | undefined;
14
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
15
+ type DialogFooterProps = ComponentProps<"div"> & VariantProps<typeof dialogFooterVariants>;
16
+ declare function DialogFooter({ className, variant, ...props }: DialogFooterProps): import("react").JSX.Element;
9
17
  declare function DialogTitle({ className, ...props }: ComponentProps<typeof DialogTitle$1>): import("react").JSX.Element;
10
18
  declare function DialogDescription({ className, ...props }: ComponentProps<typeof DialogDescription$1>): import("react").JSX.Element;
11
19
  type DialogCloseProps = ComponentProps<typeof DialogClose$1> & ButtonLook;
12
20
  declare function DialogClose({ variant, size, className, ...props }: DialogCloseProps): import("react").JSX.Element;
13
21
  declare function DialogShortcut({ className, ...props }: ComponentProps<typeof DialogShortcut$1>): import("react").JSX.Element;
14
- export { Dialog, DialogBackdrop, DialogClose, type DialogCloseProps, DialogContent, DialogDescription, type DialogProps, DialogShortcut, DialogTitle, DialogTrigger, type DialogTriggerProps, createDialogController };
22
+ export { Dialog, DialogBackdrop, DialogClose, type DialogCloseProps, DialogContent, DialogDescription, DialogFooter, type DialogFooterProps, DialogHeader, type DialogProps, DialogShortcut, DialogTitle, DialogTrigger, type DialogTriggerProps, createDialogController, dialogFooterVariants };
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { cnState } from "../../utilities/cn/index.js";
2
+ import { cn, cnState, cva } from "../../utilities/cn/index.js";
3
3
  import { buttonLook } from "../button/button.js";
4
4
  import { c } from "react/compiler-runtime";
5
5
  import { jsx } from "react/jsx-runtime";
@@ -104,7 +104,7 @@ function DialogContent(t0) {
104
104
  let t1;
105
105
  if ($[3] !== className) {
106
106
  t1 = cnState([
107
- "grid gap-4 bg-popover p-4 text-sm text-popover-foreground shadow-lg ring-1 ring-foreground/10 outline-none",
107
+ "grid gap-4 bg-popover p-(--dialog-padding) text-sm [--dialog-padding:--spacing(4)] text-popover-foreground shadow-lg ring-1 ring-foreground/10 outline-none",
108
108
  "data-[presentation=dialog]:popup-motion data-[presentation=dialog]:fixed data-[presentation=dialog]:inset-0 data-[presentation=dialog]:m-auto data-[presentation=dialog]:h-fit data-[presentation=dialog]:max-h-[calc(100%-2rem)] data-[presentation=dialog]:w-full data-[presentation=dialog]:max-w-[calc(100%-2rem)] data-[presentation=dialog]:overflow-y-auto data-[presentation=dialog]:rounded-2xl data-[presentation=dialog]:[--popup-duration:var(--transition-duration-modal)] data-[presentation=dialog]:data-starting-style:scale-[0.96] data-[presentation=dialog]:data-closed:scale-[0.96] data-[presentation=dialog]:sm:max-w-sm",
109
109
  "data-[presentation=sheet]:rounded-t-2xl"
110
110
  ], className);
@@ -123,6 +123,85 @@ function DialogContent(t0) {
123
123
  } else t2 = $[7];
124
124
  return t2;
125
125
  }
126
+ /** The title and description, stacked 6px apart as in Alma's dialogs. */
127
+ function DialogHeader(t0) {
128
+ const $ = c(8);
129
+ let className;
130
+ let props;
131
+ if ($[0] !== t0) {
132
+ ({className, ...props} = t0);
133
+ $[0] = t0;
134
+ $[1] = className;
135
+ $[2] = props;
136
+ } else {
137
+ className = $[1];
138
+ props = $[2];
139
+ }
140
+ let t1;
141
+ if ($[3] !== className) {
142
+ t1 = cn("flex flex-col gap-1.5", className);
143
+ $[3] = className;
144
+ $[4] = t1;
145
+ } else t1 = $[4];
146
+ let t2;
147
+ if ($[5] !== props || $[6] !== t1) {
148
+ t2 = /* @__PURE__ */ jsx("div", {
149
+ "data-slot": "dialog-header",
150
+ className: t1,
151
+ ...props
152
+ });
153
+ $[5] = props;
154
+ $[6] = t1;
155
+ $[7] = t2;
156
+ } else t2 = $[7];
157
+ return t2;
158
+ }
159
+ const dialogFooterVariants = cva("flex flex-col-reverse gap-2 sm:flex-row sm:items-center sm:justify-end", {
160
+ variants: { variant: {
161
+ default: "-mx-(--dialog-padding) -mb-(--dialog-padding) border-t bg-muted/70 px-(--dialog-padding) py-3.5 dark:bg-background/60",
162
+ inline: ""
163
+ } },
164
+ defaultVariants: { variant: "default" }
165
+ });
166
+ function DialogFooter(t0) {
167
+ const $ = c(11);
168
+ let className;
169
+ let props;
170
+ let variant;
171
+ if ($[0] !== t0) {
172
+ ({className, variant, ...props} = t0);
173
+ $[0] = t0;
174
+ $[1] = className;
175
+ $[2] = props;
176
+ $[3] = variant;
177
+ } else {
178
+ className = $[1];
179
+ props = $[2];
180
+ variant = $[3];
181
+ }
182
+ const t1 = variant ?? "default";
183
+ let t2;
184
+ if ($[4] !== className || $[5] !== variant) {
185
+ t2 = cn(dialogFooterVariants({ variant }), className);
186
+ $[4] = className;
187
+ $[5] = variant;
188
+ $[6] = t2;
189
+ } else t2 = $[6];
190
+ let t3;
191
+ if ($[7] !== props || $[8] !== t1 || $[9] !== t2) {
192
+ t3 = /* @__PURE__ */ jsx("div", {
193
+ "data-slot": "dialog-footer",
194
+ "data-variant": t1,
195
+ className: t2,
196
+ ...props
197
+ });
198
+ $[7] = props;
199
+ $[8] = t1;
200
+ $[9] = t2;
201
+ $[10] = t3;
202
+ } else t3 = $[10];
203
+ return t3;
204
+ }
126
205
  function DialogTitle(t0) {
127
206
  const $ = c(8);
128
207
  let className;
@@ -258,4 +337,4 @@ function DialogShortcut(t0) {
258
337
  } else t2 = $[7];
259
338
  return t2;
260
339
  }
261
- export { Dialog, DialogBackdrop, DialogClose, DialogContent, DialogDescription, DialogShortcut, DialogTitle, DialogTrigger, createDialogController };
340
+ export { Dialog, DialogBackdrop, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogShortcut, DialogTitle, DialogTrigger, createDialogController, dialogFooterVariants };
@@ -6,7 +6,11 @@ declare function FieldLabel({ className, ...props }: ComponentProps<typeof Field
6
6
  * A control ui-sdk doesn't ship, like a native `<select>`. An agent can't
7
7
  * fill it: use `Input` or another of abby's controls where there is one.
8
8
  */
9
- declare function FieldControl({ className, ...props }: ComponentProps<typeof FieldControl$1>): import("react").JSX.Element;
9
+ type FieldControlProps = Omit<ComponentProps<typeof FieldControl$1>, "size"> & {
10
+ /** `lg` is `Input`'s large size: the 44px of `Button`'s `lg`, with 15px text from `md` up. */
11
+ size?: "default" | "lg";
12
+ };
13
+ declare function FieldControl({ className, size, ...props }: FieldControlProps): import("react").JSX.Element;
10
14
  declare function FieldDescription({ className, ...props }: ComponentProps<typeof FieldDescription$1>): import("react").JSX.Element;
11
15
  declare function FieldError({ className, ...props }: ComponentProps<typeof FieldError$1>): import("react").JSX.Element;
12
16
  declare function FieldSet({ className, ...props }: ComponentProps<typeof FieldSet$1>): import("react").JSX.Element;
@@ -68,40 +68,44 @@ function FieldLabel(t0) {
68
68
  } else t2 = $[7];
69
69
  return t2;
70
70
  }
71
- /**
72
- * A control ui-sdk doesn't ship, like a native `<select>`. An agent can't
73
- * fill it: use `Input` or another of abby's controls where there is one.
74
- */
75
71
  function FieldControl(t0) {
76
- const $ = c(8);
72
+ const $ = c(11);
77
73
  let className;
78
74
  let props;
75
+ let t1;
79
76
  if ($[0] !== t0) {
80
- ({className, ...props} = t0);
77
+ ({className, size: t1, ...props} = t0);
81
78
  $[0] = t0;
82
79
  $[1] = className;
83
80
  $[2] = props;
81
+ $[3] = t1;
84
82
  } else {
85
83
  className = $[1];
86
84
  props = $[2];
85
+ t1 = $[3];
87
86
  }
88
- let t1;
89
- if ($[3] !== className) {
90
- t1 = cnState(inputClasses, className);
91
- $[3] = className;
92
- $[4] = t1;
93
- } else t1 = $[4];
94
- let t2;
95
- if ($[5] !== props || $[6] !== t1) {
96
- t2 = /* @__PURE__ */ jsx(FieldControl$1, {
97
- className: t1,
87
+ const size = t1 === void 0 ? "default" : t1;
88
+ const t2 = size === "lg" && "h-11 px-4.5 md:text-heading-3 md:font-normal";
89
+ let t3;
90
+ if ($[4] !== className || $[5] !== t2) {
91
+ t3 = cnState([inputClasses, t2], className);
92
+ $[4] = className;
93
+ $[5] = t2;
94
+ $[6] = t3;
95
+ } else t3 = $[6];
96
+ let t4;
97
+ if ($[7] !== props || $[8] !== size || $[9] !== t3) {
98
+ t4 = /* @__PURE__ */ jsx(FieldControl$1, {
99
+ "data-size": size,
100
+ className: t3,
98
101
  ...props
99
102
  });
100
- $[5] = props;
101
- $[6] = t1;
102
- $[7] = t2;
103
- } else t2 = $[7];
104
- return t2;
103
+ $[7] = props;
104
+ $[8] = size;
105
+ $[9] = t3;
106
+ $[10] = t4;
107
+ } else t4 = $[10];
108
+ return t4;
105
109
  }
106
110
  function FieldDescription(t0) {
107
111
  const $ = c(8);
@@ -5,5 +5,15 @@ import { Input as Input$1 } from "@ui-sdk/react/input";
5
5
  * capsule. A control that grows to several lines adds `rounded-2xl`.
6
6
  */
7
7
  declare const inputClasses = "h-9 w-full min-w-0 rounded-full border border-input bg-transparent px-3.5 py-1 text-base transition-colors file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-placeholder focus-field data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:bg-input/50 data-disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30";
8
- declare function Input({ className, ...props }: ComponentProps<typeof Input$1>): import("react").JSX.Element;
9
- export { Input, inputClasses };
8
+ /**
9
+ * `size="lg"`: the 44px of `Button`'s `lg`, so a field and its button line
10
+ * up, as in Alma's sign-in. Its text is Alma's 15/20, the size `heading-3`
11
+ * carries, at regular weight; under `md` it stays at 16px, which keeps a
12
+ * phone from zooming in.
13
+ */
14
+ declare const inputLgClasses = "h-11 px-4.5 md:text-heading-3 md:font-normal";
15
+ type InputProps = Omit<ComponentProps<typeof Input$1>, "size"> & {
16
+ size?: "default" | "lg";
17
+ };
18
+ declare function Input({ className, size, ...props }: InputProps): import("react").JSX.Element;
19
+ export { Input, type InputProps, inputClasses, inputLgClasses };
@@ -9,35 +9,50 @@ import { Input as Input$1 } from "@ui-sdk/react/input";
9
9
  * capsule. A control that grows to several lines adds `rounded-2xl`.
10
10
  */
11
11
  const inputClasses = "h-9 w-full min-w-0 rounded-full border border-input bg-transparent px-3.5 py-1 text-base transition-colors file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-placeholder focus-field data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:bg-input/50 data-disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30";
12
+ /**
13
+ * `size="lg"`: the 44px of `Button`'s `lg`, so a field and its button line
14
+ * up, as in Alma's sign-in. Its text is Alma's 15/20, the size `heading-3`
15
+ * carries, at regular weight; under `md` it stays at 16px, which keeps a
16
+ * phone from zooming in.
17
+ */
18
+ const inputLgClasses = "h-11 px-4.5 md:text-heading-3 md:font-normal";
12
19
  function Input(t0) {
13
- const $ = c(8);
20
+ const $ = c(11);
14
21
  let className;
15
22
  let props;
23
+ let t1;
16
24
  if ($[0] !== t0) {
17
- ({className, ...props} = t0);
25
+ ({className, size: t1, ...props} = t0);
18
26
  $[0] = t0;
19
27
  $[1] = className;
20
28
  $[2] = props;
29
+ $[3] = t1;
21
30
  } else {
22
31
  className = $[1];
23
32
  props = $[2];
33
+ t1 = $[3];
24
34
  }
25
- let t1;
26
- if ($[3] !== className) {
27
- t1 = cnState(inputClasses, className);
28
- $[3] = className;
29
- $[4] = t1;
30
- } else t1 = $[4];
31
- let t2;
32
- if ($[5] !== props || $[6] !== t1) {
33
- t2 = /* @__PURE__ */ jsx(Input$1, {
34
- className: t1,
35
+ const size = t1 === void 0 ? "default" : t1;
36
+ const t2 = size === "lg" && "h-11 px-4.5 md:text-heading-3 md:font-normal";
37
+ let t3;
38
+ if ($[4] !== className || $[5] !== t2) {
39
+ t3 = cnState([inputClasses, t2], className);
40
+ $[4] = className;
41
+ $[5] = t2;
42
+ $[6] = t3;
43
+ } else t3 = $[6];
44
+ let t4;
45
+ if ($[7] !== props || $[8] !== size || $[9] !== t3) {
46
+ t4 = /* @__PURE__ */ jsx(Input$1, {
47
+ "data-size": size,
48
+ className: t3,
35
49
  ...props
36
50
  });
37
- $[5] = props;
38
- $[6] = t1;
39
- $[7] = t2;
40
- } else t2 = $[7];
41
- return t2;
51
+ $[7] = props;
52
+ $[8] = size;
53
+ $[9] = t3;
54
+ $[10] = t4;
55
+ } else t4 = $[10];
56
+ return t4;
42
57
  }
43
- export { Input, inputClasses };
58
+ export { Input, inputClasses, inputLgClasses };
@@ -1,8 +1,57 @@
1
+ import { VariantProps } from "../../utilities/cn/index.js";
1
2
  import { ComponentProps } from "react";
2
3
  import { Meter as Meter$1, MeterIndicator as MeterIndicator$1, MeterLabel as MeterLabel$1, MeterLabelDetails, MeterState, MeterTrack as MeterTrack$1, MeterValue as MeterValue$1, MeterValueState, NumberFormat } from "@ui-sdk/react/meter";
3
- declare function Meter({ className, ...props }: ComponentProps<typeof Meter$1>): import("react").JSX.Element;
4
+ type MeterProps = ComponentProps<typeof Meter$1>;
5
+ declare function Meter({ className, min, max, "aria-describedby": describedBy, ...props }: MeterProps): import("react").JSX.Element;
4
6
  declare function MeterLabel({ className, ...props }: ComponentProps<typeof MeterLabel$1>): import("react").JSX.Element;
5
7
  declare function MeterValue({ className, ...props }: ComponentProps<typeof MeterValue$1>): import("react").JSX.Element;
6
- declare function MeterTrack({ className, ...props }: ComponentProps<typeof MeterTrack$1>): import("react").JSX.Element;
8
+ type MeterTrackProps = ComponentProps<typeof MeterTrack$1> & {
9
+ /**
10
+ * `segmented` draws each segment as one cell per unit with a gap between
11
+ * them, as Alma's seats bar: one cell per seat. The track's own fill is
12
+ * gone, so give what's left its own `empty` segment.
13
+ */
14
+ variant?: "default" | "segmented";
15
+ };
16
+ declare function MeterTrack({ className, variant, ...props }: MeterTrackProps): import("react").JSX.Element;
7
17
  declare function MeterIndicator({ className, ...props }: ComponentProps<typeof MeterIndicator$1>): import("react").JSX.Element;
8
- export { Meter, MeterIndicator, MeterLabel, type MeterLabelDetails, type MeterState, MeterTrack, MeterValue, type MeterValueState, type NumberFormat };
18
+ type MarkProps = Omit<ComponentProps<"span">, "children"> & {
19
+ /** Where it sits, between the meter's `min` and `max`. */
20
+ value: number;
21
+ /**
22
+ * What it means, read with the meter's value ("Alert at 240 USD"). It
23
+ * isn't drawn: show it beside the track if it should be seen.
24
+ */
25
+ label?: string;
26
+ };
27
+ /**
28
+ * A mark across the track at a value, like a spending alert at 80%: an ink
29
+ * line 2px wide that reaches 4px past the track on each side.
30
+ */
31
+ declare function MeterThreshold({ value, label, className, style, ...props }: MarkProps): import("react").JSX.Element;
32
+ /**
33
+ * Where the value is heading, like the month's spending at this pace: a
34
+ * lighter fill from the track's start, behind the value.
35
+ */
36
+ declare function MeterForecast({ value, label, className, style, ...props }: MarkProps): import("react").JSX.Element;
37
+ declare const meterSegmentVariants: (props?: ({
38
+ variant?: "default" | "empty" | "forecast" | "muted" | null | undefined;
39
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
40
+ type MeterSegmentProps = Omit<ComponentProps<"div">, "children"> & VariantProps<typeof meterSegmentVariants> & {
41
+ /** How much of the range it takes, in the meter's units: 6 of 10 seats. */
42
+ value: number;
43
+ };
44
+ /**
45
+ * One part of a stacked bar, in place of the indicator: segments follow each
46
+ * other from the track's start, each as wide as its share of the range.
47
+ * Name each one in a `MeterLegend`, and give the meter the sum as its value.
48
+ */
49
+ declare function MeterSegment({ value, variant, className, style, ...props }: MeterSegmentProps): import("react").JSX.Element;
50
+ /**
51
+ * What each segment is, with its swatch. It describes the meter, so a screen
52
+ * reader hears every segment's name after the value: keep it inside `Meter`.
53
+ */
54
+ declare function MeterLegend({ className, ...props }: ComponentProps<"ul">): import("react").JSX.Element;
55
+ type MeterLegendItemProps = ComponentProps<"li"> & VariantProps<typeof meterSegmentVariants>;
56
+ declare function MeterLegendItem({ variant, className, children, ...props }: MeterLegendItemProps): import("react").JSX.Element;
57
+ export { Meter, MeterForecast, MeterIndicator, MeterLabel, type MeterLabelDetails, MeterLegend, MeterLegendItem, type MeterLegendItemProps, type MeterProps, MeterSegment, type MeterSegmentProps, type MeterState, MeterThreshold, MeterTrack, type MeterTrackProps, MeterValue, type MeterValueState, type NumberFormat, meterSegmentVariants };