@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/cjs/colors.d.ts +8 -0
- package/dist/cjs/colors.d.ts.map +1 -1
- package/dist/cjs/colors.js +10 -2
- package/dist/cjs/theme.d.ts +2 -0
- package/dist/cjs/theme.d.ts.map +1 -1
- package/dist/cjs/theme.js +333 -34
- package/dist/cjs/types.d.ts +334 -7
- package/dist/esm/colors.d.ts +8 -0
- package/dist/esm/colors.d.ts.map +1 -1
- package/dist/esm/colors.js +10 -2
- package/dist/esm/theme.d.ts +2 -0
- package/dist/esm/theme.d.ts.map +1 -1
- package/dist/esm/theme.js +333 -34
- package/dist/esm/types.d.ts +334 -7
- package/package.json +4 -4
package/dist/esm/types.d.ts
CHANGED
|
@@ -3,15 +3,20 @@ import { ComponentToken as AntdBadgeToken } from 'antd/lib/badge/style';
|
|
|
3
3
|
import { ComponentToken as AntdBreadcrumbToken } from 'antd/lib/breadcrumb/style';
|
|
4
4
|
import { ComponentToken as AntdButtonToken } from 'antd/lib/button/style';
|
|
5
5
|
import { ComponentToken as AntdCheckboxToken } from 'antd/lib/checkbox/style';
|
|
6
|
+
import { ComponentToken as AntdDatePickerToken } from 'antd/lib/date-picker/style';
|
|
6
7
|
import { ComponentToken as AntdFlexToken } from 'antd/lib/flex/style';
|
|
7
8
|
import { ComponentToken as AntdGridToken } from 'antd/lib/grid/style';
|
|
8
9
|
import { ComponentToken as AntdInputToken } from 'antd/lib/input/style';
|
|
9
10
|
import { ComponentToken as AntdLayoutToken } from 'antd/lib/layout/style';
|
|
11
|
+
import { ComponentToken as AntdMenuToken } from 'antd/lib/modal/style';
|
|
10
12
|
import { ComponentToken as AntdModalToken } from 'antd/lib/modal/style';
|
|
13
|
+
import { ComponentToken as AntdPaginationToken } from 'antd/lib/progress/style';
|
|
11
14
|
import { ComponentToken as AntdProgressToken } from 'antd/lib/progress/style';
|
|
12
15
|
import { ComponentToken as AntdRadioToken } from 'antd/lib/radio/style';
|
|
16
|
+
import { ComponentToken as AntdSelectToken } from 'antd/lib/select/style';
|
|
13
17
|
import { ComponentToken as AntdSpinToken } from 'antd/lib/spin/style';
|
|
14
18
|
import { ComponentToken as AntdStepsToken } from 'antd/lib/steps/style';
|
|
19
|
+
import { ComponentToken as AntdTableToken } from 'antd/lib/table/style';
|
|
15
20
|
import { ComponentToken as AntdTagToken } from 'antd/lib/tag/style';
|
|
16
21
|
import { GlobalToken as AntdGlobalToken } from 'antd/lib/theme/interface';
|
|
17
22
|
import { AliasToken } from 'antd/lib/theme/internal';
|
|
@@ -19,7 +24,9 @@ import { ComponentToken as AntdTooltipToken } from 'antd/lib/tooltip/style';
|
|
|
19
24
|
|
|
20
25
|
type PositionTypes = 'static' | 'relative' | 'absolute' | 'fixed' | 'sticky';
|
|
21
26
|
|
|
22
|
-
export type ButtonToken = AntdButtonToken
|
|
27
|
+
export type ButtonToken = AntdButtonToken<
|
|
28
|
+
Omit<AntdButtonToken, 'contentLineHeight'>
|
|
29
|
+
> &
|
|
23
30
|
AliasToken & {
|
|
24
31
|
colorText: string;
|
|
25
32
|
colorTextHover: string;
|
|
@@ -28,6 +35,7 @@ export type ButtonToken = AntdButtonToken &
|
|
|
28
35
|
colorErrorBgSM: string;
|
|
29
36
|
colorErrorBgSMHover: string;
|
|
30
37
|
colorErrorSMHover: string;
|
|
38
|
+
contentLineHeight: number | string;
|
|
31
39
|
};
|
|
32
40
|
|
|
33
41
|
export type CheckboxToken = AntdCheckboxToken &
|
|
@@ -83,6 +91,9 @@ export type TagToken = AntdTagToken &
|
|
|
83
91
|
defaultColorFailed: string;
|
|
84
92
|
defaultBorderColorFailed: string;
|
|
85
93
|
defaultBgFailed: string;
|
|
94
|
+
defaultColorEmpty: string;
|
|
95
|
+
defaultBorderColorEmpty: string;
|
|
96
|
+
defaultBgEmpty: string;
|
|
86
97
|
fontSize: number;
|
|
87
98
|
paddingLeft: number;
|
|
88
99
|
paddingRight: number;
|
|
@@ -105,7 +116,10 @@ export type GridToken = AntdGridToken &
|
|
|
105
116
|
gutter: number;
|
|
106
117
|
};
|
|
107
118
|
|
|
108
|
-
export type LayoutToken = AntdLayoutToken &
|
|
119
|
+
export type LayoutToken = AntdLayoutToken &
|
|
120
|
+
AliasToken & {
|
|
121
|
+
mainBorder: string;
|
|
122
|
+
};
|
|
109
123
|
|
|
110
124
|
export type SpinToken = AntdSpinToken & AliasToken;
|
|
111
125
|
|
|
@@ -179,6 +193,8 @@ export type StepsToken = AntdStepsToken &
|
|
|
179
193
|
tailProcessFirstChildColor?: string;
|
|
180
194
|
tailProcessColor?: string;
|
|
181
195
|
tailWaitLastChildColor?: string;
|
|
196
|
+
tailWaitMiddleChildColor?: string;
|
|
197
|
+
tailErrorChildColor?: string;
|
|
182
198
|
finishIconBgColor?: string;
|
|
183
199
|
finishTailColor?: string;
|
|
184
200
|
processIconBgColor?: string;
|
|
@@ -186,6 +202,7 @@ export type StepsToken = AntdStepsToken &
|
|
|
186
202
|
waitIconColor?: string;
|
|
187
203
|
waitTitleColor?: string;
|
|
188
204
|
waitTailColor?: string;
|
|
205
|
+
errorIconBgColor?: string;
|
|
189
206
|
manyItemsTransform?: string;
|
|
190
207
|
manyItemsWidth?: string;
|
|
191
208
|
manyItemsHeight?: string;
|
|
@@ -203,6 +220,314 @@ export type FormToken = AntdFormToken &
|
|
|
203
220
|
verticalErrorPadding: string;
|
|
204
221
|
};
|
|
205
222
|
|
|
223
|
+
export type MenuToken = AntdMenuToken &
|
|
224
|
+
AliasToken & {
|
|
225
|
+
minWidth: string;
|
|
226
|
+
lightItemBg: string;
|
|
227
|
+
lightItemMainIconColor: string;
|
|
228
|
+
lightItemMainTitle: string;
|
|
229
|
+
LightSubItemBg: string;
|
|
230
|
+
lightSubTitleColor: string;
|
|
231
|
+
lightSubIconColor: string;
|
|
232
|
+
lightchildItemBg: string;
|
|
233
|
+
lightChildItemColor: string;
|
|
234
|
+
lightSubTitleColor: string;
|
|
235
|
+
none: string;
|
|
236
|
+
unset: string;
|
|
237
|
+
iconPosition: string;
|
|
238
|
+
mainBorder: string;
|
|
239
|
+
mainMenuExpandIconSize: string;
|
|
240
|
+
mainMenuIconSize: string;
|
|
241
|
+
mainMenuColor: string;
|
|
242
|
+
mainMenuFontWeight: string;
|
|
243
|
+
subMenuTitleColor: string;
|
|
244
|
+
subMenuTitleIconMargin: string;
|
|
245
|
+
subMenuItemSelectedChildColor: string;
|
|
246
|
+
subMenufontWeigth: string;
|
|
247
|
+
subMenuOnlyChildSize: string;
|
|
248
|
+
subMenuOnlyChildRadius: string;
|
|
249
|
+
subMenuOnlyChildBgColor: string;
|
|
250
|
+
subMenuOnlyChildMargin: string;
|
|
251
|
+
subMenuOnlyChildOpacity: string;
|
|
252
|
+
subMenuIconSize: string;
|
|
253
|
+
childMenuItemSelectedChildWidth: string;
|
|
254
|
+
childMenuItemSelectedChildHeight: string;
|
|
255
|
+
childMenuItemSelectedChildRadius: string;
|
|
256
|
+
childMenuItemSelectedChildMargin: string;
|
|
257
|
+
childMenuItemSelectedChildOpacity: string;
|
|
258
|
+
childMenuItemSelectedChildBgColor: string;
|
|
259
|
+
};
|
|
260
|
+
|
|
261
|
+
export type DatePickerToken = AntdDatePickerToken &
|
|
262
|
+
AliasToken & {
|
|
263
|
+
general: {
|
|
264
|
+
fontSize: string;
|
|
265
|
+
fontWeight: string;
|
|
266
|
+
fontColor: string;
|
|
267
|
+
bgDarkBlue: string;
|
|
268
|
+
wideBorder: string;
|
|
269
|
+
itemCenter: string;
|
|
270
|
+
inputMarginBottom: string;
|
|
271
|
+
inputPadding: string;
|
|
272
|
+
lightThemeBorder: string;
|
|
273
|
+
};
|
|
274
|
+
title: {
|
|
275
|
+
lightColor: string;
|
|
276
|
+
};
|
|
277
|
+
pickerTriangle: {
|
|
278
|
+
transform: string;
|
|
279
|
+
beforeTop: string;
|
|
280
|
+
beforeBorderX: string;
|
|
281
|
+
beforeBorderBottom: string;
|
|
282
|
+
beforeZIndex: string;
|
|
283
|
+
afterTop: string;
|
|
284
|
+
afterBorderX: string;
|
|
285
|
+
afterBorderBottom: string;
|
|
286
|
+
afterZIndex: string;
|
|
287
|
+
};
|
|
288
|
+
pickerPanel: {
|
|
289
|
+
shadow: string;
|
|
290
|
+
width: string;
|
|
291
|
+
header: {
|
|
292
|
+
marginY: string;
|
|
293
|
+
padding: string;
|
|
294
|
+
textSize: string;
|
|
295
|
+
textColor: string;
|
|
296
|
+
arrawWidth: string;
|
|
297
|
+
arrowPaddingLeft: string;
|
|
298
|
+
arrowPaddingRight: string;
|
|
299
|
+
datePickerarrowPadding: string;
|
|
300
|
+
};
|
|
301
|
+
body: {
|
|
302
|
+
padding: string;
|
|
303
|
+
};
|
|
304
|
+
content: {
|
|
305
|
+
tableHeaderBorder: string;
|
|
306
|
+
tableHeaderFontSize: string;
|
|
307
|
+
tableHeaderFontColor: string;
|
|
308
|
+
tableHeaderWidth: string;
|
|
309
|
+
tableHeaderPaddingBottom: string;
|
|
310
|
+
};
|
|
311
|
+
row: {
|
|
312
|
+
marginY: string;
|
|
313
|
+
previousCellWidth: string;
|
|
314
|
+
cellLineHeight: string;
|
|
315
|
+
cellFontWeight: string;
|
|
316
|
+
cellTextColor: string;
|
|
317
|
+
cellBg: string;
|
|
318
|
+
cellBorder: string;
|
|
319
|
+
cellBorderRadius: string;
|
|
320
|
+
};
|
|
321
|
+
separator: {
|
|
322
|
+
width: string;
|
|
323
|
+
height: string;
|
|
324
|
+
backgroundColor: string;
|
|
325
|
+
};
|
|
326
|
+
range: {
|
|
327
|
+
iconPosition: string;
|
|
328
|
+
iconTransform: string;
|
|
329
|
+
inputPadding: string;
|
|
330
|
+
inputRadius: string;
|
|
331
|
+
};
|
|
332
|
+
footer: {
|
|
333
|
+
margin: string;
|
|
334
|
+
lineHeight: string;
|
|
335
|
+
fontSize: string;
|
|
336
|
+
padding: string;
|
|
337
|
+
border: string;
|
|
338
|
+
borderRadius: string;
|
|
339
|
+
datePickerBorderTop: string;
|
|
340
|
+
datePickerPadding: string;
|
|
341
|
+
rangeDirection: string;
|
|
342
|
+
rangeColGap: string;
|
|
343
|
+
rangeBorder: string;
|
|
344
|
+
rangePadding: string;
|
|
345
|
+
rangeCol: string;
|
|
346
|
+
rangeInputPadding: string;
|
|
347
|
+
rangeInputRadius: string;
|
|
348
|
+
};
|
|
349
|
+
};
|
|
350
|
+
};
|
|
351
|
+
|
|
352
|
+
export type DividerToken = AntdDividerToken &
|
|
353
|
+
AliasToken & {
|
|
354
|
+
fontWeight: number;
|
|
355
|
+
};
|
|
356
|
+
|
|
357
|
+
export type UploadToken = AntdUploadToken & AliasToken;
|
|
358
|
+
|
|
359
|
+
export type CustomTokens = {
|
|
360
|
+
layout: {
|
|
361
|
+
displayFlex: string;
|
|
362
|
+
displayGrid: string;
|
|
363
|
+
displayBlock: string;
|
|
364
|
+
displayInline: string;
|
|
365
|
+
displayInlineBlock: string;
|
|
366
|
+
displayNone: string;
|
|
367
|
+
positionAbsolute: string;
|
|
368
|
+
positionRelative: string;
|
|
369
|
+
positionFixed: string;
|
|
370
|
+
positionSticky: string;
|
|
371
|
+
positionStatic: string;
|
|
372
|
+
};
|
|
373
|
+
typography: {
|
|
374
|
+
textTransformUppercase: string;
|
|
375
|
+
textTransformLowercase: string;
|
|
376
|
+
textTransformCapitalize: string;
|
|
377
|
+
textAlignLeft: string;
|
|
378
|
+
textAlignCenter: string;
|
|
379
|
+
textAlignRight: string;
|
|
380
|
+
textAlignJustify: string;
|
|
381
|
+
whiteSpaceNormal: string;
|
|
382
|
+
whiteSpaceNoWrap: string;
|
|
383
|
+
whiteSpacePre: string;
|
|
384
|
+
whiteSpacePreLine: string;
|
|
385
|
+
whiteSpacePreWrap: string;
|
|
386
|
+
textDecorationUnderline: string;
|
|
387
|
+
textDecorationOverline: string;
|
|
388
|
+
textDecorationLineThrough: string;
|
|
389
|
+
};
|
|
390
|
+
sizing: {
|
|
391
|
+
sizeMaxContent: string;
|
|
392
|
+
sizeMinContent: string;
|
|
393
|
+
sizeFitContent: string;
|
|
394
|
+
valueFull: string;
|
|
395
|
+
valueThreeQuarter: string;
|
|
396
|
+
valueHalf: string;
|
|
397
|
+
valueQuarter: string;
|
|
398
|
+
valueZero: string;
|
|
399
|
+
valueAuto: string;
|
|
400
|
+
};
|
|
401
|
+
others: {
|
|
402
|
+
colorTransparent: string;
|
|
403
|
+
valueHidden: string;
|
|
404
|
+
valueUnset: string;
|
|
405
|
+
emptyContent: string;
|
|
406
|
+
lineHeightShort: string;
|
|
407
|
+
lineHeightTall: string;
|
|
408
|
+
};
|
|
409
|
+
border: {
|
|
410
|
+
borderNone: string;
|
|
411
|
+
borderSolid: string;
|
|
412
|
+
borderDashed: string;
|
|
413
|
+
borderDotted: string;
|
|
414
|
+
borderWidthThin: string;
|
|
415
|
+
borderWidthThick: string;
|
|
416
|
+
};
|
|
417
|
+
overflow: {
|
|
418
|
+
overflowVisible: string;
|
|
419
|
+
overflowHidden: string;
|
|
420
|
+
overflowScroll: string;
|
|
421
|
+
};
|
|
422
|
+
};
|
|
423
|
+
|
|
424
|
+
export type PaginationToken = AntdPaginationToken &
|
|
425
|
+
AliasToken & {
|
|
426
|
+
zero: string;
|
|
427
|
+
none: string;
|
|
428
|
+
unset: string;
|
|
429
|
+
maxContent: string;
|
|
430
|
+
fontSize: string;
|
|
431
|
+
transparent: string;
|
|
432
|
+
displayFlex: string;
|
|
433
|
+
displayFlexRow: string;
|
|
434
|
+
displayContents: string;
|
|
435
|
+
displayGrid: string;
|
|
436
|
+
center: string;
|
|
437
|
+
full: string;
|
|
438
|
+
lineHeight: string;
|
|
439
|
+
auto: string;
|
|
440
|
+
hidden: string;
|
|
441
|
+
Simple: {
|
|
442
|
+
minWidth: string;
|
|
443
|
+
fontWeight: string;
|
|
444
|
+
color: string;
|
|
445
|
+
input: {
|
|
446
|
+
textColor: string;
|
|
447
|
+
fontWeight: string;
|
|
448
|
+
};
|
|
449
|
+
prevNextButton: {
|
|
450
|
+
svgWidth: string;
|
|
451
|
+
svgHeight: string;
|
|
452
|
+
svgFill: string;
|
|
453
|
+
};
|
|
454
|
+
slashPadding: string;
|
|
455
|
+
lightInputTextColor: string;
|
|
456
|
+
darkInputTextColor: string;
|
|
457
|
+
};
|
|
458
|
+
Table: {
|
|
459
|
+
totalText: {
|
|
460
|
+
width: string;
|
|
461
|
+
fontWeight: string;
|
|
462
|
+
color: string;
|
|
463
|
+
margin: string;
|
|
464
|
+
};
|
|
465
|
+
prevNextButton: {
|
|
466
|
+
svgWidth: string;
|
|
467
|
+
svgFill: string;
|
|
468
|
+
svgPadding: string;
|
|
469
|
+
svgBorder: string;
|
|
470
|
+
prevSvgBorderRadius: string;
|
|
471
|
+
nextSvgBorderRadius: string;
|
|
472
|
+
};
|
|
473
|
+
pageInfo: {
|
|
474
|
+
border: string;
|
|
475
|
+
padding: string;
|
|
476
|
+
currentPageBgColor: string;
|
|
477
|
+
currentPageMinWidth: string;
|
|
478
|
+
currentPageTextColor: string;
|
|
479
|
+
currentPageFontWeight: string;
|
|
480
|
+
totalPageBgColor: string;
|
|
481
|
+
totalPageTextColor: string;
|
|
482
|
+
};
|
|
483
|
+
sizeChanger: {
|
|
484
|
+
bgColor: string;
|
|
485
|
+
textColor: string;
|
|
486
|
+
width: string;
|
|
487
|
+
colGap: string;
|
|
488
|
+
border: string;
|
|
489
|
+
borderRadius: string;
|
|
490
|
+
item1: {
|
|
491
|
+
bgColor: string;
|
|
492
|
+
textColor: string;
|
|
493
|
+
padding: string;
|
|
494
|
+
};
|
|
495
|
+
item2: {
|
|
496
|
+
textColor: string;
|
|
497
|
+
fontWeight: string;
|
|
498
|
+
};
|
|
499
|
+
icon: {
|
|
500
|
+
bgColor: string;
|
|
501
|
+
textColor: string;
|
|
502
|
+
width: string;
|
|
503
|
+
position: string;
|
|
504
|
+
fontWeight: string;
|
|
505
|
+
};
|
|
506
|
+
};
|
|
507
|
+
};
|
|
508
|
+
Jumper: {
|
|
509
|
+
border: string;
|
|
510
|
+
bgColor: string;
|
|
511
|
+
textColor: string;
|
|
512
|
+
fontWeight: string;
|
|
513
|
+
minWidth: string;
|
|
514
|
+
height: string;
|
|
515
|
+
spanVisibility: string;
|
|
516
|
+
spanWhiteSpace: string;
|
|
517
|
+
spanPosition: string;
|
|
518
|
+
};
|
|
519
|
+
};
|
|
520
|
+
|
|
521
|
+
export type SelectToken = AntdSelectToken &
|
|
522
|
+
AliasToken & {
|
|
523
|
+
selectedOptionColor: string;
|
|
524
|
+
selectItemBorderShadowColor: string;
|
|
525
|
+
selectItemBgColor: string;
|
|
526
|
+
selectItemHoverBgColor: string;
|
|
527
|
+
};
|
|
528
|
+
|
|
529
|
+
export type TableToken = AntdTableToken & AliasToken & {};
|
|
530
|
+
|
|
206
531
|
export type GlobalToken = AntdGlobalToken & {
|
|
207
532
|
Button: ButtonToken;
|
|
208
533
|
Checkbox: CheckboxToken;
|
|
@@ -222,13 +547,15 @@ export type GlobalToken = AntdGlobalToken & {
|
|
|
222
547
|
Steps: StepsToken;
|
|
223
548
|
Form: FormToken;
|
|
224
549
|
Divider: DividerToken;
|
|
550
|
+
DatePicker: DatePickerToken;
|
|
551
|
+
Menu: MenuToken;
|
|
552
|
+
Pagination: PaginationToken;
|
|
553
|
+
Upload: UploadToken;
|
|
554
|
+
CustomTokens: CustomTokens;
|
|
555
|
+
Select: SelectToken;
|
|
556
|
+
Table: TableToken;
|
|
225
557
|
};
|
|
226
558
|
|
|
227
|
-
export type DividerToken = AntdDividerToken &
|
|
228
|
-
AliasToken & {
|
|
229
|
-
fontWeight: number;
|
|
230
|
-
};
|
|
231
|
-
|
|
232
559
|
/**
|
|
233
560
|
* This is a type that is used to prevent the use of custom styles.
|
|
234
561
|
* Type name joke is stolen from React's internal props.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akinon/ui-theme",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Akinon UI's default theme values.",
|
|
6
6
|
"type": "module",
|
|
@@ -10,14 +10,14 @@
|
|
|
10
10
|
"dist"
|
|
11
11
|
],
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"antd": "5.
|
|
13
|
+
"antd": "5.22.6"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"clean-package": "2.2.0",
|
|
17
17
|
"copyfiles": "^2.4.1",
|
|
18
18
|
"rimraf": "^5.0.5",
|
|
19
|
-
"typescript": "
|
|
20
|
-
"@akinon/typescript-config": "0.
|
|
19
|
+
"typescript": "*",
|
|
20
|
+
"@akinon/typescript-config": "1.0.0"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"react": ">=18",
|