@isi-ui7/corporate-themes 0.1.1
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/components/CorporateTheme.d.ts +26 -0
- package/dist/components/ThemeProvider.d.ts +10 -0
- package/dist/components/ThemeSwitcher.d.ts +1 -0
- package/dist/context/ThemeContext.d.ts +14 -0
- package/dist/corporates/bca-syariah/index.d.ts +14 -0
- package/dist/corporates/bca-syariah/tokens.d.ts +3 -0
- package/dist/corporates/bjb-syariah/index.d.ts +14 -0
- package/dist/corporates/bjb-syariah/tokens.d.ts +3 -0
- package/dist/corporates/carbon-default/index.d.ts +14 -0
- package/dist/corporates/carbon-default/tokens.d.ts +3 -0
- package/dist/corporates/ihsan-solusi/index.d.ts +14 -0
- package/dist/corporates/ihsan-solusi/tokens.d.ts +3 -0
- package/dist/corporates/pos-indonesia/index.d.ts +14 -0
- package/dist/corporates/pos-indonesia/tokens.d.ts +3 -0
- package/dist/hooks/useBrandColors.d.ts +1 -0
- package/dist/hooks/useCorporateFeatures.d.ts +7 -0
- package/dist/hooks/useThemeTokens.d.ts +1 -0
- package/dist/hooks/useThemeVariant.d.ts +4 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +324 -0
- package/dist/style.css +1 -0
- package/dist/tokens.d.ts +3 -0
- package/dist/types.d.ts +50 -0
- package/dist/utils/theme-utils.d.ts +4 -0
- package/package.json +47 -0
package/dist/tokens.d.ts
ADDED
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export type CarbonThemeVariant = "white" | "g10" | "g90" | "g100";
|
|
2
|
+
export interface BrandColors {
|
|
3
|
+
primary: string;
|
|
4
|
+
primaryHover: string;
|
|
5
|
+
primaryActive: string;
|
|
6
|
+
secondary: string;
|
|
7
|
+
secondaryHover: string;
|
|
8
|
+
secondaryActive: string;
|
|
9
|
+
accent: string;
|
|
10
|
+
accentHover: string;
|
|
11
|
+
tertiary?: string;
|
|
12
|
+
quaternary?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface ThemeTokens {
|
|
15
|
+
brandColors: BrandColors;
|
|
16
|
+
logoUrl: {
|
|
17
|
+
light: string;
|
|
18
|
+
dark: string;
|
|
19
|
+
};
|
|
20
|
+
interactive: string;
|
|
21
|
+
interactiveHover: string;
|
|
22
|
+
interactiveActive: string;
|
|
23
|
+
buttonPrimary: string;
|
|
24
|
+
buttonPrimaryHover: string;
|
|
25
|
+
buttonPrimaryActive: string;
|
|
26
|
+
buttonSecondary: string;
|
|
27
|
+
buttonSecondaryHover: string;
|
|
28
|
+
linkPrimary: string;
|
|
29
|
+
linkPrimaryHover: string;
|
|
30
|
+
linkSecondary: string;
|
|
31
|
+
focus: string;
|
|
32
|
+
borderInteractive: string;
|
|
33
|
+
headerBackground: string;
|
|
34
|
+
sidebarBackground?: string;
|
|
35
|
+
navigationBackground?: string;
|
|
36
|
+
}
|
|
37
|
+
export interface CorporateTheme {
|
|
38
|
+
id: string;
|
|
39
|
+
name: string;
|
|
40
|
+
displayName: string;
|
|
41
|
+
tokens: ThemeTokens;
|
|
42
|
+
supportedVariants: CarbonThemeVariant[];
|
|
43
|
+
defaultVariant: CarbonThemeVariant;
|
|
44
|
+
}
|
|
45
|
+
export interface ThemeContextValue {
|
|
46
|
+
theme: CorporateTheme;
|
|
47
|
+
variant: CarbonThemeVariant;
|
|
48
|
+
corporateId: string;
|
|
49
|
+
setVariant: (variant: CarbonThemeVariant) => void;
|
|
50
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@isi-ui7/corporate-themes",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Corporate themes (BCA Syariah, BJB Syariah, Pos Indonesia, Ihsan Solusi Informatika) with Carbon variants.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/ihsansolusi/ui7-playground.git",
|
|
9
|
+
"directory": "themes/corporate-themes"
|
|
10
|
+
},
|
|
11
|
+
"publishConfig": {
|
|
12
|
+
"registry": "https://registry.npmjs.org",
|
|
13
|
+
"access": "public"
|
|
14
|
+
},
|
|
15
|
+
"type": "module",
|
|
16
|
+
"main": "dist/index.js",
|
|
17
|
+
"module": "dist/index.js",
|
|
18
|
+
"types": "dist/index.d.ts",
|
|
19
|
+
"files": [
|
|
20
|
+
"dist"
|
|
21
|
+
],
|
|
22
|
+
"sideEffects": [
|
|
23
|
+
"**/*.css"
|
|
24
|
+
],
|
|
25
|
+
"peerDependencies": {
|
|
26
|
+
"react": "^18 || ^19",
|
|
27
|
+
"react-dom": "^18 || ^19"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"react": "^19.0.0",
|
|
31
|
+
"react-dom": "^19.0.0",
|
|
32
|
+
"@carbon/react": "^1.97.0",
|
|
33
|
+
"@carbon/styles": "^1.96.0",
|
|
34
|
+
"@types/react": "^19.0.0",
|
|
35
|
+
"@types/react-dom": "^19.0.0",
|
|
36
|
+
"sass": "^1.69.0",
|
|
37
|
+
"typescript": "^5.3.3",
|
|
38
|
+
"vite": "^5.0.0",
|
|
39
|
+
"vite-plugin-dts": "^3.6.0"
|
|
40
|
+
},
|
|
41
|
+
"scripts": {
|
|
42
|
+
"build": "vite build",
|
|
43
|
+
"lint": "echo \"No lint configured for theme aggregator\"",
|
|
44
|
+
"test": "echo \"No tests for theme aggregator\"",
|
|
45
|
+
"typecheck": "tsc --noEmit"
|
|
46
|
+
}
|
|
47
|
+
}
|