@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.
Files changed (145) hide show
  1. package/lib/antd-themes/ThemeProvider.d.ts +432 -0
  2. package/lib/antd-themes/ThemeProvider.d.ts.map +1 -0
  3. package/lib/antd-themes/ThemeProvider.js +35 -0
  4. package/lib/antd-themes/ThemeProvider.js.map +1 -0
  5. package/lib/antd-themes/airbnb-dark-theme.d.ts +230 -0
  6. package/lib/antd-themes/airbnb-dark-theme.d.ts.map +1 -0
  7. package/lib/antd-themes/airbnb-dark-theme.js +168 -0
  8. package/lib/antd-themes/airbnb-dark-theme.js.map +1 -0
  9. package/lib/antd-themes/airbnb-light-theme.d.ts +230 -0
  10. package/lib/antd-themes/airbnb-light-theme.d.ts.map +1 -0
  11. package/lib/antd-themes/airbnb-light-theme.js +168 -0
  12. package/lib/antd-themes/airbnb-light-theme.js.map +1 -0
  13. package/lib/antd-themes/colors.d.ts +29 -0
  14. package/lib/antd-themes/colors.d.ts.map +1 -0
  15. package/lib/antd-themes/colors.js +67 -0
  16. package/lib/antd-themes/colors.js.map +1 -0
  17. package/lib/antd-themes/default-dark-theme.d.ts +199 -0
  18. package/lib/antd-themes/default-dark-theme.d.ts.map +1 -0
  19. package/lib/antd-themes/default-dark-theme.js +136 -0
  20. package/lib/antd-themes/default-dark-theme.js.map +1 -0
  21. package/lib/antd-themes/default-light-theme.d.ts +199 -0
  22. package/lib/antd-themes/default-light-theme.d.ts.map +1 -0
  23. package/lib/antd-themes/default-light-theme.js +136 -0
  24. package/lib/antd-themes/default-light-theme.js.map +1 -0
  25. package/lib/antd-themes/github-dark-theme.d.ts +230 -0
  26. package/lib/antd-themes/github-dark-theme.d.ts.map +1 -0
  27. package/lib/antd-themes/github-dark-theme.js +168 -0
  28. package/lib/antd-themes/github-dark-theme.js.map +1 -0
  29. package/lib/antd-themes/github-light-theme.d.ts +230 -0
  30. package/lib/antd-themes/github-light-theme.d.ts.map +1 -0
  31. package/lib/antd-themes/github-light-theme.js +168 -0
  32. package/lib/antd-themes/github-light-theme.js.map +1 -0
  33. package/lib/antd-themes/index.d.ts +14 -0
  34. package/lib/antd-themes/index.d.ts.map +1 -0
  35. package/lib/antd-themes/slack-dark-theme.d.ts +229 -0
  36. package/lib/antd-themes/slack-dark-theme.d.ts.map +1 -0
  37. package/lib/antd-themes/slack-dark-theme.js +167 -0
  38. package/lib/antd-themes/slack-dark-theme.js.map +1 -0
  39. package/lib/antd-themes/slack-light-theme.d.ts +229 -0
  40. package/lib/antd-themes/slack-light-theme.d.ts.map +1 -0
  41. package/lib/antd-themes/slack-light-theme.js +167 -0
  42. package/lib/antd-themes/slack-light-theme.js.map +1 -0
  43. package/lib/antd-themes/spotify-dark-theme.d.ts +230 -0
  44. package/lib/antd-themes/spotify-dark-theme.d.ts.map +1 -0
  45. package/lib/antd-themes/spotify-dark-theme.js +168 -0
  46. package/lib/antd-themes/spotify-dark-theme.js.map +1 -0
  47. package/lib/antd-themes/spotify-light-theme.d.ts +230 -0
  48. package/lib/antd-themes/spotify-light-theme.d.ts.map +1 -0
  49. package/lib/antd-themes/spotify-light-theme.js +168 -0
  50. package/lib/antd-themes/spotify-light-theme.js.map +1 -0
  51. package/lib/antd-themes/themeRegistry.d.ts +2229 -0
  52. package/lib/antd-themes/themeRegistry.d.ts.map +1 -0
  53. package/lib/antd-themes/themeRegistry.js +12 -0
  54. package/lib/antd-themes/themeRegistry.js.map +1 -0
  55. package/lib/components/ApplicationErrorHandlerCommon.js.map +1 -1
  56. package/lib/components/ErrorBoundaryCommon.js.map +1 -1
  57. package/lib/components/UpdateSettings/UpdateSettings.server.d.ts +7 -0
  58. package/lib/components/UpdateSettings/UpdateSettings.server.d.ts.map +1 -0
  59. package/lib/components/UpdateSettings/UpdateSettings.server.js +36 -0
  60. package/lib/components/UpdateSettings/UpdateSettings.server.js.map +1 -0
  61. package/lib/config/defaultSettings.d.ts +5 -0
  62. package/lib/config/defaultSettings.d.ts.map +1 -1
  63. package/lib/config/defaultSettings.js +6 -2
  64. package/lib/config/defaultSettings.js.map +1 -1
  65. package/lib/config/env-config.d.ts +2 -2
  66. package/lib/config/env-config.d.ts.map +1 -1
  67. package/lib/config/env-config.js +2 -1
  68. package/lib/config/env-config.js.map +1 -1
  69. package/lib/config/index.d.ts +1 -0
  70. package/lib/config/index.d.ts.map +1 -1
  71. package/lib/constants/constants.js.map +1 -1
  72. package/lib/constants/error.js.map +1 -1
  73. package/lib/constants/languages.d.ts +1 -0
  74. package/lib/constants/languages.d.ts.map +1 -1
  75. package/lib/constants/languages.js +51 -51
  76. package/lib/constants/languages.js.map +1 -1
  77. package/lib/constants/layout.js.map +1 -1
  78. package/lib/graphql/link/error-link.d.ts.map +1 -1
  79. package/lib/graphql/link/error-link.js +3 -3
  80. package/lib/graphql/link/error-link.js.map +1 -1
  81. package/lib/hooks/index.d.ts +2 -0
  82. package/lib/hooks/index.d.ts.map +1 -0
  83. package/lib/hooks/useSettings.d.ts +5 -0
  84. package/lib/hooks/useSettings.d.ts.map +1 -0
  85. package/lib/hooks/useSettings.js +70 -0
  86. package/lib/hooks/useSettings.js.map +1 -0
  87. package/lib/index.d.ts +3 -0
  88. package/lib/index.d.ts.map +1 -1
  89. package/lib/index.js +1 -1
  90. package/lib/index.native.d.ts +1 -0
  91. package/lib/index.native.d.ts.map +1 -1
  92. package/lib/index.native.js +1 -1
  93. package/lib/index.server.d.ts +2 -0
  94. package/lib/index.server.d.ts.map +1 -0
  95. package/lib/index.server.js +1 -0
  96. package/lib/index.server.js.map +1 -0
  97. package/lib/interfaces/default-settings.d.ts +5 -0
  98. package/lib/interfaces/default-settings.d.ts.map +1 -1
  99. package/lib/interfaces/layout/base-menu.d.ts +1 -0
  100. package/lib/interfaces/layout/base-menu.d.ts.map +1 -1
  101. package/lib/interfaces/layout/breadcrum.d.ts +1 -0
  102. package/lib/interfaces/layout/breadcrum.d.ts.map +1 -1
  103. package/lib/interfaces/layout/global-footer.d.ts +1 -0
  104. package/lib/interfaces/layout/global-footer.d.ts.map +1 -1
  105. package/lib/interfaces/layout/global-header.d.ts +1 -0
  106. package/lib/interfaces/layout/global-header.d.ts.map +1 -1
  107. package/lib/interfaces/layout/menu.d.ts +1 -0
  108. package/lib/interfaces/layout/menu.d.ts.map +1 -1
  109. package/lib/interfaces/layout/sider-menu.d.ts +1 -0
  110. package/lib/interfaces/layout/sider-menu.d.ts.map +1 -1
  111. package/lib/redux/actions/error-actions.d.ts +1 -1
  112. package/lib/redux/actions/error-actions.d.ts.map +1 -1
  113. package/lib/redux/actions/error-actions.js.map +1 -1
  114. package/lib/redux/hooks.d.ts +5 -0
  115. package/lib/redux/hooks.d.ts.map +1 -0
  116. package/lib/redux/hooks.js +5 -0
  117. package/lib/redux/hooks.js.map +1 -0
  118. package/lib/redux/index.d.ts +2 -0
  119. package/lib/redux/index.d.ts.map +1 -1
  120. package/lib/redux/reducers/error.d.ts.map +1 -1
  121. package/lib/redux/reducers/error.js.map +1 -1
  122. package/lib/redux/settings.d.ts +14 -9
  123. package/lib/redux/settings.d.ts.map +1 -1
  124. package/lib/redux/settings.js.map +1 -1
  125. package/lib/redux/store.js +9 -0
  126. package/lib/redux/store.js.map +1 -0
  127. package/lib/themes/templates/darkLayoutTheme.js.map +1 -1
  128. package/lib/utils/componentSize.js.map +1 -1
  129. package/lib/utils/generateMenuLink.d.ts +2 -0
  130. package/lib/utils/generateMenuLink.d.ts.map +1 -0
  131. package/lib/utils/generateMenuLink.js +81 -0
  132. package/lib/utils/generateMenuLink.js.map +1 -0
  133. package/lib/utils/getAntdLocale.d.ts +3 -0
  134. package/lib/utils/getAntdLocale.d.ts.map +1 -0
  135. package/lib/utils/getAntdLocale.js +18 -0
  136. package/lib/utils/getAntdLocale.js.map +1 -0
  137. package/lib/utils/index.d.ts +3 -0
  138. package/lib/utils/index.d.ts.map +1 -1
  139. package/lib/utils/matchMenuKeys.d.ts +11 -0
  140. package/lib/utils/matchMenuKeys.d.ts.map +1 -0
  141. package/lib/utils/matchMenuKeys.js +44 -0
  142. package/lib/utils/matchMenuKeys.js.map +1 -0
  143. package/lib/utils/menuUtils.js.map +1 -1
  144. package/lib/utils/seperatedMenus.js.map +1 -1
  145. package/package.json +4 -2
