@hex-core/components 1.4.0 → 1.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 (127) hide show
  1. package/dist/_tsup-dts-rollup.d.ts +3556 -0
  2. package/dist/accordion.d.ts +4 -13
  3. package/dist/alert-dialog.d.ts +11 -34
  4. package/dist/alert.d.ts +4 -17
  5. package/dist/aspect-ratio.d.ts +1 -7
  6. package/dist/attachment.d.ts +4 -0
  7. package/dist/attachment.js +157 -0
  8. package/dist/attachment.js.map +1 -0
  9. package/dist/avatar.d.ts +3 -11
  10. package/dist/badge.d.ts +3 -22
  11. package/dist/breadcrumb.d.ts +7 -27
  12. package/dist/button.d.ts +3 -13
  13. package/dist/calendar.d.ts +1 -17
  14. package/dist/card.d.ts +6 -16
  15. package/dist/checkbox.d.ts +2 -11
  16. package/dist/citation.d.ts +2 -0
  17. package/dist/citation.js +70 -0
  18. package/dist/citation.js.map +1 -0
  19. package/dist/cluster.d.ts +3 -34
  20. package/dist/code-block-copy.d.ts +2 -0
  21. package/dist/code-block-copy.js +108 -0
  22. package/dist/code-block-copy.js.map +1 -0
  23. package/dist/code-block.d.ts +3 -0
  24. package/dist/code-block.js +90 -0
  25. package/dist/code-block.js.map +1 -0
  26. package/dist/collapsible.d.ts +3 -11
  27. package/dist/color-picker.d.ts +2 -44
  28. package/dist/combobox.d.ts +3 -45
  29. package/dist/command.d.ts +9 -111
  30. package/dist/composer.d.ts +2 -0
  31. package/dist/composer.js +75 -0
  32. package/dist/composer.js.map +1 -0
  33. package/dist/container.d.ts +3 -41
  34. package/dist/context-menu.d.ts +12 -37
  35. package/dist/data-table.d.ts +2 -33
  36. package/dist/date-picker.d.ts +2 -43
  37. package/dist/dialog.d.ts +11 -46
  38. package/dist/drawer.d.ts +10 -41
  39. package/dist/dropdown-menu.d.ts +13 -39
  40. package/dist/dropzone.d.ts +3 -54
  41. package/dist/dropzone.js +46 -44
  42. package/dist/dropzone.js.map +1 -1
  43. package/dist/empty.d.ts +3 -0
  44. package/dist/empty.js +94 -0
  45. package/dist/empty.js.map +1 -0
  46. package/dist/error-state.d.ts +3 -0
  47. package/dist/error-state.js +67 -0
  48. package/dist/error-state.js.map +1 -0
  49. package/dist/file-tree.d.ts +3 -53
  50. package/dist/form.d.ts +8 -45
  51. package/dist/grid.d.ts +3 -50
  52. package/dist/hover-card.d.ts +3 -11
  53. package/dist/index.d.ts +325 -179
  54. package/dist/index.js +1592 -122
  55. package/dist/index.js.map +1 -1
  56. package/dist/input-otp.d.ts +5 -19
  57. package/dist/input.d.ts +2 -6
  58. package/dist/label.d.ts +2 -11
  59. package/dist/loading-indicator.d.ts +3 -0
  60. package/dist/loading-indicator.js +64 -0
  61. package/dist/loading-indicator.js.map +1 -0
  62. package/dist/loading.d.ts +3 -0
  63. package/dist/loading.js +80 -0
  64. package/dist/loading.js.map +1 -0
  65. package/dist/markdown.d.ts +2 -0
  66. package/dist/markdown.js +28 -0
  67. package/dist/markdown.js.map +1 -0
  68. package/dist/menubar.d.ts +11 -35
  69. package/dist/message-actions.d.ts +2 -0
  70. package/dist/message-actions.js +28 -0
  71. package/dist/message-actions.js.map +1 -0
  72. package/dist/message-list.d.ts +2 -0
  73. package/dist/message-list.js +49 -0
  74. package/dist/message-list.js.map +1 -0
  75. package/dist/message.d.ts +3 -0
  76. package/dist/message.js +35 -0
  77. package/dist/message.js.map +1 -0
  78. package/dist/multi-combobox.d.ts +3 -51
  79. package/dist/navigation-menu.d.ts +9 -23
  80. package/dist/pagination.d.ts +7 -40
  81. package/dist/popover.d.ts +4 -13
  82. package/dist/progress.d.ts +1 -10
  83. package/dist/radio-group.d.ts +2 -9
  84. package/dist/reasoning.d.ts +2 -0
  85. package/dist/reasoning.js +90 -0
  86. package/dist/reasoning.js.map +1 -0
  87. package/dist/resizable.d.ts +3 -28
  88. package/dist/schemas.d.ts +79 -121
  89. package/dist/schemas.js +1649 -1
  90. package/dist/schemas.js.map +1 -1
  91. package/dist/scroll-area.d.ts +3 -18
  92. package/dist/select.d.ts +8 -21
  93. package/dist/separator.d.ts +2 -11
  94. package/dist/sheet.d.ts +10 -39
  95. package/dist/sidebar.d.ts +8 -75
  96. package/dist/skeleton.d.ts +1 -11
  97. package/dist/slider.d.ts +2 -20
  98. package/dist/sonner.d.ts +2 -14
  99. package/dist/spacer.d.ts +3 -38
  100. package/dist/stack.d.ts +3 -34
  101. package/dist/stepper.d.ts +4 -48
  102. package/dist/suggestion.d.ts +2 -0
  103. package/dist/suggestion.js +55 -0
  104. package/dist/suggestion.js.map +1 -0
  105. package/dist/switch.d.ts +2 -11
  106. package/dist/table.d.ts +8 -24
  107. package/dist/tabs.d.ts +4 -13
  108. package/dist/tag.d.ts +3 -0
  109. package/dist/tag.js +107 -0
  110. package/dist/tag.js.map +1 -0
  111. package/dist/textarea.d.ts +2 -10
  112. package/dist/time-picker.d.ts +2 -34
  113. package/dist/timeline.d.ts +4 -42
  114. package/dist/toggle-group.d.ts +2 -17
  115. package/dist/toggle.d.ts +2 -19
  116. package/dist/tool-call.d.ts +2 -0
  117. package/dist/tool-call.js +133 -0
  118. package/dist/tool-call.js.map +1 -0
  119. package/dist/toolbar.d.ts +8 -0
  120. package/dist/toolbar.js +120 -0
  121. package/dist/toolbar.js.map +1 -0
  122. package/dist/tooltip.d.ts +4 -13
  123. package/dist/tree.d.ts +3 -0
  124. package/dist/tree.js +275 -0
  125. package/dist/tree.js.map +1 -0
  126. package/package.json +5 -1
  127. package/dist/button-variants-Bx6gCUFp.d.ts +0 -19
