@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
@@ -5,8 +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
+ /**
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";
8
15
  type InputProps = Omit<ComponentProps<typeof Input$1>, "size"> & {
9
16
  size?: "default" | "lg";
10
17
  };
11
18
  declare function Input({ className, size, ...props }: InputProps): import("react").JSX.Element;
12
- export { Input, type InputProps, inputClasses };
19
+ export { Input, type InputProps, inputClasses, inputLgClasses };
@@ -33,7 +33,7 @@ function Input(t0) {
33
33
  t1 = $[3];
34
34
  }
35
35
  const size = t1 === void 0 ? "default" : t1;
36
- const t2 = size === "lg" && inputLgClasses;
36
+ const t2 = size === "lg" && "h-11 px-4.5 md:text-heading-3 md:font-normal";
37
37
  let t3;
38
38
  if ($[4] !== className || $[5] !== t2) {
39
39
  t3 = cnState([inputClasses, t2], className);
@@ -55,4 +55,4 @@ function Input(t0) {
55
55
  } else t4 = $[10];
56
56
  return t4;
57
57
  }
58
- 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 };