quick-start-feature-box 1.0.4 → 1.0.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.
package/dist/index.css DELETED
@@ -1,425 +0,0 @@
1
- /* src/FeatureBox/index.less */
2
- .FeatureBox {
3
- flex: 1 1 auto;
4
- .FeatureItem {
5
- width: 100%;
6
- margin-bottom: 30px;
7
- border-radius: 12px;
8
- border-radius: 8px;
9
- border: 1px solid #ebebeb;
10
- background-color: #FFFFFF;
11
- box-shadow: 3px 3px 4px 0px rgba(0, 0, 0, 0.05);
12
- .header {
13
- color: #333333;
14
- display: flex;
15
- justify-content: space-between;
16
- align-items: center;
17
- padding: 20px 28px;
18
- .headerLeft {
19
- display: flex;
20
- align-items: flex-start;
21
- gap: 12px;
22
- .iconBox {
23
- width: 20px;
24
- height: 20px;
25
- }
26
- .title {
27
- font-size: 15px;
28
- font-weight: 500;
29
- :global {
30
- .iconfont {
31
- font-size: 13px;
32
- color: #7f7f7f;
33
- cursor: pointer;
34
- margin-left: 16px;
35
- &:hover {
36
- color: var(--color-primary);
37
- }
38
- }
39
- }
40
- }
41
- .summary {
42
- margin-top: 12px;
43
- }
44
- }
45
- .btn {
46
- font-size: 14px;
47
- border-radius: 5px;
48
- padding: 5px 18px;
49
- color: #333333;
50
- border: 1px solid #d9d9d9;
51
- transition: all 0.3s ease;
52
- }
53
- &:hover {
54
- text-decoration: none;
55
- .btn {
56
- color: var(--color-primary);
57
- border-color: var(--color-primary);
58
- }
59
- }
60
- }
61
- .wrapper {
62
- border-top: 1px solid #ebebeb;
63
- padding: 20px 28px;
64
- .contentBox {
65
- padding: 14px 20px;
66
- border-radius: 10px;
67
- display: flex;
68
- align-items: flex-start;
69
- background-color: #fafafa;
70
- border-radius: 10px;
71
- gap: 8px;
72
- margin-bottom: 28px;
73
- :global {
74
- .iconfont {
75
- color: #f59a23;
76
- font-size: 18px;
77
- }
78
- }
79
- .contentRight {
80
- .title {
81
- font-weight: 500;
82
- }
83
- .content {
84
- line-height: 1.8em;
85
- margin-top: 8px;
86
- :global {
87
- li::before {
88
- content: "\2022";
89
- font-size: 1em;
90
- font-weight: 300;
91
- margin-right: 10px;
92
- }
93
- }
94
- }
95
- }
96
- }
97
- .remark {
98
- color: #7f7f7f;
99
- }
100
- }
101
- }
102
- }
103
- :global {
104
- .pgant-tooltip-inner {
105
- min-height: unset;
106
- }
107
- .pgant-image-preview-img {
108
- max-width: 80vw;
109
- max-height: 80vh;
110
- }
111
- }
112
-
113
- /* src/StepAndQuote/index.less */
114
- .StepAndQuote {
115
- display: block;
116
- position: relative;
117
- color: #333333;
118
- .tail {
119
- position: absolute;
120
- top: 24px;
121
- left: 12px;
122
- height: 100%;
123
- border-left: 1px solid #e1e1e1;
124
- }
125
- .circle {
126
- position: absolute;
127
- width: 24px;
128
- height: 24px;
129
- left: 0px;
130
- z-index: 1;
131
- background-color: #FFFFFF;
132
- border: 1px solid #e1e1e1;
133
- border-radius: 100px;
134
- display: flex;
135
- align-items: center;
136
- justify-content: center;
137
- font-size: 12px;
138
- }
139
- .content {
140
- margin-left: 60px;
141
- position: relative;
142
- word-break: break-all;
143
- }
144
- &.Step {
145
- padding-bottom: 32px;
146
- .title {
147
- font-size: 15px;
148
- font-weight: 650;
149
- margin-bottom: 5px;
150
- cursor: pointer;
151
- display: inline-block;
152
- :global {
153
- .iconfont {
154
- font-weight: normal;
155
- opacity: 0;
156
- width: 13px;
157
- height: 13px;
158
- color: #7f7f7f;
159
- cursor: pointer;
160
- padding: 0 8px;
161
- font-size: 13px;
162
- transition: opacity 0.3s ease-in-out;
163
- }
164
- }
165
- &:hover {
166
- :global {
167
- .iconfont {
168
- opacity: 100;
169
- color: var(--color-primary);
170
- }
171
- }
172
- }
173
- }
174
- }
175
- &.Quote {
176
- padding-bottom: 56px;
177
- position: relative;
178
- .line {
179
- width: 100%;
180
- height: 1px;
181
- margin-top: 56px;
182
- background-color: #e1e1e1;
183
- }
184
- .circle {
185
- top: 18px;
186
- }
187
- .tail {
188
- display: none;
189
- }
190
- .content {
191
- margin-left: 0;
192
- }
193
- .title {
194
- cursor: pointer;
195
- padding: 12px;
196
- border-radius: 5px;
197
- margin-left: 60px;
198
- border: 1px solid #e1e1e1;
199
- display: flex;
200
- align-items: center;
201
- justify-content: space-between;
202
- transition: all 0.3s ease-in-out;
203
- .QuoteBoxLeft {
204
- display: flex;
205
- align-items: center;
206
- gap: 8px;
207
- .QuoteIcon {
208
- width: 40px;
209
- height: auto;
210
- }
211
- .QuoteText {
212
- font-size: 15px;
213
- font-weight: 650;
214
- }
215
- }
216
- .QuoteBoxRight {
217
- display: flex;
218
- align-items: center;
219
- gap: 12px;
220
- }
221
- &:hover {
222
- box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.1);
223
- }
224
- }
225
- }
226
- &:last-child {
227
- .tail {
228
- display: none;
229
- }
230
- }
231
- }
232
-
233
- /* src/Tab/index.less */
234
- .Tab {
235
- display: flex;
236
- gap: 16px;
237
- padding: 10px 0 24px 0;
238
- border-bottom: 1px solid #ebebeb;
239
- .tabItem {
240
- padding: 16px 28px;
241
- border: 1px solid #e1e1e1;
242
- border-radius: 5px;
243
- transition: all 0.3s ease-in-out;
244
- cursor: pointer;
245
- display: flex;
246
- flex-direction: column;
247
- align-items: center;
248
- justify-content: center;
249
- gap: 5px;
250
- .tabIcon {
251
- width: 28px;
252
- height: 28px;
253
- color: #959595;
254
- fill: currentColor;
255
- transition: all 0.3s ease-in-out;
256
- }
257
- &:hover {
258
- color: var(--color-primary, #fb9332);
259
- .tabIcon {
260
- color: var(--color-primary, #fb9332);
261
- }
262
- }
263
- &.active {
264
- color: var(--color-primary, #fb9332);
265
- border-color: var(--color-primary, #fb9332);
266
- .tabIcon {
267
- color: var(--color-primary, #fb9332);
268
- }
269
- }
270
- &.noFirstTabsItem {
271
- padding: 10px 22px;
272
- }
273
- &.hasIcon {
274
- padding: 10px 28px;
275
- }
276
- }
277
- &.noFirstTab {
278
- padding: 24px 0 24px 0;
279
- }
280
- &.isInternalChanged {
281
- margin-bottom: 24px;
282
- }
283
- }
284
- .Tab + .Tab {
285
- margin-top: -24px;
286
- }
287
-
288
- /* src/Article/index.less */
289
- .Article {
290
- a {
291
- text-decoration: underline;
292
- text-decoration-color: var(--color-primary, #FB9332);
293
- }
294
- img {
295
- border: 1px solid #eeeeee;
296
- }
297
- b {
298
- color: #333333;
299
- }
300
- :first-child {
301
- margin-top: 0 !important;
302
- }
303
- :global {
304
- .title {
305
- font-size: 14px;
306
- margin-top: 16px;
307
- margin-bottom: 8px;
308
- font-weight: 650;
309
- }
310
- .desc {
311
- color: #999999;
312
- margin-top: var(--desc-margin-top, 16px);
313
- margin-bottom: 8px;
314
- }
315
- .title + .desc {
316
- --desc-margin-top: -6px;
317
- }
318
- .img-container {
319
- position: relative;
320
- cursor: pointer;
321
- img {
322
- width: 100%;
323
- }
324
- .iconfont {
325
- display: none;
326
- transition: all 0.3s ease;
327
- opacity: 0;
328
- position: absolute;
329
- top: 5px;
330
- right: 5px;
331
- background-color: rgba(128, 128, 128, 0.92);
332
- color: #ffffff;
333
- border-radius: 4px;
334
- padding: 2px 4px;
335
- font-size: 16px;
336
- }
337
- &:hover {
338
- .iconfont {
339
- display: block;
340
- opacity: 1;
341
- }
342
- }
343
- }
344
- .img-container + .img-container {
345
- margin-top: 10px;
346
- }
347
- li::before {
348
- content: "\2022";
349
- font-size: 1em;
350
- font-weight: 300;
351
- margin-right: 8px;
352
- }
353
- }
354
- }
355
-
356
- /* src/Dictionary/index.less */
357
- .Dictionary {
358
- display: flex;
359
- margin-top: 10px;
360
- gap: 20px;
361
- .item {
362
- display: flex;
363
- flex-direction: column;
364
- align-items: center;
365
- justify-content: center;
366
- gap: 4px;
367
- padding: 12px 20px 8px;
368
- border: 1px solid #e1e1e1;
369
- border-radius: 5px;
370
- cursor: pointer;
371
- text-decoration: none;
372
- .dicIcon {
373
- width: 16px;
374
- height: 16px;
375
- }
376
- .title {
377
- color: #333333;
378
- }
379
- &:hover {
380
- border-color: var(--color-primary, #fb9332);
381
- }
382
- }
383
- }
384
-
385
- /* src/HelpModal/index.less */
386
- .HelpModal {
387
- top: 0;
388
- bottom: 0;
389
- padding: 40px;
390
- height: 100vh;
391
- :global {
392
- .pgant-modal-content {
393
- width: 100%;
394
- height: 100%;
395
- padding: 0;
396
- .pgant-modal-body {
397
- padding: 0;
398
- height: 100%;
399
- }
400
- }
401
- }
402
- .HelpModalSkeleton {
403
- padding: 40px;
404
- width: 100%;
405
- height: 100%;
406
- box-sizing: border-box;
407
- }
408
- .HelpModalIframe {
409
- width: 100%;
410
- height: 100%;
411
- border: none;
412
- }
413
- }
414
-
415
- /* src/Extra/index.less */
416
- .Extra {
417
- position: absolute;
418
- right: 0;
419
- top: 0;
420
- display: flex;
421
- gap: 12px;
422
- .ExtraButton {
423
- border-radius: 3px;
424
- }
425
- }
package/dist/index.d.ts DELETED
@@ -1,80 +0,0 @@
1
- /**
2
- * 国际化类型定义
3
- */
4
- type I18N = {
5
- rebate_copy_share_success: (values: any) => any;
6
- rebate_copy_share_failed: (values: any) => any;
7
- rebate_copy_share: (values: any) => any;
8
- read: (values: any) => any;
9
- order_close_product: (values: any) => any;
10
- function_purpose: (values: any) => any;
11
- common_view_short: (values: any) => any;
12
- };
13
- /**
14
- * FeatureBox组件props类型定义
15
- */
16
- type FeatureBoxProps = {
17
- /**
18
- * - 国际化对象
19
- */
20
- i18n: I18N;
21
- /**
22
- * - 功能数据
23
- */
24
- data: any;
25
- /**
26
- * - 内容数据
27
- */
28
- content: any;
29
- /**
30
- * - 模块名称
31
- */
32
- module: string;
33
- /**
34
- * - 功能名称
35
- */
36
- feature: string;
37
- /**
38
- * - 设置功能方法
39
- */
40
- setFeature: Function;
41
- /**
42
- * - 链接列表
43
- */
44
- linkList: any[];
45
- /**
46
- * - 引用列表
47
- */
48
- quoteList: any[];
49
- };
50
- /**
51
- * 国际化类型定义
52
- * @typedef {Object} I18N
53
- * @property {(values: any) => import('react').ReactNode} rebate_copy_share_success
54
- * @property {(values: any) => import('react').ReactNode} rebate_copy_share_failed
55
- * @property {(values: any) => import('react').ReactNode} rebate_copy_share
56
- * @property {(values: any) => import('react').ReactNode} read
57
- * @property {(values: any) => import('react').ReactNode} order_close_product
58
- * @property {(values: any) => import('react').ReactNode} function_purpose
59
- * @property {(values: any) => import('react').ReactNode} common_view_short
60
- */
61
- /**
62
- * FeatureBox组件props类型定义
63
- * @typedef {Object} FeatureBoxProps
64
- * @property {I18N} i18n - 国际化对象
65
- * @property {any} data - 功能数据
66
- * @property {any} content - 内容数据
67
- * @property {string} module - 模块名称
68
- * @property {string} feature - 功能名称
69
- * @property {Function} setFeature - 设置功能方法
70
- * @property {Array} linkList - 链接列表
71
- * @property {Array} quoteList - 引用列表
72
- */
73
- /**
74
- * FeatureBox组件
75
- * @param {FeatureBoxProps} props - 组件props
76
- * @returns {JSX.Element} - 返回React元素
77
- */
78
- declare function FeatureBox(props: FeatureBoxProps): JSX.Element;
79
-
80
- export { FeatureBox };