shineout 3.10.0-beta.2 → 3.10.0-beta.21
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/cjs/alert/alert.semantic.d.ts +4 -0
- package/cjs/alert/alert.semantic.js +62 -0
- package/cjs/avatar/avatar.semantic.d.ts +4 -0
- package/cjs/avatar/avatar.semantic.js +58 -0
- package/cjs/badge/badge.semantic.d.ts +4 -0
- package/cjs/badge/badge.semantic.js +64 -0
- package/cjs/badge/interface.d.ts +1 -0
- package/cjs/border-beam/border-beam.d.ts +3 -0
- package/cjs/border-beam/border-beam.js +25 -0
- package/cjs/border-beam/border-beam.type.d.ts +6 -0
- package/cjs/border-beam/border-beam.type.js +5 -0
- package/cjs/border-beam/index.d.ts +7 -0
- package/cjs/border-beam/index.js +12 -0
- package/cjs/border-beam/interface.d.ts +1 -0
- package/cjs/border-beam/interface.js +5 -0
- package/cjs/breadcrumb/breadcrumb.semantic.d.ts +4 -0
- package/cjs/breadcrumb/breadcrumb.semantic.js +82 -0
- package/cjs/breadcrumb/interface.d.ts +1 -0
- package/cjs/button/button.semantic.d.ts +4 -0
- package/cjs/button/button.semantic.js +59 -0
- package/cjs/button/interface.d.ts +1 -0
- package/cjs/card/card.semantic.d.ts +4 -0
- package/cjs/card/card.semantic.js +74 -0
- package/cjs/card/interface.d.ts +1 -0
- package/cjs/carousel/carousel.semantic.d.ts +4 -0
- package/cjs/carousel/carousel.semantic.js +100 -0
- package/cjs/carousel/interface.d.ts +1 -0
- package/cjs/cascader/cascader.semantic.d.ts +4 -0
- package/cjs/cascader/cascader.semantic.js +90 -0
- package/cjs/checkbox/checkbox.semantic.d.ts +4 -0
- package/cjs/checkbox/checkbox.semantic.js +54 -0
- package/cjs/collapse/collapse.semantic.d.ts +4 -0
- package/cjs/collapse/collapse.semantic.js +77 -0
- package/cjs/collapse/interface.d.ts +1 -0
- package/cjs/date-picker/date-picker.semantic.d.ts +4 -0
- package/cjs/date-picker/date-picker.semantic.js +75 -0
- package/cjs/descriptions/descriptions.semantic.d.ts +4 -0
- package/cjs/descriptions/descriptions.semantic.js +90 -0
- package/cjs/descriptions/interface.d.ts +1 -0
- package/cjs/divider/divider.semantic.d.ts +4 -0
- package/cjs/divider/divider.semantic.js +49 -0
- package/cjs/divider/interface.d.ts +1 -0
- package/cjs/drawer/drawer.js +11 -1
- package/cjs/drawer/drawer.semantic.d.ts +4 -0
- package/cjs/drawer/drawer.semantic.js +91 -0
- package/cjs/dropdown/dropdown.semantic.d.ts +4 -0
- package/cjs/dropdown/dropdown.semantic.js +82 -0
- package/cjs/dropdown/interface.d.ts +1 -0
- package/cjs/empty/empty.semantic.d.ts +4 -0
- package/cjs/empty/empty.semantic.js +44 -0
- package/cjs/empty/interface.d.ts +1 -0
- package/cjs/form/form.semantic.d.ts +4 -0
- package/cjs/form/form.semantic.js +91 -0
- package/cjs/gap/gap.semantic.d.ts +4 -0
- package/cjs/gap/gap.semantic.js +73 -0
- package/cjs/gap/interface.d.ts +1 -0
- package/cjs/grid/grid.semantic.d.ts +4 -0
- package/cjs/grid/grid.semantic.js +71 -0
- package/cjs/grid/interface.d.ts +1 -0
- package/cjs/image/image.semantic.d.ts +4 -0
- package/cjs/image/image.semantic.js +74 -0
- package/cjs/image/interface.d.ts +1 -0
- package/cjs/index.d.ts +1 -0
- package/cjs/index.js +9 -1
- package/cjs/input/input.semantic.d.ts +4 -0
- package/cjs/input/input.semantic.js +50 -0
- package/cjs/link/interface.d.ts +1 -0
- package/cjs/link/link.semantic.d.ts +4 -0
- package/cjs/link/link.semantic.js +58 -0
- package/cjs/list/interface.d.ts +1 -0
- package/cjs/list/list.semantic.d.ts +4 -0
- package/cjs/list/list.semantic.js +64 -0
- package/cjs/menu/interface.d.ts +1 -0
- package/cjs/menu/menu.semantic.d.ts +4 -0
- package/cjs/menu/menu.semantic.js +111 -0
- package/cjs/message/interface.d.ts +1 -0
- package/cjs/message/message.semantic.d.ts +4 -0
- package/cjs/message/message.semantic.js +70 -0
- package/cjs/modal/modal.semantic.d.ts +4 -0
- package/cjs/modal/modal.semantic.js +86 -0
- package/cjs/pagination/interface.d.ts +1 -0
- package/cjs/pagination/pagination.semantic.d.ts +4 -0
- package/cjs/pagination/pagination.semantic.js +70 -0
- package/cjs/popover/interface.d.ts +1 -1
- package/cjs/popover/popover.semantic.d.ts +4 -0
- package/cjs/popover/popover.semantic.js +52 -0
- package/cjs/progress/interface.d.ts +1 -0
- package/cjs/progress/progress.semantic.d.ts +4 -0
- package/cjs/progress/progress.semantic.js +94 -0
- package/cjs/radio/radio.semantic.d.ts +4 -0
- package/cjs/radio/radio.semantic.js +54 -0
- package/cjs/rate/rate.semantic.d.ts +4 -0
- package/cjs/rate/rate.semantic.js +56 -0
- package/cjs/select/select.semantic.d.ts +4 -0
- package/cjs/select/select.semantic.js +93 -0
- package/cjs/skeleton/interface.d.ts +1 -0
- package/cjs/skeleton/skeleton.semantic.d.ts +4 -0
- package/cjs/skeleton/skeleton.semantic.js +58 -0
- package/cjs/slider/slider.semantic.d.ts +4 -0
- package/cjs/slider/slider.semantic.js +59 -0
- package/cjs/spin/spin.semantic.d.ts +4 -0
- package/cjs/spin/spin.semantic.js +113 -0
- package/cjs/steps/interface.d.ts +1 -0
- package/cjs/steps/steps.semantic.d.ts +4 -0
- package/cjs/steps/steps.semantic.js +81 -0
- package/cjs/switch/switch.semantic.d.ts +4 -0
- package/cjs/switch/switch.semantic.js +55 -0
- package/cjs/table/interface.d.ts +1 -1
- package/cjs/table/table.semantic.d.ts +4 -0
- package/cjs/table/table.semantic.js +136 -0
- package/cjs/table/table.type.d.ts +2 -1
- package/cjs/tabs/interface.d.ts +1 -0
- package/cjs/tabs/tabs.semantic.d.ts +4 -0
- package/cjs/tabs/tabs.semantic.js +121 -0
- package/cjs/tag/interface.d.ts +1 -1
- package/cjs/tag/tag.semantic.d.ts +4 -0
- package/cjs/tag/tag.semantic.js +63 -0
- package/cjs/tag/tag.type.d.ts +2 -1
- package/cjs/textarea/textarea.semantic.d.ts +4 -0
- package/cjs/textarea/textarea.semantic.js +46 -0
- package/cjs/tooltip/tooltip.semantic.d.ts +4 -0
- package/cjs/tooltip/tooltip.semantic.js +57 -0
- package/cjs/transfer/transfer.semantic.d.ts +4 -0
- package/cjs/transfer/transfer.semantic.js +71 -0
- package/cjs/tree/interface.d.ts +1 -1
- package/cjs/tree/tree.semantic.d.ts +4 -0
- package/cjs/tree/tree.semantic.js +83 -0
- package/cjs/tree/tree.type.d.ts +2 -1
- package/cjs/tree-select/tree-select.semantic.d.ts +4 -0
- package/cjs/tree-select/tree-select.semantic.js +89 -0
- package/cjs/type.d.ts +1 -0
- package/cjs/type.js +3 -1
- package/cjs/upload/button.js +12 -1
- package/cjs/upload/image.js +4 -0
- package/cjs/upload/interface.d.ts +1 -1
- package/cjs/upload/upload.js +4 -0
- package/cjs/upload/upload.semantic.d.ts +4 -0
- package/cjs/upload/upload.semantic.js +50 -0
- package/cjs/upload/upload.type.d.ts +2 -1
- package/dist/shineout.js +15000 -13277
- package/dist/shineout.js.map +1 -1
- package/dist/shineout.min.js +1 -1
- package/dist/shineout.min.js.map +1 -1
- package/esm/alert/alert.semantic.d.ts +4 -0
- package/esm/alert/alert.semantic.js +54 -0
- package/esm/avatar/avatar.semantic.d.ts +4 -0
- package/esm/avatar/avatar.semantic.js +51 -0
- package/esm/badge/badge.semantic.d.ts +4 -0
- package/esm/badge/badge.semantic.js +57 -0
- package/esm/badge/interface.d.ts +1 -0
- package/esm/border-beam/border-beam.d.ts +3 -0
- package/esm/border-beam/border-beam.js +18 -0
- package/esm/border-beam/border-beam.type.d.ts +6 -0
- package/esm/border-beam/border-beam.type.js +1 -0
- package/esm/border-beam/index.d.ts +7 -0
- package/esm/border-beam/index.js +5 -0
- package/esm/border-beam/interface.d.ts +1 -0
- package/esm/border-beam/interface.js +1 -0
- package/esm/breadcrumb/breadcrumb.semantic.d.ts +4 -0
- package/esm/breadcrumb/breadcrumb.semantic.js +74 -0
- package/esm/breadcrumb/interface.d.ts +1 -0
- package/esm/button/button.semantic.d.ts +4 -0
- package/esm/button/button.semantic.js +52 -0
- package/esm/button/interface.d.ts +1 -0
- package/esm/card/card.semantic.d.ts +4 -0
- package/esm/card/card.semantic.js +67 -0
- package/esm/card/interface.d.ts +1 -0
- package/esm/carousel/carousel.semantic.d.ts +4 -0
- package/esm/carousel/carousel.semantic.js +93 -0
- package/esm/carousel/interface.d.ts +1 -0
- package/esm/cascader/cascader.semantic.d.ts +4 -0
- package/esm/cascader/cascader.semantic.js +82 -0
- package/esm/checkbox/checkbox.semantic.d.ts +4 -0
- package/esm/checkbox/checkbox.semantic.js +46 -0
- package/esm/collapse/collapse.semantic.d.ts +4 -0
- package/esm/collapse/collapse.semantic.js +70 -0
- package/esm/collapse/interface.d.ts +1 -0
- package/esm/date-picker/date-picker.semantic.d.ts +4 -0
- package/esm/date-picker/date-picker.semantic.js +67 -0
- package/esm/descriptions/descriptions.semantic.d.ts +4 -0
- package/esm/descriptions/descriptions.semantic.js +82 -0
- package/esm/descriptions/interface.d.ts +1 -0
- package/esm/divider/divider.semantic.d.ts +4 -0
- package/esm/divider/divider.semantic.js +42 -0
- package/esm/divider/interface.d.ts +1 -0
- package/esm/drawer/drawer.js +11 -1
- package/esm/drawer/drawer.semantic.d.ts +4 -0
- package/esm/drawer/drawer.semantic.js +83 -0
- package/esm/dropdown/dropdown.semantic.d.ts +4 -0
- package/esm/dropdown/dropdown.semantic.js +74 -0
- package/esm/dropdown/interface.d.ts +1 -0
- package/esm/empty/empty.semantic.d.ts +4 -0
- package/esm/empty/empty.semantic.js +36 -0
- package/esm/empty/interface.d.ts +1 -0
- package/esm/form/form.semantic.d.ts +4 -0
- package/esm/form/form.semantic.js +84 -0
- package/esm/gap/gap.semantic.d.ts +4 -0
- package/esm/gap/gap.semantic.js +66 -0
- package/esm/gap/interface.d.ts +1 -0
- package/esm/grid/grid.semantic.d.ts +4 -0
- package/esm/grid/grid.semantic.js +64 -0
- package/esm/grid/interface.d.ts +1 -0
- package/esm/image/image.semantic.d.ts +4 -0
- package/esm/image/image.semantic.js +67 -0
- package/esm/image/interface.d.ts +1 -0
- package/esm/index.d.ts +1 -0
- package/esm/index.js +2 -1
- package/esm/input/input.semantic.d.ts +4 -0
- package/esm/input/input.semantic.js +42 -0
- package/esm/link/interface.d.ts +1 -0
- package/esm/link/link.semantic.d.ts +4 -0
- package/esm/link/link.semantic.js +51 -0
- package/esm/list/interface.d.ts +1 -0
- package/esm/list/list.semantic.d.ts +4 -0
- package/esm/list/list.semantic.js +56 -0
- package/esm/menu/interface.d.ts +1 -0
- package/esm/menu/menu.semantic.d.ts +4 -0
- package/esm/menu/menu.semantic.js +103 -0
- package/esm/message/interface.d.ts +1 -0
- package/esm/message/message.semantic.d.ts +4 -0
- package/esm/message/message.semantic.js +59 -0
- package/esm/modal/modal.semantic.d.ts +4 -0
- package/esm/modal/modal.semantic.js +78 -0
- package/esm/pagination/interface.d.ts +1 -0
- package/esm/pagination/pagination.semantic.d.ts +4 -0
- package/esm/pagination/pagination.semantic.js +62 -0
- package/esm/popover/interface.d.ts +1 -1
- package/esm/popover/popover.semantic.d.ts +4 -0
- package/esm/popover/popover.semantic.js +45 -0
- package/esm/progress/interface.d.ts +1 -0
- package/esm/progress/progress.semantic.d.ts +4 -0
- package/esm/progress/progress.semantic.js +87 -0
- package/esm/radio/radio.semantic.d.ts +4 -0
- package/esm/radio/radio.semantic.js +46 -0
- package/esm/rate/rate.semantic.d.ts +4 -0
- package/esm/rate/rate.semantic.js +48 -0
- package/esm/select/select.semantic.d.ts +4 -0
- package/esm/select/select.semantic.js +85 -0
- package/esm/skeleton/interface.d.ts +1 -0
- package/esm/skeleton/skeleton.semantic.d.ts +4 -0
- package/esm/skeleton/skeleton.semantic.js +50 -0
- package/esm/slider/slider.semantic.d.ts +4 -0
- package/esm/slider/slider.semantic.js +51 -0
- package/esm/spin/spin.semantic.d.ts +4 -0
- package/esm/spin/spin.semantic.js +106 -0
- package/esm/steps/interface.d.ts +1 -0
- package/esm/steps/steps.semantic.d.ts +4 -0
- package/esm/steps/steps.semantic.js +74 -0
- package/esm/switch/switch.semantic.d.ts +4 -0
- package/esm/switch/switch.semantic.js +48 -0
- package/esm/table/interface.d.ts +1 -1
- package/esm/table/table.semantic.d.ts +4 -0
- package/esm/table/table.semantic.js +128 -0
- package/esm/table/table.type.d.ts +2 -1
- package/esm/tabs/interface.d.ts +1 -0
- package/esm/tabs/tabs.semantic.d.ts +4 -0
- package/esm/tabs/tabs.semantic.js +114 -0
- package/esm/tag/interface.d.ts +1 -1
- package/esm/tag/tag.semantic.d.ts +4 -0
- package/esm/tag/tag.semantic.js +56 -0
- package/esm/tag/tag.type.d.ts +2 -1
- package/esm/textarea/textarea.semantic.d.ts +4 -0
- package/esm/textarea/textarea.semantic.js +38 -0
- package/esm/tooltip/tooltip.semantic.d.ts +4 -0
- package/esm/tooltip/tooltip.semantic.js +49 -0
- package/esm/transfer/transfer.semantic.d.ts +4 -0
- package/esm/transfer/transfer.semantic.js +63 -0
- package/esm/tree/interface.d.ts +1 -1
- package/esm/tree/tree.semantic.d.ts +4 -0
- package/esm/tree/tree.semantic.js +75 -0
- package/esm/tree/tree.type.d.ts +2 -1
- package/esm/tree-select/tree-select.semantic.d.ts +4 -0
- package/esm/tree-select/tree-select.semantic.js +81 -0
- package/esm/type.d.ts +1 -0
- package/esm/type.js +2 -0
- package/esm/upload/button.js +12 -1
- package/esm/upload/image.js +4 -0
- package/esm/upload/interface.d.ts +1 -1
- package/esm/upload/upload.js +4 -0
- package/esm/upload/upload.semantic.d.ts +4 -0
- package/esm/upload/upload.semantic.js +42 -0
- package/esm/upload/upload.type.d.ts +2 -1
- package/package.json +5 -5
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Alert Semantic DOM 元数据。
|
|
3
|
+
*
|
|
4
|
+
* 文档站构建时通过 chunk 模板自动引入,渲染 Semantic tab。
|
|
5
|
+
*
|
|
6
|
+
* @see /docs/rfc/0001-semantic-dom.md
|
|
7
|
+
*/
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import Alert from "./index";
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
+
var AlertSemanticDemo = function AlertSemanticDemo() {
|
|
12
|
+
return /*#__PURE__*/_jsx(Alert, {
|
|
13
|
+
type: "info",
|
|
14
|
+
icon: true,
|
|
15
|
+
title: "Heading",
|
|
16
|
+
closable: true,
|
|
17
|
+
children: "This is a line of important text for alerting purposes"
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
var alertSemantic = {
|
|
21
|
+
keys: [{
|
|
22
|
+
key: 'root',
|
|
23
|
+
cn: '最外层容器(与 className 等价)',
|
|
24
|
+
en: 'Outermost wrapper element (equivalent to className)',
|
|
25
|
+
version: '3.10.0',
|
|
26
|
+
example: "<Alert\n classNames={{ root: 'my-alert' }}\n styles={{ root: { borderRadius: 8 } }}\n/>"
|
|
27
|
+
}, {
|
|
28
|
+
key: 'icon',
|
|
29
|
+
cn: '图标区域',
|
|
30
|
+
en: 'Icon area',
|
|
31
|
+
version: '3.10.0',
|
|
32
|
+
example: "<Alert\n icon\n classNames={{ icon: 'my-icon' }}\n styles={{ icon: { width: 20 } }}\n/>"
|
|
33
|
+
}, {
|
|
34
|
+
key: 'title',
|
|
35
|
+
cn: '标题',
|
|
36
|
+
en: 'Title element',
|
|
37
|
+
version: '3.10.0',
|
|
38
|
+
example: "<Alert\n title=\"Heading\"\n classNames={{ title: 'my-title' }}\n styles={{ title: { fontSize: 16 } }}\n/>"
|
|
39
|
+
}, {
|
|
40
|
+
key: 'content',
|
|
41
|
+
cn: '内容文本区',
|
|
42
|
+
en: 'Content text area',
|
|
43
|
+
version: '3.10.0',
|
|
44
|
+
example: "<Alert\n classNames={{ content: 'my-content' }}\n styles={{ content: { color: '#333' } }}\n>\n Alert message\n</Alert>"
|
|
45
|
+
}, {
|
|
46
|
+
key: 'close',
|
|
47
|
+
cn: '关闭按钮',
|
|
48
|
+
en: 'Close button',
|
|
49
|
+
version: '3.10.0',
|
|
50
|
+
example: "<Alert\n closable\n classNames={{ close: 'my-close' }}\n styles={{ close: { opacity: 0.6 } }}\n/>"
|
|
51
|
+
}],
|
|
52
|
+
demo: AlertSemanticDemo
|
|
53
|
+
};
|
|
54
|
+
export default alertSemantic;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Avatar Semantic DOM 元数据。
|
|
3
|
+
*
|
|
4
|
+
* 文档站构建时通过 chunk 模板自动引入,渲染 Semantic tab。
|
|
5
|
+
*
|
|
6
|
+
* @see /docs/rfc/0001-semantic-dom.md
|
|
7
|
+
*/
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import { Avatar } from "./..";
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
+
var AvatarSemanticDemo = function AvatarSemanticDemo() {
|
|
13
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
14
|
+
style: {
|
|
15
|
+
display: 'flex',
|
|
16
|
+
gap: 16,
|
|
17
|
+
alignItems: 'center'
|
|
18
|
+
},
|
|
19
|
+
children: [/*#__PURE__*/_jsx(Avatar, {
|
|
20
|
+
src: "https://raw.githubusercontent.com/sheinsight/shineout-static/main/shineout-next/images/avatar/01.png"
|
|
21
|
+
}), /*#__PURE__*/_jsx(Avatar, {
|
|
22
|
+
shape: "square",
|
|
23
|
+
children: "U"
|
|
24
|
+
}), /*#__PURE__*/_jsxs(Avatar.Group, {
|
|
25
|
+
children: [/*#__PURE__*/_jsx(Avatar, {
|
|
26
|
+
src: "https://raw.githubusercontent.com/sheinsight/shineout-static/main/shineout-next/images/avatar/01.png"
|
|
27
|
+
}), /*#__PURE__*/_jsx(Avatar, {
|
|
28
|
+
src: "https://raw.githubusercontent.com/sheinsight/shineout-static/main/shineout-next/images/avatar/02.png"
|
|
29
|
+
}), /*#__PURE__*/_jsx(Avatar, {
|
|
30
|
+
src: "https://raw.githubusercontent.com/sheinsight/shineout-static/main/shineout-next/images/avatar/03.png"
|
|
31
|
+
})]
|
|
32
|
+
})]
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
var avatarSemantic = {
|
|
36
|
+
keys: [{
|
|
37
|
+
key: 'group',
|
|
38
|
+
cn: 'Avatar.Group 容器元素',
|
|
39
|
+
en: 'Avatar.Group container element',
|
|
40
|
+
version: '3.10.0',
|
|
41
|
+
example: "<Avatar.Group classNames={{ group: 'my-group' }} styles={{ group: { gap: 8 } }}>...</Avatar.Group>"
|
|
42
|
+
}, {
|
|
43
|
+
key: 'root',
|
|
44
|
+
cn: 'Avatar 最外层容器(可从 Avatar.Group 向子 Avatar 传递)',
|
|
45
|
+
en: 'Avatar outermost wrapper (can be passed from Avatar.Group to child Avatars)',
|
|
46
|
+
version: '3.10.0',
|
|
47
|
+
example: "<Avatar classNames={{ root: 'my-avatar' }} styles={{ root: { border: '2px solid #1890ff' } }} />"
|
|
48
|
+
}],
|
|
49
|
+
demo: AvatarSemanticDemo
|
|
50
|
+
};
|
|
51
|
+
export default avatarSemantic;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Badge Semantic DOM 元数据。
|
|
3
|
+
*
|
|
4
|
+
* 文档站构建时通过 chunk 模板自动引入,渲染 Semantic tab。
|
|
5
|
+
*
|
|
6
|
+
* @see /docs/rfc/0001-semantic-dom.md
|
|
7
|
+
*/
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import { Badge } from "./..";
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
+
var BadgeSemanticDemo = function BadgeSemanticDemo() {
|
|
13
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
14
|
+
style: {
|
|
15
|
+
display: 'flex',
|
|
16
|
+
gap: 24
|
|
17
|
+
},
|
|
18
|
+
children: [/*#__PURE__*/_jsx(Badge, {
|
|
19
|
+
count: 5,
|
|
20
|
+
children: /*#__PURE__*/_jsx("div", {
|
|
21
|
+
style: {
|
|
22
|
+
width: 40,
|
|
23
|
+
height: 40,
|
|
24
|
+
background: '#eee',
|
|
25
|
+
borderRadius: 4
|
|
26
|
+
}
|
|
27
|
+
})
|
|
28
|
+
}), /*#__PURE__*/_jsx(Badge, {
|
|
29
|
+
dot: true,
|
|
30
|
+
children: /*#__PURE__*/_jsx("div", {
|
|
31
|
+
style: {
|
|
32
|
+
width: 40,
|
|
33
|
+
height: 40,
|
|
34
|
+
background: '#eee',
|
|
35
|
+
borderRadius: 4
|
|
36
|
+
}
|
|
37
|
+
})
|
|
38
|
+
})]
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
var badgeSemantic = {
|
|
42
|
+
keys: [{
|
|
43
|
+
key: 'root',
|
|
44
|
+
cn: 'Badge 最外层容器',
|
|
45
|
+
en: 'Badge outermost wrapper element',
|
|
46
|
+
version: '3.10.0',
|
|
47
|
+
example: "<Badge\n classNames={{ root: 'my-badge' }}\n styles={{ root: { display: 'inline-block' } }}\n/>"
|
|
48
|
+
}, {
|
|
49
|
+
key: 'badge',
|
|
50
|
+
cn: '右上角徽标元素(数字/圆点)',
|
|
51
|
+
en: 'Badge indicator element (count/dot)',
|
|
52
|
+
version: '3.10.0',
|
|
53
|
+
example: "<Badge\n classNames={{ badge: 'my-indicator' }}\n styles={{ badge: { fontSize: 10 } }}\n/>"
|
|
54
|
+
}],
|
|
55
|
+
demo: BadgeSemanticDemo
|
|
56
|
+
};
|
|
57
|
+
export default badgeSemantic;
|
package/esm/badge/interface.d.ts
CHANGED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import { BorderBeam as UnStyledBorderBeam } from '@sheinx/base';
|
|
9
|
+
import { useBorderBeamStyle } from '@sheinx/shineout-style';
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
+
var jssStyle = {
|
|
12
|
+
borderBeam: useBorderBeamStyle
|
|
13
|
+
};
|
|
14
|
+
export default (function (props) {
|
|
15
|
+
return /*#__PURE__*/_jsx(UnStyledBorderBeam, _objectSpread(_objectSpread({}, props), {}, {
|
|
16
|
+
jssStyle: jssStyle
|
|
17
|
+
}));
|
|
18
|
+
});
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { BorderBeamProps as UnStyledBorderBeamProps } from '@sheinx/base';
|
|
2
|
+
/**
|
|
3
|
+
* @title BorderBeam
|
|
4
|
+
*/
|
|
5
|
+
export type BorderBeamProps = Omit<UnStyledBorderBeamProps, 'jssStyle'>;
|
|
6
|
+
export type { BorderBeamColor, BorderBeamGradient, BorderBeamGradientItem } from '@sheinx/base';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { BorderBeamColor as Color, BorderBeamGradient as Gradient, BorderBeamGradientItem as GradientItem, BorderBeamProps as Props, } from './border-beam.type';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Breadcrumb Semantic DOM 元数据。
|
|
3
|
+
*
|
|
4
|
+
* 文档站构建时通过 chunk 模板自动引入,渲染 Semantic tab。
|
|
5
|
+
*
|
|
6
|
+
* @see /docs/rfc/0001-semantic-dom.md
|
|
7
|
+
*/
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import { Breadcrumb } from "./..";
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
+
var breadcrumbData = [{
|
|
12
|
+
title: 'Home',
|
|
13
|
+
url: '#'
|
|
14
|
+
}, [{
|
|
15
|
+
title: 'Products',
|
|
16
|
+
url: '#'
|
|
17
|
+
}, {
|
|
18
|
+
title: 'Services',
|
|
19
|
+
url: '#'
|
|
20
|
+
}, {
|
|
21
|
+
title: 'Solutions',
|
|
22
|
+
url: '#'
|
|
23
|
+
}], {
|
|
24
|
+
title: 'Category',
|
|
25
|
+
url: '#'
|
|
26
|
+
}, {
|
|
27
|
+
title: 'Current Page'
|
|
28
|
+
}];
|
|
29
|
+
var BreadcrumbSemanticDemo = function BreadcrumbSemanticDemo() {
|
|
30
|
+
return /*#__PURE__*/_jsx(Breadcrumb, {
|
|
31
|
+
data: breadcrumbData
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
var breadcrumbSemantic = {
|
|
35
|
+
keys: [{
|
|
36
|
+
key: 'root',
|
|
37
|
+
cn: 'Breadcrumb 最外层容器',
|
|
38
|
+
en: 'Breadcrumb outermost wrapper element',
|
|
39
|
+
version: '3.10.0',
|
|
40
|
+
example: "<Breadcrumb\n classNames={{ root: 'my-breadcrumb' }}\n styles={{ root: { padding: '8px 0' } }}\n/>"
|
|
41
|
+
}, {
|
|
42
|
+
key: 'item',
|
|
43
|
+
cn: '每个面包屑项的容器',
|
|
44
|
+
en: 'Each breadcrumb item container',
|
|
45
|
+
version: '3.10.0',
|
|
46
|
+
example: "<Breadcrumb\n classNames={{ item: 'my-item' }}\n styles={{ item: { display: 'inline-flex' } }}\n/>"
|
|
47
|
+
}, {
|
|
48
|
+
key: 'separator',
|
|
49
|
+
cn: '分隔符节点',
|
|
50
|
+
en: 'Separator element between items',
|
|
51
|
+
version: '3.10.0',
|
|
52
|
+
example: "<Breadcrumb\n classNames={{ separator: 'my-separator' }}\n styles={{ separator: { margin: '0 8px' } }}\n/>"
|
|
53
|
+
}, {
|
|
54
|
+
key: 'content',
|
|
55
|
+
cn: '文本/链接内容节点',
|
|
56
|
+
en: 'Text or link content element',
|
|
57
|
+
version: '3.10.0',
|
|
58
|
+
example: "<Breadcrumb\n classNames={{ content: 'my-content' }}\n styles={{ content: { color: '#1890ff' } }}\n/>"
|
|
59
|
+
}, {
|
|
60
|
+
key: 'dropdown',
|
|
61
|
+
cn: '下拉面板(data 项为数组时展开的弹出层)',
|
|
62
|
+
en: 'Dropdown panel (popup when a data item is an array)',
|
|
63
|
+
version: '3.10.0',
|
|
64
|
+
example: "<Breadcrumb\n classNames={{ dropdown: 'my-dropdown' }}\n styles={{ dropdown: { borderRadius: 8 } }}\n/>"
|
|
65
|
+
}, {
|
|
66
|
+
key: 'dropdownItem',
|
|
67
|
+
cn: '下拉面板内每一项',
|
|
68
|
+
en: 'Each item inside the dropdown panel',
|
|
69
|
+
version: '3.10.0',
|
|
70
|
+
example: "<Breadcrumb\n classNames={{ dropdownItem: 'my-dropdown-item' }}\n styles={{ dropdownItem: { padding: '4px 12px' } }}\n/>"
|
|
71
|
+
}],
|
|
72
|
+
demo: BreadcrumbSemanticDemo
|
|
73
|
+
};
|
|
74
|
+
export default breadcrumbSemantic;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Button Semantic DOM 元数据。
|
|
3
|
+
*
|
|
4
|
+
* @see /docs/rfc/0001-semantic-dom.md
|
|
5
|
+
*/
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import Button from "./index";
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
+
var ButtonSemanticDemo = function ButtonSemanticDemo() {
|
|
11
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
12
|
+
style: {
|
|
13
|
+
width: '100%',
|
|
14
|
+
display: 'flex',
|
|
15
|
+
gap: 16,
|
|
16
|
+
alignItems: 'center',
|
|
17
|
+
flexWrap: 'wrap'
|
|
18
|
+
},
|
|
19
|
+
children: [/*#__PURE__*/_jsx(Button, {
|
|
20
|
+
type: "primary",
|
|
21
|
+
children: "Primary"
|
|
22
|
+
}), /*#__PURE__*/_jsx(Button, {
|
|
23
|
+
type: "default",
|
|
24
|
+
children: "Default"
|
|
25
|
+
}), /*#__PURE__*/_jsx(Button, {
|
|
26
|
+
type: "primary",
|
|
27
|
+
loading: true,
|
|
28
|
+
children: "Loading"
|
|
29
|
+
}), /*#__PURE__*/_jsx(Button, {
|
|
30
|
+
type: "danger",
|
|
31
|
+
disabled: true,
|
|
32
|
+
children: "Disabled"
|
|
33
|
+
})]
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
var buttonSemantic = {
|
|
37
|
+
keys: [{
|
|
38
|
+
key: 'root',
|
|
39
|
+
cn: '按钮元素(button 或 a 标签)',
|
|
40
|
+
en: 'Button element (button or anchor tag)',
|
|
41
|
+
version: '3.10.0',
|
|
42
|
+
example: "<Button\n classNames={{ root: 'my-button' }}\n styles={{ root: { borderRadius: 20 } }}\n>\n Click me\n</Button>"
|
|
43
|
+
}, {
|
|
44
|
+
key: 'loading',
|
|
45
|
+
cn: '加载指示器容器',
|
|
46
|
+
en: 'Loading indicator container',
|
|
47
|
+
version: '3.10.0',
|
|
48
|
+
example: "<Button\n loading\n classNames={{ loading: 'my-spinner' }}\n styles={{ loading: { marginRight: 8 } }}\n>\n Submitting\n</Button>"
|
|
49
|
+
}],
|
|
50
|
+
demo: ButtonSemanticDemo
|
|
51
|
+
};
|
|
52
|
+
export default buttonSemantic;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Card Semantic DOM 元数据。
|
|
3
|
+
*
|
|
4
|
+
* 文档站构建时通过 chunk 模板自动引入,渲染 Semantic tab。
|
|
5
|
+
*
|
|
6
|
+
* @see /docs/rfc/0001-semantic-dom.md
|
|
7
|
+
*/
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import { Card } from "./..";
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
+
var CardSemanticDemo = function CardSemanticDemo() {
|
|
13
|
+
return /*#__PURE__*/_jsxs(Card, {
|
|
14
|
+
style: {
|
|
15
|
+
width: 360
|
|
16
|
+
},
|
|
17
|
+
children: [/*#__PURE__*/_jsx(Card.Header, {
|
|
18
|
+
extra: "Extra",
|
|
19
|
+
children: "Card Title"
|
|
20
|
+
}), /*#__PURE__*/_jsx(Card.Body, {
|
|
21
|
+
children: "Card content goes here."
|
|
22
|
+
}), /*#__PURE__*/_jsx(Card.Footer, {
|
|
23
|
+
children: "Footer"
|
|
24
|
+
})]
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
var cardSemantic = {
|
|
28
|
+
keys: [{
|
|
29
|
+
key: 'root',
|
|
30
|
+
cn: 'Card 最外层容器',
|
|
31
|
+
en: 'Card outermost wrapper element',
|
|
32
|
+
version: '3.10.0',
|
|
33
|
+
example: "<Card\n classNames={{ root: 'my-card' }}\n styles={{ root: { borderRadius: 12 } }}\n/>"
|
|
34
|
+
}, {
|
|
35
|
+
key: 'header',
|
|
36
|
+
cn: '头部区域容器',
|
|
37
|
+
en: 'Header section container',
|
|
38
|
+
version: '3.10.0',
|
|
39
|
+
example: "<Card\n classNames={{ header: 'my-header' }}\n styles={{ header: { padding: '16px 24px' } }}\n/>"
|
|
40
|
+
}, {
|
|
41
|
+
key: 'headerContent',
|
|
42
|
+
cn: '头部标题内容区',
|
|
43
|
+
en: 'Header title content area',
|
|
44
|
+
version: '3.10.0',
|
|
45
|
+
example: "<Card\n classNames={{ headerContent: 'my-title' }}\n styles={{ headerContent: { fontWeight: 600 } }}\n/>"
|
|
46
|
+
}, {
|
|
47
|
+
key: 'headerExtra',
|
|
48
|
+
cn: '头部额外内容区',
|
|
49
|
+
en: 'Header extra content area',
|
|
50
|
+
version: '3.10.0',
|
|
51
|
+
example: "<Card\n classNames={{ headerExtra: 'my-extra' }}\n styles={{ headerExtra: { color: '#999' } }}\n/>"
|
|
52
|
+
}, {
|
|
53
|
+
key: 'body',
|
|
54
|
+
cn: '主内容区',
|
|
55
|
+
en: 'Main content area',
|
|
56
|
+
version: '3.10.0',
|
|
57
|
+
example: "<Card\n classNames={{ body: 'my-body' }}\n styles={{ body: { padding: '16px 24px' } }}\n/>"
|
|
58
|
+
}, {
|
|
59
|
+
key: 'footer',
|
|
60
|
+
cn: '底部区域',
|
|
61
|
+
en: 'Footer section',
|
|
62
|
+
version: '3.10.0',
|
|
63
|
+
example: "<Card\n classNames={{ footer: 'my-footer' }}\n styles={{ footer: { borderTop: '1px solid #f0f0f0' } }}\n/>"
|
|
64
|
+
}],
|
|
65
|
+
demo: CardSemanticDemo
|
|
66
|
+
};
|
|
67
|
+
export default cardSemantic;
|
package/esm/card/interface.d.ts
CHANGED
|
@@ -2,3 +2,4 @@ export type { CardProps as Props } from './card.type';
|
|
|
2
2
|
export type { CardHeaderProps as HeaderProps } from './header.type';
|
|
3
3
|
export type { CardBodyProps as BodyProps } from './body.type';
|
|
4
4
|
export type { CardFooterProps as FooterProps } from './footer.type';
|
|
5
|
+
export type { CardSemanticKey } from '@sheinx/base';
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Carousel Semantic DOM 元数据。
|
|
3
|
+
*
|
|
4
|
+
* 文档站构建时通过 chunk 模板自动引入,渲染 Semantic tab。
|
|
5
|
+
*
|
|
6
|
+
* @see /docs/rfc/0001-semantic-dom.md
|
|
7
|
+
*/
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import { Carousel } from "./..";
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
+
var CarouselSemanticDemo = function CarouselSemanticDemo() {
|
|
13
|
+
return /*#__PURE__*/_jsxs(Carousel, {
|
|
14
|
+
style: {
|
|
15
|
+
width: 400,
|
|
16
|
+
height: 200
|
|
17
|
+
},
|
|
18
|
+
showArrow: "always",
|
|
19
|
+
interval: 0,
|
|
20
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
21
|
+
style: {
|
|
22
|
+
background: '#364d79',
|
|
23
|
+
height: '100%',
|
|
24
|
+
display: 'flex',
|
|
25
|
+
alignItems: 'center',
|
|
26
|
+
justifyContent: 'center',
|
|
27
|
+
color: '#fff'
|
|
28
|
+
},
|
|
29
|
+
children: "Slide 1"
|
|
30
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
31
|
+
style: {
|
|
32
|
+
background: '#263c5a',
|
|
33
|
+
height: '100%',
|
|
34
|
+
display: 'flex',
|
|
35
|
+
alignItems: 'center',
|
|
36
|
+
justifyContent: 'center',
|
|
37
|
+
color: '#fff'
|
|
38
|
+
},
|
|
39
|
+
children: "Slide 2"
|
|
40
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
41
|
+
style: {
|
|
42
|
+
background: '#1a2d47',
|
|
43
|
+
height: '100%',
|
|
44
|
+
display: 'flex',
|
|
45
|
+
alignItems: 'center',
|
|
46
|
+
justifyContent: 'center',
|
|
47
|
+
color: '#fff'
|
|
48
|
+
},
|
|
49
|
+
children: "Slide 3"
|
|
50
|
+
})]
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
var carouselSemantic = {
|
|
54
|
+
keys: [{
|
|
55
|
+
key: 'root',
|
|
56
|
+
cn: 'Carousel 最外层容器',
|
|
57
|
+
en: 'Carousel outermost wrapper element',
|
|
58
|
+
version: '3.10.0',
|
|
59
|
+
example: "<Carousel\n classNames={{ root: 'my-carousel' }}\n styles={{ root: { borderRadius: 8 } }}\n/>"
|
|
60
|
+
}, {
|
|
61
|
+
key: 'slider',
|
|
62
|
+
cn: '滑动区域容器',
|
|
63
|
+
en: 'Slider container with overflow hidden',
|
|
64
|
+
version: '3.10.0',
|
|
65
|
+
example: "<Carousel\n classNames={{ slider: 'my-slider' }}\n styles={{ slider: { borderRadius: 8 } }}\n/>"
|
|
66
|
+
}, {
|
|
67
|
+
key: 'item',
|
|
68
|
+
cn: '每个轮播项',
|
|
69
|
+
en: 'Each carousel slide item',
|
|
70
|
+
version: '3.10.0',
|
|
71
|
+
example: "<Carousel\n classNames={{ item: 'my-item' }}\n styles={{ item: { padding: 16 } }}\n/>"
|
|
72
|
+
}, {
|
|
73
|
+
key: 'indicator',
|
|
74
|
+
cn: '指示器容器',
|
|
75
|
+
en: 'Indicator dots/numbers container',
|
|
76
|
+
version: '3.10.0',
|
|
77
|
+
example: "<Carousel\n classNames={{ indicator: 'my-indicator' }}\n styles={{ indicator: { bottom: 16 } }}\n/>"
|
|
78
|
+
}, {
|
|
79
|
+
key: 'indicatorItem',
|
|
80
|
+
cn: '每个指示器元素(支持函数式 classNames 接收 { active } 状态)',
|
|
81
|
+
en: 'Each indicator element (supports functional classNames with { active } state)',
|
|
82
|
+
version: '3.10.0',
|
|
83
|
+
example: "<Carousel\n classNames={{ indicatorItem: ({ active }) => active ? 'dot-active' : 'dot' }}\n styles={{ indicatorItem: { width: 8, height: 8 } }}\n/>"
|
|
84
|
+
}, {
|
|
85
|
+
key: 'arrow',
|
|
86
|
+
cn: '箭头按钮',
|
|
87
|
+
en: 'Arrow buttons (prev/next)',
|
|
88
|
+
version: '3.10.0',
|
|
89
|
+
example: "<Carousel\n classNames={{ arrow: 'my-arrow' }}\n styles={{ arrow: { opacity: 0.8 } }}\n/>"
|
|
90
|
+
}],
|
|
91
|
+
demo: CarouselSemanticDemo
|
|
92
|
+
};
|
|
93
|
+
export default carouselSemantic;
|