@yahoo/uds-v5-wip 1.29.0 → 1.30.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 (210) hide show
  1. package/dist/components/dist/accordion.config.d.ts +2 -1
  2. package/dist/components/dist/accordion.d.ts +2 -1
  3. package/dist/components/dist/accordion.js +9 -9
  4. package/dist/components/dist/alert.config.d.ts +2 -1
  5. package/dist/components/dist/alert.d.ts +2 -1
  6. package/dist/components/dist/alert.js +2 -2
  7. package/dist/components/dist/anchor.config.d.ts +2 -1
  8. package/dist/components/dist/anchor.d.ts +2 -1
  9. package/dist/components/dist/article.d.ts +2 -1
  10. package/dist/components/dist/aside.d.ts +2 -1
  11. package/dist/components/dist/avatar-group.config.d.ts +2 -1
  12. package/dist/components/dist/avatar-group.d.ts +2 -1
  13. package/dist/components/dist/avatar-group.js +6 -6
  14. package/dist/components/dist/avatar.config.d.ts +2 -1
  15. package/dist/components/dist/avatar.d.ts +2 -1
  16. package/dist/components/dist/avatar.js +3 -3
  17. package/dist/components/dist/badge.config.d.ts +2 -1
  18. package/dist/components/dist/badge.d.ts +2 -1
  19. package/dist/components/dist/badge.js +2 -2
  20. package/dist/components/dist/box.d.ts +2 -1
  21. package/dist/components/dist/breadcrumb.config.d.ts +2 -1
  22. package/dist/components/dist/breadcrumb.d.ts +2 -1
  23. package/dist/components/dist/breadcrumb.js +17 -17
  24. package/dist/components/dist/button.config.d.ts +2 -1
  25. package/dist/components/dist/button.d.ts +2 -1
  26. package/dist/components/dist/button.js +5 -5
  27. package/dist/components/dist/card.config.d.ts +2 -1
  28. package/dist/components/dist/card.d.ts +2 -1
  29. package/dist/components/dist/card.js +4 -4
  30. package/dist/components/dist/collapsible.config.d.ts +2 -1
  31. package/dist/components/dist/collapsible.d.ts +2 -1
  32. package/dist/components/dist/collapsible.js +3 -3
  33. package/dist/components/dist/command.config.d.ts +2 -1
  34. package/dist/components/dist/command.d.ts +2 -1
  35. package/dist/components/dist/command.js +21 -21
  36. package/dist/components/dist/control-color.config.d.ts +2 -1
  37. package/dist/components/dist/control-color.d.ts +2 -1
  38. package/dist/components/dist/control-color.js +6 -6
  39. package/dist/components/dist/control-curve.config.d.ts +2 -1
  40. package/dist/components/dist/control-curve.d.ts +2 -1
  41. package/dist/components/dist/control-curve.js +4 -4
  42. package/dist/components/dist/control-folder.config.d.ts +2 -1
  43. package/dist/components/dist/control-folder.d.ts +2 -1
  44. package/dist/components/dist/control-folder.js +6 -6
  45. package/dist/components/dist/control-group.config.d.ts +2 -1
  46. package/dist/components/dist/control-group.d.ts +2 -1
  47. package/dist/components/dist/control-group.js +3 -3
  48. package/dist/components/dist/control-knob.config.d.ts +2 -1
  49. package/dist/components/dist/control-knob.d.ts +2 -1
  50. package/dist/components/dist/control-knob.js +8 -8
  51. package/dist/components/dist/control-panel.config.d.ts +2 -1
  52. package/dist/components/dist/control-panel.d.ts +2 -1
  53. package/dist/components/dist/control-panel.js +3 -3
  54. package/dist/components/dist/control-select.config.d.ts +2 -1
  55. package/dist/components/dist/control-select.d.ts +2 -1
  56. package/dist/components/dist/control-select.js +8 -8
  57. package/dist/components/dist/control-slider.config.d.ts +2 -1
  58. package/dist/components/dist/control-slider.d.ts +2 -1
  59. package/dist/components/dist/control-slider.js +8 -8
  60. package/dist/components/dist/control-spring.config.d.ts +2 -1
  61. package/dist/components/dist/control-spring.d.ts +2 -1
  62. package/dist/components/dist/control-spring.js +12 -12
  63. package/dist/components/dist/control-stepper.config.d.ts +2 -1
  64. package/dist/components/dist/control-stepper.d.ts +2 -1
  65. package/dist/components/dist/control-stepper.js +6 -6
  66. package/dist/components/dist/control-toggle.config.d.ts +2 -1
  67. package/dist/components/dist/control-toggle.d.ts +2 -1
  68. package/dist/components/dist/control-toggle.js +3 -3
  69. package/dist/components/dist/createSlot.d.ts +2 -1
  70. package/dist/components/dist/createSlot.js +2 -2
  71. package/dist/components/dist/dropdown.config.d.ts +2 -1
  72. package/dist/components/dist/dropdown.d.ts +2 -1
  73. package/dist/components/dist/dropdown.js +10 -10
  74. package/dist/components/dist/empty-state.config.d.ts +2 -1
  75. package/dist/components/dist/empty-state.d.ts +2 -1
  76. package/dist/components/dist/empty-state.js +6 -6
  77. package/dist/components/dist/footer.d.ts +2 -1
  78. package/dist/components/dist/grid.d.ts +2 -1
  79. package/dist/components/dist/grid.js +2 -2
  80. package/dist/components/dist/header.d.ts +2 -1
  81. package/dist/components/dist/hstack.d.ts +2 -1
  82. package/dist/components/dist/hstack.js +1 -1
  83. package/dist/components/dist/image.d.ts +2 -1
  84. package/dist/components/dist/input.config.d.ts +2 -1
  85. package/dist/components/dist/input.d.ts +2 -1
  86. package/dist/components/dist/input.js +1 -1
  87. package/dist/components/dist/item.config.d.ts +2 -1
  88. package/dist/components/dist/item.d.ts +2 -1
  89. package/dist/components/dist/item.js +8 -8
  90. package/dist/components/dist/list.d.ts +2 -1
  91. package/dist/components/dist/list.js +1 -1
  92. package/dist/components/dist/main.d.ts +2 -1
  93. package/dist/components/dist/modal.config.d.ts +2 -1
  94. package/dist/components/dist/modal.d.ts +2 -1
  95. package/dist/components/dist/modal.js +8 -8
  96. package/dist/components/dist/nav-header.config.d.ts +2 -1
  97. package/dist/components/dist/nav-header.d.ts +2 -1
  98. package/dist/components/dist/nav-header.js +3 -3
  99. package/dist/components/dist/nav.d.ts +2 -1
  100. package/dist/components/dist/preset-bar.config.d.ts +2 -1
  101. package/dist/components/dist/preset-bar.d.ts +2 -1
  102. package/dist/components/dist/preset-bar.js +10 -10
  103. package/dist/components/dist/presets/index.d.ts +3 -2
  104. package/dist/components/dist/presets/index.js +1 -1
  105. package/dist/components/dist/pressable.d.ts +2 -1
  106. package/dist/components/dist/progress.config.d.ts +2 -1
  107. package/dist/components/dist/progress.d.ts +2 -1
  108. package/dist/components/dist/progress.js +6 -6
  109. package/dist/components/dist/section.d.ts +2 -1
  110. package/dist/components/dist/select.config.d.ts +2 -1
  111. package/dist/components/dist/select.d.ts +2 -1
  112. package/dist/components/dist/sheet.config.d.ts +2 -1
  113. package/dist/components/dist/sheet.d.ts +2 -1
  114. package/dist/components/dist/sheet.js +8 -8
  115. package/dist/components/dist/sidebar.config.d.ts +2 -1
  116. package/dist/components/dist/sidebar.d.ts +2 -1
  117. package/dist/components/dist/sidebar.js +42 -42
  118. package/dist/components/dist/skeleton.config.d.ts +2 -1
  119. package/dist/components/dist/skeleton.d.ts +2 -1
  120. package/dist/components/dist/skeleton.js +1 -1
  121. package/dist/components/dist/slider.config.d.ts +2 -1
  122. package/dist/components/dist/slider.d.ts +2 -1
  123. package/dist/components/dist/slider.js +5 -5
  124. package/dist/components/dist/spinner.config.d.ts +2 -1
  125. package/dist/components/dist/spinner.d.ts +2 -1
  126. package/dist/components/dist/spinner.js +2 -2
  127. package/dist/components/dist/svg.d.ts +2 -1
  128. package/dist/components/dist/switch.config.d.ts +2 -1
  129. package/dist/components/dist/switch.d.ts +2 -1
  130. package/dist/components/dist/switch.js +5 -5
  131. package/dist/components/dist/table.d.ts +2 -1
  132. package/dist/components/dist/tabs.config.d.ts +2 -1
  133. package/dist/components/dist/tabs.d.ts +2 -1
  134. package/dist/components/dist/tabs.js +8 -8
  135. package/dist/components/dist/text.config.d.ts +2 -1
  136. package/dist/components/dist/text.d.ts +2 -1
  137. package/dist/components/dist/textarea.config.d.ts +2 -1
  138. package/dist/components/dist/textarea.d.ts +2 -1
  139. package/dist/components/dist/toast.config.d.ts +2 -1
  140. package/dist/components/dist/toast.d.ts +2 -1
  141. package/dist/components/dist/toast.js +7 -7
  142. package/dist/components/dist/tooltip.config.d.ts +2 -1
  143. package/dist/components/dist/tooltip.d.ts +2 -1
  144. package/dist/components/dist/tooltip.js +3 -3
  145. package/dist/components/dist/vstack.d.ts +2 -1
  146. package/dist/components/dist/vstack.js +1 -1
  147. package/dist/components/presets/index.d.ts +1 -1
  148. package/dist/components/presets/index.js +1 -1
  149. package/dist/config/dist/component-resolution.d.ts +1 -1
  150. package/dist/config/dist/consts/defaultColors.d.ts +2 -1
  151. package/dist/config/dist/createConfig.d.ts +6 -0
  152. package/dist/config/dist/propertyGroups.d.ts +5 -0
  153. package/dist/config/dist/serialize.d.ts +2 -1
  154. package/dist/config/dist/types.d.ts +2 -1
  155. package/dist/config.d.ts +197 -197
  156. package/dist/core/dist/compositeStyles.d.ts +1 -2
  157. package/dist/core/dist/createComponent.d.ts +1 -2
  158. package/dist/core/dist/createComponentExample.d.ts +1 -2
  159. package/dist/core/dist/createProvider.d.ts +1 -2
  160. package/dist/core/dist/generated/stylePropsTwMap.d.ts +1 -2
  161. package/dist/core/dist/getComponentStyles.d.ts +1 -2
  162. package/dist/core/dist/getStyles.d.ts +1 -2
  163. package/dist/core/dist/propMappings.d.ts +1 -2
  164. package/dist/core/dist/resolveMotionState.d.ts +1 -2
  165. package/dist/core/dist/transformPreset.d.ts +1 -2
  166. package/dist/core/dist/withDefaultStyleProps.d.ts +1 -2
  167. package/dist/foundational-presets/dist/boldVibrant.d.ts +197 -198
  168. package/dist/foundational-presets/dist/brutalist.d.ts +197 -198
  169. package/dist/foundational-presets/dist/candy.d.ts +197 -198
  170. package/dist/foundational-presets/dist/cleanMinimalist.d.ts +197 -198
  171. package/dist/foundational-presets/dist/corporate.d.ts +197 -198
  172. package/dist/foundational-presets/dist/darkMoody.d.ts +197 -198
  173. package/dist/foundational-presets/dist/defaultPreset.d.ts +197 -198
  174. package/dist/foundational-presets/dist/forest.d.ts +197 -198
  175. package/dist/foundational-presets/dist/highContrast.d.ts +197 -198
  176. package/dist/foundational-presets/dist/lavender.d.ts +197 -198
  177. package/dist/foundational-presets/dist/luxury.d.ts +197 -198
  178. package/dist/foundational-presets/dist/monochrome.d.ts +197 -198
  179. package/dist/foundational-presets/dist/motion.d.ts +1 -2
  180. package/dist/foundational-presets/dist/neonCyber.d.ts +197 -198
  181. package/dist/foundational-presets/dist/newspaper.d.ts +197 -198
  182. package/dist/foundational-presets/dist/ocean.d.ts +197 -198
  183. package/dist/foundational-presets/dist/slate.d.ts +197 -198
  184. package/dist/foundational-presets/dist/sunset.d.ts +197 -198
  185. package/dist/foundational-presets/dist/terminal.d.ts +197 -198
  186. package/dist/foundational-presets/dist/warmOrganic.d.ts +197 -198
  187. package/dist/loader/dist/loader.d.ts +1 -2
  188. package/dist/loader/dist/next.d.ts +1 -2
  189. package/dist/presets/dist/boldVibrant.d.ts +1 -2
  190. package/dist/presets/dist/brutalist.d.ts +1 -2
  191. package/dist/presets/dist/candy.d.ts +1 -2
  192. package/dist/presets/dist/cleanMinimalist.d.ts +1 -2
  193. package/dist/presets/dist/corporate.d.ts +1 -2
  194. package/dist/presets/dist/darkMoody.d.ts +1 -2
  195. package/dist/presets/dist/defaultPreset.d.ts +1 -2
  196. package/dist/presets/dist/defaultPreset.js +1 -1
  197. package/dist/presets/dist/forest.d.ts +1 -2
  198. package/dist/presets/dist/highContrast.d.ts +1 -2
  199. package/dist/presets/dist/lavender.d.ts +1 -2
  200. package/dist/presets/dist/luxury.d.ts +1 -2
  201. package/dist/presets/dist/monochrome.d.ts +1 -2
  202. package/dist/presets/dist/neonCyber.d.ts +1 -2
  203. package/dist/presets/dist/newspaper.d.ts +1 -2
  204. package/dist/presets/dist/ocean.d.ts +1 -2
  205. package/dist/presets/dist/slate.d.ts +1 -2
  206. package/dist/presets/dist/sunset.d.ts +1 -2
  207. package/dist/presets/dist/terminal.d.ts +1 -2
  208. package/dist/presets/dist/warmOrganic.d.ts +1 -2
  209. package/dist/tsconfig.tsbuildinfo +1 -1
  210. package/package.json +3 -3
