@tdesign/uniapp 0.8.0 → 0.9.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.
Files changed (134) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.md +43 -34
  3. package/dist/action-sheet/README.md +8 -3
  4. package/dist/avatar/README.md +3 -1
  5. package/dist/back-top/README.md +3 -1
  6. package/dist/badge/README.en-US.md +1 -0
  7. package/dist/badge/README.md +4 -1
  8. package/dist/badge/badge.css +1 -1
  9. package/dist/button/README.md +3 -1
  10. package/dist/button/button.vue +5 -0
  11. package/dist/calendar/README.md +3 -1
  12. package/dist/calendar/calendar.vue +6 -2
  13. package/dist/cascader/README.md +3 -1
  14. package/dist/cell/README.md +3 -1
  15. package/dist/checkbox/README.md +3 -1
  16. package/dist/col/README.md +3 -1
  17. package/dist/collapse/README.md +3 -1
  18. package/dist/color-picker/README.md +3 -1
  19. package/dist/common/common.ts +121 -5
  20. package/dist/common/src/index.js +0 -1
  21. package/dist/common/style/theme/index-light.css +282 -0
  22. package/dist/common/style/theme/index-light.less +9 -0
  23. package/dist/common/style/theme/raw/_components-light.less +8 -0
  24. package/dist/common/style/theme/raw/_light-only.less +181 -0
  25. package/dist/common/validator.ts +496 -0
  26. package/dist/config-provider/README.md +3 -1
  27. package/dist/count-down/README.md +3 -1
  28. package/dist/date-time-picker/README.md +3 -1
  29. package/dist/dialog/README.md +3 -1
  30. package/dist/divider/README.md +3 -1
  31. package/dist/drawer/README.md +3 -1
  32. package/dist/dropdown-item/dropdown-item.vue +2 -0
  33. package/dist/dropdown-menu/README.md +2 -2
  34. package/dist/dropdown-menu/dropdown-menu.vue +1 -1
  35. package/dist/empty/README.md +3 -1
  36. package/dist/fab/README.md +3 -1
  37. package/dist/fab/fab.vue +2 -2
  38. package/dist/fab/props.ts +1 -1
  39. package/dist/fab/type.ts +1 -1
  40. package/dist/footer/README.md +3 -1
  41. package/dist/form/README.en-US.md +2 -2
  42. package/dist/form/README.md +5 -3
  43. package/dist/form/form.vue +1 -1
  44. package/dist/form/type.ts +3 -3
  45. package/dist/form-item/form-item.css +6 -2
  46. package/dist/form-item/form-item.vue +30 -24
  47. package/dist/form-item/type.ts +2 -2
  48. package/dist/grid/README.md +3 -1
  49. package/dist/guide/README.md +3 -1
  50. package/dist/icon/README.md +10 -7
  51. package/dist/icon/icon.css +1633 -1624
  52. package/dist/image/README.md +3 -1
  53. package/dist/image-viewer/README.md +3 -1
  54. package/dist/index.js +13 -0
  55. package/dist/indexes/README.md +3 -1
  56. package/dist/indexes/computed.js +6 -2
  57. package/dist/indexes/indexes.css +7 -2
  58. package/dist/indexes/indexes.vue +1 -1
  59. package/dist/indexes/props.ts +5 -0
  60. package/dist/indexes/type.ts +5 -0
  61. package/dist/input/README.md +3 -1
  62. package/dist/input/input.vue +8 -32
  63. package/dist/link/README.md +3 -1
  64. package/dist/loading/README.md +3 -1
  65. package/dist/message/README.md +8 -3
  66. package/dist/mixins/page-scroll.d.ts +19 -0
  67. package/dist/mixins/skyline.js +1 -1
  68. package/dist/navbar/README.md +3 -1
  69. package/dist/notice-bar/README.md +3 -1
  70. package/dist/overlay/README.md +3 -1
  71. package/dist/picker/README.md +3 -1
  72. package/dist/popover/README.md +3 -1
  73. package/dist/popup/README.md +3 -1
  74. package/dist/progress/README.md +2 -2
  75. package/dist/pull-down-refresh/README.md +3 -1
  76. package/dist/qrcode/README.md +3 -1
  77. package/dist/radio/README.md +3 -1
  78. package/dist/rate/README.md +3 -1
  79. package/dist/rate/rate.css +1 -0
  80. package/dist/result/README.md +3 -1
  81. package/dist/search/README.md +3 -1
  82. package/dist/search/search.css +5 -0
  83. package/dist/search/search.vue +7 -12
  84. package/dist/segmented/README.en-US.md +42 -0
  85. package/dist/segmented/README.md +75 -0
  86. package/dist/segmented/props.ts +31 -0
  87. package/dist/segmented/segmented.css +66 -0
  88. package/dist/segmented/segmented.vue +174 -0
  89. package/dist/segmented/type.ts +41 -0
  90. package/dist/side-bar/README.md +3 -1
  91. package/dist/skeleton/README.md +3 -1
  92. package/dist/slider/README.md +3 -1
  93. package/dist/stepper/README.md +3 -1
  94. package/dist/steps/README.md +3 -1
  95. package/dist/sticky/README.md +3 -1
  96. package/dist/swipe-cell/README.md +3 -1
  97. package/dist/swiper/README.md +3 -1
  98. package/dist/switch/README.md +3 -1
  99. package/dist/tab-bar/README.md +3 -1
  100. package/dist/tab-bar-item/tab-bar-item.vue +4 -6
  101. package/dist/table/README.en-US.md +72 -0
  102. package/dist/table/README.md +117 -0
  103. package/dist/table/base-table-props.ts +105 -0
  104. package/dist/table/props.ts +94 -0
  105. package/dist/table/table.css +251 -0
  106. package/dist/table/table.vue +551 -0
  107. package/dist/table/type.ts +180 -0
  108. package/dist/tabs/README.md +3 -1
  109. package/dist/tabs/tabs.css +4 -0
  110. package/dist/tag/README.md +3 -1
  111. package/dist/textarea/README.md +3 -1
  112. package/dist/textarea/textarea.vue +1 -25
  113. package/dist/theme-light.css +282 -0
  114. package/dist/theme-light.css.d.ts +2 -0
  115. package/dist/theme-light.less +1 -0
  116. package/dist/theme-light.less.d.ts +2 -0
  117. package/dist/theme.css +467 -0
  118. package/dist/theme.css.d.ts +2 -0
  119. package/dist/theme.less +1 -0
  120. package/dist/theme.less.d.ts +2 -0
  121. package/dist/toast/README.md +3 -1
  122. package/dist/transition/README.md +4 -6
  123. package/dist/tree-select/README.md +3 -1
  124. package/dist/types/index.d.ts +17 -0
  125. package/dist/types/segmented.d.ts +7 -0
  126. package/dist/types/table.d.ts +7 -0
  127. package/dist/upload/README.md +3 -1
  128. package/dist/watermark/README.md +3 -1
  129. package/global.d.ts +2 -0
  130. package/package.json +66 -8
  131. package/script/postinstall.js +87 -0
  132. package/dist/common/src/superComponent.js +0 -5
  133. package/dist/common/validator.js +0 -210
  134. package/dist/script/postinstall.js +0 -46
