@lowdefy/blocks-antd 4.0.0-alpha.5 → 4.0.0-alpha.6

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 (65) hide show
  1. package/dist/blocks/Affix/Affix.js +5 -4
  2. package/dist/blocks/Alert/Alert.js +6 -6
  3. package/dist/blocks/AutoComplete/AutoComplete.js +7 -4
  4. package/dist/blocks/Avatar/Avatar.js +5 -4
  5. package/dist/blocks/Badge/Badge.js +5 -4
  6. package/dist/blocks/Breadcrumb/Breadcrumb.js +7 -8
  7. package/dist/blocks/Button/Button.js +5 -4
  8. package/dist/blocks/ButtonSelector/ButtonSelector.js +7 -4
  9. package/dist/blocks/Card/Card.js +5 -4
  10. package/dist/blocks/CheckboxSelector/CheckboxSelector.js +7 -4
  11. package/dist/blocks/CheckboxSwitch/CheckboxSwitch.js +7 -4
  12. package/dist/blocks/Collapse/Collapse.js +6 -6
  13. package/dist/blocks/Comment/Comment.js +6 -6
  14. package/dist/blocks/ConfirmModal/ConfirmModal.js +7 -8
  15. package/dist/blocks/Content/Content.js +5 -4
  16. package/dist/blocks/ControlledList/ControlledList.js +14 -13
  17. package/dist/blocks/DateRangeSelector/DateRangeSelector.js +7 -4
  18. package/dist/blocks/DateSelector/DateSelector.js +7 -4
  19. package/dist/blocks/DateTimeSelector/DateTimeSelector.js +7 -4
  20. package/dist/blocks/Descriptions/Descriptions.js +6 -6
  21. package/dist/blocks/Divider/Divider.js +5 -4
  22. package/dist/blocks/Drawer/Drawer.js +5 -4
  23. package/dist/blocks/Footer/Footer.js +5 -4
  24. package/dist/blocks/Header/Header.js +5 -4
  25. package/dist/blocks/Label/Label.js +16 -11
  26. package/dist/blocks/Label/labelLogic.js +1 -2
  27. package/dist/blocks/Layout/Layout.js +5 -4
  28. package/dist/blocks/Menu/Menu.js +8 -10
  29. package/dist/blocks/Message/Message.js +6 -6
  30. package/dist/blocks/MobileMenu/MobileMenu.js +11 -9
  31. package/dist/blocks/Modal/Modal.js +6 -6
  32. package/dist/blocks/MonthSelector/MonthSelector.js +7 -4
  33. package/dist/blocks/MultipleSelector/MultipleSelector.js +11 -6
  34. package/dist/blocks/Notification/Notification.js +6 -6
  35. package/dist/blocks/NumberInput/NumberInput.js +7 -4
  36. package/dist/blocks/PageHCF/PageHCF.js +5 -4
  37. package/dist/blocks/PageHCSF/PageHCSF.js +5 -4
  38. package/dist/blocks/PageHSCF/PageHSCF.js +5 -4
  39. package/dist/blocks/PageHeaderMenu/PageHeaderMenu.js +12 -7
  40. package/dist/blocks/PageSHCF/PageSHCF.js +5 -4
  41. package/dist/blocks/PageSiderMenu/PageSiderMenu.js +16 -11
  42. package/dist/blocks/Pagination/Pagination.js +5 -4
  43. package/dist/blocks/Paragraph/Paragraph.js +5 -4
  44. package/dist/blocks/ParagraphInput/ParagraphInput.js +5 -4
  45. package/dist/blocks/PasswordInput/PasswordInput.js +7 -4
  46. package/dist/blocks/Progress/Progress.js +5 -4
  47. package/dist/blocks/RadioSelector/RadioSelector.js +7 -4
  48. package/dist/blocks/RatingSlider/RatingSlider.js +9 -8
  49. package/dist/blocks/Result/Result.js +5 -4
  50. package/dist/blocks/S3UploadButton/S3UploadButton.js +9 -7
  51. package/dist/blocks/Selector/Selector.js +11 -6
  52. package/dist/blocks/Sider/Sider.js +5 -4
  53. package/dist/blocks/Statistic/Statistic.js +5 -4
  54. package/dist/blocks/Switch/Switch.js +9 -8
  55. package/dist/blocks/Tabs/Tabs.js +6 -6
  56. package/dist/blocks/TextArea/TextArea.js +7 -4
  57. package/dist/blocks/TextInput/TextInput.js +7 -4
  58. package/dist/blocks/TimelineList/TimelineList.js +7 -8
  59. package/dist/blocks/Title/Title.js +5 -4
  60. package/dist/blocks/TitleInput/TitleInput.js +5 -4
  61. package/dist/blocks/Tooltip/Tooltip.js +5 -4
  62. package/dist/blocks/WeekSelector/WeekSelector.js +7 -4
  63. package/dist/disabledDate.js +1 -2
  64. package/dist/types.js +5 -3
  65. package/package.json +14 -9
