@akinon/ui-theme 0.7.0 → 1.0.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/dist/esm/theme.js CHANGED
@@ -48,7 +48,72 @@ export const theme = {
48
48
  fontFamily: "'Jost Variable'," + antdTheme.getDesignToken().fontFamily,
49
49
  fontSize: fontSize * 0.875
50
50
  },
51
+ customTokens: {
52
+ layout: {
53
+ displayFlex: 'flex',
54
+ displayGrid: 'grid',
55
+ displayBlock: 'block',
56
+ displayInline: 'inline',
57
+ displayInlineBlock: 'inline-block',
58
+ displayNone: 'none',
59
+ positionAbsolute: 'absolute',
60
+ positionRelative: 'relative',
61
+ positionFixed: 'fixed',
62
+ positionSticky: 'sticky',
63
+ positionStatic: 'static'
64
+ },
65
+ typography: {
66
+ textTransformUppercase: 'uppercase',
67
+ textTransformLowercase: 'lowercase',
68
+ textTransformCapitalize: 'capitalize',
69
+ textAlignLeft: 'left',
70
+ textAlignCenter: 'center',
71
+ textAlignRight: 'right',
72
+ textAlignJustify: 'justify',
73
+ whiteSpaceNormal: 'normal',
74
+ whiteSpaceNoWrap: 'nowrap',
75
+ whiteSpacePre: 'pre',
76
+ whiteSpacePreLine: 'pre-line',
77
+ whiteSpacePreWrap: 'pre-wrap',
78
+ textDecorationUnderline: 'underline',
79
+ textDecorationOverline: 'overline',
80
+ textDecorationLineThrough: 'line-through'
81
+ },
82
+ sizing: {
83
+ sizeMaxContent: 'max-content',
84
+ sizeMinContent: 'min-content',
85
+ sizeFitContent: 'fit-content',
86
+ valueFull: '100%',
87
+ valueThreeQuarter: '75%',
88
+ valueHalf: '50%',
89
+ valueQuarter: '25%',
90
+ valueZero: '0',
91
+ valueAuto: 'auto'
92
+ },
93
+ others: {
94
+ colorTransparent: 'transparent',
95
+ valueHidden: 'hidden',
96
+ valueUnset: 'unset',
97
+ emptyContent: '""',
98
+ lineHeightShort: '1',
99
+ lineHeightTall: '2'
100
+ },
101
+ border: {
102
+ borderNone: 'none',
103
+ borderSolid: 'solid',
104
+ borderDashed: 'dashed',
105
+ borderDotted: 'dotted',
106
+ borderWidthThin: '1px',
107
+ borderWidthThick: '2px'
108
+ },
109
+ overflow: {
110
+ overflowVisible: 'visible',
111
+ overflowHidden: 'hidden',
112
+ overflowScroll: 'scroll'
113
+ }
114
+ },
51
115
  components: {
116
+ // TODO: Please order these props alphabetically.
52
117
  Button: {
53
118
  // type: primary
54
119
  colorPrimary: colors.azure['500'],
@@ -106,7 +171,7 @@ export const theme = {
106
171
  borderRadius: 5,
107
172
  paddingBlock: 10,
108
173
  paddingInline: 45,
109
- contentLineHeight: 1,
174
+ contentLineHeight: 'normal',
110
175
  fontWeight: 600
111
176
  },
112
177
  Checkbox: {
@@ -136,21 +201,55 @@ export const theme = {
136
201
  },
137
202
  Layout: {
138
203
  headerBg: colors.ebonyClay['500'],
139
- siderBg: colors.ebonyClay['500']
204
+ siderBg: colors.ebonyClay['500'],
205
+ mainBorder: `1px solid ${colors.gray['900']}`
140
206
  },
141
207
  Dropdown: {
142
208
  colorPrimary: colors.neutral['100'], // primary color (azure500) doesn't work well with dropdown bg
143
209
  controlPaddingHorizontal: fontSize
144
210
  },
145
211
  Menu: {
212
+ minWidth: '250px',
146
213
  darkItemBg: colors.ebonyClay['500'],
147
214
  darkSubMenuItemBg: colors.ebonyClay['600'],
148
215
  darkItemSelectedBg: colors.ebonyClay['700'],
216
+ darkItemColor: colors.gray['500'],
217
+ lightItemBg: `${colors.neutral['50']} !important`,
218
+ lightItemMainIconColor: `${colors.azure['500']} !important`,
219
+ lightItemMainTitle: `${colors.ebonyClay['500']} !important`,
220
+ LightSubItemBg: `${colors.neutral['90']} !important`,
221
+ lightSubTitleColor: `${colors.gray['500']} !important`,
222
+ lightSubIconColor: `${colors.ebonyClay['125']} !important`,
223
+ lightchildItemBg: `${colors.neutral['350']} !important`,
224
+ lightChildItemColor: `${colors.ebonyClay['500']} !important`,
149
225
  itemBorderRadius: 0,
150
226
  itemMarginBlock: 0,
151
227
  itemMarginInline: 0,
152
- darkItemColor: colors.gray['500'],
153
- itemHeight: fontSize * 3.25
228
+ itemHeight: fontSize * 3.25,
229
+ none: 'none !important',
230
+ unset: 'unset !important',
231
+ iconPosition: 'absolute !important',
232
+ mainBorder: `1px solid ${colors.gray['900']}`,
233
+ mainMenuIconSize: '12px !important',
234
+ mainMenuExpandIconSize: '16px !important',
235
+ mainMenuColor: colors.neutral['50'],
236
+ mainMenuFontWeight: '600 !important',
237
+ subMenuTitleColor: `${colors.gray['500']} !important`,
238
+ subMenuTitleIconMargin: '-25px !important',
239
+ subMenufontWeigth: '500 !important',
240
+ subMenuOnlyChildSize: '6px !important',
241
+ subMenuItemSelectedChildColor: `${colors.neutral['50']} !important`,
242
+ subMenuOnlyChildRadius: '50% !important',
243
+ subMenuOnlyChildBgColor: `${colors.ebonyClay['125']} !important`,
244
+ subMenuOnlyChildMargin: '-23px !important',
245
+ subMenuOnlyChildOpacity: '1 !important',
246
+ subMenuIconSize: '10px !important',
247
+ childMenuItemSelectedChildWidth: '10px !important',
248
+ childMenuItemSelectedChildHeight: '2px !important',
249
+ childMenuItemSelectedChildRadius: '1px !important',
250
+ childMenuItemSelectedChildMargin: '-17px !important',
251
+ childMenuItemSelectedChildOpacity: '1 !important',
252
+ childMenuItemSelectedChildBgColor: `${colors.ebonyClay['125']} !important`
154
253
  },
155
254
  Breadcrumb: {
156
255
  fontSize: fontSize * 0.625,
@@ -185,6 +284,9 @@ export const theme = {
185
284
  defaultColorFailed: colors.red['951'],
186
285
  defaultBorderColorFailed: colors.red['450'],
187
286
  defaultBgFailed: colors.red['952'],
287
+ defaultColorEmpty: colors.ebonyClay['400'],
288
+ defaultBorderColorEmpty: colors.neutral['350'],
289
+ defaultBgEmpty: colors.neutral['200'],
188
290
  borderRadius: 5,
189
291
  fontSize: fontSize * 0.8125,
190
292
  paddingLeft: 15,
@@ -249,14 +351,99 @@ export const theme = {
249
351
  verticalErrorPadding: '7px 0'
250
352
  },
251
353
  Pagination: {
252
- colorText: colors.ebonyClay['950'],
253
- itemInputBg: colors.neutral['75'],
254
- colorBorder: colors.neutral['350'],
255
- borderRadius: 4,
256
- itemActiveBg: colors.blue['200'],
257
- colorTextDisabled: colors.neutral['375'],
258
- marginXS: 0,
259
- itemSizeSM: 38
354
+ zero: '0 !important',
355
+ none: 'none !important',
356
+ unset: 'unset !important',
357
+ maxContent: 'max-content !important',
358
+ fontSize: '14px !important',
359
+ transparent: 'transparent !important',
360
+ displayFlex: 'flex !important',
361
+ displayFlexRow: 'row !important',
362
+ displayContents: 'contents !important',
363
+ displayGrid: 'grid !important',
364
+ center: 'center !important',
365
+ full: '100% !important',
366
+ lineHeight: '1 !important',
367
+ auto: 'auto !important',
368
+ hidden: 'hidden !important',
369
+ Simple: {
370
+ minWidth: '68.56px !important',
371
+ fontWeight: 'normal !important',
372
+ color: `${colors.gray['500']} !important`,
373
+ input: {
374
+ textColor: `${colors.ebonyClay['960']} !important`,
375
+ fontWeight: '600 !important'
376
+ },
377
+ prevNextButton: {
378
+ svgWidth: '10px !important',
379
+ svgHeight: '100% !important',
380
+ svgFill: `${colors.gray['500']} !important`
381
+ },
382
+ slashPadding: '8px !important',
383
+ lightInputTextColor: `${colors.ebonyClay['960']} !important`,
384
+ darkInputTextColor: `${colors.neutral['50']} !important`
385
+ },
386
+ Table: {
387
+ totalText: {
388
+ width: 'fit-content !important',
389
+ fontWeight: '500 !important',
390
+ color: `${colors.gray['500']} !important`,
391
+ margin: 'auto 32px !important'
392
+ },
393
+ prevNextButton: {
394
+ svgWidth: '10px !important',
395
+ svgFill: `${colors.gray['500']} !important`,
396
+ svgPadding: '14px 14px !important',
397
+ svgBorder: `1px solid ${colors.neutral['350']} !important`,
398
+ prevSvgBorderRadius: '5px 0 0 5px !important',
399
+ nextSvgBorderRadius: '0 5px 5px 0 !important'
400
+ },
401
+ pageInfo: {
402
+ border: `1px solid ${colors.neutral['350']} !important`,
403
+ padding: '12px 10px !important',
404
+ currentPageBgColor: `${colors.neutral['75']} !important`,
405
+ currentPageMinWidth: '18px !important',
406
+ currentPageTextColor: `${colors.ebonyClay['960']} !important`,
407
+ currentPageFontWeight: '600 !important',
408
+ totalPageBgColor: `${colors.neutral['50']} !important`,
409
+ totalPageTextColor: `${colors.gray['500']} !important`
410
+ },
411
+ sizeChanger: {
412
+ bgColor: `${colors.neutral['50']} !important`,
413
+ textColor: `${colors.ebonyClay['951']} !important`,
414
+ width: 'fit-content !important',
415
+ colGap: '10px !important',
416
+ border: `1px solid ${colors.neutral['350']} !important`,
417
+ borderRadius: '5px !important',
418
+ item1: {
419
+ bgColor: `${colors.neutral['50']} !important`,
420
+ textColor: `${colors.ebonyClay['951']} !important`,
421
+ padding: '10px 16px !important'
422
+ },
423
+ item2: {
424
+ textColor: `${colors.gray['500']} !important`,
425
+ fontWeight: '600 !important'
426
+ },
427
+ icon: {
428
+ bgColor: `${colors.neutral['50']} !important`,
429
+ textColor: `${colors.gray['500']} !important`,
430
+ width: '10px !important',
431
+ position: 'relative !important',
432
+ fontWeight: '600 !important'
433
+ }
434
+ }
435
+ },
436
+ Jumper: {
437
+ border: `1px solid ${colors.neutral['350']} !important`,
438
+ bgColor: `${colors.neutral['75']} !important`,
439
+ textColor: `${colors.ebonyClay['960']} !important`,
440
+ fontWeight: '600',
441
+ minWidth: '18px',
442
+ height: 'calc(100% - 3px)',
443
+ spanVisibility: 'hidden',
444
+ spanWhiteSpace: 'pre',
445
+ spanPosition: 'absolute'
446
+ }
260
447
  },
261
448
  Select: {
262
449
  colorTextDisabled: colors.ebonyClay['350'],
@@ -264,7 +451,19 @@ export const theme = {
264
451
  colorBgContainer: colors.ebonyClay['475'],
265
452
  fontSizeLG: fontSize * 0.875,
266
453
  colorBorder: colors.ebonyClay['550'],
267
- lineWidth: 2
454
+ lineWidth: 2,
455
+ colorBgElevated: '#fffcfc',
456
+ optionActiveBg: 'rgba(68, 130, 255, 0.2)',
457
+ colorText: '#9b9b9b',
458
+ selectedOptionColor: 'black',
459
+ selectItemBorderShadowColor: '#eaeff0',
460
+ selectItemBgColor: 'rgba(245, 245, 245, 0.5)',
461
+ selectItemHoverBgColor: 'rgba(68, 130, 255, 0.2)'
462
+ },
463
+ Table: {
464
+ colorBgContainer: 'transparent',
465
+ rowHoverBg: 'unset',
466
+ borderColor: colors.neutral['350']
268
467
  },
269
468
  Input: {
270
469
  colorBgContainer: colors.ebonyClay['475'],
@@ -305,45 +504,48 @@ export const theme = {
305
504
  badgeColorBackgroundColor: colors.red['425']
306
505
  },
307
506
  Progress: {
308
- strokeColor: colors.green['100'],
309
- trailColor: colors.ebonyClay['850'],
507
+ strokeColor: colors.ebonyClay['625'],
508
+ trailColor: colors.neutral['50'],
310
509
  borderRadius: '0',
311
510
  height: '18px !important',
312
511
  successBgColor: 'repeating-linear-gradient(60deg, rgba(36, 180, 19, 1) 0, rgba(36, 180, 19, 1) 5px, rgba(72, 192, 62, 1) 5px, rgba(72, 192, 62, 1) 10px) !important'
313
512
  },
314
513
  Steps: {
315
- zero: '0 !important',
316
- auto: 'auto !important',
317
- none: 'none !important',
514
+ zero: '0',
515
+ auto: 'auto',
516
+ none: 'none',
318
517
  full: '100% !important',
319
- flex: 'flex !important',
518
+ flex: 'flex',
320
519
  rowGap: '10px',
321
520
  iconWidthHeight: '38px !important',
322
521
  iconSize: '18px !important',
323
522
  paddingInlineEnd: '16px',
324
523
  tailTop: '16px',
325
524
  tailHeight: '3px',
326
- titleFontSize: '14px !important',
525
+ titleFontSize: '14px',
327
526
  iconColor: 'white',
328
- tailColor: 'linear-gradient(to right, #343639 50%, transparent 50%) !important',
329
- tailLastChildColor: 'linear-gradient(to right, #4482ff 50%, transparent 50%) !important',
330
- tailFirstChildColor: 'linear-gradient(to right, transparent 50%, #4482ff 50%) !important',
331
- tailProcessFirstChildColor: 'linear-gradient(to right, transparent 50%, #3b404c 50%) !important',
332
- tailProcessColor: 'linear-gradient(to right, #4482ff 50%, #3b404c 50%) !important',
333
- tailWaitLastChildColor: 'linear-gradient(to right, #3b404c 50%, transparent 50%) !important',
334
- finishIconBgColor: `${colors.green['952']} !important`,
335
- finishTailColor: `${colors.azure['500']} !important`,
336
- processIconBgColor: `${colors.orange['425']} !important`,
337
- waitIconBgColor: `${colors.neutral['50']} !important`,
338
- waitIconColor: `${colors.ebonyClay['951']} !important`,
339
- waitTitleColor: `${colors.neutral['50']} !important`,
340
- waitTailColor: `${colors.gray['900']} !important`,
527
+ tailColor: 'linear-gradient(to right, #343639 50%, transparent 50%)',
528
+ tailLastChildColor: 'linear-gradient(to right, #4482ff 50%, transparent 50%)',
529
+ tailFirstChildColor: 'linear-gradient(to right, transparent 50%, #4482ff 50%)',
530
+ tailProcessFirstChildColor: 'linear-gradient(to right, transparent 50%, #3b404c 50%)',
531
+ tailProcessColor: 'linear-gradient(to right, #4482ff 50%, #3b404c 50%)',
532
+ tailWaitLastChildColor: 'linear-gradient(to right, #3b404c 50%, transparent 50%)',
533
+ tailWaitMiddleChildColor: `linear-gradient(to right, #4482ff 50%, #3b404c 50%)`,
534
+ tailErrorChildColor: `linear-gradient(to right, ${colors.red['450']} 50%, #3b404c 50%) !important`,
535
+ finishIconBgColor: `${colors.green['952']}`,
536
+ finishTailColor: `${colors.azure['500']}`,
537
+ processIconBgColor: `${colors.orange['425']}`,
538
+ waitIconBgColor: `${colors.neutral['50']}`,
539
+ waitIconColor: `${colors.ebonyClay['951']}`,
540
+ waitTitleColor: `${colors.neutral['50']}`,
541
+ waitTailColor: `${colors.gray['900']}`,
542
+ errorIconBgColor: `${colors.red['450']}`,
341
543
  manyItemsTransform: 'rotate(-40deg)',
342
544
  manyItemsWidth: '90px',
343
545
  manyItemsHeight: '80px',
344
546
  manyItemsWhiteSpace: 'break-spaces',
345
547
  manyItemsMarginInlineStart: '40px',
346
- manyItemsIconWidthHeight: '22px !important',
548
+ manyItemsIconWidthHeight: '22px',
347
549
  manyItemsTailHeight: '4px',
348
550
  manyItemsTailBottom: '10px'
349
551
  },
@@ -368,6 +570,103 @@ export const theme = {
368
570
  fontWeight: 500,
369
571
  textPaddingInline: 8,
370
572
  margin: 48
573
+ },
574
+ DatePicker: {
575
+ general: {
576
+ fontSize: '14px',
577
+ fontWeight: '600',
578
+ fontColor: '#788195',
579
+ bgDarkBlue: `${colors.ebonyClay['475']}`,
580
+ wideBorder: '2px solid #262e47',
581
+ itemCenter: 'center',
582
+ inputMarginBottom: '7px',
583
+ inputPadding: '10px 16px !important',
584
+ lightThemeBorder: '1px solid #c8daec'
585
+ },
586
+ title: {
587
+ lightColor: `${colors.ebonyClay['500']}`
588
+ },
589
+ pickerTriangle: {
590
+ transform: 'translateX(-50%)',
591
+ beforeTop: '-8px',
592
+ beforeBorderX: '12px solid transparent',
593
+ beforeBorderBottom: '9px solid #262e47',
594
+ beforeZIndex: '1',
595
+ afterTop: '-6px',
596
+ afterBorderX: '10px solid transparent',
597
+ afterBorderBottom: '8px solid #2b344c',
598
+ afterZIndex: '2'
599
+ },
600
+ pickerPanel: {
601
+ shadow: '0 3px 6px 0 rgba(0, 0, 0, 0.2)',
602
+ width: '292px',
603
+ header: {
604
+ marginY: '20px',
605
+ padding: '0 22px',
606
+ textSize: '16px',
607
+ textColor: '#b6c2cf',
608
+ arrawWidth: '10.2px',
609
+ arrowPaddingLeft: '12px',
610
+ arrowPaddingRight: '20px',
611
+ datePickerarrowPadding: '0.2px 0.2px 0.2px 0'
612
+ },
613
+ body: {
614
+ padding: '0 20px'
615
+ },
616
+ content: {
617
+ tableHeaderBorder: '1px solid #a6c5e228',
618
+ tableHeaderFontSize: '12px',
619
+ tableHeaderFontColor: '#b6c2cf',
620
+ tableHeaderWidth: '36px',
621
+ tableHeaderPaddingBottom: '6px'
622
+ },
623
+ row: {
624
+ marginY: '5px',
625
+ previousCellWidth: '36px',
626
+ cellLineHeight: '1.43',
627
+ cellFontWeight: 'normal',
628
+ cellTextColor: '#b6c2cf',
629
+ cellBg: '#1d2843',
630
+ cellBorder: '2px solid #a6c5e228',
631
+ cellBorderRadius: '3px'
632
+ },
633
+ separator: {
634
+ width: '6px',
635
+ height: '2px',
636
+ backgroundColor: '#262e47'
637
+ },
638
+ range: {
639
+ iconPosition: '10px',
640
+ iconTransform: 'translateY(-50%)',
641
+ inputPadding: '10px 16px !important',
642
+ inputRadius: '5px'
643
+ },
644
+ footer: {
645
+ margin: '4px 20px 0',
646
+ lineHeight: 'normal',
647
+ fontSize: '12px',
648
+ padding: '0 27px',
649
+ border: '1px solid #4482ff',
650
+ borderRadius: '11px',
651
+ datePickerBorderTop: '1px solid #a6c5e228',
652
+ datePickerPadding: '28px 0 23px',
653
+ rangeDirection: 'row',
654
+ rangeColGap: '50px',
655
+ rangeBorder: '1px solid #a6c5e25c',
656
+ rangePadding: '13px 20px 16px',
657
+ rangeCol: '12px',
658
+ rangeInputPadding: '10px 12px 10px 16px',
659
+ rangeInputRadius: '5px'
660
+ }
661
+ }
662
+ },
663
+ Upload: {
664
+ borderRadiusLG: 5,
665
+ colorFillAlter: colors.ebonyClay['475'],
666
+ colorError: colors.red['450'],
667
+ lineWidth: 0,
668
+ controlHeightLG: 30,
669
+ paddingXS: 0
371
670
  }
372
671
  }
373
672
  };