@@ -0,0 +1,180 @@
1
+ /* eslint-disable */
2
+
3
+ /**
4
+ * 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC
5
+ * */
6
+
7
+ import type { TdLoadingProps as LoadingProps } from '../loading/type';
8
+ import type { ClassName } from '../common/common';
9
+
10
+ export interface TdBaseTableProps<T extends TableRowData = TableRowData> {
11
+ /**
12
+ * 是否显示表格边框
13
+ * @default false
14
+ */
15
+ bordered?: boolean;
16
+ /**
17
+ * 单元格数据为空时呈现的内容
18
+ */
19
+ cellEmptyContent?: string;
20
+ /**
21
+ * 列配置,泛型 T 指表格数据类型
22
+ * @default []
23
+ */
24
+ columns?: Array<BaseTableCol<T>>;
25
+ /**
26
+ * 数据源,泛型 T 指表格数据类型
27
+ * @default []
28
+ */
29
+ data?: Array<T>;
30
+ /**
31
+ * 空表格呈现样式,支持全局配置 `GlobalConfigProvider`
32
+ * @default ''
33
+ */
34
+ empty?: string;
35
+ /**
36
+ * 固定行(冻结行),示例:[M, N],表示冻结表头 M 行和表尾 N 行。M 和 N 值为 0 时,表示不冻结行
37
+ */
38
+ fixedRows?: Array<number>;
39
+ /**
40
+ * 表尾总结行
41
+ */
42
+ footerSummary?: string;
43
+ /**
44
+ * 表格高度,超出后会出现滚动条。示例:100, '30%', '300'。值为数字类型,会自动加上单位 px。如果不是绝对固定表格高度,建议使用 `maxHeight`
45
+ */
46
+ height?: string | number;
47
+ /**
48
+ * 加载中状态。值为 `true` 会显示默认加载中样式,可以通过 Function 和 插槽 自定义加载状态呈现内容和样式。值为 `false` 则会取消加载状态
49
+ */
50
+ loading?: boolean | null;
51
+ /**
52
+ * 透传加载组件全部属性
53
+ */
54
+ loadingProps?: Partial<LoadingProps>;
55
+ /**
56
+ * 表格最大高度,超出后会出现滚动条。示例:100, '30%', '300'。值为数字类型,会自动加上单位 px
57
+ */
58
+ maxHeight?: string | number;
59
+ /**
60
+ * 唯一标识一行数据的字段名,来源于 `data` 中的字段。如果是字段嵌套多层,可以设置形如 `item.a.id` 的方法
61
+ * @default 'id'
62
+ */
63
+ rowKey: string;
64
+ /**
65
+ * 用于自定义合并单元格,泛型 T 指表格数据类型。示例:`({ row, col, rowIndex, colIndex }) => { rowspan: 2, colspan: 3 }`
66
+ */
67
+ rowspanAndColspan?: TableRowspanAndColspanFunc<T>;
68
+ /**
69
+ * 是否显示表头
70
+ * @default true
71
+ */
72
+ showHeader?: boolean;
73
+ /**
74
+ * 是否显示斑马纹
75
+ * @default false
76
+ */
77
+ stripe?: boolean;
78
+ /**
79
+ * 表格内容的总宽度,注意不是表格可见宽度。主要应用于 `table-layout: auto` 模式下的固定列显示。`tableContentWidth` 内容宽度的值必须大于表格可见宽度
80
+ * @default ''
81
+ */
82
+ tableContentWidth?: string;
83
+ /**
84
+ * 表格布局方式
85
+ * @default fixed
86
+ */
87
+ tableLayout?: 'auto' | 'fixed';
88
+ /**
89
+ * 行内容上下方向对齐
90
+ * @default middle
91
+ */
92
+ verticalAlign?: 'top' | 'middle' | 'bottom';
93
+ /**
94
+ * 单元格点击时触发
95
+ */
96
+ onCellClick?: (context: BaseTableCellEventContext<T>) => void;
97
+ /**
98
+ * 行点击时触发,泛型 T 指表格数据类型
99
+ */
100
+ onRowClick?: (context: RowEventContext<T>) => void;
101
+ }
102
+
103
+ export interface BaseTableCol<T extends TableRowData = TableRowData> {
104
+ /**
105
+ * 列横向对齐方式
106
+ * @default left
107
+ */
108
+ align?: 'left' | 'right' | 'center';
109
+ /**
110
+ * 自定义单元格渲染。默认使用 `colKey` 的值作为自定义当前列的插槽名称。<br/>如果 `cell` 值类型为 Function 表示以函数形式渲染单元格。值类型为 string 表示使用插槽渲染,插槽名称为 cell 的值。优先级高于 `render`。泛型 T 指表格数据类型
111
+ */
112
+ cell?: string | ((params: BaseTableCellParams<T>) => string);
113
+ /**
114
+ * 列类名,值类型是 Function 使用返回值作为列类名;值类型不为 Function 时,值用于整列类名(含表头)。泛型 T 指表格数据类型
115
+ */
116
+ className?: TableColumnClassName<T> | TableColumnClassName<T>[];
117
+ /**
118
+ * 渲染列所需字段,值为 `serial-number` 表示当前列为「序号」列
119
+ * @default ''
120
+ */
121
+ colKey?: string;
122
+ /**
123
+ * 固定列显示位置
124
+ * @default left
125
+ */
126
+ fixed?: 'left' | 'right';
127
+ /**
128
+ * 透传 CSS 属性 `min-width` 到 `<col>` 元素。⚠️ 仅少部分浏览器支持,如:使用 [TablesNG](https://docs.google.com/document/d/16PFD1GtMI9Zgwu0jtPaKZJ75Q2wyZ9EZnVbBacOfiNA/preview) 渲染的 Chrome 浏览器支持 `minWidth`
129
+ */
130
+ minWidth?: string | number;
131
+ /**
132
+ * 列宽,可以作为最小宽度使用。当列宽总和小于 `table` 元素时,浏览器根据宽度设置情况自动分配宽度;当列宽总和大于 `table` 元素,表现为定宽。可以同时调整 `table` 元素的宽度来达到自己想要的效果
133
+ */
134
+ width?: string | number;
135
+ }
136
+
137
+ export type TableRowspanAndColspanFunc<T extends TableRowData = TableRowData> = (
138
+ params: BaseTableCellParams<T>,
139
+ ) => RowspanColspan;
140
+
141
+ export interface RowspanColspan {
142
+ colspan?: number;
143
+ rowspan?: number;
144
+ }
145
+
146
+ export interface BaseTableCellEventContext<T extends TableRowData = TableRowData> {
147
+ row: T;
148
+ col: BaseTableCol<T>;
149
+ rowIndex: number;
150
+ colIndex: number;
151
+ e: MouseEvent;
152
+ }
153
+
154
+ export interface RowEventContext<T extends TableRowData = TableRowData> {
155
+ row: T;
156
+ index: number;
157
+ e: MouseEvent;
158
+ }
159
+
160
+ export interface TableRowData {
161
+ [key: string]: any;
162
+ children?: TableRowData[];
163
+ }
164
+
165
+ export interface BaseTableCellParams<T extends TableRowData = TableRowData> {
166
+ row: T;
167
+ rowIndex: number;
168
+ col: BaseTableCol<T>;
169
+ colIndex: number;
170
+ }
171
+
172
+ export type TableColumnClassName<T extends TableRowData = TableRowData> =
173
+ | ClassName
174
+ | ((context: CellData<T>) => ClassName);
175
+
176
+ export interface CellData<T extends TableRowData = TableRowData> extends BaseTableCellParams<T> {
177
+ type: 'th' | 'td';
178
+ }
179
+
180
+ export type DataType = TableRowData;
@@ -8,7 +8,9 @@ isComponent: true
8
8
 
