@admin-layout/client 11.0.4-alpha.4 → 11.2.1-alpha.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.
Files changed (200) hide show
  1. package/lib/__tests__/ApplicationErrorHandlerCommon.test.d.ts.map +1 -0
  2. package/lib/__tests__/ConfigurationModelWrapper.test.d.ts +2 -0
  3. package/lib/__tests__/ConfigurationModelWrapper.test.d.ts.map +1 -0
  4. package/lib/__tests__/SettingsConfigurationModel.test.d.ts +2 -0
  5. package/lib/__tests__/SettingsConfigurationModel.test.d.ts.map +1 -0
  6. package/lib/__tests__/__fixtures__/defaultSettingsExample.d.ts +3 -0
  7. package/lib/__tests__/__fixtures__/defaultSettingsExample.d.ts.map +1 -0
  8. package/lib/{antd-themes/colors.d.ts → colors/colorsList.d.ts} +1 -1
  9. package/lib/colors/colorsList.d.ts.map +1 -0
  10. package/lib/{antd-themes/colors.js → colors/colorsList.js} +1 -1
  11. package/lib/colors/colorsList.js.map +1 -0
  12. package/lib/colors/index.d.ts +1 -0
  13. package/lib/colors/index.d.ts.map +1 -1
  14. package/lib/colors/presets/black.js.map +1 -1
  15. package/lib/colors/presets/brinkPink.js +11 -0
  16. package/lib/colors/presets/brinkPink.js.map +1 -0
  17. package/lib/colors/presets/cyan.js +11 -0
  18. package/lib/colors/presets/cyan.js.map +1 -0
  19. package/lib/colors/presets/lime.js +11 -0
  20. package/lib/colors/presets/lime.js.map +1 -0
  21. package/lib/colors/presets/pink.js +11 -0
  22. package/lib/colors/presets/pink.js.map +1 -0
  23. package/lib/colors/presets/purple.js +11 -0
  24. package/lib/colors/presets/purple.js.map +1 -0
  25. package/lib/colors/presets/skyBlue.js +11 -0
  26. package/lib/colors/presets/skyBlue.js.map +1 -0
  27. package/lib/colors/presets/turquoise.js +11 -0
  28. package/lib/colors/presets/turquoise.js.map +1 -0
  29. package/lib/colors/presets/white.js.map +1 -1
  30. package/lib/components/ApplicationErrorFillWrapper.d.ts +2 -1
  31. package/lib/components/ApplicationErrorFillWrapper.d.ts.map +1 -1
  32. package/lib/components/ApplicationErrorFillWrapper.js +2 -2
  33. package/lib/components/ApplicationErrorHandlerCommon.d.ts.map +1 -1
  34. package/lib/components/ApplicationErrorHandlerCommon.js +8 -6
  35. package/lib/components/ApplicationErrorHandlerCommon.js.map +1 -1
  36. package/lib/components/ErrorBoundaryCommon.d.ts +1 -1
  37. package/lib/components/ErrorBoundaryCommon.js +2 -2
  38. package/lib/components/ErrorBoundaryCommon.js.map +1 -1
  39. package/lib/components/LayoutCookieProvider.d.ts.map +1 -1
  40. package/lib/components/LayoutCookieProvider.js +16 -10
  41. package/lib/components/LayoutCookieProvider.js.map +1 -1
  42. package/lib/components/UpdateSettings/UpdateSettings.server.d.ts +69 -0
  43. package/lib/components/UpdateSettings/UpdateSettings.server.d.ts.map +1 -0
  44. package/lib/components/UpdateSettings/UpdateSettings.server.js +218 -30
  45. package/lib/components/UpdateSettings/UpdateSettings.server.js.map +1 -1
  46. package/lib/components/UpdateSettings/UpdateSettings.server.test.d.ts +2 -0
  47. package/lib/components/UpdateSettings/UpdateSettings.server.test.d.ts.map +1 -0
  48. package/lib/config/defaultSettings.d.ts +184 -2
  49. package/lib/config/defaultSettings.d.ts.map +1 -1
  50. package/lib/config/defaultSettings.js +67 -32
  51. package/lib/config/defaultSettings.js.map +1 -1
  52. package/lib/config/env-config.d.ts +3 -5
  53. package/lib/config/env-config.d.ts.map +1 -1
  54. package/lib/config/env-config.js +13 -13
  55. package/lib/config/env-config.js.map +1 -1
  56. package/lib/constants/constants.js.map +1 -1
  57. package/lib/constants/error.js.map +1 -1
  58. package/lib/constants/languages.js.map +1 -1
  59. package/lib/constants/layout.js.map +1 -1
  60. package/lib/graphql/link/error-link.d.ts.map +1 -1
  61. package/lib/graphql/link/error-link.js.map +1 -1
  62. package/lib/hooks/Client-only.d.ts +28 -0
  63. package/lib/hooks/Client-only.d.ts.map +1 -0
  64. package/lib/hooks/Client-only.js +18 -0
  65. package/lib/hooks/Client-only.js.map +1 -0
  66. package/lib/hooks/hooks.d.ts +4 -0
  67. package/lib/hooks/hooks.d.ts.map +1 -0
  68. package/lib/hooks/index.d.ts +1 -0
  69. package/lib/hooks/index.d.ts.map +1 -1
  70. package/lib/hooks/use-hydrated.d.ts +19 -0
  71. package/lib/hooks/use-hydrated.d.ts.map +1 -0
  72. package/lib/hooks/use-hydrated.js +24 -0
  73. package/lib/hooks/use-hydrated.js.map +1 -0
  74. package/lib/hooks/useLayoutSettings.d.ts +3 -2
  75. package/lib/hooks/useLayoutSettings.d.ts.map +1 -1
  76. package/lib/hooks/useLayoutSettings.js +70 -44
  77. package/lib/hooks/useLayoutSettings.js.map +1 -1
  78. package/lib/hooks/useLayoutSettings.test.d.ts +2 -0
  79. package/lib/hooks/useLayoutSettings.test.d.ts.map +1 -0
  80. package/lib/index.d.ts +1 -1
  81. package/lib/index.d.ts.map +1 -1
  82. package/lib/index.js +1 -1
  83. package/lib/index.native.js +1 -1
  84. package/lib/interfaces/default-settings.d.ts +1 -0
  85. package/lib/interfaces/default-settings.d.ts.map +1 -1
  86. package/lib/interfaces/index.d.ts +2 -0
  87. package/lib/interfaces/index.d.ts.map +1 -1
  88. package/lib/interfaces/pure-settings.d.ts +17 -1
  89. package/lib/interfaces/pure-settings.d.ts.map +1 -1
  90. package/lib/interfaces/searchbar-settings.d.ts +61 -0
  91. package/lib/interfaces/searchbar-settings.d.ts.map +1 -0
  92. package/lib/interfaces/settings.d.ts +167 -0
  93. package/lib/interfaces/settings.d.ts.map +1 -0
  94. package/lib/interfaces/settings.js +5 -0
  95. package/lib/interfaces/settings.js.map +1 -0
  96. package/lib/interfaces/typings.d.ts +1 -1
  97. package/lib/interfaces/typings.d.ts.map +1 -1
  98. package/lib/redux/actions/error-actions.d.ts.map +1 -1
  99. package/lib/redux/actions/error-actions.js.map +1 -1
  100. package/lib/redux/reducers/error.js.map +1 -1
  101. package/lib/redux/reducers/settings.d.ts.map +1 -1
  102. package/lib/redux/reducers/settings.js +3 -10
  103. package/lib/redux/reducers/settings.js.map +1 -1
  104. package/lib/redux/selectors/index.js.map +1 -1
  105. package/lib/redux/store.js +1 -1
  106. package/lib/redux/store.js.map +1 -1
  107. package/lib/themes/systemFont/index.js.map +1 -1
  108. package/lib/themes/templates/createLayoutTheme.js.map +1 -1
  109. package/lib/themes/templates/darkLayoutTheme.js.map +1 -1
  110. package/lib/themes/templates/lightLayoutTheme.js.map +1 -1
  111. package/lib/utils/assignDefaults.d.ts +10 -0
  112. package/lib/utils/assignDefaults.d.ts.map +1 -0
  113. package/lib/utils/assignDefaults.test.d.ts +1 -0
  114. package/lib/utils/assignDefaults.test.d.ts.map +1 -0
  115. package/lib/utils/generateMenuLink.d.ts.map +1 -1
  116. package/lib/utils/generateMenuLink.js +13 -1
  117. package/lib/utils/generateMenuLink.js.map +1 -1
  118. package/lib/utils/generateMenuLink.test.d.ts +2 -0
  119. package/lib/utils/generateMenuLink.test.d.ts.map +1 -0
  120. package/lib/utils/index.d.ts +1 -1
  121. package/lib/utils/index.d.ts.map +1 -1
  122. package/lib/utils/matchMenuKeys.d.ts.map +1 -1
  123. package/lib/utils/matchMenuKeys.js.map +1 -1
  124. package/lib/utils/menuUtils.d.ts.map +1 -1
  125. package/lib/utils/menuUtils.js.map +1 -1
  126. package/lib/utils/parentRoute.d.ts.map +1 -1
  127. package/lib/utils/parseEnvUiLayoutSettings.d.ts +6 -0
  128. package/lib/utils/parseEnvUiLayoutSettings.d.ts.map +1 -0
  129. package/lib/utils/parseEnvUiLayoutSettings.js +27 -0
  130. package/lib/utils/parseEnvUiLayoutSettings.js.map +1 -0
  131. package/lib/utils/parseEnvUiLayoutSettings.test.d.ts +2 -0
  132. package/lib/utils/parseEnvUiLayoutSettings.test.d.ts.map +1 -0
  133. package/lib/utils/seperatedMenus.js.map +1 -1
  134. package/lib/utils/settingsDiff.test.d.ts +2 -0
  135. package/lib/utils/settingsDiff.test.d.ts.map +1 -0
  136. package/lib/utils/settingsDifference.d.ts +6 -0
  137. package/lib/utils/settingsDifference.d.ts.map +1 -0
  138. package/lib/utils/settingsDifference.js +148 -0
  139. package/lib/utils/settingsDifference.js.map +1 -0
  140. package/lib/utils/settingsDifference.test.d.ts +2 -0
  141. package/lib/utils/settingsDifference.test.d.ts.map +1 -0
  142. package/package.json +9 -4
  143. package/lib/antd-themes/ThemeProvider.d.ts +0 -10
  144. package/lib/antd-themes/ThemeProvider.d.ts.map +0 -1
  145. package/lib/antd-themes/ThemeProvider.js +0 -34
  146. package/lib/antd-themes/ThemeProvider.js.map +0 -1
  147. package/lib/antd-themes/airbnb-dark-theme.d.ts +0 -2
  148. package/lib/antd-themes/airbnb-dark-theme.d.ts.map +0 -1
  149. package/lib/antd-themes/airbnb-dark-theme.js +0 -168
  150. package/lib/antd-themes/airbnb-dark-theme.js.map +0 -1
  151. package/lib/antd-themes/airbnb-light-theme.d.ts +0 -230
  152. package/lib/antd-themes/airbnb-light-theme.d.ts.map +0 -1
  153. package/lib/antd-themes/airbnb-light-theme.js +0 -168
  154. package/lib/antd-themes/airbnb-light-theme.js.map +0 -1
  155. package/lib/antd-themes/colors.d.ts.map +0 -1
  156. package/lib/antd-themes/colors.js.map +0 -1
  157. package/lib/antd-themes/default-dark-theme.d.ts +0 -2
  158. package/lib/antd-themes/default-dark-theme.d.ts.map +0 -1
  159. package/lib/antd-themes/default-dark-theme.js +0 -136
  160. package/lib/antd-themes/default-dark-theme.js.map +0 -1
  161. package/lib/antd-themes/default-light-theme.d.ts +0 -199
  162. package/lib/antd-themes/default-light-theme.d.ts.map +0 -1
  163. package/lib/antd-themes/default-light-theme.js +0 -136
  164. package/lib/antd-themes/default-light-theme.js.map +0 -1
  165. package/lib/antd-themes/github-dark-theme.d.ts +0 -2
  166. package/lib/antd-themes/github-dark-theme.d.ts.map +0 -1
  167. package/lib/antd-themes/github-dark-theme.js +0 -168
  168. package/lib/antd-themes/github-dark-theme.js.map +0 -1
  169. package/lib/antd-themes/github-light-theme.d.ts +0 -230
  170. package/lib/antd-themes/github-light-theme.d.ts.map +0 -1
  171. package/lib/antd-themes/github-light-theme.js +0 -168
  172. package/lib/antd-themes/github-light-theme.js.map +0 -1
  173. package/lib/antd-themes/index.d.ts +0 -14
  174. package/lib/antd-themes/index.d.ts.map +0 -1
  175. package/lib/antd-themes/slack-dark-theme.d.ts +0 -2
  176. package/lib/antd-themes/slack-dark-theme.d.ts.map +0 -1
  177. package/lib/antd-themes/slack-dark-theme.js +0 -167
  178. package/lib/antd-themes/slack-dark-theme.js.map +0 -1
  179. package/lib/antd-themes/slack-light-theme.d.ts +0 -229
  180. package/lib/antd-themes/slack-light-theme.d.ts.map +0 -1
  181. package/lib/antd-themes/slack-light-theme.js +0 -167
  182. package/lib/antd-themes/slack-light-theme.js.map +0 -1
  183. package/lib/antd-themes/spotify-dark-theme.d.ts +0 -2
  184. package/lib/antd-themes/spotify-dark-theme.d.ts.map +0 -1
  185. package/lib/antd-themes/spotify-dark-theme.js +0 -168
  186. package/lib/antd-themes/spotify-dark-theme.js.map +0 -1
  187. package/lib/antd-themes/spotify-light-theme.d.ts +0 -230
  188. package/lib/antd-themes/spotify-light-theme.d.ts.map +0 -1
  189. package/lib/antd-themes/spotify-light-theme.js +0 -168
  190. package/lib/antd-themes/spotify-light-theme.js.map +0 -1
  191. package/lib/antd-themes/themeRegistry.d.ts +0 -2
  192. package/lib/antd-themes/themeRegistry.d.ts.map +0 -1
  193. package/lib/antd-themes/themeRegistry.js +0 -12
  194. package/lib/antd-themes/themeRegistry.js.map +0 -1
  195. package/lib/components/__tests__/ApplicationErrorHandlerCommon.test.d.ts.map +0 -1
  196. package/lib/utils/getAntdLocale.d.ts +0 -3
  197. package/lib/utils/getAntdLocale.d.ts.map +0 -1
  198. package/lib/utils/getAntdLocale.js +0 -18
  199. package/lib/utils/getAntdLocale.js.map +0 -1
  200. /package/lib/{components/__tests__ → __tests__}/ApplicationErrorHandlerCommon.test.d.ts +0 -0
