@dckj-npm/dc-material 0.1.8 → 0.1.10

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 (183) hide show
  1. package/README.md +17 -17
  2. package/lowcode/d-c-slider/meta.ts +331 -331
  3. package/lowcode/d-c-slider/snippets.ts +42 -42
  4. package/lowcode/grid-nav/meta.ts +160 -0
  5. package/lowcode/menu-list/meta.ts +147 -147
  6. package/lowcode/navigation/meta.ts +152 -151
  7. package/lowcode/position/meta.ts +211 -0
  8. package/lowcode/search-bar/meta.ts +54 -0
  9. package/lowcode/tag-c/meta.ts +75 -0
  10. package/lowcode/teletext-list/meta.ts +342 -300
  11. package/lowcode/title1/meta.ts +59 -59
  12. package/lowcode/title2/meta.ts +93 -93
  13. package/package.json +110 -110
  14. package/build/index.css +0 -2
  15. package/build/index.html +0 -1
  16. package/build/index.js +0 -53
  17. package/build/lowcode/assets-daily.json +0 -67
  18. package/build/lowcode/assets-dev.json +0 -67
  19. package/build/lowcode/assets-prod.json +0 -67
  20. package/build/lowcode/designer.html +0 -302
  21. package/build/lowcode/index.html +0 -304
  22. package/build/lowcode/index.js +0 -1
  23. package/build/lowcode/meta.js +0 -1
  24. package/build/lowcode/preview.css +0 -1
  25. package/build/lowcode/preview.html +0 -33
  26. package/build/lowcode/preview.js +0 -308
  27. package/build/lowcode/render/default/view.css +0 -1
  28. package/build/lowcode/render/default/view.js +0 -295
  29. package/build/lowcode/view.css +0 -1
  30. package/build/lowcode/view.js +0 -295
  31. package/dist/BizComps.css +0 -1
  32. package/dist/BizComps.js +0 -7
  33. package/dist/BizComps.js.map +0 -1
  34. package/es/assets/icon/navigation/index-selected.png +0 -0
  35. package/es/assets/icon/navigation/index.png +0 -0
  36. package/es/assets/icon/navigation/message-selected.png +0 -0
  37. package/es/assets/icon/navigation/message.png +0 -0
  38. package/es/assets/icon/navigation/mine-selected.png +0 -0
  39. package/es/assets/icon/navigation/mine.png +0 -0
  40. package/es/components/bottom-navigation/bottom-navigation.d.ts +0 -13
  41. package/es/components/bottom-navigation/bottom-navigation.js +0 -39
  42. package/es/components/bottom-navigation/index.d.ts +0 -3
  43. package/es/components/bottom-navigation/index.js +0 -2
  44. package/es/components/bottom-navigation/index.scss +0 -16
  45. package/es/components/colorful-button/colorful-button.d.ts +0 -12
  46. package/es/components/colorful-button/colorful-button.js +0 -25
  47. package/es/components/colorful-button/index.d.ts +0 -3
  48. package/es/components/colorful-button/index.js +0 -2
  49. package/es/components/colorful-button/index.scss +0 -5
  50. package/es/components/colorful-input/colorful-input.d.ts +0 -8
  51. package/es/components/colorful-input/colorful-input.js +0 -19
  52. package/es/components/colorful-input/index.d.ts +0 -3
  53. package/es/components/colorful-input/index.js +0 -2
  54. package/es/components/colorful-input/index.scss +0 -5
  55. package/es/components/dc-slider/index.d.ts +0 -3
  56. package/es/components/dc-slider/index.js +0 -2
  57. package/es/components/dc-slider/index.scss +0 -8
  58. package/es/components/dc-slider/slider.d.ts +0 -32
  59. package/es/components/dc-slider/slider.js +0 -14
  60. package/es/components/menu-list/index.d.ts +0 -6
  61. package/es/components/menu-list/index.js +0 -6
  62. package/es/components/menu-list/index.scss +0 -16
  63. package/es/components/menu-list/menu-list-item.d.ts +0 -5
  64. package/es/components/menu-list/menu-list-item.js +0 -32
  65. package/es/components/menu-list/menu-list-item.scss +0 -49
  66. package/es/components/menu-list/menu-list.d.ts +0 -5
  67. package/es/components/menu-list/menu-list.js +0 -25
  68. package/es/components/menu-list/types.d.ts +0 -23
  69. package/es/components/menu-list/types.js +0 -1
  70. package/es/components/teletext-list/index.d.ts +0 -6
  71. package/es/components/teletext-list/index.js +0 -6
  72. package/es/components/teletext-list/index.scss +0 -16
  73. package/es/components/teletext-list/teletext-list-item.d.ts +0 -42
  74. package/es/components/teletext-list/teletext-list-item.js +0 -50
  75. package/es/components/teletext-list/teletext-list-item.scss +0 -74
  76. package/es/components/teletext-list/teletext-list.d.ts +0 -53
  77. package/es/components/teletext-list/teletext-list.js +0 -73
  78. package/es/components/title/index.d.ts +0 -8
  79. package/es/components/title/index.js +0 -7
  80. package/es/components/title/title-1.d.ts +0 -10
  81. package/es/components/title/title-1.js +0 -16
  82. package/es/components/title/title-1.scss +0 -26
  83. package/es/components/title/title-2.d.ts +0 -18
  84. package/es/components/title/title-2.js +0 -31
  85. package/es/components/title/title-2.scss +0 -22
  86. package/es/index.d.ts +0 -14
  87. package/es/index.js +0 -8
  88. package/es/index.scss +0 -3
  89. package/es/style.js +0 -3
  90. package/es/variables.d.ts +0 -2
  91. package/es/variables.js +0 -2
  92. package/es/variables.scss +0 -3
  93. package/lib/assets/icon/navigation/index-selected.png +0 -0
  94. package/lib/assets/icon/navigation/index.png +0 -0
  95. package/lib/assets/icon/navigation/message-selected.png +0 -0
  96. package/lib/assets/icon/navigation/message.png +0 -0
  97. package/lib/assets/icon/navigation/mine-selected.png +0 -0
  98. package/lib/assets/icon/navigation/mine.png +0 -0
  99. package/lib/components/bottom-navigation/bottom-navigation.d.ts +0 -13
  100. package/lib/components/bottom-navigation/bottom-navigation.js +0 -46
  101. package/lib/components/bottom-navigation/index.d.ts +0 -3
  102. package/lib/components/bottom-navigation/index.js +0 -7
  103. package/lib/components/bottom-navigation/index.scss +0 -16
  104. package/lib/components/colorful-button/colorful-button.d.ts +0 -12
  105. package/lib/components/colorful-button/colorful-button.js +0 -32
  106. package/lib/components/colorful-button/index.d.ts +0 -3
  107. package/lib/components/colorful-button/index.js +0 -7
  108. package/lib/components/colorful-button/index.scss +0 -5
  109. package/lib/components/colorful-input/colorful-input.d.ts +0 -8
  110. package/lib/components/colorful-input/colorful-input.js +0 -26
  111. package/lib/components/colorful-input/index.d.ts +0 -3
  112. package/lib/components/colorful-input/index.js +0 -7
  113. package/lib/components/colorful-input/index.scss +0 -5
  114. package/lib/components/dc-slider/index.d.ts +0 -3
  115. package/lib/components/dc-slider/index.js +0 -7
  116. package/lib/components/dc-slider/index.scss +0 -8
  117. package/lib/components/dc-slider/slider.d.ts +0 -32
  118. package/lib/components/dc-slider/slider.js +0 -21
  119. package/lib/components/menu-list/index.d.ts +0 -6
  120. package/lib/components/menu-list/index.js +0 -10
  121. package/lib/components/menu-list/index.scss +0 -16
  122. package/lib/components/menu-list/menu-list-item.d.ts +0 -5
  123. package/lib/components/menu-list/menu-list-item.js +0 -37
  124. package/lib/components/menu-list/menu-list-item.scss +0 -49
  125. package/lib/components/menu-list/menu-list.d.ts +0 -5
  126. package/lib/components/menu-list/menu-list.js +0 -30
  127. package/lib/components/menu-list/types.d.ts +0 -23
  128. package/lib/components/menu-list/types.js +0 -3
  129. package/lib/components/teletext-list/index.d.ts +0 -6
  130. package/lib/components/teletext-list/index.js +0 -10
  131. package/lib/components/teletext-list/index.scss +0 -16
  132. package/lib/components/teletext-list/teletext-list-item.d.ts +0 -42
  133. package/lib/components/teletext-list/teletext-list-item.js +0 -54
  134. package/lib/components/teletext-list/teletext-list-item.scss +0 -74
  135. package/lib/components/teletext-list/teletext-list.d.ts +0 -53
  136. package/lib/components/teletext-list/teletext-list.js +0 -77
  137. package/lib/components/title/index.d.ts +0 -8
  138. package/lib/components/title/index.js +0 -8
  139. package/lib/components/title/title-1.d.ts +0 -10
  140. package/lib/components/title/title-1.js +0 -21
  141. package/lib/components/title/title-1.scss +0 -26
  142. package/lib/components/title/title-2.d.ts +0 -18
  143. package/lib/components/title/title-2.js +0 -36
  144. package/lib/components/title/title-2.scss +0 -22
  145. package/lib/index.d.ts +0 -14
  146. package/lib/index.js +0 -17
  147. package/lib/index.scss +0 -3
  148. package/lib/style.js +0 -3
  149. package/lib/variables.d.ts +0 -2
  150. package/lib/variables.js +0 -5
  151. package/lib/variables.scss +0 -3
  152. package/lowcode_es/d-c-slider/meta.d.ts +0 -140
  153. package/lowcode_es/d-c-slider/meta.js +0 -298
  154. package/lowcode_es/d-c-slider/snippets.d.ts +0 -36
  155. package/lowcode_es/d-c-slider/snippets.js +0 -36
  156. package/lowcode_es/menu-list/meta.d.ts +0 -22
  157. package/lowcode_es/menu-list/meta.js +0 -128
  158. package/lowcode_es/meta.js +0 -169
  159. package/lowcode_es/navigation/meta.d.ts +0 -22
  160. package/lowcode_es/navigation/meta.js +0 -135
  161. package/lowcode_es/teletext-list/meta.d.ts +0 -22
  162. package/lowcode_es/teletext-list/meta.js +0 -259
  163. package/lowcode_es/title1/meta.d.ts +0 -22
  164. package/lowcode_es/title1/meta.js +0 -51
  165. package/lowcode_es/title2/meta.d.ts +0 -22
  166. package/lowcode_es/title2/meta.js +0 -83
  167. package/lowcode_es/view.js +0 -18
  168. package/lowcode_lib/d-c-slider/meta.d.ts +0 -140
  169. package/lowcode_lib/d-c-slider/meta.js +0 -303
  170. package/lowcode_lib/d-c-slider/snippets.d.ts +0 -36
  171. package/lowcode_lib/d-c-slider/snippets.js +0 -40
  172. package/lowcode_lib/menu-list/meta.d.ts +0 -22
  173. package/lowcode_lib/menu-list/meta.js +0 -133
  174. package/lowcode_lib/meta.js +0 -173
  175. package/lowcode_lib/navigation/meta.d.ts +0 -22
  176. package/lowcode_lib/navigation/meta.js +0 -140
  177. package/lowcode_lib/teletext-list/meta.d.ts +0 -22
  178. package/lowcode_lib/teletext-list/meta.js +0 -264
  179. package/lowcode_lib/title1/meta.d.ts +0 -22
  180. package/lowcode_lib/title1/meta.js +0 -56
  181. package/lowcode_lib/title2/meta.d.ts +0 -22
  182. package/lowcode_lib/title2/meta.js +0 -88
  183. package/lowcode_lib/view.js +0 -29
