@asanchez-sa/abby 0.2.0 → 0.4.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 (65) hide show
  1. package/dist/components/alert/alert.d.ts +1 -1
  2. package/dist/components/alert/alert.js +2 -1
  3. package/dist/components/alert-dialog/alert-dialog.d.ts +10 -1
  4. package/dist/components/alert-dialog/alert-dialog.js +80 -3
  5. package/dist/components/badge/badge.d.ts +3 -2
  6. package/dist/components/badge/badge.js +27 -11
  7. package/dist/components/button/button.d.ts +1 -1
  8. package/dist/components/button/button.js +3 -2
  9. package/dist/components/calendar/calendar.d.ts +26 -5
  10. package/dist/components/calendar/calendar.js +387 -72
  11. package/dist/components/chart/chart.d.ts +76 -0
  12. package/dist/components/chart/chart.js +565 -0
  13. package/dist/components/chart/parts/axes.js +126 -0
  14. package/dist/components/chart/parts/frame.d.ts +31 -0
  15. package/dist/components/chart/parts/frame.js +278 -0
  16. package/dist/components/chart/parts/legend.d.ts +16 -0
  17. package/dist/components/chart/parts/legend.js +82 -0
  18. package/dist/components/chart/parts/points.d.ts +1 -0
  19. package/dist/components/chart/parts/points.js +139 -0
  20. package/dist/components/chart/parts/scale.js +139 -0
  21. package/dist/components/chart/parts/table.js +105 -0
  22. package/dist/components/chart/parts/types.d.ts +44 -0
  23. package/dist/components/chart/parts/types.js +8 -0
  24. package/dist/components/dialog/dialog.d.ts +9 -1
  25. package/dist/components/dialog/dialog.js +82 -3
  26. package/dist/components/field/field.d.ts +5 -1
  27. package/dist/components/field/field.js +25 -21
  28. package/dist/components/filter-chip/filter-chip.d.ts +36 -0
  29. package/dist/components/filter-chip/filter-chip.js +97 -0
  30. package/dist/components/graph/graph.d.ts +151 -0
  31. package/dist/components/graph/graph.js +959 -0
  32. package/dist/components/input/input.d.ts +8 -1
  33. package/dist/components/input/input.js +2 -2
  34. package/dist/components/meter/meter.d.ts +52 -3
  35. package/dist/components/meter/meter.js +535 -33
  36. package/dist/components/model-selector/model-selector.d.ts +38 -3
  37. package/dist/components/model-selector/model-selector.js +331 -73
  38. package/dist/components/note-editor/parts/suggestions.js +2 -2
  39. package/dist/components/number-input/number-input.d.ts +14 -3
  40. package/dist/components/number-input/number-input.js +193 -34
  41. package/dist/components/otp-input/otp-input.d.ts +6 -2
  42. package/dist/components/otp-input/otp-input.js +40 -20
  43. package/dist/components/sheet/sheet.js +1 -1
  44. package/dist/components/spinner/spinner.d.ts +7 -1
  45. package/dist/components/spinner/spinner.js +86 -26
  46. package/dist/components/switch/switch.d.ts +9 -2
  47. package/dist/components/switch/switch.js +23 -17
  48. package/dist/components/toast/toast.d.ts +19 -2
  49. package/dist/components/toast/toast.js +211 -49
  50. package/dist/components/toggle/toggle.d.ts +18 -4
  51. package/dist/components/toggle/toggle.js +167 -32
  52. package/dist/components/week-strip/week-strip.d.ts +27 -5
  53. package/dist/components/week-strip/week-strip.js +288 -134
  54. package/package.json +4 -1
  55. package/skills/agent-ready-ui/SKILL.md +1 -1
  56. package/skills/blocks/SKILL.md +1 -1
  57. package/skills/compose-screens/SKILL.md +97 -10
  58. package/skills/compose-screens/references/calendar-week.md +77 -0
  59. package/skills/compose-screens/references/charts-and-maps.md +183 -0
  60. package/skills/compose-screens/references/filter-chips.md +61 -0
  61. package/skills/compose-screens/references/number-units.md +52 -0
  62. package/skills/note-editor/SKILL.md +1 -1
  63. package/skills/note-status/SKILL.md +1 -1
  64. package/skills/setup/SKILL.md +1 -1
  65. package/skills/theming/SKILL.md +1 -1
