@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rainbow-oh/yee-c",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "yee basic components",
5
5
  "keywords": [
6
6
  "react",
@@ -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 className={`${prefixCls}-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 = 'header' | 'title' | 'extra' | 'label' | 'content';
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;
@@ -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
  />
@@ -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 extends DataAttributeProps {
27
+ export interface SelectProps
28
+ extends DataAttributeProps, Pick<SelectorProps, 'size'> {
27
29
  /**
28
30
  * Custom class name prefix
29
31
  * */
@@ -45,6 +45,14 @@
45
45
  padding-right: 16px;
46
46
  }
47
47
 
48
+ &@{pls}-small {
49
+ height: var(--yee-selector-small-height);
50
+ }
51
+
52
+ &@{pls}-large {
53
+ height: var(--yee-selector-large-height);
54
+ }
55
+
48
56
  &:focus-within,
49
57
  &:focus {
50
58
  @{pls}-input-wrapper {
@@ -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;
package/src/version.ts CHANGED
@@ -4,7 +4,7 @@ declare global {
4
4
  }
5
5
  }
6
6
 
7
- export const version = "0.5.0";
7
+ export const version = "0.5.1";
8
8
 
9
9
  if (typeof window !== 'undefined') {
10
10
  window.__yee_c_version__ = version;