shineout 3.10.0-beta.8 → 3.10.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.
Files changed (261) hide show
  1. package/cjs/alert/alert.semantic.d.ts +4 -0
  2. package/cjs/alert/alert.semantic.js +62 -0
  3. package/cjs/avatar/avatar.semantic.d.ts +4 -0
  4. package/cjs/avatar/avatar.semantic.js +58 -0
  5. package/cjs/badge/badge.semantic.d.ts +4 -0
  6. package/cjs/badge/badge.semantic.js +64 -0
  7. package/cjs/badge/interface.d.ts +1 -0
  8. package/cjs/breadcrumb/breadcrumb.semantic.d.ts +4 -0
  9. package/cjs/breadcrumb/breadcrumb.semantic.js +82 -0
  10. package/cjs/breadcrumb/interface.d.ts +1 -0
  11. package/cjs/button/button.semantic.d.ts +4 -0
  12. package/cjs/button/button.semantic.js +59 -0
  13. package/cjs/button/interface.d.ts +1 -0
  14. package/cjs/card/card.semantic.d.ts +4 -0
  15. package/cjs/card/card.semantic.js +74 -0
  16. package/cjs/card/interface.d.ts +1 -0
  17. package/cjs/carousel/carousel.semantic.d.ts +4 -0
  18. package/cjs/carousel/carousel.semantic.js +100 -0
  19. package/cjs/carousel/interface.d.ts +1 -0
  20. package/cjs/cascader/cascader.semantic.d.ts +4 -0
  21. package/cjs/cascader/cascader.semantic.js +90 -0
  22. package/cjs/checkbox/checkbox.semantic.d.ts +4 -0
  23. package/cjs/checkbox/checkbox.semantic.js +54 -0
  24. package/cjs/collapse/collapse.semantic.d.ts +4 -0
  25. package/cjs/collapse/collapse.semantic.js +77 -0
  26. package/cjs/collapse/interface.d.ts +1 -0
  27. package/cjs/date-picker/date-picker.semantic.d.ts +4 -0
  28. package/cjs/date-picker/date-picker.semantic.js +75 -0
  29. package/cjs/descriptions/descriptions.semantic.d.ts +4 -0
  30. package/cjs/descriptions/descriptions.semantic.js +90 -0
  31. package/cjs/descriptions/interface.d.ts +1 -0
  32. package/cjs/divider/divider.semantic.d.ts +4 -0
  33. package/cjs/divider/divider.semantic.js +49 -0
  34. package/cjs/divider/interface.d.ts +1 -0
  35. package/cjs/drawer/drawer.js +11 -1
  36. package/cjs/drawer/drawer.semantic.d.ts +4 -0
  37. package/cjs/drawer/drawer.semantic.js +91 -0
  38. package/cjs/dropdown/dropdown.semantic.d.ts +4 -0
  39. package/cjs/dropdown/dropdown.semantic.js +82 -0
  40. package/cjs/dropdown/interface.d.ts +1 -0
  41. package/cjs/empty/empty.semantic.d.ts +4 -0
  42. package/cjs/empty/empty.semantic.js +44 -0
  43. package/cjs/empty/interface.d.ts +1 -0
  44. package/cjs/form/form.semantic.d.ts +4 -0
  45. package/cjs/form/form.semantic.js +91 -0
  46. package/cjs/gap/gap.semantic.d.ts +4 -0
  47. package/cjs/gap/gap.semantic.js +73 -0
  48. package/cjs/gap/interface.d.ts +1 -0
  49. package/cjs/grid/grid.semantic.d.ts +4 -0
  50. package/cjs/grid/grid.semantic.js +71 -0
  51. package/cjs/grid/interface.d.ts +1 -0
  52. package/cjs/image/image.semantic.d.ts +4 -0
  53. package/cjs/image/image.semantic.js +74 -0
  54. package/cjs/image/interface.d.ts +1 -0
  55. package/cjs/index.js +1 -1
  56. package/cjs/input/input.semantic.d.ts +4 -0
  57. package/cjs/input/input.semantic.js +50 -0
  58. package/cjs/link/interface.d.ts +1 -0
  59. package/cjs/link/link.semantic.d.ts +4 -0
  60. package/cjs/link/link.semantic.js +58 -0
  61. package/cjs/list/interface.d.ts +1 -0
  62. package/cjs/list/list.semantic.d.ts +4 -0
  63. package/cjs/list/list.semantic.js +64 -0
  64. package/cjs/menu/interface.d.ts +1 -0
  65. package/cjs/menu/menu.semantic.d.ts +4 -0
  66. package/cjs/menu/menu.semantic.js +111 -0
  67. package/cjs/message/interface.d.ts +1 -0
  68. package/cjs/message/message.semantic.d.ts +4 -0
  69. package/cjs/message/message.semantic.js +70 -0
  70. package/cjs/modal/modal.semantic.d.ts +4 -0
  71. package/cjs/modal/modal.semantic.js +86 -0
  72. package/cjs/pagination/interface.d.ts +1 -0
  73. package/cjs/pagination/pagination.semantic.d.ts +4 -0
  74. package/cjs/pagination/pagination.semantic.js +70 -0
  75. package/cjs/popover/interface.d.ts +1 -1
  76. package/cjs/popover/popover.semantic.d.ts +4 -0
  77. package/cjs/popover/popover.semantic.js +52 -0
  78. package/cjs/progress/interface.d.ts +1 -0
  79. package/cjs/progress/progress.semantic.d.ts +4 -0
  80. package/cjs/progress/progress.semantic.js +94 -0
  81. package/cjs/radio/radio.semantic.d.ts +4 -0
  82. package/cjs/radio/radio.semantic.js +54 -0
  83. package/cjs/rate/rate.semantic.d.ts +4 -0
  84. package/cjs/rate/rate.semantic.js +56 -0
  85. package/cjs/select/select.semantic.d.ts +4 -0
  86. package/cjs/select/select.semantic.js +93 -0
  87. package/cjs/skeleton/interface.d.ts +1 -0
  88. package/cjs/skeleton/skeleton.semantic.d.ts +4 -0
  89. package/cjs/skeleton/skeleton.semantic.js +58 -0
  90. package/cjs/slider/slider.semantic.d.ts +4 -0
  91. package/cjs/slider/slider.semantic.js +59 -0
  92. package/cjs/spin/spin.semantic.d.ts +4 -0
  93. package/cjs/spin/spin.semantic.js +113 -0
  94. package/cjs/steps/interface.d.ts +1 -0
  95. package/cjs/steps/steps.semantic.d.ts +4 -0
  96. package/cjs/steps/steps.semantic.js +81 -0
  97. package/cjs/switch/switch.semantic.d.ts +4 -0
  98. package/cjs/switch/switch.semantic.js +55 -0
  99. package/cjs/table/interface.d.ts +1 -1
  100. package/cjs/table/table.semantic.d.ts +4 -0
  101. package/cjs/table/table.semantic.js +136 -0
  102. package/cjs/table/table.type.d.ts +2 -1
  103. package/cjs/tabs/interface.d.ts +1 -0
  104. package/cjs/tabs/tabs.semantic.d.ts +4 -0
  105. package/cjs/tabs/tabs.semantic.js +121 -0
  106. package/cjs/tag/interface.d.ts +1 -1
  107. package/cjs/tag/tag.semantic.d.ts +4 -0
  108. package/cjs/tag/tag.semantic.js +63 -0
  109. package/cjs/tag/tag.type.d.ts +2 -1
  110. package/cjs/textarea/textarea.semantic.d.ts +4 -0
  111. package/cjs/textarea/textarea.semantic.js +46 -0
  112. package/cjs/tooltip/tooltip.semantic.d.ts +4 -0
  113. package/cjs/tooltip/tooltip.semantic.js +57 -0
  114. package/cjs/transfer/transfer.semantic.d.ts +4 -0
  115. package/cjs/transfer/transfer.semantic.js +71 -0
  116. package/cjs/tree/interface.d.ts +1 -1
  117. package/cjs/tree/tree.semantic.d.ts +4 -0
  118. package/cjs/tree/tree.semantic.js +83 -0
  119. package/cjs/tree/tree.type.d.ts +2 -1
  120. package/cjs/tree-select/tree-select.semantic.d.ts +4 -0
  121. package/cjs/tree-select/tree-select.semantic.js +89 -0
  122. package/cjs/upload/button.js +12 -1
  123. package/cjs/upload/image.js +4 -0
  124. package/cjs/upload/interface.d.ts +1 -1
  125. package/cjs/upload/upload.js +4 -0
  126. package/cjs/upload/upload.semantic.d.ts +4 -0
  127. package/cjs/upload/upload.semantic.js +50 -0
  128. package/cjs/upload/upload.type.d.ts +2 -1
  129. package/dist/shineout.js +4851 -3397
  130. package/dist/shineout.js.map +1 -1
  131. package/dist/shineout.min.js +1 -1
  132. package/dist/shineout.min.js.map +1 -1
  133. package/esm/alert/alert.semantic.d.ts +4 -0
  134. package/esm/alert/alert.semantic.js +54 -0
  135. package/esm/avatar/avatar.semantic.d.ts +4 -0
  136. package/esm/avatar/avatar.semantic.js +51 -0
  137. package/esm/badge/badge.semantic.d.ts +4 -0
  138. package/esm/badge/badge.semantic.js +57 -0
  139. package/esm/badge/interface.d.ts +1 -0
  140. package/esm/breadcrumb/breadcrumb.semantic.d.ts +4 -0
  141. package/esm/breadcrumb/breadcrumb.semantic.js +74 -0
  142. package/esm/breadcrumb/interface.d.ts +1 -0
  143. package/esm/button/button.semantic.d.ts +4 -0
  144. package/esm/button/button.semantic.js +52 -0
  145. package/esm/button/interface.d.ts +1 -0
  146. package/esm/card/card.semantic.d.ts +4 -0
  147. package/esm/card/card.semantic.js +67 -0
  148. package/esm/card/interface.d.ts +1 -0
  149. package/esm/carousel/carousel.semantic.d.ts +4 -0
  150. package/esm/carousel/carousel.semantic.js +93 -0
  151. package/esm/carousel/interface.d.ts +1 -0
  152. package/esm/cascader/cascader.semantic.d.ts +4 -0
  153. package/esm/cascader/cascader.semantic.js +82 -0
  154. package/esm/checkbox/checkbox.semantic.d.ts +4 -0
  155. package/esm/checkbox/checkbox.semantic.js +46 -0
  156. package/esm/collapse/collapse.semantic.d.ts +4 -0
  157. package/esm/collapse/collapse.semantic.js +70 -0
  158. package/esm/collapse/interface.d.ts +1 -0
  159. package/esm/date-picker/date-picker.semantic.d.ts +4 -0
  160. package/esm/date-picker/date-picker.semantic.js +67 -0
  161. package/esm/descriptions/descriptions.semantic.d.ts +4 -0
  162. package/esm/descriptions/descriptions.semantic.js +82 -0
  163. package/esm/descriptions/interface.d.ts +1 -0
  164. package/esm/divider/divider.semantic.d.ts +4 -0
  165. package/esm/divider/divider.semantic.js +42 -0
  166. package/esm/divider/interface.d.ts +1 -0
  167. package/esm/drawer/drawer.js +11 -1
  168. package/esm/drawer/drawer.semantic.d.ts +4 -0
  169. package/esm/drawer/drawer.semantic.js +83 -0
  170. package/esm/dropdown/dropdown.semantic.d.ts +4 -0
  171. package/esm/dropdown/dropdown.semantic.js +74 -0
  172. package/esm/dropdown/interface.d.ts +1 -0
  173. package/esm/empty/empty.semantic.d.ts +4 -0
  174. package/esm/empty/empty.semantic.js +36 -0
  175. package/esm/empty/interface.d.ts +1 -0
  176. package/esm/form/form.semantic.d.ts +4 -0
  177. package/esm/form/form.semantic.js +84 -0
  178. package/esm/gap/gap.semantic.d.ts +4 -0
  179. package/esm/gap/gap.semantic.js +66 -0
  180. package/esm/gap/interface.d.ts +1 -0
  181. package/esm/grid/grid.semantic.d.ts +4 -0
  182. package/esm/grid/grid.semantic.js +64 -0
  183. package/esm/grid/interface.d.ts +1 -0
  184. package/esm/image/image.semantic.d.ts +4 -0
  185. package/esm/image/image.semantic.js +67 -0
  186. package/esm/image/interface.d.ts +1 -0
  187. package/esm/index.js +1 -1
  188. package/esm/input/input.semantic.d.ts +4 -0
  189. package/esm/input/input.semantic.js +42 -0
  190. package/esm/link/interface.d.ts +1 -0
  191. package/esm/link/link.semantic.d.ts +4 -0
  192. package/esm/link/link.semantic.js +51 -0
  193. package/esm/list/interface.d.ts +1 -0
  194. package/esm/list/list.semantic.d.ts +4 -0
  195. package/esm/list/list.semantic.js +56 -0
  196. package/esm/menu/interface.d.ts +1 -0
  197. package/esm/menu/menu.semantic.d.ts +4 -0
  198. package/esm/menu/menu.semantic.js +103 -0
  199. package/esm/message/interface.d.ts +1 -0
  200. package/esm/message/message.semantic.d.ts +4 -0
  201. package/esm/message/message.semantic.js +59 -0
  202. package/esm/modal/modal.semantic.d.ts +4 -0
  203. package/esm/modal/modal.semantic.js +78 -0
  204. package/esm/pagination/interface.d.ts +1 -0
  205. package/esm/pagination/pagination.semantic.d.ts +4 -0
  206. package/esm/pagination/pagination.semantic.js +62 -0
  207. package/esm/popover/interface.d.ts +1 -1
  208. package/esm/popover/popover.semantic.d.ts +4 -0
  209. package/esm/popover/popover.semantic.js +45 -0
  210. package/esm/progress/interface.d.ts +1 -0
  211. package/esm/progress/progress.semantic.d.ts +4 -0
  212. package/esm/progress/progress.semantic.js +87 -0
  213. package/esm/radio/radio.semantic.d.ts +4 -0
  214. package/esm/radio/radio.semantic.js +46 -0
  215. package/esm/rate/rate.semantic.d.ts +4 -0
  216. package/esm/rate/rate.semantic.js +48 -0
  217. package/esm/select/select.semantic.d.ts +4 -0
  218. package/esm/select/select.semantic.js +85 -0
  219. package/esm/skeleton/interface.d.ts +1 -0
  220. package/esm/skeleton/skeleton.semantic.d.ts +4 -0
  221. package/esm/skeleton/skeleton.semantic.js +50 -0
  222. package/esm/slider/slider.semantic.d.ts +4 -0
  223. package/esm/slider/slider.semantic.js +51 -0
  224. package/esm/spin/spin.semantic.d.ts +4 -0
  225. package/esm/spin/spin.semantic.js +106 -0
  226. package/esm/steps/interface.d.ts +1 -0
  227. package/esm/steps/steps.semantic.d.ts +4 -0
  228. package/esm/steps/steps.semantic.js +74 -0
  229. package/esm/switch/switch.semantic.d.ts +4 -0
  230. package/esm/switch/switch.semantic.js +48 -0
  231. package/esm/table/interface.d.ts +1 -1
  232. package/esm/table/table.semantic.d.ts +4 -0
  233. package/esm/table/table.semantic.js +128 -0
  234. package/esm/table/table.type.d.ts +2 -1
  235. package/esm/tabs/interface.d.ts +1 -0
  236. package/esm/tabs/tabs.semantic.d.ts +4 -0
  237. package/esm/tabs/tabs.semantic.js +114 -0
  238. package/esm/tag/interface.d.ts +1 -1
  239. package/esm/tag/tag.semantic.d.ts +4 -0
  240. package/esm/tag/tag.semantic.js +56 -0
  241. package/esm/tag/tag.type.d.ts +2 -1
  242. package/esm/textarea/textarea.semantic.d.ts +4 -0
  243. package/esm/textarea/textarea.semantic.js +38 -0
  244. package/esm/tooltip/tooltip.semantic.d.ts +4 -0
  245. package/esm/tooltip/tooltip.semantic.js +49 -0
  246. package/esm/transfer/transfer.semantic.d.ts +4 -0
  247. package/esm/transfer/transfer.semantic.js +63 -0
  248. package/esm/tree/interface.d.ts +1 -1
  249. package/esm/tree/tree.semantic.d.ts +4 -0
  250. package/esm/tree/tree.semantic.js +75 -0
  251. package/esm/tree/tree.type.d.ts +2 -1
  252. package/esm/tree-select/tree-select.semantic.d.ts +4 -0
  253. package/esm/tree-select/tree-select.semantic.js +81 -0
  254. package/esm/upload/button.js +12 -1
  255. package/esm/upload/image.js +4 -0
  256. package/esm/upload/interface.d.ts +1 -1
  257. package/esm/upload/upload.js +4 -0
  258. package/esm/upload/upload.semantic.d.ts +4 -0
  259. package/esm/upload/upload.semantic.js +42 -0
  260. package/esm/upload/upload.type.d.ts +2 -1
  261. package/package.json +5 -5
