@loccal/ui 0.0.0-stage → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (246) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/LICENSE +21 -0
  3. package/README.md +38 -3
  4. package/dist/components/ui/accordion.d.ts +6 -0
  5. package/dist/components/ui/accordion.js +17 -0
  6. package/dist/components/ui/ai-panel.d.ts +47 -0
  7. package/dist/components/ui/ai-panel.js +74 -0
  8. package/dist/components/ui/alert-dialog.d.ts +18 -0
  9. package/dist/components/ui/alert-dialog.js +42 -0
  10. package/dist/components/ui/alert.d.ts +10 -0
  11. package/dist/components/ui/alert.js +27 -0
  12. package/dist/components/ui/avatar.d.ts +11 -0
  13. package/dist/components/ui/avatar.js +23 -0
  14. package/dist/components/ui/badge.d.ts +7 -0
  15. package/dist/components/ui/badge.js +36 -0
  16. package/dist/components/ui/breadcrumb.d.ts +10 -0
  17. package/dist/components/ui/breadcrumb.js +36 -0
  18. package/dist/components/ui/button-group.d.ts +10 -0
  19. package/dist/components/ui/button-group.js +36 -0
  20. package/dist/components/ui/button.d.ts +8 -0
  21. package/dist/components/ui/button.js +34 -0
  22. package/dist/components/ui/calendar.d.ts +10 -0
  23. package/dist/components/ui/calendar.js +76 -0
  24. package/dist/components/ui/card.d.ts +11 -0
  25. package/dist/components/ui/card.js +24 -0
  26. package/dist/components/ui/chart.d.ts +44 -0
  27. package/dist/components/ui/chart.js +132 -0
  28. package/dist/components/ui/checkbox.d.ts +3 -0
  29. package/dist/components/ui/checkbox.js +9 -0
  30. package/dist/components/ui/collapsible.d.ts +5 -0
  31. package/dist/components/ui/collapsible.js +13 -0
  32. package/dist/components/ui/command-block.d.ts +28 -0
  33. package/dist/components/ui/command-block.js +58 -0
  34. package/dist/components/ui/command.d.ts +19 -0
  35. package/dist/components/ui/command.js +35 -0
  36. package/dist/components/ui/connection-status.d.ts +29 -0
  37. package/dist/components/ui/connection-status.js +26 -0
  38. package/dist/components/ui/context-menu.d.ts +29 -0
  39. package/dist/components/ui/context-menu.js +51 -0
  40. package/dist/components/ui/data-table.d.ts +49 -0
  41. package/dist/components/ui/data-table.js +100 -0
  42. package/dist/components/ui/dialog.d.ts +18 -0
  43. package/dist/components/ui/dialog.js +37 -0
  44. package/dist/components/ui/drawer.d.ts +16 -0
  45. package/dist/components/ui/drawer.js +75 -0
  46. package/dist/components/ui/dropdown-menu.d.ts +29 -0
  47. package/dist/components/ui/dropdown-menu.js +51 -0
  48. package/dist/components/ui/dropzone.d.ts +11 -0
  49. package/dist/components/ui/dropzone.js +39 -0
  50. package/dist/components/ui/empty.d.ts +11 -0
  51. package/dist/components/ui/empty.js +33 -0
  52. package/dist/components/ui/field.d.ts +24 -0
  53. package/dist/components/ui/field.js +68 -0
  54. package/dist/components/ui/file-tree.d.ts +42 -0
  55. package/dist/components/ui/file-tree.js +85 -0
  56. package/dist/components/ui/hash-chain.d.ts +43 -0
  57. package/dist/components/ui/hash-chain.js +34 -0
  58. package/dist/components/ui/history-palette.d.ts +37 -0
  59. package/dist/components/ui/history-palette.js +44 -0
  60. package/dist/components/ui/hover-card.d.ts +5 -0
  61. package/dist/components/ui/hover-card.js +14 -0
  62. package/dist/components/ui/icon-base.d.ts +15 -0
  63. package/dist/components/ui/icon-base.js +18 -0
  64. package/dist/components/ui/icon.d.ts +15 -0
  65. package/dist/components/ui/icon.js +32 -0
  66. package/dist/components/ui/icons-compat.d.ts +32 -0
  67. package/dist/components/ui/icons-compat.js +34 -0
  68. package/dist/components/ui/icons.d.ts +1048 -0
  69. package/dist/components/ui/icons.js +264 -0
  70. package/dist/components/ui/input-group.d.ts +18 -0
  71. package/dist/components/ui/input-group.js +57 -0
  72. package/dist/components/ui/input-otp.d.ts +11 -0
  73. package/dist/components/ui/input-otp.js +21 -0
  74. package/dist/components/ui/input.d.ts +3 -0
  75. package/dist/components/ui/input.js +7 -0
  76. package/dist/components/ui/kbd.d.ts +3 -0
  77. package/dist/components/ui/kbd.js +9 -0
  78. package/dist/components/ui/label.d.ts +3 -0
  79. package/dist/components/ui/label.js +7 -0
  80. package/dist/components/ui/locale-switch.d.ts +9 -0
  81. package/dist/components/ui/locale-switch.js +31 -0
  82. package/dist/components/ui/log-panel.d.ts +28 -0
  83. package/dist/components/ui/log-panel.js +59 -0
  84. package/dist/components/ui/menubar.d.ts +29 -0
  85. package/dist/components/ui/menubar.js +56 -0
  86. package/dist/components/ui/metric-grid.d.ts +20 -0
  87. package/dist/components/ui/metric-grid.js +14 -0
  88. package/dist/components/ui/model-list.d.ts +33 -0
  89. package/dist/components/ui/model-list.js +69 -0
  90. package/dist/components/ui/navigation-menu.d.ts +11 -0
  91. package/dist/components/ui/navigation-menu.js +31 -0
  92. package/dist/components/ui/number-field.d.ts +29 -0
  93. package/dist/components/ui/number-field.js +65 -0
  94. package/dist/components/ui/pagination.d.ts +17 -0
  95. package/dist/components/ui/pagination.js +26 -0
  96. package/dist/components/ui/pane-tree.d.ts +18 -0
  97. package/dist/components/ui/pane-tree.js +65 -0
  98. package/dist/components/ui/popover.d.ts +9 -0
  99. package/dist/components/ui/popover.js +23 -0
  100. package/dist/components/ui/progress.d.ts +7 -0
  101. package/dist/components/ui/progress.js +20 -0
  102. package/dist/components/ui/radio-group.d.ts +5 -0
  103. package/dist/components/ui/radio-group.js +12 -0
  104. package/dist/components/ui/resizable.d.ts +7 -0
  105. package/dist/components/ui/resizable.js +14 -0
  106. package/dist/components/ui/scroll-area.d.ts +5 -0
  107. package/dist/components/ui/scroll-area.js +11 -0
  108. package/dist/components/ui/select.d.ts +15 -0
  109. package/dist/components/ui/select.js +34 -0
  110. package/dist/components/ui/separator.d.ts +3 -0
  111. package/dist/components/ui/separator.js +8 -0
  112. package/dist/components/ui/settings-layout.d.ts +31 -0
  113. package/dist/components/ui/settings-layout.js +45 -0
  114. package/dist/components/ui/sheet.d.ts +14 -0
  115. package/dist/components/ui/sheet.js +37 -0
  116. package/dist/components/ui/shell-picker.d.ts +18 -0
  117. package/dist/components/ui/shell-picker.js +17 -0
  118. package/dist/components/ui/skeleton.d.ts +2 -0
  119. package/dist/components/ui/skeleton.js +6 -0
  120. package/dist/components/ui/slider.d.ts +3 -0
  121. package/dist/components/ui/slider.js +12 -0
  122. package/dist/components/ui/sonner.d.ts +3 -0
  123. package/dist/components/ui/sonner.js +25 -0
  124. package/dist/components/ui/spinner.d.ts +2 -0
  125. package/dist/components/ui/spinner.js +7 -0
  126. package/dist/components/ui/split-button.d.ts +21 -0
  127. package/dist/components/ui/split-button.js +14 -0
  128. package/dist/components/ui/stat.d.ts +10 -0
  129. package/dist/components/ui/stat.js +8 -0
  130. package/dist/components/ui/status-bar.d.ts +13 -0
  131. package/dist/components/ui/status-bar.js +15 -0
  132. package/dist/components/ui/stepper.d.ts +13 -0
  133. package/dist/components/ui/stepper.js +11 -0
  134. package/dist/components/ui/switch.d.ts +5 -0
  135. package/dist/components/ui/switch.js +8 -0
  136. package/dist/components/ui/table.d.ts +10 -0
  137. package/dist/components/ui/table.js +28 -0
  138. package/dist/components/ui/tabs.d.ts +10 -0
  139. package/dist/components/ui/tabs.js +29 -0
  140. package/dist/components/ui/terminal-tabs.d.ts +31 -0
  141. package/dist/components/ui/terminal-tabs.js +109 -0
  142. package/dist/components/ui/terminal-view.d.ts +51 -0
  143. package/dist/components/ui/terminal-view.js +189 -0
  144. package/dist/components/ui/textarea.d.ts +3 -0
  145. package/dist/components/ui/textarea.js +6 -0
  146. package/dist/components/ui/timeline.d.ts +9 -0
  147. package/dist/components/ui/timeline.js +18 -0
  148. package/dist/components/ui/toggle-group.d.ts +11 -0
  149. package/dist/components/ui/toggle-group.js +24 -0
  150. package/dist/components/ui/toggle.d.ts +8 -0
  151. package/dist/components/ui/toggle.js +26 -0
  152. package/dist/components/ui/tooltip.d.ts +6 -0
  153. package/dist/components/ui/tooltip.js +17 -0
  154. package/dist/components/ui/tree-view.d.ts +20 -0
  155. package/dist/components/ui/tree-view.js +41 -0
  156. package/dist/components/ui/window-frame.d.ts +35 -0
  157. package/dist/components/ui/window-frame.js +49 -0
  158. package/dist/lib/ai-markdown.d.ts +13 -0
  159. package/dist/lib/ai-markdown.js +46 -0
  160. package/dist/lib/command-risk.d.ts +6 -0
  161. package/dist/lib/command-risk.js +42 -0
  162. package/dist/lib/file-kind.d.ts +10 -0
  163. package/dist/lib/file-kind.js +63 -0
  164. package/dist/lib/format.d.ts +9 -0
  165. package/dist/lib/format.js +30 -0
  166. package/dist/lib/i18n-core.d.ts +20 -0
  167. package/dist/lib/i18n-core.js +36 -0
  168. package/dist/lib/i18n.d.ts +15 -0
  169. package/dist/lib/i18n.js +68 -0
  170. package/dist/lib/icon-data.d.ts +276 -0
  171. package/dist/lib/icon-data.js +307 -0
  172. package/dist/lib/icon-shapes.d.ts +14 -0
  173. package/dist/lib/icon-shapes.js +47 -0
  174. package/dist/lib/log-filter.d.ts +23 -0
  175. package/dist/lib/log-filter.js +44 -0
  176. package/dist/lib/number-field.d.ts +11 -0
  177. package/dist/lib/number-field.js +30 -0
  178. package/dist/lib/pane-tree.d.ts +39 -0
  179. package/dist/lib/pane-tree.js +92 -0
  180. package/dist/lib/platform.d.ts +10 -0
  181. package/dist/lib/platform.js +24 -0
  182. package/dist/lib/shell-meta.d.ts +7 -0
  183. package/dist/lib/shell-meta.js +70 -0
  184. package/dist/lib/tab-order.d.ts +6 -0
  185. package/dist/lib/tab-order.js +24 -0
  186. package/dist/lib/table-sort.d.ts +16 -0
  187. package/dist/lib/table-sort.js +66 -0
  188. package/dist/lib/terminal-themes.d.ts +30 -0
  189. package/dist/lib/terminal-themes.js +90 -0
  190. package/dist/lib/utils.d.ts +2 -0
  191. package/dist/lib/utils.js +5 -0
  192. package/dist-cdn/loccal-ui.css +971 -0
  193. package/dist-cdn/loccal-ui.min.js +1 -0
  194. package/dist-wc/base.d.ts +31 -0
  195. package/dist-wc/base.js +104 -0
  196. package/dist-wc/button.d.ts +12 -0
  197. package/dist-wc/button.js +47 -0
  198. package/dist-wc/calendar.d.ts +16 -0
  199. package/dist-wc/calendar.js +106 -0
  200. package/dist-wc/choice.d.ts +17 -0
  201. package/dist-wc/choice.js +76 -0
  202. package/dist-wc/command.d.ts +32 -0
  203. package/dist-wc/command.js +181 -0
  204. package/dist-wc/data-table.d.ts +22 -0
  205. package/dist-wc/data-table.js +128 -0
  206. package/dist-wc/dialog.d.ts +29 -0
  207. package/dist-wc/dialog.js +94 -0
  208. package/dist-wc/disclosure.d.ts +17 -0
  209. package/dist-wc/disclosure.js +91 -0
  210. package/dist-wc/fields2.d.ts +38 -0
  211. package/dist-wc/fields2.js +133 -0
  212. package/dist-wc/file-tree.d.ts +19 -0
  213. package/dist-wc/file-tree.js +97 -0
  214. package/dist-wc/floating.d.ts +32 -0
  215. package/dist-wc/floating.js +91 -0
  216. package/dist-wc/index.d.ts +23 -0
  217. package/dist-wc/index.js +24 -0
  218. package/dist-wc/input-otp.d.ts +14 -0
  219. package/dist-wc/input-otp.js +82 -0
  220. package/dist-wc/navigation-menu.d.ts +14 -0
  221. package/dist-wc/navigation-menu.js +75 -0
  222. package/dist-wc/number-field.d.ts +13 -0
  223. package/dist-wc/number-field.js +67 -0
  224. package/dist-wc/resizable.d.ts +14 -0
  225. package/dist-wc/resizable.js +57 -0
  226. package/dist-wc/select.d.ts +17 -0
  227. package/dist-wc/select.js +80 -0
  228. package/dist-wc/static.d.ts +1 -0
  229. package/dist-wc/static.js +175 -0
  230. package/dist-wc/status-bar.d.ts +11 -0
  231. package/dist-wc/status-bar.js +54 -0
  232. package/dist-wc/styles.css +971 -0
  233. package/dist-wc/tabs.d.ts +16 -0
  234. package/dist-wc/tabs.js +62 -0
  235. package/dist-wc/terminal-tabs.d.ts +16 -0
  236. package/dist-wc/terminal-tabs.js +79 -0
  237. package/dist-wc/toaster.d.ts +16 -0
  238. package/dist-wc/toaster.js +68 -0
  239. package/dist-wc/toggle.d.ts +30 -0
  240. package/dist-wc/toggle.js +101 -0
  241. package/dist-wc/tree.d.ts +17 -0
  242. package/dist-wc/tree.js +72 -0
  243. package/docs/ARQUITETURA-VANILLA.md +54 -0
  244. package/docs/VERSIONING.md +88 -0
  245. package/package.json +1058 -6
  246. package/styles.css +426 -0
