@seedgrid/fe-theme 2026.4.18 → 2026.4.20
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/dist/ai/seedgrid-theme.manifest.json +857 -0
- package/dist/theme/SeedThemeProvider.meta.d.ts +61 -0
- package/dist/theme/SeedThemeProvider.meta.d.ts.map +1 -0
- package/dist/theme/SeedThemeProvider.meta.js +105 -0
- package/dist/theme/ThemeProvider.meta.d.ts +60 -0
- package/dist/theme/ThemeProvider.meta.d.ts.map +1 -0
- package/dist/theme/ThemeProvider.meta.js +45 -0
- package/dist/theme/buildScaleFromHex.meta.d.ts +60 -0
- package/dist/theme/buildScaleFromHex.meta.d.ts.map +1 -0
- package/dist/theme/buildScaleFromHex.meta.js +41 -0
- package/dist/theme/clamp.meta.d.ts +60 -0
- package/dist/theme/clamp.meta.d.ts.map +1 -0
- package/dist/theme/clamp.meta.js +40 -0
- package/dist/theme/getSystemMode.meta.d.ts +60 -0
- package/dist/theme/getSystemMode.meta.d.ts.map +1 -0
- package/dist/theme/getSystemMode.meta.js +36 -0
- package/dist/theme/useSgTheme.meta.d.ts +61 -0
- package/dist/theme/useSgTheme.meta.d.ts.map +1 -0
- package/dist/theme/useSgTheme.meta.js +109 -0
- package/dist/theme/useTheme.meta.d.ts +60 -0
- package/dist/theme/useTheme.meta.d.ts.map +1 -0
- package/dist/theme/useTheme.meta.js +43 -0
- package/dist/ui/AppShell.meta.d.ts +60 -0
- package/dist/ui/AppShell.meta.d.ts.map +1 -0
- package/dist/ui/AppShell.meta.js +45 -0
- package/package.json +3 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSgTheme.meta.d.ts","sourceRoot":"","sources":["../../src/theme/useSgTheme.meta.ts"],"names":[],"mappings":"AAAA,KAAK,YAAY,GAAG;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,OAAO,CAAC;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AAC;KACxC,CAAC;CACH,CAAC;AAEF,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,KAAK,CAAC;IACf,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC/B,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B,cAAc,CAAC,EAAE;QACf,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,QAkFpB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,WA0BrB,CAAC"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
export const sgMeta = {
|
|
2
|
+
version: "0.1",
|
|
3
|
+
componentId: "hook.use-sg-theme",
|
|
4
|
+
package: "@seedgrid/fe-theme",
|
|
5
|
+
exportName: "useSgTheme",
|
|
6
|
+
slug: "use-sg-theme",
|
|
7
|
+
displayName: "useSgTheme",
|
|
8
|
+
category: "hook",
|
|
9
|
+
subcategory: "theme",
|
|
10
|
+
description: "Hook para acessar contexto de tema. Fornece variaveis CSS, modo atual, funcoes para alternar tema e modo.",
|
|
11
|
+
tags: ["hook", "theme", "design-tokens", "context"],
|
|
12
|
+
capabilities: ["theme-access", "mode-toggling", "css-variables"],
|
|
13
|
+
fieldSemantics: ["themeContext", "designTokens", "colorScheme"],
|
|
14
|
+
props: [
|
|
15
|
+
{
|
|
16
|
+
name: "returns.vars",
|
|
17
|
+
type: "Record<string, string>",
|
|
18
|
+
description: "Dicionario de variaveis CSS atuais (cores, raios, etc).",
|
|
19
|
+
semanticRole: "data",
|
|
20
|
+
bindable: false
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: "returns.setTheme",
|
|
24
|
+
type: "(next: Partial<SeedThemeInput>) => void",
|
|
25
|
+
description: "Funcao para alterar tema (seed, mode, radius).",
|
|
26
|
+
semanticRole: "event",
|
|
27
|
+
bindable: false
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
name: "returns.setMode",
|
|
31
|
+
type: "(m: 'light' | 'dark') => void",
|
|
32
|
+
description: "Funcao para alternar modo claro/escuro.",
|
|
33
|
+
semanticRole: "event",
|
|
34
|
+
bindable: false
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
name: "returns.currentMode",
|
|
38
|
+
type: "'light' | 'dark'",
|
|
39
|
+
description: "Modo atual normalizado (sem 'auto').",
|
|
40
|
+
semanticRole: "data",
|
|
41
|
+
bindable: true
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
name: "returns.currentTheme",
|
|
45
|
+
type: "{ seed: string; mode?: Mode; radius?: string }",
|
|
46
|
+
description: "Tema atual (seed, mode, radius).",
|
|
47
|
+
semanticRole: "data",
|
|
48
|
+
bindable: false
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
states: ["light", "dark"],
|
|
52
|
+
examples: [
|
|
53
|
+
{
|
|
54
|
+
id: "basic",
|
|
55
|
+
title: "Acessar tema atual",
|
|
56
|
+
file: "apps/showcase/src/app/components/hooks/use-sg-theme/samples/basic.tsx.sample",
|
|
57
|
+
kind: "sample"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
id: "theme-switcher",
|
|
61
|
+
title: "Criar seletor de tema",
|
|
62
|
+
file: "apps/showcase/src/app/components/hooks/use-sg-theme/samples/theme-switcher.tsx.sample",
|
|
63
|
+
kind: "sample"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
id: "dark-mode-toggle",
|
|
67
|
+
title: "Toggle claro/escuro",
|
|
68
|
+
file: "apps/showcase/src/app/components/hooks/use-sg-theme/samples/dark-mode-toggle.tsx.sample",
|
|
69
|
+
kind: "sample"
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
showcase: {
|
|
73
|
+
route: "/components/hooks/use-sg-theme",
|
|
74
|
+
hasPlayground: true,
|
|
75
|
+
hasPropsTable: true
|
|
76
|
+
},
|
|
77
|
+
sdui: {
|
|
78
|
+
rendererType: "hook.use-sg-theme",
|
|
79
|
+
acceptsDataBinding: false,
|
|
80
|
+
defaultProps: {}
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
export const aiHints = {
|
|
84
|
+
version: "0.1",
|
|
85
|
+
preferredUseCases: [
|
|
86
|
+
"Ler variaveis de tema para usar em componentes customizados.",
|
|
87
|
+
"Criar seletor de tema com lista de opcoes.",
|
|
88
|
+
"Implementar toggle de modo claro/escuro.",
|
|
89
|
+
"Reagir a mudancas de tema."
|
|
90
|
+
],
|
|
91
|
+
avoidUseCases: [
|
|
92
|
+
"Usar fora de SeedThemeProvider; vai lancar erro.",
|
|
93
|
+
"Modificar diretamente o contexto; use setTheme e setMode."
|
|
94
|
+
],
|
|
95
|
+
synonyms: ["theme context", "theme hook", "design token access"],
|
|
96
|
+
relatedEntityFields: ["theme", "mode", "darkMode", "styling"],
|
|
97
|
+
compositionHints: [
|
|
98
|
+
"Usar dentro de SeedThemeProvider.",
|
|
99
|
+
"Combinar com button ou select para UI de mudanca de tema.",
|
|
100
|
+
"Acessar currentMode para renderizacao condicional (light vs dark)."
|
|
101
|
+
],
|
|
102
|
+
rankingSignals: {
|
|
103
|
+
freeText: 0.8,
|
|
104
|
+
structuredChoice: 0.85,
|
|
105
|
+
date: 0,
|
|
106
|
+
number: 0.3,
|
|
107
|
+
denseLayout: 0.7
|
|
108
|
+
}
|
|
109
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
type SgMetaPropV0 = {
|
|
2
|
+
name: string;
|
|
3
|
+
type: string;
|
|
4
|
+
required?: boolean;
|
|
5
|
+
default?: unknown;
|
|
6
|
+
description?: string;
|
|
7
|
+
semanticRole?: "value" | "label" | "validation" | "behavior" | "appearance" | "event" | "data";
|
|
8
|
+
bindable?: boolean;
|
|
9
|
+
};
|
|
10
|
+
type SgMetaV0 = {
|
|
11
|
+
version: "0.1";
|
|
12
|
+
componentId: string;
|
|
13
|
+
package: string;
|
|
14
|
+
exportName: string;
|
|
15
|
+
slug: string;
|
|
16
|
+
displayName: string;
|
|
17
|
+
category: string;
|
|
18
|
+
subcategory?: string;
|
|
19
|
+
description: string;
|
|
20
|
+
tags?: string[];
|
|
21
|
+
capabilities?: string[];
|
|
22
|
+
fieldSemantics?: string[];
|
|
23
|
+
props?: SgMetaPropV0[];
|
|
24
|
+
states?: string[];
|
|
25
|
+
examples?: Array<{
|
|
26
|
+
id: string;
|
|
27
|
+
title: string;
|
|
28
|
+
file: string;
|
|
29
|
+
kind: "sample" | "playground";
|
|
30
|
+
}>;
|
|
31
|
+
showcase?: {
|
|
32
|
+
route: string;
|
|
33
|
+
hasPlayground: boolean;
|
|
34
|
+
hasPropsTable: boolean;
|
|
35
|
+
};
|
|
36
|
+
sdui?: {
|
|
37
|
+
rendererType: string;
|
|
38
|
+
acceptsDataBinding?: boolean;
|
|
39
|
+
defaultProps?: Record<string, unknown>;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
type SgAiHintsV0 = {
|
|
43
|
+
version: "0.1";
|
|
44
|
+
preferredUseCases: string[];
|
|
45
|
+
avoidUseCases?: string[];
|
|
46
|
+
synonyms?: string[];
|
|
47
|
+
relatedEntityFields?: string[];
|
|
48
|
+
compositionHints?: string[];
|
|
49
|
+
rankingSignals?: {
|
|
50
|
+
freeText?: number;
|
|
51
|
+
structuredChoice?: number;
|
|
52
|
+
date?: number;
|
|
53
|
+
number?: number;
|
|
54
|
+
denseLayout?: number;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
export declare const sgMeta: SgMetaV0;
|
|
58
|
+
export declare const aiHints: SgAiHintsV0;
|
|
59
|
+
export {};
|
|
60
|
+
//# sourceMappingURL=useTheme.meta.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTheme.meta.d.ts","sourceRoot":"","sources":["../../src/theme/useTheme.meta.ts"],"names":[],"mappings":"AAAA,KAAK,YAAY,GAAG;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,YAAY,GAAG,UAAU,GAAG,YAAY,GAAG,OAAO,GAAG,MAAM,CAAC;IAC/F,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,KAAK,QAAQ,GAAG;IACd,OAAO,EAAE,KAAK,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,KAAK,CAAC,EAAE,YAAY,EAAE,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,QAAQ,GAAG,YAAY,CAAA;KAAE,CAAC,CAAC;IAC7F,QAAQ,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,aAAa,EAAE,OAAO,CAAC;QAAC,aAAa,EAAE,OAAO,CAAA;KAAE,CAAC;IAC7E,IAAI,CAAC,EAAE;QACL,YAAY,EAAE,MAAM,CAAC;QACrB,kBAAkB,CAAC,EAAE,OAAO,CAAC;QAC7B,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACxC,CAAC;CACH,CAAC;AAEF,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,KAAK,CAAC;IACf,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC/B,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B,cAAc,CAAC,EAAE;QACf,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,QAyBpB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,WAiBrB,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export const sgMeta = {
|
|
2
|
+
version: "0.1",
|
|
3
|
+
componentId: "hook.use-theme-legacy",
|
|
4
|
+
package: "@seedgrid/fe-theme",
|
|
5
|
+
exportName: "useTheme",
|
|
6
|
+
slug: "use-theme",
|
|
7
|
+
displayName: "useTheme",
|
|
8
|
+
category: "hook",
|
|
9
|
+
subcategory: "theme-legacy",
|
|
10
|
+
description: "Hook legado para consumir o contexto de tema antigo exposto por ThemeProvider.",
|
|
11
|
+
tags: ["hook", "theme", "legacy", "compatibility"],
|
|
12
|
+
capabilities: ["legacy-theme-read", "theme-access"],
|
|
13
|
+
fieldSemantics: ["legacyThemeHook", "themeContextAccess"],
|
|
14
|
+
props: [
|
|
15
|
+
{ name: "returns", type: "SeedGridThemeConfig", description: "Configuracao de tema legado atual.", semanticRole: "data", bindable: false }
|
|
16
|
+
],
|
|
17
|
+
states: ["inside-provider"],
|
|
18
|
+
examples: [],
|
|
19
|
+
showcase: { route: "/packages/fe-theme/use-theme", hasPlayground: false, hasPropsTable: false },
|
|
20
|
+
sdui: {
|
|
21
|
+
rendererType: "hook.use-theme-legacy",
|
|
22
|
+
acceptsDataBinding: false,
|
|
23
|
+
defaultProps: {}
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
export const aiHints = {
|
|
27
|
+
version: "0.1",
|
|
28
|
+
preferredUseCases: [
|
|
29
|
+
"Ler tema em consumidores antigos baseados em ThemeProvider.",
|
|
30
|
+
"Manter compatibilidade durante migracao do sistema de tema."
|
|
31
|
+
],
|
|
32
|
+
avoidUseCases: [
|
|
33
|
+
"Novos componentes e fluxos de tema; nesses casos prefira useSgTheme.",
|
|
34
|
+
"Uso fora de ThemeProvider, onde o hook lancara erro."
|
|
35
|
+
],
|
|
36
|
+
synonyms: ["legacy theme hook", "use theme", "theme compatibility hook"],
|
|
37
|
+
relatedEntityFields: ["theme", "legacyTheme", "colors"],
|
|
38
|
+
compositionHints: [
|
|
39
|
+
"Usar apenas com ThemeProvider.",
|
|
40
|
+
"Migrar gradualmente para useSgTheme quando possivel."
|
|
41
|
+
],
|
|
42
|
+
rankingSignals: { freeText: 0.42, structuredChoice: 0.46, date: 0, number: 0, denseLayout: 0.45 }
|
|
43
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
type SgMetaPropV0 = {
|
|
2
|
+
name: string;
|
|
3
|
+
type: string;
|
|
4
|
+
required?: boolean;
|
|
5
|
+
default?: unknown;
|
|
6
|
+
description?: string;
|
|
7
|
+
semanticRole?: "value" | "label" | "validation" | "behavior" | "appearance" | "event" | "data";
|
|
8
|
+
bindable?: boolean;
|
|
9
|
+
};
|
|
10
|
+
type SgMetaV0 = {
|
|
11
|
+
version: "0.1";
|
|
12
|
+
componentId: string;
|
|
13
|
+
package: string;
|
|
14
|
+
exportName: string;
|
|
15
|
+
slug: string;
|
|
16
|
+
displayName: string;
|
|
17
|
+
category: string;
|
|
18
|
+
subcategory?: string;
|
|
19
|
+
description: string;
|
|
20
|
+
tags?: string[];
|
|
21
|
+
capabilities?: string[];
|
|
22
|
+
fieldSemantics?: string[];
|
|
23
|
+
props?: SgMetaPropV0[];
|
|
24
|
+
states?: string[];
|
|
25
|
+
examples?: Array<{
|
|
26
|
+
id: string;
|
|
27
|
+
title: string;
|
|
28
|
+
file: string;
|
|
29
|
+
kind: "sample" | "playground";
|
|
30
|
+
}>;
|
|
31
|
+
showcase?: {
|
|
32
|
+
route: string;
|
|
33
|
+
hasPlayground: boolean;
|
|
34
|
+
hasPropsTable: boolean;
|
|
35
|
+
};
|
|
36
|
+
sdui?: {
|
|
37
|
+
rendererType: string;
|
|
38
|
+
acceptsDataBinding?: boolean;
|
|
39
|
+
defaultProps?: Record<string, unknown>;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
type SgAiHintsV0 = {
|
|
43
|
+
version: "0.1";
|
|
44
|
+
preferredUseCases: string[];
|
|
45
|
+
avoidUseCases?: string[];
|
|
46
|
+
synonyms?: string[];
|
|
47
|
+
relatedEntityFields?: string[];
|
|
48
|
+
compositionHints?: string[];
|
|
49
|
+
rankingSignals?: {
|
|
50
|
+
freeText?: number;
|
|
51
|
+
structuredChoice?: number;
|
|
52
|
+
date?: number;
|
|
53
|
+
number?: number;
|
|
54
|
+
denseLayout?: number;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
export declare const sgMeta: SgMetaV0;
|
|
58
|
+
export declare const aiHints: SgAiHintsV0;
|
|
59
|
+
export {};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AAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,aAAa,EAAE,OAAO,CAAC;QAAC,aAAa,EAAE,OAAO,CAAA;KAAE,CAAC;IAC7E,IAAI,CAAC,EAAE;QACL,YAAY,EAAE,MAAM,CAAC;QACrB,kBAAkB,CAAC,EAAE,OAAO,CAAC;QAC7B,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACxC,CAAC;CACH,CAAC;AAEF,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,KAAK,CAAC;IACf,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC/B,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B,cAAc,CAAC,EAAE;QACf,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,QA0BpB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,WAiBrB,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export const sgMeta = {
|
|
2
|
+
version: "0.1",
|
|
3
|
+
componentId: "layout.app-shell",
|
|
4
|
+
package: "@seedgrid/fe-theme",
|
|
5
|
+
exportName: "AppShell",
|
|
6
|
+
slug: "app-shell",
|
|
7
|
+
displayName: "AppShell",
|
|
8
|
+
category: "layout",
|
|
9
|
+
subcategory: "shell",
|
|
10
|
+
description: "Shell de aplicacao baseado no tema legado, com area de navegacao lateral, header opcional e superficie principal.",
|
|
11
|
+
tags: ["layout", "shell", "app", "navigation", "legacy-theme"],
|
|
12
|
+
capabilities: ["sidebar-layout", "header-slot", "themed-surface", "legacy-theme-aware"],
|
|
13
|
+
fieldSemantics: ["appShell", "navigationLayout", "pageFrame"],
|
|
14
|
+
props: [
|
|
15
|
+
{ name: "children", type: "ReactNode", required: true, description: "Conteudo principal da aplicacao.", semanticRole: "data", bindable: false },
|
|
16
|
+
{ name: "nav", type: "ReactNode", description: "Conteudo da navegacao lateral.", semanticRole: "data", bindable: false },
|
|
17
|
+
{ name: "header", type: "ReactNode", description: "Conteudo opcional de cabecalho.", semanticRole: "data", bindable: false }
|
|
18
|
+
],
|
|
19
|
+
states: ["default", "with-nav", "with-header"],
|
|
20
|
+
examples: [],
|
|
21
|
+
showcase: { route: "/packages/fe-theme/app-shell", hasPlayground: false, hasPropsTable: false },
|
|
22
|
+
sdui: {
|
|
23
|
+
rendererType: "layout.app-shell",
|
|
24
|
+
acceptsDataBinding: true,
|
|
25
|
+
defaultProps: {}
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
export const aiHints = {
|
|
29
|
+
version: "0.1",
|
|
30
|
+
preferredUseCases: [
|
|
31
|
+
"Montar um shell simples de aplicacao com menu lateral e area principal.",
|
|
32
|
+
"Demonstrar o tema legado aplicado a uma estrutura de pagina completa."
|
|
33
|
+
],
|
|
34
|
+
avoidUseCases: [
|
|
35
|
+
"Layouts altamente customizaveis com docking ou zonas complexas.",
|
|
36
|
+
"Novo shell baseado no sistema moderno de componentes, se existir alternativa mais atual."
|
|
37
|
+
],
|
|
38
|
+
synonyms: ["app shell", "application shell", "page frame", "layout shell"],
|
|
39
|
+
relatedEntityFields: ["nav", "header", "layout", "shell"],
|
|
40
|
+
compositionHints: [
|
|
41
|
+
"Usar junto de ThemeProvider em contextos legados.",
|
|
42
|
+
"Migrar para estruturas mais modernas quando o shell deixar de depender do tema legado."
|
|
43
|
+
],
|
|
44
|
+
rankingSignals: { freeText: 0.12, structuredChoice: 0.24, date: 0, number: 0, denseLayout: 0.9 }
|
|
45
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seedgrid/fe-theme",
|
|
3
|
-
"version": "2026.4.
|
|
3
|
+
"version": "2026.4.20",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"dist"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@seedgrid/fe-core": "2026.4.
|
|
25
|
+
"@seedgrid/fe-core": "2026.4.20"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"react": "^18.2.0 || ^19.0.0"
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"fs-extra": "^11.2.0"
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|
|
35
|
-
"build": "tsc -p tsconfig.json && node ./scripts/copy-i18n.mjs",
|
|
35
|
+
"build": "tsc -p tsconfig.json && node ./scripts/copy-i18n.mjs && node ./scripts/build-ai-manifest.mjs",
|
|
36
36
|
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
37
37
|
}
|
|
38
38
|
}
|