@@ -3,6 +3,7 @@ import * as _$react from "react";
3
3
  import * as _$_uds_types0 from "@uds/types";
4
4
 
5
5
  //#region ../components/dist/collapsible.d.ts
6
+ //#region src/collapsible.d.ts
6
7
  /**
7
8
  * @description A headless collapsible primitive with animated expand/collapse
8
9
  */
@@ -56,6 +57,6 @@ declare const Collapsible: _$react.FC<_$_uds_types0.CreateComponentProps<Compone
56
57
  trigger: "button";
57
58
  content: "div";
58
59
  }>>;
59
- type CollapsibleProps = React.ComponentProps<typeof Collapsible>;
60
+ type CollapsibleProps = React.ComponentProps<typeof Collapsible>; //#endregion
60
61
  //#endregion
61
62
  export { Collapsible, CollapsibleProps };
@@ -20,15 +20,15 @@ const Collapsible = createComponent(({ props, trigger, children, defaultOpen = f
20
20
  isControlled,
21
21
  onOpenChange
22
22
  ]);
23
- return jsxs("div", {
23
+ return /* @__PURE__ */ jsxs("div", {
24
24
  ...props.root,
25
- children: [jsx("button", {
25
+ children: [/* @__PURE__ */ jsx("button", {
26
26
  ...props.trigger,
27
27
  type: "button",
28
28
  onClick: toggle,
29
29
  "aria-expanded": isOpen,
30
30
  children: trigger
31
- }), isOpen && jsx("div", {
31
+ }), isOpen && /* @__PURE__ */ jsx("div", {
32
32
  ...props.content,
33
33
  children
34
34
  })]
@@ -1,5 +1,6 @@
1
1
  import { ComponentConfig } from "../../config/dist/createConfig.js";
2
2
  //#region ../components/dist/command.config.d.ts
3
+ //#region src/command.config.d.ts
3
4
  declare const commandConfig: ComponentConfig<{
4
5
  Command: {
5
6
  readonly base: {
@@ -1608,6 +1609,6 @@ type CommandEmptyConfig = typeof commandEmptyConfig;
1608
1609
  type CommandGroupConfig = typeof commandGroupConfig;
1609
1610
  type CommandItemConfig = typeof commandItemConfig;
1610
1611
  type CommandShortcutConfig = typeof commandShortcutConfig;
1611
- type CommandSeparatorConfig = typeof commandSeparatorConfig;
1612
+ type CommandSeparatorConfig = typeof commandSeparatorConfig; //#endregion
1612
1613
  //#endregion
1613
1614
  export { CommandConfig, CommandDialogConfig, CommandEmptyConfig, CommandGroupConfig, CommandInputConfig, CommandItemConfig, CommandListConfig, CommandSeparatorConfig, CommandShortcutConfig, commandConfig, commandDialogConfig, commandEmptyConfig, commandGroupConfig, commandInputConfig, commandItemConfig, commandListConfig, commandSeparatorConfig, commandShortcutConfig };
@@ -4,6 +4,7 @@ import { ReactNode } from "react";
4
4
  import * as _$_uds_types0 from "@uds/types";
5
5
 
6
6
  //#region ../components/dist/command.d.ts
7
+ //#region src/command.d.ts
7
8
  interface CommandContextValue {
8
9
  search: string;
9
10
  setSearch: (value: string) => void;
@@ -1717,6 +1718,6 @@ type CommandEmptyProps = React.ComponentProps<typeof CommandEmpty>;
1717
1718
  type CommandGroupProps = React.ComponentProps<typeof CommandGroup>;
1718
1719
  type CommandItemProps = React.ComponentProps<typeof CommandItem>;
1719
1720
  type CommandShortcutProps = React.ComponentProps<typeof CommandShortcut>;
1720
- type CommandSeparatorProps = React.ComponentProps<typeof CommandSeparator>;
1721
+ type CommandSeparatorProps = React.ComponentProps<typeof CommandSeparator>; //#endregion
1721
1722
  //#endregion
1722
1723
  export { Command, CommandContextValue, CommandDialog, CommandDialogProps, CommandEmpty, CommandEmptyProps, CommandGroup, CommandGroupProps, CommandInput, CommandInputProps, CommandItem, CommandItemProps, CommandList, CommandListProps, CommandProps, CommandProvider, CommandSeparator, CommandSeparatorProps, CommandShortcut, CommandShortcutProps, useCommand };
@@ -64,7 +64,7 @@ const [CommandProvider, useCommand] = createProvider("Command", ({ children }) =
64
64
  items: items.current,
65
65
  visibleCount
66
66
  },
67
- render: jsx(Fragment, { children })
67
+ render: /* @__PURE__ */ jsx(Fragment, { children })
68
68
  };
69
69
  });
70
70
  function CommandRoot({ slotProps, label, children }) {
@@ -96,7 +96,7 @@ function CommandRoot({ slotProps, label, children }) {
96
96
  container.querySelector("[data-command-item][aria-selected=\"true\"]")?.click();
97
97
  }
98
98
  }, [ctx]);
99
- return jsx("div", {
99
+ return /* @__PURE__ */ jsx("div", {
100
100
  ref: rootRef,
101
101
  role: "listbox",
102
102
  "aria-label": label ?? "Command menu",
@@ -122,9 +122,9 @@ const Command = createComponent(({ props, children, value: controlledValue, onVa
122
122
  controlledValue,
123
123
  onValueChange
124
124
  ]);
125
- return jsx(CommandConfigContext.Provider, {
125
+ return /* @__PURE__ */ jsx(CommandConfigContext.Provider, {
126
126
  value: config,
127
- children: jsx(CommandProvider, { children: jsx(CommandRoot, {
127
+ children: /* @__PURE__ */ jsx(CommandProvider, { children: /* @__PURE__ */ jsx(CommandRoot, {
128
128
  slotProps: props,
129
129
  label,
130
130
  children
@@ -153,21 +153,21 @@ const CommandDialog = createComponent(({ props, children, open: controlledOpen,
153
153
  };
154
154
  }, [open, setOpen]);
155
155
  if (!open) return null;
156
- return createPortal(jsxs("div", {
156
+ return createPortal(/* @__PURE__ */ jsxs("div", {
157
157
  ...props.overlay,
158
- children: [jsx("button", {
158
+ children: [/* @__PURE__ */ jsx("button", {
159
159
  type: "button",
160
160
  "aria-label": "Close command menu",
161
161
  tabIndex: -1,
162
162
  onClick: () => setOpen(false),
163
163
  ...props.dismiss
164
- }), jsx("div", {
164
+ }), /* @__PURE__ */ jsx("div", {
165
165
  ref: panelRef,
166
166
  role: "dialog",
167
167
  "aria-modal": "true",
168
168
  tabIndex: -1,
169
169
  ...props.dialogPanel,
170
- children: jsx(Command, {
170
+ children: /* @__PURE__ */ jsx(Command, {
171
171
  filter,
172
172
  shouldFilter,
173
173
  loop: loop ?? true,
@@ -190,11 +190,11 @@ const CommandInput = createComponent(({ props, placeholder, value: controlledVal
190
190
  setSearch(v);
191
191
  onValueChange?.(v);
192
192
  }, [setSearch, onValueChange]);
193
- return jsxs("div", {
193
+ return /* @__PURE__ */ jsxs("div", {
194
194
  ...props.inputWrapper,
195
- children: [jsx("span", {
195
+ children: [/* @__PURE__ */ jsx("span", {
196
196
  ...props.searchIcon,
197
- children: jsxs("svg", {
197
+ children: /* @__PURE__ */ jsxs("svg", {
198
198
  width: "16",
199
199
  height: "16",
200
200
  viewBox: "0 0 24 24",
@@ -203,18 +203,18 @@ const CommandInput = createComponent(({ props, placeholder, value: controlledVal
203
203
  strokeWidth: "2",
204
204
  strokeLinecap: "round",
205
205
  strokeLinejoin: "round",
206
- children: [jsx("circle", {
206
+ children: [/* @__PURE__ */ jsx("circle", {
207
207
  cx: "11",
208
208
  cy: "11",
209
209
  r: "8"
210
- }), jsx("line", {
210
+ }), /* @__PURE__ */ jsx("line", {
211
211
  x1: "21",
212
212
  y1: "21",
213
213
  x2: "16.65",
214
214
  y2: "16.65"
215
215
  })]
216
216
  })
217
- }), jsx("input", {
217
+ }), /* @__PURE__ */ jsx("input", {
218
218
  type: "text",
219
219
  placeholder: placeholder ?? "Type a command or search...",
220
220
  value: inputValue,
@@ -231,7 +231,7 @@ const CommandInput = createComponent(({ props, placeholder, value: controlledVal
231
231
  * @description Scrollable container for command results
232
232
  */
233
233
  const CommandList = createComponent(({ props, children }) => {
234
- return jsx("fieldset", {
234
+ return /* @__PURE__ */ jsx("fieldset", {
235
235
  ...props.list,
236
236
  children
237
237
  });
@@ -242,7 +242,7 @@ const CommandList = createComponent(({ props, children }) => {
242
242
  const CommandEmpty = createComponent(({ props, children }) => {
243
243
  const ctx = useCommand();
244
244
  if (ctx.visibleCount > 0 || !ctx.search) return null;
245
- return jsx("div", {
245
+ return /* @__PURE__ */ jsx("div", {
246
246
  ...props.empty,
247
247
  children: children ?? "No results found."
248
248
  });
@@ -259,10 +259,10 @@ const CommandGroup = createComponent(({ props, children, heading }) => {
259
259
  if (el.querySelectorAll("[data-command-item]").length > 0) el.removeAttribute("hidden");
260
260
  else el.setAttribute("hidden", "");
261
261
  });
262
- return jsxs("fieldset", {
262
+ return /* @__PURE__ */ jsxs("fieldset", {
263
263
  ref: groupRef,
264
264
  ...props.group,
265
- children: [heading && jsx("div", {
265
+ children: [heading && /* @__PURE__ */ jsx("div", {
266
266
  ...props.groupHeading,
267
267
  children: heading
268
268
  }), children]
@@ -299,7 +299,7 @@ const CommandItem = createComponent(({ props, children, onSelect, value, keyword
299
299
  keywords
300
300
  ]);
301
301
  if (!(!ctx.shouldFilter || !ctx.search || ctx.filter(textValue, ctx.search, keywords) > 0)) return null;
302
- return jsx("div", {
302
+ return /* @__PURE__ */ jsx("div", {
303
303
  ref: itemRef,
304
304
  role: "option",
305
305
  tabIndex: 0,
@@ -324,7 +324,7 @@ const CommandItem = createComponent(({ props, children, onSelect, value, keyword
324
324
  * @description Displays a keyboard shortcut hint alongside a command item
325
325
  */
326
326
  const CommandShortcut = createComponent(({ props, children }) => {
327
- return jsx("span", {
327
+ return /* @__PURE__ */ jsx("span", {
328
328
  ...props.shortcut,
329
329
  children
330
330
  });
@@ -335,7 +335,7 @@ const CommandShortcut = createComponent(({ props, children }) => {
335
335
  const CommandSeparator = createComponent(({ props }) => {
336
336
  const ctx = useCommand();
337
337
  if (ctx.search && ctx.visibleCount === 0) return null;
338
- return jsx("hr", { ...props.separator });
338
+ return /* @__PURE__ */ jsx("hr", { ...props.separator });
339
339
  });
340
340
  //#endregion
341
341
  export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandProvider, CommandSeparator, CommandShortcut, useCommand };
@@ -1,5 +1,6 @@
1
1
  import { ComponentConfig } from "../../config/dist/createConfig.js";
2
2
  //#region ../components/dist/control-color.config.d.ts
3
+ //#region src/control-color.config.d.ts
3
4
  declare const controlColorConfig: ComponentConfig<{
4
5
  ControlColor: {
5
6
  readonly base: {
@@ -974,6 +975,6 @@ declare const controlColorConfig: ComponentConfig<{
974
975
  };
975
976
  };
976
977
  }, {}>;
977
- type ControlColorConfig = typeof controlColorConfig;
978
+ type ControlColorConfig = typeof controlColorConfig; //#endregion
978
979
  //#endregion
979
980
  export { ControlColorConfig, controlColorConfig };
@@ -3,6 +3,7 @@ import * as _$react from "react";
3
3
  import * as _$_uds_types0 from "@uds/types";
4
4
 
5
5
  //#region ../components/dist/control-color.d.ts
6
+ //#region src/control-color.d.ts
6
7
  /**
7
8
  * @description A hex color input with preview swatch and text field
8
9
  */
@@ -990,6 +991,6 @@ declare const ControlColor: _$react.FC<_$_uds_types0.CreateComponentProps<Compon
990
991
  input: "input";
991
992
  label: "span";
992
993
  }>>;
993
- type ControlColorProps = React.ComponentProps<typeof ControlColor>;
994
+ type ControlColorProps = React.ComponentProps<typeof ControlColor>; //#endregion
994
995
  //#endregion
995
996
  export { ControlColor, ControlColorProps };
@@ -21,19 +21,19 @@ const ControlColor = createComponent(({ props, value, onChange, label }) => {
21
21
  const val = e.target.value;
22
22
  if (HEX_PATTERN.test(val)) onChange(val);
23
23
  }, [onChange]);
24
- return jsxs("div", {
24
+ return /* @__PURE__ */ jsxs("div", {
25
25
  ...props.root,
26
- children: [label && jsx("span", {
26
+ children: [label && /* @__PURE__ */ jsx("span", {
27
27
  ...props.label,
28
28
  children: label
29
- }), jsxs("div", {
29
+ }), /* @__PURE__ */ jsxs("div", {
30
30
  ...props.endContent,
31
- children: [jsx("button", {
31
+ children: [/* @__PURE__ */ jsx("button", {
32
32
  type: "button",
33
33
  onClick: handleSwatchClick,
34
34
  style: { backgroundColor: value },
35
35
  ...props.swatch,
36
- children: jsx("input", {
36
+ children: /* @__PURE__ */ jsx("input", {
37
37
  ref: nativeInputRef,
38
38
  type: "color",
39
39
  value: HEX_PATTERN.test(value) ? value : DEFAULT_HEX,
@@ -48,7 +48,7 @@ const ControlColor = createComponent(({ props, value, onChange, label }) => {
48
48
  tabIndex: -1,
49
49
  "aria-hidden": true
50
50
  })
51
- }), jsx("input", {
51
+ }), /* @__PURE__ */ jsx("input", {
52
52
  type: "text",
53
53
  defaultValue: value,
54
54
  onBlur: handleTextChange,
@@ -1,5 +1,6 @@
1
1
  import { ComponentConfig } from "../../config/dist/createConfig.js";
2
2
  //#region ../components/dist/control-curve.config.d.ts
3
+ //#region src/control-curve.config.d.ts
3
4
  declare const controlCurveConfig: ComponentConfig<{
4
5
  ControlCurve: {
5
6
  readonly base: {
@@ -13,6 +14,6 @@ declare const controlCurveConfig: ComponentConfig<{
13
14
  readonly defaultVariants: {};
14
15
  };
15
16
  }, {}>;
16
- type ControlCurveConfig = typeof controlCurveConfig;
17
+ type ControlCurveConfig = typeof controlCurveConfig; //#endregion
17
18
  //#endregion
18
19
  export { ControlCurveConfig, controlCurveConfig };
@@ -3,6 +3,7 @@ import * as _$react from "react";
3
3
  import * as _$_uds_types0 from "@uds/types";
4
4
 
5
5
  //#region ../components/dist/control-curve.d.ts
6
+ //#region src/control-curve.d.ts
6
7
  interface ControlCurveInput {
7
8
  stiffness: number;
8
9
  damping: number;
@@ -30,6 +31,6 @@ declare const ControlCurve: _$react.FC<_$_uds_types0.CreateComponentProps<Compon
30
31
  }, {
31
32
  root: "div";
32
33
  }>>;
33
- type ControlCurveProps = React.ComponentProps<typeof ControlCurve>;
34
+ type ControlCurveProps = React.ComponentProps<typeof ControlCurve>; //#endregion
34
35
  //#endregion
35
36
  export { ControlCurve, ControlCurveInput, ControlCurveProps };
@@ -46,9 +46,9 @@ const ControlCurve = createComponent(({ props, config, width: rawWidth = 280, he
46
46
  height
47
47
  ]);
48
48
  const targetY = height - height * .7;
49
- return jsx("div", {
49
+ return /* @__PURE__ */ jsx("div", {
50
50
  ...props.root,
51
- children: jsxs("svg", {
51
+ children: /* @__PURE__ */ jsxs("svg", {
52
52
  width,
53
53
  height,
54
54
  viewBox: `0 0 ${width} ${height}`,
@@ -57,7 +57,7 @@ const ControlCurve = createComponent(({ props, config, width: rawWidth = 280, he
57
57
  width: "100%",
58
58
  height: "auto"
59
59
  },
60
- children: [jsx("line", {
60
+ children: [/* @__PURE__ */ jsx("line", {
61
61
  x1: 0,
62
62
  y1: targetY,
63
63
  x2: width,
@@ -66,7 +66,7 @@ const ControlCurve = createComponent(({ props, config, width: rawWidth = 280, he
66
66
  strokeWidth: .5,
67
67
  strokeDasharray: "4 2",
68
68
  opacity: .3
69
- }), jsx("path", {
69
+ }), /* @__PURE__ */ jsx("path", {
70
70
  d: path,
71
71
  fill: "none",
72
72
  stroke: "var(--uds-bg-brand)",
@@ -1,5 +1,6 @@
1
1
  import { ComponentConfig } from "../../config/dist/createConfig.js";
2
2
  //#region ../components/dist/control-folder.config.d.ts
3
+ //#region src/control-folder.config.d.ts
3
4
  declare const controlFolderConfig: ComponentConfig<{
4
5
  ControlFolder: {
5
6
  readonly base: {
@@ -172,6 +173,6 @@ declare const controlFolderConfig: ComponentConfig<{
172
173
  readonly defaultVariants: {};
173
174
  };
174
175
  }, {}>;
175
- type ControlFolderConfig = typeof controlFolderConfig;
176
+ type ControlFolderConfig = typeof controlFolderConfig; //#endregion
176
177
  //#endregion
177
178
  export { ControlFolderConfig, controlFolderConfig };
@@ -3,6 +3,7 @@ import * as _$react from "react";
3
3
  import * as _$_uds_types0 from "@uds/types";
4
4
 
5
5
  //#region ../components/dist/control-folder.d.ts
6
+ //#region src/control-folder.d.ts
6
7
  /**
7
8
  * @description A collapsible folder section with animated expand/collapse
8
9
  */
@@ -189,6 +190,6 @@ declare const ControlFolder: _$react.FC<_$_uds_types0.CreateComponentProps<Compo
189
190
  content: "div";
190
191
  children: "div";
191
192
  }>>;
192
- type ControlFolderProps = React.ComponentProps<typeof ControlFolder>;
193
+ type ControlFolderProps = React.ComponentProps<typeof ControlFolder>; //#endregion
193
194
  //#endregion
194
195
  export { ControlFolder, ControlFolderProps };
@@ -12,25 +12,25 @@ const ControlFolder = createComponent(({ props, label, defaultOpen = false, chil
12
12
  const toggle = useCallback(() => {
13
13
  setIsOpen((prev) => !prev);
14
14
  }, []);
15
- return jsxs("div", {
15
+ return /* @__PURE__ */ jsxs("div", {
16
16
  ...props.root,
17
- children: [jsxs("button", {
17
+ children: [/* @__PURE__ */ jsxs("button", {
18
18
  type: "button",
19
19
  onClick: toggle,
20
20
  "aria-expanded": isOpen,
21
21
  ...props.header,
22
- children: [jsx("span", {
22
+ children: [/* @__PURE__ */ jsx("span", {
23
23
  style: { transform: isOpen ? "rotate(90deg)" : "rotate(0deg)" },
24
24
  ...props.chevron,
25
25
  children: "▶"
26
- }), jsx("span", {
26
+ }), /* @__PURE__ */ jsx("span", {
27
27
  ...props.label,
28
28
  children: label
29
29
  })]
30
- }), jsx("div", {
30
+ }), /* @__PURE__ */ jsx("div", {
31
31
  style: { maxHeight: isOpen ? 1e3 : 0 },
32
32
  ...props.content,
33
- children: jsx("div", {
33
+ children: /* @__PURE__ */ jsx("div", {
34
34
  ...props.children,
35
35
  children
36
36
  })
@@ -1,5 +1,6 @@
1
1
  import { ComponentConfig } from "../../config/dist/createConfig.js";
2
2
  //#region ../components/dist/control-group.config.d.ts
3
+ //#region src/control-group.config.d.ts
3
4
  declare const controlGroupConfig: ComponentConfig<{
4
5
  ControlGroup: {
5
6
  readonly base: {
@@ -854,6 +855,6 @@ declare const controlGroupConfig: ComponentConfig<{
854
855
  };
855
856
  };
856
857
  }, {}>;
857
- type ControlGroupConfig = typeof controlGroupConfig;
858
+ type ControlGroupConfig = typeof controlGroupConfig; //#endregion
858
859
  //#endregion
859
860
  export { ControlGroupConfig, controlGroupConfig };
@@ -3,6 +3,7 @@ import * as _$react from "react";
3
3
  import * as _$_uds_types0 from "@uds/types";
4
4
 
5
5
  //#region ../components/dist/control-group.d.ts
6
+ //#region src/control-group.d.ts
6
7
  interface ControlGroupOption {
7
8
  id: string;
8
9
  label: string;
@@ -876,6 +877,6 @@ declare const ControlGroup: _$react.FC<_$_uds_types0.CreateComponentProps<Compon
876
877
  activeItem: "button";
877
878
  indicator: "div";
878
879
  }>>;
879
- type ControlGroupProps = React.ComponentProps<typeof ControlGroup>;
880
+ type ControlGroupProps = React.ComponentProps<typeof ControlGroup>; //#endregion
880
881
  //#endregion
881
882
  export { ControlGroup, ControlGroupOption, ControlGroupProps };
@@ -56,19 +56,19 @@ const ControlGroup = createComponent(({ props, options, value, onChange, type =
56
56
  onChange,
57
57
  disabled
58
58
  ]);
59
- return jsxs("div", {
59
+ return /* @__PURE__ */ jsxs("div", {
60
60
  ref: rootRef,
61
61
  role: type === "single" ? "radiogroup" : "group",
62
62
  "data-disabled": disabled || void 0,
63
63
  style: { position: "relative" },
64
64
  ...props.root,
65
- children: [type === "single" && jsx("div", {
65
+ children: [type === "single" && /* @__PURE__ */ jsx("div", {
66
66
  style: indicatorStyle,
67
67
  ...props.indicator
68
68
  }), options.map((option) => {
69
69
  const active = isActive(option.id);
70
70
  const className = active ? [props.item?.className, props.activeItem?.className].filter(Boolean).join(" ") : props.item?.className;
71
- return jsx("button", {
71
+ return /* @__PURE__ */ jsx("button", {
72
72
  type: "button",
73
73
  "aria-pressed": active,
74
74
  "data-state": active ? "active" : "inactive",
@@ -1,5 +1,6 @@
1
1
  import { ComponentConfig } from "../../config/dist/createConfig.js";
2
2
  //#region ../components/dist/control-knob.config.d.ts
3
+ //#region src/control-knob.config.d.ts
3
4
  declare const controlKnobConfig: ComponentConfig<{
4
5
  ControlKnob: {
5
6
  readonly base: {
@@ -787,6 +788,6 @@ declare const controlKnobConfig: ComponentConfig<{
787
788
  };
788
789
  };
789
790
  }, {}>;
790
- type ControlKnobConfig = typeof controlKnobConfig;
791
+ type ControlKnobConfig = typeof controlKnobConfig; //#endregion
791
792
  //#endregion
792
793
  export { ControlKnobConfig, controlKnobConfig };
@@ -3,6 +3,7 @@ import * as _$react from "react";
3
3
  import * as _$_uds_types0 from "@uds/types";
4
4
 
5
5
  //#region ../components/dist/control-knob.d.ts
6
+ //#region src/control-knob.d.ts
6
7
  declare const DIAL_SIZES: {
7
8
  readonly sm: 36;
8
9
  readonly md: 64;
@@ -814,6 +815,6 @@ declare const ControlKnob: _$react.FC<_$_uds_types0.CreateComponentProps<Compone
814
815
  label: "span";
815
816
  value: "span";
816
817
  }>>;
817
- type ControlKnobProps = React.ComponentProps<typeof ControlKnob>;
818
+ type ControlKnobProps = React.ComponentProps<typeof ControlKnob>; //#endregion
818
819
  //#endregion
819
820
  export { ControlKnob, ControlKnobProps };
@@ -91,14 +91,14 @@ const ControlKnob = createComponent(({ props, value: rawValue, onChange, min = 0
91
91
  const trackPath = describeArc(cx, cy, radius, START_ANGLE, END_ANGLE);
92
92
  const fillPath = currentAngle > START_ANGLE ? describeArc(cx, cy, radius, START_ANGLE, currentAngle) : "";
93
93
  const thumbPos = polarToCartesian(cx, cy, radius, currentAngle);
94
- return jsxs("div", {
94
+ return /* @__PURE__ */ jsxs("div", {
95
95
  ...props.root,
96
96
  children: [
97
- label && jsx("span", {
97
+ label && /* @__PURE__ */ jsx("span", {
98
98
  ...props.label,
99
99
  children: label
100
100
  }),
101
- jsx("div", {
101
+ /* @__PURE__ */ jsx("div", {
102
102
  role: "slider",
103
103
  tabIndex: 0,
104
104
  "aria-valuemin": min,
@@ -109,25 +109,25 @@ const ControlKnob = createComponent(({ props, value: rawValue, onChange, min = 0
109
109
  onPointerMove: handlePointerMove,
110
110
  onPointerUp: handlePointerUp,
111
111
  style: { touchAction: "none" },
112
- children: jsxs("svg", {
112
+ children: /* @__PURE__ */ jsxs("svg", {
113
113
  ref: svgRef,
114
114
  width: dialSize,
115
115
  height: dialSize,
116
116
  viewBox: `0 0 ${dialSize} ${dialSize}`,
117
117
  children: [
118
- jsx("path", {
118
+ /* @__PURE__ */ jsx("path", {
119
119
  d: trackPath,
120
120
  strokeWidth,
121
121
  strokeLinecap: "round",
122
122
  ...props.track
123
123
  }),
124
- fillPath && jsx("path", {
124
+ fillPath && /* @__PURE__ */ jsx("path", {
125
125
  d: fillPath,
126
126
  strokeWidth,
127
127
  strokeLinecap: "round",
128
128
  ...props.fill
129
129
  }),
130
- jsx("circle", {
130
+ /* @__PURE__ */ jsx("circle", {
131
131
  cx: thumbPos.x,
132
132
  cy: thumbPos.y,
133
133
  r: thumbRadius,
@@ -137,7 +137,7 @@ const ControlKnob = createComponent(({ props, value: rawValue, onChange, min = 0
137
137
  ]
138
138
  })
139
139
  }),
140
- jsx("span", {
140
+ /* @__PURE__ */ jsx("span", {
141
141
  ...props.value,
142
142
  children: value
143
143
  })
@@ -1,5 +1,6 @@
1
1
  import { ComponentConfig } from "../../config/dist/createConfig.js";
2
2
  //#region ../components/dist/control-panel.config.d.ts
3
+ //#region src/control-panel.config.d.ts
3
4
  declare const controlPanelConfig: ComponentConfig<{
4
5
  ControlPanel: {
5
6
  readonly base: {
@@ -397,6 +398,6 @@ declare const controlPanelConfig: ComponentConfig<{
397
398
  };
398
399
  };
399
400
  }, {}>;
400
- type ControlPanelConfig = typeof controlPanelConfig;
401
+ type ControlPanelConfig = typeof controlPanelConfig; //#endregion
401
402
  //#endregion
402
403
  export { ControlPanelConfig, controlPanelConfig };
@@ -3,6 +3,7 @@ import * as _$react from "react";
3
3
  import * as _$_uds_types0 from "@uds/types";
4
4
 
5
5
  //#region ../components/dist/control-panel.d.ts
6
+ //#region src/control-panel.d.ts
6
7
  /**
7
8
  * @description A titled container for grouping property controls and settings
8
9
  */
@@ -410,6 +411,6 @@ declare const ControlPanel: _$react.FC<_$_uds_types0.CreateComponentProps<Compon
410
411
  title: "span";
411
412
  items: "div";
412
413
  }>>;
413
- type ControlPanelProps = React.ComponentProps<typeof ControlPanel>;
414
+ type ControlPanelProps = React.ComponentProps<typeof ControlPanel>; //#endregion
414
415
  //#endregion
415
416
  export { ControlPanel, ControlPanelProps };
@@ -7,12 +7,12 @@ import { jsx, jsxs } from "react/jsx-runtime";
7
7
  * @description A titled container for grouping property controls and settings
8
8
  */
9
9
  const ControlPanel = createComponent(({ props, title, children }) => {
10
- return jsxs("div", {
10
+ return /* @__PURE__ */ jsxs("div", {
11
11
  ...props.root,
12
- children: [title && jsx("span", {
12
+ children: [title && /* @__PURE__ */ jsx("span", {
13
13
  ...props.title,
14
14
  children: title
15
- }), jsx("div", {
15
+ }), /* @__PURE__ */ jsx("div", {
16
16
  ...props.items,
17
17
  children
18
18
  })]
@@ -1,5 +1,6 @@
1
1
  import { ComponentConfig } from "../../config/dist/createConfig.js";
2
2
  //#region ../components/dist/control-select.config.d.ts
3
+ //#region src/control-select.config.d.ts
3
4
  declare const controlSelectConfig: ComponentConfig<{
4
5
  ControlSelect: {
5
6
  readonly base: {
@@ -1171,6 +1172,6 @@ declare const controlSelectConfig: ComponentConfig<{
1171
1172
  };
1172
1173
  };
1173
1174
  }, {}>;
1174
- type ControlSelectConfig = typeof controlSelectConfig;
1175
+ type ControlSelectConfig = typeof controlSelectConfig; //#endregion
1175
1176
  //#endregion
1176
1177
  export { ControlSelectConfig, controlSelectConfig };
@@ -3,6 +3,7 @@ import * as _$react from "react";
3
3
  import * as _$_uds_types0 from "@uds/types";
4
4
 
5
5
  //#region ../components/dist/control-select.d.ts
6
+ //#region src/control-select.d.ts
6
7
  interface SelectOption {
7
8
  id: string;
8
9
  label: string;
@@ -1195,6 +1196,6 @@ declare const ControlSelect: _$react.FC<_$_uds_types0.CreateComponentProps<Compo
1195
1196
  option: "button";
1196
1197
  optionLabel: "span";
1197
1198
  }>>;
1198
- type ControlSelectProps = React.ComponentProps<typeof ControlSelect>;
1199
+ type ControlSelectProps = React.ComponentProps<typeof ControlSelect>; //#endregion
1199
1200
  //#endregion
1200
1201
  export { ControlSelect, ControlSelectProps, SelectOption };