@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.
@@ -102,7 +102,15 @@ var AnchorItem = (props) => {
102
102
  const itemStyle = __spreadProps(__spreadValues(__spreadValues({}, style), isActive ? styles == null ? void 0 : styles.active : void 0), {
103
103
  paddingLeft: `${level * INDENT_WIDTH}px`
104
104
  });
105
- const renderItem = /* @__PURE__ */ import_react.default.createElement("li", __spreadValues({ className: cls, style: itemStyle }, rest), /* @__PURE__ */ import_react.default.createElement("a", { href: `#${targetKey}`, onClick: handleClick }, /* @__PURE__ */ import_react.default.createElement("span", { className: `${prefixCls}-item-label`, title: String(title) }, title)));
106
- return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, renderItem, children);
105
+ const node = /* @__PURE__ */ import_react.default.createElement("li", __spreadValues({ className: cls, style: itemStyle }, rest), /* @__PURE__ */ import_react.default.createElement("a", { href: `#${targetKey}`, onClick: handleClick }, /* @__PURE__ */ import_react.default.createElement(
106
+ "span",
107
+ {
108
+ className: (0, import_clsx.default)(`${prefixCls}-item-label`, classNames == null ? void 0 : classNames.label),
109
+ style: styles == null ? void 0 : styles.label,
110
+ title: String(title)
111
+ },
112
+ title
113
+ )));
114
+ return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, node, children);
107
115
  };
108
116
  var anchor_item_default = AnchorItem;
@@ -44,7 +44,7 @@ export interface AnchorItemProps {
44
44
  */
45
45
  children?: React.ReactNode;
46
46
  }
47
- export type AnchorSemanticDOM = 'item' | 'active' | 'content';
47
+ export type AnchorSemanticDOM = 'item' | 'active' | 'content' | 'label';
48
48
  export interface AnchorProps extends DataAttributeProps {
49
49
  /**
50
50
  * Custom class name prefix
@@ -242,8 +242,22 @@ var Dialog = (baseprops) => {
242
242
  onClick: onCancel
243
243
  }
244
244
  ) : null,
245
- title ? /* @__PURE__ */ import_react2.default.createElement("div", { className: `${prefixCls}-header` }, /* @__PURE__ */ import_react2.default.createElement("div", { className: `${prefixCls}-title` }, title)) : null,
246
- /* @__PURE__ */ import_react2.default.createElement("div", { className: `${prefixCls}-body` }, children),
245
+ title ? /* @__PURE__ */ import_react2.default.createElement(
246
+ "div",
247
+ {
248
+ className: (0, import_clsx.default)(`${prefixCls}-header`, classNames == null ? void 0 : classNames.header),
249
+ style: styles == null ? void 0 : styles.header
250
+ },
251
+ /* @__PURE__ */ import_react2.default.createElement("div", { className: `${prefixCls}-title` }, title)
252
+ ) : null,
253
+ /* @__PURE__ */ import_react2.default.createElement(
254
+ "div",
255
+ {
256
+ className: (0, import_clsx.default)(`${prefixCls}-body`, classNames == null ? void 0 : classNames.body),
257
+ style: styles == null ? void 0 : styles.body
258
+ },
259
+ children
260
+ ),
247
261
  renderFooter()
248
262
  )
249
263
  )
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { ButtonType } from '../Button';
3
3
  import type { DataAttributeProps } from '../utils/types';
