@admin-layout/client 9.0.2-alpha.4 → 9.0.4-alpha.102
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/lib/antd-themes/ThemeProvider.d.ts +432 -0
- package/lib/antd-themes/ThemeProvider.d.ts.map +1 -0
- package/lib/antd-themes/ThemeProvider.js +35 -0
- package/lib/antd-themes/ThemeProvider.js.map +1 -0
- package/lib/antd-themes/airbnb-dark-theme.d.ts +230 -0
- package/lib/antd-themes/airbnb-dark-theme.d.ts.map +1 -0
- package/lib/antd-themes/airbnb-dark-theme.js +168 -0
- package/lib/antd-themes/airbnb-dark-theme.js.map +1 -0
- package/lib/antd-themes/airbnb-light-theme.d.ts +230 -0
- package/lib/antd-themes/airbnb-light-theme.d.ts.map +1 -0
- package/lib/antd-themes/airbnb-light-theme.js +168 -0
- package/lib/antd-themes/airbnb-light-theme.js.map +1 -0
- package/lib/antd-themes/colors.d.ts +29 -0
- package/lib/antd-themes/colors.d.ts.map +1 -0
- package/lib/antd-themes/colors.js +67 -0
- package/lib/antd-themes/colors.js.map +1 -0
- package/lib/antd-themes/default-dark-theme.d.ts +199 -0
- package/lib/antd-themes/default-dark-theme.d.ts.map +1 -0
- package/lib/antd-themes/default-dark-theme.js +136 -0
- package/lib/antd-themes/default-dark-theme.js.map +1 -0
- package/lib/antd-themes/default-light-theme.d.ts +199 -0
- package/lib/antd-themes/default-light-theme.d.ts.map +1 -0
- package/lib/antd-themes/default-light-theme.js +136 -0
- package/lib/antd-themes/default-light-theme.js.map +1 -0
- package/lib/antd-themes/github-dark-theme.d.ts +230 -0
- package/lib/antd-themes/github-dark-theme.d.ts.map +1 -0
- package/lib/antd-themes/github-dark-theme.js +168 -0
- package/lib/antd-themes/github-dark-theme.js.map +1 -0
- package/lib/antd-themes/github-light-theme.d.ts +230 -0
- package/lib/antd-themes/github-light-theme.d.ts.map +1 -0
- package/lib/antd-themes/github-light-theme.js +168 -0
- package/lib/antd-themes/github-light-theme.js.map +1 -0
- package/lib/antd-themes/index.d.ts +14 -0
- package/lib/antd-themes/index.d.ts.map +1 -0
- package/lib/antd-themes/slack-dark-theme.d.ts +229 -0
- package/lib/antd-themes/slack-dark-theme.d.ts.map +1 -0
- package/lib/antd-themes/slack-dark-theme.js +167 -0
- package/lib/antd-themes/slack-dark-theme.js.map +1 -0
- package/lib/antd-themes/slack-light-theme.d.ts +229 -0
- package/lib/antd-themes/slack-light-theme.d.ts.map +1 -0
- package/lib/antd-themes/slack-light-theme.js +167 -0
- package/lib/antd-themes/slack-light-theme.js.map +1 -0
- package/lib/antd-themes/spotify-dark-theme.d.ts +230 -0
- package/lib/antd-themes/spotify-dark-theme.d.ts.map +1 -0
- package/lib/antd-themes/spotify-dark-theme.js +168 -0
- package/lib/antd-themes/spotify-dark-theme.js.map +1 -0
- package/lib/antd-themes/spotify-light-theme.d.ts +230 -0
- package/lib/antd-themes/spotify-light-theme.d.ts.map +1 -0
- package/lib/antd-themes/spotify-light-theme.js +168 -0
- package/lib/antd-themes/spotify-light-theme.js.map +1 -0
- package/lib/antd-themes/themeRegistry.d.ts +2229 -0
- package/lib/antd-themes/themeRegistry.d.ts.map +1 -0
- package/lib/antd-themes/themeRegistry.js +12 -0
- package/lib/antd-themes/themeRegistry.js.map +1 -0
- package/lib/components/ApplicationErrorHandlerCommon.js.map +1 -1
- package/lib/components/ErrorBoundaryCommon.js.map +1 -1
- package/lib/components/UpdateSettings/UpdateSettings.server.d.ts +7 -0
- package/lib/components/UpdateSettings/UpdateSettings.server.d.ts.map +1 -0
- package/lib/components/UpdateSettings/UpdateSettings.server.js +36 -0
- package/lib/components/UpdateSettings/UpdateSettings.server.js.map +1 -0
- package/lib/config/defaultSettings.d.ts +5 -0
- package/lib/config/defaultSettings.d.ts.map +1 -1
- package/lib/config/defaultSettings.js +6 -2
- package/lib/config/defaultSettings.js.map +1 -1
- package/lib/config/env-config.d.ts +2 -2
- package/lib/config/env-config.d.ts.map +1 -1
- package/lib/config/env-config.js +2 -1
- package/lib/config/env-config.js.map +1 -1
- package/lib/config/index.d.ts +1 -0
- package/lib/config/index.d.ts.map +1 -1
- package/lib/constants/constants.js.map +1 -1
- package/lib/constants/error.js.map +1 -1
- package/lib/constants/languages.d.ts +1 -0
- package/lib/constants/languages.d.ts.map +1 -1
- package/lib/constants/languages.js +51 -51
- package/lib/constants/languages.js.map +1 -1
- package/lib/constants/layout.js.map +1 -1
- package/lib/graphql/link/error-link.d.ts.map +1 -1
- package/lib/graphql/link/error-link.js +3 -3
- package/lib/graphql/link/error-link.js.map +1 -1
- package/lib/hooks/index.d.ts +2 -0
- package/lib/hooks/index.d.ts.map +1 -0
- package/lib/hooks/useSettings.d.ts +5 -0
- package/lib/hooks/useSettings.d.ts.map +1 -0
- package/lib/hooks/useSettings.js +70 -0
- package/lib/hooks/useSettings.js.map +1 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.native.d.ts +1 -0
- package/lib/index.native.d.ts.map +1 -1
- package/lib/index.native.js +1 -1
- package/lib/index.server.d.ts +2 -0
- package/lib/index.server.d.ts.map +1 -0
- package/lib/index.server.js +1 -0
- package/lib/index.server.js.map +1 -0
- package/lib/interfaces/default-settings.d.ts +5 -0
- package/lib/interfaces/default-settings.d.ts.map +1 -1
- package/lib/interfaces/layout/base-menu.d.ts +1 -0
- package/lib/interfaces/layout/base-menu.d.ts.map +1 -1
- package/lib/interfaces/layout/breadcrum.d.ts +1 -0
- package/lib/interfaces/layout/breadcrum.d.ts.map +1 -1
- package/lib/interfaces/layout/global-footer.d.ts +1 -0
- package/lib/interfaces/layout/global-footer.d.ts.map +1 -1
- package/lib/interfaces/layout/global-header.d.ts +1 -0
- package/lib/interfaces/layout/global-header.d.ts.map +1 -1
- package/lib/interfaces/layout/menu.d.ts +1 -0
- package/lib/interfaces/layout/menu.d.ts.map +1 -1
- package/lib/interfaces/layout/sider-menu.d.ts +1 -0
- package/lib/interfaces/layout/sider-menu.d.ts.map +1 -1
- package/lib/redux/actions/error-actions.d.ts +1 -1
- package/lib/redux/actions/error-actions.d.ts.map +1 -1
- package/lib/redux/actions/error-actions.js.map +1 -1
- package/lib/redux/hooks.d.ts +5 -0
- package/lib/redux/hooks.d.ts.map +1 -0
- package/lib/redux/hooks.js +5 -0
- package/lib/redux/hooks.js.map +1 -0
- package/lib/redux/index.d.ts +2 -0
- package/lib/redux/index.d.ts.map +1 -1
- package/lib/redux/reducers/error.d.ts.map +1 -1
- package/lib/redux/reducers/error.js.map +1 -1
- package/lib/redux/settings.d.ts +14 -9
- package/lib/redux/settings.d.ts.map +1 -1
- package/lib/redux/settings.js.map +1 -1
- package/lib/redux/store.js +9 -0
- package/lib/redux/store.js.map +1 -0
- package/lib/themes/templates/darkLayoutTheme.js.map +1 -1
- package/lib/utils/componentSize.js.map +1 -1
- package/lib/utils/generateMenuLink.d.ts +2 -0
- package/lib/utils/generateMenuLink.d.ts.map +1 -0
- package/lib/utils/generateMenuLink.js +81 -0
- package/lib/utils/generateMenuLink.js.map +1 -0
- package/lib/utils/getAntdLocale.d.ts +3 -0
- package/lib/utils/getAntdLocale.d.ts.map +1 -0
- package/lib/utils/getAntdLocale.js +18 -0
- package/lib/utils/getAntdLocale.js.map +1 -0
- package/lib/utils/index.d.ts +3 -0
- package/lib/utils/index.d.ts.map +1 -1
- package/lib/utils/matchMenuKeys.d.ts +11 -0
- package/lib/utils/matchMenuKeys.d.ts.map +1 -0
- package/lib/utils/matchMenuKeys.js +44 -0
- package/lib/utils/matchMenuKeys.js.map +1 -0
- package/lib/utils/menuUtils.js.map +1 -1
- package/lib/utils/seperatedMenus.js.map +1 -1
- package/package.json +4 -2
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import {theme}from'antd';const { defaultAlgorithm, darkAlgorithm } = theme;
|
|
2
|
+
const airbnbDarkTheme = {
|
|
3
|
+
algorithm: darkAlgorithm,
|
|
4
|
+
token: {
|
|
5
|
+
colorPrimary: '#FF385C',
|
|
6
|
+
colorBgContainer: '#121212',
|
|
7
|
+
colorText: '#E0E0E0',
|
|
8
|
+
colorTextSecondary: '#A0A0A0',
|
|
9
|
+
fontFamily: 'Circular, -apple-system, BlinkMacSystemFont, Roboto, Helvetica Neue, sans-serif',
|
|
10
|
+
borderRadius: 8,
|
|
11
|
+
colorLink: '#00A699',
|
|
12
|
+
colorLinkHover: '#00C2B3',
|
|
13
|
+
colorLinkActive: '#00C2B3',
|
|
14
|
+
},
|
|
15
|
+
components: {
|
|
16
|
+
Button: {
|
|
17
|
+
// colorPrimary: '#FF385C',
|
|
18
|
+
algorithm: true,
|
|
19
|
+
borderRadius: 8,
|
|
20
|
+
controlHeight: 48,
|
|
21
|
+
controlHeightLG: 56,
|
|
22
|
+
controlHeightSM: 40,
|
|
23
|
+
paddingContentHorizontal: 24,
|
|
24
|
+
},
|
|
25
|
+
Menu: {
|
|
26
|
+
itemBg: 'transparent',
|
|
27
|
+
itemColor: '#E0E0E0',
|
|
28
|
+
itemHoverColor: '#FF385C',
|
|
29
|
+
itemSelectedColor: '#FF385C',
|
|
30
|
+
itemSelectedBg: '#2C2C2C',
|
|
31
|
+
itemHoverBg: '#2C2C2C',
|
|
32
|
+
activeBarWidth: 0,
|
|
33
|
+
activeBarHeight: 2,
|
|
34
|
+
activeBarBorderWidth: 0,
|
|
35
|
+
colorActiveBarColor: '#FF385C',
|
|
36
|
+
},
|
|
37
|
+
Typography: {
|
|
38
|
+
fontSizeHeading1: 44,
|
|
39
|
+
fontSizeHeading2: 32,
|
|
40
|
+
fontSizeHeading3: 24,
|
|
41
|
+
fontSizeHeading4: 20,
|
|
42
|
+
fontSizeHeading5: 16,
|
|
43
|
+
},
|
|
44
|
+
Form: {
|
|
45
|
+
labelColor: '#E0E0E0',
|
|
46
|
+
colorError: '#FF5A5F',
|
|
47
|
+
colorWarning: '#FFB400',
|
|
48
|
+
colorSuccess: '#00A699',
|
|
49
|
+
},
|
|
50
|
+
Input: {
|
|
51
|
+
controlHeight: 48,
|
|
52
|
+
controlHeightLG: 56,
|
|
53
|
+
controlHeightSM: 40,
|
|
54
|
+
paddingHorizontal: 16,
|
|
55
|
+
borderRadius: 8,
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
scopes: [
|
|
59
|
+
{
|
|
60
|
+
scope: ['Button'],
|
|
61
|
+
settings: {
|
|
62
|
+
default: {
|
|
63
|
+
background: '#2C2C2C',
|
|
64
|
+
foreground: '#E0E0E0',
|
|
65
|
+
border: '#4A4A4A',
|
|
66
|
+
},
|
|
67
|
+
primary: {
|
|
68
|
+
background: '#FF385C',
|
|
69
|
+
foreground: '#FFFFFF',
|
|
70
|
+
border: '#FF385C',
|
|
71
|
+
},
|
|
72
|
+
hover: {
|
|
73
|
+
background: '#E31C5F',
|
|
74
|
+
foreground: '#FFFFFF',
|
|
75
|
+
border: '#E31C5F',
|
|
76
|
+
},
|
|
77
|
+
active: {
|
|
78
|
+
background: '#D70466',
|
|
79
|
+
foreground: '#FFFFFF',
|
|
80
|
+
border: '#D70466',
|
|
81
|
+
},
|
|
82
|
+
disabled: {
|
|
83
|
+
background: '#2C2C2C',
|
|
84
|
+
foreground: '#6E6E6E',
|
|
85
|
+
border: '#4A4A4A',
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
scope: ['Input'],
|
|
91
|
+
settings: {
|
|
92
|
+
default: {
|
|
93
|
+
background: '#2C2C2C',
|
|
94
|
+
foreground: '#E0E0E0',
|
|
95
|
+
border: '#4A4A4A',
|
|
96
|
+
},
|
|
97
|
+
focus: {
|
|
98
|
+
border: '#00A699',
|
|
99
|
+
boxShadow: '0 0 0 1px #00A699',
|
|
100
|
+
},
|
|
101
|
+
hover: {
|
|
102
|
+
border: '#A0A0A0',
|
|
103
|
+
},
|
|
104
|
+
disabled: {
|
|
105
|
+
background: '#1E1E1E',
|
|
106
|
+
foreground: '#6E6E6E',
|
|
107
|
+
border: '#4A4A4A',
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
scope: ['Menu'],
|
|
113
|
+
settings: {
|
|
114
|
+
background: '#121212',
|
|
115
|
+
item: {
|
|
116
|
+
default: {
|
|
117
|
+
background: 'transparent',
|
|
118
|
+
foreground: '#E0E0E0',
|
|
119
|
+
},
|
|
120
|
+
hover: {
|
|
121
|
+
background: '#2C2C2C',
|
|
122
|
+
foreground: '#E0E0E0',
|
|
123
|
+
},
|
|
124
|
+
active: {
|
|
125
|
+
background: '#2C2C2C',
|
|
126
|
+
foreground: '#FF385C',
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
scope: ['Table'],
|
|
133
|
+
settings: {
|
|
134
|
+
header: {
|
|
135
|
+
background: '#2C2C2C',
|
|
136
|
+
foreground: '#E0E0E0',
|
|
137
|
+
},
|
|
138
|
+
row: {
|
|
139
|
+
odd: {
|
|
140
|
+
background: '#121212',
|
|
141
|
+
},
|
|
142
|
+
even: {
|
|
143
|
+
background: '#1E1E1E',
|
|
144
|
+
},
|
|
145
|
+
hover: {
|
|
146
|
+
background: '#2C2C2C',
|
|
147
|
+
},
|
|
148
|
+
},
|
|
149
|
+
},
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
scope: ['Typography'],
|
|
153
|
+
settings: {
|
|
154
|
+
heading: {
|
|
155
|
+
1: { fontSize: 32, fontWeight: 800 },
|
|
156
|
+
2: { fontSize: 24, fontWeight: 600 },
|
|
157
|
+
3: { fontSize: 20, fontWeight: 600 },
|
|
158
|
+
4: { fontSize: 18, fontWeight: 600 },
|
|
159
|
+
5: { fontSize: 16, fontWeight: 600 },
|
|
160
|
+
},
|
|
161
|
+
text: {
|
|
162
|
+
default: { fontSize: 16, fontWeight: 400 },
|
|
163
|
+
secondary: { fontSize: 14, fontWeight: 400, foreground: '#A0A0A0' },
|
|
164
|
+
},
|
|
165
|
+
},
|
|
166
|
+
},
|
|
167
|
+
],
|
|
168
|
+
};export{airbnbDarkTheme};//# sourceMappingURL=airbnb-dark-theme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"airbnb-dark-theme.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
export declare const airbnbLightTheme: {
|
|
2
|
+
algorithm: typeof import("antd/es/theme/themes/default").default;
|
|
3
|
+
token: {
|
|
4
|
+
colorPrimary: string;
|
|
5
|
+
colorBgContainer: string;
|
|
6
|
+
colorText: string;
|
|
7
|
+
colorTextSecondary: string;
|
|
8
|
+
fontFamily: string;
|
|
9
|
+
borderRadius: number;
|
|
10
|
+
colorLink: string;
|
|
11
|
+
colorLinkHover: string;
|
|
12
|
+
colorLinkActive: string;
|
|
13
|
+
};
|
|
14
|
+
components: {
|
|
15
|
+
Button: {
|
|
16
|
+
algorithm: boolean;
|
|
17
|
+
borderRadius: number;
|
|
18
|
+
controlHeight: number;
|
|
19
|
+
controlHeightLG: number;
|
|
20
|
+
controlHeightSM: number;
|
|
21
|
+
paddingContentHorizontal: number;
|
|
22
|
+
};
|
|
23
|
+
Menu: {
|
|
24
|
+
itemBg: string;
|
|
25
|
+
itemColor: string;
|
|
26
|
+
itemHoverColor: string;
|
|
27
|
+
itemSelectedColor: string;
|
|
28
|
+
itemSelectedBg: string;
|
|
29
|
+
itemHoverBg: string;
|
|
30
|
+
activeBarWidth: number;
|
|
31
|
+
activeBarHeight: number;
|
|
32
|
+
activeBarBorderWidth: number;
|
|
33
|
+
colorActiveBarColor: string;
|
|
34
|
+
};
|
|
35
|
+
Typography: {
|
|
36
|
+
fontSizeHeading1: number;
|
|
37
|
+
fontSizeHeading2: number;
|
|
38
|
+
fontSizeHeading3: number;
|
|
39
|
+
fontSizeHeading4: number;
|
|
40
|
+
fontSizeHeading5: number;
|
|
41
|
+
};
|
|
42
|
+
Form: {
|
|
43
|
+
labelColor: string;
|
|
44
|
+
colorError: string;
|
|
45
|
+
colorWarning: string;
|
|
46
|
+
colorSuccess: string;
|
|
47
|
+
};
|
|
48
|
+
Input: {
|
|
49
|
+
controlHeight: number;
|
|
50
|
+
controlHeightLG: number;
|
|
51
|
+
controlHeightSM: number;
|
|
52
|
+
paddingHorizontal: number;
|
|
53
|
+
borderRadius: number;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
scopes: ({
|
|
57
|
+
scope: string[];
|
|
58
|
+
settings: {
|
|
59
|
+
default: {
|
|
60
|
+
background: string;
|
|
61
|
+
foreground: string;
|
|
62
|
+
border: string;
|
|
63
|
+
};
|
|
64
|
+
primary: {
|
|
65
|
+
background: string;
|
|
66
|
+
foreground: string;
|
|
67
|
+
border: string;
|
|
68
|
+
};
|
|
69
|
+
hover: {
|
|
70
|
+
background: string;
|
|
71
|
+
foreground: string;
|
|
72
|
+
border: string;
|
|
73
|
+
};
|
|
74
|
+
active: {
|
|
75
|
+
background: string;
|
|
76
|
+
foreground: string;
|
|
77
|
+
border: string;
|
|
78
|
+
};
|
|
79
|
+
disabled: {
|
|
80
|
+
background: string;
|
|
81
|
+
foreground: string;
|
|
82
|
+
border: string;
|
|
83
|
+
};
|
|
84
|
+
focus?: undefined;
|
|
85
|
+
background?: undefined;
|
|
86
|
+
item?: undefined;
|
|
87
|
+
header?: undefined;
|
|
88
|
+
row?: undefined;
|
|
89
|
+
heading?: undefined;
|
|
90
|
+
text?: undefined;
|
|
91
|
+
};
|
|
92
|
+
} | {
|
|
93
|
+
scope: string[];
|
|
94
|
+
settings: {
|
|
95
|
+
default: {
|
|
96
|
+
background: string;
|
|
97
|
+
foreground: string;
|
|
98
|
+
border: string;
|
|
99
|
+
};
|
|
100
|
+
focus: {
|
|
101
|
+
border: string;
|
|
102
|
+
boxShadow: string;
|
|
103
|
+
};
|
|
104
|
+
hover: {
|
|
105
|
+
border: string;
|
|
106
|
+
background?: undefined;
|
|
107
|
+
foreground?: undefined;
|
|
108
|
+
};
|
|
109
|
+
disabled: {
|
|
110
|
+
background: string;
|
|
111
|
+
foreground: string;
|
|
112
|
+
border: string;
|
|
113
|
+
};
|
|
114
|
+
primary?: undefined;
|
|
115
|
+
active?: undefined;
|
|
116
|
+
background?: undefined;
|
|
117
|
+
item?: undefined;
|
|
118
|
+
header?: undefined;
|
|
119
|
+
row?: undefined;
|
|
120
|
+
heading?: undefined;
|
|
121
|
+
text?: undefined;
|
|
122
|
+
};
|
|
123
|
+
} | {
|
|
124
|
+
scope: string[];
|
|
125
|
+
settings: {
|
|
126
|
+
background: string;
|
|
127
|
+
item: {
|
|
128
|
+
default: {
|
|
129
|
+
background: string;
|
|
130
|
+
foreground: string;
|
|
131
|
+
};
|
|
132
|
+
hover: {
|
|
133
|
+
background: string;
|
|
134
|
+
foreground: string;
|
|
135
|
+
};
|
|
136
|
+
active: {
|
|
137
|
+
background: string;
|
|
138
|
+
foreground: string;
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
default?: undefined;
|
|
142
|
+
primary?: undefined;
|
|
143
|
+
hover?: undefined;
|
|
144
|
+
active?: undefined;
|
|
145
|
+
disabled?: undefined;
|
|
146
|
+
focus?: undefined;
|
|
147
|
+
header?: undefined;
|
|
148
|
+
row?: undefined;
|
|
149
|
+
heading?: undefined;
|
|
150
|
+
text?: undefined;
|
|
151
|
+
};
|
|
152
|
+
} | {
|
|
153
|
+
scope: string[];
|
|
154
|
+
settings: {
|
|
155
|
+
header: {
|
|
156
|
+
background: string;
|
|
157
|
+
foreground: string;
|
|
158
|
+
};
|
|
159
|
+
row: {
|
|
160
|
+
odd: {
|
|
161
|
+
background: string;
|
|
162
|
+
};
|
|
163
|
+
even: {
|
|
164
|
+
background: string;
|
|
165
|
+
};
|
|
166
|
+
hover: {
|
|
167
|
+
background: string;
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
default?: undefined;
|
|
171
|
+
primary?: undefined;
|
|
172
|
+
hover?: undefined;
|
|
173
|
+
active?: undefined;
|
|
174
|
+
disabled?: undefined;
|
|
175
|
+
focus?: undefined;
|
|
176
|
+
background?: undefined;
|
|
177
|
+
item?: undefined;
|
|
178
|
+
heading?: undefined;
|
|
179
|
+
text?: undefined;
|
|
180
|
+
};
|
|
181
|
+
} | {
|
|
182
|
+
scope: string[];
|
|
183
|
+
settings: {
|
|
184
|
+
heading: {
|
|
185
|
+
1: {
|
|
186
|
+
fontSize: number;
|
|
187
|
+
fontWeight: number;
|
|
188
|
+
};
|
|
189
|
+
2: {
|
|
190
|
+
fontSize: number;
|
|
191
|
+
fontWeight: number;
|
|
192
|
+
};
|
|
193
|
+
3: {
|
|
194
|
+
fontSize: number;
|
|
195
|
+
fontWeight: number;
|
|
196
|
+
};
|
|
197
|
+
4: {
|
|
198
|
+
fontSize: number;
|
|
199
|
+
fontWeight: number;
|
|
200
|
+
};
|
|
201
|
+
5: {
|
|
202
|
+
fontSize: number;
|
|
203
|
+
fontWeight: number;
|
|
204
|
+
};
|
|
205
|
+
};
|
|
206
|
+
text: {
|
|
207
|
+
default: {
|
|
208
|
+
fontSize: number;
|
|
209
|
+
fontWeight: number;
|
|
210
|
+
};
|
|
211
|
+
secondary: {
|
|
212
|
+
fontSize: number;
|
|
213
|
+
fontWeight: number;
|
|
214
|
+
foreground: string;
|
|
215
|
+
};
|
|
216
|
+
};
|
|
217
|
+
default?: undefined;
|
|
218
|
+
primary?: undefined;
|
|
219
|
+
hover?: undefined;
|
|
220
|
+
active?: undefined;
|
|
221
|
+
disabled?: undefined;
|
|
222
|
+
focus?: undefined;
|
|
223
|
+
background?: undefined;
|
|
224
|
+
item?: undefined;
|
|
225
|
+
header?: undefined;
|
|
226
|
+
row?: undefined;
|
|
227
|
+
};
|
|
228
|
+
})[];
|
|
229
|
+
};
|
|
230
|
+
//# sourceMappingURL=airbnb-light-theme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"airbnb-light-theme.d.ts","sourceRoot":"","sources":["../../src/antd-themes/airbnb-light-theme.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsK5B,CAAC"}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import {theme}from'antd';const { defaultAlgorithm, darkAlgorithm } = theme;
|
|
2
|
+
const airbnbLightTheme = {
|
|
3
|
+
algorithm: defaultAlgorithm,
|
|
4
|
+
token: {
|
|
5
|
+
colorPrimary: '#ff385c',
|
|
6
|
+
colorBgContainer: '#ffffff',
|
|
7
|
+
colorText: '#222222',
|
|
8
|
+
colorTextSecondary: '#717171',
|
|
9
|
+
fontFamily: 'Circular, -apple-system, BlinkMacSystemFont, Roboto, Helvetica Neue, sans-serif',
|
|
10
|
+
borderRadius: 8,
|
|
11
|
+
colorLink: '#008489',
|
|
12
|
+
colorLinkHover: '#006c70',
|
|
13
|
+
colorLinkActive: '#006c70',
|
|
14
|
+
},
|
|
15
|
+
components: {
|
|
16
|
+
Button: {
|
|
17
|
+
// colorPrimary: '#ff385c',
|
|
18
|
+
algorithm: true,
|
|
19
|
+
borderRadius: 8,
|
|
20
|
+
controlHeight: 48,
|
|
21
|
+
controlHeightLG: 56,
|
|
22
|
+
controlHeightSM: 40,
|
|
23
|
+
paddingContentHorizontal: 24,
|
|
24
|
+
},
|
|
25
|
+
Menu: {
|
|
26
|
+
itemBg: 'transparent',
|
|
27
|
+
itemColor: '#222222',
|
|
28
|
+
itemHoverColor: '#ff385c',
|
|
29
|
+
itemSelectedColor: '#ff385c',
|
|
30
|
+
itemSelectedBg: '#fff8f6',
|
|
31
|
+
itemHoverBg: '#f7f7f7',
|
|
32
|
+
activeBarWidth: 0,
|
|
33
|
+
activeBarHeight: 2,
|
|
34
|
+
activeBarBorderWidth: 0,
|
|
35
|
+
colorActiveBarColor: '#ff385c',
|
|
36
|
+
},
|
|
37
|
+
Typography: {
|
|
38
|
+
fontSizeHeading1: 44,
|
|
39
|
+
fontSizeHeading2: 32,
|
|
40
|
+
fontSizeHeading3: 24,
|
|
41
|
+
fontSizeHeading4: 20,
|
|
42
|
+
fontSizeHeading5: 16,
|
|
43
|
+
},
|
|
44
|
+
Form: {
|
|
45
|
+
labelColor: '#222222',
|
|
46
|
+
colorError: '#c13515',
|
|
47
|
+
colorWarning: '#ffaf0f',
|
|
48
|
+
colorSuccess: '#008489',
|
|
49
|
+
},
|
|
50
|
+
Input: {
|
|
51
|
+
controlHeight: 48,
|
|
52
|
+
controlHeightLG: 56,
|
|
53
|
+
controlHeightSM: 40,
|
|
54
|
+
paddingHorizontal: 16,
|
|
55
|
+
borderRadius: 8,
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
scopes: [
|
|
59
|
+
{
|
|
60
|
+
scope: ['Button'],
|
|
61
|
+
settings: {
|
|
62
|
+
default: {
|
|
63
|
+
background: '#ffffff',
|
|
64
|
+
foreground: '#222222',
|
|
65
|
+
border: '#B0B0B0',
|
|
66
|
+
},
|
|
67
|
+
primary: {
|
|
68
|
+
background: '#FF385C',
|
|
69
|
+
foreground: '#ffffff',
|
|
70
|
+
border: '#FF385C',
|
|
71
|
+
},
|
|
72
|
+
hover: {
|
|
73
|
+
background: '#DE1162',
|
|
74
|
+
foreground: '#ffffff',
|
|
75
|
+
border: '#DE1162',
|
|
76
|
+
},
|
|
77
|
+
active: {
|
|
78
|
+
background: '#BD1E59',
|
|
79
|
+
foreground: '#ffffff',
|
|
80
|
+
border: '#BD1E59',
|
|
81
|
+
},
|
|
82
|
+
disabled: {
|
|
83
|
+
background: '#F7F7F7',
|
|
84
|
+
foreground: '#DDDDDD',
|
|
85
|
+
border: '#DDDDDD',
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
scope: ['Input'],
|
|
91
|
+
settings: {
|
|
92
|
+
default: {
|
|
93
|
+
background: '#ffffff',
|
|
94
|
+
foreground: '#222222',
|
|
95
|
+
border: '#B0B0B0',
|
|
96
|
+
},
|
|
97
|
+
focus: {
|
|
98
|
+
border: '#008489',
|
|
99
|
+
boxShadow: '0 0 0 1px #008489',
|
|
100
|
+
},
|
|
101
|
+
hover: {
|
|
102
|
+
border: '#717171',
|
|
103
|
+
},
|
|
104
|
+
disabled: {
|
|
105
|
+
background: '#F7F7F7',
|
|
106
|
+
foreground: '#DDDDDD',
|
|
107
|
+
border: '#DDDDDD',
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
scope: ['Menu'],
|
|
113
|
+
settings: {
|
|
114
|
+
background: '#ffffff',
|
|
115
|
+
item: {
|
|
116
|
+
default: {
|
|
117
|
+
background: 'transparent',
|
|
118
|
+
foreground: '#222222',
|
|
119
|
+
},
|
|
120
|
+
hover: {
|
|
121
|
+
background: '#F7F7F7',
|
|
122
|
+
foreground: '#222222',
|
|
123
|
+
},
|
|
124
|
+
active: {
|
|
125
|
+
background: '#F7F7F7',
|
|
126
|
+
foreground: '#FF385C',
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
scope: ['Table'],
|
|
133
|
+
settings: {
|
|
134
|
+
header: {
|
|
135
|
+
background: '#F7F7F7',
|
|
136
|
+
foreground: '#222222',
|
|
137
|
+
},
|
|
138
|
+
row: {
|
|
139
|
+
odd: {
|
|
140
|
+
background: '#ffffff',
|
|
141
|
+
},
|
|
142
|
+
even: {
|
|
143
|
+
background: '#F7F7F7',
|
|
144
|
+
},
|
|
145
|
+
hover: {
|
|
146
|
+
background: '#F7F7F7',
|
|
147
|
+
},
|
|
148
|
+
},
|
|
149
|
+
},
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
scope: ['Typography'],
|
|
153
|
+
settings: {
|
|
154
|
+
heading: {
|
|
155
|
+
1: { fontSize: 32, fontWeight: 800 },
|
|
156
|
+
2: { fontSize: 24, fontWeight: 600 },
|
|
157
|
+
3: { fontSize: 20, fontWeight: 600 },
|
|
158
|
+
4: { fontSize: 18, fontWeight: 600 },
|
|
159
|
+
5: { fontSize: 16, fontWeight: 600 },
|
|
160
|
+
},
|
|
161
|
+
text: {
|
|
162
|
+
default: { fontSize: 16, fontWeight: 400 },
|
|
163
|
+
secondary: { fontSize: 14, fontWeight: 400, foreground: '#717171' },
|
|
164
|
+
},
|
|
165
|
+
},
|
|
166
|
+
},
|
|
167
|
+
],
|
|
168
|
+
};export{airbnbLightTheme};//# sourceMappingURL=airbnb-light-theme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"airbnb-light-theme.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export declare const colorList: {
|
|
2
|
+
default: {
|
|
3
|
+
key: string;
|
|
4
|
+
color: string;
|
|
5
|
+
}[];
|
|
6
|
+
airbnb: {
|
|
7
|
+
key: string;
|
|
8
|
+
color: string;
|
|
9
|
+
}[];
|
|
10
|
+
slack: {
|
|
11
|
+
key: string;
|
|
12
|
+
color: string;
|
|
13
|
+
}[];
|
|
14
|
+
github: {
|
|
15
|
+
key: string;
|
|
16
|
+
color: string;
|
|
17
|
+
}[];
|
|
18
|
+
spotify: {
|
|
19
|
+
key: string;
|
|
20
|
+
color: string;
|
|
21
|
+
}[];
|
|
22
|
+
};
|
|
23
|
+
type ThemeKey = keyof typeof colorList;
|
|
24
|
+
export declare const getThemeColors: (theme?: ThemeKey) => {
|
|
25
|
+
key: string;
|
|
26
|
+
color: string;
|
|
27
|
+
}[];
|
|
28
|
+
export {};
|
|
29
|
+
//# sourceMappingURL=colors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../src/antd-themes/colors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;CA4DrB,CAAC;AAEF,KAAK,QAAQ,GAAG,MAAM,OAAO,SAAS,CAAC;AAEvC,eAAO,MAAM,cAAc,WAAY,QAAQ;;;GAK9C,CAAC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
const colorList = {
|
|
2
|
+
default: [
|
|
3
|
+
{ key: 'techBlue', color: '#1677FF' },
|
|
4
|
+
{ key: 'daybreak', color: '#1890ff' },
|
|
5
|
+
{ key: 'dust', color: '#F5222D' },
|
|
6
|
+
{ key: 'volcano', color: '#FA541C' },
|
|
7
|
+
{ key: 'sunset', color: '#FAAD14' },
|
|
8
|
+
{ key: 'cyan', color: '#13C2C2' },
|
|
9
|
+
{ key: 'green', color: '#52C41A' },
|
|
10
|
+
{ key: 'geekblue', color: '#2F54EB' },
|
|
11
|
+
{ key: 'purple', color: '#722ED1' },
|
|
12
|
+
],
|
|
13
|
+
airbnb: [
|
|
14
|
+
{ key: 'rausch', color: '#FF5A5F' },
|
|
15
|
+
{ key: 'babu', color: '#00A699' },
|
|
16
|
+
{ key: 'arches', color: '#FC642D' },
|
|
17
|
+
{ key: 'hof', color: '#484848' },
|
|
18
|
+
{ key: 'foggy', color: '#767676' },
|
|
19
|
+
{ key: 'hackberry', color: '#7B0051' },
|
|
20
|
+
{ key: 'kazan', color: '#008489' },
|
|
21
|
+
{ key: 'beach', color: '#FFB400' },
|
|
22
|
+
{ key: 'tirol', color: '#6C63FF' },
|
|
23
|
+
],
|
|
24
|
+
slack: [
|
|
25
|
+
{ key: 'aubergine', color: '#4A154B' },
|
|
26
|
+
{ key: 'aubergineText', color: '#611F69' },
|
|
27
|
+
{ key: 'black', color: '#1D1C1D' },
|
|
28
|
+
{ key: 'blue', color: '#36C5F0' },
|
|
29
|
+
{ key: 'green', color: '#2EB67D' },
|
|
30
|
+
{ key: 'red', color: '#E01E5A' },
|
|
31
|
+
{ key: 'yellow', color: '#ECB22E' },
|
|
32
|
+
{ key: 'white', color: '#FFFFFF' },
|
|
33
|
+
{ key: 'slackGray', color: '#616061' },
|
|
34
|
+
{ key: 'slackSilver', color: '#DDD9D5' },
|
|
35
|
+
],
|
|
36
|
+
github: [
|
|
37
|
+
{ key: 'gray0', color: '#0D1117' },
|
|
38
|
+
{ key: 'gray1', color: '#161B22' },
|
|
39
|
+
{ key: 'gray2', color: '#21262D' },
|
|
40
|
+
{ key: 'gray3', color: '#30363D' },
|
|
41
|
+
{ key: 'gray4', color: '#8B949E' },
|
|
42
|
+
{ key: 'gray5', color: '#C9D1D9' },
|
|
43
|
+
{ key: 'blue', color: '#58A6FF' },
|
|
44
|
+
{ key: 'green', color: '#3FB950' },
|
|
45
|
+
{ key: 'orange', color: '#F0883E' },
|
|
46
|
+
{ key: 'red', color: '#F85149' },
|
|
47
|
+
{ key: 'purple', color: '#8957E5' },
|
|
48
|
+
],
|
|
49
|
+
spotify: [
|
|
50
|
+
{ key: 'spotifyGreen', color: '#1DB954' },
|
|
51
|
+
{ key: 'black', color: '#191414' },
|
|
52
|
+
{ key: 'white', color: '#FFFFFF' },
|
|
53
|
+
{ key: 'brightGreen', color: '#1ED760' },
|
|
54
|
+
{ key: 'blue', color: '#2941AB' },
|
|
55
|
+
{ key: 'orange', color: '#FF6437' },
|
|
56
|
+
{ key: 'pink', color: '#FF5864' },
|
|
57
|
+
{ key: 'purple', color: '#AF2896' },
|
|
58
|
+
{ key: 'gray', color: '#535353' },
|
|
59
|
+
{ key: 'lightGray', color: '#B3B3B3' },
|
|
60
|
+
],
|
|
61
|
+
};
|
|
62
|
+
const getThemeColors = (theme) => {
|
|
63
|
+
if (theme && theme in colorList) {
|
|
64
|
+
return colorList[theme];
|
|
65
|
+
}
|
|
66
|
+
return colorList.default;
|
|
67
|
+
};export{colorList,getThemeColors};//# sourceMappingURL=colors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"colors.js","sources":["../../src/antd-themes/colors.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA,MAAA,SAAsB,GAAA;;;;;;;;;;;;;;;;;;;;;QA4DpB,EAAA,GAAA,EAAA,OAAA,EAAA,KAAA,EAAA,SAAA,EAAA;AAEF,KAAK;AAEL,IAAO,KAAA,EAAA;;;QAKL,EAAA,GAAA,EAAA,OAAA,EAAA,KAAA,EAAA,SAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|