@lanfermann/ui 0.4.0 → 0.6.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 (177) hide show
  1. package/dist/components/action-bar/action-bar.d.ts +59 -0
  2. package/dist/components/action-bar/action-bar.js +116 -0
  3. package/dist/components/alert/alert.d.ts +1 -1
  4. package/dist/components/alert/alert.js +3 -17
  5. package/dist/components/alert-dialog/alert-dialog.d.ts +1 -1
  6. package/dist/components/app-shell/app-shell.d.ts +33 -0
  7. package/dist/components/app-shell/app-shell.js +93 -0
  8. package/dist/components/attachment/attachment.d.ts +46 -0
  9. package/dist/components/attachment/attachment.js +222 -0
  10. package/dist/components/attachment/kinds.d.ts +7 -0
  11. package/dist/components/attachment/kinds.js +100 -0
  12. package/dist/components/avatar/avatar.d.ts +14 -4
  13. package/dist/components/avatar/avatar.js +57 -13
  14. package/dist/components/avatar-group/avatar-group.d.ts +33 -0
  15. package/dist/components/avatar-group/avatar-group.js +110 -0
  16. package/dist/components/avatar-group/people.d.ts +12 -0
  17. package/dist/components/avatar-group/people.js +24 -0
  18. package/dist/components/badge/badge.d.ts +9 -3
  19. package/dist/components/badge/badge.js +21 -6
  20. package/dist/components/banner/banner.d.ts +39 -0
  21. package/dist/components/banner/banner.js +149 -0
  22. package/dist/components/card/card.d.ts +11 -3
  23. package/dist/components/card/card.js +18 -4
  24. package/dist/components/checkbox-card/checkbox-card.d.ts +21 -0
  25. package/dist/components/checkbox-card/checkbox-card.js +49 -0
  26. package/dist/components/chip/chip-group.d.ts +15 -0
  27. package/dist/components/chip/chip-group.js +44 -0
  28. package/dist/components/chip/chip-variants.d.ts +6 -0
  29. package/dist/components/chip/chip-variants.js +28 -0
  30. package/dist/components/chip/chip.d.ts +39 -0
  31. package/dist/components/chip/chip.js +71 -0
  32. package/dist/components/code-block/code-block-live.d.ts +13 -1
  33. package/dist/components/code-block/code-block-live.js +10 -4
  34. package/dist/components/code-block/code-block.d.ts +1 -0
  35. package/dist/components/code-block/code-copy.d.ts +3 -11
  36. package/dist/components/code-block/code-copy.js +15 -62
  37. package/dist/components/code-block/code-keys.js +10 -22
  38. package/dist/components/code-block/code-lines-live.d.ts +7 -0
  39. package/dist/components/code-block/code-lines-live.js +167 -0
  40. package/dist/components/code-block/code-lines-view.d.ts +1 -0
  41. package/dist/components/code-block/code-lines-view.js +50 -18
  42. package/dist/components/code-block/code-lines.d.ts +3 -0
  43. package/dist/components/code-block/code-tabs.d.ts +1 -0
  44. package/dist/components/code-block/highlight.d.ts +1 -0
  45. package/dist/components/code-block/line-diff.js +135 -0
  46. package/dist/components/combobox/combobox.d.ts +50 -2
  47. package/dist/components/combobox/combobox.js +178 -9
  48. package/dist/components/command/command.d.ts +131 -0
  49. package/dist/components/command/command.js +335 -0
  50. package/dist/components/consent/consent-card.js +365 -0
  51. package/dist/components/consent/consent-embed.d.ts +21 -0
  52. package/dist/components/consent/consent-embed.js +111 -0
  53. package/dist/components/consent/consent-labels.d.ts +70 -0
  54. package/dist/components/consent/consent-labels.js +61 -0
  55. package/dist/components/consent/consent-record.d.ts +95 -0
  56. package/dist/components/consent/consent-record.js +112 -0
  57. package/dist/components/consent/consent-store.d.ts +26 -0
  58. package/dist/components/consent/consent-store.js +240 -0
  59. package/dist/components/consent/consent.d.ts +86 -0
  60. package/dist/components/consent/consent.js +306 -0
  61. package/dist/components/container/container.d.ts +1 -1
  62. package/dist/components/context-menu/context-menu.d.ts +23 -0
  63. package/dist/components/context-menu/context-menu.js +50 -0
  64. package/dist/components/conversation/conversation.d.ts +45 -0
  65. package/dist/components/conversation/conversation.js +295 -0
  66. package/dist/components/conversation/stick.js +23 -0
  67. package/dist/components/copy-button/copy-button.d.ts +50 -0
  68. package/dist/components/copy-button/copy-button.js +65 -0
  69. package/dist/components/copy-page/copy-page.js +7 -17
  70. package/dist/components/copy-pill/copy-pill.js +1 -1
  71. package/dist/components/description-list/description-list.d.ts +32 -0
  72. package/dist/components/description-list/description-list.js +51 -0
  73. package/dist/components/empty/empty.d.ts +38 -0
  74. package/dist/components/empty/empty.js +57 -0
  75. package/dist/components/field/field.js +1 -1
  76. package/dist/components/file-upload/file-upload.d.ts +96 -0
  77. package/dist/components/file-upload/file-upload.js +347 -0
  78. package/dist/components/file-upload/files.d.ts +39 -0
  79. package/dist/components/file-upload/files.js +74 -0
  80. package/dist/components/grow/grow.d.ts +15 -3
  81. package/dist/components/grow/grow.js +31 -10
  82. package/dist/components/heading/heading.d.ts +1 -1
  83. package/dist/components/icon/icon.d.ts +1 -1
  84. package/dist/components/input/input.js +1 -1
  85. package/dist/components/message/message.d.ts +73 -0
  86. package/dist/components/message/message.js +196 -0
  87. package/dist/components/otp-field/otp-field.d.ts +37 -0
  88. package/dist/components/otp-field/otp-field.js +126 -0
  89. package/dist/components/pagination/pagination.d.ts +50 -0
  90. package/dist/components/pagination/pagination.js +188 -0
  91. package/dist/components/prompt-input/keys.js +15 -0
  92. package/dist/components/prompt-input/prompt-input.d.ts +89 -0
  93. package/dist/components/prompt-input/prompt-input.js +331 -0
  94. package/dist/components/radio-card/radio-card.d.ts +23 -0
  95. package/dist/components/radio-card/radio-card.js +48 -0
  96. package/dist/components/rolling-number/rolling-number.d.ts +30 -0
  97. package/dist/components/rolling-number/rolling-number.js +149 -0
  98. package/dist/components/seam/seam.d.ts +1 -1
  99. package/dist/components/secret-field/secret-field.d.ts +53 -0
  100. package/dist/components/secret-field/secret-field.js +121 -0
  101. package/dist/components/section/section.d.ts +1 -1
  102. package/dist/components/select/select.d.ts +1 -1
  103. package/dist/components/select/select.js +1 -1
  104. package/dist/components/shortcut/shortcut.d.ts +46 -0
  105. package/dist/components/shortcut/shortcut.js +87 -0
  106. package/dist/components/sidebar/sidebar-context.js +16 -0
  107. package/dist/components/sidebar/sidebar.d.ts +161 -0
  108. package/dist/components/sidebar/sidebar.js +588 -0
  109. package/dist/components/site-header/site-header.js +1 -1
  110. package/dist/components/skeleton/loaded.d.ts +21 -0
  111. package/dist/components/skeleton/loaded.js +57 -0
  112. package/dist/components/skeleton/skeleton.d.ts +43 -0
  113. package/dist/components/skeleton/skeleton.js +48 -0
  114. package/dist/components/sources/source-list.d.ts +17 -0
  115. package/dist/components/sources/source-list.js +26 -0
  116. package/dist/components/sources/sources.d.ts +45 -0
  117. package/dist/components/sources/sources.js +167 -0
  118. package/dist/components/stat/stat.d.ts +57 -0
  119. package/dist/components/stat/stat.js +110 -0
  120. package/dist/components/steps/steps.d.ts +57 -0
  121. package/dist/components/steps/steps.js +131 -0
  122. package/dist/components/table/table.d.ts +18 -9
  123. package/dist/components/table/table.js +21 -13
  124. package/dist/components/text/text.d.ts +1 -1
  125. package/dist/components/theme-switch/theme-switch.js +1 -1
  126. package/dist/components/time-field/time-field.js +1 -1
  127. package/dist/components/timeline/timeline.d.ts +45 -0
  128. package/dist/components/timeline/timeline.js +86 -0
  129. package/dist/components/toast/toast.js +10 -26
  130. package/dist/components/toggle/toggle.d.ts +24 -0
  131. package/dist/components/toggle/toggle.js +53 -0
  132. package/dist/components/toggle-group/toggle-group.d.ts +27 -0
  133. package/dist/components/toggle-group/toggle-group.js +38 -0
  134. package/dist/components/toolbar/toolbar-context.js +12 -0
  135. package/dist/components/toolbar/toolbar.d.ts +45 -0
  136. package/dist/components/toolbar/toolbar.js +92 -0
  137. package/dist/components/trace/trace.d.ts +2 -1
  138. package/dist/components/trace/trace.js +14 -26
  139. package/dist/index.d.ts +46 -3
  140. package/dist/index.js +44 -3
  141. package/dist/internal/arriving-pieces.js +56 -0
  142. package/dist/internal/arriving.js +171 -0
  143. package/dist/internal/avatar-cut.d.ts +15 -0
  144. package/dist/internal/avatar-cut.js +83 -0
  145. package/dist/internal/choice-card.d.ts +15 -0
  146. package/dist/internal/choice-card.js +65 -0
  147. package/dist/internal/clipboard.js +37 -0
  148. package/dist/internal/copy.js +58 -0
  149. package/dist/internal/field.js +24 -4
  150. package/dist/internal/glyphs.js +26 -1
  151. package/dist/internal/live-list.js +41 -0
  152. package/dist/internal/number-places.js +156 -0
  153. package/dist/internal/picker-sheet.js +1 -1
  154. package/dist/internal/presence-dot.js +24 -0
  155. package/dist/internal/presence.js +104 -0
  156. package/dist/internal/rail-mark.d.ts +3 -0
  157. package/dist/internal/rail-mark.js +33 -0
  158. package/dist/internal/status-icon.js +22 -0
  159. package/dist/internal/travelling-mark.js +204 -0
  160. package/dist/lib/cn.js +4 -0
  161. package/dist/lib/shortcut.d.ts +11 -0
  162. package/dist/lib/shortcut.js +165 -0
  163. package/package.json +1 -1
  164. package/src/styles/action-bar.css +28 -0
  165. package/src/styles/assistant.css +83 -0
  166. package/src/styles/avatar.css +24 -0
  167. package/src/styles/code.css +89 -1
  168. package/src/styles/consent.css +65 -0
  169. package/src/styles/copy.css +12 -11
  170. package/src/styles/depth.css +46 -2
  171. package/src/styles/marks.css +20 -2
  172. package/src/styles/rail.css +49 -0
  173. package/src/styles/rolling-number.css +94 -0
  174. package/src/styles/steps.css +98 -0
  175. package/src/styles/timeline.css +48 -0
  176. package/src/styles/travel.css +36 -0
  177. package/src/styles.css +9 -0
