@fibery/ui-kit 1.0.5 → 1.2.0
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/package.json +6 -3
- package/src/Button.d.ts +3 -1
- package/src/Button.js +4 -6
- package/src/Pallete.ts +40 -16
- package/src/Select/components.tsx +5 -9
- package/src/Select/styles.ts +4 -4
- package/src/ThemeProvider.tsx +83 -53
- package/src/antd/styles.ts +3 -3
- package/src/create-inline-theme.ts +8 -1
- package/src/designSystem.ts +111 -169
- package/src/icons/ast/AppStoreOneColor.ts +1 -1
- package/src/icons/ast/Email.ts +8 -0
- package/src/icons/ast/SidebarFields.ts +8 -0
- package/src/icons/ast/SidebarFieldsOpened.ts +8 -0
- package/src/icons/ast/SlackIcon.ts +8 -0
- package/src/icons/ast/SlideMenu.ts +8 -0
- package/src/icons/ast/SlideMenuOpened.ts +8 -0
- package/src/icons/ast/index.tsx +6 -0
- package/src/icons/react/Email.tsx +12 -0
- package/src/icons/react/SidebarFields.tsx +12 -0
- package/src/icons/react/SidebarFieldsOpened.tsx +12 -0
- package/src/icons/react/SlackIcon.tsx +12 -0
- package/src/icons/react/SlideMenu.tsx +12 -0
- package/src/icons/react/SlideMenuOpened.tsx +12 -0
- package/src/icons/react/index.tsx +6 -0
- package/src/loading-sausage.tsx +5 -5
- package/src/media-query-utils.ts +24 -0
- package/src/theme-settings.ts +164 -0
package/src/designSystem.ts
CHANGED
|
@@ -4,11 +4,11 @@ import {ThemeMode} from "./theme-settings";
|
|
|
4
4
|
import ColorHash from "color-hash";
|
|
5
5
|
import {
|
|
6
6
|
blackA,
|
|
7
|
+
blue,
|
|
8
|
+
blueDark,
|
|
7
9
|
indigo,
|
|
8
10
|
indigoDark,
|
|
9
11
|
red,
|
|
10
|
-
blue,
|
|
11
|
-
blueDark,
|
|
12
12
|
redDark,
|
|
13
13
|
sage,
|
|
14
14
|
slate,
|
|
@@ -129,7 +129,7 @@ const lightColors = {
|
|
|
129
129
|
pageBg: whiteA.whiteA0,
|
|
130
130
|
pageContentBg: whiteA.whiteA0,
|
|
131
131
|
sidebarBg: whiteA.whiteA0,
|
|
132
|
-
sidebarShadow: `-3px 0px 10px 0px ${getOpacities(
|
|
132
|
+
sidebarShadow: `-3px 0px 10px 0px ${getOpacities(slate.slate10).opacity10}`,
|
|
133
133
|
menuBg: sage.sage3,
|
|
134
134
|
menuFooterColor: getOpacities(whiteA.whiteA0).opacity20,
|
|
135
135
|
menuFooterHoverColor: getOpacities(whiteA.whiteA0).opacity40,
|
|
@@ -137,7 +137,7 @@ const lightColors = {
|
|
|
137
137
|
textSelectionColor: getOpacities(blue.blue10).opacity20,
|
|
138
138
|
accentTextColor: slate.slate10,
|
|
139
139
|
disabledTextColor: slate.slate9,
|
|
140
|
-
inversedTextColor:
|
|
140
|
+
inversedTextColor: slate.slate3,
|
|
141
141
|
linkColor: indigoDark.indigo10,
|
|
142
142
|
linkBorder: `1px solid ${getOpacities(indigoDark.indigo10).opacity20}`,
|
|
143
143
|
linkHoverColor: indigo.indigo10,
|
|
@@ -149,17 +149,21 @@ const lightColors = {
|
|
|
149
149
|
entityNodeBorder: `1px solid ${getOpacities(slateDark.slate3).opacity30}`,
|
|
150
150
|
entityNodeHoverColor: slateDark.slate7,
|
|
151
151
|
entityNodeBorderHover: `1px solid ${getOpacities(slate.slate11).opacity80}`,
|
|
152
|
-
entityNodeBgColor:
|
|
152
|
+
entityNodeBgColor: slate.slate2,
|
|
153
153
|
shortcutTextColor: slate.slate9,
|
|
154
154
|
shortcutBorderColor: `1px solid ${getOpacities(slate.slate8).opacity20}`,
|
|
155
155
|
inputBgColor: whiteA.whiteA0,
|
|
156
|
-
inputDisabledBgColor: slate.
|
|
156
|
+
inputDisabledBgColor: getOpacities(slate.slate6).opacity30,
|
|
157
|
+
inputDisabledBorderColor: `0 0 0 1px ${getOpacities(slate.slate6).opacity20}`,
|
|
157
158
|
inputCopyBgColor: slate.slate3,
|
|
158
159
|
inputBorderColor: `0 0 0 1px ${getOpacities(slate.slate6).opacity70}`,
|
|
159
|
-
inputBorderHoverColor: `0 0 0 1px ${getOpacities(slate.
|
|
160
|
+
inputBorderHoverColor: `0 0 0 1px ${getOpacities(slate.slate7).opacity100}`,
|
|
161
|
+
inputBorderFocusColor: `0 0 0 1px ${getOpacities(slate.slate8).opacity100}`,
|
|
162
|
+
inputBorderBlendMode: "multiply",
|
|
160
163
|
inputPlaceholderTextColor: slate.slate10,
|
|
161
164
|
buttonColor: slate.slate10,
|
|
162
165
|
buttonPrimaryTextColor: slate.slate2,
|
|
166
|
+
checkboxColor: slate.slate10,
|
|
163
167
|
menuTextColor: slate.slate12,
|
|
164
168
|
selectedMenuTextColor: slate.slate2,
|
|
165
169
|
actionMenuBg: whiteA.whiteA0,
|
|
@@ -171,6 +175,12 @@ const lightColors = {
|
|
|
171
175
|
actionMenuInnerHover: slate.slate3,
|
|
172
176
|
actionMenuButtonColor: whiteA.whiteA0,
|
|
173
177
|
actionMenuButtonHoverColor: slate.slate1,
|
|
178
|
+
actionMenuButtonShadow: `0 0 0 1px ${getOpacities(slate.slate10).opacity10}, 0 2px 4px -4px ${
|
|
179
|
+
getOpacities(slate.slate10).opacity20
|
|
180
|
+
}`,
|
|
181
|
+
actionMenuButtonShadowHover: `0 0 0 1px ${getOpacities(slate.slate10).opacity10}, 0 6px 8px -4px ${
|
|
182
|
+
getOpacities(slate.slate10).opacity30
|
|
183
|
+
}`,
|
|
174
184
|
separatorColor: getOpacities(slate.slate4).opacity50,
|
|
175
185
|
iconColor: slate.slate10,
|
|
176
186
|
menuIconColor: getOpacities(slate.slate10).opacity90,
|
|
@@ -184,9 +194,10 @@ const lightColors = {
|
|
|
184
194
|
entityCardShadow: `0 0 0 1px ${getOpacities(slate.slate10).opacity10}, 0 2px 4px -4px ${
|
|
185
195
|
getOpacities(slate.slate10).opacity20
|
|
186
196
|
}`,
|
|
187
|
-
entityCardShadowHover: `0 0 0 1px ${getOpacities(slate.slate10).opacity10}, 0
|
|
188
|
-
getOpacities(slate.slate10).
|
|
197
|
+
entityCardShadowHover: `0 0 0 1px ${getOpacities(slate.slate10).opacity10}, 0 2px 4px -4px ${
|
|
198
|
+
getOpacities(slate.slate10).opacity20
|
|
189
199
|
}`,
|
|
200
|
+
relationViewBgColor: slate.slate2,
|
|
190
201
|
unitBg: slate.slate3,
|
|
191
202
|
unitBgHover: slate.slate4,
|
|
192
203
|
badgeBgColor: getOpacities(slate.slate10).opacity20,
|
|
@@ -198,8 +209,10 @@ const lightColors = {
|
|
|
198
209
|
commentColor: getOpacities(yellow.yellow6).opacity60,
|
|
199
210
|
cellBorderColor: getOpacities(slate.slate8).opacity50,
|
|
200
211
|
tableRowWarningColor: getOpacities(yellow.yellow6).opacity60,
|
|
201
|
-
|
|
212
|
+
errorBgColor: getOpacities(red.red9).opacity60,
|
|
213
|
+
warningBgColor: getOpacities(yellow.yellow6).opacity60,
|
|
202
214
|
warningButtonColor: yellow.yellow11,
|
|
215
|
+
infoBox: getOpacities(yellow.yellow4).opacity50,
|
|
203
216
|
appCardBgColor: whiteA.whiteA0,
|
|
204
217
|
appCardHoverColor: getOpacities(slate.slate1).opacity95,
|
|
205
218
|
appCardShadow: `0 0 0 1px ${getOpacities(slate.slate10).opacity10}, 0 2px 4px -4px ${
|
|
@@ -209,6 +222,17 @@ const lightColors = {
|
|
|
209
222
|
getOpacities(slate.slate10).opacity30
|
|
210
223
|
}`,
|
|
211
224
|
modalBg: getOpacities(slate.slate11).opacity20,
|
|
225
|
+
modalShadow: `${getOpacities(slate.slate10).opacity10} 0px 16px 70px`,
|
|
226
|
+
modalContentBg: whiteA.whiteA0,
|
|
227
|
+
progressIconBg: getOpacities(slate.slate12).opacity10,
|
|
228
|
+
progressIconFill: getOpacities(slate.slate12).opacity80,
|
|
229
|
+
progressIconDoneBg: getOpacities(slate.slate12).opacity80,
|
|
230
|
+
progressIconDoneFill: getOpacities(slate.slate1).opacity95,
|
|
231
|
+
instrumentsMenuBg: getOpacities(whiteA.whiteA0).opacity85,
|
|
232
|
+
instrumentsMenuShadow: `0 0 0 1px ${getOpacities(slate.slate10).opacity10}, 0 2px 4px -4px ${
|
|
233
|
+
getOpacities(slate.slate10).opacity20
|
|
234
|
+
}`,
|
|
235
|
+
selectedColorBorder: getOpacities(slate.slate6).opacity50,
|
|
212
236
|
//end
|
|
213
237
|
placeholderTextColor: "#65788B",
|
|
214
238
|
disabledInversedTextColor: shades.light,
|
|
@@ -218,7 +242,6 @@ const lightColors = {
|
|
|
218
242
|
cardBg: "#FFFFFF",
|
|
219
243
|
cardSelected: "#FFFB8F",
|
|
220
244
|
cardSelectedHover: "rgba(240, 244, 247, 0.6)",
|
|
221
|
-
infoBox: "rgba(255, 212, 0, 0.2)",
|
|
222
245
|
errorBg: "rgba(255, 241, 240, 1)",
|
|
223
246
|
timelineCard: "#FCE07D",
|
|
224
247
|
transparent,
|
|
@@ -228,6 +251,22 @@ const lightColors = {
|
|
|
228
251
|
inversedSeparators,
|
|
229
252
|
} as const;
|
|
230
253
|
|
|
254
|
+
const darkMenu = {
|
|
255
|
+
menuBg: slateDark.slate2,
|
|
256
|
+
menuFooterColor: getOpacities(slateDark.slate3).opacity20,
|
|
257
|
+
menuFooterHoverColor: getOpacities(slateDark.slate3).opacity40,
|
|
258
|
+
menuTextColor: slate.slate8,
|
|
259
|
+
menuIconColor: getOpacities(slate.slate10).opacity90,
|
|
260
|
+
selectedMenuIconColor: getOpacities(slate.slate1).opacity90,
|
|
261
|
+
selectedMenuTextColor: slate.slate2,
|
|
262
|
+
};
|
|
263
|
+
|
|
264
|
+
const light2Colors = {
|
|
265
|
+
...lightColors,
|
|
266
|
+
...darkMenu,
|
|
267
|
+
mode: "light2",
|
|
268
|
+
} as const;
|
|
269
|
+
|
|
231
270
|
const darkColors = {
|
|
232
271
|
mode: "dark",
|
|
233
272
|
brandColors,
|
|
@@ -240,16 +279,13 @@ const darkColors = {
|
|
|
240
279
|
panelContentBg: slateDark.slate2,
|
|
241
280
|
pageBg: slateDark.slate1,
|
|
242
281
|
pageContentBg: slateDark.slate2,
|
|
243
|
-
sidebarBg: slateDark.
|
|
282
|
+
sidebarBg: slateDark.slate3,
|
|
244
283
|
sidebarShadow: `-3px 0px 10px 0px ${getOpacities(slateDark.slate1).opacity80}`,
|
|
245
|
-
menuBg: slateDark.slate2,
|
|
246
|
-
menuFooterColor: getOpacities(slateDark.slate3).opacity20,
|
|
247
|
-
menuFooterHoverColor: getOpacities(slateDark.slate3).opacity40,
|
|
248
284
|
textColor: slate.slate6,
|
|
249
285
|
textSelectionColor: getOpacities(blueDark.blue10).opacity40,
|
|
250
286
|
accentTextColor: slate.slate10,
|
|
251
287
|
disabledTextColor: slateDark.slate9,
|
|
252
|
-
inversedTextColor:
|
|
288
|
+
inversedTextColor: slateDark.slate6,
|
|
253
289
|
linkColor: indigoDark.indigo11,
|
|
254
290
|
linkBorder: `1px solid ${getOpacities(indigoDark.indigo11).opacity40}`,
|
|
255
291
|
linkHoverColor: indigoDark.indigo10,
|
|
@@ -261,19 +297,21 @@ const darkColors = {
|
|
|
261
297
|
entityNodeBorder: `1px solid ${getOpacities(slate.slate8).opacity40}`,
|
|
262
298
|
entityNodeHoverColor: slate.slate7,
|
|
263
299
|
entityNodeBorderHover: `1px solid ${getOpacities(slate.slate7).opacity80}`,
|
|
264
|
-
entityNodeBgColor:
|
|
300
|
+
entityNodeBgColor: slateDark.slate3,
|
|
265
301
|
shortcutTextColor: slateDark.slate11,
|
|
266
302
|
shortcutBorderColor: `1px solid ${getOpacities(slateDark.slate10).opacity20}`,
|
|
267
303
|
inputBgColor: slateDark.slate2,
|
|
268
|
-
inputDisabledBgColor: slateDark.
|
|
304
|
+
inputDisabledBgColor: getOpacities(slateDark.slate6).opacity30,
|
|
305
|
+
inputDisabledBorderColor: `0 0 0 1px ${getOpacities(slateDark.slate8).opacity20}`,
|
|
269
306
|
inputCopyBgColor: slateDark.slate4,
|
|
270
307
|
inputBorderColor: `0 0 0 1px ${getOpacities(slateDark.slate8).opacity70}`,
|
|
271
|
-
inputBorderHoverColor: `0 0 0 1px ${getOpacities(slateDark.slate8).
|
|
308
|
+
inputBorderHoverColor: `0 0 0 1px ${getOpacities(slateDark.slate8).opacity100}`,
|
|
309
|
+
inputBorderFocusColor: `0 0 0 1px ${getOpacities(slateDark.slate9).opacity100}`,
|
|
310
|
+
inputBorderBlendMode: "lighten",
|
|
272
311
|
inputPlaceholderTextColor: slate.slate10,
|
|
273
312
|
buttonColor: slateDark.slate10,
|
|
274
313
|
buttonPrimaryTextColor: slate.slate6,
|
|
275
|
-
|
|
276
|
-
selectedMenuTextColor: slate.slate2,
|
|
314
|
+
checkboxColor: slateDark.slate10,
|
|
277
315
|
actionMenuBg: slateDark.slate4,
|
|
278
316
|
actionMenuInnerBg: slateDark.slate5,
|
|
279
317
|
actionMenuShadow: `0 0 0 1px ${getOpacities(slateDark.slate1).opacity10}, 0 12px 16px -4px ${
|
|
@@ -283,10 +321,14 @@ const darkColors = {
|
|
|
283
321
|
actionMenuInnerHover: getOpacities(slateDark.slate7).opacity50,
|
|
284
322
|
actionMenuButtonColor: slateDark.slate2,
|
|
285
323
|
actionMenuButtonHoverColor: slateDark.slate3,
|
|
324
|
+
actionMenuButtonShadow: `0 0 0 1px ${getOpacities(slateDark.slate2).opacity10}, 0 2px 4px -4px ${
|
|
325
|
+
getOpacities(slateDark.slate2).opacity20
|
|
326
|
+
}`,
|
|
327
|
+
actionMenuButtonShadowHover: `0 0 0 1px ${getOpacities(slateDark.slate2).opacity10}, 0 6px 8px -4px ${
|
|
328
|
+
getOpacities(slateDark.slate2).opacity30
|
|
329
|
+
}`,
|
|
286
330
|
separatorColor: getOpacities(slateDark.slate8).opacity50,
|
|
287
331
|
iconColor: slate.slate9,
|
|
288
|
-
menuIconColor: getOpacities(slate.slate10).opacity90,
|
|
289
|
-
selectedMenuIconColor: getOpacities(slate.slate1).opacity90,
|
|
290
332
|
appIconColor: getOpacities(slate.slate2).opacity70,
|
|
291
333
|
mentionBgColor: slateDark.slate5,
|
|
292
334
|
entityCardBgColor: slateDark.slate4,
|
|
@@ -296,9 +338,10 @@ const darkColors = {
|
|
|
296
338
|
entityCardShadow: `0 0 0 1px ${getOpacities(slateDark.slate2).opacity10}, 0 2px 4px -4px ${
|
|
297
339
|
getOpacities(slateDark.slate2).opacity20
|
|
298
340
|
}`,
|
|
299
|
-
entityCardShadowHover: `0 0 0 1px ${getOpacities(slateDark.slate2).opacity10}, 0
|
|
300
|
-
getOpacities(slateDark.slate2).
|
|
341
|
+
entityCardShadowHover: `0 0 0 1px ${getOpacities(slateDark.slate2).opacity10}, 0 2px 4px -4px ${
|
|
342
|
+
getOpacities(slateDark.slate2).opacity20
|
|
301
343
|
}`,
|
|
344
|
+
relationViewBgColor: slateDark.slate3,
|
|
302
345
|
unitBg: slateDark.slate6,
|
|
303
346
|
unitBgHover: slateDark.slate7,
|
|
304
347
|
badgeBgColor: getOpacities(slate.slate10).opacity20,
|
|
@@ -310,8 +353,10 @@ const darkColors = {
|
|
|
310
353
|
commentColor: getOpacities(yellowDark.yellow9).opacity40,
|
|
311
354
|
cellBorderColor: getOpacities(slateDark.slate9).opacity50,
|
|
312
355
|
tableRowWarningColor: getOpacities(yellowDark.yellow9).opacity40,
|
|
313
|
-
|
|
356
|
+
errorBgColor: getOpacities(redDark.red9).opacity60,
|
|
357
|
+
warningBgColor: getOpacities(yellowDark.yellow8).opacity60,
|
|
314
358
|
warningButtonColor: yellowDark.yellow11,
|
|
359
|
+
infoBox: getOpacities(yellowDark.yellow8).opacity40,
|
|
315
360
|
appCardBgColor: slateDark.slate2,
|
|
316
361
|
appCardHoverColor: slateDark.slate2,
|
|
317
362
|
appCardShadow: `0 0 0 1px ${getOpacities(slateDark.slate8).opacity50}, 0 2px 4px -4px ${
|
|
@@ -320,7 +365,16 @@ const darkColors = {
|
|
|
320
365
|
appCardShadowHover: `0 0 0 1px ${getOpacities(slateDark.slate8).opacity60}, 0 6px 8px -4px ${
|
|
321
366
|
getOpacities(slateDark.slate1).opacity100
|
|
322
367
|
}`,
|
|
323
|
-
modalBg: getOpacities(slateDark.
|
|
368
|
+
modalBg: getOpacities(slateDark.slate2).opacity50,
|
|
369
|
+
modalShadow: `${getOpacities(slateDark.slate1).opacity40} 0px 16px 70px`,
|
|
370
|
+
modalContentBg: slateDark.slate3,
|
|
371
|
+
progressIconBg: getOpacities(slate.slate1).opacity10,
|
|
372
|
+
progressIconFill: getOpacities(slate.slate1).opacity60,
|
|
373
|
+
progressIconDoneBg: getOpacities(slate.slate1).opacity10,
|
|
374
|
+
progressIconDoneFill: getOpacities(slate.slate1).opacity80,
|
|
375
|
+
instrumentsMenuBg: getOpacities(slateDark.slate4).opacity95,
|
|
376
|
+
instrumentsMenuShadow: `0px 2px 8px ${getOpacities(slate.slate2).opacity95}`,
|
|
377
|
+
selectedColorBorder: getOpacities(slate.slate6).opacity20,
|
|
324
378
|
//end
|
|
325
379
|
placeholderTextColor: "#65788B",
|
|
326
380
|
disabledInversedTextColor: lights.light,
|
|
@@ -330,113 +384,6 @@ const darkColors = {
|
|
|
330
384
|
cardBg: slateDark.slate6,
|
|
331
385
|
cardSelected: slateDark.slate5,
|
|
332
386
|
cardSelectedHover: slateDark.slate5,
|
|
333
|
-
infoBox: "rgba(255, 212, 0, 0.2)",
|
|
334
|
-
errorBg: "rgba(255, 241, 240, 1)",
|
|
335
|
-
timelineCard: "#FCE07D",
|
|
336
|
-
transparent,
|
|
337
|
-
shades,
|
|
338
|
-
lights,
|
|
339
|
-
separators: inversedSeparators,
|
|
340
|
-
inversedSeparators: separators,
|
|
341
|
-
} as const;
|
|
342
|
-
|
|
343
|
-
const oldColors = {
|
|
344
|
-
mode: "old",
|
|
345
|
-
brandColors,
|
|
346
|
-
stateColors,
|
|
347
|
-
//old theme
|
|
348
|
-
whiteColor: whiteA.whiteA0,
|
|
349
|
-
blackColor: blackA.blackA0,
|
|
350
|
-
mainBg: sage.sage3,
|
|
351
|
-
panelBg: whiteA.whiteA0,
|
|
352
|
-
panelContentBg: sage.sage2,
|
|
353
|
-
pageBg: whiteA.whiteA0,
|
|
354
|
-
pageContentBg: whiteA.whiteA0,
|
|
355
|
-
sidebarBg: whiteA.whiteA0,
|
|
356
|
-
sidebarShadow: `-3px 0px 10px 0px ${getOpacities(sage.sage2).opacity80}`,
|
|
357
|
-
menuBg: "#132331",
|
|
358
|
-
menuFooterColor: "rgba(255, 255, 255, 0.05)",
|
|
359
|
-
menuFooterHoverColor: "rgba(255, 255, 255, 0.08)",
|
|
360
|
-
textColor: "#2A3844",
|
|
361
|
-
textSelectionColor: getOpacities(blue.blue10).opacity20,
|
|
362
|
-
accentTextColor: "#65788B",
|
|
363
|
-
disabledTextColor: shades.regular,
|
|
364
|
-
inversedTextColor: "#FFFFFF",
|
|
365
|
-
linkColor: indigoDark.indigo10,
|
|
366
|
-
linkBorder: `1px solid ${getOpacities(indigoDark.indigo10).opacity30}`,
|
|
367
|
-
linkHoverColor: indigo.indigo10,
|
|
368
|
-
linkBorderHover: `1px solid ${getOpacities(indigo.indigo10).opacity80}`,
|
|
369
|
-
codeColor: red.red9,
|
|
370
|
-
codeBgColor: makeChromaColor("#F24461").luminance(0.92).css(),
|
|
371
|
-
codeBlockBgColor: sage.sage3,
|
|
372
|
-
entityNodeColor: slateDark.slate3,
|
|
373
|
-
entityNodeBorder: `1px solid ${getOpacities(slateDark.slate3).opacity30}`,
|
|
374
|
-
entityNodeHoverColor: slateDark.slate7,
|
|
375
|
-
entityNodeBorderHover: `1px solid ${getOpacities(slate.slate11).opacity80}`,
|
|
376
|
-
entityNodeBgColor: getOpacities(slate.slate3).opacity80,
|
|
377
|
-
shortcutTextColor: slate.slate9,
|
|
378
|
-
shortcutBorderColor: `1px solid ${getOpacities(slate.slate8).opacity20}`,
|
|
379
|
-
inputBgColor: whiteA.whiteA0,
|
|
380
|
-
inputDisabledBgColor: slate.slate2,
|
|
381
|
-
inputCopyBgColor: slate.slate2,
|
|
382
|
-
inputBorderColor: `0 0 0 1px ${shades.thin}`,
|
|
383
|
-
inputBorderHoverColor: `0 0 0 1px ${shades.light}`,
|
|
384
|
-
inputPlaceholderTextColor: "#65788B",
|
|
385
|
-
buttonColor: slate.slate10,
|
|
386
|
-
buttonPrimaryTextColor: slate.slate6,
|
|
387
|
-
menuTextColor: "#FFFFFF",
|
|
388
|
-
selectedMenuTextColor: "#FFFFFF",
|
|
389
|
-
actionMenuBg: whiteA.whiteA0,
|
|
390
|
-
actionMenuInnerBg: whiteA.whiteA0,
|
|
391
|
-
actionMenuShadow: `0 0 0 1px rgba(17, 33, 58, 0.05), 0 16px 24px -8px rgba(17, 33, 58, 0.32)`,
|
|
392
|
-
actionMenuHover: "rgba(240, 244, 247, 1)",
|
|
393
|
-
actionMenuInnerHover: "rgba(240, 244, 247, 1)",
|
|
394
|
-
actionMenuButtonColor: whiteA.whiteA0,
|
|
395
|
-
actionMenuButtonHoverColor: slate.slate1,
|
|
396
|
-
separatorColor: slate.slate3,
|
|
397
|
-
iconColor: "#65788B",
|
|
398
|
-
menuIconColor: "#65788B",
|
|
399
|
-
selectedMenuIconColor: whiteA.whiteA0,
|
|
400
|
-
appIconColor: getOpacities(whiteA.whiteA0).opacity90,
|
|
401
|
-
mentionBgColor: slate.slate3,
|
|
402
|
-
entityCardBgColor: "#FFFFFF",
|
|
403
|
-
entityCardSelectedColor: "#FFFB8F",
|
|
404
|
-
entityCardHoverColor: "#FFFFFF",
|
|
405
|
-
entityCardDoneColor: lights.regular,
|
|
406
|
-
entityCardShadow: `0 0 0 1px rgba(17, 33, 58, .08), 0 4px 4px -4px rgba(17, 33, 58, .40)`,
|
|
407
|
-
entityCardShadowHover: `0 0 0 1px rgba(17, 33, 58, .1), 0 4px 8px -4px rgba(17, 33, 58, .68)`,
|
|
408
|
-
unitBg: "rgba(220, 224, 228, 0.33)",
|
|
409
|
-
unitBgHover: "rgba(220, 224, 228, 0.63)",
|
|
410
|
-
badgeBgColor: getOpacities("#65788B").regular,
|
|
411
|
-
tooltipBgColor: slateDark.slate5,
|
|
412
|
-
todayMarkerColor: red.red8,
|
|
413
|
-
viewBgOverlayColor: getOpacities(slate.slate8).opacity20,
|
|
414
|
-
floatEditorMenuBg: slate.slate1,
|
|
415
|
-
floatEditorActiveColor: indigoDark.indigo10,
|
|
416
|
-
commentColor: getOpacities(yellow.yellow6).opacity60,
|
|
417
|
-
cellBorderColor: getOpacities(slate.slate4).opacity50,
|
|
418
|
-
tableRowWarningColor: getOpacities(yellow.yellow6).opacity60,
|
|
419
|
-
warningBgColor: yellow.yellow6,
|
|
420
|
-
warningButtonColor: yellow.yellow11,
|
|
421
|
-
appCardBgColor: whiteA.whiteA0,
|
|
422
|
-
appCardHoverColor: getOpacities(slate.slate1).opacity95,
|
|
423
|
-
appCardShadow: `0 0 0 1px ${getOpacities(slate.slate10).opacity10}, 0 2px 4px -4px ${
|
|
424
|
-
getOpacities(slate.slate10).opacity20
|
|
425
|
-
}`,
|
|
426
|
-
appCardShadowHover: `0 0 0 1px ${getOpacities(slate.slate10).opacity10}, 0 6px 8px -4px ${
|
|
427
|
-
getOpacities(slate.slate10).opacity30
|
|
428
|
-
}`,
|
|
429
|
-
modalBg: getOpacities(slate.slate11).opacity20,
|
|
430
|
-
//end
|
|
431
|
-
placeholderTextColor: "#65788B",
|
|
432
|
-
disabledInversedTextColor: lights.light,
|
|
433
|
-
danger: brandColors.red,
|
|
434
|
-
active: brandColors.red,
|
|
435
|
-
warning: "#FFD41E",
|
|
436
|
-
cardBg: "#FFFFFF",
|
|
437
|
-
cardSelected: "#FFFB8F",
|
|
438
|
-
cardSelectedHover: "rgba(240, 244, 247, 0.6)",
|
|
439
|
-
infoBox: "rgba(255, 212, 0, 0.2)",
|
|
440
387
|
errorBg: "rgba(255, 241, 240, 1)",
|
|
441
388
|
timelineCard: "#FCE07D",
|
|
442
389
|
transparent,
|
|
@@ -444,6 +391,7 @@ const oldColors = {
|
|
|
444
391
|
lights,
|
|
445
392
|
separators: inversedSeparators,
|
|
446
393
|
inversedSeparators: separators,
|
|
394
|
+
...darkMenu,
|
|
447
395
|
} as const;
|
|
448
396
|
|
|
449
397
|
export function getLightColors(): typeof lightColors {
|
|
@@ -460,19 +408,22 @@ export function getDarkColors(): typeof darkColors {
|
|
|
460
408
|
return darkColors;
|
|
461
409
|
}
|
|
462
410
|
|
|
463
|
-
export function
|
|
411
|
+
export function getLight2Colors(): typeof light2Colors {
|
|
464
412
|
if (process.env.NODE_ENV !== "test") {
|
|
465
413
|
throw new Error("Only for test purpose");
|
|
466
414
|
}
|
|
467
|
-
return
|
|
415
|
+
return light2Colors;
|
|
468
416
|
}
|
|
469
417
|
|
|
470
418
|
const getDefaultTheme = (): never => {
|
|
471
419
|
throw Error("Please specify theme mode");
|
|
472
420
|
};
|
|
473
421
|
|
|
474
|
-
export function getThemeValue<T>(theme: ThemeMode, values:
|
|
475
|
-
|
|
422
|
+
export function getThemeValue<T>(theme: ThemeMode, values: {light: T; light2?: T; dark: T}): T {
|
|
423
|
+
if (theme in values) {
|
|
424
|
+
return values[theme] as T;
|
|
425
|
+
}
|
|
426
|
+
return values.light;
|
|
476
427
|
}
|
|
477
428
|
|
|
478
429
|
function getTypeColors(themeColor: string, theme: ThemeMode) {
|
|
@@ -486,19 +437,6 @@ function getTypeColors(themeColor: string, theme: ThemeMode) {
|
|
|
486
437
|
}
|
|
487
438
|
const boardBg = chroma(color).luminance(0.85).desaturate(0.2).set("hsl.h", "+2");
|
|
488
439
|
|
|
489
|
-
const oldTypeColors = {
|
|
490
|
-
primary: color,
|
|
491
|
-
opacity: getOpacities(color),
|
|
492
|
-
darkenPrimary: getDarkenColor(color),
|
|
493
|
-
brightenPrimary: chroma(color).luminance(0.92).desaturate(0.1).alpha(0.98).css(),
|
|
494
|
-
boardBg: boardBg.hex(),
|
|
495
|
-
boardBgOverlay: boardBg.alpha(0.8).css(),
|
|
496
|
-
headerBg: chroma(color).luminance(0.7).desaturate(0.5).set("hsl.h", "+2").css(),
|
|
497
|
-
detailsBg: chroma(color).luminance(0.85).hex(),
|
|
498
|
-
focus: chroma(color).alpha(0.25).css(),
|
|
499
|
-
separator: chroma(color).alpha(0.3).css(),
|
|
500
|
-
};
|
|
501
|
-
|
|
502
440
|
const lightTypeColors = {
|
|
503
441
|
primary: color,
|
|
504
442
|
opacity: getOpacities(color),
|
|
@@ -507,7 +445,7 @@ function getTypeColors(themeColor: string, theme: ThemeMode) {
|
|
|
507
445
|
boardBg: boardBg.hex(),
|
|
508
446
|
boardBgOverlay: boardBg.alpha(0.8).css(),
|
|
509
447
|
headerBg: chroma(color).luminance(0.7).desaturate(0.5).set("hsl.h", "+2").css(),
|
|
510
|
-
detailsBg: chroma(color).alpha(0.
|
|
448
|
+
detailsBg: chroma(color).alpha(0.5).luminance(0.85).hex(),
|
|
511
449
|
focus: chroma(color).alpha(0.25).css(),
|
|
512
450
|
separator: chroma(color).alpha(0.3).css(),
|
|
513
451
|
};
|
|
@@ -520,7 +458,7 @@ function getTypeColors(themeColor: string, theme: ThemeMode) {
|
|
|
520
458
|
boardBg: boardBg.hex(),
|
|
521
459
|
boardBgOverlay: boardBg.alpha(0.8).css(),
|
|
522
460
|
headerBg: chroma(color).luminance(0.7).desaturate(0.5).set("hsl.h", "+2").css(),
|
|
523
|
-
detailsBg: chroma(color).alpha(0.03).luminance(0.8).darken(0.1).hex(),
|
|
461
|
+
detailsBg: chroma(color).alpha(0.03).luminance(0.8).desaturate(0.8).darken(0.1).hex(),
|
|
524
462
|
focus: chroma(color).alpha(0.25).css(),
|
|
525
463
|
separator: chroma(color).alpha(0.3).css(),
|
|
526
464
|
};
|
|
@@ -530,21 +468,21 @@ function getTypeColors(themeColor: string, theme: ThemeMode) {
|
|
|
530
468
|
return lightTypeColors;
|
|
531
469
|
case "dark":
|
|
532
470
|
return darkTypeColors;
|
|
533
|
-
case "
|
|
534
|
-
return
|
|
471
|
+
case "light2":
|
|
472
|
+
return lightTypeColors;
|
|
535
473
|
default:
|
|
536
|
-
return
|
|
474
|
+
return lightTypeColors;
|
|
537
475
|
}
|
|
538
476
|
}
|
|
539
477
|
|
|
540
|
-
type DesignColor = typeof darkColors | typeof lightColors | typeof
|
|
478
|
+
type DesignColor = typeof darkColors | typeof lightColors | typeof light2Colors;
|
|
541
479
|
|
|
542
480
|
export type ThemeColors = ReturnType<typeof getTypeColors> & DesignColor;
|
|
543
481
|
|
|
544
482
|
const colorsByTheme: Record<string, DesignColor> = {
|
|
545
483
|
dark: darkColors,
|
|
546
484
|
light: lightColors,
|
|
547
|
-
|
|
485
|
+
light2: light2Colors,
|
|
548
486
|
};
|
|
549
487
|
|
|
550
488
|
export const getThemeColors: (themeColor: string, theme: ThemeMode) => ThemeColors = _.memoize(
|
|
@@ -569,11 +507,20 @@ export const getBrightenColor = (color: string): string => {
|
|
|
569
507
|
export const getLinkedHighlightBackgroundColor = (themeColors: ThemeColors, color: string): string => {
|
|
570
508
|
switch (themeColors.mode) {
|
|
571
509
|
case "dark":
|
|
572
|
-
return makeChromaColor(color).alpha(0.4).luminance(0.5).css(
|
|
510
|
+
return makeChromaColor(color).alpha(0.4).luminance(0.5).css();
|
|
573
511
|
case "light":
|
|
574
|
-
return makeChromaColor(color).alpha(0.3).luminance(0.6).css(
|
|
512
|
+
return makeChromaColor(color).alpha(0.3).luminance(0.6).css();
|
|
513
|
+
default:
|
|
514
|
+
return makeChromaColor(color).alpha(0.3).luminance(0.6).css();
|
|
515
|
+
}
|
|
516
|
+
};
|
|
517
|
+
|
|
518
|
+
export const getEnumBackgroundColor = (themeMode: ThemeMode, color: string) => {
|
|
519
|
+
switch (themeMode) {
|
|
520
|
+
case "dark":
|
|
521
|
+
return makeChromaColor(color).darken(2.2).alpha(0.5).saturate(1).css();
|
|
575
522
|
default:
|
|
576
|
-
return
|
|
523
|
+
return color;
|
|
577
524
|
}
|
|
578
525
|
};
|
|
579
526
|
|
|
@@ -616,7 +563,6 @@ export const colors = {
|
|
|
616
563
|
cardSelectedHover: "rgba(240, 244, 247, 0.6)",
|
|
617
564
|
unitBg: "rgba(220, 224, 228, 0.33)",
|
|
618
565
|
infoBox: "rgba(255, 212, 0, 0.2)",
|
|
619
|
-
modalBg: "rgba(26, 42, 94, 0.3)",
|
|
620
566
|
errorBg: "rgba(255, 241, 240, 1)",
|
|
621
567
|
timelineCard: "#FCE07D",
|
|
622
568
|
timelineScaleSelectBorderColor: chroma("#FFFFFF").alpha(opacity.regular).css(),
|
|
@@ -709,13 +655,8 @@ export const viewBoxSize = "0 0 20 20";
|
|
|
709
655
|
export const avatarSize = 24;
|
|
710
656
|
|
|
711
657
|
export const shadows = {
|
|
712
|
-
light: `0 1px 3px ${shades.hairline}`,
|
|
713
|
-
lightReverted: `0 -1px 3px ${shades.hairline}`,
|
|
714
658
|
border: `0 0 0 1px ${shades.thin}`,
|
|
715
659
|
inversedBorder: `0 0 0 1px ${lights.thin}`,
|
|
716
|
-
cardRegular: "0 0 0 1px rgba(17, 33, 58, .08), 0 4px 4px -4px rgba(17, 33, 58, .40)",
|
|
717
|
-
cardHover: "0 0 0 1px rgba(17, 33, 58, .1), 0 4px 8px -4px rgba(17, 33, 58, .68)",
|
|
718
|
-
dragging: "0 0 0 1px rgba(17, 33, 58, .08), 0 4px 4px -4px rgba(17, 33, 58, .40)",
|
|
719
660
|
videoPreview: "0 4px 30px 4px rgba(0, 0, 0, .15)",
|
|
720
661
|
} as const;
|
|
721
662
|
|
|
@@ -744,7 +685,7 @@ export const getObjectColorMemoized = _.memoize((name) => {
|
|
|
744
685
|
return colorHash.hex(name);
|
|
745
686
|
});
|
|
746
687
|
|
|
747
|
-
export const themeVars = Object.keys(getThemeColors(
|
|
688
|
+
export const themeVars = Object.keys(getThemeColors(brandColors.green, "light")).reduce((vars, key) => {
|
|
748
689
|
if (key === "opacity") {
|
|
749
690
|
vars[key] = Object.fromEntries(
|
|
750
691
|
Object.keys(opacity).map((opacityKey) => [opacityKey, `var(--fibery-opacity-${opacityKey})`])
|
|
@@ -782,7 +723,8 @@ export const themeVars = Object.keys(getThemeColors("#FFFFFF", "light")).reduce(
|
|
|
782
723
|
return vars;
|
|
783
724
|
}, {} as Record<string, string | {[k: string]: string}>) as ThemeColors;
|
|
784
725
|
|
|
785
|
-
export const createInlineTheme = (theme: ThemeColors
|
|
726
|
+
export const createInlineTheme = (theme: ThemeColors, rejectKeys = Object.keys(lightColors)) =>
|
|
727
|
+
createInlineStyles<ThemeColors>(theme, rejectKeys);
|
|
786
728
|
|
|
787
729
|
export const textStyles = {
|
|
788
730
|
heading1: {
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
|
|
4
4
|
import { IconDefinition } from '../types';
|
|
5
5
|
|
|
6
|
-
const AppStoreOneColor: IconDefinition = {"icon":{"type":"root","children":[{"type":"element","tagName":"svg","properties":{"viewBox":"0 0 20 20"},"children":[{"type":"element","tagName":"g","properties":{"fill":"
|
|
6
|
+
const AppStoreOneColor: IconDefinition = {"icon":{"type":"root","children":[{"type":"element","tagName":"svg","properties":{"viewBox":"0 0 20 20"},"children":[{"type":"element","tagName":"g","properties":{"fill":"#51B69D"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","clipRule":"evenodd","d":"M13.73 8.229v4.488a.9.9 0 0 1-.9.9h-4.5a.9.9 0 1 1 0-1.8h2.328L5.794 6.954A.9.9 0 0 1 7.067 5.68l4.863 4.863V8.23a.9.9 0 0 1 1.8 0Z"},"children":[]},{"type":"element","tagName":"path","properties":{"d":"M1.03 5.7c0-4.113.588-4.7 4.7-4.7 4.113 0 4.7.587 4.7 4.7 0 .43-.006.821-.022 1.177l-1.59-1.59c-.01-.718-.046-1.24-.12-1.631-.084-.45-.197-.602-.259-.665-.062-.062-.215-.174-.664-.26-.462-.086-1.108-.121-2.045-.121-.937 0-1.582.035-2.044.122-.45.085-.602.197-.665.26-.062.062-.174.214-.259.664-.087.462-.122 1.107-.122 2.044s.035 1.582.122 2.044c.085.45.197.602.26.665.062.062.214.174.664.26.408.076.959.112 1.727.12l1.584 1.584c-.38.02-.8.027-1.267.027-4.113 0-4.7-.587-4.7-4.7ZM13.56 18.295c-3.555 0-4.48-.245-4.663-3.022h1.619c.018.213.046.203.076.366.085.45.197.602.26.665.062.062.214.174.664.259.462.087 1.108.122 2.045.122.937 0 1.582-.035 2.044-.122.45-.085.602-.197.664-.26.063-.062.175-.214.26-.664.087-.462.122-1.107.122-2.044s-.035-1.583-.122-2.045c-.085-.45-.197-.602-.26-.664-.062-.062-.214-.175-.664-.26-.163-.03-.157-.035-.37-.054V8.953c2.778.184 3.026 1.085 3.026 4.642 0 4.112-.588 4.7-4.7 4.7Z"},"children":[]}]}],"metadata":""}]},"name":"app-store-one-color"};
|
|
7
7
|
|
|
8
8
|
export default AppStoreOneColor;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
|
|
2
|
+
// This icon file is generated automatically.
|
|
3
|
+
|
|
4
|
+
import { IconDefinition } from '../types';
|
|
5
|
+
|
|
6
|
+
const Email: IconDefinition = {"icon":{"type":"root","children":[{"type":"element","tagName":"svg","properties":{"width":20,"height":20},"children":[{"type":"element","tagName":"path","properties":{"d":"M4.74 16H15.4c1.32 0 2.1-.79 2.1-2.268V6.268C17.5 4.79 16.72 4 15.26 4H4.595C3.273 4 2.5 4.79 2.5 6.268v7.464C2.5 15.217 3.28 16 4.74 16Zm4.543-5.831L4.593 5.43c.054-.007.113-.007.173-.007h10.462c.066 0 .132 0 .191.014l-4.69 4.73c-.27.27-.488.385-.726.385-.23 0-.449-.121-.72-.384ZM3.867 6.47l3.468 3.49-3.468 3.51v-7Zm8.811 3.483 3.448-3.463v6.966l-3.448-3.503Zm-7.912 4.63a1.21 1.21 0 0 1-.225-.02l3.672-3.72.317.318c.49.492.965.702 1.473.702.515 0 .991-.21 1.473-.702l.317-.317 3.673 3.718c-.073.014-.152.02-.238.02H4.766Z"},"children":[]}],"metadata":""}]},"name":"email"};
|
|
7
|
+
|
|
8
|
+
export default Email;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
|
|
2
|
+
// This icon file is generated automatically.
|
|
3
|
+
|
|
4
|
+
import { IconDefinition } from '../types';
|
|
5
|
+
|
|
6
|
+
const SidebarFields: IconDefinition = {"icon":{"type":"root","children":[{"type":"element","tagName":"svg","properties":{"width":20,"height":20},"children":[{"type":"element","tagName":"path","properties":{"d":"M15.237 7.492h-1.601a.516.516 0 0 1-.508-.5c0-.265.234-.492.508-.492h1.601a.51.51 0 0 1 .516.492c0 .266-.234.5-.516.5ZM15.237 9.586h-1.601a.516.516 0 0 1-.508-.5c0-.266.234-.492.508-.492h1.601a.51.51 0 0 1 .516.492c0 .266-.234.5-.516.5ZM13.636 11.672h1.601a.51.51 0 0 0 .516-.492.51.51 0 0 0-.516-.492h-1.601a.509.509 0 0 0-.508.492c0 .265.234.492.508.492Z"},"children":[]},{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","clipRule":"evenodd","d":"M15.447 17H4.553C2.872 17 2 16.143 2 14.492V5.508C2 3.857 2.872 3 4.553 3h10.894C17.128 3 18 3.857 18 5.508v8.984C18 16.136 17.128 17 15.447 17ZM3.525 14.36c0 .75.397 1.127 1.121 1.127h6.233V4.513H4.646c-.724 0-1.12.37-1.12 1.119v8.729Zm12.95-8.728c0-.749-.405-1.12-1.121-1.12h-3.027v10.975h3.027c.716 0 1.12-.378 1.12-1.127V5.633Z"},"children":[]}],"metadata":""}]},"name":"sidebar-fields"};
|
|
7
|
+
|
|
8
|
+
export default SidebarFields;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
|
|
2
|
+
// This icon file is generated automatically.
|
|
3
|
+
|
|
4
|
+
import { IconDefinition } from '../types';
|
|
5
|
+
|
|
6
|
+
const SidebarFieldsOpened: IconDefinition = {"icon":{"type":"root","children":[{"type":"element","tagName":"svg","properties":{"width":20,"height":20},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","clipRule":"evenodd","d":"M4.553 17h10.894C17.128 17 18 16.136 18 14.492V5.508C18 3.857 17.128 3 15.447 3H4.553C2.872 3 2 3.857 2 5.508v8.984C2 16.143 2.872 17 4.553 17Zm.093-1.513c-.724 0-1.12-.378-1.12-1.127V5.633c0-.749.396-1.12 1.12-1.12h6.233v10.975H4.646Zm10.591-7.995h-1.601a.516.516 0 0 1-.508-.5c0-.265.234-.492.508-.492h1.601a.51.51 0 0 1 .516.492c0 .266-.234.5-.516.5Zm0 2.094h-1.601a.516.516 0 0 1-.508-.5c0-.266.234-.492.508-.492h1.601a.51.51 0 0 1 .516.492c0 .266-.234.5-.516.5Zm0 2.086h-1.601a.509.509 0 0 1-.508-.492c0-.266.234-.492.508-.492h1.601a.51.51 0 0 1 .516.492.51.51 0 0 1-.516.492Z"},"children":[]}],"metadata":""}]},"name":"sidebar-fields-opened"};
|
|
7
|
+
|
|
8
|
+
export default SidebarFieldsOpened;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
|
|
2
|
+
// This icon file is generated automatically.
|
|
3
|
+
|
|
4
|
+
import { IconDefinition } from '../types';
|
|
5
|
+
|
|
6
|
+
const SlackIcon: IconDefinition = {"icon":{"type":"root","children":[{"type":"element","tagName":"svg","properties":{"width":20,"height":20},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","clipRule":"evenodd","d":"M7.597 3.107a1.404 1.404 0 0 1 1.527.304 1.398 1.398 0 0 1 .41.99V5.8h-1.4a1.404 1.404 0 0 1-1.4-1.4 1.396 1.396 0 0 1 .863-1.293ZM4.4 6.733h3.733a1.404 1.404 0 0 1 1.4 1.4 1.396 1.396 0 0 1-.863 1.293c-.17.07-.353.107-.537.107H4.4a1.404 1.404 0 0 1-1.294-.864 1.396 1.396 0 0 1 .304-1.525 1.402 1.402 0 0 1 .99-.41Zm12.494.865a1.395 1.395 0 0 1 0 1.07 1.398 1.398 0 0 1-1.294.865h-1.4v-1.4a1.395 1.395 0 0 1 .864-1.293 1.404 1.404 0 0 1 1.526.304c.13.13.234.284.304.454ZM13.267 4.4v3.733a1.397 1.397 0 0 1-1.4 1.4 1.403 1.403 0 0 1-1.4-1.4V4.4a1.395 1.395 0 0 1 .864-1.293 1.403 1.403 0 0 1 1.526.304 1.398 1.398 0 0 1 .41.99Zm-1.4 12.6a1.404 1.404 0 0 0 1.4-1.4 1.397 1.397 0 0 0-1.4-1.4h-1.4v1.4a1.395 1.395 0 0 0 .864 1.293c.17.07.352.107.536.107Zm0-3.733H15.6a1.405 1.405 0 0 0 1.294-.865 1.395 1.395 0 0 0 0-1.07 1.4 1.4 0 0 0-1.294-.865h-3.733a1.403 1.403 0 0 0-1.4 1.4 1.397 1.397 0 0 0 1.4 1.4Zm-8.76-.865a1.396 1.396 0 0 1 .302-1.525 1.402 1.402 0 0 1 .991-.41h1.4v1.4a1.396 1.396 0 0 1-1.4 1.4 1.405 1.405 0 0 1-1.294-.865ZM3 11.867ZM6.733 15.6v-3.733a1.396 1.396 0 0 1 1.4-1.4 1.402 1.402 0 0 1 1.4 1.4V15.6a1.396 1.396 0 0 1-1.4 1.4 1.403 1.403 0 0 1-1.4-1.4Z"},"children":[]}],"metadata":""}]},"name":"slack-icon"};
|
|
7
|
+
|
|
8
|
+
export default SlackIcon;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
|
|
2
|
+
// This icon file is generated automatically.
|
|
3
|
+
|
|
4
|
+
import { IconDefinition } from '../types';
|
|
5
|
+
|
|
6
|
+
const SlideMenu: IconDefinition = {"icon":{"type":"root","children":[{"type":"element","tagName":"svg","properties":{"width":20,"height":20},"children":[{"type":"element","tagName":"path","properties":{"d":"M6.331 7.877H4.984c-.233 0-.384-.143-.384-.368V6.176c0-.233.143-.376.384-.376H6.33c.226 0 .369.143.369.376V7.51c0 .225-.15.368-.369.368ZM6.331 10.956H4.984c-.233 0-.384-.15-.384-.369v-1.34c0-.225.143-.376.384-.376H6.33c.226 0 .369.15.369.376v1.34c0 .218-.15.369-.369.369ZM4.984 14.02H6.33c.218 0 .369-.144.369-.37v-1.332c0-.226-.143-.376-.369-.376H4.984c-.241 0-.384.15-.384.376v1.333c0 .225.15.368.384.368Z"},"children":[]},{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","clipRule":"evenodd","d":"M15.447 17H4.553C2.872 17 2 16.136 2 14.492V5.508C2 3.857 2.872 3 4.553 3h10.894C17.128 3 18 3.857 18 5.508v8.984C18 16.143 17.128 17 15.447 17Zm-.093-1.513c.724 0 1.12-.378 1.12-1.127V5.633c0-.749-.396-1.12-1.12-1.12H9.12v10.975h6.233ZM4.646 4.513c-.716 0-1.12.37-1.12 1.119v8.729c0 .748.404 1.126 1.12 1.126h3.028V4.513H4.646Z"},"children":[]}],"metadata":""}]},"name":"slide-menu"};
|
|
7
|
+
|
|
8
|
+
export default SlideMenu;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
|
|
2
|
+
// This icon file is generated automatically.
|
|
3
|
+
|
|
4
|
+
import { IconDefinition } from '../types';
|
|
5
|
+
|
|
6
|
+
const SlideMenuOpened: IconDefinition = {"icon":{"type":"root","children":[{"type":"element","tagName":"svg","properties":{"width":20,"height":20},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","clipRule":"evenodd","d":"M4.553 17h10.894C17.128 17 18 16.143 18 14.492V5.508C18 3.857 17.128 3 15.447 3H4.553C2.872 3 2 3.857 2 5.508v8.984C2 16.136 2.872 17 4.553 17Zm11.922-2.64c0 .75-.397 1.127-1.121 1.127H9.12V4.513h6.233c.724 0 1.12.37 1.12 1.119v8.729ZM6.33 7.878H4.984c-.233 0-.384-.143-.384-.368V6.176c0-.233.143-.376.384-.376H6.33c.226 0 .369.143.369.376V7.51c0 .225-.15.368-.369.368Zm0 3.079H4.984c-.233 0-.384-.15-.384-.369v-1.34c0-.225.143-.376.384-.376H6.33c.226 0 .369.15.369.376v1.34c0 .218-.15.369-.369.369Zm0 3.063H4.984c-.233 0-.384-.143-.384-.368v-1.333c0-.226.143-.376.384-.376H6.33c.226 0 .369.15.369.376v1.333c0 .225-.15.368-.369.368Z"},"children":[]}],"metadata":""}]},"name":"slide-menu-opened"};
|
|
7
|
+
|
|
8
|
+
export default SlideMenuOpened;
|
package/src/icons/ast/index.tsx
CHANGED
|
@@ -40,6 +40,7 @@ export { default as DoubleArrowLeft } from './DoubleArrowLeft';
|
|
|
40
40
|
export { default as DoubleArrowRight } from './DoubleArrowRight';
|
|
41
41
|
export { default as DragBlockHandle } from './DragBlockHandle';
|
|
42
42
|
export { default as DragHandle } from './DragHandle';
|
|
43
|
+
export { default as Email } from './Email';
|
|
43
44
|
export { default as ExtensionAssignments } from './ExtensionAssignments';
|
|
44
45
|
export { default as ExtensionAvatar } from './ExtensionAvatar';
|
|
45
46
|
export { default as ExtensionComments } from './ExtensionComments';
|
|
@@ -131,8 +132,13 @@ export { default as SelfReferenceOn } from './SelfReferenceOn';
|
|
|
131
132
|
export { default as Settings } from './Settings';
|
|
132
133
|
export { default as Share } from './Share';
|
|
133
134
|
export { default as Shared } from './Shared';
|
|
135
|
+
export { default as SidebarFieldsOpened } from './SidebarFieldsOpened';
|
|
136
|
+
export { default as SidebarFields } from './SidebarFields';
|
|
134
137
|
export { default as Sidebar } from './Sidebar';
|
|
138
|
+
export { default as SlackIcon } from './SlackIcon';
|
|
135
139
|
export { default as Slack } from './Slack';
|
|
140
|
+
export { default as SlideMenuOpened } from './SlideMenuOpened';
|
|
141
|
+
export { default as SlideMenu } from './SlideMenu';
|
|
136
142
|
export { default as SmartFolder } from './SmartFolder';
|
|
137
143
|
export { default as SortOnBottom } from './SortOnBottom';
|
|
138
144
|
export { default as SortOnTop } from './SortOnTop';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// This icon file is generated automatically.
|
|
2
|
+
|
|
3
|
+
import EmailSvg from '../ast/Email';
|
|
4
|
+
import { Icon } from '../Icon';
|
|
5
|
+
import { IconBaseProps } from '../types';
|
|
6
|
+
|
|
7
|
+
const Email = (
|
|
8
|
+
props: IconBaseProps,
|
|
9
|
+
): JSX.Element => <Icon {...props} icon={EmailSvg} />;
|
|
10
|
+
|
|
11
|
+
Email.displayName = 'Email';
|
|
12
|
+
export default Email;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// This icon file is generated automatically.
|
|
2
|
+
|
|
3
|
+
import SidebarFieldsSvg from '../ast/SidebarFields';
|
|
4
|
+
import { Icon } from '../Icon';
|
|
5
|
+
import { IconBaseProps } from '../types';
|
|
6
|
+
|
|
7
|
+
const SidebarFields = (
|
|
8
|
+
props: IconBaseProps,
|
|
9
|
+
): JSX.Element => <Icon {...props} icon={SidebarFieldsSvg} />;
|
|
10
|
+
|
|
11
|
+
SidebarFields.displayName = 'SidebarFields';
|
|
12
|
+
export default SidebarFields;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// This icon file is generated automatically.
|
|
2
|
+
|
|
3
|
+
import SidebarFieldsOpenedSvg from '../ast/SidebarFieldsOpened';
|
|
4
|
+
import { Icon } from '../Icon';
|
|
5
|
+
import { IconBaseProps } from '../types';
|
|
6
|
+
|
|
7
|
+
const SidebarFieldsOpened = (
|
|
8
|
+
props: IconBaseProps,
|
|
9
|
+
): JSX.Element => <Icon {...props} icon={SidebarFieldsOpenedSvg} />;
|
|
10
|
+
|
|
11
|
+
SidebarFieldsOpened.displayName = 'SidebarFieldsOpened';
|
|
12
|
+
export default SidebarFieldsOpened;
|