@@ -85,9 +85,12 @@ TextInput.meta = {
85
85
  category: 'input',
86
86
  loading: {
87
87
  type: 'SkeletonInput'
88
- }
88
+ },
89
+ icons: [
90
+ ...Label.meta.icons
91
+ ],
92
+ styles: [
93
+ 'blocks/TextInput/style.less'
94
+ ]
89
95
  };
90
- TextInput.styles = [
91
- 'blocks/TextInput/style.less'
92
- ];
93
96
  export default TextInput;
@@ -21,8 +21,7 @@ import { get, mergeObjects, serializer, type } from '@lowdefy/helpers';
21
21
  const TimelineList = ({ blockId , components: { Icon } , events , list , methods , properties })=>{
22
22
  // Temporary fix until list blocks get value from state
23
23
  const value = properties.data;
24
- const other = {
25
- };
24
+ const other = {};
26
25
  if (properties.mode) {
27
26
  other.mode = properties.mode;
28
27
  }
@@ -58,8 +57,7 @@ const TimelineList = ({ blockId , components: { Icon } , events , list , method
58
57
  };
59
58
  }
60
59
  if (!type.isObject(style)) {
61
- style = {
62
- };
60
+ style = {};
63
61
  }
64
62
  const color = get(value, `${i}.${properties.colorField || 'color'}`);
65
63
  return(/*#__PURE__*/ _jsx(Timeline.Item, {
@@ -90,9 +88,10 @@ TimelineList.meta = {
90
88
  properties: {
91
89
  height: 80
92
90
  }
93
- }
91
+ },
92
+ icons: [],
93
+ styles: [
94
+ 'blocks/TimelineList/style.less'
95
+ ]
94
96
  };
95
- TimelineList.styles = [
96
- 'blocks/TimelineList/style.less'
97
- ];
98
97
  export default TimelineList;
@@ -106,9 +106,10 @@ TitleBlock.meta = {
106
106
  properties: {
107
107
  lines: 1
108
108
  }
109
- }
109
+ },
110
+ icons: [],
111
+ styles: [
112
+ 'blocks/Title/style.less'
113
+ ]
110
114
  };
111
- TitleBlock.styles = [
112
- 'blocks/Title/style.less'
113
- ];
114
115
  export default TitleBlock;
@@ -119,9 +119,10 @@ TitleInput.meta = {
119
119
  properties: {
120
120
  lines: 1
121
121
  }
122
- }
122
+ },
123
+ icons: [],
124
+ styles: [
125
+ 'blocks/TitleInput/style.less'
126
+ ]
123
127
  };
124
- TitleInput.styles = [
125
- 'blocks/TitleInput/style.less'
126
- ];
127
128
  export default TitleInput;
@@ -51,9 +51,10 @@ TooltipBlock.meta = {
51
51
  properties: {
52
52
  height: 80
53
53
  }
54
- }
54
+ },
55
+ icons: [],
56
+ styles: [
57
+ 'blocks/Tooltip/style.less'
58
+ ]
55
59
  };
56
- TooltipBlock.styles = [
57
- 'blocks/Tooltip/style.less'
58
- ];
59
60
  export default TooltipBlock;
@@ -88,9 +88,12 @@ WeekSelector.meta = {
88
88
  category: 'input',
89
89
  loading: {
90
90
  type: 'SkeletonInput'
91
- }
91
+ },
92
+ icons: [
93
+ ...Label.meta.icons
94
+ ],
95
+ styles: [
96
+ 'blocks/WeekSelector/style.less'
97
+ ]
92
98
  };