4
- export type SemanticDOM = 'content' | 'footer' | 'mask';
4
+ export type SemanticDOM = 'content' | 'header' | 'body' | 'footer' | 'mask';
5
5
  export interface DialogProps extends DataAttributeProps {
6
6
  /**
7
7
  * Custom class name prefix
@@ -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 遮罩背景 */
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @rainbow-oh/yee-c CSS Variables
3
3
  * Auto-generated, do not edit manually
4
- * Generated on 2026-07-09T08:24:26.410Z
4
+ * Generated on 2026-07-13T08:55:27.235Z
5
5
  */
6
6
 
7
7
  /* ========== color.blue.css ========== */
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @rainbow-oh/yee-c CSS Variables
3
3
  * Auto-generated, do not edit manually
4
- * Generated on 2026-07-09T08:24:26.410Z
4
+ * Generated on 2026-07-13T08:55:27.235Z
5
5
  */
6
6
 
7
7
  /* ========== color.css ========== */
@@ -1117,6 +1117,7 @@
1117
1117
 
1118
1118
  /* ========== size.css ========== */
1119
1119
  :root {
1120
+ --yee-font-family: inherit;
1120
1121
  /* ── z-index 基础层级 ── */
1121
1122
  --yee-z-index-fixed: 990; /* L1 吸顶 */
1122
1123
  --yee-z-index-mask: 1000; /* L2 遮罩背景 */
@@ -3,4 +3,4 @@ declare global {
3
3
  __yee_c_version__: string;
4
4
  }
5
5
  }
6
- export declare const version = "0.6.0";
6
+ export declare const version = "0.6.1";
@@ -22,7 +22,7 @@ __export(version_exports, {
22
22
  version: () => version
23
23
  });
24
24
  module.exports = __toCommonJS(version_exports);
25
- var version = "0.6.0";
25
+ var version = "0.6.1";
26
26
  if (typeof window !== "undefined") {
27
27
  window.__yee_c_version__ = version;
28
28
  }
@@ -39,16 +39,17 @@ var AnchorItem = function AnchorItem(props) {
39
39
  var itemStyle = _objectSpread(_objectSpread(_objectSpread({}, style), isActive ? styles === null || styles === void 0 ? void 0 : styles.active : undefined), {}, {
40
40
  paddingLeft: "".concat(level * INDENT_WIDTH, "px")
41
41
  });
42
- var renderItem = /*#__PURE__*/React.createElement("li", _extends({
42
+ var node = /*#__PURE__*/React.createElement("li", _extends({
43
43
  className: cls,
44
44
  style: itemStyle
45
45
  }, rest), /*#__PURE__*/React.createElement("a", {
46
46
  href: "#".concat(targetKey),
47
47
  onClick: handleClick
48
48
  }, /*#__PURE__*/React.createElement("span", {
49
- className: "".concat(prefixCls, "-item-label"),
49
+ className: clsx("".concat(prefixCls, "-item-label"), classNames === null || classNames === void 0 ? void 0 : classNames.label),
50
+ style: styles === null || styles === void 0 ? void 0 : styles.label,
50
51
  title: String(title)
51
52
  }, title)));
52
- return /*#__PURE__*/React.createElement(React.Fragment, null, renderItem, children);
53
+ return /*#__PURE__*/React.createElement(React.Fragment, null, node, children);
53
54
  };
54
55
  export default AnchorItem;
@@ -44,7 +44,7 @@ export interface AnchorItemProps {
44
44
  */
45
45
  children?: React.ReactNode;
46
46
  }
47
- export type AnchorSemanticDOM = 'item' | 'active' | 'content';
47
+ export type AnchorSemanticDOM = 'item' | 'active' | 'content' | 'label';
48
48
  export interface AnchorProps extends DataAttributeProps {
49
49
  /**
50
50
  * Custom class name prefix
@@ -188,11 +188,13 @@ var Dialog = function Dialog(baseprops) {
188
188
  "aria-label": "close",
189
189
  onClick: onCancel
190
190
  }) : null, title ? /*#__PURE__*/React.createElement("div", {
191
- className: "".concat(prefixCls, "-header")
191
+ className: clsx("".concat(prefixCls, "-header"), classNames === null || classNames === void 0 ? void 0 : classNames.header),
192
+ style: styles === null || styles === void 0 ? void 0 : styles.header
192
193
  }, /*#__PURE__*/React.createElement("div", {
193
194
  className: "".concat(prefixCls, "-title")
194
195
  }, title)) : null, /*#__PURE__*/React.createElement("div", {
195
- className: "".concat(prefixCls, "-body")
196
+ className: clsx("".concat(prefixCls, "-body"), classNames === null || classNames === void 0 ? void 0 : classNames.body),
197
+ style: styles === null || styles === void 0 ? void 0 : styles.body
196
198
  }, children), renderFooter())));
197
199
  return /*#__PURE__*/React.createElement(Portal, {
198
200
  open: open,
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { ButtonType } from '../Button';
3
3
  import type { DataAttributeProps } from '../utils/types';
4
- export type SemanticDOM = 'content' | 'footer' | 'mask';
4
+ export type SemanticDOM = 'content' | 'header' | 'body' | 'footer' | 'mask';
5
5
  export interface DialogProps extends DataAttributeProps {
6
6
  /**
7
7
  * Custom class name prefix
@@ -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 遮罩背景 */
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @rainbow-oh/yee-c CSS Variables
3
3
  * Auto-generated, do not edit manually
4
- * Generated on 2026-07-09T08:24:26.410Z
4
+ * Generated on 2026-07-13T08:55:27.235Z
5
5
  */
6
6
 
7
7
  /* ========== color.blue.css ========== */
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @rainbow-oh/yee-c CSS Variables
3
3
  * Auto-generated, do not edit manually
4
- * Generated on 2026-07-09T08:24:26.410Z
4
+ * Generated on 2026-07-13T08:55:27.235Z
5
5
  */
6
6
 
7
7
  /* ========== color.css ========== */
@@ -1117,6 +1117,7 @@
1117
1117
 
1118
1118
  /* ========== size.css ========== */
1119
1119
  :root {
1120
+ --yee-font-family: inherit;
1120
1121
  /* ── z-index 基础层级 ── */
1121
1122
  --yee-z-index-fixed: 990; /* L1 吸顶 */
1122
1123
  --yee-z-index-mask: 1000; /* L2 遮罩背景 */
@@ -3,4 +3,4 @@ declare global {
3
3
  __yee_c_version__: string;
4
4
  }
5
5
  }
6
- export declare const version = "0.6.0";
6
+ export declare const version = "0.6.1";
@@ -1,4 +1,4 @@
1
- export var version = "0.6.0";
1
+ export var version = "0.6.1";
2
2
  if (typeof window !== 'undefined') {
3
3
  window.__yee_c_version__ = version;
4
4
  }