@douyinfe/semi-ui 2.15.1 → 2.15.2-alpha.0
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/css/semi.css +20 -75
- package/dist/css/semi.min.css +1 -1
- package/dist/umd/semi-ui.js +247 -245
- package/dist/umd/semi-ui.js.map +1 -1
- package/dist/umd/semi-ui.min.js +1 -1
- package/dist/umd/semi-ui.min.js.map +1 -1
- package/lib/cjs/radio/radio.js +5 -3
- package/lib/es/radio/radio.js +5 -3
- package/package.json +7 -7
- package/radio/_story/radio.stories.js +5 -5
- package/radio/radio.tsx +3 -5
package/lib/cjs/radio/radio.js
CHANGED
|
@@ -233,9 +233,11 @@ class Radio extends _baseComponent.default {
|
|
|
233
233
|
focusInner: focusVisible && !focusOuter,
|
|
234
234
|
onInputFocus: this.handleFocusVisible,
|
|
235
235
|
onInputBlur: this.handleBlur
|
|
236
|
-
})),
|
|
237
|
-
className: "".concat(prefix, "-
|
|
238
|
-
|
|
236
|
+
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
237
|
+
className: (0, _classnames.default)(["".concat(prefix, "-content"), {
|
|
238
|
+
["".concat(prefix, "-isCardRadioGroup_content")]: isCardRadioGroup
|
|
239
|
+
}])
|
|
240
|
+
}, renderContent()));
|
|
239
241
|
}
|
|
240
242
|
|
|
241
243
|
}
|
package/lib/es/radio/radio.js
CHANGED
|
@@ -210,9 +210,11 @@ class Radio extends BaseComponent {
|
|
|
210
210
|
focusInner: focusVisible && !focusOuter,
|
|
211
211
|
onInputFocus: this.handleFocusVisible,
|
|
212
212
|
onInputBlur: this.handleBlur
|
|
213
|
-
})),
|
|
214
|
-
className: "".concat(prefix, "-
|
|
215
|
-
|
|
213
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
214
|
+
className: cls(["".concat(prefix, "-content"), {
|
|
215
|
+
["".concat(prefix, "-isCardRadioGroup_content")]: isCardRadioGroup
|
|
216
|
+
}])
|
|
217
|
+
}, renderContent()));
|
|
216
218
|
}
|
|
217
219
|
|
|
218
220
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@douyinfe/semi-ui",
|
|
3
|
-
"version": "2.15.
|
|
3
|
+
"version": "2.15.2-alpha.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es/index.js",
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@babel/runtime-corejs3": "^7.15.4",
|
|
17
17
|
"@douyinfe/semi-animation": "2.12.0",
|
|
18
|
-
"@douyinfe/semi-animation-react": "2.15.
|
|
19
|
-
"@douyinfe/semi-foundation": "2.15.
|
|
20
|
-
"@douyinfe/semi-icons": "2.15.
|
|
18
|
+
"@douyinfe/semi-animation-react": "2.15.2-alpha.0",
|
|
19
|
+
"@douyinfe/semi-foundation": "2.15.2-alpha.0",
|
|
20
|
+
"@douyinfe/semi-icons": "2.15.2-alpha.0",
|
|
21
21
|
"@douyinfe/semi-illustrations": "2.15.0",
|
|
22
|
-
"@douyinfe/semi-theme-default": "2.15.
|
|
22
|
+
"@douyinfe/semi-theme-default": "2.15.2-alpha.0",
|
|
23
23
|
"@types/react-window": "^1.8.2",
|
|
24
24
|
"async-validator": "^3.5.0",
|
|
25
25
|
"classnames": "^2.2.6",
|
|
@@ -69,13 +69,13 @@
|
|
|
69
69
|
],
|
|
70
70
|
"author": "",
|
|
71
71
|
"license": "MIT",
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "2a0f381a9b559286fe9891093222198792fe5313",
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@babel/plugin-proposal-decorators": "^7.15.8",
|
|
75
75
|
"@babel/plugin-transform-runtime": "^7.15.8",
|
|
76
76
|
"@babel/preset-env": "^7.15.8",
|
|
77
77
|
"@babel/preset-react": "^7.14.5",
|
|
78
|
-
"@douyinfe/semi-scss-compile": "2.15.
|
|
78
|
+
"@douyinfe/semi-scss-compile": "2.15.2-alpha.0",
|
|
79
79
|
"@storybook/addon-knobs": "^6.3.1",
|
|
80
80
|
"@types/lodash": "^4.14.176",
|
|
81
81
|
"babel-loader": "^8.2.2",
|
|
@@ -254,18 +254,18 @@ _RadioGroup.story = {
|
|
|
254
254
|
|
|
255
255
|
export const RadioWithVertical = () => {
|
|
256
256
|
return (
|
|
257
|
-
<Radio.Group>
|
|
258
|
-
<Radio value="A"
|
|
257
|
+
<Radio.Group direction="vertical">
|
|
258
|
+
<Radio value="A">
|
|
259
259
|
无限长的一串字The Storybook webapp UI can be customised with this addon. It can be used to
|
|
260
260
|
change the header, show/hide various UI elements and to enable full-screen mode by default.
|
|
261
261
|
</Radio>
|
|
262
|
-
<Radio value="C"
|
|
262
|
+
<Radio value="C">
|
|
263
263
|
C
|
|
264
264
|
</Radio>
|
|
265
|
-
<Radio value="D"
|
|
265
|
+
<Radio value="D">
|
|
266
266
|
D
|
|
267
267
|
</Radio>
|
|
268
|
-
<Radio value="E"
|
|
268
|
+
<Radio value="E">
|
|
269
269
|
E
|
|
270
270
|
</Radio>
|
|
271
271
|
</Radio.Group>
|
package/radio/radio.tsx
CHANGED
|
@@ -285,11 +285,9 @@ class Radio extends BaseComponent<RadioProps, RadioState> {
|
|
|
285
285
|
onInputFocus={this.handleFocusVisible}
|
|
286
286
|
onInputBlur={this.handleBlur}
|
|
287
287
|
/>
|
|
288
|
-
{
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
renderContent()
|
|
292
|
-
}
|
|
288
|
+
<div className={cls([`${prefix}-content`, { [`${prefix}-isCardRadioGroup_content`]: isCardRadioGroup }])}>
|
|
289
|
+
{renderContent()}
|
|
290
|
+
</div>
|
|
293
291
|
</label>
|
|
294
292
|
);
|
|
295
293
|
}
|