93
- WeekSelector.styles = [
94
- 'blocks/WeekSelector/style.less'
95
- ];
96
99
  export default WeekSelector;
@@ -14,8 +14,7 @@
14
14
  limitations under the License.
15
15
  */ import moment from 'moment';
16
16
  import { type } from '@lowdefy/helpers';
17
- const disabledDate = (disabledDates = {
18
- })=>{
17
+ const disabledDate = (disabledDates = {})=>{
19
18
  const min = type.isNone(disabledDates.min) ? undefined : moment(disabledDates.min).utc().startOf('day');
20
19
  const max = type.isNone(disabledDates.max) ? undefined : moment(disabledDates.max).utc().endOf('day');
21
20
  const dates = (disabledDates.dates || []).map((date)=>moment(date).utc().startOf('day')
package/dist/types.js CHANGED
@@ -13,13 +13,15 @@
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
15
  */ import * as blocks from './blocks.js';
16
- const styles = {
17
- };
16
+ const icons = {};
17
+ const styles = {};
18
18
  Object.keys(blocks).forEach((block)=>{
19
- styles[block] = blocks[block].styles || [];
19
+ icons[block] = blocks[block].meta.icons || [];
20
+ styles[block] = blocks[block].meta.styles || [];
20
21
  });
21
22
  export default {
22
23
  blocks: Object.keys(blocks),
24
+ icons,
23
25
  styles: {
24
26
  default: [
25
27
  'style.less'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lowdefy/blocks-antd",
3
- "version": "4.0.0-alpha.5",
3
+ "version": "4.0.0-alpha.6",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Lowdefy Ant Design Blocks",
6
6
  "homepage": "https://lowdefy.com",
@@ -21,6 +21,10 @@
21
21
  {
22
22
  "name": "Gerrie van Wyk",
23
23
  "url": "https://github.com/Gervwyk"
24
+ },
25
+ {
26
+ "name": "Sandile Memela",
27
+ "url": "https://github.com/sah-memela"
24
28
  }
25
29
  ],
26
30
  "repository": {
@@ -47,12 +51,12 @@
47
51
  },
48
52
  "dependencies": {
49
53
  "@ant-design/icons": "4.7.0",
50
- "@lowdefy/block-utils": "4.0.0-alpha.5",
51
- "@lowdefy/helpers": "4.0.0-alpha.5",
54
+ "@lowdefy/block-utils": "4.0.0-alpha.6",
55
+ "@lowdefy/helpers": "4.0.0-alpha.6",
52
56
  "antd": "4.17.0-alpha.7",
53
57
  "classnames": "2.3.1",
54
58
  "moment": "2.29.1",
55
- "rc-animate": "3.1.1",
59
+ "rc-motion": "2.4.4",
56
60
  "react": "18.0.0-alpha-327d5c484-20211106",
57
61
  "react-dom": "18.0.0-alpha-327d5c484-20211106",
58
62
  "tinycolor2": "1.4.2"
@@ -61,10 +65,11 @@
61
65
  "@babel/core": "7.16.0",
62
66
  "@babel/preset-react": "7.16.0",
63
67
  "@emotion/jest": "11.5.0",
64
- "@lowdefy/block-dev": "4.0.0-alpha.5",
65
- "@swc/cli": "0.1.52",
66
- "@swc/core": "1.2.112",
67
- "@swc/jest": "0.2.9",
68
+ "@lowdefy/block-dev": "4.0.0-alpha.6",
69
+ "@lowdefy/node-utils": "4.0.0-alpha.6",
70
+ "@swc/cli": "0.1.55",
71
+ "@swc/core": "1.2.130",
72
+ "@swc/jest": "0.2.17",
68
73
  "@testing-library/dom": "8.11.1",
69
74
  "@testing-library/react": "13.0.0-alpha.4",
70
75
  "@testing-library/user-event": "14.0.0-alpha.14",
@@ -76,5 +81,5 @@
76
81
  "publishConfig": {
77
82
  "access": "public"
78
83
  },
79
- "gitHead": "995fcdb020927f3cdc626fc99c15a2e4137bd962"
84
+ "gitHead": "2530e31af795b6a3c75ac8f72c8dbe0ab5d1251b"
80
85
  }