@tiny-design/react 1.4.0 → 1.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/es/alert/alert.js +2 -2
- package/es/alert/alert.js.map +1 -1
- package/es/alert/style/_index.scss +8 -4
- package/es/alert/style/index.css +7 -4
- package/es/auto-complete/style/_index.scss +4 -5
- package/es/auto-complete/style/index.css +4 -5
- package/es/breadcrumb/style/index.css +1 -1
- package/es/breadcrumb/types.d.ts +1 -1
- package/es/button/style/index.css +14 -14
- package/es/calendar/style/_index.scss +9 -9
- package/es/calendar/style/index.css +9 -9
- package/es/card/style/index.css +3 -3
- package/es/cascader/style/_index.scss +9 -9
- package/es/cascader/style/index.css +9 -9
- package/es/checkbox/style/_index.scss +9 -12
- package/es/checkbox/style/index.css +9 -12
- package/es/collapse/collapse-panel.js +20 -20
- package/es/collapse/collapse-panel.js.map +1 -1
- package/es/collapse/style/_index.scss +27 -10
- package/es/collapse/style/index.css +27 -12
- package/es/color-picker/style/_index.scss +7 -7
- package/es/color-picker/style/index.css +4 -4
- package/es/date-picker/style/_index.scss +1 -1
- package/es/date-picker/style/index.css +1 -1
- package/es/descriptions/style/_index.scss +5 -6
- package/es/descriptions/style/index.css +6 -6
- package/es/empty/style/_index.scss +1 -1
- package/es/empty/style/index.css +1 -1
- package/es/form/style/_index.scss +5 -6
- package/es/form/style/index.css +4 -4
- package/es/index.d.ts +2 -1
- package/es/index.js +2 -1
- package/es/input/style/_index.scss +5 -4
- package/es/input/style/_mixin.scss +1 -1
- package/es/input/style/index.css +21 -20
- package/es/input-number/input-number.js +11 -5
- package/es/input-number/input-number.js.map +1 -1
- package/es/input-number/style/_index.scss +5 -3
- package/es/input-number/style/index.css +13 -11
- package/es/input-otp/input-otp.js +5 -7
- package/es/input-otp/input-otp.js.map +1 -1
- package/es/input-otp/style/_index.scss +1 -1
- package/es/input-otp/style/index.css +8 -8
- package/es/list/list.js +2 -2
- package/es/list/list.js.map +1 -1
- package/es/list/style/_index.scss +3 -3
- package/es/list/style/index.css +3 -3
- package/es/marquee/index.d.ts +1 -0
- package/es/marquee/index.js +9 -0
- package/es/marquee/index.js.map +1 -0
- package/es/marquee/marquee.d.ts +8 -0
- package/es/marquee/marquee.js +42 -0
- package/es/marquee/marquee.js.map +1 -0
- package/es/marquee/style/_index.scss +77 -0
- package/es/marquee/style/index.css +64 -0
- package/es/marquee/style/index.d.ts +1 -0
- package/es/marquee/style/index.js +1 -0
- package/es/marquee/types.d.ts +21 -0
- package/es/native-select/style/index.css +4 -4
- package/es/notification/style/_index.scss +1 -1
- package/es/notification/style/index.css +1 -1
- package/es/pop-confirm/style/_index.scss +1 -1
- package/es/pop-confirm/style/index.css +1 -1
- package/es/popup/style/_index.scss +9 -9
- package/es/popup/style/index.css +10 -10
- package/es/radio/style/_index.scss +5 -8
- package/es/radio/style/index.css +5 -8
- package/es/segmented/style/_index.scss +10 -10
- package/es/segmented/style/index.css +9 -9
- package/es/select/style/_index.scss +16 -17
- package/es/select/style/index.css +15 -16
- package/es/speed-dial/style/_index.scss +2 -2
- package/es/speed-dial/style/index.css +2 -2
- package/es/statistic/style/_index.scss +2 -2
- package/es/statistic/style/index.css +2 -2
- package/es/strength-indicator/strength-indicator.js +4 -3
- package/es/strength-indicator/strength-indicator.js.map +1 -1
- package/es/style/_component.scss +1 -0
- package/es/style/base.css +57 -0
- package/es/table/style/_index.scss +6 -6
- package/es/table/style/index.css +5 -5
- package/es/tag/style/index.css +1 -1
- package/es/tag/tag.js +5 -5
- package/es/tag/tag.js.map +1 -1
- package/es/textarea/style/index.css +2 -2
- package/es/time-picker/style/_index.scss +1 -1
- package/es/time-picker/style/index.css +1 -1
- package/es/timeline/style/_index.scss +3 -3
- package/es/timeline/style/index.css +3 -3
- package/es/tooltip/style/index.css +1 -1
- package/es/transfer/style/_index.scss +4 -4
- package/es/transfer/style/index.css +4 -4
- package/es/tree/style/index.css +1 -1
- package/es/typography/style/_index.scss +2 -2
- package/es/typography/style/index.css +2 -2
- package/es/upload/style/_index.scss +4 -4
- package/es/upload/style/index.css +4 -4
- package/es/waterfall/waterfall.js +7 -2
- package/es/waterfall/waterfall.js.map +1 -1
- package/lib/alert/alert.js +2 -2
- package/lib/alert/alert.js.map +1 -1
- package/lib/alert/style/_index.scss +8 -4
- package/lib/alert/style/index.css +7 -4
- package/lib/auto-complete/style/_index.scss +4 -5
- package/lib/auto-complete/style/index.css +4 -5
- package/lib/breadcrumb/style/index.css +1 -1
- package/lib/breadcrumb/types.d.ts +1 -1
- package/lib/button/style/index.css +14 -14
- package/lib/calendar/style/_index.scss +9 -9
- package/lib/calendar/style/index.css +9 -9
- package/lib/card/style/index.css +3 -3
- package/lib/cascader/style/_index.scss +9 -9
- package/lib/cascader/style/index.css +9 -9
- package/lib/checkbox/style/_index.scss +9 -12
- package/lib/checkbox/style/index.css +9 -12
- package/lib/collapse/collapse-panel.js +20 -20
- package/lib/collapse/collapse-panel.js.map +1 -1
- package/lib/collapse/style/_index.scss +27 -10
- package/lib/collapse/style/index.css +27 -12
- package/lib/color-picker/style/_index.scss +7 -7
- package/lib/color-picker/style/index.css +4 -4
- package/lib/date-picker/style/_index.scss +1 -1
- package/lib/date-picker/style/index.css +1 -1
- package/lib/descriptions/style/_index.scss +5 -6
- package/lib/descriptions/style/index.css +6 -6
- package/lib/empty/style/_index.scss +1 -1
- package/lib/empty/style/index.css +1 -1
- package/lib/form/style/_index.scss +5 -6
- package/lib/form/style/index.css +4 -4
- package/lib/index.d.ts +2 -1
- package/lib/index.js +76 -74
- package/lib/input/style/_index.scss +5 -4
- package/lib/input/style/_mixin.scss +1 -1
- package/lib/input/style/index.css +21 -20
- package/lib/input-number/input-number.js +11 -5
- package/lib/input-number/input-number.js.map +1 -1
- package/lib/input-number/style/_index.scss +5 -3
- package/lib/input-number/style/index.css +13 -11
- package/lib/input-otp/input-otp.js +5 -7
- package/lib/input-otp/input-otp.js.map +1 -1
- package/lib/input-otp/style/_index.scss +1 -1
- package/lib/input-otp/style/index.css +8 -8
- package/lib/list/list.js +2 -2
- package/lib/list/list.js.map +1 -1
- package/lib/list/style/_index.scss +3 -3
- package/lib/list/style/index.css +3 -3
- package/lib/marquee/index.js +8 -0
- package/lib/marquee/index.js.map +1 -0
- package/lib/marquee/marquee.d.ts +8 -0
- package/lib/marquee/marquee.js +45 -0
- package/lib/marquee/marquee.js.map +1 -0
- package/lib/marquee/style/_index.scss +77 -0
- package/lib/marquee/style/index.css +64 -0
- package/lib/marquee/style/index.d.ts +1 -0
- package/lib/marquee/style/index.js +1 -0
- package/lib/marquee/types.d.ts +21 -0
- package/lib/native-select/style/index.css +4 -4
- package/lib/notification/style/_index.scss +1 -1
- package/lib/notification/style/index.css +1 -1
- package/lib/pop-confirm/style/_index.scss +1 -1
- package/lib/pop-confirm/style/index.css +1 -1
- package/lib/popup/style/_index.scss +9 -9
- package/lib/popup/style/index.css +10 -10
- package/lib/radio/style/_index.scss +5 -8
- package/lib/radio/style/index.css +5 -8
- package/lib/segmented/style/_index.scss +10 -10
- package/lib/segmented/style/index.css +9 -9
- package/lib/select/style/_index.scss +16 -17
- package/lib/select/style/index.css +15 -16
- package/lib/speed-dial/style/_index.scss +2 -2
- package/lib/speed-dial/style/index.css +2 -2
- package/lib/statistic/style/_index.scss +2 -2
- package/lib/statistic/style/index.css +2 -2
- package/lib/strength-indicator/strength-indicator.js +4 -3
- package/lib/strength-indicator/strength-indicator.js.map +1 -1
- package/lib/style/_component.scss +1 -0
- package/lib/style/base.css +57 -0
- package/lib/table/style/_index.scss +6 -6
- package/lib/table/style/index.css +5 -5
- package/lib/tag/style/index.css +1 -1
- package/lib/tag/tag.js +5 -5
- package/lib/tag/tag.js.map +1 -1
- package/lib/textarea/style/index.css +2 -2
- package/lib/time-picker/style/_index.scss +1 -1
- package/lib/time-picker/style/index.css +1 -1
- package/lib/timeline/style/_index.scss +3 -3
- package/lib/timeline/style/index.css +3 -3
- package/lib/tooltip/style/index.css +1 -1
- package/lib/transfer/style/_index.scss +4 -4
- package/lib/transfer/style/index.css +4 -4
- package/lib/tree/style/index.css +1 -1
- package/lib/typography/style/_index.scss +2 -2
- package/lib/typography/style/index.css +2 -2
- package/lib/upload/style/_index.scss +4 -4
- package/lib/upload/style/index.css +4 -4
- package/lib/waterfall/waterfall.js +7 -2
- package/lib/waterfall/waterfall.js.map +1 -1
- package/package.json +3 -3
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
position: relative;
|
|
5
5
|
display: inline-flex;
|
|
6
6
|
align-items: center;
|
|
7
|
-
font-size:
|
|
7
|
+
font-size: var(--ty-font-size-base);
|
|
8
8
|
margin-right: 8px;
|
|
9
9
|
color: var(--ty-color-text);
|
|
10
10
|
box-sizing: border-box;
|
|
@@ -17,10 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
&__native {
|
|
19
19
|
position: absolute;
|
|
20
|
-
|
|
21
|
-
right: 0;
|
|
22
|
-
bottom: 0;
|
|
23
|
-
left: 0;
|
|
20
|
+
inset: 0;
|
|
24
21
|
width: 100%;
|
|
25
22
|
height: 100%;
|
|
26
23
|
z-index: 1;
|
|
@@ -43,7 +40,7 @@
|
|
|
43
40
|
line-height: 1;
|
|
44
41
|
vertical-align: middle;
|
|
45
42
|
|
|
46
|
-
|
|
43
|
+
&::before {
|
|
47
44
|
content: '';
|
|
48
45
|
position: absolute;
|
|
49
46
|
display: block;
|
|
@@ -56,7 +53,7 @@
|
|
|
56
53
|
transform: scale(0);
|
|
57
54
|
}
|
|
58
55
|
|
|
59
|
-
|
|
56
|
+
&::after {
|
|
60
57
|
transform: rotate(45deg) scaleY(1);
|
|
61
58
|
pointer-events: none;
|
|
62
59
|
box-sizing: content-box;
|
|
@@ -83,12 +80,12 @@
|
|
|
83
80
|
background-color: var(--ty-color-primary);
|
|
84
81
|
border-color: var(--ty-color-primary);
|
|
85
82
|
|
|
86
|
-
|
|
83
|
+
&::after {
|
|
87
84
|
content: '';
|
|
88
85
|
transform: rotate(45deg) scale(1);
|
|
89
86
|
}
|
|
90
87
|
|
|
91
|
-
|
|
88
|
+
&::before {
|
|
92
89
|
transform: scale(0);
|
|
93
90
|
}
|
|
94
91
|
}
|
|
@@ -101,11 +98,11 @@
|
|
|
101
98
|
background-color: var(--ty-color-primary);
|
|
102
99
|
border-color: var(--ty-color-primary);
|
|
103
100
|
|
|
104
|
-
|
|
101
|
+
&::before {
|
|
105
102
|
transform: scale(1);
|
|
106
103
|
}
|
|
107
104
|
|
|
108
|
-
|
|
105
|
+
&::after {
|
|
109
106
|
transform: rotate(45deg) scale(0);
|
|
110
107
|
}
|
|
111
108
|
}
|
|
@@ -122,7 +119,7 @@
|
|
|
122
119
|
background-color: var(--ty-checkbox-disabled-bg);
|
|
123
120
|
border-color: var(--ty-checkbox-border) !important;
|
|
124
121
|
|
|
125
|
-
|
|
122
|
+
&::after {
|
|
126
123
|
border-color: var(--ty-color-text-quaternary);
|
|
127
124
|
}
|
|
128
125
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
position: relative;
|
|
3
3
|
display: inline-flex;
|
|
4
4
|
align-items: center;
|
|
5
|
-
font-size:
|
|
5
|
+
font-size: var(--ty-font-size-base);
|
|
6
6
|
margin-right: 8px;
|
|
7
7
|
color: var(--ty-color-text);
|
|
8
8
|
box-sizing: border-box;
|
|
@@ -12,10 +12,7 @@
|
|
|
12
12
|
}
|
|
13
13
|
.ty-checkbox__native {
|
|
14
14
|
position: absolute;
|
|
15
|
-
|
|
16
|
-
right: 0;
|
|
17
|
-
bottom: 0;
|
|
18
|
-
left: 0;
|
|
15
|
+
inset: 0;
|
|
19
16
|
width: 100%;
|
|
20
17
|
height: 100%;
|
|
21
18
|
z-index: 1;
|
|
@@ -37,7 +34,7 @@
|
|
|
37
34
|
line-height: 1;
|
|
38
35
|
vertical-align: middle;
|
|
39
36
|
}
|
|
40
|
-
.ty-checkbox__inner
|
|
37
|
+
.ty-checkbox__inner::before {
|
|
41
38
|
content: "";
|
|
42
39
|
position: absolute;
|
|
43
40
|
display: block;
|
|
@@ -49,7 +46,7 @@
|
|
|
49
46
|
transition: all 200ms;
|
|
50
47
|
transform: scale(0);
|
|
51
48
|
}
|
|
52
|
-
.ty-checkbox__inner
|
|
49
|
+
.ty-checkbox__inner::after {
|
|
53
50
|
transform: rotate(45deg) scaleY(1);
|
|
54
51
|
pointer-events: none;
|
|
55
52
|
box-sizing: content-box;
|
|
@@ -71,21 +68,21 @@
|
|
|
71
68
|
background-color: var(--ty-color-primary);
|
|
72
69
|
border-color: var(--ty-color-primary);
|
|
73
70
|
}
|
|
74
|
-
.ty-checkbox_checked .ty-checkbox__inner
|
|
71
|
+
.ty-checkbox_checked .ty-checkbox__inner::after {
|
|
75
72
|
content: "";
|
|
76
73
|
transform: rotate(45deg) scale(1);
|
|
77
74
|
}
|
|
78
|
-
.ty-checkbox_checked .ty-checkbox__inner
|
|
75
|
+
.ty-checkbox_checked .ty-checkbox__inner::before {
|
|
79
76
|
transform: scale(0);
|
|
80
77
|
}
|
|
81
78
|
.ty-checkbox_indeterminate .ty-checkbox__inner {
|
|
82
79
|
background-color: var(--ty-color-primary);
|
|
83
80
|
border-color: var(--ty-color-primary);
|
|
84
81
|
}
|
|
85
|
-
.ty-checkbox_indeterminate .ty-checkbox__inner
|
|
82
|
+
.ty-checkbox_indeterminate .ty-checkbox__inner::before {
|
|
86
83
|
transform: scale(1);
|
|
87
84
|
}
|
|
88
|
-
.ty-checkbox_indeterminate .ty-checkbox__inner
|
|
85
|
+
.ty-checkbox_indeterminate .ty-checkbox__inner::after {
|
|
89
86
|
transform: rotate(45deg) scale(0);
|
|
90
87
|
}
|
|
91
88
|
.ty-checkbox_disabled .ty-checkbox__native {
|
|
@@ -95,7 +92,7 @@
|
|
|
95
92
|
background-color: var(--ty-checkbox-disabled-bg);
|
|
96
93
|
border-color: var(--ty-checkbox-border) !important;
|
|
97
94
|
}
|
|
98
|
-
.ty-checkbox_disabled .ty-checkbox__inner
|
|
95
|
+
.ty-checkbox_disabled .ty-checkbox__inner::after {
|
|
99
96
|
border-color: var(--ty-color-text-quaternary);
|
|
100
97
|
}
|
|
101
98
|
.ty-checkbox_disabled .ty-checkbox__inner + span {
|
|
@@ -49,31 +49,31 @@ const CollapsePanel = (props) => {
|
|
|
49
49
|
const renderHeader = () => {
|
|
50
50
|
const headerCls = (0, classnames.default)(`${prefixCls}__header`, { [`${prefixCls}__header_disabled`]: disabled });
|
|
51
51
|
const arrowCls = (0, classnames.default)(`${prefixCls}__arrow`, { [`${prefixCls}__arrow_active`]: active });
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
id: headerId,
|
|
52
|
+
const hasExtra = deletable || extra;
|
|
53
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
55
54
|
className: headerCls,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
55
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
56
|
+
type: "button",
|
|
57
|
+
id: headerId,
|
|
58
|
+
className: `${prefixCls}__toggle`,
|
|
59
|
+
onClick: headerOnClick,
|
|
60
|
+
"aria-expanded": active,
|
|
61
|
+
"aria-controls": panelId,
|
|
62
|
+
"aria-disabled": disabled || void 0,
|
|
63
|
+
children: [showArrow && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components.ArrowDown, {
|
|
62
64
|
size: 10,
|
|
63
65
|
className: arrowCls
|
|
64
|
-
}),
|
|
65
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
66
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
66
67
|
className: `${prefixCls}__title`,
|
|
67
68
|
children: richNode(header, active)
|
|
68
|
-
})
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
]
|
|
69
|
+
})]
|
|
70
|
+
}), hasExtra && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
71
|
+
className: `${prefixCls}__extra`,
|
|
72
|
+
children: deletable ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
73
|
+
onClick: removeItem,
|
|
74
|
+
children: "✕"
|
|
75
|
+
}) : richNode(extra, active)
|
|
76
|
+
})]
|
|
77
77
|
});
|
|
78
78
|
};
|
|
79
79
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collapse-panel.js","names":["ConfigContext","CollapseContext","getPrefixCls","ArrowDown","CollapseTransition"],"sources":["../../src/collapse/collapse-panel.tsx"],"sourcesContent":["import React, { useContext, useId, useRef } from 'react';\nimport classNames from 'classnames';\nimport { ConfigContext } from '../config-provider/config-context';\nimport { getPrefixCls } from '../_utils/general';\nimport { CollapsePanelProps } from './types';\nimport { ArrowDown } from '../_utils/components';\nimport CollapseTransition from '../collapse-transition';\nimport { CollapseContext } from './collapse-context';\n\n/**\n * Allow to parse active status to a node\n * @param node\n * @param isActive\n */\nconst richNode = (node: React.ReactNode | ((isActive: boolean) => React.ReactNode), isActive: boolean) => {\n return typeof node === 'function' ? node(isActive) : node;\n};\n\nconst CollapsePanel = (props: CollapsePanelProps): React.ReactElement => {\n const {\n showArrow = true,\n itemKey,\n header,\n disabled,\n extra,\n deletable,\n onHeaderOnClick,\n className,\n style,\n children,\n prefixCls: customisedCls,\n } = props;\n const itemRef = useRef<HTMLDivElement | null>(null);\n const panelId = useId();\n const headerId = useId();\n const configContext = useContext(ConfigContext);\n const { activeKeys, onItemClick } = useContext(CollapseContext);\n const prefixCls = getPrefixCls('collapse-item', configContext.prefixCls, customisedCls);\n const active = activeKeys.includes(itemKey);\n const cls = classNames(prefixCls, className, {\n [`${prefixCls}_active`]: active,\n });\n\n const headerOnClick = (e: React.MouseEvent) => {\n if (!disabled) {\n onHeaderOnClick && onHeaderOnClick(e);\n onItemClick && onItemClick(itemKey);\n }\n };\n\n /**\n * Remove a item from collapse only the header is enabled\n * @param e\n * @private\n */\n const removeItem = (e: React.MouseEvent<HTMLSpanElement>) => {\n e.stopPropagation();\n if (!disabled) {\n const node = itemRef.current;\n node && node.parentNode?.removeChild(node);\n }\n };\n\n const renderHeader = () => {\n const headerCls = classNames(`${prefixCls}__header`, {\n [`${prefixCls}__header_disabled`]: disabled,\n });\n const arrowCls = classNames(`${prefixCls}__arrow`, {\n [`${prefixCls}__arrow_active`]: active,\n });\n\n return (\n <button\n
|
|
1
|
+
{"version":3,"file":"collapse-panel.js","names":["ConfigContext","CollapseContext","getPrefixCls","ArrowDown","CollapseTransition"],"sources":["../../src/collapse/collapse-panel.tsx"],"sourcesContent":["import React, { useContext, useId, useRef } from 'react';\nimport classNames from 'classnames';\nimport { ConfigContext } from '../config-provider/config-context';\nimport { getPrefixCls } from '../_utils/general';\nimport { CollapsePanelProps } from './types';\nimport { ArrowDown } from '../_utils/components';\nimport CollapseTransition from '../collapse-transition';\nimport { CollapseContext } from './collapse-context';\n\n/**\n * Allow to parse active status to a node\n * @param node\n * @param isActive\n */\nconst richNode = (node: React.ReactNode | ((isActive: boolean) => React.ReactNode), isActive: boolean) => {\n return typeof node === 'function' ? node(isActive) : node;\n};\n\nconst CollapsePanel = (props: CollapsePanelProps): React.ReactElement => {\n const {\n showArrow = true,\n itemKey,\n header,\n disabled,\n extra,\n deletable,\n onHeaderOnClick,\n className,\n style,\n children,\n prefixCls: customisedCls,\n } = props;\n const itemRef = useRef<HTMLDivElement | null>(null);\n const panelId = useId();\n const headerId = useId();\n const configContext = useContext(ConfigContext);\n const { activeKeys, onItemClick } = useContext(CollapseContext);\n const prefixCls = getPrefixCls('collapse-item', configContext.prefixCls, customisedCls);\n const active = activeKeys.includes(itemKey);\n const cls = classNames(prefixCls, className, {\n [`${prefixCls}_active`]: active,\n });\n\n const headerOnClick = (e: React.MouseEvent) => {\n if (!disabled) {\n onHeaderOnClick && onHeaderOnClick(e);\n onItemClick && onItemClick(itemKey);\n }\n };\n\n /**\n * Remove a item from collapse only the header is enabled\n * @param e\n * @private\n */\n const removeItem = (e: React.MouseEvent<HTMLSpanElement>) => {\n e.stopPropagation();\n if (!disabled) {\n const node = itemRef.current;\n node && node.parentNode?.removeChild(node);\n }\n };\n\n const renderHeader = () => {\n const headerCls = classNames(`${prefixCls}__header`, {\n [`${prefixCls}__header_disabled`]: disabled,\n });\n const arrowCls = classNames(`${prefixCls}__arrow`, {\n [`${prefixCls}__arrow_active`]: active,\n });\n\n const hasExtra = deletable || extra;\n\n return (\n <div className={headerCls}>\n <button\n type=\"button\"\n id={headerId}\n className={`${prefixCls}__toggle`}\n onClick={headerOnClick}\n aria-expanded={active}\n aria-controls={panelId}\n aria-disabled={disabled || undefined}>\n {showArrow && <ArrowDown size={10} className={arrowCls} />}\n <div className={`${prefixCls}__title`}>{richNode(header, active)}</div>\n </button>\n {hasExtra && (\n <div className={`${prefixCls}__extra`}>\n {deletable ? <span onClick={removeItem}>✕</span> : richNode(extra, active)}\n </div>\n )}\n </div>\n );\n };\n\n return (\n <div className={cls} style={style} ref={itemRef}>\n {renderHeader()}\n <CollapseTransition isShow={active}>\n <div className={`${prefixCls}__content`} id={panelId} role=\"region\" aria-labelledby={headerId}>{richNode(children, active)}</div>\n </CollapseTransition>\n </div>\n );\n};\n\nCollapsePanel.displayName = 'CollapsePanel';\n\nexport default CollapsePanel;\n"],"mappings":";;;;;;;;;;;;;;;;;AAcA,MAAM,YAAY,MAAkE,aAAsB;AACxG,QAAO,OAAO,SAAS,aAAa,KAAK,SAAS,GAAG;;AAGvD,MAAM,iBAAiB,UAAkD;CACvE,MAAM,EACJ,YAAY,MACZ,SACA,QACA,UACA,OACA,WACA,iBACA,WACA,OACA,UACA,WAAW,kBACT;CACJ,MAAM,WAAA,GAAA,MAAA,QAAwC,KAAK;CACnD,MAAM,WAAA,GAAA,MAAA,QAAiB;CACvB,MAAM,YAAA,GAAA,MAAA,QAAkB;CACxB,MAAM,iBAAA,GAAA,MAAA,YAA2BA,uBAAAA,cAAc;CAC/C,MAAM,EAAE,YAAY,iBAAA,GAAA,MAAA,YAA2BC,yBAAAA,gBAAgB;CAC/D,MAAM,YAAYC,gBAAAA,aAAa,iBAAiB,cAAc,WAAW,cAAc;CACvF,MAAM,SAAS,WAAW,SAAS,QAAQ;CAC3C,MAAM,OAAA,GAAA,WAAA,SAAiB,WAAW,WAAW,GAC1C,GAAG,UAAU,WAAW,QAC1B,CAAC;CAEF,MAAM,iBAAiB,MAAwB;AAC7C,MAAI,CAAC,UAAU;AACb,sBAAmB,gBAAgB,EAAE;AACrC,kBAAe,YAAY,QAAQ;;;;;;;;CASvC,MAAM,cAAc,MAAyC;AAC3D,IAAE,iBAAiB;AACnB,MAAI,CAAC,UAAU;GACb,MAAM,OAAO,QAAQ;AACrB,WAAQ,KAAK,YAAY,YAAY,KAAK;;;CAI9C,MAAM,qBAAqB;EACzB,MAAM,aAAA,GAAA,WAAA,SAAuB,GAAG,UAAU,WAAW,GAClD,GAAG,UAAU,qBAAqB,UACpC,CAAC;EACF,MAAM,YAAA,GAAA,WAAA,SAAsB,GAAG,UAAU,UAAU,GAChD,GAAG,UAAU,kBAAkB,QACjC,CAAC;EAEF,MAAM,WAAW,aAAa;AAE9B,SACE,iBAAA,GAAA,kBAAA,MAAC,OAAD;GAAK,WAAW;aAAhB,CACE,iBAAA,GAAA,kBAAA,MAAC,UAAD;IACE,MAAK;IACL,IAAI;IACJ,WAAW,GAAG,UAAU;IACxB,SAAS;IACT,iBAAe;IACf,iBAAe;IACf,iBAAe,YAAY,KAAA;cAP7B,CAQG,aAAa,iBAAA,GAAA,kBAAA,KAACC,mBAAAA,WAAD;KAAW,MAAM;KAAI,WAAW;KAAY,CAAA,EAC1D,iBAAA,GAAA,kBAAA,KAAC,OAAD;KAAK,WAAW,GAAG,UAAU;eAAW,SAAS,QAAQ,OAAO;KAAO,CAAA,CAChE;OACR,YACC,iBAAA,GAAA,kBAAA,KAAC,OAAD;IAAK,WAAW,GAAG,UAAU;cAC1B,YAAY,iBAAA,GAAA,kBAAA,KAAC,QAAD;KAAM,SAAS;eAAY;KAAQ,CAAA,GAAG,SAAS,OAAO,OAAO;IACtE,CAAA,CAEJ;;;AAIV,QACE,iBAAA,GAAA,kBAAA,MAAC,OAAD;EAAK,WAAW;EAAY;EAAO,KAAK;YAAxC,CACG,cAAc,EACf,iBAAA,GAAA,kBAAA,KAACC,cAAAA,SAAD;GAAoB,QAAQ;aAC1B,iBAAA,GAAA,kBAAA,KAAC,OAAD;IAAK,WAAW,GAAG,UAAU;IAAY,IAAI;IAAS,MAAK;IAAS,mBAAiB;cAAW,SAAS,UAAU,OAAO;IAAO,CAAA;GAC9G,CAAA,CACjB;;;AAIV,cAAc,cAAc"}
|
|
@@ -27,17 +27,9 @@
|
|
|
27
27
|
align-items: center;
|
|
28
28
|
box-sizing: border-box;
|
|
29
29
|
position: relative;
|
|
30
|
-
padding: 12px 16px;
|
|
31
30
|
color: var(--ty-color-text);
|
|
32
31
|
line-height: 22px;
|
|
33
|
-
cursor: pointer;
|
|
34
32
|
transition: all 300ms;
|
|
35
|
-
background: none;
|
|
36
|
-
border: none;
|
|
37
|
-
width: 100%;
|
|
38
|
-
text-align: left;
|
|
39
|
-
font-size: inherit;
|
|
40
|
-
font-family: inherit;
|
|
41
33
|
|
|
42
34
|
&:hover {
|
|
43
35
|
background-color: var(--ty-collapse-header-hover-bg);
|
|
@@ -49,11 +41,33 @@
|
|
|
49
41
|
}
|
|
50
42
|
}
|
|
51
43
|
|
|
44
|
+
&__toggle {
|
|
45
|
+
display: flex;
|
|
46
|
+
align-items: center;
|
|
47
|
+
flex: 1;
|
|
48
|
+
min-width: 0;
|
|
49
|
+
box-sizing: border-box;
|
|
50
|
+
padding: 12px 16px;
|
|
51
|
+
cursor: pointer;
|
|
52
|
+
background: none;
|
|
53
|
+
border: none;
|
|
54
|
+
width: 100%;
|
|
55
|
+
text-align: left;
|
|
56
|
+
font-size: inherit;
|
|
57
|
+
font-family: inherit;
|
|
58
|
+
color: inherit;
|
|
59
|
+
line-height: inherit;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&__header_disabled &__toggle {
|
|
63
|
+
cursor: not-allowed;
|
|
64
|
+
}
|
|
65
|
+
|
|
52
66
|
&__arrow {
|
|
53
67
|
margin-right: 10px;
|
|
54
68
|
transform: rotate(-90deg);
|
|
55
69
|
text-align: center;
|
|
56
|
-
color:
|
|
70
|
+
color: currentcolor;
|
|
57
71
|
transition: all 300ms;
|
|
58
72
|
|
|
59
73
|
&_active {
|
|
@@ -66,9 +80,12 @@
|
|
|
66
80
|
}
|
|
67
81
|
|
|
68
82
|
&__extra {
|
|
83
|
+
display: flex;
|
|
84
|
+
align-items: center;
|
|
69
85
|
color: inherit;
|
|
70
86
|
font-size: 11px;
|
|
71
|
-
|
|
87
|
+
padding-right: 16px;
|
|
88
|
+
margin-left: auto;
|
|
72
89
|
}
|
|
73
90
|
|
|
74
91
|
&__content {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.ty-collapse {
|
|
2
2
|
box-sizing: border-box;
|
|
3
|
-
border-radius:
|
|
3
|
+
border-radius: var(--ty-border-radius);
|
|
4
4
|
color: var(--ty-color-text);
|
|
5
5
|
font-size: 14px;
|
|
6
6
|
border: 1px solid var(--ty-collapse-border);
|
|
@@ -13,40 +13,52 @@
|
|
|
13
13
|
border-bottom: 1px solid var(--ty-collapse-border);
|
|
14
14
|
}
|
|
15
15
|
.ty-collapse-item:last-child {
|
|
16
|
-
border-radius: 0 0
|
|
16
|
+
border-radius: 0 0 var(--ty-border-radius) var(--ty-border-radius);
|
|
17
17
|
}
|
|
18
18
|
.ty-collapse-item:last-child .ty-collapse-item__content {
|
|
19
|
-
border-radius: 0 0
|
|
19
|
+
border-radius: 0 0 var(--ty-border-radius) var(--ty-border-radius);
|
|
20
20
|
}
|
|
21
21
|
.ty-collapse-item__header {
|
|
22
22
|
display: flex;
|
|
23
23
|
align-items: center;
|
|
24
24
|
box-sizing: border-box;
|
|
25
25
|
position: relative;
|
|
26
|
-
padding: 12px 16px;
|
|
27
26
|
color: var(--ty-color-text);
|
|
28
27
|
line-height: 22px;
|
|
29
|
-
cursor: pointer;
|
|
30
28
|
transition: all 300ms;
|
|
29
|
+
}
|
|
30
|
+
.ty-collapse-item__header:hover {
|
|
31
|
+
background-color: var(--ty-collapse-header-hover-bg);
|
|
32
|
+
}
|
|
33
|
+
.ty-collapse-item__header_disabled {
|
|
34
|
+
color: var(--ty-color-text-quaternary);
|
|
35
|
+
cursor: not-allowed;
|
|
36
|
+
}
|
|
37
|
+
.ty-collapse-item__toggle {
|
|
38
|
+
display: flex;
|
|
39
|
+
align-items: center;
|
|
40
|
+
flex: 1;
|
|
41
|
+
min-width: 0;
|
|
42
|
+
box-sizing: border-box;
|
|
43
|
+
padding: 12px 16px;
|
|
44
|
+
cursor: pointer;
|
|
31
45
|
background: none;
|
|
32
46
|
border: none;
|
|
33
47
|
width: 100%;
|
|
34
48
|
text-align: left;
|
|
35
49
|
font-size: inherit;
|
|
36
50
|
font-family: inherit;
|
|
51
|
+
color: inherit;
|
|
52
|
+
line-height: inherit;
|
|
37
53
|
}
|
|
38
|
-
.ty-collapse-
|
|
39
|
-
background-color: var(--ty-collapse-header-hover-bg);
|
|
40
|
-
}
|
|
41
|
-
.ty-collapse-item__header_disabled {
|
|
42
|
-
color: var(--ty-color-text-quaternary);
|
|
54
|
+
.ty-collapse-item__header_disabled .ty-collapse-item__toggle {
|
|
43
55
|
cursor: not-allowed;
|
|
44
56
|
}
|
|
45
57
|
.ty-collapse-item__arrow {
|
|
46
58
|
margin-right: 10px;
|
|
47
59
|
transform: rotate(-90deg);
|
|
48
60
|
text-align: center;
|
|
49
|
-
color:
|
|
61
|
+
color: currentcolor;
|
|
50
62
|
transition: all 300ms;
|
|
51
63
|
}
|
|
52
64
|
.ty-collapse-item__arrow_active {
|
|
@@ -56,9 +68,12 @@
|
|
|
56
68
|
flex: 1;
|
|
57
69
|
}
|
|
58
70
|
.ty-collapse-item__extra {
|
|
71
|
+
display: flex;
|
|
72
|
+
align-items: center;
|
|
59
73
|
color: inherit;
|
|
60
74
|
font-size: 11px;
|
|
61
|
-
|
|
75
|
+
padding-right: 16px;
|
|
76
|
+
margin-left: auto;
|
|
62
77
|
}
|
|
63
78
|
.ty-collapse-item__content {
|
|
64
79
|
overflow: hidden;
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
&__swatch {
|
|
24
24
|
width: 32px;
|
|
25
25
|
height: 32px;
|
|
26
|
-
border-radius:
|
|
26
|
+
border-radius: var(--ty-border-radius);
|
|
27
27
|
border: 1px solid var(--ty-color-picker-border, #{$gray-300});
|
|
28
28
|
padding: 3px;
|
|
29
29
|
cursor: pointer;
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
padding: 12px;
|
|
40
40
|
background: var(--ty-color-picker-bg, #fff);
|
|
41
41
|
border-radius: 8px;
|
|
42
|
-
box-shadow: 0 6px 16px 0
|
|
42
|
+
box-shadow: 0 6px 16px 0 rgb(0 0 0 / 8%), 0 3px 6px -4px rgb(0 0 0 / 12%), 0 9px 28px 8px rgb(0 0 0 / 5%);
|
|
43
43
|
width: 240px;
|
|
44
44
|
}
|
|
45
45
|
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
height: 12px;
|
|
71
71
|
border-radius: 50%;
|
|
72
72
|
border: 2px solid #fff;
|
|
73
|
-
box-shadow: 0 0 2px
|
|
73
|
+
box-shadow: 0 0 2px rgb(0 0 0 / 30%);
|
|
74
74
|
transform: translate(-50%, -50%);
|
|
75
75
|
pointer-events: none;
|
|
76
76
|
}
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
height: 14px;
|
|
129
129
|
border-radius: 50%;
|
|
130
130
|
border: 2px solid #fff;
|
|
131
|
-
box-shadow: 0 0 2px
|
|
131
|
+
box-shadow: 0 0 2px rgb(0 0 0 / 30%);
|
|
132
132
|
transform: translate(-50%, -50%);
|
|
133
133
|
pointer-events: none;
|
|
134
134
|
background: transparent;
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
&__format-btn {
|
|
145
145
|
border: 1px solid var(--ty-color-picker-border, #{$gray-300});
|
|
146
146
|
background: transparent;
|
|
147
|
-
border-radius:
|
|
147
|
+
border-radius: var(--ty-border-radius);
|
|
148
148
|
padding: 2px 6px;
|
|
149
149
|
cursor: pointer;
|
|
150
150
|
font-size: 12px;
|
|
@@ -159,7 +159,7 @@
|
|
|
159
159
|
&__hex-input {
|
|
160
160
|
flex: 1;
|
|
161
161
|
border: 1px solid var(--ty-color-picker-border, #{$gray-300});
|
|
162
|
-
border-radius:
|
|
162
|
+
border-radius: var(--ty-border-radius);
|
|
163
163
|
padding: 2px 6px;
|
|
164
164
|
font-size: 12px;
|
|
165
165
|
font-family: $font-family-monospace;
|
|
@@ -184,7 +184,7 @@
|
|
|
184
184
|
&__preset {
|
|
185
185
|
width: 20px;
|
|
186
186
|
height: 20px;
|
|
187
|
-
border-radius:
|
|
187
|
+
border-radius: var(--ty-border-radius);
|
|
188
188
|
cursor: pointer;
|
|
189
189
|
border: 1px solid var(--ty-color-picker-border, #{$gray-300});
|
|
190
190
|
transition: transform 0.15s;
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
.ty-color-picker__swatch {
|
|
19
19
|
width: 32px;
|
|
20
20
|
height: 32px;
|
|
21
|
-
border-radius:
|
|
21
|
+
border-radius: var(--ty-border-radius);
|
|
22
22
|
border: 1px solid var(--ty-color-picker-border, #dee2e6);
|
|
23
23
|
padding: 3px;
|
|
24
24
|
cursor: pointer;
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
.ty-color-picker__format-btn {
|
|
125
125
|
border: 1px solid var(--ty-color-picker-border, #dee2e6);
|
|
126
126
|
background: transparent;
|
|
127
|
-
border-radius:
|
|
127
|
+
border-radius: var(--ty-border-radius);
|
|
128
128
|
padding: 2px 6px;
|
|
129
129
|
cursor: pointer;
|
|
130
130
|
font-size: 12px;
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
.ty-color-picker__hex-input {
|
|
138
138
|
flex: 1;
|
|
139
139
|
border: 1px solid var(--ty-color-picker-border, #dee2e6);
|
|
140
|
-
border-radius:
|
|
140
|
+
border-radius: var(--ty-border-radius);
|
|
141
141
|
padding: 2px 6px;
|
|
142
142
|
font-size: 12px;
|
|
143
143
|
font-family: lucida console, consolas, monaco, andale mono, ubuntu mono, monospace;
|
|
@@ -159,7 +159,7 @@
|
|
|
159
159
|
.ty-color-picker__preset {
|
|
160
160
|
width: 20px;
|
|
161
161
|
height: 20px;
|
|
162
|
-
border-radius:
|
|
162
|
+
border-radius: var(--ty-border-radius);
|
|
163
163
|
cursor: pointer;
|
|
164
164
|
border: 1px solid var(--ty-color-picker-border, #dee2e6);
|
|
165
165
|
transition: transform 0.15s;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
@use '../../style/variables' as *;
|
|
2
2
|
|
|
3
3
|
.#{$prefix}-descriptions {
|
|
4
|
-
|
|
5
4
|
&__body {
|
|
6
5
|
width: 100%;
|
|
7
6
|
overflow: hidden;
|
|
@@ -24,7 +23,7 @@
|
|
|
24
23
|
font-size: 16px;
|
|
25
24
|
}
|
|
26
25
|
|
|
27
|
-
&__item_colon
|
|
26
|
+
&__item_colon::after {
|
|
28
27
|
content: ':';
|
|
29
28
|
margin-left: 2px;
|
|
30
29
|
margin-right: 5px;
|
|
@@ -32,15 +31,15 @@
|
|
|
32
31
|
|
|
33
32
|
&__item-label {
|
|
34
33
|
color: var(--ty-color-text-label);
|
|
35
|
-
font-size:
|
|
34
|
+
font-size: var(--ty-font-size-base);
|
|
36
35
|
font-weight: 400;
|
|
37
|
-
line-height:
|
|
36
|
+
line-height: var(--ty-line-height-base);
|
|
38
37
|
}
|
|
39
38
|
|
|
40
39
|
&__item-content {
|
|
41
40
|
color: var(--ty-color-text-secondary);
|
|
42
|
-
font-size:
|
|
43
|
-
line-height:
|
|
41
|
+
font-size: var(--ty-font-size-base);
|
|
42
|
+
line-height: var(--ty-line-height-base);
|
|
44
43
|
}
|
|
45
44
|
|
|
46
45
|
&_bordered {
|
|
@@ -17,25 +17,25 @@
|
|
|
17
17
|
font-weight: 600;
|
|
18
18
|
font-size: 16px;
|
|
19
19
|
}
|
|
20
|
-
.ty-descriptions__item_colon
|
|
20
|
+
.ty-descriptions__item_colon::after {
|
|
21
21
|
content: ":";
|
|
22
22
|
margin-left: 2px;
|
|
23
23
|
margin-right: 5px;
|
|
24
24
|
}
|
|
25
25
|
.ty-descriptions__item-label {
|
|
26
26
|
color: var(--ty-color-text-label);
|
|
27
|
-
font-size:
|
|
27
|
+
font-size: var(--ty-font-size-base);
|
|
28
28
|
font-weight: 400;
|
|
29
|
-
line-height:
|
|
29
|
+
line-height: var(--ty-line-height-base);
|
|
30
30
|
}
|
|
31
31
|
.ty-descriptions__item-content {
|
|
32
32
|
color: var(--ty-color-text-secondary);
|
|
33
|
-
font-size:
|
|
34
|
-
line-height:
|
|
33
|
+
font-size: var(--ty-font-size-base);
|
|
34
|
+
line-height: var(--ty-line-height-base);
|
|
35
35
|
}
|
|
36
36
|
.ty-descriptions_bordered .ty-descriptions__body {
|
|
37
37
|
border: 1px solid var(--ty-descriptions-border);
|
|
38
|
-
border-radius:
|
|
38
|
+
border-radius: var(--ty-border-radius);
|
|
39
39
|
}
|
|
40
40
|
.ty-descriptions_bordered .ty-descriptions__row {
|
|
41
41
|
border-bottom: 1px solid var(--ty-descriptions-border);
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
@use '../../style/variables' as *;
|
|
2
2
|
|
|
3
3
|
.#{$prefix}-form {
|
|
4
|
-
|
|
5
4
|
&_vertical {
|
|
6
5
|
.#{$prefix}-form-item__label {
|
|
7
6
|
text-align: left;
|
|
@@ -23,15 +22,15 @@
|
|
|
23
22
|
text-align: right;
|
|
24
23
|
vertical-align: top;
|
|
25
24
|
color: var(--ty-color-text);
|
|
26
|
-
font-size:
|
|
25
|
+
font-size: var(--ty-font-size-base);
|
|
27
26
|
|
|
28
|
-
&_required
|
|
27
|
+
&_required::before {
|
|
29
28
|
content: '*';
|
|
30
29
|
margin-right: 3px;
|
|
31
30
|
color: var(--ty-form-error-color);
|
|
32
31
|
}
|
|
33
32
|
|
|
34
|
-
&_colon
|
|
33
|
+
&_colon::after {
|
|
35
34
|
content: ':';
|
|
36
35
|
margin: 0 8px 0 2px;
|
|
37
36
|
}
|
|
@@ -65,7 +64,7 @@
|
|
|
65
64
|
|
|
66
65
|
&__notice {
|
|
67
66
|
font-size: 13px;
|
|
68
|
-
border-radius:
|
|
67
|
+
border-radius: var(--ty-border-radius);
|
|
69
68
|
background: var(--ty-form-notice-bg);
|
|
70
69
|
color: var(--ty-form-notice-color);
|
|
71
70
|
padding: 5px;
|
|
@@ -86,7 +85,7 @@
|
|
|
86
85
|
|
|
87
86
|
&:focus{
|
|
88
87
|
border-color: var(--ty-form-error-hover);
|
|
89
|
-
box-shadow: 0 0 0 2px
|
|
88
|
+
box-shadow: 0 0 0 2px rgb(255 77 79 / 20%);
|
|
90
89
|
}
|
|
91
90
|
}
|
|
92
91
|
}
|
package/lib/form/style/index.css
CHANGED
|
@@ -15,14 +15,14 @@
|
|
|
15
15
|
text-align: right;
|
|
16
16
|
vertical-align: top;
|
|
17
17
|
color: var(--ty-color-text);
|
|
18
|
-
font-size:
|
|
18
|
+
font-size: var(--ty-font-size-base);
|
|
19
19
|
}
|
|
20
|
-
.ty-form-item__label_required
|
|
20
|
+
.ty-form-item__label_required::before {
|
|
21
21
|
content: "*";
|
|
22
22
|
margin-right: 3px;
|
|
23
23
|
color: var(--ty-form-error-color);
|
|
24
24
|
}
|
|
25
|
-
.ty-form-item__label_colon
|
|
25
|
+
.ty-form-item__label_colon::after {
|
|
26
26
|
content: ":";
|
|
27
27
|
margin: 0 8px 0 2px;
|
|
28
28
|
}
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
}
|
|
51
51
|
.ty-form-item__notice {
|
|
52
52
|
font-size: 13px;
|
|
53
|
-
border-radius:
|
|
53
|
+
border-radius: var(--ty-border-radius);
|
|
54
54
|
background: var(--ty-form-notice-bg);
|
|
55
55
|
color: var(--ty-form-notice-color);
|
|
56
56
|
padding: 5px;
|
package/lib/index.d.ts
CHANGED
|
@@ -40,6 +40,7 @@ import { Link } from "./link/link.js";
|
|
|
40
40
|
import { DefaultList } from "./list/index.js";
|
|
41
41
|
import { Loader } from "./loader/loader.js";
|
|
42
42
|
import { _default } from "./loading-bar/index.js";
|
|
43
|
+
import { Marquee } from "./marquee/marquee.js";
|
|
43
44
|
import { DefaultMenu } from "./menu/index.js";
|
|
44
45
|
import { messageContainer } from "./message/message-container.js";
|
|
45
46
|
import { DefaultSelect } from "./native-select/index.js";
|
|
@@ -87,4 +88,4 @@ import { en_US } from "./locale/en_US.js";
|
|
|
87
88
|
import { zh_CN } from "./locale/zh_CN.js";
|
|
88
89
|
import { useLocale } from "./_utils/use-locale.js";
|
|
89
90
|
import { ThemeMode, useTheme } from "./_utils/use-theme.js";
|
|
90
|
-
export { Alert, DefaultAnchor as Anchor, AspectRatio, AutoComplete, DefaultAvatar as Avatar, BackTop, Badge, DefaultBreadcrumb as Breadcrumb, DefaultButton as Button, Calendar, DefaultCard as Card, DefaultCarousel as Carousel, Cascader, DefaultCheckbox as Checkbox, Col, DefaultCollapse as Collapse, ColorPicker, ConfigProvider, CopyToClipboard, Countdown, DatePicker, DefaultDesc as Descriptions, Divider, Drawer, Dropdown, Empty, Flex, DefaultFlip as Flip, DefaultForm as Form, Image, DefaultInput as Input, InputNumber, InputOTP, InputPassword, IntlProvider, Keyboard, DefaultLayout as Layout, Link, DefaultList as List, Loader, _default as LoadingBar, type Locale, DefaultMenu as Menu, messageContainer as Message, ModalWithContext as Modal, DefaultSelect as NativeSelect, notificationContainer as Notification, Overlay, Pagination, PopConfirm, Popover, Progress, DefaultRadio as Radio, Rate, Result, Row, ScrollIndicator, Segmented, DefaultSelect$1 as Select, Skeleton, Slider, Space, DefaultSpeedDial as SpeedDial, Split, SplitButton, Statistic, DefaultSteps as Steps, Sticky, StrengthIndicator, Switch, Table, DefaultTabs as Tabs, DefaultTag as Tag, Textarea, type ThemeMode, TimePicker, DefaultTimeline as Timeline, Tooltip, Transfer, Transition, Tree, DefaultTypo as Typography, Upload, Waterfall, en_US, useLocale, useTheme, withLocale, withSpin, zh_CN };
|
|
91
|
+
export { Alert, DefaultAnchor as Anchor, AspectRatio, AutoComplete, DefaultAvatar as Avatar, BackTop, Badge, DefaultBreadcrumb as Breadcrumb, DefaultButton as Button, Calendar, DefaultCard as Card, DefaultCarousel as Carousel, Cascader, DefaultCheckbox as Checkbox, Col, DefaultCollapse as Collapse, ColorPicker, ConfigProvider, CopyToClipboard, Countdown, DatePicker, DefaultDesc as Descriptions, Divider, Drawer, Dropdown, Empty, Flex, DefaultFlip as Flip, DefaultForm as Form, Image, DefaultInput as Input, InputNumber, InputOTP, InputPassword, IntlProvider, Keyboard, DefaultLayout as Layout, Link, DefaultList as List, Loader, _default as LoadingBar, type Locale, Marquee, DefaultMenu as Menu, messageContainer as Message, ModalWithContext as Modal, DefaultSelect as NativeSelect, notificationContainer as Notification, Overlay, Pagination, PopConfirm, Popover, Progress, DefaultRadio as Radio, Rate, Result, Row, ScrollIndicator, Segmented, DefaultSelect$1 as Select, Skeleton, Slider, Space, DefaultSpeedDial as SpeedDial, Split, SplitButton, Statistic, DefaultSteps as Steps, Sticky, StrengthIndicator, Switch, Table, DefaultTabs as Tabs, DefaultTag as Tag, Textarea, type ThemeMode, TimePicker, DefaultTimeline as Timeline, Tooltip, Transfer, Transition, Tree, DefaultTypo as Typography, Upload, Waterfall, en_US, useLocale, useTheme, withLocale, withSpin, zh_CN };
|