@@ -1,40 +1,7 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as React from 'react';
3
- import { B as ButtonVariantsProps } from './button-variants-Bx6gCUFp.js';
4
- import 'class-variance-authority/types';
5
- import 'class-variance-authority';
6
-
7
- /**
8
- * Root nav landmark for pagination controls.
9
- * @returns A centered nav element with aria-label='pagination'
10
- */
11
- declare function Pagination({ className, ...props }: React.ComponentProps<"nav">): react_jsx_runtime.JSX.Element;
12
- /** Ordered list wrapper for pagination links. */
13
- declare const PaginationContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
14
- /** A pagination list item wrapper. */
15
- declare const PaginationItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
16
- type PaginationLinkProps = {
17
- isActive?: boolean;
18
- } & Pick<ButtonVariantsProps, "size"> & React.ComponentProps<"a">;
19
- /**
20
- * A pagination link styled as a button. Mark the current page with isActive.
21
- * @returns An anchor element styled via buttonVariants
22
- */
23
- declare function PaginationLink({ className, isActive, size, ...props }: PaginationLinkProps): react_jsx_runtime.JSX.Element;
24
- /**
25
- * Previous-page link with chevron-left icon.
26
- * @returns A PaginationLink with aria-label='Go to previous page'
27
- */
28
- declare function PaginationPrevious({ className, ...props }: React.ComponentProps<typeof PaginationLink>): react_jsx_runtime.JSX.Element;
29
- /**
30
- * Next-page link with chevron-right icon.
31
- * @returns A PaginationLink with aria-label='Go to next page'
32
- */
33
- declare function PaginationNext({ className, ...props }: React.ComponentProps<typeof PaginationLink>): react_jsx_runtime.JSX.Element;
34
- /**
35
- * Ellipsis placeholder for truncated page ranges (e.g. 1 … 5 6 7 … 99).
36
- * @returns A span containing a decorative SVG (aria-hidden) plus a sr-only "More pages" label for AT.
37
- */
38
- declare function PaginationEllipsis({ className, ...props }: React.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
39
-
40
- export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious };
1
+ export { Pagination_alias_1 as Pagination } from './_tsup-dts-rollup.js';
2
+ export { PaginationContent_alias_1 as PaginationContent } from './_tsup-dts-rollup.js';
3
+ export { PaginationEllipsis_alias_1 as PaginationEllipsis } from './_tsup-dts-rollup.js';
4
+ export { PaginationItem_alias_1 as PaginationItem } from './_tsup-dts-rollup.js';
5
+ export { PaginationLink_alias_1 as PaginationLink } from './_tsup-dts-rollup.js';
6
+ export { PaginationNext_alias_1 as PaginationNext } from './_tsup-dts-rollup.js';
7
+ export { PaginationPrevious_alias_1 as PaginationPrevious } from './_tsup-dts-rollup.js';
package/dist/popover.d.ts CHANGED
@@ -1,13 +1,4 @@
1
- import * as PopoverPrimitive from '@radix-ui/react-popover';
2
- import * as React from 'react';
3
-
4
- /** Root container for a popover. */
5
- declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
6
- /** The element that anchors and opens the popover. */
7
- declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
8
- /** Helper to explicitly anchor the popover to a different element. */
9
- declare const PopoverAnchor: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & React.RefAttributes<HTMLDivElement>>;
10
- /** The floating popover content panel. */
11
- declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
12
-
13
- export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger };
1
+ export { Popover_alias_1 as Popover } from './_tsup-dts-rollup.js';
2
+ export { PopoverTrigger_alias_1 as PopoverTrigger } from './_tsup-dts-rollup.js';
3
+ export { PopoverContent_alias_1 as PopoverContent } from './_tsup-dts-rollup.js';
4
+ export { PopoverAnchor_alias_1 as PopoverAnchor } from './_tsup-dts-rollup.js';
@@ -1,10 +1 @@
1
- import * as ProgressPrimitive from '@radix-ui/react-progress';
2
- import * as React from 'react';
3
-
4
- /**
5
- * A horizontal progress bar from 0–100%.
6
- * Built on Radix UI Progress for aria-valuenow/max wiring.
7
- */
8
- declare const Progress: React.ForwardRefExoticComponent<Omit<ProgressPrimitive.ProgressProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
-
10
- export { Progress };
1
+ export { Progress_alias_1 as Progress } from './_tsup-dts-rollup.js';
@@ -1,9 +1,2 @@
1
- import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
2
- import * as React from 'react';
3
-
4
- /** Root container for a radio group. Pair with one or more RadioGroupItem. */
5
- declare const RadioGroup: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
6
- /** A single radio option within a RadioGroup. */
7
- declare const RadioGroupItem: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
8
-
9
- export { RadioGroup, RadioGroupItem };
1
+ export { RadioGroup_alias_1 as RadioGroup } from './_tsup-dts-rollup.js';
2
+ export { RadioGroupItem_alias_1 as RadioGroupItem } from './_tsup-dts-rollup.js';
@@ -0,0 +1,2 @@
1
+ export { ReasoningProps_alias_1 as ReasoningProps } from './_tsup-dts-rollup.js';
2
+ export { Reasoning_alias_1 as Reasoning } from './_tsup-dts-rollup.js';
@@ -0,0 +1,90 @@
1
+ "use client";
2
+ import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
3
+ import { clsx } from 'clsx';
4
+ import { twMerge } from 'tailwind-merge';
5
+ import { jsxs, jsx } from 'react/jsx-runtime';
6
+
7
+ function cn(...inputs) {
8
+ return twMerge(clsx(inputs));
9
+ }
10
+ function Reasoning({
11
+ children,
12
+ defaultOpen = false,
13
+ durationMs,
14
+ label,
15
+ className
16
+ }) {
17
+ const headerLabel = label ?? (typeof durationMs === "number" ? formatThoughtFor(durationMs) : "Thinking");
18
+ return /* @__PURE__ */ jsxs(
19
+ CollapsiblePrimitive.Root,
20
+ {
21
+ defaultOpen,
22
+ className: cn("overflow-hidden rounded-md border-l-2 border-foreground/15 bg-muted/20", className),
23
+ children: [
24
+ /* @__PURE__ */ jsxs(
25
+ CollapsiblePrimitive.Trigger,
26
+ {
27
+ className: cn(
28
+ "group flex w-full items-center gap-2 px-3 py-1.5 text-left text-xs text-muted-foreground",
29
+ "transition-all duration-[var(--duration-normal,200ms)] ease-out",
30
+ "hover:text-foreground",
31
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"
32
+ ),
33
+ children: [
34
+ /* @__PURE__ */ jsx(SparkleGlyph, {}),
35
+ /* @__PURE__ */ jsx("span", { className: "font-medium italic", children: headerLabel }),
36
+ /* @__PURE__ */ jsx(Chevron, {})
37
+ ]
38
+ }
39
+ ),
40
+ /* @__PURE__ */ jsx(CollapsiblePrimitive.Content, { className: "overflow-hidden border-t border-foreground/[0.06] px-3 py-2 text-sm text-muted-foreground", children })
41
+ ]
42
+ }
43
+ );
44
+ }
45
+ function formatThoughtFor(ms) {
46
+ if (ms < 1e3) return `Thought for ${ms}ms`;
47
+ const seconds = ms / 1e3;
48
+ const formatted = seconds >= 10 ? Math.round(seconds).toString() : seconds.toFixed(1);
49
+ return `Thought for ${formatted}s`;
50
+ }
51
+ function SparkleGlyph() {
52
+ return /* @__PURE__ */ jsx(
53
+ "svg",
54
+ {
55
+ "aria-hidden": true,
56
+ viewBox: "0 0 16 16",
57
+ width: "12",
58
+ height: "12",
59
+ fill: "none",
60
+ stroke: "currentColor",
61
+ strokeWidth: "1.5",
62
+ strokeLinecap: "round",
63
+ strokeLinejoin: "round",
64
+ className: "shrink-0",
65
+ children: /* @__PURE__ */ jsx("path", { d: "M8 1.5l1.5 4 4 1.5-4 1.5L8 12.5 6.5 8.5l-4-1.5 4-1.5L8 1.5z" })
66
+ }
67
+ );
68
+ }
69
+ function Chevron() {
70
+ return /* @__PURE__ */ jsx(
71
+ "svg",
72
+ {
73
+ "aria-hidden": true,
74
+ viewBox: "0 0 16 16",
75
+ width: "12",
76
+ height: "12",
77
+ fill: "none",
78
+ stroke: "currentColor",
79
+ strokeWidth: "1.5",
80
+ strokeLinecap: "round",
81
+ strokeLinejoin: "round",
82
+ className: "ml-auto shrink-0 transition-transform duration-200 group-data-[state=open]:rotate-180",
83
+ children: /* @__PURE__ */ jsx("path", { d: "M4 6l4 4 4-4" })
84
+ }
85
+ );
86
+ }
87
+
88
+ export { Reasoning };
89
+ //# sourceMappingURL=reasoning.js.map
90
+ //# sourceMappingURL=reasoning.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/lib/utils.ts","../src/ai/reasoning/reasoning.tsx"],"names":[],"mappings":"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","file":"reasoning.js","sourcesContent":["import { type ClassValue, clsx } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\n/**\n * Merge class names with Tailwind CSS conflict resolution.\n * @param inputs - Class values (strings, arrays, objects) to merge\n * @returns A single merged class string with Tailwind conflicts resolved\n */\nexport function cn(...inputs: ClassValue[]) {\n\treturn twMerge(clsx(inputs));\n}\n","\"use client\";\n\nimport * as CollapsiblePrimitive from \"@radix-ui/react-collapsible\";\nimport * as React from \"react\";\nimport { cn } from \"../../lib/utils.js\";\n\n/**\n * Collapsible \"thinking\" block. Designed for Anthropic-style reasoning\n * traces or Chain-of-Thought scratchpads — content the user can optionally\n * inspect without it dominating the response. Header shows a label and the\n * thinking duration if provided.\n *\n * Headless on content: pass any `children`. Pair with `Markdown` if the\n * reasoning is markdown-formatted.\n *\n * @example\n * <Reasoning durationMs={4200}>\n * <Markdown>{thinking}</Markdown>\n * </Reasoning>\n */\nexport interface ReasoningProps {\n\tchildren: React.ReactNode;\n\tdefaultOpen?: boolean;\n\t/** Time spent thinking, in milliseconds. Renders as \"Thought for 4.2s\". */\n\tdurationMs?: number;\n\t/** Override the default \"Thinking\" / \"Thought for X\" label. */\n\tlabel?: string;\n\tclassName?: string;\n}\n\n/**\n * Renders a collapsible thinking-trace block.\n * @param props - children + optional duration\n * @returns A Collapsible with a labelled header and content body\n */\nfunction Reasoning({\n\tchildren,\n\tdefaultOpen = false,\n\tdurationMs,\n\tlabel,\n\tclassName,\n}: ReasoningProps) {\n\tconst headerLabel =\n\t\tlabel ?? (typeof durationMs === \"number\" ? formatThoughtFor(durationMs) : \"Thinking\");\n\n\treturn (\n\t\t<CollapsiblePrimitive.Root\n\t\t\tdefaultOpen={defaultOpen}\n\t\t\tclassName={cn(\"overflow-hidden rounded-md border-l-2 border-foreground/15 bg-muted/20\", className)}\n\t\t>\n\t\t\t<CollapsiblePrimitive.Trigger\n\t\t\t\tclassName={cn(\n\t\t\t\t\t\"group flex w-full items-center gap-2 px-3 py-1.5 text-left text-xs text-muted-foreground\",\n\t\t\t\t\t\"transition-all duration-[var(--duration-normal,200ms)] ease-out\",\n\t\t\t\t\t\"hover:text-foreground\",\n\t\t\t\t\t\"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2\",\n\t\t\t\t)}\n\t\t\t>\n\t\t\t\t<SparkleGlyph />\n\t\t\t\t<span className=\"font-medium italic\">{headerLabel}</span>\n\t\t\t\t<Chevron />\n\t\t\t</CollapsiblePrimitive.Trigger>\n\t\t\t<CollapsiblePrimitive.Content className=\"overflow-hidden border-t border-foreground/[0.06] px-3 py-2 text-sm text-muted-foreground\">\n\t\t\t\t{children}\n\t\t\t</CollapsiblePrimitive.Content>\n\t\t</CollapsiblePrimitive.Root>\n\t);\n}\n\nfunction formatThoughtFor(ms: number): string {\n\tif (ms < 1000) return `Thought for ${ms}ms`;\n\tconst seconds = ms / 1000;\n\tconst formatted = seconds >= 10 ? Math.round(seconds).toString() : seconds.toFixed(1);\n\treturn `Thought for ${formatted}s`;\n}\n\nfunction SparkleGlyph() {\n\treturn (\n\t\t<svg\n\t\t\taria-hidden\n\t\t\tviewBox=\"0 0 16 16\"\n\t\t\twidth=\"12\"\n\t\t\theight=\"12\"\n\t\t\tfill=\"none\"\n\t\t\tstroke=\"currentColor\"\n\t\t\tstrokeWidth=\"1.5\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tclassName=\"shrink-0\"\n\t\t>\n\t\t\t<path d=\"M8 1.5l1.5 4 4 1.5-4 1.5L8 12.5 6.5 8.5l-4-1.5 4-1.5L8 1.5z\" />\n\t\t</svg>\n\t);\n}\n\nfunction Chevron() {\n\treturn (\n\t\t<svg\n\t\t\taria-hidden\n\t\t\tviewBox=\"0 0 16 16\"\n\t\t\twidth=\"12\"\n\t\t\theight=\"12\"\n\t\t\tfill=\"none\"\n\t\t\tstroke=\"currentColor\"\n\t\t\tstrokeWidth=\"1.5\"\n\t\t\tstrokeLinecap=\"round\"\n\t\t\tstrokeLinejoin=\"round\"\n\t\t\tclassName=\"ml-auto shrink-0 transition-transform duration-200 group-data-[state=open]:rotate-180\"\n\t\t>\n\t\t\t<path d=\"M4 6l4 4 4-4\" />\n\t\t</svg>\n\t);\n}\n\nexport { Reasoning };\n"]}
@@ -1,28 +1,3 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as React from 'react';
3
- import { Separator, Panel, Group } from 'react-resizable-panels';
4
-
5
- /**
6
- * Root container for a group of resizable panels.
7
- * @returns A flex container that coordinates panel sizing.
8
- */
9
- declare function ResizablePanelGroup({ className, ...props }: React.ComponentPropsWithoutRef<typeof Group>): react_jsx_runtime.JSX.Element;
10
- declare namespace ResizablePanelGroup {
11
- var displayName: string;
12
- }
13
- /** A single resizable panel. Configure via defaultSize, minSize, maxSize. */
14
- declare const ResizablePanel: typeof Panel;
15
- interface ResizableHandleProps extends React.ComponentPropsWithoutRef<typeof Separator> {
16
- /** Show a grab-grip on the handle for affordance. */
17
- withHandle?: boolean;
18
- }
19
- /**
20
- * Draggable separator between panels. Optionally renders a grab-grip dot.
21
- * @returns A slim, focusable resize handle.
22
- */
23
- declare function ResizableHandle({ withHandle, className, ...props }: ResizableHandleProps): react_jsx_runtime.JSX.Element;
24
- declare namespace ResizableHandle {
25
- var displayName: string;
26
- }
27
-
28
- export { ResizableHandle, ResizablePanel, ResizablePanelGroup };
1
+ export { ResizablePanelGroup_alias_1 as ResizablePanelGroup } from './_tsup-dts-rollup.js';
2
+ export { ResizablePanel_alias_1 as ResizablePanel } from './_tsup-dts-rollup.js';
3
+ export { ResizableHandle_alias_1 as ResizableHandle } from './_tsup-dts-rollup.js';
package/dist/schemas.d.ts CHANGED
@@ -1,121 +1,79 @@
1
- import { ComponentSchemaDefinition } from '@hex-core/registry';
2
-
3
- declare const buttonSchema: ComponentSchemaDefinition;
4
-
5
- declare const inputSchema: ComponentSchemaDefinition;
6
-
7
- declare const labelSchema: ComponentSchemaDefinition;
8
-
9
- declare const textareaSchema: ComponentSchemaDefinition;
10
-
11
- declare const checkboxSchema: ComponentSchemaDefinition;
12
-
13
- declare const switchSchema: ComponentSchemaDefinition;
14
-
15
- declare const badgeSchema: ComponentSchemaDefinition;
16
-
17
- declare const separatorSchema: ComponentSchemaDefinition;
18
-
19
- declare const cardSchema: ComponentSchemaDefinition;
20
-
21
- declare const tabsSchema: ComponentSchemaDefinition;
22
-
23
- declare const accordionSchema: ComponentSchemaDefinition;
24
-
25
- declare const dialogSchema: ComponentSchemaDefinition;
26
-
27
- declare const alertDialogSchema: ComponentSchemaDefinition;
28
-
29
- declare const dropdownMenuSchema: ComponentSchemaDefinition;
30
-
31
- declare const popoverSchema: ComponentSchemaDefinition;
32
-
33
- declare const tooltipSchema: ComponentSchemaDefinition;
34
-
35
- declare const selectSchema: ComponentSchemaDefinition;
36
-
37
- declare const radioGroupSchema: ComponentSchemaDefinition;
38
-
39
- declare const sliderSchema: ComponentSchemaDefinition;
40
-
41
- declare const toggleSchema: ComponentSchemaDefinition;
42
-
43
- declare const toggleGroupSchema: ComponentSchemaDefinition;
44
-
45
- declare const formSchema: ComponentSchemaDefinition;
46
-
47
- declare const avatarSchema: ComponentSchemaDefinition;
48
-
49
- declare const skeletonSchema: ComponentSchemaDefinition;
50
-
51
- declare const progressSchema: ComponentSchemaDefinition;
52
-
53
- declare const scrollAreaSchema: ComponentSchemaDefinition;
54
-
55
- declare const aspectRatioSchema: ComponentSchemaDefinition;
56
-
57
- declare const containerSchema: ComponentSchemaDefinition;
58
-
59
- declare const stackSchema: ComponentSchemaDefinition;
60
-
61
- declare const clusterSchema: ComponentSchemaDefinition;
62
-
63
- declare const gridSchema: ComponentSchemaDefinition;
64
-
65
- declare const spacerSchema: ComponentSchemaDefinition;
66
-
67
- declare const collapsibleSchema: ComponentSchemaDefinition;
68
-
69
- declare const hoverCardSchema: ComponentSchemaDefinition;
70
-
71
- declare const contextMenuSchema: ComponentSchemaDefinition;
72
-
73
- declare const menubarSchema: ComponentSchemaDefinition;
74
-
75
- declare const navigationMenuSchema: ComponentSchemaDefinition;
76
-
77
- declare const breadcrumbSchema: ComponentSchemaDefinition;
78
-
79
- declare const alertSchema: ComponentSchemaDefinition;
80
-
81
- declare const sonnerSchema: ComponentSchemaDefinition;
82
-
83
- declare const tableSchema: ComponentSchemaDefinition;
84
-
85
- declare const dataTableSchema: ComponentSchemaDefinition;
86
-
87
- declare const paginationSchema: ComponentSchemaDefinition;
88
-
89
- declare const calendarSchema: ComponentSchemaDefinition;
90
-
91
- declare const datePickerSchema: ComponentSchemaDefinition;
92
-
93
- declare const inputOTPSchema: ComponentSchemaDefinition;
94
-
95
- declare const commandSchema: ComponentSchemaDefinition;
96
-
97
- declare const comboboxSchema: ComponentSchemaDefinition;
98
-
99
- declare const multiComboboxSchema: ComponentSchemaDefinition;
100
-
101
- declare const stepperSchema: ComponentSchemaDefinition;
102
-
103
- declare const timelineSchema: ComponentSchemaDefinition;
104
-
105
- declare const dropzoneSchema: ComponentSchemaDefinition;
106
-
107
- declare const timePickerSchema: ComponentSchemaDefinition;
108
-
109
- declare const fileTreeSchema: ComponentSchemaDefinition;
110
-
111
- declare const colorPickerSchema: ComponentSchemaDefinition;
112
-
113
- declare const sheetSchema: ComponentSchemaDefinition;
114
-
115
- declare const drawerSchema: ComponentSchemaDefinition;
116
-
117
- declare const resizableSchema: ComponentSchemaDefinition;
118
-
119
- declare const sidebarSchema: ComponentSchemaDefinition;
120
-
121
- export { accordionSchema, alertDialogSchema, alertSchema, aspectRatioSchema, avatarSchema, badgeSchema, breadcrumbSchema, buttonSchema, calendarSchema, cardSchema, checkboxSchema, clusterSchema, collapsibleSchema, colorPickerSchema, comboboxSchema, commandSchema, containerSchema, contextMenuSchema, dataTableSchema, datePickerSchema, dialogSchema, drawerSchema, dropdownMenuSchema, dropzoneSchema, fileTreeSchema, formSchema, gridSchema, hoverCardSchema, inputOTPSchema, inputSchema, labelSchema, menubarSchema, multiComboboxSchema, navigationMenuSchema, paginationSchema, popoverSchema, progressSchema, radioGroupSchema, resizableSchema, scrollAreaSchema, selectSchema, separatorSchema, sheetSchema, sidebarSchema, skeletonSchema, sliderSchema, sonnerSchema, spacerSchema, stackSchema, stepperSchema, switchSchema, tableSchema, tabsSchema, textareaSchema, timePickerSchema, timelineSchema, toggleGroupSchema, toggleSchema, tooltipSchema };
1
+ export { buttonSchema } from './_tsup-dts-rollup.js';
2
+ export { inputSchema } from './_tsup-dts-rollup.js';
3
+ export { labelSchema } from './_tsup-dts-rollup.js';
4
+ export { textareaSchema } from './_tsup-dts-rollup.js';
5
+ export { checkboxSchema } from './_tsup-dts-rollup.js';
6
+ export { switchSchema } from './_tsup-dts-rollup.js';
7
+ export { badgeSchema } from './_tsup-dts-rollup.js';
8
+ export { separatorSchema } from './_tsup-dts-rollup.js';
9
+ export { cardSchema } from './_tsup-dts-rollup.js';
10
+ export { tabsSchema } from './_tsup-dts-rollup.js';
11
+ export { accordionSchema } from './_tsup-dts-rollup.js';
12
+ export { dialogSchema } from './_tsup-dts-rollup.js';
13
+ export { alertDialogSchema } from './_tsup-dts-rollup.js';
14
+ export { dropdownMenuSchema } from './_tsup-dts-rollup.js';
15
+ export { popoverSchema } from './_tsup-dts-rollup.js';
16
+ export { tooltipSchema } from './_tsup-dts-rollup.js';
17
+ export { selectSchema } from './_tsup-dts-rollup.js';
18
+ export { radioGroupSchema } from './_tsup-dts-rollup.js';
19
+ export { sliderSchema } from './_tsup-dts-rollup.js';
20
+ export { toggleSchema } from './_tsup-dts-rollup.js';
21
+ export { toggleGroupSchema } from './_tsup-dts-rollup.js';
22
+ export { formSchema } from './_tsup-dts-rollup.js';
23
+ export { avatarSchema } from './_tsup-dts-rollup.js';
24
+ export { skeletonSchema } from './_tsup-dts-rollup.js';
25
+ export { progressSchema } from './_tsup-dts-rollup.js';
26
+ export { scrollAreaSchema } from './_tsup-dts-rollup.js';
27
+ export { aspectRatioSchema } from './_tsup-dts-rollup.js';
28
+ export { containerSchema } from './_tsup-dts-rollup.js';
29
+ export { stackSchema } from './_tsup-dts-rollup.js';
30
+ export { clusterSchema } from './_tsup-dts-rollup.js';
31
+ export { gridSchema } from './_tsup-dts-rollup.js';
32
+ export { spacerSchema } from './_tsup-dts-rollup.js';
33
+ export { collapsibleSchema } from './_tsup-dts-rollup.js';
34
+ export { hoverCardSchema } from './_tsup-dts-rollup.js';
35
+ export { contextMenuSchema } from './_tsup-dts-rollup.js';
36
+ export { menubarSchema } from './_tsup-dts-rollup.js';
37
+ export { navigationMenuSchema } from './_tsup-dts-rollup.js';
38
+ export { breadcrumbSchema } from './_tsup-dts-rollup.js';
39
+ export { alertSchema } from './_tsup-dts-rollup.js';
40
+ export { sonnerSchema } from './_tsup-dts-rollup.js';
41
+ export { tableSchema } from './_tsup-dts-rollup.js';
42
+ export { dataTableSchema } from './_tsup-dts-rollup.js';
43
+ export { paginationSchema } from './_tsup-dts-rollup.js';
44
+ export { calendarSchema } from './_tsup-dts-rollup.js';
45
+ export { datePickerSchema } from './_tsup-dts-rollup.js';
46
+ export { inputOTPSchema } from './_tsup-dts-rollup.js';
47
+ export { commandSchema } from './_tsup-dts-rollup.js';
48
+ export { comboboxSchema } from './_tsup-dts-rollup.js';
49
+ export { multiComboboxSchema } from './_tsup-dts-rollup.js';
50
+ export { stepperSchema } from './_tsup-dts-rollup.js';
51
+ export { timelineSchema } from './_tsup-dts-rollup.js';
52
+ export { dropzoneSchema } from './_tsup-dts-rollup.js';
53
+ export { timePickerSchema } from './_tsup-dts-rollup.js';
54
+ export { fileTreeSchema } from './_tsup-dts-rollup.js';
55
+ export { colorPickerSchema } from './_tsup-dts-rollup.js';
56
+ export { sheetSchema } from './_tsup-dts-rollup.js';
57
+ export { drawerSchema } from './_tsup-dts-rollup.js';
58
+ export { resizableSchema } from './_tsup-dts-rollup.js';
59
+ export { sidebarSchema } from './_tsup-dts-rollup.js';
60
+ export { emptySchema } from './_tsup-dts-rollup.js';
61
+ export { loadingSchema } from './_tsup-dts-rollup.js';
62
+ export { errorStateSchema } from './_tsup-dts-rollup.js';
63
+ export { tagSchema } from './_tsup-dts-rollup.js';
64
+ export { treeSchema } from './_tsup-dts-rollup.js';
65
+ export { toolbarSchema } from './_tsup-dts-rollup.js';
66
+ export { attachmentSchema } from './_tsup-dts-rollup.js';
67
+ export { Role_alias_1 as Role } from './_tsup-dts-rollup.js';
68
+ export { ToolCallState_alias_1 as ToolCallState } from './_tsup-dts-rollup.js';
69
+ export { messageSchema } from './_tsup-dts-rollup.js';
70
+ export { messageListSchema } from './_tsup-dts-rollup.js';
71
+ export { composerSchema } from './_tsup-dts-rollup.js';
72
+ export { loadingIndicatorSchema } from './_tsup-dts-rollup.js';
73
+ export { suggestionSchema } from './_tsup-dts-rollup.js';
74
+ export { toolCallSchema } from './_tsup-dts-rollup.js';
75
+ export { reasoningSchema } from './_tsup-dts-rollup.js';
76
+ export { messageActionsSchema } from './_tsup-dts-rollup.js';
77
+ export { citationSchema } from './_tsup-dts-rollup.js';
78
+ export { markdownSchema } from './_tsup-dts-rollup.js';
79
+ export { codeBlockSchema } from './_tsup-dts-rollup.js';