@@ -0,0 +1,4 @@
1
+ import type { SemanticSchema } from '@sheinx/base';
2
+ import type { MessageSemanticKey } from '@sheinx/base';
3
+ declare const messageSemantic: SemanticSchema<MessageSemanticKey>;
4
+ export default messageSemantic;
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+
3
+ 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); }
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.default = void 0;
8
+ var _react = _interopRequireWildcard(require("react"));
9
+ var _index = _interopRequireDefault(require("./index"));
10
+ var _jsxRuntime = require("react/jsx-runtime");
11
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
13
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
14
+ /**
15
+ * Message Semantic DOM 元数据。
16
+ *
17
+ * 文档站构建时通过 chunk 模板自动引入,渲染 Semantic tab。
18
+ *
19
+ * @see /docs/rfc/0001-semantic-dom.md
20
+ */
21
+
22
+ var MessageSemanticDemo = function MessageSemanticDemo() {
23
+ var containerRef = (0, _react.useRef)(null);
24
+ (0, _react.useEffect)(function () {
25
+ if (!containerRef.current) return;
26
+ _index.default.info('This is an info message', 0, {
27
+ position: 'middle',
28
+ container: containerRef.current,
29
+ styles: {
30
+ message: {
31
+ marginBottom: 0
32
+ }
33
+ }
34
+ });
35
+ }, []);
36
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
37
+ ref: containerRef,
38
+ style: {
39
+ position: 'relative',
40
+ width: '100%',
41
+ height: '100%',
42
+ minHeight: 120,
43
+ transform: 'translateZ(0)',
44
+ overflow: 'hidden'
45
+ }
46
+ });
47
+ };
48
+ var messageSemantic = {
49
+ keys: [{
50
+ key: 'root',
51
+ cn: '最外层容器(按位置定位的消息管理器)',
52
+ en: 'Outermost wrapper (position-based message container)',
53
+ version: '3.10.0',
54
+ example: "Message.info('Hello', 3, {\n styles: { root: { zIndex: 2000 } }\n})"
55
+ }, {
56
+ key: 'item',
57
+ cn: '单条消息容器(动画控制层)',
58
+ en: 'Individual message wrapper (animation controller)',
59
+ version: '3.10.0',
60
+ example: "Message.info('Hello', 3, {\n classNames: { item: 'my-message-item' },\n styles: { item: { boxShadow: '0 4px 12px rgba(0,0,0,0.15)' } }\n})"
61
+ }, {
62
+ key: 'message',
63
+ cn: '消息内容区(Alert 包装层)',
64
+ en: 'Message content area (Alert wrapper)',
65
+ version: '3.10.0',
66
+ example: "Message.info('Hello', 3, {\n classNames: { message: 'my-message-content' },\n styles: { message: { borderRadius: 8 } }\n})"
67
+ }],
68
+ demo: MessageSemanticDemo
69
+ };
70
+ var _default = exports.default = messageSemantic;
@@ -0,0 +1,4 @@
1
+ import type { SemanticSchema } from '@sheinx/base';
2
+ import type { ModalSemanticKey } from '@sheinx/base';
3
+ declare const modalSemantic: SemanticSchema<ModalSemanticKey>;
4
+ export default modalSemantic;
@@ -0,0 +1,86 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _index = _interopRequireDefault(require("./index"));
9
+ var _button = _interopRequireDefault(require("../button"));
10
+ var _jsxRuntime = require("react/jsx-runtime");
11
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
+ /**
13
+ * Modal Semantic DOM 元数据。
14
+ *
15
+ * @see /docs/rfc/0001-semantic-dom.md
16
+ */
17
+
18
+ var ModalSemanticDemo = function ModalSemanticDemo() {
19
+ var containerRef = _react.default.useRef(null);
20
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
21
+ style: {
22
+ width: '100%',
23
+ height: '100%',
24
+ transform: 'translateZ(0)'
25
+ },
26
+ ref: containerRef,
27
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.default, {
28
+ visible: true,
29
+ title: "Modal Title",
30
+ footer: /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.default, {
31
+ children: "OK"
32
+ }),
33
+ container: function container() {
34
+ return containerRef.current;
35
+ },
36
+ children: "This is the modal body content."
37
+ })
38
+ });
39
+ };
40
+ var modalSemantic = {
41
+ keys: [{
42
+ key: 'root',
43
+ cn: '最外层容器(wrapper,控制动画和显示)',
44
+ en: 'Outermost wrapper (controls animation and visibility)',
45
+ version: '3.10.0',
46
+ example: "<Modal\n classNames={{ root: 'my-modal-wrapper' }}\n styles={{ root: { zIndex: 2000 } }}\n/>"
47
+ }, {
48
+ key: 'mask',
49
+ cn: '遮罩层',
50
+ en: 'Mask overlay layer',
51
+ version: '3.10.0',
52
+ example: "<Modal\n classNames={{ mask: 'my-mask' }}\n styles={{ mask: { backdropFilter: 'blur(4px)' } }}\n/>"
53
+ }, {
54
+ key: 'container',
55
+ cn: '内容面板',
56
+ en: 'Content panel',
57
+ version: '3.10.0',
58
+ example: "<Modal\n classNames={{ container: 'my-panel' }}\n styles={{ container: { borderRadius: 12 } }}\n/>"
59
+ }, {
60
+ key: 'header',
61
+ cn: '标题栏(包含标题文字和关闭按钮)',
62
+ en: 'Header area (contains title and close button)',
63
+ version: '3.10.0',
64
+ example: "<Modal\n title=\"Title\"\n classNames={{ header: 'my-header' }}\n styles={{ header: { borderBottom: '1px solid #eee' } }}\n/>"
65
+ }, {
66
+ key: 'body',
67
+ cn: '内容区',
68
+ en: 'Body content area',
69
+ version: '3.10.0',
70
+ example: "<Modal\n classNames={{ body: 'my-body' }}\n styles={{ body: { padding: 24 } }}\n/>"
71
+ }, {
72
+ key: 'footer',
73
+ cn: '底部操作区',
74
+ en: 'Footer action area',
75
+ version: '3.10.0',
76
+ example: "<Modal\n footer={<Button>OK</Button>}\n classNames={{ footer: 'my-footer' }}\n styles={{ footer: { borderTop: '1px solid #eee' } }}\n/>"
77
+ }, {
78
+ key: 'close',
79
+ cn: '关闭按钮',
80
+ en: 'Close button',
81
+ version: '3.10.0',
82
+ example: "<Modal\n classNames={{ close: 'my-close' }}\n styles={{ close: { color: 'red' } }}\n/>"
83
+ }],
84
+ demo: ModalSemanticDemo
85
+ };
86
+ var _default = exports.default = modalSemantic;
@@ -1 +1,2 @@
1
1
  export type { PaginationProps as Props, TextParams } from './pagination.type';