@@ -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,8 @@ import "../../core/index.js";
2
2
  import { PartProps } from "../../core/ui-sdk.js";
3
3
  import { VariantProps } from "../../utilities/cn/index.js";
4
4
  declare const badgeVariants: (props?: ({
5
- variant?: "default" | "destructive" | "ghost" | "link" | "outline" | "secondary" | null | undefined;
5
+ variant?: "assistant" | "default" | "destructive" | "ghost" | "link" | "outline" | "secondary" | "success" | "warning" | null | undefined;
6
+ shape?: "count" | "pill" | null | undefined;
6
7
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
8
  type BadgeProps = PartProps<"span"> & VariantProps<typeof badgeVariants>;
8
9
  /**
@@ -12,5 +13,5 @@ type BadgeProps = PartProps<"span"> & VariantProps<typeof badgeVariants>;
12
13
  * and a ui-sdk `Button` rendered as a link gives it nothing to press. For a
13
14
  * button, render a ui-sdk `Button` that is a real button.
14
15
  */
15
- declare function Badge({ variant, className, render, ...props }: BadgeProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
16
+ declare function Badge({ variant, shape, className, render, ...props }: BadgeProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
16
17
  export { Badge, type BadgeProps, badgeVariants };
@@ -4,15 +4,27 @@ import "../../core/index.js";
4
4
  import { cnState, cva } from "../../utilities/cn/index.js";
5
5
  // src/components/badge/badge.tsx
6
6
  const badgeVariants = cva("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-colors focus-ring has-data-[icon=inline-end]:pe-1.5 has-data-[icon=inline-start]:ps-1.5 [&>svg]:pointer-events-none [&>svg]:size-3!", {
7
- variants: { variant: {
8
- default: "bg-primary text-primary-foreground [a,button]:hover:bg-primary/85",
9
- secondary: "bg-secondary text-muted-foreground [a,button]:hover:bg-secondary/70",
10
- destructive: "bg-destructive/10 text-destructive [a,button]:hover:bg-destructive [a,button]:hover:text-destructive-foreground",
11
- outline: "border-border text-muted-foreground [a,button]:border-input [a,button]:hover:bg-muted [a,button]:hover:text-muted-foreground",
12
- ghost: "[a,button]:hover:bg-muted [a,button]:hover:text-muted-foreground",
13
- link: "text-primary underline-offset-4 hover:underline"
14
- } },
15
- defaultVariants: { variant: "default" }
7
+ variants: {
8
+ variant: {
9
+ default: "bg-primary text-primary-foreground [a,button]:hover:bg-primary/85",
10
+ secondary: "bg-secondary text-muted-foreground [a,button]:hover:bg-secondary/70",
11
+ destructive: "bg-destructive/10 text-destructive [a,button]:hover:bg-destructive [a,button]:hover:text-destructive-foreground",
12
+ outline: "border-border text-muted-foreground [a,button]:border-input [a,button]:hover:bg-muted [a,button]:hover:text-muted-foreground",
13
+ ghost: "[a,button]:hover:bg-muted [a,button]:hover:text-muted-foreground",
14
+ link: "text-primary underline-offset-4 hover:underline",
15
+ warning: "bg-warning/10 text-warning [a,button]:hover:bg-warning/20",
16
+ success: "bg-success/10 text-success [a,button]:hover:bg-success/20",
17
+ assistant: "bg-assistant/10 text-assistant [a,button]:hover:bg-assistant/20"
18
+ },
19
+ shape: {
20
+ pill: "",
21
+ count: "h-5.5 min-w-5.5 px-1.5 font-semibold tabular-nums"
22
+ }
23
+ },
24
+ defaultVariants: {
25
+ variant: "default",
26
+ shape: "pill"
27
+ }
16
28
  });
17
29
  /**
18
30
  * A short label for a status or a count. `render` makes it a link or a button.
@@ -21,12 +33,16 @@ const badgeVariants = cva("group/badge inline-flex h-5 w-fit shrink-0 items-cent
21
33
  * and a ui-sdk `Button` rendered as a link gives it nothing to press. For a
22
34
  * button, render a ui-sdk `Button` that is a real button.
23
35
  */
24
- function Badge({ variant, className, render, ...props }) {
36
+ function Badge({ variant, shape, className, render, ...props }) {
25
37
  return renderElement("span", {
26
38
  "data-slot": "badge",
27
39
  "data-variant": variant ?? "default",
40
+ "data-shape": shape ?? "pill",
28
41
  ...props,
29
- className: cnState(badgeVariants({ variant }), className)
42
+ className: cnState(badgeVariants({
43
+ variant,
44
+ shape
45
+ }), className)
30
46
  }, render);
31
47
  }
32
48
  export { Badge, badgeVariants };
@@ -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,6 +1,7 @@
1
1
  import { ButtonLook } from "../button/button.js";
2
+ import { WeekStripMark } from "../week-strip/week-strip.js";
2
3
  import { ComponentProps, ReactNode } from "react";
3
- import { Calendar as Calendar$1, CalendarAnchorChangeReason, CalendarChangeOptions, CalendarController, CalendarDay as CalendarDay$1, CalendarDayState, CalendarFocusedChangeReason, CalendarGrid as CalendarGrid$1, CalendarGridCell, CalendarGridState, CalendarHeading as CalendarHeading$1, CalendarHeadingState, CalendarMode, CalendarMonthChangeReason, CalendarMonthSelect as CalendarMonthSelect$1, CalendarOptions, CalendarPrevious as CalendarPrevious$1, CalendarSelectOption, CalendarSelectState, CalendarState, CalendarStepState, CalendarValue, CalendarValueChangeReason, CalendarWeekday as CalendarWeekday$1, CalendarWeekdayState, CalendarWeekdays as CalendarWeekdays$1, CalendarWeeks as CalendarWeeks$1, CalendarYearSelect as CalendarYearSelect$1, DateMatcher, DateMatchers, ISOMonth, createCalendarController } from "@ui-sdk/react/calendar";
4
+ import { Calendar as Calendar$1, CalendarAnchorChangeReason, CalendarChangeOptions, CalendarController, CalendarDay as CalendarDay$1, CalendarDayState, CalendarFocusedChangeReason, CalendarGrid as CalendarGrid$1, CalendarGridCell, CalendarGridState, CalendarHeading as CalendarHeading$1, CalendarHeadingState, CalendarMode as CalendarMode$1, CalendarMonthChangeReason, CalendarMonthSelect as CalendarMonthSelect$1, CalendarOptions, CalendarPrevious as CalendarPrevious$1, CalendarSelectOption, CalendarSelectState, CalendarState, CalendarStepState, CalendarValue, CalendarValueChangeReason, CalendarWeekday as CalendarWeekday$1, CalendarWeekdayState, CalendarWeekdays as CalendarWeekdays$1, CalendarWeeks as CalendarWeeks$1, CalendarYearSelect as CalendarYearSelect$1, DateMatcher, DateMatchers, ISOMonth, createCalendarController } from "@ui-sdk/react/calendar";
4
5
  /**
5
6
  * Previous, the heading and Next share the first row, and anything else takes
6
7
  * a row of its own. `DatePickerContent` lays its calendar out the same way.
@@ -8,8 +9,28 @@ import { Calendar as Calendar$1, CalendarAnchorChangeReason, CalendarChangeOptio
8
9
  declare const calendarLayout = "grid grid-cols-[auto_1fr_auto] items-center gap-y-2 text-sm [--cell-size:--spacing(8)] [&>*:not([data-slot=calendar-previous],[data-slot=calendar-heading],[data-slot=calendar-next])]:col-span-full";
9
10
  /** What a calendar with no children shows: the heading between Previous and Next, and a grid for each month. */
10
11
  declare function calendarParts(months?: number): ReactNode;
11
- /** Without children it renders the heading, Previous, Next and a grid for each of its `months`. */
12
- declare function Calendar({ className, children, ...props }: ComponentProps<typeof Calendar$1>): import("react").JSX.Element;
12
+ /** How a calendar selects: ui-sdk's three modes, and abby's `"week"`. */
13
+ type CalendarMode = CalendarMode$1 | "week";
14
+ type CalendarProps = Omit<ComponentProps<typeof Calendar$1>, "mode"> & {
15
+ /**
16
+ * What a press selects. `"week"` is abby's own (ui-sdk has no such mode): one
17
+ * press picks the whole week, and the value is the `[start, end]` range of 7
18
+ * days that starts on the calendar's first day of the week, however it was
19
+ * set. ui-sdk gets `mode="range"`.
20
+ */
21
+ mode?: CalendarMode;
22
+ /**
23
+ * What each day says, as in `WeekStrip`: under the day number it draws the
24
+ * first tone of `dots`, or the `check`. `label`, `corner` and `bar` are
25
+ * ignored. The `description` is read after the date.
26
+ */
27
+ marks?: (date: string) => WeekStripMark | undefined;
28
+ };
29
+ /**
30
+ * Without children it renders the heading, Previous, Next and a grid for each of
31
+ * its `months`. `mode="week"` and `marks` are abby's own on top of ui-sdk's calendar.
32
+ */
33
+ declare function Calendar({ className, children, mode, marks, controller, value, defaultValue, onValueChange, onAnchorChange, ...props }: CalendarProps): import("react").JSX.Element;
13
34
  declare function CalendarHeading({ className, ...props }: ComponentProps<typeof CalendarHeading$1>): import("react").JSX.Element;
14
35
  type CalendarStepProps = ComponentProps<typeof CalendarPrevious$1> & ButtonLook;
15
36
  /** A ghost icon button. Without children it draws an arrow, which follows the reading direction. */
@@ -25,5 +46,5 @@ declare function CalendarWeekdays({ children, ...props }: ComponentProps<typeof
25
46
  declare function CalendarWeekday({ className, ...props }: ComponentProps<typeof CalendarWeekday$1>): import("react").JSX.Element;
26
47
  /** Without children it renders a `CalendarDay` in each cell. */
27
48
  declare function CalendarWeeks({ children, ...props }: ComponentProps<typeof CalendarWeeks$1>): import("react").JSX.Element;
28
- declare function CalendarDay({ className, ...props }: ComponentProps<typeof CalendarDay$1>): import("react").JSX.Element;
29
- export { Calendar, type CalendarAnchorChangeReason, type CalendarChangeOptions, type CalendarController, CalendarDay, type CalendarDayState, type CalendarFocusedChangeReason, CalendarGrid, type CalendarGridCell, type CalendarGridState, CalendarHeading, type CalendarHeadingState, type CalendarMode, type CalendarMonthChangeReason, CalendarMonthSelect, CalendarNext, type CalendarOptions, CalendarPrevious, type CalendarSelectOption, type CalendarSelectState, type CalendarState, type CalendarStepProps, type CalendarStepState, type CalendarValue, type CalendarValueChangeReason, CalendarWeekday, type CalendarWeekdayState, CalendarWeekdays, CalendarWeeks, CalendarYearSelect, type DateMatcher, type DateMatchers, type ISOMonth, calendarLayout, calendarParts, createCalendarController };
49
+ declare function CalendarDay({ className, children, value, "aria-describedby": describedBy, ...props }: ComponentProps<typeof CalendarDay$1>): import("react").JSX.Element;
50
+ export { Calendar, type CalendarAnchorChangeReason, type CalendarChangeOptions, type CalendarController, CalendarDay, type CalendarDayState, type CalendarFocusedChangeReason, CalendarGrid, type CalendarGridCell, type CalendarGridState, CalendarHeading, type CalendarHeadingState, type CalendarMode, type CalendarMonthChangeReason, CalendarMonthSelect, CalendarNext, type CalendarOptions, CalendarPrevious, type CalendarProps, type CalendarSelectOption, type CalendarSelectState, type CalendarState, type CalendarStepProps, type CalendarStepState, type CalendarValue, type CalendarValueChangeReason, CalendarWeekday, type CalendarWeekdayState, CalendarWeekdays, CalendarWeeks, CalendarYearSelect, type DateMatcher, type DateMatchers, type ISOMonth, calendarLayout, calendarParts, createCalendarController };