@akinon/ui-theme 0.7.0 → 1.0.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.
@@ -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 &
@@ -62,8 +70,6 @@ export type BreadcrumbToken = AntdBreadcrumbToken &
62
70
  fontWeight: number;
63
71
  letterSpacing: number;
64
72
  borderBottom: string;
65
- marginInline: number;
66
- height: number | string;
67
73
  };
68
74
 
69
75
  export type TagToken = AntdTagToken &
@@ -83,13 +89,15 @@ export type TagToken = AntdTagToken &
83
89
  defaultColorFailed: string;
84
90
  defaultBorderColorFailed: string;
85
91
  defaultBgFailed: string;
92
+ defaultColorEmpty: string;
93
+ defaultBorderColorEmpty: string;
94
+ defaultBgEmpty: string;
86
95
  fontSize: number;
87
96
  paddingLeft: number;
88
97
  paddingRight: number;
89
98
  paddingTop: number;
90
99
  paddingBottom: number;
91
100
  fontSizeClose: number;
92
- fontWeight: number;
93
101
  };
94
102
 
95
103
  export type TooltipToken = AntdTooltipToken &
@@ -105,28 +113,24 @@ export type GridToken = AntdGridToken &
105
113
  gutter: number;
106
114
  };
107
115
 
108
- export type LayoutToken = AntdLayoutToken & AliasToken;
116
+ export type LayoutToken = AntdLayoutToken &
117
+ AliasToken & {
118
+ mainBorder: string;
119
+ };
109
120
 
110
121
  export type SpinToken = AntdSpinToken & AliasToken;
111
122
 
112
123
  export type ModalToken = AntdModalToken &
113
124
  AliasToken & {
114
125
  padding: number | string;
115
- fontWeight: number;
116
126
  borderBottom: string;
117
127
  footerPadding: string;
118
128
  closeIconColor: string;
119
- contentPadding: string;
120
- footerMarginTop: string;
121
129
  closeTop: string;
122
130
  closeRight: string;
123
- headerMarginBottom: number;
124
- badgeColorContent: string;
125
131
  badgeColorTop: number;
126
- badgeColorLeft: number;
127
132
  badgeColorWidth: number;
128
133
  badgeColorHeight: number;
129
- badgeColorPosition: PositionTypes;
130
134
  badgeColorBackgroundColor: string;
131
135
  };
132
136
 
@@ -153,18 +157,12 @@ export type ProgressToken = AntdProgressToken &
153
157
  AliasToken & {
154
158
  strokeColor: string;
155
159
  trailColor: string;
156
- borderRadius: string;
157
160
  height: string;
158
161
  successBgColor: string;
159
162
  };
160
163
 
161
164
  export type StepsToken = AntdStepsToken &
162
165
  AliasToken & {
163
- zero?: string;
164
- auto?: string;
165
- none?: string;
166
- full?: string;
167
- flex?: string;
168
166
  rowGap?: string;
169
167
  iconWidthHeight?: string;
170
168
  iconSize?: string;
@@ -179,6 +177,8 @@ export type StepsToken = AntdStepsToken &
179
177
  tailProcessFirstChildColor?: string;
180
178
  tailProcessColor?: string;
181
179
  tailWaitLastChildColor?: string;
180
+ tailWaitMiddleChildColor?: string;
181
+ tailErrorChildColor?: string;
182
182
  finishIconBgColor?: string;
183
183
  finishTailColor?: string;
184
184
  processIconBgColor?: string;
@@ -186,10 +186,10 @@ export type StepsToken = AntdStepsToken &
186
186
  waitIconColor?: string;
187
187
  waitTitleColor?: string;
188
188
  waitTailColor?: string;
189
+ errorIconBgColor?: string;
189
190
  manyItemsTransform?: string;
190
191
  manyItemsWidth?: string;
191
192
  manyItemsHeight?: string;
192
- manyItemsWhiteSpace?: string;
193
193
  manyItemsMarginInlineStart?: string;
194
194
  manyItemsIconWidthHeight?: string;
195
195
  manyItemsTailHeight?: string;
@@ -203,6 +203,291 @@ export type FormToken = AntdFormToken &
203
203
  verticalErrorPadding: string;
204
204
  };
205
205
 