@@ -1,168 +0,0 @@
1
- import {theme}from'antd';const { defaultAlgorithm, darkAlgorithm } = theme;
2
- const spotifyDarkTheme = {
3
- algorithm: darkAlgorithm,
4
- token: {
5
- colorPrimary: '#1db954',
6
- colorBgContainer: '#121212',
7
- colorText: '#ffffff',
8
- colorTextSecondary: '#b3b3b3',
9
- fontFamily: 'Circular, Helvetica, Arial, sans-serif',
10
- borderRadius: 500,
11
- colorLink: '#1ed760',
12
- colorLinkHover: '#1fdf64',
13
- colorLinkActive: '#169c46',
14
- },
15
- components: {
16
- Button: {
17
- // colorPrimary: '#1db954',
18
- algorithm: true,
19
- borderRadius: 500,
20
- controlHeight: 48,
21
- controlHeightLG: 56,
22
- controlHeightSM: 32,
23
- paddingContentHorizontal: 32,
24
- },
25
- Menu: {
26
- itemBg: 'transparent',
27
- itemColor: '#b3b3b3',
28
- itemHoverColor: '#ffffff',
29
- itemSelectedColor: '#ffffff',
30
- itemSelectedBg: '#282828',
31
- itemHoverBg: '#282828',
32
- activeBarWidth: 4,
33
- activeBarHeight: 0,
34
- activeBarBorderWidth: 0,
35
- colorActiveBarColor: '#1db954',
36
- },
37
- Typography: {
38
- fontSizeHeading1: 96,
39
- fontSizeHeading2: 48,
40
- fontSizeHeading3: 32,
41
- fontSizeHeading4: 24,
42
- fontSizeHeading5: 16,
43
- },
44
- Form: {
45
- labelColor: '#ffffff',
46
- colorError: '#f15e6c',
47
- colorWarning: '#ffa42b',
48
- colorSuccess: '#1db954',
49
- },
50
- Input: {
51
- controlHeight: 40,
52
- controlHeightLG: 48,
53
- controlHeightSM: 32,
54
- paddingHorizontal: 16,
55
- borderRadius: 4,
56
- },
57
- },
58
- scopes: [
59
- {
60
- scope: ['Button'],
61
- settings: {
62
- default: {
63
- background: '#ffffff',
64
- foreground: '#000000',
65
- border: 'transparent',
66
- },
67
- primary: {
68
- background: '#1DB954',
69
- foreground: '#000000',
70
- border: 'transparent',
71
- },
72
- hover: {
73
- background: '#1ED760',
74
- foreground: '#000000',
75
- border: 'transparent',
76
- },
77
- active: {
78
- background: '#169C46',
79
- foreground: '#000000',
80
- border: 'transparent',
81
- },
82
- disabled: {
83
- background: '#535353',
84
- foreground: '#B3B3B3',
85
- border: 'transparent',
86
- },
87
- },
88
- },
89
- {
90
- scope: ['Input'],
91
- settings: {
92
- default: {
93
- background: '#ffffff',
94
- foreground: '#000000',
95
- border: 'transparent',
96
- },
97
- focus: {
98
- border: '#1DB954',
99
- boxShadow: '0 0 0 2px rgba(29, 185, 84, 0.5)',
100
- },
101
- hover: {
102
- border: '#1ED760',
103
- },
104
- disabled: {
105
- background: '#535353',
106
- foreground: '#B3B3B3',
107
- border: 'transparent',
108
- },
109
- },
110
- },
111
- {
112
- scope: ['Menu'],
113
- settings: {
114
- background: '#121212',
115
- item: {
116
- default: {
117
- background: 'transparent',
118
- foreground: '#B3B3B3',
119
- },
120
- hover: {
121
- background: '#282828',
122
- foreground: '#FFFFFF',
123
- },
124
- active: {
125
- background: '#282828',
126
- foreground: '#1DB954',
127
- },
128
- },
129
- },
130
- },
131
- {
132
- scope: ['Table'],
133
- settings: {
134
- header: {
135
- background: '#181818',
136
- foreground: '#B3B3B3',
137
- },
138
- row: {
139
- odd: {
140
- background: '#121212',
141
- },
142
- even: {
143
- background: '#181818',
144
- },
145
- hover: {
146
- background: '#282828',
147
- },
148
- },
149
- },
150
- },
151
- {
152
- scope: ['Typography'],
153
- settings: {
154
- heading: {
155
- 1: { fontSize: 96, fontWeight: 900 },
156
- 2: { fontSize: 48, fontWeight: 700 },
157
- 3: { fontSize: 32, fontWeight: 700 },
158
- 4: { fontSize: 24, fontWeight: 700 },
159
- 5: { fontSize: 16, fontWeight: 700 },
160
- },
161
- text: {
162
- default: { fontSize: 14, fontWeight: 400 },
163
- secondary: { fontSize: 14, fontWeight: 400, foreground: '#B3B3B3' },
164
- },
165
- },
166
- },
167
- ],
168
- };export{spotifyDarkTheme};//# sourceMappingURL=spotify-dark-theme.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"spotify-dark-theme.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,230 +0,0 @@
1
- export declare const spotifyLightTheme: {
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=spotify-light-theme.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"spotify-light-theme.d.ts","sourceRoot":"","sources":["../../src/antd-themes/spotify-light-theme.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsK7B,CAAC"}
@@ -1,168 +0,0 @@
1
- import {theme}from'antd';const { defaultAlgorithm, darkAlgorithm } = theme;
2
- const spotifyLightTheme = {
3
- algorithm: defaultAlgorithm,
4
- token: {
5
- colorPrimary: '#1db954',
6
- colorBgContainer: '#ffffff',
7
- colorText: '#181818',
8
- colorTextSecondary: '#535353',
9
- fontFamily: 'Circular, Helvetica, Arial, sans-serif',
10
- borderRadius: 500,
11
- colorLink: '#1db954',
12
- colorLinkHover: '#1ed760',
13
- colorLinkActive: '#169c46',
14
- },
15
- components: {
16
- Button: {
17
- // colorPrimary: '#1db954',
18
- algorithm: true,
19
- borderRadius: 500,
20
- controlHeight: 48,
21
- controlHeightLG: 56,
22
- controlHeightSM: 32,
23
- paddingContentHorizontal: 32,
24
- },
25
- Menu: {
26
- itemBg: 'transparent',
27
- itemColor: '#535353',
28
- itemHoverColor: '#181818',
29
- itemSelectedColor: '#181818',
30
- itemSelectedBg: '#f0f0f0',
31
- itemHoverBg: '#f0f0f0',
32
- activeBarWidth: 4,
33
- activeBarHeight: 0,
34
- activeBarBorderWidth: 0,
35
- colorActiveBarColor: '#1db954',
36
- },
37
- Typography: {
38
- fontSizeHeading1: 96,
39
- fontSizeHeading2: 48,
40
- fontSizeHeading3: 32,
41
- fontSizeHeading4: 24,
42
- fontSizeHeading5: 16,
43
- },
44
- Form: {
45
- labelColor: '#181818',
46
- colorError: '#e91429',
47
- colorWarning: '#ffa42b',
48
- colorSuccess: '#1db954',
49
- },
50
- Input: {
51
- controlHeight: 40,
52
- controlHeightLG: 48,
53
- controlHeightSM: 32,
54
- paddingHorizontal: 16,
55
- borderRadius: 4,
56
- },
57
- },
58
- scopes: [
59
- {
60
- scope: ['Button'],
61
- settings: {
62
- default: {
63
- background: '#ffffff',
64
- foreground: '#181818',
65
- border: '#c1c1c1',
66
- },
67
- primary: {
68
- background: '#1DB954',
69
- foreground: '#ffffff',
70
- border: 'transparent',
71
- },
72
- hover: {
73
- background: '#1ED760',
74
- foreground: '#ffffff',
75
- border: 'transparent',
76
- },
77
- active: {
78
- background: '#169C46',
79
- foreground: '#ffffff',
80
- border: 'transparent',
81
- },
82
- disabled: {
83
- background: '#f0f0f0',
84
- foreground: '#a7a7a7',
85
- border: 'transparent',
86
- },
87
- },
88
- },
89
- {
90
- scope: ['Input'],
91
- settings: {
92
- default: {
93
- background: '#ffffff',
94
- foreground: '#181818',
95
- border: '#c1c1c1',
96
- },
97
- focus: {
98
- border: '#1DB954',
99
- boxShadow: '0 0 0 2px rgba(29, 185, 84, 0.3)',
100
- },
101
- hover: {
102
- border: '#1ED760',
103
- },
104
- disabled: {
105
- background: '#f0f0f0',
106
- foreground: '#a7a7a7',
107
- border: '#e0e0e0',
108
- },
109
- },
110
- },
111
- {
112
- scope: ['Menu'],
113
- settings: {
114
- background: '#ffffff',
115
- item: {
116
- default: {
117
- background: 'transparent',
118
- foreground: '#535353',
119
- },
120
- hover: {
121
- background: '#f0f0f0',
122
- foreground: '#181818',
123
- },
124
- active: {
125
- background: '#f0f0f0',
126
- foreground: '#1DB954',
127
- },
128
- },
129
- },
130
- },
131
- {
132
- scope: ['Table'],
133
- settings: {
134
- header: {
135
- background: '#f7f7f7',
136
- foreground: '#535353',
137
- },
138
- row: {
139
- odd: {
140
- background: '#ffffff',
141
- },
142
- even: {
143
- background: '#f7f7f7',
144
- },
145
- hover: {
146
- background: '#f0f0f0',
147
- },
148
- },
149
- },
150
- },
151
- {
152
- scope: ['Typography'],
153
- settings: {
154
- heading: {
155
- 1: { fontSize: 96, fontWeight: 900 },
156
- 2: { fontSize: 48, fontWeight: 700 },
157
- 3: { fontSize: 32, fontWeight: 700 },
158
- 4: { fontSize: 24, fontWeight: 700 },
159
- 5: { fontSize: 16, fontWeight: 700 },
160
- },
161
- text: {
162
- default: { fontSize: 14, fontWeight: 400 },
163
- secondary: { fontSize: 14, fontWeight: 400, foreground: '#535353' },
164
- },
165
- },
166
- },
167
- ],
168
- };export{spotifyLightTheme};//# sourceMappingURL=spotify-light-theme.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"spotify-light-theme.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,2 +0,0 @@
1
- export declare const themeRegistry: any;
2
- //# sourceMappingURL=themeRegistry.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"themeRegistry.d.ts","sourceRoot":"","sources":["../../src/antd-themes/themeRegistry.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,aAAa,EAAE,GAW3B,CAAC"}
@@ -1,12 +0,0 @@
1
- import {defaultDarkTheme}from'./default-dark-theme.js';import {defaultLightTheme}from'./default-light-theme.js';import {airbnbDarkTheme}from'./airbnb-dark-theme.js';import {airbnbLightTheme}from'./airbnb-light-theme.js';import {spotifyDarkTheme}from'./spotify-dark-theme.js';import {spotifyLightTheme}from'./spotify-light-theme.js';import {githubDarkTheme}from'./github-dark-theme.js';import {githubLightTheme}from'./github-light-theme.js';import {slackDarkTheme}from'./slack-dark-theme.js';import {slackLightTheme}from'./slack-light-theme.js';const themeRegistry = {
2
- defaultDarkTheme,
3
- defaultLightTheme,
4
- airbnbDarkTheme,
5
- airbnbLightTheme,
6
- spotifyDarkTheme,
7
- spotifyLightTheme,
8
- githubDarkTheme,
9
- githubLightTheme,
10
- slackDarkTheme,
11
- slackLightTheme,
12
- };export{themeRegistry};//# sourceMappingURL=themeRegistry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"themeRegistry.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ApplicationErrorHandlerCommon.test.d.ts","sourceRoot":"","sources":["../../../src/components/__tests__/ApplicationErrorHandlerCommon.test.tsx"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- import { Locale } from 'antd/lib/locale';
2
- export declare const getAntdLocale: () => Locale;
3
- //# sourceMappingURL=getAntdLocale.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getAntdLocale.d.ts","sourceRoot":"","sources":["../../src/utils/getAntdLocale.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAOzC,eAAO,MAAM,aAAa,QAAO,MAkBhC,CAAC"}
@@ -1,18 +0,0 @@
1
- import i18n from'i18next';import enUS from'antd/lib/locale/en_US.js';import zhCN from'antd/lib/locale/zh_CN.js';import frFR from'antd/lib/locale/fr_FR.js';import esES from'antd/lib/locale/es_ES.js';import deDE from'antd/lib/locale/de_DE.js';const getAntdLocale = () => {
2
- const currentLang = i18n.language;
3
- switch (currentLang) {
4
- case 'en':
5
- return enUS;
6
- case 'zh':
7
- return zhCN;
8
- case 'fr':
9
- return frFR;
10
- case 'es':
11
- return esES;
12
- case 'de':
13
- return deDE;
14
- // Add more cases as per our requirement
15
- default:
16
- return enUS; // Default locale
17
- }
18
- };export{getAntdLocale};//# sourceMappingURL=getAntdLocale.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getAntdLocale.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;"}