@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.
- package/CHANGELOG.md +13 -0
- package/LICENSE +21 -0
- package/README.md +38 -3
- package/dist/components/ui/accordion.d.ts +6 -0
- package/dist/components/ui/accordion.js +17 -0
- package/dist/components/ui/ai-panel.d.ts +47 -0
- package/dist/components/ui/ai-panel.js +74 -0
- package/dist/components/ui/alert-dialog.d.ts +18 -0
- package/dist/components/ui/alert-dialog.js +42 -0
- package/dist/components/ui/alert.d.ts +10 -0
- package/dist/components/ui/alert.js +27 -0
- package/dist/components/ui/avatar.d.ts +11 -0
- package/dist/components/ui/avatar.js +23 -0
- package/dist/components/ui/badge.d.ts +7 -0
- package/dist/components/ui/badge.js +36 -0
- package/dist/components/ui/breadcrumb.d.ts +10 -0
- package/dist/components/ui/breadcrumb.js +36 -0
- package/dist/components/ui/button-group.d.ts +10 -0
- package/dist/components/ui/button-group.js +36 -0
- package/dist/components/ui/button.d.ts +8 -0
- package/dist/components/ui/button.js +34 -0
- package/dist/components/ui/calendar.d.ts +10 -0
- package/dist/components/ui/calendar.js +76 -0
- package/dist/components/ui/card.d.ts +11 -0
- package/dist/components/ui/card.js +24 -0
- package/dist/components/ui/chart.d.ts +44 -0
- package/dist/components/ui/chart.js +132 -0
- package/dist/components/ui/checkbox.d.ts +3 -0
- package/dist/components/ui/checkbox.js +9 -0
- package/dist/components/ui/collapsible.d.ts +5 -0
- package/dist/components/ui/collapsible.js +13 -0
- package/dist/components/ui/command-block.d.ts +28 -0
- package/dist/components/ui/command-block.js +58 -0
- package/dist/components/ui/command.d.ts +19 -0
- package/dist/components/ui/command.js +35 -0
- package/dist/components/ui/connection-status.d.ts +29 -0
- package/dist/components/ui/connection-status.js +26 -0
- package/dist/components/ui/context-menu.d.ts +29 -0
- package/dist/components/ui/context-menu.js +51 -0
- package/dist/components/ui/data-table.d.ts +49 -0
- package/dist/components/ui/data-table.js +100 -0
- package/dist/components/ui/dialog.d.ts +18 -0
- package/dist/components/ui/dialog.js +37 -0
- package/dist/components/ui/drawer.d.ts +16 -0
- package/dist/components/ui/drawer.js +75 -0
- package/dist/components/ui/dropdown-menu.d.ts +29 -0
- package/dist/components/ui/dropdown-menu.js +51 -0
- package/dist/components/ui/dropzone.d.ts +11 -0
- package/dist/components/ui/dropzone.js +39 -0
- package/dist/components/ui/empty.d.ts +11 -0
- package/dist/components/ui/empty.js +33 -0
- package/dist/components/ui/field.d.ts +24 -0
- package/dist/components/ui/field.js +68 -0
- package/dist/components/ui/file-tree.d.ts +42 -0
- package/dist/components/ui/file-tree.js +85 -0
- package/dist/components/ui/hash-chain.d.ts +43 -0
- package/dist/components/ui/hash-chain.js +34 -0
- package/dist/components/ui/history-palette.d.ts +37 -0
- package/dist/components/ui/history-palette.js +44 -0
- package/dist/components/ui/hover-card.d.ts +5 -0
- package/dist/components/ui/hover-card.js +14 -0
- package/dist/components/ui/icon-base.d.ts +15 -0
- package/dist/components/ui/icon-base.js +18 -0
- package/dist/components/ui/icon.d.ts +15 -0
- package/dist/components/ui/icon.js +32 -0
- package/dist/components/ui/icons-compat.d.ts +32 -0
- package/dist/components/ui/icons-compat.js +34 -0
- package/dist/components/ui/icons.d.ts +1048 -0
- package/dist/components/ui/icons.js +264 -0
- package/dist/components/ui/input-group.d.ts +18 -0
- package/dist/components/ui/input-group.js +57 -0
- package/dist/components/ui/input-otp.d.ts +11 -0
- package/dist/components/ui/input-otp.js +21 -0
- package/dist/components/ui/input.d.ts +3 -0
- package/dist/components/ui/input.js +7 -0
- package/dist/components/ui/kbd.d.ts +3 -0
- package/dist/components/ui/kbd.js +9 -0
- package/dist/components/ui/label.d.ts +3 -0
- package/dist/components/ui/label.js +7 -0
- package/dist/components/ui/locale-switch.d.ts +9 -0
- package/dist/components/ui/locale-switch.js +31 -0
- package/dist/components/ui/log-panel.d.ts +28 -0
- package/dist/components/ui/log-panel.js +59 -0
- package/dist/components/ui/menubar.d.ts +29 -0
- package/dist/components/ui/menubar.js +56 -0
- package/dist/components/ui/metric-grid.d.ts +20 -0
- package/dist/components/ui/metric-grid.js +14 -0
- package/dist/components/ui/model-list.d.ts +33 -0
- package/dist/components/ui/model-list.js +69 -0
- package/dist/components/ui/navigation-menu.d.ts +11 -0
- package/dist/components/ui/navigation-menu.js +31 -0
- package/dist/components/ui/number-field.d.ts +29 -0
- package/dist/components/ui/number-field.js +65 -0
- package/dist/components/ui/pagination.d.ts +17 -0
- package/dist/components/ui/pagination.js +26 -0
- package/dist/components/ui/pane-tree.d.ts +18 -0
- package/dist/components/ui/pane-tree.js +65 -0
- package/dist/components/ui/popover.d.ts +9 -0
- package/dist/components/ui/popover.js +23 -0
- package/dist/components/ui/progress.d.ts +7 -0
- package/dist/components/ui/progress.js +20 -0
- package/dist/components/ui/radio-group.d.ts +5 -0
- package/dist/components/ui/radio-group.js +12 -0
- package/dist/components/ui/resizable.d.ts +7 -0
- package/dist/components/ui/resizable.js +14 -0
- package/dist/components/ui/scroll-area.d.ts +5 -0
- package/dist/components/ui/scroll-area.js +11 -0
- package/dist/components/ui/select.d.ts +15 -0
- package/dist/components/ui/select.js +34 -0
- package/dist/components/ui/separator.d.ts +3 -0
- package/dist/components/ui/separator.js +8 -0
- package/dist/components/ui/settings-layout.d.ts +31 -0
- package/dist/components/ui/settings-layout.js +45 -0
- package/dist/components/ui/sheet.d.ts +14 -0
- package/dist/components/ui/sheet.js +37 -0
- package/dist/components/ui/shell-picker.d.ts +18 -0
- package/dist/components/ui/shell-picker.js +17 -0
- package/dist/components/ui/skeleton.d.ts +2 -0
- package/dist/components/ui/skeleton.js +6 -0
- package/dist/components/ui/slider.d.ts +3 -0
- package/dist/components/ui/slider.js +12 -0
- package/dist/components/ui/sonner.d.ts +3 -0
- package/dist/components/ui/sonner.js +25 -0
- package/dist/components/ui/spinner.d.ts +2 -0
- package/dist/components/ui/spinner.js +7 -0
- package/dist/components/ui/split-button.d.ts +21 -0
- package/dist/components/ui/split-button.js +14 -0
- package/dist/components/ui/stat.d.ts +10 -0
- package/dist/components/ui/stat.js +8 -0
- package/dist/components/ui/status-bar.d.ts +13 -0
- package/dist/components/ui/status-bar.js +15 -0
- package/dist/components/ui/stepper.d.ts +13 -0
- package/dist/components/ui/stepper.js +11 -0
- package/dist/components/ui/switch.d.ts +5 -0
- package/dist/components/ui/switch.js +8 -0
- package/dist/components/ui/table.d.ts +10 -0
- package/dist/components/ui/table.js +28 -0
- package/dist/components/ui/tabs.d.ts +10 -0
- package/dist/components/ui/tabs.js +29 -0
- package/dist/components/ui/terminal-tabs.d.ts +31 -0
- package/dist/components/ui/terminal-tabs.js +109 -0
- package/dist/components/ui/terminal-view.d.ts +51 -0
- package/dist/components/ui/terminal-view.js +189 -0
- package/dist/components/ui/textarea.d.ts +3 -0
- package/dist/components/ui/textarea.js +6 -0
- package/dist/components/ui/timeline.d.ts +9 -0
- package/dist/components/ui/timeline.js +18 -0
- package/dist/components/ui/toggle-group.d.ts +11 -0
- package/dist/components/ui/toggle-group.js +24 -0
- package/dist/components/ui/toggle.d.ts +8 -0
- package/dist/components/ui/toggle.js +26 -0
- package/dist/components/ui/tooltip.d.ts +6 -0
- package/dist/components/ui/tooltip.js +17 -0
- package/dist/components/ui/tree-view.d.ts +20 -0
- package/dist/components/ui/tree-view.js +41 -0
- package/dist/components/ui/window-frame.d.ts +35 -0
- package/dist/components/ui/window-frame.js +49 -0
- package/dist/lib/ai-markdown.d.ts +13 -0
- package/dist/lib/ai-markdown.js +46 -0
- package/dist/lib/command-risk.d.ts +6 -0
- package/dist/lib/command-risk.js +42 -0
- package/dist/lib/file-kind.d.ts +10 -0
- package/dist/lib/file-kind.js +63 -0
- package/dist/lib/format.d.ts +9 -0
- package/dist/lib/format.js +30 -0
- package/dist/lib/i18n-core.d.ts +20 -0
- package/dist/lib/i18n-core.js +36 -0
- package/dist/lib/i18n.d.ts +15 -0
- package/dist/lib/i18n.js +68 -0
- package/dist/lib/icon-data.d.ts +276 -0
- package/dist/lib/icon-data.js +307 -0
- package/dist/lib/icon-shapes.d.ts +14 -0
- package/dist/lib/icon-shapes.js +47 -0
- package/dist/lib/log-filter.d.ts +23 -0
- package/dist/lib/log-filter.js +44 -0
- package/dist/lib/number-field.d.ts +11 -0
- package/dist/lib/number-field.js +30 -0
- package/dist/lib/pane-tree.d.ts +39 -0
- package/dist/lib/pane-tree.js +92 -0
- package/dist/lib/platform.d.ts +10 -0
- package/dist/lib/platform.js +24 -0
- package/dist/lib/shell-meta.d.ts +7 -0
- package/dist/lib/shell-meta.js +70 -0
- package/dist/lib/tab-order.d.ts +6 -0
- package/dist/lib/tab-order.js +24 -0
- package/dist/lib/table-sort.d.ts +16 -0
- package/dist/lib/table-sort.js +66 -0
- package/dist/lib/terminal-themes.d.ts +30 -0
- package/dist/lib/terminal-themes.js +90 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/lib/utils.js +5 -0
- package/dist-cdn/loccal-ui.css +971 -0
- package/dist-cdn/loccal-ui.min.js +1 -0
- package/dist-wc/base.d.ts +31 -0
- package/dist-wc/base.js +104 -0
- package/dist-wc/button.d.ts +12 -0
- package/dist-wc/button.js +47 -0
- package/dist-wc/calendar.d.ts +16 -0
- package/dist-wc/calendar.js +106 -0
- package/dist-wc/choice.d.ts +17 -0
- package/dist-wc/choice.js +76 -0
- package/dist-wc/command.d.ts +32 -0
- package/dist-wc/command.js +181 -0
- package/dist-wc/data-table.d.ts +22 -0
- package/dist-wc/data-table.js +128 -0
- package/dist-wc/dialog.d.ts +29 -0
- package/dist-wc/dialog.js +94 -0
- package/dist-wc/disclosure.d.ts +17 -0
- package/dist-wc/disclosure.js +91 -0
- package/dist-wc/fields2.d.ts +38 -0
- package/dist-wc/fields2.js +133 -0
- package/dist-wc/file-tree.d.ts +19 -0
- package/dist-wc/file-tree.js +97 -0
- package/dist-wc/floating.d.ts +32 -0
- package/dist-wc/floating.js +91 -0
- package/dist-wc/index.d.ts +23 -0
- package/dist-wc/index.js +24 -0
- package/dist-wc/input-otp.d.ts +14 -0
- package/dist-wc/input-otp.js +82 -0
- package/dist-wc/navigation-menu.d.ts +14 -0
- package/dist-wc/navigation-menu.js +75 -0
- package/dist-wc/number-field.d.ts +13 -0
- package/dist-wc/number-field.js +67 -0
- package/dist-wc/resizable.d.ts +14 -0
- package/dist-wc/resizable.js +57 -0
- package/dist-wc/select.d.ts +17 -0
- package/dist-wc/select.js +80 -0
- package/dist-wc/static.d.ts +1 -0
- package/dist-wc/static.js +175 -0
- package/dist-wc/status-bar.d.ts +11 -0
- package/dist-wc/status-bar.js +54 -0
- package/dist-wc/styles.css +971 -0
- package/dist-wc/tabs.d.ts +16 -0
- package/dist-wc/tabs.js +62 -0
- package/dist-wc/terminal-tabs.d.ts +16 -0
- package/dist-wc/terminal-tabs.js +79 -0
- package/dist-wc/toaster.d.ts +16 -0
- package/dist-wc/toaster.js +68 -0
- package/dist-wc/toggle.d.ts +30 -0
- package/dist-wc/toggle.js +101 -0
- package/dist-wc/tree.d.ts +17 -0
- package/dist-wc/tree.js +72 -0
- package/docs/ARQUITETURA-VANILLA.md +54 -0
- package/docs/VERSIONING.md +88 -0
- package/package.json +1058 -6
- package/styles.css +426 -0
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
// Fonte unica da biblioteca de icones loccal. Grade 24x24, traco 1.75, pontas e juncoes redondas, currentColor.
|
|
2
|
+
// Para adicionar um icone: inclua uma linha aqui e rode `npm run icons:gen` (regenera components/ui/icons.tsx).
|
|
3
|
+
// Formato: nome: [categoria, "tags pt/en separadas por espaco", ...formas]. Gramatica das formas em ./icon-shapes.ts.
|
|
4
|
+
export const iconCategories = [
|
|
5
|
+
"terminal",
|
|
6
|
+
"arquivos",
|
|
7
|
+
"git",
|
|
8
|
+
"ia",
|
|
9
|
+
"janela",
|
|
10
|
+
"setas",
|
|
11
|
+
"status",
|
|
12
|
+
"editor",
|
|
13
|
+
"rede",
|
|
14
|
+
"seguranca",
|
|
15
|
+
"interface",
|
|
16
|
+
"midia",
|
|
17
|
+
"dispositivos",
|
|
18
|
+
"dados",
|
|
19
|
+
];
|
|
20
|
+
export const iconData = {
|
|
21
|
+
// ---------------------------------------------------------------- setas
|
|
22
|
+
"arrow-up": ["setas", "seta cima up", "M12 19V5", "M6 11l6-6 6 6"],
|
|
23
|
+
"arrow-down": ["setas", "seta baixo down", "M12 5v14", "M6 13l6 6 6-6"],
|
|
24
|
+
"arrow-left": ["setas", "seta esquerda left voltar back", "M19 12H5", "M11 6l-6 6 6 6"],
|
|
25
|
+
"arrow-right": ["setas", "seta direita right avancar next", "M5 12h14", "M13 6l6 6-6 6"],
|
|
26
|
+
"arrow-up-right": ["setas", "seta diagonal cima direita", "M7 17L17 7", "M8 7h9v9"],
|
|
27
|
+
"arrow-up-left": ["setas", "seta diagonal cima esquerda", "M17 17L7 7", "M16 7H7v9"],
|
|
28
|
+
"arrow-down-right": ["setas", "seta diagonal baixo direita", "M7 7l10 10", "M17 8v9H8"],
|
|
29
|
+
"arrow-down-left": ["setas", "seta diagonal baixo esquerda", "M17 7L7 17", "M8 8v9h9"],
|
|
30
|
+
"arrow-up-down": ["setas", "seta vertical ordenar swap", "M8 4v16", "M4 8l4-4 4 4", "M16 20V4", "M12 16l4 4 4-4"],
|
|
31
|
+
"arrow-left-right": ["setas", "seta horizontal trocar swap", "M4 8h16", "M16 4l4 4-4 4", "M20 16H4", "M8 12l-4 4 4 4"],
|
|
32
|
+
"chevron-up": ["setas", "chevron cima up recolher", "M6 15l6-6 6 6"],
|
|
33
|
+
"chevron-down": ["setas", "chevron baixo down expandir", "M6 9l6 6 6-6"],
|
|
34
|
+
"chevron-left": ["setas", "chevron esquerda left", "M15 6l-6 6 6 6"],
|
|
35
|
+
"chevron-right": ["setas", "chevron direita right", "M9 6l6 6-6 6"],
|
|
36
|
+
"chevrons-up": ["setas", "chevrons duplo cima", "M7 12l5-5 5 5", "M7 18l5-5 5 5"],
|
|
37
|
+
"chevrons-down": ["setas", "chevrons duplo baixo", "M7 6l5 5 5-5", "M7 12l5 5 5-5"],
|
|
38
|
+
"chevrons-up-down": ["setas", "chevrons seletor select combobox", "M8 9l4-4 4 4", "M8 15l4 4 4-4"],
|
|
39
|
+
"chevrons-left-right": ["setas", "chevrons horizontal", "M9 8l-4 4 4 4", "M15 8l4 4-4 4"],
|
|
40
|
+
"corner-down-left": ["setas", "enter retorno return", "M19 5v6a3 3 0 0 1-3 3H5", "M9 10l-4 4 4 4"],
|
|
41
|
+
"corner-down-right": ["setas", "canto baixo direita", "M5 5v6a3 3 0 0 0 3 3h11", "M15 10l4 4-4 4"],
|
|
42
|
+
"undo": ["setas", "desfazer undo", "M9 14L4 9l5-5", "M4 9h10a6 6 0 0 1 0 12h-3"],
|
|
43
|
+
"redo": ["setas", "refazer redo", "M15 14l5-5-5-5", "M20 9H10a6 6 0 0 0 0 12h3"],
|
|
44
|
+
"refresh": ["setas", "atualizar recarregar refresh reload sync", "M20 12a8 8 0 0 1-14 5.3", "M4 12a8 8 0 0 1 14-5.3", "M18 3v4h-4", "M6 21v-4h4"],
|
|
45
|
+
"repeat": ["setas", "repetir loop", "M4 11V9a3 3 0 0 1 3-3h13", "M17 3l3 3-3 3", "M20 13v2a3 3 0 0 1-3 3H4", "M7 21l-3-3 3-3"],
|
|
46
|
+
"move": ["setas", "mover arrastar move drag", "M12 3v18", "M3 12h18", "M9 6l3-3 3 3", "M9 18l3 3 3-3", "M6 9l-3 3 3 3", "M18 9l3 3-3 3"],
|
|
47
|
+
"expand": ["setas", "expandir tela cheia fullscreen", "M4 9V4h5", "M20 9V4h-5", "M4 15v5h5", "M20 15v5h-5"],
|
|
48
|
+
"shrink": ["setas", "reduzir sair tela cheia", "M9 4v5H4", "M15 4v5h5", "M9 20v-5H4", "M15 20v-5h5"],
|
|
49
|
+
"external-link": ["setas", "link externo abrir external open", "M14 4h6v6", "M20 4l-9 9", "M18 14v4a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4"],
|
|
50
|
+
"log-in": ["setas", "entrar login", "M10 17l5-5-5-5", "M15 12H3", "M15 4h4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-4"],
|
|
51
|
+
"log-out": ["setas", "sair logout", "M14 7l5 5-5 5", "M19 12H8", "M9 4H5a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h4"],
|
|
52
|
+
"trending-up": ["setas", "tendencia alta crescimento trending", "M3 17l6-6 4 4 8-8", "M15 7h6v6"],
|
|
53
|
+
"trending-down": ["setas", "tendencia queda trending", "M3 7l6 6 4-4 8 8", "M15 17h6v-6"],
|
|
54
|
+
// --------------------------------------------------------------- status
|
|
55
|
+
"check": ["status", "ok confirmar check certo", "M5 12.5l4.5 4.5L19 7"],
|
|
56
|
+
"check-check": ["status", "duplo check lido", "M2 13l4 4L14 8", "M10 16l2 2 10-11"],
|
|
57
|
+
"check-circle": ["status", "sucesso ok concluido circulo", "c 12 12 9", "M8 12.5l3 3 5-6"],
|
|
58
|
+
"x": ["status", "fechar close cancelar remover", "M6 6l12 12", "M18 6L6 18"],
|
|
59
|
+
"x-circle": ["status", "erro falha circulo", "c 12 12 9", "M9 9l6 6", "M15 9l-6 6"],
|
|
60
|
+
"x-octagon": ["status", "bloqueado erro critico octogono", "M8.5 3h7L21 8.5v7L15.5 21h-7L3 15.5v-7z", "M9 9l6 6", "M15 9l-6 6"],
|
|
61
|
+
"alert-triangle": ["status", "aviso warning perigo atencao triangulo", "M10.3 4.5L2.8 18a2 2 0 0 0 1.7 3h15a2 2 0 0 0 1.7-3L13.7 4.5a2 2 0 0 0-3.4 0z", "M12 9.5v4", "M12 17.5h.01"],
|
|
62
|
+
"alert-circle": ["status", "aviso alerta circulo", "c 12 12 9", "M12 7.5v5", "M12 16.5h.01"],
|
|
63
|
+
"info": ["status", "informacao info", "c 12 12 9", "M12 11v5", "M12 7.5h.01"],
|
|
64
|
+
"help-circle": ["status", "ajuda duvida help question", "c 12 12 9", "M9.5 9.5a2.5 2.5 0 1 1 3.5 2.3c-.7.4-1 .9-1 1.7", "M12 17h.01"],
|
|
65
|
+
"plus-circle": ["status", "adicionar circulo add", "c 12 12 9", "M12 8v8", "M8 12h8"],
|
|
66
|
+
"minus-circle": ["status", "remover circulo subtrair", "c 12 12 9", "M8 12h8"],
|
|
67
|
+
"ban": ["status", "proibido bloqueado ban", "c 12 12 9", "M5.6 5.6l12.8 12.8"],
|
|
68
|
+
"loader": ["status", "carregando spinner loading aguarde", "M12 3a9 9 0 1 0 9 9"],
|
|
69
|
+
"clock": ["status", "relogio hora tempo clock", "c 12 12 9", "M12 7v5l3 2"],
|
|
70
|
+
"timer": ["status", "cronometro timer", "c 12 13 8", "M12 9v4l2 1", "M9 2h6"],
|
|
71
|
+
"bell": ["status", "notificacao sino bell", "M6 16v-5a6 6 0 0 1 12 0v5l1.5 2h-15z", "M10 21h4"],
|
|
72
|
+
"bell-off": ["status", "silenciar notificacao mute", "M6 16v-5a6 6 0 0 1 .5-2.4", "M9.5 5.2A6 6 0 0 1 18 11v5l1.5 2H8", "M10 21h4", "M4 4l16 16"],
|
|
73
|
+
"circle": ["status", "circulo vazio", "c 12 12 9"],
|
|
74
|
+
"circle-dot": ["status", "circulo ponto radio selecionado", "c 12 12 9", "c 12 12 3"],
|
|
75
|
+
"dot": ["status", "ponto indicador", "c 12 12 2.5"],
|
|
76
|
+
"square": ["status", "quadrado", "r 4 4 16 16 2"],
|
|
77
|
+
"stop": ["status", "parar stop quadrado cheio", "r 6 6 12 12 1.5"],
|
|
78
|
+
"star": ["status", "estrela favorito", "M12 3.5l2.6 5.5 6 .8-4.4 4.2 1.1 6-5.3-2.9-5.3 2.9 1.1-6L3.4 9.8l6-.8z"],
|
|
79
|
+
"heart": ["status", "coracao curtir", "M12 20s-8-4.9-8-10.5A4.5 4.5 0 0 1 12 7a4.5 4.5 0 0 1 8 2.5C20 15.1 12 20 12 20z"],
|
|
80
|
+
"flag": ["status", "bandeira marcador", "M5 21V4", "M5 4h11l-2 4 2 4H5"],
|
|
81
|
+
"bookmark": ["status", "marcador favorito salvar", "M7 4h10v17l-5-4-5 4z"],
|
|
82
|
+
"pin": ["status", "fixar alfinete pin", "M12 17v5", "M8 4h8l-1 6 3 3v2H6v-2l3-3z"],
|
|
83
|
+
"eye": ["status", "ver visivel mostrar show", "M2.5 12S6 5.5 12 5.5 21.5 12 21.5 12 18 18.5 12 18.5 2.5 12 2.5 12z", "c 12 12 3"],
|
|
84
|
+
"eye-off": ["status", "ocultar esconder hide", "M2.5 12S6 5.5 12 5.5c1.6 0 3 .4 4.2 1", "M21.5 12S18 18.5 12 18.5c-1.6 0-3-.4-4.2-1", "M10 10a3 3 0 0 0 4 4", "M4 4l16 16"],
|
|
85
|
+
"zap": ["status", "raio energia rapido zap", "M13 3L5 13.5h6L10 21l8-10.5h-6z"],
|
|
86
|
+
"activity": ["status", "atividade pulso batimento telemetria", "M3 12h4l3-8 4 16 3-8h4"],
|
|
87
|
+
"gauge": ["status", "medidor velocimetro desempenho", "M4.5 18a9 9 0 1 1 15 0", "M12 14l4-5"],
|
|
88
|
+
"flame": ["status", "fogo quente chama hot", "M12 21c-4 0-6-2.5-6-5.5 0-3 2.5-4.5 3-8 2 1 3 2.5 3.5 4 1-1 1.5-2.5 1.5-4 2.5 2 4 5 4 8 0 3-2 5.5-6 5.5z"],
|
|
89
|
+
"power": ["status", "ligar desligar power", "M12 3v9", "M6.3 6.3a8 8 0 1 0 11.4 0"],
|
|
90
|
+
// ------------------------------------------------------------- terminal
|
|
91
|
+
"terminal": ["terminal", "terminal console shell prompt", "r 3 4 18 16 2", "M7 9l3 3-3 3", "M13 15h4"],
|
|
92
|
+
"prompt": ["terminal", "prompt chevron linha de comando", "M4 17l6-6-6-6", "M12 19h8"],
|
|
93
|
+
"shell": ["terminal", "shell bash pwsh zsh", "M5 8l5 4-5 4", "M12 17h7"],
|
|
94
|
+
"terminal-square": ["terminal", "janela de terminal sessao", "r 3 4 18 16 2", "M3 9h18", "M7 13l2 2-2 2", "M12 17h4"],
|
|
95
|
+
"command": ["terminal", "comando cmd tecla atalho command", "M9 9h6v6H9z", "M9 9V6a3 3 0 1 0-3 3", "M15 9V6a3 3 0 1 1 3 3", "M9 15v3a3 3 0 1 1-3-3", "M15 15v3a3 3 0 1 0 3-3"],
|
|
96
|
+
"history": ["terminal", "historico recentes history", "M3 12a9 9 0 1 0 3-6.7", "M3 4v4h4", "M12 8v4l3 2"],
|
|
97
|
+
"text-cursor": ["terminal", "cursor texto input", "M8 4h8", "M8 20h8", "M12 4v16"],
|
|
98
|
+
"hash": ["terminal", "hash cerquilha numero tag", "M5 9h15", "M4 15h15", "M10 3L8 21", "M16 3l-2 18"],
|
|
99
|
+
"at-sign": ["terminal", "arroba email at", "c 12 12 4", "M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8"],
|
|
100
|
+
"code": ["terminal", "codigo code desenvolvimento", "M8 7l-5 5 5 5", "M16 7l5 5-5 5"],
|
|
101
|
+
"braces": ["terminal", "chaves json objeto", "M8 4c-2 0-2 2-2 4s0 3-2 4c2 1 2 2 2 4s0 4 2 4", "M16 4c2 0 2 2 2 4s0 3 2 4c-2 1-2 2-2 4s0 4-2 4"],
|
|
102
|
+
"brackets": ["terminal", "colchetes array", "M9 4H5v16h4", "M15 4h4v16h-4"],
|
|
103
|
+
"bug": ["terminal", "bug erro depuracao debug", "M9 8a3 3 0 0 1 6 0v8a3 3 0 0 1-6 0z", "M9 12H4", "M15 12h5", "M9 8L6 5", "M15 8l3-3", "M9 17l-3 3", "M15 17l3 3"],
|
|
104
|
+
"cpu": ["terminal", "processador cpu chip", "r 6 6 12 12 2", "r 10 10 4 4 .5", "M9 3v3", "M15 3v3", "M9 18v3", "M15 18v3", "M3 9h3", "M3 15h3", "M18 9h3", "M18 15h3"],
|
|
105
|
+
"server": ["terminal", "servidor server host", "r 3 4 18 6 2", "r 3 14 18 6 2", "M7 7h.01", "M7 17h.01"],
|
|
106
|
+
"box": ["terminal", "caixa pacote container package modulo", "M3 8l9-5 9 5v8l-9 5-9-5z", "M3 8l9 5 9-5", "M12 13v8"],
|
|
107
|
+
"layers": ["terminal", "camadas layers pilha stack", "M12 3l9 4.5-9 4.5-9-4.5z", "M3 12l9 4.5 9-4.5", "M3 16.5L12 21l9-4.5"],
|
|
108
|
+
"log": ["terminal", "log registro logs saida", "r 4 3 16 18 2", "M8 8h8", "M12 12h4", "M8 12h.01", "M8 16h5"],
|
|
109
|
+
"eraser": ["terminal", "limpar apagar clear borracha", "M5.5 15.5L14 7l4 4-7.5 7.5H8z", "M12 20h8"],
|
|
110
|
+
"wrench": ["terminal", "ferramenta chave manutencao tool", "M14 7a4 4 0 0 1 5-4l-3 3 1 2 2 1 3-3a4 4 0 0 1-5 5L8 20a2 2 0 0 1-3-3z"],
|
|
111
|
+
"play": ["terminal", "executar rodar play run", "M7 4.5v15l12-7.5z"],
|
|
112
|
+
"pause": ["terminal", "pausar pause", "M8 5v14", "M16 5v14"],
|
|
113
|
+
"list-tree": ["terminal", "arvore hierarquia estrutura", "M3 5h4", "M11 5h10", "M7 12h4", "M15 12h6", "M11 19h4", "M19 19h2", "M5 5v14", "M5 12h2", "M5 19h6"],
|
|
114
|
+
"split-vertical": ["terminal", "dividir painel lado a lado colunas columns", "r 3 4 18 16 2", "M12 4v16"],
|
|
115
|
+
"split-horizontal": ["terminal", "dividir painel cima baixo linhas rows", "r 3 4 18 16 2", "M3 12h18"],
|
|
116
|
+
// -------------------------------------------------------------- arquivos
|
|
117
|
+
"file": ["arquivos", "arquivo documento file", "M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z", "M14 3v5h5"],
|
|
118
|
+
"file-text": ["arquivos", "arquivo texto documento", "M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z", "M14 3v5h5", "M9 13h6", "M9 17h6"],
|
|
119
|
+
"file-code": ["arquivos", "arquivo codigo fonte source", "M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z", "M14 3v5h5", "M10 13l-2 2 2 2", "M14 13l2 2-2 2"],
|
|
120
|
+
"file-cog": ["arquivos", "arquivo configuracao config engrenagem", "M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z", "M14 3v5h5", "c 12 15 2", "M12 11.5v1", "M12 17.5v1", "M8.5 15h1", "M14.5 15h1"],
|
|
121
|
+
"binary": ["dados", "binario zeros uns bits 0 1", "M7 4h2a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1z", "M15 5.5l2-1.5V10", "M6 15.5l2-1.5v6", "M15 14h2a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1z"],
|
|
122
|
+
"file-json": ["arquivos", "arquivo json dados", "M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z", "M14 3v5h5", "M10 13c-1 0-1 .5-1 1.5s0 1-1 1.5c1 .5 1 .5 1 1.5s0 1.5 1 1.5", "M14 13c1 0 1 .5 1 1.5s0 1 1 1.5c-1 .5-1 .5-1 1.5s0 1.5-1 1.5"],
|
|
123
|
+
"file-terminal": ["arquivos", "arquivo script shell sh", "M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z", "M14 3v5h5", "M9 13l2 2-2 2", "M13 17h3"],
|
|
124
|
+
"file-image": ["arquivos", "arquivo imagem foto", "M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z", "M14 3v5h5", "M7 19l4-4 3 3 2-2 3 3"],
|
|
125
|
+
"file-archive": ["arquivos", "arquivo compactado zip", "M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z", "M14 3v5h5", "M11 12h2", "M11 15h2", "M11 18h2"],
|
|
126
|
+
"file-plus": ["arquivos", "novo arquivo adicionar", "M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z", "M14 3v5h5", "M12 12v6", "M9 15h6"],
|
|
127
|
+
"file-minus": ["arquivos", "remover arquivo", "M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z", "M14 3v5h5", "M9 15h6"],
|
|
128
|
+
"file-check": ["arquivos", "arquivo verificado ok", "M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z", "M14 3v5h5", "M9 15l2 2 4-4"],
|
|
129
|
+
"file-x": ["arquivos", "arquivo erro invalido", "M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z", "M14 3v5h5", "M10 13l4 4", "M14 13l-4 4"],
|
|
130
|
+
"file-lock": ["arquivos", "arquivo protegido cifrado", "M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z", "M14 3v5h5", "r 9 15 6 4 1", "M10 15v-1a2 2 0 0 1 4 0v1"],
|
|
131
|
+
"folder": ["arquivos", "pasta diretorio folder", "M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"],
|
|
132
|
+
"folder-open": ["arquivos", "pasta aberta open", "M4 19a1 1 0 0 1-1-1V6a2 2 0 0 1 2-2h4l2 2h7a2 2 0 0 1 2 2v2", "M4 19h13.5a2 2 0 0 0 1.9-1.4l1.9-6a1 1 0 0 0-1-1.3H7.6a2 2 0 0 0-1.9 1.4z"],
|
|
133
|
+
"folder-plus": ["arquivos", "nova pasta adicionar", "M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z", "M12 11v6", "M9 14h6"],
|
|
134
|
+
"folder-tree": ["arquivos", "arvore de pastas explorador explorer", "r 3 3 6 5 1", "r 14 10 7 4 1", "r 14 16 7 4 1", "M6 8v10a1 1 0 0 0 1 1h7", "M6 12h8"],
|
|
135
|
+
"home": ["arquivos", "inicio casa home", "M3 11l9-8 9 8", "M5 10v10h5v-6h4v6h5V10"],
|
|
136
|
+
"archive": ["arquivos", "arquivar arquivo morto archive", "r 3 4 18 4 1", "M5 8v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8", "M10 12h4"],
|
|
137
|
+
"download": ["arquivos", "baixar download", "M12 4v11", "M7 11l5 5 5-5", "M5 20h14"],
|
|
138
|
+
"upload": ["arquivos", "enviar upload carregar", "M12 16V5", "M7 9l5-5 5 5", "M5 20h14"],
|
|
139
|
+
"save": ["arquivos", "salvar disquete save", "M5 4h11l3 3v13H5z", "M8 4v5h7V4", "M8 20v-6h8v6"],
|
|
140
|
+
"paperclip": ["arquivos", "anexo clipe attachment", "M20 11l-8 8a5 5 0 0 1-7-7l8.5-8.5a3.3 3.3 0 0 1 4.7 4.7L9.5 16.7a1.7 1.7 0 0 1-2.4-2.4L15 6.5"],
|
|
141
|
+
"link": ["arquivos", "link vinculo url", "M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1", "M14 10a4 4 0 0 0-5.7 0l-3 3A4 4 0 0 0 10 18.7l1-1"],
|
|
142
|
+
"image": ["arquivos", "imagem foto picture", "r 3 4 18 16 2", "c 9 10 1.5", "M21 16l-5-5-9 9"],
|
|
143
|
+
"inbox": ["arquivos", "caixa de entrada inbox", "M3 13l3-8h12l3 8", "M3 13v5a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-5", "M3 13h5l1 3h6l1-3h5"],
|
|
144
|
+
"trash": ["arquivos", "lixeira excluir deletar trash delete", "M4 7h16", "M10 11v6", "M14 11v6", "M6 7l1 13h10l1-13", "M9 7V4h6v3"],
|
|
145
|
+
"copy": ["arquivos", "copiar duplicar copy", "r 9 9 11 11 2", "M5 15a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2"],
|
|
146
|
+
"clipboard": ["arquivos", "area de transferencia colar paste clipboard", "r 5 4 14 17 2", "r 9 2 6 4 1"],
|
|
147
|
+
"clipboard-check": ["arquivos", "clipboard verificado auditoria", "r 5 4 14 17 2", "r 9 2 6 4 1", "M9 14l2 2 4-4"],
|
|
148
|
+
"scissors": ["arquivos", "recortar tesoura cut", "c 6 6 3", "c 6 18 3", "M8.5 8.5L20 20", "M8.5 15.5L20 4"],
|
|
149
|
+
"search": ["arquivos", "buscar pesquisar procurar search find", "c 11 11 7", "M16.5 16.5L21 21"],
|
|
150
|
+
"zoom-in": ["arquivos", "aproximar zoom mais", "c 11 11 7", "M16.5 16.5L21 21", "M11 8v6", "M8 11h6"],
|
|
151
|
+
"zoom-out": ["arquivos", "afastar zoom menos", "c 11 11 7", "M16.5 16.5L21 21", "M8 11h6"],
|
|
152
|
+
"printer": ["arquivos", "imprimir impressora print", "M7 9V4h10v5", "r 4 9 16 8 2", "M7 14h10v6H7z"],
|
|
153
|
+
// ------------------------------------------------------------------ git
|
|
154
|
+
"git-branch": ["git", "ramo branch", "c 6 5 2.5", "c 6 19 2.5", "c 18 8 2.5", "M6 7.5v9", "M18 10.5V11a3 3 0 0 1-3 3H9a3 3 0 0 0-3 3"],
|
|
155
|
+
"git-commit": ["git", "commit confirmar", "c 12 12 3.5", "M3 12h5.5", "M15.5 12H21"],
|
|
156
|
+
"git-merge": ["git", "merge mesclar", "c 6 5 2.5", "c 6 19 2.5", "c 18 12 2.5", "M6 7.5v9", "M15.5 12c-4 0-7-1-8-3.5"],
|
|
157
|
+
"git-pull-request": ["git", "pull request pr", "c 6 5 2.5", "c 6 19 2.5", "c 18 19 2.5", "M6 7.5v9", "M18 16.5V10a3 3 0 0 0-3-3h-3", "M14 4l-3 3 3 3"],
|
|
158
|
+
"git-fork": ["git", "fork bifurcar", "c 6 5 2.5", "c 18 5 2.5", "c 12 19 2.5", "M6 7.5V9a3 3 0 0 0 3 3h6a3 3 0 0 0 3-3V7.5", "M12 12v4.5"],
|
|
159
|
+
"tag": ["git", "etiqueta tag versao release", "M3 12.5v-8a1 1 0 0 1 1-1h8l9 9a1 1 0 0 1 0 1.4l-7.6 7.6a1 1 0 0 1-1.4 0z", "M7.5 8h.01"],
|
|
160
|
+
"diff": ["git", "diferenca diff comparar", "M12 4v10", "M7 9h10", "M7 19h10"],
|
|
161
|
+
"git-compare": ["git", "comparar ramos compare", "c 6 6 2.5", "c 18 18 2.5", "M13 6h3a2 2 0 0 1 2 2v7.5", "M11 18H8a2 2 0 0 1-2-2V8.5"],
|
|
162
|
+
// ------------------------------------------------------------------- ia
|
|
163
|
+
"bot": ["ia", "robo assistente bot agente", "r 4 8 16 12 3", "M12 8V4", "M12 3h.01", "M9 14h.01", "M15 14h.01", "M2 14h2", "M20 14h2"],
|
|
164
|
+
"sparkles": ["ia", "brilho magia ia sparkles", "M12 3l1.8 5.2L19 10l-5.2 1.8L12 17l-1.8-5.2L5 10l5.2-1.8z", "M19 16v4", "M17 18h4"],
|
|
165
|
+
"brain": ["ia", "cerebro modelo brain", "M9 4a3 3 0 0 0-3 3 3 3 0 0 0-2 5 3 3 0 0 0 2 5 3 3 0 0 0 6 1V5a2 2 0 0 0-3-1z", "M15 4a3 3 0 0 1 3 3 3 3 0 0 1 2 5 3 3 0 0 1-2 5 3 3 0 0 1-6 1V5a2 2 0 0 1 3-1z"],
|
|
166
|
+
"wand": ["ia", "varinha magica sugestao wand", "M5 19L16 8", "M14 6l4 4", "M18 3v2", "M17 4h2"],
|
|
167
|
+
"message-square": ["ia", "mensagem chat conversa", "M4 5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1H9l-5 4z"],
|
|
168
|
+
"message-circle": ["ia", "mensagem balao conversa", "M4 20l1.4-4.2A8.5 8.5 0 1 1 8.2 18.6z"],
|
|
169
|
+
"send": ["ia", "enviar send aviao de papel", "M21 3L10 14", "M21 3l-7 18-4-7-7-4z"],
|
|
170
|
+
"lightbulb": ["ia", "ideia dica lampada tip", "M9 18h6", "M10 21h4", "M8.5 14.5a6 6 0 1 1 7 0c-.9.8-1.5 1.7-1.5 3h-4c0-1.3-.6-2.2-1.5-3z"],
|
|
171
|
+
"target": ["ia", "alvo objetivo target", "c 12 12 9", "c 12 12 5", "c 12 12 1"],
|
|
172
|
+
"workflow": ["ia", "fluxo de trabalho pipeline automacao", "r 3 3 6 6 1", "r 15 15 6 6 1", "M6 9v3a3 3 0 0 0 3 3h6"],
|
|
173
|
+
"stop-circle": ["ia", "parar geracao interromper", "c 12 12 9", "r 9 9 6 6 1"],
|
|
174
|
+
"rocket": ["ia", "foguete lancar deploy", "M9 15l-3-3C7 7 10 3.5 18 3c-.5 8-4 11-9 12z", "M6 15c-1.7 1-2.5 3-2.5 5.5 2.5 0 4.5-.8 5.5-2.5", "M14.5 9.5h.01"],
|
|
175
|
+
// --------------------------------------------------------------- janela
|
|
176
|
+
"window": ["janela", "janela window app", "r 3 4 18 16 2", "M3 9h18"],
|
|
177
|
+
"window-minimize": ["janela", "minimizar janela", "M5 12h14"],
|
|
178
|
+
"window-maximize": ["janela", "maximizar janela", "r 5 5 14 14 1.5"],
|
|
179
|
+
"window-restore": ["janela", "restaurar janela", "r 4 8 12 12 1.5", "M8 8V5.5A1.5 1.5 0 0 1 9.5 4h9A1.5 1.5 0 0 1 20 5.5v9a1.5 1.5 0 0 1-1.5 1.5H16"],
|
|
180
|
+
"window-close": ["janela", "fechar janela", "M6 6l12 12", "M18 6L6 18"],
|
|
181
|
+
"panel-left": ["janela", "painel lateral esquerdo sidebar", "r 3 4 18 16 2", "M9 4v16"],
|
|
182
|
+
"panel-right": ["janela", "painel lateral direito", "r 3 4 18 16 2", "M15 4v16"],
|
|
183
|
+
"panel-bottom": ["janela", "painel inferior", "r 3 4 18 16 2", "M3 15h18"],
|
|
184
|
+
"layout-grid": ["janela", "grade grid blocos", "r 3 3 7 7 1", "r 14 3 7 7 1", "r 3 14 7 7 1", "r 14 14 7 7 1"],
|
|
185
|
+
"layout-dashboard": ["janela", "painel dashboard", "r 3 3 8 10 1", "r 13 3 8 6 1", "r 13 11 8 10 1", "r 3 15 8 6 1"],
|
|
186
|
+
"pip": ["janela", "picture in picture flutuante", "r 3 5 18 14 2", "r 12 12 7 5 1"],
|
|
187
|
+
"tab": ["janela", "aba tab", "M3 20V6a1 1 0 0 1 1-1h6l1.5 3H20a1 1 0 0 1 1 1v11z"],
|
|
188
|
+
"plus": ["janela", "adicionar mais novo add", "M12 5v14", "M5 12h14"],
|
|
189
|
+
"minus": ["janela", "remover menos subtrair", "M5 12h14"],
|
|
190
|
+
"menu": ["janela", "menu hamburguer", "M4 6h16", "M4 12h16", "M4 18h16"],
|
|
191
|
+
"more-horizontal": ["janela", "mais opcoes reticencias", "c 5 12 1", "c 12 12 1", "c 19 12 1"],
|
|
192
|
+
"more-vertical": ["janela", "mais opcoes vertical", "c 12 5 1", "c 12 12 1", "c 12 19 1"],
|
|
193
|
+
"grip": ["janela", "alca arrastar grip handle", "c 9 6 1", "c 15 6 1", "c 9 12 1", "c 15 12 1", "c 9 18 1", "c 15 18 1"],
|
|
194
|
+
"settings": ["janela", "configuracoes engrenagem settings gear", "c 12 12 3", "c 12 12 7.5", "M12 4.5V2", "M12 19.5V22", "M4.5 12H2", "M19.5 12H22", "M17.3 6.7l1.8-1.8", "M6.7 6.7L4.9 4.9", "M17.3 17.3l1.8 1.8", "M6.7 17.3l-1.8 1.8"],
|
|
195
|
+
"sliders": ["janela", "ajustes preferencias controles sliders", "M4 7h10", "M18 7h2", "M4 17h2", "M10 17h10", "c 16 7 2", "c 8 17 2"],
|
|
196
|
+
"sun": ["janela", "claro tema sol light", "c 12 12 4", "M12 2v2", "M12 20v2", "M2 12h2", "M20 12h2", "M4.9 4.9l1.4 1.4", "M17.7 17.7l1.4 1.4", "M4.9 19.1l1.4-1.4", "M17.7 6.3l1.4-1.4"],
|
|
197
|
+
"moon": ["janela", "escuro tema lua dark", "M20 14.5A8 8 0 1 1 9.5 4a6.5 6.5 0 0 0 10.5 10.5z"],
|
|
198
|
+
"monitor": ["janela", "monitor tela sistema desktop", "r 3 4 18 12 2", "M8 20h8", "M12 16v4"],
|
|
199
|
+
"palette": ["janela", "paleta cores tema palette", "M12 3a9 9 0 1 0 0 18c1.4 0 2-.9 2-1.8 0-1.2-1-1.4-1-2.5 0-1 .8-1.7 2-1.7h2A4 4 0 0 0 21 11a9 9 0 0 0-9-8z", "M7.5 11h.01", "M11 7h.01", "M16 8.5h.01"],
|
|
200
|
+
"keyboard": ["janela", "teclado atalhos keyboard", "r 2 6 20 12 2", "M6 10h.01", "M10 10h.01", "M14 10h.01", "M18 10h.01", "M7 14h10"],
|
|
201
|
+
"mouse-pointer": ["janela", "cursor ponteiro mouse", "M5 3l14 7-6 2-2 6z"],
|
|
202
|
+
// ----------------------------------------------------------------- rede
|
|
203
|
+
"wifi": ["rede", "wifi sem fio conexao", "M2.5 9.5a14 14 0 0 1 19 0", "M5.5 13a9.5 9.5 0 0 1 13 0", "M8.7 16.3a5 5 0 0 1 6.6 0", "M12 20h.01"],
|
|
204
|
+
"wifi-off": ["rede", "wifi desconectado offline", "M5.5 13a9.5 9.5 0 0 1 3-2", "M2.5 9.5a14 14 0 0 1 4-2.6", "M8.7 16.3a5 5 0 0 1 6.6 0", "M12 20h.01", "M4 4l16 16"],
|
|
205
|
+
"globe": ["rede", "globo mundo internet web idioma", "c 12 12 9", "M3 12h18", "M12 3c3 3 3 15 0 18", "M12 3c-3 3-3 15 0 18"],
|
|
206
|
+
"cloud": ["rede", "nuvem cloud", "M7 18a4.5 4.5 0 0 1-.6-9 6 6 0 0 1 11.4 1.5A3.8 3.8 0 0 1 17 18z"],
|
|
207
|
+
"cloud-upload": ["rede", "enviar nuvem upload", "M7 17a4.5 4.5 0 0 1-.6-9 6 6 0 0 1 11.4 1.5A3.8 3.8 0 0 1 17 17", "M12 20v-7", "M9 15l3-3 3 3"],
|
|
208
|
+
"cloud-download": ["rede", "baixar nuvem download", "M7 17a4.5 4.5 0 0 1-.6-9 6 6 0 0 1 11.4 1.5A3.8 3.8 0 0 1 17 17", "M12 12v8", "M9 17l3 3 3-3"],
|
|
209
|
+
"plug": ["rede", "conectar tomada plug", "M9 3v5", "M15 3v5", "M6 8h12v3a6 6 0 0 1-12 0z", "M12 17v4"],
|
|
210
|
+
"radio": ["rede", "radio transmissao sinal broadcast", "c 12 12 2", "M7.8 7.8a6 6 0 0 0 0 8.4", "M16.2 7.8a6 6 0 0 1 0 8.4", "M4.9 4.9a10 10 0 0 0 0 14.2", "M19.1 4.9a10 10 0 0 1 0 14.2"],
|
|
211
|
+
"signal": ["rede", "sinal latencia barras signal", "M4 20v-3", "M9 20v-7", "M14 20V9", "M19 20V4"],
|
|
212
|
+
"router": ["rede", "roteador router gateway", "r 3 14 18 6 2", "M7 17h.01", "M11 17h.01", "M12 14v-3", "M8.5 8.2a5 5 0 0 1 7 0"],
|
|
213
|
+
"share": ["rede", "compartilhar share", "c 18 5 3", "c 6 12 3", "c 18 19 3", "M8.6 10.5l6.8-4", "M8.6 13.5l6.8 4"],
|
|
214
|
+
"network": ["rede", "rede topologia nos network", "r 9 3 6 6 1", "r 3 15 6 6 1", "r 15 15 6 6 1", "M12 9v3", "M6 15v-1.5a1.5 1.5 0 0 1 1.5-1.5h9a1.5 1.5 0 0 1 1.5 1.5V15"],
|
|
215
|
+
"mail": ["rede", "email correio mensagem mail", "r 3 5 18 14 2", "M3 7l9 6 9-6"],
|
|
216
|
+
"qr-code": ["rede", "qr code leitura", "r 3 3 7 7 1", "r 14 3 7 7 1", "r 3 14 7 7 1", "M14 14h3v3", "M21 14v.01", "M14 21h.01", "M21 17v4h-4"],
|
|
217
|
+
"route": ["rede", "rota caminho route", "c 6 19 2", "c 18 5 2", "M8 19h8a3 3 0 0 0 0-6H8a3 3 0 0 1 0-6h8"],
|
|
218
|
+
// ------------------------------------------------------------ seguranca
|
|
219
|
+
"lock": ["seguranca", "cadeado trancar lock", "r 5 11 14 10 2", "M8 11V8a4 4 0 0 1 8 0v3"],
|
|
220
|
+
"unlock": ["seguranca", "destrancar cadeado aberto unlock", "r 5 11 14 10 2", "M8 11V8a4 4 0 0 1 7.7-1.5"],
|
|
221
|
+
"key": ["seguranca", "chave senha key token", "c 8 15 4", "M11 12l9-9", "M17 6l3 3", "M14 9l2 2"],
|
|
222
|
+
"shield": ["seguranca", "escudo protecao shield", "M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6z"],
|
|
223
|
+
"shield-check": ["seguranca", "escudo seguro verificado", "M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6z", "M8.5 12l2.5 2.5 4.5-5"],
|
|
224
|
+
"shield-alert": ["seguranca", "escudo alerta risco", "M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6z", "M12 8v5", "M12 16h.01"],
|
|
225
|
+
"shield-question": ["seguranca", "escudo desconhecido incerto", "M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6z", "M9.5 9.5a2.5 2.5 0 1 1 3.5 2.3c-.7.3-1 .8-1 1.5", "M12 16.5h.01"],
|
|
226
|
+
"shield-x": ["seguranca", "escudo bloqueado violacao", "M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6z", "M9.5 9.5l5 5", "M14.5 9.5l-5 5"],
|
|
227
|
+
"badge-check": ["seguranca", "verificado selo certificado", "M12 3l2.5 1.7 3-.2 1.1 2.8 2.4 1.9-.9 2.9.9 2.9-2.4 1.9-1.1 2.8-3-.2L12 21l-2.5-1.7-3 .2-1.1-2.8-2.4-1.9.9-2.9-.9-2.9 2.4-1.9 1.1-2.8 3 .2z", "M8.5 12l2.5 2.5 4.5-5"],
|
|
228
|
+
"scan": ["seguranca", "escanear varredura scan", "M4 8V5a1 1 0 0 1 1-1h3", "M16 4h3a1 1 0 0 1 1 1v3", "M20 16v3a1 1 0 0 1-1 1h-3", "M8 20H5a1 1 0 0 1-1-1v-3"],
|
|
229
|
+
"asterisk": ["seguranca", "asterisco senha mascarada", "M12 5v14", "M5.6 8.5l12.8 7", "M18.4 8.5l-12.8 7"],
|
|
230
|
+
// --------------------------------------------------------------- editor
|
|
231
|
+
"bold": ["editor", "negrito bold", "M7 4h6a4 4 0 0 1 0 8H7z", "M7 12h7a4 4 0 0 1 0 8H7z"],
|
|
232
|
+
"italic": ["editor", "italico italic", "M10 4h8", "M6 20h8", "M15 4l-6 16"],
|
|
233
|
+
"underline": ["editor", "sublinhado underline", "M7 4v7a5 5 0 0 0 10 0V4", "M5 20h14"],
|
|
234
|
+
"strikethrough": ["editor", "tachado strikethrough", "M5 12h14", "M16 6.5A4.5 3 0 0 0 12 5c-2.5 0-4.5 1-4.5 3s2 2.5 4.5 3", "M8 17.5a4.5 3 0 0 0 4 1.5c2.5 0 4.5-1 4.5-3"],
|
|
235
|
+
"align-left": ["editor", "alinhar esquerda", "M4 6h16", "M4 10h10", "M4 14h16", "M4 18h10"],
|
|
236
|
+
"align-center": ["editor", "alinhar centro", "M4 6h16", "M7 10h10", "M4 14h16", "M7 18h10"],
|
|
237
|
+
"align-right": ["editor", "alinhar direita", "M4 6h16", "M10 10h10", "M4 14h16", "M10 18h10"],
|
|
238
|
+
"align-justify": ["editor", "justificar", "M4 6h16", "M4 10h16", "M4 14h16", "M4 18h16"],
|
|
239
|
+
"heading": ["editor", "titulo heading h", "M6 4v16", "M18 4v16", "M6 12h12"],
|
|
240
|
+
"type": ["editor", "texto fonte tipografia type", "M5 6V4h14v2", "M12 4v16", "M9 20h6"],
|
|
241
|
+
"quote": ["editor", "citacao quote", "M4 10h5v4.5A3.5 3.5 0 0 1 5.5 18", "M14 10h5v4.5a3.5 3.5 0 0 1-3.5 3.5"],
|
|
242
|
+
"pencil": ["editor", "editar lapis edit renomear", "M4 20l1-4L16 5a2.1 2.1 0 0 1 3 3L8 19z", "M14 7l3 3"],
|
|
243
|
+
"list": ["editor", "lista list", "M8 6h13", "M8 12h13", "M8 18h13", "M3 6h.01", "M3 12h.01", "M3 18h.01"],
|
|
244
|
+
"list-ordered": ["editor", "lista numerada ordenada", "M10 6h11", "M10 12h11", "M10 18h11", "M4 6h1v4", "M4 10h2", "M6 18H4c0-1 2-2 2-3s-1-1.5-2-1"],
|
|
245
|
+
"list-checks": ["editor", "lista de tarefas checklist", "M11 6h10", "M11 12h10", "M11 18h10", "M3 6l1.5 1.5L7 5", "M3 12l1.5 1.5L7 11", "M3 18l1.5 1.5L7 17"],
|
|
246
|
+
"indent": ["editor", "aumentar recuo indent", "M4 6h16", "M10 12h10", "M4 18h16", "M4 9l3 3-3 3"],
|
|
247
|
+
"outdent": ["editor", "diminuir recuo outdent", "M4 6h16", "M10 12h10", "M4 18h16", "M7 9l-3 3 3 3"],
|
|
248
|
+
"wrap": ["editor", "quebra de linha wrap", "M4 6h16", "M4 12h13a3 3 0 0 1 0 6h-4", "M15 15.5l-2 2.5 2 2.5", "M4 18h5"],
|
|
249
|
+
"case-sensitive": ["editor", "diferenciar maiusculas aa case", "M3 17l4-10 4 10", "M4.5 13.5h5", "c 17.5 14 3", "M20.5 11v6"],
|
|
250
|
+
"regex": ["editor", "expressao regular regex", "c 6 18 1.5", "M17 4v8", "M13.5 6l7 4", "M20.5 6l-7 4"],
|
|
251
|
+
"table": ["editor", "tabela table planilha", "r 3 4 18 16 2", "M3 10h18", "M3 15h18", "M9 4v16"],
|
|
252
|
+
"book-open": ["editor", "livro leitura docs documentacao", "M12 6c-2-1.5-5-2-8-2v14c3 0 6 .5 8 2 2-1.5 5-2 8-2V4c-3 0-6 .5-8 2z", "M12 6v14"],
|
|
253
|
+
"calendar": ["editor", "calendario data agenda", "r 3 5 18 16 2", "M3 10h18", "M8 3v4", "M16 3v4"],
|
|
254
|
+
"percent": ["editor", "porcentagem percent", "M19 5L5 19", "c 7 7 2.5", "c 17 17 2.5"],
|
|
255
|
+
"sigma": ["editor", "somatorio sigma matematica", "M18 5H6l7 7-7 7h12"],
|
|
256
|
+
"check-square": ["editor", "caixa de selecao marcada checkbox", "r 3 3 18 18 3", "M8 12l3 3 5-6"],
|
|
257
|
+
"plus-square": ["editor", "caixa adicionar", "r 3 3 18 18 3", "M12 8v8", "M8 12h8"],
|
|
258
|
+
"minus-square": ["editor", "caixa remover indeterminado", "r 3 3 18 18 3", "M8 12h8"],
|
|
259
|
+
"toggle-off": ["editor", "alternador desligado switch", "r 2 7 20 10 5", "c 8 12 2.5"],
|
|
260
|
+
"toggle-on": ["editor", "alternador ligado switch", "r 2 7 20 10 5", "c 16 12 2.5"],
|
|
261
|
+
"filter": ["editor", "filtro funil filter", "M3 5h18l-7 8v6l-4 2v-8z"],
|
|
262
|
+
"sort-asc": ["editor", "ordenar crescente asc", "M4 7h8", "M4 12h6", "M4 17h4", "M17 19V5", "M14 8l3-3 3 3"],
|
|
263
|
+
"sort-desc": ["editor", "ordenar decrescente desc", "M4 7h4", "M4 12h6", "M4 17h8", "M17 5v14", "M14 16l3 3 3-3"],
|
|
264
|
+
// ---------------------------------------------------------- interface
|
|
265
|
+
"user": ["interface", "usuario pessoa user perfil", "c 12 8 4", "M4 21a8 8 0 0 1 16 0"],
|
|
266
|
+
"users": ["interface", "usuarios grupo equipe users", "c 9 8 3.5", "M2.5 20a6.5 6.5 0 0 1 13 0", "M16 4.8a3.5 3.5 0 0 1 0 6.4", "M18 14a6 6 0 0 1 3.5 6"],
|
|
267
|
+
"user-plus": ["interface", "adicionar usuario convidar", "c 10 8 4", "M2 21a8 8 0 0 1 16 0", "M19 8v6", "M16 11h6"],
|
|
268
|
+
"user-check": ["interface", "usuario verificado", "c 10 8 4", "M2 21a8 8 0 0 1 16 0", "M16 11l2 2 4-4"],
|
|
269
|
+
"circle-user": ["interface", "avatar conta account", "c 12 12 9", "c 12 10 3", "M6.5 19a6 6 0 0 1 11 0"],
|
|
270
|
+
"credit-card": ["interface", "cartao pagamento credit card", "r 2 5 20 14 2", "M2 10h20", "M6 15h4"],
|
|
271
|
+
"map-pin": ["interface", "local localizacao mapa pin", "M12 21s-7-6-7-11a7 7 0 0 1 14 0c0 5-7 11-7 11z", "c 12 10 2.5"],
|
|
272
|
+
"compass": ["interface", "bussola explorar compass", "c 12 12 9", "M15.5 8.5l-2 5-5 2 2-5z"],
|
|
273
|
+
"camera": ["interface", "camera foto screenshot captura", "M4 8h3l2-3h6l2 3h3a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1z", "c 12 13.5 3.5"],
|
|
274
|
+
"mic": ["interface", "microfone audio mic", "r 9 3 6 11 3", "M5 11a7 7 0 0 0 14 0", "M12 18v3"],
|
|
275
|
+
"droplet": ["interface", "gota agua droplet", "M12 3s6 6 6 11a6 6 0 0 1-12 0c0-5 6-11 6-11z"],
|
|
276
|
+
"umbrella": ["interface", "guarda chuva protecao", "M3 12a9 9 0 0 1 18 0z", "M12 12v6a2 2 0 0 1-4 0"],
|
|
277
|
+
// ---------------------------------------------------------------- midia
|
|
278
|
+
"volume": ["midia", "volume som audio alto", "M4 9h4l5-4v14l-5-4H4z", "M16.5 9a4 4 0 0 1 0 6", "M19 6.5a8 8 0 0 1 0 11"],
|
|
279
|
+
"volume-x": ["midia", "mudo mute sem som", "M4 9h4l5-4v14l-5-4H4z", "M17 9l4 6", "M21 9l-4 6"],
|
|
280
|
+
"video": ["midia", "video camera filme", "r 3 6 13 12 2", "M16 10l5-3v10l-5-3"],
|
|
281
|
+
"skip-forward": ["midia", "proxima faixa avancar", "M5 5l10 7-10 7z", "M19 5v14"],
|
|
282
|
+
"skip-back": ["midia", "faixa anterior voltar", "M19 5L9 12l10 7z", "M5 5v14"],
|
|
283
|
+
"play-circle": ["midia", "reproduzir circulo play", "c 12 12 9", "M10 8.5v7l6-3.5z"],
|
|
284
|
+
// ----------------------------------------------------------- dispositivos
|
|
285
|
+
"laptop": ["dispositivos", "notebook laptop computador", "r 5 5 14 10 1.5", "M3 19h18"],
|
|
286
|
+
"smartphone": ["dispositivos", "celular smartphone mobile", "r 7 3 10 18 2", "M11 18h2"],
|
|
287
|
+
"hard-drive": ["dispositivos", "disco hd armazenamento drive", "M3 14l3-8a2 2 0 0 1 1.9-1.3h8.2A2 2 0 0 1 18 6l3 8", "r 3 14 18 6 2", "M7 17h.01"],
|
|
288
|
+
"battery": ["dispositivos", "bateria energia battery", "r 2 7 17 10 2", "M22 11v2", "M6 10v4"],
|
|
289
|
+
"thermometer": ["dispositivos", "temperatura termometro", "M14 14.5V5a2 2 0 0 0-4 0v9.5a4 4 0 1 0 4 0z"],
|
|
290
|
+
"disc": ["dispositivos", "disco midia disc cd", "c 12 12 9", "c 12 12 2"],
|
|
291
|
+
// ---------------------------------------------------------------- dados
|
|
292
|
+
"database": ["dados", "banco de dados database sql", "M4 6c0-1.7 3.6-3 8-3s8 1.3 8 3-3.6 3-8 3-8-1.3-8-3z", "M4 6v12c0 1.7 3.6 3 8 3s8-1.3 8-3V6", "M4 12c0 1.7 3.6 3 8 3s8-1.3 8-3"],
|
|
293
|
+
"bar-chart": ["dados", "grafico barras bar chart", "M5 20V11", "M12 20V4", "M19 20v-6"],
|
|
294
|
+
"line-chart": ["dados", "grafico linha line chart", "M3 3v18h18", "M7 15l4-5 3 3 5-6"],
|
|
295
|
+
"pie-chart": ["dados", "grafico pizza pie chart", "M21 12A9 9 0 1 1 12 3v9z", "M15 3.5A9 9 0 0 1 20.5 9H15z"],
|
|
296
|
+
"function": ["dados", "funcao formula fx", "M8 20c3 0 3-2 3-5V9c0-3 1-5 4-5", "M7 11h7"],
|
|
297
|
+
};
|
|
298
|
+
export const iconNames = Object.keys(iconData);
|
|
299
|
+
export function isIconName(name) {
|
|
300
|
+
return Object.prototype.hasOwnProperty.call(iconData, name);
|
|
301
|
+
}
|
|
302
|
+
export function iconEntries() {
|
|
303
|
+
return iconNames.map((name) => {
|
|
304
|
+
const [category, tags, ...shapes] = iconData[name];
|
|
305
|
+
return { name, category, tags, shapes };
|
|
306
|
+
});
|
|
307
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type ShapeAttrs = {
|
|
2
|
+
tag: "path" | "circle" | "rect" | "line";
|
|
3
|
+
attrs: Record<string, string | number>;
|
|
4
|
+
};
|
|
5
|
+
export declare const ICON_GRID = 24;
|
|
6
|
+
export declare const ICON_STROKE = 1.75;
|
|
7
|
+
export declare function parseShape(shape: string): ShapeAttrs;
|
|
8
|
+
export declare function shapeToSvg(shape: string): string;
|
|
9
|
+
export declare function iconToSvg(shapes: readonly string[], opts?: {
|
|
10
|
+
size?: number;
|
|
11
|
+
strokeWidth?: number;
|
|
12
|
+
}): string;
|
|
13
|
+
/** "git-branch" -> "GitBranchIcon" */
|
|
14
|
+
export declare function iconComponentName(name: string): string;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// Gramatica compacta das formas dos icones loccal (grade 24x24, traco, currentColor).
|
|
2
|
+
// Cada forma e uma string:
|
|
3
|
+
// "M..." caminho SVG (atributo d)
|
|
4
|
+
// "c cx cy r" circulo
|
|
5
|
+
// "r x y w h [rx]" retangulo
|
|
6
|
+
// "l x1 y1 x2 y2" linha
|
|
7
|
+
// Mantido sem dependencias para ser testavel com node --test.
|
|
8
|
+
export const ICON_GRID = 24;
|
|
9
|
+
export const ICON_STROKE = 1.75;
|
|
10
|
+
export function parseShape(shape) {
|
|
11
|
+
const s = shape.trim();
|
|
12
|
+
if (s.startsWith("M"))
|
|
13
|
+
return { tag: "path", attrs: { d: s } };
|
|
14
|
+
const [kind, ...rest] = s.split(/\s+/);
|
|
15
|
+
const n = rest.map(Number);
|
|
16
|
+
if (n.some((v) => Number.isNaN(v)))
|
|
17
|
+
throw new Error(`forma invalida: "${shape}"`);
|
|
18
|
+
switch (kind) {
|
|
19
|
+
case "c":
|
|
20
|
+
if (n.length !== 3)
|
|
21
|
+
throw new Error(`circulo precisa de 3 numeros: "${shape}"`);
|
|
22
|
+
return { tag: "circle", attrs: { cx: n[0], cy: n[1], r: n[2] } };
|
|
23
|
+
case "r":
|
|
24
|
+
if (n.length !== 4 && n.length !== 5)
|
|
25
|
+
throw new Error(`retangulo precisa de 4 ou 5 numeros: "${shape}"`);
|
|
26
|
+
return { tag: "rect", attrs: n.length === 5 ? { x: n[0], y: n[1], width: n[2], height: n[3], rx: n[4] } : { x: n[0], y: n[1], width: n[2], height: n[3] } };
|
|
27
|
+
case "l":
|
|
28
|
+
if (n.length !== 4)
|
|
29
|
+
throw new Error(`linha precisa de 4 numeros: "${shape}"`);
|
|
30
|
+
return { tag: "line", attrs: { x1: n[0], y1: n[1], x2: n[2], y2: n[3] } };
|
|
31
|
+
default:
|
|
32
|
+
throw new Error(`tipo de forma desconhecido: "${shape}"`);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
export function shapeToSvg(shape) {
|
|
36
|
+
const { tag, attrs } = parseShape(shape);
|
|
37
|
+
return `<${tag} ${Object.entries(attrs).map(([k, v]) => `${k}="${v}"`).join(" ")}/>`;
|
|
38
|
+
}
|
|
39
|
+
export function iconToSvg(shapes, opts = {}) {
|
|
40
|
+
const size = opts.size ?? ICON_GRID;
|
|
41
|
+
const sw = opts.strokeWidth ?? ICON_STROKE;
|
|
42
|
+
return `<svg xmlns="http://www.w3.org/2000/svg" width="${size}" height="${size}" viewBox="0 0 ${ICON_GRID} ${ICON_GRID}" fill="none" stroke="currentColor" stroke-width="${sw}" stroke-linecap="round" stroke-linejoin="round">${shapes.map(shapeToSvg).join("")}</svg>`;
|
|
43
|
+
}
|
|
44
|
+
/** "git-branch" -> "GitBranchIcon" */
|
|
45
|
+
export function iconComponentName(name) {
|
|
46
|
+
return name.split("-").map((p) => p.charAt(0).toUpperCase() + p.slice(1)).join("") + "Icon";
|
|
47
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare const logLevels: readonly ["debug", "info", "warn", "error"];
|
|
2
|
+
export type LogLevel = (typeof logLevels)[number];
|
|
3
|
+
export type LogLine = {
|
|
4
|
+
id: string | number;
|
|
5
|
+
/** Epoch em ms ou string ja formatada. */
|
|
6
|
+
time?: number | string;
|
|
7
|
+
level: LogLevel;
|
|
8
|
+
message: string;
|
|
9
|
+
source?: string;
|
|
10
|
+
};
|
|
11
|
+
export type LogFilter = {
|
|
12
|
+
levels: ReadonlySet<LogLevel>;
|
|
13
|
+
query: string;
|
|
14
|
+
};
|
|
15
|
+
export declare function filterLogs(lines: readonly LogLine[], filter: LogFilter): LogLine[];
|
|
16
|
+
export declare function countByLevel(lines: readonly LogLine[]): Record<LogLevel, number>;
|
|
17
|
+
/** Mantem apenas as ultimas `max` linhas (buffer circular simples). */
|
|
18
|
+
export declare function capLines<T>(lines: readonly T[], max: number): T[];
|
|
19
|
+
/** Divide o texto em trechos para destacar a busca. Sem busca devolve o texto inteiro. */
|
|
20
|
+
export declare function splitHighlight(text: string, query: string): {
|
|
21
|
+
text: string;
|
|
22
|
+
match: boolean;
|
|
23
|
+
}[];
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// Filtro puro do LogPanel.
|
|
2
|
+
export const logLevels = ["debug", "info", "warn", "error"];
|
|
3
|
+
export function filterLogs(lines, filter) {
|
|
4
|
+
const q = filter.query.trim().toLowerCase();
|
|
5
|
+
return lines.filter((l) => {
|
|
6
|
+
if (!filter.levels.has(l.level))
|
|
7
|
+
return false;
|
|
8
|
+
if (!q)
|
|
9
|
+
return true;
|
|
10
|
+
return l.message.toLowerCase().includes(q) || (l.source?.toLowerCase().includes(q) ?? false);
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
export function countByLevel(lines) {
|
|
14
|
+
const out = { debug: 0, info: 0, warn: 0, error: 0 };
|
|
15
|
+
for (const l of lines)
|
|
16
|
+
out[l.level]++;
|
|
17
|
+
return out;
|
|
18
|
+
}
|
|
19
|
+
/** Mantem apenas as ultimas `max` linhas (buffer circular simples). */
|
|
20
|
+
export function capLines(lines, max) {
|
|
21
|
+
return lines.length <= max ? lines : lines.slice(lines.length - max);
|
|
22
|
+
}
|
|
23
|
+
/** Divide o texto em trechos para destacar a busca. Sem busca devolve o texto inteiro. */
|
|
24
|
+
export function splitHighlight(text, query) {
|
|
25
|
+
const q = query.trim();
|
|
26
|
+
if (!q)
|
|
27
|
+
return [{ text, match: false }];
|
|
28
|
+
const lower = text.toLowerCase();
|
|
29
|
+
const needle = q.toLowerCase();
|
|
30
|
+
const out = [];
|
|
31
|
+
let i = 0;
|
|
32
|
+
while (i < text.length) {
|
|
33
|
+
const at = lower.indexOf(needle, i);
|
|
34
|
+
if (at < 0) {
|
|
35
|
+
out.push({ text: text.slice(i), match: false });
|
|
36
|
+
break;
|
|
37
|
+
}
|
|
38
|
+
if (at > i)
|
|
39
|
+
out.push({ text: text.slice(i, at), match: false });
|
|
40
|
+
out.push({ text: text.slice(at, at + needle.length), match: true });
|
|
41
|
+
i = at + needle.length;
|
|
42
|
+
}
|
|
43
|
+
return out;
|
|
44
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type NumberBounds = {
|
|
2
|
+
min?: number;
|
|
3
|
+
max?: number;
|
|
4
|
+
step?: number;
|
|
5
|
+
};
|
|
6
|
+
export declare function clamp(value: number, { min, max }: NumberBounds): number;
|
|
7
|
+
/** Soma passos evitando erro de ponto flutuante (0.1 + 0.2) e respeitando limites. */
|
|
8
|
+
export declare function stepValue(value: number, direction: 1 | -1, { min, max, step }: NumberBounds, multiplier?: number): number;
|
|
9
|
+
/** Interpreta texto digitado aceitando virgula decimal (pt-BR). Vazio ou invalido -> null. */
|
|
10
|
+
export declare function parseNumber(text: string): number | null;
|
|
11
|
+
export declare function formatNumber(value: number | null, fractionDigits?: number): string;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// Logica pura do NumberField.
|
|
2
|
+
function decimals(n) {
|
|
3
|
+
const s = String(n);
|
|
4
|
+
if (s.includes("e-"))
|
|
5
|
+
return Number(s.split("e-")[1]);
|
|
6
|
+
return s.includes(".") ? s.split(".")[1].length : 0;
|
|
7
|
+
}
|
|
8
|
+
export function clamp(value, { min = -Infinity, max = Infinity }) {
|
|
9
|
+
return Math.min(max, Math.max(min, value));
|
|
10
|
+
}
|
|
11
|
+
/** Soma passos evitando erro de ponto flutuante (0.1 + 0.2) e respeitando limites. */
|
|
12
|
+
export function stepValue(value, direction, { min, max, step = 1 }, multiplier = 1) {
|
|
13
|
+
const d = Math.max(decimals(step), decimals(value));
|
|
14
|
+
const next = Number((value + direction * step * multiplier).toFixed(d));
|
|
15
|
+
return clamp(next, { min, max });
|
|
16
|
+
}
|
|
17
|
+
/** Interpreta texto digitado aceitando virgula decimal (pt-BR). Vazio ou invalido -> null. */
|
|
18
|
+
export function parseNumber(text) {
|
|
19
|
+
const t = text.trim().replace(/\s/g, "").replace(",", ".");
|
|
20
|
+
if (t === "" || t === "-" || t === "." || t === "-.")
|
|
21
|
+
return null;
|
|
22
|
+
const n = Number(t);
|
|
23
|
+
return Number.isFinite(n) ? n : null;
|
|
24
|
+
}
|
|
25
|
+
export function formatNumber(value, fractionDigits) {
|
|
26
|
+
if (value === null)
|
|
27
|
+
return "";
|
|
28
|
+
const s = fractionDigits === undefined ? String(value) : value.toFixed(fractionDigits);
|
|
29
|
+
return s.replace(".", ",");
|
|
30
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export type SplitDirection = "row" | "column";
|
|
2
|
+
export type PaneLeaf = {
|
|
3
|
+
type: "leaf";
|
|
4
|
+
id: string;
|
|
5
|
+
};
|
|
6
|
+
export type PaneSplit = {
|
|
7
|
+
type: "split";
|
|
8
|
+
id: string;
|
|
9
|
+
/** "row" coloca os filhos lado a lado; "column" empilha. */
|
|
10
|
+
direction: SplitDirection;
|
|
11
|
+
/** Fracao do espaco ocupada por `first`, entre MIN_RATIO e MAX_RATIO. */
|
|
12
|
+
ratio: number;
|
|
13
|
+
first: PaneNode;
|
|
14
|
+
second: PaneNode;
|
|
15
|
+
};
|
|
16
|
+
export type PaneNode = PaneLeaf | PaneSplit;
|
|
17
|
+
export declare const MIN_RATIO = 0.1;
|
|
18
|
+
export declare const MAX_RATIO = 0.9;
|
|
19
|
+
export declare function clampRatio(ratio: number): number;
|
|
20
|
+
export declare function leaf(id: string): PaneLeaf;
|
|
21
|
+
/** Ids das folhas na ordem visual (primeiro -> segundo). */
|
|
22
|
+
export declare function leaves(node: PaneNode): string[];
|
|
23
|
+
export declare function hasLeaf(node: PaneNode, id: string): boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Divide a folha `leafId`: ela vira `first` e a nova folha `newLeafId` vira `second`.
|
|
26
|
+
* `splitId` identifica o novo no de divisao. Se `leafId` nao existir, devolve a mesma raiz.
|
|
27
|
+
*/
|
|
28
|
+
export declare function splitLeaf(root: PaneNode, leafId: string, direction: SplitDirection, newLeafId: string, splitId?: string): PaneNode;
|
|
29
|
+
/**
|
|
30
|
+
* Remove a folha `leafId`; o irmao assume o lugar da divisao pai.
|
|
31
|
+
* Devolve `null` quando a ultima folha e removida.
|
|
32
|
+
*/
|
|
33
|
+
export declare function removeLeaf(root: PaneNode, leafId: string): PaneNode | null;
|
|
34
|
+
/** Ajusta a proporcao de uma divisao (com clamp). */
|
|
35
|
+
export declare function setRatio(root: PaneNode, splitId: string, ratio: number): PaneNode;
|
|
36
|
+
/** Proxima folha (delta = 1) ou anterior (delta = -1), circular. */
|
|
37
|
+
export declare function cycleLeaf(root: PaneNode, currentId: string, delta: 1 | -1): string;
|
|
38
|
+
/** Folha a ser focada depois de remover `removedId` (a vizinha na ordem visual). */
|
|
39
|
+
export declare function focusAfterRemoval(before: PaneNode, removedId: string): string | null;
|