@asanchez-sa/abby 0.1.2 → 0.2.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 (120) hide show
  1. package/README.md +1 -1
  2. package/dist/agents/approvals.d.ts +4 -4
  3. package/dist/agents/changes.d.ts +4 -4
  4. package/dist/agents/hooks.d.ts +3 -3
  5. package/dist/agents/index.d.ts +2 -7
  6. package/dist/agents/index.js +2 -5
  7. package/dist/agents/run-tool.d.ts +2 -2
  8. package/dist/agents/ui-sdk.d.ts +3 -5
  9. package/dist/agents/ui-sdk.js +3 -3
  10. package/dist/behaviors/lists/index.d.ts +2 -3
  11. package/dist/behaviors/lists/index.js +1 -3
  12. package/dist/behaviors/lists/ui-sdk.d.ts +2 -2
  13. package/dist/behaviors/lists/ui-sdk.js +3 -3
  14. package/dist/behaviors/popups/index.d.ts +2 -3
  15. package/dist/behaviors/popups/index.js +1 -3
  16. package/dist/behaviors/popups/ui-sdk.d.ts +2 -2
  17. package/dist/behaviors/popups/ui-sdk.js +3 -3
  18. package/dist/behaviors/preferences/index.d.ts +2 -3
  19. package/dist/behaviors/preferences/index.js +1 -3
  20. package/dist/behaviors/preferences/ui-sdk.d.ts +2 -2
  21. package/dist/behaviors/preferences/ui-sdk.js +3 -3
  22. package/dist/behaviors/transitions/index.d.ts +2 -3
  23. package/dist/behaviors/transitions/index.js +1 -3
  24. package/dist/behaviors/transitions/ui-sdk.d.ts +2 -2
  25. package/dist/behaviors/transitions/ui-sdk.js +3 -3
  26. package/dist/components/alert/alert.d.ts +3 -2
  27. package/dist/components/alert/alert.js +3 -2
  28. package/dist/components/attachment/attachment.d.ts +3 -2
  29. package/dist/components/attachment/attachment.js +3 -2
  30. package/dist/components/badge/badge.d.ts +3 -2
  31. package/dist/components/badge/badge.js +3 -2
  32. package/dist/components/bubble/bubble.d.ts +3 -2
  33. package/dist/components/bubble/bubble.js +3 -2
  34. package/dist/components/button-group/button-group.d.ts +4 -3
  35. package/dist/components/button-group/button-group.js +4 -3
  36. package/dist/components/card/card.d.ts +3 -2
  37. package/dist/components/card/card.js +3 -2
  38. package/dist/components/choice-cards/choice-cards.d.ts +4 -3
  39. package/dist/components/choice-cards/choice-cards.js +4 -3
  40. package/dist/components/command-dock/command-dock.d.ts +4 -4
  41. package/dist/components/command-dock/command-dock.js +9 -9
  42. package/dist/components/empty/empty.d.ts +3 -2
  43. package/dist/components/empty/empty.js +3 -2
  44. package/dist/components/input/input.d.ts +5 -2
  45. package/dist/components/input/input.js +32 -17
  46. package/dist/components/input-group/input-group.d.ts +5 -4
  47. package/dist/components/input-group/input-group.js +5 -4
  48. package/dist/components/item/item.d.ts +3 -2
  49. package/dist/components/item/item.js +3 -2
  50. package/dist/components/link/link.d.ts +3 -2
  51. package/dist/components/link/link.js +4 -4
  52. package/dist/components/marker/marker.d.ts +3 -2
  53. package/dist/components/marker/marker.js +3 -2
  54. package/dist/components/message-scroller/message-scroller.d.ts +7 -6
  55. package/dist/components/message-scroller/message-scroller.js +8 -8
  56. package/dist/components/model-selector/model-selector.js +9 -9
  57. package/dist/components/native-select/native-select.js +4 -4
  58. package/dist/components/note-editor/note-editor.js +5 -5
  59. package/dist/components/otp-input/otp-input.d.ts +8 -2
  60. package/dist/components/otp-input/otp-input.js +35 -20
  61. package/dist/components/questionnaire/questionnaire.d.ts +11 -11
  62. package/dist/components/questionnaire/questionnaire.js +13 -13
  63. package/dist/components/sidebar/sidebar.d.ts +4 -4
  64. package/dist/components/sidebar/sidebar.js +10 -9
  65. package/dist/components/table-of-contents/table-of-contents.d.ts +4 -4
  66. package/dist/components/table-of-contents/table-of-contents.js +5 -5
  67. package/dist/components/team-mark/team-mark.d.ts +26 -0
  68. package/dist/components/team-mark/team-mark.js +101 -0
  69. package/dist/components/toolbar/toolbar.d.ts +3 -2
  70. package/dist/components/toolbar/toolbar.js +7 -5
  71. package/dist/components/week-strip/week-strip.d.ts +7 -7
  72. package/dist/components/week-strip/week-strip.js +32 -31
  73. package/dist/core/index.d.ts +2 -6
  74. package/dist/core/index.js +2 -26
  75. package/dist/core/ui-sdk.d.ts +2 -2
  76. package/dist/core/ui-sdk.js +3 -3
  77. package/dist/tools/observe/index.d.ts +2 -2
  78. package/dist/tools/observe/index.js +1 -3
  79. package/dist/tools/observe/ui-sdk.d.ts +2 -1
  80. package/dist/tools/observe/ui-sdk.js +1 -2
  81. package/dist/tools/testing/check-agent.d.ts +4 -3
  82. package/dist/tools/testing/index.d.ts +2 -3
  83. package/dist/tools/testing/index.js +3 -4
  84. package/dist/tools/testing/ui-sdk.d.ts +2 -1
  85. package/dist/tools/testing/ui-sdk.js +1 -2
  86. package/dist/utilities/color/index.d.ts +2 -2
  87. package/dist/utilities/color/index.js +1 -3
  88. package/dist/utilities/color/ui-sdk.d.ts +2 -1
  89. package/dist/utilities/color/ui-sdk.js +1 -2
  90. package/dist/utilities/date/index.d.ts +2 -2
  91. package/dist/utilities/date/index.js +1 -6
  92. package/dist/utilities/date/ui-sdk.d.ts +2 -1
  93. package/dist/utilities/date/ui-sdk.js +1 -2
  94. package/dist/utilities/image/index.d.ts +2 -2
  95. package/dist/utilities/image/index.js +1 -3
  96. package/dist/utilities/image/ui-sdk.d.ts +2 -1
  97. package/dist/utilities/image/ui-sdk.js +1 -2
  98. package/dist/utilities/number/index.d.ts +2 -2
  99. package/dist/utilities/number/index.js +1 -3
  100. package/dist/utilities/number/ui-sdk.d.ts +2 -1
  101. package/dist/utilities/number/ui-sdk.js +1 -2
  102. package/dist/utilities/platform/index.d.ts +2 -3
  103. package/dist/utilities/platform/index.js +1 -14
  104. package/dist/utilities/platform/ui-sdk.d.ts +2 -2
  105. package/dist/utilities/platform/ui-sdk.js +3 -3
  106. package/dist/utilities/text/index.d.ts +2 -3
  107. package/dist/utilities/text/index.js +1 -3
  108. package/dist/utilities/text/ui-sdk.d.ts +2 -2
  109. package/dist/utilities/text/ui-sdk.js +3 -3
  110. package/package.json +2 -1
  111. package/skills/agent-ready-ui/SKILL.md +1 -1
  112. package/skills/blocks/SKILL.md +1 -1
  113. package/skills/compose-screens/SKILL.md +40 -1
  114. package/skills/note-editor/SKILL.md +1 -1
  115. package/skills/note-status/SKILL.md +1 -1
  116. package/skills/setup/SKILL.md +1 -1
  117. package/skills/theming/SKILL.md +1 -1
  118. package/src/blocks/shell/parts/marks.tsx +18 -4
  119. package/src/blocks/shell/parts/rail.tsx +7 -7
  120. package/dist/_virtual/_rolldown/runtime.js +0 -26
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { cnState } from "../../utilities/cn/index.js";
2
+ import { cnState, cva } from "../../utilities/cn/index.js";
3
3
  import { c } from "react/compiler-runtime";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  import { OTPInput as OTPInput$1, OTPInputGroup as OTPInputGroup$1, OTPInputSeparator as OTPInputSeparator$1, OTPInputSlot as OTPInputSlot$1, createOTPInputController } from "@ui-sdk/react/otp-input";
