pb-sxp-ui 1.0.99 → 1.0.100

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 (100) hide show
  1. package/dist/index.cjs +393 -178
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.css +23 -20
  4. package/dist/index.js +394 -178
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.cjs +3 -3
  7. package/dist/index.min.cjs.map +1 -1
  8. package/dist/index.min.js +3 -3
  9. package/dist/index.min.js.map +1 -1
  10. package/dist/pb-ui.js +393 -178
  11. package/dist/pb-ui.js.map +1 -1
  12. package/dist/pb-ui.min.js +3 -3
  13. package/dist/pb-ui.min.js.map +1 -1
  14. package/es/core/components/SxpPageRender/ExpandableText.js +3 -2
  15. package/es/core/components/SxpPageRender/Hashtag/index.js +3 -1
  16. package/es/core/components/SxpPageRender/Navbar.js +4 -1
  17. package/es/core/components/SxpPageRender/VideoWidget/index.d.ts +1 -0
  18. package/es/core/components/SxpPageRender/VideoWidget/index.js +3 -3
  19. package/es/core/components/SxpPageRender/WaterFall/List.js +21 -10
  20. package/es/core/components/SxpPageRender/WaterFall/WaterfallList.js +24 -13
  21. package/es/core/components/SxpPageRender/index.d.ts +1 -0
  22. package/es/core/components/SxpPageRender/index.js +2 -1
  23. package/es/core/context/EditorDataProvider.d.ts +1 -0
  24. package/es/core/context/EditorDataProvider.js +2 -1
  25. package/es/core/utils/tool.d.ts +5 -0
  26. package/es/core/utils/tool.js +43 -0
  27. package/es/index.d.ts +0 -1
  28. package/es/index.js +0 -1
  29. package/es/materials/sxp/HashTag/settingRender.d.ts +19 -22
  30. package/es/materials/sxp/HashTag/settingRender.js +31 -13
  31. package/es/materials/sxp/popup/AppointForm/Form.d.ts +14 -0
  32. package/es/materials/sxp/popup/AppointForm/Form.js +8 -0
  33. package/es/materials/sxp/popup/AppointForm/index.js +25 -20
  34. package/es/materials/sxp/popup/AppointForm/settingRender.d.ts +9 -20
  35. package/es/materials/sxp/popup/AppointForm/settingRender.js +31 -13
  36. package/es/materials/sxp/popup/CommodityDetail/index.js +13 -4
  37. package/es/materials/sxp/popup/CommodityDetail/settingRender.d.ts +19 -22
  38. package/es/materials/sxp/popup/CommodityDetail/settingRender.js +31 -13
  39. package/es/materials/sxp/popup/CommodityDetailDiroNew/index.js +16 -5
  40. package/es/materials/sxp/popup/CommodityDetailDiroNew/settingRender.d.ts +19 -22
  41. package/es/materials/sxp/popup/CommodityDetailDiroNew/settingRender.js +31 -13
  42. package/es/materials/sxp/popup/Prompt/index.js +4 -1
  43. package/es/materials/sxp/popup/Prompt/settingRender.d.ts +10 -8
  44. package/es/materials/sxp/popup/Prompt/settingRender.js +16 -8
  45. package/es/materials/sxp/template/Appoint/index.js +4 -1
  46. package/es/materials/sxp/template/Commodity/index.js +7 -2
  47. package/es/materials/sxp/template/CommodityDiro/index.js +8 -3
  48. package/es/materials/sxp/template/CommodityDiroNew/index.js +7 -2
  49. package/es/materials/sxp/template/Link/index.js +4 -1
  50. package/es/materials/sxp/template/MultiCommodity/index.js +7 -2
  51. package/es/materials/sxp/template/MultiCommodityDiro/index.js +8 -3
  52. package/es/materials/sxp/template/MultiCommodityDiroNew/index.js +7 -2
  53. package/es/materials/sxp/template/components/settingRender.d.ts +16 -24
  54. package/es/materials/sxp/template/components/settingRender.js +30 -12
  55. package/lib/core/components/SxpPageRender/ExpandableText.js +3 -2
  56. package/lib/core/components/SxpPageRender/Hashtag/index.js +3 -1
  57. package/lib/core/components/SxpPageRender/Navbar.js +4 -1
  58. package/lib/core/components/SxpPageRender/VideoWidget/index.d.ts +1 -0
  59. package/lib/core/components/SxpPageRender/VideoWidget/index.js +3 -3
  60. package/lib/core/components/SxpPageRender/WaterFall/List.js +21 -10
  61. package/lib/core/components/SxpPageRender/WaterFall/WaterfallList.js +24 -13
  62. package/lib/core/components/SxpPageRender/index.d.ts +1 -0
  63. package/lib/core/components/SxpPageRender/index.js +2 -1
  64. package/lib/core/context/EditorDataProvider.d.ts +1 -0
  65. package/lib/core/context/EditorDataProvider.js +2 -1
  66. package/lib/core/utils/tool.d.ts +5 -0
  67. package/lib/core/utils/tool.js +45 -1
  68. package/lib/index.d.ts +0 -1
  69. package/lib/index.js +1 -3
  70. package/lib/materials/sxp/HashTag/settingRender.d.ts +19 -22
  71. package/lib/materials/sxp/HashTag/settingRender.js +31 -13
  72. package/lib/materials/sxp/popup/AppointForm/Form.d.ts +14 -0
  73. package/lib/materials/sxp/popup/AppointForm/Form.js +11 -0
  74. package/lib/materials/sxp/popup/AppointForm/index.js +24 -19
  75. package/lib/materials/sxp/popup/AppointForm/settingRender.d.ts +9 -20
  76. package/lib/materials/sxp/popup/AppointForm/settingRender.js +31 -14
  77. package/lib/materials/sxp/popup/CommodityDetail/index.js +13 -4
  78. package/lib/materials/sxp/popup/CommodityDetail/settingRender.d.ts +19 -22
  79. package/lib/materials/sxp/popup/CommodityDetail/settingRender.js +31 -13
  80. package/lib/materials/sxp/popup/CommodityDetailDiroNew/index.js +16 -5
  81. package/lib/materials/sxp/popup/CommodityDetailDiroNew/settingRender.d.ts +19 -22
  82. package/lib/materials/sxp/popup/CommodityDetailDiroNew/settingRender.js +31 -13
  83. package/lib/materials/sxp/popup/Prompt/index.js +4 -1
  84. package/lib/materials/sxp/popup/Prompt/settingRender.d.ts +10 -8
  85. package/lib/materials/sxp/popup/Prompt/settingRender.js +16 -9
  86. package/lib/materials/sxp/template/Appoint/index.js +4 -1
  87. package/lib/materials/sxp/template/Commodity/index.js +7 -2
  88. package/lib/materials/sxp/template/CommodityDiro/index.js +8 -3
  89. package/lib/materials/sxp/template/CommodityDiroNew/index.js +7 -2
  90. package/lib/materials/sxp/template/Link/index.js +4 -1
  91. package/lib/materials/sxp/template/MultiCommodity/index.js +7 -2
  92. package/lib/materials/sxp/template/MultiCommodityDiro/index.js +8 -3
  93. package/lib/materials/sxp/template/MultiCommodityDiroNew/index.js +7 -2
  94. package/lib/materials/sxp/template/components/settingRender.d.ts +16 -24
  95. package/lib/materials/sxp/template/components/settingRender.js +30 -12
  96. package/package.json +1 -1
  97. package/es/materials/sxp/defaultSetting.d.ts +0 -8
  98. package/es/materials/sxp/defaultSetting.js +0 -6
  99. package/lib/materials/sxp/defaultSetting.d.ts +0 -8
  100. package/lib/materials/sxp/defaultSetting.js +0 -9