@@ -0,0 +1,168 @@
1
+ import {theme}from'antd';const { defaultAlgorithm, darkAlgorithm } = theme;
2
+ const githubLightTheme = {
3
+ algorithm: defaultAlgorithm,
4
+ token: {
5
+ colorPrimary: '#2da44e',
6
+ colorBgContainer: '#ffffff',
7
+ colorText: '#24292f',
8
+ colorTextSecondary: '#57606a',
9
+ fontFamily: '-apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif',
10
+ borderRadius: 6,
11
+ colorLink: '#0969da',
12
+ colorLinkHover: '#1a7f37',
13
+ colorLinkActive: '#1a7f37',
14
+ },
15
+ components: {
16
+ Button: {
17
+ // colorPrimary: '#2da44e',
18
+ algorithm: true,
19
+ borderRadius: 6,
20
+ controlHeight: 32,
21
+ controlHeightLG: 40,
22
+ controlHeightSM: 28,
23
+ paddingContentHorizontal: 12,
24
+ },
25
+ Menu: {
26
+ itemBg: 'transparent',
27
+ itemColor: '#24292f',
28
+ itemHoverColor: '#0969da',
29
+ itemSelectedColor: '#0969da',
30
+ itemSelectedBg: '#f6f8fa',
31
+ itemHoverBg: '#f6f8fa',
32
+ activeBarWidth: 0,
33
+ activeBarHeight: 0,
34
+ activeBarBorderWidth: 2,
35
+ colorActiveBarColor: '#0969da',
36
+ },
37
+ Typography: {
38
+ fontSizeHeading1: 32,
39
+ fontSizeHeading2: 24,
40
+ fontSizeHeading3: 20,
41
+ fontSizeHeading4: 16,
42
+ fontSizeHeading5: 14,
43
+ },
44
+ Form: {
45
+ labelColor: '#24292f',
46
+ colorError: '#cf222e',
47
+ colorWarning: '#9a6700',
48
+ colorSuccess: '#1a7f37',
49
+ },
50
+ Input: {
51
+ controlHeight: 32,
52
+ controlHeightLG: 40,
53
+ controlHeightSM: 28,
54
+ paddingHorizontal: 12,
55
+ borderRadius: 6,
56
+ },
57
+ },
58
+ scopes: [
59
+ {
60
+ scope: ['Button'],
61
+ settings: {
62
+ default: {
63
+ background: '#fafbfc',
64
+ foreground: '#24292e',
65
+ border: '#1b1f2326',
66
+ },
67
+ primary: {
68
+ background: '#2ea44f',
69
+ foreground: '#ffffff',
70
+ border: '#2ea44f',
71
+ },
72
+ hover: {
73
+ background: '#2c974b',
74
+ foreground: '#ffffff',
75
+ border: '#2c974b',
76
+ },
77
+ active: {
78
+ background: '#2a8f47',
79
+ foreground: '#ffffff',
80
+ border: '#2a8f47',
81
+ },
82
+ disabled: {
83
+ background: '#fafbfc',
84
+ foreground: '#959da5',
85
+ border: '#1b1f2326',
86
+ },
87
+ },
88
+ },
89
+ {
90
+ scope: ['Input'],
91
+ settings: {
92
+ default: {
93
+ background: '#ffffff',
94
+ foreground: '#24292e',
95
+ border: '#e1e4e8',
96
+ },
97
+ focus: {
98
+ border: '#0366d6',
99
+ boxShadow: '0 0 0 3px rgba(3, 102, 214, 0.3)',
100
+ },
101
+ hover: {
102
+ border: '#0366d6',
103
+ },
104
+ disabled: {
105
+ background: '#f6f8fa',
106
+ foreground: '#959da5',
107
+ border: '#e1e4e8',
108
+ },
109
+ },
110
+ },
111
+ {
112
+ scope: ['Menu'],
113
+ settings: {
114
+ background: '#ffffff',
115
+ item: {
116
+ default: {
117
+ background: 'transparent',
118
+ foreground: '#24292e',
119
+ },
120
+ hover: {
121
+ background: '#f6f8fa',
122
+ foreground: '#24292e',
123
+ },
124
+ active: {
125
+ background: '#f1f8ff',
126
+ foreground: '#0366d6',
127
+ },
128
+ },
129
+ },
130
+ },
131
+ {
132
+ scope: ['Table'],
133
+ settings: {
134
+ header: {
135
+ background: '#f6f8fa',
136
+ foreground: '#24292e',
137
+ },
138
+ row: {
139
+ odd: {
140
+ background: '#ffffff',
141
+ },
142
+ even: {
143
+ background: '#f6f8fa',
144
+ },
145
+ hover: {
146
+ background: '#f1f8ff',
147
+ },
148
+ },
149
+ },
150
+ },
151
+ {
152
+ scope: ['Typography'],
153
+ settings: {
154
+ heading: {
155
+ 1: { fontSize: 32, fontWeight: 600 },
156
+ 2: { fontSize: 24, fontWeight: 600 },
157
+ 3: { fontSize: 20, fontWeight: 600 },
158
+ 4: { fontSize: 16, fontWeight: 600 },
159
+ 5: { fontSize: 14, fontWeight: 600 },
160
+ },
161
+ text: {
162
+ default: { fontSize: 14, fontWeight: 400 },
163
+ secondary: { fontSize: 14, fontWeight: 400, foreground: '#586069' },
164
+ },
165
+ },
166
+ },
167
+ ],
168
+ };export{githubLightTheme};//# sourceMappingURL=github-light-theme.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"github-light-theme.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,14 @@
1
+ export * from './ThemeProvider';
2
+ export * from './airbnb-dark-theme';
3
+ export * from './airbnb-light-theme';
4
+ export * from './colors';
5
+ export * from './default-dark-theme';
6
+ export * from './default-light-theme';
7
+ export * from './github-dark-theme';
8
+ export * from './github-light-theme';
9
+ export * from './slack-dark-theme';
10
+ export * from './slack-light-theme';
11
+ export * from './spotify-dark-theme';
12
+ export * from './spotify-light-theme';
13
+ export * from './themeRegistry';
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/antd-themes/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,UAAU,CAAC;AACzB,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,229 @@
1
+ export declare const slackDarkTheme: {
2
+ algorithm: import("@ant-design/cssinjs").DerivativeFunc<import("antd/es/theme/interface").SeedToken, import("antd/es/theme/interface").MapToken>;
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
+ };
34
+ Typography: {
35
+ fontSizeHeading1: number;
36
+ fontSizeHeading2: number;
37
+ fontSizeHeading3: number;
38
+ fontSizeHeading4: number;
39
+ fontSizeHeading5: number;
40
+ };
41
+ Form: {
42
+ labelColor: string;
43
+ colorError: string;
44
+ colorWarning: string;
45
+ colorSuccess: string;
46
+ };
47
+ Input: {
48
+ controlHeight: number;
49
+ controlHeightLG: number;
50
+ controlHeightSM: number;
51
+ paddingHorizontal: number;
52
+ borderRadius: number;
53
+ };
54
+ };
55
+ scopes: ({
56
+ scope: string[];
57
+ settings: {
58
+ default: {
59
+ background: string;
60
+ foreground: string;
61
+ border: string;
62
+ };
63
+ primary: {
64
+ background: string;
65
+ foreground: string;
66
+ border: string;
67
+ };
68
+ hover: {
69
+ background: string;
70
+ foreground: string;
71
+ border: string;
72
+ };
73
+ active: {
74
+ background: string;
75
+ foreground: string;
76
+ border: string;
77
+ };
78
+ disabled: {
79
+ background: string;
80
+ foreground: string;
81
+ border: string;
82
+ };
83
+ focus?: undefined;
84
+ background?: undefined;
85
+ item?: undefined;
86
+ header?: undefined;
87
+ row?: undefined;
88
+ heading?: undefined;
89
+ text?: undefined;
90
+ };
91
+ } | {
92
+ scope: string[];
93
+ settings: {
94
+ default: {
95
+ background: string;
96
+ foreground: string;
97
+ border: string;
98
+ };
99
+ focus: {
100
+ border: string;
101
+ boxShadow: string;
102
+ };
103
+ hover: {
104
+ border: string;
105
+ background?: undefined;
106
+ foreground?: undefined;
107
+ };
108
+ disabled: {
109
+ background: string;
110
+ foreground: string;
111
+ border: string;
112
+ };
113
+ primary?: undefined;
114
+ active?: undefined;
115
+ background?: undefined;
116
+ item?: undefined;
117
+ header?: undefined;
118
+ row?: undefined;
119
+ heading?: undefined;
120
+ text?: undefined;
121
+ };
122
+ } | {
123
+ scope: string[];
124
+ settings: {
125
+ background: string;
126
+ item: {
127
+ default: {
128
+ background: string;
129
+ foreground: string;
130
+ };
131
+ hover: {
132
+ background: string;
133
+ foreground: string;
134
+ };
135
+ active: {
136
+ background: string;
137
+ foreground: string;
138
+ };
139
+ };
140
+ default?: undefined;
141
+ primary?: undefined;
142
+ hover?: undefined;
143
+ active?: undefined;
144
+ disabled?: undefined;
145
+ focus?: undefined;
146
+ header?: undefined;
147
+ row?: undefined;
148
+ heading?: undefined;
149
+ text?: undefined;
150
+ };
151
+ } | {
152
+ scope: string[];
153
+ settings: {
154
+ header: {
155
+ background: string;
156
+ foreground: string;
157
+ };
158
+ row: {
159
+ odd: {
160
+ background: string;
161
+ };
162
+ even: {
163
+ background: string;
164
+ };
165
+ hover: {
166
+ background: string;
167
+ };
168
+ };
169
+ default?: undefined;
170
+ primary?: undefined;
171
+ hover?: undefined;
172
+ active?: undefined;
173
+ disabled?: undefined;
174
+ focus?: undefined;
175
+ background?: undefined;
176
+ item?: undefined;
177
+ heading?: undefined;
178
+ text?: undefined;
179
+ };
180
+ } | {
181
+ scope: string[];
182
+ settings: {
183
+ heading: {
184
+ 1: {
185
+ fontSize: number;
186
+ fontWeight: number;
187
+ };
188
+ 2: {
189
+ fontSize: number;
190
+ fontWeight: number;
191
+ };
192
+ 3: {
193
+ fontSize: number;
194
+ fontWeight: number;
195
+ };
196
+ 4: {
197
+ fontSize: number;
198
+ fontWeight: number;
199
+ };
200
+ 5: {
201
+ fontSize: number;
202
+ fontWeight: number;
203
+ };
204
+ };
205
+ text: {
206
+ default: {
207
+ fontSize: number;
208
+ fontWeight: number;
209
+ };
210
+ secondary: {
211
+ fontSize: number;
212
+ fontWeight: number;
213
+ foreground: string;
214
+ };
215
+ };
216
+ default?: undefined;
217
+ primary?: undefined;
218
+ hover?: undefined;
219
+ active?: undefined;
220
+ disabled?: undefined;
221
+ focus?: undefined;
222
+ background?: undefined;
223
+ item?: undefined;
224
+ header?: undefined;
225
+ row?: undefined;
226
+ };
227
+ })[];
228
+ };
229
+ //# sourceMappingURL=slack-dark-theme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slack-dark-theme.d.ts","sourceRoot":"","sources":["../../src/antd-themes/slack-dark-theme.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqK1B,CAAC"}
@@ -0,0 +1,167 @@
1
+ import {theme}from'antd';const { defaultAlgorithm, darkAlgorithm } = theme;
2
+ const slackDarkTheme = {
3
+ algorithm: darkAlgorithm,
4
+ token: {
5
+ colorPrimary: '#611f69',
6
+ colorBgContainer: '#1A1D21',
7
+ colorText: '#D1D2D3',
8
+ colorTextSecondary: '#ABABAD',
9
+ fontFamily: 'Slack-Larsseit, Helvetica Neue, Helvetica, Segoe UI, Tahoma, Arial, sans-serif',
10
+ borderRadius: 4,
11
+ colorLink: '#1D9BD1',
12
+ colorLinkHover: '#36C5F0',
13
+ colorLinkActive: '#0B4C6F',
14
+ },
15
+ components: {
16
+ Button: {
17
+ // colorPrimary: '#611f69',
18
+ algorithm: true,
19
+ borderRadius: 4,
20
+ controlHeight: 36,
21
+ controlHeightLG: 44,
22
+ controlHeightSM: 28,
23
+ paddingContentHorizontal: 16,
24
+ },
25
+ Menu: {
26
+ itemBg: 'transparent',
27
+ itemColor: '#ffffff',
28
+ itemHoverColor: '#1264a3',
29
+ itemSelectedColor: '#ffffff',
30
+ itemSelectedBg: '#1164A3',
31
+ itemHoverBg: 'rgba(255, 255, 255, 0.1)',
32
+ activeBarWidth: 0,
33
+ activeBarHeight: 0,
34
+ activeBarBorderWidth: 0,
35
+ },
36
+ Typography: {
37
+ fontSizeHeading1: 40,
38
+ fontSizeHeading2: 32,
39
+ fontSizeHeading3: 24,
40
+ fontSizeHeading4: 18,
41
+ fontSizeHeading5: 16,
42
+ },
43
+ Form: {
44
+ labelColor: '#ffffff',
45
+ colorError: '#e01e5a',
46
+ colorWarning: '#f2c744',
47
+ colorSuccess: '#2eb67d',
48
+ },
49
+ Input: {
50
+ controlHeight: 36,
51
+ controlHeightLG: 44,
52
+ controlHeightSM: 28,
53
+ paddingHorizontal: 12,
54
+ borderRadius: 4,
55
+ },
56
+ },
57
+ scopes: [
58
+ {
59
+ scope: ['Button'],
60
+ settings: {
61
+ default: {
62
+ background: '#222529',
63
+ foreground: '#D1D2D3',
64
+ border: '#565856',
65
+ },
66
+ primary: {
67
+ background: '#007a5a',
68
+ foreground: '#ffffff',
69
+ border: '#007a5a',
70
+ },
71
+ hover: {
72
+ background: '#148567',
73
+ foreground: '#ffffff',
74
+ border: '#148567',
75
+ },
76
+ active: {
77
+ background: '#006e51',
78
+ foreground: '#ffffff',
79
+ border: '#006e51',
80
+ },
81
+ disabled: {
82
+ background: '#1A1D21',
83
+ foreground: '#565856',
84
+ border: '#2C2D30',
85
+ },
86
+ },
87
+ },
88
+ {
89
+ scope: ['Input'],
90
+ settings: {
91
+ default: {
92
+ background: '#222529',
93
+ foreground: '#D1D2D3',
94
+ border: '#565856',
95
+ },
96
+ focus: {
97
+ border: '#1D9BD1',
98
+ boxShadow: '0 0 0 1px #1D9BD1, 0 0 0 5px rgba(29, 155, 209, 0.3)',
99
+ },
100
+ hover: {
101
+ border: '#1D9BD1',
102
+ },
103
+ disabled: {
104
+ background: '#1A1D21',
105
+ foreground: '#565856',
106
+ border: '#2C2D30',
107
+ },
108
+ },
109
+ },
110
+ {
111
+ scope: ['Menu'],
112
+ settings: {
113
+ background: '#1A1D21',
114
+ item: {
115
+ default: {
116
+ background: 'transparent',
117
+ foreground: '#D1D2D3',
118
+ },
119
+ hover: {
120
+ background: '#27242C',
121
+ foreground: '#D1D2D3',
122
+ },
123
+ active: {
124
+ background: '#1164A3',
125
+ foreground: '#ffffff',
126
+ },
127
+ },
128
+ },
129
+ },
130
+ {
131
+ scope: ['Table'],
132
+ settings: {
133
+ header: {
134
+ background: '#222529',
135
+ foreground: '#D1D2D3',
136
+ },
137
+ row: {
138
+ odd: {
139
+ background: '#1A1D21',
140
+ },
141
+ even: {
142
+ background: '#222529',
143
+ },
144
+ hover: {
145
+ background: '#27242C',
146
+ },
147
+ },
148
+ },
149
+ },
150
+ {
151
+ scope: ['Typography'],
152
+ settings: {
153
+ heading: {
154
+ 1: { fontSize: 28, fontWeight: 900 },
155
+ 2: { fontSize: 24, fontWeight: 900 },
156
+ 3: { fontSize: 20, fontWeight: 900 },
157
+ 4: { fontSize: 18, fontWeight: 900 },
158
+ 5: { fontSize: 16, fontWeight: 900 },
159
+ },
160
+ text: {
161
+ default: { fontSize: 15, fontWeight: 400 },
162
+ secondary: { fontSize: 15, fontWeight: 400, foreground: '#ABABAD' },
163
+ },
164
+ },
165
+ },
166
+ ],
167
+ };export{slackDarkTheme};//# sourceMappingURL=slack-dark-theme.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slack-dark-theme.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}