@@ -19,7 +19,7 @@ function OTPInput(t0) {
19
19
  }
20
20
  let t1;
21
21
  if ($[3] !== className) {
22
- t1 = cnState("group/otp-input flex w-fit items-center gap-2 data-disabled:cursor-not-allowed data-disabled:opacity-50", className);
22
+ t1 = cnState("group/otp-input flex w-fit items-center gap-2 data-disabled:cursor-not-allowed data-disabled:opacity-50 has-data-[size=lg]:gap-3", className);
23
23
  $[3] = className;
24
24
  $[4] = t1;
25
25
  } else t1 = $[4];
@@ -50,7 +50,7 @@ function OTPInputGroup(t0) {
50
50
  }
51
51
  let t1;
52
52
  if ($[3] !== className) {
53
- t1 = cnState("flex items-center gap-1.5", className);
53
+ t1 = cnState("flex items-center gap-1.5 has-data-[size=lg]:gap-2", className);
54
54
  $[3] = className;
55
55
  $[4] = t1;
56
56
  } else t1 = $[4];
@@ -66,41 +66,56 @@ function OTPInputGroup(t0) {
66
66
  } else t2 = $[7];
67
67
  return t2;
68
68
  }
69
+ const otpInputSlotVariants = cva("relative flex items-center justify-center rounded-full border border-input bg-transparent transition-colors focus-outline group-has-aria-invalid/otp-input:border-destructive group-has-aria-invalid/otp-input:ring-3 group-has-aria-invalid/otp-input:ring-destructive/20 after:pointer-events-none after:absolute after:hidden after:w-px after:bg-foreground data-active:focus-mark data-disabled:bg-input/50 data-fake-caret:after:block data-fake-caret:after:caret-blink dark:bg-input/30", {
70
+ variants: { size: {
71
+ default: "size-9 text-base after:h-4 md:text-sm",
72
+ lg: "size-12 text-xl leading-6 tabular-nums after:h-5"
73
+ } },
74
+ defaultVariants: { size: "default" }
75
+ });
69
76
  /**
70
77
  * One cell, with the look of `Input`: a one-character field, so a circle. The one real input sits over all the
71
78
  * cells and takes focus, so the active cell draws the focus ring and the
72
- * caret itself.
79
+ * caret itself. `size="lg"` is the 48px cell of a screen that asks only for
80
+ * the code; the default stays at a field's 36px.
73
81
  */
