@dckj-npm/dc-material 0.1.87 → 0.1.88

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 (149) hide show
  1. package/build/lowcode/assets-daily.json +13 -13
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +13 -13
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.design.js +1 -1
  6. package/build/lowcode/meta.js +1 -1
  7. package/build/lowcode/preview.js +5 -5
  8. package/build/lowcode/render/default/view.css +1 -1
  9. package/build/lowcode/render/default/view.js +2 -2
  10. package/build/lowcode/view.css +1 -1
  11. package/build/lowcode/view.js +1 -1
  12. package/dist/BizComps.css +1 -1
  13. package/dist/BizComps.js +2 -2
  14. package/dist/BizComps.js.map +1 -1
  15. package/es/components/notice-bar/components/ScrollSwitcher.js +45 -0
  16. package/es/components/notice-bar/components/ScrollSwitcher.scss +17 -0
  17. package/es/components/notice-bar/index.scss +17 -4
  18. package/es/components/notice-bar/notice-bar-item.js +2 -0
  19. package/es/components/notice-bar/notice-bar.js +51 -17
  20. package/es/utils/time-util.js +18 -0
  21. package/lib/components/notice-bar/components/ScrollSwitcher.js +52 -0
  22. package/lib/components/notice-bar/components/ScrollSwitcher.scss +17 -0
  23. package/lib/components/notice-bar/index.scss +17 -4
  24. package/lib/components/notice-bar/notice-bar-item.js +2 -0
  25. package/lib/components/notice-bar/notice-bar.js +53 -17
  26. package/lib/utils/time-util.js +22 -0
  27. package/lowcode_es/meta.js +1 -1
  28. package/lowcode_lib/meta.js +1 -1
  29. package/package.json +2 -2
  30. package/es/components/bottom-navigation/bottom-navigation.d.ts +0 -15
  31. package/es/components/bottom-navigation/index.d.ts +0 -3
  32. package/es/components/button/button.d.ts +0 -14
  33. package/es/components/button/index.d.ts +0 -6
  34. package/es/components/carousel/carousel.d.ts +0 -14
  35. package/es/components/colorful-button/colorful-button.d.ts +0 -12
  36. package/es/components/colorful-button/index.d.ts +0 -3
  37. package/es/components/colorful-input/colorful-input.d.ts +0 -8
  38. package/es/components/colorful-input/index.d.ts +0 -3
  39. package/es/components/goods-card-list/goods-card-list-common.d.ts +0 -5
  40. package/es/components/goods-card-list/goods-card-list.d.ts +0 -5
  41. package/es/components/goods-card-list/index.d.ts +0 -4
  42. package/es/components/goods-card-list/types.d.ts +0 -45
  43. package/es/components/grid-nav/grid-nav.d.ts +0 -13
  44. package/es/components/grid-nav/index.d.ts +0 -3
  45. package/es/components/integral-task/index.d.ts +0 -6
  46. package/es/components/integral-task/integral-task.d.ts +0 -40
  47. package/es/components/menu-list/index.d.ts +0 -6
  48. package/es/components/menu-list/menu-list-item.d.ts +0 -5
  49. package/es/components/menu-list/menu-list.d.ts +0 -5
  50. package/es/components/menu-list/types.d.ts +0 -23
  51. package/es/components/message-list/index.d.ts +0 -6
  52. package/es/components/message-list/message-list-item.d.ts +0 -33
  53. package/es/components/message-list/message-list.d.ts +0 -28
  54. package/es/components/notice-bar/index.d.ts +0 -3
  55. package/es/components/notice-bar/notice-bar-item.d.ts +0 -18
  56. package/es/components/notice-bar/notice-bar.d.ts +0 -37
  57. package/es/components/position/entity.d.ts +0 -5
  58. package/es/components/position/index.d.ts +0 -3
  59. package/es/components/position/position-left.d.ts +0 -9
  60. package/es/components/position/position-list.d.ts +0 -12
  61. package/es/components/position/position.d.ts +0 -8
  62. package/es/components/radio-group/index.d.ts +0 -8
  63. package/es/components/radio-group/radio-group-item.d.ts +0 -48
  64. package/es/components/radio-group/radio-group.d.ts +0 -52
  65. package/es/components/rich-text/index.d.ts +0 -6
  66. package/es/components/rich-text/rich-text.d.ts +0 -14
  67. package/es/components/search-bar/index.d.ts +0 -3
  68. package/es/components/search-bar/search-bar.d.ts +0 -7
  69. package/es/components/swiper/index.d.ts +0 -3
  70. package/es/components/swiper/swiper.d.ts +0 -47
  71. package/es/components/tab/index.d.ts +0 -6
  72. package/es/components/tab/tab.d.ts +0 -27
  73. package/es/components/tab-container/index.d.ts +0 -3
  74. package/es/components/tab-container/tab-container.d.ts +0 -10
  75. package/es/components/tab-container-item/index.d.ts +0 -3
  76. package/es/components/tab-container-item/tab-container-item.d.ts +0 -11
  77. package/es/components/tag/index.d.ts +0 -6
  78. package/es/components/tag/tag.d.ts +0 -14
  79. package/es/components/teletext-list/index.d.ts +0 -6
  80. package/es/components/teletext-list/teletext-list-item.d.ts +0 -33
  81. package/es/components/teletext-list/teletext-list.d.ts +0 -52
  82. package/es/components/title/index.d.ts +0 -8
  83. package/es/components/title/title-1.d.ts +0 -10
  84. package/es/components/title/title-2.d.ts +0 -18
  85. package/es/index.d.ts +0 -42
  86. package/es/utils/children-node-handle.d.ts +0 -9
  87. package/es/utils/component-wrapper.d.ts +0 -9
  88. package/es/utils/debounce.d.ts +0 -1
  89. package/es/variables.d.ts +0 -2
  90. package/lib/components/bottom-navigation/bottom-navigation.d.ts +0 -15
  91. package/lib/components/bottom-navigation/index.d.ts +0 -3
  92. package/lib/components/button/button.d.ts +0 -14
  93. package/lib/components/button/index.d.ts +0 -6
  94. package/lib/components/carousel/carousel.d.ts +0 -14
  95. package/lib/components/colorful-button/colorful-button.d.ts +0 -12
  96. package/lib/components/colorful-button/index.d.ts +0 -3
  97. package/lib/components/colorful-input/colorful-input.d.ts +0 -8
  98. package/lib/components/colorful-input/index.d.ts +0 -3
  99. package/lib/components/goods-card-list/goods-card-list-common.d.ts +0 -5
  100. package/lib/components/goods-card-list/goods-card-list.d.ts +0 -5
  101. package/lib/components/goods-card-list/index.d.ts +0 -4
  102. package/lib/components/goods-card-list/types.d.ts +0 -45
  103. package/lib/components/grid-nav/grid-nav.d.ts +0 -13
  104. package/lib/components/grid-nav/index.d.ts +0 -3
  105. package/lib/components/integral-task/index.d.ts +0 -6
  106. package/lib/components/integral-task/integral-task.d.ts +0 -40
  107. package/lib/components/menu-list/index.d.ts +0 -6
  108. package/lib/components/menu-list/menu-list-item.d.ts +0 -5
  109. package/lib/components/menu-list/menu-list.d.ts +0 -5
  110. package/lib/components/menu-list/types.d.ts +0 -23
  111. package/lib/components/message-list/index.d.ts +0 -6
  112. package/lib/components/message-list/message-list-item.d.ts +0 -33
  113. package/lib/components/message-list/message-list.d.ts +0 -28
  114. package/lib/components/notice-bar/index.d.ts +0 -3
  115. package/lib/components/notice-bar/notice-bar-item.d.ts +0 -18
  116. package/lib/components/notice-bar/notice-bar.d.ts +0 -37
  117. package/lib/components/position/entity.d.ts +0 -5
  118. package/lib/components/position/index.d.ts +0 -3
  119. package/lib/components/position/position-left.d.ts +0 -9
  120. package/lib/components/position/position-list.d.ts +0 -12
  121. package/lib/components/position/position.d.ts +0 -8
  122. package/lib/components/radio-group/index.d.ts +0 -8
  123. package/lib/components/radio-group/radio-group-item.d.ts +0 -48
  124. package/lib/components/radio-group/radio-group.d.ts +0 -52
  125. package/lib/components/rich-text/index.d.ts +0 -6
  126. package/lib/components/rich-text/rich-text.d.ts +0 -14
  127. package/lib/components/search-bar/index.d.ts +0 -3
  128. package/lib/components/search-bar/search-bar.d.ts +0 -7
  129. package/lib/components/swiper/index.d.ts +0 -3
  130. package/lib/components/swiper/swiper.d.ts +0 -47
  131. package/lib/components/tab/index.d.ts +0 -6
  132. package/lib/components/tab/tab.d.ts +0 -27
  133. package/lib/components/tab-container/index.d.ts +0 -3
  134. package/lib/components/tab-container/tab-container.d.ts +0 -10
  135. package/lib/components/tab-container-item/index.d.ts +0 -3
  136. package/lib/components/tab-container-item/tab-container-item.d.ts +0 -11
  137. package/lib/components/tag/index.d.ts +0 -6
  138. package/lib/components/tag/tag.d.ts +0 -14
  139. package/lib/components/teletext-list/index.d.ts +0 -6
  140. package/lib/components/teletext-list/teletext-list-item.d.ts +0 -33
  141. package/lib/components/teletext-list/teletext-list.d.ts +0 -52
  142. package/lib/components/title/index.d.ts +0 -8
  143. package/lib/components/title/title-1.d.ts +0 -10
  144. package/lib/components/title/title-2.d.ts +0 -18
  145. package/lib/index.d.ts +0 -42
  146. package/lib/utils/children-node-handle.d.ts +0 -9
  147. package/lib/utils/component-wrapper.d.ts +0 -9
  148. package/lib/utils/debounce.d.ts +0 -1
  149. package/lib/variables.d.ts +0 -2