@@ -0,0 +1,68 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { useMemo } from "react";
4
+ import { cva } from "class-variance-authority";
5
+ import { cn } from "../../lib/utils.js";
6
+ import { Label } from "./label.js";
7
+ import { Separator } from "./separator.js";
8
+ function FieldSet({ className, ...props }) {
9
+ return (_jsx("fieldset", { "data-slot": "field-set", className: cn("flex flex-col gap-4 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3", className), ...props }));
10
+ }
11
+ function FieldLegend({ className, variant = "legend", ...props }) {
12
+ return (_jsx("legend", { "data-slot": "field-legend", "data-variant": variant, className: cn("mb-1.5 font-medium data-[variant=label]:text-sm data-[variant=legend]:text-base", className), ...props }));
13
+ }
14
+ function FieldGroup({ className, ...props }) {
15
+ return (_jsx("div", { "data-slot": "field-group", className: cn("group/field-group @container/field-group flex w-full flex-col gap-5 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4", className), ...props }));
16
+ }
17
+ const fieldVariants = cva("group/field flex w-full gap-2 data-[invalid=true]:text-destructive", {
18
+ variants: {
19
+ orientation: {
20
+ vertical: "flex-col *:w-full [&>.sr-only]:w-auto",
21
+ horizontal: "flex-row items-center has-[>[data-slot=field-content]]:items-start *:data-[slot=field-label]:flex-auto has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px",
22
+ responsive: "flex-col *:w-full @md/field-group:flex-row @md/field-group:items-center @md/field-group:*:w-auto @md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:*:data-[slot=field-label]:flex-auto [&>.sr-only]:w-auto @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px",
23
+ },
24
+ },
25
+ defaultVariants: {
26
+ orientation: "vertical",
27
+ },
28
+ });
29
+ function Field({ className, orientation = "vertical", ...props }) {
30
+ return (_jsx("div", { role: "group", "data-slot": "field", "data-orientation": orientation, className: cn(fieldVariants({ orientation }), className), ...props }));
31
+ }
32
+ function FieldContent({ className, ...props }) {
33
+ return (_jsx("div", { "data-slot": "field-content", className: cn("group/field-content flex flex-1 flex-col gap-0.5 leading-snug", className), ...props }));
34
+ }
35
+ function FieldLabel({ className, ...props }) {
36
+ return (_jsx(Label, { "data-slot": "field-label", className: cn("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 has-data-checked:border-primary/30 has-data-checked:bg-primary/5 has-[>[data-slot=field]]:rounded-lg has-[>[data-slot=field]]:border has-[>[data-slot=field]]:not-has-[:disabled,[data-disabled]]:hover:bg-muted/50 has-[>[data-slot=field]]:has-[:focus-visible]:border-ring has-[>[data-slot=field]]:has-[:focus-visible]:ring-3 has-[>[data-slot=field]]:has-[:focus-visible]:ring-ring/50 *:data-[slot=field]:p-2.5 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10", "has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col", className), ...props }));
37
+ }
38
+ function FieldTitle({ className, ...props }) {
39
+ return (_jsx("div", { "data-slot": "field-label", className: cn("flex w-fit items-center gap-2 text-sm font-medium group-data-[disabled=true]/field:opacity-50", className), ...props }));
40
+ }
41
+ function FieldDescription({ className, ...props }) {
42
+ return (_jsx("p", { "data-slot": "field-description", className: cn("text-left text-sm leading-normal font-normal text-muted-foreground group-has-data-horizontal/field:text-balance [[data-variant=legend]+&]:-mt-1.5", "last:mt-0 nth-last-2:-mt-1", "[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary", className), ...props }));
43
+ }
44
+ function FieldSeparator({ children, className, ...props }) {
45
+ return (_jsxs("div", { "data-slot": "field-separator", "data-content": !!children, className: cn("relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2", className), ...props, children: [_jsx(Separator, { className: "absolute inset-0 top-1/2" }), children && (_jsx("span", { className: "relative mx-auto block w-fit bg-background px-2 text-muted-foreground", "data-slot": "field-separator-content", children: children }))] }));
46
+ }
47
+ function FieldError({ className, children, errors, ...props }) {
48
+ const content = useMemo(() => {
49
+ if (children) {
50
+ return children;
51
+ }
52
+ if (!errors?.length) {
53
+ return null;
54
+ }
55
+ const uniqueErrors = [
56
+ ...new Map(errors.map((error) => [error?.message, error])).values(),
57
+ ];
58
+ if (uniqueErrors?.length == 1) {
59
+ return uniqueErrors[0]?.message;
60
+ }
61
+ return (_jsx("ul", { className: "ml-4 flex list-disc flex-col gap-1", children: uniqueErrors.map((error, index) => error?.message && _jsx("li", { children: error.message }, index)) }));
62
+ }, [children, errors]);
63
+ if (!content) {
64
+ return null;
65
+ }
66
+ return (_jsx("div", { role: "alert", "data-slot": "field-error", className: cn("text-sm font-normal text-destructive", className), ...props, children: content }));
67
+ }
68
+ export { Field, FieldLabel, FieldDescription, FieldError, FieldGroup, FieldLegend, FieldSeparator, FieldSet, FieldContent, FieldTitle, };
@@ -0,0 +1,42 @@
1
+ import * as React from "react";
2
+ import { type GitStatus } from "../../lib/file-kind.js";
3
+ type FileNode = {
4
+ /** Caminho completo; serve de id. */
5
+ path: string;
6
+ name: string;
7
+ isDir: boolean;
8
+ sizeLabel?: string;
9
+ gitStatus?: GitStatus;
10
+ /**
11
+ * Para pastas: `undefined` = ainda nao carregada (a pasta chama `onExpand`);
12
+ * `[]` = carregada e vazia.
13
+ */
14
+ children?: FileNode[];
15
+ };
16
+ type FileTreeLabels = {
17
+ loading: string;
18
+ empty: string;
19
+ status: Record<GitStatus, string>;
20
+ };
21
+ type FileTreeProps = {
22
+ nodes: FileNode[];
23
+ /** Pastas abertas (controlado). */
24
+ expanded: string[];
25
+ onExpandedChange: (expanded: string[]) => void;
26
+ /** Chamado ao abrir uma pasta sem `children` para o chamador carregar o conteudo. */
27
+ onExpand?: (node: FileNode) => void;
28
+ selectedPath?: string;
29
+ onSelect?: (node: FileNode) => void;
30
+ /** Duplo clique ou Enter em arquivo. */
31
+ onOpen?: (node: FileNode) => void;
32
+ /** Acao extra por pasta (por exemplo, "cd" no terminal ativo). */
33
+ renderActions?: (node: FileNode) => React.ReactNode;
34
+ labels?: Partial<Omit<FileTreeLabels, "status">> & {
35
+ status?: Partial<Record<GitStatus, string>>;
36
+ };
37
+ className?: string;
38
+ "aria-label"?: string;
39
+ };
40
+ declare function FileTree({ nodes, expanded, onExpandedChange, onExpand, selectedPath, onSelect, onOpen, renderActions, labels, className, ...props }: FileTreeProps): React.JSX.Element;
41
+ export { FileTree };
42
+ export type { FileNode, FileTreeProps };
@@ -0,0 +1,85 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import * as React from "react";
4
+ import { ArchiveIcon, BracesIcon, ChevronRightIcon, DatabaseIcon, FileCogIcon, FileIcon, FileTextIcon, FolderIcon, FolderOpenIcon, ImageIcon, LockIcon, TerminalSquareIcon as SquareTerminalIcon, BinaryIcon } from "./icons.js";
5
+ import { cn } from "../../lib/utils.js";
6
+ import { fileKind } from "../../lib/file-kind.js";
7
+ const DEFAULT_LABELS = {
8
+ loading: "Carregando…",
9
+ empty: "Pasta vazia",
10
+ status: {
11
+ modified: "Modificado",
12
+ added: "Adicionado",
13
+ deleted: "Removido",
14
+ untracked: "Não rastreado",
15
+ renamed: "Renomeado",
16
+ conflict: "Conflito",
17
+ },
18
+ };
19
+ const statusLetter = {
20
+ modified: "M",
21
+ added: "A",
22
+ deleted: "D",
23
+ untracked: "U",
24
+ renamed: "R",
25
+ conflict: "!",
26
+ };
27
+ const statusTone = {
28
+ modified: "text-warning",
29
+ added: "text-success",
30
+ deleted: "text-destructive",
31
+ untracked: "text-success",
32
+ renamed: "text-brand",
33
+ conflict: "text-destructive",
34
+ };
35
+ const kindIcon = {
36
+ folder: FolderIcon,
37
+ code: BracesIcon,
38
+ config: FileCogIcon,
39
+ doc: FileTextIcon,
40
+ image: ImageIcon,
41
+ archive: ArchiveIcon,
42
+ data: DatabaseIcon,
43
+ script: SquareTerminalIcon,
44
+ lock: LockIcon,
45
+ binary: BinaryIcon,
46
+ file: FileIcon,
47
+ };
48
+ function FileTree({ nodes, expanded, onExpandedChange, onExpand, selectedPath, onSelect, onOpen, renderActions, labels, className, ...props }) {
49
+ const l = { ...DEFAULT_LABELS, ...labels, status: { ...DEFAULT_LABELS.status, ...labels?.status } };
50
+ const open = React.useMemo(() => new Set(expanded), [expanded]);
51
+ const toggle = (node) => {
52
+ const isOpen = open.has(node.path);
53
+ onExpandedChange(isOpen ? expanded.filter((p) => p !== node.path) : [...expanded, node.path]);
54
+ if (!isOpen && node.children === undefined)
55
+ onExpand?.(node);
56
+ };
57
+ return (_jsx("ul", { role: "tree", "aria-label": props["aria-label"], "data-slot": "file-tree", className: cn("flex flex-col text-sm", className), children: nodes.map((node) => (_jsx(FileTreeRow, { node: node, depth: 0, open: open, selectedPath: selectedPath, onToggle: toggle, onSelect: onSelect, onOpen: onOpen, renderActions: renderActions, labels: l }, node.path))) }));
58
+ }
59
+ function FileTreeRow({ node, depth, open, selectedPath, onToggle, onSelect, onOpen, renderActions, labels, }) {
60
+ const isOpen = node.isDir && open.has(node.path);
61
+ const selected = selectedPath === node.path;
62
+ const Icon = node.isDir ? (isOpen ? FolderOpenIcon : FolderIcon) : kindIcon[fileKind(node.name)];
63
+ const actions = renderActions?.(node);
64
+ return (_jsxs("li", { role: "treeitem", "aria-expanded": node.isDir ? isOpen : undefined, "aria-selected": selected, children: [_jsxs("div", { "data-selected": selected, className: cn("group/row flex h-7 items-center rounded-md pr-1 text-muted-foreground transition-colors", "hover:bg-accent hover:text-foreground data-[selected=true]:bg-accent data-[selected=true]:text-foreground"), children: [_jsxs("button", { type: "button", style: { paddingLeft: `calc(${depth} * 0.875rem + 0.375rem)` }, onClick: () => {
65
+ onSelect?.(node);
66
+ if (node.isDir)
67
+ onToggle(node);
68
+ }, onDoubleClick: () => {
69
+ if (!node.isDir)
70
+ onOpen?.(node);
71
+ }, onKeyDown: (e) => {
72
+ if (node.isDir && e.key === "ArrowRight" && !isOpen) {
73
+ e.preventDefault();
74
+ onToggle(node);
75
+ }
76
+ else if (node.isDir && e.key === "ArrowLeft" && isOpen) {
77
+ e.preventDefault();
78
+ onToggle(node);
79
+ }
80
+ else if (!node.isDir && e.key === "Enter") {
81
+ onOpen?.(node);
82
+ }
83
+ }, className: "flex h-full min-w-0 flex-1 items-center gap-1.5 rounded-md text-left outline-none focus-visible:ring-2 focus-visible:ring-ring/60", children: [_jsx(ChevronRightIcon, { "aria-hidden": true, className: cn("size-3.5 shrink-0 transition-transform duration-150", node.isDir ? "opacity-70" : "opacity-0", isOpen && "rotate-90") }), _jsx(Icon, { className: cn("size-4 shrink-0", node.isDir && "text-brand") }), _jsx("span", { className: cn("truncate", node.gitStatus && statusTone[node.gitStatus]), children: node.name })] }), node.sizeLabel ? (_jsx("span", { className: "ml-1 shrink-0 font-mono text-[10px] text-muted-foreground tabular", children: node.sizeLabel })) : null, node.gitStatus ? (_jsx("span", { title: labels.status[node.gitStatus], "aria-label": labels.status[node.gitStatus], className: cn("ml-1 w-3 shrink-0 text-center font-mono text-[10px] font-semibold", statusTone[node.gitStatus]), children: statusLetter[node.gitStatus] })) : null, actions ? _jsx("span", { className: "ml-1 shrink-0 opacity-0 group-hover/row:opacity-100 focus-within:opacity-100", children: actions }) : null] }), isOpen ? (node.children === undefined ? (_jsx("p", { style: { paddingLeft: `calc(${depth + 1} * 0.875rem + 1.5rem)` }, className: "py-1 text-xs text-muted-foreground", children: labels.loading })) : node.children.length === 0 ? (_jsx("p", { style: { paddingLeft: `calc(${depth + 1} * 0.875rem + 1.5rem)` }, className: "py-1 text-xs text-muted-foreground", children: labels.empty })) : (_jsx("ul", { role: "group", className: "flex flex-col", children: node.children.map((child) => (_jsx(FileTreeRow, { node: child, depth: depth + 1, open: open, selectedPath: selectedPath, onToggle: onToggle, onSelect: onSelect, onOpen: onOpen, renderActions: renderActions, labels: labels }, child.path))) }))) : null] }));
84
+ }
85
+ export { FileTree };
@@ -0,0 +1,43 @@
1
+ import * as React from "react";
2
+ type HashChainEntry = {
3
+ sequence: number;
4
+ event: string;
5
+ /** Recurso ou ator, por exemplo "pty.command". */
6
+ source?: string;
7
+ payload?: string;
8
+ hash: string;
9
+ prevHash: string;
10
+ /** Epoca em ms. */
11
+ timestampMs?: number;
12
+ };
13
+ type HashChainStatus = "unknown" | "verifying" | "valid" | "invalid";
14
+ type HashChainLabels = {
15
+ title: string;
16
+ length: string;
17
+ head: string;
18
+ verify: string;
19
+ verifying: string;
20
+ unknown: string;
21
+ valid: string;
22
+ invalid: string;
23
+ empty: string;
24
+ copyHash: string;
25
+ };
26
+ type HashChainProps = {
27
+ entries: HashChainEntry[];
28
+ /** Quantidade total de elos (a lista pode mostrar apenas os mais recentes). */
29
+ total?: number;
30
+ head?: string;
31
+ status?: HashChainStatus;
32
+ /** Indice (sequence) do primeiro elo invalido, destacado na lista. */
33
+ invalidSequence?: number;
34
+ onVerify?: () => void;
35
+ /** Conteudo extra sob o cabecalho, por exemplo o relatorio da verificacao. */
36
+ children?: React.ReactNode;
37
+ labels?: Partial<HashChainLabels>;
38
+ className?: string;
39
+ };
40
+ /** Lista de elos SHA-256 encadeados (cada elo aponta para o anterior) com status e verificacao sob demanda. */
41
+ declare function HashChain({ entries, total, head, status, invalidSequence, onVerify, children, labels, className }: HashChainProps): React.JSX.Element;
42
+ export { HashChain };
43
+ export type { HashChainEntry, HashChainProps, HashChainStatus };
@@ -0,0 +1,34 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { LinkIcon, ShieldAlertIcon, ShieldCheckIcon, ShieldQuestionIcon } from "./icons.js";
4
+ import { cn } from "../../lib/utils.js";
5
+ import { Button } from "./button.js";
6
+ import { Spinner } from "./spinner.js";
7
+ const DEFAULT_LABELS = {
8
+ title: "Cadeia de auditoria",
9
+ length: "{n} elos",
10
+ head: "Topo",
11
+ verify: "Verificar",
12
+ verifying: "Verificando…",
13
+ unknown: "Não verificada",
14
+ valid: "Íntegra",
15
+ invalid: "Quebrada",
16
+ empty: "Nenhum elo registrado.",
17
+ copyHash: "Copiar hash",
18
+ };
19
+ const short = (h) => (h.length > 12 ? `${h.slice(0, 6)}…${h.slice(-4)}` : h);
20
+ const statusMeta = {
21
+ unknown: { icon: ShieldQuestionIcon, tone: "text-muted-foreground" },
22
+ verifying: { icon: ShieldQuestionIcon, tone: "text-muted-foreground" },
23
+ valid: { icon: ShieldCheckIcon, tone: "text-success" },
24
+ invalid: { icon: ShieldAlertIcon, tone: "text-destructive" },
25
+ };
26
+ /** Lista de elos SHA-256 encadeados (cada elo aponta para o anterior) com status e verificacao sob demanda. */
27
+ function HashChain({ entries, total, head, status = "unknown", invalidSequence, onVerify, children, labels, className }) {
28
+ const l = { ...DEFAULT_LABELS, ...labels };
29
+ const { icon: StatusIcon, tone } = statusMeta[status];
30
+ const count = total ?? entries.length;
31
+ const copy = (h) => void navigator.clipboard?.writeText(h).catch(() => { });
32
+ return (_jsxs("section", { "data-slot": "hash-chain", "data-status": status, className: cn("flex min-w-0 flex-col gap-2", className), children: [_jsxs("header", { className: "flex flex-wrap items-center gap-x-3 gap-y-1", children: [_jsxs("h3", { className: "flex items-center gap-1.5 text-sm font-medium", children: [_jsx(LinkIcon, { className: "size-4 text-muted-foreground" }), l.title] }), _jsx("span", { className: "font-mono text-xs text-muted-foreground tabular", children: l.length.replace("{n}", String(count)) }), _jsxs("span", { role: "status", className: cn("flex items-center gap-1 text-xs font-medium", tone), children: [_jsx(StatusIcon, { className: "size-4" }), status === "verifying" ? l.verifying : l[status]] }), onVerify ? (_jsxs(Button, { size: "sm", variant: "outline", className: "ml-auto", disabled: status === "verifying", onClick: onVerify, children: [status === "verifying" ? _jsx(Spinner, {}) : _jsx(ShieldCheckIcon, {}), l.verify] })) : null] }), head ? (_jsxs("p", { className: "flex items-center gap-2 font-mono text-[11px] text-muted-foreground", children: [_jsx("span", { children: l.head }), _jsx("button", { type: "button", title: l.copyHash, "aria-label": `${l.copyHash}: ${head}`, onClick: () => copy(head), className: "rounded px-1 text-foreground hover:bg-accent", children: short(head) })] })) : null, children, entries.length === 0 ? (_jsx("p", { className: "py-3 text-center text-xs text-muted-foreground", children: l.empty })) : (_jsx("ol", { className: "flex flex-col divide-y rounded-lg border text-xs", children: entries.map((e) => (_jsxs("li", { "data-invalid": invalidSequence === e.sequence, className: "grid grid-cols-[3rem_1fr_auto] items-baseline gap-x-3 px-3 py-1.5 data-[invalid=true]:bg-destructive/10", children: [_jsxs("span", { className: "font-mono text-muted-foreground tabular", children: ["#", e.sequence] }), _jsxs("span", { className: "min-w-0 truncate", children: [_jsx("span", { className: "font-medium", children: e.event }), e.source ? _jsx("span", { className: "ml-2 text-muted-foreground", children: e.source }) : null, e.payload ? _jsx("code", { className: "ml-2 font-mono text-muted-foreground", children: e.payload }) : null] }), _jsx("button", { type: "button", title: `${l.copyHash}: ${e.hash}`, onClick: () => copy(e.hash), className: "rounded px-1 font-mono text-[11px] text-muted-foreground hover:bg-accent hover:text-foreground", children: short(e.hash) })] }, e.sequence))) }))] }));
33
+ }
34
+ export { HashChain };
@@ -0,0 +1,37 @@
1
+ import * as React from "react";
2
+ import { type RelativeTimeLabels } from "../../lib/format.js";
3
+ type HistoryItem = {
4
+ id: string;
5
+ command: string;
6
+ /** Quantas vezes foi executado. */
7
+ execCount?: number;
8
+ /** Ultima execucao, em ms desde a epoca. */
9
+ executedMs?: number;
10
+ };
11
+ type HistoryPaletteLabels = {
12
+ title: string;
13
+ description: string;
14
+ placeholder: string;
15
+ empty: string;
16
+ insert: string;
17
+ run: string;
18
+ relative: Partial<RelativeTimeLabels>;
19
+ };
20
+ type HistoryPaletteProps = {
21
+ open: boolean;
22
+ onOpenChange: (open: boolean) => void;
23
+ /** Consulta atual. A busca e feita pelo chamador (backend BM25/fuzzy); a paleta nao filtra. */
24
+ query: string;
25
+ onQueryChange: (query: string) => void;
26
+ items: HistoryItem[];
27
+ /** Enter: coloca o comando no prompt sem executar. */
28
+ onInsert: (item: HistoryItem) => void;
29
+ /** Ctrl+Enter: executa imediatamente. */
30
+ onRun?: (item: HistoryItem) => void;
31
+ /** Relogio injetavel para testes e demos. */
32
+ now?: number;
33
+ labels?: Partial<HistoryPaletteLabels>;
34
+ };
35
+ declare function HistoryPalette({ open, onOpenChange, query, onQueryChange, items, onInsert, onRun, now, labels }: HistoryPaletteProps): React.JSX.Element;
36
+ export { HistoryPalette };
37
+ export type { HistoryItem, HistoryPaletteProps };
@@ -0,0 +1,44 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import * as React from "react";
4
+ import { HistoryIcon } from "./icons.js";
5
+ import { Command, CommandDialog, CommandEmpty, CommandInput, CommandItem, CommandList } from "./command.js";
6
+ import { Kbd } from "./kbd.js";
7
+ import { relativeTime } from "../../lib/format.js";
8
+ const DEFAULT_LABELS = {
9
+ title: "Histórico de comandos",
10
+ description: "Busque comandos executados anteriormente.",
11
+ placeholder: "Buscar no histórico…",
12
+ empty: "Nenhum comando encontrado.",
13
+ insert: "inserir",
14
+ run: "executar",
15
+ relative: {},
16
+ };
17
+ function HistoryPalette({ open, onOpenChange, query, onQueryChange, items, onInsert, onRun, now, labels }) {
18
+ const l = { ...DEFAULT_LABELS, ...labels };
19
+ const [selected, setSelected] = React.useState("");
20
+ // Mantem a selecao valida quando a lista muda.
21
+ React.useEffect(() => {
22
+ if (!items.some((i) => i.id === selected))
23
+ setSelected(items[0]?.id ?? "");
24
+ }, [items, selected]);
25
+ React.useEffect(() => {
26
+ if (!open)
27
+ onQueryChange("");
28
+ // eslint-disable-next-line react-hooks/exhaustive-deps
29
+ }, [open]);
30
+ const current = items.find((i) => i.id === selected);
31
+ const clock = now ?? Date.now();
32
+ return (_jsx(CommandDialog, { open: open, onOpenChange: onOpenChange, title: l.title, description: l.description, className: "max-w-xl", children: _jsxs(Command, { shouldFilter: false, value: selected, onValueChange: setSelected, onKeyDown: (e) => {
33
+ if (e.key === "Enter" && (e.ctrlKey || e.metaKey) && current && onRun) {
34
+ e.preventDefault();
35
+ e.stopPropagation();
36
+ onRun(current);
37
+ onOpenChange(false);
38
+ }
39
+ }, children: [_jsx(CommandInput, { value: query, onValueChange: onQueryChange, placeholder: l.placeholder }), _jsxs(CommandList, { children: [_jsx(CommandEmpty, { children: l.empty }), items.map((item) => (_jsxs(CommandItem, { value: item.id, onSelect: () => {
40
+ onInsert(item);
41
+ onOpenChange(false);
42
+ }, children: [_jsx(HistoryIcon, { className: "text-muted-foreground" }), _jsx("code", { className: "min-w-0 flex-1 truncate font-mono text-xs", children: item.command }), _jsxs("span", { className: "shrink-0 font-mono text-[11px] text-muted-foreground tabular", children: [item.execCount && item.execCount > 1 ? `${item.execCount}× ` : "", item.executedMs ? relativeTime(item.executedMs, clock, l.relative) : ""] })] }, item.id)))] }), _jsxs("div", { className: "flex items-center justify-end gap-3 border-t px-2 pt-1.5 pb-1 text-[11px] text-muted-foreground", children: [_jsxs("span", { className: "inline-flex items-center gap-1", children: [_jsx(Kbd, { children: "Enter" }), l.insert] }), onRun ? (_jsxs("span", { className: "inline-flex items-center gap-1", children: [_jsx(Kbd, { children: "Ctrl" }), _jsx(Kbd, { children: "Enter" }), l.run] })) : null, _jsx("span", { className: "inline-flex items-center gap-1", children: _jsx(Kbd, { children: "Esc" }) })] })] }) }));
43
+ }
44
+ export { HistoryPalette };
@@ -0,0 +1,5 @@
1
+ import { PreviewCard as PreviewCardPrimitive } from "@base-ui/react/preview-card";
2
+ declare function HoverCard({ ...props }: PreviewCardPrimitive.Root.Props): import("react").JSX.Element;
3
+ declare function HoverCardTrigger({ ...props }: PreviewCardPrimitive.Trigger.Props): import("react").JSX.Element;
4
+ declare function HoverCardContent({ className, side, sideOffset, align, alignOffset, ...props }: PreviewCardPrimitive.Popup.Props & Pick<PreviewCardPrimitive.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset">): import("react").JSX.Element;
5
+ export { HoverCard, HoverCardTrigger, HoverCardContent };
@@ -0,0 +1,14 @@
1
+ "use client";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { PreviewCard as PreviewCardPrimitive } from "@base-ui/react/preview-card";
4
+ import { cn } from "../../lib/utils.js";
5
+ function HoverCard({ ...props }) {
6
+ return _jsx(PreviewCardPrimitive.Root, { "data-slot": "hover-card", ...props });
7
+ }
8
+ function HoverCardTrigger({ ...props }) {
9
+ return (_jsx(PreviewCardPrimitive.Trigger, { "data-slot": "hover-card-trigger", ...props }));
10
+ }
11
+ function HoverCardContent({ className, side = "bottom", sideOffset = 4, align = "center", alignOffset = 4, ...props }) {
12
+ return (_jsx(PreviewCardPrimitive.Portal, { "data-slot": "hover-card-portal", children: _jsx(PreviewCardPrimitive.Positioner, { align: align, alignOffset: alignOffset, side: side, sideOffset: sideOffset, className: "isolate z-50", children: _jsx(PreviewCardPrimitive.Popup, { "data-slot": "hover-card-content", className: cn("z-50 w-64 origin-(--transform-origin) rounded-lg bg-popover p-2.5 text-sm text-popover-foreground shadow-floating outline-hidden duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", className), ...props }) }) }));
13
+ }
14
+ export { HoverCard, HoverCardTrigger, HoverCardContent };
@@ -0,0 +1,15 @@
1
+ import * as React from "react";
2
+ export type IconProps = Omit<React.SVGProps<SVGSVGElement>, "ref"> & {
3
+ /** Largura e altura em px (padrao 24; use className "size-4" para dimensionar via Tailwind). */
4
+ size?: number | string;
5
+ /** Espessura do traco em unidades da grade 24 (padrao 1.75). */
6
+ strokeWidth?: number | string;
7
+ /** Rotulo acessivel. Sem rotulo o icone e decorativo (aria-hidden). */
8
+ title?: string;
9
+ };
10
+ export declare function renderShapes(shapes: readonly string[]): React.ReactSVGElement[];
11
+ /** Cria um componente de icone a partir das formas. Sem dependencia do catalogo, para tree-shaking. */
12
+ export declare function createIcon(name: string, shapes: readonly string[]): {
13
+ ({ size, strokeWidth, title, ...props }: IconProps): React.JSX.Element;
14
+ displayName: string;
15
+ };
@@ -0,0 +1,18 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import { ICON_GRID, ICON_STROKE, parseShape } from "../../lib/icon-shapes.js";
4
+ export function renderShapes(shapes) {
5
+ return shapes.map((shape, i) => {
6
+ const { tag, attrs } = parseShape(shape);
7
+ return React.createElement(tag, { key: i, ...attrs });
8
+ });
9
+ }
10
+ /** Cria um componente de icone a partir das formas. Sem dependencia do catalogo, para tree-shaking. */
11
+ export function createIcon(name, shapes) {
12
+ function Icon({ size = ICON_GRID, strokeWidth = ICON_STROKE, title, ...props }) {
13
+ const labelled = Boolean(title || props["aria-label"]);
14
+ return (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: size, height: size, viewBox: `0 0 ${ICON_GRID} ${ICON_GRID}`, fill: "none", stroke: "currentColor", strokeWidth: strokeWidth, strokeLinecap: "round", strokeLinejoin: "round", "data-icon-name": name, "aria-hidden": labelled ? undefined : true, role: labelled ? "img" : undefined, ...props, children: [title ? _jsx("title", { children: title }) : null, renderShapes(shapes)] }));
15
+ }
16
+ Icon.displayName = `${name}Icon`;
17
+ return Icon;
18
+ }
@@ -0,0 +1,15 @@
1
+ import * as React from "react";
2
+ import { type IconName } from "../../lib/icon-data.js";
3
+ import { renderShapes, type IconProps } from "./icon-base.js";
4
+ export type { IconName, IconProps };
5
+ /**
6
+ * Icone por nome: <LoccalIcon name="terminal" size={16} />.
7
+ * Carrega o catalogo inteiro; prefira os componentes nomeados de "@/components/ui/icons" (tree-shakeable) em codigo de producao.
8
+ * Nome desconhecido renderiza um quadrado tracejado (e avisa no console em dev) em vez de quebrar a tela.
9
+ */
10
+ declare function LoccalIcon({ name, ...props }: IconProps & {
11
+ name: IconName | (string & {});
12
+ }): React.JSX.Element;
13
+ /** Forma funcional: loccalIcon("terminal", 16). */
14
+ declare function loccalIcon(name: IconName | (string & {}), size?: number, props?: Omit<IconProps, "size">): React.JSX.Element;
15
+ export { LoccalIcon, loccalIcon, renderShapes };
@@ -0,0 +1,32 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { iconData, isIconName } from "../../lib/icon-data.js";
3
+ import { renderShapes, createIcon } from "./icon-base.js";
4
+ const cache = new Map();
5
+ function resolve(name) {
6
+ let Icon = cache.get(name);
7
+ if (!Icon) {
8
+ const [, , ...shapes] = iconData[name];
9
+ Icon = createIcon(name, shapes);
10
+ cache.set(name, Icon);
11
+ }
12
+ return Icon;
13
+ }
14
+ /**
15
+ * Icone por nome: <LoccalIcon name="terminal" size={16} />.
16
+ * Carrega o catalogo inteiro; prefira os componentes nomeados de "@/components/ui/icons" (tree-shakeable) em codigo de producao.
17
+ * Nome desconhecido renderiza um quadrado tracejado (e avisa no console em dev) em vez de quebrar a tela.
18
+ */
19
+ function LoccalIcon({ name, ...props }) {
20
+ if (!isIconName(name)) {
21
+ if (process.env.NODE_ENV !== "production")
22
+ console.warn(`[loccal-icon] icone desconhecido: "${name}"`);
23
+ return createIcon("missing", ["r 4 4 16 16 2"])({ strokeDasharray: "3 3", ...props });
24
+ }
25
+ const Icon = resolve(name);
26
+ return _jsx(Icon, { ...props });
27
+ }
28
+ /** Forma funcional: loccalIcon("terminal", 16). */
29
+ function loccalIcon(name, size = 16, props = {}) {
30
+ return _jsx(LoccalIcon, { name: name, size: size, ...props });
31
+ }
32
+ export { LoccalIcon, loccalIcon, renderShapes };
@@ -0,0 +1,32 @@
1
+ export * from "./icons.js";
2
+ export { LoaderIcon as Loader2Icon } from "./icons.js";
3
+ export { LoaderIcon as LoaderCircleIcon } from "./icons.js";
4
+ export { AlertTriangleIcon as TriangleAlertIcon } from "./icons.js";
5
+ export { CheckCircleIcon as CircleCheckIcon } from "./icons.js";
6
+ export { CheckCircleIcon as CircleCheckBigIcon } from "./icons.js";
7
+ export { AlertCircleIcon as CircleAlertIcon } from "./icons.js";
8
+ export { XCircleIcon as CircleXIcon } from "./icons.js";
9
+ export { HelpCircleIcon as CircleHelpIcon } from "./icons.js";
10
+ export { PlusCircleIcon as CirclePlusIcon } from "./icons.js";
11
+ export { MinusCircleIcon as CircleMinusIcon } from "./icons.js";
12
+ export { TrashIcon as Trash2Icon } from "./icons.js";
13
+ export { RefreshIcon as RefreshCwIcon } from "./icons.js";
14
+ export { RefreshIcon as RotateCwIcon } from "./icons.js";
15
+ export { SplitHorizontalIcon as RowsIcon } from "./icons.js";
16
+ export { SplitHorizontalIcon as Rows2Icon } from "./icons.js";
17
+ export { SplitVerticalIcon as Columns2Icon } from "./icons.js";
18
+ export { SplitVerticalIcon as ColumnsIcon } from "./icons.js";
19
+ export { XOctagonIcon as OctagonXIcon } from "./icons.js";
20
+ export { TerminalSquareIcon as SquareTerminalIcon } from "./icons.js";
21
+ export { MoreHorizontalIcon as EllipsisIcon } from "./icons.js";
22
+ export { MoreVerticalIcon as EllipsisVerticalIcon } from "./icons.js";
23
+ export { PencilIcon as EditIcon } from "./icons.js";
24
+ export { PencilIcon as PenIcon } from "./icons.js";
25
+ export { GripIcon as GripVerticalIcon } from "./icons.js";
26
+ export { ShieldQuestionIcon as ShieldQuestionMarkIcon } from "./icons.js";
27
+ export { CheckSquareIcon as SquareCheckIcon } from "./icons.js";
28
+ export { SearchIcon as SearchCodeIcon } from "./icons.js";
29
+ export { BarChartIcon as BarChart3Icon } from "./icons.js";
30
+ export { LineChartIcon as ChartLineIcon } from "./icons.js";
31
+ export { PieChartIcon as ChartPieIcon } from "./icons.js";
32
+ export { BarChartIcon as ChartColumnIcon } from "./icons.js";
@@ -0,0 +1,34 @@
1
+ // GERADO por scripts/gen-icons.mjs. Nomes alternativos (alias) dos icones do catalogo. Nao edite aqui.
2
+ // @deprecated Camada de compatibilidade da 0.1.x/0.2.x: use os nomes de ./icons (ou <LoccalIcon name />). A remocao exige major.
3
+ export * from "./icons.js";
4
+ export { LoaderIcon as Loader2Icon } from "./icons.js";
5
+ export { LoaderIcon as LoaderCircleIcon } from "./icons.js";
6
+ export { AlertTriangleIcon as TriangleAlertIcon } from "./icons.js";
7
+ export { CheckCircleIcon as CircleCheckIcon } from "./icons.js";
8
+ export { CheckCircleIcon as CircleCheckBigIcon } from "./icons.js";
9
+ export { AlertCircleIcon as CircleAlertIcon } from "./icons.js";
10
+ export { XCircleIcon as CircleXIcon } from "./icons.js";
11
+ export { HelpCircleIcon as CircleHelpIcon } from "./icons.js";
12
+ export { PlusCircleIcon as CirclePlusIcon } from "./icons.js";
13
+ export { MinusCircleIcon as CircleMinusIcon } from "./icons.js";
14
+ export { TrashIcon as Trash2Icon } from "./icons.js";
15
+ export { RefreshIcon as RefreshCwIcon } from "./icons.js";
16
+ export { RefreshIcon as RotateCwIcon } from "./icons.js";
17
+ export { SplitHorizontalIcon as RowsIcon } from "./icons.js";
18
+ export { SplitHorizontalIcon as Rows2Icon } from "./icons.js";
19
+ export { SplitVerticalIcon as Columns2Icon } from "./icons.js";
20
+ export { SplitVerticalIcon as ColumnsIcon } from "./icons.js";
21
+ export { XOctagonIcon as OctagonXIcon } from "./icons.js";
22
+ export { TerminalSquareIcon as SquareTerminalIcon } from "./icons.js";
23
+ export { MoreHorizontalIcon as EllipsisIcon } from "./icons.js";
24
+ export { MoreVerticalIcon as EllipsisVerticalIcon } from "./icons.js";
25
+ export { PencilIcon as EditIcon } from "./icons.js";
26
+ export { PencilIcon as PenIcon } from "./icons.js";
27
+ export { GripIcon as GripVerticalIcon } from "./icons.js";
28
+ export { ShieldQuestionIcon as ShieldQuestionMarkIcon } from "./icons.js";
29
+ export { CheckSquareIcon as SquareCheckIcon } from "./icons.js";
30
+ export { SearchIcon as SearchCodeIcon } from "./icons.js";
31
+ export { BarChartIcon as BarChart3Icon } from "./icons.js";
32
+ export { LineChartIcon as ChartLineIcon } from "./icons.js";
33
+ export { PieChartIcon as ChartPieIcon } from "./icons.js";
34
+ export { BarChartIcon as ChartColumnIcon } from "./icons.js";