74
82
  function OTPInputSlot(t0) {
75
- const $ = c(8);
83
+ const $ = c(11);
76
84
  let className;
77
85
  let props;
86
+ let size;
78
87
  if ($[0] !== t0) {
79
- ({className, ...props} = t0);
88
+ ({className, size, ...props} = t0);
80
89
  $[0] = t0;
81
90
  $[1] = className;
82
91
  $[2] = props;
92
+ $[3] = size;
83
93
  } else {
84
94
  className = $[1];
85
95
  props = $[2];
96
+ size = $[3];
86
97
  }
87
- let t1;
88
- if ($[3] !== className) {
89
- t1 = cnState("relative flex size-9 items-center justify-center rounded-full border border-input bg-transparent text-base transition-colors focus-outline group-has-aria-invalid/otp-input:border-destructive group-has-aria-invalid/otp-input:ring-3 group-has-aria-invalid/otp-input:ring-destructive/20 after:pointer-events-none after:absolute after:hidden after:h-4 after:w-px after:bg-foreground data-active:focus-mark data-disabled:bg-input/50 data-fake-caret:after:block data-fake-caret:after:caret-blink md:text-sm dark:bg-input/30", className);
90
- $[3] = className;
91
- $[4] = t1;
92
- } else t1 = $[4];
98
+ const t1 = size ?? "default";
93
99
  let t2;
94
- if ($[5] !== props || $[6] !== t1) {
95
- t2 = /* @__PURE__ */ jsx(OTPInputSlot$1, {
96
- className: t1,
100
+ if ($[4] !== className || $[5] !== size) {
101
+ t2 = cnState(otpInputSlotVariants({ size }), className);
102
+ $[4] = className;
103
+ $[5] = size;
104
+ $[6] = t2;
105
+ } else t2 = $[6];
106
+ let t3;
107
+ if ($[7] !== props || $[8] !== t1 || $[9] !== t2) {
108
+ t3 = /* @__PURE__ */ jsx(OTPInputSlot$1, {
109
+ "data-size": t1,
110
+ className: t2,
97
111
  ...props
98
112
  });
99
- $[5] = props;
100
- $[6] = t1;
101
- $[7] = t2;
102
- } else t2 = $[7];
103
- return t2;
113
+ $[7] = props;
114
+ $[8] = t1;
115
+ $[9] = t2;
116
+ $[10] = t3;
117
+ } else t3 = $[10];
118
+ return t3;
104
119
  }
105
120
  function OTPInputSeparator(t0) {
106
121
  const $ = c(8);
@@ -1,5 +1,5 @@
1
- import { index_d_exports } from "../../core/index.js";
2
- import { ChangeDetails } from "../../core/ui-sdk.js";
1
+ import "../../core/index.js";
2
+ import { ChangeDetails, PartProps } from "../../core/ui-sdk.js";
3
3
  import { ButtonLook } from "../button/button.js";
4
4
  import { Input } from "../input/input.js";
5
5
  import { ComponentProps, FormEventHandler, ReactNode } from "react";
@@ -95,7 +95,7 @@ declare function useQuestionnaire(): {
95
95
  submit: () => void;
96
96
  reset: () => void | undefined;
97
97
  };
98
- type QuestionnaireProps = QuestionnaireOptions & Omit<index_d_exports.PartProps<"form", QuestionnaireProgressState>, "onSubmit" | "onReset"> & {
98
+ type QuestionnaireProps = QuestionnaireOptions & Omit<PartProps<"form", QuestionnaireProgressState>, "onSubmit" | "onReset"> & {
99
99
  /** Names the form for screen readers and agents. Set it in the page's language. */
100
100
  label?: string;
101
101
  /** Runs on submit, once every enabled item is valid. */
@@ -104,13 +104,13 @@ type QuestionnaireProps = QuestionnaireOptions & Omit<index_d_exports.PartProps<
104
104
  onReset?: FormEventHandler<HTMLFormElement>;
105
105
  };
106
106
  declare function Questionnaire({ item, defaultItem, onItemChange, values, defaultValues, onValuesChange, items, shortcuts, noValidate, label, onSubmit, onReset, className, children, ...props }: QuestionnaireProps): import("react").JSX.Element | null;
107
- type QuestionnaireProgressProps = index_d_exports.PartProps<"div", QuestionnaireProgressState> & {
107
+ type QuestionnaireProgressProps = PartProps<"div", QuestionnaireProgressState> & {
108
108
  /** Names the progress bar. Set it in the page's language. */
109
109
  label?: string;
110
110
  };
111
111
  /** "Question 1 of 3", counting the enabled items. Children replace the text. */
112
112
  declare function QuestionnaireProgress({ label, className, children, ...props }: QuestionnaireProgressProps): import("react").JSX.Element | null;
113
- type QuestionnaireItemProps = Omit<index_d_exports.PartProps<"fieldset", QuestionnaireItemState>, "name"> & {
113
+ type QuestionnaireItemProps = Omit<PartProps<"fieldset", QuestionnaireItemState>, "name"> & {
114
114
  /** Identifies the item, and names the form field its answers submit under. */
115
115
  name: string;
116
116
  /** Requires an answer, and takes Skip away. */
@@ -126,14 +126,14 @@ type QuestionnaireItemProps = Omit<index_d_exports.PartProps<"fieldset", Questio
126
126
  };
127
127
  declare function QuestionnaireItem({ name, required, multiple, disabled, invalid, onStatusChange, className, children, ...props }: QuestionnaireItemProps): import("react").JSX.Element | null;
128
128
  /** The question, and the name of its answers. */
129
- declare function QuestionnaireTitle({ className, ...props }: index_d_exports.PartProps<"legend">): import("react").JSX.Element | null;
130
- declare function QuestionnaireDescription({ className, ...props }: index_d_exports.PartProps<"p">): import("react").JSX.Element | null;
131
- type QuestionnaireChoicesProps = Omit<index_d_exports.PartProps<"div", QuestionnaireChoicesState>, "children"> & {
129
+ declare function QuestionnaireTitle({ className, ...props }: PartProps<"legend">): import("react").JSX.Element | null;
130
+ declare function QuestionnaireDescription({ className, ...props }: PartProps<"p">): import("react").JSX.Element | null;
131
+ type QuestionnaireChoicesProps = Omit<PartProps<"div", QuestionnaireChoicesState>, "children"> & {
132
132
  children?: ReactNode;
133
133
  };
134
134
  /** The item's choices: a radio group, or a group of checkboxes in an item with `multiple`. */
135
135
  declare function QuestionnaireChoices({ className, children, ...props }: QuestionnaireChoicesProps): import("react").JSX.Element | null;
136
- type QuestionnaireChoiceProps = Omit<index_d_exports.PartProps<"label", QuestionnaireChoiceState>, "children" | "value"> & {
136
+ type QuestionnaireChoiceProps = Omit<PartProps<"label", QuestionnaireChoiceState>, "children" | "value"> & {
137
137
  /** What the item's answer becomes when this choice is checked. */
138
138
  value: string;
139
139
  disabled?: boolean;
@@ -159,10 +159,10 @@ declare function QuestionnaireInput({ className, disabled, ...props }: Questionn
159
159
  * Shows once the item fails validation. Without children it says what the
160
160
  * item needs; children replace the message.
161
161
  */
162
- declare function QuestionnaireError({ className, children, ...props }: index_d_exports.PartProps<"p", QuestionnaireErrorState>): import("react").JSX.Element | null;
162
+ declare function QuestionnaireError({ className, children, ...props }: PartProps<"p", QuestionnaireErrorState>): import("react").JSX.Element | null;
163
163
  /** The row of navigation buttons: Previous at the start, the rest at the end. */
164
164
  declare function QuestionnaireActions({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
165
- type QuestionnaireActionProps = index_d_exports.PartProps<"button", QuestionnaireActionState> & ButtonLook;
165
+ type QuestionnaireActionProps = PartProps<"button", QuestionnaireActionState> & ButtonLook;
166
166
  /** Back one item. Hidden on the first. */
167
167
  declare function QuestionnairePrevious(props: QuestionnaireActionProps): import("react").JSX.Element | null;
168
168
  /** Leaves an optional item unanswered on purpose. Hidden on a required one. */
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { checkedAttrs, createChange, definePrimitive, elements, idPart } from "../../core/ui-sdk.js";
2
+ import { checkedAttrs, createChange, definePrimitive, elements, idPart, usePart, usePrimitive } from "../../core/ui-sdk.js";
3
3
  import { usePrimitiveState } from "../../core/use-primitive-state.js";
4
- import { core_exports } from "../../core/index.js";
4
+ import "../../core/index.js";
5
5
  import { cn, cnState } from "../../utilities/cn/index.js";
6
6
  import "../../utilities/platform/index.js";
7
7
  import { buttonVariants } from "../button/button.js";
@@ -755,7 +755,7 @@ function Questionnaire(t0) {
755
755
  $[24] = values;
756
756
  $[25] = t2;
757
757
  } else t2 = $[25];
758
- const handle = (0, core_exports.usePrimitive)(questionnaire, t2);
758
+ const handle = usePrimitive(questionnaire, t2);
759
759
  let t3;
760
760
  if ($[26] === Symbol.for("react.memo_cache_sentinel")) {
761
761
  t3 = {};
@@ -819,7 +819,7 @@ function Questionnaire(t0) {
819
819
  $[44] = t9;
820
820
  $[45] = t10;
821
821
  } else t10 = $[45];
822
- return (0, core_exports.usePart)(handle, "root", t3, t10, "form");
822
+ return usePart(handle, "root", t3, t10, "form");
823
823
  }
824
824
  /** "Question 1 of 3", counting the enabled items. Children replace the text. */
825
825
  function QuestionnaireProgress(t0) {
@@ -881,7 +881,7 @@ function QuestionnaireProgress(t0) {
881
881
  $[13] = t4;
882
882
  $[14] = t5;
883
883
  } else t5 = $[14];
884
- return (0, core_exports.usePart)(questionnaire, "progress", t2, t5, "div");
884
+ return usePart(questionnaire, "progress", t2, t5, "div");
885
885
  }
886
886
  function QuestionnaireItem(t0) {
887
887
  const $ = c(29);
@@ -976,7 +976,7 @@ function QuestionnaireItem(t0) {
976
976
  $[27] = t7;
977
977
  $[28] = t8;
978
978
  } else t8 = $[28];
979
- return (0, core_exports.usePart)(questionnaire, "item", t5, t8, "fieldset");
979
+ return usePart(questionnaire, "item", t5, t8, "fieldset");
980
980
  }
981
981
  /** The question, and the name of its answers. */
982
982
  function QuestionnaireTitle(t0) {
@@ -1015,7 +1015,7 @@ function QuestionnaireTitle(t0) {
1015
1015
  $[8] = t2;
1016
1016
  $[9] = t3;
1017
1017
  } else t3 = $[9];
1018
- return (0, core_exports.usePart)(questionnaire, "title", t1, t3, "legend");
1018
+ return usePart(questionnaire, "title", t1, t3, "legend");
1019
1019
  }
1020
1020
  function QuestionnaireDescription(t0) {
1021
1021
  const $ = c(10);
@@ -1053,7 +1053,7 @@ function QuestionnaireDescription(t0) {
1053
1053
  $[8] = t2;
1054
1054
  $[9] = t3;
1055
1055
  } else t3 = $[9];
1056
- return (0, core_exports.usePart)(questionnaire, "description", t1, t3, "p");
1056
+ return usePart(questionnaire, "description", t1, t3, "p");
1057
1057
  }
1058
1058
  /** The item's choices: a radio group, or a group of checkboxes in an item with `multiple`. */
1059
1059
  function QuestionnaireChoices(t0) {
@@ -1140,7 +1140,7 @@ function QuestionnaireChoices(t0) {
1140
1140
  $[17] = t3;
1141
1141
  $[18] = t4;
1142
1142
  } else t4 = $[18];
1143
- return (0, core_exports.usePart)(questionnaire, "choices", t1, t4, "div");
1143
+ return usePart(questionnaire, "choices", t1, t4, "div");
1144
1144
  }
1145
1145
  /**
1146
1146
  * One answer: a radio, or a checkbox in an item with `multiple`, with its text.
@@ -1287,7 +1287,7 @@ function QuestionnaireChoice(t0) {
1287
1287
  $[32] = t6;
1288
1288
  $[33] = t7;
1289
1289
  } else t7 = $[33];
1290
- return (0, core_exports.usePart)(questionnaire, "choice", t4, t7, "label");
1290
+ return usePart(questionnaire, "choice", t4, t7, "label");
1291
1291
  }
1292
1292
  /** More about a choice, under its text. Put it directly inside `QuestionnaireChoice`. */
1293
1293
  function _temp(child) {
@@ -1391,7 +1391,7 @@ function QuestionnaireInput(t0) {
1391
1391
  $[14] = scope.name;
1392
1392
  $[15] = t2;
1393
1393
  } else t2 = $[15];
1394
- return (0, core_exports.usePart)(questionnaire, "input", t1, t2, "div");
1394
+ return usePart(questionnaire, "input", t1, t2, "div");
1395
1395
  }
1396
1396
  /**
1397
1397
  * Shows once the item fails validation. Without children it says what the
@@ -1447,7 +1447,7 @@ function QuestionnaireError(t0) {
1447
1447
  $[13] = t3;
1448
1448
  $[14] = t4;
1449
1449
  } else t4 = $[14];
1450
- return (0, core_exports.usePart)(questionnaire, "error", t1, t4, "p");
1450
+ return usePart(questionnaire, "error", t1, t4, "p");
1451
1451
  }
1452
1452
  /** The row of navigation buttons: Previous at the start, the rest at the end. */
1453
1453
  function _temp2(state) {
@@ -1524,7 +1524,7 @@ function useAction(slot, text, defaults, place, t0) {
1524
1524
  variant: t1,
1525
1525
  size: t2
1526
1526
  };
1527
- t5 = core_exports.usePart;
1527
+ t5 = usePart;
1528
1528
  t6 = questionnaire;
1529
1529
  t7 = slot;
1530
1530
  if ($[17] === Symbol.for("react.memo_cache_sentinel")) {
@@ -1,5 +1,5 @@
1
- import { index_d_exports } from "../../core/index.js";
2
- import { ChangeDetails } from "../../core/ui-sdk.js";
1
+ import "../../core/index.js";
2
+ import { ChangeDetails, PartProps } from "../../core/ui-sdk.js";
3
3
  import { VariantProps } from "../../utilities/cn/index.js";
4
4
  import { Input } from "../input/input.js";
5
5
  import { Separator } from "../separator/separator.js";
@@ -30,7 +30,7 @@ declare function useSidebar(): {
30
30
  setOpenMobile: (openMobile: boolean) => void;
31
31
  toggleSidebar: (event?: Event) => void;
32
32
  };
33
- type SidebarProviderProps = SidebarOptions & index_d_exports.PartProps<"div"> & {
33
+ type SidebarProviderProps = SidebarOptions & PartProps<"div"> & {
34
34
  /** The keys that expand and collapse the sidebar. Pass `null` for none. */
35
35
  shortcut?: string | null;
36
36
  /** Names the layout for screen readers and agents. Set it in the page's language. */
@@ -53,7 +53,7 @@ type SidebarProps = Omit<ComponentProps<"div">, "children"> & {
53
53
  children?: ReactNode;
54
54
  };
55
55
  declare function Sidebar({ side, variant, collapsible, peek, label, className, children, ...props }: SidebarProps): import("react").JSX.Element | null;
56
- type SidebarTriggerProps = index_d_exports.PartProps<"button"> & {
56
+ type SidebarTriggerProps = PartProps<"button"> & {
57
57
  /** The button's accessible name. Set it in the page's language. */
58
58
  label?: string;
59
59
  };
@@ -1,14 +1,15 @@
1
1
  "use client";
2
- import { createChange, definePrimitive, openAttrs } from "../../core/ui-sdk.js";
2
+ import { createChange, definePrimitive, openAttrs, usePart, usePrimitive } from "../../core/ui-sdk.js";
3
3
  import { usePrimitiveState } from "../../core/use-primitive-state.js";
4
- import { core_exports } from "../../core/index.js";
4
+ import "../../core/index.js";
5
5
  import { cn, cnState, cva } from "../../utilities/cn/index.js";
6
- import { platform_exports } from "../../utilities/platform/index.js";
6
+ import "../../utilities/platform/index.js";
7
7
  import { buttonVariants } from "../button/button.js";
8
8
  import { Icon } from "../icon/icon.js";
9
9
  import { Input } from "../input/input.js";
10
10
  import { LinkPart } from "../link/link.js";
11
11
  import { Separator } from "../separator/separator.js";
12
+ import { useShortcut } from "../../utilities/platform/ui-sdk.js";
12
13
  import { Sheet, SheetContent, SheetHeader, SheetTitle } from "../sheet/sheet.js";
13
14
  import { Skeleton } from "../skeleton/skeleton.js";
14
15
  import { TooltipContent as TooltipContent$1 } from "../tooltip/tooltip.js";
@@ -218,7 +219,7 @@ function SidebarProvider(t0) {
218
219
  $[12] = open;
219
220
  $[13] = t3;
220
221
  } else t3 = $[13];
221
- const handle = (0, core_exports.usePrimitive)(sidebar, t3);
222
+ const handle = usePrimitive(sidebar, t3);
222
223
  let t4;
223
224
  if ($[14] !== handle.api) {
224
225
  t4 = () => handle.api.toggle();
@@ -230,7 +231,7 @@ function SidebarProvider(t0) {
230
231
  t5 = { description: "Toggle sidebar" };
231
232
  $[16] = t5;
232
233
  } else t5 = $[16];
233
- (0, platform_exports.useShortcut)(shortcut, t4, t5);
234
+ useShortcut(shortcut, t4, t5);
234
235
  let t6;
235
236
  if ($[17] === Symbol.for("react.memo_cache_sentinel")) {
236
237
  t6 = {};
@@ -281,7 +282,7 @@ function SidebarProvider(t0) {
281
282
  $[29] = t9;
282
283
  $[30] = t10;
283
284
  } else t10 = $[30];
284
- return (0, core_exports.usePart)(handle, "root", t6, t10, "div");
285
+ return usePart(handle, "root", t6, t10, "div");
285
286
  }
286
287
  const surface = "[--accent:var(--sidebar-accent)] [--focus-ring:var(--sidebar-ring)]";
287
288
  const peekPanel = cn("relative isolate w-[calc(var(--sidebar-width)-var(--sidebar-width-icon))] shrink-0 transition-[opacity,translate,visibility] ease-out motion-reduce:transition-none", "duration-popup delay-[calc(var(--transition-duration-expand)-var(--transition-duration-popup))] motion-reduce:delay-0", "md:group-data-closed:mb-2 md:group-data-closed:h-auto md:group-data-closed:w-[calc(var(--sidebar-width)-var(--sidebar-width-icon)-(--spacing(2)))] md:group-data-closed:bg-transparent", "before:pointer-events-none before:absolute before:inset-0 before:-z-10 before:rounded-xl before:border before:border-border before:bg-background before:opacity-0 before:shadow-md before:transition-[opacity] before:[transition-duration:0s] md:group-data-closed:before:opacity-100 md:group-data-closed:before:delay-(--transition-duration-quick)", "md:group-[[data-closed]:not([data-peek])]:invisible md:group-[[data-closed]:not([data-peek])]:-translate-x-2 md:group-[[data-closed]:not([data-peek])]:opacity-0 md:group-[[data-closed]:not([data-peek])]:delay-0 md:group-[[data-closed]:not([data-peek])]:duration-quick rtl:md:group-[[data-closed]:not([data-peek])]:translate-x-2", "md:group-data-peek:delay-0 md:group-data-peek:duration-popup");
@@ -357,7 +358,7 @@ function Sidebar({ side = "left", variant = "sidebar", collapsible = "offcanvas"
357
358
  }), children]
358
359
  })
359
360
  });
360
- return (0, core_exports.usePart)(sidebar, "panel", {
361
+ return usePart(sidebar, "panel", {
361
362
  side,
362
363
  variant,
363
364
  collapsible
@@ -450,7 +451,7 @@ function useTriggerGlide(handle) {
450
451
  }
451
452
  function SidebarTrigger({ label = "Toggle Sidebar", className, children, ref, ...props }) {
452
453
  const glide = useTriggerGlide(useSidebarHandle());
453
- return (0, core_exports.usePart)(sidebar, "trigger", {}, {
454
+ return usePart(sidebar, "trigger", {}, {
454
455
  "aria-label": label,
455
456
  className: cnState(buttonVariants({
456
457
  variant: "ghost",
@@ -509,7 +510,7 @@ function SidebarRail(t0) {
509
510
  $[9] = t3;
510
511
  $[10] = t4;
511
512
  } else t4 = $[10];
512
- return (0, core_exports.usePart)(sidebar, "rail", t2, t4, "button");
513
+ return usePart(sidebar, "rail", t2, t4, "button");
513
514
  }
514
515
  function SidebarInset(t0) {
515
516
  const $ = c(8);
@@ -1,5 +1,5 @@
1
- import { ChangeDetails } from "../../core/ui-sdk.js";
2
- import { index_d_exports } from "../../core/index.js";
1
+ import { ChangeDetails, PartProps } from "../../core/ui-sdk.js";
2
+ import "../../core/index.js";
3
3
  import { LinkPartProps } from "../link/link.js";
4
4
  import { ComponentProps, ReactNode, RefObject } from "react";
5
5
  /** How the list marks where the reader is. */
@@ -27,7 +27,7 @@ type TableOfContentsOptions = {
27
27
  /** The element that scrolls, when it isn't the page: a panel, or a scroll area's viewport. */
28
28
  root?: TableOfContentsScroller;
29
29
  };
30
- type TableOfContentsProps = TableOfContentsOptions & Omit<index_d_exports.PartProps<"nav">, "children" | "defaultValue"> & {
30
+ type TableOfContentsProps = TableOfContentsOptions & Omit<PartProps<"nav">, "children" | "defaultValue"> & {
31
31
  /**
32
32
  * Watches the page and keeps the active section at the reading line. On
33
33
  * by default while uncontrolled. Pass `false` to leave the active section
@@ -54,7 +54,7 @@ declare function TableOfContents({ value, defaultValue, onValueChange, observe,
54
54
  * has a name, so this is for the eye. A `p` by default: pass `render={<h2 />}`
55
55
  * when the page's outline should list it.
56
56
  */
57
- declare function TableOfContentsTitle({ className, render, ...props }: index_d_exports.PartProps<"p">): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
57
+ declare function TableOfContentsTitle({ className, render, ...props }: PartProps<"p">): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
58
58
  /**
59
59
  * The ordered list of sections. It draws the rail and the mark, placed from
60
60
  * the rows as they measure, and hidden until then so the mark never slides
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { createChange, definePrimitive } from "../../core/ui-sdk.js";
2
+ import { createChange, definePrimitive, renderElement, usePart, usePrimitive } from "../../core/ui-sdk.js";
3
3
  import { usePrimitiveState } from "../../core/use-primitive-state.js";
4
- import { core_exports } from "../../core/index.js";
4
+ import "../../core/index.js";
5
5
  import { cn, cnState } from "../../utilities/cn/index.js";
6
6
  import { LinkPart } from "../link/link.js";
7
7
  import { contourPath, contourWidth, hashTarget, sectionAt, sectionsInView } from "./spy.js";
@@ -276,7 +276,7 @@ function TableOfContents(t0) {
276
276
  $[16] = value;
277
277
  $[17] = t4;
278
278
  } else t4 = $[17];
279
- const handle = (0, core_exports.usePrimitive)(tableOfContents, t4);
279
+ const handle = usePrimitive(tableOfContents, t4);
280
280
  const spying = observe ?? value === void 0;
281
281
  let t5;
282
282
  if ($[18] !== handle || $[19] !== spying) {
@@ -347,7 +347,7 @@ function TableOfContents(t0) {
347
347
  $[39] = variant;
348
348
  $[40] = t11;
349
349
  } else t11 = $[40];
350
- return (0, core_exports.usePart)(handle, "root", t7, t11, "nav");
350
+ return usePart(handle, "root", t7, t11, "nav");
351
351
  }
352
352
  /**
353
353
  * The small heading above the list, like "On this page". The `nav` already
@@ -355,7 +355,7 @@ function TableOfContents(t0) {
355
355
  * when the page's outline should list it.
356
356
  */
357
357
  function TableOfContentsTitle({ className, render, ...props }) {
358
- return (0, core_exports.renderElement)("p", {
358
+ return renderElement("p", {
359
359
  "data-slot": "table-of-contents-title",
360
360
  ...props,
361
361
  className: cnState("text-xs font-medium tracking-wider text-muted-foreground uppercase", className)
@@ -0,0 +1,26 @@
1
+ import { ComponentProps } from "react";
2
+ type TeamMarkProps = Omit<ComponentProps<"span">, "children" | "color"> & {
3
+ /** The team's name. The initials come from it when `initials` is missing. */
4
+ name: string;
5
+ /** Up to two letters drawn on the tile: "CN". */
6
+ initials?: string;
7
+ /** The team's color, any CSS color. Without one, the tile is Alma's neutral `track`. */
8
+ color?: string;
9
+ };
10
+ /**
11
+ * A team's tile: its initials on Alma's 36px square with 10px corners. It has
12
+ * two looks, one per board in Paper:
13
+ *
14
+ * - With `color`, the rail's tile: the color at 22% over the surface and the
15
+ * letters the same color mixed toward the text's, at 12px. The surface is
16
+ * `--team-mark-surface`, the page's background by default: set it to
17
+ * `var(--sidebar)` on the sidebar's paper.
18
+ * - Without it, the tile of an invitation in Auth: Alma's neutral `track`
19
+ * with ink letters at 13px, for a team whose color the app doesn't know.
20
+ *
21
+ * It only repeats the name beside it (a row's title, a button's name), so it
22
+ * takes `aria-hidden`. Set the size with `className` (`size-full` to fill a
23
+ * button).
24
+ */
25
+ declare function TeamMark({ name, initials, color, className, style, ...props }: TeamMarkProps): import("react").JSX.Element;
26
+ export { TeamMark, type TeamMarkProps };
@@ -0,0 +1,101 @@
1
+ "use client";
2
+ import { cn } from "../../utilities/cn/index.js";
3
+ import { c } from "react/compiler-runtime";
4
+ import { jsx } from "react/jsx-runtime";
5
+ // src/components/team-mark/team-mark.tsx
6
+ /** The first letter of the first and the last word: "Casa Norte" gives "CN". */
7
+ function initialsOf(name) {
8
+ const words = name.trim().split(/\s+/).filter(Boolean);
9
+ return (words.length > 1 ? [words[0], words.at(-1)] : words).map((word) => word[0].toUpperCase()).join("");
10
+ }
11
+ /**
12
+ * A team's tile: its initials on Alma's 36px square with 10px corners. It has
13
+ * two looks, one per board in Paper:
14
+ *
15
+ * - With `color`, the rail's tile: the color at 22% over the surface and the
16
+ * letters the same color mixed toward the text's, at 12px. The surface is
17
+ * `--team-mark-surface`, the page's background by default: set it to
18
+ * `var(--sidebar)` on the sidebar's paper.
19
+ * - Without it, the tile of an invitation in Auth: Alma's neutral `track`
20
+ * with ink letters at 13px, for a team whose color the app doesn't know.
21
+ *
22
+ * It only repeats the name beside it (a row's title, a button's name), so it
23
+ * takes `aria-hidden`. Set the size with `className` (`size-full` to fill a
24
+ * button).
25
+ */
26
+ function TeamMark(t0) {
27
+ const $ = c(22);
28
+ let className;
29
+ let color;
30
+ let initials;
31
+ let name;
32
+ let props;
33
+ let style;
34
+ if ($[0] !== t0) {
35
+ ({name, initials, color, className, style, ...props} = t0);
36
+ $[0] = t0;
37
+ $[1] = className;
38
+ $[2] = color;
39
+ $[3] = initials;
40
+ $[4] = name;
41
+ $[5] = props;
42
+ $[6] = style;
43
+ } else {
44
+ className = $[1];
45
+ color = $[2];
46
+ initials = $[3];
47
+ name = $[4];
48
+ props = $[5];
49
+ style = $[6];
50
+ }
51
+ const t1 = color ? "team" : "neutral";
52
+ let t2;
53
+ if ($[7] !== className || $[8] !== color) {
54
+ t2 = cn("grid size-9 shrink-0 place-items-center rounded-lg font-semibold select-none", color ? [
55
+ "text-xs",
56
+ "bg-[color-mix(in_oklab,var(--team-color)_22%,var(--team-mark-surface,var(--background)))]",
57
+ "text-[color-mix(in_oklab,var(--team-color)_72%,var(--foreground))]",
58
+ "dark:text-[color-mix(in_oklab,var(--team-color)_64%,var(--foreground))]"
59
+ ] : "bg-sidebar-accent text-sm leading-4 text-foreground", className);
60
+ $[7] = className;
61
+ $[8] = color;
62
+ $[9] = t2;
63
+ } else t2 = $[9];
64
+ let t3;
65
+ if ($[10] !== color || $[11] !== style) {
66
+ t3 = color ? {
67
+ "--team-color": color,
68
+ ...style
69
+ } : style;
70
+ $[10] = color;
71
+ $[11] = style;
72
+ $[12] = t3;
73
+ } else t3 = $[12];
74
+ let t4;
75
+ if ($[13] !== initials || $[14] !== name) {
76
+ t4 = initials ?? initialsOf(name);
77
+ $[13] = initials;
78
+ $[14] = name;
79
+ $[15] = t4;
80
+ } else t4 = $[15];
81
+ let t5;
82
+ if ($[16] !== props || $[17] !== t1 || $[18] !== t2 || $[19] !== t3 || $[20] !== t4) {
83
+ t5 = /* @__PURE__ */ jsx("span", {
84
+ "aria-hidden": "true",
85
+ "data-slot": "team-mark",
86
+ "data-color": t1,
87
+ className: t2,
88
+ style: t3,
89
+ ...props,
90
+ children: t4
91
+ });
92
+ $[16] = props;
93
+ $[17] = t1;
94
+ $[18] = t2;
95
+ $[19] = t3;
96
+ $[20] = t4;
97
+ $[21] = t5;
98
+ } else t5 = $[21];
99
+ return t5;
100
+ }
101
+ export { TeamMark };
@@ -1,5 +1,6 @@
1
- import { index_d_exports } from "../../core/index.js";
1
+ import "../../core/index.js";
2
2
  import { VariantProps } from "../../utilities/cn/index.js";
3
+ import { PartProps } from "../../core/ui-sdk.js";
3
4
  import { ButtonLook } from "../button/button.js";
4
5
  import { TooltipContent } from "../tooltip/tooltip.js";
5
6
  import { ComponentProps, ReactElement, ReactNode } from "react";
@@ -87,5 +88,5 @@ declare function ToolbarTool({ label, shortcut, className, ...props }: ToolbarTo
87
88
  * A small chevron that says a control opens more choices: after a tool's
88
89
  * icon, or alone in a `ToolbarButton` rendered as a menu's trigger.
89
90
  */
90
- declare function ToolbarCaret({ className, render, children, ...props }: index_d_exports.PartProps<"span">): ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
91
+ declare function ToolbarCaret({ className, render, children, ...props }: PartProps<"span">): ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
91
92
  export { Toolbar, ToolbarButton, type ToolbarButtonProps, ToolbarCaret, type ToolbarController, ToolbarGroup, ToolbarInput, ToolbarLink, type ToolbarOrientation, type ToolbarProps, ToolbarSeparator, ToolbarTool, type ToolbarToolProps, ToolbarTools, type ToolbarToolsChangeDetails, type ToolbarToolsProps, createToolbarController, toolbarVariants };
@@ -1,11 +1,13 @@
1
1
  "use client";
2
- import { core_exports } from "../../core/index.js";
2
+ import { renderElement } from "../../core/ui-sdk.js";
3
+ import "../../core/index.js";
3
4
  import { cnState, cva } from "../../utilities/cn/index.js";
4
- import { platform_exports } from "../../utilities/platform/index.js";
5
+ import "../../utilities/platform/index.js";
5
6
  import { buttonLook } from "../button/button.js";
6
7
  import { Icon } from "../icon/icon.js";
7
8
  import "../input/input.js";
8
9
  import { Kbd } from "../kbd/kbd.js";
10
+ import { useShortcut } from "../../utilities/platform/ui-sdk.js";
9
11
  import { Tooltip as Tooltip$1, TooltipContent as TooltipContent$1, TooltipTrigger as TooltipTrigger$1 } from "../tooltip/tooltip.js";
10
12
  import { c } from "react/compiler-runtime";
11
13
  import { createContext, isValidElement, use, useRef, useState } from "react";
@@ -198,7 +200,7 @@ function ToolbarButton(t0) {
198
200
  t1 = () => self.current?.click();
199
201
  $[0] = t1;
200
202
  } else t1 = $[0];
201
- (0, platform_exports.useShortcut)(shortcuts && !props.disabled ? singleKey(shortcut) : null, t1);
203
+ useShortcut(shortcuts && !props.disabled ? singleKey(shortcut) : null, t1);
202
204
  const own = !variant && !size && rendersComponent(props.render);
203
205
  let t2;
204
206
  if ($[1] !== ref) {
@@ -601,7 +603,7 @@ function ToolbarTool(t0) {
601
603
  $[10] = tools?.group;
602
604
  $[11] = t2;
603
605
  } else t2 = $[11];
604
- (0, platform_exports.useShortcut)(t1, t2);
606
+ useShortcut(t1, t2);
605
607
  let t3;
606
608
  if ($[12] !== className) {
607
609
  t3 = cnState([
@@ -644,7 +646,7 @@ function ToolbarTool(t0) {
644
646
  * icon, or alone in a `ToolbarButton` rendered as a menu's trigger.
645
647
  */
646
648
  function ToolbarCaret({ className, render, children = /* @__PURE__ */ jsx(Icon, { icon: ArrowDown01Icon }), ...props }) {
647
- return (0, core_exports.renderElement)("span", {
649
+ return renderElement("span", {
648
650
  "aria-hidden": true,
649
651
  "data-slot": "toolbar-caret",
650
652
  ...props,