@@ -1,48 +0,0 @@
1
- import React from 'react';
2
- import './index.scss';
3
- export type RadioGroupItemType = 'button' | 'text';
4
- export interface RadioGroupItemProps {
5
- /**
6
- * 选项
7
- */
8
- label: string;
9
- /**
10
- * 值
11
- */
12
- value: string;
13
- /**
14
- * 是否选中
15
- */
16
- checked: boolean;
17
- /**
18
- * 选中颜色
19
- */
20
- selectColor?: string;
21
- /**
22
- * 选中的文字颜色
23
- */
24
- selectTextColor?: string;
25
- /**
26
- * 未选中颜色
27
- */
28
- unSelectColor?: string;
29
- /**
30
- * 未选中的文字颜色
31
- */
32
- unSelectTextColor?: string;
33
- /**
34
- * 类型
35
- */
36
- type?: RadioGroupItemType;
37
- /**
38
- * 名称
39
- */
40
- name: string;
41
- /**
42
- * 改变事件
43
- * @param value
44
- */
45
- onChange: (value: string) => void;
46
- }
47
- declare const RadioGroupItem: React.FC<RadioGroupItemProps>;
48
- export default RadioGroupItem;
@@ -1,52 +0,0 @@
1
- import React from 'react';
2
- import './index.scss';
3
- export interface RadioType {
4
- label: string;
5
- value: string;
6
- }
7
- export type RadioGroupItemType = 'button' | 'text';
8
- export interface RadioGroupProps {
9
- /**
10
- * 选项
11
- */
12
- options: Array<RadioType>;
13
- /**
14
- * 默认值
15
- */
16
- defaultValue?: string;
17
- /**
18
- * 是否换行
19
- */
20
- isWrap?: boolean;
21
- /**
22
- * 选中颜色
23
- */
24
- selectColor?: string;
25
- /**
26
- * 选中的文字颜色
27
- */
28
- selectTextColor?: string;
29
- /**
30
- * 未选中颜色
31
- */
32
- unSelectColor?: string;
33
- /**
34
- * 未选中的文字颜色
35
- */
36
- unSelectTextColor?: string;
37
- /**
38
- * 改变事件
39
- * @param value
40
- */
41
- onChange?: (value: string) => void;
42
- /**
43
- * 类型
44
- */
45
- type?: RadioGroupItemType;
46
- /**
47
- * 名称
48
- */
49
- name?: string;
50
- }
51
- declare const RadioGroup: React.FC<RadioGroupProps>;
52
- export default RadioGroup;
@@ -1,6 +0,0 @@
1
- /**
2
- * 富文本
3
- */
4
- import RichText from './rich-text';
5
- export type { RichTextProps } from './rich-text';
6
- export { RichText, };
@@ -1,14 +0,0 @@
1
- /// <reference types="react" />
2
- import './index.scss';
3
- interface DataProps {
4
- content?: string;
5
- }
6
- export interface RichTextProps {
7
- content?: string;
8
- dataList?: DataProps[];
9
- }
10
- declare const RichText: {
11
- (props: RichTextProps): JSX.Element;
12
- displayName: string;
13
- };
14
- export default RichText;
@@ -1,3 +0,0 @@
1
- import SearchBar from "./search-bar";
2
- export type { SearchBarProps } from './search-bar';
3
- export default SearchBar;
@@ -1,7 +0,0 @@
1
- import * as React from 'react';
2
- export interface SearchBarProps {
3
- defaultValue: string;
4
- onSearch: () => void;
5
- }
6
- declare const SearchBar: React.ForwardRefExoticComponent<SearchBarProps & React.RefAttributes<any>>;
7
- export default SearchBar;
@@ -1,3 +0,0 @@
1
- import Swiper from './swiper';
2
- export type { ComponentProps } from './swiper';
3
- export default Swiper;
@@ -1,47 +0,0 @@
1
- import * as React from 'react';
2
- import './index.scss';
3
- import 'swiper/swiper.min.css';
4
- export interface ComponentProps {
5
- /**
6
- * 设定初始化时slide的索引
7
- */
8
- initialSlide?: number;
9
- /**
10
- * 设定初始化时slide的索引
11
- */
12
- direction?: 'vertical' | 'horizontal';
13
- /**
14
- * 切换速度,单位ms
15
- */
16
- speed?: number;
17
- /**
18
- * 展示数量
19
- */
20
- slidesPerView: number;
21
- /**
22
- * 高度
23
- */
24
- height: number;
25
- /**
26
- * 自动高度
27
- */
28
- autoHeight: boolean;
29
- /**
30
- * 自动播放
31
- */
32
- autoplay: boolean;
33
- /**
34
- * 循环播放
35
- */
36
- loop: boolean;
37
- /**
38
- * 图片间距
39
- */
40
- spaceBetween: number;
41
- /**
42
- * 图片路径
43
- */
44
- picUrls: string[];
45
- }
46
- declare const DCSlider: React.FC<ComponentProps>;
47
- export default DCSlider;
@@ -1,6 +0,0 @@
1
- /**
2
- * 标签tag
3
- */
4
- import Tab from './tab';
5
- export type { TabProps } from './tab';
6
- export default Tab;
@@ -1,27 +0,0 @@
1
- import * as React from 'react';
2
- import './index.scss';
3
- export interface TabProps {
4
- /**
5
- * 选中背景颜色
6
- */
7
- selectedBGColor: string;
8
- /**
9
- * 选中字体颜色
10
- */
11
- selectedFontColor: string;
12
- /**
13
- * 尺寸 small | large
14
- */
15
- size: string;
16
- /**
17
- * 点击事件
18
- * @param e
19
- */
20
- onClickHandle?: (e: string) => void;
21
- /**
22
- * 未读消息数量
23
- */
24
- unreadCount?: number;
25
- }
26
- declare const Tab: React.FC<TabProps>;
27
- export default Tab;
@@ -1,3 +0,0 @@
1
- import { TabContainer } from '../tab-container/tab-container';
2
- export type { TabContainerProps } from '../tab-container/tab-container';
3
- export default TabContainer;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import { Tab } from '@alifd/next';
3
- import './index.scss';
4
- export interface TabContainerProps extends React.ComponentProps<typeof Tab> {
5
- className?: string;
6
- }
7
- export declare const TabContainer: {
8
- (props: TabContainerProps): JSX.Element;
9
- displayName: string;
10
- };
@@ -1,3 +0,0 @@
1
- import { TabContainerItem } from './tab-container-item';
2
- export type { TabContainerItemProps } from './tab-container-item';
3
- export default TabContainerItem;
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import { Tab } from '@alifd/next';
3
- export interface TabContainerItemProps extends React.ComponentProps<typeof Tab> {
4
- className?: string;
5
- tab: string;
6
- key: string;
7
- }
8
- export declare const TabContainerItem: {
9
- (props: TabContainerItemProps): JSX.Element;
10
- displayName: string;
11
- };
@@ -1,6 +0,0 @@
1
- /**
2
- * 标签tag
3
- */
4
- import Tag from './tag';
5
- export type { TagProps } from './tag';
6
- export default Tag;
@@ -1,14 +0,0 @@
1
- import * as React from 'react';
2
- import './index.scss';
3
- export interface TagProps {
4
- /**
5
- * 标签名称
6
- */
7
- name: string;
8
- /**
9
- * 标签颜色
10
- */
11
- color: string;
12
- }
13
- declare const Tag: React.FC<TagProps>;
14
- export default Tag;
@@ -1,6 +0,0 @@
1
- /**
2
- * 图文列表
3
- */
4
- import TeletextList from './teletext-list';
5
- export type { TeletextListProps } from './teletext-list';
6
- export { TeletextList, };
@@ -1,33 +0,0 @@
1
- import React from 'react';
2
- import './teletext-list-item.scss';
3
- /**
4
- * 数据
5
- */
6
- export interface TeletextListItemProps {
7
- /**
8
- * 点击事件
9
- */
10
- onClick?: (e: any) => void;
11
- /**
12
- * 标题
13
- */
14
- title?: string;
15
- /**
16
- * 图片地址
17
- */
18
- image?: string[];
19
- /**
20
- * 图片位置
21
- */
22
- imagePlacement?: 'left' | 'right' | 'none';
23
- /**
24
- * 说明
25
- */
26
- description?: string;
27
- /**
28
- * 标签列表
29
- */
30
- tags?: string;
31
- }
32
- declare const TeletextListItem: React.FC<TeletextListItemProps>;
33
- export default TeletextListItem;
@@ -1,52 +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
- description?: string;
19
- /**
20
- * 标签列表
21
- */
22
- tags?: string;
23
- /**
24
- * 链接地址
25
- */
26
- link?: string;
27
- }
28
- export interface TeletextListProps {
29
- /**
30
- * 标题
31
- */
32
- title?: string;
33
- /**
34
- * 数据
35
- */
36
- dataList?: DataProps[];
37
- /**
38
- * 点击事件
39
- * @param e
40
- */
41
- onClick?: (e: any) => void;
42
- /**
43
- * 子节点
44
- */
45
- children: React.ReactChild;
46
- /**
47
- * 图片位置
48
- */
49
- imagePlacement?: 'left' | 'right' | 'none';
50
- }
51
- declare const TeletextList: React.FC<TeletextListProps>;
52
- 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,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,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;
package/lib/index.d.ts DELETED
@@ -1,42 +0,0 @@
1
- export type { ComponentProps } from './components/swiper';
2
- export { default as Swiper } from './components/swiper';
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 { 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
- export type { GridNavProps } from './components/grid-nav';
14
- export { default as GridNav } from './components/grid-nav';
15
- export type { SearchBarProps } from './components/search-bar';
16
- export { default as SearchBar } from './components/search-bar';
17
- export type { LocationProps } from './components/position';
18
- export { default as Position } from './components/position';
19
- export type { TagProps } from './components/tag';
20
- export { default as TagC } from './components/tag';
21
- export type { MessageListProps } from './components/message-list';
22
- export { default as MessageList } from './components/message-list';
23
- export type { TabProps } from './components/tab';
24
- export { default as TabMessage } from './components/tab';
25
- export type { NoticeBarProps } from './components/notice-bar';
26
- export { default as NoticeBar } from './components/notice-bar';
27
- export type { TabContainerProps } from './components/tab-container';
28
- export { default as TabContainer } from './components/tab-container';
29
- export type { TabContainerItemProps } from './components/tab-container-item';
30
- export { default as TabContainerItem } from './components/tab-container-item';
31
- export type { IntegralTaskProps } from './components/integral-task';
32
- export { default as IntegralTask } from './components/integral-task';
33
- export type { ButtonProps } from './components/button';
34
- export { default as Button2 } from './components/button';
35
- export type { RadioGroupProps, RadioGroupItemProps } from './components/radio-group';
36
- export { CustomRadioGroup, CustomRadioGroupItem } from './components/radio-group';
37
- export type { GoodsCardListProps } from './components/goods-card-list';
38
- export { GoodsCardList, GoodsCardListCommon } from './components/goods-card-list';
39
- export type { RichTextProps } from './components/rich-text';
40
- export { RichText } from './components/rich-text';
41
- declare const bizCssPrefix = "bizpack";
42
- export { bizCssPrefix };
@@ -1,9 +0,0 @@
1
- /**
2
- * 从children数组中获取指定组件
3
- * @author ZhuGangMin
4
- * @date 2024-09-21 14:07:02
5
- * @param children 父组件传递过来children
6
- * @param key 组件的key
7
- * @param props 要覆盖的属性
8
- */
9
- export declare function convertChildren(children: any, key: string, props?: any): React.DetailedReactHTMLElement<any, HTMLElement>;
@@ -1,9 +0,0 @@
1
- import * as React from 'react';
2
- export declare const ValueWrapper: (NextFormComponent: React.ElementType, displayName: string) => {
3
- (props: any): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
4
- displayName: string;
5
- };
6
- export declare const DynamicPropWrapper: (prop: string, NextFormComponent: React.ElementType, displayName: string) => {
7
- (props: any): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
8
- displayName: string;
9
- };
@@ -1 +0,0 @@
1
- export declare function debounce<T extends (...args: any[]) => void>(func: T, delay: number): (this: any, ...args: Parameters<T>) => void;
@@ -1,2 +0,0 @@
1
- declare const bizCssPrefix = "bizpack";
2
- export { bizCssPrefix };