@atomazing-org/design-system 2.0.1 → 3.7.2
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/AGENTS.md +92 -0
- package/README.MD +263 -335
- package/dist/index.d.ts +11 -15
- package/dist/index.js +22 -22
- package/dist/presets/index.d.ts +15 -2
- package/dist/presets/index.js +315 -313
- package/dist/themePresets-CwgG5XEL.d.ts +65 -0
- package/dist/themePresets-CwgG5XEL.js +1 -0
- package/migrations/README.UPDATE.md +34 -20
- package/migrations/docs/migrations/design-system/README.md +48 -17
- package/migrations/docs/migrations/design-system/routes/adopt-existing/AEROCRM-EXAMPLE.md +197 -0
- package/migrations/docs/migrations/design-system/routes/adopt-existing/RUNBOOK.md +185 -25
- package/migrations/docs/migrations/design-system/routes/adopt-existing/migration.spec.json +84 -20
- package/migrations/docs/migrations/design-system/routes/greenfield/RUNBOOK.md +57 -25
- package/migrations/docs/migrations/design-system/routes/greenfield/migration.spec.json +37 -14
- package/migrations/docs/migrations/design-system/routes/mui4-to-latest/RUNBOOK.md +136 -77
- package/migrations/docs/migrations/design-system/routes/mui4-to-latest/migration.spec.json +104 -29
- package/migrations/docs/migrations/design-system/shared/WORKING-RULES.md +194 -0
- package/migrations/docs/migrations/design-system/shared/acceptance.md +76 -20
- package/migrations/docs/migrations/design-system/shared/common-regressions.md +218 -0
- package/migrations/docs/migrations/design-system/shared/gates.md +39 -3
- package/migrations/docs/migrations/design-system/shared/manual-qa-matrix.md +70 -0
- package/migrations/docs/migrations/design-system/shared/phase-exit-criteria.md +129 -0
- package/migrations/docs/migrations/design-system/shared/phases.md +377 -0
- package/migrations/skills/design-system-consumer-agent/SKILL.md +84 -0
- package/migrations/skills/design-system-migration-agent/SKILL.md +75 -9
- package/package.json +14 -4
- package/dist/typography-B-BeIk0v.d.ts +0 -120
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import { ThemeOptions, TypeBackground } from '@mui/material/styles';
|
|
2
|
-
import { ReactNode, CSSProperties } from 'react';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Available options for dark mode configuration.
|
|
6
|
-
* - `system`: Follows the operating system preference.
|
|
7
|
-
* - `light`: Forces light mode.
|
|
8
|
-
* - `dark`: Forces dark mode.
|
|
9
|
-
*/
|
|
10
|
-
type DarkModeOptions = "system" | "light" | "dark";
|
|
11
|
-
interface OptionItem {
|
|
12
|
-
label: string;
|
|
13
|
-
value: DarkModeOptions;
|
|
14
|
-
icon: ReactNode;
|
|
15
|
-
}
|
|
16
|
-
type ThemeModeBackground = Partial<Record<"light" | "dark", Partial<TypeBackground>>>;
|
|
17
|
-
type NamedThemeOptions = ThemeOptions & {
|
|
18
|
-
name: string;
|
|
19
|
-
background?: ThemeModeBackground;
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* Represents user-specific theme preferences stored in the application.
|
|
23
|
-
*/
|
|
24
|
-
interface AppSettings {
|
|
25
|
-
/**
|
|
26
|
-
* The selected preset id from the available themes list.
|
|
27
|
-
* Invalid or missing values are normalized to the first available theme.
|
|
28
|
-
*/
|
|
29
|
-
themeId: string;
|
|
30
|
-
/**
|
|
31
|
-
* Controls how dark mode is applied in the app.
|
|
32
|
-
*/
|
|
33
|
-
darkMode: DarkModeOptions;
|
|
34
|
-
}
|
|
35
|
-
interface ThemeContextProps {
|
|
36
|
-
theme: string;
|
|
37
|
-
darkMode: DarkModeOptions;
|
|
38
|
-
setTheme: (theme: string) => void;
|
|
39
|
-
setDarkMode: (mode: DarkModeOptions) => void;
|
|
40
|
-
themes: NamedThemeOptions[];
|
|
41
|
-
selectedTheme: NamedThemeOptions;
|
|
42
|
-
defaultThemeName: string;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
type ThemeId = string;
|
|
46
|
-
type ThemeScheme = "light" | "dark";
|
|
47
|
-
type DarkModeSetting = DarkModeOptions;
|
|
48
|
-
interface ThemePreset {
|
|
49
|
-
id: ThemeId;
|
|
50
|
-
label: string;
|
|
51
|
-
colorSchemes: {
|
|
52
|
-
light: ThemeOptions;
|
|
53
|
-
dark: ThemeOptions;
|
|
54
|
-
};
|
|
55
|
-
description?: string;
|
|
56
|
-
tags?: string[];
|
|
57
|
-
version?: string;
|
|
58
|
-
}
|
|
59
|
-
type NormalizedPreset = ThemePreset & {
|
|
60
|
-
meta?: {
|
|
61
|
-
origin: "preset" | "legacy" | "custom";
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
interface CustomTypographyVariants {
|
|
66
|
-
text_xl_regular: CSSProperties;
|
|
67
|
-
text_lg_regular: CSSProperties;
|
|
68
|
-
text_md_regular: CSSProperties;
|
|
69
|
-
text_sm_regular: CSSProperties;
|
|
70
|
-
text_xs_regular: CSSProperties;
|
|
71
|
-
text_2xs_regular: CSSProperties;
|
|
72
|
-
text_xl_bold: CSSProperties;
|
|
73
|
-
text_lg_bold: CSSProperties;
|
|
74
|
-
text_md_bold: CSSProperties;
|
|
75
|
-
text_sm_bold: CSSProperties;
|
|
76
|
-
text_xs_bold: CSSProperties;
|
|
77
|
-
text_2xs_bold: CSSProperties;
|
|
78
|
-
text_xl_semibold: CSSProperties;
|
|
79
|
-
text_lg_semibold: CSSProperties;
|
|
80
|
-
text_md_semibold: CSSProperties;
|
|
81
|
-
text_sm_semibold: CSSProperties;
|
|
82
|
-
text_xs_semibold: CSSProperties;
|
|
83
|
-
text_2xs_semibold: CSSProperties;
|
|
84
|
-
text_xl_thin: CSSProperties;
|
|
85
|
-
text_lg_thin: CSSProperties;
|
|
86
|
-
text_md_thin: CSSProperties;
|
|
87
|
-
text_sm_thin: CSSProperties;
|
|
88
|
-
text_xs_thin: CSSProperties;
|
|
89
|
-
text_2xs_thin: CSSProperties;
|
|
90
|
-
header_2xl_regular: CSSProperties;
|
|
91
|
-
header_xl_regular: CSSProperties;
|
|
92
|
-
header_lg_regular: CSSProperties;
|
|
93
|
-
header_md_regular: CSSProperties;
|
|
94
|
-
header_sm_regular: CSSProperties;
|
|
95
|
-
header_xs_regular: CSSProperties;
|
|
96
|
-
header_2xl_bold: CSSProperties;
|
|
97
|
-
header_xl_bold: CSSProperties;
|
|
98
|
-
header_lg_bold: CSSProperties;
|
|
99
|
-
header_md_bold: CSSProperties;
|
|
100
|
-
header_sm_bold: CSSProperties;
|
|
101
|
-
header_xs_bold: CSSProperties;
|
|
102
|
-
header_2xl_semibold: CSSProperties;
|
|
103
|
-
header_xl_semibold: CSSProperties;
|
|
104
|
-
header_lg_semibold: CSSProperties;
|
|
105
|
-
header_md_semibold: CSSProperties;
|
|
106
|
-
header_sm_semibold: CSSProperties;
|
|
107
|
-
header_xs_semibold: CSSProperties;
|
|
108
|
-
}
|
|
109
|
-
declare module "@mui/material/styles" {
|
|
110
|
-
interface TypographyVariants extends CustomTypographyVariants {
|
|
111
|
-
}
|
|
112
|
-
interface TypographyVariantsOptions extends Partial<CustomTypographyVariants> {
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
declare module "@mui/material/Typography" {
|
|
116
|
-
interface TypographyPropsVariantOverrides extends Record<keyof CustomTypographyVariants, true> {
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
export type { AppSettings as A, CustomTypographyVariants as C, DarkModeOptions as D, NamedThemeOptions as N, OptionItem as O, ThemeContextProps as T, ThemePreset as a, ThemeModeBackground as b, NormalizedPreset as c, ThemeId as d, ThemeScheme as e, DarkModeSetting as f };
|