@facter/ds-core 1.33.6 → 1.33.7
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/index.d.mts +2788 -0
- package/dist/index.d.ts +2788 -0
- package/dist/index.js +136 -209
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +135 -208
- package/dist/index.mjs.map +1 -1
- package/dist/themes/index.d.mts +62 -0
- package/dist/themes/index.d.ts +62 -0
- package/dist/themes/tailwind-preset.d.mts +19 -0
- package/dist/themes/tailwind-preset.d.ts +19 -0
- package/package.json +1 -1
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Facter Design System - Theme Presets
|
|
3
|
+
*
|
|
4
|
+
* Temas disponíveis:
|
|
5
|
+
* - default: Neutro (shadcn default)
|
|
6
|
+
* - truck: Azul (Facter Truck)
|
|
7
|
+
* - vagas: Roxo (Facter Vagas)
|
|
8
|
+
* - techcare: Verde (Facter TechCare)
|
|
9
|
+
*
|
|
10
|
+
* Uso no projeto:
|
|
11
|
+
* ```css
|
|
12
|
+
* // globals.css
|
|
13
|
+
* @import '@facter/ds-core/themes/base.css';
|
|
14
|
+
* @import '@facter/ds-core/themes/default.css';
|
|
15
|
+
* @tailwind base;
|
|
16
|
+
* @tailwind components;
|
|
17
|
+
* @tailwind utilities;
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
declare const FACTER_THEMES: {
|
|
21
|
+
readonly default: "default";
|
|
22
|
+
readonly truck: "truck";
|
|
23
|
+
readonly vagas: "vagas";
|
|
24
|
+
readonly techcare: "techcare";
|
|
25
|
+
};
|
|
26
|
+
type FacterTheme = keyof typeof FACTER_THEMES;
|
|
27
|
+
/**
|
|
28
|
+
* Lista de temas disponíveis com suas cores primárias
|
|
29
|
+
* primaryHsl é usado para injetar CSS variables dinamicamente
|
|
30
|
+
*/
|
|
31
|
+
declare const THEME_INFO: {
|
|
32
|
+
readonly default: {
|
|
33
|
+
readonly name: "Default";
|
|
34
|
+
readonly primaryColor: "#18181B";
|
|
35
|
+
readonly primaryHsl: "240 5.9% 10%";
|
|
36
|
+
readonly ringHsl: "240 5.9% 10%";
|
|
37
|
+
readonly description: "Tema neutro padrão";
|
|
38
|
+
};
|
|
39
|
+
readonly truck: {
|
|
40
|
+
readonly name: "Facter Truck";
|
|
41
|
+
readonly primaryColor: "#3B5BDB";
|
|
42
|
+
readonly primaryHsl: "233 65% 55%";
|
|
43
|
+
readonly ringHsl: "233 65% 55%";
|
|
44
|
+
readonly description: "Sistema de gestão de frotas";
|
|
45
|
+
};
|
|
46
|
+
readonly vagas: {
|
|
47
|
+
readonly name: "Facter Vagas";
|
|
48
|
+
readonly primaryColor: "#8B5CF6";
|
|
49
|
+
readonly primaryHsl: "262 83% 58%";
|
|
50
|
+
readonly ringHsl: "262 83% 58%";
|
|
51
|
+
readonly description: "Plataforma de vagas de emprego";
|
|
52
|
+
};
|
|
53
|
+
readonly techcare: {
|
|
54
|
+
readonly name: "Facter TechCare";
|
|
55
|
+
readonly primaryColor: "#16A34A";
|
|
56
|
+
readonly primaryHsl: "142 76% 36%";
|
|
57
|
+
readonly ringHsl: "142 76% 36%";
|
|
58
|
+
readonly description: "Sistema de assistência técnica";
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
export { FACTER_THEMES, type FacterTheme, THEME_INFO };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Facter Design System - Theme Presets
|
|
3
|
+
*
|
|
4
|
+
* Temas disponíveis:
|
|
5
|
+
* - default: Neutro (shadcn default)
|
|
6
|
+
* - truck: Azul (Facter Truck)
|
|
7
|
+
* - vagas: Roxo (Facter Vagas)
|
|
8
|
+
* - techcare: Verde (Facter TechCare)
|
|
9
|
+
*
|
|
10
|
+
* Uso no projeto:
|
|
11
|
+
* ```css
|
|
12
|
+
* // globals.css
|
|
13
|
+
* @import '@facter/ds-core/themes/base.css';
|
|
14
|
+
* @import '@facter/ds-core/themes/default.css';
|
|
15
|
+
* @tailwind base;
|
|
16
|
+
* @tailwind components;
|
|
17
|
+
* @tailwind utilities;
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
declare const FACTER_THEMES: {
|
|
21
|
+
readonly default: "default";
|
|
22
|
+
readonly truck: "truck";
|
|
23
|
+
readonly vagas: "vagas";
|
|
24
|
+
readonly techcare: "techcare";
|
|
25
|
+
};
|
|
26
|
+
type FacterTheme = keyof typeof FACTER_THEMES;
|
|
27
|
+
/**
|
|
28
|
+
* Lista de temas disponíveis com suas cores primárias
|
|
29
|
+
* primaryHsl é usado para injetar CSS variables dinamicamente
|
|
30
|
+
*/
|
|
31
|
+
declare const THEME_INFO: {
|
|
32
|
+
readonly default: {
|
|
33
|
+
readonly name: "Default";
|
|
34
|
+
readonly primaryColor: "#18181B";
|
|
35
|
+
readonly primaryHsl: "240 5.9% 10%";
|
|
36
|
+
readonly ringHsl: "240 5.9% 10%";
|
|
37
|
+
readonly description: "Tema neutro padrão";
|
|
38
|
+
};
|
|
39
|
+
readonly truck: {
|
|
40
|
+
readonly name: "Facter Truck";
|
|
41
|
+
readonly primaryColor: "#3B5BDB";
|
|
42
|
+
readonly primaryHsl: "233 65% 55%";
|
|
43
|
+
readonly ringHsl: "233 65% 55%";
|
|
44
|
+
readonly description: "Sistema de gestão de frotas";
|
|
45
|
+
};
|
|
46
|
+
readonly vagas: {
|
|
47
|
+
readonly name: "Facter Vagas";
|
|
48
|
+
readonly primaryColor: "#8B5CF6";
|
|
49
|
+
readonly primaryHsl: "262 83% 58%";
|
|
50
|
+
readonly ringHsl: "262 83% 58%";
|
|
51
|
+
readonly description: "Plataforma de vagas de emprego";
|
|
52
|
+
};
|
|
53
|
+
readonly techcare: {
|
|
54
|
+
readonly name: "Facter TechCare";
|
|
55
|
+
readonly primaryColor: "#16A34A";
|
|
56
|
+
readonly primaryHsl: "142 76% 36%";
|
|
57
|
+
readonly ringHsl: "142 76% 36%";
|
|
58
|
+
readonly description: "Sistema de assistência técnica";
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
export { FACTER_THEMES, type FacterTheme, THEME_INFO };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Config } from 'tailwindcss';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Facter Design System - Tailwind Preset
|
|
5
|
+
*
|
|
6
|
+
* Uso:
|
|
7
|
+
* ```ts
|
|
8
|
+
* // tailwind.config.ts
|
|
9
|
+
* import { facterPreset } from '@facter/ds-core/themes/tailwind-preset'
|
|
10
|
+
*
|
|
11
|
+
* export default {
|
|
12
|
+
* presets: [facterPreset],
|
|
13
|
+
* content: ['./src/** /*.{ts,tsx}'],
|
|
14
|
+
* } satisfies Config
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
declare const facterPreset: Partial<Config>;
|
|
18
|
+
|
|
19
|
+
export { facterPreset as default, facterPreset };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Config } from 'tailwindcss';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Facter Design System - Tailwind Preset
|
|
5
|
+
*
|
|
6
|
+
* Uso:
|
|
7
|
+
* ```ts
|
|
8
|
+
* // tailwind.config.ts
|
|
9
|
+
* import { facterPreset } from '@facter/ds-core/themes/tailwind-preset'
|
|
10
|
+
*
|
|
11
|
+
* export default {
|
|
12
|
+
* presets: [facterPreset],
|
|
13
|
+
* content: ['./src/** /*.{ts,tsx}'],
|
|
14
|
+
* } satisfies Config
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
declare const facterPreset: Partial<Config>;
|
|
18
|
+
|
|
19
|
+
export { facterPreset as default, facterPreset };
|