@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/dist/cjs/Anchor/anchor-item.js +10 -2
- package/dist/cjs/Anchor/interface.d.ts +1 -1
- package/dist/cjs/Dialog/dialog.js +16 -2
- package/dist/cjs/Dialog/interface.d.ts +1 -1
- package/dist/cjs/Input/style/index.less +2 -0
- package/dist/cjs/TextArea/style/index.less +1 -0
- package/dist/cjs/style/size.css +1 -0
- package/dist/cjs/style/themes.css +1 -1
- package/dist/cjs/style/variables.css +2 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Anchor/anchor-item.js +4 -3
- package/dist/esm/Anchor/interface.d.ts +1 -1
- package/dist/esm/Dialog/dialog.js +4 -2
- package/dist/esm/Dialog/interface.d.ts +1 -1
- package/dist/esm/Input/style/index.less +2 -0
- package/dist/esm/TextArea/style/index.less +1 -0
- package/dist/esm/style/size.css +1 -0
- package/dist/esm/style/themes.css +1 -1
- package/dist/esm/style/variables.css +2 -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/Anchor/anchor-item.tsx +7 -3
- package/src/Anchor/interface.ts +1 -1
- package/src/Dialog/dialog.tsx +10 -2
- package/src/Dialog/interface.ts +1 -1
- package/src/Input/style/index.less +2 -0
- package/src/TextArea/style/index.less +1 -0
- package/src/style/size.css +1 -0
- package/src/version.ts +1 -1
|
@@ -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
|
|
106
|
-
|
|
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(
|
|
246
|
-
|
|
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;
|
package/dist/cjs/style/size.css
CHANGED
|
@@ -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-
|
|
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 遮罩背景 */
|
package/dist/cjs/version.d.ts
CHANGED
package/dist/cjs/version.js
CHANGED
|
@@ -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
|
|
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,
|
|
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;
|
package/dist/esm/style/size.css
CHANGED
|
@@ -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-
|
|
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 遮罩背景 */
|
package/dist/esm/version.d.ts
CHANGED
package/dist/esm/version.js
CHANGED