@@ -0,0 +1,12 @@
1
+ "use client";
2
+ import { createContext, useContext } from "react";
3
+ // src/components/toolbar/toolbar-context.ts
4
+ /**
5
+ * Whether a part stands in a `Toolbar`. A `Toggle` that finds it joins the toolbar's one tab
6
+ * stop by itself, so a `ToggleGroup` can be put into a toolbar as it is.
7
+ */
8
+ const ToolbarContext = createContext(false);
9
+ function useInToolbar() {
10
+ return useContext(ToolbarContext);
11
+ }
12
+ export { ToolbarContext, useInToolbar };
@@ -0,0 +1,45 @@
1
+ import { ButtonProps } from "../button/button.js";
2
+ import { InputProps } from "../input/input.js";
3
+ import { Toolbar as Toolbar$1 } from "@base-ui/react/toolbar";
4
+ import { ReactElement } from "react";
5
+ export type ToolbarProps = Toolbar$1.Root.Props;
6
+ /**
7
+ * A row of controls that work on the same thing: the keys above a text, the tools of a
8
+ * drawing, the actions of a view. It is one stop for the Tab key; the arrow keys move between
9
+ * its controls and come round at its ends. Name it (`aria-label`) with what it works on
10
+ * ("Text formatieren").
11
+ *
12
+ * The bar itself is a tray, flat on the page: the keys in it are the fittings. Put
13
+ * `ToolbarButton`s inside, `ToggleGroup`s and `Toggle`s as they are, a `ToolbarSeparator`
14
+ * between two kinds of control, and at most one `ToolbarInput`, last, because the arrow keys
15
+ * also move the text cursor. It is only the bar: what the keys do is the caller's.
16
+ */
17
+ export declare function Toolbar({ className, ...props }: ToolbarProps): import("react").JSX.Element;
18
+ /** `Omit` that keeps a union a union: a key is named either by its words or by `aria-label`. */
19
+ type Without<Props, Key extends PropertyKey> = Props extends unknown ? Omit<Props, Key> : never;
20
+ export type ToolbarButtonProps = Without<ButtonProps, "render"> & {
21
+ /**
22
+ * Another control to be the key: the trigger of a `Select` (`render={<SelectTrigger />}`).
23
+ * The trigger of a menu, a popover or a dialog goes the other way round:
24
+ * `<MenuTrigger render={<ToolbarButton />}>`.
25
+ */
26
+ render?: ReactElement;
27
+ };
28
+ /**
29
+ * One key of a toolbar: a quiet, small `Button` unless told otherwise. A key that cannot be
30
+ * used right now stays in reach of the arrow keys and says that it is disabled.
31
+ */
32
+ export declare function ToolbarButton({ render, size, variant, className, disabled, focusableWhenDisabled, ...props }: ToolbarButtonProps): import("react").JSX.Element;
33
+ /** A link among the keys. It keeps link semantics and wears a quiet key. */
34
+ export declare function ToolbarLink({ className, ...props }: Toolbar$1.Link.Props): import("react").JSX.Element;
35
+ /** Keys that belong together inside the bar, and can be disabled together. Name the group. */
36
+ export declare function ToolbarGroup({ className, ...props }: Toolbar$1.Group.Props): import("react").JSX.Element;
37
+ /** A hairline between two kinds of control. It stands across the bar's direction. */
38
+ export declare function ToolbarSeparator({ className, ...props }: Toolbar$1.Separator.Props): import("react").JSX.Element;
39
+ export type ToolbarInputProps = Omit<InputProps, "render">;
40
+ /**
41
+ * A small field in the bar (a zoom, a page number). One per toolbar, at its end: inside it the
42
+ * arrow keys move the text cursor, and leave the field only at the text's ends.
43
+ */
44
+ export declare function ToolbarInput({ size, ...props }: ToolbarInputProps): import("react").JSX.Element;
45
+ export {};
@@ -0,0 +1,92 @@
1
+ "use client";
2
+ import { Button } from "../button/button.js";
3
+ import { buttonVariants } from "../button/button-variants.js";
4
+ import { Input } from "../input/input.js";
5
+ import { cn, mergeClassName } from "../../lib/cn.js";
6
+ import { ToolbarContext } from "./toolbar-context.js";
7
+ import { jsx } from "react/jsx-runtime";
8
+ import { Toolbar as Toolbar$1 } from "@base-ui/react/toolbar";
9
+ // src/components/toolbar/toolbar.tsx
10
+ /**
11
+ * A row of controls that work on the same thing: the keys above a text, the tools of a
12
+ * drawing, the actions of a view. It is one stop for the Tab key; the arrow keys move between
13
+ * its controls and come round at its ends. Name it (`aria-label`) with what it works on
14
+ * ("Text formatieren").
15
+ *
16
+ * The bar itself is a tray, flat on the page: the keys in it are the fittings. Put
17
+ * `ToolbarButton`s inside, `ToggleGroup`s and `Toggle`s as they are, a `ToolbarSeparator`
18
+ * between two kinds of control, and at most one `ToolbarInput`, last, because the arrow keys
19
+ * also move the text cursor. It is only the bar: what the keys do is the caller's.
20
+ */
21
+ function Toolbar({ className, ...props }) {
22
+ return /* @__PURE__ */ jsx(ToolbarContext, {
23
+ value: true,
24
+ children: /* @__PURE__ */ jsx(Toolbar$1.Root, {
25
+ "data-slot": "toolbar",
26
+ className: mergeClassName("flex flex-wrap items-center gap-1 data-[orientation=vertical]:flex-col data-[orientation=vertical]:flex-nowrap", className),
27
+ ...props
28
+ })
29
+ });
30
+ }
31
+ /**
32
+ * One key of a toolbar: a quiet, small `Button` unless told otherwise. A key that cannot be
33
+ * used right now stays in reach of the arrow keys and says that it is disabled.
34
+ */
35
+ function ToolbarButton({ render, size = "sm", variant = "quiet", className, disabled, focusableWhenDisabled, ...props }) {
36
+ return /* @__PURE__ */ jsx(Toolbar$1.Button, {
37
+ "data-slot": "toolbar-button",
38
+ disabled,
39
+ focusableWhenDisabled,
40
+ render: render ?? /* @__PURE__ */ jsx(Button, {
41
+ size,
42
+ variant,
43
+ ...props,
44
+ className: cn("shrink-0", className)
45
+ })
46
+ });
47
+ }
48
+ /** A link among the keys. It keeps link semantics and wears a quiet key. */
49
+ function ToolbarLink({ className, ...props }) {
50
+ return /* @__PURE__ */ jsx(Toolbar$1.Link, {
51
+ "data-slot": "toolbar-link",
52
+ className: mergeClassName([buttonVariants({
53
+ variant: "quiet",
54
+ size: "sm"
55
+ }), "shrink-0"], className),
56
+ ...props
57
+ });
58
+ }
59
+ /** Keys that belong together inside the bar, and can be disabled together. Name the group. */
60
+ function ToolbarGroup({ className, ...props }) {
61
+ return /* @__PURE__ */ jsx(Toolbar$1.Group, {
62
+ "data-slot": "toolbar-group",
63
+ className: mergeClassName("flex items-center gap-0.5 data-[orientation=vertical]:flex-col", className),
64
+ ...props
65
+ });
66
+ }
67
+ /** A hairline between two kinds of control. It stands across the bar's direction. */
68
+ function ToolbarSeparator({ className, ...props }) {
69
+ return /* @__PURE__ */ jsx(Toolbar$1.Separator, {
70
+ "data-slot": "toolbar-separator",
71
+ className: mergeClassName([
72
+ "shrink-0 bg-hairline forced-colors:bg-[CanvasText]",
73
+ "data-[orientation=vertical]:mx-1 data-[orientation=vertical]:h-5 data-[orientation=vertical]:w-px",
74
+ "data-[orientation=horizontal]:my-1 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-5"
75
+ ], className),
76
+ ...props
77
+ });
78
+ }
79
+ /**
80
+ * A small field in the bar (a zoom, a page number). One per toolbar, at its end: inside it the
81
+ * arrow keys move the text cursor, and leave the field only at the text's ends.
82
+ */
83
+ function ToolbarInput({ size = "sm", ...props }) {
84
+ return /* @__PURE__ */ jsx(Toolbar$1.Input, {
85
+ "data-slot": "toolbar-input",
86
+ render: /* @__PURE__ */ jsx(Input, {
87
+ size,
88
+ ...props
89
+ })
90
+ });
91
+ }
92
+ export { Toolbar, ToolbarButton, ToolbarGroup, ToolbarInput, ToolbarLink, ToolbarSeparator };
@@ -1,7 +1,8 @@
1
1
  import { IconSvgElement } from "../icon/icon.js";
2
+ import { RailStatus } from "../../internal/rail-mark.js";
2
3
  import { ComponentProps, ReactNode } from "react";
3
4
  /** Where a step stands: not begun, being worked on, finished, or failed. */
4
- export type TraceStatus = "pending" | "running" | "done" | "error";
5
+ export type TraceStatus = RailStatus;
5
6
  /** What stands in front of a finished step: the system's disc, or the step's own symbol. */
6
7
  export type TraceMarks = "dots" | "symbols";
7
8
  export type TraceProps = ComponentProps<"ol"> & {
@@ -1,11 +1,9 @@
1
1
  "use client";
2
- import { Icon } from "../icon/icon.js";
3
- import { Spinner } from "../spinner/spinner.js";
4
2
  import { disclosurePanel } from "../../internal/disclosure.js";
5
3
  import { ChevronRightGlyph } from "../../internal/glyphs.js";
4
+ import { RailMark } from "../../internal/rail-mark.js";
6
5
  import { cn } from "../../lib/cn.js";
7
6
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
8
- import { Alert02Icon } from "@hugeicons/core-free-icons";
9
7
  import { createContext, useContext, useEffect, useMemo, useState } from "react";
10
8
  import { Collapsible } from "@base-ui/react/collapsible";
11
9
  // src/components/trace/trace.tsx
@@ -55,26 +53,14 @@ function Trace({ marks = "dots", statusLabels, className, ...props }) {
55
53
  })
