@rainbow-oh/yee-c 0.5.0 → 0.5.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.
- package/dist/cjs/Descriptions/descriptions.js +8 -1
- package/dist/cjs/Descriptions/interface.d.ts +1 -1
- package/dist/cjs/Select/demo/size.js +2 -0
- package/dist/cjs/Select/interface.d.ts +2 -1
- package/dist/cjs/Selector/style/index.less +8 -0
- package/dist/cjs/style/size.css +4 -0
- package/dist/cjs/style/themes.css +1 -1
- package/dist/cjs/style/variables.css +5 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Descriptions/descriptions.js +2 -1
- package/dist/esm/Descriptions/interface.d.ts +1 -1
- package/dist/esm/Select/demo/size.js +2 -0
- package/dist/esm/Select/interface.d.ts +2 -1
- package/dist/esm/Selector/style/index.less +8 -0
- package/dist/esm/style/size.css +4 -0
- package/dist/esm/style/themes.css +1 -1
- package/dist/esm/style/variables.css +5 -1
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/umd/yee-c.min.css +2 -2
- package/dist/umd/yee-c.min.js +1 -1
- package/package.json +1 -1
- package/src/Descriptions/descriptions.tsx +4 -1
- package/src/Descriptions/interface.ts +7 -1
- package/src/Select/demo/size.tsx +2 -0
- package/src/Select/interface.ts +3 -1
- package/src/Selector/style/index.less +8 -0
- package/src/style/size.css +4 -0
- package/src/version.ts +1 -1
package/package.json
CHANGED
|
@@ -224,7 +224,10 @@ const Descriptions = React.forwardRef<HTMLDivElement, DescriptionsProps>(
|
|
|
224
224
|
return (
|
|
225
225
|
<div {...rest} className={cls} style={style} ref={ref}>
|
|
226
226
|
{renderHeader()}
|
|
227
|
-
<table
|
|
227
|
+
<table
|
|
228
|
+
className={clsx(`${prefixCls}-table`, classNames?.table)}
|
|
229
|
+
style={styles?.table}
|
|
230
|
+
>
|
|
228
231
|
<tbody>{renderRows()}</tbody>
|
|
229
232
|
</table>
|
|
230
233
|
</div>
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import type { DataAttributeProps } from '../utils/types';
|
|
3
3
|
|
|
4
|
-
export type SemanticDOM =
|
|
4
|
+
export type SemanticDOM =
|
|
5
|
+
| 'header'
|
|
6
|
+
| 'title'
|
|
7
|
+
| 'extra'
|
|
8
|
+
| 'label'
|
|
9
|
+
| 'content'
|
|
10
|
+
| 'table';
|
|
5
11
|
|
|
6
12
|
export interface DescriptionsItem {
|
|
7
13
|
key?: React.Key;
|
package/src/Select/demo/size.tsx
CHANGED
|
@@ -16,6 +16,7 @@ export default () => {
|
|
|
16
16
|
value={value}
|
|
17
17
|
onChange={(val) => setValue(val as string)}
|
|
18
18
|
options={options}
|
|
19
|
+
size="small"
|
|
19
20
|
style={{ width: 200 }}
|
|
20
21
|
placeholder="Small Size"
|
|
21
22
|
/>
|
|
@@ -32,6 +33,7 @@ export default () => {
|
|
|
32
33
|
value={value}
|
|
33
34
|
onChange={(val) => setValue(val as string)}
|
|
34
35
|
options={options}
|
|
36
|
+
size="large"
|
|
35
37
|
style={{ width: 200 }}
|
|
36
38
|
placeholder="Large Size"
|
|
37
39
|
/>
|
package/src/Select/interface.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { SelectorProps } from '../Selector';
|
|
1
2
|
import type { DataAttributeProps } from '../utils/types';
|
|
2
3
|
|
|
3
4
|
export type Option = {
|
|
@@ -23,7 +24,8 @@ export type Option = {
|
|
|
23
24
|
[prop: string]: any;
|
|
24
25
|
};
|
|
25
26
|
|
|
26
|
-
export interface SelectProps
|
|
27
|
+
export interface SelectProps
|
|
28
|
+
extends DataAttributeProps, Pick<SelectorProps, 'size'> {
|
|
27
29
|
/**
|
|
28
30
|
* Custom class name prefix
|
|
29
31
|
* */
|
package/src/style/size.css
CHANGED
|
@@ -482,6 +482,10 @@
|
|
|
482
482
|
--yee-selector-arrow-right: 8px;
|
|
483
483
|
--yee-selector-clear-right: 8px;
|
|
484
484
|
--yee-selector-clear-padding: 1px;
|
|
485
|
+
--yee-selector-small-padding: 0 6px;
|
|
486
|
+
--yee-selector-small-height: 24px;
|
|
487
|
+
--yee-selector-large-padding: 4px 12px;
|
|
488
|
+
--yee-selector-large-height: 40px;
|
|
485
489
|
--yee-tags-height: 32px;
|
|
486
490
|
--yee-tags-input-font-size: 14px;
|
|
487
491
|
--yee-tags-input-line-height: 22px;
|