2
+ export type { PaginationSemanticKey } from '@sheinx/base';
@@ -0,0 +1,4 @@
1
+ import type { SemanticSchema } from '@sheinx/base';
2
+ import type { PaginationSemanticKey } from '@sheinx/base';
3
+ declare const paginationSemantic: SemanticSchema<PaginationSemanticKey>;
4
+ export default paginationSemantic;
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _ = require("./..");
9
+ var _jsxRuntime = require("react/jsx-runtime");
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
+ /**
12
+ * Pagination Semantic DOM 元数据。
13
+ *
14
+ * 文档站构建时通过 chunk 模板自动引入,渲染 Semantic tab。
15
+ *
16
+ * @see /docs/rfc/0001-semantic-dom.md
17
+ */
18
+
19
+ var PaginationSemanticDemo = function PaginationSemanticDemo() {
20
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_.Pagination, {
21
+ total: 200,
22
+ pageSize: 10,
23
+ defaultCurrent: 3,
24
+ layout: ['links', 'jumper', 'list'],
25
+ text: {
26
+ jumper: 'Go to {input}'
27
+ }
28
+ });
29
+ };
30
+ var paginationSemantic = {
31
+ keys: [{
32
+ key: 'root',
33
+ cn: 'Pagination 最外层容器',
34
+ en: 'Pagination outermost wrapper element',
35
+ version: '3.10.0',
36
+ example: "<Pagination\n classNames={{ root: 'my-pagination' }}\n styles={{ root: { padding: '8px 0' } }}\n/>"
37
+ }, {
38
+ key: 'item',
39
+ cn: '页码按钮(含 "..." 省略按钮)',
40
+ en: 'Page number button (including "..." more button)',
41
+ version: '3.10.0',
42
+ example: "<Pagination\n classNames={{ item: 'my-page-btn' }}\n styles={{ item: { borderRadius: '50%' } }}\n/>"
43
+ }, {
44
+ key: 'prev',
45
+ cn: '上一页按钮',
46
+ en: 'Previous page button',
47
+ version: '3.10.0',
48
+ example: "<Pagination\n classNames={{ prev: 'my-prev' }}\n styles={{ prev: { marginRight: 8 } }}\n/>"
49
+ }, {
50
+ key: 'next',
51
+ cn: '下一页按钮',
52
+ en: 'Next page button',
53
+ version: '3.10.0',
54
+ example: "<Pagination\n classNames={{ next: 'my-next' }}\n styles={{ next: { marginLeft: 8 } }}\n/>"
55
+ }, {
56
+ key: 'jumper',
57
+ cn: '跳转输入区域',
58
+ en: 'Jump-to-page input section',
59
+ version: '3.10.0',
60
+ example: "<Pagination\n classNames={{ jumper: 'my-jumper' }}\n styles={{ jumper: { marginLeft: 16 } }}\n/>"
61
+ }, {
62
+ key: 'sizeList',
63
+ cn: '每页条数选择区域',
64
+ en: 'Page size selector section',
65
+ version: '3.10.0',
66
+ example: "<Pagination\n classNames={{ sizeList: 'my-size-list' }}\n styles={{ sizeList: { marginLeft: 16 } }}\n/>"
67
+ }],
68
+ demo: PaginationSemanticDemo
69
+ };
70
+ var _default = exports.default = paginationSemantic;
@@ -1,2 +1,2 @@
1
- export type { PopoverProps as Props, PopoverPosition as Position } from './popover.type';
1
+ export type { PopoverProps as Props, PopoverPosition as Position, } from './popover.type';
2
2
  export type { PopoverConfirmProps as ConfirmProps } from './confirm.type';