56
54
  });
57
55
  }
58
- /** The mark in front of a line: ring, arc, disc, or the danger symbol. */
59
- function TraceMark({ status, icon }) {
60
- return /* @__PURE__ */ jsx("span", {
61
- "aria-hidden": true,
62
- "data-slot": "trace-mark",
63
- className: "flex size-4 shrink-0 items-center justify-center",
64
- children: status === "running" ? /* @__PURE__ */ jsx(Spinner, {
65
- size: 14,
66
- className: "text-fg"
67
- }) : status === "error" ? /* @__PURE__ */ jsx(Icon, {
68
- icon: Alert02Icon,
69
- size: 14,
70
- className: "text-danger"
71
- }) : icon && status === "done" ? /* @__PURE__ */ jsx(Icon, {
72
- icon,
73
- size: 14,
74
- className: "text-fg-muted transition-opacity spring-settle in-data-live:starting:opacity-0"
75
- }) : /* @__PURE__ */ jsx("span", { className: cn("mark", status === "done" && "mark-on in-data-live:mark-closes") })
76
- });
77
- }
56
+ /**
57
+ * A step that has just finished: its symbol comes in where the arc was, or its ring closes into
58
+ * the disc (marks.css). On load both stand still.
59
+ */
60
+ const markEnter = {
61
+ icon: "in-data-live:starting:opacity-0",
62
+ disc: "in-data-live:mark-closes"
63
+ };
78
64
  const titleTone = {
79
65
  pending: "text-fg-muted",
80
66
  running: "shimmer",
@@ -85,9 +71,11 @@ const titleTone = {
85
71
  function TraceLine({ status, title, meta, icon, opens }) {
86
72
  const { labels, marks } = useContext(TraceContext);
87
73
  return /* @__PURE__ */ jsxs(Fragment, { children: [
88
- /* @__PURE__ */ jsx(TraceMark, {
74
+ /* @__PURE__ */ jsx(RailMark, {
75
+ slot: "trace-mark",
89
76
  status,
90
- icon: marks === "symbols" ? icon : void 0
77
+ icon: marks === "symbols" ? icon : void 0,
78
+ enter: markEnter
91
79
  }),
92
80
  /* @__PURE__ */ jsxs("span", {
93
81
  "data-slot": "trace-title",
@@ -145,7 +133,7 @@ function TraceStep({ status = "done", title, meta, icon, open, defaultOpen, onOp
145
133
  return /* @__PURE__ */ jsx("li", {
146
134
  "data-slot": "trace-step",
147
135
  "data-status": status,
148
- className: cn("relative flex flex-col", "transition-[opacity,translate] spring-settle in-data-live:starting:translate-y-(--motion-enter-offset) in-data-live:starting:opacity-0", "before:absolute before:top-[1.4375rem] before:-bottom-[0.3125rem] before:left-[0.46875rem] before:w-px before:bg-hairline last:before:hidden forced-colors:before:bg-[CanvasText]", className),
136
+ className: cn("rail-item flex flex-col", "transition-[opacity,translate] spring-settle in-data-live:starting:translate-y-(--motion-enter-offset) in-data-live:starting:opacity-0", className),
149
137
  ...props,
150
138
  children: opens ? /* @__PURE__ */ jsxs(Collapsible.Root, {
151
139
  open,
package/dist/index.d.ts CHANGED
@@ -1,18 +1,28 @@
1
1
  import { Accordion, AccordionItem, AccordionItemProps, AccordionPanel, AccordionPanelProps, AccordionProps, AccordionTrigger, AccordionTriggerProps } from "./components/accordion/accordion.js";
2
+ import { ActionBar, ActionBarButton, ActionBarButtonProps, ActionBarProps } from "./components/action-bar/action-bar.js";
2
3
  import { Alert, AlertDescription, AlertProps, AlertTitle } from "./components/alert/alert.js";
3
4
  import { AlertDialog, AlertDialogClose, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger } from "./components/alert-dialog/alert-dialog.js";
4
5
  import { AnchorHeading, AnchorHeadingProps } from "./components/anchor-heading/anchor-heading.js";
6
+ import { AppShell, AppShellBar, AppShellMain, AppShellPage, AppShellProps } from "./components/app-shell/app-shell.js";
7
+ import { Attachment, AttachmentProps, AttachmentStatus, AttachmentVariant, MessageAttachments, MessageAttachmentsProps } from "./components/attachment/attachment.js";
8
+ import { FileKind, kindOf } from "./components/attachment/kinds.js";
5
9
  import { Avatar, AvatarFallback, AvatarImage, AvatarProps } from "./components/avatar/avatar.js";
10
+ import { AvatarGroup, AvatarGroupProps } from "./components/avatar-group/avatar-group.js";
11
+ import { AvatarPerson, Presence } from "./components/avatar-group/people.js";
6
12
  import { Badge, BadgeProps } from "./components/badge/badge.js";
13
+ import { Banner, BannerProps, BannerTone } from "./components/banner/banner.js";
7
14
  import { BreadcrumbItem, BreadcrumbLink, BreadcrumbLinkProps, BreadcrumbPage, Breadcrumbs, BreadcrumbsProps } from "./components/breadcrumbs/breadcrumbs.js";
8
15
  import { Button, ButtonProps } from "./components/button/button.js";
9
16
  import { ButtonVariants, buttonVariants } from "./components/button/button-variants.js";
10
17
  import { ButtonGroup, ButtonGroupProps } from "./components/button-group/button-group.js";
11
18
  import { Calendar, CalendarProps, DateRange } from "./components/calendar/calendar.js";
12
19
  import { Callout, CalloutProps, CalloutTone } from "./components/callout/callout.js";
13
- import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "./components/card/card.js";
20
+ import { Card, CardBar, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "./components/card/card.js";
14
21
  import { Checkbox, CheckboxProps } from "./components/checkbox/checkbox.js";
22
+ import { CheckboxCard, CheckboxCardProps } from "./components/checkbox-card/checkbox-card.js";
15
23
  import { CheckboxGroup, CheckboxGroupItems, CheckboxGroupProps } from "./components/checkbox-group/checkbox-group.js";
24
+ import { Chip, ChipProps } from "./components/chip/chip.js";
25
+ import { ChipGroup, ChipGroupProps } from "./components/chip/chip-group.js";
16
26
  import { Code } from "./components/code/code.js";
17
27
  import { CodeBlock, CodeBlockProps } from "./components/code-block/code-block.js";
18
28
  import { CodeBlockLive, CodeBlockLiveProps, CodePiece, CodeRole } from "./components/code-block/code-block-live.js";
@@ -21,20 +31,33 @@ import { CodeTab, CodeTabs, CodeTabsProps } from "./components/code-block/code-t
21
31
  import { CodeLanguage } from "./components/code-block/highlight.js";
22
32
  import { LineSpec } from "./components/code-block/lines.js";
23
33
  import { Collapsible, CollapsiblePanel, CollapsiblePanelProps, CollapsibleProps, CollapsibleTrigger, CollapsibleTriggerProps } from "./components/collapsible/collapsible.js";
24
- import { Combobox, ComboboxCollection, ComboboxContent, ComboboxContentProps, ComboboxGroup, ComboboxGroupLabel, ComboboxInput, ComboboxInputProps, ComboboxItem, ComboboxItemProps, ComboboxOption, ComboboxOptionGroup, ComboboxProps, ComboboxSeparator } from "./components/combobox/combobox.js";
34
+ import { Combobox, ComboboxChips, ComboboxChipsProps, ComboboxCollection, ComboboxContent, ComboboxContentProps, ComboboxGroup, ComboboxGroupLabel, ComboboxInput, ComboboxInputProps, ComboboxItem, ComboboxItemProps, ComboboxOption, ComboboxOptionGroup, ComboboxProps, ComboboxSeparator } from "./components/combobox/combobox.js";
35
+ import { Command, CommandContent, CommandContentProps, CommandEntry, CommandFooter, CommandFooterProps, CommandInput, CommandInputProps, CommandItems, CommandList, CommandListProps, CommandProps, CommandSection, CommandTrigger } from "./components/command/command.js";
36
+ import { ConsentGate, ConsentGateProps, ConsentProvider, ConsentProviderProps, ConsentSettingsTrigger, ConsentSettingsTriggerProps, UseConsentResult, useConsent } from "./components/consent/consent.js";
37
+ import { ConsentEmbed, ConsentEmbedProps } from "./components/consent/consent-embed.js";
38
+ import { ConsentLabels, consentLabels } from "./components/consent/consent-labels.js";
39
+ import { ConsentCategory, ConsentConfig, ConsentRecord, ConsentService, ConsentStorage, ConsentStorageKind, consentAllows, parseConsent } from "./components/consent/consent-record.js";
40
+ import { ConsentChange, ConsentJar, ConsentStatus, createMemoryJar } from "./components/consent/consent-store.js";
25
41
  import { Container, ContainerProps, containerVariants } from "./components/container/container.js";
42
+ import { ContextMenu, ContextMenuContent, ContextMenuContentProps, ContextMenuTrigger } from "./components/context-menu/context-menu.js";
43
+ import { Conversation, ConversationApi, ConversationContent, ConversationContentProps, ConversationLatest, ConversationLatestProps, ConversationProps, useConversation } from "./components/conversation/conversation.js";
44
+ import { CopyButton, CopyButtonLabels, CopyButtonProps } from "./components/copy-button/copy-button.js";
26
45
  import { CopyPage, CopyPageProps } from "./components/copy-page/copy-page.js";
27
46
  import { CopyPill, CopyPillMark, CopyPillProps } from "./components/copy-pill/copy-pill.js";
28
47
  import { Cta, CtaAction, CtaActionProps, CtaActions, CtaMessage, CtaMessageProps, CtaProps, CtaText, CtaTitle, CtaTone } from "./components/cta/cta.js";
29
48
  import { DateField, DateFieldProps } from "./components/date-field/date-field.js";
30
49
  import { DateRangeField, DateRangeFieldProps } from "./components/date-range-field/date-range-field.js";
50
+ import { DescriptionDetails, DescriptionDetailsProps, DescriptionList, DescriptionListProps, DescriptionTerm } from "./components/description-list/description-list.js";
31
51
  import { Dialog, DialogBody, DialogClose, DialogContent, DialogContentProps, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger } from "./components/dialog/dialog.js";
32
52
  import { DocsLayout, DocsLayoutAside, DocsLayoutMain, DocsLayoutNav } from "./components/docs-layout/docs-layout.js";
33
53
  import { DocsCrumb, DocsGroup, DocsNav, DocsPage, DocsPlace, docsPageState, docsPages, findDocsPage, sameDocsPage } from "./components/docs-layout/docs-nav.js";
34
54
  import { Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerContentProps, DrawerDescription, DrawerFooter, DrawerHeader, DrawerProps, DrawerSide, DrawerTitle, DrawerTrigger } from "./components/drawer/drawer.js";
55
+ import { Empty, EmptyActions, EmptyMedia, EmptyMediaProps, EmptyProps, EmptyText, EmptyTitle, EmptyTitleProps } from "./components/empty/empty.js";
35
56
  import { Field, FieldDescription, FieldError, FieldLabel } from "./components/field/field.js";
36
57
  import { Fieldset, FieldsetLegend } from "./components/fieldset/fieldset.js";
37
58
  import { Figure, FigureCaption, FigureFrame } from "./components/figure/figure.js";
59
+ import { FileUpload, FileUploadItem, FileUploadItemProps, FileUploadList, FileUploadListProps, FileUploadProps, FileUploadStatus, FileUploadZone, FileUploadZoneProps } from "./components/file-upload/file-upload.js";
60
+ import { FileRejection, FileRules, acceptsFile, formatFileProgress, formatFileSize, sortFiles } from "./components/file-upload/files.js";
38
61
  import { Form, FormProps } from "./components/form/form.js";
39
62
  import { Ground, GroundName, GroundProps, useGround } from "./components/ground/ground.js";
40
63
  import { Grow, GrowProps } from "./components/grow/grow.js";
@@ -49,31 +72,46 @@ import { LinkVariants, linkVariants } from "./components/link/link-variants.js";
49
72
  import { Logomark, LogomarkProps } from "./components/logo/logomark.js";
50
73
  import { Wordmark, WordmarkProps } from "./components/logo/wordmark.js";
51
74
  import { Menu, MenuCheckboxItem, MenuContent, MenuContentProps, MenuGroup, MenuGroupLabel, MenuItem, MenuLinkItem, MenuRadioGroup, MenuRadioItem, MenuSeparator, MenuSub, MenuSubContent, MenuSubTrigger, MenuTrigger } from "./components/menu/menu.js";
75
+ import { Message, MessageAction, MessageActionProps, MessageActions, MessageContent, MessageContentProps, MessageError, MessageErrorProps, MessageFeedback, MessageFeedbackProps, MessageFrom, MessageProps, MessageVerdict } from "./components/message/message.js";
52
76
  import { Meter, MeterLabel, MeterProps, MeterTrack, MeterValue } from "./components/meter/meter.js";
53
77
  import { NavigationMenu, NavigationMenuContent, NavigationMenuItem, NavigationMenuLink, NavigationMenuLinkDescription, NavigationMenuLinkProps, NavigationMenuLinkTitle, NavigationMenuList, NavigationMenuProps, NavigationMenuTrigger } from "./components/navigation-menu/navigation-menu.js";
54
78
  import { NavigationMenuEntryVariants, navigationMenuEntryVariants } from "./components/navigation-menu/navigation-menu-variants.js";
55
79
  import { NumberField, NumberFieldDecrement, NumberFieldIncrement, NumberFieldInput, NumberFieldProps } from "./components/number-field/number-field.js";
80
+ import { OtpField, OtpFieldProps } from "./components/otp-field/otp-field.js";
56
81
  import { Pager, PagerLink, PagerLinkProps, PagerProps } from "./components/pager/pager.js";
82
+ import { Pagination, PaginationProps } from "./components/pagination/pagination.js";
57
83
  import { Parameter, ParameterList, ParameterProps } from "./components/parameter-list/parameter-list.js";
58
84
  import { Popover, PopoverClose, PopoverContent, PopoverContentProps, PopoverDescription, PopoverTitle, PopoverTrigger } from "./components/popover/popover.js";
59
85
  import { Progress, ProgressLabel, ProgressProps, ProgressTrack, ProgressValue } from "./components/progress/progress.js";
86
+ import { PromptInput, PromptInputActions, PromptInputAttach, PromptInputAttachProps, PromptInputAttachments, PromptInputAttachmentsProps, PromptInputProps, PromptInputSubmit, PromptInputSubmitProps, PromptInputTextarea, PromptInputTextareaProps } from "./components/prompt-input/prompt-input.js";
60
87
  import { Prose } from "./components/prose/prose.js";
61
88
  import { Quote, QuoteProps } from "./components/quote/quote.js";
62
89
  import { Radio, RadioGroup, RadioGroupProps, RadioProps } from "./components/radio/radio.js";
90
+ import { RadioCard, RadioCardProps } from "./components/radio-card/radio-card.js";
63
91
  import { ReferenceEntry, ReferenceEntryBody, ReferenceEntryHeader, ReferenceEntryMeta, ReferenceEntryName, ReferenceEntryTitle } from "./components/reference-entry/reference-entry.js";
92
+ import { RollingNumber, RollingNumberProps } from "./components/rolling-number/rolling-number.js";
64
93
  import { ScrollFade, ScrollFadeProps } from "./components/scroll-fade/scroll-fade.js";
65
94
  import { useScrollEdges } from "./components/scroll-fade/use-scroll-edges.js";
66
95
  import { Seam, SeamProps } from "./components/seam/seam.js";
96
+ import { SecretField, SecretFieldProps } from "./components/secret-field/secret-field.js";
67
97
  import { Section, SectionProps } from "./components/section/section.js";
68
98
  import { Segment, SegmentProps, SegmentedControl, SegmentedControlProps } from "./components/segmented-control/segmented-control.js";
69
99
  import { Select, SelectContent, SelectContentProps, SelectGroup, SelectGroupLabel, SelectItem, SelectItemProps, SelectOption, SelectOptionGroup, SelectProps, SelectSeparator, SelectTrigger, SelectTriggerProps } from "./components/select/select.js";
70
100
  import { Separator, SeparatorProps } from "./components/separator/separator.js";
71
101
  import { Shimmer, ShimmerProps } from "./components/shimmer/shimmer.js";
102
+ import { Shortcut, ShortcutProps, ShortcutProvider, ShortcutProviderProps, UseShortcutOptions, usePlatform, useShortcut } from "./components/shortcut/shortcut.js";
72
103
  import { SideNav, SideNavGroup, SideNavGroupProps, SideNavLink, SideNavLinkProps, SideNavProps, SideNavSubLink, SideNavSubLinkProps } from "./components/side-nav/side-nav.js";
104
+ import { Sidebar, SidebarButton, SidebarButtonProps, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupProps, SidebarHeader, SidebarItem, SidebarItemProps, SidebarMenu, SidebarMenuProps, SidebarProps, SidebarSubItem, SidebarSubItemProps, SidebarTrigger, SidebarTriggerProps } from "./components/sidebar/sidebar.js";
73
105
  import { SiteFooter, SiteFooterBrand, SiteFooterGroup, SiteFooterGroupProps, SiteFooterLegal, SiteFooterLink, SiteFooterMain, SiteFooterNav, siteFooterLinkClass } from "./components/site-footer/site-footer.js";
74
106
  import { SiteHeader, SiteHeaderActions, SiteHeaderBrand, SiteHeaderBrandProps, SiteHeaderMenu, SiteHeaderMenuGroup, SiteHeaderMenuGroupProps, SiteHeaderMenuLink, SiteHeaderMenuLinkProps, SiteHeaderMenuProps, SiteHeaderProps } from "./components/site-header/site-header.js";
107
+ import { Loaded, LoadedProps } from "./components/skeleton/loaded.js";
108
+ import { Skeleton, SkeletonGroup, SkeletonGroupProps, SkeletonProps } from "./components/skeleton/skeleton.js";
75
109
  import { Slider, SliderControl, SliderControlProps, SliderLabel, SliderProps, SliderThumb, SliderThumbProps, SliderValue } from "./components/slider/slider.js";
110
+ import { Source, siteOf } from "./components/sources/source-list.js";
111
+ import { SourceList, SourceListProps, SourceReference, SourceReferenceProps, Sources, SourcesProps } from "./components/sources/sources.js";
76
112
  import { Spinner, SpinnerProps } from "./components/spinner/spinner.js";
113
+ import { Stat, StatChange, StatChangeProps, StatGroup, StatGroupProps, StatLabel, StatTrend, StatValue } from "./components/stat/stat.js";
114
+ import { Step, StepProps, StepStatus, Steps, StepsProps } from "./components/steps/steps.js";
77
115
  import { Switch, SwitchProps } from "./components/switch/switch.js";
78
116
  import { Table, TableBody, TableCaption, TableCell, TableCellProps, TableFooter, TableHead, TableHeadProps, TableHeader, TableProps, TableRow, TableRowProps, TableSortButton, TableSortButtonProps } from "./components/table/table.js";
79
117
  import { TableOfContents, TableOfContentsProps, TocItem } from "./components/table-of-contents/table-of-contents.js";
@@ -82,9 +120,14 @@ import { Text, TextProps } from "./components/text/text.js";
82
120
  import { Textarea, TextareaProps } from "./components/textarea/textarea.js";
83
121
  import { Theme, ThemeSwitch, ThemeSwitchProps } from "./components/theme-switch/theme-switch.js";
84
122
  import { TimeField, TimeFieldProps } from "./components/time-field/time-field.js";
123
+ import { Timeline, TimelineGroup, TimelineGroupProps, TimelineItem, TimelineItemProps } from "./components/timeline/timeline.js";
85
124
  import { ToastOptions, ToastTone, Toaster, ToasterProps, toast, toastManager } from "./components/toast/toast.js";
125
+ import { Toggle, ToggleProps } from "./components/toggle/toggle.js";
126
+ import { ToggleGroup, ToggleGroupProps } from "./components/toggle-group/toggle-group.js";
127
+ import { Toolbar, ToolbarButton, ToolbarButtonProps, ToolbarGroup, ToolbarInput, ToolbarInputProps, ToolbarLink, ToolbarProps, ToolbarSeparator } from "./components/toolbar/toolbar.js";
86
128
  import { Tooltip, TooltipContent, TooltipContentProps, TooltipProvider, TooltipTrigger } from "./components/tooltip/tooltip.js";
87
129
  import { Trace, TraceMarks, TraceProps, TraceStatus, TraceStep, TraceStepProps, TraceSummary, TraceSummaryProps } from "./components/trace/trace.js";
88
130
  import { cn, mergeClassName } from "./lib/cn.js";
131
+ import { Platform } from "./lib/shortcut.js";
89
132
  import { SpringName, springs, transitions } from "./motion/springs.js";
90
- export { Accordion, AccordionItem, type AccordionItemProps, AccordionPanel, type AccordionPanelProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, Alert, AlertDescription, AlertDialog, AlertDialogClose, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, type AlertProps, AlertTitle, AnchorHeading, type AnchorHeadingProps, Avatar, AvatarFallback, AvatarImage, type AvatarProps, Badge, type BadgeProps, BreadcrumbItem, BreadcrumbLink, type BreadcrumbLinkProps, BreadcrumbPage, Breadcrumbs, type BreadcrumbsProps, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, type ButtonVariants, Calendar, type CalendarProps, Callout, type CalloutProps, type CalloutTone, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, CheckboxGroup, CheckboxGroupItems, type CheckboxGroupProps, type CheckboxProps, Code, CodeBlock, CodeBlockLive, type CodeBlockLiveProps, type CodeBlockProps, type CodeKeyOptions, type CodeLanguage, type CodePiece, type CodeRole, type CodeTab, CodeTabs, type CodeTabsProps, Collapsible, CollapsiblePanel, type CollapsiblePanelProps, type CollapsibleProps, CollapsibleTrigger, type CollapsibleTriggerProps, Combobox, ComboboxCollection, ComboboxContent, type ComboboxContentProps, ComboboxGroup, ComboboxGroupLabel, ComboboxInput, type ComboboxInputProps, ComboboxItem, type ComboboxItemProps, type ComboboxOption, type ComboboxOptionGroup, type ComboboxProps, ComboboxSeparator, Container, type ContainerProps, CopyPage, type CopyPageProps, CopyPill, CopyPillMark, type CopyPillProps, Cta, CtaAction, type CtaActionProps, CtaActions, CtaMessage, type CtaMessageProps, type CtaProps, CtaText, CtaTitle, type CtaTone, DateField, type DateFieldProps, type DateRange, DateRangeField, type DateRangeFieldProps, Dialog, DialogBody, DialogClose, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, type DocsCrumb, type DocsGroup, DocsLayout, DocsLayoutAside, DocsLayoutMain, DocsLayoutNav, type DocsNav, type DocsPage, type DocsPlace, Drawer, DrawerBody, DrawerClose, DrawerContent, type DrawerContentProps, DrawerDescription, DrawerFooter, DrawerHeader, type DrawerProps, type DrawerSide, DrawerTitle, DrawerTrigger, Field, FieldDescription, FieldError, FieldLabel, Fieldset, FieldsetLegend, Figure, FigureCaption, FigureFrame, Form, type FormProps, Ground, type GroundName, type GroundProps, Grow, type GrowProps, Heading, type HeadingProps, HoverCard, HoverCardContent, type HoverCardContentProps, HoverCardTrigger, type HoverCardTriggerProps, Icon, type IconProps, type IconSvgElement, Input, InputGroup, InputGroupAddon, InputGroupButton, type InputGroupButtonProps, type InputGroupProps, type InputProps, Kbd, type LineSpec, Link, type LinkProps, type LinkVariants, Logomark, type LogomarkProps, Menu, MenuCheckboxItem, MenuContent, type MenuContentProps, MenuGroup, MenuGroupLabel, MenuItem, MenuLinkItem, MenuRadioGroup, MenuRadioItem, MenuSeparator, MenuSub, MenuSubContent, MenuSubTrigger, MenuTrigger, Meter, MeterLabel, type MeterProps, MeterTrack, MeterValue, NavigationMenu, NavigationMenuContent, type NavigationMenuEntryVariants, NavigationMenuItem, NavigationMenuLink, NavigationMenuLinkDescription, type NavigationMenuLinkProps, NavigationMenuLinkTitle, NavigationMenuList, type NavigationMenuProps, NavigationMenuTrigger, NumberField, NumberFieldDecrement, NumberFieldIncrement, NumberFieldInput, type NumberFieldProps, Pager, PagerLink, type PagerLinkProps, type PagerProps, Parameter, ParameterList, type ParameterProps, Popover, PopoverClose, PopoverContent, type PopoverContentProps, PopoverDescription, PopoverTitle, PopoverTrigger, Progress, ProgressLabel, type ProgressProps, ProgressTrack, ProgressValue, Prose, Quote, type QuoteProps, Radio, RadioGroup, type RadioGroupProps, type RadioProps, ReferenceEntry, ReferenceEntryBody, ReferenceEntryHeader, ReferenceEntryMeta, ReferenceEntryName, ReferenceEntryTitle, ScrollFade, type ScrollFadeProps, Seam, type SeamProps, Section, type SectionProps, Segment, type SegmentProps, SegmentedControl, type SegmentedControlProps, Select, SelectContent, type SelectContentProps, SelectGroup, SelectGroupLabel, SelectItem, type SelectItemProps, type SelectOption, type SelectOptionGroup, type SelectProps, SelectSeparator, SelectTrigger, type SelectTriggerProps, Separator, type SeparatorProps, Shimmer, type ShimmerProps, SideNav, SideNavGroup, type SideNavGroupProps, SideNavLink, type SideNavLinkProps, type SideNavProps, SideNavSubLink, type SideNavSubLinkProps, SiteFooter, SiteFooterBrand, SiteFooterGroup, type SiteFooterGroupProps, SiteFooterLegal, SiteFooterLink, SiteFooterMain, SiteFooterNav, SiteHeader, SiteHeaderActions, SiteHeaderBrand, type SiteHeaderBrandProps, SiteHeaderMenu, SiteHeaderMenuGroup, type SiteHeaderMenuGroupProps, SiteHeaderMenuLink, type SiteHeaderMenuLinkProps, type SiteHeaderMenuProps, type SiteHeaderProps, Slider, SliderControl, type SliderControlProps, SliderLabel, type SliderProps, SliderThumb, type SliderThumbProps, SliderValue, Spinner, type SpinnerProps, type SpringName, Switch, type SwitchProps, Tab, Table, TableBody, TableCaption, TableCell, type TableCellProps, TableFooter, TableHead, type TableHeadProps, TableHeader, TableOfContents, type TableOfContentsProps, type TableProps, TableRow, type TableRowProps, TableSortButton, type TableSortButtonProps, Tabs, TabsList, TabsPanel, TabsPanels, type TabsPanelsProps, type TabsProps, Text, type TextProps, Textarea, type TextareaProps, type Theme, ThemeSwitch, type ThemeSwitchProps, TimeField, type TimeFieldProps, type ToastOptions, type ToastTone, Toaster, type ToasterProps, type TocItem, Tooltip, TooltipContent, type TooltipContentProps, TooltipProvider, TooltipTrigger, Trace, type TraceMarks, type TraceProps, type TraceStatus, TraceStep, type TraceStepProps, TraceSummary, type TraceSummaryProps, Wordmark, type WordmarkProps, buttonVariants, cn, containerVariants, docsPageState, docsPages, findDocsPage, linkVariants, mergeClassName, navigationMenuEntryVariants, sameDocsPage, siteFooterLinkClass, springs, toast, toastManager, transitions, useGround, useScrollEdges };
133
+ export { Accordion, AccordionItem, type AccordionItemProps, AccordionPanel, type AccordionPanelProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, ActionBar, ActionBarButton, type ActionBarButtonProps, type ActionBarProps, Alert, AlertDescription, AlertDialog, AlertDialogClose, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, type AlertProps, AlertTitle, AnchorHeading, type AnchorHeadingProps, AppShell, AppShellBar, AppShellMain, AppShellPage, type AppShellProps, Attachment, type AttachmentProps, type AttachmentStatus, type AttachmentVariant, Avatar, AvatarFallback, AvatarGroup, type AvatarGroupProps, AvatarImage, type AvatarPerson, type AvatarProps, Badge, type BadgeProps, Banner, type BannerProps, type BannerTone, BreadcrumbItem, BreadcrumbLink, type BreadcrumbLinkProps, BreadcrumbPage, Breadcrumbs, type BreadcrumbsProps, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, type ButtonVariants, Calendar, type CalendarProps, Callout, type CalloutProps, type CalloutTone, Card, CardBar, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, CheckboxCard, type CheckboxCardProps, CheckboxGroup, CheckboxGroupItems, type CheckboxGroupProps, type CheckboxProps, Chip, ChipGroup, type ChipGroupProps, type ChipProps, Code, CodeBlock, CodeBlockLive, type CodeBlockLiveProps, type CodeBlockProps, type CodeKeyOptions, type CodeLanguage, type CodePiece, type CodeRole, type CodeTab, CodeTabs, type CodeTabsProps, Collapsible, CollapsiblePanel, type CollapsiblePanelProps, type CollapsibleProps, CollapsibleTrigger, type CollapsibleTriggerProps, Combobox, ComboboxChips, type ComboboxChipsProps, ComboboxCollection, ComboboxContent, type ComboboxContentProps, ComboboxGroup, ComboboxGroupLabel, ComboboxInput, type ComboboxInputProps, ComboboxItem, type ComboboxItemProps, type ComboboxOption, type ComboboxOptionGroup, type ComboboxProps, ComboboxSeparator, Command, CommandContent, type CommandContentProps, type CommandEntry, CommandFooter, type CommandFooterProps, CommandInput, type CommandInputProps, type CommandItems, CommandList, type CommandListProps, type CommandProps, type CommandSection, CommandTrigger, type ConsentCategory, type ConsentChange, type ConsentConfig, ConsentEmbed, type ConsentEmbedProps, ConsentGate, type ConsentGateProps, type ConsentJar, type ConsentLabels, ConsentProvider, type ConsentProviderProps, type ConsentRecord, type ConsentService, ConsentSettingsTrigger, type ConsentSettingsTriggerProps, type ConsentStatus, type ConsentStorage, type ConsentStorageKind, Container, type ContainerProps, ContextMenu, ContextMenuContent, type ContextMenuContentProps, ContextMenuTrigger, Conversation, type ConversationApi, ConversationContent, type ConversationContentProps, ConversationLatest, type ConversationLatestProps, type ConversationProps, CopyButton, type CopyButtonLabels, type CopyButtonProps, CopyPage, type CopyPageProps, CopyPill, CopyPillMark, type CopyPillProps, Cta, CtaAction, type CtaActionProps, CtaActions, CtaMessage, type CtaMessageProps, type CtaProps, CtaText, CtaTitle, type CtaTone, DateField, type DateFieldProps, type DateRange, DateRangeField, type DateRangeFieldProps, DescriptionDetails, type DescriptionDetailsProps, DescriptionList, type DescriptionListProps, DescriptionTerm, Dialog, DialogBody, DialogClose, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, type DocsCrumb, type DocsGroup, DocsLayout, DocsLayoutAside, DocsLayoutMain, DocsLayoutNav, type DocsNav, type DocsPage, type DocsPlace, Drawer, DrawerBody, DrawerClose, DrawerContent, type DrawerContentProps, DrawerDescription, DrawerFooter, DrawerHeader, type DrawerProps, type DrawerSide, DrawerTitle, DrawerTrigger, Empty, EmptyActions, EmptyMedia, type EmptyMediaProps, type EmptyProps, EmptyText, EmptyTitle, type EmptyTitleProps, Field, FieldDescription, FieldError, FieldLabel, Fieldset, FieldsetLegend, Figure, FigureCaption, FigureFrame, type FileKind, type FileRejection, type FileRules, FileUpload, FileUploadItem, type FileUploadItemProps, FileUploadList, type FileUploadListProps, type FileUploadProps, type FileUploadStatus, FileUploadZone, type FileUploadZoneProps, Form, type FormProps, Ground, type GroundName, type GroundProps, Grow, type GrowProps, Heading, type HeadingProps, HoverCard, HoverCardContent, type HoverCardContentProps, HoverCardTrigger, type HoverCardTriggerProps, Icon, type IconProps, type IconSvgElement, Input, InputGroup, InputGroupAddon, InputGroupButton, type InputGroupButtonProps, type InputGroupProps, type InputProps, Kbd, type LineSpec, Link, type LinkProps, type LinkVariants, Loaded, type LoadedProps, Logomark, type LogomarkProps, Menu, MenuCheckboxItem, MenuContent, type MenuContentProps, MenuGroup, MenuGroupLabel, MenuItem, MenuLinkItem, MenuRadioGroup, MenuRadioItem, MenuSeparator, MenuSub, MenuSubContent, MenuSubTrigger, MenuTrigger, Message, MessageAction, type MessageActionProps, MessageActions, MessageAttachments, type MessageAttachmentsProps, MessageContent, type MessageContentProps, MessageError, type MessageErrorProps, MessageFeedback, type MessageFeedbackProps, type MessageFrom, type MessageProps, type MessageVerdict, Meter, MeterLabel, type MeterProps, MeterTrack, MeterValue, NavigationMenu, NavigationMenuContent, type NavigationMenuEntryVariants, NavigationMenuItem, NavigationMenuLink, NavigationMenuLinkDescription, type NavigationMenuLinkProps, NavigationMenuLinkTitle, NavigationMenuList, type NavigationMenuProps, NavigationMenuTrigger, NumberField, NumberFieldDecrement, NumberFieldIncrement, NumberFieldInput, type NumberFieldProps, OtpField, type OtpFieldProps, Pager, PagerLink, type PagerLinkProps, type PagerProps, Pagination, type PaginationProps, Parameter, ParameterList, type ParameterProps, type Platform, Popover, PopoverClose, PopoverContent, type PopoverContentProps, PopoverDescription, PopoverTitle, PopoverTrigger, type Presence, Progress, ProgressLabel, type ProgressProps, ProgressTrack, ProgressValue, PromptInput, PromptInputActions, PromptInputAttach, type PromptInputAttachProps, PromptInputAttachments, type PromptInputAttachmentsProps, type PromptInputProps, PromptInputSubmit, type PromptInputSubmitProps, PromptInputTextarea, type PromptInputTextareaProps, Prose, Quote, type QuoteProps, Radio, RadioCard, type RadioCardProps, RadioGroup, type RadioGroupProps, type RadioProps, ReferenceEntry, ReferenceEntryBody, ReferenceEntryHeader, ReferenceEntryMeta, ReferenceEntryName, ReferenceEntryTitle, RollingNumber, type RollingNumberProps, ScrollFade, type ScrollFadeProps, Seam, type SeamProps, SecretField, type SecretFieldProps, Section, type SectionProps, Segment, type SegmentProps, SegmentedControl, type SegmentedControlProps, Select, SelectContent, type SelectContentProps, SelectGroup, SelectGroupLabel, SelectItem, type SelectItemProps, type SelectOption, type SelectOptionGroup, type SelectProps, SelectSeparator, SelectTrigger, type SelectTriggerProps, Separator, type SeparatorProps, Shimmer, type ShimmerProps, Shortcut, type ShortcutProps, ShortcutProvider, type ShortcutProviderProps, SideNav, SideNavGroup, type SideNavGroupProps, SideNavLink, type SideNavLinkProps, type SideNavProps, SideNavSubLink, type SideNavSubLinkProps, Sidebar, SidebarButton, type SidebarButtonProps, SidebarContent, SidebarFooter, SidebarGroup, type SidebarGroupProps, SidebarHeader, SidebarItem, type SidebarItemProps, SidebarMenu, type SidebarMenuProps, type SidebarProps, SidebarSubItem, type SidebarSubItemProps, SidebarTrigger, type SidebarTriggerProps, SiteFooter, SiteFooterBrand, SiteFooterGroup, type SiteFooterGroupProps, SiteFooterLegal, SiteFooterLink, SiteFooterMain, SiteFooterNav, SiteHeader, SiteHeaderActions, SiteHeaderBrand, type SiteHeaderBrandProps, SiteHeaderMenu, SiteHeaderMenuGroup, type SiteHeaderMenuGroupProps, SiteHeaderMenuLink, type SiteHeaderMenuLinkProps, type SiteHeaderMenuProps, type SiteHeaderProps, Skeleton, SkeletonGroup, type SkeletonGroupProps, type SkeletonProps, Slider, SliderControl, type SliderControlProps, SliderLabel, type SliderProps, SliderThumb, type SliderThumbProps, SliderValue, type Source, SourceList, type SourceListProps, SourceReference, type SourceReferenceProps, Sources, type SourcesProps, Spinner, type SpinnerProps, type SpringName, Stat, StatChange, type StatChangeProps, StatGroup, type StatGroupProps, StatLabel, type StatTrend, StatValue, Step, type StepProps, type StepStatus, Steps, type StepsProps, Switch, type SwitchProps, Tab, Table, TableBody, TableCaption, TableCell, type TableCellProps, TableFooter, TableHead, type TableHeadProps, TableHeader, TableOfContents, type TableOfContentsProps, type TableProps, TableRow, type TableRowProps, TableSortButton, type TableSortButtonProps, Tabs, TabsList, TabsPanel, TabsPanels, type TabsPanelsProps, type TabsProps, Text, type TextProps, Textarea, type TextareaProps, type Theme, ThemeSwitch, type ThemeSwitchProps, TimeField, type TimeFieldProps, Timeline, TimelineGroup, type TimelineGroupProps, TimelineItem, type TimelineItemProps, type ToastOptions, type ToastTone, Toaster, type ToasterProps, type TocItem, Toggle, ToggleGroup, type ToggleGroupProps, type ToggleProps, Toolbar, ToolbarButton, type ToolbarButtonProps, ToolbarGroup, ToolbarInput, type ToolbarInputProps, ToolbarLink, type ToolbarProps, ToolbarSeparator, Tooltip, TooltipContent, type TooltipContentProps, TooltipProvider, TooltipTrigger, Trace, type TraceMarks, type TraceProps, type TraceStatus, TraceStep, type TraceStepProps, TraceSummary, type TraceSummaryProps, type UseConsentResult, type UseShortcutOptions, Wordmark, type WordmarkProps, acceptsFile, buttonVariants, cn, consentAllows, consentLabels, containerVariants, createMemoryJar, docsPageState, docsPages, findDocsPage, formatFileProgress, formatFileSize, kindOf, linkVariants, mergeClassName, navigationMenuEntryVariants, parseConsent, sameDocsPage, siteFooterLinkClass, siteOf, sortFiles, springs, toast, toastManager, transitions, useConsent, useConversation, useGround, usePlatform, useScrollEdges, useShortcut };
package/dist/index.js CHANGED
@@ -1,37 +1,59 @@
1
1
  import { Accordion, AccordionItem, AccordionPanel, AccordionTrigger } from "./components/accordion/accordion.js";
2
+ import { ActionBar, ActionBarButton } from "./components/action-bar/action-bar.js";
2
3
  import { Alert, AlertDescription, AlertTitle } from "./components/alert/alert.js";
3
4
  import { AlertDialog, AlertDialogClose, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger } from "./components/alert-dialog/alert-dialog.js";
4
5
  import { AnchorHeading } from "./components/anchor-heading/anchor-heading.js";
6
+ import { AppShell, AppShellBar, AppShellMain, AppShellPage } from "./components/app-shell/app-shell.js";
7
+ import { Attachment, MessageAttachments } from "./components/attachment/attachment.js";
8
+ import { kindOf } from "./components/attachment/kinds.js";
5
9
  import { Avatar, AvatarFallback, AvatarImage } from "./components/avatar/avatar.js";
10
+ import { AvatarGroup } from "./components/avatar-group/avatar-group.js";
6
11
  import { Badge } from "./components/badge/badge.js";
12
+ import { Banner } from "./components/banner/banner.js";
7
13
  import { BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, Breadcrumbs } from "./components/breadcrumbs/breadcrumbs.js";
8
14
  import { Button } from "./components/button/button.js";
9
15
  import { buttonVariants } from "./components/button/button-variants.js";
10
16
  import { ButtonGroup } from "./components/button-group/button-group.js";
11
17
  import { Calendar } from "./components/calendar/calendar.js";
12
18
  import { Callout } from "./components/callout/callout.js";
13
- import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "./components/card/card.js";
19
+ import { Card, CardBar, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "./components/card/card.js";
14
20
  import { Checkbox } from "./components/checkbox/checkbox.js";
21
+ import { CheckboxCard } from "./components/checkbox-card/checkbox-card.js";
15
22
  import { CheckboxGroup, CheckboxGroupItems } from "./components/checkbox-group/checkbox-group.js";
23
+ import { Chip } from "./components/chip/chip.js";
24
+ import { ChipGroup } from "./components/chip/chip-group.js";
16
25
  import { Code } from "./components/code/code.js";
17
26
  import { CodeBlock } from "./components/code-block/code-block.js";
18
27
  import { CodeBlockLive } from "./components/code-block/code-block-live.js";
19
28
  import { CodeTabs } from "./components/code-block/code-tabs.js";
20
29
  import { Collapsible, CollapsiblePanel, CollapsibleTrigger } from "./components/collapsible/collapsible.js";
21
- import { Combobox, ComboboxCollection, ComboboxContent, ComboboxGroup, ComboboxGroupLabel, ComboboxInput, ComboboxItem, ComboboxSeparator } from "./components/combobox/combobox.js";
30
+ import { Combobox, ComboboxChips, ComboboxCollection, ComboboxContent, ComboboxGroup, ComboboxGroupLabel, ComboboxInput, ComboboxItem, ComboboxSeparator } from "./components/combobox/combobox.js";
31
+ import { Command, CommandContent, CommandFooter, CommandInput, CommandList, CommandTrigger } from "./components/command/command.js";
32
+ import { ConsentGate, ConsentProvider, ConsentSettingsTrigger, useConsent } from "./components/consent/consent.js";
33
+ import { ConsentEmbed } from "./components/consent/consent-embed.js";
34
+ import { consentLabels } from "./components/consent/consent-labels.js";
35
+ import { consentAllows, parseConsent } from "./components/consent/consent-record.js";
36
+ import { createMemoryJar } from "./components/consent/consent-store.js";
22
37
  import { Container, containerVariants } from "./components/container/container.js";
38
+ import { ContextMenu, ContextMenuContent, ContextMenuTrigger } from "./components/context-menu/context-menu.js";
39
+ import { Conversation, ConversationContent, ConversationLatest, useConversation } from "./components/conversation/conversation.js";
40
+ import { CopyButton } from "./components/copy-button/copy-button.js";
23
41
  import { CopyPage } from "./components/copy-page/copy-page.js";
24
42
  import { CopyPill, CopyPillMark } from "./components/copy-pill/copy-pill.js";
25
43
  import { Cta, CtaAction, CtaActions, CtaMessage, CtaText, CtaTitle } from "./components/cta/cta.js";
26
44
  import { DateField } from "./components/date-field/date-field.js";
27
45
  import { DateRangeField } from "./components/date-range-field/date-range-field.js";
46
+ import { DescriptionDetails, DescriptionList, DescriptionTerm } from "./components/description-list/description-list.js";
28
47
  import { Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger } from "./components/dialog/dialog.js";
29
48
  import { DocsLayout, DocsLayoutAside, DocsLayoutMain, DocsLayoutNav } from "./components/docs-layout/docs-layout.js";
30
49
  import { docsPageState, docsPages, findDocsPage, sameDocsPage } from "./components/docs-layout/docs-nav.js";
31
50
  import { Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger } from "./components/drawer/drawer.js";
51
+ import { Empty, EmptyActions, EmptyMedia, EmptyText, EmptyTitle } from "./components/empty/empty.js";
32
52
  import { Field, FieldDescription, FieldError, FieldLabel } from "./components/field/field.js";
33
53
  import { Fieldset, FieldsetLegend } from "./components/fieldset/fieldset.js";
34
54
  import { Figure, FigureCaption, FigureFrame } from "./components/figure/figure.js";
55
+ import { FileUpload, FileUploadItem, FileUploadList, FileUploadZone } from "./components/file-upload/file-upload.js";
56
+ import { acceptsFile, formatFileProgress, formatFileSize, sortFiles } from "./components/file-upload/files.js";
35
57
  import { Form } from "./components/form/form.js";
36
58
  import { Ground, useGround } from "./components/ground/ground.js";
37
59
  import { Grow } from "./components/grow/grow.js";
@@ -46,31 +68,46 @@ import { linkVariants } from "./components/link/link-variants.js";
46
68
  import { Logomark } from "./components/logo/logomark.js";
47
69
  import { Wordmark } from "./components/logo/wordmark.js";
48
70
  import { Menu, MenuCheckboxItem, MenuContent, MenuGroup, MenuGroupLabel, MenuItem, MenuLinkItem, MenuRadioGroup, MenuRadioItem, MenuSeparator, MenuSub, MenuSubContent, MenuSubTrigger, MenuTrigger } from "./components/menu/menu.js";
71
+ import { Message, MessageAction, MessageActions, MessageContent, MessageError, MessageFeedback } from "./components/message/message.js";
49
72
  import { Meter, MeterLabel, MeterTrack, MeterValue } from "./components/meter/meter.js";
50
73
  import { NavigationMenu, NavigationMenuContent, NavigationMenuItem, NavigationMenuLink, NavigationMenuLinkDescription, NavigationMenuLinkTitle, NavigationMenuList, NavigationMenuTrigger } from "./components/navigation-menu/navigation-menu.js";
51
74
  import { navigationMenuEntryVariants } from "./components/navigation-menu/navigation-menu-variants.js";
52
75
  import { NumberField, NumberFieldDecrement, NumberFieldIncrement, NumberFieldInput } from "./components/number-field/number-field.js";
76
+ import { OtpField } from "./components/otp-field/otp-field.js";
53
77
  import { Pager, PagerLink } from "./components/pager/pager.js";
78
+ import { Pagination } from "./components/pagination/pagination.js";
54
79
  import { Parameter, ParameterList } from "./components/parameter-list/parameter-list.js";
55
80
  import { Popover, PopoverClose, PopoverContent, PopoverDescription, PopoverTitle, PopoverTrigger } from "./components/popover/popover.js";
56
81
  import { Progress, ProgressLabel, ProgressTrack, ProgressValue } from "./components/progress/progress.js";
82
+ import { PromptInput, PromptInputActions, PromptInputAttach, PromptInputAttachments, PromptInputSubmit, PromptInputTextarea } from "./components/prompt-input/prompt-input.js";
57
83
  import { Prose } from "./components/prose/prose.js";
58
84
  import { Quote } from "./components/quote/quote.js";
59
85
  import { Radio, RadioGroup } from "./components/radio/radio.js";
86
+ import { RadioCard } from "./components/radio-card/radio-card.js";
60
87
  import { ReferenceEntry, ReferenceEntryBody, ReferenceEntryHeader, ReferenceEntryMeta, ReferenceEntryName, ReferenceEntryTitle } from "./components/reference-entry/reference-entry.js";
88
+ import { RollingNumber } from "./components/rolling-number/rolling-number.js";
61
89
  import { ScrollFade } from "./components/scroll-fade/scroll-fade.js";
62
90
  import { useScrollEdges } from "./components/scroll-fade/use-scroll-edges.js";
63
91
  import { Seam } from "./components/seam/seam.js";
92
+ import { SecretField } from "./components/secret-field/secret-field.js";
64
93
  import { Section } from "./components/section/section.js";
65
94
  import { Segment, SegmentedControl } from "./components/segmented-control/segmented-control.js";
66
95
  import { Select, SelectContent, SelectGroup, SelectGroupLabel, SelectItem, SelectSeparator, SelectTrigger } from "./components/select/select.js";
67
96
  import { Separator } from "./components/separator/separator.js";
68
97
  import { Shimmer } from "./components/shimmer/shimmer.js";
98
+ import { Shortcut, ShortcutProvider, usePlatform, useShortcut } from "./components/shortcut/shortcut.js";
69
99
  import { SideNav, SideNavGroup, SideNavLink, SideNavSubLink } from "./components/side-nav/side-nav.js";
100
+ import { Sidebar, SidebarButton, SidebarContent, SidebarFooter, SidebarGroup, SidebarHeader, SidebarItem, SidebarMenu, SidebarSubItem, SidebarTrigger } from "./components/sidebar/sidebar.js";
70
101
  import { SiteFooter, SiteFooterBrand, SiteFooterGroup, SiteFooterLegal, SiteFooterLink, SiteFooterMain, SiteFooterNav, siteFooterLinkClass } from "./components/site-footer/site-footer.js";
71
102
  import { SiteHeader, SiteHeaderActions, SiteHeaderBrand, SiteHeaderMenu, SiteHeaderMenuGroup, SiteHeaderMenuLink } from "./components/site-header/site-header.js";
103
+ import { Loaded } from "./components/skeleton/loaded.js";
104
+ import { Skeleton, SkeletonGroup } from "./components/skeleton/skeleton.js";
72
105
  import { Slider, SliderControl, SliderLabel, SliderThumb, SliderValue } from "./components/slider/slider.js";
106
+ import { siteOf } from "./components/sources/source-list.js";
107
+ import { SourceList, SourceReference, Sources } from "./components/sources/sources.js";
73
108
  import { Spinner } from "./components/spinner/spinner.js";
109
+ import { Stat, StatChange, StatGroup, StatLabel, StatValue } from "./components/stat/stat.js";
110
+ import { Step, Steps } from "./components/steps/steps.js";
74
111
  import { Switch } from "./components/switch/switch.js";
75
112
  import { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, TableSortButton } from "./components/table/table.js";
76
113
  import { TableOfContents } from "./components/table-of-contents/table-of-contents.js";
@@ -79,9 +116,13 @@ import { Text } from "./components/text/text.js";
79
116
  import { Textarea } from "./components/textarea/textarea.js";
80
117
  import { ThemeSwitch } from "./components/theme-switch/theme-switch.js";
81
118
  import { TimeField } from "./components/time-field/time-field.js";
119
+ import { Timeline, TimelineGroup, TimelineItem } from "./components/timeline/timeline.js";
82
120
  import { Toaster, toast, toastManager } from "./components/toast/toast.js";
121
+ import { Toggle } from "./components/toggle/toggle.js";
122
+ import { ToggleGroup } from "./components/toggle-group/toggle-group.js";
123
+ import { Toolbar, ToolbarButton, ToolbarGroup, ToolbarInput, ToolbarLink, ToolbarSeparator } from "./components/toolbar/toolbar.js";
83
124
  import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./components/tooltip/tooltip.js";
84
125
  import { Trace, TraceStep, TraceSummary } from "./components/trace/trace.js";
85
126
  import { cn, mergeClassName } from "./lib/cn.js";
86
127
  import { springs, transitions } from "./motion/springs.js";
87
- export { Accordion, AccordionItem, AccordionPanel, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogClose, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AnchorHeading, Avatar, AvatarFallback, AvatarImage, Badge, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, Breadcrumbs, Button, ButtonGroup, Calendar, Callout, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, CheckboxGroup, CheckboxGroupItems, Code, CodeBlock, CodeBlockLive, CodeTabs, Collapsible, CollapsiblePanel, CollapsibleTrigger, Combobox, ComboboxCollection, ComboboxContent, ComboboxGroup, ComboboxGroupLabel, ComboboxInput, ComboboxItem, ComboboxSeparator, Container, CopyPage, CopyPill, CopyPillMark, Cta, CtaAction, CtaActions, CtaMessage, CtaText, CtaTitle, DateField, DateRangeField, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DocsLayout, DocsLayoutAside, DocsLayoutMain, DocsLayoutNav, Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger, Field, FieldDescription, FieldError, FieldLabel, Fieldset, FieldsetLegend, Figure, FigureCaption, FigureFrame, Form, Ground, Grow, Heading, HoverCard, HoverCardContent, HoverCardTrigger, Icon, Input, InputGroup, InputGroupAddon, InputGroupButton, Kbd, Link, Logomark, Menu, MenuCheckboxItem, MenuContent, MenuGroup, MenuGroupLabel, MenuItem, MenuLinkItem, MenuRadioGroup, MenuRadioItem, MenuSeparator, MenuSub, MenuSubContent, MenuSubTrigger, MenuTrigger, Meter, MeterLabel, MeterTrack, MeterValue, NavigationMenu, NavigationMenuContent, NavigationMenuItem, NavigationMenuLink, NavigationMenuLinkDescription, NavigationMenuLinkTitle, NavigationMenuList, NavigationMenuTrigger, NumberField, NumberFieldDecrement, NumberFieldIncrement, NumberFieldInput, Pager, PagerLink, Parameter, ParameterList, Popover, PopoverClose, PopoverContent, PopoverDescription, PopoverTitle, PopoverTrigger, Progress, ProgressLabel, ProgressTrack, ProgressValue, Prose, Quote, Radio, RadioGroup, ReferenceEntry, ReferenceEntryBody, ReferenceEntryHeader, ReferenceEntryMeta, ReferenceEntryName, ReferenceEntryTitle, ScrollFade, Seam, Section, Segment, SegmentedControl, Select, SelectContent, SelectGroup, SelectGroupLabel, SelectItem, SelectSeparator, SelectTrigger, Separator, Shimmer, SideNav, SideNavGroup, SideNavLink, SideNavSubLink, SiteFooter, SiteFooterBrand, SiteFooterGroup, SiteFooterLegal, SiteFooterLink, SiteFooterMain, SiteFooterNav, SiteHeader, SiteHeaderActions, SiteHeaderBrand, SiteHeaderMenu, SiteHeaderMenuGroup, SiteHeaderMenuLink, Slider, SliderControl, SliderLabel, SliderThumb, SliderValue, Spinner, Switch, Tab, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableOfContents, TableRow, TableSortButton, Tabs, TabsList, TabsPanel, TabsPanels, Text, Textarea, ThemeSwitch, TimeField, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Trace, TraceStep, TraceSummary, Wordmark, buttonVariants, cn, containerVariants, docsPageState, docsPages, findDocsPage, linkVariants, mergeClassName, navigationMenuEntryVariants, sameDocsPage, siteFooterLinkClass, springs, toast, toastManager, transitions, useGround, useScrollEdges };
128
+ export { Accordion, AccordionItem, AccordionPanel, AccordionTrigger, ActionBar, ActionBarButton, Alert, AlertDescription, AlertDialog, AlertDialogClose, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AnchorHeading, AppShell, AppShellBar, AppShellMain, AppShellPage, Attachment, Avatar, AvatarFallback, AvatarGroup, AvatarImage, Badge, Banner, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, Breadcrumbs, Button, ButtonGroup, Calendar, Callout, Card, CardBar, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, CheckboxCard, CheckboxGroup, CheckboxGroupItems, Chip, ChipGroup, Code, CodeBlock, CodeBlockLive, CodeTabs, Collapsible, CollapsiblePanel, CollapsibleTrigger, Combobox, ComboboxChips, ComboboxCollection, ComboboxContent, ComboboxGroup, ComboboxGroupLabel, ComboboxInput, ComboboxItem, ComboboxSeparator, Command, CommandContent, CommandFooter, CommandInput, CommandList, CommandTrigger, ConsentEmbed, ConsentGate, ConsentProvider, ConsentSettingsTrigger, Container, ContextMenu, ContextMenuContent, ContextMenuTrigger, Conversation, ConversationContent, ConversationLatest, CopyButton, CopyPage, CopyPill, CopyPillMark, Cta, CtaAction, CtaActions, CtaMessage, CtaText, CtaTitle, DateField, DateRangeField, DescriptionDetails, DescriptionList, DescriptionTerm, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DocsLayout, DocsLayoutAside, DocsLayoutMain, DocsLayoutNav, Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger, Empty, EmptyActions, EmptyMedia, EmptyText, EmptyTitle, Field, FieldDescription, FieldError, FieldLabel, Fieldset, FieldsetLegend, Figure, FigureCaption, FigureFrame, FileUpload, FileUploadItem, FileUploadList, FileUploadZone, Form, Ground, Grow, Heading, HoverCard, HoverCardContent, HoverCardTrigger, Icon, Input, InputGroup, InputGroupAddon, InputGroupButton, Kbd, Link, Loaded, Logomark, Menu, MenuCheckboxItem, MenuContent, MenuGroup, MenuGroupLabel, MenuItem, MenuLinkItem, MenuRadioGroup, MenuRadioItem, MenuSeparator, MenuSub, MenuSubContent, MenuSubTrigger, MenuTrigger, Message, MessageAction, MessageActions, MessageAttachments, MessageContent, MessageError, MessageFeedback, Meter, MeterLabel, MeterTrack, MeterValue, NavigationMenu, NavigationMenuContent, NavigationMenuItem, NavigationMenuLink, NavigationMenuLinkDescription, NavigationMenuLinkTitle, NavigationMenuList, NavigationMenuTrigger, NumberField, NumberFieldDecrement, NumberFieldIncrement, NumberFieldInput, OtpField, Pager, PagerLink, Pagination, Parameter, ParameterList, Popover, PopoverClose, PopoverContent, PopoverDescription, PopoverTitle, PopoverTrigger, Progress, ProgressLabel, ProgressTrack, ProgressValue, PromptInput, PromptInputActions, PromptInputAttach, PromptInputAttachments, PromptInputSubmit, PromptInputTextarea, Prose, Quote, Radio, RadioCard, RadioGroup, ReferenceEntry, ReferenceEntryBody, ReferenceEntryHeader, ReferenceEntryMeta, ReferenceEntryName, ReferenceEntryTitle, RollingNumber, ScrollFade, Seam, SecretField, Section, Segment, SegmentedControl, Select, SelectContent, SelectGroup, SelectGroupLabel, SelectItem, SelectSeparator, SelectTrigger, Separator, Shimmer, Shortcut, ShortcutProvider, SideNav, SideNavGroup, SideNavLink, SideNavSubLink, Sidebar, SidebarButton, SidebarContent, SidebarFooter, SidebarGroup, SidebarHeader, SidebarItem, SidebarMenu, SidebarSubItem, SidebarTrigger, SiteFooter, SiteFooterBrand, SiteFooterGroup, SiteFooterLegal, SiteFooterLink, SiteFooterMain, SiteFooterNav, SiteHeader, SiteHeaderActions, SiteHeaderBrand, SiteHeaderMenu, SiteHeaderMenuGroup, SiteHeaderMenuLink, Skeleton, SkeletonGroup, Slider, SliderControl, SliderLabel, SliderThumb, SliderValue, SourceList, SourceReference, Sources, Spinner, Stat, StatChange, StatGroup, StatLabel, StatValue, Step, Steps, Switch, Tab, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableOfContents, TableRow, TableSortButton, Tabs, TabsList, TabsPanel, TabsPanels, Text, Textarea, ThemeSwitch, TimeField, Timeline, TimelineGroup, TimelineItem, Toaster, Toggle, ToggleGroup, Toolbar, ToolbarButton, ToolbarGroup, ToolbarInput, ToolbarLink, ToolbarSeparator, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Trace, TraceStep, TraceSummary, Wordmark, acceptsFile, buttonVariants, cn, consentAllows, consentLabels, containerVariants, createMemoryJar, docsPageState, docsPages, findDocsPage, formatFileProgress, formatFileSize, kindOf, linkVariants, mergeClassName, navigationMenuEntryVariants, parseConsent, sameDocsPage, siteFooterLinkClass, siteOf, sortFiles, springs, toast, toastManager, transitions, useConsent, useConversation, useGround, usePlatform, useScrollEdges, useShortcut };
@@ -0,0 +1,56 @@
1
+ const segmenter = typeof Intl !== "undefined" && "Segmenter" in Intl ? new Intl.Segmenter("de", { granularity: "word" }) : null;
2
+ /** Where the words of `text` between `from` and `to` begin. Punctuation is not a word. */
3
+ function wordStarts(text, from, to) {
4
+ const stretch = text.slice(from, to);
5
+ const starts = [];
6
+ if (segmenter) {
7
+ for (const segment of segmenter.segment(stretch)) if (segment.isWordLike) starts.push(from + segment.index);
8
+ } else for (const word of stretch.matchAll(/\S+/g)) starts.push(from + word.index);
9
+ return starts;
10
+ }
11
+ /** Just after the last white space at or after `from`: how far the finished words reach. */
12
+ function finishedUpTo(text, from) {
13
+ for (let index = text.length - 1; index >= from; index -= 1) if (/\s/.test(text.charAt(index))) return index + 1;
14
+ return from;
15
+ }
16
+ /**
17
+ * The pieces of `text` now, given the pieces it was shown in before. `complete` says that no
18
+ * more will be added to this text, so its last word is shown even without a space after it.
19
+ *
20
+ * A text that has become shorter (a renderer that took back what it had drawn, a retry that
21
+ * starts again) keeps what still stands as shown and fades in only what is added after that.
22
+ */
23
+ function advancePieces(before, text, { complete, wordsPerPiece = 3 }) {
24
+ let ends = before;
25
+ let shown = ends.at(-1) ?? 0;
26
+ if (text.length < shown) {
27
+ ends = [...ends.filter((end) => end < text.length), text.length].filter((end) => end > 0);
28
+ shown = text.length;
29
+ }
30
+ const fresh = ends.length;
31
+ const reach = complete ? text.length : finishedUpTo(text, shown);
32
+ if (reach <= shown) return {
33
+ ends,
34
+ fresh
35
+ };
36
+ const cuts = wordStarts(text, shown, reach).filter((start, index) => index > 0 && index % wordsPerPiece === 0 && start > shown);
37
+ return {
38
+ ends: [
39
+ ...ends,
40
+ ...cuts,
41
+ reach
42
+ ],
43
+ fresh
44
+ };
45
+ }
46
+ /**
47
+ * The delays of pieces that fade in together, in ms: one after the other, `step` apart, but
48
+ * never longer than `span` for the lot. A burst of text is pressed together instead of queuing,
49
+ * so a fast stream never falls behind what has arrived.
50
+ */
51
+ function staggerDelays(count, step, span) {
52
+ if (count <= 0) return [];
53
+ const gap = count > 1 ? Math.min(step, span / (count - 1)) : 0;
54
+ return Array.from({ length: count }, (_, index) => Math.round(index * gap));
55
+ }
56
+ export { advancePieces, staggerDelays };