206
+ export type MenuToken = AntdMenuToken &
207
+ AliasToken & {
208
+ minWidth: string;
209
+ lightItemBg: string;
210
+ lightItemMainIconColor: string;
211
+ lightItemMainTitle: string;
212
+ LightSubItemBg: string;
213
+ lightSubTitleColor: string;
214
+ lightSubIconColor: string;
215
+ lightchildItemBg: string;
216
+ lightChildItemColor: string;
217
+ lightSubTitleColor: string;
218
+ mainBorder: string;
219
+ mainMenuExpandIconSize: string;
220
+ mainMenuIconSize: string;
221
+ mainMenuColor: string;
222
+ subMenuTitleColor: string;
223
+ subMenuTitleIconMargin: string;
224
+ subMenuItemSelectedChildColor: string;
225
+ subMenuOnlyChildSize: string;
226
+ subMenuOnlyChildBgColor: string;
227
+ subMenuOnlyChildMargin: string;
228
+ subMenuIconSize: string;
229
+ childMenuItemSelectedChildWidth: string;
230
+ childMenuItemSelectedChildHeight: string;
231
+ childMenuItemSelectedChildRadius: string;
232
+ childMenuItemSelectedChildMargin: string;
233
+ childMenuItemSelectedChildBgColor: string;
234
+ };
235
+
236
+ export type DatePickerToken = AntdDatePickerToken &
237
+ AliasToken & {
238
+ general: {
239
+ fontSize: string;
240
+ fontColor: string;
241
+ bgDarkBlue: string;
242
+ wideBorder: string;
243
+ inputMarginBottom: string;
244
+ inputPadding: string;
245
+ lightThemeBorder: string;
246
+ };
247
+ title: {
248
+ lightColor: string;
249
+ };
250
+ pickerPanel: {
251
+ shadow: string;
252
+ width: string;
253
+ header: {
254
+ marginY: string;
255
+ padding: string;
256
+ textSize: string;
257
+ textColor: string;
258
+ arrawWidth: string;
259
+ arrowPaddingLeft: string;
260
+ arrowPaddingRight: string;
261
+ datePickerarrowPadding: string;
262
+ };
263
+ body: {
264
+ padding: string;
265
+ };
266
+ content: {
267
+ tableHeaderBorder: string;
268
+ tableHeaderFontSize: string;
269
+ tableHeaderFontColor: string;
270
+ tableHeaderWidth: string;
271
+ tableHeaderPaddingBottom: string;
272
+ };
273
+ row: {
274
+ marginY: string;
275
+ previousCellWidth: string;
276
+ cellLineHeight: string;
277
+ cellFontWeight: string;
278
+ cellTextColor: string;
279
+ cellBg: string;
280
+ cellBorder: string;
281
+ cellBorderRadius: string;
282
+ };
283
+ separator: {
284
+ width: string;
285
+ height: string;
286
+ backgroundColor: string;
287
+ };
288
+ range: {
289
+ iconPosition: string;
290
+ iconTransform: string;
291
+ inputPadding: string;
292
+ inputRadius: string;
293
+ };
294
+ footer: {
295
+ margin: string;
296
+ lineHeight: string;
297
+ fontSize: string;
298
+ padding: string;
299
+ border: string;
300
+ borderRadius: string;
301
+ datePickerBorderTop: string;
302
+ datePickerPadding: string;
303
+ rangeColGap: string;
304
+ rangeBorder: string;
305
+ rangePadding: string;
306
+ rangeCol: string;
307
+ rangeInputPadding: string;
308
+ rangeInputRadius: string;
309
+ };
310
+ };
311
+ };
312
+
313
+ export type DividerToken = AntdDividerToken &
314
+ AliasToken & {
315
+ fontWeight: number;
316
+ };
317
+
318
+ export type UploadToken = AntdUploadToken &
319
+ AliasToken & {
320
+ svgColor: string;
321
+ };
322
+
323
+ export type CustomTokens = {
324
+ layout: {
325
+ displayFlex: string;
326
+ displayGrid: string;
327
+ displayBlock: string;
328
+ displayInline: string;
329
+ displayInlineBlock: string;
330
+ displayNone: string;
331
+ displayContents: string;
332
+ positionAbsolute: string;
333
+ positionRelative: string;
334
+ positionFixed: string;
335
+ positionSticky: string;
336
+ positionStatic: string;
337
+ flexStart: string;
338
+ flexCenter: string;
339
+ flexDirectionRow: string;
340
+ flexDirectionRowReverse: string;
341
+ flexDirectionColumn: string;
342
+ flexDirectionColumnReverse: string;
343
+ };
344
+ typography: {
345
+ textTransformUppercase: string;
346
+ textTransformLowercase: string;
347
+ textTransformCapitalize: string;
348
+ textAlignLeft: string;
349
+ textAlignCenter: string;
350
+ textAlignRight: string;
351
+ textAlignJustify: string;
352
+ whiteSpaceNormal: string;
353
+ whiteSpaceNoWrap: string;
354
+ whiteSpacePre: string;
355
+ whiteSpacePreLine: string;
356
+ whiteSpacePreWrap: string;
357
+ whiteSpaceBreakSpaces: string;
358
+ wordBreak: string;
359
+ textDecorationUnderline: string;
360
+ textDecorationOverline: string;
361
+ textDecorationLineThrough: string;
362
+ fontWeightBold: string;
363
+ fontWeightMedium: string;
364
+ };
365
+ sizing: {
366
+ sizeMaxContent: string;
367
+ sizeMinContent: string;
368
+ sizeFitContent: string;
369
+ valueFull: string;
370
+ valueThreeQuarter: string;
371
+ valueHalf: string;
372
+ valueQuarter: string;
373
+ valueZero: string;
374
+ valueAuto: string;
375
+ valueInherit: string;
376
+ };
377
+ others: {
378
+ colorTransparent: string;
379
+ valueHidden: string;
380
+ valueUnset: string;
381
+ emptyContent: string;
382
+ lineHeightShort: string;
383
+ lineHeightTall: string;
384
+ cursorNotAllowed: string;
385
+ cursorPointer: string;
386
+ verticalAlignMiddle: string;
387
+ opacityFull: string;
388
+ opacityNone: string;
389
+ };
390
+ border: {
391
+ borderNone: string;
392
+ borderSolid: string;
393
+ borderDashed: string;
394
+ borderDotted: string;
395
+ borderWidthThin: string;
396
+ borderWidthThick: string;
397
+ borderRadiusSm: string;
398
+ };
399
+ overflow: {
400
+ overflowVisible: string;
401
+ overflowHidden: string;
402
+ overflowScroll: string;
403
+ };
404
+ };
405
+
406
+ export type PaginationToken = AntdPaginationToken &
407
+ AliasToken & {
408
+ fontSize: string;
409
+ Simple: {
410
+ minWidth: string;
411
+ fontWeight: string;
412
+ color: string;
413
+ input: {
414
+ textColor: string;
415
+ };
416
+ prevNextButton: {
417
+ svgWidth: string;
418
+ svgFill: string;
419
+ };
420
+ slashPadding: string;
421
+ lightInputTextColor: string;
422
+ darkInputTextColor: string;
423
+ };
424
+ Table: {
425
+ totalText: {
426
+ color: string;
427
+ margin: string;
428
+ };
429
+ prevNextButton: {
430
+ svgWidth: string;
431
+ svgFill: string;
432
+ svgPadding: string;
433
+ svgBorder: string;
434
+ prevSvgBorderRadius: string;
435
+ nextSvgBorderRadius: string;
436
+ };
437
+ pageInfo: {
438
+ border: string;
439
+ padding: string;
440
+ currentPageBgColor: string;
441
+ currentPageMinWidth: string;
442
+ currentPageTextColor: string;
443
+ currentPageFontWeight: string;
444
+ totalPageBgColor: string;
445
+ totalPageTextColor: string;
446
+ };
447
+ sizeChanger: {
448
+ bgColor: string;
449
+ textColor: string;
450
+ colGap: string;
451
+ border: string;
452
+ borderRadius: string;
453
+ item1: {
454
+ bgColor: string;
455
+ textColor: string;
456
+ padding: string;
457
+ };
458
+ item2: {
459
+ textColor: string;
460
+ };
461
+ icon: {
462
+ bgColor: string;
463
+ textColor: string;
464
+ width: string;
465
+ };
466
+ };
467
+ };
468
+ Jumper: {
469
+ border: string;
470
+ bgColor: string;
471
+ textColor: string;
472
+ minWidth: string;
473
+ height: string;
474
+ };
475
+ };
476
+
477
+ export type SelectToken = AntdSelectToken &
478
+ AliasToken & {
479
+ selectedOptionColor: string;
480
+ selectItemBorderShadowColor: string;
481
+ selectItemBgColor: string;
482
+ selectItemHoverBgColor: string;
483
+ };
484
+
485
+ export type TableToken = AntdTableToken & AliasToken & {};
486
+
487
+ export type NavCardToken = AliasToken & {
488
+ shadow: string;
489
+ };
490
+
206
491
  export type GlobalToken = AntdGlobalToken & {
207
492
  Button: ButtonToken;
208
493
  Checkbox: CheckboxToken;
@@ -222,13 +507,16 @@ export type GlobalToken = AntdGlobalToken & {
222
507
  Steps: StepsToken;
223
508
  Form: FormToken;
224
509
  Divider: DividerToken;
510
+ DatePicker: DatePickerToken;
511
+ Menu: MenuToken;
512
+ Pagination: PaginationToken;
513
+ Upload: UploadToken;
514
+ CustomTokens: CustomTokens;
515
+ Select: SelectToken;
516
+ Table: TableToken;
517
+ NavCardTokens: NavCardToken;
225
518
  };
226
519
 
227
- export type DividerToken = AntdDividerToken &
228
- AliasToken & {
229
- fontWeight: number;
230
- };
231
-
232
520
  /**
233
521
  * This is a type that is used to prevent the use of custom styles.
234
522
  * 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.7.0",
3
+ "version": "1.0.1",
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.17.0"
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": "^5.2.2",
20
- "@akinon/typescript-config": "0.4.0"
19
+ "typescript": "*",
20
+ "@akinon/typescript-config": "1.0.1"
21
21
  },
22
22
  "peerDependencies": {
23
23
  "react": ">=18",