@@ -0,0 +1,4 @@
1
+ import type { SemanticSchema } from '@sheinx/base';
2
+ import type { PopoverSemanticKey } from '@sheinx/base';
3
+ declare const popoverSemantic: SemanticSchema<PopoverSemanticKey>;
4
+ export default popoverSemantic;
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _popover = _interopRequireDefault(require("./popover"));
9
+ var _button = _interopRequireDefault(require("../button"));
10
+ var _jsxRuntime = require("react/jsx-runtime");
11
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
+ /**
13
+ * Popover Semantic DOM 元数据。
14
+ *
15
+ * 文档站构建时通过 chunk 模板自动引入,渲染 Semantic tab。
16
+ * 修改 key 列表即修改 PopoverSemanticKey 公开契约,需谨慎。
17
+ *
18
+ * @see /docs/rfc/0001-semantic-dom.md
19
+ */
20
+
21
+ var PopoverSemanticDemo = function PopoverSemanticDemo() {
22
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_button.default, {
23
+ mode: "outline",
24
+ children: ["Hover me", /*#__PURE__*/(0, _jsxRuntime.jsx)(_popover.default, {
25
+ visible: true,
26
+ children: "This is the popover content area."
27
+ })]
28
+ });
29
+ };
30
+ var popoverSemantic = {
31
+ keys: [{
32
+ key: 'root',
33
+ cn: '最外层弹层容器(与 className 等价)',
34
+ en: 'Outer wrapper of the popup (equivalent to className)',
35
+ version: '3.10.0',
36
+ example: "<Popover\n classNames={{\n root: 'my-classname'\n }}\n styles={{\n root: {\n color: 'red'\n }\n }}\n/>"
37
+ }, {
38
+ key: 'arrow',
39
+ cn: '指向触发元素的小箭头',
40
+ en: 'The small arrow pointing at the trigger element',
41
+ version: '3.10.0',
42
+ example: "<Popover\n classNames={{\n arrow: 'my-arrow'\n }}\n styles={{\n arrow: {\n background: '#fafafa'\n }\n }}\n/>"
43
+ }, {
44
+ key: 'content',
45
+ cn: '弹层内容承载区',
46
+ en: 'The inner content area',
47
+ version: '3.10.0',
48
+ example: "<Popover\n classNames={{\n content: 'my-content'\n }}\n styles={{\n content: {\n padding: 16,\n borderRadius: 8\n }\n }}\n/>"
49
+ }],
50
+ demo: PopoverSemanticDemo
51
+ };
52
+ var _default = exports.default = popoverSemantic;
@@ -1 +1,2 @@
1
1
  export type { ProgressProps as Props } from './progress.type';