9
9
  ## 引入
10
10
 
11
- 可在 `main.ts` 或在需要使用的页面或组件中引入。
11
+ 推荐使用 easycom 模式引入组件,配置后无需手动 import 即可直接在模板中使用 `<t-tabs />`。详细配置请参考 [快速开始](../getting-started)。
12
+
13
+ 如需手动引入:
12
14
 
13
15
  ```js
14
16
  import TTabs from '@tdesign/uniapp/tabs/tabs.vue';
@@ -106,7 +106,11 @@
106
106
  .t-tabs__item-suffix::after {
107
107
  border-bottom-left-radius: var(--td-radius-large, 18rpx);
108
108
  }
109
+ .t-tabs__badge {
110
+ --td-badge-content-text-font: var(--td-tab-font, var(--td-font-body-medium, 28rpx / 44rpx var(--td-font-family, PingFang SC, Microsoft YaHei, Arial Regular)));
111
+ }
109
112
  .t-tabs__badge--active {
113
+ --td-badge-content-text-font: var(--td-font-mark-medium, 600 28rpx / 44rpx var(--td-font-family, PingFang SC, Microsoft YaHei, Arial Regular));
110
114
  --td-badge-content-text-color: var(--td-tab-item-active-color, var(--td-brand-color, var(--td-primary-color-7, #0052d9)));
111
115
  }
112
116
  .t-tabs__badge--disabled {
@@ -8,7 +8,9 @@ isComponent: true
8
8
 
9
9
  ## 引入
10
10
 
11
- 可在 `main.ts` 或在需要使用的页面或组件中引入。
11
+ 推荐使用 easycom 模式引入组件,配置后无需手动 import 即可直接在模板中使用 `<t-tag />`。详细配置请参考 [快速开始](../getting-started)。
12
+
13
+ 如需手动引入:
12
14
 
13
15
  ```js