@@ -1,53 +0,0 @@
1
- import React from 'react';
2
- import './index.scss';
3
- /**
4
- * 数据
5
- */
6
- interface DataProps {
7
- /**
8
- * 标题
9
- */
10
- title?: string;
11
- /**
12
- * 图片地址
13
- */
14
- image?: string;
15
- /**
16
- * 图片位置
17
- */
18
- imagePlacement?: "left" | "right" | "none";
19
- /**
20
- * 说明
21
- */
22
- description?: string;
23
- /**
24
- * 标签列表
25
- */
26
- tags?: {
27
- /**
28
- * 标签名称
29
- */
30
- name: string;
31
- /**
32
- * 标签颜色
33
- */
34
- color: string;
35
- }[];
36
- }
37
- export interface TeletextListProps {
38
- /**
39
- * 标题
40
- */
41
- title?: string;
42
- /**
43
- * 数据
44
- */
45
- dataList?: DataProps[];
46
- /**
47
- * 点击事件
48
- * @param e
49
- */
50
- onClick?: (e: any) => void;
51
- }
52
- declare const TeletextList: React.FC<TeletextListProps>;
53
- export default TeletextList;
@@ -1,73 +0,0 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
3
- var _excluded = ["title", "dataList", "onClick"];
4
- import React from 'react';
5
- import "./index.scss";
6
- import { Title1 } from "../title";
7
- import { default as TeletextListItem } from "./teletext-list-item";
8
-
9
- /**
10
- * 数据
11
- */
12
-
13
- var DEFAULT_DATA_1 = {
14
- image: 'https://img.alicdn.com/tps/TB16TQvOXXXXXbiaFXXXXXXXXXX-120-120.svg',
15
- imagePlacement: 'left',
16
- title: '标题名称',
17
- description: '说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字',
18
- tags: [{
19
- name: '报名火热',
20
- color: 'orange'
21
- }, {
22
- name: '人数众多',
23
- color: 'blue'
24
- }]
25
- };
26
- var DEFAULT_DATA_2 = {
27
- image: 'https://img.alicdn.com/tps/TB16TQvOXXXXXbiaFXXXXXXXXXX-120-120.svg',
28
- imagePlacement: 'right',
29
- title: '标题名称',
30
- description: '说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字',
31
- tags: [{
32
- name: '报名火热',
33
- color: 'orange'
34
- }, {
35
- name: '人数众多',
36
- color: 'blue'
37
- }]
38
- };
39
- var DEFAULT_DATA_3 = {
40
- title: '标题名称',
41
- description: '说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字',
42
- tags: [{
43
- name: '报名火热',
44
- color: 'orange'
45
- }, {
46
- name: '人数众多',
47
- color: 'blue'
48
- }]
49
- };
50
- var TeletextList = function TeletextList(_ref) {
51
- var _ref$title = _ref.title,
52
- title = _ref$title === void 0 ? '标题标题' : _ref$title,
53
- _ref$dataList = _ref.dataList,
54
- dataList = _ref$dataList === void 0 ? [DEFAULT_DATA_1, DEFAULT_DATA_2, DEFAULT_DATA_3] : _ref$dataList,
55
- _ref$onClick = _ref.onClick,
56
- onClick = _ref$onClick === void 0 ? function () {} : _ref$onClick,
57
- otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
58
- var _otherProps = otherProps || {};
59
- return /*#__PURE__*/React.createElement("div", _extends({
60
- className: "teletext-list__panel"
61
- }, _otherProps), /*#__PURE__*/React.createElement(Title1, {
62
- title: title
63
- }), /*#__PURE__*/React.createElement("div", {
64
- className: "teletext-list__panel__item-list"
65
- }, dataList.map(function (item, index) {
66
- return /*#__PURE__*/React.createElement(TeletextListItem, _extends({
67
- key: index,
68
- onClick: onClick
69
- }, item));
70
- })));
71
- };
72
- TeletextList.displayName = 'TeletextList';
73
- export default TeletextList;
@@ -1,8 +0,0 @@
1
- /**
2
- * 标题
3
- */
4
- import Title1 from './title-1';
5
- import Title2 from './title-2';
6
- export type { Title1Props } from './title-1';
7
- export type { Title2Props } from './title-2';
8
- export { Title1, Title2 };
@@ -1,7 +0,0 @@
1
- /**
2
- * 标题
3
- */
4
-
5
- import Title1 from "./title-1";
6
- import Title2 from "./title-2";
7
- export { Title1, Title2 };
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import './title-1.scss';
3
- export interface Title1Props {
4
- /**
5
- * 标题
6
- */
7
- title?: string;
8
- }
9
- declare const Title1: React.FC<Title1Props>;
10
- export default Title1;
@@ -1,16 +0,0 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
3
- var _excluded = ["title"];
4
- import React from 'react';
5
- import "./title-1.scss";
6
- var Title1 = function Title1(_ref) {
7
- var _ref$title = _ref.title,
8
- title = _ref$title === void 0 ? '标题标题' : _ref$title,
9
- otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
10
- var _otherProps = otherProps || {};
11
- return /*#__PURE__*/React.createElement("div", _extends({
12
- className: "custom-title-1"
13
- }, _otherProps), /*#__PURE__*/React.createElement("span", null, title));
14
- };
15
- Title1.displayName = 'Title1';
16
- export default Title1;
@@ -1,26 +0,0 @@
1
- @import '../../variables.scss';
2
-
3
- .custom-title-1 {
4
-
5
- & > span {
6
- position: relative;
7
- font-size: 17px;
8
- font-weight: 500;
9
- color: #000000;
10
- z-index: 1;
11
-
12
- &::after {
13
- content: '';
14
- position: absolute;
15
- bottom: -2px;
16
- left: 0;
17
- width: 100%;
18
- height: 5px;
19
- background: linear-gradient(-30deg, #95CDFE, #61A0FE);
20
- border-radius: 5px;
21
- opacity: 0.6;
22
- z-index: 0;
23
- }
24
- }
25
-
26
- }
@@ -1,18 +0,0 @@
1
- import React from 'react';
2
- import './title-2.scss';
3
- export interface Title2Props {
4
- /**
5
- * 标题
6
- */
7
- title?: string;
8
- /**
9
- * 颜色
10
- */
11
- color?: string;
12
- /**
13
- * tip颜色
14
- */
15
- tipColor?: string;
16
- }
17
- declare const Title2: React.FC<Title2Props>;
18
- export default Title2;
@@ -1,31 +0,0 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
3
- var _excluded = ["title", "color", "tipColor"];
4
- import React from 'react';
5
- import "./title-2.scss";
6
- var Title2 = function Title2(_ref) {
7
- var _ref$title = _ref.title,
8
- title = _ref$title === void 0 ? '标题标题' : _ref$title,
9
- _ref$color = _ref.color,
10
- color = _ref$color === void 0 ? '#144477' : _ref$color,
11
- _ref$tipColor = _ref.tipColor,
12
- tipColor = _ref$tipColor === void 0 ? '#388AF7' : _ref$tipColor,
13
- otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
14
- var _otherProps = otherProps || {};
15
- var colorStyle = color ? {
16
- color: color
17
- } : {};
18
- var tipColorStyle = tipColor ? {
19
- 'backgroundColor': tipColor
20
- } : {};
21
- return /*#__PURE__*/React.createElement("div", _extends({
22
- className: "custom-title-2"
23
- }, _otherProps), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
24
- className: "tips",
25
- style: tipColorStyle
26
- }), /*#__PURE__*/React.createElement("span", {
27
- style: colorStyle
28
- }, title)));
29
- };
30
- Title2.displayName = 'Title2';
31
- export default Title2;
@@ -1,22 +0,0 @@
1
- @import '../../variables.scss';
2
-
3
- .custom-title-2 {
4
-
5
- & > div {
6
- font-size: 16px;
7
- font-weight: 500;
8
- color: #144477;
9
- display: flex;
10
- gap: 3.5px;
11
- align-items: center;
12
-
13
- & > div.tips {
14
- content: '';
15
- display: inline-block;
16
- width: 3.5px;
17
- height: 14.5px;
18
- background-color: #388AF7;
19
- }
20
- }
21
-
22
- }
package/es/index.d.ts DELETED
@@ -1,14 +0,0 @@
1
- export type { ComponentProps } from './components/dc-slider';
2
- export { default as DCSlider } from './components/dc-slider';
3
- export type { NavigationProps } from './components/bottom-navigation';
4
- export { default as Navigation } from './components/bottom-navigation';
5
- export type { MenuListDataProps, MenuListProps } from './components/menu-list';
6
- export { default as MenuList } from './components/menu-list';
7
- export type { TeletextListProps } from './components/teletext-list';
8
- export { default as TeletextList } from './components/teletext-list';
9
- export type { Title1Props } from './components/title';
10
- export { Title1 } from './components/title';
11
- export type { Title2Props } from './components/title';
12
- export { Title2 } from './components/title';
13
- declare const bizCssPrefix = "bizpack";
14
- export { bizCssPrefix };
package/es/index.js DELETED
@@ -1,8 +0,0 @@
1
- export { default as DCSlider } from "./components/dc-slider";
2
- export { default as Navigation } from "./components/bottom-navigation";
3
- export { default as MenuList } from "./components/menu-list";
4
- export { default as TeletextList } from "./components/teletext-list";
5
- export { Title1 } from "./components/title";
6
- export { Title2 } from "./components/title";
7
- var bizCssPrefix = 'bizpack';
8
- export { bizCssPrefix };
package/es/index.scss DELETED
@@ -1,3 +0,0 @@
1
- @import './components/colorful-button/index.scss';
2
- @import './components/colorful-input/index.scss';
3
- @import './components/teletext-list/index.scss';
package/es/style.js DELETED
@@ -1,3 +0,0 @@
1
- import '@alifd/next/es/slider/style';
2
- import '@alilc/lowcode-materials/lib/style.js';
3
- import './index.scss';
package/es/variables.d.ts DELETED
@@ -1,2 +0,0 @@
1
- declare const bizCssPrefix = "bizpack";
2
- export { bizCssPrefix };
package/es/variables.js DELETED
@@ -1,2 +0,0 @@
1
- var bizCssPrefix = 'bizpack';
2
- export { bizCssPrefix };
package/es/variables.scss DELETED
@@ -1,3 +0,0 @@
1
- @import '~@alifd/next/variables.scss';
2
-
3
- $biz-css-prefix: '.bizpack';
Binary file
@@ -1,13 +0,0 @@
1
- import * as React from 'react';
2
- import './index.scss';
3
- interface Navigation {
4
- text: string;
5
- icon: string;
6
- selectedIcon: string;
7
- }
8
- export interface NavigationProps {
9
- itemArray: Navigation[];
10
- selectedColor: string;
11
- }
12
- declare const Navigation: React.FC<NavigationProps>;
13
- export default Navigation;
@@ -1,46 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- exports.__esModule = true;
5
- exports["default"] = void 0;
6
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
7
- var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
8
- var React = _interopRequireWildcard(require("react"));
9
- var _lowcodeMaterials = require("@alilc/lowcode-materials");
10
- require("./index.scss");
11
- var _excluded = ["itemArray", "selectedColor"];
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 && {}.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
- var Navigation = function bottomNavigation(_ref) {
15
- var itemArray = _ref.itemArray,
16
- selectedColor = _ref.selectedColor,
17
- otherProps = (0, _objectWithoutPropertiesLoose2["default"])(_ref, _excluded);
18
- var _React$useState = React.useState(0),
19
- activeNum = _React$useState[0],
20
- setActiveNum = _React$useState[1];
21
- var clickHandle = function clickHandle(index) {
22
- // 更新激活tab
23
- setActiveNum(index);
24
- };
25
- return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({
26
- className: "navigation"
27
- }, otherProps), itemArray.map(function (item, index) {
28
- var _item$selectedIcon;
29
- return /*#__PURE__*/React.createElement("div", {
30
- className: "navigation-item",
31
- onClick: function onClick() {
32
- return clickHandle(index);
33
- },
34
- style: {
35
- color: activeNum === index ? selectedColor !== null && selectedColor !== void 0 ? selectedColor : '#4598FF' : ''
36
- }
37
- }, /*#__PURE__*/React.createElement(_lowcodeMaterials.Image, {
38
- src: activeNum === index ? (_item$selectedIcon = item.selectedIcon) !== null && _item$selectedIcon !== void 0 ? _item$selectedIcon : item.icon : item.icon,
39
- style: {
40
- width: '24.5px',
41
- height: '24.5px'
42
- }
43
- }), /*#__PURE__*/React.createElement("span", null, item.text));
44
- }));
45
- };
46
- var _default = exports["default"] = Navigation;
@@ -1,3 +0,0 @@
1
- import Navigation from './bottom-navigation';
2
- export type { NavigationProps } from './bottom-navigation';
3
- export default Navigation;
@@ -1,7 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- exports.__esModule = true;
5
- exports["default"] = void 0;
6
- var _bottomNavigation = _interopRequireDefault(require("./bottom-navigation"));
7
- var _default = exports["default"] = _bottomNavigation["default"];
@@ -1,16 +0,0 @@
1
- .navigation {
2
- width: 100%;
3
- display: flex;
4
- justify-content: space-between;
5
- align-items: center;
6
- padding: 9px 50px 6px 50px;
7
- position: fixed;
8
- bottom: 0;
9
- &-item {
10
- display: flex;
11
- flex-direction: column;
12
- justify-content: center;
13
- align-items: center;
14
- cursor: pointer;
15
- }
16
- }
@@ -1,12 +0,0 @@
1
- import * as React from 'react';
2
- import './index.scss';
3
- export interface ColorfulButtonProps {
4
- /**
5
- * 类型
6
- */
7
- type?: "primary" | "secondary" | "normal";
8
- color?: string;
9
- style?: object;
10
- }
11
- declare const ColorfulButton: React.FC<ColorfulButtonProps>;
12
- export default ColorfulButton;
@@ -1,32 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- exports.__esModule = true;
5
- exports["default"] = void 0;
6
- var _button = _interopRequireDefault(require("@alifd/next/lib/button"));
7
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
8
- var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
9
- var React = _interopRequireWildcard(require("react"));
10
- require("./index.scss");
11
- var _excluded = ["type", "color", "style"];
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 && {}.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
- var ColorfulButton = function ColorfulButton(_ref) {
15
- var _ref$type = _ref.type,
16
- type = _ref$type === void 0 ? 'primary' : _ref$type,
17
- color = _ref.color,
18
- _ref$style = _ref.style,
19
- style = _ref$style === void 0 ? {} : _ref$style,
20
- otherProps = (0, _objectWithoutPropertiesLoose2["default"])(_ref, _excluded);
21
- var _style = style || {};
22
- if (color) {
23
- _style.backgroundColor = color;
24
- }
25
- var _otherProps = otherProps || {};
26
- _otherProps.style = _style;
27
- return /*#__PURE__*/React.createElement(_button["default"], (0, _extends2["default"])({
28
- type: type
29
- }, _otherProps), "fusion button");
30
- };
31
- ColorfulButton.displayName = 'ColorfulButton';
32
- var _default = exports["default"] = ColorfulButton;
@@ -1,3 +0,0 @@
1
- import ColorfulButton from './colorful-button';
2
- export type { ColorfulButtonProps } from './colorful-button';
3
- export default ColorfulButton;
@@ -1,7 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- exports.__esModule = true;
5
- exports["default"] = void 0;
6
- var _colorfulButton = _interopRequireDefault(require("./colorful-button"));
7
- var _default = exports["default"] = _colorfulButton["default"];
@@ -1,5 +0,0 @@
1
- @import '../../variables.scss';
2
-
3
- #{$biz-css-prefix}-colorful-button {
4
- border: 2px dashed blue;
5
- }
@@ -1,8 +0,0 @@
1
- import * as React from 'react';
2
- import './index.scss';
3
- export interface ColorfulInputProps {
4
- color?: string;
5
- style?: object;
6
- }
7
- declare const ColorfulInput: React.FC<ColorfulInputProps>;
8
- export default ColorfulInput;
@@ -1,26 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- exports.__esModule = true;
5
- exports["default"] = void 0;
6
- var _input = _interopRequireDefault(require("@alifd/next/lib/input"));
7
- var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
8
- var React = _interopRequireWildcard(require("react"));
9
- require("./index.scss");
10
- var _excluded = ["color", "style"];
11
- 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); }
12
- 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 && {}.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; }
13
- var ColorfulInput = function ColorfulInput(_ref) {
14
- var color = _ref.color,
15
- _ref$style = _ref.style,
16
- style = _ref$style === void 0 ? {} : _ref$style,
17
- otherProps = (0, _objectWithoutPropertiesLoose2["default"])(_ref, _excluded);
18
- var _style = style || {};
19
- if (color) {
20
- _style.backgroundColor = color;
21
- }
22
- var _otherProps = otherProps || {};
23
- _otherProps.style = _style;
24
- return /*#__PURE__*/React.createElement(_input["default"], _otherProps);
25
- };
26
- var _default = exports["default"] = ColorfulInput;
@@ -1,3 +0,0 @@
1
- import ColorfulInput from './colorful-input';
2
- export type { ColorfulInputProps } from './colorful-input';
3
- export default ColorfulInput;
@@ -1,7 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- exports.__esModule = true;
5
- exports["default"] = void 0;
6
- var _colorfulInput = _interopRequireDefault(require("./colorful-input"));
7
- var _default = exports["default"] = _colorfulInput["default"];
@@ -1,5 +0,0 @@
1
- @import '../../variables.scss';
2
-
3
- #{$biz-css-prefix}-colorful-button {
4
- border: 2px dashed blue;
5
- }
@@ -1,3 +0,0 @@
1
- import DCSlider from './slider';
2
- export type { ComponentProps } from './slider';
3
- export default DCSlider;
@@ -1,7 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- exports.__esModule = true;
5
- exports["default"] = void 0;
6
- var _slider = _interopRequireDefault(require("./slider"));
7
- var _default = exports["default"] = _slider["default"];
@@ -1,8 +0,0 @@
1
- /* write style here */
2
- .ExampleComponent {
3
-
4
- }
5
- .img{
6
- width: 100%;
7
- height: 100%;
8
- }
@@ -1,32 +0,0 @@
1
- import * as React from 'react';
2
- import './index.scss';
3
- export interface ComponentProps {
4
- prefix: string;
5
- animation: string;
6
- arrows: true;
7
- arrowSize: string;
8
- arrowPosition: string;
9
- arrowDirection: string;
10
- autoplaySpeed: number;
11
- dots: boolean;
12
- dotsDirection: string;
13
- draggable: boolean;
14
- infinite: boolean;
15
- slide: string;
16
- slideDirection: string;
17
- slidesToShow: number;
18
- slidesToScroll: number;
19
- speed: number;
20
- triggerType: string;
21
- centerPadding: string;
22
- cssEase: string;
23
- edgeFriction: number;
24
- swipe: boolean;
25
- touchMove: boolean;
26
- touchThreshold: number;
27
- useCSS: boolean;
28
- waitForAnimate: boolean;
29
- picUrls: string[];
30
- }
31
- declare const DCSlider: React.FC<ComponentProps>;
32
- export default DCSlider;
@@ -1,21 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- exports.__esModule = true;
5
- exports["default"] = void 0;
6
- var _slider = _interopRequireDefault(require("@alifd/next/lib/slider"));
7
- var React = _interopRequireWildcard(require("react"));
8
- var _lowcodeMaterials = require("@alilc/lowcode-materials");
9
- require("./index.scss");
10
- 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); }
11
- 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 && {}.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; }
12
- var DCSlider = function DCSlider(props) {
13
- return /*#__PURE__*/React.createElement("div", props, /*#__PURE__*/React.createElement(_slider["default"], props, props.picUrls && props.picUrls.length > 0 ? props.picUrls.map(function (url, index) {
14
- return /*#__PURE__*/React.createElement(_lowcodeMaterials.Image, {
15
- src: url,
16
- alt: "Slide",
17
- key: index
18
- });
19
- }) : /*#__PURE__*/React.createElement("div", null, "\u56FE\u7247\u4E3A\u7A7A")));
20
- };
21
- var _default = exports["default"] = DCSlider;
@@ -1,6 +0,0 @@
1
- /**
2
- * 菜单列表
3
- */
4
- import MenuList from './menu-list';
5
- export type { MenuListDataProps, MenuListProps } from './types';
6
- export default MenuList;