2
+ export type { ProgressSemanticKey, ProgressClassNamesInfo } from '@sheinx/base';
@@ -0,0 +1,4 @@
1
+ import type { SemanticSchema } from '@sheinx/base';
2
+ import type { ProgressSemanticKey } from '@sheinx/base';
3
+ declare const progressSemantic: SemanticSchema<ProgressSemanticKey>;
4
+ export default progressSemantic;
@@ -0,0 +1,94 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _index = _interopRequireDefault(require("./index"));
9
+ var _jsxRuntime = require("react/jsx-runtime");
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
+ /**
12
+ * Progress Semantic DOM 元数据。
13
+ *
14
+ * 文档站构建时通过 chunk 模板自动引入,渲染 Semantic tab。
15
+ *
16
+ * @see /docs/rfc/0001-semantic-dom.md
17
+ */
18
+
19
+ var ProgressSemanticDemo = function ProgressSemanticDemo() {
20
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
21
+ style: {
22
+ width: '100%',
23
+ display: 'flex',
24
+ flexDirection: 'column',
25
+ gap: 24,
26
+ padding: 16
27
+ },
28
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index.default, {
29
+ shape: "line",
30
+ value: 60,
31
+ type: "info",
32
+ strokeWidth: 8
33
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.default, {
34
+ shape: "line",
35
+ value: 80,
36
+ type: "success",
37
+ icon: true
38
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
39
+ style: {
40
+ display: 'flex',
41
+ gap: 24
42
+ },
43
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index.default, {
44
+ shape: "circle",
45
+ value: 75,
46
+ size: 80,
47
+ strokeWidth: 6,
48
+ children: "75%"
49
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.default, {
50
+ shape: "circle",
51
+ value: 100,
52
+ type: "success",
53
+ size: 80,
54
+ strokeWidth: 6,
55
+ icon: true
56
+ })]
57
+ })]
58
+ });
59
+ };
60
+ var progressSemantic = {
61
+ keys: [{
62
+ key: 'root',
63
+ cn: '最外层容器',
64
+ en: 'Outermost wrapper element',
65
+ version: '3.10.0',
66
+ example: "<Progress\n classNames={{ root: 'my-progress' }}\n styles={{ root: { marginBottom: 16 } }}\n/>"
67
+ }, {
68
+ key: 'track',
69
+ cn: '背景轨道(line 模式为背景条;circle 模式为背景圆环)',
70
+ en: 'Background track (bar background for line; background circle for circle)',
71
+ version: '3.10.0',
72
+ example: "<Progress\n classNames={{ track: 'my-track' }}\n styles={{ track: { borderRadius: 4 } }}\n/>"
73
+ }, {
74
+ key: 'indicator',
75
+ cn: '进度前景条(line 模式为前景填充条;circle 模式为前景圆弧)',
76
+ en: 'Progress indicator (foreground bar for line; foreground arc for circle)',
77
+ version: '3.10.0',
78
+ example: "<Progress\n classNames={{ indicator: 'my-indicator' }}\n styles={{ indicator: { background: 'linear-gradient(90deg, #1890ff, #52c41a)' } }}\n/>"
79
+ }, {
80
+ key: 'content',
81
+ cn: '文字/自定义内容区域(children 渲染处)',
82
+ en: 'Content area where children are rendered',
83
+ version: '3.10.0',
84
+ example: "<Progress\n value={75}\n classNames={{ content: 'my-content' }}\n styles={{ content: { fontWeight: 'bold' } }}\n>\n 75%\n</Progress>"
85
+ }, {
86
+ key: 'icon',
87
+ cn: '状态图标区域',
88
+ en: 'Status icon area',
89
+ version: '3.10.0',
90
+ example: "<Progress\n icon\n type=\"success\"\n classNames={{ icon: 'my-icon' }}\n styles={{ icon: { color: 'green' } }}\n/>"
91
+ }],
92
+ demo: ProgressSemanticDemo
93
+ };
94
+ var _default = exports.default = progressSemantic;
@@ -0,0 +1,4 @@
1
+ import type { SemanticSchema } from '@sheinx/base';
2
+ import type { RadioSemanticKey } from '@sheinx/base';
3
+ declare const radioSemantic: SemanticSchema<RadioSemanticKey>;
4
+ export default radioSemantic;
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _ = require("./..");
9
+ var _jsxRuntime = require("react/jsx-runtime");
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
+ /**
12
+ * Radio Semantic DOM 元数据。
13
+ *
14
+ * 文档站构建时通过 chunk 模板自动引入,渲染 Semantic tab。
15
+ *
16
+ * @see /docs/rfc/0001-semantic-dom.md
17
+ */
18
+
19
+ var RadioSemanticDemo = function RadioSemanticDemo() {
20
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_.Radio.Group, {
21
+ keygen: true,
22
+ data: ['Option A', 'Option B', 'Option C'],
23
+ defaultValue: "Option A"
24
+ });
25
+ };
26
+ var radioSemantic = {
27
+ keys: [{
28
+ key: 'root',
29
+ cn: 'Radio 最外层容器',
30
+ en: 'Radio outermost wrapper element',
31
+ version: '3.10.0',
32
+ example: "<Radio\n classNames={{ root: 'my-radio' }}\n styles={{ root: { padding: '4px 0' } }}\n/>"
33
+ }, {
34
+ key: 'indicator',
35
+ cn: '单选框指示器区域(含圆形图标)',
36
+ en: 'Radio indicator area (includes the circle icon)',
37
+ version: '3.10.0',
38
+ example: "<Radio\n classNames={{ indicator: 'my-indicator' }}\n styles={{ indicator: { marginRight: 8 } }}\n/>"
39
+ }, {
40
+ key: 'label',
41
+ cn: '文字标签区域',
42
+ en: 'Label text area',
43
+ version: '3.10.0',
44
+ example: "<Radio\n classNames={{ label: 'my-label' }}\n styles={{ label: { fontWeight: 500 } }}\n/>"
45
+ }, {
46
+ key: 'group',
47
+ cn: 'Radio.Group 容器',
48
+ en: 'Radio.Group container',
49
+ version: '3.10.0',
50
+ example: "<Radio.Group\n classNames={{ group: 'my-group' }}\n styles={{ group: { gap: 16 } }}\n/>"
51
+ }],
52
+ demo: RadioSemanticDemo
53
+ };
54
+ var _default = exports.default = radioSemantic;
@@ -0,0 +1,4 @@
1
+ import type { SemanticSchema } from '@sheinx/base';
2
+ import type { RateSemanticKey } from '@sheinx/base';
3
+ declare const rateSemantic: SemanticSchema<RateSemanticKey>;
4
+ export default rateSemantic;
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _ = require("./..");
9
+ var _jsxRuntime = require("react/jsx-runtime");
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
+ /**
12
+ * Rate Semantic DOM 元数据。
13
+ *
14
+ * 文档站构建时通过 chunk 模板自动引入,渲染 Semantic tab。
15
+ *
16
+ * @see /docs/rfc/0001-semantic-dom.md
17
+ */
18
+
19
+ var star = /*#__PURE__*/(0, _jsxRuntime.jsx)("svg", {
20
+ viewBox: "0 0 24 24",
21
+ fill: "currentColor",
22
+ xmlns: "http://www.w3.org/2000/svg",
23
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
24
+ d: "M8.276 7.825L1.85649 8.7559L1.74278 8.77878C1.00761 8.96968 0.736859 9.90915 1.30093 10.4606L5.953 15.008L4.84231 21.3268L4.82911 21.4327C4.77288 22.2003 5.59415 22.7575 6.29763 22.3824L11.999 19.343L17.7023 22.3825L17.7988 22.4279C18.5105 22.7194 19.2948 22.1128 19.1578 21.3281L18.054 15.008L22.6997 10.46L22.7779 10.3745C23.2586 9.78723 22.9242 8.86973 22.1443 8.75601L15.758 7.825L12.895 2.05544C12.5264 1.31273 11.4661 1.31545 11.1013 2.06004L8.276 7.825Z"
25
+ })
26
+ });
27
+ var StarRate = (0, _.Rate)(star, star);
28
+ var RateSemanticDemo = function RateSemanticDemo() {
29
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(StarRate, {
30
+ defaultValue: 3,
31
+ text: ['Terrible', 'Bad', 'Normal', 'Good', 'Wonderful']
32
+ });
33
+ };
34
+ var rateSemantic = {
35
+ keys: [{
36
+ key: 'root',
37
+ cn: 'Rate 最外层容器',
38
+ en: 'Rate outermost wrapper element',
39
+ version: '3.10.0',
40
+ example: "<Rate\n classNames={{ root: 'my-rate' }}\n styles={{ root: { padding: '8px 0' } }}\n/>"
41
+ }, {
42
+ key: 'star',
43
+ cn: '每个评分项(星形图标)',
44
+ en: 'Each rating item (star icon)',
45
+ version: '3.10.0',
46
+ example: "<Rate\n classNames={{ star: 'my-star' }}\n styles={{ star: { marginRight: 4 } }}\n/>"
47
+ }, {
48
+ key: 'text',
49
+ cn: '附加文字区域',
50
+ en: 'Auxiliary text area',
51
+ version: '3.10.0',
52
+ example: "<Rate\n classNames={{ text: 'my-text' }}\n styles={{ text: { color: '#faad14' } }}\n/>"
53
+ }],
54
+ demo: RateSemanticDemo
55
+ };
56
+ var _default = exports.default = rateSemantic;
@@ -0,0 +1,4 @@
1
+ import type { SemanticSchema } from '@sheinx/base';
2
+ import type { SelectSemanticKey } from '@sheinx/base';
3
+ declare const selectSemantic: SemanticSchema<SelectSemanticKey>;
4
+ export default selectSemantic;
@@ -0,0 +1,93 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _ = require("./..");
9
+ var _jsxRuntime = require("react/jsx-runtime");
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
+ /**
12
+ * Select Semantic DOM 元数据。
13
+ *
14
+ * 文档站构建时通过 chunk 模板自动引入,渲染 Semantic tab。
15
+ *
16
+ * @see /docs/rfc/0001-semantic-dom.md
17
+ */
18
+
19
+ var data = [{
20
+ id: '1',
21
+ name: 'Apple'
22
+ }, {
23
+ id: '2',
24
+ name: 'Banana'
25
+ }, {
26
+ id: '3',
27
+ name: 'Cherry'
28
+ }, {
29
+ id: '4',
30
+ name: 'Date'
31
+ }, {
32
+ id: '5',
33
+ name: 'Elderberry'
34
+ }];
35
+ var SelectSemanticDemo = function SelectSemanticDemo() {
36
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
37
+ style: {
38
+ display: 'flex',
39
+ gap: 16
40
+ },
41
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_.Select, {
42
+ data: data,
43
+ keygen: "id",
44
+ renderItem: "name",
45
+ placeholder: "Select a fruit",
46
+ defaultValue: "1",
47
+ style: {
48
+ width: 240
49
+ }
50
+ })
51
+ });
52
+ };
53
+ var selectSemantic = {
54
+ keys: [{
55
+ key: 'root',
56
+ cn: 'Select 最外层容器',
57
+ en: 'Select outermost wrapper element',
58
+ version: '3.10.0',
59
+ example: "<Select classNames={{ root: 'my-select' }} styles={{ root: { border: '1px solid #eee' } }} />"
60
+ }, {
61
+ key: 'header',
62
+ cn: '结果区域(显示已选值 / placeholder)',
63
+ en: 'Header area (shows selected values / placeholder)',
64
+ version: '3.10.0',
65
+ example: "<Select classNames={{ header: 'my-header' }} styles={{ header: { padding: '8px' } }} />"
66
+ }, {
67
+ key: 'popup',
68
+ cn: '下拉面板',
69
+ en: 'Dropdown popup panel',
70
+ version: '3.10.0',
71
+ example: "<Select classNames={{ popup: 'my-popup' }} styles={{ popup: { background: '#fff' } }} />"
72
+ }, {
73
+ key: 'list',
74
+ cn: '选项列表容器',
75
+ en: 'Options list container',
76
+ version: '3.10.0',
77
+ example: "<Select classNames={{ list: 'my-list' }} styles={{ list: { padding: 8 } }} />"
78
+ }, {
79
+ key: 'option',
80
+ cn: '选项节点',
81
+ en: 'Option item',
82
+ version: '3.10.0',
83
+ example: "<Select classNames={{ option: 'my-option' }} styles={{ option: { borderRadius: 4 } }} />"
84
+ }, {
85
+ key: 'optionInner',
86
+ cn: '选项内容区域',
87
+ en: 'Option inner content area',
88
+ version: '3.10.0',
89
+ example: "<Select classNames={{ optionInner: 'my-option-inner' }} styles={{ optionInner: { padding: '4px 8px' } }} />"
90
+ }],
91
+ demo: SelectSemanticDemo
92
+ };
93
+ var _default = exports.default = selectSemantic;
@@ -1 +1,2 @@
1
1
  export type { SkeletonProps as Props } from './skeleton.type';
2
+ export type { SkeletonSemanticKey } from '@sheinx/base';
@@ -0,0 +1,4 @@
1
+ import type { SemanticSchema } from '@sheinx/base';
2
+ import type { SkeletonSemanticKey } from '@sheinx/base';
3
+ declare const skeletonSemantic: SemanticSchema<SkeletonSemanticKey>;
4
+ export default skeletonSemantic;