14
16
  import TTag from '@tdesign/uniapp/tag/tag.vue';
@@ -9,7 +9,9 @@ isComponent: true
9
9
 
10
10
  ## 引入
11
11
 
12
- 可在 `main.ts` 或在需要使用的页面或组件中引入。
12
+ 推荐使用 easycom 模式引入组件,配置后无需手动 import 即可直接在模板中使用 `<t-textarea />`。详细配置请参考 [快速开始](../getting-started)。
13
+
14
+ 如需手动引入:
13
15
 
14
16
 
15
17
  ```js
@@ -56,8 +56,7 @@ import props from './props';
56
56
  import { getCharacterLength, coalesce, nextTick } from '../common/utils';
57
57
  import tools from '../common/utils.wxs';
58
58
  import { textareaStyle } from './computed.js';
59
- // import { getInnerMaxLen } from '../input/utils';
60
- import { RELATION_MAP } from '../common/relation/parent-map.js';
59
+ import { RELATION_MAP } from '../common/relation/parent-map';
61
60
 
62
61
 
63
62
  const name = `${prefix}-textarea`;
@@ -129,7 +128,6 @@ export default {
129
128
  this.dataValue = value;
130
129
  this.count = count;
131
130
  });
132
- // this.updateInnerMaxLen();
133
131
  },
134
132
 
135
133
  calculateValue(value, maxcharacter, maxlength) {
@@ -197,28 +195,6 @@ export default {
197
195
  onKeyboardHeightChange(e) {
198
196
  this.$emit('keyboardheightchange', e.detail);
199
197
  },
200
-
201
- // updateInnerMaxLen() {
202
- // this.innerMaxLen = this.getInnerMaxLen();
203
- // },
204
- // getInnerMaxLen() {
205
- // const {
206
- // allowInputOverMax,
207
- // maxcharacter,
208
- // maxlength,
209
- // dataValue,
210
- // rawValue,
211
- // count,
212
- // } = this;
213
- // return getInnerMaxLen({
214
- // allowInputOverMax,
215
- // maxcharacter,
216
- // maxlength,
217
- // dataValue,
218
- // rawValue,
219
- // count,
220
- // });
221
- // },
222
198
  },
223
199
  }),
224
200
  };
@@ -0,0 +1,282 @@
1
+ /* ./raw/_light-only.less */
2
+ /* #ifdef H5 */
3
+ :root,
4
+ /* #endif */
5
+ page,
6
+ .page {
7
+ --td-brand-color-1: #f2f3ff;
8
+ --td-brand-color-2: #d9e1ff;
9
+ --td-brand-color-3: #b5c7ff;
10
+ --td-brand-color-4: #8eabff;
11
+ --td-brand-color-5: #618dff;
12
+ --td-brand-color-6: #366ef4;
13
+ --td-brand-color-7: #0052d9;
14
+ --td-brand-color-8: #003cab;
15
+ --td-brand-color-9: #002a7c;
16
+ --td-brand-color-10: #001a57;
17
+
18
+ --td-primary-color-1: var(--td-brand-color-1);
19
+ --td-primary-color-2: var(--td-brand-color-2);
20
+ --td-primary-color-3: var(--td-brand-color-3);
21
+ --td-primary-color-4: var(--td-brand-color-4);
22
+ --td-primary-color-5: var(--td-brand-color-5);
23
+ --td-primary-color-6: var(--td-brand-color-6);
24
+ --td-primary-color-7: var(--td-brand-color-7);
25
+ --td-primary-color-8: var(--td-brand-color-8);
26
+ --td-primary-color-9: var(--td-brand-color-9);
27
+ --td-primary-color-10: var(--td-brand-color-10);
28
+
29
+ --td-warning-color-1: #fff1e9;
30
+ --td-warning-color-2: #ffd9c2;
31
+ --td-warning-color-3: #ffb98c;
32
+ --td-warning-color-4: #fa9550;
33
+ --td-warning-color-5: #e37318;
34
+ --td-warning-color-6: #be5a00;
35
+ --td-warning-color-7: #954500;
36
+ --td-warning-color-8: #713300;
37
+ --td-warning-color-9: #532300;
38
+ --td-warning-color-10: #3b1700;
39
+
40
+ --td-error-color-1: #fff0ed;
41
+ --td-error-color-2: #ffd8d2;
42
+ --td-error-color-3: #ffb9b0;
43
+ --td-error-color-4: #ff9285;
44
+ --td-error-color-5: #f6685d;
45
+ --td-error-color-6: #d54941;
46
+ --td-error-color-7: #ad352f;
47
+ --td-error-color-8: #881f1c;
48
+ --td-error-color-9: #68070a;
49
+ --td-error-color-10: #490002;
50
+
51
+ --td-success-color-1: #e3f9e9;
52
+ --td-success-color-2: #c6f3d7;
53
+ --td-success-color-3: #92dab2;
54
+ --td-success-color-4: #56c08d;
55
+ --td-success-color-5: #2ba471;
56
+ --td-success-color-6: #008858;
57
+ --td-success-color-7: #006c45;
58
+ --td-success-color-8: #005334;
59
+ --td-success-color-9: #003b23;
60
+ --td-success-color-10: #002515;
61
+
62
+ --td-gray-color-1: #f3f3f3;
63
+ --td-gray-color-2: #eeeeee;
64
+ --td-gray-color-3: #e7e7e7;
65
+ --td-gray-color-4: #dcdcdc;
66
+ --td-gray-color-5: #c5c5c5;
67
+ --td-gray-color-6: #a6a6a6;
68
+ --td-gray-color-7: #8b8b8b;
69
+ --td-gray-color-8: #777777;
70
+ --td-gray-color-9: #5e5e5e;
71
+ --td-gray-color-10: #4b4b4b;
72
+ --td-gray-color-11: #383838;
73
+ --td-gray-color-12: #2c2c2c;
74
+ --td-gray-color-13: #242424;
75
+ --td-gray-color-14: #181818;
76
+
77
+ --td-font-white-1: rgba(255, 255, 255, 1);
78
+ --td-font-white-2: rgba(255, 255, 255, 0.55);
79
+ --td-font-white-3: rgba(255, 255, 255, 0.35);
80
+ --td-font-white-4: rgba(255, 255, 255, 0.22);
81
+ --td-font-gray-1: rgba(0, 0, 0, 0.9);
82
+ --td-font-gray-2: rgba(0, 0, 0, 0.6);
83
+ --td-font-gray-3: rgba(0, 0, 0, 0.4);
84
+ --td-font-gray-4: rgba(0, 0, 0, 0.26);
85
+
86
+ --td-brand-color: var(--td-primary-color-7);
87
+ --td-warning-color: var(--td-warning-color-5);
88
+ --td-error-color: var(--td-error-color-6);
89
+ --td-success-color: var(--td-success-color-5);
90
+
91
+ --td-brand-color-focus: var(--td-primary-color-1);
92
+ --td-brand-color-active: var(--td-primary-color-8);
93
+ --td-brand-color-disabled: var(--td-primary-color-3);
94
+ --td-brand-color-light: var(--td-primary-color-1);
95
+ --td-brand-color-light-active: var(--td-primary-color-2);
96
+
97
+ --td-warning-color-active: var(--td-warning-color-6);
98
+ --td-warning-color-disabled: var(--td-warning-color-3);
99
+ --td-warning-color-focus: var(--td-warning-color-2);
100
+ --td-warning-color-light: var(--td-warning-color-1);
101
+ --td-warning-color-light-active: var(--td-warning-color-2);
102
+
103
+ --td-error-color-focus: var(--td-error-color-2);
104
+ --td-error-color-active: var(--td-error-color-7);
105
+ --td-error-color-disabled: var(--td-error-color-3);
106
+ --td-error-color-light: var(--td-error-color-1);
107
+ --td-error-color-light-active: var(--td-error-color-2);
108
+
109
+ --td-success-color-focus: var(--td-success-color-2);
110
+ --td-success-color-active: var(--td-success-color-6);
111
+ --td-success-color-disabled: var(--td-success-color-3);
112
+ --td-success-color-light: var(--td-success-color-1);
113
+ --td-success-color-light-active: var(--td-success-color-2);
114
+
115
+ --td-mask-active: rgba(0, 0, 0, 60%);
116
+ --td-mask-disabled: rgba(255, 255, 255, 60%);
117
+ --td-mask-background: rgba(255, 255, 255, 96%);
118
+
119
+ --td-bg-color-page: var(--td-gray-color-1);
120
+ --td-bg-color-container: var(--td-font-white-1);
121
+ --td-bg-color-container-active: var(--td-gray-color-3);
122
+ --td-bg-color-secondarycontainer: var(--td-gray-color-1);
123
+ --td-bg-color-secondarycontainer-active: var(--td-gray-color-4);
124
+ --td-bg-color-component: var(--td-gray-color-3);
125
+ --td-bg-color-component-active: var(--td-gray-color-6);
126
+ --td-bg-color-component-disabled: var(--td-gray-color-2);
127
+ --td-bg-color-secondarycomponent: var(--td-gray-color-4);
128
+ --td-bg-color-secondarycomponent-active: var(--td-gray-color-6);
129
+
130
+ --td-bg-color-specialcomponent: #fff;
131
+
132
+ --td-text-color-primary: var(--td-font-gray-1);
133
+ --td-text-color-secondary: var(--td-font-gray-2);
134
+ --td-text-color-placeholder: var(--td-font-gray-3);
135
+ --td-text-color-disabled: var(--td-font-gray-4);
136
+ --td-text-color-anti: var(--td-font-white-1);
137
+ --td-text-color-brand: var(--td-brand-color);
138
+ --td-text-color-link: var(--td-brand-color);
139
+
140
+ --td-border-level-1-color: var(--td-gray-color-3);
141
+ --td-component-stroke: var(--td-gray-color-3);
142
+ --td-border-level-2-color: var(--td-gray-color-4);
143
+ --td-component-border: var(--td-gray-color-4);
144
+
145
+ --td-shadow-1: 0 1px 10px rgba(0, 0, 0, 5%), 0 4px 5px rgba(0, 0, 0, 8%), 0 2px 4px -1px rgba(0, 0, 0, 12%);
146
+ --td-shadow-2:
147
+ 0 3px 14px 2px rgba(0, 0, 0, 5%), 0 8px 10px 1px rgba(0, 0, 0, 6%), 0 5px 5px -3px rgba(0, 0, 0, 10%);
148
+ --td-shadow-3:
149
+ 0 6px 30px 5px rgba(0, 0, 0, 5%), 0 16px 24px 2px rgba(0, 0, 0, 4%), 0 8px 10px -5px rgba(0, 0, 0, 8%);
150
+ --td-shadow-4: 0 2px 8px 0 rgba(0, 0, 0, 0.06);
151
+
152
+ --td-shadow-inset-top: inset 0 0.5px 0 #dcdcdc;
153
+ --td-shadow-inset-right: inset 0.5px 0 0 #dcdcdc;
154
+ --td-shadow-inset-bottom: inset 0 -0.5px 0 #dcdcdc;
155
+ --td-shadow-inset-left: inset -0.5px 0 0 #dcdcdc;
156
+
157
+ --td-table-shadow-color: rgba(0, 0, 0, 8%);
158
+
159
+ --td-scrollbar-color: rgba(0, 0, 0, 10%);
160
+ --td-scrollbar-hover-color: rgba(0, 0, 0, 30%);
161
+ --td-scroll-track-color: #fff;
162
+ }
163
+
164
+ /* ./raw/_radius.less */
165
+ page,
166
+ .page {
167
+ --td-radius-small: 3px;
168
+ --td-radius-default: 6px;
169
+ --td-radius-large: 9px;
170
+ --td-radius-extraLarge: 12px;
171
+ --td-radius-round: 999px;
172
+ --td-radius-circle: 50%;
173
+ }
174
+
175
+ /* ./raw/_font.less */
176
+ page,
177
+ .page {
178
+ --td-font-family: PingFang SC, Microsoft YaHei, Arial Regular;
179
+ --td-font-family-medium: PingFang SC, Microsoft YaHei, Arial Medium;
180
+
181
+ --td-font-size-link-small: 12px;
182
+ --td-font-size-link-medium: 14px;
183
+ --td-font-size-link-large: 16px;
184
+ --td-font-size-mark-extraSmall: 10px;
185
+ --td-font-size-mark-small: 12px;
186
+ --td-font-size-mark-medium: 14px;
187
+ --td-font-size-mark-large: 16px;
188
+ --td-font-size-body-extraSmall: 10px;
189
+ --td-font-size-body-small: 12px;
190
+ --td-font-size-body-medium: 14px;
191
+ --td-font-size-body-large: 16px;
192
+ --td-font-size-title-small: 14px;
193
+ --td-font-size-title-medium: 16px;
194
+ --td-font-size-title-large: 18px;
195
+ --td-font-size-title-extraLarge: 20px;
196
+ --td-font-size-headline-small: 24px;
197
+ --td-font-size-headline-medium: 28px;
198
+ --td-font-size-headline-large: 36px;
199
+ --td-font-size-display-medium: 48px;
200
+ --td-font-size-display-large: 64px;
201
+
202
+ --td-line-height-link-small: 20px;
203
+ --td-line-height-link-medium: 22px;
204
+ --td-line-height-link-large: 24px;
205
+ --td-line-height-mark-extraSmall: 16px;
206
+ --td-line-height-mark-small: 20px;
207
+ --td-line-height-mark-medium: 22px;
208
+ --td-line-height-mark-large: 24px;
209
+ --td-line-height-body-extraSmall: 16px;
210
+ --td-line-height-body-small: 20px;
211
+ --td-line-height-body-medium: 22px;
212
+ --td-line-height-body-large: 24px;
213
+ --td-line-height-title-small: 22px;
214
+ --td-line-height-title-medium: 24px;
215
+ --td-line-height-title-large: 26px;
216
+ --td-line-height-title-extraLarge: 28px;
217
+ --td-line-height-headline-small: 32px;
218
+ --td-line-height-headline-medium: 36px;
219
+ --td-line-height-headline-large: 44px;
220
+ --td-line-height-display-medium: 56px;
221
+ --td-line-height-display-large: 72px;
222
+
223
+ --td-font-link-small: var(--td-font-size-link-small) / var(--td-line-height-link-small) var(--td-font-family);
224
+ --td-font-link-medium: var(--td-font-size-link-medium) / var(--td-line-height-link-medium) var(--td-font-family);
225
+ --td-font-link-large: var(--td-font-size-link-large) / var(--td-line-height-link-large) var(--td-font-family);
226
+ --td-font-mark-extraSmall: 600 var(--td-font-size-mark-extraSmall) / var(--td-line-height-mark-extraSmall)
227
+ var(--td-font-family);
228
+ --td-font-mark-small: 600 var(--td-font-size-mark-small) / var(--td-line-height-mark-small) var(--td-font-family);
229
+ --td-font-mark-medium: 600 var(--td-font-size-mark-medium) / var(--td-line-height-mark-medium) var(--td-font-family);
230
+ --td-font-mark-large: 600 var(--td-font-size-mark-large) / var(--td-line-height-mark-large) var(--td-font-family);
231
+ --td-font-body-extraSmall: var(--td-font-size-body-extraSmall) / var(--td-line-height-body-extraSmall)
232
+ var(--td-font-family);
233
+ --td-font-body-small: var(--td-font-size-body-small) / var(--td-line-height-body-small) var(--td-font-family);
234
+ --td-font-body-medium: var(--td-font-size-body-medium) / var(--td-line-height-body-medium) var(--td-font-family);
235
+ --td-font-body-large: var(--td-font-size-body-large) / var(--td-line-height-body-large) var(--td-font-family);
236
+ --td-font-title-small: 600 var(--td-font-size-title-small) / var(--td-line-height-title-small) var(--td-font-family);
237
+ --td-font-title-medium: 600 var(--td-font-size-title-medium) / var(--td-line-height-title-medium)
238
+ var(--td-font-family);
239
+ --td-font-title-large: 600 var(--td-font-size-title-large) / var(--td-line-height-title-large) var(--td-font-family);
240
+ --td-font-title-extraLarge: 600 var(--td-font-size-title-extraLarge) / var(--td-line-height-title-extraLarge)
241
+ var(--td-font-family);
242
+ --td-font-headline-small: 600 var(--td-font-size-headline-small) / var(--td-line-height-headline-small)
243
+ var(--td-font-family);
244
+ --td-font-headline-medium: 600 var(--td-font-size-headline-medium) / var(--td-line-height-headline-medium)
245
+ var(--td-font-family);
246
+ --td-font-headline-large: 600 var(--td-font-size-headline-large) / var(--td-line-height-headline-large)
247
+ var(--td-font-family);
248
+ --td-font-display-medium: 600 var(--td-font-size-display-medium) / var(--td-line-height-display-medium)
249
+ var(--td-font-family);
250
+ --td-font-display-large: 600 var(--td-font-size-display-large) / var(--td-line-height-display-large)
251
+ var(--td-font-family);
252
+
253
+ --td-font-size: 10px;
254
+ --td-font-size-xs: var(--td-font-size-body-extraSmall);
255
+ --td-font-size-s: var(--td-font-size-body-small);
256
+ --td-font-size-base: var(--td-font-size-title-small);
257
+ --td-font-size-m: var(--td-font-size-title-medium);
258
+ --td-font-size-l: var(--td-font-size-title-large);
259
+ --td-font-size-xl: var(--td-font-size-title-extraLarge);
260
+ --td-font-size-xxl: var(--td-font-size-headline-large);
261
+ }
262
+
263
+ /* ./raw/_spacer.less */
264
+ page,
265
+ .page {
266
+ --td-spacer: 8px;
267
+ --td-spacer-1: 12px;
268
+ --td-spacer-2: 16px;
269
+ --td-spacer-3: 24px;
270
+ --td-spacer-4: 32px;
271
+ --td-spacer-5: 48px;
272
+ --td-spacer-6: 80px;
273
+ }
274
+
275
+ /* ./raw/_components-light.less */
276
+ page,
277
+ .page {
278
+ --td-picker-transparent-color: rgba(255, 255, 255, 0);
279
+
280
+ --td-switch-dot-disabled-color: var(--td-font-white-1);
281
+ --td-switch-loading-color: var(--td-brand-color);
282
+ }
@@ -0,0 +1,2 @@
1
+ declare const styles: string;
2
+ export default styles;
@@ -0,0 +1 @@
1
+ @import './common/style/theme/index-light.less';
@@ -0,0 +1,2 @@
1
+ declare const styles: string;
2
+ export default styles;