@rainbow-oh/yee-c 0.6.0 → 0.6.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.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "yee basic components",
5
5
  "keywords": [
6
6
  "react",
@@ -44,10 +44,14 @@ const AnchorItem: React.FC<AnchorItemProps> = (props) => {
44
44
  paddingLeft: `${level * INDENT_WIDTH}px`,
45
45
  };
46
46
 
47
- const renderItem = (
47
+ const node = (
48
48
  <li className={cls} style={itemStyle} {...rest}>
49
49
  <a href={`#${targetKey}`} onClick={handleClick}>
50
- <span className={`${prefixCls}-item-label`} title={String(title)}>
50
+ <span
51
+ className={clsx(`${prefixCls}-item-label`, classNames?.label)}
52
+ style={styles?.label}
53
+ title={String(title)}
54
+ >
51
55
  {title}
52
56
  </span>
53
57
  </a>
@@ -56,7 +60,7 @@ const AnchorItem: React.FC<AnchorItemProps> = (props) => {
56
60
 
57
61
  return (
58
62
  <>
59
- {renderItem}
63
+ {node}
60
64
  {children}
61
65
  </>
62
66
  );
@@ -46,7 +46,7 @@ export interface AnchorItemProps {
46
46
  children?: React.ReactNode;
47
47
  }
48
48
 
49
- export type AnchorSemanticDOM = 'item' | 'active' | 'content';
49
+ export type AnchorSemanticDOM = 'item' | 'active' | 'content' | 'label';
50
50
 
51
51
  export interface AnchorProps extends DataAttributeProps {
52
52
  /**
@@ -171,11 +171,19 @@ const Dialog = (baseprops: DialogProps) => {
171
171
  ></Button>
172
172
  ) : null}
173
173
  {title ? (
174
- <div className={`${prefixCls}-header`}>
174
+ <div
175
+ className={clsx(`${prefixCls}-header`, classNames?.header)}
176
+ style={styles?.header}
177
+ >
175
178
  <div className={`${prefixCls}-title`}>{title}</div>
176
179
  </div>
177
180
  ) : null}
178
- <div className={`${prefixCls}-body`}>{children}</div>
181
+ <div
182
+ className={clsx(`${prefixCls}-body`, classNames?.body)}
183
+ style={styles?.body}
184
+ >
185
+ {children}
186
+ </div>
179
187
  {renderFooter()}
180
188
  </div>
181
189
  </div>
@@ -1,7 +1,7 @@
1
1
  import { ButtonType } from '../Button';
2
2
  import type { DataAttributeProps } from '../utils/types';
3
3
 
4
- export type SemanticDOM = 'content' | 'footer' | 'mask';
4
+ export type SemanticDOM = 'content' | 'header' | 'body' | 'footer' | 'mask';
5
5
 
6
6
  export interface DialogProps extends DataAttributeProps {
7
7
  /**
@@ -11,6 +11,7 @@
11
11
  line-height: var(--yee-input-line-height);
12
12
  border: var(--yee-input-border-width) solid var(--yee-input-border-color);
13
13
  border-radius: var(--yee-input-border-radius, 4px);
14
+ font-family: var(--yee-font-family);
14
15
 
15
16
  &:not(@{pls}-disabled):hover {
16
17
  border-color: var(--yee-input-hover-border-color);
@@ -46,6 +47,7 @@
46
47
 
47
48
  &-inner {
48
49
  width: 100%;
50
+ font-family: var(--yee-font-family);
49
51
  line-height: var(--yee-input-line-height);
50
52
  background-color: inherit;
51
53
  border: none;
@@ -67,6 +67,7 @@
67
67
  font-size: var(--yee-textarea-font-size);
68
68
  line-height: var(--yee-textarea-line-height);
69
69
  border-radius: var(--yee-textarea-border-radius, 4px);
70
+ font-family: var(--yee-font-family);
70
71
  width: 100%;
71
72
 
72
73
  &-borderless {
@@ -1,4 +1,5 @@
1
1
  :root {
2
+ --yee-font-family: inherit;
2
3
  /* ── z-index 基础层级 ── */
3
4
  --yee-z-index-fixed: 990; /* L1 吸顶 */
4
5
  --yee-z-index-mask: 1000; /* L2 遮罩背景 */
package/src/version.ts CHANGED
@@ -4,7 +4,7 @@ declare global {
4
4
  }
5
5
  }
6
6
 
7
- export const version = "0.6.0";
7
+ export const version = "0.6.1";
8
8
 
9
9
  if (typeof window !== 'undefined') {
10
10
  window.__yee_c_version__ = version;