@@ -96,27 +96,23 @@ declare const _default: ({
96
96
  child: ({
97
97
  type: string;
98
98
  label: string;
99
- child: ({
99
+ child: {
100
100
  type: string;
101
101
  name: string[];
102
- options?: undefined;
103
- initialValue?: undefined;
104
- addonAfter?: undefined;
105
- } | {
102
+ bottomText: string;
103
+ }[];
104
+ name?: undefined;
105
+ } | {
106
+ type: string;
107
+ label: string;
108
+ child: ({
106
109
  type: string;
107
- options: {
108
- label: string;
109
- value: string;
110
- }[];
111
110
  name: string[];
112
- initialValue: string;
113
111
  addonAfter?: undefined;
114
112
  } | {
115
113
  type: string;
116
114
  addonAfter: string;
117
115
  name: string[];
118
- options?: undefined;
119
- initialValue?: undefined;
120
116
  })[];
121
117
  name?: undefined;
122
118
  } | {
@@ -150,27 +146,23 @@ declare const _default: ({
150
146
  } | {
151
147
  type: string;
152
148
  label: string;
153
- child: ({
149
+ child: {
154
150
  type: string;
155
151
  name: string[];
156
- options?: undefined;
157
- initialValue?: undefined;
158
- addonAfter?: undefined;
159
- } | {
152
+ bottomText: string;
153
+ }[];
154
+ name?: undefined;
155
+ } | {
156
+ type: string;
157
+ label: string;
158
+ child: ({
160
159
  type: string;
161
- options: {
162
- label: string;
163
- value: string;
164
- }[];
165
160
  name: string[];
166
- initialValue: string;
167
161
  addonAfter?: undefined;
168
162
  } | {
169
163
  type: string;
170
164
  addonAfter: string;
171
165
  name: string[];
172
- options?: undefined;
173
- initialValue?: undefined;
174
166
  })[];
175
167
  name?: undefined;
176
168
  })[];
@@ -1,7 +1,5 @@
1
1
  "use strict";
2
- var _a, _b;
3
2
  Object.defineProperty(exports, "__esModule", { value: true });
4
- const defaultSetting_1 = require("../../defaultSetting");
5
3
  exports.default = [
6
4
  {
7
5
  title: '主题样式',
@@ -119,14 +117,24 @@ exports.default = [
119
117
  label: '字体',
120
118
  child: [
121
119
  {
122
- type: 'Color',
123
- name: ['props', 'ctaTempStyles', 'title', 'color']
120
+ type: 'Select',
121
+ name: ['props', 'ctaTempStyles', 'title', 'fontFamily-cn'],
122
+ bottomText: '中文字体'
124
123
  },
125
124
  {
126
125
  type: 'Select',
127
- options: defaultSetting_1.fontOptions,
128
- name: ['props', 'ctaTempStyles', 'title', 'fontFamily'],
129
- initialValue: (_a = defaultSetting_1.fontOptions === null || defaultSetting_1.fontOptions === void 0 ? void 0 : defaultSetting_1.fontOptions[0]) === null || _a === void 0 ? void 0 : _a.value
126
+ name: ['props', 'ctaTempStyles', 'title', 'fontFamily-en'],
127
+ bottomText: '英文/其他字体'
128
+ }
129
+ ]
130
+ },
131
+ {
132
+ type: 'Group',
133
+ label: '',
134
+ child: [
135
+ {
136
+ type: 'Color',
137
+ name: ['props', 'ctaTempStyles', 'title', 'color']
130
138
  },
131
139
  {
132
140
  type: 'Number',
@@ -198,14 +206,24 @@ exports.default = [
198
206
  label: '字体',
199
207
  child: [
200
208
  {
201
- type: 'Color',
202
- name: ['props', 'ctaTempStyles', 'ctaTitle', 'color']
209
+ type: 'Select',
210
+ name: ['props', 'ctaTempStyles', 'ctaTitle', 'fontFamily-cn'],
211
+ bottomText: '中文字体'
203
212
  },
204
213
  {
205
214
  type: 'Select',
206
- options: defaultSetting_1.fontOptions,
207
- name: ['props', 'ctaTempStyles', 'ctaTitle', 'fontFamily'],
208
- initialValue: (_b = defaultSetting_1.fontOptions === null || defaultSetting_1.fontOptions === void 0 ? void 0 : defaultSetting_1.fontOptions[0]) === null || _b === void 0 ? void 0 : _b.value
215
+ name: ['props', 'ctaTempStyles', 'ctaTitle', 'fontFamily-en'],
216
+ bottomText: '英文/其他字体'
217
+ }
218
+ ]
219
+ },
220
+ {
221
+ type: 'Group',
222
+ label: '',
223
+ child: [
224
+ {
225
+ type: 'Color',
226
+ name: ['props', 'ctaTempStyles', 'ctaTitle', 'color']
209
227
  },
210
228
  {
211
229
  type: 'Number',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pb-sxp-ui",
3
- "version": "1.0.99",
3
+ "version": "1.0.100",
4
4
  "description": "React enterprise-class UI components",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
@@ -1,8 +0,0 @@
1
- export declare const fontOptions: {
2
- label: string;
3
- value: string;
4
- }[];
5
- declare const _default: {
6
- fontOptions: any[];
7
- };
8
- export default _default;
@@ -1,6 +0,0 @@
1
- export const fontOptions = [{ label: 'defalut', value: 'appFont' }];
2
- const sxpFonts = typeof window !== 'undefined' && (window === null || window === void 0 ? void 0 : window.localStorage.getItem('sxp_font_links'));
3
- const data = sxpFonts && sxpFonts !== '' ? JSON.parse(sxpFonts) : [];
4
- export default {
5
- fontOptions: [...fontOptions, ...data]
6
- };
@@ -1,8 +0,0 @@
1
- export declare const fontOptions: {
2
- label: string;
3
- value: string;
4
- }[];
5
- declare const _default: {
6
- fontOptions: any[];
7
- };
8
- export default _default;
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.fontOptions = void 0;
4
- exports.fontOptions = [{ label: 'defalut', value: 'appFont' }];
5
- const sxpFonts = typeof window !== 'undefined' && (window === null || window === void 0 ? void 0 : window.localStorage.getItem('sxp_font_links'));
6
- const data = sxpFonts && sxpFonts !== '' ? JSON.parse(sxpFonts) : [];
7
- exports.default = {
8
- fontOptions: [...exports.fontOptions, ...data]
9
- };