@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
package/package.json
CHANGED
|
@@ -44,10 +44,14 @@ const AnchorItem: React.FC<AnchorItemProps> = (props) => {
|
|
|
44
44
|
paddingLeft: `${level * INDENT_WIDTH}px`,
|
|
45
45
|
};
|
|
46
46
|
|
|
47
|
-
const
|
|
47
|
+
const node = (
|
|
48
48
|
<li className={cls} style={itemStyle} {...rest}>
|
|
49
49
|
<a href={`#${targetKey}`} onClick={handleClick}>
|
|
50
|
-
<span
|
|
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
|
-
{
|
|
63
|
+
{node}
|
|
60
64
|
{children}
|
|
61
65
|
</>
|
|
62
66
|
);
|
package/src/Anchor/interface.ts
CHANGED
|
@@ -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
|
/**
|
package/src/Dialog/dialog.tsx
CHANGED
|
@@ -171,11 +171,19 @@ const Dialog = (baseprops: DialogProps) => {
|
|
|
171
171
|
></Button>
|
|
172
172
|
) : null}
|
|
173
173
|
{title ? (
|
|
174
|
-
<div
|
|
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
|
|
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>
|
package/src/Dialog/interface.ts
CHANGED
|
@@ -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;
|
package/src/style/size.css
CHANGED